WO2020119523A1 - 网络信道的切换方法、装置、设备和存储介质 - Google Patents

网络信道的切换方法、装置、设备和存储介质 Download PDF

Info

Publication number
WO2020119523A1
WO2020119523A1 PCT/CN2019/122705 CN2019122705W WO2020119523A1 WO 2020119523 A1 WO2020119523 A1 WO 2020119523A1 CN 2019122705 W CN2019122705 W CN 2019122705W WO 2020119523 A1 WO2020119523 A1 WO 2020119523A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel switching
node device
network
switching information
network channel
Prior art date
Application number
PCT/CN2019/122705
Other languages
English (en)
French (fr)
Inventor
齐曰霞
姜江建
Original Assignee
乐鑫信息科技(上海)股份有限公司
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 乐鑫信息科技(上海)股份有限公司 filed Critical 乐鑫信息科技(上海)股份有限公司
Priority to US17/413,442 priority Critical patent/US11943695B2/en
Publication of WO2020119523A1 publication Critical patent/WO2020119523A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/34Modification of an existing route
    • H04W40/36Modification of an existing route due to handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • Embodiments of the present invention relate to the field of network communication technology, and in particular, to a network channel switching method, device, device, and storage medium.
  • the number of node devices included in the mesh network is continuously increasing, and can reach tens or even hundreds of node devices.
  • the root node device of the mesh network receives the channel switching message of the router, and only depends on the reliable processing between it and the router to perform channel switching and broadcast to the mesh network in the form of broadcast.
  • the other node devices in the network send channel switching information to enable other node devices in the mesh network to perform channel switching.
  • due to network congestion in the mesh network or interference between various node devices there will be a large number of node devices in the mesh network that cannot receive channel switching information, thereby reducing the efficiency of mesh network channel switching.
  • Embodiments of the present invention provide a network channel switching method, device, device, and storage medium, which can greatly improve the success rate of each node device in the mesh network to receive network channel switching information, so that channel switching of the entire mesh network can be maintained. It is completed based on the connection of each node device in the network, which improves the channel switching efficiency of the mesh network.
  • an embodiment of the present invention provides a network channel switching method.
  • the method includes:
  • the current channel is switched to the target channel.
  • an embodiment of the present invention further provides a network channel switching device, which includes:
  • the information transceiving module is used to obtain network channel switching information sent by the upper-level parent node device with a connection relationship, and send the network channel switching information to the lower-level child node device with a connection relationship;
  • the channel switching module is configured to switch from the current channel to the target channel according to the received network channel switching information.
  • an embodiment of the present invention further provides a device, including:
  • One or more processors are One or more processors;
  • Storage device for storing one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the network channel switching method according to any embodiment of the present invention.
  • an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the network channel switching method according to any embodiment of the present invention is implemented.
  • each node device in the mesh network continues to send to the lower-level child node device by acquiring the network channel switching information sent by the upper-level parent node device, and performs channel switching according to the received network channel information.
  • the success rate of each node device in the mesh network to receive network channel switching information, so that the channel switching of the entire mesh network can be completed on the basis of maintaining the connection of each node device in the network, and the channel switching efficiency of the mesh network is improved.
  • FIG. 1 is a schematic structural diagram of a mesh network provided by an embodiment of the present invention.
  • FIG. 2 is a flowchart of a network channel switching method according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart of a network channel switching method according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of a network channel switching method according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of a network channel switching device according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a device according to Embodiment 5 of the present invention.
  • the network channel switching method, apparatus, device, and storage medium of the embodiments of the present invention may be applicable to wireless mesh networks (such as mesh networks). Channel migration.
  • the mesh network is composed of routers and multiple node devices. When constructing a mesh network, it can be constructed by using a point-to-point or point-to-multipoint topology structure between each node device. As shown in FIG. 1, the mesh network includes a router 10, a root node device 11, an intermediate node device 12-13, and a leaf node device 14-16.
  • the intermediate node device 13 is connected to the leaf node device 16 in a point-to-point manner, and the root node device 11 is connected to the intermediate node device 12 and the intermediate node device 13 in a point-to-multipoint manner; the intermediate node 12 is connected to the leaf node 14 and the leaf node 15 are connected in a point-to-multipoint manner.
  • each node device in the network can classify according to the direct or indirect connection relationship between each node device and the router, and use the node device directly connected to the router as the first-level node device, as shown in the root node 11 in Figure 1;
  • a node device that is indirectly connected by a node device between routers serves as a secondary node device, as shown in FIG. 1 as the intermediate node device 12-13;
  • a node device that is indirectly connected to the router through two node devices is used as a tertiary node device As shown in the leaf node devices 14-16 in FIG. 1, and so on, each node device in the wireless mesh network is ranked.
  • Each embodiment of the present invention uses the mesh network shown in FIG. 1 as an example to further describe the wireless mesh network channel switching method of each embodiment of the present invention. It can be understood that the mesh network in FIG. 1 described here is described. It is only used to explain the present invention, not to limit the present invention.
  • the network applicable to the network channel switching method provided by each embodiment of the present invention includes any network composed of multiple groups of devices having parent-child node connection relationship nodes.
  • the drawings only show parts but not all structures related to the present invention.
  • FIG. 2 is a flowchart of a network channel switching method according to Embodiment 1 of the present invention.
  • This embodiment is applicable to a channel composed of multiple groups of devices that have a parent-child node connection relationship node to perform channel switching. For example, it may be used for Channel switching in mesh networks.
  • the method may be performed by a network channel switching device provided by an embodiment of the present invention.
  • the device may be implemented in hardware and/or software, for example, it may be configured in any node device in a mesh network, where the wireless mesh network
  • the node devices in can include smart phones, smart TVs, smart speakers, tablet computers, or wearable devices. As shown in Figure 2, it specifically includes the following steps:
  • the network channel switching information may be related information of the channel switching declaration (Channel Switching Announcement, CSA) defined in the wireless fidelity (WIreless-FIdelity, Wi-Fi) protocol, which may be used to instruct the node devices in the network to switch channels .
  • the network channel switching information may include channel switching wait value (csa_count), target channel to be switched (csa_newchan), node status and other information.
  • the channel switching wait value may be used to indicate the number of beacons waiting between each node device from receiving the network channel switching information to performing the channel switching operation, by which the time when each node device performs the network channel switching can be determined.
  • the target channel to be switched may refer to a channel to be switched by the current node device, that is, a channel to which the mesh network will be switched, that is, a channel to which a router in the mesh network has switched.
  • the node state may be the state of the node device that sends the network channel switching information, such as a connectable state (ie, AP state) and a non-connectable state (ie, station state).
  • the embodiments of the present invention may be executed by any node device in the mesh network.
  • the operations described in the embodiments of the present invention are performed, that is, the entire mesh network can complete the channel switching of the entire mesh network while maintaining the connection of each node device in the network.
  • the current node device is used as any node device in the mesh network, and then the current node device executes the method of the embodiment of the present invention for introduction.
  • the upper-level parent node having a connection relationship may refer to a node device that is connected to the current node device in the mesh network and is one level above the current node device.
  • the superior parent node device that has a connection relationship with the intermediate node device 12 may be the root node device 11.
  • the superior parent node device having a connection relationship with the root node device 11 may be the router 10.
  • the lower-level child node device with a connection relationship may refer to an upper-level parent node device that is connected to the current node device and is in the current node device in the mesh network.
  • the lower-level child node devices that have a connection relationship with the intermediate node device may be a leaf node device 14 and a leaf node device 15.
  • the current node device may receive network channel switching information sent by the parent node device connected to it and then send it to the child node device connected to it.
  • the receiving and sending process may include the following three steps:
  • A. Receive network channel switching information broadcast by a beacon of a parent parent node device with a connection relationship.
  • the beacon may be a channel for sending and receiving messages between each node device in the mesh network, and each node device has its own beacon.
  • each node device can send a network channel switching message to a subordinate node device through its own beacon. For example, when a node device wants to send information to another node device in the network, the information to be sent can be added to its own beacon, and then the information to be sent can be sent to the entire network through the beacon in the form of a network-wide broadcast .
  • the upper-level parent node device of the current node device adds network channel switching information to the parent node device beacon and sends it to the wireless mesh network in the form of a network-wide broadcast.
  • the current node device listens to its superior parent node beacon When the information is sent, the information is received, that is, the network channel switching information sent by the parent node device of the current node device is obtained.
  • the information broadcast by the beacon of the upper-level parent node device may also include the identification of the parent node device and/or the identification of the lower-level child node device of the parent node device (that is, the current node device), etc. , In order to determine the recipient of the information sent.
  • the process of the node device adding the acquired network channel switching information to its own node beacon may be: directly adding the network channel switching information acquired from the parent node device to its own beacon
  • the network channel switching information acquired from the parent node device is encrypted and added to its own beacon.
  • the specific encryption algorithm is not limited in this embodiment. For example, a public-private key encryption algorithm, a hash encryption algorithm, a digital signature algorithm, etc. may be used.
  • the information can be directly obtained if the network channel switching information is added to the beacon.
  • the switching information is encrypted, it may be that the acquired information is decrypted according to a preset algorithm to obtain network channel switching information.
  • different node devices in the mesh network can use the same encryption algorithm to encrypt network channel switching information and decrypt the received beacon broadcast data information; or each node device has its own beacon Encryption algorithm, only the node device and the subordinate child node device of the node device know the encryption and decryption algorithm of the node device's beacon data, which is used by the node device to encrypt the network channel switching information and to obtain the parent node beacon broadcast Data information is decrypted.
  • the current node device when it sends a beacon to the lower-level sub-node device connected thereto, it may send the network channel switching information in its own beacon to the lower-level sub-node device in the form of a network-wide broadcast.
  • the current node device may send the network channel switching information in its own node beacon to all node devices in the wireless mesh network in the form of a whole-network broadcast, but only the wireless node network and the current node device Only the lower-level child node device with the connection relationship receives the network channel switching information sent by the current node device.
  • the node device in the mesh network is the root node device
  • the network channel switching information sent by the router is obtained, and the network channel switching information is sent to the root node device having a connection relationship
  • the lower-level child node device if the node device in the non-mesh network is a non-root node device, obtain the network channel switching information sent by the parent node device with the connection relationship, and send the network channel switching information to the connection relationship.
  • Lower-level child node device if the node device in the mesh network is the last-level node device and there is no lower-level child node device with a connection relationship, the last-level node device only obtains the network channel sent by the upper-level parent node device with the connection relationship Switching information, no longer continue to send network channel switching information.
  • the current node device in order to ensure that the node device in the wireless mesh network can also receive network channel switching information, the current node device is sending to the subordinate child node device connected to it
  • the network channel switching information may be sent multiple times according to a preset beacon interval. Specifically, it may be how many network channel switching messages the current node device receives from the upper-level parent node device, and how many times the network channel switching information is sent to the next-level child node device.
  • the root node device may determine how many times the network channel switching information is sent to the subordinate node device according to the channel switching information and/or preset rules delivered by the router.
  • S202 Switch from the current channel to the target channel according to the received network channel switching information.
  • the current channel may be the channel where the current node device is currently located, that is, the channel where the mesh network is located before the channel is switched.
  • the target channel is the channel to be switched by the current node device, that is, the channel to which the mesh network will be switched, that is, the channel to which the router in the mesh network has switched.
  • the specific execution process of switching from the current channel to the target channel may include the following three steps:
  • the network channel switching information contains the channel switching equivalent and the target channel to be switched, which may be included in the network channel switching information in unencrypted form, or may be included in the network channel switching information in encrypted form.
  • the channel switching waiting value and the target channel to be switched can be directly obtained from the network channel switching information, or the network channel switching After the information is decrypted, the channel switching wait value and the target channel to be switched are obtained.
  • the way to determine the waiting period for performing network channel switching according to the channel switching waiting value may be: multiplying the channel switching waiting value by a preset beacon interval to obtain the waiting period for performing network channel switching.
  • the preset beacon interval may be a default preset beacon interval that is uniformly set by each node device in the network according to the current network quality and information transmission rate set by the mesh network; or each node device may be based on its characteristics. Set your own default beacon interval. This embodiment is not limited.
  • the timer in the current node device starts timing when it receives the network channel switching information sent by the parent node device; or it may start when the current node device sends the network channel switching information to the lower child node device for the first time timing.
  • the timer reaches the waiting period, the current node device is triggered to switch from the current channel to the target channel.
  • the embodiment of the present invention takes the example that a router exists in the mesh network, and the root node device obtains network channel switching information from the router as an example, but it is not limited to the source of the network channel switching information can only be obtained from the router.
  • Including other sources for example: after the root node device in the mesh network disconnects from the router, it triggers a full channel scan, searches for a historically connected router, and obtains the channel switch wait value of the router (the channel switch wait value also It can be generated according to its own network quality) and the target channel to be switched to generate network channel switching information; it can also be triggered by other node devices in the mesh network except the root node device after disconnecting the parent node device with a connection relationship Full channel scanning, search for the upper-level original parent node device or upper-level new parent node device with a connection relationship, and obtain the channel switching wait value of the upper-level original parent node device or the upper-level new parent node device (the channel switching wait value can also be It is generated based on its own network quality) and the target channel to be switched to generate network channel switching information; it can also be a scenario where the mesh network does not contain a router, based on the channel to be switched and the channel switching wait generated by the user's own network quality Value, generate network channel switching
  • This embodiment provides a network channel switching method.
  • Each node device in the mesh network obtains the network channel switching information sent by the parent node device, and continues to send to the child node device, and according to the received network channel information
  • Channel switching can greatly improve the success rate of each node device in the mesh network to receive network channel switching information, so that the channel switching of the entire mesh network can be completed on the basis of maintaining the connection of each node device in the network, which improves the mesh network.
  • Channel switching efficiency is a network channel switching method.
  • the channel switching waiting value in each network channel switching information is also different. If the channel switching waiting value is small, it may not wait for the nodes in the entire network All devices receive this information, and the parent node device of the superior has executed the target channel switch, which causes the node device that has not received the information to disconnect from the parent node device of the superior, and then leave the mesh network.
  • the root node device in the mesh network after the root node device in the mesh network obtains the network channel switching information sent by the router, it further includes: adjusting the channel switching wait value in the network channel switching information according to the current network quality,
  • the channel switching waiting value may be used to determine a waiting period for each node device to perform network channel switching. Specifically, when the root node device adds the received network channel switching information to its own beacon, the network channel switching information is appropriately increased according to the current network status (such as the beacon transmission period is very long or the interference is very large).
  • the channel switching wait value in. Therefore, the moment when the entire network performs channel migration no longer depends on the configuration of the router, but makes a decision according to the state of the network itself. It further ensures that the channel switching of the entire network can be completed on the basis of maintaining the connection of each node device in the network, and the switching efficiency of the network channel is improved.
  • FIG. 3 is a flowchart of a method for switching network channels according to Embodiment 2 of the present invention.
  • the method is further optimized on the basis of the above embodiments, and specifically provides a channel of a mesh network with a second-level child node device.
  • a preferred example of the switching method With reference to the schematic structural diagram of the mesh network shown in FIG. 1, the method for switching the network channel shown in FIG. 3 is described.
  • the method includes:
  • the root node device obtains network channel switching information sent by the router, and sends the network channel switching information to the first-level child node device that has a connection relationship with the root node device.
  • the first-level sub-node device may refer to each sub-node device that has a connection relationship with the first-level node device (that is, the root node device).
  • the root node device 11 in the mesh network receives the network channel switching information sent by the router 10, adds the network channel switching information to its own root node beacon, and sends it to the connected network in the form of a whole-network broadcast
  • the first-level child node devices in the wireless mesh network namely the intermediate node device 12 and the intermediate node device 13.
  • the root node device 11 may send the channel transmission information to the intermediate node device 12 and the intermediate node device 13 multiple times according to the preset beacon interval, every predetermined beacon interval. For example, it is possible to add the network channel switching information to 10 beacons, and send the network channel switching information 10 times to the intermediate node device 12 and the intermediate node device 13 according to the preset beacon interval.
  • the root node device switches from the current channel to the target channel according to the received network channel switching information.
  • the first-level child node device obtains network channel switching information sent by the root node device, and sends the network channel switching information to the second-level child node device having a connection relationship with the first-level child node device.
  • the second-level sub-node device may refer to each sub-node device that has a connection relationship with the second-level node device (such as an intermediate node device).
  • the intermediate node device 12 in the first-level child node device in the mesh network receives the network channel switching information sent by the root node device 11 and adds the network channel switching information to its own root node beacon to complete the network In the form of broadcast, it is sent to the second-level child node devices connected to itself on the mesh network, namely the leaf node device 14 and the leaf node device 15.
  • the number of times that the intermediate node device 12 sends the network channel switching information to the leaf node device 14 and the leaf node device 15 may depend on the number of times the intermediate node device 12 receives the network channel switching information sent by the root node device 11, for example, the intermediate The node device 12 receives the network beacon sent by the root node device 11 for 8 times, and sends the network node switching information to the leaf node device 14 and the leaf node device 8 8 times.
  • the first-level child node device shown in FIG. 1 includes an intermediate node device 12 and an intermediate node device 13. This step is described by taking the intermediate node device 12 as an example. For the intermediate node device 13 to receive the root node device 11. The process of sending the network channel switching information and sending it to the leaf node device 16 connected thereto is similar to the above method, which will not be repeated here.
  • the first-level sub-node device switches from the current channel to the target channel according to the received network channel switching information.
  • the intermediate node device 12 and the intermediate node device 13 in the first-level child node device obtain the channel switching waiting value and the target channel to be switched from the received network channel switching information; and determine execution according to the channel switching waiting value
  • the intermediate node device 12 and the intermediate node device 13 may receive the network channel switching information more than once, so when timing the switching waiting period, the switching may be determined after receiving the network channel switching information for the first time. Wait for time and start timing operation.
  • the secondary sub-node device switches from the current channel to the target channel according to the received network channel switching information.
  • the leaf node device 14 to the leaf node device 16 in the second-level child node device may obtain the channel switching wait value and the target channel to be switched from the received network channel switching information; and determine according to the channel switching wait value
  • the leaf node device 14-leaf node device 16 may receive the network channel switching information more than once, so when timing the switching waiting period, the switching may be determined after receiving the network channel switching information for the first time. Wait for time and start timing operation.
  • This embodiment provides a method for switching network channels.
  • the network channel switching method provided by the present invention for a mesh network composed of three-level node devices completes the entire process on the basis of ensuring the connection of each node device in the entire mesh network.
  • the channel switching of the mesh network improves the channel switching efficiency of the mesh network.
  • FIG. 4 is a flowchart of a network channel switching method according to Embodiment 3 of the present invention.
  • the method is further optimized on the basis of the foregoing embodiments, and specifically provides information about network channel switching information that is lost by a node device in a mesh network.
  • the specific situation of network channel switching is introduced.
  • the method includes:
  • the lost network channel switching information includes at least the following two cases: (1) After the node device obtains the network channel switching information, it Check the network channel switching information (such as CRC check).
  • the received network channel switching information is discarded, resulting in the node device losing the network channel switching information;
  • the network channel switching information has not been obtained during the process of obtaining network channel switching information.
  • some node devices in the mesh network will leave the network due to the loss of network channel switching information and failure to complete channel migration.
  • the current node device can trigger a full channel scan to search for the superior parent node device that has a connection relationship with the current node from the full channel.
  • full channel scanning is triggered to search for historically connected routers. For example, it may be that the root node device scans the router with the identification information in the full channel according to the identification information of the historically connected router. If a non-root node device in the mesh network loses network channel switching information, a full channel scan in the mesh network is triggered to search for a parent parent node device in the mesh network that has a connection relationship with the current node device. For example, it may be that the current node device performs a full channel scan in the mesh network according to the identifier of the superior parent node device having the connection relationship, and searches for the node device having the identifier of the parent node device.
  • a preset time period such as 1 minute
  • the root node device that lost the network channel switching message in the mesh network is the root node device, the entire mesh network cannot perform channel migration, so when the root node device does not scan its connection history within a preset time period Routers, there may be router failures, etc.
  • the root node may search for other backup routers in the mesh network; use the searched other backup router as the parent parent with a connection relationship Node device.
  • the root node device of the mesh network not only stores the identification information of the routers connected historically, but also stores the identification information of at least one backup router.
  • the identification information of the at least one backup router and the identification information of the routers connected historically All-channel scanning is performed together. When a router with the same identification information is scanned, the router is used as the parent node device of the root node device with the connection relationship.
  • the process of searching for other node devices in the mesh network may be based on the pre-stored wireless mesh network identification, scanning other node devices that also store the mesh network identification, when a node device storing the identification is scanned, it will be The node device acts as a parent parent node device with a connection relationship.
  • the channel switching wait value of the superior parent node device and the target channel to be switched may be by communicating with the superior node device and requesting the superior node device to send the channel switching wait value and The target channel to be switched, so as to obtain the channel switching wait value and the target channel to be switched; or the channel where the scanned parent node device is located can be used as the target channel to be switched, which is determined according to the current network quality and according to preset rules Channel switching wait value, etc.
  • This embodiment is not limited.
  • the process of generating network channel switching information may be: changing the channel switching wait value, the target channel to be switched, and the current After the node state information is merged and/or encrypted, network channel switching information is generated.
  • the network channel switching information may also be generated according to the channel switching wait value and the target channel to be switched in other ways. This embodiment is not limited.
  • the root node device in the mesh network may lose network channel switching information, after triggering a full channel scan to search for a historically connected router, obtain the channel switching wait value of the historically connected router and the target channel to be switched to generate a network Channel switching information. If the non-root node device in the wireless mesh network loses network channel switching information, after triggering a full channel scan and searching for a superior parent node device with which it has a connection relationship, the channel switching wait value and pending switching of the superior parent node device are obtained Target channel to generate network channel switching information. If there is no router in the mesh network, the node device in the mesh network may generate network channel switching information according to the channel to be switched specified by the user and the channel switching waiting value generated according to its own network quality.
  • S403 Send the network channel switching information to the lower-level sub-node device with a connection relationship.
  • the node in the mesh network that has lost the network channel switching information may not immediately switch the channel, but send the channel switching information to the subordinate sub-node device with the connection relationship to ensure
  • the lower-level sub-node device can perform channel switching through the channel switching information, and then execute S404 to switch from the current channel to the target channel according to the generated network channel switching information, that is, it is established on the searched other node device (the upper-level original with a connection relationship)
  • the connection relationship between the parent node device or the superior new parent node device may not immediately switch the channel, but send the channel switching information to the subordinate sub-node device with the connection relationship to ensure
  • the lower-level sub-node device can perform channel switching through the channel switching information, and then execute S404 to switch from the current channel to the target channel according to the generated network channel switching information, that is, it is established on the searched other node device (the upper-level original with a connection relationship)
  • the connection relationship between the parent node device or the superior new parent node device may
  • S404 Switch from the current channel to the target channel according to the generated network channel switching information.
  • This embodiment provides a network channel switching method.
  • a node device in the network loses network channel switching information, it searches for its parent node device by triggering a network-wide scan, and obtains the channel switching wait value and pending Switch the target channel, generate network channel switching information, and then continue to send to the subordinate node device, and perform channel switching according to the generated network channel information. It can still quickly determine the network channel switching information and continue to complete the channel switching of the entire network when the network channel switching information is disconnected from the mesh network or router due to the loss of network channel switching information, avoiding the loss of node devices during the channel switching process of the mesh network The situation ensures the integrity of the network channel switching.
  • FIG. 5 is a schematic structural diagram of a network channel switching device according to Embodiment 4 of the present invention.
  • the device can be configured in a node device of a wireless mesh network and can perform the network channel switching method provided by any embodiment of the present invention. , With functional modules and beneficial effects corresponding to the execution method. As shown in Figure 5, the device includes:
  • the information transceiving module 501 is configured to obtain network channel switching information sent by a parent node device with a connection relationship, and send the network channel switching information to a child node device with a connection relationship;
  • the channel switching module 502 is configured to switch from the current channel to the target channel according to the received network channel switching information.
  • This embodiment provides a network channel switching device.
  • Each node device in the mesh network obtains the network channel switching information sent by the parent node device, and then continues to send to the child node device, and according to the received network channel information
  • Channel switching can greatly improve the success rate of each node device in the mesh network to receive network channel switching information, so that the channel switching of the entire mesh network can be completed on the basis of maintaining the connection of each node device in the network, which improves the mesh network.
  • Channel switching efficiency is a network channel switching device.
  • the above information receiving and sending module 501 is specifically used for:
  • the network channel switching information in the beacon of its own node is sent to the lower-level sub-node device with a connection relationship in the form of a whole-network broadcast.
  • the above information receiving and sending module 501 is specifically used for:
  • node device in the wireless mesh network is the root node device, obtain network channel switching information sent by the router,
  • the above device further includes:
  • the waiting value adjustment module is configured to adjust the channel switching waiting value in the network channel switching information according to the current network quality, and the channel switching waiting value is used to determine a waiting period for each node device to perform network channel switching.
  • the above channel switching module 502 has:
  • the channel switching waiting value determine a waiting period for performing network channel switching
  • the current channel is switched to the target channel.
  • the above device further includes:
  • the channel scanning module is used to trigger the full channel scanning if the network channel switching information is lost, and search for the parent node device with a connection relationship;
  • the information generating module is used for acquiring the channel switching waiting value of the superior parent node device and the target channel to be switched, and generating network channel switching information.
  • the root node device in the wireless mesh network loses network channel switching information, it triggers a full channel scan to search for historically connected routers;
  • the above information generation module is specifically used for:
  • the above channel scanning module is also used to:
  • the node device in the wireless mesh network is a non-root node device, and the non-root node device does not scan a superior parent node device with a connection relationship within a preset time period, then search for the Other node equipment;
  • FIG. 6 is a schematic structural diagram of a device according to Embodiment 5 of the present invention.
  • FIG. 6 shows a block diagram of an exemplary device 60 suitable for implementing embodiments of the present invention.
  • the device 60 shown in FIG. 6 is only an example, and should not bring any limitation to the function and use range of the embodiment of the present invention.
  • the device 60 is represented in the form of a general-purpose computing device. Wherein, the device 60 may be a node device in a network to perform network channel switching.
  • the components of the device 60 may include, but are not limited to, one or more processors or processing units 601, a system memory 602, and a bus 603 connecting different system components (including the system memory 602 and the processing unit 601).
  • the bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among various bus structures.
  • these architectures include, but are not limited to, industry standard architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video electronics standards association (VESA) local bus, and peripheral component interconnection ( PCI) bus.
  • ISA industry standard architecture
  • MAC micro channel architecture
  • VESA video electronics standards association
  • PCI peripheral component interconnection
  • Device 60 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by the device 60, including volatile and non-volatile media, removable and non-removable media.
  • System memory 602 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 604 and/or cache memory 605.
  • the device 60 may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
  • the storage system 606 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 6 and is commonly referred to as a "hard disk drive").
  • a disk drive for reading and writing to a removable non-volatile magnetic disk eg, "floppy disk”
  • a removable non-volatile optical disk eg, CD-ROM, DVD-ROM
  • other optical media optical disc drive for reading and writing.
  • each drive may be connected to the bus 603 through one or more data media interfaces.
  • the system memory 602 may include at least one program product having a set of (eg, at least one) program modules configured to perform the functions of various embodiments of the present invention.
  • a program/utility tool 608 having a set of (at least one) program modules 607 may be stored in, for example, the system memory 602.
  • Such program modules 607 include but are not limited to an operating system, one or more application programs, other program modules, and programs Data, each of these examples or some combination may include the implementation of the network environment.
  • the program module 607 generally performs the functions and/or methods in the embodiments described in the present invention.
  • the device 60 may also communicate with one or more external devices 609 (eg, keyboard, pointing device, display 610, etc.), and may also communicate with one or more devices that enable a user to interact with the device, and/or with the device 60 Any device (such as a network card, modem, etc.) capable of communicating with one or more other computing devices. Such communication can be performed through an input/output (I/O) interface 611.
  • the device 60 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through a network adapter 612. As shown in FIG. 6, the network adapter 612 communicates with other modules of the device 60 through the bus 603.
  • LAN local area network
  • WAN wide area network
  • public network such as the Internet
  • the processing unit 601 runs programs stored in the system memory 602 to execute various functional applications and data processing, for example, to implement the network channel switching method provided by the embodiment of the present invention.
  • Embodiment 6 of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the network channel switching method described in the foregoing embodiment can be implemented.
  • the computer storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above.
  • computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. .
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the computer program code for performing the operations of the present invention can be written in one or more programming languages or a combination thereof.
  • the programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to pass the Internet connection).
  • LAN local area network
  • WAN wide area network
  • modules or operations of the embodiments of the present invention described above can be implemented by a general-purpose computing device, and they can be concentrated on a single computing device or distributed on a network composed of multiple computing devices Alternatively, they can be implemented with program code executable by the computer device, so that they can be stored in the storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or more of them Each module or operation is implemented as a single integrated circuit module. In this way, the present invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种网络信道的切换方法、装置、设备和存储介质。该方法包括:获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备;根据接收到的所述网络信道切换信息,从当前信道切换到目标信道。本发明实施例的技术方案能够极大提高mesh网络中各节点设备接收网络信道切换信息的成功率,使得整个mesh网络的信道切换可以在维持网络内各节点设备连接的基础上完成,提高了mesh网络的信道切换效率。

Description

网络信道的切换方法、装置、设备和存储介质 技术领域
本发明实施例涉及网络通信技术领域,尤其涉及一种网络信道的切换方法、装置、设备和存储介质。
背景技术
随着无线网格(mesh)网络的不断发展,mesh网络中包含的节点设备的数量在不断的增加,可以达到几十甚至上百个节点设备。目前,当mesh网络连接的路由器信道发生变化,mesh网络的根节点设备接收路由器的信道切换消息后,仅依赖于其与路由器之间的可靠处理,进行信道切换,并以广播的形式向mesh网络中的其他各节点设备发送信道切换信息,以使mesh网络中的其他节点设备进行信道切换。但是由于mesh网络的网络拥堵或各节点设备之间的干扰,mesh网络中会存在大量接收不到信道切换信息的节点设备,从而降低了mesh网络信道切换效率。
发明内容
本发明实施例提供了一种网络信道的切换方法、装置、设备和存储介质,能够极大提高mesh网络中各节点设备接收网络信道切换信息的成功率,使得整个mesh网络的信道切换可以在维持网络内各节点设备连接的基础上完成,提高了mesh网络信的道切换效率。
第一方面,本发明实施例提供了一种网络信道的切换方法,该方法包括:
获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备;
根据接收到的所述网络信道切换信息,从当前信道切换到目标信道。
第二方面,本发明实施例还提供了一种网络信道的切换装置,该装置包括:
信息收发模块,用于获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备;
信道切换模块,用于根据接收到的所述网络信道切换信息,从当前信道切换到目标信道。
第三方面,本发明实施例还提供了一种设备,包括:
一个或多个处理器;
存储装置,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本发明任意实施例所述的网络信道的切换方法。
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任意实施例所述的网络信道的切换方法。
本发明实施例的方案,mesh网络中的每一个节点设备通过获取上级父节点设备发送的网络信道切换信息,继续发送给下级子节点设备,并根据接收到的网络信道信息进行信道的切换,能够极大提高mesh网络中各节点设备接收网络信道切换信息的成功率,使得整个mesh网络的信道切换可以在维持网络内各节点设备连接的基础上完成,提高了mesh网络的信道切换效率。
附图说明
图1是本发明实施例提供的一种mesh网络的结构示意图;
图2是本发明实施例一提供的一种网络信道的切换方法的流程图;
图3是本发明实施例二提供的一种网络信道的切换方法的流程图;
图4是本发明实施例三提供的一种网络信道的切换方法的流程图;
图5是本发明实施例四提供的一种网络信道的切换装置的结构示意图;
图6是本发明实施例五提供的一种设备的结构示意图。
具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
在介绍本发明各实施例之前,先对本发明实施例的应用场景进行说明,本发明实施例的网络信道的切换方法、装置、设备和存储介质可适用于无线网格网络(如mesh网络)的信道迁移。mesh网络是由路由器和多个节点设备构成。在组建mesh网络时,可以是各节点设备间采用点到点或点到多点的拓扑结构构建的。如图1所示,该mesh网络中包括路由器10、根节点设备11、中间节点设备12-13以及叶子节点设备14-16。中间节点设备13到叶子节点设备16之间通过点到点的方式连接,根节点设备11到中间节点设备12和中间节点设备13之间通过点到多点的方式连接;中间节点12到叶子节点14和叶子节点15之间通过点到多点的方式连接。
可以按照各节点设备与路由器的直接或间接的连接关系,将网络中的各节点设备进行分级,将与路由器直接连接的节点设备作为一级节点设备,如图1中的根节点11;将与路由器之间通过一个节点设备间接连接的节点设备作为二级节点设备,如图1中的中间节点设备12-13;将与路由器之间通过两个节点设备间接连接的节点设备作为三级节点设备,如图1中的叶子节点设备14-16,依次类推,将无线网格网络中的各节点设备进行分级。
本发明各实施例以图1所示的mesh网络为例来对本发明各实施例的无线网格网络信道切换方法进行进一步的详细说明,可以理解的是,此处所描述的图1中的mesh网络仅仅用于解释本发明,而非对本发明的限定。本发明各实施例所提供的网络信道切换方法可适用的网络包括任何由多组具有父子节点连接关系节点设备组成的网络。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
实施例一
图2为本发明实施例一提供的网络信道的切换方法的流程图,本实施例可适用于由多组具有父子节点连接关系节点设备组成的网络进行信道切换的情况,例如,可以是用于mesh网络的信道切换。该方法可以由本发明实施例提供的网络信道的切换装置来执行,该装置可采用硬件和/或软件的方式实现,如可以配置在mesh网络中的任一节点设备中,其中,无线网格网络中的节点设备可以包括智能手机、智能电视、智能音响、平板电脑或可穿戴设备等。如图2所示,具体包括如下步骤:
S201,获取具有连接关系的上级父节点设备发送的网络信道切换信息,并 将网络信道切换信息发送给具有连接关系的下级子节点设备。
其中,网络信道切换信息可以是无线保真(WIreless-FIdelity,Wi-Fi)协议里定义的信道切换声明(Channel Switch Announcement,CSA)的相关信息,可用于指示网络中各节点设备切换信道的信息。网络信道切换信息可以包括信道切换等待值(csa_count)、待切换的目标信道(csa_newchan)以及节点状态等信息。具体的,信道切换等待值可以是用来指示各节点设备从接收到网络信道切换信息到执行信道切换操作之间等待的信标的个数,通过其可以确定各节点设备执行网络信道切换的时刻。待切换的目标信道可以是指当前节点设备将要切换的信道,即mesh网络将要切换到的信道,也就是该mesh网络中的路由器已切换到的信道。节点状态可以是发送该网络信道切换信息的节点设备的状态,如可连接状态(即AP状态)和不可连接状态(即station状态)。
需要说明的是,本发明实施例可以由mesh网络中的任意一个节点设备来执行。对于mesh网络中的每一个节点设备都执行本发明实施例所述的操作,即可以完成整个mesh网络在维持网络内各节点设备连接的基础上完成整个mesh网络的信道切换。在本实施例中,将当前节点设备作为mesh网络中的任意一个节点设备,接下来以当前节点设备执行本发明实施例的方法来进行介绍。
其中,具有连接关系的上级父节点可以是指mesh网络中与当前节点设备连接且处于当前节点设备上一级的节点设备。如图1所示,若当前节点设备为中间节点设备12,则与该中间节点设备12具有连接关系的上级父节点设备可以是根节点设备11。可选的,若当前节点设备为根节点设备11,则与根节点设备11具有连接关系的上级父节点设备可以是路由器10。具有连接关系的下级子节点设备可以是指mesh网络中与当前节点设备连接且处于当前节点设备的上级 父节点设备。如图1所示,如当前节点设备为中间节点设备12,则与该中间节点设备具有连接关系的下级子节点设备可以是叶子节点设备14和叶子节点设备15。
可选的,在本发明实施例中,当前节点设备可以是接收与其连接的上级父节点设备发送的网络信道切换信息,然后发送给与其连接的下级子节点设备。具体的,接收和发送过程可以包括以下三个步骤:
A、接收具有连接关系的上级父节点设备信标广播的网络信道切换信息。
其中,信标可以是mesh网络中各节点设备之间发送和接收消息的通道,每个节点设备都有自己的信标。在本实施例中,各节点设备可以通过自己的信标来向下级子节点设备发送网络信道切换消息。例如,当一个节点设备要向网络中的另一个节点设备发送信息时,可以是将要发送的信息添加自己的信标中,然后通过信标以全网广播的形式将要发送的信息发送至整个网络。
示例性的,当前节点设备的上级父节点设备将网络信道切换信息添加到父节点设备信标中,以全网广播的形式发送至无线网格网络,当前节点设备监听到其上级父节点信标发送的信息时,进行信息的接收,即获取到当前节点设备的上级父节点设备发送的网络信道切换信息。可选的,上级父节点设备信标广播的信息中,除了包括网络信道切换信息,还可以包括父节点设备的标识和/或父节点设备的下级子节点设备(即当前节点设备)的标识等,以便于确定发送的该信息的接收方。
B、将接收到的网络信道切换信息添加到自身节点信标中。
可选的,本发明实施例中,节点设备将获取的网络信道切换信息添加到自 身节点信标的过程可以是:直接将从上级父节点设备中获取的网络信道切换信息添加的自己的信标中,也可以是为了保证信息传输的安全性,防止其他节点设备的监听,对从上级父节点设备中获取的网络信道切换信息进行加密后添加到自己的信标中。具体的加密算法本实施例不进行限定,如可以采用公私钥加密算法、哈希加密算法、数字签名算法等。相应的,对于网络信道切换信息的接收子节点设备,若与其连接的父节点设备添加到信标中网络信道切换信息是非加密的,则可以直接获取该信息,若添加到信标中的网络信道切换信息是加密的,则可以是将获取的信息按照预设的算法解密后得到网络信道切换信息。
可选的,mesh网络中不同节点设备可以采用相同的加密算法对网络信道切换信息进行加密以及对接收到的信标广播的数据信息进行解密;也可以是每个节点设备都有自己的信标加密算法,只有该节点设备和该节点设备的下级子节点设备知道该节点设备信标数据的加密和解密算法,用于该节点设备对网络信道切换信息加密,以及对获取父节点信标广播的数据信息进行解密。
C、以全网广播的形式将自身节点信标中的网络信道切换信息发送给具有连接关系的下级子节点设备
示例性的,当前节点设备在向与其连接的下级子节点设备发送信标时,可以是以全网广播的形式将其自己信标中的网络信道切换信息向下级子节点设备发送。可选的,可以是当前节点设备以全网广播的形式将其自身节点信标中的网络信道切换信息向无线网格网络中的所有节点设备发送,但是只有无线网格网络中与当前节点设备具有连接关系的下级子节点设备才接收当前节点设备发送的网络信道切换信息。
需要说明的是,在本发明实施例中,若mesh网络中的节点设备为根节点设 备,则获取路由器发送的网络信道切换信息,并将网络信道切换信息发送给与该根节点设备具有连接关系的下级子节点设备;若无mesh网络中的节点设备为非根节点设备,则获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将该网络信道切换信息发送给具有连接关系的下级子节点设备;若mesh网络中的节点设备为最后一级节点设备,其没有具有连接关系的下级子节点设备,则最后一级节点设备仅获取具有连接关系的上级父节点设备发送的网络信道切换信息,不再继续执行网络信道切换信息的发送。
可选的,在网络质量不好或设备间相互干扰的情况下,为了保证无线网格网络中的节点设备还能够接收到网络信道切换信息,当前节点设备在向与其连接的下级子节点设备发送网络信道切换信息时,可以是按照预设信标间隔,多次发送该网络信道切换信息。具体的,可以是当前节点设备接收到多少从上级父节点设备发送的网络信道切换消息,就向下一级子节点设备发送多少次网络信道切换信息,而对于无线网格网络中与路由器连接的根节点设备,其可以根据路由器下发的信道切换信息和/或预设的规则来确定向下级子节点设备发送多少次网络信道切换信息。
S202,根据接收到的网络信道切换信息,从当前信道切换到目标信道。
其中,当前信道可以是当前节点设备当前所在的信道,即mesh网络在切换信道前所在的信道。目标信道是当前节点设备将要切换的信道,即mesh网络将要切换到的信道,也就是该mesh网络中的路由器已切换到的信道。
可选的,本发明实施例中,根据接收到的网络信道切换信息,从当前信道切换到目标信道的具体执行过程可以包括以下三个步骤:
A、获取网络信道切换信息中的信道切换等待值和待切换的目标信道。
示例性的,网络信道切换信息中包含有信道切换等值和待切换的目标信道,可以是以未加密的形式包含于网络信道切换信息中,也可以是以加密的形式包含于网络信道切换信息中。相应地,获取网络信道切换信息中的信道切换等待值和待切换的目标信道时,可以是直接从网络信道切换信息中获取信道切换等待值和待切换的目标信道,也可以是对网络信道切换信息进行解密处理后得到信道切换等待值和待切换的目标信道。
B、根据信道切换等待值,确定执行网络信道切换的等待时间段。
示例性的,根据信道切换等待值,确定执行网络信道切换的等待时间段的方式可以是:将信道切换等待值与预设信标间隔进行乘积运算,得到执行网络信道切换的等待时间段。可选的,预设信标间隔可以是mesh网络根据当前网络质量、信息传输速率等设置的网络中各节点设备都统一默认的预设信标间隔;也可以是每一个节点设备根据其特性来设定自己的预设信标间隔。对此,本实施例不进行限定。
C、当达到等待时间段时,从当前信道切换到目标信道。
示例性的,可以是由当前节点设备中的计时器在接收到父节点设备发送的网络信道切换信息时开始定时;也可以是在当前节点设备首次向下级子节点设备发送网络信道切换信息时开始定时。当计时器达到等待时间段时,触发控制当前节点设备从当前信道切换到目标信道。
需要说明的是,本发明实施例以mesh网络中存在路由器,且根节点设备从路由器获取网络信道切换信息为例进行介绍的,但不限于网络信道切换信息的来源只能从路由器获取,还可以包括其他来源,例如:可以是mesh网络中 的根节点设备断开与路由器的连接后,触发全信道扫描,搜索历史连接的路由器,获取该路由器的信道切换等待值(所述信道切换等待值也可以是根据自身网络质量生成)和待切换的目标信道,生成网络信道切换信息;还可以是mesh网络中除根节点设备之外的其他节点设备在断开具有连接关系的上级父节点设备后,触发全信道扫描,搜索具有连接关系的上级原父节点设备或上级新父节点设备,并获取所述上级原父节点设备或上级新父节点设备的信道切换等待值(所述信道切换等待值也可以是根据自身网络质量生成)和待切换的目标信道,生成网络信道切换信息;也可以是在mesh网络中不包含路由器的场景下,根据用户制定的待切换信道和自身网络质量生成的信道切换等待值,生成网络信道切换信息。对此本发明实施例不进行限定。
本实施例提供了一种网络信道的切换方法,mesh网络中的每一个节点设备通过获取上级父节点设备发送的网络信道切换信息,继续发送给下级子节点设备,并根据接收到的网络信道信息进行信道的切换,能够极大提高mesh网络中各节点设备接收网络信道切换信息的成功率,使得整个mesh网络的信道切换可以在维持网络内各节点设备连接的基础上完成,提高了mesh网络的信道切换效率。
进一步的,由于不同路由器发送给mesh网络中的网络信道切换信息不一样,因此各网络信道切换信息中的信道切换等待值也不同,如果信道切换等待值较小,可能未等到整个网络里的节点设备都收到该信息,上级的父节点设备已执行目标信道的切换,从而导致未收到信息的节点设备会断开与上级父节点设备的连接,进而离开mesh网络的情况出现。为了避免上述问题出现,在本发明实施例中,在mesh网络中的根节点设备获取路由器发送的网络信道切换 信息之后,还包括:根据当前网络质量调整网络信道切换信息中的信道切换等待值,所述信道切换等待值可用于确定各节点设备执行网络信道切换的等待时间段。具体的,可以是根节点设备在将收到的网络信道切换信息添加到自身信标时,根据当前网络的状况(如信标发送周期很长或者干扰很大),适当的增加网络信道切换信息里的信道切换等待值。从而使得整个网络执行信道迁移的时刻不再依赖于路由器的配置,而是根据网络自身的状态做决定。进一步保证了使得整个网络的信道切换可以在维持网络内各节点设备连接的基础上完成,提高了网络信道的切换效率。
实施例二
图3是本发明实施例二提供的一种网络信道的切换方法的流程图,该方法在上述实施例的基础上进一步的优化,具体给出一种具有二级子节点设备的mesh网络的信道切换方法的优选实例。结合图1所示的mesh网络的结构示意图,对图3所示的网络信道的切换方法进行说明,该方法包括:
S301,根节点设备获取路由器发送的网络信道切换信息,并将网络信道切换信息发送给与该根节点设备具有连接关系的一级子节点设备。
其中,一级子节点设备可以是指与一级节点设备(即根节点设备)具有连接关系的各子节点设备。
示例性的,mesh网络中的根节点设备11接收路由器10发送的网络信道切换信息,将该网络信道切换信息添加到自己的根节点信标中,以全网广播的形式发送给与自己连接的处于无线网格网络的一级子节点设备,即中间节点设备12和中间节点设备13。可选的,根节点设备11可以根据预设信标间隔,每隔 预设信标间隔发送一次,多次向中间节点设备12和中间节点设备13发送网络信道切换信息。如可以是将网络信道切换信息添加到10个信标中,依据预设信标间隔,向中间节点设备12和中间节点设备13发送10次网络信道切换信息。
S302,根节点设备根据接收到的网络信道切换信息,从当前信道切换到目标信道。
示例性的,根节点设备11从接收到的网络信道切换信息中获取信道切换等待值和待切换的目标信道;并根据信道切换等待值,确定执行网络信道切换的等待时间段,如按照如下公式T=csa_count×TBTT计算进行信道切换的等待时间段,其中,T为执行信道切换的等待时间段,csa_count为信道切换等待值,TBTT为预设信标间隔;然后通过根节点设备11中的计时器进行计时操作,当到达计算出的信道等待时间段时,执行从当前信道切换至目标信道。
S303,一级子节点设备获取根节点设备发送的网络信道切换信息,并将网络信道切换信息发送给与一级子节点设备具有连接关系的二级子节点设备。
其中,二级子节点设备可以是指与二级节点设备(如中间节点设备)具有连接关系的各子节点设备。
示例性的,mesh网络中的一级子节点设备中的中间节点设备12接收根节点设备11发送的网络信道切换信息,将该网络信道切换信息添加到自己的根节点信标中,以全网广播的形式发送给与自己连接的处于mesh网络的二级子节点设备,即叶子节点设备14和叶子节点设备15。可选的,中间节点设备12向叶子节点设备14和叶子节点设备15发送网络信道切换信息的次数可以取决于中间节点设备12接收到根节点设备11发送的网络信道切换信息的次数,如,中间节点设备12接收根节点设备11发送的网络信标的次数为8次,则向叶子节 点设备14和叶子节点设备15发送8次网络信道切换信息。
需要说明的是,图1所示的一级子节点设备中包括中间节点设备12和中间节点设备13,本步骤是以中间节点设备12为例进行介绍的,对于中间节点设备13接收根节点设备11发送的网络信道切换信息并发送给与其连接的叶子节点设备16的过程与上述方法类似,对此不再进行赘述。
S304,一级子节点设备根据接收到的网络信道切换信息,从当前信道切换到目标信道。
示例性的,一级子节点设备中的中间节点设备12和中间节点设备13从接收到的网络信道切换信息中获取信道切换等待值和待切换的目标信道;并根据信道切换等待值,确定执行网络信道切换的等待时间段,如按照如下公式T=csa_count×TBTT计算进行信道切换的等待时间段,其中,T为执行信道切换的等待时间段,csa_count为信道切换等待值,TBTT为预设信标间隔;然后中间节点设备12和中间节点设备13中的计时器分别进行计时操作,当到达计算出的信道等待时间段时,执行从当前信道切换至目标信道。
可选的,中间节点设备12和中间节点设备13接收到的网络信道切换信息的次数可能不止一次,所以在进行切换等待时间段计时时,可以是首次接收到网络信道切换信息后,即确定切换等待时间并开始进行计时操作。
S305,二级子节点设备根据接收到的网络信道切换信息,从当前信道切换到目标信道。
示例性的,二级子节点设备中的叶子节点设备14至叶子节点设备16可以从接收到的网络信道切换信息中获取信道切换等待值和待切换的目标信道;并根据信道切换等待值,确定执行网络信道切换的等待时间段,如按照如下公式 T=csa_count×TBTT计算进行信道切换的等待时间段,其中,T执行信道切换的等待时间段,csa_count为信道切换等待值,TBTT为预设信标间隔;然后叶子节点设备14-叶子节点设备16中的计时器分别进行计时操作,当到达计算出的信道等待时间段时,执行从当前信道切换至目标信道。
类似的,叶子节点设备14-叶子节点设备16接收到的网络信道切换信息的次数可能也不止一次,所以在进行切换等待时间段计时时,可以是首次接收到网络信道切换信息后,即确定切换等待时间并开始进行计时操作。
本实施例提供了一种网络信道的切换方法,通过对由三级节点设备构成的mesh网络按照本发明提供的网络信道切换方法,在保证整个mesh网络内各节点设备连接的基础上,完成整个mesh网络的信道切换,提高了mesh网络的信道切换效率。
实施例三
图4是本发明实施例三提供的一种网络信道的切换方法的流程图,该方法在上述实施例的基础上进一步的优化,具体给出了在mesh网络中的节点设备丢失网络信道切换信息的情况下,进行网络信道切换的具体情况介绍。如图4所示,该方法包括:
S401,若丢失网络信道切换信息,则触发全信道扫描,搜索具有连接关系的上级父节点设备。
示例性的,由于网络信道切换信息是添加在信标中以广播的形式发送的,且mesh网络中的各节点设备间也存在干扰,从而导致网络中有的节点设备可能会丢失网络信道切换信息。可选的,在获取具有连接关系的上级节点设备发 送的网络信道切换信息的过程中,丢失网络信道切换信息至少包括以下两种情况:(1)节点设备获取到网络信道切换信息后,对该网络信道切换信息进行校验(如循环(CRC)校验),若校验失败,则将接收到的网络信道切换信息丢弃,从而导致该节点设备丢失了该网络信道切换信息;(2)由于网络质量不好、节点设备间干扰或节点设备内存不足等原因,在获取网络信道切换信息的过程中一直没有获取到该网络信道切换信息。此时会导致mesh网络内有部分节点设备因为丢失网络信道切换信息没有完成信道迁移而离开网络的情况。为了解决上述问题,在当前节点设备丢失网络信道切换信息,且上级父节点设备已执行完信道切换时,即当前节点设备与上级父节点设备已经处在两个不同的信道上。此时,当前节点设备可触发进行全信道扫描,从全信道中搜索与当前节点具有连接关系的上级父节点设备。
可选的,若无线网格网络中的根节点设备丢失网络信道切换信息,则触发全信道扫描,搜索历史连接的路由器。例如,可以是根节点设备根据历史连接的路由器的标识信息,在全信道中扫描具有该标识信息的路由器。若mesh网络中的非根节点设备丢失网络信道切换信息,则触发mesh网络内的全信道扫描,搜索mesh网络内与当前节点设备具有连接关系的上级父节点设备。如,可以是当前节点设备根据具有连接关系的上级父节点设备的标识,在mesh网络内进行全信道扫描,搜索具有该父节点设备标识的节点设备。
可选的,为了提高整个mesh网络的信道切换效率,可以为丢失网络信道切换信息的节点设备进行上级父节点设备搜索时,设置预设时间段(如1分钟),如果在预设时间段内没有搜索到,则扩大搜索范围。
可选的,若mesh网络中的丢失网络信道切换消息的节点设备为根节点设 备,则整个mesh网络都无法进行信道迁移,所以当根节点设备在预设时间段内没有扫描到与其连接的历史路由器,可能存在路由器出现故障等情况,此时,根节点为了保证整个mesh网络正常联网,可以是搜索该mesh网络中的其他备用路由器;将搜索到的该其他备用路由器作为具有连接关系的上级父节点设备。具体的,mesh网络的根节点设备中不但存储有历史连接的路由器的标识信息,还存储有至少一个备用路由器的标识信息,此时可以根据至少一个备用路由器的标识信息和历史连接的路由器标识信息一起进行全信道扫描,当扫描到具有同样标识信息的路由器时,将该路由器作为根节点设备的具有连接关系的上级父节点设备。
若mesh网络中的丢失网络信道切换消息的节点设备为非根节点设备,且非根节点设备在预设时间段内没有扫描到具有连接关系的上级父节点设备,则搜索mesh网络中的其他节点设备;将搜索到的该其他节点设备作为具有连接关系的上级父节点设备。其中,搜索mesh网络中其他节点设备的过程可以是根据预先存储的无线网格网络标识,扫描同样存储有该mesh网络标识的其他节点设备,当扫描到一个存储有该标识的节点设备时,将该节点设备作为具有连接关系的上级父节点设备。
S402,获取上级父节点设备的信道切换等待值和待切换的目标信道,生成网络信道切换信息。
可选的,本实施例中,获取上级父节点设备的信道切换等待值和待切换的目标信道的方式有很多,可以是通过与上级节点设备进行通信,请求上级节点设备发送信道切换等待值和待切换的目标信道,从而获取信道切换等待值和待切换的目标信道;也可以是将扫描到的上级父节点设备所在的信道作为待切换 的目标信道,根据当前网络质量,按照预设规则确定信道切换等待值等。对此本实施例不进行限定。
可选的,本实施例中,当前节点设备在获取了信道切换等待值和待切换的目标信道后,生成网络信道切换信息的过程可以是:将信道切换等待值、待切换的目标信道以及当前节点的状态信息进行合并和/或加密处理后,生成网络信道切换信息。还可以采用其他方式根据信道切换等待值和待切换的目标信道,生成网络信道切换信息。对此本实施例不进行限定。
可选的,若mesh网络中的根节点设备丢失网络信道切换信息,在触发全信道扫描搜索到历史连接的路由器后,获取历史连接的路由器的信道切换等待值和待切换的目标信道,生成网络信道切换信息。若无线网格网络中的非根节点设备丢失网络信道切换信息,在触发全信道扫描,搜索到与其具有连接关系的上级父节点设备后,获取该上级父节点设备的信道切换等待值和待切换目标信道,生成网络信道切换信息。若mesh网络中没有路由器,则mesh网络中的节点设备可以是根据用户制定的待切换信道和根据自身网络质量生成的信道切换等待值,生成网络信道切换信息。
S403,将网络信道切换信息发送给具有连接关系的下级子节点设备。
示例性的,mesh网络中丢失网络信道切换信息的节点在重新生成网络信道切换信息后,可以不立刻进行信道的切换,而是将该信道切换信息发送至具有连接关系的下级子节点设备,保证下级子节点设备可以通过该信道切换信息进行信道切换后,再执行S404根据生成的网络信道切换信息,从当前信道切换到目标信道,即建立于搜索到的其他节点设备(具有连接关系的上级原父节点设备或上级新父节点设备)之间的连接关系。
S404,根据生成的网络信道切换信息,从当前信道切换到目标信道。
本实施例提供了一种网络信道的切换方法,在网络中的节点设备丢失网络信道切换信息的情况下,通过触发全网扫描的方式搜索其上级父节点设备,并获取信道切换等待值和待切换的目标信道,生成网络信道切换信息,再继续发送给下级子节点设备,并根据生成的网络信道信息进行信道的切换。能够在因丢失网络信道切换信息与mesh网络或路由器断开的情况下,仍然可以快速确定网络信道切换信息,继续完成整个网络的信道切换,避免了mesh网络在信道切换的过程中丢失节点设备的情况,保证了网络信道切换的完整性。
实施例四
图5是本发明实施例四提供的一种网络信道的切换装置的结构示意图,该装置可配置于无线网格网络的节点设备中,可执行本发明任意实施例所提供的网络信道的切换方法,具备执行方法相应的功能模块和有益效果。如图5所示,该装置包括:
信息收发模块501,用于获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备;
信道切换模块502,用于根据接收到的所述网络信道切换信息,从当前信道切换到目标信道。
本实施例提供了一种网络信道的切换装置,mesh网络中的每一个节点设备通过获取上级父节点设备发送的网络信道切换信息,继续发送给下级子节点设备,并根据接收到的网络信道信息进行信道的切换,能够极大提高mesh网络中 各节点设备接收网络信道切换信息的成功率,使得整个mesh网络的信道切换可以在维持网络内各节点设备连接的基础上完成,提高了mesh网络的信道切换效率。
进一步的,上述信息收发模块501具体用于:
接收具有连接关系的上级父节点设备信标广播的网络信道切换信息;
将接收到的所述网络信道切换信息添加到自身节点信标中;
以全网广播的形式将自身节点信标中的网络信道切换信息发送给具有连接关系的下级子节点设备。
进一步的,上述信息收发模块501具体用于:
若无线网格网络中的节点设备为根节点设备,则获取路由器发送的网络信道切换信息,
并将所述网络信道切换信息发送给与所述根节点设备具有连接关系的下级子节点设备。
进一步的,上述装置还包括:
等待值调整模块,用于根据当前网络质量调整所述网络信道切换信息中的信道切换等待值,所述信道切换等待值用于确定各节点设备执行网络信道切换的等待时间段。
进一步的,上述信道切换模块502具有用于:
获取所述网络信道切换信息中的信道切换等待值和待切换的目标信道;
根据所述信道切换等待值,确定执行网络信道切换的等待时间段;
当达到所述等待时间段时,从当前信道切换到所述目标信道。
进一步的,上述装置还包括:
信道扫描模块,用于若丢失网络信道切换信息,则触发全信道扫描,搜索具有连接关系的上级父节点设备;
信息生成模块,用于获取所述上级父节点设备的信道切换等待值和待切换的目标信道,生成网络信道切换信息。
进一步的,上述信道扫描模块具体用于;
若无线网格网络中的根节点设备丢失网络信道切换信息,则触发全信道扫描,搜索历史连接的路由器;
相应的,上述信息生成模块具体用于:
获取所述历史连接的路由器的信道切换等待值和待切换的目标信道,生成网络信道切换信息。
进一步的,上述信道扫描模块还用于:
若无线网格网络中的节点设备为非根节点设备,且所述非根节点设备在预设时间段内没有扫描到具有连接关系的上级父节点设备,则搜索所述无线网格网络中的其他节点设备;
将搜索到的其他节点设备作为具有连接关系的上级父节点设备。
实施例五
图6为本发明实施例五提供的一种设备的结构示意图。图6示出了适于用来实现本发明实施方式的示例性设备60的框图。图6显示的设备60仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。如图6所示, 该设备60以通用计算设备的形式表现。其中,该设备60可以是要进行网络信道切换的网络中的节点设备。该设备60的组件可以包括但不限于:一个或者多个处理器或者处理单元601,系统存储器602,连接不同系统组件(包括系统存储器602和处理单元601)的总线603。
总线603表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
设备60典型地包括多种计算机系统可读介质。这些介质可以是任何能够被设备60访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
系统存储器602可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)604和/或高速缓存存储器605。设备60可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统606可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线603相连。系统存储器602可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。
具有一组(至少一个)程序模块607的程序/实用工具608,可以存储在例如系统存储器602中,这样的程序模块607包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块607通常执行本发明所描述的实施例中的功能和/或方法。
设备60也可以与一个或多个外部设备609(例如键盘、指向设备、显示器610等)通信,还可与一个或者多个使得用户能与该设备交互的设备通信,和/或与使得该设备60能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口611进行。并且,设备60还可以通过网络适配器612与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图6所示,网络适配器612通过总线603与设备60的其它模块通信。应当明白,尽管图中未示出,可以结合设备60使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
处理单元601通过运行存储在系统存储器602中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的网络信道的切换方法。
实施例六
本发明实施例六还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时可实现上述实施例所述的网络信道的切换方法。
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质 的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是但不限于:电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机 上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
上述实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员应该明白,上述的本发明实施例的各模块或各操作可以用通用的计算装置来实现,它们可以集中在单个计算装置上,或者分布在多个计算装置所组成的网络上,可选地,他们可以用计算机装置可执行的程序代码来实现,从而可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或操作制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件的结合。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间的相同或相似的部分互相参见即可。
以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域技术人员而言,本发明可以有各种改动和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (11)

  1. 一种网络信道的切换方法,其特征在于,由无线网格网络的节点设备执行,包括:
    获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备;
    根据接收到的所述网络信道切换信息,从当前信道切换到目标信道。
  2. 根据权利要求1所述的方法,其特征在于,获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备,包括:
    接收具有连接关系的上级父节点设备信标广播的网络信道切换信息;
    将接收到的所述网络信道切换信息添加到自身节点信标中;
    以全网广播的形式将自身节点信标中的网络信道切换信息发送给具有连接关系的下级子节点设备。
  3. 根据权利要求1所述的方法,获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备,包括:
    若无线网格网络中的节点设备为根节点设备,则获取路由器发送的网络信道切换信息,并将所述网络信道切换信息发送给与所述根节点设备具有连接关系的下级子节点设备。
  4. 根据权利要求3所述的方法,其特征在于,若无线网格网络中的节点为根节点设备,则获取路由器发送的网络信道切换信息之后,还包括:
    根据当前网络质量调整所述网络信道切换信息中的信道切换等待值,所述 信道切换等待值用于确定各节点设备执行网络信道切换的等待时间段。
  5. 根据权利要求1所述的方法,其特征在于,根据接收到的所述网络信道切换信息,从当前信道切换到目标信道,包括:
    获取所述网络信道切换信息中的信道切换等待值和待切换的目标信道;
    根据所述信道切换等待值,确定执行网络信道切换的等待时间段;
    当达到所述等待时间段时,从当前信道切换到所述目标信道。
  6. 根据权利要求1所述的方法,其特征在于,获取具有连接关系的上级父节点设备发送的网络信道切换信息,包括:
    若丢失网络信道切换信息,则触发全信道扫描,搜索具有连接关系的上级父节点设备;
    获取所述上级父节点设备的信道切换等待值和待切换的目标信道,生成网络信道切换信息。
  7. 根据权利要求6所述的方法,其特征在于,若丢失网络信道切换信息,则触发全信道扫描,搜索具有连接关系的上级父节点设备,包括:
    若无线网格网络中的根节点设备丢失网络信道切换信息,则触发全信道扫描,搜索历史连接的路由器;
    相应的,获取所述上级父节点设备的信道切换等待值和待切换的目标信道,生成网络信道切换信息,包括:
    获取所述历史连接的路由器的信道切换等待值和待切换的目标信道,生成网络信道切换信息。
  8. 根据权利要求6所述的方法,其特征在于,触发全信道扫描,搜索具有 连接关系的上级父节点设备,包括:
    若无线网格网络中的节点设备为非根节点设备,且所述非根节点设备在预设时间段内没有扫描到具有连接关系的上级父节点设备,则搜索所述无线网格网络中的其他节点设备;
    将搜索到的其他节点设备作为具有连接关系的上级父节点设备。
  9. 一种网络信道的切换装置,其特征在于,配置于无线网格网络的节点设备中,包括:
    信息收发模块,用于获取具有连接关系的上级父节点设备发送的网络信道切换信息,并将所述网络信道切换信息发送给具有连接关系的下级子节点设备;
    信道切换模块,用于根据接收到的所述网络信道切换信息,从当前信道切换到目标信道。
  10. 一种设备,其特征在于,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一所述的网络信道的切换方法。
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-8中任一所述的网络信道的切换方法。
PCT/CN2019/122705 2018-12-12 2019-12-03 网络信道的切换方法、装置、设备和存储介质 WO2020119523A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/413,442 US11943695B2 (en) 2018-12-12 2019-12-03 Network channel switching method and apparatus, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811520852.8 2018-12-12
CN201811520852.8A CN109379772B (zh) 2018-12-12 2018-12-12 网络信道的切换方法、装置、设备和存储介质

Publications (1)

Publication Number Publication Date
WO2020119523A1 true WO2020119523A1 (zh) 2020-06-18

Family

ID=65373427

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122705 WO2020119523A1 (zh) 2018-12-12 2019-12-03 网络信道的切换方法、装置、设备和存储介质

Country Status (3)

Country Link
US (1) US11943695B2 (zh)
CN (1) CN109379772B (zh)
WO (1) WO2020119523A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379772B (zh) * 2018-12-12 2020-12-08 乐鑫信息科技(上海)股份有限公司 网络信道的切换方法、装置、设备和存储介质
CN111988101B (zh) * 2019-05-23 2022-08-05 杭州海康威视数字技术股份有限公司 一种无线信道切换方法、系统、接入点及工作站
CN111757364B (zh) * 2019-09-20 2023-10-10 广州极飞科技股份有限公司 网络切换方法、通信系统及相关装置
CN110831005B (zh) * 2019-11-11 2023-07-11 深圳创维数字技术有限公司 一种Mesh网的设备添加方法、网关设备及存储介质
CN113133075B (zh) * 2019-12-31 2022-09-16 杭州萤石软件有限公司 一种无线网格网络中信道切换方法以及无线节点设备
CN113099498B (zh) * 2020-03-31 2022-05-20 国网浙江省电力有限公司电力科学研究院 基于IPv6-NDP的无线搜索自动组网方法
US20230328619A1 (en) * 2020-08-11 2023-10-12 Beijing Xiaomi Mobile Software Co., Ltd. Methods for channel switching and electronic device
CN113395745B (zh) * 2021-05-13 2022-11-04 北京小米移动软件有限公司 接入Mesh网络的方法、装置、终端及存储介质
CN114374646A (zh) * 2021-12-27 2022-04-19 中国电信股份有限公司 一种网络通道切换方法、装置、电子设备与存储介质
CN115529668B (zh) * 2022-02-28 2023-07-21 荣耀终端有限公司 一种信道选择方法、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2234337A2 (en) * 2008-01-11 2010-09-29 LG Electronics Inc. Method for switching channel in mesh network
CN101917749A (zh) * 2010-08-17 2010-12-15 杭州华三通信技术有限公司 列车通信系统中实现信道动态切换的方法和装置
CN103974363A (zh) * 2013-01-31 2014-08-06 中兴通讯股份有限公司 一种非网关节点、无线网格网及无线网格网数据转发方法
CN104348888A (zh) * 2013-08-09 2015-02-11 中国电信股份有限公司 内容路由分发方法、内容分发网络节点和系统
CN109379772A (zh) * 2018-12-12 2019-02-22 乐鑫信息科技(上海)股份有限公司 网络信道的切换方法、装置、设备和存储介质

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3469120B2 (ja) * 1998-06-12 2003-11-25 矢崎総業株式会社 通信網および通信装置
US7701900B2 (en) * 2005-02-03 2010-04-20 Control4 Corporation Device discovery and channel selection in a wireless networking environment
KR101235496B1 (ko) * 2005-05-12 2013-02-20 삼성전자주식회사 메쉬 네트워크에서의 채널 검색방법 및 채널 검색시스템
CN102695221B (zh) * 2005-11-16 2015-07-01 韩国电子通信研究院 在认知无线电系统中切换信道的方法
US8718561B2 (en) * 2007-11-20 2014-05-06 Aruba Networks, Inc. Method and apparatus for detecting and avoiding interference in a communications network
CN101621836B (zh) * 2008-06-30 2012-09-05 华为技术有限公司 Mesh网络中信道切换方法、装置和mesh网络
CN101621837B (zh) * 2008-06-30 2012-01-25 华为技术有限公司 信道切换方法、网状网络节点及网状网络
WO2010041167A1 (en) * 2008-10-09 2010-04-15 Koninklijke Philips Electronics N.V. Channel switching in mesh-type networks
JP5782954B2 (ja) * 2011-09-21 2015-09-24 沖電気工業株式会社 通信装置、通信プログラム、ノード装置及びネットワーク
CN102291794B (zh) * 2011-09-27 2014-05-07 杭州华三通信技术有限公司 一种mesh网络中的信道切换方法和设备
US8654711B2 (en) * 2012-02-24 2014-02-18 Mitsubishi Electric Research Laboratories, Inc. Channel scan for smart meter networks to determine operating channels
CN102685917B (zh) * 2012-06-04 2014-12-31 杭州电子科技大学 一种面向容量扩展的无线传感网多信道调度方法
US8891588B1 (en) * 2013-08-06 2014-11-18 Cisco Technology, Inc. On-demand medium to low transmission power channel switching in computer networks
US9699708B2 (en) * 2014-01-17 2017-07-04 Cooper Technologies Company Dynamically-selectable multi-modal modulation in wireless multihop networks
US9860762B2 (en) * 2014-03-11 2018-01-02 Vivint, Inc. Simultaneous channel switching within a mesh network
US9807619B2 (en) * 2015-08-04 2017-10-31 Network Performance Research Group Llc Methods and apparatuses for use of simultaneous multiple channels in the dynamic frequency selection band in wireless networks
WO2018185547A1 (en) * 2017-01-20 2018-10-11 Airties Kablosuz Iletisim Sanayi Ve Dis Ticaret A.S. System and method for setting mesh networks with a generic gateway node
US20210282212A1 (en) * 2017-02-07 2021-09-09 Nec Corporation Communication network system, wireless system, wireless apparatus, communication control method, and program
CN106879039B (zh) * 2017-02-28 2021-02-05 新华三技术有限公司 一种信道切换方法及装置
CN108289288A (zh) * 2018-01-22 2018-07-17 上海晶曦微电子科技有限公司 一种通信的方法、装置、通信设备及存储介质
CN110391981B (zh) * 2018-04-20 2021-10-26 慧与发展有限责任合伙企业 为网状网络中的网关节点建立源路由树的设备、方法及介质
JP7234379B2 (ja) * 2018-12-29 2023-03-07 華為技術有限公司 スマートホームデバイスによってネットワークにアクセスするための方法および関連するデバイス

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2234337A2 (en) * 2008-01-11 2010-09-29 LG Electronics Inc. Method for switching channel in mesh network
CN101917749A (zh) * 2010-08-17 2010-12-15 杭州华三通信技术有限公司 列车通信系统中实现信道动态切换的方法和装置
CN103974363A (zh) * 2013-01-31 2014-08-06 中兴通讯股份有限公司 一种非网关节点、无线网格网及无线网格网数据转发方法
CN104348888A (zh) * 2013-08-09 2015-02-11 中国电信股份有限公司 内容路由分发方法、内容分发网络节点和系统
CN109379772A (zh) * 2018-12-12 2019-02-22 乐鑫信息科技(上海)股份有限公司 网络信道的切换方法、装置、设备和存储介质

Also Published As

Publication number Publication date
US20220060961A1 (en) 2022-02-24
CN109379772A (zh) 2019-02-22
US11943695B2 (en) 2024-03-26
CN109379772B (zh) 2020-12-08

Similar Documents

Publication Publication Date Title
WO2020119523A1 (zh) 网络信道的切换方法、装置、设备和存储介质
US11259178B2 (en) Bluetooth mesh network provisioning authentication
WO2020168984A1 (zh) 网络配置方法、装置、设备和系统
US8780762B2 (en) Node query in ad hoc home mesh network
US11394696B2 (en) Resource request method, device and storage medium
US20230017263A1 (en) Key Negotiation Method and Electronic Device
CN117055833A (zh) 一种传屏方法、设备及存储介质
CN103581062A (zh) 用于处理未知单播数据包的方法和系统
WO2021043095A1 (zh) 密钥生成以及终端配网方法、装置、设备
US11558361B2 (en) Communication method between mesh network and cloud server, mesh network system and node device thereof
US11601258B2 (en) Selector derived encryption systems and methods
CN111787540A (zh) 接入物联网的方法、装置、电子设备及可读存储介质
US20220272511A1 (en) Subscription data management method and apparatus
WO2020237880A1 (zh) 基于非对称加密技术的数据交换方法、发送终端和计算机可读存储介质
CN109345242A (zh) 基于区块链的密钥存储、更新方法、装置、设备和介质
CN113434905A (zh) 数据共享方法、装置、计算机设备及存储介质
US20210194862A1 (en) Information processing method and information processing system for encryptor
CN113938883B (zh) 基于中间节点的数据加密发送方法及装置
EP4138356A1 (en) Inter-node privacy communication method and network node
WO2019010793A1 (zh) 物联网接入点接收数据的分时段加密方法及装置
US11729701B2 (en) Distribution network system and method
JP2013146113A (ja) ノード及びグループ鍵更新方法
CN115190168B (zh) 一种边缘服务器管理系统及服务器集群
WO2019019287A1 (zh) 一种物联网终端数据的随机加密方法及装置
US20220217131A1 (en) Networking method for household appliance, household appliance, and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19896765

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19896765

Country of ref document: EP

Kind code of ref document: A1