Disclosure of Invention
The invention aims to provide an interference channel elimination and frequency point distribution method based on a narrowband power internet of things, which considers the condition that the channel interference conditions around different nodes and available frequency spectrum resources are different, eliminates the interference channel, can effectively reduce the subsequent algorithm calculated amount and frequency point testing time, can select the optimal available channel according to the specific conditions of each node, and solves the problem that no available frequency spectrum screening and distribution method exists in the field of narrowband power internet of things.
In order to achieve the purpose, the invention provides the following technical scheme: an interference channel elimination and frequency point distribution method based on a narrowband power Internet of things comprises the following steps:
(1) testing frequency points: sequentially testing frequency points between the access node and the sink node according to the existing frequency point list;
(2) and (3) calculating the signal intensity: the main node sends a test packet lasting for one minute, and counts the packet loss rate and calculates the average signal intensity according to the packet return sequence number;
(3) and (3) generating a quality table: evaluating the communication quality of the frequency point between two nodes according to the parameter packet loss rate and the signal strength and generating a frequency point quality table;
(4) and updating a quality table: removing interference channels according to the communication quality and updating a frequency point quality table;
(5) and (3) repeating feedback: iterating the process in the multi-hop topology;
(6) frequency point allocation: and preferentially distributing the available frequency points according to the frequency point quality table.
Preferably, in the step (1), the frequency point test is started by the network manager sending a scanning instruction, the access node stores a frequency point list, and the access node and the sink node respectively perform corresponding work after receiving the scanning instruction.
Preferably, in the step (1), after receiving the scanning instruction, the access node clears the routing topology and the black list, and after receiving the scanning instruction, the aggregation node clears the black and white list, stops working, and enters a scanning state.
Preferably, in the step (2), the transmitted test packet includes two important fields, namely a number of the loopback packets and a sequence number of the loopback packets, the loopback packets include two important fields, namely an RSSI value and a sequence number of the loopback packets, and the access node counts packet loss rate according to the loopback packet condition and calculates average signal strength.
Preferably, in the step (3), a frequency point test table is provided between each pair of the master device and the slave device that have performed the frequency point test, the packet loss rate and the average signal strength are recorded according to the frequency point test condition, and the frequency point quality is calculated according to a certain proportion of weights.
Preferably, in the step (4), the updating of the frequency point quality table is to remove the frequency points with low channel quality in the table according to the frequency point quality value, so as to generate a simplified frequency point quality table.
Preferably, in the step (4), the reduced frequency point quality table only contains high-quality channel frequency points.
Preferably, in the step (5), the access node and the sink node perform a first round of frequency point test to generate a single-hop topology, and do not perform a second round of frequency point test on other sink nodes in the topology and sink nodes in the single-hop topology to form a multi-hop topology, and if there are nodes that do not access the topology, continue to iterate the process.
Preferably, in the step (6), the multiple frequency point quality tables are collected to the master device, and an optimal frequency point allocation scheme is obtained through a certain algorithm.
Compared with the prior art, the invention has the following beneficial effects:
the method can effectively avoid the node from working in the interference channel, can effectively improve the resource utilization rate of the frequency spectrum, considers the condition that the channel interference conditions around different nodes and the available frequency spectrum resources are different, eliminates the interference channel, can effectively reduce the subsequent algorithm calculation amount and the frequency point testing time, can select the optimal available channel according to the specific conditions of each node, solves the problem that no available frequency spectrum screening and distribution method exists in the field of narrowband power internet of things so far, and is worthy of popularization.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An interference channel elimination and frequency point distribution method based on a narrowband power Internet of things comprises the following steps:
(1) testing frequency points: sequentially testing frequency points between the access node and the sink node according to the existing frequency point list;
(2) and (3) calculating the signal intensity: the main node sends a test packet lasting for one minute, and counts the packet loss rate and calculates the average signal intensity according to the packet return sequence number;
(3) and (3) generating a quality table: evaluating the communication quality of the frequency point between two nodes according to the parameter packet loss rate and the signal strength and generating a frequency point quality table;
(4) and updating a quality table: removing interference channels according to the communication quality and updating a frequency point quality table;
(5) and (3) repeating feedback: iterating the process in the multi-hop topology;
(6) frequency point allocation: and preferentially distributing the available frequency points according to the frequency point quality table.
The first embodiment is as follows:
an interference channel elimination and frequency point distribution method based on a narrowband power Internet of things comprises the following steps:
(1) testing frequency points: the method comprises the steps that frequency point testing is sequentially carried out between an access node and a sink node according to an existing frequency point list, the frequency point testing is started by a network manager sending a scanning instruction, a frequency point list is stored in the access node, the access node and the sink node respectively carry out corresponding work after receiving the scanning instruction, the access node clears a route topology and a blacklist after receiving the scanning instruction, the sink node clears the blacklist and the blacklist after receiving the scanning instruction, stops working and enters a scanning state;
(2) and (3) calculating the signal intensity: the method comprises the steps that a main node sends a test packet lasting for one minute, the packet loss rate is counted according to a packet returning sequence number, the average signal intensity is calculated, the sent test packet comprises two important fields of the number of the packet returning and the packet returning sequence number, the packet returning comprises two important fields of an RSSI value and the packet returning sequence number, and an access node counts the packet loss rate according to the packet returning condition and calculates the average signal intensity;
(3) and (3) generating a quality table: evaluating the communication quality of the frequency point between two nodes according to the packet loss rate and the signal strength of the parameters and generating a frequency point quality table, wherein a frequency point test table is arranged between each pair of master equipment and slave equipment which are subjected to frequency point test, the packet loss rate and the average signal strength are recorded according to the frequency point test condition, the frequency point quality is calculated according to a certain proportion of weight, and the frequency point quality is used for reflecting the channel quality of the slave equipment in communication with the master equipment at the frequency point;
(4) and updating a quality table: removing interference channels according to the communication quality and updating a frequency point quality table, wherein the updating of the frequency point quality table is to remove frequency points with low channel quality in the table according to the value of the frequency point quality and generate a simplified frequency point quality table, and the simplified frequency point quality table only contains high-quality channel frequency points;
(5) and (3) repeating feedback: iterating the process in the multi-hop topology, generating a single-hop topology after the access node and the sink node perform a first round of frequency point test, not performing a second round of frequency point test on other sink nodes in the topology and sink nodes in the single-hop topology to form the multi-hop topology, and if nodes which do not access the topology exist, continuing iterating the process;
(6) frequency point allocation: and preferentially distributing the available frequency points according to the frequency point quality tables, summarizing a plurality of frequency point quality tables to a main device, and obtaining an optimal frequency point distribution scheme through a certain algorithm.
Example two:
(1) the method comprises the steps that frequency point tests are sequentially carried out between an access node and a sink node according to an existing frequency point list, a network manager issues a frequency point test instruction, a frequency point list is stored in the access node, the access node and the sink node respectively carry out corresponding work after receiving a scanning instruction, the access node clears a route topology and a blacklist after receiving the scanning instruction, the sink node clears the blacklist and stops working after receiving the scanning instruction, and the access node enters a scanning state;
table 1: routing sent by network manager to access node
SINEID is an access node ID, and the type of a network layer instruction is 0xD 0;
table 2: routing to paired sink nodes
The network layer command type of the start command is 0xD2, the network layer command type of the end command is 0xD3, and the network layer command type of the response result is 0 xaa;
(2) the method comprises the steps that a main node sends a test packet lasting for one minute, the packet loss rate is counted and the average signal intensity is calculated according to a packet return sequence number, the sent test packet comprises two important fields of the number of the packet return and the packet return sequence number, the packet return comprises an RSSI value and the packet return sequence number, an access node counts the packet loss rate and calculates the average signal intensity according to the packet return condition, and if the access node cannot receive a registration message for a long time, the frequency point is replaced, and the frequency is deleted from a list;
table 3: test packet format sent downward by access node
Table 4: convergence node back-packet format
(3) Evaluating the communication quality of the frequency point between two nodes according to the parameters of packet loss rate alpha and signal strength beta and generating a frequency point quality table, wherein a frequency point test table is arranged between each pair of master equipment and slave equipment which are subjected to frequency point test, the packet loss rate and the average signal strength are recorded according to the frequency point test condition, the frequency point quality is calculated according to a certain proportion of weight, and the frequency point quality Q is m alpha + n beta; where m + n is 1, and m and n are parameters affecting the packet loss rate α and the signal strength β.
Table 5: frequency point quality table Ai of access node A and sink node i
Available frequency point
|
Packet loss rate α
|
RSSIβ
|
Channel quality Q
|
470MHz
|
|
|
|
471MHz
|
|
|
|
472MHz
|
|
|
|
···
|
···
|
···
|
···
|
510MHz
|
|
|
|
(4) Removing interference channels according to the communication quality and updating a frequency point quality table, wherein the updating of the frequency point quality table is to remove frequency points with low channel quality in the table according to the value of the frequency point quality and generate a simplified frequency point quality table, and the simplified frequency point quality table only contains high-quality channel frequency points;
when the packet loss rate alpha is less than 95%, judging the channel as an interference channel, and rejecting the available frequency point in the table; when the signal strength beta is less than-80 dBm, the channel is judged to be an interference channel, and the available frequency point is removed from the list. And updating the frequency point quality table.
(5) Iterating the process in the multi-hop topology, generating a single-hop topology after the access node and the sink node perform a first round of frequency point test, not performing a second round of frequency point test on other sink nodes in the topology and sink nodes in the single-hop topology to form the multi-hop topology, and if nodes which do not access the topology exist, continuing iterating the process;
and (3) repeating the processes (2), (3) and (4) by taking the sink node i as a main device and other sink nodes as slave devices, summarizing the frequency point test result table carried out by each sink node into a single frequency point quality table i by each sink node, forwarding the single frequency point quality table i to the access node, and distributing the optimal channel frequency point to the sink node by the access node.
(6) Preferentially distributing available frequency points according to the frequency point quality tables, summarizing a plurality of frequency point quality tables to a main device, and obtaining an optimal frequency point distribution scheme through a certain algorithm;
and summarizing a frequency point quality table of one access node according to a plurality of tables Ai, and distributing optimal channel frequency points to the access nodes according to the table A to form an access-aggregation single-hop topology.
The method can effectively avoid the node from working in the interference channel, can effectively improve the resource utilization rate of the frequency spectrum, considers the condition that the channel interference conditions around different nodes and the available frequency spectrum resources are different, eliminates the interference channel, can effectively reduce the subsequent algorithm calculated amount and the frequency point testing time, can select the optimal available channel according to the specific conditions of each node, and solves the problem that no available frequency spectrum screening and distribution method exists in the field of narrowband power internet of things.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.