CN108934051B - Channel switching network access method and device - Google Patents

Channel switching network access method and device Download PDF

Info

Publication number
CN108934051B
CN108934051B CN201810782301.2A CN201810782301A CN108934051B CN 108934051 B CN108934051 B CN 108934051B CN 201810782301 A CN201810782301 A CN 201810782301A CN 108934051 B CN108934051 B CN 108934051B
Authority
CN
China
Prior art keywords
message
network
routing node
wireless network
feedback
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.)
Active
Application number
CN201810782301.2A
Other languages
Chinese (zh)
Other versions
CN108934051A (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.)
Shenzhen Friendcom Technology Co Ltd
Original Assignee
Shenzhen Friendcom Technology 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 Shenzhen Friendcom Technology Co Ltd filed Critical Shenzhen Friendcom Technology Co Ltd
Priority to CN201810782301.2A priority Critical patent/CN108934051B/en
Publication of CN108934051A publication Critical patent/CN108934051A/en
Application granted granted Critical
Publication of CN108934051B publication Critical patent/CN108934051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off
    • H04W36/026Multicasting of data during hand-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a channel switching network access method and a channel switching network access device, which are applied to a routing node. The method comprises the following steps: broadcasting and sending DIS messages in a current channel according to a preset time interval; monitoring whether a DIO message corresponding to the DIS message is received; judging whether a DIO message is received in a broadcast time period in which the broadcast frequency of the message is not more than the preset broadcast frequency according to the monitoring result of the DIO message; if the DIO message is received in the broadcast time period, sending a DAO message to a root node in a wireless network corresponding to the DIO message to access the wireless network; if the DIO message is not received in the broadcast time period, switching the current channel, and skipping to the step of broadcasting and sending the DIS message for continuous execution. The method can automatically switch the current channel according to the actual network environment of the routing node so as to access the wireless network based on the proper channel, reduce the labor consumption and improve the flexibility, accuracy and efficiency of network access.

Description

Channel switching network access method and device
Technical Field
The invention relates to the technical field of RPL (Routing Protocol for Low-power and Low-loss network Routing Protocol) Routing network access, in particular to a channel switching network access method and a channel switching network access device.
Background
The RPL routing protocol can provide a general IPv6 routing mechanism and a construction framework for a low-power-consumption low-speed lossy network, so that a wireless network formed by the RPL routing protocol has the advantages of good safety, supporting the dynamic joining of nodes, avoiding loops and the like. However, in the prior art, when a routing node is to be accessed to a wireless network constructed by using an RPL routing protocol, it is necessary to manually configure a channel of the routing node to a channel that is the same as a channel corresponding to a root node in the wireless network, and then the routing node is normally accessed to the wireless network according to a network access process corresponding to the RPL routing protocol based on the manually configured channel. The routing node network access method has the problems of high human resource consumption, low network access efficiency and high error rate of channel configuration due to the factor of manually configuring the channel, and the routing node needs to manually configure the channel again when switching the currently accessed wireless network and accessing a new wireless network, so that the network switching and re-accessing efficiency of the routing node is extremely low, and the overall network access flexibility is not high.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, an object of the present invention is to provide a channel switching network access method and apparatus, where the channel switching network access method can automatically switch the current channel of a routing node according to the actual network environment of the routing node, so that the routing node accesses a wireless network based on a suitable channel, thereby reducing human consumption and improving the network access flexibility, network access accuracy and network access efficiency of the routing node.
As to a method, an embodiment of the present invention provides a channel switching network access method, which is applied to a routing node, and the method includes:
broadcasting and sending a network information request DIS message in a current channel according to a preset time interval;
monitoring whether a network information object (DIO) message from a certain wireless network corresponding to the DIS message is received or not;
judging whether the DIO message is received in a broadcasting time period in which the broadcasting frequency of the DIS message is not more than the preset broadcasting frequency according to the monitoring result of the DIO message;
if the DIO message is received in the broadcast time period, sending a Destination Advertisement Object (DAO) message to a root node in a wireless network corresponding to the DIO message so as to access the wireless network;
and if the DIO message is not received in the broadcasting time period, switching the current channel, and skipping to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
As for a device, an embodiment of the present invention provides a channel switching network access device, which is applied to a routing node, and the device includes:
a DIS sending module, configured to broadcast a network information request DIS message in a current channel according to a preset time interval;
a DIO monitoring module, configured to monitor whether a DIO packet of a network information object from a certain wireless network is received, where the DIO packet corresponds to the DIS packet;
a DIO judgment module for judging whether the DIO message is received in a broadcasting time period in which the broadcasting frequency of the DIS message is not more than the preset broadcasting frequency according to the monitoring result of the DIO message;
a DAO sending module, configured to send a destination advertisement object DAO packet to a root node in a wireless network corresponding to the DIO packet to access the wireless network if the DIO packet is received within the broadcast time period;
and the channel switching module is used for switching the current channel if the DIO message is not received in the broadcasting time period, and skipping to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
Compared with the prior art, the channel switching network access method and the device provided by the embodiment of the invention have the following beneficial effects: the channel switching network access method can automatically switch the current channel of the routing node according to the actual network environment of the routing node, so that the routing node is accessed to a wireless network based on a proper channel, the labor consumption is reduced, and the network access flexibility, the network access accuracy and the network access efficiency of the routing node are improved. Firstly, the method controls the routing node to broadcast and send DIS messages in the current channel according to a preset time interval, so that a root node or a member node included in a certain wireless network can receive the DIS messages in the current channel of the routing node, and feeds back DIO messages including network information of the wireless network to the routing node. Then, the method monitors whether the routing node receives a DIO message from a certain wireless network corresponding to the DIS message so as to know the actual network environment corresponding to the routing node under the current channel. Then, the method judges whether the routing node under the current channel receives the DIO message corresponding to the DIS message in the broadcasting time period that the broadcasting times of the DIS message are not more than the preset broadcasting times according to the monitoring result of the DIO message obtained by monitoring the receiving condition of the DIO message. Finally, when the routing node is judged to receive the DIO message in the broadcasting time period, the method controls the routing node to send a DAO message to a root node in a wireless network corresponding to the DIO message according to a current channel so as to access the wireless network based on the current channel; when the method judges that the routing node does not receive the DIO message in the broadcasting time period, the routing node is controlled to switch the current channel, and the step of sending DIS messages in a broadcasting mode is carried out continuously based on the switched channel, so that the current channel of the routing node is automatically switched according to the actual network environment of the routing node, the routing node is enabled to access a wireless network based on a proper channel, the labor consumption is reduced, and the network access flexibility, the network access accuracy and the network access efficiency of the routing node are improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the claims of the present invention, and it is obvious for those skilled in the art that other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a channel switching network access method according to an embodiment of the present invention.
Fig. 2 is a second flowchart of a channel switching network access method according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of step S290 in fig. 2.
Fig. 4 is a third schematic flow chart of a channel switching network access method according to an embodiment of the present invention.
Fig. 5 is a block diagram of a channel switching network access apparatus according to an embodiment of the present invention.
Fig. 6 is a second block diagram of a channel switching network access apparatus according to an embodiment of the present invention.
Fig. 7 is a third block diagram of a channel switching network access apparatus according to an embodiment of the present invention.
Icon: 100-channel switching network access device; 110-DIS sending module; 120-DIO monitoring module; 130-DIO judgment module; 140-DAO sending module; 150-channel switching module; 160-a feedback monitoring module; 170-feedback judgment module; 180-an analysis judgment module; 190-a network access module; 101-parameter configuration module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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.
It should be noted that: 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.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a flowchart illustrating a channel switching network access method according to an embodiment of the present invention. In the embodiment of the present invention, the channel switching network access method is applied to a routing node, and is configured to automatically switch a current channel of the routing node according to an actual network environment of the routing node, so that the routing node can access a wireless network established by using an RPL routing protocol based on a suitable channel, thereby reducing human consumption for network access of the routing node, and improving network access flexibility, network access accuracy, and network access efficiency of the routing node, where the routing node may be a routing device conforming to the RPL routing protocol. The detailed flow and steps of the channel switching network access method shown in fig. 1 are described in detail below.
Step S210, broadcasting and sending the DIS message in the current channel according to a preset time interval.
In this embodiment, a network Information request DIS (DODAG Information Solicitation, DODAG network structure network Information request) message indicates a request for the routing node to access a wireless network and acquire the wireless network Information. And the routing node broadcasts and sends the DIS message under the current channel according to a preset time interval, so that a root node or a member node in a wireless network adopting an RPL (resilient packet layer) routing protocol can receive the DIS message under the current channel of the routing node. The preset time interval may be 1 second, 1.5 seconds, or 2 seconds, and the specific time interval value may be configured differently according to actual requirements.
Step S220, monitoring whether a DIO message from a certain wireless network corresponding to the DIS message is received.
In this embodiment, a network Information Object DIO (DODAG Information Object, DODAG network structure network Information Object) packet indicates data including network Information of a certain wireless network, which is fed back to the routing node after a certain wireless network receives a DIS packet from the routing node. If a root node or a member node in a wireless network adopting an RPL routing protocol can receive the DIS message in the current channel of the routing node, the root node or the member node in the wireless network sends a DIO message corresponding to the DIS message to the routing node. The routing node can know whether a wireless network which can be accessed by the routing node exists in an actual network environment corresponding to the routing node under a current channel or not by monitoring whether the routing node receives a DIO message corresponding to the DIS message or not.
Step S230, determining whether the DIO packet is received in a broadcast time period in which the DIS packet broadcast frequency is not greater than a preset broadcast frequency according to the DIO packet monitoring result.
In this embodiment, when the routing node broadcasts and sends the DIS message according to the preset time interval in the current channel, the routing node records the broadcast times of the DIS message in the current channel. And the routing node judges whether the routing node receives the DIO message in a broadcasting time period in which the broadcasting times of the DIS message are not more than the preset broadcasting times or not according to the recorded broadcasting times of the DIS message and a DIO message monitoring result obtained by monitoring the receiving condition of the DIO message. The broadcast time period is a time period which is specially used for broadcasting and sending the DIS message and takes a time point of starting sending the DIS message as a starting point under a current channel by a routing node, the maximum time length of the broadcast time period is a value obtained by subtracting one time from a preset broadcast frequency multiplied by a time value corresponding to a preset time interval, the preset broadcast frequency can be 3 times, 4 times or 5 times, and the specific frequency value can be configured differently according to actual requirements.
Step S240, sending a DAO packet to a root node in the wireless network corresponding to the DIO packet, so as to access the wireless network.
In this embodiment, after the routing node performs step S230, and determines that the routing node receives the DIO packet in the broadcast time period in which the DIS packet broadcast frequency is not greater than the preset broadcast frequency, the routing node correspondingly performs step S240. At this time, a wireless network to which the routing node can access exists in an actual network environment corresponding to the routing node under the current channel, and the wireless network is the wireless network for sending the DIO message. Wherein, a Destination Advertisement Object (DAO) message represents a network access permission request of the routing node accessing a wireless network for sending the DIO message, and the routing node requests to access the wireless network based on a current channel by sending the DAO message to a root node in the wireless network corresponding to the DIO message. The routing node may directly send the DAO packet to a root node in the wireless network, or may send the DAO packet to a member node in the wireless network so that the member node forwards the DAO packet to the root node in the wireless network.
Step S250, switching channels.
In this embodiment, after the routing node completes the step S230, and determines that the routing node does not receive the DIO packet within the broadcast time period in which the DIS packet broadcast frequency is not greater than the preset broadcast frequency, the routing node correspondingly executes the step S250. At this time, the routing node does not have a wireless network to which the routing node can access in an actual network environment corresponding to the current channel, the routing node switches the current channel of the routing node, and after the channel is switched, the routing node jumps to the step S210 to broadcast and send the DIS message in the switched channel according to the preset time interval to continue execution, so that the routing node can automatically switch the current channel of the routing node according to the actual network environment of the routing node, the routing node can access the wireless network built by using the RPL routing protocol based on a proper channel, the manpower consumption of the routing node for network access is reduced, and the network access flexibility, the network access accuracy and the network access efficiency of the routing node are improved.
Fig. 2 is a second flowchart of a channel switching network access method according to an embodiment of the present invention. In this embodiment of the present invention, the channel switching network access method may further include:
step S260, monitoring whether a network access feedback packet corresponding to the DAO packet is received from the root node.
In this embodiment, after receiving a DAO packet from a routing node that wants to access a network, a root node in a wireless network determines whether to allow the routing node to access the wireless network by looking up an access network address table recorded by the root node, and feeds back a network access feedback packet indicating whether to allow or disallow network access to the routing node according to a determination structure, where the network access feedback packet records channel information currently corresponding to the root node in the wireless network.
In this embodiment, after determining that the routing node receives the DIO packet in the broadcast period in which the DIS packet broadcast frequency is not greater than the preset broadcast frequency, and performing step S240, the routing node may know the feedback condition of the wireless network to the routing node by monitoring whether the routing node receives the network access feedback packet corresponding to the DAO packet from the root node.
Step S270, judging whether the network access feedback message is received in a feedback time period corresponding to a preset feedback time length according to a network access feedback monitoring result.
In this embodiment, the feedback time period is a time period, which is dedicated to wait for the root node to feed back the network access feedback packet, of the routing node from a time point of starting to send a DAO packet in a current channel, where a preset feedback time corresponding to the feedback time period may be 3 minutes, 4 minutes, or 3.5 minutes, and a specific time value may be configured differently according to actual requirements. After the routing node executes the step S260 to obtain a network access feedback monitoring result indicating a receiving condition of the network access feedback packet, the routing node determines whether the routing node receives the network access feedback packet from the root node in the wireless network within a feedback time period corresponding to the preset time length according to the network access feedback monitoring result.
Step S280, analyzing the network access feedback message, and judging whether the wireless network allows the routing node to access the network according to the analysis result.
In this embodiment, after the routing node performs the step S270, and determines that the routing node receives the network access feedback packet in the feedback time period corresponding to the preset feedback time duration, the routing node correspondingly performs the step S280. At this time, the routing node analyzes the received network access feedback message to obtain a corresponding analysis result, and judges whether the wireless network allows the routing node to access the network according to the analysis result.
In this embodiment of the present invention, after the routing node completes executing the step S270, and determines that the routing node does not receive the network access feedback packet within the feedback time period corresponding to the preset feedback time length, the routing node correspondingly executes the step S250. At this time, the routing node switches its current channel, and after the channel is switched, the routing node jumps to step S210 to broadcast and send DIS packets in the switched channel according to the preset time interval to continue execution, so as to ensure that the routing node can automatically switch the current channel of the routing node according to the actual network environment of the routing node, and enable the routing node to access the wireless network built by using the RPL routing protocol based on a proper channel.
And step S290, controlling the routing node to access the wireless network according to the channel consistent with the root node.
In this embodiment, after the routing node performs the step S280, and determines that the wireless network allows the routing node to access the network according to the analysis result, the routing node correspondingly performs the step S290. At this time, the routing node accesses the control node to the wireless network according to the channel consistent with the root node, so that the communication stability and the communication accuracy of the routing node during communication in the wireless network are improved.
Optionally, please refer to fig. 3, which is a flowchart illustrating step S290 in fig. 2. In this embodiment, the step S290 includes a substep S291, a substep S292, and a substep S293.
And a substep S291, determining whether the current channel of the routing node is the same as the channel corresponding to the root node according to the analysis result.
In this embodiment, the routing node receives a network access feedback packet, and analyzes the network access feedback packet to obtain channel information of a root node in a wireless network corresponding to the network access feedback packet and a network access permission status of the wireless network to the routing node. And the routing node judges whether the current channel of the routing node is the same as the channel corresponding to the root node or not according to the channel information corresponding to the root node in the analysis result.
And a substep S292 of directly accessing the wireless network corresponding to the root node.
In this embodiment, after the routing node completes the step S291, and determines that the current channel of the routing node is the same as the channel corresponding to the root node, the routing node correspondingly performs substep S292. At this time, the routing node directly accesses the wireless network corresponding to the root node by using the current channel.
And a substep S293 of adjusting the current channel of the routing node to a channel corresponding to the root node, and accessing the adjusted channel to the wireless network corresponding to the root node.
In this embodiment, after the routing node completes the step S291, and determines that the current channel of the routing node is different from the channel corresponding to the root node, the routing node correspondingly performs the substep S293. At this time, the routing node adjusts its current channel by using the channel corresponding to the root node, so as to adjust the current channel of the routing node to the channel corresponding to the root node, and thus access the wireless network corresponding to the root node according to the adjusted channel.
In this embodiment of the present invention, after the routing node performs step S280, and determines that the wireless network does not allow the routing node to access the network according to the analysis result, the routing node correspondingly performs step S250. At this time, the routing node sends an off-network message to a root node in the wireless network to inform the root node that the root node needs to disconnect the wireless network corresponding to the root node. The routing node may directly send the off-network packet to a root node in the wireless network, or may send the off-network packet to a member node in the wireless network, so that the member node forwards the off-network packet to the root node in the wireless network.
After the routing node completes sending the off-network message, the routing node switches the current channel of the routing node, and after the channel is switched, the routing node jumps to the step S210 to broadcast and send the DIS message in the switched channel according to the preset time interval to continue executing, so that the routing node can automatically switch the current channel of the routing node according to the actual network environment of the routing node, and the routing node can access the wireless network built by adopting an RPL routing protocol based on a proper channel.
Fig. 4 is a third flowchart of a channel switching network access method according to an embodiment of the present invention. In this embodiment of the present invention, before the step S210, the channel switching network access method may further include a step S209.
Step S209, configure a preset time interval, a preset number of broadcast times, and a preset feedback duration.
In this embodiment, the preset time interval, the preset broadcast times and the preset feedback duration corresponding to the routing node may be configured differently by a manufacturer of the routing node and/or a user of the routing node according to actual requirements.
Fig. 5 is a block diagram of a channel switching network access apparatus 100 according to an embodiment of the present invention. In the embodiment of the present invention, the channel switching network access apparatus 100 is applied to the routing node, and is configured to automatically switch the current channel of the routing node according to the actual network environment of the routing node, so that the routing node can access a wireless network established by using an RPL routing protocol based on a suitable channel. The channel switching network access device 100 may include a DIS sending module 110, a DIO monitoring module 120, a DIO determining module 130, a DAO sending module 140, and a channel switching module 150.
The DIS sending module 110 is configured to broadcast a network information request DIS message in a current channel according to a preset time interval.
In this embodiment, the DIS sending module 110 may execute step S210 shown in fig. 1, and the specific execution process may refer to the above detailed description of step S210.
The DIO monitoring module 120 is configured to monitor whether a DIO packet of a network information object from a certain wireless network is received, where the DIO packet corresponds to the DIS packet.
In this embodiment, the DIO monitoring module 120 may execute step S220 shown in fig. 1, and the specific execution process may refer to the above detailed description of step S220.
The DIO determining module 130 is configured to determine whether the DIO packet is received in a broadcast time period in which the DIS packet broadcast frequency is not greater than a preset broadcast frequency according to a DIO packet monitoring result.
In this embodiment, the DIO determining module 130 may execute step S230 shown in fig. 1, and the specific execution process may refer to the above detailed description of step S230.
The DAO sending module 140 is configured to send a destination advertisement object DAO packet to a root node in a wireless network corresponding to the DIO packet if the DIO packet is received in the broadcast time period, so as to access the wireless network.
In this embodiment, the DAO sending module 140 may execute step S240 shown in fig. 1, and the specific execution process may refer to the above detailed description of step S240.
The channel switching module 150 is configured to switch the current channel if the DIO packet is not received in the broadcast time period, and skip to the step of broadcasting and sending the DIS packet in the current channel according to the preset time interval to continue execution.
In this embodiment, the channel switching module 150 may execute step S250 shown in fig. 1, and the specific execution process may refer to the above detailed description of step S250.
Fig. 6 is a second block diagram of the channel switching network access apparatus 100 according to the embodiment of the present invention. In this embodiment of the present invention, the channel switching network access apparatus 100 may further include a feedback monitoring module 160, a feedback judgment module 170, an analysis judgment module 180, and a network access module 190.
The feedback monitoring module 160 is configured to monitor whether a network access feedback packet corresponding to the DAO packet is received from the root node.
In this embodiment, the feedback monitoring module 160 may execute step S260 shown in fig. 2 after the DAO sending module 140 executes corresponding steps, and the specific execution process may refer to the above detailed description of step S260.
The feedback judgment module 170 is configured to judge whether the network access feedback packet is received within a feedback time period corresponding to a preset feedback duration according to a network access feedback monitoring result.
In this embodiment, the feedback determining module 170 may perform step S270 shown in fig. 2 after the feedback monitoring module 160 performs the corresponding steps, and the specific performing process may refer to the above detailed description of step S270.
The analysis and judgment module 180 is configured to analyze the network access feedback packet if the network access feedback packet is received in the feedback time period, and judge whether the wireless network allows the routing node to access the network according to an analysis result.
In this embodiment, the parsing determination module 180 may perform step S280 shown in fig. 2, and the detailed process of step S280 may be described in detail above.
The network access module 190 is configured to control the routing node to access the wireless network according to a channel consistent with the root node if the network access feedback packet is received in the feedback time period and the wireless network allows the routing node to access the network.
In this embodiment, the manner that the network access module 190 controls the routing node to access the wireless network according to the channel consistent with the root node includes:
judging whether the current channel of the routing node is the same as the corresponding channel of the root node or not according to the analysis result;
if the root node is the same as the root node, directly accessing the wireless network corresponding to the root node;
if the current channel of the routing node is different from the channel corresponding to the root node, the current channel of the routing node is adjusted to be the channel corresponding to the root node, and the adjusted channel is accessed to the wireless network corresponding to the root node.
The network access module 190 may execute step S290 shown in fig. 2, and sub-steps S291, S292, and S293 shown in fig. 3, and the specific execution process may refer to the detailed description of step S290, sub-step S291, sub-step S292, and sub-step S293 above.
The channel switching module 150 is further configured to send an offline message to the root node in the wireless network, switch the current channel, and jump to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue executing if the network access feedback message is received in the feedback time period and the wireless network does not allow the routing node to access the network.
The channel switching module 150 is further configured to switch the current channel if the network access feedback message is not received in the feedback time period, and skip to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
Fig. 7 is a third block diagram of the channel switching network access apparatus 100 according to the embodiment of the present invention. In this embodiment of the present invention, the channel switching network access apparatus 100 may further include a parameter configuration module 101.
The parameter configuration module 101 is configured to configure a preset time interval, a preset broadcast frequency, and a preset feedback duration.
In this embodiment, the parameter configuration module 101 may execute step S209 shown in fig. 4, and the specific execution process may refer to the above detailed description of step S209.
In summary, in the channel switching network access method and the device provided in the embodiments of the present invention, the channel switching network access method can automatically switch the current channel of the routing node according to the actual network environment of the routing node, so that the routing node accesses the wireless network based on an appropriate channel, thereby reducing human consumption and improving the network access flexibility, network access accuracy, and network access efficiency of the routing node.
Firstly, the method controls the routing node to broadcast and send DIS messages in the current channel according to a preset time interval, so that a root node or a member node included in a certain wireless network can receive the DIS messages in the current channel of the routing node, and feeds back DIO messages including network information of the wireless network to the routing node. Then, the method monitors whether the routing node receives a DIO message from a certain wireless network corresponding to the DIS message so as to know the actual network environment corresponding to the routing node under the current channel. Then, the method judges whether the routing node under the current channel receives the DIO message corresponding to the DIS message in the broadcasting time period that the broadcasting times of the DIS message are not more than the preset broadcasting times according to the monitoring result of the DIO message obtained by monitoring the receiving condition of the DIO message. Finally, when the routing node is judged to receive the DIO message in the broadcasting time period, the method controls the routing node to send a DAO message to a root node in a wireless network corresponding to the DIO message according to a current channel so as to access the wireless network based on the current channel; when the method judges that the routing node does not receive the DIO message in the broadcasting time period, the routing node is controlled to switch the current channel, and the step of sending DIS messages in a broadcasting mode is carried out continuously based on the switched channel, so that the current channel of the routing node is automatically switched according to the actual network environment of the routing node, the routing node is enabled to access a wireless network based on a proper channel, the labor consumption is reduced, and the network access flexibility, the network access accuracy and the network access efficiency of the routing node are improved.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A channel switching network access method is applied to a routing node, and comprises the following steps:
broadcasting and sending a network information request DIS message in a current channel according to a preset time interval;
monitoring whether a network information object (DIO) message from a certain wireless network corresponding to the DIS message is received or not;
judging whether the DIO message is received in a broadcasting time period in which the broadcasting frequency of the DIS message is not more than the preset broadcasting frequency according to the monitoring result of the DIO message so as to determine whether an accessible wireless network exists in the actual network environment corresponding to the routing node under the current channel;
if the DIO message is received in the broadcast time period, sending a Destination Advertisement Object (DAO) message to a root node in a wireless network corresponding to the DIO message so as to access the wireless network;
and if the DIO message is not received in the broadcasting time period, switching the current channel, and skipping to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
2. The method of claim 1, wherein after sending a Destination Advertisement Object (DAO) packet to a root node in the DIO packet-corresponding wireless network, the method further comprises:
monitoring whether a network access feedback message corresponding to the DAO message from the root node is received or not;
judging whether the network access feedback message is received in a feedback time period corresponding to a preset feedback time length according to a network access feedback monitoring result;
if the network access feedback message is received in the feedback time period, analyzing the network access feedback message, and judging whether the wireless network allows the routing node to access the network according to an analysis result;
and if the network access feedback message is received in the feedback time period and the wireless network allows the routing node to access the network, controlling the routing node to access the wireless network according to a channel consistent with the root node.
3. The method of claim 2, wherein the step of controlling the routing node to access the wireless network according to the channel consistent with the root node comprises:
judging whether the current channel of the routing node is the same as the corresponding channel of the root node or not according to the analysis result;
if the root node is the same as the root node, directly accessing the wireless network corresponding to the root node;
if the current channel of the routing node is different from the channel corresponding to the root node, the current channel of the routing node is adjusted to be the channel corresponding to the root node, and the adjusted channel is accessed to the wireless network corresponding to the root node.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and if the network access feedback message is received in the feedback time period and the wireless network does not allow the routing node to access the network, sending an off-network message to the root node in the wireless network, switching the current channel, and skipping to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
5. The method of claim 4, further comprising:
and if the network access feedback message is not received in the feedback time period, switching the current channel, and skipping to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
6. The method of claim 5, wherein the method comprises:
and configuring a preset time interval, preset broadcasting times and preset feedback time.
7. A channel switching network access apparatus, applied to a routing node, the apparatus comprising:
a DIS sending module, configured to broadcast a network information request DIS message in a current channel according to a preset time interval;
a DIO monitoring module, configured to monitor whether a DIO packet of a network information object from a certain wireless network corresponding to the DIS packet is received, so as to determine whether an accessible wireless network exists in an actual network environment corresponding to the routing node in a current channel;
a DIO judgment module for judging whether the DIO message is received in a broadcasting time period in which the broadcasting frequency of the DIS message is not more than the preset broadcasting frequency according to the monitoring result of the DIO message;
a DAO sending module, configured to send a destination advertisement object DAO packet to a root node in a wireless network corresponding to the DIO packet to access the wireless network if the DIO packet is received within the broadcast time period;
and the channel switching module is used for switching the current channel if the DIO message is not received in the broadcasting time period, and skipping to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
8. The apparatus of claim 7, further comprising:
the feedback monitoring module is used for monitoring whether a network access feedback message corresponding to the DAO message from the root node is received or not;
the feedback judgment module is used for judging whether the network access feedback message is received in a feedback time period corresponding to a preset feedback time length according to a network access feedback monitoring result;
the analysis and judgment module is used for analyzing the network access feedback message if the network access feedback message is received in the feedback time period, and judging whether the wireless network allows the routing node to access the network according to an analysis result;
and the network access module is used for controlling the routing node to access the wireless network according to a channel consistent with the root node if the network access feedback message is received in the feedback time period and the wireless network allows the routing node to access the network.
9. The apparatus of claim 8,
the channel switching module is further configured to send an off-network message to the root node in the wireless network, switch a current channel, and jump to the step of broadcasting and sending the DIS message in the current channel according to a preset time interval to continue execution if the network access feedback message is received in the feedback time period and the wireless network does not allow the routing node to access the network;
and the channel switching module is further configured to switch the current channel if the network access feedback message is not received in the feedback time period, and skip to the step of broadcasting and sending the DIS message in the current channel according to the preset time interval to continue execution.
10. The apparatus of claim 9, further comprising:
and the parameter configuration module is used for configuring the preset time interval, the preset broadcasting times and the preset feedback time length.
CN201810782301.2A 2018-07-17 2018-07-17 Channel switching network access method and device Active CN108934051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810782301.2A CN108934051B (en) 2018-07-17 2018-07-17 Channel switching network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810782301.2A CN108934051B (en) 2018-07-17 2018-07-17 Channel switching network access method and device

Publications (2)

Publication Number Publication Date
CN108934051A CN108934051A (en) 2018-12-04
CN108934051B true CN108934051B (en) 2021-11-23

Family

ID=64447806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810782301.2A Active CN108934051B (en) 2018-07-17 2018-07-17 Channel switching network access method and device

Country Status (1)

Country Link
CN (1) CN108934051B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099498B (en) * 2020-03-31 2022-05-20 国网浙江省电力有限公司电力科学研究院 IPv 6-NDP-based wireless search automatic networking method
CN112770348A (en) * 2020-12-18 2021-05-07 展讯半导体(成都)有限公司 Wireless mobile communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648143A (en) * 2013-12-23 2014-03-19 工业和信息化部电子工业标准化研究院 Method and device for prolonging life of IPv6 (internet protocol version 6) wireless sensor network
CN103796272A (en) * 2014-02-14 2014-05-14 重庆邮电大学 Method for constructing route capable of prolonging service life of IPv6 wireless sensor network
CN105848238A (en) * 2015-01-16 2016-08-10 中国科学院上海高等研究院 IPv6 routing method of wireless sensor networks based on multiple parameters
CN107071856A (en) * 2017-04-18 2017-08-18 江苏中科羿链通信技术有限公司 A kind of node cut-in method of channel wireless radio multi Mesh network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648143A (en) * 2013-12-23 2014-03-19 工业和信息化部电子工业标准化研究院 Method and device for prolonging life of IPv6 (internet protocol version 6) wireless sensor network
CN103796272A (en) * 2014-02-14 2014-05-14 重庆邮电大学 Method for constructing route capable of prolonging service life of IPv6 wireless sensor network
CN105848238A (en) * 2015-01-16 2016-08-10 中国科学院上海高等研究院 IPv6 routing method of wireless sensor networks based on multiple parameters
CN107071856A (en) * 2017-04-18 2017-08-18 江苏中科羿链通信技术有限公司 A kind of node cut-in method of channel wireless radio multi Mesh network

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Improving Performance of Route Maintenance Processes in RPL Protocol;Lapas Pradittasnee;《ICITEE》;20171231;全文 *
RPL 路由协议的研究与改进;俞柯,王慧锋;《移动互联与通信技术》;20180331;全文 *
基于RPL 协议的路由度量标准研究与改进;齐玥;《兰州大学研究生学位论文》;20150501;第3章 *
面向低功耗有损网络的RPL 协议性能评价;路金明;《无线通信技术》;20171231;全文 *

Also Published As

Publication number Publication date
CN108934051A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN108495348B (en) Network switching method, equipment and medium for user equipment
CN107517136B (en) Method, device and system for realizing heartbeat keep-alive
CN108766422A (en) Response method, device, storage medium and the computer equipment of speech ciphering equipment
US8111642B2 (en) Using traffic patterns to improve sleep mode efficiency in a radio handset
US20240049021A1 (en) Data analytics-based service level specification (sls) assurance
US8060054B1 (en) Method and system for reactive power-saving
US20230050709A1 (en) Supporting switching between base stations that provide multicast and broadcast service
JP2015528670A (en) Wireless communication terminal, communication method, program, information processing apparatus, and distribution server
EP2929729B1 (en) Methods and apparatus for selecting an inter-radio access technology for an electronic device
US8249505B1 (en) Method and apparatus for selecting a mode in a multi-mode communications client
EP2873158B1 (en) Method and apparatus for reducing power consumption of simultaneous receivers in wireless communications device
CN108934051B (en) Channel switching network access method and device
EP3010285B1 (en) Network handover method and terminal device
CN109729505A (en) A kind of method for processing business and the network equipment
WO2020253228A1 (en) Method and device for cell management
CN113498093A (en) SCG failure processing method, device, terminal and network side equipment
KR101164743B1 (en) Techniques for handling service flows in wireless communication systems
JP2024050533A (en) A mechanism for coordinating seamless service continuity to edge application servers during relocation
US20160135133A1 (en) Methods and devices for adjusting signal strength of router
CN111107561B (en) DRX parameter obtaining and configuring method, user terminal, base station and readable storage medium
CN107484236A (en) Wi-Fi hotspot scan control method, mobile terminal and storage medium
EP2907348B1 (en) Method, network device, computer program and computer program product for determining a set of power state parameters
CN109245974A (en) Household electrical appliance distribution method, apparatus and computer readable storage medium
CN113347668B (en) Load balancing method and device, electronic equipment and storage medium
US20230115955A1 (en) Voice call method and apparatus and electronic device

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
CP02 Change in the address of a patent holder

Address after: 3rd Floor, Building 6, Guangqian Industrial Zone, Longzhu 3rd Road, Longzhu 3rd Road, Longguang Community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province, 518000

Patentee after: SHENZHEN FRIENDCOM TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 518000 6th floor, building 17, Guangqian Industrial Zone, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN FRIENDCOM TECHNOLOGY DEVELOPMENT Co.,Ltd.

CP02 Change in the address of a patent holder