WO2014180219A1 - Locating method, device and terminal and computer storage medium - Google Patents

Locating method, device and terminal and computer storage medium Download PDF

Info

Publication number
WO2014180219A1
WO2014180219A1 PCT/CN2014/075254 CN2014075254W WO2014180219A1 WO 2014180219 A1 WO2014180219 A1 WO 2014180219A1 CN 2014075254 W CN2014075254 W CN 2014075254W WO 2014180219 A1 WO2014180219 A1 WO 2014180219A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
value
fingerprints
terminal
similarity
Prior art date
Application number
PCT/CN2014/075254
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 WO2014180219A1 publication Critical patent/WO2014180219A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0252Radio frequency fingerprinting
    • G01S5/02521Radio frequency fingerprinting using a radio-map
    • G01S5/02524Creating or updating the radio-map
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/0009Transmission of position information to remote stations
    • G01S5/0018Transmission from mobile station to base station
    • G01S5/0036Transmission from mobile station to base station of measured values, i.e. measurement on mobile and position calculation on base station

Definitions

  • the present invention relates to the field of communication technologies, and in particular, to a positioning method, apparatus, terminal, and computer storage medium. Background technique
  • LBS location based services
  • GPS positioning is that the satellite coverage is large and the positioning is free. In the actual urban environment, due to the weak GPS signal, in the high-rise environment of the city, the building cannot be penetrated, resulting in inaccurate GPS positioning, sometimes even not searching. To the satellite signal.
  • Positioning technology based on mobile network signaling has been in existence for many years.
  • the positioning principle mainly uses cell identification code (Cell-ID), triangulation, time of arrival (TOA), time difference of arrival (TDOA, Time Difference of Arrival),
  • the AA (Arrival of Angle) method is used to estimate the position of the user.
  • the accuracy of these positioning methods can only reach 100 meters, and the base station needs to be modified based on the TOA, TDOA or AOA. to make This is higher and has not been widely applied at present.
  • the WLAN-based positioning technology mainly includes the following methods: The first is that a wireless terminal with Wi-Fi (Wireless Fidelity) function establishes a connection with a wireless access node (AP, Access Point), The location of the wireless AP is used to estimate the location of the mobile terminal, but the location information of the wireless AP needs to be known in advance. Wi-Fi positioning technology in Google Maps uses this technology to scan wireless AP information and its current location information through a street view car. This method is costly and infringes on personal privacy. The car has now stopped publicly collecting user Wi-Fi.
  • Wi-Fi Wireless Fidelity
  • the second type is a fingerprint positioning technology based on Received Signal Strength Indication (RSSI), which requires pre-arranging a Wi-Fi hotspot device in a positioning scenario, and then dividing the grid to measure the signal strength of the positioning scene.
  • RSSI location fingerprint database estimates the location of the user according to the signal strength received by the user's terminal in the positioning.
  • the positioning accuracy of this method mainly depends on the number of wireless APs and the division of the positioning scene grid. Currently, it is mainly used indoors. Positioning. However, in the outdoor field of the city, due to the limitation of the cost of installing Wi-Fi hotspots, it is difficult to deploy Wi-Fi hotspots in large cities, and the establishment of fingerprint databases is very difficult. This method is difficult to promote.
  • Wi-Fi Wi-Fi has been widely used in airports, hotels, homes, shopping malls. In places such as shops, it can be said that Wi-Fi information is everywhere in every corner of the city. How to use massive Wi-Fi information to help us better locate it becomes an urgent problem to be solved. Summary of the invention
  • embodiments of the present invention are directed to providing a positioning method, apparatus, terminal, and computer storage medium that can utilize a large amount of Wi-Fi information to better achieve positioning.
  • An embodiment of the present invention provides a positioning method, where the method includes:
  • the positioning request includes an RSSI value and a media access control (MAC) address value of the wireless AP around the terminal to be located;
  • MAC media access control
  • the method further comprises establishing a fingerprint database.
  • the establishing a fingerprint database includes:
  • the RSSI value, the MAC address value, and the longitude value and the latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
  • the method further includes:
  • the fingerprint similarity of the two fingerprints; / is calculated as:
  • the Wi-Fi signal pair refers to two fingerprints, two Wi-Fi signals with the same MAC address, and n is the number of Wi-Fi signal pairs; If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signals, and the m value is 0;
  • the similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
  • r and r are the RSSI values of two Wi-Fi signals and wi 2 respectively.
  • the two fingerprints can be saved by combining the two fingerprints into one fingerprint: f ⁇ rs x , mac i )...(rs n , mac n ), Ion, lai]
  • the RSSI value, the MAC address value, and the longitude and latitude values of the current location are the same.
  • the fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is calculated, as follows:
  • the fingerprint similarity calculation formula of the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is:
  • SIM(f i ] ) ( ⁇ __ l W m )ln; where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, the two MAC addresses are the same Wi-Fi signal, n is the number of Wi-Fi signal pairs; if the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in another fingerprint or _; 0 constitutes a pair of Wi-Fi signal pairs, the M value of 0;
  • the similarity w of the two Wi-Fi signals in the Wi-Fi signal pair is calculated as follows:
  • w(w ,wL) -2 rH ⁇ /2 s -
  • r and r are the RSSI values of two Wi-Fi signals and wi 2 respectively.
  • the embodiment of the invention further provides a positioning device, the device comprising:
  • the positioning request receiving module is configured to receive a positioning request sent by the terminal to be located, where the positioning request includes an RSSI value and a MAC address value of a wireless AP around the terminal to be located; and the fingerprint list searching module is configured to be in a pre-established fingerprint Searching, in the database, a fingerprint list with the same MAC address value sent by the terminal to be located;
  • the fingerprint selection module is configured to calculate a fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and select K fingerprints according to the order of similarity from high to low; wherein K is a positive integer;
  • a positioning module configured to generate a plurality of circumscribed circles according to position coordinates of the K fingerprints stored in the fingerprint database, and determine a center coordinate of the minimum circumscribed circle, wherein a center coordinate of the minimum circumscribed circle is a terminal to be located s position.
  • the device further includes a fingerprint database establishing module, which is specifically configured to: receive an RSSI value, a MAC address value, and a longitude value and a latitude value of a current location of each wireless AP obtained by the user terminal;
  • a fingerprint database establishing module which is specifically configured to: receive an RSSI value, a MAC address value, and a longitude value and a latitude value of a current location of each wireless AP obtained by the user terminal;
  • the RSSI value, the MAC address value, and the longitude value and the latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
  • the fingerprint database establishing module is further configured as follows:
  • the fingerprint database establishing module is further configured as follows:
  • the Wi-Fi signal pair refers to two fingerprints _;, two Wi-Fi signals with the same MAC address, and n is the number of Wi-Fi signal pairs If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signals, and the M value is 0;
  • the similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
  • r and r are the RSSI values of two Wi-Fi signals and wi 2 respectively.
  • the fingerprint database establishing module is further configured as follows:
  • the two fingerprints are merged into one fingerprint by the following formula:
  • the fingerprint selection module is further configured to:
  • the fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is calculated by the following formula:
  • the similarity of the mth pair of Wi-Fi signal pairs refers to two fingerprints; f) the two Wi-Fi signals with the same MAC address, and n is the pair of Wi-Fi signal pairs If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 form a pair of Wi-Fi signals, and the M value is 0. ;
  • the similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
  • r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
  • the embodiment of the invention further provides a terminal, where the terminal includes:
  • a sending unit configured to send a positioning request to the positioning device, where the positioning request includes an RSSI value and a MAC address value of the wireless AP around the terminal to be located;
  • the receiving unit is configured to receive the location information fed back by the positioning device, and display the information.
  • the sending unit is further configured to:
  • the RSSI value and the MAC address value of each of the surrounding wireless APs are transmitted to the positioning device, and the longitude value and the latitude value of the current location.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the positioning method described above.
  • the positioning method, the device, the terminal and the computer storage medium provided by the embodiments of the present invention make full use of the existing mobile internet and Wi-Fi hotspot information to construct a fingerprint database, and pass the RSSI value and the MAC address value reported by the user terminal.
  • the fingerprint similarity is calculated, and the circumscribed circle is constructed for positioning, which has the advantages of high positioning accuracy, low cost, and stable positioning.
  • FIG. 1 is a flowchart of a positioning method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of determining a position of a terminal to be positioned by using a minimum circumscribed circle according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a positioning apparatus according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another positioning device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of positioning in an actual application provided by an embodiment of the present invention.
  • FIG. 6 is a flowchart of positioning in an actual application provided by an embodiment of the present invention. detailed description
  • an embodiment of the present invention relates to a positioning method, where the method includes: Step S101: Receive a positioning request sent by a terminal to be located, where the positioning request includes an RSSI value of a wireless AP around a terminal to be located. MAC address value.
  • the terminal to be located sends a positioning request to the positioning device through the communication network, and simultaneously scans the surrounding wireless AP information (RSSI value and MAC value), and adds all the acquired wireless AP information to the positioning request, and sends the positioning information to the positioning device.
  • the data format of the positioning request may be:
  • p is the number of wireless APs acquired by the terminal to be located.
  • Step S102 In the pre-established fingerprint database, search for a fingerprint list with the same MAC address value sent by the terminal to be located.
  • the related fingerprint is retrieved in the fingerprint database, and the fingerprint database contains the fingerprint list of the MAC address in the positioning request in the fingerprint database, that is:
  • Mac x OR mac 2 OR mac 3 OR ... mac n ;
  • the fingerprint list may include one or more fingerprints.
  • Step S103 Calculate the similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and select K fingerprints according to the order of similarity from high to low.
  • the K is a positive integer.
  • the two fingerprints; / / fingerprint similarity calculation formula is:
  • the Wi-Fi signal pair refers to two fingerprints _;, two Wi-Fi signals with the same MAC address, and n is the number of Wi-Fi signal pairs If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signals, and the M value is 0;
  • the similarity w of the two Wi-Fi signals in the Wi-Fi signal pair is calculated as follows:
  • K fingerprints are selected in order of similarity from high to low.
  • Step S104 Generate a plurality of circumscribed circles according to position coordinates of the K fingerprints stored in the fingerprint database, and determine a center coordinate of the minimum circumscribed circle, where the center coordinate of the minimum circumscribed circle is the position of the terminal to be located.
  • each fingerprint includes a position coordinate, that is, longitude and latitude. Therefore, each fingerprint is equivalent to one point, and each circumscribed circle can determine a circumcircle, so that a plurality of circumscribed circles can be determined, wherein the minimum circumscribed circle center For the final position of the user terminal to be located, the radius of the circle is a confidence interval, as shown in Figure 2.
  • the fingerprint database is pre-established, which mainly includes the following steps:
  • the user terminal with the satellite navigation function and the Wi-Fi function scans the wireless APs in the vicinity thereof, and ensures that the number of wireless APs is more than one (including one), and then obtains the RSSI value and the MAC address value of each wireless AP.
  • the satellite longitude and latitude values of the current location are uploaded to the positioning device through the mobile communication network of the user terminal.
  • the uploaded data format is: mac , , (rs n , mac , Ion, lat ⁇ .
  • the positioning device performs pre-processing on the fingerprint data uploaded by the user terminal, and completes data uploading and saving, and the specific method is :
  • the positioning device first preprocesses the uploaded data. Since each Wi-Fi signal has a signal
  • the intensity value can be divided into two categories according to the signal strength, one is a normal signal, and the other is an abnormal signal; due to physical interference, a signal lower than -99dbm or higher than 66dbm is regarded as an abnormal signal, and is rejected. ; Normal signals are saved.
  • the first step is the similarity calculation.
  • the formula to be satisfied is that the MAC addresses of the two Wi-Fi signals must be the same. If they are different, the similarity is calculated by 0.
  • r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
  • the user terminal uploads information about its neighboring APs, it is recorded as a fingerprint.
  • a fingerprint data there is multiple Wi-Fi information. Therefore, the fingerprint sent by the user terminal; and the fingerprint/fingerprint similarity stored in the fingerprint database are calculated as:
  • the Wi-Fi signal pair refers to two fingerprints _;, two Wi-Fi signals with the same MAC address, and n is a Wi-Fi signal pair If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 form a pair of Wi-Fi signals, and the M value thereof Is 0. If the number of wireless APs in the fingerprint signal uploaded by the user terminal twice before and after the same location changes, that is, some wireless APs in the fingerprint data uploaded by the current user terminal are temporarily turned off, or a part of the wireless AP is newly opened. In the case, it is indicated that there are incompletely matched Wi-Fi signal pairs in the two fingerprint signals, and the n value is the sum of the number of Wi-Fi signal pairs in the two fingerprints and the Wi-Fi number of different MAC addresses.
  • the similarity between the fingerprint data uploaded by the user and the fingerprint data stored in the fingerprint database is calculated, and compared with a preset threshold, the threshold can be simulated according to experience and simulation. To set it up, you can also adjust it continuously in the actual application to get the best value. For example, if the threshold is set to 0.97, if the similarity value is higher than 0.97, the two fingerprints are considered to be similar and can be merged with the original fingerprint. Otherwise, it is considered to be dissimilar and needs to be saved separately.
  • the above two similar fingerprints are combined by the average position method, and the position fingerprint database is updated, and the calculation method is as follows:
  • the fingerprint in the original fingerprint database is:
  • the user terminal uploads the fingerprint as: ⁇ ( 10, 4437E657F0A2 ), ( 30, 1134E657F1A3 ), ( 60 , 3142EA58FAA1 ) ⁇
  • the fingerprint update algorithm should have a value of 4, and the update formula is:
  • an embodiment of the present invention further relates to a positioning apparatus for implementing the foregoing method, including:
  • the location request receiving module 301 is configured to receive a location request sent by the terminal to be located, where the location request includes an RSSI value and a MAC address value of a wireless AP around the terminal to be located; and the fingerprint list search module 302 is configured to be pre-established. In the fingerprint database, searching for a fingerprint list with the same MAC address value sent by the terminal to be located;
  • the fingerprint selection module 303 is configured to calculate a fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and select K fingerprints according to the order of similarity from high to low; wherein K is a positive integer;
  • the positioning module 304 is configured to generate a plurality of circumscribed circles according to position coordinates of the K fingerprints stored in the fingerprint database, and determine a center coordinate of a minimum circumscribed circle, where a center coordinate of the minimum circumscribed circle is to be located The location of the terminal.
  • the positioning device further includes a fingerprint database establishing module 305, which is specifically configured to: receive an RSSI value, a MAC address value, and a longitude value and a latitude value of a current location of each wireless AP obtained by the user terminal;
  • the RSSI value, the MAC address value, and the longitude value and the latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
  • the fingerprint database establishing module 305 is further configured to:
  • SIM(f i ] ) ( ⁇ __ l W m )ln; where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, the two MAC addresses are the same Wi-Fi signal, n is the number of Wi-Fi signal pairs; if the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in another fingerprint or _; 0 constitutes a pair of Wi-Fi signal pairs, the M value of 0;
  • the similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
  • r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
  • the fingerprint selection module 303 is further configured to:
  • the fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is calculated by the following calculation formula:
  • SIM(f i ] ) ( ⁇ __ l W m )ln; where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, the two MAC addresses are the same Wi-Fi signal, n is the number of Wi-Fi signal pairs; if the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in another fingerprint or _; In the case, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signal pairs, and the M value is 0;
  • the similarity w of the two Wi-Fi signals in the Wi-Fi signal pair is calculated as follows:
  • r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
  • the positioning request receiving module 301, the fingerprint list searching module 302, the fingerprint selecting module 303, the positioning module 304, and the fingerprint database establishing module 305 may be an application processor or a central processing unit (CPU) in a device or a server to which the positioning device belongs. , Central Processing Unit), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • an embodiment of the present invention further relates to a terminal, where the terminal includes:
  • a sending unit configured to send a positioning request to the positioning device, where the positioning request includes an RSSI value and a MAC address value of the wireless AP around the terminal to be located;
  • the receiving unit is configured to receive the location information fed back by the positioning device, and display the information.
  • the sending unit is further configured to:
  • the RSSI value and the MAC address value of each of the surrounding wireless APs are transmitted to the positioning device, and the longitude value and the latitude value of the current location.
  • the terminal may be a mobile phone, a tablet computer, a laptop computer, a navigation device, or the like.
  • the sending unit and the receiving unit may be implemented by an application processor, a CPU, a DSP or an FPGA in the terminal; the sending unit may also be implemented by a transmitter, and the receiving unit may also be implemented by a receiver.
  • the embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the positioning method shown in FIG. 1 in the embodiment of the present invention.
  • FIG. 5 is a schematic diagram of positioning in an actual application according to an embodiment of the present invention.
  • a mobile terminal has a GPS positioning function and supports a Wi-Fi function, and the mobile terminal will acquire the same.
  • the RSSI value, the MAC address value of each surrounding wireless AP, and the longitude and latitude values of the current location are sent to the fingerprint database, and when the mobile terminal is in an environment without GPS signals or poor GPS signals, the positioning may be sent to the positioning device.
  • the requesting device may return a positioning result to the mobile terminal according to the fingerprint data information stored in the fingerprint database.
  • FIG. 6 is a flowchart of positioning in an actual application according to an embodiment of the present invention.
  • a user terminal having a satellite navigation function and a Wi-Fi function scans a wireless AP in the vicinity thereof, and ensures that the number of wireless APs is one.
  • the above including one
  • obtaining the RSSI value, the MAC address value of each wireless AP, and the satellite longitude and latitude values of the current location and uploading the fingerprint and location information to the positioning device through the mobile communication network of the user terminal; the positioning device to the user terminal
  • the uploaded fingerprint data is pre-processed, and the data is uploaded and saved.
  • the positioning terminal sends a positioning request to the positioning device, and the positioning device returns the positioning result to the terminal to be located according to the saved fingerprint data.
  • the embodiment of the present invention fully utilizes the existing mobile internet and Wi-Fi hotspot information to construct a fingerprint database, and constructs a circumscribed circle by calculating the fingerprint similarity according to the RSSI value and the MAC address value reported by the user terminal.
  • Positioning has the advantages of high positioning accuracy, low cost, and stable positioning.
  • the location request sent by the terminal to be located is received; in the fingerprint database that is pre-established, the fingerprint list with the same MAC address value sent by the terminal to be located is searched; the fingerprint in the fingerprint list is calculated and to be determined.
  • a fingerprint similarity of the fingerprint sent by the bit terminal selecting K fingerprints according to the order of similarity from high to low; generating a plurality of circumscribed circles according to the position coordinates of the K fingerprints stored in the fingerprint database, the minimum circumscribed circle
  • the center coordinates of the circle are to be located The location of the terminal; in this way, it can utilize a large amount of Wi-Fi information to achieve better positioning.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a locating method, device and terminal and a computer storage medium. The locating method comprises: receiving a locating request sent by a terminal to be located, wherein the locating request comprises a received signal strength indicator (RSSI) value of a wireless access point (AP) around the terminal to be located and a medium access control (MAC) address value (S101); in a pre-established fingerprint database, searching for a fingerprint list which is the same as the MAC address value sent by the terminal to be located (S102); calculating a fingerprint similarity between a fingerprint in the fingerprint list and a fingerprint sent by the terminal to be located, and selecting K fingerprints according to the order from high to low of the similarity (S103); and according to location coordinates of the saved K fingerprints in the fingerprint database, generating a plurality of circumcircles, wherein the coordinate of the circle centre of the minimum circumcircle is the location of the terminal to be located (S104).

Description

一种定位方法、 装置、 终端和计算机存储介质 技术领域  Positioning method, device, terminal and computer storage medium
本发明涉及通讯技术领域, 特别是涉及一种定位方法、 装置、 终端和 计算机存储介质。 背景技术  The present invention relates to the field of communication technologies, and in particular, to a positioning method, apparatus, terminal, and computer storage medium. Background technique
随着基于位置的服务( LBS, Location Based Service ) 的普及, 用户对 于所处详细位置的需求越来越高, 尽管各种定位系统已经有较高的精准度, 但在城市中, 由于环境比较复杂, 楼宇比较多, 楼层的遮挡现象比较严重, 阻碍了卫星信号的传播, 用户很难在任意时刻获得精确的位置信息, 传统 的定位系统已不能满足用户的需求, 人们迫切需求一种增强室内外定位导 航服务的定位技术。  With the popularity of location based services (LBS), users are increasingly demanding detailed locations. Although various positioning systems already have high accuracy, in cities, due to environmental comparisons. Complex, there are many buildings, the occlusion phenomenon on the floor is serious, which hinders the transmission of satellite signals. It is difficult for users to obtain accurate position information at any time. The traditional positioning system can no longer meet the needs of users. People urgently need an enhanced indoor Positioning technology for external positioning navigation services.
目前的室外定位方法主要有 3种方式:  There are three main methods for current outdoor positioning methods:
1、 传统的基于全球定位系统(GPS, Global Positioning System ) 的定 位方法  1. Traditional positioning method based on Global Positioning System (GPS)
GPS 定位的优势在于卫星覆盖范围大, 定位免费; 而在实际的城市环 境中, 由于 GPS信号比较弱, 在城市的高楼环境中, 无法穿透建筑物, 造 成 GPS定位不准, 有时甚至搜不到卫星信号。  The advantage of GPS positioning is that the satellite coverage is large and the positioning is free. In the actual urban environment, due to the weak GPS signal, in the high-rise environment of the city, the building cannot be penetrated, resulting in inaccurate GPS positioning, sometimes even not searching. To the satellite signal.
2、 基于移动网络的定位技术  2. Location technology based on mobile network
基于移动网络信令的定位技术已经出现多年, 定位原理主要釆用小区 识别码(Cell-ID )、 三角测量、 到达时间 ( TOA, Time Of Arrival )、 到达时 间差(TDOA, Time Difference of Arrival )、信号到达角法(AOA, Arrival of Angle )等方式来估算用户的位置, 这几种定位方法目前精度也只能达到百 米级, 且基于 TOA、 TDOA或者 AOA的方式还需要对基站进行修改, 成 本较高, 目前也未得到大规模应用。 Positioning technology based on mobile network signaling has been in existence for many years. The positioning principle mainly uses cell identification code (Cell-ID), triangulation, time of arrival (TOA), time difference of arrival (TDOA, Time Difference of Arrival), The AA (Arrival of Angle) method is used to estimate the position of the user. The accuracy of these positioning methods can only reach 100 meters, and the base station needs to be modified based on the TOA, TDOA or AOA. to make This is higher and has not been widely applied at present.
3、 基于无线局域网的定位技术  3. Location technology based on wireless LAN
基于无线局域网的定位技术主要包含以下几种方式: 第一种是具有无 线保真( Wi-Fi, Wireless Fidelity )功能的移动终端与某个无线访问节点( AP, Access Point )建立连接, 则以该无线 AP的位置来估算该移动终端的位置, 但事先需要知道该无线 AP的位置信息。谷歌地图( Google Map )中的 Wi-Fi 定位技术即釆用此技术,通过街景车的方式扫描无线 AP的信息及其当前的 位置信息, 此方式成本较高, 且侵犯了个人的隐私, 街景车现已经停止公 开釆集用户 Wi-Fi。第二种是基于接收信号强度指示(RSSI, Received Signal Strength Indication )的指紋定位技术, 这种方式要求事先在定位场景中布置 Wi-Fi热点设备, 然后对定位场景划分网格测量信号强度, 建立 RSSI位置 指紋数据库, 在定位中根据用户的终端接收到的信号强度来估算用户的位 置,此种方式的定位精度主要取决于无线 AP的数量以及定位场景网格的划 分, 目前主要应用在室内的定位。 但在城市的室外领域, 由于布置 Wi-Fi 热点成本的限制,很难在城市中大规模部署 Wi-Fi热点,指紋数据库的建立 也非常困难, 这种方式难以推广。  The WLAN-based positioning technology mainly includes the following methods: The first is that a wireless terminal with Wi-Fi (Wireless Fidelity) function establishes a connection with a wireless access node (AP, Access Point), The location of the wireless AP is used to estimate the location of the mobile terminal, but the location information of the wireless AP needs to be known in advance. Wi-Fi positioning technology in Google Maps uses this technology to scan wireless AP information and its current location information through a street view car. This method is costly and infringes on personal privacy. The car has now stopped publicly collecting user Wi-Fi. The second type is a fingerprint positioning technology based on Received Signal Strength Indication (RSSI), which requires pre-arranging a Wi-Fi hotspot device in a positioning scenario, and then dividing the grid to measure the signal strength of the positioning scene. The RSSI location fingerprint database estimates the location of the user according to the signal strength received by the user's terminal in the positioning. The positioning accuracy of this method mainly depends on the number of wireless APs and the division of the positioning scene grid. Currently, it is mainly used indoors. Positioning. However, in the outdoor field of the city, due to the limitation of the cost of installing Wi-Fi hotspots, it is difficult to deploy Wi-Fi hotspots in large cities, and the establishment of fingerprint databases is very difficult. This method is difficult to promote.
在移动互联网时代,越来越多的人开始使用具有 Wi-Fi和卫星导航的智 能终端设备, 且城市中 Wi-Fi热点已经非常普遍, Wi-Fi已经广泛应用在机 场、酒店、 家庭、商场、店铺等地方,可以说城市的各个角落都遍布着 Wi-Fi 信息,如何利用海量的 Wi-Fi信息来帮助我们更好的定位成为一个急待解决 的问题。 发明内容  In the era of mobile Internet, more and more people are using smart terminal devices with Wi-Fi and satellite navigation, and Wi-Fi hotspots in cities have become very popular. Wi-Fi has been widely used in airports, hotels, homes, shopping malls. In places such as shops, it can be said that Wi-Fi information is everywhere in every corner of the city. How to use massive Wi-Fi information to help us better locate it becomes an urgent problem to be solved. Summary of the invention
有鉴于此, 本发明实施例期望提供一种定位方法、 装置、 终端和计算 机存储介质, 能利用海量的 Wi-Fi信息更好地实现定位。  In view of this, embodiments of the present invention are directed to providing a positioning method, apparatus, terminal, and computer storage medium that can utilize a large amount of Wi-Fi information to better achieve positioning.
为达到上述目的, 本发明实施例的技术方案是这样实现的: 本发明实施例提供了一种定位方法, 所述方法包括: To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows: An embodiment of the present invention provides a positioning method, where the method includes:
接收待定位终端发送的定位请求, 其中, 所述定位请求包括待定位终 端周围的无线 AP的 RSSI值和介质访问控制( MAC, Media Access Control ) 地址值;  Receiving a positioning request sent by the terminal to be located, where the positioning request includes an RSSI value and a media access control (MAC) address value of the wireless AP around the terminal to be located;
在预先建立的指紋数据库中,查找与所述待定位终端发送的 MAC地址 值相同的指紋列表;  In the pre-established fingerprint database, searching for a fingerprint list with the same MAC address value sent by the terminal to be located;
计算所述指紋列表中的指紋与待定位终端发送的指紋的指紋相似度, 按照相似度由高到低的顺序选取 K个指紋; 其中, K为正整数;  Calculating a fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and selecting K fingerprints according to the order of similarity from high to low; wherein K is a positive integer;
根据所述指紋数据库中保存的 K个指紋的位置坐标,生成多个外接圓, 并确定最小外接圓的圓心坐标, 其中, 所述最小外接圓的圓心坐标即为待 定位终端的位置。  And generating a plurality of circumscribed circles according to the position coordinates of the K fingerprints stored in the fingerprint database, and determining a center coordinate of the minimum circumscribed circle, wherein a center coordinate of the minimum circumscribed circle is a position of the terminal to be located.
优选地, 所述方法还包括建立指紋数据库。  Preferably, the method further comprises establishing a fingerprint database.
具体地, 所述建立指紋数据库包括:  Specifically, the establishing a fingerprint database includes:
接收用户终端获取的其周围的各个无线 AP的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值;  Receiving, by the user terminal, an RSSI value, a MAC address value, and a longitude value and a latitude value of each current AP;
将各个无线 AP的 RSSI值、 MAC地址值以及当前位置的经度值和纬 度值作为一条指紋, 进行保存, 形成指紋数据库。  The RSSI value, the MAC address value, and the longitude value and the latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
优选地, 所述进行保存时, 还包括:  Preferably, when the saving is performed, the method further includes:
计算用户终端发送的指紋 _;与指紋数据库中保存的指紋 的指紋相似 度;  Calculating the fingerprint _ sent by the user terminal; and the fingerprint similarity with the fingerprint stored in the fingerprint database;
判断指紋 ;, /的指紋相似度是否大于预先设置的阈值, 如果是, 则将 两个指紋 ;, /合并为一个指紋进行保存;如果否,则分别保存两个指紋 ;, f  Determine whether the fingerprint similarity is greater than a preset threshold, and if so, combine the two fingerprints; /, into one fingerprint for saving; if not, save two fingerprints separately;
优选地, 两个指紋 ;, /的指紋相似度的计算公式为:  Preferably, the fingerprint similarity of the two fingerprints; / is calculated as:
SIM(fi j) = (∑ __lWm)ln ; 其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 , 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 m值为 0; SIM(f ij ) = (∑ __ l W m )ln ; Where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints, two Wi-Fi signals with the same MAC address, and n is the number of Wi-Fi signal pairs; If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signals, and the m value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000006_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000006_0001
其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Where r and r are the RSSI values of two Wi-Fi signals and wi 2 respectively.
优选地,可以通过下述公式将两个指紋 , /合并为一个指紋进行保存: f{{rsx, maci)...(rsn, macn), Ion, lai] Preferably, the two fingerprints can be saved by combining the two fingerprints into one fingerprint: f{{rs x , mac i )...(rs n , mac n ), Ion, lai]
={( 12 1 , +lonJ)/2, (laf +latJ)/2}
Figure imgf000006_0002
={( 1 2 1 , +lon J )/2, (laf +lat J )/2}
Figure imgf000006_0002
其中, (r , maCl)...(rsn', macn Ion', tot'是指紋 的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值; (rs(, maCl)...(rsn, macn lon lat1为指紋 f〗的Where (r , ma Cl )...(rs n ', mac n Ion', tot' is the RSSI value of the fingerprint, the MAC address value, and the longitude and latitude values of the current position; (rs(, ma Cl ). ..(rs n , mac n lon lat 1 is the fingerprint f
RSSI值、 MAC地址值以及当前位置的经度值和纬度值。 The RSSI value, the MAC address value, and the longitude and latitude values of the current location.
优选地, 计算所述指紋列表中的指紋与待定位终端发送的指紋的指紋 相似度, 具体如下:  Preferably, the fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is calculated, as follows:
所述指紋列表中的指紋与待定位终端发送的指紋的指紋相似度计算公 式为:  The fingerprint similarity calculation formula of the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is:
SIM(fi ]) = (∑ __lWm)ln; 其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; SIM(f i ] ) = (∑ __ l W m )ln; where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, the two MAC addresses are the same Wi-Fi signal, n is the number of Wi-Fi signal pairs; if the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in another fingerprint or _; 0 constitutes a pair of Wi-Fi signal pairs, the M value of 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:  The similarity w of the two Wi-Fi signals in the Wi-Fi signal pair is calculated as follows:
w(w ,wL) = -2rH\/2s- 其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 w(w ,wL) = -2 rH \/2 s - Where r and r are the RSSI values of two Wi-Fi signals and wi 2 respectively.
本发明实施例还提供了一种定位装置, 所述装置包括:  The embodiment of the invention further provides a positioning device, the device comprising:
定位请求接收模块, 配置为接收待定位终端发送的定位请求, 其中, 所述定位请求包括待定位终端周围的无线 AP的 RSSI值和 MAC地址值; 指紋列表查找模块, 配置为在预先建立的指紋数据库中, 查找与所述 待定位终端发送的 MAC地址值相同的指紋列表;  The positioning request receiving module is configured to receive a positioning request sent by the terminal to be located, where the positioning request includes an RSSI value and a MAC address value of a wireless AP around the terminal to be located; and the fingerprint list searching module is configured to be in a pre-established fingerprint Searching, in the database, a fingerprint list with the same MAC address value sent by the terminal to be located;
指紋选取模块, 配置为计算所述指紋列表中的指紋与待定位终端发送 的指紋的指紋相似度, 按照相似度由高到低的顺序选取 K个指紋; 其中, K为正整数;  The fingerprint selection module is configured to calculate a fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and select K fingerprints according to the order of similarity from high to low; wherein K is a positive integer;
定位模块,配置为根据所述指紋数据库中保存的 K个指紋的位置坐标, 生成多个外接圓, 并确定最小外接圓的圓心坐标, 其中, 所述最小外接圓 的圓心坐标即为待定位终端的位置。  a positioning module, configured to generate a plurality of circumscribed circles according to position coordinates of the K fingerprints stored in the fingerprint database, and determine a center coordinate of the minimum circumscribed circle, wherein a center coordinate of the minimum circumscribed circle is a terminal to be located s position.
优选地, 所述装置还包括指紋数据库建立模块, 具体配置为: 接收用户终端获取的其周围的各个无线 AP的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值;  Preferably, the device further includes a fingerprint database establishing module, which is specifically configured to: receive an RSSI value, a MAC address value, and a longitude value and a latitude value of a current location of each wireless AP obtained by the user terminal;
将各个无线 AP的 RSSI值、 MAC地址值以及当前位置的经度值和纬 度值作为一条指紋, 进行保存, 形成指紋数据库。  The RSSI value, the MAC address value, and the longitude value and the latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
优选地, 所述指紋数据库建立模块, 还具体配置为:  Preferably, the fingerprint database establishing module is further configured as follows:
计算用户终端发送的指紋 _;与指紋数据库中保存的指紋 的指紋相似 度;  Calculating the fingerprint _ sent by the user terminal; and the fingerprint similarity with the fingerprint stored in the fingerprint database;
判断指紋 ;, /的指紋相似度是否大于预先设置的阈值, 如果是, 则将 两个指紋 ;, /合并为一个指紋进行保存;如果否,则分别保存两个指紋 ;, f  Determine whether the fingerprint similarity is greater than a preset threshold, and if so, combine the two fingerprints; /, into one fingerprint for saving; if not, save two fingerprints separately;
优选地, 所述指紋数据库建立模块, 还具体配置为:  Preferably, the fingerprint database establishing module is further configured as follows:
通过下述公式计算两个指紋 , f 的指紋相似度: SIM(fi j) = (∑"m__1W /n; Calculate the fingerprint similarity of two fingerprints, f by the following formula: SIM(f ij ) = (∑" m __ 1 W /n;
其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; Where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, two Wi-Fi signals with the same MAC address, and n is the number of Wi-Fi signal pairs If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signals, and the M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000008_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000008_0001
其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Where r and r are the RSSI values of two Wi-Fi signals and wi 2 respectively.
优选地, 所述指紋数据库建立模块, 还具体配置为:  Preferably, the fingerprint database establishing module is further configured as follows:
通过下述公式将两个指紋 ;, 合并为一个指紋进行保存:  The two fingerprints are merged into one fingerprint by the following formula:
/{(rs^ maci)...(rsn, macn), Ion, lai] /{(rs^ mac i )...(rs n , mac n ), Ion, lai]
={( 12 1 , +lonJ)/2, (laf +latJ)/2}={( 1 2 1 , +lon J )/2, (laf +lat J )/2}
Figure imgf000008_0002
Figure imgf000008_0002
其中(r , maCl)...(rsn l, macn\ lon tot'是指紋 _;的 RSSI值、 MAC地址值以 及当前位置的经度值和纬度值; (rs(, maCl)...(rsn, macn lon 为指紋 f 的 RSSI值、 MAC地址值以及当前位置的经度值和纬度值。 Where (r , ma Cl )...(rs n l , mac n \ lon tot' is the RSSI value of the fingerprint _; the MAC address value and the longitude and latitude values of the current position; (rs(, ma Cl ). ..(rs n , mac n lon is the RSSI value of the fingerprint f, the MAC address value, and the longitude and latitude values of the current position.
优选地, 所述指紋选取模块, 还配置为:  Preferably, the fingerprint selection module is further configured to:
通过下述公式计算所述指紋列表中的指紋与待定位终端发送的指紋的 指紋相似度:  The fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is calculated by the following formula:
SIM(fi ]) = (∑ __lWm)ln; SIM(f i ] ) = (∑ __ l W m )ln;
其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 ;, f)中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; Wherein, the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints; f) the two Wi-Fi signals with the same MAC address, and n is the pair of Wi-Fi signal pairs If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 form a pair of Wi-Fi signals, and the M value is 0. ;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000009_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000009_0001
其中, 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Where r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
本发明实施例还提供了一种终端, 所述终端包括:  The embodiment of the invention further provides a terminal, where the terminal includes:
发送单元, 配置为向定位装置发送定位请求, 其中, 所述定位请求包 括待定位终端周围的无线 AP的 RSSI值和 MAC地址值;  a sending unit, configured to send a positioning request to the positioning device, where the positioning request includes an RSSI value and a MAC address value of the wireless AP around the terminal to be located;
接收单元, 配置为接收所述定位装置反馈的位置信息, 并进行显示。 优选地, 所述发送单元还配置为:  The receiving unit is configured to receive the location information fed back by the positioning device, and display the information. Preferably, the sending unit is further configured to:
向定位装置发送其周围的各个无线 AP的 RSSI值、 MAC地址值, 以 及其当前位置的经度值和纬度值。  The RSSI value and the MAC address value of each of the surrounding wireless APs are transmitted to the positioning device, and the longitude value and the latitude value of the current location.
本发明实施例还提供了一种计算机存储介质, 所述计算机存储介质中 存储有计算机程序, 所述计算机程序用于执行以上所述的定位方法。  The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the positioning method described above.
本发明实施例所提供的定位方法、 装置、 终端和计算机存储介质, 充 分利用现有的移动互联网络和 Wi-Fi热点信息,构建指紋数据库,根据用户 终端上报的 RSSI值和 MAC地址值, 通过计算指紋相似度, 构建外接圓来 进行定位, 具有定位精度高、 成本低、 定位稳定的优点。 附图说明  The positioning method, the device, the terminal and the computer storage medium provided by the embodiments of the present invention make full use of the existing mobile internet and Wi-Fi hotspot information to construct a fingerprint database, and pass the RSSI value and the MAC address value reported by the user terminal. The fingerprint similarity is calculated, and the circumscribed circle is constructed for positioning, which has the advantages of high positioning accuracy, low cost, and stable positioning. DRAWINGS
图 1 是本发明实施例提供的一种定位方法的流程图;  1 is a flowchart of a positioning method according to an embodiment of the present invention;
图 2 是本发明实施例提供的通过最小外接圓确定待定位终端位置的示 图 3 是本发明实施例提供的一种定位装置的结构示意图;  2 is a schematic diagram of determining a position of a terminal to be positioned by using a minimum circumscribed circle according to an embodiment of the present invention; FIG. 3 is a schematic structural diagram of a positioning apparatus according to an embodiment of the present invention;
图 4 是本发明实施例提供的另一种定位装置的结构示意图;  4 is a schematic structural diagram of another positioning device according to an embodiment of the present invention;
图 5 是本发明实施例提供的实际应用中的定位示意图;  FIG. 5 is a schematic diagram of positioning in an actual application provided by an embodiment of the present invention; FIG.
图 6 是本发明实施例提供的实际应用中的定位流程图。 具体实施方式 FIG. 6 is a flowchart of positioning in an actual application provided by an embodiment of the present invention. detailed description
以下结合附图以及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不限定本发明。  The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图 1所示, 本发明实施例涉及一种定位方法, 该方法包括: 步骤 S101 : 接收待定位终端发送的定位请求, 其中, 所述定位请求包 括待定位终端周围的无线 AP的 RSSI值和 MAC地址值。  As shown in FIG. 1 , an embodiment of the present invention relates to a positioning method, where the method includes: Step S101: Receive a positioning request sent by a terminal to be located, where the positioning request includes an RSSI value of a wireless AP around a terminal to be located. MAC address value.
本步骤中, 待定位终端通过通信网络向定位装置发送定位请求, 同时 扫描周边的无线 AP信息 (RSSI值和 MAC值), 并将获取的所有无线 AP 信息添加到定位请求中, 发送给定位装置, 所述定位请求的数据格式可以 为:  In this step, the terminal to be located sends a positioning request to the positioning device through the communication network, and simultaneously scans the surrounding wireless AP information (RSSI value and MAC value), and adds all the acquired wireless AP information to the positioning request, and sends the positioning information to the positioning device. The data format of the positioning request may be:
AP{(rsl, mac^), (rs2, mac2)...(rsp, macp)}。 AP{(rs l , mac^), (rs 2 , mac 2 )...(rs p , mac p )}.
其中, p为待定位终端获取的无线 AP数量。  Where p is the number of wireless APs acquired by the terminal to be located.
步骤 S102 : 在预先建立的指紋数据库中, 查找与待定位终端发送的 MAC地址值相同的指紋列表。  Step S102: In the pre-established fingerprint database, search for a fingerprint list with the same MAC address value sent by the terminal to be located.
本步骤中, 根据用户发送的定位请求, 在指紋数据库中检索相关的指 紋, 釆用逻辑或方式, 查找指紋数据库中含有上述定位请求中 MAC地址的 指紋列表, 即:  In this step, according to the positioning request sent by the user, the related fingerprint is retrieved in the fingerprint database, and the fingerprint database contains the fingerprint list of the MAC address in the positioning request in the fingerprint database, that is:
macx OR mac2 OR mac3 OR ... macnMac x OR mac 2 OR mac 3 OR ... mac n ;
其中, 所述 " OR " 表示逻辑或符号。  Wherein the "OR" represents a logical or symbol.
具体地, 所述指紋列表中可能包含一条或多条指紋。  Specifically, the fingerprint list may include one or more fingerprints.
步骤 S103 : 计算指紋列表中的指紋与待定位终端发送的指紋的指紋相 似度, 按照相似度由高到低的顺序选取 K个指紋。  Step S103: Calculate the similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and select K fingerprints according to the order of similarity from high to low.
这里, 所述 K为正整数。  Here, the K is a positive integer.
本步骤中, 两个指紋 ;, /的指紋相似度计算公式为:  In this step, the two fingerprints; / / fingerprint similarity calculation formula is:
SIM(fi,fj) = (∑"m__1W /n ; ( 1 ) 其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; SIM(f i ,f j ) = (∑" m __ 1 W /n ; ( 1 ) Where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, two Wi-Fi signals with the same MAC address, and n is the number of Wi-Fi signal pairs If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signals, and the M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:  The similarity w of the two Wi-Fi signals in the Wi-Fi signal pair is calculated as follows:
2rSl - 2 rs2 12" ( 2 ) 其中, 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 2 rSl - 2 rs 2 12" ( 2 ) where , and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
计算出任意两条指紋的相似度后, 按照相似度由高到低的顺序选取 K 个指紋。  After calculating the similarity of any two fingerprints, K fingerprints are selected in order of similarity from high to low.
步骤 S104: 根据指紋数据库中保存的 K个指紋的位置坐标, 生成多个 外接圓, 并确定最小外接圓的圓心坐标, 所述最小外接圓的圓心坐标即为 待定位终端的位置。  Step S104: Generate a plurality of circumscribed circles according to position coordinates of the K fingerprints stored in the fingerprint database, and determine a center coordinate of the minimum circumscribed circle, where the center coordinate of the minimum circumscribed circle is the position of the terminal to be located.
本步骤中, 优选地, K的经验值取 3到 5之间。 每个指紋都包括一个 位置坐标, 即经度和纬度, 因此, 每个指紋相当于一个点, 每 3 个点可以 确定一个外接圓, 这样, 就可以确定多个外接圓, 其中, 最小外接圓圓心 为待定位用户终端的最终位置, 圓的半径为可信区间, 示意图如图 2所示。  In this step, preferably, the empirical value of K is between 3 and 5. Each fingerprint includes a position coordinate, that is, longitude and latitude. Therefore, each fingerprint is equivalent to one point, and each circumscribed circle can determine a circumcircle, so that a plurality of circumscribed circles can be determined, wherein the minimum circumscribed circle center For the final position of the user terminal to be located, the radius of the circle is a confidence interval, as shown in Figure 2.
上述步骤中, 预先建立指紋数据库, 主要包括以下步骤:  In the above steps, the fingerprint database is pre-established, which mainly includes the following steps:
第一步,具有卫星导航功能和 Wi-Fi功能的用户终端扫描其周边的无线 AP情况, 且保证无线 AP数量在一个以上(含一个), 然后获取各个无线 AP的 RSSI值、 MAC地址值以及当前位置的卫星经度和纬度值, 并通过用 户终端的移动通信网络上传至定位装置。  In the first step, the user terminal with the satellite navigation function and the Wi-Fi function scans the wireless APs in the vicinity thereof, and ensures that the number of wireless APs is more than one (including one), and then obtains the RSSI value and the MAC address value of each wireless AP. The satellite longitude and latitude values of the current location are uploaded to the positioning device through the mobile communication network of the user terminal.
优选地,上传的数据格式为: mac , , (rsn , mac , Ion, lat}。 第二步, 定位装置对用户终端上传的指紋数据做预处理, 完成数据的 上传与保存, 具体方法为: Preferably, the uploaded data format is: mac , , (rs n , mac , Ion, lat}. In the second step, the positioning device performs pre-processing on the fingerprint data uploaded by the user terminal, and completes data uploading and saving, and the specific method is :
定位装置首先对上传的数据进行预处理。由于每个 Wi-Fi信号都有信号 强度值, 可以根据信号强度将信号分为两种类别, 一种是正常信号, 一种 是异常信号; 由于有物理干扰, 将低于 -99dbm或高于 66dbm的信号认为是 异常信号, 进行剔除; 正常信号则进行保存。 The positioning device first preprocesses the uploaded data. Since each Wi-Fi signal has a signal The intensity value can be divided into two categories according to the signal strength, one is a normal signal, and the other is an abnormal signal; due to physical interference, a signal lower than -99dbm or higher than 66dbm is regarded as an abnormal signal, and is rejected. ; Normal signals are saved.
另外, 因为大量用户终端上传指紋数据, 会存在多个用户终端将相同 或相似的无线 AP信息上传的情况,如果都——保存不进行处理的话,会存 在很多相似的指紋数据, 进而会占用大量的存储空间, 造成存储空间浪费, 另外, 也不便于快速检索、 查找指紋列表。 因此, 还需要对用户终端上传 的指紋数据与指紋数据库中保存的数据进行相似度判断, 判定相似的, 合 并保存, 判定不相似的, 则分别保存; 具体步骤如下:  In addition, because a large number of user terminals upload fingerprint data, there may be multiple user terminals uploading the same or similar wireless AP information. If all of the data is not processed, there will be a lot of similar fingerprint data, which will occupy a large amount of data. The storage space is wasteful of storage space. In addition, it is not convenient to quickly retrieve and search the fingerprint list. Therefore, it is also necessary to perform similarity judgment on the fingerprint data uploaded by the user terminal and the data stored in the fingerprint database, and determine the similarity, merge and save, and determine the dissimilarity, and save separately; the specific steps are as follows:
第一步, 相似度计算。  The first step is the similarity calculation.
由于城市级别的定位需要很密集的索引, 对于平台服务器的压力很大, 且用户终端提交的数据在很大程度上会有重复, 需要提高索引质量。 两个 Wi-Fi信号的相似度 ^, 计算公式如下:  Since the city-level positioning requires a very dense index, the pressure on the platform server is very large, and the data submitted by the user terminal is largely duplicated, and the index quality needs to be improved. The similarity of two Wi-Fi signals ^, is calculated as follows:
_ 2 _ 2
Figure imgf000012_0001
叫 / 28
Figure imgf000012_0001
Call / 2 8
该公式需满足的条件为, 两个 Wi-Fi信号的 MAC地址必须相同, 如果 不同, 其相似度按 0来计算;  The formula to be satisfied is that the MAC addresses of the two Wi-Fi signals must be the same. If they are different, the similarity is calculated by 0.
其中, 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Where r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
用户终端每上传一次其周边 AP的信息,记为一条指紋。 而在一条指紋 数据中, 包含有多个 Wi-Fi信息。 因此, 用户终端发送的指紋 ;与指紋数据 库中保存的指紋 /的指紋相似度计算公式为:  Each time the user terminal uploads information about its neighboring APs, it is recorded as a fingerprint. In a fingerprint data, there is multiple Wi-Fi information. Therefore, the fingerprint sent by the user terminal; and the fingerprint/fingerprint similarity stored in the fingerprint database are calculated as:
SIM(fi ]) = (∑ __lWm)ln SIM(f i ] ) = (∑ __ l W m )ln
其中, ^为指紋中第 m个 Wi-Fi信号对的相似度, Wi-Fi信号对是指 两个指紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的 个数;若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中 不存在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0。 若用户终端在同一地点前后两次上传的指紋信号中无线 AP 的数量发 生了改变, 即当前用户终端上传的指紋数据中有部分无线 AP 暂时是关闭 的, 或者新开了部分无线 AP, 此种情况中表明两个指紋信号中有不完全匹 配的 Wi-Fi信号对, n值则取两个指紋中 Wi-Fi信号对的数量与不同 MAC 地址的 Wi-Fi数量之和。 Where ^ is the similarity of the mth Wi-Fi signal pair in the fingerprint, the Wi-Fi signal pair refers to two fingerprints _;, two Wi-Fi signals with the same MAC address, and n is a Wi-Fi signal pair If the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in the other fingerprint or _;, the Wi-Fi signal and 0 form a pair of Wi-Fi signals, and the M value thereof Is 0. If the number of wireless APs in the fingerprint signal uploaded by the user terminal twice before and after the same location changes, that is, some wireless APs in the fingerprint data uploaded by the current user terminal are temporarily turned off, or a part of the wireless AP is newly opened. In the case, it is indicated that there are incompletely matched Wi-Fi signal pairs in the two fingerprint signals, and the n value is the sum of the number of Wi-Fi signal pairs in the two fingerprints and the Wi-Fi number of different MAC addresses.
第二步, 当用户终端提交指紋数据后, 按照公式(1 ), 计算用户上传 的指紋数据与指紋数据库中保存指紋数据的相似度, 并与预先设置的阈值 进行对比, 阈值可以根据经验、 仿真来设置, 也可以在实际应用中不断调 整, 以获取最佳数值。 例如, 阈值设置为 0.97, 若相似度值高于 0.97, 则 认为两个指紋是相似的, 可以与原指紋进行合并, 否则认为是不相似的, 需要单独进行保存。  In the second step, after the user terminal submits the fingerprint data, according to formula (1), the similarity between the fingerprint data uploaded by the user and the fingerprint data stored in the fingerprint database is calculated, and compared with a preset threshold, the threshold can be simulated according to experience and simulation. To set it up, you can also adjust it continuously in the actual application to get the best value. For example, if the threshold is set to 0.97, if the similarity value is higher than 0.97, the two fingerprints are considered to be similar and can be merged with the original fingerprint. Otherwise, it is considered to be dissimilar and needs to be saved separately.
第三步, 对上述两个相似的指紋釆用平均位置法合并, 并更新位置指 紋数据库, 计算方式如下:  In the third step, the above two similar fingerprints are combined by the average position method, and the position fingerprint database is updated, and the calculation method is as follows:
/{(rs^ maci )...(rsn , macn), Ion, lai] /{(rs^ mac i )...(rs n , mac n ), Ion, lai]
= {( 1 2 1 , + lonJ ) / 2, (laf + latJ ) / 2}= {( 1 2 1 , + lon J ) / 2, (laf + lat J ) / 2}
Figure imgf000013_0001
Figure imgf000013_0001
其中, (r , maCl)...(rsn' , macn Ion' , tot'是指紋 的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值;指紋 ;可以看做是原指紋数据库中的保存 的指紋; (rs( , maCl)...(rsn , macn lon lat1为指紋 的 RSSI值、 MAC地址值以 及当前位置的经度值和纬度值; 指紋 /可以看作是用户终端提交的指紋。 Where (r , ma Cl )...(rs n ' , mac n Ion' , tot' are the RSSI value of the fingerprint, the MAC address value, and the longitude and latitude values of the current position; the fingerprint; can be regarded as the original fingerprint The saved fingerprint in the database; (rs( , ma Cl )...(rs n , mac n lon lat 1 is the RSSI value of the fingerprint, the MAC address value, and the longitude and latitude values of the current position; the fingerprint/can be regarded as Is the fingerprint submitted by the user terminal.
将合并计算后的指紋保存到指紋数据库中; 对指紋数据库进行更新。 特别地, 若两个相似指紋 MAC值不完全匹配, 则需要按第一步的方法 进行处理, 具体如以下例子:  Save the merged fingerprint to the fingerprint database; update the fingerprint database. In particular, if the MAC values of two similar fingerprints do not match exactly, you need to perform the processing in the first step, as shown in the following example:
原指紋数据库中指紋为:  The fingerprint in the original fingerprint database is:
{( 20, 4437E657F0A2 ), ( 50, 1134E657F1A3 ), ( 80, 3312E658FBA1 )} 用户终端上传指紋为: {( 10, 4437E657F0A2 ), ( 30, 1134E657F1A3 ), ( 60 , 3142EA58FAA1 )} 则指紋更新算法 n值应为 4, 更新计算公式为: {( 20, 4437E657F0A2 ), ( 50, 1134E657F1A3 ), ( 80, 3312E658FBA1 )} The user terminal uploads the fingerprint as: {( 10, 4437E657F0A2 ), ( 30, 1134E657F1A3 ), ( 60 , 3142EA58FAA1 )} The fingerprint update algorithm should have a value of 4, and the update formula is:
{ ( (20+10)/2, 4437E657F0A2 ), ( (50+30)/2, 1134E657F1A3 ), ( 80/2, 3312E658FBA1 ), ( 60/2, 3142EA58FAA1 ) }。  { ( (20+10)/2, 4437E657F0A2 ), ( (50+30)/2, 1134E657F1A3 ), ( 80/2, 3312E658FBA1 ), ( 60/2, 3142EA58FAA1 ) }.
另外, 如图 3 所示, 本发明实施例还涉及一种实现上述方法的定位装 置, 包括:  In addition, as shown in FIG. 3, an embodiment of the present invention further relates to a positioning apparatus for implementing the foregoing method, including:
定位请求接收模块 301,配置为接收待定位终端发送的定位请求,其中, 所述定位请求包括待定位终端周围的无线 AP的 RSSI值和 MAC地址值; 指紋列表查找模块 302, 配置为在预先建立的指紋数据库中, 查找与所 述待定位终端发送的 MAC地址值相同的指紋列表;  The location request receiving module 301 is configured to receive a location request sent by the terminal to be located, where the location request includes an RSSI value and a MAC address value of a wireless AP around the terminal to be located; and the fingerprint list search module 302 is configured to be pre-established. In the fingerprint database, searching for a fingerprint list with the same MAC address value sent by the terminal to be located;
指紋选取模块 303,配置为计算指紋列表中的指紋与待定位终端发送的 指紋的指紋相似度, 按照相似度由高到低的顺序选取 K个指紋; 其中, K 为正整数;  The fingerprint selection module 303 is configured to calculate a fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located, and select K fingerprints according to the order of similarity from high to low; wherein K is a positive integer;
定位模块 304, 配置为根据所述指紋数据库中保存的所述 K个指紋的 位置坐标, 生成多个外接圓, 并确定最小外接圓的圓心坐标, 所述最小外 接圓的圓心坐标即为待定位终端的位置。  The positioning module 304 is configured to generate a plurality of circumscribed circles according to position coordinates of the K fingerprints stored in the fingerprint database, and determine a center coordinate of a minimum circumscribed circle, where a center coordinate of the minimum circumscribed circle is to be located The location of the terminal.
如图 4所示,该定位装置还包括指紋数据库建立模块 305,具体配置为: 接收用户终端获取的其周围的各个无线 AP的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值;  As shown in FIG. 4, the positioning device further includes a fingerprint database establishing module 305, which is specifically configured to: receive an RSSI value, a MAC address value, and a longitude value and a latitude value of a current location of each wireless AP obtained by the user terminal;
将各个无线 AP的 RSSI值、 MAC地址值以及当前位置的经度值和纬 度值作为一条指紋, 进行保存, 形成指紋数据库。  The RSSI value, the MAC address value, and the longitude value and the latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
优选地, 所述指紋数据库建立模块 305还具体配置为:  Preferably, the fingerprint database establishing module 305 is further configured to:
计算用户终端发送的指紋 _;与指紋数据库中保存的指紋 的指紋相似 度;  Calculating the fingerprint _ sent by the user terminal; and the fingerprint similarity with the fingerprint stored in the fingerprint database;
判断指紋 , f 的指紋相似度是否大于预先设置的阈值, 如果是, 则将 两个指紋 ;, /合并为一个指紋进行保存;如果否,则分别保存两个指紋 ;, f Determine whether the fingerprint similarity of fingerprint, f is greater than a preset threshold, and if so, Two fingerprints; / are merged into one fingerprint for saving; if not, two fingerprints are saved separately;
通过下述公式计算两个指紋 , 7的指紋相似度: Calculated by the following equation two fingerprints, fingerprint similarity 7:
SIM(fi ]) = (∑ __lWm)ln; 其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; SIM(f i ] ) = (∑ __ l W m )ln; where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, the two MAC addresses are the same Wi-Fi signal, n is the number of Wi-Fi signal pairs; if the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in another fingerprint or _; 0 constitutes a pair of Wi-Fi signal pairs, the M value of 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000015_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000015_0001
其中, 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Where r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
通过下述公式将两个指紋 L, /合并为一个指紋进行保存:  The two fingerprints L, / are combined into one fingerprint for saving by the following formula:
/{(rs^ maci)...(rsn, macn), Ion, lai] /{(rs^ mac i )...(rs n , mac n ), Ion, lai]
={( 12 1 , +lonJ)/2, (laf +latJ)/2}
Figure imgf000015_0002
={( 1 2 1 , +lon J )/2, (laf +lat J )/2}
Figure imgf000015_0002
其中, (r , maCl)...(rsn l, macn lori , tot'是指紋 f!的 RSSI值、 MAC地址值以及 当前位置的经度值和纬度值; (rs(, maCl)...(rsn, macn Ion] , lat1为指紋 的 RSSI 值、 MAC地址值以及当前位置的经度值和纬度值。 Where (r , ma Cl )...(rs n l , mac n lori , tot' is the RSSI value of the fingerprint f!, the MAC address value, and the longitude and latitude values of the current position; (rs(, ma Cl ) ...(rs n , mac n Ion) , lat 1 is the RSSI value of the fingerprint, the MAC address value, and the longitude and latitude values of the current location.
其中, 所述指紋选取模块 303, 还配置为:  The fingerprint selection module 303 is further configured to:
通过下述计算公式计算指紋列表中的指紋与待定位终端发送的指紋的 指紋相似度:  The fingerprint similarity between the fingerprint in the fingerprint list and the fingerprint sent by the terminal to be located is calculated by the following calculation formula:
SIM(fi ]) = (∑ __lWm)ln; 其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; SIM(f i ] ) = (∑ __ l W m )ln; where is the similarity of the mth pair of Wi-Fi signal pairs, the Wi-Fi signal pair refers to two fingerprints _;, the two MAC addresses are the same Wi-Fi signal, n is the number of Wi-Fi signal pairs; if the MAC address of one of the fingerprints _; or one of the Wi-Fi signals does not exist in another fingerprint or _; In the case, the Wi-Fi signal and 0 constitute a pair of Wi-Fi signal pairs, and the M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:  The similarity w of the two Wi-Fi signals in the Wi-Fi signal pair is calculated as follows:
w(wil, wi2) = l - - 2rH \ / 2s w(wi l , wi 2 ) = l - - 2 rH \ / 2 s
Figure imgf000016_0001
Figure imgf000016_0001
其中, 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Where r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
实际应用中, 所述定位请求接收模块 301、 指紋列表查找模块 302、 指 紋选取模块 303、定位模块 304以及指紋数据库建立模块 305可由定位装置 所属设备或服务器中的应用处理器、 中央处理器(CPU, Central Processing Unit )、 数字信号处理器 (DSP, Digital Signal Processor )或可编程门阵列 ( FPGA, Field Programmable Gate Array ) 实现。  In an actual application, the positioning request receiving module 301, the fingerprint list searching module 302, the fingerprint selecting module 303, the positioning module 304, and the fingerprint database establishing module 305 may be an application processor or a central processing unit (CPU) in a device or a server to which the positioning device belongs. , Central Processing Unit), Digital Signal Processor (DSP) or Field Programmable Gate Array (FPGA).
另外, 本发明实施例还涉及一种终端, 所述终端包括:  In addition, an embodiment of the present invention further relates to a terminal, where the terminal includes:
发送单元, 配置为向定位装置发送定位请求, 其中, 所述定位请求包 括待定位终端周围的无线 AP的 RSSI值和 MAC地址值;  a sending unit, configured to send a positioning request to the positioning device, where the positioning request includes an RSSI value and a MAC address value of the wireless AP around the terminal to be located;
接收单元, 配置为接收所述定位装置反馈的位置信息, 并进行显示。 优选地, 所述发送单元还配置为:  The receiving unit is configured to receive the location information fed back by the positioning device, and display the information. Preferably, the sending unit is further configured to:
向定位装置发送其周围的各个无线 AP的 RSSI值、 MAC地址值, 以 及其当前位置的经度值和纬度值。  The RSSI value and the MAC address value of each of the surrounding wireless APs are transmitted to the positioning device, and the longitude value and the latitude value of the current location.
这里, 所述终端可以为手机、 平板电脑、 手提电脑、 导航等设备。 实际应用中, 所述发送单元和接收单元可由终端中的应用处理器、 CPU, DSP或 FPGA实现; 所述发送单元还可以由发射机实现, 所述接收 单元还可由接收机实现。  Here, the terminal may be a mobile phone, a tablet computer, a laptop computer, a navigation device, or the like. In a practical application, the sending unit and the receiving unit may be implemented by an application processor, a CPU, a DSP or an FPGA in the terminal; the sending unit may also be implemented by a transmitter, and the receiving unit may also be implemented by a receiver.
本发明实施例还记载一种计算机存储介质, 所述计算机存储介质中存 储有计算机程序, 所述计算机程序用于执行本发明实施例中图 1 所示的定 位方法。  The embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the positioning method shown in FIG. 1 in the embodiment of the present invention.
图 5 是本发明实施例提供的实际应用中的定位示意图, 如图 5所示, 某移动终端具有 GPS定位功能且支持 Wi-Fi功能, 该移动终端将获取的其 周围的各个无线 AP的 RSSI值、 MAC地址值以及当前位置的经度值和纬 度值发送至指紋数据库, 当该移动终端处于无 GPS信号或 GPS信号不佳的 环境中时, 可向定位装置发送定位请求, 定位装置可根据所述指紋数据库 中所存储的指紋数据信息向该移动终端返回定位结果。 FIG. 5 is a schematic diagram of positioning in an actual application according to an embodiment of the present invention. As shown in FIG. 5, a mobile terminal has a GPS positioning function and supports a Wi-Fi function, and the mobile terminal will acquire the same. The RSSI value, the MAC address value of each surrounding wireless AP, and the longitude and latitude values of the current location are sent to the fingerprint database, and when the mobile terminal is in an environment without GPS signals or poor GPS signals, the positioning may be sent to the positioning device. The requesting device may return a positioning result to the mobile terminal according to the fingerprint data information stored in the fingerprint database.
图 6为本发明实施例提供的实际应用中的定位流程图, 如图 6所示, 具有卫星导航功能和 Wi-Fi功能的用户终端扫描其周边的无线 AP情况,且 保证无线 AP数量在一个以上(含一个),然后获取各个无线 AP的 RSSI值、 MAC地址值以及当前位置的卫星经度和纬度值, 并通过用户终端的移动通 信网络上传指紋及位置信息至定位装置; 定位装置对用户终端上传的指紋 数据做预处理, 完成数据的上传与保存; 待定位终端向定位装置发送定位 请求, 定位装置根据其保存的指紋数据向待定位终端返回定位结果。  FIG. 6 is a flowchart of positioning in an actual application according to an embodiment of the present invention. As shown in FIG. 6, a user terminal having a satellite navigation function and a Wi-Fi function scans a wireless AP in the vicinity thereof, and ensures that the number of wireless APs is one. The above (including one), and then obtaining the RSSI value, the MAC address value of each wireless AP, and the satellite longitude and latitude values of the current location, and uploading the fingerprint and location information to the positioning device through the mobile communication network of the user terminal; the positioning device to the user terminal The uploaded fingerprint data is pre-processed, and the data is uploaded and saved. The positioning terminal sends a positioning request to the positioning device, and the positioning device returns the positioning result to the terminal to be located according to the saved fingerprint data.
综上所述,本发明实施例充分利用现有的移动互联网络和 Wi-Fi热点信 息, 构建指紋数据库, 根据用户终端上报的 RSSI值和 MAC地址值, 通过 计算指紋相似度, 构建外接圓来进行定位, 具有定位精度高、 成本低、 定 位稳定的优点。  In summary, the embodiment of the present invention fully utilizes the existing mobile internet and Wi-Fi hotspot information to construct a fingerprint database, and constructs a circumscribed circle by calculating the fingerprint similarity according to the RSSI value and the MAC address value reported by the user terminal. Positioning has the advantages of high positioning accuracy, low cost, and stable positioning.
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人 员将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当 不限于上述实施例。 凡在本发明的精神和原则之内所作的任何修改、 等同 替换和改进等, 均应包含在本发明的保护范围之内。 工业实用性  While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above. Any modifications, equivalents, and improvements made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. Industrial applicability
本发明实施例中, 接收待定位终端发送的定位请求; 在预先建立的指 紋数据库中, 查找与所述待定位终端发送的 MAC地址值相同的指紋列表; 计算所述指紋列表中的指紋与待定位终端发送的指紋的指紋相似度, 按照 相似度由高到低的顺序选取 K个指紋; 根据所述指紋数据库中保存的 K个 指紋的位置坐标, 生成多个外接圓, 所述最小外接圓的圓心坐标是待定位 终端的位置; 如此, 能利用海量的 Wi-Fi信息实现更好的定位。 In the embodiment of the present invention, the location request sent by the terminal to be located is received; in the fingerprint database that is pre-established, the fingerprint list with the same MAC address value sent by the terminal to be located is searched; the fingerprint in the fingerprint list is calculated and to be determined. a fingerprint similarity of the fingerprint sent by the bit terminal, selecting K fingerprints according to the order of similarity from high to low; generating a plurality of circumscribed circles according to the position coordinates of the K fingerprints stored in the fingerprint database, the minimum circumscribed circle The center coordinates of the circle are to be located The location of the terminal; in this way, it can utilize a large amount of Wi-Fi information to achieve better positioning.

Claims

权利要求书 claims
1、 一种定位方法, 所述定位方法包括: 1. A positioning method, the positioning method includes:
接收待定位终端发送的定位请求, 其中, 所述定位请求包括待定位终 端周围的无线访问节点 AP 的接收信号强度指示 RSSI值和介质访问控制 MAC地址值; Receive a positioning request sent by the terminal to be located, wherein the positioning request includes the received signal strength indication RSSI value and the medium access control MAC address value of the wireless access node AP around the terminal to be located;
在预先建立的指紋数据库中,查找与所述待定位终端发送的 MAC地址 值相同的指紋列表; In the pre-established fingerprint database, search for a fingerprint list with the same value as the MAC address sent by the terminal to be located;
计算所述指紋列表中的指紋与待定位终端发送的指紋的指紋相似度, 按照相似度由高到低的顺序选取 K个指紋; 其中, K为正整数; Calculate the similarity between the fingerprints in the fingerprint list and the fingerprints sent by the terminal to be located, and select K fingerprints in order from high to low similarity; where K is a positive integer;
根据所述指紋数据库中保存的 K个指紋的位置坐标,生成多个外接圓, 并确定最小外接圓的圓心坐标, 其中, 所述最小外接圓的圓心坐标即为待 定位终端的位置。 According to the position coordinates of K fingerprints saved in the fingerprint database, multiple circumscribed circles are generated, and the center coordinates of the smallest circumscribed circle are determined, where the center coordinates of the smallest circumscribed circle are the positions of the terminals to be located.
2、 根据权利要求 1所述的定位方法, 其中, 所述方法还包括: 建立指 紋数据库; 2. The positioning method according to claim 1, wherein the method further includes: establishing a fingerprint database;
所述建立指紋数据库, 包括: The establishment of a fingerprint database includes:
接收用户终端获取的其周围的各个无线 AP的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值; Receive the RSSI values, MAC address values of various wireless APs around it obtained by the user terminal, and the longitude and latitude values of the current location;
将各个无线 AP的 RSSI值、 MAC地址值以及当前位置的经度值和纬 度值作为一条指紋, 进行保存, 形成指紋数据库。 The RSSI value, MAC address value, and longitude value and latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
3、 根据权利要求 2所述的定位方法, 其中, 所述进行保存时, 包括: 计算用户终端发送的指紋 _;与指紋数据库中保存的指紋 的指紋相似 度; 3. The positioning method according to claim 2, wherein the saving includes: calculating the fingerprint similarity between the fingerprint sent by the user terminal and the fingerprint saved in the fingerprint database;
判断指紋 _;, /的指紋相似度是否大于预先设置的阈值, 如果是, 则将 两个指紋 ;, /合并为一个指紋进行保存;如果否,则分别保存两个指紋 ;, f Determine whether the fingerprint similarity of fingerprint_;,/ is greater than the preset threshold. If so, merge the two fingerprints;,/ into one fingerprint and save it; if not, save the two fingerprints separately;, f
4、 根据权利要求 3所述的定位方法, 其中, 两个指紋 ;, /的指紋相 似度计算公式为: 4. The positioning method according to claim 3, wherein the fingerprint similarity calculation formula of two fingerprints is:
SIM(fi ]) = (∑ __lWm)ln; SIM(f i ] ) = (∑ __ l W m )ln;
其中, 为第 m对无线保真 Wi-Fi信号对的相似度, Wi-Fi信号对是 指两个指紋 ;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对 的个数; 若指紋 _;或/中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 fx中不存在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; Among them, is the similarity of the m-th wireless fidelity Wi-Fi signal pair, and the Wi-Fi signal pair refers to two fingerprints; , the two Wi-Fi signals with the same MAC address, n is the Wi-Fi signal pair number; If the MAC address of a Wi-Fi signal in fingerprint _; or / does not exist in another fingerprint or f x , then the Wi-Fi signal and 0 form a Wi-Fi signal pair, and its M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000020_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000020_0001
其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Among them, r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
5、 根据权利要求 3或 4所述的定位方法, 其中, 通过下述公式将两个 指紋 _;, 合并为一个指紋进行保存: 5. The positioning method according to claim 3 or 4, wherein two fingerprints are combined into one fingerprint for storage by the following formula:
/{(rs^ maci)...(rsn, macn), Ion, lai] /{(rs^ mac i )...(rs n , mac n ), Ion, lai]
={( 12 1 , +lonJ)/2, (laf +latJ)/2}
Figure imgf000020_0002
={( 1 2 1 , +lon J )/2, (laf +lat J )/2}
Figure imgf000020_0002
其中, (r , maCl)...(rsn l, macn lori , tot'是指紋 f!的 RSSI值、 MAC地址值以及 当前位置的经度值和纬度值; (rs(, maCl)...(rsn, macn Ion] , lat1为指紋 的 RSSI 值、 MAC地址值以及当前位置的经度值和纬度值。 Among them, (r, ma Cl )...(rs n l , mac n lori, tot' is the RSSI value, MAC address value of fingerprint f! and the longitude value and latitude value of the current location; (rs(, ma Cl ) ...(rs n , mac n Ion], lat 1 is the RSSI value of the fingerprint, the MAC address value, and the longitude and latitude values of the current location.
6、 根据权利要求 1所述的定位方法, 其中, 计算所述指紋列表中的指 紋与待定位终端发送的指紋的指紋相似度, 具体如下: 6. The positioning method according to claim 1, wherein the fingerprint similarity between the fingerprints in the fingerprint list and the fingerprints sent by the terminal to be located is calculated, specifically as follows:
所述指紋列表中的指紋与待定位终端发送的指紋的指紋相似度计算公 式为: The fingerprint similarity calculation formula between the fingerprints in the fingerprint list and the fingerprints sent by the terminal to be located is:
SIM(fi ]) = (∑ __lWm)ln; SIM(f i ] ) = (∑ __ l W m )ln;
其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; Among them, is the similarity of the m-th Wi-Fi signal pair, and the Wi-Fi signal pair refers to two There are two Wi-Fi signals with the same MAC address in fingerprint_;, n is the number of Wi-Fi signal pairs; if the MAC address of one Wi-Fi signal in fingerprint_; or in another fingerprint or _; does not exist, then the Wi-Fi signal and 0 form a Wi-Fi signal pair, and its M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下: The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000021_0001
Figure imgf000021_0001
其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Among them, r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
7、 一种定位装置, 所述定位装置包括: 7. A positioning device, the positioning device includes:
定位请求接收模块, 配置为接收待定位终端发送的定位请求, 其中, 所述定位请求包括待定位终端周围的无线访问节点 AP 的接收信号强度指 示 RSSI值和介质访问控制 MAC地址值; The positioning request receiving module is configured to receive a positioning request sent by the terminal to be located, wherein the positioning request includes the received signal strength indication RSSI value and the medium access control MAC address value of the wireless access node AP around the terminal to be located;
指紋列表查找模块, 配置为在预先建立的指紋数据库中, 查找与所述 待定位终端发送的 MAC地址值相同的指紋列表; The fingerprint list search module is configured to search in a pre-established fingerprint database for a fingerprint list with the same MAC address value sent by the terminal to be located;
指紋选取模块, 配置为计算所述指紋列表中的指紋与待定位终端发送 的指紋的指紋相似度, 按照相似度由高到低的顺序选取 K个指紋; 其中, K为正整数; The fingerprint selection module is configured to calculate the fingerprint similarity between the fingerprints in the fingerprint list and the fingerprints sent by the terminal to be located, and select K fingerprints in order from high to low similarity; where K is a positive integer;
定位模块,配置为根据所述指紋数据库中保存的 K个指紋的位置坐标, 生成多个外接圓, 并确定最小外接圓的圓心坐标, 其中, 所述最小外接圓 的圓心坐标即为待定位终端的位置。 The positioning module is configured to generate a plurality of circumscribed circles based on the position coordinates of the K fingerprints saved in the fingerprint database, and determine the center coordinates of the minimum circumscribed circle, where the center coordinates of the minimum circumscribed circle are the terminal to be located. s position.
8、 根据权利要求 7所述的定位装置, 其中, 所述装置还包括指紋数据 库建立模块, 配置为: 8. The positioning device according to claim 7, wherein the device further includes a fingerprint database establishment module configured as:
接收用户终端获取的其周围的各个无线 AP的 RSSI值、 MAC地址值 以及当前位置的经度值和纬度值; Receive the RSSI values, MAC address values, and the longitude and latitude values of the current location obtained by the user terminal of each wireless AP around it;
将各个无线 AP的 RSSI值、 MAC地址值以及当前位置的经度值和纬 度值作为一条指紋, 进行保存, 形成指紋数据库。 The RSSI value, MAC address value, and longitude value and latitude value of the current location of each wireless AP are saved as a fingerprint to form a fingerprint database.
9、根据权利要求 8所述的定位装置,其中, 所述指紋数据库建立模块, ¾J己 : 9. The positioning device according to claim 8, wherein: the fingerprint database establishing module, ¾JJ:
计算用户终端发送的指紋 ;与指紋数据库中保存的指紋 的指紋相似 度; Calculate the fingerprint similarity between the fingerprint sent by the user terminal and the fingerprint saved in the fingerprint database;
判断指紋 ;, /的指紋相似度是否大于预先设置的阈值, 如果是, 则将 两个指紋 ;, /合并为一个指紋进行保存;如果否,则分别保存两个指紋 ;, f Determine whether the fingerprint similarity of fingerprint ;, / is greater than the preset threshold. If so, merge the two fingerprints ;, / into one fingerprint and save it; if not, save the two fingerprints ;, f
10、 根据权利要求 9所述的定位装置, 其中, 所述指紋数据库建立模 块, 还配置为: 10. The positioning device according to claim 9, wherein the fingerprint database establishment module is further configured to:
通过下述公式计算两个指紋 , 7的指紋相似度: Calculate the fingerprint similarity of two fingerprints, 7 , by the following formula:
SIM(fi ]) = (∑ __lWm)ln; SIM(f i ] ) = (∑ __ l W m )ln;
其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; Among them, is the similarity of the m-th Wi-Fi signal pair, and the Wi-Fi signal pair refers to two fingerprints_;, two Wi-Fi signals with the same MAC address in , n is the number of Wi-Fi signal pairs ; If the MAC address of one Wi-Fi signal in the fingerprint _; or does not exist in the other fingerprint or _, then the Wi-Fi signal and 0 form a Wi-Fi signal pair, and its M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000022_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000022_0001
其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Among them, r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
11、 根据权利要求 9或 10所述的定位装置, 其中, 所述指紋数据库建 立模块, 还配置为: 11. The positioning device according to claim 9 or 10, wherein the fingerprint database establishment module is further configured to:
通过下述公式将两个指紋 L, /合并为一个指紋进行保存: The two fingerprints L, / are combined into one fingerprint and saved by the following formula:
/{(rs^ maci)...(rsn, macn), Ion, lai] /{(rs^ mac i )...(rs n , mac n ), Ion, lai]
={( 12 1 , +lonJ)/2, (laf +latJ)/2} ={( 1 2 1 , +lon J )/2, (laf +lat J )/2}
Figure imgf000022_0002
Figure imgf000022_0002
其中(r , maCl)...(rsn l, macn lori , tot'是指紋 _;的 RSSI值、 MAC地址值以及当 前位置的经度值和纬度值; (rs(, maCl)...(rsn, macn lon] , 为指紋 /.的 RSSI 值、 MAC地址值以及当前位置的经度值和纬度值。 Among them (r, ma Cl )...(rs n l , mac n lori, tot' is the RSSI value, MAC address value of fingerprint_; and the longitude value and latitude value of the current location; (rs(, ma Cl ). ..(rs n , mac n lon ] , is the RSSI of fingerprint/. value, MAC address value, and longitude and latitude values of the current location.
12、 根据权利要求 7 所述的定位装置, 其中, 所述指紋选取模块, 还 配置为: 12. The positioning device according to claim 7, wherein the fingerprint selection module is further configured to:
通过下述公式计算所述指紋列表中的指紋与待定位终端发送的指紋的 指紋相似度: The fingerprint similarity between the fingerprints in the fingerprint list and the fingerprints sent by the terminal to be located is calculated by the following formula:
SIM(fi ]) = (∑ __lWm)ln ; SIM(f i ] ) = (∑ __ l W m )ln ;
其中, 为第 m对 Wi-Fi信号对的相似度, Wi-Fi信号对是指两个指 紋 _;, 中 MAC地址相同的两个 Wi-Fi信号, n为 Wi-Fi信号对的个数; 若指紋 _;或 中的一个 Wi-Fi信号的 MAC地址在另一条指紋 或 _;中不存 在, 则该 Wi-Fi信号与 0构成一对 Wi-Fi信号对, 其 M值为 0; Among them, is the similarity of the m-th Wi-Fi signal pair, and the Wi-Fi signal pair refers to two fingerprints_;, two Wi-Fi signals with the same MAC address in , n is the number of Wi-Fi signal pairs ; If the MAC address of one Wi-Fi signal in the fingerprint _; or does not exist in the other fingerprint or _, then the Wi-Fi signal and 0 form a Wi-Fi signal pair, and its M value is 0;
Wi-Fi信号对中两个 Wi-Fi信号的相似度 w, 计算公式如下:
Figure imgf000023_0001
The similarity w of two Wi-Fi signals in a Wi-Fi signal pair is calculated as follows:
Figure imgf000023_0001
其中, r 和 r 分别为两个 Wi-Fi信号 、 wi2的 RSSI值。 Among them, r and r are the RSSI values of the two Wi-Fi signals and wi 2 respectively.
13, 一种终端, 包括: 13. A terminal, including:
发送单元, 配置为向定位装置发送定位请求, 其中, 所述定位请求包 括待定位终端周围的无线访问节点 AP的接收信号强度指示 RSSI值和介质 访问控制 MAC地址值; The sending unit is configured to send a positioning request to the positioning device, wherein the positioning request includes the received signal strength indication RSSI value and the medium access control MAC address value of the wireless access node AP around the terminal to be located;
接收单元, 配置为接收所述定位装置反馈的位置信息, 并进行显示。 The receiving unit is configured to receive the position information fed back by the positioning device and display it.
14、 根据权利要求 13所述的终端, 其中, 所述发送单元还配置为: 向定位装置发送其周围的各个无线 AP的 RSSI值、 MAC地址值, 以 及其当前位置的经度值和纬度值。 14. The terminal according to claim 13, wherein the sending unit is further configured to: send to the positioning device the RSSI value and MAC address value of each wireless AP around it, as well as the longitude value and latitude value of its current location.
15、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 1至 6任一项所述的方 15. A computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the method described in any one of claims 1 to 6.
PCT/CN2014/075254 2013-10-21 2014-04-14 Locating method, device and terminal and computer storage medium WO2014180219A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310495535.6 2013-10-21
CN201310495535.6A CN104581931A (en) 2013-10-21 2013-10-21 Positioning method, device and terminal

Publications (1)

Publication Number Publication Date
WO2014180219A1 true WO2014180219A1 (en) 2014-11-13

Family

ID=51866691

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075254 WO2014180219A1 (en) 2013-10-21 2014-04-14 Locating method, device and terminal and computer storage medium

Country Status (2)

Country Link
CN (1) CN104581931A (en)
WO (1) WO2014180219A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249216A (en) * 2017-05-23 2017-10-13 成都联宇云安科技有限公司 One kind is realized to the pinpoint method of intelligent terminal based on auxiliary positioning equipment
CN114208221A (en) * 2020-07-28 2022-03-18 蜂图志科技控股有限公司 Positioning method, positioning device, mobile terminal and storage medium
CN114339588A (en) * 2020-09-25 2022-04-12 纬创资通股份有限公司 Social distance judgment system and social distance judgment method
CN114208221B (en) * 2020-07-28 2024-06-07 蜂图志科技控股有限公司 Positioning method, positioning device, mobile terminal and storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331995A (en) * 2015-06-23 2017-01-11 中兴通讯股份有限公司 Terminal locating method and device
CN105101149B (en) * 2015-07-28 2018-05-04 福建师范大学 A kind of neighbour's detection method based on wireless aps
CN106453212A (en) * 2015-08-11 2017-02-22 中兴通讯股份有限公司 Method and system for realizing wireless connection
CN105611502B (en) * 2015-12-22 2018-12-18 广西瀚特信息产业股份有限公司 A kind of indoor locating system and method based on WiFi Mesh network
CN106019218B (en) * 2016-05-13 2018-05-18 中科劲点(北京)科技有限公司 Terminal relative distance acquisition methods and the terminal that relative distance can be obtained
CN106686547A (en) * 2016-12-23 2017-05-17 南京邮电大学 Indoor fingerprint positioning improvement method based on area division and network topology
CN109951805B (en) * 2017-12-20 2021-06-25 腾讯科技(深圳)有限公司 Position data processing method and device and related equipment
CN110719568B (en) * 2018-07-13 2022-03-25 腾讯大地通途(北京)科技有限公司 Indoor positioning method, device, medium and equipment
CN109379715A (en) * 2018-10-30 2019-02-22 深圳市航天华拓科技有限公司 A kind of localization method of positioning terminal, device and calculate equipment
CN110896561B (en) * 2019-06-13 2022-05-13 腾讯科技(深圳)有限公司 Positioning method, apparatus, system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011019125A1 (en) * 2009-08-12 2011-02-17 한국과학기술원 Participatory place recognition method and method for operating a wireless terminal using a wireless lan received signal strength indicator
CN102802258A (en) * 2011-05-27 2012-11-28 北京百度网讯科技有限公司 Method, server and system for extending locating database
CN102883262A (en) * 2012-09-17 2013-01-16 北京大学 Wi-Fi indoor positioning method on basis of fingerprint matching
CN103052154A (en) * 2012-12-03 2013-04-17 北京航空航天大学 Device and method for performing low-power consumption indoor locating by utilizing Zigbee wireless interfaces
CN103347278A (en) * 2013-06-25 2013-10-09 百度在线网络技术(北京)有限公司 Method and device for renewing fingerprint database in wireless positioning

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100752947B1 (en) * 2003-06-06 2007-08-30 메시네트웍스, 인코포레이티드 MAC protocol for accurately computing the position of wireless devices inside buildings
US8526368B2 (en) * 2011-05-17 2013-09-03 Qualcomm Incorporated Wi-Fi access point characteristics database
CN102791025A (en) * 2011-05-20 2012-11-21 盛乐信息技术(上海)有限公司 Wireless fidelity (WIFI) based layered positioning system and implementing method
CN102932911B (en) * 2012-09-26 2015-02-04 上海顶竹通讯技术有限公司 Positioning method and positioning system of location fingerprints

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011019125A1 (en) * 2009-08-12 2011-02-17 한국과학기술원 Participatory place recognition method and method for operating a wireless terminal using a wireless lan received signal strength indicator
CN102802258A (en) * 2011-05-27 2012-11-28 北京百度网讯科技有限公司 Method, server and system for extending locating database
CN102883262A (en) * 2012-09-17 2013-01-16 北京大学 Wi-Fi indoor positioning method on basis of fingerprint matching
CN103052154A (en) * 2012-12-03 2013-04-17 北京航空航天大学 Device and method for performing low-power consumption indoor locating by utilizing Zigbee wireless interfaces
CN103347278A (en) * 2013-06-25 2013-10-09 百度在线网络技术(北京)有限公司 Method and device for renewing fingerprint database in wireless positioning

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107249216A (en) * 2017-05-23 2017-10-13 成都联宇云安科技有限公司 One kind is realized to the pinpoint method of intelligent terminal based on auxiliary positioning equipment
CN114208221A (en) * 2020-07-28 2022-03-18 蜂图志科技控股有限公司 Positioning method, positioning device, mobile terminal and storage medium
CN114208221B (en) * 2020-07-28 2024-06-07 蜂图志科技控股有限公司 Positioning method, positioning device, mobile terminal and storage medium
CN114339588A (en) * 2020-09-25 2022-04-12 纬创资通股份有限公司 Social distance judgment system and social distance judgment method
CN114339588B (en) * 2020-09-25 2023-11-10 纬创资通股份有限公司 Social distance judging system and social distance judging method

Also Published As

Publication number Publication date
CN104581931A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2014180219A1 (en) Locating method, device and terminal and computer storage medium
RU2689332C2 (en) Adaptive positioning
CN103747524B (en) A kind of Android terminal indoor orientation method based on cloud platform
EP3186653B1 (en) Selective crowdsourcing of location-related data
US11243288B2 (en) Location error radius determination
US8504077B2 (en) System and method for monitoring and disseminating mobile device location information
WO2016134625A1 (en) Wifi access system
EP2907354A2 (en) Method and system of semantic indoor positioning using significant places as satellites
Youssef et al. A taxonomy of localization schemes for wireless sensor networks.
KR101304392B1 (en) Method and apparatus for deciding standard signal strength of access point, method and apparatus for measuring indoor position
CN106170995B (en) Feedback in positioning systems
WO2013174338A2 (en) Method and apparatus for positioning mobile terminal, and mobile terminal
WO2013127349A1 (en) Method, system and apparatus for collecting location information
WO2020207096A1 (en) Method for performing positioning in 5g scenarios, positioning platform and user terminal
US11226391B2 (en) Floor levels of a venue
CN108450060A (en) Localization method, equipment based on WI-FI access points
Mukhopadhyay et al. TELIL: A trilateration and edge learning based indoor localization technique for emergency scenarios
Ma et al. Novel fingerprinting mechanisms for indoor positioning
WO2015188847A1 (en) Supporting indoor positioning
US9161162B2 (en) Estimating the geographical position of an apparatus based on its proximity to other apparatuses
CN105898710B (en) Positioning method and device based on virtual positioning node
TW201140123A (en) Locating electromagnetic signal sources
KR102055001B1 (en) Method And Apparatus for Positioning by Using Grouping
WO2016058533A1 (en) Method and apparatus for generating and positioning descriptive location prompt information
KR101328005B1 (en) Method for setting criteria area to decide position and apparatus therefor

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: 14794133

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: 14794133

Country of ref document: EP

Kind code of ref document: A1