[go: up one dir, main page]

CN103957031B - Frequency hopping based on linear wireless sensor network and the implementation method of positioning function - Google Patents

Frequency hopping based on linear wireless sensor network and the implementation method of positioning function Download PDF

Info

Publication number
CN103957031B
CN103957031B CN201410195595.0A CN201410195595A CN103957031B CN 103957031 B CN103957031 B CN 103957031B CN 201410195595 A CN201410195595 A CN 201410195595A CN 103957031 B CN103957031 B CN 103957031B
Authority
CN
China
Prior art keywords
frequency hopping
network
node
network node
channel
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.)
Expired - Fee Related
Application number
CN201410195595.0A
Other languages
Chinese (zh)
Other versions
CN103957031A (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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201410195595.0A priority Critical patent/CN103957031B/en
Publication of CN103957031A publication Critical patent/CN103957031A/en
Application granted granted Critical
Publication of CN103957031B publication Critical patent/CN103957031B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明设计了一种基于线形无线传感器网络的跳频与定位功能的实现方法,可以进一步增强线形无线传感器网络的抗干扰性能和可读性能。跳频包括三种方式,分别为自适应跳频、主动跳频和被动跳频,自适应跳频可以使整个无线网络更加智能的分析信道干扰并更改当前的通信信道,主动跳频可以保证当前网络可以由管理者自行更改当前网络的通信信道,被动跳频方式用于网络中断时由无线网络节点自行查询当前可用信道并进行更改,增强网络的可靠性,具体使用过程中可以根据不同的实际情况采用不同的跳频方式。定位功能依据电磁波在自由空间内的损耗公式以及损耗功率计算得出接收与发送方的距离来进行定位。

The invention designs a method for realizing the frequency hopping and positioning functions based on the linear wireless sensor network, which can further enhance the anti-interference performance and readability of the linear wireless sensor network. Frequency hopping includes three methods, namely adaptive frequency hopping, active frequency hopping and passive frequency hopping. Adaptive frequency hopping can make the entire wireless network analyze channel interference more intelligently and change the current communication channel. Active frequency hopping can ensure the current The network can change the communication channel of the current network by the administrator. The passive frequency hopping method is used for the wireless network node to query the current available channel and change it when the network is interrupted, so as to enhance the reliability of the network. The situation adopts different frequency hopping methods. The positioning function is based on the loss formula of electromagnetic waves in free space and the loss power to calculate the distance between the receiver and the sender for positioning.

Description

基于线形无线传感器网络的跳频与定位功能的实现方法Implementation method of frequency hopping and positioning function based on linear wireless sensor network

技术领域 technical field

本发明设计了一种可以在线形无线传感器网络中实现跳频与定位功能的方法,这一方法能够增强整个网络的抗干扰性能,保证网络的稳定可靠通信,便于控制方快速掌握无线传感器结点的地理拓扑结构。 The present invention designs a method that can realize frequency hopping and positioning functions in a linear wireless sensor network. This method can enhance the anti-interference performance of the entire network, ensure stable and reliable communication of the network, and facilitate the controller to quickly grasp the wireless sensor nodes. geographical topology.

技术背景 technical background

在我国经济高速发展的过程中,各级公路、通信线路、电力线路、石油天然气管线等关乎国家经济命脉的运输线通常需要及时掌握各部分的运行状况的信息,而这些线路通常具有地理位置偏僻,拓扑结构呈现线形,分布距离广,工作人员难以第一时间得知事故的发生位置等特点,因此线形无线传感器网络可以使用在这些线路管道中使管理者能够快速及时的掌握整个管线的运行情况。跳频功能的加入可以保证整个无线传感器网络的抗干扰性能,定位功能可以便于管理者快速了解网络中无线结点的分布情况。 In the process of rapid economic development in my country, transportation lines related to the lifeline of the country's economy, such as highways at all levels, communication lines, power lines, and oil and gas pipelines, usually need to grasp information about the operating conditions of each part in a timely manner, and these lines usually have remote locations. , the topological structure is linear, the distribution distance is wide, and it is difficult for the staff to know the location of the accident at the first time. Therefore, the linear wireless sensor network can be used in these pipelines so that the managers can quickly and timely grasp the operation of the entire pipeline. . The addition of the frequency hopping function can ensure the anti-interference performance of the entire wireless sensor network, and the positioning function can facilitate the administrator to quickly understand the distribution of wireless nodes in the network.

发明内容 Contents of the invention

本发明设计了一种实现无线传感器网络通信协议的跳频与定位功能的方法,跳频方式主要包括自适应跳频、主动调频和被动调频三种。 The invention designs a method for realizing the frequency hopping and positioning functions of the wireless sensor network communication protocol, and the frequency hopping modes mainly include self-adaptive frequency hopping, active frequency modulation and passive frequency modulation.

线形无线传感器网络由物理地址依次为1-N的呈线形分布的网络节点组成,其中,N为自然数。物理地址为1的网络节点称为控制节点,其余节点称为数据采集节点,节点之间的距离随着物理地址的增大而增大,根据需要可增加或减少网络节点的数量。 The linear wireless sensor network is composed of linearly distributed network nodes whose physical addresses are sequentially from 1 to N, where N is a natural number. The network node with a physical address of 1 is called a control node, and the rest of the nodes are called data acquisition nodes. The distance between nodes increases as the physical address increases, and the number of network nodes can be increased or decreased as needed.

线形无线传感器网络只允许相邻节点之间的通信,其中相邻节点为物理地址相邻的节点,跨越多个网络节点的通信必须有相邻网络节点接力完成。 Linear wireless sensor networks only allow communication between adjacent nodes, where adjacent nodes are nodes with adjacent physical addresses, and communication across multiple network nodes must be completed by adjacent network nodes.

整个网络共有M个信道,当采用自适应跳频时,每个网络节点定时检测当前网络信道下干扰信号的强度,当某一网络节点见到到干扰信号的强度大于某阈值时向控制节点发送跳频请求数据包,其中,阈值大小可根据实际环境进行 设置。控制节点累积收到3个或3个以上跳频请求数据包时,表示当前网络信道内干扰严重,需要进行跳频。控制节点发送跳频遍历数据包,目的物理地址为N,物理地址由1至N的后向传递通信中的每个网络节点在收到跳频遍历数据包后执行如下操作:首先依次检测M个信道的干扰信号强度,然后将这些强度值与数据包对应信道内的干扰强度值累加,最后将此数据包后向传递,直至威力地址为N的网络节点收到并执行了以上步骤后,通过比较各个信道的干扰值并找到干扰值最小的信道X,组件跳频执行数据包并将信道X写入数据包内,进行物理地址由N至1的前向传递通信过程,该过程中每个网络节点收到跳频执行数据包后进行如下操作:先将跳频执行数据包发送给前向传递的下一个网络节点,确定发送成功后将自己网络节点的通信信道改为X信道,直至控制节点收到跳频执行数据包并将自己的信道改为X信道后整个网络的自适应跳频工作完成。 There are M channels in the entire network. When adaptive frequency hopping is used, each network node regularly detects the strength of the interference signal under the current network channel. When a network node sees that the strength of the interference signal is greater than a certain threshold, it sends a message to the control node. The frequency hopping request data packet, wherein the threshold value can be set according to the actual environment. When the control node accumulatively receives 3 or more frequency hopping request data packets, it indicates that the interference in the current network channel is serious and frequency hopping is required. The control node sends a frequency hopping traversal data packet, the destination physical address is N, and each network node in the backward transfer communication with the physical address ranging from 1 to N performs the following operations after receiving the frequency hopping traversal data packet: first, sequentially detect M The interference signal strength of the channel, and then these strength values are accumulated with the interference strength value in the channel corresponding to the data packet, and finally the data packet is passed backward until the network node with the power address N receives and executes the above steps, through Compare the interference value of each channel and find the channel X with the smallest interference value, the component frequency hopping executes the data packet and writes channel X into the data packet, and performs the forward transfer communication process with the physical address from N to 1. In this process, each After the network node receives the frequency hopping execution data packet, it performs the following operations: first, send the frequency hopping execution data packet to the next network node forwarded, and after confirming that the transmission is successful, change the communication channel of its own network node to the X channel until the control After the node receives the frequency hopping execution data packet and changes its own channel to X channel, the adaptive frequency hopping work of the whole network is completed.

当采用主动调频方式时,控制节点在收到计算机发送来的主动跳频数据包后进行后向传递,目的物理地址为N,后向传递中的每个节点收到主动跳频数据包后直接进行后向转发,直至物理地址为N的网络节点收到主动跳频数据包后提取信道Y,组建跳频执行数据包,将信道值Y写入数据包后进行前向传递,确认发送成功后将当前通信信道改为Y,前向传递过程中的每个网络节点收到跳频执行数据包后先进行前向传递,确认发送成功后将通信信道改为Y,直至控制节点收到跳频执行数据包后将通信信道改为Y,至此整个全网主动跳频完成。 When the active frequency modulation method is adopted, the control node performs backward transmission after receiving the active frequency hopping data packet sent by the computer, and the destination physical address is N, and each node in the backward transmission directly receives the active frequency hopping data packet Carry out backward forwarding until the network node with the physical address N receives the active frequency hopping data packet, extracts the channel Y, constructs the frequency hopping execution data packet, writes the channel value Y into the data packet and then forwards it, and confirms that the transmission is successful Change the current communication channel to Y, and each network node in the forward transmission process will perform forward transmission after receiving the frequency hopping execution data packet. After confirming that the transmission is successful, change the communication channel to Y until the control node receives the frequency hopping execution data packet. After executing the data packet, change the communication channel to Y, and the active frequency hopping of the entire network is completed.

当采用被动跳频方式时,节点每隔一定时间与上一个节点发送探请求ACK数据包,若无法收到ACK,表示节点无法与上一个节点正常通信,需要进行被动跳频,现将本网络节点的通信信道改为1,组建请求ACK数据包,目的地址为本网络节点物理地址-1,然后进行转发,如果没有收到ACK,则将通信信道+1后再次转发请求ACK数据包,直至收到接收方的ACK为止,至此被动跳频 完成。 When passive frequency hopping is used, the node sends a probe request ACK packet to the previous node at regular intervals. If the ACK cannot be received, it means that the node cannot communicate with the previous node normally and passive frequency hopping is required. Now the network The communication channel of the node is changed to 1, and the request ACK packet is formed, the destination address is the physical address of the network node -1, and then forwarded. If no ACK is received, the communication channel is +1 and the request ACK packet is forwarded again until Until the receiver's ACK is received, the passive frequency hopping is completed.

本发明设计了一种网络节点的距离定位功能的实现方法,由于网络拓扑结构为线形,因此任意两个网络节点之间的距离等于其中两两网络节点之间的距离之和。计算相邻节点之间距离的原理是根据接收方根据发送方发送来的数据包内的发送功率与接收功率计算功率损耗,利用电磁波在自由空间内的损耗公式: The invention designs a method for realizing the distance positioning function of network nodes. Since the network topology is linear, the distance between any two network nodes is equal to the sum of the distances between any two network nodes. The principle of calculating the distance between adjacent nodes is to calculate the power loss according to the transmit power and receive power in the data packet sent by the sender, and use the loss formula of electromagnetic waves in free space:

Los(dBm)=32.44+20lgd(Km)+20lgf(MHz) Los(dBm)=32.44+20lgd(Km)+20lgf(MHz)

在已知发送频率f的情况下根据功率损耗计算出相邻网络节点之间的距离d。 Given the known transmission frequency f, the distance d between adjacent network nodes is calculated from the power loss.

当控制节点收到计算机发送来的请求网络节点距离信息指令后,组件请求位置数据包,目的地址为N,在数据包内初始化N个字节的空间来存放相应两个节点之间的距离信息,后向传递中每个节点收到请求位置数据包后根据发送功率和接收功率计算出距离信息后写入到请求位置数据包的相应位置,并继续后向传递,当物理地址为N的网络节点收到请求位置数据包后再写入其相应距离信息后回传并进行前向传递,前向传递中每个网络节点收到请求位置数据包,再次计算距离信息并与初次的距离信息进行平均值计算后覆盖到相应位置,直至控制节点再次收到请求位置数据包并完成上述操作后将距离信息发送给计算机,至此获得整个网络的距离信息。 When the control node receives the command from the computer to request the distance information of the network node, the component requests the location data packet, the destination address is N, and initializes the space of N bytes in the data packet to store the distance information between the corresponding two nodes , in the backward transfer, each node calculates the distance information according to the sending power and receiving power after receiving the request position data packet, writes it into the corresponding position of the request position data packet, and continues the backward transfer, when the physical address is N network After the node receives the requested location data packet, it writes its corresponding distance information and transmits it back and forwards it. In the forward transmission, each network node receives the requested location data packet, calculates the distance information again and compares it with the initial distance information. After the average value is calculated, it is covered to the corresponding position until the control node receives the request position data packet again and completes the above operations and then sends the distance information to the computer, thus obtaining the distance information of the entire network.

附图说明 Description of drawings

图1是整个线形无线传感器网络的拓扑结构图 Figure 1 is a topology diagram of the entire linear wireless sensor network

图2是控制节点自适应跳频流程图 Figure 2 is the control node adaptive frequency hopping flow chart

图3是数据采集节点自适应跳频流程图 Figure 3 is a flowchart of data acquisition node adaptive frequency hopping

图4是控制节点全网主动跳频流程图 Figure 4 is a flow chart of the active frequency hopping of the control node in the whole network

图5是数据采集节点全网主动跳频流程图 Figure 5 is a flow chart of active frequency hopping of data collection nodes in the whole network

图6是网络节点被动跳频流程图 Figure 6 is a flowchart of passive frequency hopping of network nodes

图7是网络节点请求位置信息示意图 Figure 7 is a schematic diagram of a network node requesting location information

具体实施方式 detailed description

本发明是基于线形无线传感器网络通信协议设计实现的,此线形无线传感器网络是采用四层协议架构,分别为物理射频层,媒体接入控制层,网络层和用户应用层,本发明开发工作主要在网络层和用户应用层进行。 The present invention is based on the design and implementation of the linear wireless sensor network communication protocol. This linear wireless sensor network adopts a four-layer protocol architecture, which is respectively the physical radio frequency layer, the media access control layer, the network layer and the user application layer. The development work of the present invention is mainly It is carried out at the network layer and user application layer.

本发明适用的网络拓扑结构为线形(参见图1),物理地址由0x01至0xN,其中N的大小可以根据具体网络的大小自行设置,物理地址为0x01的网络节点为控制节点,可以与计算机进行信息交互工作,是主动发起网络控制信息的起始节点,也是整个无线传感器网络的核心,其余网络节点为数据采集节点,负责线形网络中数据的采集工作。所有网络节点的物理地址在使用前已经写入芯片寄存器内,在布放时按照物理地址由小到大依次布放。 The applicable network topology of the present invention is linear (see Fig. 1), and the physical address is from 0x01 to 0xN, wherein the size of N can be set by itself according to the size of the specific network, and the network node whose physical address is 0x01 is a control node, which can communicate with the computer Information interaction work is the initial node that actively initiates network control information, and is also the core of the entire wireless sensor network. The other network nodes are data collection nodes, responsible for data collection in the linear network. The physical addresses of all network nodes have been written into the chip registers before use, and are deployed in order of physical addresses from small to large during deployment.

应用层与网络层的交互通过数据包内的端口号,以下简称为PORT。接收方收到数据包后通过分析数据包的PORT来完成相应的用户应用层功能函数。 The interaction between the application layer and the network layer is through the port number in the data packet, hereinafter referred to as PORT. After receiving the data packet, the receiver completes the corresponding user application layer function by analyzing the PORT of the data packet.

本发明中自适应跳频的具体实施方式为:(参考图2和图3)设置发起自适应跳频的阈值P,P值的大小可以根据地理环境的具体情况与对通信干扰的容忍度自行设置,网络中每个节点每隔一段时间便通过寄存器内的接收信号强度值,以下简称RSSI,若RSSI大于P,则组件跳频请求数据包,端口号为0xf0,目的地址为0x01,然后进行转发,前向传递中每个节点收到端口号为0xf0的数据包时只进行前向转发,当控制节点收到此数据包后通过分析端口号0xf0得知有网络节点请求跳频,但只有当累积收到此端口号的数据包3次时才开始进行全网跳频,这是为了避免当一个瞬时干扰发生时便立即进行全网跳频容易造成网络资源的浪费,当累积跳频请求数据包达到3个时,控制节点组建全网跳频数据包,端口号为0xf1,将各个信道内的RSSI写入数据包,目的地址为0xN,进行后向转发。后向传递中每个网络节点收到端口号为0xf1的数据包后将各个信道内RSSI累加在数据包对应部分后进行后向转发,直至物理地址为0xN的网络节点 将各个信道内的RSSI值累加完成后比较得出RSSI最小的信道X,组建跳频执行数据包,端口号为0xf2,目的地址为0x01,进行前向转发。前向传递中的每个网络节点收到端口号为0xf2的数据包后先前向转发,确认收到前向相邻节点的ACK后将当前通信信道改为X。当控制节点收到端口号为0xf2的数据包并将当前通信信道改为X后整个自适应跳频工作完成。 The specific implementation manner of adaptive frequency hopping among the present invention is: (refer to Fig. 2 and Fig. 3) set the threshold value P that initiates adaptive frequency hopping, the size of P value can be voluntarily according to the specific situation of geographical environment and the tolerance degree to communication interference Setting, each node in the network will pass the received signal strength value in the register every once in a while, hereinafter referred to as RSSI, if the RSSI is greater than P, the component frequency hopping request data packet, the port number is 0xf0, the destination address is 0x01, and then proceed Forwarding, each node in the forward transmission only performs forward forwarding when it receives the data packet with the port number 0xf0. The frequency hopping of the whole network is started when the data packets of this port number have been received 3 times in total. When the number of data packets reaches 3, the control node constructs the whole network frequency hopping data packet, the port number is 0xf1, writes the RSSI in each channel into the data packet, and the destination address is 0xN, and forwards it backward. In the backward transmission, each network node receives the data packet with the port number 0xf1, and then accumulates the RSSI in each channel to the corresponding part of the data packet and then forwards it backwards until the network node with the physical address 0xN transfers the RSSI value in each channel After the accumulation is completed, the channel X with the smallest RSSI is obtained by comparison, and a frequency hopping execution data packet is formed, the port number is 0xf2, and the destination address is 0x01, and forwarded. Each network node in the forward transfer forwards forward after receiving the data packet whose port number is 0xf2, and changes the current communication channel to X after confirming receipt of the ACK from the forward adjacent node. When the control node receives the data packet with port number 0xf2 and changes the current communication channel to X, the whole adaptive frequency hopping work is completed.

本发明中主动跳频的具体实施方式为:(参考图4和图5)当网络管理者发现网络中存在较为严重的干扰时可以通过计算机向控制节点发起主动跳频指令,制定跳频到信道Y,控制节点收到指令后建立主动跳频数据包,信道Y写入数据包,端口号为0xf3,目的地址为0xN,进行后向转发。后向传递中的网络节点收到端口号为0xf3的数据包后不进行任何处理只进行后向转发,直至物理地址为0xN的网络节点收到主动跳频数据包后组建跳频执行数据包,信道Y写入数据包,端口号为0xf2,目的地址为0x01,进行前向转发。前向传递中的每个网络节点收到端口号为0xf2的数据包后先前向转发,确认收到前向相邻节点的ACK后将当前通信信道改为Y。当控制节点收到端口号为0xf2的数据包并将当前通信信道改为Y后整个主动跳频工作完成。 The specific implementation of active frequency hopping in the present invention is: (refer to Figure 4 and Figure 5) when the network manager finds that there is relatively serious interference in the network, the computer can initiate active frequency hopping instructions to the control node, and formulate frequency hopping to channel Y, the control node establishes an active frequency hopping data packet after receiving the instruction, the channel Y writes the data packet, the port number is 0xf3, the destination address is 0xN, and forwards backward. After the network node in the backward transmission receives the data packet with port number 0xf3, it does not perform any processing and only forwards it backwards until the network node with the physical address of 0xN receives the active frequency hopping data packet and then constructs the frequency hopping execution data packet. Channel Y writes data packets, the port number is 0xf2, and the destination address is 0x01, which is forwarded. Each network node in the forward transfer forwards forward after receiving the data packet whose port number is 0xf2, and changes the current communication channel to Y after confirming receipt of the ACK from the forward adjacent node. When the control node receives the data packet with port number 0xf2 and changes the current communication channel to Y, the whole active frequency hopping work is completed.

本发明中被动跳频的具体实施方式为:(参考图6)网络节点每个一段时间向前向相邻节点发送请求ACK数据包,当无法收到ACK时表示与相邻接点工作在不同的通信信道上,需要进行被动跳频来和相邻节点信道同步,首先将当前信道设置为1,组建请求ACK数据包,进行前向转发,若还是无法收到ACK,将信道+1,重复以上的步骤直至收到ACK时表示当前通信信道与前向相邻节点的通信信道同步,被动跳频工作完成。 The specific embodiment of passive frequency hopping among the present invention is: (referring to Fig. 6) network node sends request ACK data packet forward to adjacent node every period of time, when can't receive ACK, represent and adjacent node work in different On the communication channel, passive frequency hopping is required to synchronize with the channel of the adjacent node. First, set the current channel to 1, form a request ACK packet, and forward it forward. If the ACK still cannot be received, increase the channel by 1, and repeat the above The steps until the ACK is received indicate that the current communication channel is synchronized with the communication channel of the forward adjacent node, and the passive frequency hopping work is completed.

本发明定位功能的具体实施方式为:(参考图7)由于整个网络的拓扑结构为线形结构,要获得任意两个网络节点之间的距离只需获得其之间各个相邻网络节点之间的距离信息后即可通过相加取得。当管理人员需要获得整个网络的距离位置信息时通过计算机向控制节点发送请求位置指令,控制节点收到指令 后组建起请求位置数据包,端口号为0xf4,目的地址为0xN,写入发送功率,并在数据包的数据部分预留大小为N字节的距离信息空间,用来存放距离信息,进行后向转发。后向传递中的网络节点收到端口号为0xf4,目的地址为0xN的数据包后根据发送功率与接收功率算出功率损耗,依据电磁波在自由空间的损耗公式: The specific implementation manner of the positioning function of the present invention is: (referring to Fig. 7) because the topological structure of the whole network is a linear structure, to obtain the distance between any two network nodes only need to obtain the distance between each adjacent network node therebetween After the distance information can be obtained by adding. When the manager needs to obtain the distance location information of the entire network, the computer sends a request location instruction to the control node, and the control node constructs a request location data packet after receiving the instruction, the port number is 0xf4, the destination address is 0xN, and the transmission power is written. A distance information space with a size of N bytes is reserved in the data part of the data packet to store the distance information for backward forwarding. After receiving the data packet with port number 0xf4 and destination address 0xN, the network node in the backward transmission calculates the power loss according to the sending power and receiving power, according to the loss formula of electromagnetic waves in free space:

Los(dBm)=32.44+20lgd(Km)+20lgf(MHz) Los(dBm)=32.44+20lgd(Km)+20lgf(MHz)

无线传感器网络通信协议采用433MHZ的频率,由功率损耗即可计算出相邻节点的距离d,写入到相应数据包内相应字段的距离信息空间内并进行后向转发,当物理地址为0xN的网络节点收到端口号为0xf4的数据包后完成上述操作后将数据包内的目的地址改为0x01并进行前向转发,前向传递中的网络节点收到端口号为0xf4,目的地址为0x01的数据包后将计算得出的距离d后与相应位置上的距离信息相加后除以2得到平均值再写入相应字节内,视为最终交付给控制节点的距离信息,并进行前向转发。控制节点收到端口号为0xf4并且目的地址为0x01的数据包后先进行上述操作,然后将数据包内N个字节的距离信息发送给计算机,至此管理者即可通过控制节点发来的距离信息了解整个无线传感器网络的地理位置分布情况。 The wireless sensor network communication protocol uses a frequency of 433MHZ. The distance d of adjacent nodes can be calculated from the power loss, and written into the distance information space of the corresponding field in the corresponding data packet and forwarded backward. When the physical address is 0xN After the network node receives the data packet with the port number 0xf4 and completes the above operations, it changes the destination address in the data packet to 0x01 and forwards it forward. The network node in the forward transmission receives the port number 0xf4 and the destination address is 0x01 After the data packet, add the calculated distance d to the distance information at the corresponding position, divide it by 2 to get the average value, and then write it into the corresponding byte, which will be regarded as the distance information finally delivered to the control node, and the previous to forward. After the control node receives the data packet with the port number 0xf4 and the destination address 0x01, it first performs the above operations, and then sends the distance information of N bytes in the data packet to the computer, so that the administrator can use the distance information sent by the control node information to understand the geographical distribution of the entire wireless sensor network.

Claims (1)

1. frequency hopping based on linear wireless sensor network and the implementation method of positioning function, it is characterised in that:
1) linear wireless sensor network is made up of the wireless network node of N number of linear array, and physical address is followed successively by 1,2,3...N, wherein N is natural number, physical address be 1 wireless network node become main controlled node, its Remaining wireless network node becomes data acquisition node;
2) radio communication is only limitted between the wireless network node of contiguous physical address carry out, non-adjacent physical address Communication between wireless network node must be completed by the wireless network node relay of contiguous physical address;
3) implementation method of frequency hopping function based on linear wireless sensor network, can strengthen linear wireless senser The interference free performance of network, adapts to communication environment complicated and changeable, and frequency hopping function is realized by three kinds of modes, Including AFH, actively frequency hopping and passive frequency hopping, different frequency hopping sides can be selected according to actual environment Formula;
A) AFH: wireless network node is in an idle state every the interference of surrounding of detection in 1 second Value, sends request frequency-hopped data bag when interference value is more than the threshold value arranged to main controlled node, and main controlled node is first Secondary receiving asks beginning timing after frequency-hopped data bag, and the request frequency-hopped data bag that in 10s, accumulation receives is more than 3 Time send the whole network frequency-hopped data bag, rear in communication process, wireless network to linear wireless sensor network The interference value of all channels is write the whole network frequency-hopped data bag by node, wherein, backward incremental for physical address, Linear wireless sensor network has a M channel, and respectively 1,2,3...M, physical address is the wireless network of N Network node obtains, by comparing, the channel X that interference value is minimum, and write frequency hopping performs packet and carries out forward direction and lead to Letter, wherein, X is natural number, and forward communications is that physical address successively decreases, the wireless network node in forward communications Present channel is skipped to channel X;
B) actively frequency hopping: network manager sends actively frequency hopping instruction to main controlled node, indicates linear wireless senser Network frequency hopping is to channel X, and main controlled node is by channel X write actively frequency-hopped data bag and carries out backward communication, thing Manage after the wireless network node that address is N receives active frequency-hopped data bag and carry out forward communications, in forward communications Wireless network node present channel is skipped to channel X;
C) passive frequency hopping: send request ACK to the wireless network node that forward direction is adjacent every 1 minute wireless network node Packet, retransmits this packet in 5 seconds after not receiving ACK, should after not receiving ACK for continuous 3 times Wireless network node performs passive frequency hopping, and the channel of wireless network node is switched on M execution successively by 1 State process, after a certain channel receives ACK, stop passive frequency hopping;
4) realization of positioning function based on linear wireless sensor network, can make network manager quickly grasp nothing The location distribution situation of line network node, it is characterised in that wireless network node is according to receiving power and sending out Power is sent to draw packet power attenuation in communication process, and according to electromagnetic wave merit in free space Rate loss formula Los (dBm)=32.44+20lgd (Km)+20lgf (MHz) draws range information, and in formula, Los is Electromagnetic wave in the loss of free space, its unit be decibel (dBm), d be electromagnetic transmission distance, its Unit be km (Km), f be wave frequency, its unit is megahertz (MHz).
CN201410195595.0A 2014-05-09 2014-05-09 Frequency hopping based on linear wireless sensor network and the implementation method of positioning function Expired - Fee Related CN103957031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410195595.0A CN103957031B (en) 2014-05-09 2014-05-09 Frequency hopping based on linear wireless sensor network and the implementation method of positioning function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410195595.0A CN103957031B (en) 2014-05-09 2014-05-09 Frequency hopping based on linear wireless sensor network and the implementation method of positioning function

Publications (2)

Publication Number Publication Date
CN103957031A CN103957031A (en) 2014-07-30
CN103957031B true CN103957031B (en) 2016-08-17

Family

ID=51334270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410195595.0A Expired - Fee Related CN103957031B (en) 2014-05-09 2014-05-09 Frequency hopping based on linear wireless sensor network and the implementation method of positioning function

Country Status (1)

Country Link
CN (1) CN103957031B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016082223A1 (en) * 2014-11-28 2016-06-02 华为技术有限公司 Method and device for obtaining d2dtransmission distance
CN104617982B (en) * 2015-01-30 2017-01-11 深圳博芯科技股份有限公司 Passive frequency hopping method and device
CN113765540B (en) * 2021-08-31 2022-09-02 北京航空航天大学 Ad hoc network communication method based on autonomous frequency hopping of unmanned aerial vehicle, unmanned aerial vehicle and medium
CN114222269A (en) * 2021-11-30 2022-03-22 深圳市领创星通科技有限公司 A method for enhancing the reliability of multi-node transmission

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750523A (en) * 2005-10-21 2006-03-22 西安电子科技大学 Channel Quality Estimation Method for Continuous Phase Modulation Adaptive Frequency Hopping System
CN102122973A (en) * 2010-01-08 2011-07-13 中国科学院沈阳自动化研究所 Clustering-wireless-sensor-network-orientated two-stage adaptive frequency-hopping method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110116287A1 (en) * 2008-08-05 2011-05-19 System General Corp. Switching controller having switching frequency hopping for power converter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750523A (en) * 2005-10-21 2006-03-22 西安电子科技大学 Channel Quality Estimation Method for Continuous Phase Modulation Adaptive Frequency Hopping System
CN102122973A (en) * 2010-01-08 2011-07-13 中国科学院沈阳自动化研究所 Clustering-wireless-sensor-network-orientated two-stage adaptive frequency-hopping method

Also Published As

Publication number Publication date
CN103957031A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103957031B (en) Frequency hopping based on linear wireless sensor network and the implementation method of positioning function
CN102355406B (en) Adaptive data distribution method based on node density distribution in VANET
CN109618383B (en) Robust opportunistic routing protocol for ambient backscatter wireless sensor networks
Abane et al. A lightweight forwarding strategy for named data networking in low-end IoT
KR20140123121A (en) Method for data transmission in multi-hop network and apparatus therefor
CN104080196A (en) Ultra-short wave remote data transmission system of hybrid topology network and transmission method thereof
Lima et al. Water ping: ICMP for the internet of underwater things
CN102695204A (en) Business control method used in industrial wireless network, and system thereof
Shi et al. SARSA-based delay-aware route selection for SDN-enabled wireless-PLC power distribution IoT
Zheng et al. A survey on data dissemination in wireless sensor networks
CN106603658A (en) A method and device for data transmission of Internet of Vehicles based on software-defined network
Cha et al. Data delivery scheme for intermittently connected mobile sensor networks
Sokullu et al. Investigating energy efficiency and timeliness for linear wireless sensor networks
CN103338472B (en) A kind of wireless network links quality estimation method
Fardin et al. Enabling edge computing over lorawan: A device-gateway coordination protocol
CN103249064B (en) A kind of radio sensor network data collection method and system
CN113923743A (en) Routing method, device, terminal and storage medium for electric power underground pipe gallery
JP2021520725A (en) Transmission delay measurement
Hung et al. A moving direction proposal to save energy consumption for mobile sink in wireless sensor network
CN104703296A (en) Link dormancy method for wireless communication multi-hop network link and tree topology structure
KR20150111732A (en) Apparatus and methdo for transfering data using concurrent transmission
Saginbekov et al. Efficient code dissemination in wireless sensor networks
Merzoug et al. Efficient information gathering from large wireless sensor networks
CN105281832B (en) Neighbor discovering method in a kind of ultraviolet optical-fiber network
CN103648138B (en) A kind of WSN chance method for routing variable based on node speed

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

Granted publication date: 20160817

CF01 Termination of patent right due to non-payment of annual fee