CN111757364A - Network switching method, communication system and related device - Google Patents

Network switching method, communication system and related device Download PDF

Info

Publication number
CN111757364A
CN111757364A CN201910891686.0A CN201910891686A CN111757364A CN 111757364 A CN111757364 A CN 111757364A CN 201910891686 A CN201910891686 A CN 201910891686A CN 111757364 A CN111757364 A CN 111757364A
Authority
CN
China
Prior art keywords
channel
node
channels
switching
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910891686.0A
Other languages
Chinese (zh)
Other versions
CN111757364B (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.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft 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 Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN201910891686.0A priority Critical patent/CN111757364B/en
Publication of CN111757364A publication Critical patent/CN111757364A/en
Application granted granted Critical
Publication of CN111757364B publication Critical patent/CN111757364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/02Selection of wireless resources by user or terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/18502Airborne stations
    • H04B7/18506Communications with or from aircraft, i.e. aeronautical mobile service
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the invention provides a network switching method, a communication system and a related device, and relates to the technical field of communication. The network switching method comprises the following steps: whether the self-checking is in an off-line state relative to the main node or not is judged; when the main node is judged to be in an off-line state relative to the main node, searching communication channels to obtain a plurality of channels to be selected; searching a current working channel of the main node from a plurality of channels to be selected; and carrying out network configuration according to the channel information of the working channel so as to recover communication with the main node. The problem that the off-line equipment returns to the cluster after the wireless equipment cluster channel is switched is solved, so that the communication channel of the wireless equipment cluster can be freely changed, and the stability and the anti-interference capability of a communication network adopted by the wireless equipment cluster are improved.

Description

Network switching method, communication system and related device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method, a communication system, and a related apparatus.
Background
The frequency spectrum belongs to limited resources, and with the development of communication technology, the occupied rate of the frequency spectrum resources is higher and higher. In order to efficiently utilize spectrum resources, a spectrum is divided into a plurality of frequency bands according to services, and each frequency band is divided into a plurality of channels for public use. However, when a large number of communication devices use the same frequency channel at the same time, a mutual interference phenomenon may occur, affecting the communication quality between the devices. Therefore, it is important for wireless devices to be able to switch communication channels by themselves.
However, the cluster of wireless devices that need to communicate normally on the same frequency channel is difficult to change the communication channel uniformly, especially when there are off-line devices. Therefore, after the wireless device cluster configures the network parameters, the wireless device cluster is not changed. Thus, the communication quality is difficult to guarantee.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a network switching method, a communication system and a related device, which improve the stability and the anti-interference capability of a communication network used by a wireless device cluster by solving the problem that an offline device returns to the cluster after the wireless device cluster channel is switched.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
a first aspect of an embodiment of the present invention provides a network switching method, which is applied to a slave node in a wireless device cluster, where the wireless device cluster further includes a master node, and the method includes: whether the self-checking is in an off-line state relative to the main node or not is judged; when the main node is judged to be in an off-line state relative to the main node, searching communication channels to obtain a plurality of channels to be selected; searching a current working channel of the main node from a plurality of channels to be selected; and carrying out network configuration according to the channel information of the working channel so as to recover communication with the main node.
In an optional embodiment, the step of searching for the current operating channel of the master node from the multiple channels to be selected includes: polling the channel to be selected; and if the heartbeat information broadcasted by the main node is received under the channel to be selected, judging that the channel to be selected is the working channel.
In an optional embodiment, the polling the channel to be selected includes: sorting the channels to be selected according to the quality of the channels to be selected from the good to the bad; and polling the channels to be selected in sequence according to the sequence.
In an optional implementation manner, after the step of sorting the channels to be selected according to their signal qualities from good to bad, the step of polling the channels to be selected further includes: and when detecting that a first frequency channel in the frequency channels to be selected is occupied by equipment serving as a main node in the wireless equipment cluster, arranging the first frequency channel at the head.
In an alternative embodiment, the method further comprises: and if the working channel is not determined from the channels to be selected, repeatedly searching the communication channel until the working channel is found.
In an alternative embodiment, the method further comprises: receiving channel switching information sent by the main node; and carrying out network configuration according to the channel information carried in the channel switching information.
A second aspect of the present invention provides a network switching method, which is applied to a master node in a wireless device cluster, where the wireless device cluster further includes a slave node, and the method includes: obtaining an instruction for triggering channel switching; notifying the slave node to switch channels according to the channel information carried in the instruction; switching channels according to the channel information; and under the switched channel, regularly broadcasting heartbeat information carrying wireless equipment cluster identification so that the slave node can self-check whether the slave node is in an offline state relative to the master node according to the heartbeat information, and enabling the slave node in the offline state to recover communication with the master node according to the heartbeat information.
In an optional embodiment, the main node is communicatively connected to a third-party device, and the obtaining the instruction for triggering channel switching includes: and receiving an instruction which is generated by the third-party equipment and carries the channel information.
In an alternative embodiment, the obtaining the instruction for triggering channel switching includes: searching communication channels according to a preset time interval to obtain a plurality of channels to be selected; determining a target switching channel according to the number of devices working under the channel to be selected and the signal quality of the channel to be selected; and generating the instruction for triggering channel switching according to the channel information of the target switching channel.
In an optional implementation manner, the step of determining a target channel switching according to the number of devices operating in the channel to be selected and the signal quality of the channel to be selected includes: acquiring a second channel with the least equipment number corresponding to the channel to be selected; and determining the target switching channel from the second channels.
In an alternative embodiment, the step of determining the target zapping channel from the second channels comprises: when the number of the devices corresponding to the second channel does not exceed a preset value, randomly determining the target switching channel from the second channel; and when the number of the devices corresponding to the second channel exceeds a preset value, determining the target switching channel from the second channel by combining the signal quality of the second channel.
In an optional embodiment, the step of notifying the slave node to perform channel switching includes: generating channel switching information according to the channel information; and sending the channel switching information to the slave node.
In an optional embodiment, the manner of sending the channel switching information to the slave node includes any one of the following: broadcasting the channel switching information; or the channel switching information is sent to each slave node in turn.
A third aspect of the embodiments of the present invention provides a network switching apparatus, which is applied to a slave node in a wireless device cluster, where the wireless device cluster further includes a master node, and the network switching apparatus includes: the self-checking module is used for self-checking whether the host node is in an off-line state or not; the searching module is used for searching communication channels to obtain a plurality of channels to be selected when the main node is judged to be in an off-line state; the judging module is used for searching the current working channel of the main node from a plurality of channels to be selected; and the configuration module is used for carrying out network configuration according to the channel information of the working channel so as to recover the communication with the main node.
A fourth aspect of the present invention provides a network switching apparatus, which is applied to a master node in a wireless device cluster, where the wireless device cluster further includes a slave node, and the apparatus includes: the acquisition module is used for acquiring an instruction for triggering channel switching; the notification module is used for notifying the slave node to switch the channel according to the channel information carried in the instruction; the switching module is used for switching channels according to the channel information; and the sending module is used for regularly broadcasting heartbeat information carrying wireless equipment cluster identification under the switched channel so as to enable the slave node to self-check whether the slave node is in an offline state relative to the master node according to the heartbeat information and enable the slave node in the offline state to recover communication with the master node according to the heartbeat information.
A fifth aspect of the embodiments of the present invention provides a communication system, where the communication system includes a master node and a slave node, where the slave node and the master node communicate in a same operating channel; the slave node is used for self-checking whether the slave node is in an offline state relative to the master node; the slave node is used for searching communication channels to obtain a plurality of channels to be selected when the slave node is judged to be in an off-line state relative to the master node; the slave node is used for searching the current working channel of the master node from a plurality of channels to be selected; the slave node is used for carrying out network configuration according to the channel information of the working channel so as to recover communication with the master node; the main node is used for acquiring an instruction for triggering channel switching; the main node is used for informing the slave node to switch the channel according to the channel information carried in the instruction; the main node is also used for switching channels according to the channel information; and under the switched channel, the master node is used for regularly broadcasting heartbeat information carrying wireless equipment cluster identification so that the slave node automatically checks whether the slave node is in an offline state relative to the master node according to the heartbeat information and enables the slave node in the offline state to recover communication with the master node according to the heartbeat information.
In an optional embodiment, the communication system further includes a third-party device, where the third-party device is in communication connection with the master node; and the third-party equipment is used for responding to user operation to generate an instruction carrying the channel information and sending the instruction to the main node.
A sixth aspect of the present invention provides an electronic device, including a processor and a memory, where the memory stores machine-executable instructions that can be executed by the processor, and the processor can execute the machine-executable instructions to implement the network switching method according to any one of the foregoing embodiments.
A seventh aspect of embodiments of the present invention provides a program product, such as a computer-readable storage medium, including a program, which, when executed by a processor, is configured to perform the method provided in the first or second aspect above.
Compared with the prior art, the embodiment of the invention provides a network switching method. The network switching method self-checks whether the slave node is disconnected with the master node. After the master node is determined to lose contact with the slave node, in order to solve the problem that the wireless device cluster changes the communication frequency band during the loss of contact, the slave node starts communication frequency channel search to obtain a plurality of channels to be selected. And searching the current working channel of the main node from the plurality of channels to be selected. And performing network configuration according to the found channel information of the working channel, so as to return to the communication network of the wireless device cluster and recover communication with the master node. Therefore, the obstacle of changing the communication channel of the wireless device cluster is eliminated, the wireless device cluster can conveniently select the optimal communication channel according to the frequency spectrum environment, and the anti-interference capability of the communication network of the cluster is provided.
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 will be 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, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a wireless device cluster provided in an embodiment of the present invention.
Fig. 2 shows a schematic diagram of an electronic device provided by an embodiment of the invention.
Fig. 3 is a flowchart illustrating steps of a network handover method applied to a slave node according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating steps of another network handover method applied to a slave node according to an embodiment of the present invention.
Fig. 5 shows another part of the flowchart of the steps of a network handover method applied to the slave node according to the embodiment of the present invention.
Fig. 6 is a timing chart illustrating an application example of the network handover method according to the first embodiment of the present invention.
Fig. 7 is a flowchart illustrating steps of a network handover method applied to a master node according to an embodiment of the present invention.
Fig. 8 is a timing chart illustrating an application example of the network handover method according to the second embodiment of the present invention.
Fig. 9 is a schematic diagram of a communication system provided by an embodiment of the present invention.
Fig. 10 is a schematic diagram illustrating a network switching apparatus applied to a slave node according to an embodiment of the present invention.
Fig. 11 is a schematic diagram illustrating a network switching apparatus applied to a master node according to an embodiment of the present invention.
Icon: 100-a master node; 200-a slave node; 300-an electronic device; 310-a memory; 320-a processor; 330-a communication module; 400-a third party device; 500-network switching means; 501-self-checking module; 502-search module; 503-a judgment module; 504-configuration module; 600-a network switching device; 601-an obtaining module; 602-a notification module; 603-a switching module; 604-sending module.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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 of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
To enable those skilled in the art to use the present disclosure, the following embodiments are given primarily in conjunction with the specific application scenario "drone cluster". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is primarily described in the context of a wireless device cluster consisting of a drone, a remote control, and a base station, it should be understood that this is only one exemplary embodiment. The present application may be applied to any other type of wireless device cluster. For example, the method and the device can also be applied to interphone clusters, intelligent household clusters and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a wireless device cluster according to an embodiment of the present invention. The wireless device cluster includes a plurality of devices capable of wireless communication. For example, the system comprises a plurality of unmanned aerial vehicles and ground stations (the ground stations can be remote controllers and base stations). Devices in a wireless device cluster communicate in a direct or indirect manner to build a corresponding communication network. For example, the communication network may be a Mesh network.
In some embodiments, the devices within a wireless device cluster may be divided into master nodes 100 and slave nodes 200 by function. It will be appreciated that there is at least one master node 100 in the cluster of wireless devices described above. The master node 100 is used for data interaction with each slave node 200, and the master node 100 is also used for scheduling and managing the slave nodes 200. Optionally, the main node 100 further has a human-computer interaction function, and may interact with a user to obtain upper layer data. The master node 100 is also configured to receive data fed back from the node 200. That is, the master node 100 ensures that upper layer data is accurately transmitted to the slave node 200 and data transmitted from the slave node 200 is forwarded or processed. For example, the master node 100 may manage and schedule the slave nodes 200 by sending instructions, and the slave nodes 200 may also feed back collected data to the master node 100.
Further, the slave node 200 may directly perform data interaction with the master node 100, or may perform data interaction with the master node 100 after being transferred by other slave nodes 200 in the same cluster. Various types of data acquisition units (e.g., angle sensors, speed sensors, image collectors, etc.) are installed on the slave node 200, so as to perform data acquisition and feedback to the master node 100 when corresponding services are executed.
In some embodiments, devices in a wireless device cluster that are master nodes 100 or slave nodes 200 may also be pre-designated.
In some embodiments, master node 100 may also be replaced by one device in the cluster for another.
Taking the unmanned aerial vehicle cluster as an example, the master node 100 may be a remote controller, and the slave node 200 may be an unmanned aerial vehicle, a base station, or the like, which is in communication connection with the remote controller. Above-mentioned unmanned aerial vehicle can with remote controller direct communication, above-mentioned unmanned aerial vehicle still communicates with the remote controller through basic station, again perhaps unmanned aerial vehicle A communicates with the remote controller through unmanned aerial vehicle B. Of course, the drones, the remote controllers, the base stations, and the like in the drone cluster may all be designated as the master node 100, and the other devices in the drone cluster except the master node 100 are slave nodes 200.
It should be noted that, before the present application is proposed, in the related art, since the devices in the wireless device cluster can only communicate on the same communication channel, meanwhile, there always exists a slave node 200 in the wireless device cluster, which is disconnected from the communication network of the cluster due to location, device failure or interference, that is, the slave node 200 is offline with respect to the master node 100. Therefore, it is difficult for a wireless device cluster to collectively change communication channels. In the case of a change channel, the slave node 200 that was dropped during the change cannot return to the communication network of the cluster. Therefore, a fixed communication channel is typically configured before the wireless device cluster is put into use so that the devices within the wireless device cluster can communicate on the same channel. This also results in a communication network of the wireless device cluster having poor interference rejection and communication quality susceptible to interference.
In order to solve the above technical problem, embodiments of the present invention provide a network switching method, a communication system and a related device. The core improvement point is as follows: by adjusting the way that the slave node 200 in the off-line state returns to the communication network of the wireless device cluster, the problem that the communication channel of the wireless device cluster cannot be changed is solved, so that the anti-interference capability of the communication network of the wireless device cluster is improved, and the communication quality is improved. The technical solution of the present invention is explained below by means of possible implementations.
Fig. 2 shows a schematic diagram of exemplary hardware and software components of an electronic device 300 of a master node 100 or an electronic device 300 of a slave node 200, which may implement the concepts of the present application, according to some embodiments of the present application. For example, the processor 320 may be used on the electronic device 300 and to perform the functions herein.
The electronic device 300 includes a memory 310, a processor 320, and a communication module 330. The memory 310, the processor 320 and the communication module 330 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 310 is used for storing programs or data. The Memory 310 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an erasable Read-Only Memory (EPROM), an electrically erasable Read-Only Memory (EEPROM), and the like.
The processor 320 is used to read/write data or programs stored in the memory and perform corresponding functions.
The communication module 330 is configured to establish a communication connection between the server and another communication terminal through the network, and to transmit and receive data through the network.
It should be understood that the configuration shown in fig. 2 is merely a schematic configuration of the electronic device 300, and that the electronic device 300 may include more or less components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
First embodiment
Referring to fig. 3, fig. 3 shows a network handover method according to an embodiment of the present invention. The above network handover method is applied to the slave node 200 in the wireless device cluster. As shown in fig. 3, the network handover method may include the following steps:
step S101, self-checking whether the host node 100 is in an offline state.
In the embodiment of the present invention, the state of being offline with respect to the master node 100 may be a state in which the slave node 200 cannot perform data interaction with the master node 100. It is understood that, during normal communication, the master node 100 in the wireless device cluster can perform data interaction with the slave node 200 via other slave nodes in the wireless device cluster even though the master node 100 cannot perform data interaction with the slave node 200 directly. However, when the slave node 200 drops from the communication network corresponding to the wireless device cluster, the slave node 200 cannot receive information transmitted by the master node 100 in the cluster, and cannot feed back data to the master node 100 of the cluster. In other words, the slave node 200 may also be considered to be dropped from the communication network of the wireless device cluster while being offline with respect to the master node 100.
In some embodiments, the manner of self-checking whether the above-mentioned self-test is in an offline state with respect to the master node 100 may include:
in the first mode, whether heartbeat information sent by the master node 100 is received or not is checked regularly, and whether offline or not is determined according to a check result. For example, the duration of the last received heartbeat message in the slave node 200 is obtained, and if the duration exceeds a specified duration, it is determined that the slave node 200 is offline with respect to the master node 100 at this time. It should be noted that the heartbeat information may be a data packet periodically generated and broadcasted by the master node 100 in the wireless device cluster, and the data packet carries an identifier of the wireless device cluster.
In the second way, the slave node 200 transmits the inquiry information to the master node 100 at regular time. If the reply of the master node 100 is not received within the specified time and the replies of other slave nodes 200 are not received, the state of being offline relative to the master node 100 is determined.
Of course, the two ways may be combined to improve the accuracy of the determination. For example, after not receiving the heartbeat information for a long time, the inquiry information is sent to the master node 100. If the reply of the master node 100 is not received within the specified time and the replies of other slave nodes 200 are not received, the state of being offline relative to the master node 100 is determined.
Step S102, when it is determined that the master node 100 is in an offline state, performing communication channel search to obtain a plurality of channels to be selected.
In an embodiment of the present invention, the slave node 200, which is in an offline state, searches for communication channels available within the current environment. Channel information of a plurality of channels to be selected can be obtained by searching. The channel information includes a combination of one and the other of a network name, a channel number, information of a wireless device currently using the channel (e.g., a MAC address of the wireless device using the channel), and a signal quality value.
Step S103, searching for the current working channel of the master node 100 from the multiple channels to be selected.
In the embodiment of the present invention, the current operating channel of the master node 100 of the corresponding wireless device cluster may be searched from a plurality of channels to be selected according to the obtained channel information.
In some embodiments, the step S103 may include the following steps:
(1) and polling the channel to be selected.
In some embodiments, the above manner of polling the channels to be selected may be: the channels to be selected are sorted according to the quality of the channels from good to bad. And polling the channels to be selected in sequence according to the sequence. Alternatively, the sorting according to the quality of the signal may be sorting the channels to be selected according to the corresponding signal quality values from large to small. It can be understood that, usually, the master node 100 selects a communication channel with good signal quality for replacement, and therefore, the polling after sorting the channels to be selected according to the quality of the signal quality can improve the efficiency of finding the current operating channel of the master node 100.
For example, a channel 1 signal quality value of-67 dBm, a channel 2 signal quality value of-97 dBm, a channel 3 signal quality value of-78 dBm, a channel 4 signal quality value of-56 dBm, and a channel 5 signal quality value of-23 dBm, sorted by signal quality: channel 5, channel 4, channel 1, channel 3, channel 2.
In other embodiments, the above manner of polling the channels to be selected may be: the channels to be selected are sorted according to the quality of the channels from good to bad. After the sorting, if it is detected that a first channel in the channels to be selected is occupied by a device serving as the master node 100 in the wireless device cluster, the first channel is arranged at the head. And polling the channels to be selected in sequence according to the sequence.
It will be appreciated that the device in the wireless device cluster described above as master node 100 may be a wireless device that has undertaken the role of master node 100 in the wireless device cluster before being taken offline from node 200. As for the above example, when the Mac address of the master node 100 connected to the slave node 200 is included in the wireless device Mac address corresponding to the channel 4, the channel 4 is used as the first channel, and the first channel is arranged before other channels to be selected, and the sequence is as follows: channel 4, channel 5, channel 1, channel 3, channel 2.
In other embodiments, the above polling channels to be selected may also be: randomly polling the channel to be selected, or preferentially polling the communication channel occupied by the slave node 200 before being offline. The above method is suitable for the case where the first frequency channel occupied by the device serving as the master node 100 in the wireless device cluster is not detected, and the signal quality of the multiple frequency channels to be selected is high. For example, the signal quality values of the searched channels to be selected are all higher than the preset quality threshold.
In the embodiment of the present invention, polling the channel to be selected may be to perform network parameter configuration on channel information of the polled channel to be selected. For example, the listening frequency point is set as a frequency point corresponding to the channel number of the channel to be selected. And intercepting the information broadcast in the polled channel to be selected.
(2) If the heartbeat information broadcast by the main node 100 is received under the channel to be selected, the channel to be selected is judged to be a working channel.
In the embodiment of the present invention, it may be determined whether the received heartbeat information is sent by the master node 100 by checking whether the heartbeat information carries an identifier of the wireless device cluster to which the heartbeat information belongs. If yes, the channel to be selected is determined to be the currently adopted working channel of the main node 100.
In some embodiments, the devices in the wireless device cluster that are the master node 100 may be replaced due to a specific situation, and all the devices that are the master node 100 may broadcast heartbeat information carrying the wireless device cluster identifier. Therefore, even if the offline slave node 200 does not determine whether the device as the master node 100 is replaced, the master node 100 in the current cluster can be identified by the heartbeat information.
Step S104, performing network configuration according to the channel information of the working channel to recover communication with the master node 100.
In the embodiment of the invention, the frequency point corresponding to the channel number of the working channel can be obtained, and network configuration is carried out according to the frequency point of the working channel. For example, the frequency points corresponding to the channel number include an uplink frequency point and a downlink frequency point. The uplink frequency point is a frequency for transmitting data to the outside, and the downlink frequency point is a frequency for receiving data. The uplink frequency point of the working channel is set as the sending frequency point of the slave node 200, and the downlink frequency point of the working channel is set as the monitoring frequency point of the slave node 200. In this manner, the slave node 200 may resume communication with the master node 100 and thus revert back into the communication network of the wireless device cluster.
During the period that the slave node 200 is offline, the wireless device cluster may change the communication channel to cope with the channel interference problem, and specifically, after the master node 100 determines a new working channel, the slave node 200 is notified of the change of the communication channel. However, the offline slave node 200 cannot learn the changed communication channel, and if the offline slave node 200 performs network configuration (i.e., performs configuration by using channel information of the original communication channel) in the related art, it cannot return to the wireless device cluster, thereby completely losing contact with the wireless device cluster. Therefore, in the embodiment of the present invention, after the slave node 200 determines that the slave node is in the offline state, the offline slave node 200 can smoothly return to the wireless device cluster by searching for the current operating channel of the master node 100, so as to solve the problem that the wireless device cluster is difficult to change the communication channel in a unified manner.
In some embodiments, the energy of the broadcast information is attenuated as the propagation distance increases, and for the mobile slave node 200, if the mobile slave node is disconnected due to the distance, the working channel of the master node 100 may not be determined after the channel search is performed.
In order to solve the above problem, in some embodiments, as shown in fig. 4, the network handover method may further include: if the working channel is not determined from the channels to be selected, the process returns to step S102, and the communication channel search is repeated until the working channel is found. That is, the obtained channel information of the channel to be selected is updated in real time by searching the communication channel in real time until the working channel corresponding to the master node 100 is found, and configuration is performed according to the channel information of the working channel, so that the wireless device communication cluster returns.
In order to improve the interference resistance of the communication network of the wireless device cluster, the wireless device cluster needs to be able to select a high-quality channel according to the spectrum environment and switch. For a wireless device cluster, not only the master node 100 but also all the slave nodes 200 are required to switch communication channels. In the embodiment of the present invention, on the basis of solving the problem of switching the communication channel by the offline slave node 200 through the above steps, the slave node 200 that is not in the offline state with respect to the master node 100 needs to switch the communication channel. For example, as shown in fig. 5, the network handover method further includes:
in step S201, the channel switching information sent by the master node 100 is received.
In the embodiment of the present invention, after determining the target switching channel, the main node 100 acquires channel information of the target switching channel. And generating channel switching information according to the channel information, and sending the channel switching information to the slave node 200 in a broadcasting or unicast mode. It should be noted that the target zapping channel is a high-quality channel to be changed by the wireless device cluster determined by the master node 100.
Step S202, network configuration is performed according to the channel information carried in the channel switching information.
In the embodiment of the present invention, after receiving the channel switching information from the node 200, the channel information of the target switching channel is obtained from the channel switching information, and the network parameter configuration of the node 200 is performed according to the channel information. So that all devices in the cluster of wireless devices can perform a channel change.
For better explanation of the present embodiment, the following describes, with reference to fig. 6, an example of a cluster of drones using Mesh networking in the same communication channel.
The unmanned aerial vehicle cluster comprises a remote controller, a base station and at least one unmanned aerial vehicle. For convenience of description, the remote controller is taken as the master node 100 in the cluster in the example, and the other devices (the drone and the base station) are taken as the slave nodes 200 in the cluster for example. That is, in the following examples, reference to a remote controller may refer to the master node 100 instead. As shown in fig. 6, the network handover method includes the following steps:
and S1, listening to the information sent by the remote controller. If the channel switching information transmitted from the remote controller is received, the flow advances to step S2.
And S2, configuring the network according to the channel information carried in the channel switching information.
S3, checking whether the duration of the newly sensed heartbeat message exceeds a specified duration? If the specified time period is not exceeded, the flow returns to step S1. If the specified time period is exceeded, the flow advances to step S4.
And S4, searching communication channels to obtain a plurality of channels to be selected. Optionally, the Mesh network available in the current environment is searched to serve as the channel to be selected. The channel information of each channel to be selected includes a corresponding network name, a channel number, device information using the Mesh network, a signal quality value, and the like.
And S5, sorting the channels to be selected.
Alternatively, the channels to be selected may be sorted according to their signal quality from good to bad.
Optionally, the channels to be selected may also be sorted according to the signal quality of the channels to be selected from good to bad. If the master node 100 connected before the slave node 200 is offline is a remote controller, when detecting that a first channel in the channels to be selected is occupied by the remote controller, arranging the first channel at the head.
And S6, polling the channels to be selected according to the sequence of the channels to be selected.
S7, listen and poll to see if there is heartbeat information carrying the drone communication cluster identifier in the channel to be selected? If so, the flow advances to step S9; if not, the flow returns to step S8.
S8, determine that the polled channel to be selected is not the last channel? If so, the flow returns to step S4. It is understood that, during the flight of the drone serving as the slave node 200, if the drone is far away from the remote controller and other slave nodes 200 and goes offline, the heartbeat information may not be received in the searched candidate channel unless the distance between the drone and the remote controller or other slave nodes 200 is less than the specified communication distance. If not, the flow advances to step S6 to poll the next candidate channel.
And S9, using the channel to be selected as the current working channel of the remote controller, and performing network configuration according to the channel information of the working channel.
It can be understood that the cooperation between the steps S3 to S9 prevents the remote controller from performing the channel switching operation when the channel switching message of the remote controller is not received, and the communication cluster with the drone is completely lost.
Second embodiment
Referring to fig. 7, fig. 7 shows a network handover method according to an embodiment of the present invention. The above network switching method is applied to the master node 100 in the wireless device cluster. As shown in fig. 7, the network handover method may include the following steps:
in step S301, an instruction for triggering channel switching is obtained.
In some embodiments, the instructions may also be generated by the third party device 400. The third party device 400 may be an electronic device 300 communicating with the master node 100. Alternatively, the third party device 400 may be a mobile device, a tablet computer, a laptop computer, or a built-in device in a motor vehicle, etc. In some embodiments, the mobile device may include a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart lace, smart glass, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, and the like, or any combination thereof. In some embodiments, the smart mobile device may include a smartphone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, or the like, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device and/or augmented reality device may include various virtual reality products and the like.
In this embodiment of the present invention, the third-party device 400 may perform channel search and present the channel information of the searched channel to be selected to the user, so that the user may select a target channel to be switched from. The third-party device 400 generates a channel switching instruction for triggering the master node 100 to switch channels based on the channel information of the target channel switching, and sends the channel switching instruction to the master node 100. Optionally, the sending to the master node 100 includes wired USB, wireless hotspot, bluetooth, and the like.
In some embodiments, the instruction may be automatically generated by the master node 100 according to the spectrum environment, and the instruction is used to instruct the master node 100 to perform channel change and to instruct the slave node 200 to perform channel change. The instruction includes channel information of the target switching channel. Alternatively, the step of the master node 100 automatically generating the instruction for triggering the channel switching may be:
(1) the main node 100 performs channel search to obtain a plurality of channels to be selected.
As an embodiment, the master node 100 may perform a communication channel search in the environment according to a preset time interval, so as to obtain a plurality of channels to be selected.
As another embodiment, the master node 100 may perform a communication channel search to obtain a plurality of candidate channels after determining that the signal quality of the current operating channel is not satisfactory (for example, the signal quality value is lower than a preset threshold).
It will be appreciated that the first approach may ensure that the master node 100 can switch to the communication channel with the best signal in time. The second mode can reduce the frequency of channel switching without affecting the normal communication, and ensure the stability of the wireless device cluster.
(2) And acquiring the channel information of the searched channel to be selected, and determining a target switching channel from the channel to be selected according to the channel information.
The channel information may include a network name, a channel number, the number of devices operating on the channel, and a signal quality value for the channel at the present time. In the embodiment of the present invention, the target channel switching may be determined according to the number of devices operating in the channel to be selected and the signal quality of the channel to be selected.
In this embodiment of the present invention, the determining of the target zapping channel may be:
first, at least one second channel is determined from the channels to be selected. The second channel is a channel with the least number of corresponding devices in the channels to be selected.
For example, according to the channel information of the searched channel to be selected, it can be known that: the number of devices communicating using the channel 1 to be selected is 4 (that is, the number of devices corresponding to the channel 1 to be selected is 4), the number of devices communicating using the channel 2 to be selected is 0 (that is, the number of devices corresponding to the channel 2 to be selected is 0), the number of devices communicating using the channel 3 to be selected is 0 (that is, the number of devices corresponding to the channel 3 to be selected is 0), and the number of devices communicating using the channel 4 to be selected is 2 (that is, the number of devices corresponding to the channel 4 to be selected is 2). That is, if the channels to be selected have the smallest number of devices, i.e., the channels 2 and 3 to be selected, the channel 2 and the channel 3 to be selected are determined as the second channel.
Secondly, a target switching channel is determined from the second channel.
As an embodiment, the determining the target zapping channel from the second channels may include randomly determining the target zapping channel from the second channels when the number of devices corresponding to the second channels does not exceed a preset value. In the above example, if the preset value is 0, a target channel to be switched is randomly determined from the channel 2 to be selected and the channel 3 to be selected.
As another implementation manner, determining the target zapping channel from the second channel may further include determining the target zapping channel from the second channel in combination with the signal quality of the second channel when the number of devices corresponding to the second channel exceeds a preset value. For example, if the number of devices corresponding to the channel 1 to be selected is 4 and the corresponding signal quality value is-26 dBm, the number of devices corresponding to the channel 2 to be selected is 6 and the corresponding signal quality value is-65 dBm, the number of devices corresponding to the channel 3 to be selected is 4 and the corresponding signal quality value is-43 dBm, and the number of devices corresponding to the channel 4 to be selected is 5 and the corresponding signal quality value is-56 dBm, it is determined that the channel 1 to be selected and the channel 3 to be selected are the second channel. At this time, the signal quality value of the channel 1 to be selected is greater than the signal quality value of the channel 2 to be selected (i.e., the signal quality of the channel 1 to be selected is better), and the channel 1 to be selected is selected as the target switching channel.
In another embodiment, if the obtained signal quality of the plurality of second channels is the same, a channel is randomly selected from the second channels as the target switching channel.
It is understood that if there is only one second channel, the second channel is finally used as the target channel no matter what way the target channel is determined. Therefore, in other embodiments, when there is only one second channel, the second channel may be directly used as the target channel.
(3) And generating an instruction for triggering channel switching according to the channel information of the target switching channel.
In the embodiment of the present invention, the instruction for triggering channel switching may be generated according to a network parameter such as a channel number of a target switching channel.
Step S302, the slave node 200 is notified to perform channel switching according to the channel information carried in the instruction.
Step S303, performing channel switching according to the channel information.
In the embodiment of the present invention, the master node 100 may notify the slave node 200 of the channel switching in the current operating channel. And then, the network parameters are reconfigured according to the channel information so as to work under the target switching channel.
Optionally, the step of notifying the slave node 200 of the channel switching includes: and generating channel switching information according to the channel information of the target switching channel, and sending the channel switching information to the slave node 200. Optionally, the channel switching information may be sent to the slave node 200 by: broadcast or unicast. It is understood that the broadcasting may be performed in such a way that the main node 100 broadcasts the channel switching information at the current operating channel, so that other devices in the wireless device cluster can receive the channel switching information. It is understood that the unicast manner may be that the master node 100 polls each slave node 200 in turn according to the device information list of the slave nodes 200 in the wireless device cluster stored therein, and transmits the channel switching information to the slave node 200.
Step S304, under the switched channel, the heartbeat information carrying the wireless equipment cluster identification is broadcasted regularly.
It can be understood that the purpose of the timed broadcast of the heartbeat information carrying the wireless device cluster identity is to: the slave node 200 is facilitated to self-check whether it is in an offline state with respect to the master node 100 according to the heartbeat information, and to resume communication with the master node 100 by the slave node 200 in the offline state according to the heartbeat information. It can be understood that offline devices, especially unmanned aerial vehicle communication clusters, are inevitably present in the wireless device cluster working process. If there is an offline device when the communication channel is changed, it may be difficult for the offline device to return to the cluster, that is, it may be difficult for the wireless device cluster to uniformly change the communication channel. The present invention utilizes the above step S304 to overcome the problem, so that the wireless device cluster can also change the communication channel according to the requirement of the spectrum environment or the requirement of the user, thereby improving the anti-interference capability and stability of the communication network of the wireless communication cluster.
For better explanation of the present embodiment, the following describes, with reference to fig. 8, an example of a cluster of drones using Mesh networking in the same communication channel.
The unmanned aerial vehicle cluster comprises a remote controller, a base station and at least one unmanned aerial vehicle. For convenience of description, in the example, the remote controller is taken as a master node 100 in the cluster, the drone and the base station are taken as slave nodes 200 in the cluster, and the mobile phone is taken as a third-party device 400 for example. That is, in the following examples, reference to a remote controller may refer to the master node 100 instead. As shown in fig. 8, the network handover method includes the following steps:
a1, the remote controller scans the channel of the current environment in real time. For example, channel 1, channel 2, and channel 3 are scanned out, and the channels are used as channels to be selected.
And A2, selecting the second channel with the least number of corresponding devices from the channels to be selected. For example, if the number of wireless devices communicating on frequency channel 1 is 5, the number of wireless devices communicating on frequency channel 2 is 6, and the number of wireless devices communicating on frequency channel 3 is 5, then frequency channels 1 and 3 are used as the second frequency channel.
And A3, determining the target switching channel from the second channel according to the signal quality. For example, if the signal quality value of channel 1 is-40 dBm and the signal quality of channel 3 is-55 dBm, then channel 1 is determined to be the target zapping channel. The flow proceeds to step a 5.
A4, receiving an instruction sent by the mobile phone, wherein the instruction is used for triggering the remote controller to switch channels. The instruction carries the channel information of the target switching channel. The flow proceeds to step a 5. It is understood that there is no absolute order between steps a4 and a 1.
A5, generating channel switching information according to the target switching channel.
And A6, sending out channel switching information to inform the unmanned aerial vehicles and the base stations in the cluster.
A7, reconfiguring the network parameters of the remote controller according to the channel information of the target switching channel.
And A8, periodically sending heartbeat data carrying the identification of the unmanned aerial vehicle communication cluster under the target switching channel.
Third embodiment
Referring to fig. 9, fig. 9 shows a communication system according to an embodiment of the present invention. As shown in fig. 9, the communication system includes a master node 100, a slave node 200, and a third party device 400. The slave node 200 communicates with the master node 100 on the same operating frequency channel. The third-party device 400 communicates with the master node 100 in a wired or wireless manner. For example, the communication system includes a plurality of electronic devices 300 that communicate with each other. The device as the master node 100, the device as the slave node 200, and the device as the third party device 400 may be determined from the electronic devices 300. The plurality of electronic devices 300 communicating with each other may be one of an unmanned aerial vehicle, a remote controller, an intelligent terminal, a base station, an intelligent terminal, or the like, or a combination thereof.
In the embodiment of the present invention, the slave node 200 is configured to self-check whether the slave node is offline with respect to the master node 100. The slave node 200 is configured to search a communication channel to obtain a plurality of channels to be selected when it is determined that the slave node is in an offline state with respect to the master node 100. The slave node 200 is configured to find a current operating channel of the master node 100 from a plurality of channels to be selected. The slave node 200 is configured to perform network configuration according to the channel information of the working channel, so as to recover communication with the master node 100.
In an embodiment of the present invention, the master node 100 is configured to obtain an instruction for triggering channel switching. The master node 100 is further configured to notify the slave node 200 to perform channel switching according to the channel information carried in the instruction, and perform channel switching according to the channel information. In the switched channel, the master node 100 is further configured to broadcast heartbeat information carrying a wireless device cluster identifier at a fixed time, so that the slave node 200 performs self-checking according to the heartbeat information whether the slave node is in an offline state with respect to the master node 100, and the slave node 200 in the offline state resumes communication with the master node 100 according to the heartbeat information.
In this embodiment of the present invention, the third-party device 400 is further configured to generate an instruction carrying channel information in response to a user operation, and send the instruction to the host node 100.
Fourth embodiment
Fig. 10 is a block diagram illustrating a network switching device 500 according to some embodiments of the present application, where the network switching device 500 implements functions corresponding to the steps performed by the network switching method according to the first embodiment. The device may be understood as the slave node 200 or the processor 320 of the slave node 200, or may also be understood as a component that is independent from the slave node 200 or the processor 320 and implements the functions of the present application under the control of the slave node 200, and as shown in the figure, the network switching device 500 may include a self-test module 501, a search module 502, a judgment module 503, and a configuration module 504.
A self-checking module 501, configured to self-check whether the node is offline with respect to the master node 100.
In the embodiment of the present invention, the self-test module 501 may be configured to execute step S101 in the first embodiment.
The searching module 502 is configured to perform communication channel searching to obtain multiple channels to be selected when it is determined that the node is in an offline state with respect to the master node 100.
In an embodiment of the present invention, the searching module 502 may be configured to execute the step S102.
The determining module 503 is configured to find a current working channel of the main node 100 from the multiple channels to be selected.
In an embodiment of the present invention, the determining module 503 may be configured to execute the step S103.
A configuration module 504, configured to perform network configuration according to the channel information of the working channel, so as to recover communication with the master node 100.
In an embodiment of the present invention, the configuration module 504 may be configured to execute the step S104.
Fifth embodiment
Fig. 11 is a block diagram illustrating a network switching device 600 according to some embodiments of the present application, where the network switching device 600 implements functions corresponding to the steps performed by the network switching method according to the second embodiment. The apparatus may be understood as the above-mentioned master node 100, or the processor 320 of the master node 100, or may also be understood as a component that is independent from the above-mentioned master node 100 or the processor 320 and implements the functions of the present application under the control of the master node 100, and as shown in the figure, the network switching apparatus 600 may include an obtaining module 601, a notifying module 602, a switching module 603, and a sending module 604.
The obtaining module 601 is configured to obtain an instruction for triggering channel switching.
In this embodiment of the present invention, the obtaining module 601 may be configured to execute the step S301.
A notifying module 602, configured to notify the slave node 200 to perform channel switching according to the channel information carried in the instruction.
In an embodiment of the present invention, the notification module 602 may be configured to execute the step S302.
The switching module 603 is configured to perform channel switching according to the channel information.
In an embodiment of the present invention, the switching module 603 may be configured to execute the step S303.
A sending module 604, configured to broadcast heartbeat information carrying a wireless device cluster identifier at regular time in the switched channel, so that the slave node 200 performs self-checking according to the heartbeat information whether the slave node is in an offline state with respect to the master node 100, and the slave node 200 in the offline state resumes communication with the master node 100 according to the heartbeat information.
In an embodiment of the present invention, the sending module 604 may be configured to execute the step S304.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application.
Embodiments of the present invention also disclose a computer readable storage medium, on which a computer program is stored, which, when executed by the processor 320, implements the methods disclosed in the foregoing embodiments of the present invention.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
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 (19)

1. A network switching method applied to a slave node in a wireless device cluster, the wireless device cluster further comprising a master node, the method comprising:
whether the self-checking is in an off-line state relative to the main node or not is judged;
when the main node is judged to be in an off-line state relative to the main node, searching communication channels to obtain a plurality of channels to be selected;
searching a current working channel of the main node from a plurality of channels to be selected;
and carrying out network configuration according to the channel information of the working channel so as to recover communication with the main node.
2. The network switching method according to claim 1, wherein the step of searching for the current operating channel of the master node from the plurality of channels to be selected comprises:
polling the channel to be selected;
and if the heartbeat information broadcasted by the main node is received under the channel to be selected, judging that the channel to be selected is the working channel.
3. The network switching method of claim 2, wherein the polling the channel to be selected comprises:
sorting the channels to be selected according to the quality of the channels to be selected from the good to the bad;
and polling the channels to be selected in sequence according to the sequence.
4. The network switching method of claim 3, wherein after the step of sorting the channels to be selected according to their signal quality from good to bad, the step of polling the channels to be selected further comprises:
and when detecting that a first frequency channel in the frequency channels to be selected is occupied by equipment serving as a main node in the wireless equipment cluster, arranging the first frequency channel at the head.
5. The network handover method according to claim 1, wherein the method further comprises:
and if the working channel is not determined from the channels to be selected, repeatedly searching the communication channel until the working channel is found.
6. The network handover method according to claim 1, wherein the method further comprises:
receiving channel switching information sent by the main node;
and carrying out network configuration according to the channel information carried in the channel switching information.
7. A network switching method applied to a master node in a wireless device cluster, the wireless device cluster further comprising slave nodes, the method comprising:
obtaining an instruction for triggering channel switching;
notifying the slave node to switch channels according to the channel information carried in the instruction;
switching channels according to the channel information;
and under the switched channel, regularly broadcasting heartbeat information carrying wireless equipment cluster identification so that the slave node can self-check whether the slave node is in an offline state relative to the master node according to the heartbeat information, and enabling the slave node in the offline state to recover communication with the master node according to the heartbeat information.
8. The method of claim 7, wherein the master node is communicatively coupled to a third-party device, and wherein obtaining the instruction for triggering channel switching comprises: and receiving an instruction which is generated by the third-party equipment and carries the channel information.
9. The method of claim 7, wherein obtaining the instruction for triggering channel switching comprises:
searching communication channels according to a preset time interval to obtain a plurality of channels to be selected;
determining a target switching channel according to the number of devices working under the channel to be selected and the signal quality of the channel to be selected;
and generating the instruction for triggering channel switching according to the channel information of the target switching channel.
10. The method according to claim 9, wherein the step of determining the target zapping channel according to the number of devices operating in the candidate channel and the signal quality of the candidate channel comprises:
taking the channel with the least equipment number in the channels to be selected as a second channel;
and determining the target switching channel from the second channels.
11. The method of claim 10, wherein the step of determining the target zapping channel from the second channels comprises:
when the number of the devices corresponding to the second channel does not exceed a preset value, randomly determining the target switching channel from the second channel;
and when the number of the devices corresponding to the second channel exceeds a preset value, determining the target switching channel from the second channel by combining the signal quality of the second channel.
12. The network switching method according to claim 7, wherein the step of notifying the slave node of channel switching comprises:
generating channel switching information according to the channel information;
and sending the channel switching information to the slave node.
13. The network switching method of claim 12, wherein the manner of sending the channel switching information to the slave node comprises any one of:
broadcasting the channel switching information; or
And sequentially sending the channel switching information to each slave node.
14. A network switching apparatus, applied to a slave node in a wireless device cluster, the wireless device cluster further including a master node, the network switching apparatus comprising:
the self-checking module is used for self-checking whether the host node is in an off-line state or not;
the searching module is used for searching communication channels to obtain a plurality of channels to be selected when the main node is judged to be in an off-line state;
the judging module is used for searching the current working channel of the main node from a plurality of channels to be selected;
and the configuration module is used for carrying out network configuration according to the channel information of the working channel so as to recover the communication with the main node.
15. A network switching apparatus, applied to a master node in a wireless device cluster, the wireless device cluster further including a slave node, the apparatus comprising:
the acquisition module is used for acquiring an instruction for triggering channel switching;
the notification module is used for notifying the slave node to switch the channel according to the channel information carried in the instruction;
the switching module is used for switching channels according to the channel information;
and the sending module is used for regularly broadcasting heartbeat information carrying wireless equipment cluster identification under the switched channel so as to enable the slave node to self-check whether the slave node is in an offline state relative to the master node according to the heartbeat information and enable the slave node in the offline state to recover communication with the master node according to the heartbeat information.
16. A communication system comprising a master node and a slave node, the slave node communicating with the master node on the same operating frequency channel;
the slave node is used for self-checking whether the slave node is in an offline state relative to the master node;
the slave node is used for searching communication channels to obtain a plurality of channels to be selected when the slave node is judged to be in an off-line state relative to the master node;
the slave node is used for searching the current working channel of the master node from a plurality of channels to be selected;
the slave node is used for carrying out network configuration according to the channel information of the working channel so as to recover communication with the master node;
the main node is used for acquiring an instruction for triggering channel switching;
the main node is further used for notifying the slave node to carry out channel switching according to the channel information carried in the instruction;
the main node is also used for switching channels according to the channel information;
and under the switched channel, the master node is used for regularly broadcasting heartbeat information carrying wireless equipment cluster identification so that the slave node automatically checks whether the slave node is in an offline state relative to the master node according to the heartbeat information and enables the slave node in the offline state to recover communication with the master node according to the heartbeat information.
17. The communication system of claim 16, further comprising a third party device, the third party device communicatively coupled to the master node;
and the third-party equipment is used for responding to user operation to generate an instruction carrying the channel information and sending the instruction to the main node.
18. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the network handover method of any one of claims 1 to 6 or to implement the network handover method of any one of claims 7 to 13.
19. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the network handover method of any one of claims 1 to 6 or carries out the network handover method of any one of claims 7 to 13.
CN201910891686.0A 2019-09-20 2019-09-20 Network switching method, communication system and related device Active CN111757364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910891686.0A CN111757364B (en) 2019-09-20 2019-09-20 Network switching method, communication system and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910891686.0A CN111757364B (en) 2019-09-20 2019-09-20 Network switching method, communication system and related device

Publications (2)

Publication Number Publication Date
CN111757364A true CN111757364A (en) 2020-10-09
CN111757364B CN111757364B (en) 2023-10-10

Family

ID=72672962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910891686.0A Active CN111757364B (en) 2019-09-20 2019-09-20 Network switching method, communication system and related device

Country Status (1)

Country Link
CN (1) CN111757364B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200947612Y (en) * 2005-04-08 2007-09-12 美商内数位科技公司 Mesh network for coordinating seamless channel switching
CN102026306A (en) * 2010-12-08 2011-04-20 北京星网锐捷网络技术有限公司 Channel selection method, channel selection device and mesh node physical device
CN102548038A (en) * 2012-02-07 2012-07-04 江苏麦希通讯技术有限公司 Micro-power wireless networking method
CN106454981A (en) * 2016-08-31 2017-02-22 零度智控(北京)智能科技有限公司 Random frequency hopping method, communication device and random frequency hopping system
CN108445909A (en) * 2018-05-18 2018-08-24 天宇经纬(北京)科技有限公司 A kind of unmanned aerial vehicle control system
CN109379772A (en) * 2018-12-12 2019-02-22 乐鑫信息科技(上海)股份有限公司 Switching method, device, equipment and the storage medium of network channel

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200947612Y (en) * 2005-04-08 2007-09-12 美商内数位科技公司 Mesh network for coordinating seamless channel switching
CN102026306A (en) * 2010-12-08 2011-04-20 北京星网锐捷网络技术有限公司 Channel selection method, channel selection device and mesh node physical device
CN102548038A (en) * 2012-02-07 2012-07-04 江苏麦希通讯技术有限公司 Micro-power wireless networking method
CN106454981A (en) * 2016-08-31 2017-02-22 零度智控(北京)智能科技有限公司 Random frequency hopping method, communication device and random frequency hopping system
CN108445909A (en) * 2018-05-18 2018-08-24 天宇经纬(北京)科技有限公司 A kind of unmanned aerial vehicle control system
CN109379772A (en) * 2018-12-12 2019-02-22 乐鑫信息科技(上海)股份有限公司 Switching method, device, equipment and the storage medium of network channel

Also Published As

Publication number Publication date
CN111757364B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
CN108616922B (en) Method for distributing authorization-free resources, user equipment and network equipment
US9167442B2 (en) Mobile cellular networks
CN108024278B (en) mobility management method, user terminal and network side equipment
EP3512118B1 (en) Method and device for transmitting response message
CN104285483B (en) Transmit the method and its device of common signal
EP3420647B1 (en) Method and apparatus for synchronization signal transmission in a wireless communication system
CN105246027A (en) D2D relay resource configuration method, device and system
CN110366224A (en) A kind of signaling optimization method and apparatus
CN106162684A (en) Based on ZigBee-network data transmission method, Apparatus and system
CN103702377A (en) Network switch method and equipment
EP3397019B1 (en) Method and devices of handling communications in dual connectivity
CN111093261A (en) Method, device, equipment and medium for determining timing advance
CN102238697A (en) Method and device for joining wireless sensor network
CN104168629A (en) Proximity-based service relay node discovering method, terminal and proximity-based service communication system
WO2016112527A1 (en) Ability information reporting method, apparatus and device
CN107113680A (en) Load re-distribution method in GSM
US20190174464A1 (en) Method for controlling c-ran
US11540286B2 (en) Announcement for application aware scheduling
JP2019531614A (en) COMMUNICATION METHOD, TERMINAL DEVICE, AND NETWORK DEVICE
EP2999285B1 (en) Method for transmitting signal in device to device proximity service, base station and user equipment
US20220191885A1 (en) Information processing method, information processing device, terminal and computer readable storage medium
CN111385847B (en) Network slice construction, access control, processing method and device and storage medium
CN105025563A (en) Method, device and system for cooperative communication and related equipment
CN111757364B (en) Network switching method, communication system and related device
CN103152801B (en) The method and apparatus being connected is set up with wireless access 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
CB02 Change of applicant information

Address after: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou Jifei Technology Co.,Ltd.

Address before: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Xaircraft Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant