CN108111972A - Indoor WiFi Site Surveys method based on signal strength and space division - Google Patents

Indoor WiFi Site Surveys method based on signal strength and space division Download PDF

Info

Publication number
CN108111972A
CN108111972A CN201711349569.9A CN201711349569A CN108111972A CN 108111972 A CN108111972 A CN 108111972A CN 201711349569 A CN201711349569 A CN 201711349569A CN 108111972 A CN108111972 A CN 108111972A
Authority
CN
China
Prior art keywords
signal strength
target
area
room
positioning
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.)
Granted
Application number
CN201711349569.9A
Other languages
Chinese (zh)
Other versions
CN108111972B (en
Inventor
罗向阳
刘文艳
刘毅敏
刘明皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PLA Information Engineering University
Original Assignee
PLA Information Engineering University
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 PLA Information Engineering University filed Critical PLA Information Engineering University
Priority to CN201711349569.9A priority Critical patent/CN108111972B/en
Publication of CN108111972A publication Critical patent/CN108111972A/en
Application granted granted Critical
Publication of CN108111972B publication Critical patent/CN108111972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements

Landscapes

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

Abstract

本发明公开了一种基于信号强度与空间划分的室内WiFi接入点定位方法,包括以下步骤:步骤1:感知WiFi信号,确定待定位目标AP的SSID;步骤2:确定目标AP所在的房间;步骤3:设定房间定位精度期望阈值为d;步骤4:将目标AP所在区域均分为4个区域;步骤5:以二分法确定参考点,并在参考点上采集数据;步骤6:通过比较信号强度值,确定信号强度相对关系最大值所在区域;步骤7:确定目标AP的下一次定位区域;步骤8:判断目标AP所在区域是否达到设定房间的定位精度期望阈值d;步骤9:输出达到设定房间的定位精度期望阈值区域的中心点坐标。本发明显著提高了室内WiFi接入点的定位精度。

The invention discloses an indoor WiFi access point positioning method based on signal strength and space division, comprising the following steps: step 1: sensing WiFi signals, and determining the SSID of a target AP to be positioned; step 2: determining the room where the target AP is located; Step 3: Set the expected threshold of room positioning accuracy as d; Step 4: Divide the area where the target AP is located into four areas; Step 5: Determine the reference point by dichotomy, and collect data on the reference point; Step 6: Pass Compare the signal strength values to determine the area where the maximum relative signal strength is located; Step 7: Determine the next positioning area of the target AP; Step 8: Determine whether the area where the target AP is located reaches the expected threshold d of the positioning accuracy of the set room; Step 9: Output the coordinates of the center point of the area that reaches the expected threshold of positioning accuracy of the set room. The present invention significantly improves the positioning accuracy of indoor WiFi access points.

Description

基于信号强度与空间划分的室内WiFi接入点定位方法Indoor WiFi access point positioning method based on signal strength and space division

技术领域technical field

本发明涉及无线定位技术领域,尤其涉及一种基于信号强度与空间划分的室内WiFi接入点定位方法。The invention relates to the technical field of wireless positioning, in particular to an indoor WiFi access point positioning method based on signal strength and space division.

背景技术Background technique

近年来,随着无线网络的快速发展,WiFi接入点(Access Point,AP)的使用范围越来越广泛,如超市、宾馆、咖啡厅、学校等区域都有WiFi接入点的存在。WiFi的普及,给人们生活、学习各方面带来方面的同时,也为非法违规WiFi接入点存在于某些特殊场所和部门提供了可能。而室内WiFi接入点定位技术不仅能够发现非法违规WiFi,而且还能定位到其所在位置。因此,开展室内WiFi接入点定位技术对于发现并定位非法违规WiFi具有十分重要的研究价值,同时对做好安全保密检查工作也具有十分重要的意义。目前,室内WiFi定位有两种较典型的方法:一种是基于RSS测距的定位算法(Received Signal Strength,简称RSS,即接收信号强度);一种是基于位置指纹定位算法;基于RSS测距的定位算法有两种方式计算距离:一种是通过信号传播时间来计算距离,另一种则是通过路径损耗模型成计算距离;再通过定位方法如三边测量法、双曲线法和最小二乘法,获取目标AP的位置信息;通过信号传播时间来计算距离,要求高精度的时间测量仪,使得成本较高;而使用路径损耗模型得到的距离与实际距离相比存在较大的误差,因此该方法的室内定位精度不高;另一种是基于位置指纹定位算法,该算法包括离线和在线两个阶段;离线阶段主要是采集RSS样本数据、建立位置指纹数据库;在线阶段实时定位,用户将测得的当前位置处的RSS值与离线阶段采集的数据进行匹配,找出和当前位置的无线信号特征最接近的参考点,得到目标AP的位置信息。为解决上述问题,本发明提供一种基于信号强度与空间划分的室内WiFi接入点定位方法。In recent years, with the rapid development of wireless networks, the use of WiFi access points (Access Point, AP) has become more and more extensive, such as supermarkets, hotels, cafes, schools and other areas have WiFi access points. The popularization of WiFi brings aspects to people's life and study, and at the same time, it also makes it possible for illegal and illegal WiFi access points to exist in some special places and departments. The indoor WiFi access point positioning technology can not only find illegal and illegal WiFi, but also locate its location. Therefore, the development of indoor WiFi access point positioning technology has very important research value for discovering and locating illegal and illegal WiFi, and it is also of great significance for doing a good job of security and confidentiality inspection. At present, there are two typical methods for indoor WiFi positioning: one is a positioning algorithm based on RSS ranging (Received Signal Strength, referred to as RSS, that is, received signal strength); the other is based on location fingerprint positioning algorithm; based on RSS ranging There are two ways to calculate the distance in the positioning algorithm: one is to calculate the distance through the signal propagation time, and the other is to calculate the distance through the path loss model; and then through positioning methods such as trilateration, hyperbolic method and least squares Multiplication, to obtain the location information of the target AP; to calculate the distance through the signal propagation time, a high-precision time measuring instrument is required, which makes the cost higher; and the distance obtained by using the path loss model has a large error compared with the actual distance, so The indoor positioning accuracy of this method is not high; the other is based on the location fingerprint positioning algorithm, which includes two stages: offline and online; the offline stage is mainly to collect RSS sample data and establish a location fingerprint database; in the online stage, real-time positioning, the user will The measured RSS value at the current location is matched with the data collected in the offline phase, and the reference point closest to the wireless signal characteristics of the current location is found to obtain the location information of the target AP. In order to solve the above problems, the present invention provides an indoor WiFi access point positioning method based on signal strength and space division.

发明内容Contents of the invention

本发明针对现有技术存在的不足和缺陷,提供一种基于信号强度与空间划分的室内WiFi接入点定位方法,该方法基于逐次逼近思想,对目标WIFI接入点所在区域进行少数次的划分及使用少量的参考点,通过多次比较采集信号强度,确定目标WIFI接入点的位置,并大大的提高室内的定位精度。Aiming at the deficiencies and defects of the prior art, the present invention provides an indoor WiFi access point positioning method based on signal strength and space division. The method is based on the idea of successive approximation, and performs a small number of divisions on the area where the target WiFi access point is located. And use a small number of reference points to determine the location of the target WIFI access point by comparing the collected signal strength multiple times, and greatly improve the indoor positioning accuracy.

为实现所述目的,本发明采用的技术方案是:一种基于信号强度与空间划分的室内WiFi接入点定位方法,包括以下步骤:In order to achieve the stated purpose, the technical solution adopted in the present invention is: a method for positioning indoor WiFi access points based on signal strength and space division, comprising the following steps:

步骤1:感知WiFi信号,确定待定位目标AP的SSID;Step 1: Perceive the WiFi signal and determine the SSID of the target AP to be located;

步骤2:确定目标AP所在的房间;Step 2: Determine the room where the target AP is located;

步骤3:设定房间定位精度期望阈值为d;Step 3: Set the expected threshold of room positioning accuracy as d;

步骤4:将目标AP所在区域均分为4个区域;Step 4: Divide the area where the target AP is located into 4 areas;

步骤5:以二分法确定参考点,并在参考点上采集数据;Step 5: Determine the reference point by dichotomy, and collect data at the reference point;

步骤6:通过比较信号强度值,确定信号强度相对关系最大值所在区域;Step 6: By comparing the signal strength values, determine the area where the maximum value of the relative signal strength relationship is located;

步骤7:确定目标AP的下一次定位区域;Step 7: Determine the next positioning area of the target AP;

步骤8:判断目标AP所在区域是否达到设定房间的定位精度期望阈值d;Step 8: Determine whether the area where the target AP is located reaches the expected threshold d of the positioning accuracy of the set room;

步骤9:输出达到设定房间的定位精度期望阈值区域的中心点坐标。Step 9: Output the coordinates of the center point of the area that reaches the expected threshold of positioning accuracy of the set room.

进一步地,所述步骤1,具体包括:使用手机上的无线网络扫描工具,获取定位者周边WiFi的信号列表,根据扫描到的信号列表信息,确定待定位的目标AP的SSID。Further, the step 1 specifically includes: using a wireless network scanning tool on the mobile phone to obtain a signal list of WiFi around the locator, and according to the scanned signal list information, determine the SSID of the target AP to be located.

进一步地,所述步骤2,具体包括:Further, said step 2 specifically includes:

定位者在目标AP可能存在的房间巡走,根据接收信号强度RSS的变化,将RSS值最大的房间判定为目标AP所在的房间。The locator patrols the room where the target AP may exist, and according to the change of the received signal strength RSS, the room with the largest RSS value is determined as the room where the target AP is located.

进一步地,所述步骤4,具体包括:Further, said step 4 specifically includes:

以目标AP所在区域的中心点为原点,用水平分界线和竖直分界线,将该区域均分为4个区域,将均分的4个区域,按照第一象限~第四象限的顺序命名为区域;其中i表示划分次数,j表示所在象限,表示在第i次划分第j象限的区域;Take the center point of the area where the target AP is located as the origin, divide the area into 4 areas with horizontal and vertical dividing lines, and name the 4 equally divided areas in the order of the first quadrant to the fourth quadrant for and area; where i represents the number of divisions, j represents the quadrant where it is located, Indicates the area where the jth quadrant is divided for the ith time;

目标AP所在区域表示为Hi,i表示划分次数,当i=1时,即H1表示第一次划分区域是目标AP所在的房间,以所在房间的长为y轴,宽为x轴,建立二维坐标系。The area where the target AP is located is expressed as H i , and i represents the number of divisions. When i=1, that is, H 1 indicates that the first divided area is the room where the target AP is located. The length of the room is the y-axis, and the width is the x-axis. Create a two-dimensional coordinate system.

进一步地,所述步骤5,具体包括:Further, said step 5 specifically includes:

在水平分界线以二分法确定3个参考点,在不同参考点上使用手机的无线网络扫描工具和定向天线,分别测参考点到目标AP的RSS和方向。Use the dichotomy method to determine 3 reference points on the horizontal dividing line, and use the mobile phone's wireless network scanning tool and directional antenna on different reference points to measure the RSS and direction from the reference point to the target AP.

进一步地,所述步骤6,具体包括:Further, said step 6 specifically includes:

通过比较在不同参考点测得到目标AP的信号强度值,得到信号强度相对关系值,确定信号强度相对关系最大值所在区域;所述信号强度相对关系值是指通过比较在同一参考点不同方向的RSS值得到的大的RSS值。By comparing the signal strength values of the target AP measured at different reference points, the relative relationship value of signal strength is obtained, and the area where the maximum value of the relative relationship of signal strength is determined; RSS value to get a large RSS value.

进一步地,所述步骤7,具体包括:Further, said step 7 specifically includes:

若信号强度相对关系最大值是在中心点的位置,则在该最大值所指方向的竖直分界线上以二分法确定一个或者多个参考点,通过比较在竖直分界线参考点上测得到目标AP的信号强度值,得到信号强度相对关系值,确定信号强度相对关系最大值所在区域为下一次目标AP的定位区域Hi+1If the maximum value of the relative relationship of signal strength is at the position of the center point, then determine one or more reference points by dichotomy on the vertical dividing line in the direction pointed to by the maximum value, and compare the values measured on the vertical dividing line reference point Obtain the signal strength value of the target AP, obtain the relative relationship value of the signal strength, and determine that the area where the maximum value of the relative signal strength relationship is located is the location area H i+1 of the next target AP;

若信号强度相对关系最大值不在中心点的位置,则将在步骤6得到的信号强度相对关系最大值所在区域确定为下一次目标AP的定位区域Hi+1If the maximum value of the relative signal strength relationship is not at the central point, the area where the maximum value of the relative signal strength relationship obtained in step 6 is located is determined as the location area H i+1 of the next target AP.

进一步地,所述步骤8,具体包括:Further, said step 8 specifically includes:

在目标AP的定位区域Hi+1,判断目标AP所在区域是否达到设定房间的定位精度期望阈值,即判断(dx<d)&&(dy<d)是否成立。其中,dx表示以每次划分区域中心点为原点在x轴上可以移动的最大距离,dy表示以每次划分区域中心点为原点在y轴上可以移动的最大距离。In the positioning area H i+1 of the target AP, determine whether the area where the target AP is located reaches the expected positioning accuracy threshold of the set room, that is, determine whether (d x <d) && (d y <d) holds true. Among them, d x represents the maximum distance that can be moved on the x-axis with the center point of each divided area as the origin, and d y represents the maximum distance that can be moved on the y-axis with the center point of each divided area as the origin.

本发明的有益效果是:The beneficial effects of the present invention are:

1.本发明基于信号强度与空间划分的室内WiFi接入点定位方法,首先确定目标WIFI接入点所在区域的中心点,并以中心点为原点,用水平分界线和竖直分界线将其划分为4个区域,在区域划分线上以二分法确定在水平分界线或竖直分界线上的参考点;对目标WIFI接入点所在区域进行少数次的划分及使用少量的参考点,通过多次比较采集的RSS值,确定目标AP的最终位置。提高了室内WIFI接入点的定位效率。1. The present invention is based on the indoor WiFi access point positioning method of signal strength and space division, at first determine the center point of the area where the target WiFi access point is located, and take the center point as the origin, divide it with horizontal dividing line and vertical dividing line Divide into 4 areas, determine the reference point on the horizontal or vertical dividing line on the area dividing line by dichotomy; divide the area where the target WIFI access point is located a few times and use a small number of reference points, through Compare the collected RSS values multiple times to determine the final location of the target AP. Improve the positioning efficiency of indoor WIFI access points.

2.本发明基于信号强度与空间划分的室内WiFi接入点定位方法,通过比较各参考点处测得的信号强度值,将信号强度值最大的参考点所对应的区域作为划分后的目标WIFI接入点所在区域;基于信号强度与空间划分的室内WiFi接入点定位方法不受房间结构、WiFi发射源类型和AP数量的影响,提高了室内WIFI接入点的定位精度。2. The present invention is based on the indoor WiFi access point positioning method of signal strength and space division. By comparing the signal strength values measured at each reference point, the area corresponding to the reference point with the largest signal strength value is used as the divided target WIFI The area where the access point is located; the indoor WiFi access point positioning method based on signal strength and space division is not affected by the structure of the room, the type of WiFi source and the number of APs, and improves the positioning accuracy of the indoor WiFi access point.

附图说明Description of drawings

图1是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的流程图。FIG. 1 is a flowchart of the indoor WiFi access point positioning method based on signal strength and space division in the present invention.

图2是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的第一次空间划分的示意图。FIG. 2 is a schematic diagram of the first space division of the indoor WiFi access point positioning method based on signal strength and space division according to the present invention.

图3是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的第二次空间划分的示意图。FIG. 3 is a schematic diagram of the second space division of the indoor WiFi access point positioning method based on signal strength and space division according to the present invention.

图4是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的第三次空间划分的示意图。FIG. 4 is a schematic diagram of the third space division of the indoor WiFi access point positioning method based on signal strength and space division according to the present invention.

图5是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例中A房间的结构示意图。FIG. 5 is a schematic structural diagram of room A in an embodiment of the method for locating an indoor WiFi access point based on signal strength and space division in the present invention.

图6是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例中B房间的结构示意图。FIG. 6 is a schematic structural diagram of room B in an embodiment of the indoor WiFi access point positioning method based on signal strength and space division of the present invention.

图7是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例中C房间的结构示意图。FIG. 7 is a schematic structural diagram of room C in an embodiment of the indoor WiFi access point positioning method based on signal strength and space division of the present invention.

图8是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例不同房间结构对本方法与基于RSS测距的定位算法的定位误差比较示意图。Fig. 8 is a schematic diagram of the positioning error comparison between the method and the positioning algorithm based on RSS ranging in different room structures of an embodiment of the indoor WiFi access point positioning method based on signal strength and space division of the present invention.

图9是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例不同类型发射源对本方法与基于RSS测距的定位算法的定位误差比较示意图。Fig. 9 is a schematic diagram of the positioning error comparison between the method and the positioning algorithm based on RSS ranging for different types of transmission sources of the embodiment of the indoor WiFi access point positioning method based on signal strength and space division of the present invention.

图10是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例AP的数量对本方法与基于RSS测距的定位算法的定位误差比较示意图。FIG. 10 is a schematic diagram of the comparison of the number of APs with the positioning error between this method and the positioning algorithm based on RSS ranging in an embodiment of the indoor WiFi access point positioning method based on signal strength and space division of the present invention.

图11是本发明基于信号强度与空间划分的室内WiFi接入点定位方法的实施例中B房间目标AP在位置2时的定位过程的示意图。11 is a schematic diagram of the positioning process when the target AP in room B is at position 2 in the embodiment of the indoor WiFi access point positioning method based on signal strength and space division of the present invention.

具体实施方式Detailed ways

下面结合附图及具体实施方式对本发明作进一步详细描述:Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

实施例1:如图1所示,一种基于信号强度与空间划分的室内WiFi接入点定位方法,包括以下步骤:Embodiment 1: As shown in Figure 1, a method for positioning an indoor WiFi access point based on signal strength and space division includes the following steps:

步骤1:感知WiFi信号,确定待定位目标AP的SSID;Step 1: Perceive the WiFi signal and determine the SSID of the target AP to be located;

步骤2:确定目标AP所在的房间;Step 2: Determine the room where the target AP is located;

步骤3:设定房间定位精度期望阈值为d;Step 3: Set the expected threshold of room positioning accuracy as d;

步骤4:将目标AP所在区域均分为4个区域;Step 4: Divide the area where the target AP is located into 4 areas;

步骤5:以二分法确定参考点,并在参考点上采集数据;Step 5: Determine the reference point by dichotomy, and collect data at the reference point;

步骤6:通过比较信号强度值,确定信号强度相对关系最大值所在区域;Step 6: By comparing the signal strength values, determine the area where the maximum value of the relative signal strength relationship is located;

步骤7:确定目标AP的下一次定位区域;Step 7: Determine the next positioning area of the target AP;

步骤8:判断目标AP所在区域是否达到设定房间的定位精度期望阈值d;Step 8: Determine whether the area where the target AP is located reaches the expected threshold d of the positioning accuracy of the set room;

步骤9:输出达到设定房间的定位精度期望阈值区域的中心点坐标。Step 9: Output the coordinates of the center point of the area that reaches the expected threshold of positioning accuracy of the set room.

实施例2,一种基于信号强度与空间划分的室内WiFi接入点定位方法,包括以下步骤:Embodiment 2, an indoor WiFi access point positioning method based on signal strength and space division, comprising the following steps:

步骤1:感知WiFi信号,确定待定位目标AP的SSID;使用手机上的无线网络扫描工具,获取定位者周边WiFi的信号列表,根据扫描到的信号列表信息,确定待定位的目标AP的SSID。Step 1: Perceive the WiFi signal and determine the SSID of the target AP to be located; use the wireless network scanning tool on the mobile phone to obtain the signal list of the WiFi around the locator, and determine the SSID of the target AP to be located according to the scanned signal list information.

步骤2:确定目标AP所在的房间;定位者在目标AP可能存在的房间巡走,根据接收信号强度RSS的变化,将RSS值最大的房间判定为目标AP所在的房间。Step 2: Determine the room where the target AP is located; the locator patrols the room where the target AP may exist, and determines the room with the largest RSS value as the room where the target AP is located according to the change of the received signal strength RSS.

步骤3:设定房间定位精度期望阈值为d;定位精度阈值d的设定会影响算法的划分次数与采集数据的数量,若d设定的较小,则划分次数与采集数据的数量都会相应的增加,导致定位时间相对较长;否则划分次数与采集信号强度的数量都会相应的减少而影响定位精度,定位精度期望阈值设置为0.5m<d<1m。Step 3: Set the expected threshold of room positioning accuracy as d; the setting of the positioning accuracy threshold d will affect the number of divisions of the algorithm and the amount of collected data. If d is set smaller, the number of divisions and the number of collected data will be corresponding The increase of , resulting in a relatively long positioning time; otherwise, the number of divisions and the number of collected signal strengths will decrease accordingly, which will affect the positioning accuracy. The expected threshold of positioning accuracy is set to 0.5m<d<1m.

步骤4:将目标AP所在区域均分为4个区域;Step 4: Divide the area where the target AP is located into 4 areas;

以目标AP所在区域的中心点为原点,用水平分界线和竖直分界线,将该区域均分为4个区域,将均分的4个区域,按照第一象限~第四象限的顺序命名为区域;其中i表示划分次数,j表示所在象限,表示在第i次划分第j象限的区域;Take the center point of the area where the target AP is located as the origin, divide the area into 4 areas with horizontal and vertical dividing lines, and name the 4 equally divided areas in the order of the first quadrant to the fourth quadrant for and area; where i represents the number of divisions, j represents the quadrant where it is located, Indicates the area where the jth quadrant is divided for the ith time;

目标AP所在区域表示为Hi,i表示划分次数,当i=1时,即H1时,即H1表示第一次划分区域是目标AP所在的房间,以房间的长为y轴,宽为x轴,建立二维坐标系。The area where the target AP is located is expressed as H i , and i represents the number of divisions. When i=1, that is, H 1 , that is, H 1 indicates that the first divided area is the room where the target AP is located. The length of the room is the y-axis, and the width is For the x-axis, establish a two-dimensional coordinate system.

步骤5:以二分法确定参考点,并在参考点上采集数据;在水平分界线以二分法确定3个参考点,在不同参考点上使用手机的无线网络扫描工具和定向天线,分别测参考点到目标AP的RSS和方向。Step 5: Determine the reference point by the dichotomy method and collect data on the reference point; determine three reference points by the dichotomy method on the horizontal dividing line, use the wireless network scanning tool of the mobile phone and the directional antenna on different reference points, and measure the reference points separately Point to the RSS and direction of the target AP.

步骤6:通过比较信号强度值,确定信号强度相对关系最大值所在区域;通过比较在不同参考点测得到目标AP的信号强度值,得到信号强度相对关系值,确定信号强度相对关系最大值所在区域;所述信号强度相对关系值是指通过比较在同一参考点不同方向的RSS值得到的大的RSS值。Step 6: By comparing the signal strength values, determine the area where the maximum value of the relative signal strength relationship is located; by comparing the signal strength values of the target AP measured at different reference points, obtain the relative signal strength value, and determine the area where the maximum value of the relative signal strength relationship is located ; The relative signal strength value refers to a large RSS value obtained by comparing RSS values in different directions at the same reference point.

步骤7:确定目标AP的下一次定位区域;Step 7: Determine the next positioning area of the target AP;

若信号强度相对关系最大值是在中心点的位置,则在该最大值所指方向的竖直分界线上以二分法确定一个或者多个参考点,通过比较在竖直分界线参考点上测得到目标AP的信号强度值,得到信号强度相对关系值,确定信号强度相对关系最大值所在区域为下一次目标AP的定位区域Hi+1If the maximum value of the relative relationship of signal strength is at the position of the center point, then determine one or more reference points by dichotomy on the vertical dividing line in the direction pointed to by the maximum value, and compare the values measured on the vertical dividing line reference point Obtain the signal strength value of the target AP, obtain the relative relationship value of the signal strength, and determine that the area where the maximum value of the relative signal strength relationship is located is the location area H i+1 of the next target AP;

若信号强度相对关系最大值不在中心点的位置,则将在步骤6得到的信号强度相对关系最大值所在区域确定为下一次目标AP的定位区域Hi+1If the maximum value of the relative signal strength relationship is not at the central point, the area where the maximum value of the relative signal strength relationship obtained in step 6 is located is determined as the location area H i+1 of the next target AP.

步骤8:判断目标AP所在区域是否达到设定房间的定位精度期望阈值d;在目标AP的定位区域Hi+1,判断目标AP所在区域是否达到设定房间的定位精度期望阈值,即(dx<d)&&(dy<d)是否成立;其中,dx表示以每次划分区域中心点为原点在x轴上可以移动的最大距离,dy表示以每次划分区域中心点为原点在y轴上可以移动的最大距离。Step 8: Determine whether the area where the target AP is located reaches the expected threshold d of the positioning accuracy of the set room; in the positioning area H i+1 of the target AP, determine whether the area where the target AP is located reaches the expected threshold of positioning accuracy of the set room, that is (d Whether x <d)&&(d y <d) is true; among them, d x represents the maximum distance that can be moved on the x-axis with the center point of each divided area as the origin, and d y represents the center point of each divided area as the origin The maximum distance that can be moved on the y-axis.

步骤9:输出达到设定房间的定位精度期望阈值区域的中心点坐标。Step 9: Output the coordinates of the center point of the area that reaches the expected threshold of positioning accuracy of the set room.

本实施例对目标WIFI接入点所在区域选取3个参考点进行划分,如图2、图3、图4分别表示第一次划分的结果,第二次划分的结果和第三次划分的结果,箭头表示采集信号强度的方向;以目标AP所在区域,区域可表示为Hi,i表示划分次数,当i=1时,H1表示第一次划分区域是整个房间,以房间的长为y轴,宽为x轴,建立二维坐标系,如图2所示,用水平分界线和竖直分界线将该区域均分为4个区域,按照第一象限~第四象限的顺序命名为区域;Ai、Bi和Ci(i=1,2,3)表示选取的参考点,Ai表示区域中心点,其坐标可以表示为(widthi,lengthi)。In this embodiment, 3 reference points are selected for the area where the target WIFI access point is located, as shown in Figure 2, Figure 3, and Figure 4, which respectively represent the results of the first division, the results of the second division and the results of the third division , the arrow indicates the direction of collecting signal strength; the area where the target AP is located, the area can be expressed as H i , i indicates the number of divisions, when i=1, H 1 indicates that the first divided area is the entire room, and the length of the room is The y-axis, the width is the x-axis, establish a two-dimensional coordinate system, as shown in Figure 2, use the horizontal dividing line and the vertical dividing line to divide the area into 4 areas, named according to the order of the first quadrant to the fourth quadrant for and Area; A i , B i and C i (i=1, 2, 3) represent selected reference points, A i represents the center point of the area, and its coordinates can be expressed as (width i , length i ).

在图2中A1的坐标为(width1,length1),其中width1是width的一半,length1是length的一半;采集的每个参考点的数据用一个三元组(a,b,c)表示,其中a表示参考点的位置,b表示在a参考点上方区域测得到目标AP的RSS,c表示在a参考点下方区域测得到目标AP的RSS;例如Ai点的数据用三元组表示为其中Ai表示参考点的位置,表示在Ai参考点的上方区域测得到目标AP的RSS值,表示在Ai参考点的下方区域测得到目标AP的RSS值;因为每个参考点需要测两个区域的RSS,通过比较测得的两个区域的信号强度值,得到在Ai点的信号强度相对关系值同理可得最终可以确定信号强度相对关系最大值所在区域为下一次定位区域,对信号强度相对关系最大值所在区域进行讨论,有以下3种情况:In Figure 2, the coordinates of A1 are (width 1 , length 1 ), where width 1 is half of width, and length 1 is half of length; the data of each reference point collected is a triplet (a, b, c) represents, where a represents the position of the reference point, b represents the RSS of the target AP measured in the area above the reference point a, and c represents the RSS of the target AP measured in the area below the reference point a; for example, the data at point A i is represented by three A tuple is represented as where A i represents the position of the reference point, Indicates the RSS value of the target AP measured in the area above the A i reference point, Indicates that the RSS value of the target AP is measured in the area below the A i reference point; because each reference point needs to measure the RSS of two areas, by comparing the measured signal strength values of the two areas, the signal at the A i point is obtained Intensity Relative Value Empathy and Finally, the maximum value of the signal strength relative relationship can be determined The area where it is located is the next positioning area, and the area where the signal strength relative relationship is maximum is discussed, there are the following three situations:

(1)若RSSmax在Bi或Ci中,则该RSSmax所在区域就是下一次定位区域;(1) If the RSS max is in B i or C i , the area where the RSS max is located is the next positioning area;

(2)若RSSmax在Ai中,且最大值是则需要在Ai上方的竖直分界线上以二分法确定Di参考点(否则在Ai下方的竖直分界线上以二分法确定一个参考点),在该参考点左侧方向与右侧方向分别测其到目标AP的RSS,比较所测得的RSS值其中表示Di右侧区域,表示Di左侧区域,所在区域就是下一个定位区域;(2) If RSS max is in A i , and the maximum value is Then it is necessary to determine the reference point D i by dichotomy on the vertical dividing line above A i (otherwise a reference point is determined by dichotomy on the vertical dividing line below A i ), in the left direction and right direction of the reference point Measure the RSS to the target AP in the side direction, and compare the measured RSS values in Indicates the area on the right side of D i , Indicates the area on the left side of D i , The area where it is located is the next positioning area;

(3)若在上述两种情况中,均无法确定一下次定位区域,则以Di(或Ai下方的竖直分界线上以二分法确定一个参考点)为中心点,在其两侧以二分法确定2个参考点,在参考点处进行数据采集,并比较采集得到的RSS值,确定RSSmax所在区域为下一个定位区域。(3) If in the above two cases, the next positioning area cannot be determined, take D i (or a reference point determined by dichotomy on the vertical dividing line below A i ) as the center point, and on both sides of it Determine two reference points by dichotomy, collect data at the reference points, and compare the collected RSS values to determine the area where the RSS max is located as the next positioning area.

第i次划分时,中心点的坐标公式如下:In the i-th division, the coordinate formula of the center point is as follows:

针对本发明公开的一种基于信号强度与空间划分的室内WiFi接入点定位方法,为验证本方法的有效性和可行性,通过在实际环境下进行定位实验来验证该方法,并具体分析房间结构,发射源类型及AP的数量对该定位方法精度的影响。Aiming at an indoor WiFi access point positioning method based on signal strength and space division disclosed in the present invention, in order to verify the effectiveness and feasibility of this method, the method is verified by conducting positioning experiments in an actual environment, and the room is specifically analyzed. The impact of structure, source type and number of APs on the accuracy of the positioning method.

定位实验选取的环境为6个房间共50m×22m,实验在其中3个不同结构的房间任意选取了5个AP位置,每个位置架设4种不同型号的WiFi接入点,包括固定式AP(路由器)和便携式AP(手机),共进行了60组实验;实验所用的定位设备主要有一个定向天线和一部手机组成,手机用于显示扫描的无线信号。在基于信号强度相对关系与空间划分的定位算法中,方向角是使用定向天线来确定的。采用定向天线的主要目的是增强信号强度,增加抗干扰能力。The environment selected for the positioning experiment is 6 rooms with a total size of 50m×22m. In the experiment, 5 AP locations were randomly selected in 3 rooms with different structures, and 4 different types of WiFi access points were set up in each location, including fixed APs ( Router) and portable AP (mobile phone), a total of 60 groups of experiments were carried out; the positioning equipment used in the experiment mainly consists of a directional antenna and a mobile phone, and the mobile phone is used to display the scanned wireless signal. In the positioning algorithm based on the relative relationship between signal strength and space division, the direction angle is determined using a directional antenna. The main purpose of using a directional antenna is to enhance signal strength and increase anti-jamming capability.

通过在走廊用设备扫描得到的AP信息(如AP的SSID、MAC、RSS等),确定定位AP的SSID以及AP的数量,确定定位AP的SSID后,用设备测其信号强度值,确定其所在房间。本发明对影响定位结果的因素,包括不同房间结构、不同类型的WiFi发射源以及AP的数量,分别进行了实验结果如下。Through the AP information (such as AP SSID, MAC, RSS, etc.) obtained by scanning the equipment in the corridor, determine the SSID of the located AP and the number of APs. After determining the SSID of the located AP, use the device to measure its signal strength value to determine its location. Room. The present invention has carried out experiments on the factors affecting the positioning results, including different room structures, different types of WiFi transmission sources and the number of APs, and the results are as follows.

1)不同房间结构;采用3种不同房间结构(包括房间内的环境以及房间尺寸)进行实验;3个房间里的设置如图5、图6和图7所示,A房间的尺寸为20m×10m,房间中放置的有多台电脑、桌子、椅子以及柜子等物品,桌子以及柜子的材料是铁质的;B房间的尺寸为17m×10m,房间中放置的有铁质竖直文件柜和木制的桌子、小柜子等;C房间的尺寸为13m×10m,房间中放置的有铁质书架、桌椅。1) Different room structures; use 3 different room structures (including the environment and room size) for experiments; the settings in the 3 rooms are shown in Figure 5, Figure 6 and Figure 7, and the size of room A is 20m× 10m, there are multiple computers, tables, chairs, cabinets and other items placed in the room, the materials of the tables and cabinets are iron; the size of room B is 17m×10m, there are iron vertical filing cabinets and Wooden tables, small cabinets, etc.; the size of room C is 13m×10m, and iron bookshelves, tables and chairs are placed in the room.

在房间定位精度期望阈值d设定为1米的条件下,如图8所示实验结果表明:房间尺寸会稍微影响定位精度,60组实验的定位误差范围在0.16~0.51米,平均定位误差为0.3米。因此,房间内的环境不会对定位结果产生影响。Under the condition that the expected threshold d of room positioning accuracy is set to 1 meter, the experimental results shown in Figure 8 show that the size of the room will slightly affect the positioning accuracy. 0.3 meters. Therefore, the environment in the room will not affect the positioning result.

为了便于对比本发明提出的算法与基于RSS测距算法的定位精度,分别在A、B和C3个房间所示的环境中,使用本发明提出的算法与基于RSS测距算法进行定位。基于RSS测距的定位算法使用路径损耗模型将在参考点测得到目标AP的RSS值转换成参考点到目标AP的距离,然后用标准最小二乘法进行定位。分别使用基于RSS测距的定位算法和本发明提出的定位算法分析不同房间结构对定位精度的影响,实验结果如图8所示。在图8中,其中横坐标表示在图5~7中任意选取的5个AP位置,纵坐标表示分别在5个AP位置处对应的定位误差,虚线表示用本发明提出的定位算法所产生的误差,实线表示用基于RSS测距的定位算法所产生的误差;从图中可以看出,本发明提出的定位算法的精度明显高于基于RSS测距的定位算法的定位精度。In order to compare the positioning accuracy of the algorithm proposed by the present invention and the ranging algorithm based on RSS, the algorithm proposed by the present invention and the ranging algorithm based on RSS are used for positioning in the environments shown in rooms A, B and C respectively. The positioning algorithm based on RSS ranging uses the path loss model to convert the RSS value of the target AP measured at the reference point into the distance from the reference point to the target AP, and then uses the standard least square method for positioning. The influence of different room structures on the positioning accuracy is analyzed by using the positioning algorithm based on RSS ranging and the positioning algorithm proposed by the present invention, and the experimental results are shown in FIG. 8 . In Fig. 8, wherein the abscissa represents the 5 AP positions arbitrarily selected in Figs. Error, the solid line represents the error produced by the positioning algorithm based on RSS ranging; As can be seen from the figure, the accuracy of the positioning algorithm proposed by the present invention is obviously higher than the positioning accuracy of the positioning algorithm based on RSS ranging.

2)不同类型的WiFi发射源;选择2种不同型号的固定式和2种不同型号的便携式发射源;固定式和便携式的型号如表1所示。2) Different types of WiFi transmission sources; choose 2 different types of fixed and 2 different types of portable transmission sources; the fixed and portable models are shown in Table 1.

表1Table 1

发射源类型source type 固定式1Stationary 1 固定式2Stationary 2 便携式1Portable 1 便携式2Portable 2 型号model TL-WDR6500TL-WDR6500 TL-WR842NTL-WR842N MI4LTEMI4LTE Nexus5Nexus5

采用表1中不同型号的发射源分别对A、B和C 3个房间各5个目标AP位置进行了实验;由于算法的过程是一样的,所以以一个房间的一个位置为例,对实验过程进行描述。如图11中,描述的是B房间目标AP在位置2时,算法的具体过程。图中垂直的黑色箭头表示测量信号强度的方向,白色箭头所指区域是箭尾区域的放大图。Using different types of transmitters in Table 1, experiments were carried out on five target AP locations in three rooms A, B, and C respectively; since the algorithm process is the same, taking one location in one room as an example, the experimental process to describe. As shown in Figure 11, it describes the specific process of the algorithm when the target AP in room B is at position 2. The vertical black arrow in the figure indicates the direction of measuring signal strength, and the area pointed by the white arrow is the enlarged view of the arrow tail area.

使用表1中不同类型的发射源对B房间目标AP在位置2时,用三元组表示图11中各参考点采集的数据如表2所示。When the target AP in room B is at position 2 using different types of transmitting sources in Table 1, the data collected at each reference point in Figure 11 is represented by a triplet, as shown in Table 2.

表2Table 2

从表2中的数据可以看到,在相同位置,不同类型的发射源会影响RSS值,固定式发射源测得的RSS与便携式发射源测得的RSS相差较大,而不同型号的固定式发射源(便携式发射源)测得的RSS相差不大。虽然不同类型的发射源会影响RSS值,但是不影响本发明提出算法的定位精度。From the data in Table 2, it can be seen that at the same location, different types of transmitters will affect the RSS value. The RSS measured by fixed transmitters is quite different from the RSS measured by portable transmitters. The RSS measured by the transmitting source (portable transmitting source) is not much different. Although different types of emission sources will affect the RSS value, they will not affect the positioning accuracy of the algorithm proposed by the present invention.

(a)使用4种不同型号的发射源进行实验,对A房间中的5个目标AP的测量次数、实际的坐标、输出的坐标以及定位误差进行计算,结果如表3所示。(a) Experiments were carried out using 4 different types of transmitters, and the measurement times, actual coordinates, output coordinates and positioning errors of 5 target APs in room A were calculated. The results are shown in Table 3.

表3table 3

AP在A房间的位置Location of AP in Room A 位置1position 1 位置2position 2 位置3position 3 位置4position 4 位置5position 5 测量次数Measurement times 1515 1515 1515 1515 1616 AP的实际坐标Actual coordinates of AP (9.22,18.44)(9.22,18.44) (4.85,15.78)(4.85,15.78) (5.94,14.07)(5.94,14.07) (2.03,10.63)(2.03,10.63) (5.15,0.83)(5.15,0.83) 输出AP的坐标Output the coordinates of the AP (9.06,18.13)(9.06,18.13) (4.69,15.62)(4.69,15.62) (5.94,14.38)(5.94,14.38) (2.19,10.63)(2.19,10.63) (5.31,0.63)(5.31,0.63) 定位误差(m)Positioning error (m) 0.350.35 0.220.22 0.310.31 0.160.16 0.260.26

由表3中的数据,可以得到在A房间中的最高定位误差为0.35米,最低定位误差为0.16米,平均定位误差为0.26米。From the data in Table 3, it can be obtained that the highest positioning error in room A is 0.35 meters, the lowest positioning error is 0.16 meters, and the average positioning error is 0.26 meters.

(b)对B房间中的5个目标AP的测量次数、实际的坐标、输出的坐标以及定位误差进行计算,结果如表4所示。(b) Calculate the measurement times, actual coordinates, output coordinates and positioning errors of the five target APs in room B, and the results are shown in Table 4.

表4Table 4

AP在B房间的位置Location of AP in room B 位置1position 1 位置2position 2 位置3position 3 位置4position 4 位置5position 5 测量次数Measurement times 1212 1212 1212 1313 1212 AP的实际坐标Actual coordinates of AP (7.97,16.74)(7.97,16.74) (0.16,15.16)(0.16,15.16) (4.85,10.09)(4.85,10.09) (6.46,6.04)(6.46,6.04) (9.69,0.26)(9.69,0.26) 输出AP的坐标Output the coordinates of the AP (7.81,16.47)(7.81,16.47) (0.31,15.41)(0.31,15.41) (4.69,10.09)(4.69,10.09) (6.56,5.84)(6.56,5.84) (9.69,0.53)(9.69,0.53) 定位误差(m)Positioning error (m) 0.310.31 0.290.29 0.160.16 0.220.22 0.270.27

由表4中的数据,可以得到在B房间中的最高的定位误差为0.31米,最低的定位误差为0.16米,平均定位误差为0.25米。From the data in Table 4, it can be obtained that the highest positioning error in room B is 0.31 meters, the lowest positioning error is 0.16 meters, and the average positioning error is 0.25 meters.

(c)对C房间中的5个目标AP的测量次数、实际的坐标、输出的坐标以及定位误差进行计算,结果如表5所示。(c) Calculate the measurement times, actual coordinates, output coordinates and positioning errors of the five target APs in room C, and the results are shown in Table 5.

表5table 5

AP在B房间的位置Location of AP in room B 位置1position 1 位置2position 2 位置3position 3 位置4position 4 位置5position 5 测量次数Measurement times 99 99 99 99 99 AP的实际坐标Actual coordinates of AP (7.56,12.08)(7.56,12.08) (0.32,10.16)(0.32,10.16) (3.75,6.50)(3.75,6.50) (8.44,4.06)(8.44,4.06) (2.03,1.02)(2.03,1.02) 输出AP的坐标Output the coordinates of the AP (7.81,11.78)(7.81,11.78) (0.63,10.16)(0.63,10.16) (3.44,6.09)(3.44,6.09) (8.44,4.47)(8.44,4.47) (2.19,1.22)(2.19,1.22) 定位误差(m)Positioning error (m) 0.390.39 0.310.31 0.150.15 0.410.41 0.260.26

由表5中的数据,可以得到在C房间中的最高的定位误差为0.51米,最低的定位误差为0.26米,平均定位误差为0.38米。From the data in Table 5, it can be obtained that the highest positioning error in room C is 0.51 meters, the lowest positioning error is 0.26 meters, and the average positioning error is 0.38 meters.

在A、B和C 3个房间所示的环境中,由于A和B房间中的环境因素较复杂会影响不同类型发射源的定位精度,所以实验选择室内环境相对较空旷的C房间。分别使用基于RSS测距的定位算法和本发明提出的定位算法分析不同类型发射源对定位精度的影响,实验结果如图9所示。在图9中,其中横坐标表示在C房间中任意选取的5个AP位置,纵坐标表示在选取的5个AP位置处对应的定位误差。图中实线表示用基于RSS测距的算法产生的定位误差。虚线表示用本提出的算法产生的定位误差。从图中可以看出,不同类型的发射源会影响基于RSS测距算法的定位精度,而不影响本发明提出算法的定位精度。In the environment shown in the three rooms A, B and C, because the environmental factors in A and B rooms are more complex and will affect the positioning accuracy of different types of emission sources, the experiment chooses room C with a relatively empty indoor environment. Using the positioning algorithm based on RSS ranging and the positioning algorithm proposed by the present invention to analyze the influence of different types of emission sources on the positioning accuracy, the experimental results are shown in Figure 9. In FIG. 9 , the abscissa represents the positions of five APs arbitrarily selected in room C, and the ordinate represents the corresponding positioning errors at the five selected AP positions. The solid line in the figure represents the positioning error generated by the algorithm based on RSS ranging. The dashed line represents the localization error produced by the proposed algorithm. It can be seen from the figure that different types of emission sources will affect the positioning accuracy based on the RSS ranging algorithm, but will not affect the positioning accuracy of the algorithm proposed by the present invention.

(3)AP的数量;本发明可以定位室内只有一个AP时,该AP的位置,也可以从室内多个AP中定位其中一个目标AP的位置;当室内只有一个AP时,在参考点处测量到AP的RSS时,其变化幅度不大,使得测得的RSS值相对较稳定;当室内有多个AP时,在参考点处测量到目标AP的RSS时,其变化幅度相对较大,使得测得的RSS值不稳定。实验是在室内环境相对较空旷的C房间进行的,实验结果如表6~8所示;表6~8分别是在距离目标AP为1米、3米和5米时测得的数据。(3) The number of APs; the present invention can locate the position of the AP when there is only one AP in the room, and can also locate the position of one of the target APs from multiple APs in the room; when there is only one AP in the room, measure at the reference point When the RSS of the AP is measured, the range of change is small, making the measured RSS value relatively stable; when there are multiple APs in the room, when the RSS of the target AP is measured at the reference point, the range of change is relatively large, making the RSS value relatively stable. The measured RSS value is unstable. The experiment was carried out in room C, where the indoor environment is relatively empty, and the experimental results are shown in Tables 6-8; Tables 6-8 are the data measured when the distance from the target AP is 1 meter, 3 meters, and 5 meters, respectively.

表6距离目标AP为1米时测得的数据Table 6 Measured data when the distance from the target AP is 1 meter

AP的数量(个)Number of APs (units) 11 22 33 44 RSS(dBm)(用定向天线)RSS(dBm)(with directional antenna) -25-25 -28-28 -28-28 -26-26 RSS的幅度范围(用定向天线)Amplitude range of RSS (with directional antenna) -24~-28-24~-28 -27~-30-27~-30 -24~-30-24~-30 -24~-30-24~-30 RSS(dBm)(不用定向天线)RSS(dBm) (without directional antenna) -35-35 -37-37 -36-36 -37-37 RSS的幅度范围(不用定向天线)Amplitude range of RSS (without directional antenna) -30~-36-30~-36 -35~-40-35~-40 -32~-40-32~-40 -37~-43-37~-43

表7距离目标AP为3米时测得的数据Table 7 Measured data when the distance from the target AP is 3 meters

AP的数量(个)Number of APs (units) 11 22 33 44 RSS(dBm)(用定向天线)RSS(dBm)(with directional antenna) -36-36 -37-37 -39-39 -39-39 RSS的幅度范围(用定向天线)Amplitude range of RSS (with directional antenna) -34~-39-34~-39 -35~-40-35~-40 -37~-44-37~-44 -37~-46-37~-46 RSS(dBm)(不用定向天线)RSS(dBm) (without directional antenna) -42-42 -41-41 -40-40 -41-41 RSS的幅度范围(不用定向天线)Amplitude range of RSS (without directional antenna) -38~-44-38~-44 -41~-47-41~-47 -39~-46-39~-46 -40~-48-40~-48

表8距离目标AP为5米时测得的数据Table 8 Measured data when the distance from the target AP is 5 meters

AP的数量(个)Number of APs (units) 11 22 33 44 RSS(dBm)(用定向天线)RSS(dBm)(with directional antenna) -42-42 -44-44 -42-42 -41-41 RSS的幅度范围(用定向天线)Amplitude range of RSS (with directional antenna) -40~-45-40~-45 -40~-47-40~-47 -38~-47-38~-47 -37~-45-37~-45 RSS(dBm)(不用定向天线)RSS(dBm) (without directional antenna) -50-50 -54-54 -48-48 -48-48 RSS的幅度范围(不用定向天线)Amplitude range of RSS (without directional antenna) -48~-52-48~-52 -49~-55-49~-55 -45~-55-45~-55 -39~-53-39~-53

从表6~8中,可以看出AP的数量会稍微影响测得的RSS值及其幅度的变化范围,分别使用基于RSS测距的定位算法和本发明提出的定位算法分析AP的数量对定位精度的影响,实验结果如图10所示。From Tables 6 to 8, it can be seen that the number of APs will slightly affect the range of the measured RSS value and its amplitude. Use the positioning algorithm based on RSS ranging and the positioning algorithm proposed by the present invention to analyze the impact of the number of APs on positioning. The impact of accuracy, the experimental results are shown in Figure 10.

其中横坐标表示在C房间中任意选取的5个AP位置,纵坐标表示在选取的5个AP位置处对应的定位误差,当AP是1时,表示该房间只有一个目标AP,没有其他的AP存在;当AP不是1时,表示该房间还有其他的AP存在。图中实线表示用基于RSS测距的定位算法所产生的定位误差,虚线表示用本发明提出的定位算法所产生的定位误差。从图中可以看到AP的数量会稍微影响基于RSS测距定位算法的定位精度,而不会影响本发明提出算法的定位精度。Among them, the abscissa represents the 5 AP positions randomly selected in room C, and the ordinate represents the corresponding positioning error at the 5 selected AP positions. When the AP is 1, it means that there is only one target AP in the room and no other APs. Exist; when the AP is not 1, it means that there are other APs in the room. The solid line in the figure represents the positioning error generated by the positioning algorithm based on RSS ranging, and the dotted line represents the positioning error generated by the positioning algorithm proposed by the present invention. It can be seen from the figure that the number of APs will slightly affect the positioning accuracy of the positioning algorithm based on RSS ranging, but will not affect the positioning accuracy of the algorithm proposed by the present invention.

综上所述,本发明提出的基于信号强度与空间划分的室内WiFi接入点定位方法,对于不同的房间结构,不同类型的WiFi发射源及AP的数量等并没有影响该方法的定位精度,因此本发明提出的的定位方法稳定性强、精度高。In summary, the indoor WiFi access point positioning method based on signal strength and space division proposed by the present invention does not affect the positioning accuracy of the method for different room structures, different types of WiFi transmission sources and the number of APs. Therefore, the positioning method proposed by the present invention has strong stability and high precision.

本发明提出的一种基于信号强度与空间划分的室内WiFi接入点定位方法,用于室内WiFi接入点的定位;该方法通过使用设备测量不同参考点到目标WiFi接入点的RSS和方向,通过对比测得的RSS值,将下一个定位区域确定为信号强度最大值所在的区域,直到将当前目标区域缩小至设定的精度阈值,得到目标WiFi接入点的位置坐标;实验结果表明,该方法的平均定位误差为0.3米,最低定位误差达到0.16米,本发明提出的算法定位精度较高,该发明可为用户或网络管理员提供技术支持,使其更迅速、准确的找到目标WiFi接入点的位置。An indoor WiFi access point positioning method based on signal strength and space division proposed by the present invention is used for indoor WiFi access point positioning; the method measures the RSS and direction from different reference points to the target WiFi access point by using equipment , by comparing the measured RSS values, the next positioning area is determined as the area where the signal strength maximum is located, until the current target area is reduced to the set accuracy threshold, and the location coordinates of the target WiFi access point are obtained; the experimental results show that , the average positioning error of this method is 0.3 meters, and the minimum positioning error reaches 0.16 meters. The positioning accuracy of the algorithm proposed by the present invention is high. This invention can provide technical support for users or network administrators, so that they can find the target more quickly and accurately The location of the WiFi access point.

应当说明的是,以上所述之实施例,仅仅用于示例型说明或解释本发明的原理,并不用以限制本发明,因此,在不脱离本发明精神和范围内,还可以做出若干改进和修饰,这些改进和修饰均应视为本发明申请专利范围内。It should be noted that the above-mentioned embodiments are only used to illustrate or explain the principle of the present invention, and are not intended to limit the present invention. Therefore, some improvements can be made without departing from the spirit and scope of the present invention. and modifications, these improvements and modifications should be considered within the patent scope of the present invention.

Claims (8)

1.一种基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,包括以下步骤:1. a kind of indoor WiFi access point positioning method based on signal strength and space division, it is characterized in that, comprises the following steps: 步骤1:感知WiFi信号,确定待定位目标AP的SSID;Step 1: Perceive the WiFi signal and determine the SSID of the target AP to be located; 步骤2:确定目标AP所在的房间;Step 2: Determine the room where the target AP is located; 步骤3:设定房间定位精度期望阈值为d;Step 3: Set the expected threshold of room positioning accuracy as d; 步骤4:将目标AP所在区域均分为4个区域;Step 4: Divide the area where the target AP is located into 4 areas; 步骤5:以二分法确定参考点,并在参考点上采集数据;Step 5: Determine the reference point by dichotomy, and collect data at the reference point; 步骤6:通过比较信号强度值,确定信号强度相对关系最大值所在区域;Step 6: By comparing the signal strength values, determine the area where the maximum value of the relative signal strength relationship is located; 步骤7:确定目标AP的下一次定位区域;Step 7: Determine the next positioning area of the target AP; 步骤8:判断目标AP所在区域是否达到设定房间的定位精度期望阈值d;Step 8: Determine whether the area where the target AP is located reaches the expected threshold d of the positioning accuracy of the set room; 步骤9:输出达到设定房间的定位精度期望阈值区域的中心点坐标。Step 9: Output the coordinates of the center point of the area that reaches the expected threshold of positioning accuracy of the set room. 2.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤1,具体包括:使用手机上的无线网络扫描工具,获取定位者周边WiFi的信号列表,根据扫描到的信号列表信息,确定待定位的目标AP的SSID。2. The method for locating indoor WiFi access points based on signal strength and space division according to claim 1, wherein said step 1 specifically comprises: using a wireless network scanning tool on a mobile phone to obtain the surrounding WiFi of the locator According to the scanned signal list information, determine the SSID of the target AP to be located. 3.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤2,具体包括:3. The indoor WiFi access point positioning method based on signal strength and space division according to claim 1, wherein said step 2 specifically comprises: 定位者在目标AP可能存在的房间巡走,根据接收信号强度RSS的变化,将RSS值最大的房间判定为目标AP所在的房间。The locator patrols the room where the target AP may exist, and according to the change of the received signal strength RSS, the room with the largest RSS value is determined as the room where the target AP is located. 4.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤4,具体包括:4. The indoor WiFi access point positioning method based on signal strength and space division according to claim 1, wherein said step 4 specifically comprises: 以目标AP所在区域的中心点为原点,用水平分界线和竖直分界线,将该区域均分为4个区域,将均分的4个区域,按照第一象限~第四象限的顺序命名为 区域;i表示划分次数,j表示所在象限,表示在第i次划分第j象限的区域;Take the center point of the area where the target AP is located as the origin, divide the area into 4 areas with horizontal and vertical dividing lines, and name the 4 equally divided areas in the order of the first quadrant to the fourth quadrant for and area; i represents the number of divisions, j represents the quadrant it is in, Indicates the area where the jth quadrant is divided for the ith time; 目标AP所在区域表示为Hi,i表示划分次数,当i=1时,即H1表示第一次划分区域是目标AP所在的房间,以所在房间的长为y轴,宽为x轴,建立二维坐标系。The area where the target AP is located is expressed as H i , and i represents the number of divisions. When i=1, that is, H 1 indicates that the first divided area is the room where the target AP is located. The length of the room is the y-axis, and the width is the x-axis. Create a two-dimensional coordinate system. 5.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤5,具体包括:在水平分界线以二分法确定3个参考点,在不同参考点上使用手机的无线网络扫描工具和定向天线,分别测参考点到目标AP的RSS和方向。5. The indoor WiFi access point positioning method based on signal strength and space division according to claim 1, characterized in that, said step 5 specifically comprises: determining three reference points by dichotomy at the horizontal dividing line, and Use the mobile phone's wireless network scanning tool and directional antenna at different reference points to measure the RSS and direction from the reference point to the target AP. 6.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤6,具体包括:6. The indoor WiFi access point positioning method based on signal strength and space division according to claim 1, wherein the step 6 specifically comprises: 通过比较在不同参考点测得到目标AP的信号强度值,得到信号强度相对关系值,确定信号强度相对关系最大值所在区域;By comparing the signal strength values of the target AP measured at different reference points, the relative relationship value of the signal strength is obtained, and the area where the maximum value of the relative relationship of the signal strength is determined; 所述信号强度相对关系值是指通过比较在同一参考点不同方向的RSS值得到的大的RSS值。The relative signal strength value refers to a large RSS value obtained by comparing RSS values in different directions at the same reference point. 7.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤7,具体包括:7. The indoor WiFi access point positioning method based on signal strength and space division according to claim 1, wherein the step 7 specifically comprises: 若信号强度相对关系最大值在中心点的位置,则在该最大值所指方向的竖直分界线上以二分法确定一个或者多个参考点,通过比较在竖直分界线参考点上测得到目标AP的信号强度值,得到信号强度相对关系值,确定信号强度相对关系最大值所在区域为下一次目标AP的定位区域Hi+1If the maximum value of the relative relationship of signal strength is at the position of the center point, one or more reference points are determined by dichotomy on the vertical dividing line in the direction pointed to by the maximum value, and are obtained by comparing the reference points measured on the vertical dividing line. The signal strength value of the target AP is obtained to obtain the relative relationship value of the signal strength, and the area where the maximum value of the relative signal strength relationship is determined to be the location area H i+1 of the next target AP; 若信号强度相对关系最大值不在中心点的位置,则将在步骤6得到的信号强度相对关系最大值所在区域确定为下一次目标AP的定位区域Hi+1If the maximum value of the relative signal strength relationship is not at the central point, the area where the maximum value of the relative signal strength relationship obtained in step 6 is located is determined as the location area H i+1 of the next target AP. 8.根据权利要求1所述的基于信号强度与空间划分的室内WiFi接入点定位方法,其特征在于,所述步骤8,具体包括:8. The indoor WiFi access point positioning method based on signal strength and space division according to claim 1, wherein the step 8 specifically comprises: 在目标AP的定位区域Hi+1,判断目标AP所在区域是否达到设定房间的定位精度期望阈值,即判断(dx<d)&&(dy<d)是否成立;In the positioning area H i+1 of the target AP, judge whether the area where the target AP is located reaches the desired positioning accuracy threshold of the set room, that is, judge whether (d x <d) && (d y <d) is true; 其中,dx表示以每次划分区域中心点为原点在X轴上可以移动的最大距离,dy表示以每次划分区域中心点为原点在y轴上可以移动的最大距离。Among them, d x represents the maximum distance that can be moved on the x-axis with the center point of each divided area as the origin, and d y represents the maximum distance that can be moved on the y-axis with the center point of each divided area as the origin.
CN201711349569.9A 2017-12-15 2017-12-15 Indoor WiFi access point location method based on signal strength and space division Active CN108111972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711349569.9A CN108111972B (en) 2017-12-15 2017-12-15 Indoor WiFi access point location method based on signal strength and space division

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711349569.9A CN108111972B (en) 2017-12-15 2017-12-15 Indoor WiFi access point location method based on signal strength and space division

Publications (2)

Publication Number Publication Date
CN108111972A true CN108111972A (en) 2018-06-01
CN108111972B CN108111972B (en) 2021-03-12

Family

ID=62216221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711349569.9A Active CN108111972B (en) 2017-12-15 2017-12-15 Indoor WiFi access point location method based on signal strength and space division

Country Status (1)

Country Link
CN (1) CN108111972B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413571A (en) * 2018-10-25 2019-03-01 上海麦士信息技术有限公司 A kind of arrangements for automotive doors bluetooth BLE localization method based on automatic unlocking
CN110418277A (en) * 2019-07-08 2019-11-05 重庆邮电大学 An Optimal Deployment Method of Reference Points Based on Linear Positioning Accuracy Limit
CN112379329A (en) * 2020-11-06 2021-02-19 通号通信信息集团有限公司 Accurate positioning method and system for underground pipe gallery moving object
WO2022110927A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Method for identifying access point deployment position, and position identification device
CN114945138A (en) * 2022-05-16 2022-08-26 苏州赫里奥网络技术有限公司 Comprehensive pipe gallery personnel positioning method and system
CN115453228A (en) * 2022-08-10 2022-12-09 厦门科司特电子工业有限公司 A method and system for locating a radiation source

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997782A (en) * 2014-04-24 2014-08-20 湘潭大学 Wireless AP detection and location method based on signal intensity and package capture rate
CN104869641A (en) * 2015-06-18 2015-08-26 重庆大学 Wi-Fi indoor positioning method based on AP optimization
CN107360546A (en) * 2017-07-19 2017-11-17 中国科学技术大学 Utilize contracting side's localization method of distributed rectangular base station
US20170347269A1 (en) * 2016-05-31 2017-11-30 At&T Intellectual Property I, L.P. Wi-fi virtualized network operator

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997782A (en) * 2014-04-24 2014-08-20 湘潭大学 Wireless AP detection and location method based on signal intensity and package capture rate
CN104869641A (en) * 2015-06-18 2015-08-26 重庆大学 Wi-Fi indoor positioning method based on AP optimization
US20170347269A1 (en) * 2016-05-31 2017-11-30 At&T Intellectual Property I, L.P. Wi-fi virtualized network operator
CN107360546A (en) * 2017-07-19 2017-11-17 中国科学技术大学 Utilize contracting side's localization method of distributed rectangular base station

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413571A (en) * 2018-10-25 2019-03-01 上海麦士信息技术有限公司 A kind of arrangements for automotive doors bluetooth BLE localization method based on automatic unlocking
CN109413571B (en) * 2018-10-25 2021-02-02 上海麦士信息技术有限公司 Automobile door Bluetooth BLE positioning method based on automatic unlocking
CN110418277A (en) * 2019-07-08 2019-11-05 重庆邮电大学 An Optimal Deployment Method of Reference Points Based on Linear Positioning Accuracy Limit
CN112379329A (en) * 2020-11-06 2021-02-19 通号通信信息集团有限公司 Accurate positioning method and system for underground pipe gallery moving object
CN112379329B (en) * 2020-11-06 2024-04-23 通号通信信息集团有限公司 Accurate positioning method and system for underground pipe gallery moving object
WO2022110927A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Method for identifying access point deployment position, and position identification device
CN114945138A (en) * 2022-05-16 2022-08-26 苏州赫里奥网络技术有限公司 Comprehensive pipe gallery personnel positioning method and system
CN115453228A (en) * 2022-08-10 2022-12-09 厦门科司特电子工业有限公司 A method and system for locating a radiation source

Also Published As

Publication number Publication date
CN108111972B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN108111972A (en) Indoor WiFi Site Surveys method based on signal strength and space division
CN104703143B (en) A kind of indoor orientation method based on WIFI signal intensity
Hu et al. An improvement of DV-Hop localization algorithm for wireless sensor networks
CN104038901B (en) Indoor positioning method for reducing fingerprint data acquisition workload
WO2019062734A1 (en) Indoor positioning method and device based on wi-fi hot spots
Fang et al. Calibration-free approaches for robust Wi-Fi positioning against device diversity: A performance comparison
Liu et al. Localization algorithm of indoor Wi-Fi access points based on signal strength relative relationship and region division.
CN103747524A (en) Android terminal indoor positioning method based on cloud platform
CN108111965B (en) Method and device for determining position of base station
CN104540219B (en) A kind of Wi-Fi fingerprint indoor orientation methods of low complex degree
CN103901398A (en) Position fingerprint positioning method based on combination ordering classification
TW201329486A (en) Positioning method
CN103686999A (en) Indoor wireless positioning method based on WiFi signal
CN103220777A (en) Mobile device positioning system
CN104113909B (en) The localization method and system of digital signage
Li et al. Fast indoor localization for exhibition venues with calibrating heterogeneous mobile devices
CN104965189B (en) Indoor occupant localization method based on maximal possibility estimation
CN109819394A (en) Indoor positioning method and system based on WiFi and ultrasonic hybrid
CN107820314A (en) Dwknn location fingerprint location algorithms based on AP selections
CN104661232B (en) The AP method for arranging limited substantially based on Fisher&#39;s information matrix fingerprint positioning precision
CN110007269A (en) A two-stage wireless signal fingerprint location method based on Gaussian process
Arai et al. Color radiomap interpolation for efficient fingerprint wifi-based indoor location estimation
CN104457733A (en) Indoor electronic device positioning system and method
CN102752850A (en) Range-free based device and method for screening network anchor nodes
CN105979581B (en) A kind of indoor orientation method based on difference power

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
GR01 Patent grant
GR01 Patent grant