CN106792545B - Data transmission method, mobile terminal and server - Google Patents
Data transmission method, mobile terminal and server Download PDFInfo
- Publication number
- CN106792545B CN106792545B CN201710031311.8A CN201710031311A CN106792545B CN 106792545 B CN106792545 B CN 106792545B CN 201710031311 A CN201710031311 A CN 201710031311A CN 106792545 B CN106792545 B CN 106792545B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- server
- search
- information
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72406—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明适用于网络技术领域,提供了一种数据传输方法,包括:向服务器提交包含搜索条件的目标搜索请求,以使服务器获取满足搜索条件的至少一个第二移动终端的位置信息;接收服务器下发的至少一个第二移动终端的位置信息,并述至少一个第二移动终端的位置信息显示于第一移动终端的地图上;根据用户在地图上选择的目标设备,向服务器发送与目标设备进行连接的通信请求,在接收到服务器反馈的与目标设备连接的确认信息后,与目标设备进行数据传输。本发明实施例保证了对于第二移动终端的搜索���������������受第一移动终端信号传输距离的限制;用户能够随时随地地将数据传输至附近范围内的陌生人,满足了用户的社交需求,扩展了地图类软件的社交功能。
The present invention is applicable to the field of network technology, and provides a data transmission method, comprising: submitting a target search request including search conditions to a server, so that the server obtains location information of at least one second mobile terminal that satisfies the search conditions; The location information of at least one second mobile terminal is sent, and the location information of at least one second mobile terminal is displayed on the map of the first mobile terminal; according to the target device selected by the user on the map, the server sends a For the communication request of connection, after receiving the confirmation information of connection with the target device fed back by the server, data transmission is performed with the target device. The embodiment of the present invention ensures that the search range for the second mobile terminal is not limited by the signal transmission distance of the first mobile terminal; the user can transmit data to strangers in the vicinity anytime and anywhere, which satisfies the user's social needs, Expanded the social function of map software.
Description
技术领域technical field
本发明属于网络技术领域,尤其涉及一种数据传输方法、移动终端及服务器。The invention belongs to the field of network technology, and in particular relates to a data transmission method, a mobile terminal and a server.
背景技术Background technique
随着移动互联网的快速发展,移动终端相互之间进行数据传输的应用场景越来越多���目前,移动终端进行数据传输的方式主要为以下四种:1、令数据的发送端和接收端均接入相同的无线局域网;2、令其中一方的设备开启无线热点功能,使得其他设备能够接入该设备提供的无线局域网;3、令数据的发送端和接收端均开启蓝牙功能,通过蓝牙技术来传输数据;4、基于第三方软件查找对方的应用账号后,再进行数据的传输。With the rapid development of the mobile Internet, there are more and more application scenarios for data transmission between mobile terminals. At present, there are four main ways for mobile terminals to transmit data: 1. Make the sender and receiver of data access the same wireless local area network; 2. Make one of the devices turn on the wireless hotspot function, so that other devices can connect to 3. Enable the Bluetooth function on both the sender and receiver of the data, and transmit data through Bluetooth technology; 4. After searching for the other party's application account based on third-party software, the data is transmitted.
目前基于移动终端的数据传输方法均需要预先知道对方的应用账号或设备账号才能传输数据至对方设备,无法随时随地地将数据传输至附近范围内的陌生人,无法满足用户日益增长的社交需求。The current data transmission methods based on mobile terminals all need to know the other party's application account or device account in advance to transmit data to the other party's device, and cannot transmit data to strangers in the vicinity anytime, anywhere, and cannot meet the growing social needs of users.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种数据传输方法、移动终端及服务器,旨在解决现有技术中无法随时随地地将数据传输至附近范围内的陌生人,无法满足用户日益增长的社交需求的问题。The purpose of the embodiments of the present invention is to provide a data transmission method, a mobile terminal and a server, aiming at solving the problem that in the prior art, data cannot be transmitted to strangers in the vicinity anytime and anywhere, and users cannot meet the increasing social needs of users. question.
本发明实施例的第一方面,提供一种数据传输方法,应用于第一移动终端,包括:A first aspect of the embodiments of the present invention provides a data transmission method, which is applied to a first mobile terminal, including:
向服务器提交包含搜索条件的目标搜索请求,以使所述服务器获取满足所述搜索条件的至少一个第二移动终端的位置信息;Submitting a target search request containing search conditions to the server, so that the server obtains location information of at least one second mobile terminal that satisfies the search conditions;
接收所述服务器下发的所述至少一个第二移动终端的位置信息,并将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上;receiving the location information of the at least one second mobile terminal issued by the server, and displaying the location information of the at least one second mobile terminal on a map of the first mobile terminal;
根据用户在所述地图上选择的目标设备,向所述服务器发送与所述目标设备进行连接的通信请求,所述目标设备为一个或多个所述第二移动终端;Send a communication request to the server to connect with the target device according to the target device selected by the user on the map, where the target device is one or more of the second mobile terminals;
在接收到���述服务器反馈的与所述目标设备连接的确认信息后,与所述目标设备进行数据传输。After receiving the confirmation information fed back by the server to connect with the target device, perform data transmission with the target device.
本发明实施例的第二方面,提供一种数据传输方法,应用于服务器,包括:In a second aspect of the embodiments of the present invention, a data transmission method is provided, applied to a server, including:
接收第一移动终端上传的包含搜索条件的目标搜索请求;receiving a target search request including search conditions uploaded by the first mobile terminal;
获取满足所述搜索条件的至少一个第二移动终端的位置信息;obtaining location information of at least one second mobile terminal that satisfies the search condition;
将所述至少一个第二移动终端的位置信息返回至所述第一移动终端,以使所述第一移动终端将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上;Return the location information of the at least one second mobile terminal to the first mobile terminal, so that the first mobile terminal displays the location information of the at least one second mobile terminal on the first mobile terminal. on the map;
当接收到所述第一移动终端发送的与目标设备进行连接的通信请求时,请求所述目标设备与所述第一移动终端建立通信连接,其中,所述目标设备由所述第一移动终端的用户在所述地图中选取,且所述目标设备为一个或多个所述第二移动终端;When receiving a communication request sent by the first mobile terminal to connect with a target device, request the target device to establish a communication connection with the first mobile terminal, wherein the target device is sent by the first mobile terminal selected from the map, and the target device is one or more of the second mobile terminals;
当接收到所述目标设备返回的连接确认信息后,反馈所述连接确认信息至所述第一移动终端,以使所述第一移动终端与所述目标设备进行数据传输。After receiving the connection confirmation information returned by the target device, the connection confirmation information is fed back to the first mobile terminal, so that the first mobile terminal and the target device perform data transmission.
本发明实施例的第三方面,提供一种移动终端,包括:In a third aspect of the embodiments of the present invention, a mobile terminal is provided, including:
提交单元,用于向服务器提交包含搜索条件的目标搜索请求,以使所述服务器获取满足所述搜索条件的至少一个第二移动终端的位置信息;a submitting unit, configured to submit a target search request including a search condition to a server, so that the server obtains the location information of at least one second mobile terminal that satisfies the search condition;
接收单元,用于接收所述服务器下发的所述至少一个第二移动终端的位置信息,并将所述至少一个第二移动终端的位置信息显示于第一移动终端的地图上;a receiving unit, configured to receive the location information of the at least one second mobile terminal issued by the server, and display the location information of the at least one second mobile terminal on a map of the first mobile terminal;
发送单元,用于根据用户在所述地图上选择的目标设备,向所述服务器发送与所述目标设备进行连接的通信请求,所述目标设备为一个或多个所述第二移动终端;a sending unit, configured to send a communication request to the server to connect with the target device according to the target device selected by the user on the map, where the target device is one or more of the second mobile terminals;
传输单元,用于在接收到所述服务器反馈的与所述目标设备连接的确认信息后,与所述目标设备进行数据传输。The transmission unit is configured to perform data transmission with the target device after receiving the confirmation information fed back by the server to connect with the target device.
本发明实施例的第四方面,提供一种服务器,包括:A fourth aspect of the embodiments of the present invention provides a server, including:
接收单元,用于接收第一移动终端上传的包含搜索条件的目标搜索请求;a receiving unit, configured to receive a target search request including search conditions uploaded by the first mobile terminal;
获取单元,用于获取满足所述搜索条件的至少一个第二移动终端的位置信息;an acquiring unit, configured to acquire location information of at least one second mobile terminal that satisfies the search condition;
返回单元,用于将所述至少一个第二移动终端的位置信息返回至所述第一移动终端,以使所述第一移动终端将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上;A returning unit, configured to return the location information of the at least one second mobile terminal to the first mobile terminal, so that the first mobile terminal displays the location information of the at least one second mobile terminal on the first mobile terminal on the map of the first mobile terminal;
请求单元,用于当接收到所述第一移动终端发送的与目标设备进行连接的通信请求时,请求所述目标设备与所述第一移动终端建立通信连接,其中,所述目标设备由所述第一移动终端的用户在所述地图中选取,且所述目标设备为一个或多个所述第二移动终端;a requesting unit, configured to request the target device to establish a communication connection with the first mobile terminal when receiving a communication request sent by the first mobile terminal to connect with a target device, wherein the target device is The user of the first mobile terminal selects in the map, and the target device is one or more of the second mobile terminals;
反馈单元,用于当接收到所述目标设备返回的连接确认信息后,反馈所述连接确认信息至所述第一移动终端,以使所述第一移动终端与所述目标设备进行数据传输。The feedback unit is configured to feed back the connection confirmation information to the first mobile terminal after receiving the connection confirmation information returned by the target device, so that the first mobile terminal and the target device perform data transmission.
本发明实施例基于地图类软件来实现两端设备之间的数据传输,以第一移动终端上传的搜索条件为依据,由服务器来对筛选满足搜索条件的第二移动终端,保证了对于第二移动终端的搜索范围能够不受第一移动终端信号传输距离的限制;第一移动终端能够根据服务器返回的第二移动终端的位置信息,从当前显示的地图中,直观地查看并选择目标设备来完成数据传输,操作简单,扩大了地图类软件的应用场景。本发明实施例使得用户能够随时随地地将数据传输至附近范围内的第二移动终端,能够与使用该第二移动终端的陌生人进行通信,因此,满足了用户日益增长的社交需求,扩展了地图类软件的社交功能。This embodiment of the present invention implements data transmission between devices at both ends based on map software. Based on the search conditions uploaded by the first mobile terminal, the server screens the second mobile terminals that satisfy the search conditions, ensuring that the second mobile terminal meets the search conditions. The search range of the mobile terminal can not be limited by the signal transmission distance of the first mobile terminal; the first mobile terminal can intuitively view and select the target device from the currently displayed map according to the location information of the second mobile terminal returned by the server. The data transmission is completed, the operation is simple, and the application scenarios of map software are expanded. The embodiment of the present invention enables the user to transmit data to the second mobile terminal in the vicinity anytime, anywhere, and to communicate with strangers using the second mobile terminal. Therefore, the user's growing social needs are met, and the The social function of map software.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative labor.
图1是本发明实施例提供的数据传输方法所适用的系统架构图;1 is a system architecture diagram to which the data transmission method provided by an embodiment of the present invention is applicable;
图2是本发明实施例提供的数据传输方法第一移动终端侧的实现流程图;Fig. 2 is the realization flow chart of the first mobile terminal side of the data transmission method provided by the embodiment of the present invention;
图3是本发明另一实施例提供的数据传输方法第一移动终端侧的实现流程图;Fig. 3 is the realization flow chart of the first mobile terminal side of the data transmission method provided by another embodiment of the present invention;
图4是本发明实施例提供的曲线图案绘制示意图;4 is a schematic diagram of a curve pattern drawing provided by an embodiment of the present invention;
图5是本发明实施例提供的连接线绘制示意图;5 is a schematic diagram of a connection line drawing provided by an embodiment of the present invention;
图6是本发明实施例提供的数据传输方法服务器一侧的实现流程图;Fig. 6 is the realization flow chart of the server side of the data transmission method provided by the embodiment of the present invention;
图7是本发明实施例提供的数据传输方法服务器一侧S601以及S602的具体实现流程图;7 is a specific implementation flowchart of S601 and S602 on the server side of the data transmission method provided by the embodiment of the present invention;
图8是本发明实施例提供的数据传输方法S702中对预存储的各个设备的历史信息进行第一次筛选的具体实现流程图;FIG. 8 is a specific implementation flowchart of the first screening of the pre-stored historical information of each device in the data transmission method S702 provided by the embodiment of the present invention;
图9是本发明实施例提供的数据传输方法S702中对预存储的各个设备的历史信息进行第二次筛选的具体实现流程图;FIG. 9 is a specific implementation flowchart of the second screening of the pre-stored historical information of each device in the data transmission method S702 provided by the embodiment of the present invention;
图10是本发明实施例提供的数据传输方法S704的具体实现流程图;10 is a specific implementation flowchart of the data transmission method S704 provided by an embodiment of the present invention;
图11是本发明实施例提供的移动终端的结构框图;11 is a structural block diagram of a mobile terminal provided by an embodiment of the present invention;
图12是本发明实施例提供的服务器的结构框图;12 is a structural block diagram of a server provided by an embodiment of the present invention;
图13是本发明另一实施例提供的移动终端的结构框图。FIG. 13 is a structural block diagram of a mobile terminal according to another embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
图1示出了本发明实施例提供的数据传输方法所适用的系统架构图,为了便于说明,仅示出了与本实施例相关的部分。FIG. 1 shows a system architecture diagram to which the data transmission method provided by the embodiment of the present invention is applicable. For convenience of description, only parts related to this embodiment are shown.
参照图1,该系统由第一移动终端11、服务器12和第二移动终端13组成;1, the system consists of a first
其中,第一移动终端11与第二移动终端13均为具有无线网络接入功能的终端设备。通过运行在移动终端上的基于地图的应用软件,保证与服务器12之间的通信。第一移动终端11作为请求客户端,向服务器12提交关于第二移动终端13的搜索请求,并根据服务器12返回的搜索结果,在地图上选择一个或者多个第二移动终端13来作为目标设备进行数据传输。The first
在该系统中,服务器12用于根据存储的各个设备的历史信息,对第一移动终端11上传的搜索条件进行处理。服务器12根据上述历史信息的分析结果,请求获取关于第二移动终端13实时的位置信息,并将该位置信息返回至第一移动终端11中。同时,服务器12还用于为第一移动终端11提供数据中转服务,以使第一移动终端11能够将需要进行传输的数据通过服务器12转发至至少一个第二移动终端13中的目标设备。In this system, the
图2示出了本发明实施例提供的数据传输方法第一移动终端侧的实现流程图,详述如下:Fig. 2 shows the implementation flow chart of the first mobile terminal side of the data transmission method provided by the embodiment of the present invention, and the details are as follows:
在S201中,向服务器提交包含搜索条件的目标搜索请求,以使所述服务器获取满足所述搜索条件的至少一个第二移动终端的位置信息。In S201, a target search request including search conditions is submitted to the server, so that the server obtains location information of at least one second mobile terminal that satisfies the search conditions.
第一移动终端通过其内部运行的基于地图的应用软件,向服务器提交目标搜索请求,该请求中包含有用户设定的或默认的关于第二移动终端的搜索条件。The first mobile terminal submits a target search request to the server through the map-based application software running in the first mobile terminal, and the request includes the search conditions for the second mobile terminal set by the user or by default.
其中,搜索条件包括但不限于搜索距离范围值、搜索区域以及个性标签等信息。第二移动终端与当前第一移动终端所处的地理位置的距离最大值为搜索距离范围值;第二移动终端所处的各级行政区域为搜索区域;对于第一移动终端或第二移动终端的用户来说,其个人状况信息即为个性标签,包括兴趣爱好、职业、性别以及星座等信息。The search conditions include, but are not limited to, the search distance range value, the search area, and the personality tag and other information. The maximum distance between the second mobile terminal and the geographic location where the first mobile terminal is currently located is the search distance range value; the administrative area at all levels where the second mobile terminal is located is the search area; for the first mobile terminal or the second mobile terminal For users of , their personal status information is a personality tag, including information such as hobbies, occupation, gender, and constellation.
在S202中,接收所述服务器下发的所述至少一个第二移动终端的位置信息,并将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上。In S202, the location information of the at least one second mobile terminal issued by the server is received, and the location information of the at least one second mobile terminal is displayed on a map of the first mobile terminal.
服务器作为上述基于地图的应用软件的后台系统,从数据库中读取当前已存储的所有设备的基础信息,���根据接收到的搜索条件,将满足该搜索条件的设备的基础信息筛选出来,以作为目标搜索请求的响应信息,返回至第一移动终端。As the background system of the above-mentioned map-based application software, the server reads the basic information of all currently stored devices from the database, and selects the basic information of the devices that meet the search conditions according to the received search conditions, as The response information of the target search request is returned to the first mobile terminal.
其中,基础信息包括但不限于设备的个性标签、个人头像以及当前定位等信息。若第二移动终端与第一移动终端存在历史数据传输记录,则基础信息还包括熟人标记信息。The basic information includes, but is not limited to, the device's personality tag, personal avatar, and current location and other information. If there is a historical data transmission record between the second mobile terminal and the first mobile terminal, the basic information further includes acquaintance mark information.
在本实施例中,第一移动终端接收到服务器返回的至少一个第二移动终端对应的基础信息,由于每条基础信息中包含了代表信息来源的第二移动终端的个人头像以及该第二移动终端的实时位置,因此,用于展示信息的第一移动终端从接收到的每条基础信息中提取出每个第二移动终端的实时位置后,在当前运行的地图应用软件中查找出对应该实时位置的地图位置点。此后,在该地图位置点显示每个第二移动终端的个人头像。In this embodiment, the first mobile terminal receives the basic information corresponding to at least one second mobile terminal returned by the server, because each piece of basic information includes the personal avatar of the second mobile terminal representing the source of the information and the second mobile terminal. The real-time position of the terminal, therefore, after the first mobile terminal for displaying information extracts the real-time position of each second mobile terminal from each piece of basic information received, finds out the corresponding Map location points for live location. Thereafter, the personal avatar of each second mobile terminal is displayed at the map location point.
在S203中,根据用户在所述地图上选择的目标设备,向所述服务器发送与所述目标设备进行连接的通信请求,所述目标设备为一个或多个所述第二移动终端。In S203, a communication request for connecting with the target device is sent to the server according to the target device selected by the user on the map, where the target device is one or more of the second mobile terminals.
用户在地图中点击任意一个第二移动终端的个人头像时,在地图上将会弹出该目标设备的个性标签以及一些额外的功能键。功能键例如可以是,文件传输、快捷发言、表情、关闭等功能菜单按钮。基于当前显示的第二移动终端的基础信息,用户可以在地图中发出对应的操作指令,从而实现相关的功能。When the user clicks on the personal avatar of any second mobile terminal in the map, the personalized label of the target device and some additional function keys will pop up on the map. The function keys may be, for example, function menu buttons such as file transfer, quick speech, emoticon, and close. Based on the currently displayed basic information of the second mobile terminal, the user can issue a corresponding operation instruction on the map, so as to implement related functions.
当用户在地图上发出触摸指令,且该触摸指令与其中任一第二移动终端所对应的文件传输、快捷发言、表情等功能按键关联时,表明该用户发出与该第二移动终端的通信连接指令,因此,该第二移动终端成为用户选择的一个目标设备。When the user sends a touch command on the map, and the touch command is associated with the function keys such as file transfer, quick speech, expression, etc. corresponding to any second mobile terminal, it indicates that the user sends a communication connection with the second mobile terminal instruction, therefore, the second mobile terminal becomes a target device selected by the user.
第一移动终端根据通信连接指令所指示的目标设备,提交通信连接请求,该请求中携带了关于该目标设备的标识,以使服务器区分出第一移动终端需要连接的目标设备是众多设备中的哪一个,并使得服务器能够以第一移动终端的名义,向该目标设备发出通信连接请求。The first mobile terminal submits a communication connection request according to the target device indicated by the communication connection instruction, and the request carries the identification of the target device, so that the server can distinguish that the target device that the first mobile terminal needs to connect to is one of many devices. which one, and enable the server to issue a communication connection request to the target device in the name of the first mobile terminal.
在S204中,在接收到所述服务器反馈的与所述目标设备连接的确认信息后,与所述目标设备进行数据传输。In S204, after receiving the confirmation information fed back by the server to connect with the target device, perform data transmission with the target device.
目标设备接收到通信连接请求后,向服务器返回连接确认信息,以表示当前已确认接收到了请求。此时,服务器作为信息的一个中转站,将该信息转发至第一移动终端。After receiving the communication connection request, the target device returns connection confirmation information to the server to indicate that the request has been confirmed currently. At this time, the server acts as a relay station for the information, and forwards the information to the first mobile terminal.
第一移动终端接收到连接确认信息后,将用户所需传输的有效数据信息通过无线网络上传至服务器,以使服务器能够继续在两端设备之间传递信息,实现两端设备之间的数据传输及交互。After receiving the connection confirmation information, the first mobile terminal uploads the valid data information to be transmitted by the user to the server through the wireless network, so that the server can continue to transmit information between the two end devices and realize data transmission between the two end devices. and interaction.
本发明实施例基于地图类软件来实现两端设备之间的数据传输,以第一移动终端上传的搜索条件为依据,由服务器来对筛选满足搜索条件的第二移动终端,保证了对于第二移动终端的搜索范围能够不受第一移动终端信号传输距离的限制;第一移动终端能够根据服务器返回的第二移动终端的位置信息,从当前显示的地图中,直观地查看并选择目标设备来完成数据传输,操作简单,扩大了地图类软件的应用场景。本发明实施例使得用户能够随时随地地将数据传输至附近范围内的第二移动终端,能够与使用该第二移动终端的陌生人进行通信,因此,满足了用户日益增长的社交需求,扩展了地图类软件的社交功能。This embodiment of the present invention implements data transmission between devices at both ends based on map software. Based on the search conditions uploaded by the first mobile terminal, the server screens the second mobile terminals that satisfy the search conditions, ensuring that the second mobile terminal meets the search conditions. The search range of the mobile terminal can not be limited by the signal transmission distance of the first mobile terminal; the first mobile terminal can intuitively view and select the target device from the currently displayed map according to the location information of the second mobile terminal returned by the server. The data transmission is completed, the operation is simple, and the application scenarios of map software are expanded. The embodiment of the present invention enables the user to transmit data to the second mobile terminal in the vicinity anytime, anywhere, and to communicate with strangers using the second mobile terminal. Therefore, the user's growing social needs are met, and the The social function of map software.
图3示出了本发明实施例提供的数据传输方法第一移动终端侧S201的具体实现流程,详述如下:FIG. 3 shows a specific implementation process of the first mobile terminal side S201 of the data transmission method provided by the embodiment of the present invention, which is described in detail as follows:
在S301中,将所述第一移动终端当前的实时定位上传至服务器。In S301, the current real-time positioning of the first mobile terminal is uploaded to a server.
在本实施例中,第一移动终端通过其内置的GPS模块来获取实时定位;若第一移动终端为��机时,还包括基于移动运营网基站的定位的实现方式,通过与无线网络的配合,可以确定第一移动终端的实际位置信息,如经纬度坐标数据,三维数据等。第一移动终端将其获取到的实时定位信息上传至服务器的同时,还可以携带有标识其用户特征的个性标签。In this embodiment, the first mobile terminal obtains real-time positioning through its built-in GPS module; if the first mobile terminal is a mobile phone, it also includes an implementation method of positioning based on the base station of the mobile operation network. The actual location information of the first mobile terminal, such as longitude and latitude coordinate data, three-dimensional data, etc., can be determined. While uploading the acquired real-time positioning information to the server, the first mobile terminal may also carry a personality tag identifying its user characteristics.
在S302中,向所述服务器提交包含搜索条件的目标搜索请求,所述搜索条件包括搜索距离范围值,以使所述服务器对预存储的多个设备的历史信息进行筛选后,从所述设备中确定出一个或多个候选设备,并将所述实时定位以及所述搜索距离范围值下发至所述候选设备,由所述候选设备根据所述第一移动终端的所述实时定位,判断自身的当前位置是否在所述搜索距离范围值之内,若是,则所述候选设备作为所述第二移动终端,将其对应的位置信息返回至所述服务器。In S302, submit a target search request including search conditions to the server, and the search conditions include a search distance range value, so that the server selects the pre-stored historical information of multiple devices, One or more candidate devices are determined in the device, and the real-time positioning and the search distance range value are sent to the candidate device, and the candidate device judges according to the real-time positioning of the first mobile terminal. Whether its current position is within the search distance range value, if so, the candidate device acts as the second mobile terminal and returns its corresponding position information to the server.
对于安装有上述地图类软件的各个设备,服务器将保持固定的时间间隔获取各个设备的设备信息。由于该设备信息在服务器中处于持续更新的状态,因此,在服务器的实时系统时间之前,服务器所获得的各个设备的设备信息均为历史信息。历史信息可以存储在服务器内部的数据库中,还可以独立存储于第三方数据库中。其中,各个设备的历史信息包括但不限于设备的历史定位、个性标签和移动速度等数据信息。For each device with the above map software installed, the server will keep a fixed time interval to obtain the device information of each device. Since the device information is continuously updated in the server, before the real-time system time of the server, the device information of each device obtained by the server is historical information. Historical information can be stored in a database within the server, or independently in a third-party database. The historical information of each device includes, but is not limited to, data information such as historical positioning, personality tags, and moving speed of the device.
若每个设备在过去的某一时刻A上传了设备信息,经过固定的时间后,在某一时刻B再次上传了设备信息,��此时,服务器将该设备的历史信息进行更新或覆盖,使得当前存储的历史信息为最近一次获��到的信息。If each device uploads device information at a certain time in the past, and after a fixed time, B uploads device information again at a certain time, then at this time, the server updates or overwrites the historical information of the device, so that The currently stored historical information is the information obtained last time.
优选地,当设备运行上述地图类软件之时,即使未达到预设的时间点,设备也会将当前时刻的设备信息主动上传至服务器。Preferably, when the device runs the above-mentioned map software, even if the preset time point is not reached, the device will actively upload the device information at the current moment to the server.
服务器根据接收到的搜索条件,对预存储的上述历史信息进行筛选,从而保证最终能够确定出候选设备。其中,候选设备为,具有最大概率成为第二移动终端的设备。The server screens the pre-stored historical information according to the received search conditions, so as to ensure that a candidate device can be finally determined. The candidate device is the device with the highest probability of becoming the second mobile terminal.
服务器筛选完毕后,将第一移动终端上传的实时定位以及搜索条件发送至每一台候选设备。After the screening is completed, the server sends the real-time positioning and search conditions uploaded by the first mobile terminal to each candidate device.
候选设备获取自身的实时定位后,联合第一移动终端的实时定位进行分析处理,并根据搜索条件中的搜索距离范围值,判断出自身是否为第一移动终端所寻求的第二移动终端,若是,则将判断结果以及自身对应的基础信息返回至服务器。After the candidate device obtains its own real-time positioning, it performs analysis and processing in conjunction with the real-time positioning of the first mobile terminal, and judges whether it is the second mobile terminal sought by the first mobile terminal according to the search distance range value in the search conditions, and if so , the judgment result and its corresponding basic information are returned to the server.
作为本发明的一个实施例,在上述S202之后,以及上述S203之前,所述方法还包括:As an embodiment of the present invention, after the above S202 and before the above S203, the method further includes:
当检测到用户在地图上绘制的图案为包含多个所述第二移动终端在内的闭合曲线或分别以所述第一移动终端及所述第二移动终端为起止点的连接线时,确定目标设备为与图案关联的所述第二移动终端。When it is detected that the pattern drawn by the user on the map is a closed curve including a plurality of the second mobile terminals or a connecting line starting and ending with the first mobile terminal and the second mobile terminal respectively, determine The target device is the second mobile terminal associated with the pattern.
由于第一移动终端为触屏设备,即,可根据用户的触摸手势来判断控制指令类别的设备,因此,用户可在地图上绘制预设的图案形状,用于发出关于目标设备的通信连接指令。Since the first mobile terminal is a touch screen device, that is, a device that can determine the type of control instruction according to the user's touch gesture, the user can draw a preset pattern shape on the map to issue a communication connection instruction about the target device .
作为本发明的一个实施示例,图4示出了一台第一移动终端,其中,内部的矩形框为该第一移动终端的显示屏幕,且当前展示了一个覆盖全屏幕的地图片区。每个圆圈点代表一个处于该地图对应位置的第二移动终端,闭合曲线为用户通过触摸屏幕的方式在地图上绘制的图案。在本示例图中,第一移动终端检测到用户绘制的图案为闭合曲线,且能够获知该曲线所包围的圆圈点对应的每个具体第二移动终端,由此,第一移动终端可判断当前接收到的触摸指令为与曲线中包围的每个第二移动终端的通信连接指令,即,曲线中包围的每个第二移动终端即为目标设备,且第一移动终端需要与曲线包围的每个目标设备一一进行通信连接。As an implementation example of the present invention, FIG. 4 shows a first mobile terminal, wherein the inner rectangular frame is the display screen of the first mobile terminal, and a map area covering the full screen is currently displayed. Each circle point represents a second mobile terminal at a corresponding position on the map, and the closed curve is a pattern drawn by the user on the map by touching the screen. In this example figure, the first mobile terminal detects that the pattern drawn by the user is a closed curve, and can know each specific second mobile terminal corresponding to the circle point surrounded by the curve. Therefore, the first mobile terminal can determine the current The received touch command is a communication connection command with each second mobile terminal surrounded by the curve, that is, each second mobile terminal surrounded by the curve is the target device, and the first mobile terminal needs to communicate with each second mobile terminal surrounded by the curve. Each target device communicates with each other one by one.
作为本发明的另一个实施示例,图5示出了另一台第一移动终端,其中,每个圆圈点代表一个处于该地图对应位置的第二移动终端,A点代表第一移动终端自身,B点为用户选中的需要进行通信的一个第二移动终端,连接线为用户通过触摸屏幕的方式在地图上绘制的图案,且该连接线的起止点为A点与B点。由此,第一移动终端可判断当前接收到的触摸指令为与该起止点相对应的设备的通信连接指令,即,第一移动终端A需要与第二移动终端B进行通信连接。因此,第二移动终端B即为目标设备。As another implementation example of the present invention, FIG. 5 shows another first mobile terminal, wherein each circle point represents a second mobile terminal at a corresponding position on the map, point A represents the first mobile terminal itself, Point B is a second mobile terminal selected by the user and needs to communicate, the connecting line is a pattern drawn by the user on the map by touching the screen, and the starting and ending points of the connecting line are points A and B. Thus, the first mobile terminal can determine that the currently received touch command is a communication connection command for the device corresponding to the start and end points, that is, the first mobile terminal A needs to communicate with the second mobile terminal B. Therefore, the second mobile terminal B is the target device.
本实施例通过检测用户所绘制的图案来判断是否获取到通信连接指令,在判定到当前的触摸指令为通信连接指令时,根据图案的形状,能够获取目标设备的相关信息,由此向服务器发出携带该相关信息的通信连接请求。该指令的触发方式操作简单,仅需画一条线即可实现一对一以及一对多的数据传输,相对于传统的目标设备选择方式,减少了选择设备的时间,进而提高了数据传输的效率。In this embodiment, it is determined whether a communication connection instruction is acquired by detecting the pattern drawn by the user. When it is determined that the current touch instruction is a communication connection instruction, the relevant information of the target device can be acquired according to the shape of the pattern, and then sent to the server. A communication connection request carrying the relevant information. The trigger mode of this command is simple to operate, and only one line is needed to realize one-to-one and one-to-many data transmission. Compared with the traditional target device selection method, the time for selecting devices is reduced, thereby improving the efficiency of data transmission. .
图6示出了本发明实施例提供的数据传输方法服务器一侧的实现流程,在本实施例中,流程的执行主体为服务器,具体如下:FIG. 6 shows the implementation process on the server side of the data transmission method provided by the embodiment of the present invention. In this embodiment, the execution body of the process is the server, and the details are as follows:
在S601中,接收第一移动终端上传的包含搜索条件的目标搜索请求。In S601, a target search request including search conditions uploaded by a first mobile terminal is received.
在S602中,获取满足所述搜索条件的至少一个第二移动终端的位置信息。In S602, obtain location information of at least one second mobile terminal that satisfies the search condition.
在S603中,将所述至少一个第二移动终端的位置信息返回至所述第一移动终端,以使所述第一移动终端将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上。In S603, the location information of the at least one second mobile terminal is returned to the first mobile terminal, so that the first mobile terminal displays the location information of the at least one second mobile terminal on the first mobile terminal. on a map of a mobile terminal.
在S604中,当接收到所述第一移动终端发送的与目标设备进行连接的通信请求时,请求所述目标设备与所述第一移动终端建立通信连接,其中,所述目标设备由所述第一移动终端的用户在所述地图中选取,且所述目标设备为一个或多个所述第二移动终端。In S604, when receiving a communication request sent by the first mobile terminal to connect with a target device, request the target device to establish a communication connection with the first mobile terminal, wherein the target device is The user of the first mobile terminal selects in the map, and the target device is one or more of the second mobile terminals.
在S605中,当接收到所述目标设备返回的连接确认信息后,反馈所述连接确认信息至所述第一移动终端,以使所述第一移动终端与所述目标设备进行数据传输。In S605, after receiving the connection confirmation information returned by the target device, the connection confirmation information is fed back to the first mobile terminal, so that the first mobile terminal and the target device perform data transmission.
对于本文中所公开的所有实施例中的内容,在本发明实施例中也同样适用,本发明实施例中的数据传输原理与图1至图5中所描述的数据传输方法的实现原理相一致,因此不一一赘述。The contents of all the embodiments disclosed herein are also applicable to the embodiments of the present invention, and the data transmission principles in the embodiments of the present invention are consistent with the implementation principles of the data transmission methods described in FIG. 1 to FIG. 5 . , so we will not repeat them one by one.
作为本发明的一个实施例,如图7所示,上述S601及S602具体如下:As an embodiment of the present invention, as shown in FIG. 7 , the above S601 and S602 are as follows:
在S701中,接收所述第一移动终端的实时定位以及包含搜索条件的目标搜索请求,所述搜索条件包括搜索距离范围值。In S701, receive the real-time positioning of the first mobile terminal and a target search request including search conditions, where the search conditions include a search distance range value.
���702中,对预存储的各个设备的历史信息进行第一������选以及第二次筛选,以从所述设备中确定出一个或多个候选设备。In 702, a first screening and a second screening are performed on the pre-stored historical information of each device to determine one or more candidate devices from the devices.
服务器根据接收到的搜索条件,先粗略地对各个设备的历史信息进行第一次筛选,以使与搜索条件相关程度较高的设备能够优先得到选取。此后,服务器对选取出的设备再进行第二次筛选,保证最终确定出候选设备。其中,候选设备为,具有最大概率成为第二移动终端的设备。According to the received search conditions, the server roughly firstly filters the historical information of each device, so that devices with a higher degree of relevance to the search conditions can be preferentially selected. After that, the server performs a second screening on the selected device to ensure that the candidate device is finally determined. The candidate device is the device with the highest probability of becoming the second mobile terminal.
在703中,将所述实时定位以及所述搜索距离范围值下发至所述候选设备,以获取所述一个或多个候选设备中满足所述搜索条件的第二移动终端所返回的位置信息。In 703, deliver the real-time positioning and the search distance range value to the candidate device, so as to obtain the position information returned by the second mobile terminal that satisfies the search condition in the one or more candidate devices .
服务器筛选完毕后,将第一移动终端上传的实时定位以及搜索条件发送至每一台候选设备。After the screening is completed, the server sends the real-time positioning and search conditions uploaded by the first mobile terminal to each candidate device.
候选设备获取自身的实时定位后,联合第一移动终端的实时定位进行分析处理,并根据搜索条件中的搜索距离范围值,判断出自身是否为第一移动终端所寻求的第二移动终端,若是,则将判断结果以及自身对应的基础信息返回至服务器。此时,服务器能够获得满足搜索条件的第二移动终端的位置信息。After the candidate device obtains its own real-time positioning, it performs analysis and processing in conjunction with the real-time positioning of the first mobile terminal, and judges whether it is the second mobile terminal sought by the first mobile terminal according to the search distance range value in the search conditions, and if so , the judgment result and its corresponding basic information are returned to the server. At this time, the server can obtain the location information of the second mobile terminal that satisfies the search condition.
本发明实施例中未提到的步骤实现原理,与上述数据传输方法中第一移动终端侧的各个实施例的实现原理均相同,因此不一一赘述。The implementation principles of the steps not mentioned in the embodiments of the present invention are the same as the implementation principles of the first mobile terminal-side embodiments in the above data transmission method, and therefore will not be described in detail.
本实施例在查找第二移动终端时,只需将第一移动终的实时定位以及搜索条件上传至服务器,并由服务器来对各个已知历史信息的设备进行二次筛选处理,保证了在第一次筛选结束后,能够从数据量较大的设备的历史信息中快速剔除相关性较低的数据信息,提高第二移动终端的搜索速度及效率;通过将第一移动终端的搜索条件及实时定位发送至候选设备,由候选设备根据自身的实时信息判断是否满足搜索条件,能够弥补服务器根据历史信息来查找第二移动终端的不足,降低误差出现的可能,保证了第一移动终端最终获取到的关于第二移动终端的基础信息能够更加符合用户的实际需求,提高了对第二移动终端搜索的准确性。When searching for the second mobile terminal in this embodiment, it is only necessary to upload the real-time positioning and search conditions of the first mobile terminal to the server, and the server will perform secondary screening processing on each device with known historical information, ensuring that the After the first screening, the data information with low correlation can be quickly eliminated from the historical information of the device with a large amount of data, so as to improve the search speed and efficiency of the second mobile terminal; The positioning is sent to the candidate device, and the candidate device judges whether the search conditions are met according to its own real-time information, which can make up for the shortage of the server to find the second mobile terminal according to historical information, reduce the possibility of errors, and ensure that the first mobile terminal finally obtains the The basic information about the second mobile terminal can be more in line with the actual needs of the user, and the accuracy of searching for the second mobile terminal is improved.
作为本发明的一个实施例,图8示出了本发明实施例提供的数据传输方法S702中对预存储的各个设备的历史信息进行第一次筛选的具体实现流程,在本实施例中,流程的执行主体为服务器,具体如下:As an embodiment of the present invention, FIG. 8 shows a specific implementation process of first screening the pre-stored historical information of each device in the data transmission method S702 provided by the embodiment of the present invention. In this embodiment, the process The execution body of the server is the server, as follows:
在S801中,根据所述实时定位,获取所述第一移动终端所属的地理区域。In S801, the geographic area to which the first mobile terminal belongs is acquired according to the real-time positioning.
例如,服务器获取第一移动终端的实时定位后,即得到了该实时定位对应的地理数据坐标点,此时,服务器将预存储的行政区域的层面图与所述坐标点进行叠加。若该坐标点位于该层面图的某个行政区域范围之内,则读取该行政区域的名称属性,该名称属性即为第一移动终端当前所在的地理区域。For example, after acquiring the real-time positioning of the first mobile terminal, the server obtains the geographic data coordinate points corresponding to the real-time positioning. At this time, the server superimposes the pre-stored layer map of the administrative region with the coordinate points. If the coordinate point is located within a certain administrative area of the layer map, the name attribute of the administrative area is read, and the name attribute is the geographic area where the first mobile terminal is currently located.
特别地,根据对终端设备的第一次筛选结果的需求程度,行政区域的层面图可分为等级不同的层面图。通过分别将不同等级的层面图与坐标点相叠加,能获取到等级不同的地理区域的名称属性。如,对于同一个坐标点,其可属于广东、深圳或福田区等不同等级的地理区域。In particular, according to the degree of demand for the first screening result of the terminal equipment, the level map of the administrative area can be divided into level maps with different levels. By superimposing layer maps of different levels with coordinate points respectively, the name attributes of geographical areas with different levels can be obtained. For example, for the same coordinate point, it may belong to different levels of geographical areas such as Guangdong, Shenzhen or Futian District.
在S802中,获取预存储的各个设备的历史定位。In S802, the pre-stored historical positioning of each device is acquired.
历史信息可以存储在服务器内部的数据库中,还可以独立存储于第三方数据库中。其中,各个设备的历史信息包括但不限于设备的历史定位、个性标签和移动速度等数据信息。Historical information can be stored in a database within the server, or independently in a third-party database. The historical information of each device includes, but is not limited to, data information such as historical positioning, personality tags, and moving speed of the device.
在S803中,根据所述历史定位,获取各个设备所属的地理区域。In S803, the geographic area to which each device belongs is acquired according to the historical positioning.
利用S801中相同的实现方式,服务器根据每条历史信息中的历史定位,判断在接收到各个设备的历史定位时,该终端设备所在的地理区域。Using the same implementation manner in S801, the server determines, according to the historical location in each piece of historical information, the geographic area where the terminal device is located when the historical location of each device is received.
在S804中,从所述各个设备中筛选出与所述第一移动终端所属的地理区域相同的第一设备。In S804, a first device that is the same as the geographic area to which the first mobile terminal belongs is screened out from the respective devices.
对于任一设备来说,根据其所在的地理区域,可判断该设备与第一移动终端所属的地理区域是否均相同。若相同,则可确定出该设备的用户具有极大的可能性是第一移动终端的用户所想要搜索的群体,因此,将该设备确定为一个第一设备。For any device, according to the geographical area where it is located, it can be determined whether the geographical area to which the device and the first mobile terminal belong are the same. If they are the same, it can be determined that the user of the device is very likely to be the group that the user of the first mobile terminal wants to search for, and therefore, the device is determined to be a first device.
特别地,除了判断该设备与第一移动终端所属的地理区域是否均相同,以筛选出第一设备之外,还可判断该设备与第一移动终端的个性标签是否相同,或者,判断该设备与第一移动终端所属的地理区域以及个性标签是否均相同,以从多个设备中筛选出第一设备。In particular, in addition to judging whether the geographical area to which the device and the first mobile terminal belong are the same, so as to filter out the first device, it is also possible to judge whether the personality tag of the device and the first mobile terminal are the same, or to judge whether the device Whether the geographic area and personality tag to which the first mobile terminal belongs are the same, so as to filter out the first device from multiple devices.
本发明实施例中未提到的步骤实现原理,与上述数据传输方法中第一移动终端侧的各个实施例的实现原理均相同,因此不一一赘述。The implementation principles of the steps not mentioned in the embodiments of the present invention are the same as the implementation principles of the first mobile terminal-side embodiments in the above data transmission method, and therefore will not be described in detail.
作为本发明的一个实施例,图9示出了本发明实施例提供的数据传输方法S702中对预存储的各个设备的历史信息进行第二次筛选的具体实现流程,在本实施例中,流程的执行主体为服务器,具体如下:As an embodiment of the present invention, FIG. 9 shows a specific implementation flow of the second screening of the pre-stored historical information of each device in the data transmission method S702 provided by the embodiment of the present invention. In this embodiment, the flow The execution body of the server is the server, as follows:
在S901中,获取所述第一设备的所述历史信息的更新时间以及所述历史信息中该设备的移动速度。In S901, the update time of the historical information of the first device and the moving speed of the device in the historical information are acquired.
服务器可从历史信息的属性中获取每条历史信息的更新时间,并从每条历史信息中读取每个第一设备的移动速度。The server may obtain the update time of each piece of historical information from the attribute of the historical information, and read the moving speed of each first device from each piece of historical information.
其中,服务器接收设备的历史定位之时,能够基于大数据的处理模式来分析获取每个设备的移动速度,并存储于该设备对应的历史信息中,以便于计算该设备在未来的时刻可能产生的移动距离。Among them, when the server receives the historical positioning of the device, it can analyze and obtain the moving speed of each device based on the processing mode of big data, and store it in the historical information corresponding to the device, so as to facilitate the calculation of the possible generation of the device in the future. moving distance.
在S902中,判断所述第一设备是否满足预设条件,若是,则将所述第一设备确定为所述候选设备;In S902, determine whether the first device satisfies a preset condition, and if so, determine the first device as the candidate device;
其中,所述预设条件为:Wherein, the preset condition is:
A/2>(B1-B2)-(C1-C2)*VA/2>(B 1 -B 2 )-(C 1 -C 2 )*V
上式中,A为所述搜索距离范围值,B1为所述第一设备的历史定位,B2为所述第一移动终端的实时定位,C1为实时时间,C2为所述第一设备的历史信息的更新时间,V为所述第一设备的移动速度。In the above formula, A is the range value of the search distance, B1 is the historical positioning of the first device, B2 is the real - time positioning of the first mobile terminal, C1 is the real-time time, and C2 is the first. The update time of the historical information of a device, and V is the moving speed of the first device.
服务器将每个第一候选设备对应的信息参数值代入预设条件中,以判断该预设条件是否成立,若是,则确定该第一设备为候选设备。The server substitutes the information parameter value corresponding to each first candidate device into the preset condition, so as to determine whether the preset condition is satisfied, and if so, determines that the first device is a candidate device.
作为本发明的一个实施例,图10示出了本发明实施例提供的数据传输方法S704的具体实现流程,详述如下:As an embodiment of the present invention, FIG. 10 shows a specific implementation process of the data transmission method S704 provided by the embodiment of the present invention, which is described in detail as follows:
在S1001中,根据所述历史信息的更新时间的先后顺序,对所述候选设备进行排序。In S1001, the candidate devices are sorted according to the order of the update time of the historical information.
由于每个候选设备在服务器中拥有一条历史信息,且服务器记录由该条历史信息的更新时间,因此,可根据历史信息的更新时间,对所有历史信息进行升序排序,排序后的每条历史信息的顺序即为该条历史信息所对应的候选设备的排序结果。Since each candidate device has a piece of historical information in the server, and the server records the update time of the piece of historical information, all historical information can be sorted in ascending order according to the update time of the historical information. The order of is the sorting result of the candidate devices corresponding to the piece of historical information.
本实施例中,对于服务器在距离当前时刻最近的一个时间点所获取到的一条历史信息,该历史信息的更新时间越“先”,对于服务器在距离当前时刻最远的一个时间点所获取到的一条历史信息,该历史信息的更新时间越“后”。In this embodiment, for a piece of historical information acquired by the server at a point in time closest to the current moment, the more "first" the historical information is updated, the more "first" the historical information is updated, the more information the server acquires at a point in time farthest from the current moment A piece of historical information, the more "later" the update time of the historical information is.
其中,排序规则具体达到的效果为,使得历史信息的更新时间较迟的候选设备排在历史信息的更新时间较早的候选目标设备之前。The specific effect of the sorting rule is to make the candidate device with a later update time of the historical information to be ranked before the candidate target device with an earlier update time of the historical information.
在S1002中,依照所述候选设备的排序,将所述实时定位以及所述搜索距离范围值依次下发至所述候选设备。In S1002, according to the sorting of the candidate devices, the real-time positioning and the search distance range value are sequentially delivered to the candidate devices.
排序在前的候选目标设备优先级级别越高,权重越大。因此,服务器将第一移动终端上传的实时定位及搜索条件下发至每个候选设备时,将会依照优先级的级别程度,依次进行数据的下发。The higher the priority of the candidate target device in the ranking, the higher the weight. Therefore, when the server sends the real-time positioning and search conditions uploaded by the first mobile terminal to each candidate device, the data will be sent in sequence according to the level of priority.
通过本实施例提供的数据下发方式,保证了历史信息更新时间较迟的候选设备能够优先收到服务器下发的搜索条件信息,并提前根据该搜索条件信来进行自我判断处理,从而能够更快地将判断结果返回服务器。由于历史信息更新时间较迟的候选目标设备可能成为第二移动终端的概率最高,因此,能够提高第一移动终端对于第二移动终端的搜索效率。The data delivery method provided in this embodiment ensures that candidate devices with a late update time of historical information can preferentially receive the search condition information delivered by the server, and perform self-judgment processing according to the search condition information in advance, so as to be able to update more information. Quickly return the judgment result to the server. Since the candidate target device whose history information is updated later may have the highest probability of becoming the second mobile terminal, the search efficiency of the first mobile terminal for the second mobile terminal can be improved.
作为本发明的一个实施例,服务器获取第一移动终端及目标设备上传的热点接入信息,其中,该第一移动终端及目标设备处于通信连接状态中。As an embodiment of the present invention, the server acquires the hotspot access information uploaded by the first mobile terminal and the target device, wherein the first mobile terminal and the target device are in a communication connection state.
服务器读取该热点接入信息后,当识别到两端设备均连接了相同的无线热点时,则切换该第一移动终端及目标设备的数据传输方式。即,从本来的由服务器中转数据的方式切换为两端设备直接通过无线局域网来进行传输的方式。After reading the hotspot access information, the server switches the data transmission modes of the first mobile terminal and the target device when recognizing that both devices at both ends are connected to the same wireless hotspot. That is, the original mode of transferring data by the server is switched to the mode in which the devices at both ends directly transmit data through the wireless local area network.
作为本发明的一个实施例,当第一移动终端请求下载目标设备中的数据时,目标设备发起密码获取请求,请求第一移动终端将下载密码发送至该目标设备。在接收到第一移动终端发过来的下载密码后,目标设备根据存储在内部的预设密码,判断该预设密码是否与下载密码相同。若相同,则允许第一移动终端对其存储的数据进行下载。As an embodiment of the present invention, when the first mobile terminal requests to download data in the target device, the target device initiates a password acquisition request, requesting the first mobile terminal to send the download password to the target device. After receiving the download password sent by the first mobile terminal, the target device determines whether the preset password is the same as the download password according to the preset password stored in the interior. If the same, the first mobile terminal is allowed to download the stored data.
优选地,第二移动终端获取用户预设在其内部的时间段信息。在该第二移动终端被确定为候选设备时,若检测到当前的系统时间不在该时间段之内,则拒绝接收到服务器发送过来的搜索距离范围值以及第一移动终端的实时定位,以使第一移动终端无法实现对该第二移动终端的搜索,无法与其传输数据。Preferably, the second mobile terminal acquires the time period information preset by the user in the second mobile terminal. When the second mobile terminal is determined as a candidate device, if it is detected that the current system time is not within the time period, the server refuses to receive the search distance range value sent by the server and the real-time positioning of the first mobile terminal, so that the The first mobile terminal cannot search for the second mobile terminal and cannot transmit data therewith.
优选地,第二移动终端获取用户预设在其内部的距离范围值。在该第二移动终端被确定为候选设备时,若接收到服务器发送过来的搜索距离范围值以及第一移动终端的实时定位,则该第二移动终端判断当前自身所处的位置与第一移动终端的距离是否在预设的所述距离范围值之内。若当前自身所处的位置与第一移动终端的距离不在预设的所述距离范围值,则不返回关于自身设备的基础信息,以使第一移动终端无法实现对该第二移动终端的搜索,无法与其传输数据。Preferably, the second mobile terminal acquires a distance range value preset by the user within the second mobile terminal. When the second mobile terminal is determined as a candidate device, if it receives the search distance range value sent by the server and the real-time positioning of the first mobile terminal, the second mobile terminal judges the current position of itself and the first mobile terminal. Whether the distance of the terminal is within the preset distance range value. If the distance between the current position of the user and the first mobile terminal is not within the preset distance range value, the basic information about the own device is not returned, so that the first mobile terminal cannot search the second mobile terminal. , cannot transfer data to it.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
对应于本发明实施例所提供的第一移动终端侧的数据传输方法,图11示出了本发明实施例提供的移动终端的结构框图,该移动终端用于完成上述数据传输方法中第一移动终端所需实现的功能。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the data transmission method on the side of the first mobile terminal provided by the embodiment of the present invention, FIG. 11 shows a structural block diagram of the mobile terminal provided by the embodiment of the present invention, and the mobile terminal is used to complete the first mobile terminal in the above data transmission method. The functions that the terminal needs to implement. For convenience of explanation, only the parts related to this embodiment are shown.
参照图11,该移动终端包括:11, the mobile terminal includes:
提交单元1101,用于向服务器提交包含搜索条件的目标搜索请求,以使所述服务器获取满足所述搜索条件的至少一个第二移动终端的位置信息。The submitting
接收单元1102,用于接收所述服务器下发的所述至少一个第二移动终端的位置信息,并将所述至少一个第二移动终端的位置信息显示于第一移动终端的地图上。The receiving
发送单元1103,用于根据用户在所述地图上选择的目标设备,向所述服务器发送与所述目标设备进行连接的通信请求,所述目标设备为一个或多个所述第二移动终端。The sending
传输单元1104,用于在接收到所述服务器反馈的与所述目标设备连接的确认信息后,与所述目标设备进行数据传输。The
可选地,所述移动终端还包括:Optionally, the mobile terminal further includes:
上传单元,用于将所述第一移动终端当前的实时定位上传至服务器。The uploading unit is configured to upload the current real-time positioning of the first mobile terminal to the server.
所述提交单元1101具体用于:The submitting
向所述服务器提交包含搜索条件的目标搜索请求,所述搜索条件包括搜索距离范围值,以使所述服务器对预存储的多个设备的历史信息进行筛选后,从所述设备中确定出一个或多个候选设备,并将所述实时定位以及所述搜索距离范围值下发至所述候选设备,由所述候选设备根据所述第一移动终端的所述实时定位,判断自身的当前位置是否在所述搜索距离范围值之内,若是,则所述候选设备作为所述第二移动终端,将其对应的位置信息返回至所述服务器。Submit a target search request containing search conditions to the server, and the search conditions include a search distance range value, so that after the server has screened the pre-stored historical information of a plurality of devices, a or multiple candidate devices, and send the real-time positioning and the search distance range value to the candidate device, and the candidate device determines its current position according to the real-time positioning of the first mobile terminal Whether it is within the search distance range value, and if so, the candidate device, as the second mobile terminal, returns its corresponding location information to the server.
可选地,所述移动终端还包括:Optionally, the mobile terminal further includes:
检测单元,用于当检测到用户在地图上绘制的图案为包含多个所述第二移动终端在内的闭合曲线或分别以所述第一移动终端及所述第二移动终端为起止点的连接线时,确定目标设备为与图案关联的所述第二移动终端。The detection unit is configured to detect that the pattern drawn by the user on the map is a closed curve including a plurality of the second mobile terminals or a pattern starting and ending with the first mobile terminal and the second mobile terminal respectively. When connecting the lines, it is determined that the target device is the second mobile terminal associated with the pattern.
对应于上文实施例所述的服务器一侧的数据传输方法,图12示出了本发明实施例提供的服务器的结构框图,为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the data transmission method on the server side described in the above embodiment, FIG. 12 shows a structural block diagram of the server provided by the embodiment of the present invention. For convenience of description, only the part related to this embodiment is shown.
参照图12,该服务器包括:Referring to Figure 12, the server includes:
接收单元1201,用于接收第一移动终端上传的包含搜索条件的目标搜索请求。The receiving
获取单元1202,用于获取满足所述搜索条件的至少一个第二移动终端的位置信息。The obtaining
返回单元1203,用于将所述至少一个第二移动终端的位置信息返回至所述第一移动终端,以使所述第一移动终端将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上。Returning
请求单元1204,用于当接收到所述第一移动终端发送的与目标设备进行连接的通信请求时,请求所述目标设备与所述第一移动终端建立通信连接,其中,所述目标设备由所述第一移动终端的用户在所述地图中选取,且所述目标设备为一个或多个所述第二移动终端。The requesting
反馈单元1205,用于当接收到所述目标设备返回的连接确认信息后,反馈所述连接确认信息至所述第一移动终端,以使所述第一移动终端与所述目标设备进行数据传输。The
可选地,所述接收单元1201包括:Optionally, the receiving
接收子单元,用于接收所述第一移动终端的实时定位以及包含搜索条件的目标搜索请求,所述搜索条件包括搜索距离范围值。The receiving subunit is configured to receive the real-time positioning of the first mobile terminal and a target search request including search conditions, where the search conditions include a search distance range value.
所述获取单元1202包括:The obtaining
筛选子单元,用于对预存储的各个设备的历史信息进行第一次筛选以及第二次筛选,以从所述设备中确定出一个或多个候选设备。The screening subunit is configured to perform a first screening and a second screening on the pre-stored historical information of each device, so as to determine one or more candidate devices from the devices.
获取子单元,用于将所述实时定位以及所述搜索距离范围值下发至所述候选设备,以获取所述一个或多个候选设备中满足所述搜索条件的第二移动终端所返回的位置信息。The obtaining subunit is configured to send the real-time positioning and the search distance range value to the candidate device, so as to obtain the information returned by the second mobile terminal that satisfies the search condition in the one or more candidate devices. location information.
可选地,所述筛选子单元具体用于:Optionally, the screening subunit is specifically used for:
根据所述实时定位,获取所述第一移动终端所属的地理区域;obtaining, according to the real-time positioning, the geographic area to which the first mobile terminal belongs;
获取预存储的各个设备的历史定位;Obtain the pre-stored historical positioning of each device;
根据所述历史定位,获取各个设备所属的地理区域;According to the historical positioning, obtain the geographic area to which each device belongs;
从所述各个设备中筛选出与所述第一移动终端所属的地理区域相同的第一设备。A first device that is the same as the geographic area to which the first mobile terminal belongs is filtered out from the respective devices.
可选地,所述筛选子单元还用于:Optionally, the screening subunit is also used for:
获取所述第一设备的所述历史信息的更新时间以及所述历史信息中该设备的移动速度;Obtain the update time of the historical information of the first device and the moving speed of the device in the historical information;
判断所述第一设备是否满足预设条件,若是,则将所述第一设备确定为所述候选设备;Determine whether the first device satisfies a preset condition, and if so, determine the first device as the candidate device;
其中,所述预设条件为:Wherein, the preset condition is:
A/2>(B1-B2)-(C1-C2)*V;A/2>(B 1 -B 2 )-(C 1 -C 2 )*V;
上式中,A为所述搜索距离范围值,B1为所述第一设备的历史定位,B2为所述第一移动终端的实时定位,C1为实时时间,C2为所述第一设备的历史信息的更新时间,V为所述第一设备的移动速度。In the above formula, A is the range value of the search distance, B1 is the historical positioning of the first device, B2 is the real - time positioning of the first mobile terminal, C1 is the real-time time, and C2 is the first. The update time of the historical information of a device, and V is the moving speed of the first device.
可选地,所述获取子单元具体用于:Optionally, the obtaining subunit is specifically used for:
根据所述历史信息的更新时间的先后顺序,对所述候选设备进行排序;Sorting the candidate devices according to the sequence of the update time of the historical information;
依照所述候选设备的排序,将所述实时定位以及所述搜索距离范围值依次下发至所述候选设备。According to the sorting of the candidate devices, the real-time positioning and the search distance range value are sequentially delivered to the candidate devices.
图13示出了本发明另一实施例提供的移动终端的结构框图,该移动终端用于完成上述数据传输方法中第一移动终端所需实现的功能。为了便于说明,仅示出了与本实施例相关的部分。FIG. 13 shows a structural block diagram of a mobile terminal provided by another embodiment of the present invention, where the mobile terminal is used to complete the functions required to be implemented by the first mobile terminal in the above data transmission method. For convenience of explanation, only the parts related to this embodiment are shown.
图13所示的移动终端1300包括:至少一个处理器1301、存储器1302、至少一个网络接口1303和用户接口1304。移动终端1300中的各个组件通过总线系统1305耦合在一起。可理解,总线系统805用于实现这些组件之间的连接通信。总线系统1305除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图13中将各种总线都标为总线系统1305。The mobile terminal 1300 shown in FIG. 13 includes: at least one processor 1301 , memory 1302 , at least one
其中,用户接口1304可以包括显示器、键盘或者点击设备。例如,鼠标、轨迹球(trackball)、���������或者触���屏等。Among them, the
可以理解,本发明实施例中的存储器1302可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本文描述的系统和方法的存储器1302旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1302 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (ErasablePROM, EPROM), Electrically Erasable Program read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be Random Access Memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (DirectRambusRAM, DRRAM). The memory 1302 of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.
在一些实施方式中,存储器1302存储了如下的元素,可执行模块或者数据结构,或���他们的子集,或者他们的扩展集:操作系统1321和应用程序1322。In some embodiments, memory 1302 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set of them: an operating system 1321 and applications 1322 .
其中,操作系统1321,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序1322,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序1322中。The operating system 1321 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 1322 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. The program implementing the method of the embodiment of the present invention may be included in the application program 1322 .
在本发明实施例中,通过调用存储器1302存储的程序或指令,具体地,可以是应用程序1322中存储的程序或指令,处理器1301用于接收关于第二移动终端的社交动态更新提示信息;获取所述第二移动终端的实时地理位置;将所述第二移动终端的实时地理位置以及所述社交动态更新提示信息显示在所述第一移动终端的电子地图界面。In this embodiment of the present invention, by calling the program or instruction stored in the memory 1302, specifically, the program or instruction stored in the application program 1322, the processor 1301 is configured to receive social dynamic update prompt information about the second mobile terminal; Acquiring the real-time geographic location of the second mobile terminal; and displaying the real-time geographic location of the second mobile terminal and the social dynamic update prompt information on the electronic map interface of the first mobile terminal.
上述本发明实施例揭示的方法可以应用于处理器1301中,或者由处理器1301实现。处理器1301可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1301中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1301可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecific IntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电��擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1302,处理器1301读取存储器1302中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 1301 or implemented by the processor 1301 . The processor 1301 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 1301 or an instruction in the form of software. The above-mentioned processor 1301 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates. Or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 1302, and the processor 1301 reads the information in the memory 1302, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD) ), a Field-Programmable Gate Array (FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.
对于软件实现,可通过执行本文所述功能的单元模块,例如过程、函数等,来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented through unit modules, such as procedures, functions, etc., that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
可选地,处理器1301还用于:Optionally, the processor 1301 is further configured to:
向服务器提交包含搜索条件的目标搜索请求,以使所述服务器获取满足所述搜索条件的至少一个第二移动终端的位置信息;Submitting a target search request containing search conditions to the server, so that the server obtains location information of at least one second mobile terminal that satisfies the search conditions;
接收所述服务器下发的所述至少一个第二移动终端的位置信息,并将所述至少一个第二移动终端的位置信息显示于所述第一移动终端的地图上;receiving the location information of the at least one second mobile terminal issued by the server, and displaying the location information of the at least one second mobile terminal on a map of the first mobile terminal;
根据用户在所述地图上选择的目标设备,向所述服务器发送与所述目标设备进行连接的通信请求,所述目标设备为一个或多个所述第二移动终端;Send a communication request to the server to connect with the target device according to the target device selected by the user on the map, where the target device is one or more of the second mobile terminals;
在接收到所述服务器反馈的与所述目标设备连接的确认信息后,与所述目标设备进行数据传输。After receiving the confirmation information fed back by the server to connect with the target device, perform data transmission with the target device.
可选地,处理器1301还用于:Optionally, the processor 1301 is further configured to:
将所述第一移动终端当前的实时定位上传至服务器;uploading the current real-time positioning of the first mobile terminal to the server;
向所述服务器提交包含搜索条件的目标搜索请求,所述搜索条件包括搜索距离范围值,以使所述服务器对预存储的多个设备的历史信息进行筛选后,从所述设备中确定出一个或多个候选设备,并将所述实时定位以及所述搜索距离范围值下发至所述候选设备,由所述候选设备根据所述第一移动终端的所述实时定位,判断自身的当前位置是否在所述搜索距离范围值之内,若是,则所述候选设备作为所述第二移动终端,将其对应的位置信息返回至所述服务器。Submit a target search request containing search conditions to the server, and the search conditions include a search distance range value, so that after the server has screened the pre-stored historical information of a plurality of devices, a or multiple candidate devices, and send the real-time positioning and the search distance range value to the candidate device, and the candidate device determines its current position according to the real-time positioning of the first mobile terminal Whether it is within the search distance range value, and if so, the candidate device, as the second mobile terminal, returns its corresponding location information to the server.
可选地,处理器1301还用于:Optionally, the processor 1301 is further configured to:
当检测到用户在地图上绘制的图案为包含多个所述第二移动终端在内的闭合曲线或分别以所述第一移动终端及所述第二移动终端为起止点的连接线时,确定目标设备为与图案关联的所述第二移动终端。When it is detected that the pattern drawn by the user on the map is a closed curve including a plurality of the second mobile terminals or a connecting line starting and ending with the first mobile terminal and the second mobile terminal respectively, determine The target device is the second mobile terminal associated with the pattern.
移动终端1300能够实现前述实施例中第一移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 1300 can implement each process implemented by the first mobile terminal in the foregoing embodiment, and in order to avoid repetition, details are not repeated here.
本发明实施例基于地图类软件来实现两端设备之间的数据传输,以第一移动终端上传的搜索条件为依据,由服务器来对筛选满足搜索条件的第二移动终端,保证了对于第二移动终端的搜索范围能够不受第一移动终端信号传输距离的限制;第一移动终端能够根据服务器返回的第二移动终端的位置信息,从当前显示的地图中,直观地查看并选择目标设备来完成数据传输,操作简单,扩大了地图类软件的应用场景。本发明实施例使得用户能够随时随地地将数据传输至附近范围内的第二移动终端,能够与使用该第二移动终端的陌生人进行通信,因此,满足了用户日益增长的社交需求,扩展了地图类软件的社交功能。This embodiment of the present invention implements data transmission between devices at both ends based on map software. Based on the search conditions uploaded by the first mobile terminal, the server screens the second mobile terminals that satisfy the search conditions, ensuring that the second mobile terminal meets the search conditions. The search range of the mobile terminal can not be limited by the signal transmission distance of the first mobile terminal; the first mobile terminal can intuitively view and select the target device from the currently displayed map according to the location information of the second mobile terminal returned by the server. The data transmission is completed, the operation is simple, and the application scenarios of map software are expanded. The embodiment of the present invention enables the user to transmit data to the second mobile terminal in the vicinity anytime, anywhere, and to communicate with strangers using the second mobile terminal. Therefore, the user's growing social needs are met, and the The social function of map software.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710031311.8A CN106792545B (en) | 2017-01-17 | 2017-01-17 | Data transmission method, mobile terminal and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710031311.8A CN106792545B (en) | 2017-01-17 | 2017-01-17 | Data transmission method, mobile terminal and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106792545A CN106792545A (en) | 2017-05-31 |
| CN106792545B true CN106792545B (en) | 2020-06-12 |
Family
ID=58945933
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710031311.8A Active CN106792545B (en) | 2017-01-17 | 2017-01-17 | Data transmission method, mobile terminal and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106792545B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107247779A (en) * | 2017-06-08 | 2017-10-13 | 天津神笔马良网络科技有限公司 | Searching method, device and the mobile terminal of interaction community |
| CN107450797A (en) * | 2017-07-07 | 2017-12-08 | 天脉聚源(北京)科技有限公司 | A kind of method for information display and device |
| CN108363794A (en) * | 2018-02-13 | 2018-08-03 | 山东顺国电子科技有限公司 | A kind of Visualization Platform Big Dipper note transmission method and device |
| CN108769917B (en) * | 2018-05-16 | 2021-11-23 | 上海掌门科技有限公司 | Service interaction method, equipment and storage medium |
| CN108848570B (en) * | 2018-06-19 | 2020-09-01 | Oppo广东移动通信有限公司 | Mobile terminal, data transmission method and related product |
| CN110740115A (en) * | 2018-07-20 | 2020-01-31 | 视联动力信息技术股份有限公司 | Data processing method and device for video networks |
| CN111079046A (en) * | 2019-11-14 | 2020-04-28 | 拉扎斯网络科技(上海)有限公司 | Information loading method, system, server, terminal and storage medium |
| CN111031471A (en) * | 2019-11-25 | 2020-04-17 | 维沃移动通信有限公司 | A data transmission method, terminal and base station |
| CN111310073B (en) * | 2020-01-19 | 2024-03-15 | 北京有竹居网络技术有限公司 | Property information display methods, devices and electronic equipment |
| CN114531643A (en) * | 2020-11-09 | 2022-05-24 | Oppo广东移动通信有限公司 | Social contact matching method, device, equipment and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011035887A (en) * | 2009-08-03 | 2011-02-17 | Tomio Kakeuchi | In-emergency gps mobile phone |
| CN103341265A (en) * | 2013-06-28 | 2013-10-09 | 魏兢 | Social contact method based on mobile terminal |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102592439A (en) * | 2012-02-03 | 2012-07-18 | 苏州大通汽车租赁有限公司 | Method and system for interactively calling taxi nearby by intelligent mobile equipment |
-
2017
- 2017-01-17 CN CN201710031311.8A patent/CN106792545B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011035887A (en) * | 2009-08-03 | 2011-02-17 | Tomio Kakeuchi | In-emergency gps mobile phone |
| CN103341265A (en) * | 2013-06-28 | 2013-10-09 | 魏兢 | Social contact method based on mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106792545A (en) | 2017-05-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106792545B (en) | Data transmission method, mobile terminal and server | |
| US10890451B2 (en) | Place of interest recommendation | |
| US10440538B2 (en) | Location and contextual-based mobile application promotion and delivery | |
| US8639803B2 (en) | Systems and method for predicting the future location of an entity | |
| CN104221046B (en) | Method and apparatus for prefetching place page data for subsequent display on a mobile computing device | |
| US8265871B1 (en) | Mobile record information entry and geotagging | |
| US11825378B2 (en) | System and method for requesting an updated user location | |
| US9081860B2 (en) | Integration of device location into search | |
| US20150163630A1 (en) | Systems and methods for geo-location based message streams | |
| CN103179343A (en) | Mobile terminal and method of controlling the same for remote capture of images | |
| KR20150145168A (en) | Method and system for pushing point of interest information | |
| US20100120401A1 (en) | Automatic contact information entry via location sensing | |
| JP5840647B2 (en) | Geocode data detection and user interface therefor | |
| JP5770179B2 (en) | Presenting a digital map | |
| WO2017020554A1 (en) | Method and device for providing wireless access point | |
| US9918193B1 (en) | Hybrid electronic navigation and invitation system | |
| US20140156704A1 (en) | Predictively presenting search capabilities | |
| US20150099545A1 (en) | Location information-based communication apparatus and method, and location information-based communication application apparatus | |
| US10331690B2 (en) | Method for sorting and displaying data on a portable electronic device | |
| KR102149914B1 (en) | Point of interest update method and apparatus based crowd sourcing | |
| CN113326446B (en) | Method, system and recording medium for providing content context information based service | |
| US20110047184A1 (en) | Method of managing contact item information, user device for executing the method, and storage medium thereof | |
| CN109089216B (en) | A file transmission method and device based on Bluetooth transmission | |
| US10551202B2 (en) | Generating itinerary destinations and recommendations from scanned content | |
| JP7807507B2 (en) | Instant messaging service method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20171109 Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Applicant after: VIVO MOBILE COMMUNICATION CO., LTD. Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Applicant before: VIVO MOBILE COMMUNICATION CO., LTD. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20200703 Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd. Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Co-patentee before: Wewo Mobile Communication Co.,Ltd. Beijing branch Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd. |
|
| TR01 | Transfer of patent right |
