CN113645691A - Indoor positioning method, server and terminal - Google Patents
Indoor positioning method, server and terminal Download PDFInfo
- Publication number
- CN113645691A CN113645691A CN202111087313.1A CN202111087313A CN113645691A CN 113645691 A CN113645691 A CN 113645691A CN 202111087313 A CN202111087313 A CN 202111087313A CN 113645691 A CN113645691 A CN 113645691A
- Authority
- CN
- China
- Prior art keywords
- terminal
- indoor
- signal strength
- wireless access
- indoor preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000005259 measurement Methods 0.000 claims description 25
- 239000006185 dispersion Substances 0.000 claims description 19
- 238000012163 sequencing technique Methods 0.000 claims 2
- 238000012545 processing Methods 0.000 abstract description 10
- 238000004891 communication Methods 0.000 abstract description 6
- 238000012216 screening Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000001174 ascending effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000006227 byproduct Substances 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 239000000047 product Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/33—Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术领域,具体涉及一种室内定位方法、服务器和终端。The present application relates to the field of communication technologies, and in particular, to an indoor positioning method, a server and a terminal.
背景技术Background technique
位置服务(Location Based Services,LBS)也称为定位服务,该定位服务用于向用户提供位置查询、路径规划、导航等与位置信息相关的服务。Location Based Services (LBS), also known as location services, is used to provide users with location information-related services such as location query, route planning, and navigation.
在确定需要对室内(如,商场、医院或机场等区域内)的终端进行定位的情况下,需要对室内定位技术中的无线接入点(Access Point,AP)信号进行信号采集,但是,在对终端进行AP信号采集的过程中,易产生噪声信号,并且不同类型的终端具有不同的射频特性,导致为终端提供的LBS的准确性低,降低用户的使用体验。In the case where it is determined that the terminal needs to be located indoors (such as in shopping malls, hospitals or airports), it is necessary to perform signal acquisition on the wireless access point (Access Point, AP) signal in the indoor positioning technology. In the process of AP signal collection for terminals, noise signals are easily generated, and different types of terminals have different radio frequency characteristics, resulting in low accuracy of LBS provided for terminals and reduced user experience.
发明内容SUMMARY OF THE INVENTION
为此,本申请提供一种室内定位方法、服务器和终端,解决如何在室内环境下提高终端的定位准确性的问题。Therefore, the present application provides an indoor positioning method, a server and a terminal to solve the problem of how to improve the positioning accuracy of a terminal in an indoor environment.
为了实现上述目的,本申请第一方面提供一种室内定位方法,方法包括:获取待定位终端的终端类型和待定位终端的接收信号强度;依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息;其中,预设位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。In order to achieve the above purpose, a first aspect of the present application provides an indoor positioning method, the method includes: acquiring the terminal type of the terminal to be located and the received signal strength of the terminal to be located; The strength and preset position fingerprint database is used to determine the physical position information of the terminal to be located; wherein, the preset position fingerprint database includes a plurality of position fingerprints, and the position fingerprints are used to represent the wireless connection received by different types of terminals at indoor preset positions. Signal strength information sent by the in point.
在一些具体实现中,在获取待定位终端的终端类型和待定位终端的接收信号强度之前,还包括:In some specific implementations, before acquiring the terminal type of the terminal to be located and the received signal strength of the terminal to be located, the method further includes:
获取多个室内预设位置的坐标信息;Obtain coordinate information of multiple indoor preset positions;
依据样本终端的终端类型和室内预设位置的坐标信息,采集样本终端在多个室内预设位置上接收到的无线接入点发送的样本信号强度信息;According to the terminal type of the sample terminal and the coordinate information of the indoor preset position, collect sample signal strength information sent by the wireless access point received by the sample terminal at multiple indoor preset positions;
依据多个室内预设位置的坐标信息、样本终端的终端类型和样本信号强度信息,确定多个室内预设位置的位置指纹;According to the coordinate information of the multiple indoor preset positions, the terminal type of the sample terminal and the sample signal strength information, the position fingerprints of the multiple indoor preset positions are determined;
基于多个室内预设位置的位置指纹,建立预设位置指纹数据库。Based on the position fingerprints of multiple indoor preset positions, a preset position fingerprint database is established.
在一些具体实现中,依据多个室内预设位置的坐标信息、样本终端的终端类型和样本信号强度信息,确定多个室内预设位置的位置指纹,包括:In some specific implementations, the location fingerprints of the multiple indoor preset locations are determined according to the coordinate information of the multiple indoor preset locations, the terminal type of the sample terminal, and the sample signal strength information, including:
依据M个样本信号强度,确定无线接入点在室内预设位置上的信号强度平均值,其中,M个样本信号强度是采用终端类型相同的样本终端在室内预设位置上对无线接入点进行M次测量获得的信号强度,M为大于或等于1的整数;Determine the average signal strength of the wireless access point at the indoor preset position according to the signal strength of the M samples, wherein the signal strength of the M samples is the signal strength of the wireless access point at the indoor preset position using the sample terminal of the same terminal type. The signal strength obtained by performing M times of measurements, where M is an integer greater than or equal to 1;
依据无线接入点在室内预设位置上的信号强度平均值和M个样本信号强度,确定无线接入点在室内预设位置上的信号强度标准差;Determine the standard deviation of the signal strength of the wireless access point at the indoor preset position according to the average signal strength of the wireless access point at the indoor preset position and the signal strength of the M samples;
依据无线接入点在室内预设位置上的信号强度平均值和信号强度标准差,确定无线接入点在室内预设位置上的离散系数;Determine the dispersion coefficient of the wireless access point at the indoor preset position according to the signal strength average value and the signal strength standard deviation of the wireless access point at the indoor preset position;
依据无线接入点在室内预设位置上的离散系数和样本终端的终端类型,确定无线接入点在室内预设位置上的权重;Determine the weight of the wireless access point at the indoor preset position according to the dispersion coefficient of the wireless access point at the indoor preset position and the terminal type of the sample terminal;
依据多个室内预设位置的坐标信息、无线接入点在室内预设位置上的权重和无线接入点在室内预设位置上的信号强度平均值,确定多个室内预设位置的位置指纹。Determine the location fingerprints of the multiple indoor preset positions according to the coordinate information of the multiple indoor preset positions, the weight of the wireless access point at the indoor preset position, and the average value of the signal strength of the wireless access point at the indoor preset position .
在一些具体实现中,离散系数与无线接入点在室内预设位置上的信号强度的波动程度成正比,无线接入点在室内预设位置上的信号强度的波动程度与无线接入点的稳定性成反比。In some specific implementations, the dispersion coefficient is proportional to the fluctuation degree of the signal strength of the wireless access point in the indoor preset position, and the fluctuation degree of the signal strength of the wireless access point in the indoor preset position is proportional to the fluctuation degree of the wireless access point in the indoor preset position. Stability is inversely proportional.
在一些具体实现中,依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息,包括:In some specific implementations, the physical location information of the terminal to be located is determined according to the terminal type of the terminal to be located, the received signal strength of the terminal to be located, and a preset location fingerprint database, including:
依据无线接入点在室内预设位置上的权重、无线接入点在室内预设位置上的信号强度平均值和待定位终端在室内预设位置上的接收信号强度,确定待定位终端与室内预设位置之间的距离;According to the weight of the wireless access point at the indoor preset position, the average value of the signal strength of the wireless access point at the indoor preset position, and the received signal strength of the terminal to be located at the indoor preset position, determine the relationship between the terminal to be located and the indoor preset position. distance between preset positions;
依据待定位终端与室内预设位置之间的距离和室内预设位置的坐标信息,确定待定位终端的物理位置信息。The physical position information of the terminal to be positioned is determined according to the distance between the terminal to be positioned and the indoor preset position and the coordinate information of the indoor preset position.
在一些具体实现中,依据待定位终端与室内预设位置之间的距离和室内预设位置的坐标信息,确定待定位终端的物理位置信息,包括:In some specific implementations, the physical location information of the terminal to be positioned is determined according to the distance between the terminal to be positioned and the indoor preset position and the coordinate information of the indoor preset position, including:
获取K个室内预设位置与待定位终端之间的待处理距离,K为大于或等于1的整数;Obtain the to-be-processed distances between the K indoor preset positions and the terminal to be located, where K is an integer greater than or equal to 1;
对K个待处理距离进行排序,获得排序结果;Sort the K pending distances to obtain the sorting result;
依据排序结果,确定P个参考距离和P个参考位置,参考距离与参考位置一一对应,P为大于或等于1,且,小于或等于K的整数;According to the sorting result, determine P reference distances and P reference positions, the reference distances correspond to the reference positions one-to-one, and P is an integer greater than or equal to 1 and less than or equal to K;
依据P个参考距离和待定位终端的终端类型,确定P个参考位置的距离权重;Determine the distance weights of the P reference positions according to the P reference distances and the terminal type of the terminal to be located;
依据P个参考位置的距离权重和P个参考位置的坐标信息,确定待定位终端的物理位置信息。The physical location information of the terminal to be located is determined according to the distance weights of the P reference locations and the coordinate information of the P reference locations.
为了实现上述目的,本申请第二方面提供一种室内定位方法,方法包括:依据获取到的当前终端的信号强度和当前终端的终端类型,生成定位请求;发送定位请求至服务器,以使服务器依据当前终端的终端类型、当前终端的信号强度和预设位置指纹数据库,确定当前终端的物理位置信息;其中,位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。In order to achieve the above purpose, a second aspect of the present application provides an indoor positioning method, the method includes: generating a positioning request according to the acquired signal strength of the current terminal and the terminal type of the current terminal; The terminal type of the current terminal, the signal strength of the current terminal and the preset location fingerprint database determine the physical location information of the current terminal; wherein, the location fingerprint database includes multiple location fingerprints, and the location fingerprints are used to represent different types of terminals preset indoors Signal strength information received by the wireless access point at the location.
为了实现上述目的,本申请第三方面提供一种服务器,其包括:第一获取模块,被配置为获取待定位终端的终端类型和待定位终端的接收信号强度;位置信息确定模块,被配置为依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息,其中,预设位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。In order to achieve the above purpose, a third aspect of the present application provides a server, which includes: a first acquisition module, configured to acquire the terminal type of the terminal to be located and the received signal strength of the terminal to be located; a location information determination module, configured to Determine the physical location information of the terminal to be located according to the terminal type of the terminal to be located, the received signal strength of the terminal to be located, and a preset location fingerprint database, wherein the preset location fingerprint database includes multiple location fingerprints, and the location fingerprints are used to represent different The signal strength information sent by the wireless access point received by the terminal in the indoor preset position.
在一些具体实现中,服务器,还包括:第二获取模块,被配置为获取多个室内预设位置的坐标信息;In some specific implementations, the server further includes: a second acquisition module configured to acquire coordinate information of multiple indoor preset positions;
采集模块,被配置为依据样本终端的终端类型和室内预设位置的坐标信息,采集样本终端在多个室内预设位置上接收到的无线接入点发送的样本信号强度信息;a collection module, configured to collect sample signal strength information sent by the wireless access points received by the sample terminal at a plurality of indoor preset positions according to the terminal type of the sample terminal and the coordinate information of the indoor preset position;
位置指纹确定模块,被配置为依据多个室内预设位置的坐标信息、样本终端的终端类型和样本信号强度信息,确定多个室内预设位置的位置指纹;The location fingerprint determination module is configured to determine the location fingerprints of the multiple indoor preset locations according to the coordinate information of the multiple indoor preset locations, the terminal type of the sample terminal and the sample signal strength information;
数据库建立模块,被配置为基于多个室内预设位置的位置指纹,建立预设位置指纹数据库。The database establishment module is configured to establish a preset position fingerprint database based on the position fingerprints of the plurality of indoor preset positions.
为了实现上述目的,本申请第四方面提供一种终端,其包括:生成模块,被配置为依据获取到的当前终端的信号强度和当前终端的终端类型,生成定位请求;发送模块,被配置为发送定位请求至服务器,以使服务器依据当前终端的终端类型、当前终端的信号强度和预设位置指纹数据库,确定当前终端的物理位置信息;其中,位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。In order to achieve the above purpose, a fourth aspect of the present application provides a terminal, which includes: a generating module configured to generate a positioning request according to the acquired signal strength of the current terminal and the terminal type of the current terminal; a sending module, configured to Send a positioning request to the server, so that the server determines the physical location information of the current terminal according to the terminal type of the current terminal, the signal strength of the current terminal and the preset location fingerprint database; wherein, the location fingerprint database includes a plurality of location fingerprints, and the location fingerprints use It is used to characterize the signal strength information sent by the wireless access point received by different types of terminals at indoor preset positions.
本申请中的室内定位方法、服务器和终端,因不同类型的终端具有不同的射频特性,通过待定位终端的终端类型能够针对不同类型的终端进行不同的处理,提升对终端的处理的准确性;并且,将待定位终端的终端类型和待定位终端的信号强度与预设位置指纹数据库中的多个位置指纹进行匹配,以确定待定位终端的物理位置信息,其中的位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息,可进一步考察不同类型的终端在不同的物理位置上的信号强度信息,极大地提高了对终端的位置信息的判断准确性,提升用户的使用体验。The indoor positioning method, server and terminal in the present application, because different types of terminals have different radio frequency characteristics, different processing can be performed for different types of terminals according to the terminal type of the terminal to be located, so as to improve the accuracy of terminal processing; In addition, the terminal type of the terminal to be located and the signal strength of the terminal to be located are matched with multiple location fingerprints in the preset location fingerprint database to determine the physical location information of the terminal to be located, and the location fingerprints are used to represent different types of fingerprints. The signal strength information sent by the wireless access point received by the terminal at the indoor preset position can further examine the signal strength information of different types of terminals at different physical locations, which greatly improves the judgment of the terminal's location information. Accuracy and improve user experience.
附图说明Description of drawings
附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细示例实施例进行描述,以上和其它特征和优点对本领域技术人员将变得更加显而易见。The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and together with the embodiments of the present disclosure, they are used to explain the present disclosure, and do not constitute a limitation to the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art from the description of detailed example embodiments with reference to the accompanying drawings.
图1示出本申请一实施例提供的室内定位方法的流程示意图。FIG. 1 shows a schematic flowchart of an indoor positioning method provided by an embodiment of the present application.
图2示出本申请又一实施例提供的室内定位方法的流程示意图。FIG. 2 shows a schematic flowchart of an indoor positioning method provided by another embodiment of the present application.
图3示出本申请实施例提供的室内预设位置的位置指纹的确定方法的流程示意图。FIG. 3 shows a schematic flowchart of a method for determining a location fingerprint of an indoor preset location provided by an embodiment of the present application.
图4示出本申请再一实施例提供的室内定位方法的流程示意图。FIG. 4 shows a schematic flowchart of an indoor positioning method provided by still another embodiment of the present application.
图5示出本申请实施例提供的服务器的结构方框图。FIG. 5 shows a structural block diagram of a server provided by an embodiment of the present application.
图6示出本申请实施例提供的终端的结构方框图。FIG. 6 shows a structural block diagram of a terminal provided by an embodiment of the present application.
图7示出本申请实施例提供的室内定位系统的结构方框图。FIG. 7 shows a structural block diagram of an indoor positioning system provided by an embodiment of the present application.
图8示出本申请实施例提供的室内定位系统的工作方法的流程示意图。FIG. 8 shows a schematic flowchart of a working method of an indoor positioning system provided by an embodiment of the present application.
在附图中:In the attached image:
500:服务器 501:第一获取模块500: Server 501: First Get Module
502:位置信息确定模块 600:终端502: Location information determination module 600: Terminal
601:生成模块 602:发送模块601: Generate module 602: Send module
710:样本终端 720:无线接入设备710: Sample Terminal 720: Wireless Access Device
730:待定位终端 740:定位服务器730: Terminal to be located 740: Location server
711:第一样本终端 712:第二样本终端711: First sample terminal 712: Second sample terminal
71A:第A样本终端 721:第一无线接入设备71A: A-th sample terminal 721: First wireless access device
722:第二无线接入设备 72N:第N无线接入设备722: the second wireless access device 72N: the Nth wireless access device
具体实施方式Detailed ways
以下结合附图对本申请的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本申请,并不用于限制本申请。对于本领域技术人员来说,本申请可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本申请的示例来提供对本申请更好的理解。The specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present application, but not to limit the present application. It will be apparent to those skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating examples of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
图1示出本申请一实施例提供的室内定位方法的流程示意图。该室内定位方法可应用于服务器。如图1所示,室内定位方法可采用如下步骤实现。FIG. 1 shows a schematic flowchart of an indoor positioning method provided by an embodiment of the present application. The indoor positioning method can be applied to a server. As shown in Fig. 1, the indoor positioning method can be implemented by the following steps.
步骤S101,获取待定位终端的终端类型和待定位终端的接收信号强度。Step S101, acquiring the terminal type of the terminal to be located and the received signal strength of the terminal to be located.
其中,待定位终端的终端类型可以包括:智能手机、平板电脑和智能穿戴设备中的任意一种或多种。待定位终端的终端类型还可以包括不同厂家生成的不同型号的终端,例如,第一厂商生成的第一类型终端、第二厂商生成的第二类型终端、……、第A厂商生成的第A类型终端等,A为大于或等于1的整数。The terminal type of the terminal to be located may include any one or more of a smart phone, a tablet computer, and a smart wearable device. The terminal type of the terminal to be located may also include terminals of different types generated by different manufacturers, for example, a first type terminal generated by a first manufacturer, a second type terminal generated by a second manufacturer, ..., the Ath type terminal generated by the Ath manufacturer Type terminal, etc., A is an integer greater than or equal to 1.
因不同厂商的制作工艺不同,不同类型的终端具有的射频特性也不同。例如,第一类型终端对应的发射信号强度与第二类型终端对应的发射信号强度不同,对应地,第一类型终端和第二类型终端在同一位置上的接收信号强度也不同。Due to the different manufacturing processes of different manufacturers, different types of terminals have different RF characteristics. For example, the transmitted signal strength corresponding to the first type terminal is different from the transmitted signal strength corresponding to the second type terminal, and correspondingly, the received signal strength of the first type terminal and the second type terminal at the same location are also different.
步骤S102,依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息。Step S102: Determine the physical location information of the terminal to be located according to the terminal type of the terminal to be located, the received signal strength of the terminal to be located, and a preset location fingerprint database.
其中,预设位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。Wherein, the preset location fingerprint database includes a plurality of location fingerprints, and the location fingerprints are used to represent the signal strength information sent by the wireless access point received by different types of terminals at indoor preset locations.
需要说明的是,预设位置指纹数据库还包括:多种不同类型的样本终端的终端类型、各个样本终端对应的接收信号强度,以及多个室内预设位置。It should be noted that the preset position fingerprint database further includes: terminal types of various different types of sample terminals, the received signal strength corresponding to each sample terminal, and multiple indoor preset positions.
例如,可以将待定位终端的终端类型与预设位置指纹数据库中的样本终端的终端类型相匹配,获得第一样本终端(例如,该第一样本终端的终端类型与待定位终端的终端类型相同或相近);然后,再将待定位终端的接收信号强度与第一样本终端在多个室内预设位置上的接收信号强度再次匹配,可筛选获得多个初步筛选位置信息;基于多个初步筛选位置信息进一步处理,以确定待定位终端的物理位置信息,能够保证待定位终端的物理位置信息更加准确。For example, the terminal type of the terminal to be located can be matched with the terminal type of the sample terminal in the preset location fingerprint database to obtain a first sample terminal (for example, the terminal type of the first sample terminal and the terminal type of the terminal to be located) Then, the received signal strength of the terminal to be located and the received signal strength of the first sample terminal at multiple indoor preset positions are matched again, and a plurality of preliminary screening position information can be obtained by screening; The preliminary screening location information is further processed to determine the physical location information of the terminal to be located, which can ensure that the physical location information of the terminal to be located is more accurate.
在本实施例中,通过待定位终端的终端类型能够针对不同类型的终端进行不同的处理,能够区别不同类型的终端所具有的不同的射频特性,提升对终端的处理的准确性;并且,将待定位终端的终端类型和待定位终端的信号强度与预设位置指纹数据库中的多个位置指纹进行匹配,以确定待定位终端的物理位置信息,其中的位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息,可进一步考察不同类型的终端在不同的物理位置上的信号强度信息,极大地提高了对终端的位置信息的判断准确性,提升用户的使用体验。In this embodiment, different processing can be performed for different types of terminals according to the terminal type of the terminal to be located, different radio frequency characteristics of different types of terminals can be distinguished, and the accuracy of terminal processing can be improved; The terminal type of the terminal to be located and the signal strength of the terminal to be located are matched with multiple location fingerprints in the preset location fingerprint database to determine the physical location information of the terminal to be located. The signal strength information sent by the wireless access point received at the indoor preset location can further examine the signal strength information of different types of terminals at different physical locations, which greatly improves the accuracy of judging the location information of the terminal. Improve user experience.
图2示出本申请又一实施例提供的室内定位方法的流程示意图。该室内定位方法可应用于服务器。如图2所示,室内定位方法可采用如下步骤实现。FIG. 2 shows a schematic flowchart of an indoor positioning method provided by another embodiment of the present application. The indoor positioning method can be applied to a server. As shown in FIG. 2 , the indoor positioning method can be implemented by the following steps.
步骤S201,获取多个室内预设位置的坐标信息。Step S201, acquiring coordinate information of multiple indoor preset positions.
其中,坐标信息可以包括横坐标和纵坐标,该坐标信息是基于室内的预设定位区域,预先建立的室内坐标系确定的信息。The coordinate information may include abscissa and ordinate, and the coordinate information is information determined based on an indoor preset positioning area and a pre-established indoor coordinate system.
例如,在室内(例如,商场、办公楼等)的预设定位区域,以等距离间隔设置参考点(即,室内预设位置),以室内的东西方向为横轴,以南北方向为纵轴建立室内坐标系,并记录每个参考点的坐标信息为(横坐标,纵坐标)。从而准确确定室内预设位置的物理位置,方便后续对设备进行定位。For example, in a preset positioning area indoors (eg, shopping malls, office buildings, etc.), set reference points (ie, indoor preset positions) at equal intervals, with the indoor east-west direction as the horizontal axis, and the north-south direction as the vertical axis Establish an indoor coordinate system, and record the coordinate information of each reference point as (abscissa, ordinate). Thus, the physical position of the indoor preset position is accurately determined, which facilitates subsequent positioning of the device.
步骤S202,依据样本终端的终端类型和室内预设位置的坐标信息,采集样本终端在多个室内预设位置上接收到的无线接入点发送的样本信号强度信息。Step S202 , according to the terminal type of the sample terminal and the coordinate information of the indoor preset position, collect sample signal strength information sent by the wireless access point received by the sample terminal at multiple indoor preset positions.
其中,可以在每个室内预设位置上,使用多个样本终端对多个无线接入点(AccessPoint,AP)发送的样本信号强度进行测量,获得基于每个室内预设位置的样本信号强度信息。Wherein, at each indoor preset position, multiple sample terminals may be used to measure the sample signal strengths sent by multiple wireless access points (Access Points, APs) to obtain sample signal strength information based on each indoor preset position .
例如,采集多个样本终端在第K个参考点上对第n个AP信号源进行测量所获得的m次的样本信号强度。其中,K、m和n均为大于或等于1的整数。For example, the terminal collects the sample signal strengths of m times obtained by measuring the n-th AP signal source at the K-th reference point. Wherein, K, m and n are all integers greater than or equal to 1.
步骤S203,依据多个室内预设位置的坐标信息、样本终端的终端类型和样本信号强度信息,确定多个室内预设位置的位置指纹。Step S203: Determine the position fingerprints of the plurality of indoor preset positions according to the coordinate information of the plurality of indoor preset positions, the terminal type of the sample terminal and the sample signal strength information.
其中,每个室内预设位置的位置指纹可以包括室内预设位置的坐标信息、多个样本终端的终端类型和样本信号强度信息中的任意一种或多种。The location fingerprint of each indoor preset position may include any one or more of coordinate information of the indoor preset position, terminal types of multiple sample terminals, and sample signal strength information.
通过多维度的信息表征每个室内预设位置的位置指纹,能够全面衡量样本终端在室内预设位置上的通信情况,基于该位置指纹可实现对待定位终端进行快速准确的定位,提升终端的使用体验。The location fingerprint of each indoor preset position is represented by multi-dimensional information, which can comprehensively measure the communication situation of the sample terminal in the indoor preset position. experience.
步骤S204,基于多个室内预设位置的位置指纹,建立预设位置指纹数据库。Step S204 , based on the position fingerprints of a plurality of indoor preset positions, establish a preset position fingerprint database.
其中,预设位置指纹数据库包括多个室内预设位置的位置指纹,每个位置指纹都能够涵盖多维度的特征信息(例如,室内预设位置的物理位置信息、不同类型的样本终端在室内预设位置上的通信情况等)。The preset location fingerprint database includes location fingerprints of multiple indoor preset locations, and each location fingerprint can cover multi-dimensional feature information (for example, physical location information of indoor preset locations, different types of sample terminals in indoor preset location fingerprints) communication at the location, etc.).
步骤S205,获取待定位终端的终端类型和待定位终端的接收信号强度。Step S205, acquiring the terminal type of the terminal to be located and the received signal strength of the terminal to be located.
步骤S206,依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息。Step S206: Determine the physical location information of the terminal to be located according to the terminal type of the terminal to be located, the received signal strength of the terminal to be located, and a preset location fingerprint database.
需要说明的是,本实施例中的步骤S205~步骤S206与上一实施例中的步骤S101~步骤S102相同,在此不再赘述。It should be noted that, steps S205 to S206 in this embodiment are the same as steps S101 to S102 in the previous embodiment, and details are not repeated here.
在本实施例中,通过依据样本终端的终端类型和室内预设位置的坐标信息,采集样本终端在多个室内预设位置上接收到的无线接入点发送的样本信号强度信息,能够对多个样本终端在多个室内预设位置上接收到的无线接入点发送的样本信号强度信息进行预处理;依据多个室内预设位置的坐标信息、样本终端的终端类型和样本信号强度信息,确定多个室内预设位置的位置指纹,使该位置指纹能够多维度的反应室内预设位置的物理位置信息和通信信息;基于多个室内预设位置的位置指纹,建立预设位置指纹数据库,使该预设位置指纹数据库可以包括多维度的表征室内预设位置的信息,方便后续对待定位终端的定位处理。并且,待定位终端的终端类型能够针对不同类型的终端进行不同的处理,能够区别不同类型的终端所具有的不同的射频特性,提升对终端的处理的准确性;将待定位终端的终端类型和待定位终端的信号强度与预设位置指纹数据库中的多个位置指纹进行匹配,以确定待定位终端的物理位置信息,其中的位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息,可进一步考察不同类型的终端在不同的物理位置上的信号强度信息,极大地提高了对终端的位置信息的判断准确性,提升用户的使用体验。In this embodiment, by collecting the sample signal strength information sent by the wireless access points received by the sample terminal at multiple indoor preset positions according to the terminal type of the sample terminal and the coordinate information of the indoor preset positions, it is possible to obtain multiple The sample signal strength information sent by the wireless access point received by the sample terminals at multiple indoor preset positions is preprocessed; according to the coordinate information of the multiple indoor preset positions, the terminal type of the sample terminal and the sample signal strength information, Determine the location fingerprints of a plurality of indoor preset locations, so that the location fingerprints can reflect the physical location information and communication information of the indoor preset locations in multiple dimensions; based on the location fingerprints of the multiple indoor preset locations, establish a preset location fingerprint database, The preset position fingerprint database can include multi-dimensional information representing the indoor preset position, which is convenient for subsequent positioning processing of the terminal to be located. In addition, the terminal type of the terminal to be located can be processed differently for different types of terminals, which can distinguish different radio frequency characteristics of different types of terminals, and improve the accuracy of terminal processing; The signal strength of the terminal to be located is matched with a plurality of location fingerprints in the preset location fingerprint database to determine the physical location information of the terminal to be located, and the location fingerprints are used to represent that different types of terminals are received at indoor preset locations. The signal strength information sent by the wireless access point can further examine the signal strength information of different types of terminals at different physical locations, which greatly improves the accuracy of judging the location information of the terminals and improves the user experience.
本申请实施例提供了另一种可能的实现方式。图3示出本申请实施例提供的室内预设位置的位置指纹的确定方法的流程示意图。The embodiment of the present application provides another possible implementation manner. FIG. 3 shows a schematic flowchart of a method for determining a location fingerprint of an indoor preset location provided by an embodiment of the present application.
如图3所示,室内预设位置的位置指纹的确定方法采用如下步骤实现。As shown in FIG. 3 , the method for determining the position fingerprint of the indoor preset position adopts the following steps.
步骤S301,依据M个样本信号强度,确定无线接入点在室内预设位置上的信号强度平均值。Step S301 , according to the signal strengths of the M samples, determine the average signal strength of the wireless access point at a preset indoor position.
其中,M个样本信号强度是采用终端类型相同的样本终端在室内预设位置上对无线接入点进行M次测量获得的信号强度,M为大于或等于1的整数。The M sample signal strengths are signal strengths obtained by using sample terminals of the same terminal type to measure the wireless access point M times at a preset indoor location, and M is an integer greater than or equal to 1.
需要说明的是,无线接入点非常容易受到不同频段的产品的干扰,从而造成测量获得的m次的测量值不相同。例如,常用的无线路由器的频段是2.4GHz频段,第五代移动通信网络(5th Generation Mobile Networks,5G)等)所使用的频段与WiFi所使用的频段相近似,易导致测量获得的测量值之间存在偏差,因此,可以针对每个参考点对一个无线接入点进行m次测量,获得的m个测量值,综合判断该AP信号源在该参考点的信号质量,以提升信号质量的准确性。It should be noted that the wireless access point is very susceptible to interference from products in different frequency bands, resulting in different measurement values obtained by m times. For example, the frequency band of a commonly used wireless router is the 2.4GHz frequency band, and the frequency band used by the 5th Generation Mobile Networks (5G, etc.) is similar to the frequency band used by WiFi, which may easily lead to the difference between the measured values obtained by the measurement. Therefore, m times of measurements on a wireless access point can be performed for each reference point, and the m measured values obtained can comprehensively judge the signal quality of the AP signal source at the reference point, so as to improve the accuracy of the signal quality. sex.
例如,可将M个样本信号强度进行加和运算,获得加和结果;然后将该该加和结果与M的商作为信号强度平均值,以获得平均的信号强度,用以表征终端类型相同的样本终端在室内预设位置上接收到的无线接入点发送的样本信号强度的均值。For example, the signal strengths of M samples can be summed to obtain the summation result; then the quotient of the summation result and M can be used as the average signal strength to obtain the average signal strength, which is used to characterize the same terminal type. The mean value of the sample signal strengths sent by the wireless access point received by the sample terminal at the indoor preset position.
步骤S302,依据无线接入点在室内预设位置上的信号强度平均值和M个样本信号强度,确定无线接入点在室内预设位置上的信号强度标准差。Step S302: Determine the standard deviation of the signal strength of the wireless access point at the indoor preset position according to the average signal strength of the wireless access point at the indoor preset position and the signal strengths of M samples.
其中,采用标准差用于反馈无线接入点在室内预设位置上的M个样本信号强度的离散程度。Wherein, the standard deviation is used to feed back the discrete degree of the signal strength of the M samples of the wireless access point at the indoor preset position.
例如,计算每个样本信号强度与信号强度平均值的差值;对M个差值进行平方运算,获得M个平方值;然后再计算M个平方值的和值,计算该和值与M的商,最后对商求算术平方根,以确定信号强度标准差。For example, calculate the difference between the signal strength of each sample and the average value of the signal strength; square the M difference values to obtain M square values; then calculate the sum of the M square values, and calculate the sum of the sum and M quotient, and finally the arithmetic square root of the quotient to determine the signal strength standard deviation.
步骤S303,依据无线接入点在室内预设位置上的信号强度平均值和信号强度标准差,确定无线接入点在室内预设位置上的离散系数。Step S303: Determine the dispersion coefficient of the wireless access point at the indoor preset position according to the average signal strength and the standard deviation of the signal strength of the wireless access point at the indoor preset position.
其中,离散系数与无线接入点在室内预设位置上的信号强度的波动程度成正比,无线接入点在室内预设位置上的信号强度的波动程度与无线接入点的稳定性成反比。Among them, the dispersion coefficient is proportional to the fluctuation degree of the signal strength of the wireless access point in the indoor preset position, and the fluctuation degree of the signal strength of the wireless access point in the indoor preset position is inversely proportional to the stability of the wireless access point .
需要说明的是,由于对各个无线接入点进行多次测量所获得的信号强度平均值是不同的,使用各个无线接入点对应的离散系数可以更好的反映出每个无线接入点的样本数据的离散程度。即,离散系数越大的无线接入点,其对应的信号强度值波动越大,稳定性越弱;离散系数越小的无线接入点,其对应的信号强度值波动越小,稳定性越强。It should be noted that since the average signal strength obtained by performing multiple measurements on each wireless access point is different, using the dispersion coefficient corresponding to each wireless access point can better reflect the signal strength of each wireless access point. The degree of dispersion of the sample data. That is, for a wireless access point with a larger dispersion coefficient, the corresponding signal strength value fluctuates more and the stability is weaker; for a wireless access point with a smaller dispersion coefficient, the corresponding signal strength value fluctuates less and the stability is weaker. powerful.
步骤S304,依据无线接入点在室内预设位置上的离散系数和样本终端的终端类型,确定无线接入点在室内预设位置上的权重。Step S304: Determine the weight of the wireless access point at the indoor preset position according to the dispersion coefficient of the wireless access point at the indoor preset position and the terminal type of the sample terminal.
其中,无线接入点在室内预设位置上的权重能够表征无线接入点在室内预设位置上的离散情况,以及不同类型的样本终端对应的射频特征。The weight of the wireless access point at the indoor preset position can represent the discrete situation of the wireless access point at the indoor preset position and the radio frequency characteristics corresponding to different types of sample terminals.
例如,可以使用离散系数的倒数进行无线接入点在室内预设位置上的权重的计算,以使离散系数大的无线接入点,对应的权重更小,降低由于无线接入点的不稳定性对最终的定位结果造成的误差,提升定位结果的准确性。For example, the reciprocal of the discrete coefficient can be used to calculate the weight of the wireless access point at the indoor preset position, so that the wireless access point with a large discrete coefficient corresponds to a smaller weight and reduces the instability caused by the wireless access point. It can improve the accuracy of the positioning result by reducing the error caused by the stability of the final positioning result.
并且,通过增加样本终端的终端类型,可反映不同类型的样本终端所具有的不同的射频特性,以提高线接入点在室内预设位置上的权重的准确性。In addition, by increasing the terminal type of the sample terminal, different radio frequency characteristics of different types of sample terminals can be reflected, so as to improve the accuracy of the weight of the line access point in the indoor preset position.
步骤S305,依据多个室内预设位置的坐标信息、无线接入点在室内预设位置上的权重和无线接入点在室内预设位置上的信号强度平均值,确定多个室内预设位置的位置指纹。Step S305: Determine a plurality of indoor preset positions according to the coordinate information of the multiple indoor preset positions, the weight of the wireless access point at the indoor preset position, and the average value of the signal strength of the wireless access point at the indoor preset position location fingerprint.
其中,每个室内预设位置的位置指纹,包括:室内预设位置的坐标信息、无线接入点在室内预设位置上的权重和无线接入点在室内预设位置上的信号强度平均值中的任意一种或多种。The location fingerprint of each indoor preset position includes: coordinate information of the indoor preset position, the weight of the wireless access point at the indoor preset position, and the average signal strength of the wireless access point at the indoor preset position any one or more of them.
采用无线接入点在室内预设位置上的信号强度平均值能够对信号强度进行平均化处理,更能体现无线接入点在室内预设位置上的通信特性;并且,基于无线接入点在室内预设位置上的权重,能够降低由于无线接入点的不稳定性对最终的定位结果造成的误差,提升定位结果的准确性。Using the average value of the signal strength of the wireless access point at the indoor preset position can average the signal strength, which can better reflect the communication characteristics of the wireless access point at the indoor preset position; The weight on the indoor preset position can reduce the error caused by the instability of the wireless access point to the final positioning result, and improve the accuracy of the positioning result.
在一些具体实现中,步骤S102或步骤S206中的依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息,可以采用如下方式实现。In some specific implementations, determining the physical location information of the terminal to be located according to the terminal type of the terminal to be located, the received signal strength of the terminal to be located, and the preset location fingerprint database in step S102 or step S206 can be implemented in the following manner.
依据无线接入点在室内预设位置上的权重、无线接入点在室内预设位置上的信号强度平均值和待定位终端在室内预设位置上的接收信号强度,确定待定位终端与室内预设位置之间的距离;依据待定位终端与室内预设位置之间的距离和室内预设位置的坐标信息,确定待定位终端的物理位置信息。According to the weight of the wireless access point at the indoor preset position, the average value of the signal strength of the wireless access point at the indoor preset position, and the received signal strength of the terminal to be located at the indoor preset position, determine the relationship between the terminal to be located and the indoor preset position. The distance between the preset positions; according to the distance between the terminal to be positioned and the indoor preset position and the coordinate information of the indoor preset position, the physical position information of the terminal to be positioned is determined.
其中,可以基于无线接入点在室内预设位置上的信号强度平均值和待定位终端在室内预设位置上的接收信号强度,计算无线接入点在预设室内预设位置上的离散程度,并基于该离散程度和无线接入点在室内预设位置上的权重,对待定位终端的与室内预设位置之间的距离进行加权运算,以获得加权后的距离,使得该加权后的距离能够表征无线接入点在室内预设位置上的信号强度的稳定性。Wherein, the degree of dispersion of the wireless access point at the preset indoor preset position may be calculated based on the average value of the signal strength of the wireless access point at the preset indoor position and the received signal strength of the terminal to be located at the preset indoor position , and based on the degree of dispersion and the weight of the wireless access point at the indoor preset position, perform a weighted calculation on the distance between the terminal to be positioned and the indoor preset position to obtain a weighted distance such that the weighted distance It can characterize the stability of the signal strength of the wireless access point in the indoor preset position.
并且,将加权后的距离,与室内预设位置的坐标信息进行比较,可获得更准确的待定位终端的物理位置信息,提升待定位终端的定位准确性,提升用户的使用体验。Moreover, by comparing the weighted distance with the coordinate information of the indoor preset position, more accurate physical location information of the terminal to be located can be obtained, the positioning accuracy of the terminal to be located can be improved, and the user experience can be improved.
在一些具体实现中,依据待定位终端与室内预设位置之间的距离和室内预设位置的坐标信息,确定待定位终端的物理位置信息,包括:获取K个室内预设位置与待定位终端之间的待处理距离;对K个待处理距离进行排序,获得排序结果;依据排序结果,确定P个参考距离和P个参考位置,参考距离与参考位置一一对应;依据P个参考距离和待定位终端的终端类型,确定P个参考位置的距离权重;依据P个参考位置的距离权重和P个参考位置的坐标信息,确定待定位终端的物理位置信息。In some specific implementations, the physical location information of the terminal to be located is determined according to the distance between the terminal to be located and the indoor preset location and the coordinate information of the preset indoor location, including: acquiring K indoor preset locations and the terminal to be located The distances to be processed between; sort the K distances to be processed to obtain a sorting result; according to the sorting results, determine P reference distances and P reference positions, and the reference distances correspond to the reference positions one-to-one; according to the P reference distances and The terminal type of the terminal to be positioned determines the distance weights of the P reference positions; the physical position information of the terminal to be positioned is determined according to the distance weights of the P reference positions and the coordinate information of the P reference positions.
其中,K为大于或等于1的整数,P为大于或等于1,且,小于或等于K的整数。Wherein, K is an integer greater than or equal to 1, P is an integer greater than or equal to 1, and less than or equal to K.
需要说明的是,排序结果可以是对K个待处理距离进行升序排序所获得的结果,也可以是K个待处理距离进行降序排序所获得的结果。而P个参考距离是K个待处理距离中数值最小的几个距离,以使获得的P个参考位置更接近待定位终端的物理位置信息,从而准确的估算出待定位终端的物理位置信息。It should be noted that the sorting result may be a result obtained by sorting the K distances to be processed in ascending order, or may be a result obtained by sorting the K distances to be processed in descending order. The P reference distances are the distances with the smallest values among the K distances to be processed, so that the obtained P reference positions are closer to the physical location information of the terminal to be located, thereby accurately estimating the physical location information of the terminal to be located.
图4示出本申请再一实施例提供的室内定位方法的流程示意图。该室内定位方法可应用于终端。如图4所示,室内定位方法可采用如下步骤实现。FIG. 4 shows a schematic flowchart of an indoor positioning method provided by still another embodiment of the present application. The indoor positioning method can be applied to a terminal. As shown in FIG. 4 , the indoor positioning method can be implemented by the following steps.
步骤S401,依据获取到的当前终端的信号强度和当前终端的终端类型,生成定位请求。Step S401 , generating a positioning request according to the acquired signal strength of the current terminal and the terminal type of the current terminal.
其中,当前终端的终端类型可以包括:智能手机、平板电脑和智能穿戴设备中的任意一种或多种。当前终端的终端类型还可以包括不同厂家生成的不同型号的终端,例如,第一厂商生成的第一类型终端、第二厂商生成的第二类型终端、……、第A厂商生成的第A类型终端等,A为大于或等于1的整数。Wherein, the terminal type of the current terminal may include: any one or more of a smart phone, a tablet computer, and a smart wearable device. The terminal type of the current terminal may also include terminals of different models generated by different manufacturers, for example, a first-type terminal generated by a first manufacturer, a second-type terminal generated by a second manufacturer, ..., the A-th type generated by the A-th manufacturer Terminal, etc., A is an integer greater than or equal to 1.
因不同厂商的制作工艺不同,不同类型的终端具有的射频特性也不同。例如,第一类型终端对应的发射信号强度与第二类型终端对应的发射信号强度不同,对应地,第一类型终端和第二类型终端在同一位置上的接收信号强度也不同。Due to the different manufacturing processes of different manufacturers, different types of terminals have different RF characteristics. For example, the transmitted signal strength corresponding to the first type terminal is different from the transmitted signal strength corresponding to the second type terminal, and correspondingly, the received signal strength of the first type terminal and the second type terminal at the same location are also different.
其中,定位请求包括:当前终端的信号强度和/或当前终端的终端类型;定位请求还可以包括当前终端的标识(例如,当前终端的设备标识或手机号码等),以唯一确定当前终端。The positioning request includes: the signal strength of the current terminal and/or the terminal type of the current terminal; the positioning request may also include the identification of the current terminal (for example, the device identification of the current terminal or the mobile phone number, etc.) to uniquely determine the current terminal.
步骤S402,发送定位请求至服务器。Step S402, sending a positioning request to the server.
在确定服务器接收到定位请求的情况下,服务器依据当前终端的终端类型、当前终端的信号强度和预设位置指纹数据库,确定当前终端的物理位置信息。When it is determined that the server receives the positioning request, the server determines the physical location information of the current terminal according to the terminal type of the current terminal, the signal strength of the current terminal and the preset location fingerprint database.
其中,预设位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。Wherein, the preset location fingerprint database includes a plurality of location fingerprints, and the location fingerprints are used to represent the signal strength information sent by the wireless access point received by different types of terminals at indoor preset locations.
需要说明的是,预设位置指纹数据库还包括:多种不同类型的样本终端的终端类型、各个样本终端对应的接收信号强度,以及多个室内预设位置。It should be noted that the preset position fingerprint database further includes: terminal types of various different types of sample terminals, the received signal strength corresponding to each sample terminal, and multiple indoor preset positions.
例如,可以将当前终端的终端类型与预设位置指纹数据库中的样本终端的终端类型相匹配,获得第一样本终端(例如,该第一样本终端的终端类型与当前终端的终端类型相同或相近);然后,再将当前终端的接收信号强度与第一样本终端在多个室内预设位置上的接收信号强度再次匹配,可筛选获得多个初步筛选位置信息;基于多个初步筛选位置信息进一步处理,以确定当前终端的物理位置信息,能够保证当前终端的物理位置信息更加准确。For example, the terminal type of the current terminal can be matched with the terminal type of the sample terminal in the preset location fingerprint database to obtain a first sample terminal (for example, the terminal type of the first sample terminal is the same as the terminal type of the current terminal) Then, the received signal strength of the current terminal is matched with the received signal strength of the first sample terminal at multiple indoor preset positions again, and multiple preliminary screening position information can be obtained by screening; based on multiple preliminary screening The location information is further processed to determine the physical location information of the current terminal, which can ensure that the physical location information of the current terminal is more accurate.
在本实施例中,通过依据获取到的当前终端的信号强度和当前终端的终端类型,生成定位请求,能够反应当前终端的请求参数,细化当前终端的定位需求;发送定位请求至服务器,以使服务器能够结合当前终端的定位需求和相关参数,并将当前终端的当前终端的终端类型、当前终端的信号强度和预设位置指纹数据库中的多个位置指纹进行匹配,快捷准确的获得当前终端的物理位置信息,提升对当前终端的定位准确性,保证当前终端能够基于该物理位置信息获取期望的信息,提升用户的使用体验。In this embodiment, by generating a positioning request according to the acquired signal strength of the current terminal and the terminal type of the current terminal, the request parameters of the current terminal can be reflected, and the positioning requirements of the current terminal can be refined; the positioning request is sent to the server to It enables the server to combine the positioning requirements and related parameters of the current terminal, and match the terminal type of the current terminal of the current terminal, the signal strength of the current terminal and multiple position fingerprints in the preset position fingerprint database, and obtain the current terminal quickly and accurately. The physical location information of the current terminal improves the positioning accuracy of the current terminal, ensures that the current terminal can obtain desired information based on the physical location information, and improves the user experience.
图5示出本申请实施例提供的服务器的结构方框图。如图5所示,该服务器500,包括如下模块。FIG. 5 shows a structural block diagram of a server provided by an embodiment of the present application. As shown in FIG. 5 , the server 500 includes the following modules.
第一获取模块501,被配置为获取待定位终端的终端类型和待定位终端的接收信号强度;位置信息确定模块502,被配置为依据待定位终端的终端类型、待定位终端的接收信号强度和预设位置指纹数据库,确定待定位终端的物理位置信息,其中,预设位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。The first acquiring module 501 is configured to acquire the terminal type of the terminal to be located and the received signal strength of the terminal to be located; the location information determination module 502 is configured to obtain the terminal type of the terminal to be located, the received signal strength of the terminal to be located and the received signal strength of the terminal to be located. A preset location fingerprint database to determine the physical location information of the terminal to be located, wherein the preset location fingerprint database includes multiple location fingerprints, and the location fingerprints are used to represent the wireless access points received by different types of terminals at indoor preset locations Signal strength information sent.
在一些具体实现中,服务器500,还包括:第二获取模块,被配置为获取多个室内预设位置的坐标信息;采集模块,被配置为依据样本终端的终端类型和室内预设位置的坐标信息,采集样本终端在多个室内预设位置上接收到的无线接入点发送的样本信号强度信息;位置指纹确定模块,被配置为依据多个室内预设位置的坐标信息、样本终端的终端类型和样本信号强度信息,确定多个室内预设位置的位置指纹;数据库建立模块,被配置为基于多个室内预设位置的位置指纹,建立预设位置指纹数据库。In some specific implementations, the server 500 further includes: a second acquisition module configured to acquire coordinate information of a plurality of indoor preset positions; an acquisition module configured to be based on the terminal type of the sample terminal and the coordinates of the indoor preset positions information, to collect the sample signal strength information sent by the wireless access point received by the sample terminal at multiple indoor preset positions; the location fingerprint determination module is configured to be based on the coordinate information of the multiple indoor preset positions, the terminal Type and sample signal strength information to determine the position fingerprints of multiple indoor preset positions; the database establishment module is configured to establish a preset position fingerprint database based on the position fingerprints of the multiple indoor preset positions.
在一些具体实现中,位置指纹确定模块,具体用于依据M个样本信号强度,确定无线接入点在室内预设位置上的信号强度平均值,其中,M个样本信号强度是采用终端类型相同的样本终端在室内预设位置上对无线接入点进行M次测量获得的信号强度,M为大于或等于1的整数;依据无线接入点在室内预设位置上的信号强度平均值和M个样本信号强度,确定无线接入点在室内预设位置上的信号强度标准差;依据无线接入点在室内预设位置上的信号强度平均值和信号强度标准差,确定无线接入点在室内预设位置上的离散系数;依据无线接入点在室内预设位置上的离散系数和样本终端的终端类型,确定无线接入点在室内预设位置上的权重;依据多个室内预设位置的坐标信息、无线接入点在室内预设位置上的权重和无线接入点在室内预设位置上的信号强度平均值,确定多个室内预设位置的位置指纹。In some specific implementations, the location fingerprint determination module is specifically configured to determine the average signal strength of the wireless access point at the indoor preset position according to the signal strengths of the M samples, wherein the signal strengths of the M samples are of the same terminal type. The signal strength obtained by the sample terminal of the wireless access point measured M times at the indoor preset position, M is an integer greater than or equal to 1; according to the average signal strength of the wireless access point at the indoor preset position and M The signal strength of the samples is determined, and the standard deviation of the signal strength of the wireless access point at the indoor preset position is determined; according to the average signal strength and the standard deviation of the signal strength of the wireless access point The dispersion coefficient at the indoor preset position; according to the dispersion coefficient of the wireless access point at the indoor preset position and the terminal type of the sample terminal, determine the weight of the wireless access point at the indoor preset position; The coordinate information of the position, the weight of the wireless access point at the indoor preset position and the average value of the signal strength of the wireless access point at the indoor preset position are used to determine the position fingerprints of the multiple indoor preset positions.
在一些具体实现中,离散系数与无线接入点在室内预设位置上的信号强度的波动程度成正比,无线接入点在室内预设位置上的信号强度的波动程度与无线接入点的稳定性成反比。In some specific implementations, the dispersion coefficient is proportional to the fluctuation degree of the signal strength of the wireless access point in the indoor preset position, and the fluctuation degree of the signal strength of the wireless access point in the indoor preset position is proportional to the fluctuation degree of the wireless access point in the indoor preset position. Stability is inversely proportional.
在一些具体实现中,位置信息确定模块502,具体用于:依据无线接入点在室内预设位置上的权重、无线接入点在室内预设位置上的信号强度平均值和待定位终端在室内预设位置上的接收信号强度,确定待定位终端与室内预设位置之间的距离;依据待定位终端与室内预设位置之间的距离和室内预设位置的坐标信息,确定待定位终端的物理位置信息。In some specific implementations, the location information determination module 502 is specifically configured to: according to the weight of the wireless access point at the indoor preset location, the average signal strength of the wireless access point at the indoor preset location, and the location of the terminal to be located at The received signal strength at the indoor preset position determines the distance between the terminal to be positioned and the indoor preset position; the terminal to be positioned is determined according to the distance between the terminal to be positioned and the indoor preset position and the coordinate information of the indoor preset position physical location information.
在一些具体实现中,依据待定位终端与室内预设位置之间的距离和室内预设位置的坐标信息,确定待定位终端的物理位置信息,包括:获取N个室内预设位置与待定位终端之间的待处理距离,N为大于或等于1的整数;对N个待处理距离进行排序,获得排序结果;依据排序结果,确定K个参考距离和K个参考位置,参考距离与参考位置一一对应,K为大于或等于1,且,小于或等于N的整数;依据K个参考距离和待定位终端的终端类型,确定K个参考位置的距离权重;依据K个参考位置的距离权重和K个参考位置的坐标信息,确定待定位终端的物理位置信息。In some specific implementations, the physical location information of the terminal to be located is determined according to the distance between the terminal to be located and the indoor preset location and the coordinate information of the preset indoor location, including: acquiring N preset indoor locations and the terminal to be located. The distance to be processed between, N is an integer greater than or equal to 1; sort the N distances to be processed to obtain the sorting result; according to the sorting result, determine K reference distances and K reference positions, the reference distance and the reference position are one. One-to-one correspondence, K is an integer greater than or equal to 1 and less than or equal to N; according to the K reference distances and the terminal type of the terminal to be located, the distance weights of the K reference positions are determined; according to the distance weights of the K reference positions and The coordinate information of the K reference positions determines the physical position information of the terminal to be located.
在本实施方式中,通过获取模块依据待定位终端的终端类型能够针对不同类型的终端进行不同的处理,能够区别不同类型的终端所具有的不同的射频特性,提升对终端的处理的准确性;并且,使用位置信息确定模块将待定位终端的终端类型和待定位终端的信号强度与预设位置指纹数据库中的多个位置指纹进行匹配,以确定待定位终端的物理位置信息,其中的位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息,可进一步考察不同类型的终端在不同的物理位置上的信号强度信息,极大地提高了对终端的位置信息的判断准确性,提升用户的使用体验。In this embodiment, the acquisition module can perform different processing for different types of terminals according to the terminal type of the terminal to be located, can distinguish different radio frequency characteristics of different types of terminals, and improve the accuracy of terminal processing; And, use the location information determination module to match the terminal type of the terminal to be located and the signal strength of the terminal to be located with a plurality of location fingerprints in the preset location fingerprint database to determine the physical location information of the terminal to be located, wherein the location fingerprints It is used to characterize the signal strength information sent by the wireless access point received by different types of terminals at indoor preset positions, and can further examine the signal strength information of different types of terminals at different physical locations, greatly improving The accuracy of the judgment of the location information can improve the user experience.
图6示出本申请实施例提供的终端的结构方框图。如图6所示,该终端600,包括如下模块。FIG. 6 shows a structural block diagram of a terminal provided by an embodiment of the present application. As shown in FIG. 6 , the terminal 600 includes the following modules.
生成模块601,被配置为依据获取到的当前终端的信号强度和当前终端的终端类型,生成定位请求;发送模块602,被配置为发送定位请求至服务器,以使服务器依据当前终端的终端类型、当前终端的信号强度和预设位置指纹数据库,确定当前终端的物理位置信息;其中,位置指纹数据库包括多个位置指纹,位置指纹用于表征不同类型的终端在室内预设位置上接收到的无线接入点发送的信号强度信息。The
在本实施方式中,通过生成模块依据获取到的当前终端的信号强度和当前终端的终端类型,生成定位请求,能够反应当前终端的请求参数,细化当前终端的定位需求;使用发送模块发送定位请求至服务器,以使服务器能够结合当前终端的定位需求和相关参数,并将当前终端的当前终端的终端类型、当前终端的信号强度和预设位置指纹数据库中的多个位置指纹进行匹配,快捷准确的获得当前终端的物理位置信息,提升对当前终端的定位准确性,保证当前终端能够基于该物理位置信息获取期望的信息,提升用户的使用体验。In this embodiment, the generation module generates a positioning request according to the acquired signal strength of the current terminal and the terminal type of the current terminal, which can reflect the request parameters of the current terminal and refine the positioning requirements of the current terminal; use the sending module to send the positioning request Request to the server, so that the server can combine the current terminal's positioning requirements and related parameters, and match the current terminal's current terminal's terminal type, current terminal's signal strength and multiple location fingerprints in the preset location fingerprint database, quickly and easily. Accurately obtain the physical location information of the current terminal, improve the positioning accuracy of the current terminal, ensure that the current terminal can obtain desired information based on the physical location information, and improve the user experience.
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施方式中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that each module involved in this embodiment is a logical module. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
图7示出本申请实施例提供的室内定位系统的结构方框图。如图7所示,该室内定位系统包括如下设备。FIG. 7 shows a structural block diagram of an indoor positioning system provided by an embodiment of the present application. As shown in FIG. 7 , the indoor positioning system includes the following devices.
样本终端710、无线接入设备720、待定位终端730和定位服务器740。A sample terminal 710 , a wireless access device 720 , a terminal to be located 730 and a positioning server 740 .
其中,样本终端710包括第一样本终端711、第二样本终端712、……、第A样本终端71A等,其中,A为大于或等于1的整数。无线接入设备720包括第一无线接入设备721、第二无线接入设备722、……、第N无线接入设备72N等,其中,N为大于或等于1的整数,其中,无线接入设备720还可以包括:AP信号源。The sample terminal 710 includes a
图8示出本申请实施例提供的室内定位系统的工作方法的流程示意图。如图8所示,室内定位系统的工作方法包括如下步骤。FIG. 8 shows a schematic flowchart of a working method of an indoor positioning system provided by an embodiment of the present application. As shown in FIG. 8 , the working method of the indoor positioning system includes the following steps.
步骤S801,定位服务器740建立预设位置指纹数据库。Step S801, the positioning server 740 establishes a preset location fingerprint database.
其中,预设位置指纹数据库包括:多个室内预设位置的位置指纹,每个室内预设位置的位置指纹可以包括:室内预设位置的坐标信息、多个样本终端的终端类型和与样本终端的终端类型对应的样本信号强度信息,样本信号强度信息包括:AP信号源对应的信号强度值。Wherein, the preset location fingerprint database includes: location fingerprints of multiple indoor preset locations, and the location fingerprints of each indoor preset location may include: coordinate information of the indoor preset location, terminal types of multiple sample terminals, and terminal types related to the sample terminals. The sample signal strength information corresponding to the terminal type of , and the sample signal strength information includes: the signal strength value corresponding to the AP signal source.
在一些具体实现中,可采用如下方法获取每个室内预设位置的位置指纹:In some specific implementations, the following methods can be used to obtain the location fingerprint of each indoor preset location:
在室内(例如,商场、办公楼等)的预设定位区域,以等距离间隔设置参考点(即,室内预设位置),以室内的东西方向为x轴,以南北方向为y轴建立室内坐标系,并记录每个参考点的物理位置坐标(xi,yi)。再选择n个AP信号源,使用多个不同类型的样本终端(例如,第一样本终端711、第二样本终端712、……、第A样本终端71A等)在每个参考点上对每个AP信号源进行m测量,以获得该参考点对应的一个m*n的矩阵RSm*n,可采用公式(1)表示:In a preset positioning area indoors (for example, shopping malls, office buildings, etc.), set reference points (ie, indoor preset positions) at equidistant intervals, take the east-west direction of the room as the x-axis, and use the north-south direction as the y-axis to establish the indoor coordinate system, and record the physical location coordinates (x i , y i ) of each reference point. Then select n AP signal sources, use a plurality of different types of sample terminals (for example, the
其中,表示样本终端在该参考点上对第n个AP信号源进行测量所获得的第m次的测量值(即,第n个AP信号源对应的信号强度值),x和y表示实数,m和n均表示大于或等于1的整数。i表示大于或等于1,且,小于或等于n的整数。in, Represents the mth measurement value obtained by the sample terminal measuring the nth AP signal source at the reference point (that is, the signal strength value corresponding to the nth AP signal source), x and y represent real numbers, m and Each of n represents an integer greater than or equal to 1. i represents an integer greater than or equal to 1 and less than or equal to n.
需要说明的是,在每个参考点上都可以接收到n个AP信号源所发送的信号,对预设定位区域中设置的每一个参考点都进行上述测量和信号强度值的采集,并且可使用不同类型的样本终端进行上述数据的采集。则可以获得多个不同类型的样本终端在多个参考点上的m*n的矩阵RSm*n。将样本终端的终端类型、参考点对应的坐标信息、和m*n的矩阵RSm*n作为该参考点的位置指纹,并基于多个参考点的位置指纹建立预设位置指纹数据库。It should be noted that the signals sent by n AP signal sources can be received at each reference point, and the above measurement and signal strength value collection are performed for each reference point set in the preset positioning area, and the signal strength value can be collected. The above data collection was performed using different types of sample terminals. Then, an m*n matrix RS m*n of multiple different types of sample terminals at multiple reference points can be obtained. The terminal type of the sample terminal, the coordinate information corresponding to the reference point, and the m*n matrix RS m*n are used as the position fingerprint of the reference point, and a preset position fingerprint database is established based on the position fingerprints of the multiple reference points.
在一些具体实现中,位置指纹还可以包括:根据矩阵RSm*n中的信号强度值计算获得的第i个AP信号源对应的离散系数Vi。In some specific implementations, the location fingerprint may further include: a discrete coefficient Vi corresponding to the i-th AP signal source obtained by calculation according to the signal strength values in the matrix RS m*n .
其中,第i个AP信号源对应的离散系数Vi可采用公式(2)计算获得:Among them, the discrete coefficient Vi corresponding to the i-th AP signal source can be calculated and obtained by using formula (2):
其中,δi表示第i个AP信号源在第K个参考点上的m次测量值的标准差,avri表示第i个AP信号源在第K个参考点上的m次测量值的平均值,K表示大于或等于1的整数。Among them, δ i represents the standard deviation of the m measured values of the ith AP signal source at the K th reference point, and avr i represents the average of m measured values of the ith AP signal source on the K th reference point value, K represents an integer greater than or equal to 1.
需要说明的是,由于对各个AP信号源测量的m次测量值的平均值avri是不同的,使用各个AP信号源对应的离散系数Vi可以更好的反映出每个AP信号源的样本数据的离散程度。即,离散系数越大的AP信号源,其对应的信号强度值波动越大,稳定性越弱;离散系数越小的AP信号源,其对应的信号强度值波动越小,稳定性越强。It should be noted that, since the average value avr i of m times of measurement values measured for each AP signal source is different, using the dispersion coefficient Vi corresponding to each AP signal source can better reflect the sample data of each AP signal source. degree of dispersion. That is, the AP signal source with the larger dispersion coefficient, the greater the fluctuation of the corresponding signal strength value, and the weaker the stability; the AP signal source with the smaller discrete coefficient, the smaller the fluctuation of the corresponding signal strength value, and the stronger the stability.
例如,第i个AP信号源在第K个参考点上的m次测量值的标准差δi可采用公式(3)计算获得。For example, the standard deviation δ i of the m measured values of the i-th AP signal source at the K-th reference point can be calculated and obtained by using formula (3).
其中,表示第一样本终端在第K个参考点上对第1个AP信号源进行测量所获得的第1次的测量值;表示第一样本终端在第K个参考点上对第1个AP信号源进行测量所获得的第m次的测量值。in, Indicates the first measurement value obtained by the first sample terminal measuring the first AP signal source at the Kth reference point; Indicates the mth measurement value obtained by the first sample terminal measuring the first AP signal source at the Kth reference point.
需要说明的是,AP信号源容易受到不同频段的产品的干扰,从而造成测量获得的m次的测量值不相同。例如,常用的无线路由器的频段是2.4GHz频段,5G所使用的频段与WiFi所使用的频段相近似,易导致测量获得的测量值之间存在偏差,因此,需要针对每个参考点对一个AP信号源进行m次测量,获得的m个测量值,综合判断该AP信号源在该参考点的信号质量,以提升信号质量的准确性。It should be noted that the AP signal source is easily interfered by products of different frequency bands, resulting in different m times of measurement values obtained by measurement. For example, the frequency band of a commonly used wireless router is the 2.4GHz frequency band, and the frequency band used by 5G is similar to the frequency band used by WiFi, which can easily lead to deviations between the measured values obtained by measurement. Therefore, it is necessary to measure an AP for each reference point. The signal source performs m measurements, and the obtained m measurement values comprehensively judge the signal quality of the AP signal source at the reference point, so as to improve the accuracy of the signal quality.
第i个AP信号源在第K个参考点上的m次测量值的平均值avri可采用公式(4)计算获得:The average value avr i of m measurements of the i-th AP signal source at the K-th reference point can be calculated by formula (4):
在一些具体实现中,位置指纹还可以包括:第i个AP信号源对应的权重因子Wi。In some specific implementations, the location fingerprint may further include: a weighting factor W i corresponding to the i-th AP signal source.
第i个AP信号源对应的权重因子Wi可以采用公式(5)计算获得:The weight factor W i corresponding to the i-th AP signal source can be calculated by formula (5):
其中,tip表示样本终端的终端类型(例如,不同品牌的样本终端等),通过样本终端的终端类型能够表征不同类型的样本终端所具有的不同的射频特性,以提高权重因子的准确性。Among them, tip represents the terminal type of the sample terminal (for example, the sample terminal of different brands, etc.). The terminal type of the sample terminal can represent different radio frequency characteristics of the sample terminal of different types, so as to improve the accuracy of the weighting factor.
需要说明的是,可以使用离散系数Vi的倒数进行权值的计算,可以使离散系数Vi大的AP信号源,对应的权重因子Wi更小,降低由于AP信号源的不稳定性,对最终的定位结果造成的误差,提升定位结果的准确性。It should be noted that the reciprocal of the discrete coefficient Vi can be used to calculate the weight value, which can make the AP signal source with a large discrete coefficient Vi , the corresponding weight factor Wi is smaller, reducing the instability of the AP signal source. The error caused by the positioning results is improved, and the accuracy of the positioning results is improved.
步骤S802,待定位终端730发送定位请求至定位服务器740。Step S802 , the terminal to be located 730 sends a location request to the location server 740 .
其中,定位请求包括:待定位终端730的终端类型和待定位终端730的接收信号强度。The positioning request includes: the terminal type of the terminal to be located 730 and the received signal strength of the terminal to be located 730 .
步骤S803,定位服务器740根据接收到的待定位终端730的终端类型和待定位终端730的接收信号强度和预设位置指纹数据库,确定待定位终端730的物理位置信息。Step S803, the location server 740 determines the physical location information of the terminal to be located 730 according to the received terminal type of the terminal to be located 730, the received signal strength of the terminal to be located 730 and the preset location fingerprint database.
将待定位终端730的接收信号强度与预设位置指纹数据库中的各个AP信号源对应的信号强度值进行匹配,并将待定位终端730的终端类型与预设位置指纹数据库中的多个样本终端的终端类型进行匹配,获得匹配结果,并基于该匹配结果确定待定位终端730的物理位置信息。The received signal strength of the terminal to be located 730 is matched with the signal strength value corresponding to each AP signal source in the preset location fingerprint database, and the terminal type of the terminal to be located 730 is matched with a plurality of sample terminals in the preset location fingerprint database. Match the terminal type of the terminal to obtain a matching result, and determine the physical location information of the terminal to be located 730 based on the matching result.
在一些具体实现中,还可以基于离散系数Vi和样本终端的终端类型tip使用公式(5)计算获得加权值Wi,进而根据该加权值Wi,确定所有参考点和待定位终端730之间的加权欧式距离,例如,采用公式(6)计算获得第K个参考点和待定位终端730之间的加权欧式距离Dk。In some specific implementations, the weighted value W i can also be calculated and obtained based on the discrete coefficient V i and the terminal type tip of the sample terminal using formula (5), and then according to the weighted value W i , all reference points and the terminal to be located 730 are determined. For example, formula (6) is used to obtain the weighted Euclidean distance D k between the Kth reference point and the terminal to be located 730 .
其中,表示样本终端在第K个参考点上对第1个AP信号源进行测量所获得的第j次的测量值;表示样本终端在第K个参考点上对第n个AP信号源进行测量所获得的第j次的测量值。W1表示样本终端在第K个参考点上与第1个AP信号源对应的加权值,Wn表示样本终端在第K个参考点上与第n个AP信号源对应的加权值。avr1表示样本终端在第K个参考点上对第1个AP信号源进行多次测量所获得的平均值;avrn表示样本终端在第K个参考点上对第n个AP信号源进行多次测量所获得的平均值。in, Indicates the jth measurement value obtained by the sample terminal measuring the first AP signal source at the Kth reference point; Indicates the jth measurement value obtained by the sample terminal measuring the nth AP signal source at the Kth reference point. W1 represents the weighted value of the sample terminal corresponding to the first AP signal source at the Kth reference point, and Wn represents the weighted value of the sample terminal corresponding to the nth AP signal source at the Kth reference point. avr 1 indicates the average value obtained by the sample terminal performing multiple measurements on the first AP signal source at the Kth reference point; avr n indicates that the sample terminal performs multiple measurements on the nth AP signal source at the Kth reference point. The average value obtained from the measurements.
然后,对K个参考点和待定位终端730之间的加权欧式距离Dk进行升序排列(即从小到大的排列),获得排序结果,并依据该排序结果,筛选获得加权欧式距离最小的P个参考点,P为大于或等于1,且,小于或等于K的整数。Then, the weighted Euclidean distances Dk between the K reference points and the terminal to be located 730 are arranged in ascending order (that is, arranged from small to large) to obtain a sorting result, and according to the sorting result, the P with the smallest weighted Euclidean distance is obtained by screening A reference point, P is an integer greater than or equal to 1 and less than or equal to K.
再采用公式(7)分别计算P个参考点中的每个参考点的距离权重因子 Then use formula (7) to calculate the distance weighting factor of each reference point in the P reference points respectively
其中,Dj表示最终选出的P个参考点与待定位终端730之间的加权欧式距离,j为大于或等于1,且小于或等于P的整数。Wherein, Dj represents the weighted Euclidean distance between the finally selected P reference points and the terminal to be located 730 , and j is an integer greater than or equal to 1 and less than or equal to P.
最后,使用公式(8)计算获得待定位终端730的物理位置信息(x,y)。Finally, the physical location information (x, y) of the terminal to be located 730 is obtained by calculation using formula (8).
其中,x表示待定位终端730的横坐标,y表示待定位终端730的纵坐标。Wherein, x represents the abscissa of the terminal 730 to be located, and y represents the ordinate of the terminal 730 to be located.
步骤S804,定位服务器740将获得的待定位终端730的物理位置信息(x,y)发送至待定位终端730。Step S804 , the location server 740 sends the obtained physical location information (x, y) of the terminal to be located 730 to the terminal to be located 730 .
在本实施例中,通过在室内环境下,建立室内坐标系,并记录每个参考点的物理位置坐标,根据不同类型的样本终端在各个参考点上对n个AP信号源进行测量所获得的第m次的测量值,建立预设位置指纹数据库,并结合样本终端的终端类型,以及各个测量值计算获得的每个参考点的距离权重因子,确定待定位终端的物理位置信息,提高了对待定位终端的物理位置信息的判断准确性,提升用户的使用体验。In this embodiment, by establishing an indoor coordinate system in an indoor environment, and recording the physical position coordinates of each reference point, the data obtained by measuring n AP signal sources at each reference point according to different types of sample terminals For the m-th measurement value, establish a preset position fingerprint database, and combine the terminal type of the sample terminal and the distance weighting factor of each reference point calculated by each measurement value to determine the physical location information of the terminal to be located, which improves the treatment process. The determination accuracy of the physical location information of the positioning terminal improves the user experience.
可以理解的是,以上实施方式仅仅是为了说明本申请的原理而采用的示例性实施方式,然而本申请并不局限于此。对于本领域内的普通技术人员而言,在不脱离本申请的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本申请的保护范围。It should be understood that the above embodiments are only exemplary embodiments adopted to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present application, and these modifications and improvements are also regarded as the protection scope of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111087313.1A CN113645691A (en) | 2021-09-16 | 2021-09-16 | Indoor positioning method, server and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111087313.1A CN113645691A (en) | 2021-09-16 | 2021-09-16 | Indoor positioning method, server and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113645691A true CN113645691A (en) | 2021-11-12 |
Family
ID=78425924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111087313.1A Pending CN113645691A (en) | 2021-09-16 | 2021-09-16 | Indoor positioning method, server and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645691A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004095790A1 (en) * | 2003-03-28 | 2004-11-04 | University Of Maryland | Method and system for determining user location in a wireless communication network |
CN107333238A (en) * | 2017-07-03 | 2017-11-07 | 杭州电子科技大学 | A kind of indoor fingerprint method for rapidly positioning based on support vector regression |
CN109936820A (en) * | 2017-12-15 | 2019-06-25 | 中国移动通信集团山东有限公司 | A kind of user terminal positioning method and device |
CN111225334A (en) * | 2018-11-23 | 2020-06-02 | 中国移动通信集团有限公司 | A positioning method, terminal and computer-readable storage medium |
CN112235724A (en) * | 2020-10-12 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Indoor positioning method and device, electronic equipment and computer readable storage medium |
CN112714493A (en) * | 2020-12-29 | 2021-04-27 | 北京工业大学 | Object position positioning method and positioning system |
-
2021
- 2021-09-16 CN CN202111087313.1A patent/CN113645691A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004095790A1 (en) * | 2003-03-28 | 2004-11-04 | University Of Maryland | Method and system for determining user location in a wireless communication network |
CN107333238A (en) * | 2017-07-03 | 2017-11-07 | 杭州电子科技大学 | A kind of indoor fingerprint method for rapidly positioning based on support vector regression |
CN109936820A (en) * | 2017-12-15 | 2019-06-25 | 中国移动通信集团山东有限公司 | A kind of user terminal positioning method and device |
CN111225334A (en) * | 2018-11-23 | 2020-06-02 | 中国移动通信集团有限公司 | A positioning method, terminal and computer-readable storage medium |
CN112235724A (en) * | 2020-10-12 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Indoor positioning method and device, electronic equipment and computer readable storage medium |
CN112714493A (en) * | 2020-12-29 | 2021-04-27 | 北京工业大学 | Object position positioning method and positioning system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112147573A (en) | A passive positioning method based on CSI amplitude and phase information | |
CN109951807A (en) | Fusion RSS and CSI indoor positioning method based on WiFi signal | |
US8730830B2 (en) | Indoor location measuring method and apparatus using access point | |
US8270994B2 (en) | Applications of signal quality observations | |
EP2056532A1 (en) | Determining positions in a wireless radio system | |
CN105813194B (en) | Indoor positioning method based on secondary correction of fingerprint database | |
CN105898692B (en) | A kind of indoor orientation method and device | |
CN117671303B (en) | Stereoscopic ranging hidden danger early warning method and system based on twin network | |
CN104540221B (en) | WLAN indoor orientation methods based on semi-supervised SDE algorithms | |
CN106851573A (en) | Joint weighting k nearest neighbor indoor orientation method based on log path loss model | |
CN106507475B (en) | Indoor area WiFi positioning method and system based on EKNN | |
CN105792356A (en) | A location fingerprint positioning method based on wifi | |
CN106952289A (en) | WiFi target localization method combined with deep video analysis | |
CN104796980A (en) | WLAN indoor positioning calibration method suitable for different types of intelligent terminals | |
Yang et al. | Research on Wi-Fi indoor positioning in a smart exhibition hall based on received signal strength indication | |
CN108111972B (en) | Indoor WiFi access point location method based on signal strength and space division | |
CN105652235B (en) | WLAN indoor positioning multi-user's RSS fusion methods based on linear regression algorithm | |
CN112906750A (en) | Hyperspectral image-based material analysis method and system | |
CN107677989B (en) | A kind of indoor location localization method carrying out RSSI removal noise based on RSSI maximum value | |
CN112714493B (en) | Object position positioning method and positioning system | |
CN110611952B (en) | Fingerprint matching and positioning method | |
JP2020038112A (en) | Estimation device and estimation method | |
CN113239922B (en) | Virtual reality space positioning feature point recognition system and recognition method | |
CN111182460A (en) | Hybrid indoor positioning method and device, computer equipment and storage medium | |
CN113645691A (en) | Indoor positioning method, server and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211112 |
|
RJ01 | Rejection of invention patent application after publication |