CN114006665A - Detection method of idle channel, electronic device and storage medium - Google Patents

Detection method of idle channel, electronic device and storage medium Download PDF

Info

Publication number
CN114006665A
CN114006665A CN202111284683.4A CN202111284683A CN114006665A CN 114006665 A CN114006665 A CN 114006665A CN 202111284683 A CN202111284683 A CN 202111284683A CN 114006665 A CN114006665 A CN 114006665A
Authority
CN
China
Prior art keywords
node
channel
detection threshold
target channel
energy detection
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
CN202111284683.4A
Other languages
Chinese (zh)
Other versions
CN114006665B (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.)
Hangzhou Lianxintong Semiconductor Co ltd
Original Assignee
Hangzhou Lianxintong Semiconductor Co ltd
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 Hangzhou Lianxintong Semiconductor Co ltd filed Critical Hangzhou Lianxintong Semiconductor Co ltd
Priority to CN202111284683.4A priority Critical patent/CN114006665B/en
Publication of CN114006665A publication Critical patent/CN114006665A/en
Application granted granted Critical
Publication of CN114006665B publication Critical patent/CN114006665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a detection method of an idle channel, an electronic device and a storage medium, wherein the method is applied to a sender and comprises the following steps: determining a target channel currently monitored by a target node according to the target node of data to be transmitted; switching a transmission channel of a sender to a target channel, and detecting the signal intensity of the target channel; adjusting an energy detection threshold of a target channel according to the detected signal strength and the node relation between the target node and the sender; and when the signal strength of the target channel is less than or equal to the energy detection threshold, determining that the target channel is an idle channel. The technical scheme provided by the embodiment of the application can improve the accuracy of idle channel detection, reduce the probability of collision and enhance the success rate of communication.

Description

Detection method of idle channel, electronic device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method for detecting an idle channel, an electronic device, and a computer-readable storage medium.
Background
The Wi-SUN (Wireless Smart infrastructure Network, Wireless intelligent Ubiquitous Network) alliance was established in 2012 and is a global non-profit organization composed of industry companies. The development vision of the Wi-SUN alliance is to provide strong product connectivity through a test and certification plan and develop a Wi-SUN ecosystem to realize interoperability of intelligent cities and intelligent public communication networks based on the technical specification of a mesh network protocol IEEE 802.15.4 g. FIG. 1 is a comparison of Wi-SUN and other LPWAN (Low-Power Wide-Area Network) technologies.
As a network protocol suitable for long-distance, large-scale and automatic networking, Wi-SUN FAN (wireless intelligent ubiquitous local area network) uses an unlicensed frequency band, and must compete for a frequency band with other communication standards, so a unique frequency Hopping (Channel Hopping) mechanism must be designed to resist external interference. The adopted Mesh Network architecture (Mesh Network) can greatly expand the Network communication distance and is matched with a frequency hopping technology to further increase the transmission efficiency of the Network. When the signal is good, most network nodes are in a first-level environment, and when environmental interference occurs, the routing algorithm automatically adjusts the topology to be a multi-level mesh network architecture, and the self-repairing characteristic is particularly suitable for application of a large-scale wide area network.
Performance analysis and improvement for mesh networks has been an important issue, also for Wi-SUN FAN networks, where the determination of "what is Noise (Noise)" is more difficult due to asynchronous and Receiver-directed frequency hopping mechanisms, and three channel idle detection modes are defined in 802.15.4, respectively:
CCA Mode 1 (idle channel assessment Mode 1): Energy above threshold (whether the Energy is greater than the threshold).
CCA Mode 2 (idle channel assessment Mode 2): Carrier sense only.
CCA Mode 3 (idle channel assessment Mode 3) Carrier sense with energy above threshold.
Since the Wi-SUN hopping mechanism always performs CCA detection after the sender hops to the channel where the receiver is located, since there is a possibility that a message is already being transmitted at the time point of starting the detection, the CCA Mode 2 cannot detect the real situation at this time, and only Mode 1 can be used as channel idle detection before the sending, but the channel idle detection is often misjudged due to the following factors: the system comprises the following components of an environment with high noise, noise of heterogeneous networks, frequency multiplication interference generated by equipment, a frequency hopping mechanism, mutual interference of a plurality of PAN networks (personal area networks) and adjacent channel interference. It is obviously not a suitable way to set a fixed Energy Detection Threshold, and therefore an effective adjustment mechanism needs to be designed to overcome the above-mentioned misjudgment.
Disclosure of Invention
The embodiment of the application provides a method for detecting an idle channel, which is used for improving the accuracy of idle channel detection.
The embodiment of the application provides a method for detecting an idle channel, which is applied to a sender and comprises the following steps:
determining a target channel currently monitored by a target node according to the target node of data to be transmitted;
switching a transmission channel of the sender to the target channel, and detecting the signal intensity of the target channel;
adjusting an energy detection threshold of the target channel according to the detected signal strength and the node relation between the target node and the sender;
and when the signal strength of the target channel is less than or equal to the energy detection threshold value, determining that the target channel is an idle channel.
In an embodiment, the determining, according to a destination node to which data is to be transmitted, a target channel currently intercepted by the destination node includes:
and determining a target channel currently monitored by the destination node according to the frequency hopping time sequence of the destination node.
In an embodiment, the adjusting the energy detection threshold of the target channel according to the detected signal strength and the node relationship between the destination node and the sender includes:
according to the energy detection threshold value of the sender in the target channel, comparing the signal intensity of the target channel with the energy detection threshold value to obtain a comparison result;
and adjusting the energy detection threshold according to the comparison result and the node relation between the destination node and the sender.
In an embodiment, the adjusting the energy detection threshold according to the comparison result and the node relationship between the destination node and the sender includes:
and if the signal strength of the target channel is greater than the energy detection threshold and the destination node is a father node of the sender, adjusting the energy detection threshold up according to a first change rate.
In an embodiment, the adjusting the energy detection threshold of the target channel according to the comparison result and the node relationship between the destination node and the sender includes:
if the signal strength of the target channel is greater than the energy detection threshold and the destination node is a child node of the sender, adjusting the energy detection threshold up according to a second change rate;
the first rate of change is less than the second rate of change.
In an embodiment, the adjusting the energy detection threshold of the target channel according to the comparison result and the node relationship between the destination node and the sender includes:
and if the signal strength of the target channel is less than or equal to the energy detection threshold and the target node is a father node of the sender, adjusting the energy detection threshold downwards according to a third change rate.
In an embodiment, the adjusting the energy detection threshold of the target channel according to the comparison result and the node relationship between the destination node and the sender includes:
if the signal strength of the target channel is less than or equal to the energy detection threshold and the target node is a child node of the sender, adjusting the energy detection threshold downwards according to a fourth change rate;
the third rate of change is greater than the fourth rate of change.
Another embodiment of the present application provides a method for detecting an idle channel, where the method is applied to a sender, and includes:
determining a target channel currently monitored by a target node according to the target node of data to be transmitted;
switching a transmission channel of the sender to the target channel;
increasing the energy detection threshold of the target channel to enable the data to be transmitted to be successfully transmitted to the target node;
detecting the signal intensity of the target channel when the data is successfully transmitted, and determining the background noise intensity;
determining an energy detection threshold value of the target channel according to the background noise intensity;
and when the signal strength of the target channel is less than or equal to the energy detection threshold value, determining that the target channel is an idle channel.
An embodiment of the present application provides an electronic device, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the idle channel detection method.
The embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program can be executed by a processor to complete the method for detecting an idle channel.
According to the technical scheme provided by the embodiment of the application, under a receiver-oriented frequency hopping mechanism, according to the signal intensity of the target channel and the node relation between the sender and the receiver, the busy degree and the transmission object of the target channel can be determined by the node, so that the energy detection threshold value is dynamically adjusted, when the signal intensity of the target channel is smaller than or equal to the energy detection threshold value, the target channel is determined to be an idle channel, the accuracy of idle channel detection can be improved, the probability of collision occurrence is reduced, and the communication success rate is enhanced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram comparing Wi-SUN with other LPWAN technologies;
fig. 2 is a timing diagram of unicast frequency hopping provided by an embodiment of the present application;
fig. 3 is a schematic view of an application scenario of a method for detecting an idle channel according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for detecting an idle channel according to an embodiment of the present disclosure;
FIG. 6 is a detailed flowchart of step S530 in the corresponding embodiment of FIG. 5;
FIG. 7 is a diagram of four states of contention between uplink and downlink;
FIG. 8 is a detailed flowchart of step S530 in the corresponding embodiment of FIG. 5;
fig. 9 is a flowchart illustrating a method for detecting an idle channel according to another embodiment of the present application;
fig. 10 is a block diagram of an apparatus for detecting idle channels according to an embodiment of the present disclosure;
fig. 11 is a block diagram of an apparatus for detecting idle channels according to another embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The frequency hopping mechanism of Wi-SUN FAN, each node has its own frequency hopping sequence and exchanges frequency hopping parameters with neighbor nodes through payload IE (Wi-SUN UTT-IE) of 802.15.4 e. In each unicast transmission, the sender calculates the Channel currently monitored by the Receiver through the Channel Hopping Function, and switches the frequency to the Channel to complete the transmission, i.e., the Receiver-directed Channel Hopping mechanism. Fig. 2 is a Unicast frequency hopping sequence diagram, where a Node diagram (Node 1), a Node2 (Node 2), and a Node3 (Node 3) have respective frequency hopping sequences, each Node uses a different channel at the same time point, and sets a switching channel with a frequency hopping Interval value (unity Dwell) periodically, and fig. 2 also shows the switching time of each Node and switches asynchronously, so that neighboring nodes need to learn information of relative time to each other to calculate the frequency hopping channel.
The research and development of the mesh network are gradually developed over a decade, and finally, a large-scale practical stage is achieved, and the Wi-SUN FAN adopts an IPv6 network layer protocol to achieve cloud-to-end direct control for the requirements of the Internet of things and a smart grid. An RPL (IPv6 Routing Protocol for LLNs) Routing Protocol is an important basis for forming and maintaining mesh network links, and a most suitable father node is selected to forward network messages by information such as channel quality evaluation, link success rate detection, network levels, access node numbers and the like, so that a network architecture which can reach 24 hops at most is very helpful for large-scale deployment.
The maintenance of links and the reaction to link changes are often a big challenge to mesh network stability, especially under the frequency hopping mechanism, the following important factors need to be considered:
clock drift, the drift in time causes the transmission failure caused by the error of the channel of the receiving party of calculation;
background noise, transmission failure caused by environmental interference;
hidden terminal protocol transmission collision caused by hidden node problem in wireless network;
receiver not in its receiving channel (e.g. usable to change channel having transmitting or receiving) Receiver-directed: in the frequency hopping mechanism, the transmission failure is caused because the receiver is in a transmission state or stops at the last receiving channel;
content, transmission failure due to simultaneous transmission competition collision under multiple nodes;
an adjacentthannellnterference, wherein the transmission failure is caused by the mutual interference of adjacent channels;
the above factors determine the stability and network performance of the mesh network, and therefore special attention needs to be paid to these issues before a large-scale mesh network is deployed.
There are many communication technologies developed based on the IEEE 802.15.4 protocol, and Wi-SUN is only one of them. For CCA Mode 1: Energy above threshold (idle channel assessment Mode 1: Energy greater than threshold) as defined in 802.15.4, foreign researchers have also proposed using a mechanism for dynamically adjusting the threshold to accommodate noise. The concept is to lower the threshold when CCA (clear channel assessment) is successful and to raise the threshold when CCA fails. This approach is simple but not entirely suitable for use in networks where Wi-SUN FAN is dominated by Receiver-directed channel hopping (Receiver-directed frequency modulation). The main problem is that in the case of many-to-one transmission, the threshold value of each node is continuously increased due to the contention relationship, so as to increase the probability of self-transmission, which is not a good practice for the whole network, because the continuously increased threshold value will generate more collisions and retransmissions, and each node wants to increase its threshold value, resulting in a vicious circle. Therefore, the existing dynamic threshold value adjusting mechanism and the existing fixed threshold value mechanism have poor effects, and based on the above, the embodiment of the application provides the idle channel detection method under the receiver-oriented frequency hopping mechanism.
Fig. 3 is a schematic view of an application scenario of a method for detecting an idle channel according to an embodiment of the present disclosure. As shown in fig. 3, the application scenario includes a plurality of nodes 300, the plurality of nodes 300 form a mesh network structure, that is, the nodes 300 and the nodes 300 are interconnected through wired or wireless transmission, and each node 300 is connected to at least two other nodes 300. Node 300 may be a wireless router, server, desktop computer, laptop computer, or smartphone. The method provided by the embodiment of the present application can be executed by any node 300, and when the node 300 needs to transmit data to other nodes, the method for detecting an idle channel provided by the embodiment of the present application is executed, so as to improve accuracy of idle channel detection, reduce probability of collision occurrence, and enhance success rate of communication.
Fig. 4 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 may be used to perform a method for detecting an idle channel according to an embodiment of the present disclosure. The electronic apparatus 100 includes: at least one processor 103, at least one memory 102, and a bus 101, the bus 101 being used to enable connected communication of these components.
In an embodiment, the electronic device 100 may be a host, a tablet computer, a smart phone, a router, or other intelligent terminals, and is configured to perform the idle channel detection method.
In one embodiment, the Memory 102 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, including but not limited to, Random Access Memory (RAM) 102, Read Only Memory (ROM) 102, Static Random Access Memory (SRAM) 102, Programmable Read Only Memory (PROM) 102, Erasable Read Only Memory (EPROM) 102, electrically Erasable Read Only Memory (EEPROM) 102.
In one embodiment, the Processor 103 may be a general-purpose Processor, including but not limited to a Central Processing Unit (CPU), a Network Processor (NP), etc., a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 103 may be any conventional processor or the like, the processor 103 being the control center of the electronic device 100 and the various parts of the entire electronic device 100 being connected by various interfaces and lines. The processor 103 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application.
In an embodiment, fig. 4 illustrates a processor 103 and a memory 102, the processor 103 and the memory 102 are connected via a bus 101, and the memory 102 stores instructions executable by the processor 103, and the instructions are executed by the processor 103, so that the electronic device 100 can perform all or part of the processes of the methods in the embodiments described below to detect the idle channel.
The present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program is executable by a processor to perform the idle channel detection method according to the following embodiments of the present invention.
Fig. 5 is a flowchart illustrating a method for detecting an idle channel according to an embodiment of the present disclosure. The method may be performed by a node of a sender, as shown in fig. 5, and includes the following steps S510 to S540.
Step S510: and determining a target channel currently intercepted by the target node according to the target node of the data to be transmitted.
The destination node is a receiver of data to be transmitted, and the destination node may be a parent node or a child node of the sender node. That is, the data to be transmitted may be downlink data, where the sender node is a parent node and the destination node is a child node. In another embodiment, the data to be transmitted may be uplink data, the sender node serves as a child node, and the destination node serves as a parent node.
The target channel refers to a data transmission frequency band of the destination node at the current moment. As shown in fig. 2, each node has a corresponding frequency hopping sequence that indicates the channel that the node listens to at each time. Therefore, according to the frequency hopping sequence of the destination node, the target channel currently monitored by the destination node can be determined. The target channel is a channel sensed by the destination node at the current time, and is referred to as a target channel for distinction. For example, the target channel may be ch 5.
Step S520: and switching the transmission channel of the sender to the target channel, and detecting the signal strength of the target channel.
Due to the adoption of a frequency hopping mechanism guided by the receiver, the sender firstly switches to the channel where the receiver is located and then carries out idle channel detection. Therefore, the sender node may switch its own channel to the target channel first, and then detect the signal strength of the target channel using an RF (radio frequency) transceiver.
Step S530: and adjusting the energy detection threshold of the target channel according to the detected signal strength and the node relation between the target node and the sender.
The node relationship between the destination node and the sender has two types: firstly, a destination node is a father node, and a sender is a child node; in the second type, the destination node is a child node, and the sender is a parent node.
The energy detection threshold is used as a basis for judging whether the target channel is idle. Based on the detected signal strength and the node relationship, the size of the energy detection threshold may be adjusted. For example, when the destination node is a father node and the sender is a child node, assuming that hundreds of nodes are to transmit to the same father node, the signal strength of the target channel is inevitably large, and excessive channel detection failures are inevitably generated according to a fixed energy detection threshold, but if the threshold can be slowly adjusted up, the problem that the overall success rate is greatly reduced due to mutual competition of a plurality of child nodes can be avoided. Therefore, when the signal strength is greater than the fixed threshold, the destination node is the father node, and the sender is the child node, the energy detection threshold can be slowly adjusted up.
Step S540: and when the signal strength of the target channel is less than or equal to the energy detection threshold value, determining that the target channel is an idle channel.
The energy detection threshold of step S540 is the energy detection threshold adjusted in step S530. And when the signal intensity of the target channel is greater than or equal to the energy detection threshold, the target channel is considered to be busy, and data transmission is not carried out on the target channel. When the signal intensity of the target channel is smaller than the energy detection threshold, the target channel is considered to be idle, and data transmission can be carried out on the target channel.
According to the technical scheme provided by the embodiment of the application, under a receiver-oriented frequency hopping mechanism, according to the signal intensity of the target channel and the node relation between the sender and the receiver, the node can determine the environment and the access state of the node, so that the energy detection threshold value is dynamically adjusted, when the signal intensity of the target channel is less than or equal to the energy detection threshold value, the target channel is determined to be an idle channel, and therefore, the probability of collision can be reduced and the success rate of communication can be enhanced better besides the misjudgment caused by environment or equipment noise can be overcome.
In an embodiment, as shown in fig. 6, the step S530 specifically includes: step S531-step S532.
Step S531: and comparing the signal intensity of the target channel with the energy detection threshold value according to the energy detection threshold value of the sender in the target channel to obtain a comparison result.
It should be noted that each node has a corresponding table, records the current energy detection threshold of each channel, and has a set of default values after being powered on.
Therefore, the sender node can obtain the energy detection threshold of the target channel from the table and compare the signal strength of the target channel with the energy detection threshold.
Step S532: and adjusting the energy detection threshold according to the comparison result and the node relation between the destination node and the sender.
According to the contention of uplink and downlink transmission, as shown in fig. 7, the method can be simply divided into four states:
uplink-the same destination node: different child nodes simultaneously initiate transmission to the same father node, and at the moment, the current frequency channel of the father node is jumped to for channel energy detection.
(II) uplink-different destination nodes: different child nodes simultaneously initiate transmission to parent nodes thereof, the child nodes have different parent nodes, at the moment, the current frequency channel of the parent node is jumped to for channel energy detection, and if the frequency hopping frequency channels are not too many, the frequency channels used by the parent nodes still have the opportunity of collision.
(III) descending: the parent node transmits to the child node, and only one child node can transmit at the same time, so that the collision can occur because the frequency channels used by different child nodes still have an opportunity to collide if the frequency channels of frequency hopping are not many.
(IV) bidirectional: the two-way transmission is carried out by taking the parent node as the object, and therefore collision can be caused.
For the Wi-SUN FAN mesh network, any uplink data must be retransmitted through the father node, and when the number of the child nodes under the same father node is larger, each child node jumps to the frequency channel where the same father node is located, so that the uplink channel competition is more serious, the amplitude of dynamic adjustment of the energy detection threshold can be reduced, and the mutual competition of a plurality of child nodes can be avoided. The downlink data is sent to a plurality of sub-nodes, and the plurality of sub-nodes are in different channels, so that the problem of competition is avoided, and the normal amplitude of dynamic adjustment can be maintained.
Based on this, in an embodiment, the sender may adjust the energy detection threshold up according to the energy detection threshold of the target channel recorded in the table, and according to the first change rate if the signal strength of the target channel is greater than the energy detection threshold and the destination node is a parent node (i.e., an uplink) of the sender. In an embodiment, if the signal strength of the target channel is greater than the energy detection threshold and the destination node is a child node of the sender, the energy detection threshold is adjusted up according to a second change rate; the first rate of change is less than the second rate of change.
That is to say, when the uplink data is busy, the energy detection threshold is slowly adjusted up according to the first change rate, so that mutual competition of a plurality of child nodes can be avoided, and the communication success rate is improved.
When the bidirectional data is busy, namely, the child node and the grandparent node compete to transmit to the parent node at the same time (namely, the state four above), the downlink data has higher priority and accords with the control data application of the back-end console to the terminal network node, so that when the target node is the child node of the sender, the energy detection threshold value is up-regulated according to the second change rate, and the transmission of the control data is completed as soon as possible.
In an embodiment, the sender adjusts the energy detection threshold downward according to a third rate of change if the signal strength of the target channel is less than or equal to the energy detection threshold and the destination node is a parent node of the sender according to the energy detection threshold of the target channel recorded in the table. If the signal strength of the target channel is less than or equal to the energy detection threshold and the target node is a child node of the sender, adjusting the energy detection threshold downwards according to a fourth change rate; the third rate of change is greater than the fourth rate of change.
It should be noted that, the signal strength of the target channel is less than or equal to the energy detection threshold, the target channel may be considered not to be busy, the energy detection threshold may be adjusted downward, and the application of the control data of the back-end console to the terminal network node is only met based on the higher priority of the downlink data, so that when the target node is a child node, the energy detection threshold may be adjusted downward slowly according to the fourth rate of change. And when the destination node is a parent node, the energy detection threshold may be actively adjusted downward at a third rate of change. In an embodiment, the first rate of change may be equal to the fourth rate of change. The second rate of change may be equal to the third rate of change.
In an embodiment, as shown in fig. 8, the step S530 may specifically include the following processes:
step S801: comparing whether the signal intensity of the target channel is greater than an energy detection threshold of the target channel; if yes, go to step S802, otherwise go to step S803.
Step S802: judging whether the destination node is a father node or not; if yes, go to step S804; if not, go to step S805.
Step S803: judging whether the destination node is a father node or not; if yes, go to step S806; if not, go to step S807.
Step S804: the energy detection threshold is slowly adjusted upward at a first rate of change.
Step S805: and adjusting the energy detection threshold value according to the second change rate.
Step S806: the energy detection threshold is actively adjusted downward at a third rate of change.
Step S807: the energy detection threshold is slowly adjusted downward according to a fourth rate of change.
According to the technical scheme provided by the embodiment of the application, each node has a table for recording the current energy detection threshold of each channel, and a slow or positive energy detection threshold adjustment strategy is set according to different transmission objects. According to the difference of the signal intensity of the target channel, when the transmission object is a father node, the energy detection threshold needs to be slowly adjusted upwards or actively adjusted downwards. When the transmission object is a child node, the energy detection threshold needs to be actively adjusted up or slowly adjusted down, so that mutual competition among multiple nodes can be avoided, the communication success rate is improved, and the transmission of downlink control data is completed as soon as possible.
Fig. 9 is a flowchart illustrating a method for detecting an idle channel according to another embodiment of the present application, which may be performed when a node is used as a sender, and the method includes the following steps S910 to S960.
Step S910: and determining a target channel currently intercepted by the target node according to the target node of the data to be transmitted.
Step S920: and switching the transmission channel of the sender to the target channel.
The above steps S910 and S920 may refer to the above steps S510 and S520.
Step S930: increasing the energy detection threshold of the target channel to enable the data to be transmitted to be successfully transmitted to the target node;
detection of idle channels is typically performed prior to data transfer. But post-transmission channel detection can increase the determination of background noise strength. Therefore, in order to transmit data, the energy detection threshold of the target channel can be temporarily increased, so that the data can be successfully transmitted to the destination node.
Step S940: and detecting the signal intensity of the target channel when the data is successfully transmitted, and determining the background noise intensity.
The sender node detects the signal strength of the target channel when data is successfully transmitted, where the signal strength may be the rise in signal energy caused by both the ongoing data transmission of the node and the background noise. The signal strength of the data transmitted by the sender is a known quantity, so the background noise strength can be determined by subtracting the signal strength of the transmitted data from the detected signal strength.
Step S950: and determining an energy detection threshold value of the target channel according to the background noise intensity.
The energy detection threshold of the target channel can be set according to the background noise intensity. In one embodiment, the background noise strength may be directly used as the energy detection threshold of the target channel.
Step S960: and when the signal strength of the target channel is less than or equal to the energy detection threshold value, determining that the target channel is an idle channel.
Conversely, when the signal strength of the target channel is greater than the energy detection threshold, the target channel is considered busy.
According to the scheme, the background noise intensity of the target channel can be determined more by firstly transmitting data and then detecting the signal intensity, so that a proper energy detection threshold value is set, the accuracy of idle channel detection is improved conveniently, and the success rate of data transmission is improved.
The following are embodiments of the apparatus of the present application, which may be used to implement the method for detecting an idle channel of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the idle channel detection method of the present application.
Fig. 10 is a block diagram of an apparatus for detecting an idle channel according to an embodiment of the present disclosure. The apparatus is applied to a sender, and as shown in fig. 10, the apparatus includes: a channel determination module 1010, a channel detection module 1020, a threshold adjustment module 1030, and an idle determination module 1040.
A channel determining module 1010, configured to determine, according to a destination node of data to be transmitted, a target channel currently intercepted by the destination node;
a channel detection module 1020, configured to switch a transmission channel of the sender to the target channel and detect a signal strength of the target channel;
a threshold adjusting module 1030, configured to adjust an energy detection threshold of the target channel according to the detected signal strength and a node relationship between the destination node and the sender;
the idle determining module 1040 is configured to determine that the target channel is an idle channel when the signal strength of the target channel is less than or equal to the energy detection threshold.
Fig. 11 is a block diagram of an apparatus for detecting idle channels according to another embodiment of the present disclosure. The apparatus is applied to a transmitting side, and as shown in fig. 11, the apparatus includes: a channel determination module 1110, a channel switching module 1120, a data transmission module 1130, a noise determination module 1140, a threshold determination module 1150, and an idle determination module 1060.
A channel determining module 1110, configured to determine, according to a destination node of data to be transmitted, a target channel currently intercepted by the destination node;
a channel switching module 1120, configured to switch a transmission channel of the sender to the target channel;
a data transmission module 1130, configured to increase an energy detection threshold of the target channel, so that the data to be transmitted is successfully transmitted to the destination node;
a noise determination module 1140, configured to detect the signal strength of the target channel when data is successfully transmitted, and determine the background noise strength;
a threshold determining module 1150, configured to determine an energy detection threshold of the target channel according to the background noise strength;
an idle determination module 1060, configured to determine that the target channel is an idle channel when the signal strength of the target channel is less than or equal to the energy detection threshold.
The implementation process of the function and action of each module in the apparatus is detailed in the implementation process of the corresponding step in the idle channel detection method, and is not described herein again.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A method for detecting idle channels is applied to a sender, and comprises the following steps:
determining a target channel currently monitored by a target node according to the target node of data to be transmitted;
switching a transmission channel of the sender to the target channel, and detecting the signal intensity of the target channel;
adjusting an energy detection threshold of the target channel according to the detected signal strength and the node relation between the target node and the sender;
and when the signal strength of the target channel is less than or equal to the energy detection threshold value, determining that the target channel is an idle channel.
2. The method of claim 1, wherein the determining, according to a destination node to which data is to be transmitted, a target channel currently listened to by the destination node comprises:
and determining a target channel currently monitored by the destination node according to the frequency hopping time sequence of the destination node.
3. The method of claim 1, wherein the adjusting the energy detection threshold of the target channel according to the detected signal strength and the node relationship between the destination node and the sender comprises:
according to the energy detection threshold value of the sender in the target channel, comparing the signal intensity of the target channel with the energy detection threshold value to obtain a comparison result;
and adjusting the energy detection threshold according to the comparison result and the node relation between the destination node and the sender.
4. The method of claim 3, wherein the adjusting the energy detection threshold according to the comparison and the node relationship between the destination node and the sender comprises:
and if the signal strength of the target channel is greater than the energy detection threshold and the destination node is a father node of the sender, adjusting the energy detection threshold up according to a first change rate.
5. The method of claim 4, wherein the adjusting the energy detection threshold of the target channel according to the comparison result and the node relationship between the destination node and the sender comprises:
if the signal strength of the target channel is greater than the energy detection threshold and the destination node is a child node of the sender, adjusting the energy detection threshold up according to a second change rate;
the first rate of change is less than the second rate of change.
6. The method of claim 3, wherein the adjusting the energy detection threshold of the target channel according to the comparison result and the node relationship between the destination node and the sender comprises:
and if the signal strength of the target channel is less than or equal to the energy detection threshold and the target node is a father node of the sender, adjusting the energy detection threshold downwards according to a third change rate.
7. The method of claim 6, wherein the adjusting the energy detection threshold of the target channel according to the comparison result and the node relationship between the destination node and the sender comprises:
if the signal strength of the target channel is less than or equal to the energy detection threshold and the target node is a child node of the sender, adjusting the energy detection threshold downwards according to a fourth change rate;
the third rate of change is greater than the fourth rate of change.
8. A method for detecting idle channels is applied to a sender, and comprises the following steps:
determining a target channel currently monitored by a target node according to the target node of data to be transmitted;
switching a transmission channel of the sender to the target channel;
increasing the energy detection threshold of the target channel to enable the data to be transmitted to be successfully transmitted to the target node;
detecting the signal intensity of the target channel when the data is successfully transmitted, and determining the background noise intensity;
determining an energy detection threshold value of the target channel according to the background noise intensity;
and when the signal strength of the target channel is less than or equal to the energy detection threshold value, determining that the target channel is an idle channel.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the idle channel detection method of any one of claims 1 to 8.
10. A computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executable by a processor to perform the method for idle channel detection according to any one of claims 1 to 8.
CN202111284683.4A 2021-11-01 2021-11-01 Idle channel detection method, electronic equipment and storage medium Active CN114006665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111284683.4A CN114006665B (en) 2021-11-01 2021-11-01 Idle channel detection method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111284683.4A CN114006665B (en) 2021-11-01 2021-11-01 Idle channel detection method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114006665A true CN114006665A (en) 2022-02-01
CN114006665B CN114006665B (en) 2023-10-27

Family

ID=79926368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111284683.4A Active CN114006665B (en) 2021-11-01 2021-11-01 Idle channel detection method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114006665B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114585031A (en) * 2022-03-18 2022-06-03 珠海优特电力科技股份有限公司 Frequency point switching method and system, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101453A (en) * 2015-07-13 2015-11-25 西北工业大学 Carrier sensing method based on dynamic idle channel assessment threshold
CN108696929A (en) * 2017-04-05 2018-10-23 上海诺基亚贝尔股份有限公司 A kind of method and apparatus of dynamic adjustment CCA energy detection thresholds
CN109392184A (en) * 2017-08-02 2019-02-26 维沃移动通信有限公司 Information transferring method, the network equipment and terminal under a kind of unauthorized frequency range
US20190215781A1 (en) * 2018-01-10 2019-07-11 Comcast Cable Communications, Llc Power Control for Channel State Information
US20190373635A1 (en) * 2016-09-30 2019-12-05 Zte Corporation Data transmission and receiving method and apparatus, and base station and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101453A (en) * 2015-07-13 2015-11-25 西北工业大学 Carrier sensing method based on dynamic idle channel assessment threshold
US20190373635A1 (en) * 2016-09-30 2019-12-05 Zte Corporation Data transmission and receiving method and apparatus, and base station and terminal
CN108696929A (en) * 2017-04-05 2018-10-23 上海诺基亚贝尔股份有限公司 A kind of method and apparatus of dynamic adjustment CCA energy detection thresholds
CN109392184A (en) * 2017-08-02 2019-02-26 维沃移动通信有限公司 Information transferring method, the network equipment and terminal under a kind of unauthorized frequency range
US20190215781A1 (en) * 2018-01-10 2019-07-11 Comcast Cable Communications, Llc Power Control for Channel State Information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114585031A (en) * 2022-03-18 2022-06-03 珠海优特电力科技股份有限公司 Frequency point switching method and system, storage medium and electronic device
CN114585031B (en) * 2022-03-18 2024-03-15 珠海优特电力科技股份有限公司 Frequency point switching method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114006665B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN101395868B (en) Clear channel reporting and assisting orphaned nodes in a wireless network
US20060159024A1 (en) Method and apparatus for responding to node anormalities within an ad-hoc network
US11849340B2 (en) Information feedback method, device and system
Wunder et al. Compressive coded random access for massive MTC traffic in 5G systems
JP2019522405A (en) Method and terminal for measuring radio link quality
TWI392304B (en) Methods and apparatus for communicating information using different types of symbols
KR20140059298A (en) Methods and apparatus for wan assisted contention detection & resolution in peer to peer networks
KR20030077432A (en) Method of dynamically setting at least one threshold at an access point in a wireless local area network and the access point
CN106413097B (en) Wireless communication method and device
Yang et al. Cooperative clustering‐based medium access control for broadcasting in vehicular ad‐hoc networks
JP2007028550A (en) Communication terminal device
CN109561398B (en) AP neighbor table establishing method
KR20220141335A (en) Method, system and apparatus and medium for handling resource allocation in V2X communication
CN114006665B (en) Idle channel detection method, electronic equipment and storage medium
CN111246398B (en) Low-energy-consumption communication method, device and system and storage medium
US9629023B2 (en) User apparatus and collision detection method
Leonardi et al. A new adaptive receiver-initiated scheme for mitigating starvation in wireless networks
EP3949519B1 (en) Selective routing algorithm based on background noise
Zhu et al. Performance improvement for IEEE 802.15. 4 CSMA/CA scheme in large‐scale wireless multi‐hop sensor networks
CN111586706A (en) Long-distance wide-area channel detection method, system, storage medium and Internet of things terminal
Choi et al. Delay analysis of carrier sense multiple access with collision resolution
Talebi et al. Continuous approximation of stochastic models for wireless sensor networks
JPH08223110A (en) Radio packet collision detecting system
JP5536590B2 (en) Wireless communication system
Rahimian et al. Adaptive frameless slotted ALOHA considering energy efficiency

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant