CN102665272A - Wireless sensor network positioning method and system based on seed node selection - Google Patents

Wireless sensor network positioning method and system based on seed node selection Download PDF

Info

Publication number
CN102665272A
CN102665272A CN201210061583XA CN201210061583A CN102665272A CN 102665272 A CN102665272 A CN 102665272A CN 201210061583X A CN201210061583X A CN 201210061583XA CN 201210061583 A CN201210061583 A CN 201210061583A CN 102665272 A CN102665272 A CN 102665272A
Authority
CN
China
Prior art keywords
node
anchor
anchor node
combination
sub
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
CN201210061583XA
Other languages
Chinese (zh)
Other versions
CN102665272B (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.)
Suzhou University
Original Assignee
Suzhou 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 Suzhou University filed Critical Suzhou University
Priority to CN201210061583.XA priority Critical patent/CN102665272B/en
Publication of CN102665272A publication Critical patent/CN102665272A/en
Application granted granted Critical
Publication of CN102665272B publication Critical patent/CN102665272B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention relates to a wireless sensor network positioning method based on seed node selection, comprising: that first distances between a to-be-positioned node and anchor nodes are acquired; that an anchor node sub-set is selected from the anchor nodes, and coordinates of the to-be-positioned node and second distances between the to-be-positioned node and every anchor node in the anchor node sub-set are calculated according to a positioning coordinate of the anchor nodes and first distances between each anchor node in the anchor node sub-set and the to-be-positioned node; that deviation medians of the first distances and the second distances are calculated, and a minimum value of the medians and a corresponding coordinate of the to-be-positioned node are collected, wherein the coordinate of the to-be-positioned node is calculated from an anchor node set corresponding to the minimum value; that anchor nodes satisfying requirements are selected to compose a target anchor node sub-set; and that a final position coordinate of the to-be-positioned node is calculated. By carrying out calculation on each anchor node sub-set, the method selects the anchor node sub-set with the minimum deviation and rejects measuring data with large errors, thereby effectively improving accuracy of positioning of the to-be-positioned node.

Description

一种基于种子节点选择的无线传感器网络定位方法及系统A wireless sensor network positioning method and system based on seed node selection

技术领域 technical field

本发明涉及无线通信领域,尤其涉及一种无线传感器网络定位方法及系统。  The invention relates to the field of wireless communication, in particular to a wireless sensor network positioning method and system. the

背景技术 Background technique

无线传感器网络(Wireless Sensor Network,WSN)是大量的静止或移动的传感器以自组织和多跳的方式构成的无线网络,其目的是协作地感知、采集、处理和传输网络覆盖地理区域内感知对象的监测信息,并报告给用户。  A wireless sensor network (Wireless Sensor Network, WSN) is a wireless network composed of a large number of stationary or moving sensors in a self-organizing and multi-hop manner, with the purpose of cooperatively sensing, collecting, processing and transmitting the perceived objects in the geographical area covered by the network. monitoring information and report to users. the

无线传感器网络是一种全新的信息获取和处理技术,能够实时监测、感知和采集各种环境或检测对象的信息,具有灵活性、容错性、高感知能力、低费用以及快速布局等特点,广泛应用于国防军事、环境监测和预报、医疗卫生、空间探索等领域。  Wireless sensor network is a brand-new information acquisition and processing technology, which can monitor, perceive and collect information of various environments or detection objects in real time. It has the characteristics of flexibility, fault tolerance, high perception ability, low cost and rapid layout. It is used in national defense and military, environmental monitoring and forecasting, medical and health care, space exploration and other fields. the

无线传感器网络中的很多特定应用都依赖于传感器节点或者目标物体的地理位置信息。传感器节点必须明确自身位置才能详细说明在什么位置或区域发生了特定事件,实现对外部目标的定位和追踪。  Many specific applications in wireless sensor networks rely on the geographic location information of sensor nodes or target objects. The sensor node must know its own position in order to specify in what position or area a specific event has occurred, so as to realize the positioning and tracking of external targets. the

现有的无线传感器网络定位方法普遍利用无线电信号的强度值进行定位,存在定位精度低的问题,而要提高定位精度,最简单的无线传感器节点定位方法就是为无线传感器网络中的节点全部安装GPS定位仪,但是由于实际应用中,部署在一个无线传感器网络中的无线传感器节点的数量非常庞大,所以这种方法增加了无线传感器节点的设备复杂性,极大的增加了利用无线传感器网络进行监测的成本。因此,目前还没有一种在不增加无线传感器节点设备复杂性的前提下实现高精度定位的方法及相关系统。  The existing wireless sensor network positioning methods generally use the strength value of the radio signal for positioning, which has the problem of low positioning accuracy. To improve the positioning accuracy, the simplest wireless sensor node positioning method is to install GPS for all nodes in the wireless sensor network. However, due to the fact that in practical applications, the number of wireless sensor nodes deployed in a wireless sensor network is very large, this method increases the complexity of the wireless sensor node equipment and greatly increases the use of wireless sensor networks for monitoring. the cost of. Therefore, there is currently no method and related system for realizing high-precision positioning without increasing the complexity of wireless sensor node equipment. the

因此,针对上述技术问题,有必要提供一种具有改良结构的无线传感器网络定位方法及系统,以克服上述缺陷。  Therefore, in view of the above technical problems, it is necessary to provide a wireless sensor network positioning method and system with an improved structure to overcome the above defects. the

发明内容 Contents of the invention

有鉴于此,本发明的目的在于提供一种无线传感器网络定位方法及系统,用于实现在不增加无线传感器节点设备复杂性的前提下,提高无线传感器网络的定位精度。  In view of this, the purpose of the present invention is to provide a wireless sensor network positioning method and system for improving the positioning accuracy of the wireless sensor network without increasing the complexity of wireless sensor node equipment. the

为实现上述目的,本发明提供如下技术方案:  To achieve the above object, the present invention provides the following technical solutions:

一种基于种子节点选择的无线传感器网络定位方法,所述无线传感器网络中包括位置已知的用以发送无线信号的锚节点和位置未知的待定位节点,其包括:  A wireless sensor network positioning method based on seed node selection, the wireless sensor network includes an anchor node with a known position for sending a wireless signal and an unknown node to be positioned, including:

1)依据待定位节点接收到的无线信号及无线信号衰减模型,获得所述待定位节点与发送所述无线信号的锚节点间的第一距离,所述无线信号包括锚节点的位置坐标及所述无线信号的发射功率;  1) According to the wireless signal received by the node to be positioned and the wireless signal attenuation model, the first distance between the node to be positioned and the anchor node sending the wireless signal is obtained, and the wireless signal includes the position coordinates of the anchor node and the The transmission power of the wireless signal;

2)从与所述待定位节点接收到的无线信号相对应的锚节点中,选择预设数量的锚节点以构造预设数量的锚节点组合;  2) From the anchor nodes corresponding to the wireless signal received by the node to be positioned, select a preset number of anchor nodes to construct a preset number of anchor node combinations;

3)选取锚节点组合中的锚节点子组合,进而对各个锚节子组合进行计算,从而筛选出符合要求的锚节点组成目标锚节点子组;  3) Select the anchor node sub-combinations in the anchor node combination, and then calculate each anchor node sub-combination, so as to screen out the anchor nodes that meet the requirements to form the target anchor node sub-group;

4)根据所述目标锚节点子组合中锚节点的位置坐标计算所述待定位节点的最终位置坐标。  4) Calculate the final position coordinates of the node to be located according to the position coordinates of the anchor nodes in the target anchor node subgroup. the

优选的,在上述无线传感器网络定位方法中,所述步骤1)前还包括:控制锚节点向所述待定位节点发送无线信号。  Preferably, in the above wireless sensor network positioning method, before the step 1), the method further includes: controlling the anchor node to send a wireless signal to the node to be positioned. the

优选的,在上述无线传感器网络定位方法中,所述步骤3)具体包括:  Preferably, in the above wireless sensor network positioning method, the step 3) specifically includes:

31)当所述锚节点组合中含有N个锚节点,选择所述锚节点组合中每N-k个锚节点设置为一个锚节点子组合,其中k为小于N的预设值,选取M个组合;  31) When the anchor node combination contains N anchor nodes, select every N-k anchor nodes in the anchor node combination to set as an anchor node sub-combination, where k is a preset value less than N, and select M combinations;

32)依据所述锚节点的位置坐标及所述锚节点与所述待定位节点的第一距离,获得与所述每个锚节点子组合相对应的所述待定位节点的初始位置坐标,总共有M个;  32) According to the position coordinates of the anchor node and the first distance between the anchor node and the node to be located, obtain the initial position coordinates of the node to be located corresponding to each anchor node sub-combination, and a total of There are M;

33)依据每个锚节点子组合中各个锚节点所对应的所述待定位节点的初始位置坐标,计算所述待定位节点与各个锚节点的第二距离;  33) Calculate the second distance between the node to be located and each anchor node according to the initial position coordinates of the node to be located corresponding to each anchor node in each anchor node sub-combination;

34)计算与所述每个锚节点子组合中各个锚节点所对应的第一距离与第二距离的偏差值,并取偏差值的中间值作为所述各个锚节点组合的代表偏差值;  34) Calculate the deviation value between the first distance and the second distance corresponding to each anchor node in each anchor node sub-combination, and take the median value of the deviation value as the representative deviation value of each anchor node combination;

35)使用所述代表偏差值的最小值求出权,并取代表偏差值最小的锚节点子组合所求出的坐标作为暂定的估计坐标,然后使用此坐标再次求出所述待定 节点与所有锚节点的第二距离,且计算出与对应锚节点的第一距离之间的偏差值,通过权来判断每个锚节点所对应的偏差值是否在允许范围之内,若不在,舍去此锚节点的数据,若在,则保留此锚节点数据;  35) Use the minimum value of the representative deviation value to obtain the right, and replace the coordinates obtained by the anchor node sub-combination with the smallest representative deviation value as the tentative estimated coordinates, and then use this coordinate to obtain the undetermined node and The second distance of all anchor nodes, and calculate the deviation value between the first distance and the corresponding anchor node, and use the weight to judge whether the deviation value corresponding to each anchor node is within the allowable range, if not, discard The data of this anchor node, if it exists, keep the data of this anchor node;

36)按照所保留的锚节点数量设置一个新的锚节点子组合,并使这个锚节点子组合执行步骤32)。  36) Set up a new anchor node sub-combination according to the number of reserved anchor nodes, and make this anchor node sub-combination execute step 32). the

优选的,在上述无线传感器网络定位方法中,所述无线信号衰减模型为: 其中,p为相应锚节点所发射无线信号的发射功率,q为待定位节点所接收到的相应锚节点的无线信号功率,d为待定位节点与相应锚节点的第一距离,a为信号衰减因子。  Preferably, in the wireless sensor network positioning method above, the wireless signal attenuation model is: Among them, p is the transmission power of the wireless signal transmitted by the corresponding anchor node, q is the wireless signal power of the corresponding anchor node received by the node to be located, d is the first distance between the node to be located and the corresponding anchor node, and a is the signal attenuation factor.

为实现上述目的,本发明还提供如下技术方案:  To achieve the above object, the present invention also provides the following technical solutions:

一种基于种子节点选择的无线传感器网络定位系统,所述无线传感器网络包括位置已知的用以发送无线信号的锚节点和位置未知的待定位节点,其包括:  A wireless sensor network positioning system based on seed node selection, the wireless sensor network includes an anchor node whose position is known to send wireless signals and an unknown node to be positioned, which includes:

第一计算模块,用于依据待定位节点接收到的无线信号及无线信号衰减模型,获得所述待定位节点与发送所述无线信号的锚节点间的第一距离;  The first calculation module is used to obtain the first distance between the node to be positioned and the anchor node sending the wireless signal according to the wireless signal received by the node to be positioned and the wireless signal attenuation model;

锚节点组合构造模块,用于选择锚节点,并构造含有预设数量的锚节点组合;  Anchor node combination construction module, used to select anchor nodes and construct anchor node combinations with a preset number;

目标锚节点子组合获取模块,用于根据所述锚节点组合构造锚节点子组合,并计算每个锚节点子组合的偏差值的中间值作为此锚节点子组合的代表偏差值,求出最小的代表偏差值和权,且选择代表偏差最小的子组合所求出的坐标作为暂定的估计坐标,计算出每个锚节点的偏差值,使用权为依据判断是否保留已知锚节点的数据,从而获取一个所有锚节点的偏差值在允许范围内的锚节点组成的目标锚节点子组合;  The target anchor node sub-combination acquisition module is used to construct the anchor node sub-combination according to the anchor node combination, and calculate the median value of the deviation value of each anchor node sub-combination as the representative deviation value of the anchor node sub-combination, and find the minimum The representative deviation value and weight of , and select the coordinates obtained by the subcombination with the smallest representative deviation as the tentative estimated coordinates, calculate the deviation value of each anchor node, and use the weight as a basis to judge whether to retain the data of known anchor nodes , so as to obtain a target anchor node sub-combination composed of anchor nodes whose deviation value of all anchor nodes is within the allowable range;

第二计算模块,用于根据所述锚节点子组合计算所述待定位节点的最终位置坐标。  The second calculation module is configured to calculate the final position coordinates of the node to be positioned according to the anchor node subcombination. the

优选的,在上述无线传感器网络定位系统中,所述目标锚节点子组合获取模块包括:  Preferably, in the above wireless sensor network positioning system, the target anchor node sub-combination acquisition module includes:

设置单元,用于设置含有预设数量锚节点的锚节点子组合;  A setting unit, used to set an anchor node subcombination containing a preset number of anchor nodes;

初始位置坐标计算单元,用于依据所述锚节点的位置坐标及与每个锚节点相对应的第一距离,获得所述待定位节点与所述每个锚节点子组合中各个锚节点相对应的的初始位置坐标;  An initial position coordinate calculation unit, configured to obtain the correspondence between the node to be located and each anchor node in each anchor node sub-combination according to the position coordinates of the anchor node and the first distance corresponding to each anchor node The initial position coordinates of ;

第二距离计算单元,用于根据初始位置坐标计算单元得到的位置坐标,计算获取所述待定位节点与各个锚节点的第二距离;  The second distance calculation unit is used to calculate and obtain the second distance between the node to be positioned and each anchor node according to the position coordinates obtained by the initial position coordinate calculation unit;

偏差值中间值获取单元,用于计算每个锚节点子组合所求出的坐标与所述各个锚节点相对应的第一距离、第二距离的偏差值的中间值;  The deviation value intermediate value acquisition unit is used to calculate the coordinates obtained by each anchor node sub-combination and the first distance corresponding to each anchor node, and the intermediate value of the deviation value of the second distance;

暂定的估计坐标获取单元,选取偏差值的中间值最小的锚节点子组合所求出的坐标作为暂定的估计坐标;  The tentative estimated coordinate acquisition unit selects the coordinates obtained by the anchor node sub-combination with the smallest median value of the deviation value as the tentative estimated coordinates;

最终偏差值获取单元,使用暂定的估计坐标所对应的第二距离,计算出与对应锚节点的第一距离之间的偏差值;  The final deviation value acquisition unit uses the second distance corresponding to the tentative estimated coordinates to calculate the deviation value from the first distance to the corresponding anchor node;

判断单元,用于判断所述每个锚节点偏差值是否在允许范围内。  A judging unit, configured to judge whether the deviation value of each anchor node is within a permissible range. the

从上述技术方案可以看出,本发明实施例的基于种子节点选择的无线传感器网络定位方法及系统,考虑到无线传感器网络中在确定待定位节点位置的过程中包含误差较大的测量数据,因此,在定位过程中,根据锚节点所发射的无线信号计算出所述待定位节点与各个锚节点之间的距离后,分成多个锚节点子组合,进而对各个锚节子组合进行计算,从而筛选出偏差值最小的锚节点子组合,并且能够有效地剔除误差较大的测量数据,进而有效提高对所述待定位节点定位的精确度,而且,所述方法是在原有的无线电网络设备的基础上实现的,并没有在无线传感器节点上增加额外的设备,降低了无线电网络的使用成本。  It can be seen from the above technical solutions that the wireless sensor network positioning method and system based on seed node selection in the embodiments of the present invention consider that the measurement data with large errors are included in the process of determining the position of the node to be positioned in the wireless sensor network, so , in the positioning process, after the distance between the node to be positioned and each anchor node is calculated according to the wireless signal transmitted by the anchor node, it is divided into multiple anchor node sub-combinations, and then each anchor node sub-combination is calculated, so that The anchor node sub-combination with the smallest deviation value is screened out, and the measurement data with large errors can be effectively eliminated, thereby effectively improving the positioning accuracy of the node to be positioned. Moreover, the method is based on the original radio network equipment Based on the realization, no additional equipment is added to the wireless sensor node, which reduces the use cost of the radio network. the

附图说明 Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的有关本发明的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the following descriptions related to the present invention The accompanying drawings are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to these drawings without any creative effort. the

图1是本发明实施例的无线传感器网络定位方法流程图;  Fig. 1 is the flow chart of the wireless sensor network location method of the embodiment of the present invention;

图2是本发明实施例的无线传感器网络定位系统的示意图;  Fig. 2 is the schematic diagram of the wireless sensor network positioning system of the embodiment of the present invention;

图3是本发明实施例的无线传感器网络定位系统中的目标锚节点子组合获取模块的示意图;  3 is a schematic diagram of a target anchor node sub-combination acquisition module in a wireless sensor network positioning system according to an embodiment of the present invention;

图4是本发明当r=0.2时,求20次待定节点坐标的误差;  Fig. 4 is when r=0.2 of the present invention, seeks the error of 20 undetermined node coordinates;

图5是本发明当r=0.1时,求20次待定节点坐标的误差;  Fig. 5 is when r=0.1 of the present invention, seeks the error of 20 undetermined node coordinates;

图6是本发明当r=0.06时,求20次待定节点坐标的误差;  Fig. 6 is when r=0.06 of the present invention, seeks the error of 20 undetermined node coordinates;

图7是本发明当r=0.02时,求20次待定节点坐标的误差。  Fig. 7 is when r=0.02 of the present invention, seek the error of 20 undetermined node coordinates. the

具体实施方式 Detailed ways

本发明公开了一种基于种子节点选择的无线传感器网络定位方法及定位系统,该定位方法及定位系统根据锚节点所发射的无线信号计算出所述待定位节点与各个锚节点之间的距离后,分成多个锚节点子组合,进而对各个锚节子组合进行计算,从而筛选出偏差值最小的锚节点子组合,并且能够有效地剔除误差较大的测量数据,进而有效提高对所述待定位节点定位的精确度,通过使用该定位方法及定位系统,能够解决利用现有技术计算待定位节点时存在较大误差的问题。  The present invention discloses a wireless sensor network positioning method and positioning system based on seed node selection. The positioning method and positioning system calculate the distance between the node to be positioned and each anchor node according to the wireless signal transmitted by the anchor node. , divided into multiple anchor node sub-combinations, and then calculate each anchor node sub-combination, so as to screen out the anchor node sub-combination with the smallest deviation value, and can effectively eliminate the measurement data with large errors, thereby effectively improving the undetermined The positioning accuracy of the bit nodes, by using the positioning method and the positioning system, can solve the problem of large errors when calculating the nodes to be positioned using the existing technology. the

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行详细的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. the

如图1所示,无线传感器网络包括位置已知的用以发送无线信号的锚节点和位置未知的待定位节点,本发明提供的基于种子节点选择的无线传感器网络定位方法,包括:  As shown in Figure 1, the wireless sensor network includes an anchor node whose position is known to send wireless signals and an unknown node to be positioned. The wireless sensor network positioning method based on seed node selection provided by the present invention includes:

S1:依据待定位节点接收到的无线信号及无线信号衰减模型,获得所述待定位节点与发送所述无线信号的锚节点间的第一距离;  S1: Obtain the first distance between the node to be positioned and the anchor node sending the wireless signal according to the wireless signal received by the node to be positioned and the wireless signal attenuation model;

S2:从与所述待定位节点接收到的无线信号相对应的锚节点中,选择预设数量的锚节点以构造预设数量的锚节点组合;  S2: From the anchor nodes corresponding to the wireless signal received by the node to be positioned, select a preset number of anchor nodes to construct a preset number of anchor node combinations;

S3:选取锚节点组合中的锚节点子组合,进而对各个锚节子组合进行计算,从而筛选出符合要求的锚节点组成目标锚节点子组合;  S3: Select the anchor node sub-combination in the anchor node combination, and then calculate each anchor node sub-combination, so as to screen out the anchor nodes that meet the requirements to form the target anchor node sub-combination;

S4:根据所述目标锚节点子组合中锚节点的位置坐标计算所述待定位节点的最终位置坐标。  S4: Calculate the final position coordinates of the node to be located according to the position coordinates of the anchor nodes in the target anchor node subgroup. the

在上述步骤S1中,无线信号包括锚节点的位置坐标及所述无线信号的发射功率。  In the above step S1, the wireless signal includes the position coordinates of the anchor node and the transmission power of the wireless signal. the

在上述步骤S1中,无线信号衰减模型的公式为:  In the above step S1, the formula of the wireless signal attenuation model is:

qq == pp dd aa

其中,p为相应锚节点所发射无线信号的发射功率,q为待定位节点所接收到的相应锚节点的无线信号功率,d为待定位节点与相应锚节点的距离,a为信号衰减因子。在实际应用中,a的取值随环境变化有所不同,一般情况下将a设置为2,但根据实际的应用场景,也可以选择其他值作为信号衰减因子。  Among them, p is the transmission power of the wireless signal transmitted by the corresponding anchor node, q is the wireless signal power of the corresponding anchor node received by the node to be located, d is the distance between the node to be located and the corresponding anchor node, and a is the signal attenuation factor. In practical applications, the value of a varies with the environment. Generally, a is set to 2, but other values can also be selected as the signal attenuation factor according to actual application scenarios. the

在上述步骤S2中,在复杂的电磁环境影响之下,当所述锚节点向所述待定位节点发送无线信号时,由于受到环境的影响,以及信号的多径衰落、阴影衰落等原因,并非所有锚节点发送的无线信号都能被待定位节点接收,所述待定位节点接收到的只是一部分锚节点发送的无线信号,因此,在构造锚节点组合时,选取的锚节点为其发送的无线信号能够被待定位节点所接收的锚节点,同时,为了使待定位节点的定位结果能够更准确,所述锚节点组合中选取的锚节点尽量分布在所述待定位节点的四周,以免选取的锚节点集中在一个区域,从而影响计算结果,同时,选取的所述锚节点分布在一个合适的距离内,以免距离所述待定位节点太远,造成无线信号在传输过程中的过度衰减。  In the above step S2, under the influence of the complex electromagnetic environment, when the anchor node sends a wireless signal to the node to be positioned, due to the influence of the environment, multipath fading and shadow fading of the signal, it is not All the wireless signals sent by the anchor nodes can be received by the nodes to be positioned, and the nodes to be positioned receive only a part of the wireless signals sent by the anchor nodes. Therefore, when constructing the combination of anchor nodes, the selected anchor nodes are the wireless An anchor node whose signal can be received by the node to be positioned. At the same time, in order to make the positioning result of the node to be positioned more accurate, the anchor nodes selected in the anchor node combination should be distributed around the node to be positioned as much as possible, so as to avoid the selected The anchor nodes are concentrated in one area, thereby affecting the calculation results. At the same time, the selected anchor nodes are distributed within an appropriate distance, so as not to be too far away from the node to be positioned, causing excessive attenuation of wireless signals during transmission. the

上述步骤S3更具体讲为:选取锚节点组合中的锚节点子组合,并依据每个锚节点子组合中各个锚节点与所述待定位节点的第一距离以及各个锚节点的位置坐标,计算待定位节点的坐标,用此坐标算出待定位节点与所述每个锚节点所对应的第二距离以及对应的第一距离和第二距离的偏差值,并取偏差值的中间值作为所述各个锚节点子组合的代表偏差值,使用所述代表偏差值的最小值求出权,并取代表偏差值最小的锚节点子组合所求出的坐标作为暂定的估计坐标,然后使用此坐标再次求出所述待定节点与所有锚节点的第二距离,且计算出与对应锚节点的第一距离之间的偏差值,通过权来判断每个锚节点所对应的偏差值是否在允许范围之内,若不在,舍去此锚节点的数据,若在,则保留此锚节点数据,选择符合要求的锚节点组成目标锚节点子组合。  The above step S3 is more specifically: selecting the anchor node sub-combinations in the anchor node combination, and calculating The coordinates of the node to be positioned, using the coordinates to calculate the second distance corresponding to the node to be positioned and each of the anchor nodes and the deviation value of the corresponding first distance and the second distance, and taking the middle value of the deviation value as the described The representative deviation value of each anchor node sub-combination, use the minimum value of the representative deviation value to find the weight, and take the coordinate obtained by the anchor node sub-combination with the smallest representative deviation value as the tentative estimated coordinate, and then use this coordinate Calculate the second distance between the undetermined node and all anchor nodes again, and calculate the deviation value between the first distance and the corresponding anchor node, and judge whether the deviation value corresponding to each anchor node is within the allowable range by weight If not, the data of the anchor node is discarded, if it is, the data of the anchor node is kept, and the anchor nodes that meet the requirements are selected to form the target anchor node sub-combination. the

在上述步骤S4中,根据所述目标锚节点子组合中锚节点的位置坐标计算所述待定位节点的最终位置坐标时,使用的计算方式可以采用最小二乘法的方式,或采取其他方式。  In the above step S4, when calculating the final position coordinates of the node to be located according to the position coordinates of the anchor nodes in the target anchor node sub-combination, the calculation method used may be the least square method or other methods. the

进一步的,在实际的定位过程中,在上述步骤S1之前,还包括:控制锚节点向所述待定位节点发送无线信号。  Further, in the actual positioning process, before the above step S1, it also includes: controlling the anchor node to send a wireless signal to the node to be positioned. the

上述步骤S3具体包括:  Above-mentioned step S3 specifically comprises:

S31:当所述锚节点组合中含有N个锚节点,选择所述锚节点组合中每N-k个锚节点设置为一个锚节点子组合,其中k为小于N的预设值,选取M个组合;  S31: When the anchor node combination contains N anchor nodes, select every N-k anchor nodes in the anchor node combination to set as an anchor node sub-combination, where k is a preset value less than N, and select M combinations;

S32:依据所述锚节点的位置坐标及所述锚节点与所述待定位节点的第一距离,获得与所述每个锚节点子组合相对应的所述待定位节点的初始位置坐标,总共有M个;  S32: According to the position coordinates of the anchor node and the first distance between the anchor node and the node to be located, obtain the initial position coordinates of the node to be located corresponding to each anchor node sub-combination, a total of There are M;

S33:依据每个锚节点子组合中各个锚节点所对应的所述待定位节点的初始位置坐标,计算所述待定位节点与各个锚节点的第二距离;  S33: Calculate the second distance between the node to be located and each anchor node according to the initial position coordinates of the node to be located corresponding to each anchor node in each anchor node sub-combination;

S34:计算与所述每个锚节点子组合中各个锚节点所对应的第一距离与第二距离的偏差值,并取偏差值的中间值作为所述各个锚节点组合的代表偏差值;  S34: Calculate the deviation value between the first distance and the second distance corresponding to each anchor node in each anchor node sub-combination, and take the median value of the deviation value as the representative deviation value of each anchor node combination;

S35:使用所述代表偏差值的最小值求出权,并取代表偏差值最小的锚节点子组合所求出的坐标作为暂定的估计坐标,然后使用此坐标再次求出所述待定节点与所有锚节点的第二距离,且计算出与对应锚节点的第一距离之间的偏差值,通过权来判断每个锚节点所对应的偏差值是否在允许范围之内,若不在,舍去此锚节点的数据,若在,则保留此锚节点数据;  S35: Use the minimum value of the representative deviation value to find the right, and take the coordinate obtained by the anchor node sub-combination with the smallest representative deviation value as the tentative estimated coordinate, and then use this coordinate to find the relationship between the undetermined node and The second distance of all anchor nodes, and calculate the deviation value between the first distance and the corresponding anchor node, and use the weight to judge whether the deviation value corresponding to each anchor node is within the allowable range, if not, discard The data of this anchor node, if it exists, keep the data of this anchor node;

S36:按照所保留的锚节点数量设置一个新的锚节点子组合,并使这个锚节点子组合执行步骤32),但只产生一个目标位置坐标。  S36: Set a new anchor node sub-combination according to the number of reserved anchor nodes, and make this anchor node sub-combination execute step 32), but only generate one target position coordinate. the

在上述步骤S31中,假设所述锚节点组合中,有百分率为e的所述锚节点相对应的第一距离与实际值存在较大误差,可以根据概率P求出取得一组第一距离与实际距离相符或误差小时M和k的取值,而将每k个锚节点设置为一个锚节点子组合,若使P>=0.99则必将存在一个锚节点子组合中,与所述锚节点相对应的第一距离与实际值相符或误差较小,因此,通过设置锚节点子组合的方式,能够剔除掉错误数据,另外,其中k的取值可以为大于等于3的预设值;  In the above step S31, assuming that in the anchor node combination, there is a large error between the first distance corresponding to the anchor node with a percentage e and the actual value, a set of first distance and the actual value can be obtained according to the probability P The actual distance is consistent or the value of M and k is small, and every k anchor nodes are set as an anchor node sub-combination. If P>=0.99, there must be an anchor node sub-combination, and the anchor node The corresponding first distance is consistent with the actual value or the error is small. Therefore, by setting the anchor node sub-combination, the wrong data can be eliminated. In addition, the value of k can be a preset value greater than or equal to 3;

在上述步骤S32中,在计算所述待定位节点的位置坐标的过程中,可以采用最小二乘法的方式来计算,但也可以采用其他方式。  In the above step S32, in the process of calculating the position coordinates of the node to be positioned, the method of least squares may be used for calculation, but other methods may also be used. the

上述步骤S34具体为:计算代表每个锚节点子组合的偏差值,求出与初始坐标值对应的锚节点的第一距离与第二距离的偏差值,其中第一距离用d表示,设第二距离用D表示,并取其中的中间值作为此坐标值对应的锚节点子组合的代表偏差值,用r表示所述第一距离与第二距离的差,可以取所述代表偏差值为 R=med r,当然,也可以选取其他方式来计算所述偏差值,例如,设定所述偏差值为所述第一距离与所述第二距离的差值的绝对值,本申请不做限定。  The above step S34 is specifically: calculating the deviation value representing each anchor node sub-combination, and finding the deviation value between the first distance and the second distance of the anchor node corresponding to the initial coordinate value, wherein the first distance is represented by d, and the first distance is set The second distance is represented by D, and the middle value is taken as the representative deviation value of the anchor node sub-combination corresponding to this coordinate value, and r is used to represent the difference between the first distance and the second distance, and the representative deviation value can be taken as R=med r, of course, other ways can also be selected to calculate the deviation value, for example, setting the deviation value as the absolute value of the difference between the first distance and the second distance, this application does not limited. the

上述步骤S35具体为:选择所述代表偏差值R最小的锚节点子组合所对应的待定节点坐标作为暂定的估计坐标,取最小的代表偏差值R求出权w,使用暂定的估计坐标求出与每个锚节点的第二距离,求出对应的第一距离和第二距离的偏差值作为最终的各自锚节点的偏差值,并根据权和参数u(根据噪声的强度而定,噪声强度越大取值越小)判断前述偏差值是否在允许范围内,若不在,舍去此锚节点数据,若在,保留并组成目标锚节点子组合,使用最小二乘法或其他方法求出最终待定节点坐标。  The above step S35 is specifically as follows: select the undetermined node coordinates corresponding to the anchor node sub-combination with the smallest representative deviation value R as the tentative estimated coordinates, take the smallest representative deviation value R to obtain the weight w, and use the tentative estimated coordinates Find the second distance from each anchor node, find the deviation value of the corresponding first distance and the second distance as the final deviation value of each anchor node, and according to the weight and parameter u (depending on the strength of the noise, The greater the noise intensity, the smaller the value) to judge whether the aforementioned deviation value is within the allowable range, if not, discard the anchor node data, if yes, keep and form the target anchor node sub-combination, and use the least square method or other methods to find out Final undetermined node coordinates. the

下面结合具体的实施例对本发明所提供的方案进行详细描述。  The solution provided by the present invention will be described in detail below in conjunction with specific embodiments. the

在100m×100m监测区域内,多个传感器节点部署于监测区域,其中,s1-s16为16个锚节点,将这16个锚节点设置为一个锚节点组合,用于后续对待定位节点的定位,us为1个待定位节点。假设锚节点组合中的16个锚节点的位置坐标分别为s1(0,0),s2(0,10),s3(0,20),s4(0,30),s5(10,0),s6(10,10),s7(10,20),s8(10,30),s9(20,0),s10(20,10),s11(20,20),s12(20,30),s13(30,0),s14(30,10),s15(30,20),s16(30,30),并且假设待定位节点位置坐标为us(15,15)。  In the 100m×100m monitoring area, multiple sensor nodes are deployed in the monitoring area, among which s1-s16 are 16 anchor nodes, and these 16 anchor nodes are set as an anchor node combination for subsequent positioning of the nodes to be positioned. us is a node to be located. Assume that the position coordinates of the 16 anchor nodes in the anchor node combination are s1 (0, 0), s2 (0, 10), s3 (0, 20), s4 (0, 30), s5 (10, 0), s6(10,10), s7(10,20), s8(10,30), s9(20,0), s10(20,10), s11(20,20), s12(20,30), s13 (30, 0), s14(30, 10), s15(30, 20), s16(30, 30), and assume that the coordinates of the node to be located are us(15, 15). the

所述锚节点组合中的16个锚节点周期性的发射无线信号,所述无线信号中包括锚节点的位置坐标,分别为上述位置坐标s1-s16,以及无线信号发射功率p。所述待定位节点接收锚节点的无线电发射信号,然后,根据无线信号衰减模型,计算锚节点与待定位节点us之间的第一距离d,其中,根据无线信号衰减模型公式:  The 16 anchor nodes in the anchor node combination periodically transmit wireless signals, and the wireless signals include the location coordinates of the anchor nodes, which are the above-mentioned location coordinates s1-s16, and the wireless signal transmission power p. The node to be positioned receives the radio transmission signal of the anchor node, and then, according to the wireless signal attenuation model, calculates the first distance d between the anchor node and the node to be positioned us, wherein, according to the wireless signal attenuation model formula:

qq == pp dd aa

其中,p为相应锚节点所发射无线信号的发射功率,q为待定位节点所接收到的相应锚节点的无线信号功率,d为待定位节点与相应锚节点的距离,a为信号衰减因子。在实际应用中,a的取值随环境变化有所不同。  Among them, p is the transmission power of the wireless signal transmitted by the corresponding anchor node, q is the wireless signal power of the corresponding anchor node received by the node to be located, d is the distance between the node to be located and the corresponding anchor node, and a is the signal attenuation factor. In practical applications, the value of a varies with the environment. the

在本次试验中,衰减因子a设为2,因此,通过计算可以分别得到待定位节点us与16个锚节点的第一距离依次为:d1=22.0407,d2=16.0244, d3=16.4001,d4=21.5766,d5=16.3589,d6=7.7486,d7=7.4429,d8=15.4861,d9=15.9667,d10=7.3526,d11=7.5234,d12=15.9372,d13=21.2987,d14=16.4274,d15=15.8655,d16=20.7826。  In this experiment, the attenuation factor a is set to 2. Therefore, the first distance between the node us to be located and the 16 anchor nodes can be obtained by calculation: d1=22.0407, d2=16.0244, d3=16.4001, d4= 21.5766, d5 = 16.3589, d6 = 7.7486, d7 = 7.4429, d8 = 15.4861, d9 = 15.9667, d10 = 7.3526, d11 = 7.5234, d12 = 15.9372, d13 = 21.2987, d14 = 16.4274, d15 = 2, 0.05 the

在此说明定位一个点至少需要三组数据,所以在这我们至少选取3个锚节点作为一组,本实验中,选取4个锚节点作为一组,这是为了减少出现我们取的节点靠得太近而不能得到待定节点坐标的情况的几率,这就要求在我们的锚节点中至少有4个正确的或误差很小的数据,但是在实际中考虑到锚节点的计算能力和所要求算法的准确性,我们不能计算所有的可能组合,但是我们又必须有至少一个节点组合的数据误差较小,只有这样才能得到误差小的待定节点坐标,我们可以使得到至少一个节点组合为误差小的概率大于99%,我们就必须考虑选取适当的锚节点子组合数M。  It is explained here that at least three sets of data are required to locate a point, so here we select at least 3 anchor nodes as a group. In this experiment, we select 4 anchor nodes as a group. The probability of being too close to the situation where the coordinates of the undetermined node cannot be obtained requires at least 4 correct or small error data in our anchor node, but in practice, considering the computing power of the anchor node and the required algorithm accuracy, we cannot calculate all possible combinations, but we must have at least one node combination with a small data error, only in this way can we get the undetermined node coordinates with a small error, and we can make at least one node combination with a small error If the probability is greater than 99%, we must consider selecting an appropriate anchor node sub-combination number M. the

本实验中,选取M=20,这样就可忍受30%的污染率(锚节点中误差较大的所占的比例),其中噪声遵循高斯分布,假设其中有4个错误数据,即误差较大的数据,且假设所述错误数据位d4、d8、d12时,根据上述方法,从16个锚节点中随机选择4个锚节点作为锚节点子组合,总共选取20组,理论上讲,这20组里面至少有一组数据都是正确的概率大于99.5%,也就是20组里有一组不存在d4、d8、d12这四个数据的概率是大于99.5%。在一次实验中所述的16个锚节点子组合的设置情况可以参见下表,对上述的每个锚节点子组合,分别利用最小二乘法的方法计算待定位节点的初始位置坐标,则可以得到如下表的结果:  In this experiment, M=20 is selected, so that a 30% pollution rate (the proportion of the anchor node with a large error) can be tolerated, and the noise follows a Gaussian distribution, assuming that there are 4 wrong data, that is, the error is large , and assuming that the erroneous data bits are d4, d8, and d12, according to the above method, 4 anchor nodes are randomly selected from the 16 anchor nodes as anchor node sub-combinations, and a total of 20 groups are selected. Theoretically speaking, these 20 The probability that at least one set of data in the group is correct is greater than 99.5%, that is, the probability that one of the 20 groups does not have the four data of d4, d8, and d12 is greater than 99.5%. The settings of the 16 anchor node sub-combinations described in an experiment can be found in the table below. For each of the above-mentioned anchor node sub-combinations, the initial position coordinates of the nodes to be located are calculated by the method of least squares, and then we can get The results in the following table:

Figure BDA0000142152080000101
Figure BDA0000142152080000101

由上表可知,第8组的代表偏差值最小则选此组所求出的待定节点坐标作为暂定的估计坐标,为(15.3717,15.2254),用此坐标再次求出待定节点与已知锚节点的第二距离,并算出第二距离与第一距离之间的偏差值da,结果如下:  It can be seen from the above table that the representative deviation value of the 8th group is the smallest, so the undetermined node coordinates calculated by this group are selected as the tentative estimated coordinates, which are (15.3717, 15.2254), and the undetermined nodes and known anchors are calculated again with this coordinate The second distance of the node, and calculate the deviation value da between the second distance and the first distance, the result is as follows:

  锚节点号 Anchor node number   S1 S1   S2 S2   S3 S3   S4 S4   S5 S5   S6 S6   |da|/10^4 |da|/10^4   0.4050 0.4050   0.2112 0.2112   0.3040 0.3040   0.4558 0.4558   0.2137 0.2137   0.2546 0.2546   锚节点号 Anchor node number   S7 S7   S8 S8   S9 S9   S10 S10   S11 S11   S12 S12   |da|/10^4 |da|/10^4   0.2560 0.2560   0.6347 0.6347   0.0534 0.0534   0.3722 0.3722   0.8737 0.8737   0.4546 0.4546   锚节点号 Anchor node number   S13 S13   S14 S14   S15 S15   S16 S16  the  the   |da|/10^4 |da|/10^4   0.1847 0.1847   0.8938 0.8938   0.4777 0.4777   0.0086 0.0086  the  the

再通过第8组的代表误差U8,我们可以使用公式:S0=1.4826*(1+5/14)*((U)^2)^0.5和选择参数r的数值,再通过判断||da|/S0|<r求出每个锚节点的权,原则为若不等式成立则此锚节点的权为1,反之为0。在此我们选择r=0.02(r在不同的环境下的选取的值不同,当噪声大时必须选取较小的值,才能保证系统恩能比较准确的判断有大误差的锚节点数据),通过计算各个锚节点的权为:  Then through the representative error U8 of the 8th group, we can use the formula: S0=1.4826*(1+5/14)*((U)^2)^0.5 and select the value of the parameter r, and then judge ||da| /S0|<r Calculate the weight of each anchor node. The principle is that if the inequality holds, the weight of the anchor node is 1, otherwise it is 0. Here we choose r=0.02 (the value of r is different in different environments, when the noise is large, a smaller value must be selected to ensure that the system can accurately judge the anchor node data with large errors), through Calculate the weight of each anchor node as:

  节点号 node number   S1 S1   S2 S2   S3 S3   S4 S4   S5 S5   S6 S6   S7 S7   S8 S8   权 right   0 0   1 1   1 1   0 0   1 1   1 1   1 1   0 0   节点号 node number   S9 S9   S10 S10   S11 S11   S12 S12   S13 S13   S14 S14   S15 S15   S16 S16   权 right   1 1   S S   0 0   0 0   1 1   0 0   0 0   1 1

[0082] 则选取权值为1的锚节点组合成目标锚节点子组合,通过这个组合求出最终的带定节点坐标值为(15.4382,15.2405)。  [0082] An anchor node with a weight of 1 is selected to be combined into a target anchor node sub-combination, and the final coordinate value of the fixed node is obtained by this combination (15.4382, 15.2405).

接着,我们通过实验来看看不同的r值对系统的影响。我们通过分别选取r=0.2,r=0.1,r=0.06,r=0.02求20次待定节点坐标,得到的待定节点的误差有什么不同。  Next, we use experiments to see the impact of different r values on the system. We select r=0.2, r=0.1, r=0.06, r=0.02 to find the coordinates of the undetermined nodes 20 times, and what is the difference in the error of the undetermined nodes obtained. the

上面四张图分别为r=0.2,r=0.1,r=0.06,r=0.02时,求20次待定节点坐标所得到的误差值,线条100(实线)上的点表示求出的暂定的估计坐标值的误差,线条200(虚线)上的点表示最终求出的坐标误差值,从上面的图片中我们可以看出,总体上随着r值的减小,线条200上的点离x轴越近,误差越小,于是得到以下结论:  The above four pictures are respectively r=0.2, r=0.1, r=0.06, r=0.02, the error values obtained by calculating the coordinates of the undetermined nodes 20 times, and the points on the line 100 (solid line) represent the calculated tentative The error of the estimated coordinate value of , the point on the line 200 (dotted line) represents the final coordinate error value. From the above picture, we can see that as the value of r decreases generally, the point on the line 200 is far from The closer the x-axis is, the smaller the error is, so the following conclusions are obtained:

在噪声大小一定的情况下,r值越小可以得到更准确和稳定的待定节点坐标,但是不是r值越小越好,当r值取得过小时,会出现得不到带定节点的情况,这是因为当r值很小时,允许的偏差值的范围就过小,导致有些误差不大的锚节点也被权给剔除了,所以r的取值要适当。  In the case of a certain noise level, the smaller the r value, the more accurate and stable coordinates of undetermined nodes can be obtained, but the smaller the r value, the better. When the r value is too small, there will be cases where the fixed node cannot be obtained. This is because when the value of r is small, the range of the allowable deviation value is too small, and some anchor nodes with small errors are also eliminated by the weight, so the value of r should be appropriate. the

如图2所示,本发明提供的基于种子节点选择的无线传感器网络定位系统,包括:  As shown in Figure 2, the wireless sensor network positioning system based on seed node selection provided by the present invention includes:

S11:第一计算模块,用于依据待定位节点接收到的无线信号及无线信号衰减模型,获得所述待定位节点与发送所述无线信号的锚节点间的第一距离;  S11: a first calculation module, used to obtain the first distance between the node to be positioned and the anchor node sending the wireless signal according to the wireless signal received by the node to be positioned and the wireless signal attenuation model;

S12:锚节点组合构造模块,用于选择锚节点,并构造含有预设数量的锚节点组合;  S12: An anchor node combination construction module, used to select anchor nodes and construct anchor node combinations with a preset number;

S13:目标锚节点子组合获取模块,用于根据所述锚节点组合构造锚节点子组合,并计算每个锚节点子组合的偏差值的中间值作为此锚节点子组合的代表偏差值,求出最小的代表偏差值和权,且选择代表偏差最小的子组合所求出的坐标作为暂定的估计坐标,计算出每个锚节点的偏差值,使用权为依据判断是否保留已知锚节点的数据,从而获取一个所有锚节点的偏差值在允许范围内的锚节点组成的目标锚节点子组合;  S13: The target anchor node sub-combination acquisition module, which is used to construct the anchor node sub-combination according to the anchor node combination, and calculate the median value of the deviation value of each anchor node sub-combination as the representative deviation value of the anchor node sub-combination, and calculate Find the smallest representative deviation value and weight, and select the coordinates obtained by the subcombination with the smallest representative deviation as the tentative estimated coordinates, calculate the deviation value of each anchor node, and use the weight as a basis to judge whether to retain known anchor nodes data, so as to obtain a target anchor node sub-combination composed of anchor nodes whose deviation value of all anchor nodes is within the allowable range;

S14:第二计算模块,用于根据所述锚节点子组合计算所述待定位节点的最终位置坐标。  S14: A second calculation module, configured to calculate the final position coordinates of the node to be located according to the anchor node subcombination. the

如图3所示,上述的目标锚节点子组合获取模块S13还包括:  As shown in Figure 3, the above target anchor node sub-combination acquisition module S13 also includes:

S131:设置单元,用于设置含有预设数量锚节点的锚节点子组合;  S131: a setting unit, used to set an anchor node sub-combination containing a preset number of anchor nodes;

S132:初始位置坐标计算单元,用于依据所述锚节点的位置坐标及与每个锚节点相对应的第一距离,获得所述待定位节点与所述每个锚节点子组合中各个锚节点相对应的的初始位置坐标;  S132: An initial position coordinate calculation unit, configured to obtain each anchor node in the node to be located and each anchor node sub-combination according to the position coordinates of the anchor node and the first distance corresponding to each anchor node Corresponding initial position coordinates;

S133:第二距离计算单元,用于根据初始位置坐标计算单元得到的位置坐标,计算获取所述待定位节点与各个锚节点的第二距离;  S133: The second distance calculation unit is used to calculate and obtain the second distance between the node to be positioned and each anchor node according to the position coordinates obtained by the initial position coordinate calculation unit;

S134:偏差值中间值获取单元,用于计算每个锚节点子组合所求出的坐标与所述各个锚节点相对应的第一距离、第二距离的偏差值的中间值;  S134: a deviation value intermediate value acquisition unit, which is used to calculate the intermediate value of the deviation value of the first distance and the second distance corresponding to the coordinates obtained by each anchor node sub-combination and each anchor node;

S135:暂定的估计坐标获取单元,选取偏差值的中间值最小的锚节点子组合所求出的坐标作为暂定的估计坐标;  S135: The tentative estimated coordinate acquisition unit selects the coordinate obtained by the anchor node sub-combination with the smallest median value of the deviation value as the tentative estimated coordinate;

S136:最终偏差值获取单元,使用暂定的估计坐标所对应的第二距离,计算出与对应锚节点的第一距离之间的偏差值;  S136: The final deviation value acquisition unit uses the second distance corresponding to the provisional estimated coordinates to calculate the deviation value from the first distance to the corresponding anchor node;

S137:判断单元,用于判断所述每个锚节点偏差值是否在允许范围内。  S137: A judging unit, configured to judge whether the deviation value of each anchor node is within an allowable range. the

本发明实施例的基于种子节点选择的无线传感器网络定位方法及系统,考虑到无线传感器网络中在确定待定位节点位置的过程中包含误差较大的测量数据,因此,在定位过程中,根据锚节点所发射的无线信号计算出所述待定位节点与各个锚节点之间的距离后,分成多个锚节点子组合,进而对各个锚节子组合进行计算,从而筛选出偏差值最小的锚节点子组合,并且能够有效地剔除误差较大的测量数据,进而有效提高对所述待定位节点定位的精确度,而且,所述方法是在原有的无线电网络设备的基础上实现的,并没有在无线传感器节点上增加额外的设备,降低了无线电网络的使用成本。  In the wireless sensor network positioning method and system based on seed node selection in the embodiment of the present invention, it is considered that the process of determining the position of the node to be positioned in the wireless sensor network contains measurement data with large errors. Therefore, in the positioning process, according to the anchor After the wireless signal transmitted by the node calculates the distance between the node to be positioned and each anchor node, it is divided into multiple anchor node sub-combinations, and then each anchor node sub-combination is calculated, so as to screen out the anchor node with the smallest deviation value sub-combination, and can effectively eliminate the measurement data with large errors, thereby effectively improving the positioning accuracy of the node to be positioned. Moreover, the method is implemented on the basis of the original radio network equipment, and is not in the Additional devices are added to the wireless sensor nodes, reducing the cost of using the radio network. the

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。  It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned. the

此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。  In addition, it should be understood that although this specification is described according to implementation modes, not each implementation mode only contains an independent technical solution, and this description in the specification is only for clarity, and those skilled in the art should take the specification as a whole , the technical solutions in the various embodiments can also be properly combined to form other implementations that can be understood by those skilled in the art. the

Claims (6)

1.一种基于种子节点选择的无线传感器网络定位方法,所述无线传感器网络中包括位置已知的用以发送无线信号的锚节点和位置未知的待定位节点,其特征在于:包括:1. A wireless sensor network positioning method based on seed node selection, comprising known anchor nodes for sending wireless signals and unknown nodes to be positioned in the wireless sensor network, characterized in that: comprising: 1)依据待定位节点接收到的无线信号及无线信号衰减模型,获得所述待定位节点与发送所述无线信号的锚节点间的第一距离,所述无线信号包括锚节点的位置坐标及所述无线信号的发射功率;1) According to the wireless signal received by the node to be positioned and the wireless signal attenuation model, the first distance between the node to be positioned and the anchor node sending the wireless signal is obtained, and the wireless signal includes the position coordinates of the anchor node and the The transmission power of the wireless signal; 2)从与所述待定位节点接收到的无线信号相对应的锚节点中,选择预设数量的锚节点以构造预设数量的锚节点组合;2) Selecting a preset number of anchor nodes from the anchor nodes corresponding to the wireless signal received by the node to be positioned to construct a preset number of anchor node combinations; 3)选取锚节点组合中的锚节点子组合,进而对各个锚节子组合进行计算,从而筛选出符合要求的锚节点组成目标锚节点子组;3) Select the anchor node sub-combinations in the anchor node combination, and then calculate each anchor node sub-combination, so as to screen out the anchor nodes that meet the requirements to form the target anchor node sub-group; 4)根据所述目标锚节点子组合中锚节点的位置坐标计算所述待定位节点的最终位置坐标。4) Calculate the final position coordinates of the node to be located according to the position coordinates of the anchor nodes in the target anchor node subgroup. 2.根据权利要求1所述的无线传感器网络定位方法,其特征在于:步骤1)前还包括:控制锚节点向所述待定位节点发送无线信号。2. The wireless sensor network positioning method according to claim 1, characterized in that: before step 1), it further comprises: controlling the anchor node to send a wireless signal to the node to be positioned. 3.根据权利要求1所述的无线传感器网络定位方法,其特征在于:步骤3)具体包括:3. The wireless sensor network positioning method according to claim 1, characterized in that: step 3) specifically includes: 31)当所述锚节点组合中含有N个锚节点,选择所述锚节点组合中每N-k个锚节点设置为一个锚节点子组合,其中k为小于N的预设值,选取M个组合;31) When the anchor node combination contains N anchor nodes, select every N-k anchor nodes in the anchor node combination to set as an anchor node sub-combination, where k is a preset value less than N, and select M combinations; 32)依据所述锚节点的位置坐标及所述锚节点与所述待定位节点的第一距离,获得与所述每个锚节点子组合相对应的所述待定位节点的初始位置坐标,总共有M个;32) According to the position coordinates of the anchor node and the first distance between the anchor node and the node to be located, obtain the initial position coordinates of the node to be located corresponding to each anchor node sub-combination, and a total of There are M; 33)依据每个锚节点子组合中各个锚节点所对应的所述待定位节点的初始位置坐标,计算所述待定位节点与各个锚节点的第二距离;33) Calculate a second distance between the node to be located and each anchor node according to the initial position coordinates of the node to be located corresponding to each anchor node in each anchor node sub-combination; 34)计算与所述每个锚节点子组合中各个锚节点所对应的第一距离与第二距离的偏差值,并取偏差值的中间值作为所述各个锚节点组合的代表偏差值;34) Calculate the deviation value between the first distance and the second distance corresponding to each anchor node in each anchor node sub-combination, and take the median value of the deviation value as the representative deviation value of each anchor node combination; 35)使用所述代表偏差值的最小值求出权,并取代表偏差值最小的锚节点子组合所求出的坐标作为暂定的估计坐标,然后使用此坐标再次求出所述待定节点与所有锚节点的第二距离,且计算出与对应锚节点的第一距离之间的偏差值,通过权来判断每个锚节点所对应的偏差值是否在允许范围之内,若不在,舍去此锚节点的数据,若在,则保留此锚节点数据;35) Use the minimum value of the representative deviation value to obtain the right, and replace the coordinate obtained by the anchor node sub-combination with the smallest representative deviation value as the tentative estimated coordinate, and then use this coordinate to obtain the undetermined node and The second distance of all anchor nodes, and calculate the deviation value between the first distance and the corresponding anchor node, and use the weight to judge whether the deviation value corresponding to each anchor node is within the allowable range, if not, discard The data of this anchor node, if it exists, keep the data of this anchor node; 36)按照所保留的锚节点数量设置一个新的锚节点子组合,并使这个锚节点子组合执行步骤32)。36) Set up a new anchor node sub-combination according to the number of reserved anchor nodes, and make this anchor node sub-combination execute step 32). 4.根据权利要求1所述的无线传感器网络定位方法,其特征在于:所述无线信号衰减模型为:
Figure FDA0000142152070000021
其中,p为相应锚节点所发射无线信号的发射功率,q为待定位节点所接收到的相应锚节点的无线信号功率,d为待定位节点与相应锚节点的第一距离,a为信号衰减因子。
4. The wireless sensor network positioning method according to claim 1, characterized in that: the wireless signal attenuation model is:
Figure FDA0000142152070000021
Among them, p is the transmission power of the wireless signal transmitted by the corresponding anchor node, q is the wireless signal power of the corresponding anchor node received by the node to be located, d is the first distance between the node to be located and the corresponding anchor node, and a is the signal attenuation factor.
5.一种基于种子节点选择的无线传感器网络定位系统,所述无线传感器网络包括位置已知的用以发送无线信号的锚节点和位置未知的待定位节点,其特征在于:包括:5. A wireless sensor network positioning system based on seed node selection, the wireless sensor network includes a known anchor node for sending wireless signals and an unknown node to be positioned, characterized in that: comprising: 第一计算模块,用于依据待定位节点接收到的无线信号及无线信号衰减模型,获得所述待定位节点与发送所述无线信号的锚节点间的第一距离;A first calculation module, configured to obtain a first distance between the node to be positioned and the anchor node sending the wireless signal according to the wireless signal received by the node to be positioned and the wireless signal attenuation model; 锚节点组合构造模块,用于选择锚节点,并构造含有预设数量的锚节点组合;An anchor node combination construction module, used for selecting anchor nodes and constructing anchor node combinations with a preset number; 目标锚节点子组合获取模块,用于根据所述锚节点组合构造锚节点子组合,并计算每个锚节点子组合的偏差值的中间值作为此锚节点子组合的代表偏差值,求出最小的代表偏差值和权,且选择代表偏差最小的子组合所求出的坐标作为暂定的估计坐标,计算出每个锚节点的偏差值,使用权为依据判断是否保留已知锚节点的数据,从而获取一个所有锚节点的偏差值在允许范围内的锚节点组成的目标锚节点子组合;The target anchor node sub-combination acquisition module is used to construct the anchor node sub-combination according to the anchor node combination, and calculate the median value of the deviation value of each anchor node sub-combination as the representative deviation value of the anchor node sub-combination, and find the minimum The representative deviation value and weight of , and select the coordinates obtained by the subcombination with the smallest representative deviation as the tentative estimated coordinates, calculate the deviation value of each anchor node, and use the weight as a basis to judge whether to retain the data of known anchor nodes , so as to obtain a target anchor node sub-combination composed of anchor nodes whose deviation values of all anchor nodes are within the allowable range; 第二计算模块,用于根据所述锚节点子组合计算所述待定位节点的最终位置坐标。The second calculation module is configured to calculate the final position coordinates of the node to be positioned according to the anchor node subcombination. 6.根据权利要求5所述的无线传感器网络定位系统,其特征在于:所述目标锚节点子组合获取模块包括:6. The wireless sensor network positioning system according to claim 5, characterized in that: the sub-combination acquisition module of the target anchor node comprises: 设置单元,用于设置含有预设数量锚节点的锚节点子组合;A setting unit, used to set an anchor node sub-combination containing a preset number of anchor nodes; 初始位置坐标计算单元,用于依据所述锚节点的位置坐标及与每个锚节点相对应的第一距离,获得所述待定位节点与所述每个锚节点子组合中各个锚节点相对应的的初始位置坐标;An initial position coordinate calculation unit, configured to obtain the correspondence between the node to be positioned and each anchor node in each anchor node sub-combination according to the position coordinates of the anchor node and the first distance corresponding to each anchor node The initial position coordinates of ; 第二距离计算单元,用于根据初始位置坐标计算单元得到的位置坐标,计算获取所述待定位节点与各个锚节点的第二距离;The second distance calculation unit is used to calculate and obtain the second distance between the node to be positioned and each anchor node according to the position coordinates obtained by the initial position coordinate calculation unit; 偏差值中间值获取单元,用于计算每个锚节点子组合所求出的坐标与所述各个锚节点相对应的第一距离、第二距离的偏差值的中间值;The deviation value intermediate value acquisition unit is used to calculate the intermediate value of the deviation value of the first distance and the second distance corresponding to the coordinates obtained by each anchor node sub-combination and the respective anchor nodes; 暂定的估计坐标获取单元,选取偏差值的中间值最小的锚节点子组合所求出的坐标作为暂定的估计坐标;The tentative estimated coordinate acquisition unit selects the coordinate obtained by the anchor node sub-combination with the smallest median value of the deviation value as the tentative estimated coordinate; 最终偏差值获取单元,使用暂定的估计坐标所对应的第二距离,计算出与对应锚节点的第一距离之间的偏差值;The final deviation value acquisition unit uses the second distance corresponding to the provisional estimated coordinates to calculate the deviation value from the first distance to the corresponding anchor node; 判断单元,用于判断所述每个锚节点偏差值是否在允许范围内。A judging unit, configured to judge whether the deviation value of each anchor node is within a permissible range.
CN201210061583.XA 2012-03-09 2012-03-09 Wireless sensor network positioning method and system based on seed node selection Expired - Fee Related CN102665272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210061583.XA CN102665272B (en) 2012-03-09 2012-03-09 Wireless sensor network positioning method and system based on seed node selection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210061583.XA CN102665272B (en) 2012-03-09 2012-03-09 Wireless sensor network positioning method and system based on seed node selection

Publications (2)

Publication Number Publication Date
CN102665272A true CN102665272A (en) 2012-09-12
CN102665272B CN102665272B (en) 2015-02-04

Family

ID=46774657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210061583.XA Expired - Fee Related CN102665272B (en) 2012-03-09 2012-03-09 Wireless sensor network positioning method and system based on seed node selection

Country Status (1)

Country Link
CN (1) CN102665272B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108548533A (en) * 2018-04-25 2018-09-18 山东爱泊客智能科技有限公司 A kind of localization method and positioning device of the anchor node positioned in real time for red point
CN110113815A (en) * 2019-04-02 2019-08-09 云南师范大学 A kind of improved wireless sensor network locating method based on IWO
CN110231596A (en) * 2018-03-05 2019-09-13 永恒力股份公司 Method for determining the positioning system of position in cargo logistic facilities and for running the positioning system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004448A (en) * 2007-01-18 2007-07-25 北京航空航天大学 Convex programming positioning method of triangle filtering of wireless sensor network
CN101191832A (en) * 2007-12-11 2008-06-04 宁波中科集成电路设计中心有限公司 Wireless sensor network node position finding process based on range measurement
CN101241177A (en) * 2008-03-11 2008-08-13 北京航空航天大学 A Wireless Sensor Network Positioning System Oriented to Three-Dimensional Space
CN101938832A (en) * 2010-09-15 2011-01-05 中国人民解放军海军航空工程学院 Self-localization method of wireless sensor network nodes based on divide-and-conquer refinement
CN102307388A (en) * 2011-09-09 2012-01-04 苏州大学 Wireless sensor network positioning method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004448A (en) * 2007-01-18 2007-07-25 北京航空航天大学 Convex programming positioning method of triangle filtering of wireless sensor network
CN101191832A (en) * 2007-12-11 2008-06-04 宁波中科集成电路设计中心有限公司 Wireless sensor network node position finding process based on range measurement
CN101241177A (en) * 2008-03-11 2008-08-13 北京航空航天大学 A Wireless Sensor Network Positioning System Oriented to Three-Dimensional Space
CN101938832A (en) * 2010-09-15 2011-01-05 中国人民解放军海军航空工程学院 Self-localization method of wireless sensor network nodes based on divide-and-conquer refinement
CN102307388A (en) * 2011-09-09 2012-01-04 苏州大学 Wireless sensor network positioning method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231596A (en) * 2018-03-05 2019-09-13 永恒力股份公司 Method for determining the positioning system of position in cargo logistic facilities and for running the positioning system
CN110231596B (en) * 2018-03-05 2023-10-03 永恒力股份公司 Positioning system for determining position in cargo logistics facilities and method for operating the positioning system
CN108548533A (en) * 2018-04-25 2018-09-18 山东爱泊客智能科技有限公司 A kind of localization method and positioning device of the anchor node positioned in real time for red point
CN110113815A (en) * 2019-04-02 2019-08-09 云南师范大学 A kind of improved wireless sensor network locating method based on IWO
CN110113815B (en) * 2019-04-02 2021-10-08 云南师范大学 An Improved Wireless Sensor Network Location Method Based on IWO

Also Published As

Publication number Publication date
CN102665272B (en) 2015-02-04

Similar Documents

Publication Publication Date Title
Xiao et al. An RSSI based DV-hop algorithm for wireless sensor networks
Shu et al. Gradient-based fingerprinting for indoor localization and tracking
Zhao et al. Localization of wireless sensor networks in the wild: Pursuit of ranging quality
CN105611623B (en) The localization method and positioning device of mobile terminal
CN105137390B (en) A kind of indoor orientation method based on adjustable transmission power AP
KR102601423B1 (en) Method and system for measuring the location of a terminal in a wireless communication system
CN105611568B (en) A method of LTE terminal position is accurately positioned based on MRO measurement report
CN102395200B (en) Node positioning method in wireless sensor network and apparatus thereof
CN102685887B (en) Method, device and system for positioning node in wireless sensor network
CN105430745A (en) Wireless network positioning method based on RSSI (Received Signal Strength Indicator)
CN109490826B (en) A method of ranging and position positioning based on radio wave field strength RSSI
CN105093177A (en) RSSI positioning method based on hopping technology
CN106412828A (en) Approximate point-in-triangulation test (APIT)-based wireless sensor network node positioning method
CN102883428A (en) ZigBee wireless sensor network-based node positioning method
CN103607770B (en) High precision distance estimation in a kind of wireless sensor network location
CN102665272B (en) Wireless sensor network positioning method and system based on seed node selection
CN103630876A (en) RSSI (received signal strength indicator) based ZigBee node positioning method
CN104159295A (en) Node positioning method based on filtering algorithm in wireless sensor network
CN102291672B (en) Anchor-free combat casualty positioning method based on wireless sensor network
CN104955148A (en) Positioning method of wireless sensor network using symmetrical propagation of electromagnetic wave
Cheng et al. MIL: A mobile indoor localization scheme based on matrix completion
CN103096468B (en) A kind of wireless sensor network node positioning method based on node density
Chen et al. A novel three-dimensional localization algorithm based on DV-HOP
CN109982368A (en) The azimuthal check method of cell, device, equipment and medium
EP2887748B1 (en) Method for determining indoor locations of mobile receiver units

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150204

Termination date: 20180309