WO2017107682A1 - Wireless network-based positioning method, device, and intelligent terminal - Google Patents

Wireless network-based positioning method, device, and intelligent terminal Download PDF

Info

Publication number
WO2017107682A1
WO2017107682A1 PCT/CN2016/104573 CN2016104573W WO2017107682A1 WO 2017107682 A1 WO2017107682 A1 WO 2017107682A1 CN 2016104573 W CN2016104573 W CN 2016104573W WO 2017107682 A1 WO2017107682 A1 WO 2017107682A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network
network identifier
identifier
wireless
Prior art date
Application number
PCT/CN2016/104573
Other languages
French (fr)
Chinese (zh)
Inventor
李崇欣
周夏颖
刘慧勇
韩灿阳
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017107682A1 publication Critical patent/WO2017107682A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present invention relates to the field of smart device applications, and in particular, to a wireless network-based positioning method, device, and intelligent terminal.
  • the map service does not include the geographical location information corresponding to the WIFI, so the location information of the smart terminal cannot be obtained according to the WIFI scanned by the smart terminal.
  • the present invention provides a wireless network-based positioning method, device, and intelligent terminal, which can accurately locate the wireless connection information sent by the terminal to be located.
  • the present invention provides the following technical solutions:
  • the present invention provides a wireless network-based positioning method, including: receiving wireless connection information sent by a terminal to be located, where the wireless connection information includes a network identifier of a wireless network currently detected by the terminal to be located, and The hardware identifier of the terminal to be located; the mapping relationship of the terminal to be located is obtained according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information; and the mapping is performed according to the received network identifier. Searching in the relationship, obtaining location information corresponding to the received network identifier, and determining the location information as current location information of the to-be-located terminal.
  • the present invention further provides a method for locating a wireless network, comprising: transmitting, by the terminal to be located, a network identifier of the wireless network detected by the terminal to be located, and a hardware identifier of the terminal to be located Wirelessly connect information to make the service Obtaining the mapping relationship of the to-be-located terminal according to the hardware identifier, and searching for and obtaining location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the current location of the to-be-located terminal location information.
  • the present invention further provides a positioning device based on a wireless network, comprising: a receiving unit, configured to receive wireless connection information sent by a terminal to be located, where the wireless connection information includes that the terminal to be located currently detects a network identifier of the wireless network and a hardware identifier of the terminal to be located; an obtaining unit, configured to acquire, according to the hardware identifier, a mapping relationship between the terminal to be located, where the mapping relationship includes a correspondence between the network identifier and the location information
  • the locating unit is configured to search for the location information corresponding to the received network identifier according to the received network identifier, and determine the location information as the current location information of the to-be-located terminal.
  • the present invention further provides an intelligent terminal, comprising: a sending unit, configured to send, to a server, wireless connection information including a network identifier of a wireless network detected by the smart terminal and a hardware identifier of the smart terminal, Obtaining, by the server, the mapping relationship of the smart terminal according to the hardware identifier, and searching for the location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the terminal to be located. Current location information.
  • the invention also provides a computer program comprising computer readable code, which when executed on a computing device causes the computing device to perform the method as described above.
  • the invention also provides a computer readable medium storing a computer program as described above.
  • the wireless network-based positioning method of the present invention first receives the wireless connection information sent by the terminal to be located, and the wireless connection information includes the network of the wireless network currently detected by the terminal to be located. Identifying a hardware identifier of the terminal to be located; and then obtaining a mapping relationship between the terminal to be located according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information; and finally, according to the received network identifier Find in the obtained mapping relationship to obtain and receive the network The location information corresponding to the network identifier is determined, and the location information is determined as current location information of the terminal to be located, thereby completing positioning of the terminal to be located.
  • the wireless network-based positioning method of the present invention can determine the to-be-located terminal according to the wireless connection information (including the network identifier) sent by the terminal to be located and the pre-stored mapping relationship corresponding to the to-be-located terminal. Location information. Because the pre-stored mapping relationship includes the correspondence between the network identifier and the location information, the positioning method of the present invention only needs to determine the location information of the to-be-located terminal according to the received network identifier. Therefore, as in the prior art, the wireless network detected by the terminal to be located belongs to the private wireless network (or the geographic location information corresponding to the wireless network is not included in the map service), and the positioning terminal cannot be positioned or forced. Inaccurate positioning caused by base station positioning.
  • FIG. 1 is a flowchart of a wireless network-based positioning method according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of a wireless network-based positioning method according to a second embodiment of the present invention.
  • FIG. 3 is a flowchart of a wireless network-based positioning method according to a third embodiment of the present invention.
  • FIG. 4 is a flowchart of a wireless network-based positioning method according to a fifth embodiment of the present invention.
  • FIG. 5 is a flowchart of another wireless network-based positioning method according to a sixth embodiment of the present invention.
  • FIG. 6 is a flowchart of another wireless network-based positioning method according to a seventh embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a wireless network-based positioning apparatus according to a ninth embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a wireless network-based positioning apparatus according to a tenth embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a wireless network-based positioning apparatus according to an eleventh embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a wireless network-based positioning apparatus according to a thirteenth embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a smart terminal according to a fourteenth embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a smart terminal according to a fifteenth embodiment of the present invention.
  • Figure 13 shows a block diagram of a computing device for performing a method in accordance with the present invention
  • Figure 14 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention.
  • These intelligent terminals can be based on base station positioning or WIFI positioning when performing positioning. By The location of the base station has a large error, so WIFI positioning is preferred in the case of WIFI. When there is no WIFI signal, it will automatically retreat and select the base station positioning. However, due to the small size and weak signal of these intelligent terminals, it is impossible to scan more WIFIs. These intelligent terminals can only scan a few WIFIs with strong signals nearby, but these WIFIs (such as home WIFI) are likely It belongs to the private WIFI, and the map service does not include the geographical location information corresponding to these WIFIs. Therefore, the location information of the smart terminal cannot be obtained according to the scanned WIFI. In order to solve this problem, the following embodiments of the present invention propose a positioning method based on a wireless network.
  • FIG. 1 is a flowchart of a wireless network-based positioning method according to a first embodiment of the present invention.
  • a wireless network-based positioning method according to a first embodiment of the present invention includes the following steps:
  • Step 101 Receive wireless connection information sent by the terminal to be located, where the wireless connection information includes a network identifier of the wireless network currently detected by the terminal to be located, and a hardware identifier of the terminal to be located.
  • the server receives the wireless connection information sent by the terminal to be located, where the wireless connection information includes the network identifier of the wireless network currently detected by the terminal to be located, and the hardware identifier of the terminal to be located.
  • the server here refers to a server having a specific relationship with the terminal to be located, and the server is responsible for background maintenance and data processing of the terminal to be located. For example, the positioning work of the terminal to be located is handled by the server.
  • the network identifier of the wireless network may be a WIFI name, a MAC address of a wireless network, or other identifier that can represent a wireless network.
  • the hardware identifier of the terminal to be located may be a production serial number of the terminal to be located or an identifier such as an IMEI, which may uniquely represent the terminal to be located.
  • the wireless connection information in this step is sent when the to-be-positioned terminal performs positioning according to a positioning period. Specifically, when the positioning period is reached, the to-be-positioned terminal performs wireless network detection, and if the wireless network is detected, sends a wireless connection letter to the server.
  • the wireless connection information includes a network identifier of the wireless network currently detected by the terminal to be located, and a hardware identifier of the terminal to be located.
  • the wireless connection information in this step may also be sent when the user triggers.
  • the user of the terminal to be located presses a preset positioning key, and the terminal to be located starts wireless network detection, and if the wireless network is detected, sends the wireless connection information to the server.
  • Step 102 Obtain a mapping relationship between the to-be-located terminal according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information.
  • the server is responsible for the positioning work of a larger number of intelligent terminals. Therefore, the server stores multiple mapping relationships, and each mapping relationship corresponds to one smart terminal. Therefore, in this step, the server may obtain a mapping relationship corresponding to the hardware identifier according to the hardware identifier received in step 101, where the mapping relationship is a mapping relationship corresponding to the terminal to be located.
  • the mapping relationship includes a common network identifier of the terminal to be located and location information corresponding to the common network identifier.
  • mapping relationship corresponding to the terminal to be located may be preset or may be automatically established by the server.
  • the process of the server automatically establishing the mapping relationship can be referred to the following second or third embodiment.
  • Step 103 Searching in the mapping relationship according to the received network identifier, obtaining location information corresponding to the received network identifier, and determining the location information as current location information of the to-be-located terminal.
  • the network identifier received in the above step 101 is searched in the mapping relationship acquired in the above step 102 to determine whether the network identifier received in step 101 exists in the mapping relationship acquired in step 102. If yes, the network identifier received in step 102 is obtained.
  • the location information corresponding to the network identifier received in step 101 is obtained in the mapping relationship, and the location information is determined as the current location information of the to-be-located terminal, thereby completing positioning of the to-be-located terminal.
  • the network identifier received in the above step 101 is a WIFI name, and the WIFI name is specifically "dengdeng".
  • the mapping relationship acquired in the above step 102 is as shown in Table 1 below.
  • the location information “home” corresponding to “dengdeng” is obtained from the above table 1 according to the received network identifier “dengdeng”, and the location information “home” is determined as the current location information of the terminal to be located, thereby completing the pair. Positioning of the terminal to be located.
  • the location information in the above table is some commonly used location names, so that the obtained location information is relatively intuitive.
  • the location information may also be geographic location information, such as a certain street, a certain cell, geographic location coordinates, etc. Wait.
  • the terminal to be located since the terminal to be located detects the wireless network at home, the location information corresponding to the wireless network is not included in the map service (the location information corresponding to the general home network is rarely included in the map service), Therefore, according to the positioning method in the prior art, the wireless network detected by the terminal to be located cannot be located, and according to the rules set by the server, the second step can be taken only, and the base station is used to locate or abandon the smart terminal. Positioning. The location of the base station is generally inaccurate and cannot obtain accurate positioning results.
  • the mapping relationship between the network identifier and the location information is included in the mapping relationship corresponding to the to-be-located terminal. Therefore, the embodiment only needs to determine the location information of the to-be-located terminal according to the received network identifier.
  • the positioning method described in this embodiment can not only achieve positioning, but also obtain accurate positioning results.
  • the wireless network-based positioning method of the embodiment first receives the wireless connection information sent by the terminal to be located, where the wireless connection information includes the network identifier of the wireless network currently detected by the terminal to be located, and the to-be-determined And obtaining a mapping relationship of the terminal to be located according to the hardware identifier, where the mapping relationship is Included in the mapping relationship between the network identifier and the location information, and finally searching for the location information corresponding to the received network identifier according to the received network identifier, and determining the location information as the to-be-positioned The current location information of the terminal, thereby completing the positioning of the terminal to be located.
  • the wireless network-based positioning method in this embodiment can determine the to-be-positioned according to the wireless connection information (including the network identifier) sent by the terminal to be located and the pre-stored mapping relationship with the terminal to be located. Location information of the terminal. Because the mapping relationship pre-stored in this embodiment includes the correspondence between the network identifier and the location information, the positioning method in this embodiment only needs to determine the location information of the to-be-located terminal according to the received network identifier. . Therefore, as in the prior art, the wireless network detected by the terminal to be located belongs to the private wireless network (or the geographic location information corresponding to the wireless network is not included in the map service), and the positioning terminal cannot be positioned or forced. Inaccurate positioning caused by base station positioning.
  • the method further includes step 101'.
  • Step 101' Establish a mapping relationship of the terminal to be located.
  • the mapping relationship between the to-be-located terminal is established in advance, so that the server can obtain the location information corresponding to the received network identifier according to the mapping relationship, and implement positioning on the to-be-located terminal.
  • the step 101' of establishing the mapping relationship of the to-be-located terminal specifically includes the following sub-steps a-b.
  • Step a receiving the location report information sent by the preset mobile terminal, where the location report information includes: a network identifier and location information of the wireless network accessed by the preset mobile terminal;
  • Step b Establish a mapping relationship between the terminal to be located according to the location report information, where the preset mobile terminal is a mobile terminal having a preset binding relationship with the terminal to be located. end.
  • the embodiment uses the location sent by the mobile terminal that has a binding relationship with the to-be-located terminal when establishing the mapping relationship. Report the information. This is because the wireless network information that can be detected by the mobile terminal and the terminal to be located that are in a binding relationship with the terminal to be located is substantially consistent or overlapped.
  • the wireless network that the parent uses the mobile terminal can detect the wireless network
  • the smart network that the child uses can detect the wireless network
  • mapping relationship of the to-be-located terminal may be manually established according to the network identifier that the smart terminal may detect, and then the established mapping relationship is stored in the server.
  • the wireless connection information further includes: a wireless signal strength corresponding to the network identifier;
  • the step 103 is performed by searching, according to the received network identifier, the location information corresponding to the received network identifier, and the method includes:
  • the server may select a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, and the mapping relationship according to the current network identifier.
  • the search is performed to obtain the location information corresponding to the current network identifier as the location information corresponding to the received network identifier, so that the obtained location information is relatively accurate.
  • the method further includes step 104.
  • Step 104 Send the current location information of the to-be-located terminal to the preset mobile terminal, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
  • the current location information of the to-be-located terminal may also be sent to the mobile terminal.
  • a sixth embodiment of the present invention provides another wireless network-based positioning method. Referring to FIG. 5, the method includes the following steps:
  • Step 201 The terminal to be located sends, to the server, wireless connection information including a network identifier of the wireless network detected by the terminal to be located and a hardware identifier of the terminal to be located, so that the server acquires the information according to the hardware identifier.
  • the mapping relationship between the terminal to be located and the location information corresponding to the network identifier are searched for in the mapping relationship according to the network identifier, as the current location information of the terminal to be located.
  • the network identifier of the wireless network may be a WIFI name, a MAC address of a wireless network, or other identifier that may represent a wireless network.
  • the mapping relationship includes a correspondence between the network identifier and the location information.
  • the terminal to be located may send, to the server, wireless connection information including a network identifier of the wireless network detected by the terminal to be located and a hardware identifier of the terminal to be located, so that the server is configured according to the server.
  • the hardware identifier acquires the mapping relationship of the terminal to be located, and searches for and obtains location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the current location information of the terminal to be located.
  • the to-be-located terminal sends the wireless connection information to the server when the positioning is performed, where the wireless connection information includes the network identifier of the wireless network detected by the terminal to be located and the to-be-positioned The hardware identification of the terminal. Assume that the hardware identifier of the terminal to be located is “100FT0908”, and the terminal to be located detects that the network identifier of the wireless network is the MAC address “002421F2C984”.
  • the server searches for the mapping relationship corresponding to the hardware identifier "100FT0908", and assumes that the mapping relationship obtained by the search is as shown in Table 2 below. The server searches for and obtains the location information "neighbors" corresponding to the MAC address "002421F2C984" in the mapping relationship shown in Table 2 below, as the current location information of the terminal to be located.
  • Network identification location information 002421D2C984 a kindergarten 002421F2C986 Home 002421F2D984 unit 002421F2C984 Neighbors 002421F2C990 Playground next to home
  • the location information of the neighboring home is detected by the terminal to be located, and the location information corresponding to the wireless network is not included in the map service (the location information corresponding to the general home network is rarely included in the map service) Therefore, if the positioning method according to the prior art is used, the wireless network detected by the terminal to be located cannot be located, and according to the rules set by the server, the second terminal can only be used to locate or abandon the smart terminal. Secondary positioning. The location of the base station is generally inaccurate and cannot obtain accurate positioning results.
  • the mapping relationship corresponding to the to-be-located terminal in the embodiment includes the network identifier commonly used by the to-be-located terminal and the location information corresponding to the commonly used network identifier, so the to-be-identified can be determined according to the received network identifier. Location information of the terminal.
  • the positioning method described in this embodiment can not only achieve positioning, but also obtain accurate positioning results.
  • the method further includes step 199 and step 200.
  • Step 199 The terminal to be located performs wireless network detection when each preset positioning period arrives.
  • the terminal to be located performs wireless network detection every half an hour.
  • Step 200 Determine whether a wireless network is detected, and if yes, perform step 201 above.
  • the to-be-located terminal performs wireless network detection when each preset positioning period arrives, and if the wireless network is detected, sends a network identifier including the wireless network detected by the to-be-located terminal to the server, and the The wireless connection information of the hardware identifier of the terminal to be located, so that the server acquires the mapping relationship of the terminal to be located according to the hardware identifier, and searches for and obtains the network identifier in the mapping relationship according to the network identifier.
  • Corresponding location information as current location information of the terminal to be located
  • the to-be-positioned terminal may also perform wireless network detection when the user triggers, and send wireless connection information to the server when the wireless network is detected.
  • the user of the terminal to be located presses a preset positioning key, and the terminal to be located starts wireless network detection, and if the wireless network is detected, sends the wireless connection information to the server.
  • a specific positioning situation is when the terminal to be located detects multiple wireless networks. Specifically, if the terminal to be located detects multiple wireless networks, the terminal to be located is The server sends the network identifier of the wireless network detected by the terminal to be located, the wireless signal strength corresponding to each network identifier, and the wireless connection information of the hardware identifier of the terminal to be located.
  • the server After receiving the wireless connection information, the server selects a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, and searches for a mapping relationship corresponding to the to-be-located terminal according to the current network identifier to obtain The location information corresponding to the current network identifier is used as the location information of the terminal to be located.
  • the to-be-located terminal detects multiple wireless networks
  • the detected network identifier of the wireless network and the wireless signal strength corresponding to each network identifier are sent to the server, so that the server according to the maximum wireless signal strength.
  • Corresponding network identifier acquisition phase The location information should be so that the location information obtained will be more accurate.
  • a ninth embodiment of the present invention provides a positioning device based on a wireless network.
  • the positioning device includes:
  • the receiving unit 71 is configured to receive the wireless connection information that is sent by the terminal to be located, where the wireless connection information includes a network identifier of the wireless network that is currently detected by the terminal to be located, and a hardware identifier of the terminal to be located.
  • the obtaining unit 72 is configured to acquire, according to the hardware identifier, a mapping relationship between the to-be-located terminal, where the mapping relationship includes a correspondence between the network identifier and the location information.
  • the locating unit 73 is configured to search for the location information corresponding to the received network identifier according to the received network identifier, and determine the location information as the current location information of the to-be-located terminal.
  • the device described in this embodiment can be used to perform the method described in the first embodiment, and the principle and technical effects are similar, and will not be described in detail herein.
  • the apparatus further includes: an establishing unit 74, configured to establish a mapping relationship of the terminal to be located.
  • the device described in this embodiment may be used to perform the method described in the foregoing second embodiment, and the principle and technical effects thereof are similar, and are not described in detail herein.
  • the establishing unit 74 specifically includes a receiving module 741 and an establishing module 742;
  • the receiving module 741 is configured to receive the location report information sent by the preset mobile terminal, where the location report information includes: a network identifier and location information of the wireless network accessed by the preset mobile terminal;
  • the establishing module 742 is configured to establish a mapping relationship between the to-be-located terminal according to the location reporting information, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
  • the device described in this embodiment may be used to perform the method described in the foregoing third embodiment, and the principle and technical effects thereof are similar, and are not described in detail herein.
  • the wireless connection information further includes: a wireless signal strength corresponding to the network identifier;
  • the positioning unit 73 is specifically configured to:
  • the device described in this embodiment may be used to perform the method described in the fourth embodiment, and the principle and technical effects are similar, and are not described in detail herein.
  • the apparatus further includes:
  • the sending unit 75 is configured to send the current location information of the to-be-located terminal to the preset mobile terminal, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
  • the device described in this embodiment may be used to perform the method described in the fifth embodiment, and the principle and technical effects are similar, and are not described in detail herein.
  • a fourteenth embodiment of the present invention provides an intelligent terminal.
  • the smart terminal includes:
  • the sending unit 111 is configured to send, to the server, wireless connection information including a network identifier of the wireless network detected by the smart terminal and a hardware identifier of the smart terminal, so that the server acquires the smart terminal according to the hardware identifier.
  • the mapping relationship and the location information corresponding to the network identifier are obtained in the mapping relationship according to the network identifier, as the current location information of the to-be-located terminal.
  • the terminal in this embodiment may be used to perform the method described in the foregoing sixth embodiment, and the principle and the technical effect are similar, and are not described in detail herein.
  • the terminal further includes: a detecting unit 112;
  • the detecting unit 112 is configured to perform wireless network detection when each preset positioning period arrives;
  • the sending unit 111 is configured to: when the detecting unit 112 detects the wireless network, send a wireless connection including a network identifier of the wireless network detected by the smart terminal and a hardware identifier of the smart terminal to the server. information.
  • the terminal in this embodiment may be used to perform the method described in the foregoing seventh embodiment, and the principle and the technical effect are similar, and are not described in detail herein.
  • the sending unit 111 is specifically configured to:
  • the detecting unit detects multiple wireless networks, send, to the server, a network identifier including a wireless network detected by the smart terminal, a wireless signal strength corresponding to each network identifier, and wireless connection information of a hardware identifier of the smart terminal. .
  • the terminal in this embodiment may be used to perform the method described in the foregoing eighth embodiment, and the principle and technical effects are similar, and are not described in detail herein.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the apparatus in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 13 illustrates a block diagram of a computing device in which a wireless network based positioning method in accordance with the present invention may be implemented.
  • the computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a storage space 730 that stores program code 731 for performing any of the method steps described above.
  • storage space 730 storing program code may store respective program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have a storage segment or storage space or the like arranged similarly to the storage 720 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit stores program code 731' for performing the steps of the method according to the invention, ie program code readable by a processor such as 710, which causes the calculation when the program code is run by the computing device The device performs the various steps in the methods described above.

Abstract

The present invention provides a wireless network-based positioning method, device, and intelligent terminal, the wireless network-based positioning method comprising: receive wireless connection information sent by a terminal to be positioned, the wireless connection information comprising a network identifier of a wireless network detected by the terminal to be positioned, and a hardware identifier of the terminal to be positioned; acquire, on the basis of the hardware identifier, a mapping relationship of the terminal to be positioned, the mapping relationship comprising the network identifier and a corresponding relationship between positioning data; and search, on the basis of the received network identifier, the mapping relationship and obtain positioning data corresponding to the received network identifier, then set the positioning data as current positioning data of the terminal to be positioned. The positioning method based on a wireless network of the present invention can, on the basis of wireless connection information sent by the terminal to be positioned, implement accurate positioning.

Description

基于无线网络的定位方法、装置及智能终端Wireless network based positioning method, device and intelligent terminal 技术领域Technical field
本发明涉及智能设备应用领域,具体涉及一种基于无线网络的定位方法、装置及智能终端。The present invention relates to the field of smart device applications, and in particular, to a wireless network-based positioning method, device, and intelligent terminal.
背景技术Background technique
某些智能终端由于体积小、信号弱,无法扫描到较多的WIFI,这些智能终端一般只能扫描到周围几个信号较强的WIFI,但是这些WIFI(如家庭WIFI)很有可能属于私人WIFI,地图服务并未收录这些WIFI对应的地理位置信息,因此无法根据智能终端扫描到的WIFI获知该智能终端所在的位置信息。Due to the small size and weak signal, some intelligent terminals cannot scan more WIFIs. These intelligent terminals can only scan a few WIFIs with strong signals nearby, but these WIFIs (such as home WIFI) are likely to belong to private WIFI. The map service does not include the geographical location information corresponding to the WIFI, so the location information of the smart terminal cannot be obtained according to the WIFI scanned by the smart terminal.
发明内容Summary of the invention
针对现有技术中的缺陷,本发明提供一种基于无线网络的定位方法、装置及智能终端,可以根据待定位终端发送的无线连接信息进行准确定位。In the prior art, the present invention provides a wireless network-based positioning method, device, and intelligent terminal, which can accurately locate the wireless connection information sent by the terminal to be located.
为解决上述技术问题,本发明提供以下技术方案:In order to solve the above technical problems, the present invention provides the following technical solutions:
第一方面,本发明提供了一种基于无线网络的定位方法,包括:接收待定位终端发送的无线连接信息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识;根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系;根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息。In a first aspect, the present invention provides a wireless network-based positioning method, including: receiving wireless connection information sent by a terminal to be located, where the wireless connection information includes a network identifier of a wireless network currently detected by the terminal to be located, and The hardware identifier of the terminal to be located; the mapping relationship of the terminal to be located is obtained according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information; and the mapping is performed according to the received network identifier. Searching in the relationship, obtaining location information corresponding to the received network identifier, and determining the location information as current location information of the to-be-located terminal.
第二方面,本发明还提供了一种基于无线网络的定位方法,包括:待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息,以使所述服 务器根据所述硬件标识获取所述待定位终端的映射关系以及根据所述网络标识在所述映射关系中查找并获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。In a second aspect, the present invention further provides a method for locating a wireless network, comprising: transmitting, by the terminal to be located, a network identifier of the wireless network detected by the terminal to be located, and a hardware identifier of the terminal to be located Wirelessly connect information to make the service Obtaining the mapping relationship of the to-be-located terminal according to the hardware identifier, and searching for and obtaining location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the current location of the to-be-located terminal location information.
第三方面,本发明还提供了一种基于无线网络的定位装置,包括:接收单元,用于接收待定位终端发送的无线连接信息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识;获取单元,用于根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系;定位单元,用于根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息。In a third aspect, the present invention further provides a positioning device based on a wireless network, comprising: a receiving unit, configured to receive wireless connection information sent by a terminal to be located, where the wireless connection information includes that the terminal to be located currently detects a network identifier of the wireless network and a hardware identifier of the terminal to be located; an obtaining unit, configured to acquire, according to the hardware identifier, a mapping relationship between the terminal to be located, where the mapping relationship includes a correspondence between the network identifier and the location information The locating unit is configured to search for the location information corresponding to the received network identifier according to the received network identifier, and determine the location information as the current location information of the to-be-located terminal.
第四方面,本发明还提供了一种智能终端,包括:发送单元,用于向服务器发送包括所述智能终端检测到的无线网络的网络标识以及所述智能终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述智能终端的映射关系以及根据所述网络标识在所述映射关系中查找获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。In a fourth aspect, the present invention further provides an intelligent terminal, comprising: a sending unit, configured to send, to a server, wireless connection information including a network identifier of a wireless network detected by the smart terminal and a hardware identifier of the smart terminal, Obtaining, by the server, the mapping relationship of the smart terminal according to the hardware identifier, and searching for the location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the terminal to be located. Current location information.
第五方面,本发明还提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行如上文所述的方法。In a fifth aspect, the invention also provides a computer program comprising computer readable code, which when executed on a computing device causes the computing device to perform the method as described above.
第六方面,本发明还提供了一种计算机可读介质,其中存储了如上文所述的计算机程序。In a sixth aspect, the invention also provides a computer readable medium storing a computer program as described above.
由上述技术方案可知,本发明所述的基于无线网络的定位方法,首先接收待定位终端发送的无线连接信息,所述无线连接信息中包括有所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识;然后根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系;最后根据接收的网络标识在获取的映射关系中查找,以获得与接收的网 络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息,从而完成对所述待定位终端的定位。可见,本发明所述的基于无线网络的定位方法,可以根据待定位终端发送的无线连接信息(包括有网络标识)和预存的与所述待定位终端对应的映射关系,确定所述待定位终端的位置信息。由于预存的映射关系中包括有网络标识和位置信息之间的对应关系,因此本发明所述的定位方法,只需要根据接收的网络标识就可以确定所述待定位终端的位置信息。故不会像现有技术那样,因待定位终端检测到的无线网络属于私人无线网络(或地图服务未收录与这些无线网络对应的地理位置信息)而出现的无法对待定位终端进行定位或被迫采用基站定位而导致的定位不准确的情况。According to the foregoing technical solution, the wireless network-based positioning method of the present invention first receives the wireless connection information sent by the terminal to be located, and the wireless connection information includes the network of the wireless network currently detected by the terminal to be located. Identifying a hardware identifier of the terminal to be located; and then obtaining a mapping relationship between the terminal to be located according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information; and finally, according to the received network identifier Find in the obtained mapping relationship to obtain and receive the network The location information corresponding to the network identifier is determined, and the location information is determined as current location information of the terminal to be located, thereby completing positioning of the terminal to be located. It can be seen that the wireless network-based positioning method of the present invention can determine the to-be-located terminal according to the wireless connection information (including the network identifier) sent by the terminal to be located and the pre-stored mapping relationship corresponding to the to-be-located terminal. Location information. Because the pre-stored mapping relationship includes the correspondence between the network identifier and the location information, the positioning method of the present invention only needs to determine the location information of the to-be-located terminal according to the received network identifier. Therefore, as in the prior art, the wireless network detected by the terminal to be located belongs to the private wireless network (or the geographic location information corresponding to the wireless network is not included in the map service), and the positioning terminal cannot be positioned or forced. Inaccurate positioning caused by base station positioning.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the art.
图1是本发明第一个实施例提供的基于无线网络的定位方法的流程图;1 is a flowchart of a wireless network-based positioning method according to a first embodiment of the present invention;
图2是本发明第二个实施例提供的基于无线网络的定位方法的流程图;2 is a flowchart of a wireless network-based positioning method according to a second embodiment of the present invention;
图3是本发明第三个实施例提供的基于无线网络的定位方法的流程图;3 is a flowchart of a wireless network-based positioning method according to a third embodiment of the present invention;
图4是本发明第五个实施例提供的基于无线网络的定位方法的流程图;4 is a flowchart of a wireless network-based positioning method according to a fifth embodiment of the present invention;
图5是本发明第六个实施例提供的另一种基于无线网络的定位方法的流程图; FIG. 5 is a flowchart of another wireless network-based positioning method according to a sixth embodiment of the present invention; FIG.
图6是本发明第七个实施例提供的另一种基于无线网络的定位方法的流程图;6 is a flowchart of another wireless network-based positioning method according to a seventh embodiment of the present invention;
图7是本发明第九个实施例提供的基于无线网络的定位装置的结构示意图;7 is a schematic structural diagram of a wireless network-based positioning apparatus according to a ninth embodiment of the present invention;
图8是本发明第十个实施例提供的基于无线网络的定位装置的结构示意图;8 is a schematic structural diagram of a wireless network-based positioning apparatus according to a tenth embodiment of the present invention;
图9是本发明第十一个实施例提供的基于无线网络的定位装置的结构示意图;9 is a schematic structural diagram of a wireless network-based positioning apparatus according to an eleventh embodiment of the present invention;
图10是本发明第十三个实施例提供的基于无线网络的定位装置的结构示意图;10 is a schematic structural diagram of a wireless network-based positioning apparatus according to a thirteenth embodiment of the present invention;
图11是本发明第十四个实施例提供的智能终端的结构示意图;11 is a schematic structural diagram of a smart terminal according to a fourteenth embodiment of the present invention;
图12是本发明第十五个实施例提供的智能终端的结构示意图;12 is a schematic structural diagram of a smart terminal according to a fifteenth embodiment of the present invention;
图13示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 13 shows a block diagram of a computing device for performing a method in accordance with the present invention;
图14示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元示意图。Figure 14 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
现在市场上出现了很多智能终端,如智能手表、智能手环等,这些智能终端的使用者大多是儿童和老人。一般地,这些智能终端具有定位功能,以便监护人实时了解到被监护人(如儿童和老人)的位置信息,确保被监护人处于安全距离位置或位于较为安全的地方。There are many smart terminals on the market, such as smart watches and smart bracelets. Most of the users of these smart terminals are children and the elderly. Generally, these smart terminals have a positioning function, so that the guardian can know the location information of the ward (such as children and the elderly) in real time, and ensure that the ward is at a safe distance or in a safe place.
这些智能终端在进行定位时,可以基于基站定位或WIFI定位。由 于基站定位具有较大误差,因此在有WIFI的情况下会优选WIFI定位。当没有WIFI信号时,会自动退而选择基站定位。然而由于这些智能终端的体积较小、信号较弱,无法扫描到较多的WIFI,这些智能终端一般只能扫描到周围几个信号较强的WIFI,但是这些WIFI(如家庭WIFI)很有可能属于私人WIFI,地图服务并未收录这些WIFI对应的地理位置信息,因此无法根据扫描到的WIFI获知该智能终端所在的位置信息。为了解决该问题,本发明下述实施例提出了一种基于无线网络的定位方法。These intelligent terminals can be based on base station positioning or WIFI positioning when performing positioning. By The location of the base station has a large error, so WIFI positioning is preferred in the case of WIFI. When there is no WIFI signal, it will automatically retreat and select the base station positioning. However, due to the small size and weak signal of these intelligent terminals, it is impossible to scan more WIFIs. These intelligent terminals can only scan a few WIFIs with strong signals nearby, but these WIFIs (such as home WIFI) are likely It belongs to the private WIFI, and the map service does not include the geographical location information corresponding to these WIFIs. Therefore, the location information of the smart terminal cannot be obtained according to the scanned WIFI. In order to solve this problem, the following embodiments of the present invention propose a positioning method based on a wireless network.
图1示出了本发明第一个实施例提供的基于无线网络的定位方法的流程图,参见图1,本发明第一个实施例提供的基于无线网络的定位方法包括如下步骤:FIG. 1 is a flowchart of a wireless network-based positioning method according to a first embodiment of the present invention. Referring to FIG. 1, a wireless network-based positioning method according to a first embodiment of the present invention includes the following steps:
步骤101:接收待定位终端发送的无线连接信息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识。Step 101: Receive wireless connection information sent by the terminal to be located, where the wireless connection information includes a network identifier of the wireless network currently detected by the terminal to be located, and a hardware identifier of the terminal to be located.
在本步骤中,服务器接收待定位终端发送的无线连接信息,所述无线连接信息包括有所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识。In this step, the server receives the wireless connection information sent by the terminal to be located, where the wireless connection information includes the network identifier of the wireless network currently detected by the terminal to be located, and the hardware identifier of the terminal to be located.
其中,这里的服务器是指与所述待定位终端具有特定关系的服务器,所述服务器用于负责所述待定位终端的后台维护以及数据处理等工作。比如,所述待定位终端的定位工作就由所述服务器负责。The server here refers to a server having a specific relationship with the terminal to be located, and the server is responsible for background maintenance and data processing of the terminal to be located. For example, the positioning work of the terminal to be located is handled by the server.
其中,所述无线网络的网络标识可以为WIFI名称、无线网络的MAC地址或者其他可以代表无线网络的标识。The network identifier of the wireless network may be a WIFI name, a MAC address of a wireless network, or other identifier that can represent a wireless network.
其中,所述待定位终端的硬件标识可以为该待定位终端的生产序列号或类似国际移动设备标识IMEI等可以唯一代表该待定位终端的标识。The hardware identifier of the terminal to be located may be a production serial number of the terminal to be located or an identifier such as an IMEI, which may uniquely represent the terminal to be located.
优选地,本步骤中的无线连接信息是所述待定位终端按照定位周期进行定位时发送的。具体地,当到达定位周期时,所述待定位终端进行无线网络检测,若检测到无线网络,则向服务器发送无线连接信 息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识。Preferably, the wireless connection information in this step is sent when the to-be-positioned terminal performs positioning according to a positioning period. Specifically, when the positioning period is reached, the to-be-positioned terminal performs wireless network detection, and if the wireless network is detected, sends a wireless connection letter to the server. The wireless connection information includes a network identifier of the wireless network currently detected by the terminal to be located, and a hardware identifier of the terminal to be located.
当然,本步骤中的无线连接信息还可以是在用户触发时发送的。比如,所述待定位终端的使用者按下预设的定位键,所述待定位终端开始进行无线网络检测,若检测到无线网络,则向服务器发送所述无线连接信息。Of course, the wireless connection information in this step may also be sent when the user triggers. For example, the user of the terminal to be located presses a preset positioning key, and the terminal to be located starts wireless network detection, and if the wireless network is detected, sends the wireless connection information to the server.
步骤102:根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系。Step 102: Obtain a mapping relationship between the to-be-located terminal according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information.
在本步骤中,由于服务器会负责较多数量的智能终端的定位工作。故服务器中存储有多个映射关系,每一个映射关系与一个智能终端相对应。因此在本步骤中,服务器可以根据步骤101接收的硬件标识获取与所述硬件标识对应的映射关系,该映射关系即为与所述待定位终端对应的映射关系。其中,该映射关系中包括所述待定位终端的常用网络标识和与所述常用网络标识对应的位置信息。In this step, the server is responsible for the positioning work of a larger number of intelligent terminals. Therefore, the server stores multiple mapping relationships, and each mapping relationship corresponds to one smart terminal. Therefore, in this step, the server may obtain a mapping relationship corresponding to the hardware identifier according to the hardware identifier received in step 101, where the mapping relationship is a mapping relationship corresponding to the terminal to be located. The mapping relationship includes a common network identifier of the terminal to be located and location information corresponding to the common network identifier.
另外,与所述待定位终端对应的映射关系可以为预先设置好的,也可以是服务器自动建立的。其中,服务器自动建立所述映射关系的过程可参见下述第二或第三个实施例。In addition, the mapping relationship corresponding to the terminal to be located may be preset or may be automatically established by the server. The process of the server automatically establishing the mapping relationship can be referred to the following second or third embodiment.
步骤103:根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息。Step 103: Searching in the mapping relationship according to the received network identifier, obtaining location information corresponding to the received network identifier, and determining the location information as current location information of the to-be-located terminal.
在本步骤中,根据上述步骤101接收的网络标识在上述步骤102获取的映射关系中查找,以确定步骤102获取的映射关系中是否存在步骤101接收的网络标识,若存在,则从步骤102获取的映射关系中获取与步骤101接收的网络标识对应的位置信息,并将该位置信息确定为所述待定位终端的当前位置信息,从而完成对所述待定位终端的定位。In this step, the network identifier received in the above step 101 is searched in the mapping relationship acquired in the above step 102 to determine whether the network identifier received in step 101 exists in the mapping relationship acquired in step 102. If yes, the network identifier received in step 102 is obtained. The location information corresponding to the network identifier received in step 101 is obtained in the mapping relationship, and the location information is determined as the current location information of the to-be-located terminal, thereby completing positioning of the to-be-located terminal.
例如,上述步骤101接收的网络标识为WIFI名称,WIFI名称具体为“dengdeng”。另外,上述步骤102获取的映射关系如下表1所示。 For example, the network identifier received in the above step 101 is a WIFI name, and the WIFI name is specifically "dengdeng". In addition, the mapping relationship acquired in the above step 102 is as shown in Table 1 below.
表1Table 1
网络标识Network identification 位置信息location information
LuckyLucky 某幼儿园a kindergarten
dengdengDengdeng 家里Home
360免费WIFI-C2360 free WIFI-C2 单位unit
niuniuNiuniu 邻居家Neighbors
xiaoxiaoXiaoxiao 家旁边的游乐场Playground next to home
那么根据接收的网络标识“dengdeng”从上表1中获取与“dengdeng”对应的位置信息“家里”,并将该位置信息“家里”确定为所述待定位终端的当前位置信息,从而完成对所述待定位终端的定位。其中,上表中的位置信息为一些常用的位置名,这样获取的定位信息比较直观,当然根据需要,上述位置信息还可以为地理位置信息,比如某条街道、某个小区、地理位置坐标等等。Then, the location information “home” corresponding to “dengdeng” is obtained from the above table 1 according to the received network identifier “dengdeng”, and the location information “home” is determined as the current location information of the terminal to be located, thereby completing the pair. Positioning of the terminal to be located. The location information in the above table is some commonly used location names, so that the obtained location information is relatively intuitive. Of course, the location information may also be geographic location information, such as a certain street, a certain cell, geographic location coordinates, etc. Wait.
从本步骤可以看出,由于待定位终端检测到的为家里的无线网络,而该无线网络对应的位置信息并没有被地图服务收录(一般家庭网络对应的位置信息很少被地图服务收录),因此如果按照现有技术中的定位方法,将无法根据待定位终端检测到的无线网络进行定位,按照服务器端设置的规则,只能退而求其次,采用基站对智能终端进行定位或放弃本次定位。而基站定位一般不准确,无法得到准确的定位结果。It can be seen from this step that since the terminal to be located detects the wireless network at home, the location information corresponding to the wireless network is not included in the map service (the location information corresponding to the general home network is rarely included in the map service), Therefore, according to the positioning method in the prior art, the wireless network detected by the terminal to be located cannot be located, and according to the rules set by the server, the second step can be taken only, and the base station is used to locate or abandon the smart terminal. Positioning. The location of the base station is generally inaccurate and cannot obtain accurate positioning results.
由于本实施例中与待定位终端对应的映射关系中包括网络标识和位置信息之间的对应关系,因此,本实施例只需要根据接收的网络标识就可以确定所述待定位终端的位置信息。本实施例所述的定位方法不但能实现定位,而且定位结果较为准确。In this embodiment, the mapping relationship between the network identifier and the location information is included in the mapping relationship corresponding to the to-be-located terminal. Therefore, the embodiment only needs to determine the location information of the to-be-located terminal according to the received network identifier. The positioning method described in this embodiment can not only achieve positioning, but also obtain accurate positioning results.
本实施例所述的基于无线网络的定位方法,首先接收待定位终端发送的无线连接信息,所述无线连接信息中包括有所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识;然后根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系 中包括网络标识和位置信息之间的对应关系;最后根据接收的网络标识在获取的映射关系中查找,以获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息,从而完成对所述待定位终端的定位。可见,本实施例所述的基于无线网络的定位方法,可以根据待定位终端发送的无线连接信息(包括有网络标识)和预存的与所述待定位终端对应的映射关系,确定所述待定位终端的位置信息。由于本实施例预存的映射关系中包括有网络标识和位置信息之间的对应关系,因此本实施例所述的定位方法,只需要根据接收的网络标识就可以确定所述待定位终端的位置信息。故不会像现有技术那样,因待定位终端检测到的无线网络属于私人无线网络(或地图服务未收录与这些无线网络对应的地理位置信息)而出现的无法对待定位终端进行定位或被迫采用基站定位而导致的定位不准确的情况。The wireless network-based positioning method of the embodiment first receives the wireless connection information sent by the terminal to be located, where the wireless connection information includes the network identifier of the wireless network currently detected by the terminal to be located, and the to-be-determined And obtaining a mapping relationship of the terminal to be located according to the hardware identifier, where the mapping relationship is Included in the mapping relationship between the network identifier and the location information, and finally searching for the location information corresponding to the received network identifier according to the received network identifier, and determining the location information as the to-be-positioned The current location information of the terminal, thereby completing the positioning of the terminal to be located. It can be seen that the wireless network-based positioning method in this embodiment can determine the to-be-positioned according to the wireless connection information (including the network identifier) sent by the terminal to be located and the pre-stored mapping relationship with the terminal to be located. Location information of the terminal. Because the mapping relationship pre-stored in this embodiment includes the correspondence between the network identifier and the location information, the positioning method in this embodiment only needs to determine the location information of the to-be-located terminal according to the received network identifier. . Therefore, as in the prior art, the wireless network detected by the terminal to be located belongs to the private wireless network (or the geographic location information corresponding to the wireless network is not included in the map service), and the positioning terminal cannot be positioned or forced. Inaccurate positioning caused by base station positioning.
在本发明第二个实施例中,参见图2,在上述步骤101之前,所述方法还包括步骤101’。In a second embodiment of the present invention, referring to Fig. 2, prior to step 101 above, the method further includes step 101'.
步骤101’:建立所述待定位终端的映射关系。Step 101': Establish a mapping relationship of the terminal to be located.
本实施例中,预先建立所述待定位终端的映射关系,从而服务器可以根据所述映射关系获取与接收的网络标识对应的位置信息,实现对所述待定位终端的定位。In this embodiment, the mapping relationship between the to-be-located terminal is established in advance, so that the server can obtain the location information corresponding to the received network identifier according to the mapping relationship, and implement positioning on the to-be-located terminal.
在本发明第三个实施例中,给出了上述步骤101’的一种具体实现方式。参见图3,上述步骤101’建立所述待定位终端的映射关系具体包括如下子步骤a-b。In the third embodiment of the present invention, a specific implementation of the above step 101' is given. Referring to FIG. 3, the step 101' of establishing the mapping relationship of the to-be-located terminal specifically includes the following sub-steps a-b.
步骤a:接收预设移动终端发送的位置上报信息,所述位置上报信息包括:所述预设移动终端接入的无线网络的网络标识以及位置信息;Step a: receiving the location report information sent by the preset mobile terminal, where the location report information includes: a network identifier and location information of the wireless network accessed by the preset mobile terminal;
步骤b:根据所述位置上报信息建立所述待定位终端的映射关系,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终 端。Step b: Establish a mapping relationship between the terminal to be located according to the location report information, where the preset mobile terminal is a mobile terminal having a preset binding relationship with the terminal to be located. end.
在本实施例中,给出了建立所述待定位终端的映射关系的具体步骤。其中,为了使服务器能够根据所述映射关系获得与接收的网络标识对应的位置信息,本实施例在建立所述映射关系时利用了与所述待定位终端具有绑定关系的移动终端发送的位置上报信息。这是因为,与所述待定位终端具有绑定关系的移动终端和所述待定位终端能够检测到的无线网络信息基本上会保持一致或存在重叠。如父母和儿童经常出入的场合基本一致或存在重叠,因此父母使用的移动终端(如手机)能够检测到的无线网络和儿童使用的智能终端(如智能手表)能够检测到的无线网络基本一致。In this embodiment, specific steps of establishing a mapping relationship of the terminal to be located are given. In order to enable the server to obtain the location information corresponding to the received network identifier according to the mapping relationship, the embodiment uses the location sent by the mobile terminal that has a binding relationship with the to-be-located terminal when establishing the mapping relationship. Report the information. This is because the wireless network information that can be detected by the mobile terminal and the terminal to be located that are in a binding relationship with the terminal to be located is substantially consistent or overlapped. If the parents and children frequently go in and out of the situation, there is basically the same or overlapping, so the wireless network that the parent uses the mobile terminal (such as a mobile phone) can detect the wireless network and the smart network that the child uses (such as a smart watch) can detect the wireless network.
当然,也可以根据所述智能终端可能会检测到的网络标识,手动建立所述待定位终端的映射关系,然后将建立的映射关系存储至服务器中。Of course, the mapping relationship of the to-be-located terminal may be manually established according to the network identifier that the smart terminal may detect, and then the established mapping relationship is stored in the server.
在本发明第四个实施例中,所述无线连接信息中还包括:与网络标识对应的无线信号强度;In the fourth embodiment of the present invention, the wireless connection information further includes: a wireless signal strength corresponding to the network identifier;
以及若所述无线连接信息中包括多个网络标识,则上述步骤103根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,具体包括:And if the wireless connection information includes a plurality of network identifiers, the step 103 is performed by searching, according to the received network identifier, the location information corresponding to the received network identifier, and the method includes:
从所述无线连接信息中选取最大无线信号强度对应的当前网络标识,根据当前网络标识在所述映射关系中查找,获得与当前网络标识对应的位置信息以作为与接收的网络标识对应的位置信息。Selecting a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, searching in the mapping relationship according to the current network identifier, and obtaining location information corresponding to the current network identifier as the location information corresponding to the received network identifier. .
在本实施例中,当所述无线连接信息中包括多个网络标识时,服务器会从所述无线连接信息中选取最大无线信号强度对应的当前网络标识,并根据当前网络标识在所述映射关系中查找,获得与当前网络标识对应的位置信息以作为与接收的网络标识对应的位置信息,这样获取的位置信息会比较准确。 In this embodiment, when the wireless connection information includes multiple network identifiers, the server may select a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, and the mapping relationship according to the current network identifier. The search is performed to obtain the location information corresponding to the current network identifier as the location information corresponding to the received network identifier, so that the obtained location information is relatively accurate.
在本发明第五个实施例中,参见图4,在上述步骤103之后,所述方法还包括步骤104。In a fifth embodiment of the present invention, referring to FIG. 4, after the above step 103, the method further includes step 104.
步骤104:将所述待定位终端的当前位置信息发送给预设移动终端,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终端。Step 104: Send the current location information of the to-be-located terminal to the preset mobile terminal, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
在本实施例中,为了使得与所述待定位终端(如儿童佩戴的智能手表)存在预设绑定关系的移动终端(如家长的手机)能够及时获知所述待定位终端的位置信息,在获取待定位终端的当前位置信息之后,还可以将所述待定位终端的当前位置信息发送给所述移动终端。In this embodiment, in order to enable a mobile terminal (such as a parent's mobile phone) having a preset binding relationship with the terminal to be located (such as a smart watch worn by a child) to know the location information of the terminal to be located in time, After obtaining the current location information of the terminal to be located, the current location information of the to-be-located terminal may also be sent to the mobile terminal.
本发明第六个实施例提供了另一种基于无线网络的定位方法,参见图5,包括如下步骤:A sixth embodiment of the present invention provides another wireless network-based positioning method. Referring to FIG. 5, the method includes the following steps:
步骤201:待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述待定位终端的映射关系以及根据所述网络标识在所述映射关系中查找并获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。Step 201: The terminal to be located sends, to the server, wireless connection information including a network identifier of the wireless network detected by the terminal to be located and a hardware identifier of the terminal to be located, so that the server acquires the information according to the hardware identifier. The mapping relationship between the terminal to be located and the location information corresponding to the network identifier are searched for in the mapping relationship according to the network identifier, as the current location information of the terminal to be located.
在本步骤中,所述无线网络的网络标识可以为WIFI名称、无线网络的MAC地址或者其他可以代表无线网络的标识。所述映射关系中包括网络标识和位置信息之间的对应关系。In this step, the network identifier of the wireless network may be a WIFI name, a MAC address of a wireless network, or other identifier that may represent a wireless network. The mapping relationship includes a correspondence between the network identifier and the location information.
在本实施例中,待定位终端在定位时会向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述待定位终端的映射关系以及根据所述网络标识在所述映射关系中查找并获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。In this embodiment, the terminal to be located may send, to the server, wireless connection information including a network identifier of the wireless network detected by the terminal to be located and a hardware identifier of the terminal to be located, so that the server is configured according to the server. The hardware identifier acquires the mapping relationship of the terminal to be located, and searches for and obtains location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the current location information of the terminal to be located.
例如,待定位终端在定位时向服务器发送无线连接信息,所述无线连接信息中包括待定位终端检测到无线网络的网络标识以及待定位 终端的硬件标识。假设待定位终端的硬件标识为“100FT0908”,待定位终端检测到无线网络的网络标识为MAC地址“002421F2C984”。服务器在接收到所述无线连接信息之后,就会查找与硬件标识“100FT0908”对应的映射关系,假设查找得到的映射关系如下表2所示。服务器在下表2所示的映射关系中查找并获得与MAC地址“002421F2C984”对应的位置信息“邻居家”,以作为所述待定位终端的当前位置信息。For example, the to-be-located terminal sends the wireless connection information to the server when the positioning is performed, where the wireless connection information includes the network identifier of the wireless network detected by the terminal to be located and the to-be-positioned The hardware identification of the terminal. Assume that the hardware identifier of the terminal to be located is “100FT0908”, and the terminal to be located detects that the network identifier of the wireless network is the MAC address “002421F2C984”. After receiving the wireless connection information, the server searches for the mapping relationship corresponding to the hardware identifier "100FT0908", and assumes that the mapping relationship obtained by the search is as shown in Table 2 below. The server searches for and obtains the location information "neighbors" corresponding to the MAC address "002421F2C984" in the mapping relationship shown in Table 2 below, as the current location information of the terminal to be located.
表2Table 2
网络标识Network identification 位置信息location information
002421D2C984002421D2C984 某幼儿园a kindergarten
002421F2C986002421F2C986 家里Home
002421F2D984002421F2D984 单位unit
002421F2C984002421F2C984 邻居家Neighbors
002421F2C990002421F2C990 家旁边的游乐场Playground next to home
从本步骤可以看出,由于待定位终端检测到的为邻居家的无线网络,而该无线网络对应的位置信息并没有被地图服务收录(一般家庭网络对应的位置信息很少被地图服务收录),因此如果按照现有技术中的定位方法,将无法根据待定位终端检测到的无线网络进行定位,按照服务器端设置的规则,只能退而求其次,采用基站对智能终端进行定位或放弃本次定位。而基站定位一般不准确,无法得到准确的定位结果。由于本实施例中与待定位终端对应的映射关系中包括所述待定位终端常用的网络标识和与所述常用的网络标识对应的位置信息,因此根据接收的网络标识就可以确定所述待定位终端的位置信息。采用本实施例所述的定位方法不但能实现定位,而且定位结果较为准确。It can be seen from this step that the location information of the neighboring home is detected by the terminal to be located, and the location information corresponding to the wireless network is not included in the map service (the location information corresponding to the general home network is rarely included in the map service) Therefore, if the positioning method according to the prior art is used, the wireless network detected by the terminal to be located cannot be located, and according to the rules set by the server, the second terminal can only be used to locate or abandon the smart terminal. Secondary positioning. The location of the base station is generally inaccurate and cannot obtain accurate positioning results. The mapping relationship corresponding to the to-be-located terminal in the embodiment includes the network identifier commonly used by the to-be-located terminal and the location information corresponding to the commonly used network identifier, so the to-be-identified can be determined according to the received network identifier. Location information of the terminal. The positioning method described in this embodiment can not only achieve positioning, but also obtain accurate positioning results.
在本发明第七个实施例中,参见图6,在上述步骤201之前,所述方法还包括步骤199和步骤200。 In the seventh embodiment of the present invention, referring to FIG. 6, before the above step 201, the method further includes step 199 and step 200.
步骤199:待定位终端在每个预设定位周期到达时进行无线网络检测。Step 199: The terminal to be located performs wireless network detection when each preset positioning period arrives.
在本步骤中,假设预设定位周期为半小时,那么每过半个小时所述待定位终端就会进行无线网络检测。In this step, assuming that the preset positioning period is half an hour, the terminal to be located performs wireless network detection every half an hour.
步骤200:判断是否检测到无线网络,若是,则执行上述步骤201。Step 200: Determine whether a wireless network is detected, and if yes, perform step 201 above.
在本实施例中,待定位终端在每个预设定位周期到达时进行无线网络检测,若检测到无线网络,则向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述待定位终端的映射关系以及根据所述网络标识在所述映射关系中查找并获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息In this embodiment, the to-be-located terminal performs wireless network detection when each preset positioning period arrives, and if the wireless network is detected, sends a network identifier including the wireless network detected by the to-be-located terminal to the server, and the The wireless connection information of the hardware identifier of the terminal to be located, so that the server acquires the mapping relationship of the terminal to be located according to the hardware identifier, and searches for and obtains the network identifier in the mapping relationship according to the network identifier. Corresponding location information, as current location information of the terminal to be located
当然,所述待定位终端也可以在用户触发时进行无线网络检测,并在检测到无线网络时向服务器发送无线连接信息。比如,所述待定位终端的使用者按下预设的定位键,所述待定位终端开始进行无线网络检测,若检测到无线网络,则向服务器发送所述无线连接信息。Certainly, the to-be-positioned terminal may also perform wireless network detection when the user triggers, and send wireless connection information to the server when the wireless network is detected. For example, the user of the terminal to be located presses a preset positioning key, and the terminal to be located starts wireless network detection, and if the wireless network is detected, sends the wireless connection information to the server.
在本发明第八个实施例中,给出了当待定位终端检测到多个无线网络时的具体定位情况,具体地,若所述待定位终端检测到多个无线网络,则待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识、与各网络标识对应的无线信号强度以及所述待定位终端的硬件标识的无线连接信息。In the eighth embodiment of the present invention, a specific positioning situation is when the terminal to be located detects multiple wireless networks. Specifically, if the terminal to be located detects multiple wireless networks, the terminal to be located is The server sends the network identifier of the wireless network detected by the terminal to be located, the wireless signal strength corresponding to each network identifier, and the wireless connection information of the hardware identifier of the terminal to be located.
服务器在接收到所述无线连接信息之后,从所述无线连接信息中选取最大无线信号强度对应的当前网络标识,根据当前网络标识在与所述待定位终端对应的映射关系中查找,以获得与当前网络标识对应的位置信息以作为与所述待定位终端的位置信息。After receiving the wireless connection information, the server selects a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, and searches for a mapping relationship corresponding to the to-be-located terminal according to the current network identifier to obtain The location information corresponding to the current network identifier is used as the location information of the terminal to be located.
在本实施例中,当待定位终端检测到多个无线网络时,会将检测到的无线网络的网络标识以及与各网络标识对应的无线信号强度发送给服务器,以使服务器根据最大无线信号强度对应的网络标识获取相 应的位置信息,这样获取的位置信息会比较准确。In this embodiment, when the to-be-located terminal detects multiple wireless networks, the detected network identifier of the wireless network and the wireless signal strength corresponding to each network identifier are sent to the server, so that the server according to the maximum wireless signal strength. Corresponding network identifier acquisition phase The location information should be so that the location information obtained will be more accurate.
本发明第九个实施例提供了一种基于无线网络的定位装置,参见图7,所述定位装置包括:A ninth embodiment of the present invention provides a positioning device based on a wireless network. Referring to FIG. 7, the positioning device includes:
接收单元71,用于接收待定位终端发送的无线连接信息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识;The receiving unit 71 is configured to receive the wireless connection information that is sent by the terminal to be located, where the wireless connection information includes a network identifier of the wireless network that is currently detected by the terminal to be located, and a hardware identifier of the terminal to be located.
获取单元72,用于根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系;The obtaining unit 72 is configured to acquire, according to the hardware identifier, a mapping relationship between the to-be-located terminal, where the mapping relationship includes a correspondence between the network identifier and the location information.
定位单元73,用于根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息。The locating unit 73 is configured to search for the location information corresponding to the received network identifier according to the received network identifier, and determine the location information as the current location information of the to-be-located terminal.
本实施例所述的装置可以用于执行上述第一个实施例所述的方法,其原理和技术效果类似,此处不再详述。The device described in this embodiment can be used to perform the method described in the first embodiment, and the principle and technical effects are similar, and will not be described in detail herein.
在本发明第十个实施例中,参见图8,所述装置进一步包括:建立单元74,用于建立所述待定位终端的映射关系。In the tenth embodiment of the present invention, referring to FIG. 8, the apparatus further includes: an establishing unit 74, configured to establish a mapping relationship of the terminal to be located.
本实施例所述的装置可以用于执行上述第二个实施例所述的方法,其原理和技术效果类似,此处不再详述。The device described in this embodiment may be used to perform the method described in the foregoing second embodiment, and the principle and technical effects thereof are similar, and are not described in detail herein.
在本发明第十一个实施例中,参见图9,所述建立单元74具体包括接收模块741和建立模块742;In an eleventh embodiment of the present invention, referring to FIG. 9, the establishing unit 74 specifically includes a receiving module 741 and an establishing module 742;
所述接收模块741,用于接收预设移动终端发送的位置上报信息,所述位置上报信息包括:所述预设移动终端接入的无线网络的网络标识以及位置信息;The receiving module 741 is configured to receive the location report information sent by the preset mobile terminal, where the location report information includes: a network identifier and location information of the wireless network accessed by the preset mobile terminal;
所述建立模块742,用于根据所述位置上报信息建立所述待定位终端的映射关系,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终端。 The establishing module 742 is configured to establish a mapping relationship between the to-be-located terminal according to the location reporting information, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
本实施例所述的装置可以用于执行上述第三个实施例所述的方法,其原理和技术效果类似,此处不再详述。The device described in this embodiment may be used to perform the method described in the foregoing third embodiment, and the principle and technical effects thereof are similar, and are not described in detail herein.
在本发明第十二个实施例中,所述无线连接信息中还包括:与网络标识对应的无线信号强度;In the twelfth embodiment of the present invention, the wireless connection information further includes: a wireless signal strength corresponding to the network identifier;
相应地,Correspondingly,
若所述无线连接信息中包括多个网络标识,则所述定位单元73,具体用于:If the wireless connection information includes multiple network identifiers, the positioning unit 73 is specifically configured to:
从所述无线连接信息中选取最大无线信号强度对应的当前网络标识,根据当前网络标识在所述映射关系中查找,获得与当前网络标识对应的位置信息以作为与接收的网络标识对应的位置信息。Selecting a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, searching in the mapping relationship according to the current network identifier, and obtaining location information corresponding to the current network identifier as the location information corresponding to the received network identifier. .
本实施例所述的装置可以用于执行上述第四个实施例所述的方法,其原理和技术效果类似,此处不再详述。The device described in this embodiment may be used to perform the method described in the fourth embodiment, and the principle and technical effects are similar, and are not described in detail herein.
在本发明第十三个实施例中,参见图10,所述装置进一步包括:In a thirteenth embodiment of the present invention, referring to FIG. 10, the apparatus further includes:
发送单元75,用于将所述待定位终端的当前位置信息发送给预设移动终端,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终端。The sending unit 75 is configured to send the current location information of the to-be-located terminal to the preset mobile terminal, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
本实施例所述的装置可以用于执行上述第五个实施例所述的方法,其原理和技术效果类似,此处不再详述。The device described in this embodiment may be used to perform the method described in the fifth embodiment, and the principle and technical effects are similar, and are not described in detail herein.
本发明第十四个实施例提供了一种智能终端,参见图11,所述智能终端包括:A fourteenth embodiment of the present invention provides an intelligent terminal. Referring to FIG. 11, the smart terminal includes:
发送单元111,用于向服务器发送包括所述智能终端检测到的无线网络的网络标识以及所述智能终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述智能终端的映射关系以及根据所述网络标识在所述映射关系中查找获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。 The sending unit 111 is configured to send, to the server, wireless connection information including a network identifier of the wireless network detected by the smart terminal and a hardware identifier of the smart terminal, so that the server acquires the smart terminal according to the hardware identifier. The mapping relationship and the location information corresponding to the network identifier are obtained in the mapping relationship according to the network identifier, as the current location information of the to-be-located terminal.
本实施例所述的终端可以用于执行上述第六个实施例所述的方法,其原理和技术效果类似,此处不再详述。The terminal in this embodiment may be used to perform the method described in the foregoing sixth embodiment, and the principle and the technical effect are similar, and are not described in detail herein.
在本发明第十五个实施例中,参见图12,所述终端进一步包括:检测单元112;In the fifteenth embodiment of the present invention, referring to FIG. 12, the terminal further includes: a detecting unit 112;
所述检测单元112,用于在每个预设定位周期到达时进行无线网络检测;The detecting unit 112 is configured to perform wireless network detection when each preset positioning period arrives;
相应地,所述发送单元111,用于在所述检测单元112检测到无线网络时,向服务器发送包括所述智能终端检测到的无线网络的网络标识以及所述智能终端的硬件标识的无线连接信息。Correspondingly, the sending unit 111 is configured to: when the detecting unit 112 detects the wireless network, send a wireless connection including a network identifier of the wireless network detected by the smart terminal and a hardware identifier of the smart terminal to the server. information.
本实施例所述的终端可以用于执行上述第七个实施例所述的方法,其原理和技术效果类似,此处不再详述。The terminal in this embodiment may be used to perform the method described in the foregoing seventh embodiment, and the principle and the technical effect are similar, and are not described in detail herein.
在本发明第十六个实施例中,所述发送单元111,具体用于:In the sixteenth embodiment of the present invention, the sending unit 111 is specifically configured to:
若所述检测单元检测到多个无线网络,向服务器发送包括所述智能终端检测到的无线网络的网络标识、与各网络标识对应的无线信号强度以及所述智能终端的硬件标识的无线连接信息。If the detecting unit detects multiple wireless networks, send, to the server, a network identifier including a wireless network detected by the smart terminal, a wireless signal strength corresponding to each network identifier, and wireless connection information of a hardware identifier of the smart terminal. .
本实施例所述的终端可以用于执行上述第八个实施例所述的方法,其原理和技术效果类似,此处不再详述。The terminal in this embodiment may be used to perform the method described in the foregoing eighth embodiment, and the principle and technical effects are similar, and are not described in detail herein.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的装置的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the apparatus in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图13示出了可以实现根据本发明的基于无线网络的定位方法的计算设备的框图。该计算设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有存储用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,存储程序代码的存储空间730可以存储分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图14所示的便携式或者固定存储单元。该存储单元可以具有与图13的计算设备中的存储器720类似布置的存储段或者存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元存储有用于执行根据本发明的方法步骤的程序代码731’,即可以由例如诸如710之类的处理器读取的程序代码,当这些程序代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 13 illustrates a block diagram of a computing device in which a wireless network based positioning method in accordance with the present invention may be implemented. The computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720. Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Memory 720 has a storage space 730 that stores program code 731 for performing any of the method steps described above. For example, storage space 730 storing program code may store respective program code 731 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG. The storage unit may have a storage segment or storage space or the like arranged similarly to the storage 720 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit stores program code 731' for performing the steps of the method according to the invention, ie program code readable by a processor such as 710, which causes the calculation when the program code is run by the computing device The device performs the various steps in the methods described above.
以上实施例仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that The technical solutions are described as being modified, or equivalents are replaced by some of the technical features; and such modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (18)

  1. 一种基于无线网络的定位方法,其特征在于,包括:A wireless network-based positioning method, comprising:
    接收待定位终端发送的无线连接信息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及所述待定位终端的硬件标识;Receiving the wireless connection information sent by the terminal to be located, where the wireless connection information includes a network identifier of the wireless network currently detected by the terminal to be located, and a hardware identifier of the terminal to be located;
    根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系;Obtaining a mapping relationship between the to-be-located terminal according to the hardware identifier, where the mapping relationship includes a correspondence between the network identifier and the location information;
    根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息。And searching for the location information corresponding to the received network identifier according to the received network identifier, and determining the location information as current location information of the to-be-located terminal.
  2. 根据权利要求1所述的方法,其特征在于,在所述接收待定位终端发送的无线连接信息之前,所述方法还包括:The method according to claim 1, wherein before the receiving the wireless connection information sent by the terminal to be located, the method further comprises:
    建立所述待定位终端的映射关系。Establishing a mapping relationship between the terminal to be located.
  3. 根据权利要求2所述的方法,其特征在于,所述建立所述待定位终端的映射关系,具体包括:The method according to claim 2, wherein the establishing the mapping relationship of the terminal to be located comprises:
    接收预设移动终端发送的位置上报信息,所述位置上报信息包括:所述预设移动终端接入的无线网络的网络标识以及位置信息;And receiving the location report information sent by the preset mobile terminal, where the location report information includes: a network identifier and location information of the wireless network accessed by the preset mobile terminal;
    根据所述位置上报信息建立所述待定位终端的映射关系,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终端。Establishing a mapping relationship between the to-be-located terminal according to the location reporting information, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
  4. 根据权利要求1~3中任一项所述的方法,其特征在于,所述无线连接信息中还包括:与网络标识对应的无线信号强度;The method according to any one of claims 1 to 3, wherein the wireless connection information further comprises: a wireless signal strength corresponding to the network identifier;
    以及若所述无线连接信息中包括多个网络标识,则所述根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,具体包括:And if the wireless connection information includes multiple network identifiers, the searching, according to the received network identifier, in the mapping relationship, and obtaining the location information corresponding to the received network identifier, specifically:
    从所述无线连接信息中选取最大无线信号强度对应的当前网络标识,根据当前网络标识在所述映射关系中查找,获得与当前网络标识对应的位置信息以作为与接收的网络标识对应的位置信息。 Selecting a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, searching in the mapping relationship according to the current network identifier, and obtaining location information corresponding to the current network identifier as the location information corresponding to the received network identifier. .
  5. 根据权利要求1~4中任一项所述的方法,其特征在于,所述方法进一步包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    将所述待定位终端的当前位置信息发送给预设移动终端,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终端。Sending the current location information of the to-be-located terminal to the preset mobile terminal, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the to-be-located terminal.
  6. 一种基于无线网络的定位方法,其特征在于,包括:A wireless network-based positioning method, comprising:
    待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述待定位终端的映射关系以及根据所述网络标识在所述映射关系中查找并获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。The terminal to be located sends, to the server, the network identifier of the wireless network detected by the terminal to be located and the wireless connection information of the hardware identifier of the terminal to be located, so that the server acquires the terminal to be located according to the hardware identifier. And mapping the location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the current location information of the to-be-located terminal.
  7. 根据权利要求6所述的方法,其特征在于,在所述待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息之前,所述方法进一步包括:The method according to claim 6, wherein before the terminal to be located transmits the wireless connection information including the network identifier of the wireless network detected by the terminal to be located and the hardware identifier of the terminal to be located to the server The method further includes:
    所述待定位终端在每个预设定位周期到达时进行无线网络检测;The terminal to be located performs wireless network detection when each preset positioning period arrives;
    其中,若检测到无线网络,则所述待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息。If the wireless network is detected, the to-be-located terminal sends the wireless connection information including the network identifier of the wireless network detected by the terminal to be located and the hardware identifier of the terminal to be located to the server.
  8. 根据权利要求6或7所述的方法,其特征在于,所述待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识以及所述待定位终端的硬件标识的无线连接信息,具体包括:The method according to claim 6 or 7, wherein the terminal to be located transmits to the server a wireless connection information including a network identifier of the wireless network detected by the terminal to be located and a hardware identifier of the terminal to be located. Specifically, including:
    若所述待定位终端检测到多个无线网络,所述待定位终端向服务器发送包括所述待定位终端检测到的无线网络的网络标识、与各网络标识对应的无线信号强度以及所述待定位终端的硬件标识的无线连接信息。If the to-be-located terminal detects a plurality of wireless networks, the to-be-located terminal sends a network identifier including a wireless network detected by the to-be-located terminal, a wireless signal strength corresponding to each network identifier, and the to-be-positioned Wireless connection information of the hardware identification of the terminal.
  9. 一种基于无线网络的定位装置,其特征在于,包括:A positioning device based on a wireless network, comprising:
    接收单元,用于接收待定位终端发送的无线连接信息,所述无线连接信息包括所述待定位终端当前检测到的无线网络的网络标识以及 所述待定位终端的硬件标识;a receiving unit, configured to receive wireless connection information sent by the terminal to be located, where the wireless connection information includes a network identifier of a wireless network currently detected by the terminal to be located, and a hardware identifier of the terminal to be located;
    获取单元,用于根据所述硬件标识获取所述待定位终端的映射关系,所述映射关系中包括网络标识和位置信息之间的对应关系;An acquiring unit, configured to acquire, according to the hardware identifier, a mapping relationship between the to-be-located terminal, where the mapping relationship includes a correspondence between the network identifier and the location information;
    定位单元,用于根据接收的网络标识在所述映射关系中查找,获得与接收的网络标识对应的位置信息,将所述位置信息确定为所述待定位终端的当前位置信息。The locating unit is configured to search for the location information corresponding to the received network identifier according to the received network identifier, and determine the location information as the current location information of the to-be-located terminal.
  10. 根据权利要求9所述的装置,其特征在于,所述装置进一步包括:建立单元,用于建立所述待定位终端的映射关系。The device according to claim 9, wherein the device further comprises: an establishing unit, configured to establish a mapping relationship of the terminal to be located.
  11. 根据权利要求10所述的装置,其特征在于,所述建立单元具体包括接收模块和建立模块;The apparatus according to claim 10, wherein the establishing unit comprises a receiving module and an establishing module;
    所述接收模块,用于接收预设移动终端发送的位置上报信息,所述位置上报信息包括:所述预设移动终端接入的无线网络的网络标识以及位置信息;The receiving module is configured to receive the location report information that is sent by the preset mobile terminal, where the location report information includes: a network identifier and location information of the wireless network that the preset mobile terminal accesses;
    所述建立模块,用于根据所述位置上报信息建立所述待定位终端的映射关系,所述预设移动终端为与所述待定位终端存在预设绑定关系的移动终端。The establishing module is configured to establish a mapping relationship between the terminal to be located according to the location reporting information, where the preset mobile terminal is a mobile terminal that has a preset binding relationship with the terminal to be located.
  12. 根据权利要求9~11中任一项所述的装置,其特征在于,所述无线连接信息中还包括:与网络标识对应的无线信号强度;The device according to any one of claims 9 to 11, wherein the wireless connection information further comprises: a wireless signal strength corresponding to the network identifier;
    相应地,Correspondingly,
    若所述无线连接信息中包括多个网络标识,则所述定位单元,具体用于:If the wireless connection information includes multiple network identifiers, the positioning unit is specifically configured to:
    从所述无线连接信息中选取最大无线信号强度对应的当前网络标识,根据当前网络标识在所述映射关系中查找,获得与当前网络标识对应的位置信息以作为与接收的网络标识对应的位置信息。Selecting a current network identifier corresponding to the maximum wireless signal strength from the wireless connection information, searching in the mapping relationship according to the current network identifier, and obtaining location information corresponding to the current network identifier as the location information corresponding to the received network identifier. .
  13. 根据权利要求9~12中任一项所述的装置,其特征在于,所述装置进一步包括:The device according to any one of claims 9 to 12, wherein the device further comprises:
    发送单元,用于将所述待定位终端的当前位置信息发送给预设移动终端,所述预设移动终端为与所述待定位终端存在预设绑定关系的 移动终端。a sending unit, configured to send current location information of the to-be-located terminal to a preset mobile terminal, where the preset mobile terminal has a preset binding relationship with the to-be-located terminal Mobile terminal.
  14. 一种智能终端,其特征在于,包括:An intelligent terminal, comprising:
    发送单元,用于向服务器发送包括所述智能终端检测到的无线网络的网络标识以及所述智能终端的硬件标识的无线连接信息,以使所述服务器根据所述硬件标识获取所述智能终端的映射关系以及根据所述网络标识在所述映射关系中查找获得与所述网络标识对应的位置信息,以作为所述待定位终端的当前位置信息。a sending unit, configured to send, to the server, wireless connection information including a network identifier of the wireless network detected by the smart terminal and a hardware identifier of the smart terminal, so that the server acquires the smart terminal according to the hardware identifier Mapping the relationship and finding the location information corresponding to the network identifier in the mapping relationship according to the network identifier, as the current location information of the to-be-located terminal.
  15. 根据权利要求14所述的终端,其特征在于,所述终端进一步包括:检测单元;The terminal according to claim 14, wherein the terminal further comprises: a detecting unit;
    所述检测单元,用于在每个预设定位周期到达时进行无线网络检测;The detecting unit is configured to perform wireless network detection when each preset positioning period arrives;
    相应地,所述发送单元,用于在所述检测单元检测到无线网络时,向服务器发送包括所述智能终端检测到的无线网络的网络标识以及所述智能终端的硬件标识的无线连接信息。Correspondingly, the sending unit is configured to: when the detecting unit detects the wireless network, send, to the server, wireless connection information including a network identifier of the wireless network detected by the smart terminal and a hardware identifier of the smart terminal.
  16. 根据权利要求15所述的终端,其特征在于,所述发送单元,具体用于:The terminal according to claim 15, wherein the sending unit is specifically configured to:
    若所述检测单元检测到多个无线网络,向服务器发送包括所述智能终端检测到的无线网络的网络标识、与各网络标识对应的无线信号强度以及所述智能终端的硬件标识的无线连接信息。If the detecting unit detects multiple wireless networks, send, to the server, a network identifier including a wireless network detected by the smart terminal, a wireless signal strength corresponding to each network identifier, and wireless connection information of a hardware identifier of the smart terminal. .
  17. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-8中的任一项权利要求所述的方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the method of any of claims 1-8.
  18. 一种计算机可读介质,其中存储了如权利要求17所述的计算机程序。 A computer readable medium storing the computer program of claim 17.
PCT/CN2016/104573 2015-12-25 2016-11-04 Wireless network-based positioning method, device, and intelligent terminal WO2017107682A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511000460.5 2015-12-25
CN201511000460.5A CN106921938A (en) 2015-12-25 2015-12-25 Localization method, device and intelligent terminal based on wireless network

Publications (1)

Publication Number Publication Date
WO2017107682A1 true WO2017107682A1 (en) 2017-06-29

Family

ID=59088954

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104573 WO2017107682A1 (en) 2015-12-25 2016-11-04 Wireless network-based positioning method, device, and intelligent terminal

Country Status (2)

Country Link
CN (1) CN106921938A (en)
WO (1) WO2017107682A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198551A (en) * 2018-02-26 2019-09-03 中国移动通信集团上海有限公司 A kind of network quality acquisition methods and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670895B (en) * 2017-10-17 2020-10-30 滴图(北京)科技有限公司 Method and device for recommending getting-on position
CN107682811A (en) * 2017-10-19 2018-02-09 北京三快在线科技有限公司 A kind of localization method and device
CN109936819B (en) 2017-12-15 2021-04-30 北京嘀嘀无限科技发展有限公司 Method, device and equipment for recommending boarding points
CN109286978B (en) * 2018-10-15 2020-11-17 广州科语机器人有限公司 Networking method and device of positioning network, terminal equipment and storage medium
CN111398941A (en) * 2020-03-23 2020-07-10 北京恒业世纪科技股份有限公司 Wireless positioning method and positioning system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313388A (en) * 2013-07-02 2013-09-18 张洁昕 Method and device for positioning mobile communication terminal
US8599758B1 (en) * 2011-04-20 2013-12-03 Google Inc. Indoor localization of mobile devices
CN103686698A (en) * 2013-11-13 2014-03-26 百度在线网络技术(北京)有限公司 Location information processing method and device
CN103906235A (en) * 2014-04-04 2014-07-02 小米科技有限责任公司 Terminal positioning method and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070184845A1 (en) * 2006-02-09 2007-08-09 Troncoso Edmund R Providing geographic context for applications and services on a wide area network
CN101557414B (en) * 2008-04-10 2012-07-04 中国移动通信集团公司 Positioning method, equipment and system based on WLAN
CN103297915A (en) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 Method and system for collecting position information
CN104244174B (en) * 2013-06-13 2018-10-26 阿里巴巴集团控股有限公司 The acquisition methods and server of the geographical location information of terminal
CN105101062A (en) * 2014-04-21 2015-11-25 北京奇虎科技有限公司 Wearable device, and method and system for obtaining attribute information of wireless network
CN104079665B (en) * 2014-07-17 2018-04-27 百度在线网络技术(北京)有限公司 Terminal room geographical location sharing method, application server and its terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599758B1 (en) * 2011-04-20 2013-12-03 Google Inc. Indoor localization of mobile devices
CN103313388A (en) * 2013-07-02 2013-09-18 张洁昕 Method and device for positioning mobile communication terminal
CN103686698A (en) * 2013-11-13 2014-03-26 百度在线网络技术(北京)有限公司 Location information processing method and device
CN103906235A (en) * 2014-04-04 2014-07-02 小米科技有限责任公司 Terminal positioning method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198551A (en) * 2018-02-26 2019-09-03 中国移动通信集团上海有限公司 A kind of network quality acquisition methods and device
CN110198551B (en) * 2018-02-26 2022-08-23 中国移动通信集团上海有限公司 Network quality obtaining method and device

Also Published As

Publication number Publication date
CN106921938A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
WO2017107682A1 (en) Wireless network-based positioning method, device, and intelligent terminal
TWI654867B (en) Method and device for determining the location of a terminal
CN103945007B (en) Information-pushing method and device
JP6546315B2 (en) Short range information transmission
EP2677337B1 (en) Method and apparatus for providing semantic location in electronic device
JP6611793B2 (en) Method and device for obtaining content of service information
EP3051892B1 (en) Mobile device, location estimation method, and location estimation program
WO2015117396A1 (en) Wi-fi signal-based positioning method, device, and system
CN107172209B (en) Information pushing method and device
US20160112830A1 (en) Method and Apparatus for Detecting Smartphone Application Users Utilizing Globally Unique Identifiers and Wireless Sensors
CN105263104A (en) Method and apparatus for positioning equipment
WO2018010693A1 (en) Method and apparatus for identifying information from rogue base station
CN103702279A (en) Method and device for positioning mobile terminal inside LTE enterprise network
CN112653748A (en) Information pushing method and device, electronic equipment and readable storage medium
US9954966B2 (en) Method and apparatus for disaster notification
WO2017215475A1 (en) Information pushing method and location positioning method and device
CN107094083B (en) Information pushing method, information obtaining method, information pushing equipment, information obtaining equipment
US11343644B2 (en) Neighbor awareness method, beacon device, and mobile terminal
WO2015018346A1 (en) Information processing method and apparatus
US20140244167A1 (en) Methods, apparatuses and computer program products for providing a location correction cache
CN104135547B (en) A kind of IP address properties verification method and system
CN107920386B (en) Sparse point positioning method, server, system and computer readable storage medium
US11835614B2 (en) Graphical near-field identification method for signal source
TWI601434B (en) Wireless base station identification method and device
WO2016023426A1 (en) Method and device for achieving o2o internet service

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16877493

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877493

Country of ref document: EP

Kind code of ref document: A1