Communication method, communication device and communication system
By first sending broadcast frames in a many-to-many network, then sending unicast frames, and using the timer mechanism to determine the device reception status, the problem of long channel switching time and low success rate is solved, and more efficient channel switching is achieved.
Patent Information
- Application Number
- CN202310478864.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-11-05
AI Technical Summary
In many-to-many networks, in the absence of central nodes, it is difficult to save switching time and improve success rate when switching device channels, especially due to the different device channel support capabilities, the switching process is inefficient.
By first sending broadcast frames in a many-to-many network and then sending unicast frames, the timer mechanism is used to determine whether the device has successfully received the handover notification, so as to ensure that the device performs channel switching within the synchronous time slot, increasing the chance of unicasting to improve success Rate.
This method effectively saves interaction time, improves the success rate of device channel switching, and ensures the efficiency and stability of network equipment during the switching process.
Smart Images

Figure CN118900437A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a communication method, a communication device and a communication system. Background Art
[0002] There is no central node in a many-to-many network. All devices have equal roles and work on the same channel. In actual application scenarios, due to the different channel support capabilities of different devices, when new devices join, old devices exit, or in other scenarios, the many-to-many network may need to perform real-time channel switching.
[0003] In a many-to-many network without a central node, any device may trigger a channel switch. How to save switching time and improve the channel switching success rate of the device remains to be solved. Summary of the invention
[0004] The embodiments of the present application provide a communication method, a communication device and a communication system for saving switching time and improving the channel switching success rate of the device.
[0005] In a first aspect, an embodiment of the present application provides a communication method, which can be executed by a first device or a module (such as a chip) applied to the first device. Taking the first device executing the method as an example, the method includes: the first device sends a broadcast frame in a network, the broadcast frame is used to notify switching to a first channel, and the network includes the first device; the first device sends a first unicast frame to a second device in the network, the first unicast frame is used to notify the second device to switch to the first channel, the second device is a device in the network that has not sent a first confirmation frame to the first device, and the first confirmation frame is used to indicate that the broadcast frame has been received.
[0006] In the above scheme, after the first device determines that a channel switch is required, the first device first sends a broadcast frame in the network to notify other devices in the network to switch channels. If at least one device in the network (i.e., the second device) does not send a first confirmation frame in response to the broadcast frame to the first device, the first device then sends a unicast frame to these devices to notify them again to switch channels. This method first sends a broadcast frame and then sends a unicast frame, which can save interaction time, and this method can improve the success rate of channel switching for devices in the network.
[0007] In a possible implementation method, the broadcast frame or the first unicast frame is a wireless fidelity (WiFi) frame.
[0008] The above scheme applies the application embodiment to the WiFi application scenario, which helps to improve the success rate of channel switching of devices in the WiFi network.
[0009] In a possible implementation method, the reason why the second device does not receive the broadcast frame is that it is in a dormant state, fails, or the channel between the second device and the first device is temporarily unavailable (for example, there is instantaneous strong interference on the channel).
[0010] In a possible implementation method, the method also includes: after the first device sends the broadcast frame, starting a first timer; the first device sends a first unicast frame to the second device in the network, including: after the first timer times out, the first device sends the first unicast frame to the second device.
[0011] The above scheme sets a first timer. If there is at least one device (i.e., the second device) that has not sent a first confirmation frame in response to a broadcast frame to the first device before the first timer times out, the first device sends a first unicast frame to the at least one device. This method helps the first device to accurately determine the timing of sending the first unicast frame, thereby avoiding long waiting of the first device.
[0012] In a possible implementation method, the first device sends a first unicast frame to a second device in the networking, including: the first device sends the first unicast frame to the second device in a synchronization time slot of the networking.
[0013] In the above scheme, since the first unicast frame is sent in the synchronization time slot, it can ensure that the second device can receive the first unicast frame, so that the second device performs channel switching after receiving the first unicast frame, which can ensure the success rate of channel switching.
[0014] In a possible implementation method, the method also includes: after the first device sends the first unicast frame, starting a second timer; if the second timer times out and the first device has not received a second confirmation frame from the second device, the first device switches the channel of the first device from the second channel to the first channel, and the second confirmation frame is used to indicate that the first unicast frame has been received.
[0015] In the above scheme, after sending the first unicast frame, the first device waits for a set duration, i.e., the duration corresponding to the second timer. If the first device does not receive the second confirmation frame from the second device before the set duration arrives, the first device decides not to continue waiting and switches the channel of the first device from the current second channel to the new first channel. The first device then works on the first channel. This method helps to avoid blind waiting of the first device and affects work efficiency.
[0016] In a possible implementation method, the method also includes: the first device switches the channel of the first device from the first channel to the second channel, and sends a second unicast frame to the second device in the synchronization time slot of the networking, and the second unicast frame is used to notify the second device to switch to the first channel.
[0017] In the above solution, the first device can improve the success rate of the channel switching of the second device by adding a unicast opportunity.
[0018] In a possible implementation method, the method also includes: after the first device switches the channel of the first device from the second channel to the first channel, starting a third timer; the first device switches the channel of the first device from the first channel to the second channel, and sends a second unicast frame to the second device on the synchronization time slot of the networking, including: after the third timer expires, the first device switches the channel of the first device from the first channel to the second channel, and sends the second unicast frame to the second device on the synchronization time slot of the networking.
[0019] In the above scheme, the first device sends a second unicast frame to the second device after the third timer times out. On the one hand, this can ensure the normal working time of the first device on the first channel, that is, the first device works on the new first channel before the third timer times out. On the other hand, it can improve the success rate of the second device's channel switching.
[0020] In a possible implementation method, the method includes: after the first device sends the second unicast frame to the second device, if the first device receives a third confirmation frame from the second device, the first device switches the channel of the first device from the second channel to the first channel, and the third confirmation frame is used to indicate that the second unicast frame has been received.
[0021] In a possible implementation method, the method includes: before the first device sends a broadcast frame in the network, the first device sends a request frame to the main device in the network, and the request frame is used to request channel switching; the first device receives a response frame from the main device, and the response frame is used to indicate that channel switching is allowed.
[0022] In the above solution, before the first device initiates a notification of channel switching, it first requests permission from the master device, thereby ensuring the legitimacy and security of the channel switching.
[0023] In the second aspect, an embodiment of the present application provides a communication method, which can be executed by a second device or a module (such as a chip) applied to the second device. Taking the second device executing the method as an example, the method includes: the second device receives a first unicast frame from a first device in a network, the first unicast frame is used to notify the second device to switch to a first channel, the network includes the second device, the second device has not received a broadcast frame from the first device before receiving the first unicast frame and has not sent a first confirmation frame to the first device, the broadcast frame is used to notify switching to the first channel, and the first confirmation frame is used to indicate receipt of the broadcast frame; the second device sends a second confirmation frame to the first device, and the second confirmation frame is used to indicate receipt of the first unicast frame.
[0024] In the above scheme, after the first device determines that a channel switch is required, the first device first sends a broadcast frame in the network to notify other devices in the network to switch channels. If at least one device in the network (i.e., the second device) does not send a first confirmation frame in response to the broadcast frame to the first device, the first device then sends a unicast frame to these devices to notify them again to switch channels. This method first sends a broadcast frame and then sends a unicast frame, which can save interaction time, and this method can improve the success rate of channel switching for devices in the network.
[0025] In a possible implementation method, the method further includes: the second device switching a channel of the second device from a second channel to the first channel.
[0026] Based on any implementation method of the first aspect or the second aspect, in a possible implementation method, the frame formats corresponding to the broadcast frame and the first unicast frame include at least one of the following fields:
[0027] An attribute identification field, wherein the attribute identification field is used to indicate that the frame corresponding to the frame format is a frame for switching channels;
[0028] A length field, wherein the length field is used to indicate the size of the frame;
[0029] A switching type field, where the switching type field is used to indicate the type of the frame, where the type of the frame is a request frame, a response frame, a channel switching frame, or a confirmation frame, and the channel switching frame includes a broadcast frame and a unicast frame;
[0030] A channel number field, where the channel number field is used to indicate the channel number of the first channel after switching;
[0031] A bandwidth field, where the bandwidth field is used to indicate the channel bandwidth after switching;
[0032] A switching time slot field, wherein the switching time slot field is used to indicate that the channel is switched immediately or after a set time period;
[0033] A status code field, wherein the status code field is used to indicate the type of the response frame, and the type of the response frame is to allow initiation of channel switching or not to allow initiation of channel switching.
[0034] The above solution can improve the efficiency and success rate of channel switching by designing a new frame format.
[0035] In a third aspect, an embodiment of the present application provides a communication device, which may be a first device or a module (such as a chip) for the first device. The device has the function of implementing any implementation method of the first aspect described above. The function may be implemented by hardware or by executing corresponding software implementation by hardware. The hardware or software includes one or more modules corresponding to the above functions.
[0036] In a fourth aspect, an embodiment of the present application provides a communication device, which may be a second device or a module (such as a chip) for a second device. The device has the function of implementing any implementation method of the second aspect described above. The function may be implemented by hardware or by executing corresponding software implementation by hardware. The hardware or software includes one or more modules corresponding to the above functions.
[0037] In a fifth aspect, an embodiment of the present application provides a communication device, comprising a processor coupled to a memory, the processor being used to call a program stored in the memory to execute any implementation method in the first to second aspects above. The memory may be located inside the device or outside the device. And the processor may be one or more.
[0038] In a sixth aspect, an embodiment of the present application provides a communication device, comprising a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory so that the device executes any implementation method in the above-mentioned first aspect to the second aspect.
[0039] In a seventh aspect, an embodiment of the present application provides a communication device, comprising a unit or means for executing each step of any implementation method in the first to second aspects above.
[0040] In an eighth aspect, an embodiment of the present application provides a communication device, including a processor and an interface circuit, wherein the processor is used to communicate with other devices through the interface circuit and execute any implementation method in the first to second aspects above. The processor includes one or more.
[0041] In the ninth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a communication device, any implementation method in the above-mentioned first to second aspects is executed.
[0042] In the tenth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a communication device, any implementation method in the above-mentioned first to second aspects is executed.
[0043] In the eleventh aspect, an embodiment of the present application further provides a chip system, comprising: a processor, configured to execute any implementation method in the above-mentioned first aspect to the second aspect.
[0044] In a twelfth aspect, an embodiment of the present application further provides a communication system, comprising a first device for executing any implementation method of the first aspect, and a second device. The second device is used to receive a first unicast frame, the first unicast frame is used to notify the second device to switch to a first channel, the second device is a device in the network that has not sent a first confirmation frame to the first device, and the first confirmation frame is used to indicate that a broadcast frame has been received.
[0045] In the thirteenth aspect, an embodiment of the present application also provides a communication method, including: a first device sends a broadcast frame within a networking, the broadcast frame is used to notify switching to a first channel, and the networking includes the first device; the first device sends a first unicast frame to a second device within the networking, the first unicast frame is used to notify the second device to switch to the first channel, the second device is a device within the networking that has not sent a first confirmation frame to the first device, the first confirmation frame is used to indicate that a broadcast frame has been received; the second device receives the first unicast frame. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;
[0047] Figure 2 This is an example diagram of many-to-many network channel switching;
[0048] Figure 3 A flow chart of a communication method provided in an embodiment of the present application;
[0049] Figure 4 An example diagram of a frame structure provided in an embodiment of the present application;
[0050] Figure 5 A flow chart of a communication method provided in an embodiment of the present application;
[0051] Figure 6 A flow chart of a communication method provided in an embodiment of the present application;
[0052] Figure 7 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0053] Figure 8 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application. The communication system includes a first device and a second device, and the first device and the second device can be devices of any type. For example, the first device and the second device can be any of terminal devices and network devices. Of course, other types of devices can also be used, and this application does not limit this.
[0055] A terminal device is a device with wireless transceiver function, which may refer to user equipment (UE), access terminal, subscriber unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device. The terminal device can be deployed on land, including indoors or outdoors. In specific applications, the terminal device may be a cellular phone, a mobile phone, a tablet computer, a wearable device, a smart point of sale (POS), a customer-premises equipment (CPE), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a terminal device in industrial control, a terminal device in self-driving, a terminal device in remote medical, a terminal device in smart grid, a terminal device in smart city, a terminal in smart home, etc.
[0056] Network equipment is an access device that terminal equipment uses to access the communication system through wired or wireless means. Network equipment can be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next generation NodeB (gNB) in the fifth generation (5G) mobile communication system, a next generation base station in the sixth generation (6G) mobile communication system, a base station in a future mobile communication system, or an access point (AP) device in a wireless fidelity (WiFi) system. The access point device is a wireless hub (HUB) for a wireless network, and is an access point for terminal equipment to enter the wired Ethernet backbone. The access point device can be easily installed on the ceiling or wall to provide a wide range of signal coverage in an open space. The network equipment can also be a module or unit that completes some of the functions of a base station, for example, it can be a centralized unit (CU) or a distributed unit (DU). The CU here completes the functions of the radio resource control protocol and packet data convergence layer protocol (PDCP) of the base station, and can also complete the function of the service data adaptation protocol (SDAP); the DU completes the functions of the radio link control layer and medium access control (MAC) layer of the base station, and can also complete the functions of part of the physical layer or all of the physical layer. For the specific description of the above-mentioned protocol layers, please refer to the relevant technical specifications of the 3rd Generation Partnership Project (3GPP). The network device can be a macro base station, a micro base station or an indoor station, a relay node or a donor node, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the network device.
[0057] There is no central node in a many-to-many network. All devices have equal roles and work on the same channel. In actual application scenarios, due to the different channel support capabilities of different devices, when new devices join, old devices exit, or in other scenarios, the many-to-many network may need to perform real-time channel switching.
[0058] Figure 2This is an example diagram of many-to-many network channel switching. There are two devices in Island 1, namely device A and device B. Device A and device B are peer devices and work on the same channel, for example, both work on channel x. There are three devices in Island 2, namely device C, device D and device E. Device C, device D and device E are peer devices and work on the same channel, for example, both work on channel y. Optionally, there is also a master device in each island, for example, the master device in Island 1 is device A, and the device in Island 2 is device C. The functions of the master device include but are not limited to: 1) deciding whether to allow channel switching to be initiated; 2) providing a clock source for each device in the island to keep time consistent.
[0059] In a many-to-many network without a central node, any device may trigger a channel switch. Figure 2 For example, any device in island 2, such as device C, decides that all devices in island 2 need to switch channels from the current channel y to channel x.
[0060] In a many-to-many network without a central node, how to save switching time and improve the channel switching success rate of devices remains to be solved.
[0061] Figure 3 A flow chart of a communication method provided in an embodiment of the present application. The method comprises the following steps:
[0062] Step 301: A first device sends a broadcast frame in a network, where the broadcast frame is used to notify switching to a first channel.
[0063] The network includes multiple devices, including the first device, and one or more other devices, etc. The multiple devices in the network are equal to each other. Optionally, there is a master device among the multiple devices, and the function of the master device is as described above.
[0064] Assume that multiple devices in the network currently operate on the second channel.
[0065] In one implementation method, the broadcast frame includes the channel number of the switched first channel.
[0066] In one implementation method, the broadcast frame includes switching time information, and the switching time information is used to indicate that the channel is switched immediately or after a set time period.
[0067] After the first device sends a broadcast frame in the network, if a device other than the first device in the network (hereinafter referred to as the third device) receives the broadcast frame, the third device sends a confirmation frame to the first device, and the confirmation frame is used to indicate that the broadcast frame has been received. The third device switches the channel of the third device from the currently working second channel to the first channel, and the third device also sends a confirmation frame to the first device to indicate that the broadcast frame has been received. When the first device receives the confirmation frame from the third device, it determines that the channel switching of the third device is successful. In the embodiment of the present application, the devices in the network that receive the broadcast frame sent by the first device are collectively referred to as third devices.
[0068] After the first device sends a broadcast frame in the network, if the device other than the first device in the network (hereinafter referred to as the second device) does not receive the broadcast frame, the second device will not send a confirmation frame to the first device to indicate that the broadcast frame has been received. The present application refers to the confirmation frame in response to the broadcast frame as the first confirmation frame. Exemplarily, when the second device is in a dormant state, fails, or the channel between the first device and the second device is temporarily unavailable (for example, there is instantaneous strong interference on the channel), the second device may not be able to receive the broadcast frame from the first device. If the first device does not receive the first confirmation frame from the second device, it is determined that the channel switching of the second device is unsuccessful. In the embodiment of the present application, the devices in the network that have not received the broadcast frame sent by the first device are collectively referred to as second devices, and the second device will not send the first confirmation frame in response to the broadcast frame to the first device.
[0069] In one implementation method, before the above step 301, the first device sends a request frame to the master device in the network, the request frame is used to request channel switching, and the first device receives a response frame from the master device, the response frame is used to indicate permission to initiate channel switching. After the first device receives the response frame, the above step 301 is executed. That is, when the first device decides to switch channels, it first requests permission from the master device in the network before notifying the devices in the network to switch channels. If the master device allows channel switching, the first device sends the above broadcast frame. If the master device does not allow channel switching, it may not be executed. Figure 3 Example.
[0070] Step 302: The first device sends a first unicast frame to the second device in the network, where the first unicast frame is used to notify switching to a first channel.
[0071] In one implementation method, the first unicast frame includes the channel number of the switched first channel.
[0072] In one implementation method, the first unicast frame includes switching time information, and the switching time information is used to indicate to switch the channel immediately or after a set time period.
[0073] In one implementation method, after the above step 301, the first device starts a first timer. Within the duration corresponding to the first timer, if there is at least one device (i.e., the second device) that has not sent a first confirmation frame in response to the broadcast frame to the first device, then after the first timer times out, the first device sends a first unicast frame to the at least one device to notify these devices again to switch channels. This method helps to accurately determine the device that needs to receive the first unicast frame and improve the success rate of the second device switching.
[0074] In one implementation method, a first device sends a first unicast frame to a second device, which can be specifically: the first device sends the first unicast frame to the second device on a synchronization time slot of the network. Since the first unicast frame is sent on a synchronization time slot, it can be ensured that the second device can receive the first unicast frame, and then the second device can switch channels after receiving the first unicast frame and send a second confirmation frame in response to the first unicast frame to the first device. Of course, if the first device does not send the first unicast frame to the second device on a synchronization time slot, the second device may receive the first unicast frame, or may not receive the first unicast frame. The meaning of the synchronization time slot in the embodiment of the present application is as follows: the master device in the network sends a beacon frame (beacon frame) in the network, and the beacon frame contains time slices of each device. There are some fixed time slices in these time slices. Each device in the network wakes up and synchronizes their respective key parameter information on the fixed time slices. These fixed time slices can be called synchronization time slots. Since all devices in the network are in an awake state in the synchronization time slot, they can communicate with each other. When the first device sends a first unicast frame to the second device in the synchronization time slot, the second device can receive the first unicast frame.
[0075] In the first case, after step 302, if the second device receives the first unicast frame, the following steps 303 and 304 are performed.
[0076] In the second case, after step 302, if the second device does not receive the first unicast frame, the second device will not send a second confirmation frame in response to the first unicast frame to the first device, the second confirmation frame being used to indicate that the first unicast frame has been received. That is, the following steps 303 and 304 are not performed.
[0077] Step 303: The second device switches the channel of the second device from the second channel to the first channel.
[0078] After the second device completes the channel switching, it operates under the new first channel.
[0079] Step 304: The second device sends a second confirmation frame to the first device, where the second confirmation frame is used to indicate that the first unicast frame has been received. Accordingly, the first device receives the second confirmation frame.
[0080] When the first device receives the second confirmation frame from the second device, it determines that the channel switching of the second device is successful.
[0081] In one implementation method, after sending the first unicast frame, the first device starts the second timer. If the second timer times out and the first device does not receive the second confirmation frame from the second device, the first device records the information of the second device and switches the channel of the first device from the second channel to the first channel. That is, after sending the first unicast frame, the first device waits for a set duration, which is the duration corresponding to the second timer. If the first device does not receive the second confirmation frame from the second device before the set duration is reached, the first device decides not to continue waiting and switches the channel of the first device from the current second channel to the new first channel, and the first device subsequently works on the first channel.
[0082] In one implementation method, if the second device has not completed the switch from the second channel to the first channel, that is, the first device has not received the second confirmation frame in response to the first unicast frame, then after the first device switches the channel of the first device from the second channel to the first channel, it can also switch the channel of the first device from the first channel to the second channel, and resend a unicast frame to the second device on the second channel, which is called the second unicast frame. Exemplarily, after the first device switches the channel of the first device from the second channel to the first channel, it starts the third timer. After the third timer times out, the first device switches the channel of the first device from the first channel to the second channel, and sends the second unicast frame to the second device on the synchronization time slot of the networking, and the second unicast frame is used to notify the second device to switch to the first channel. After the first device sends the second unicast frame to the second device, if the third confirmation frame is received from the second device, the first device switches the channel of the first device from the second channel to the first channel, and the third confirmation frame is used to indicate that the second unicast frame is received. When the first device receives the third confirmation frame, it confirms that the channel of the second device has successfully switched the channel of the second device from the second channel to the first channel. In this method, since the second unicast frame is sent on the synchronization time slot, it can be ensured that the second device can receive the second unicast frame, and then the second device can switch channels after receiving the second unicast frame and send a third confirmation frame in response to the second unicast frame to the first device.
[0083] In the above scheme, after the first device determines that a channel switch is required, the first device sends a broadcast frame in the network to notify other devices in the network to switch channels. If at least one device in the network does not send a first confirmation frame in response to the broadcast frame to the first device, the first device sends a unicast frame to these devices to notify them to switch channels again. This method sends a broadcast frame first and then a unicast frame, which can save interaction time, and this method can improve the success rate of channel switching of devices in the network.
[0084] It should be noted that the broadcast frame in the embodiment of the present application may also be referred to as a broadcast notification frame, a broadcast message frame, etc., the unicast frame may also be referred to as a unicast notification frame, a unicast message frame, etc., the confirmation frame may also be referred to as a unicast confirmation frame, a unicast message frame, etc., the request frame may also be referred to as a unicast request frame, and the response frame may also be referred to as a unicast response frame. This application does not limit the specific names of the frames.
[0085] Exemplarily, an embodiment of the present application provides a frame structure, which can be used as the frame structure of the above-mentioned request frame, response frame, broadcast frame, unicast frame or confirmation frame. Figure 4 This is an example diagram of a frame structure provided in an embodiment of the present application. In this example, a frame includes some or all of the following fields.
[0086] 1) Attribute ID field
[0087] For example, the value of the attribute identification field is 0x05, indicating that the frame is a frame used for switching channels.
[0088] 2) Length field
[0089] The length field is used to indicate the size of the frame, such as the total number of bytes.
[0090] 3) Switch Type field
[0091] The switch type field is used to indicate the frame type, and the frame type is a request frame, a response frame, a channel switch frame or a confirmation frame, and the channel switch frame includes a broadcast frame and a unicast frame. Exemplarily, the values and meanings of the switch type field are shown in Table 1.
[0092] Table 1
[0093]
[0094] 4) Channel No field
[0095] The channel number field is used to indicate the channel number after switching. For example, the channel number field includes the channel number of the first channel.
[0096] 5) Bandwidth (BW) field
[0097] The bandwidth field is used to indicate the channel bandwidth to be switched, that is, to indicate the channel bandwidth after switching.
[0098] Among them, the center frequency point can be determined according to the channel number and channel bandwidth after switching.
[0099] 6) Switch Slot field
[0100] The switching time slot field is used to indicate that the channel is switched immediately or after a set time. For example, the value of the switching time slot field is N, which is used to indicate that the channel is switched after N time slots. When N=0, it indicates immediate switching.
[0101] 7) Status Code field
[0102] The status code field is used to indicate the type of the response frame, and the type of the response frame is to allow the initiation of channel switching or not to allow the initiation of channel switching. For example, when the value of the switching type field is 1, if the value of the status code field is 0, it means that the initiation of channel switching is not allowed, and if the value of the status code field is 1, it means that the initiation of channel switching is allowed.
[0103] The following is a specific example to illustrate the above Figure 2 In this example, there are three devices in the network, namely device 1, device 2 and device 3. The three devices are currently working on channel a, and device 1 decides to switch the channels of the three devices in the network to channel b. Here, only the example of three devices in the network is used for explanation, and the number of devices in the network is not limited in practice.
[0104] Figure 5 A flow chart of a communication method provided in an embodiment of the present application. The method comprises the following steps:
[0105] Step 501, device 1 sends a broadcast frame in the network, the broadcast frame includes the channel number of the switched channel b, and the broadcast frame is used to notify the channel switching.
[0106] Device 2 and device 3 in the network both receive the broadcast frame.
[0107] The broadcast frame includes the channel number of the switched channel b.
[0108] Step 502: Device 2 switches the channel of Device 2 from channel a to channel b.
[0109] After device 2 completes the channel switching, it operates under the new channel b.
[0110] Step 503: Device 2 sends a first confirmation frame to device 1 in response to the broadcast frame.
[0111] When device 1 receives the first confirmation frame, it determines that device 2 has successfully completed the channel switching.
[0112] Step 504 , device 3 switches the channel of device 3 from channel a to channel b.
[0113] After completing the channel switching, device 3 operates under the new channel b.
[0114] Step 505 : Device 3 sends a first confirmation frame to device 1 in response to the broadcast frame.
[0115] When device 1 receives the first confirmation frame, it determines that device 3 has successfully completed the channel switching.
[0116] The order of the above steps 502 and 504 is not limited, and the order of the above steps 503 and 505 is not limited.
[0117] Figure 6 A flow chart of a communication method provided in an embodiment of the present application. The method comprises the following steps:
[0118] Step 601, device 1 sends a broadcast frame in the network, the broadcast frame includes the channel number of the switched channel b, and the broadcast frame is used to notify the channel switching.
[0119] Device 2 and device 3 in the network do not receive the broadcast frame due to sleep, failure, etc., and thus do not perform channel switching and do not send a first confirmation frame in response to the broadcast frame to device 1.
[0120] The broadcast frame includes the channel number of the switched channel b.
[0121] Step 602: After sending the broadcast frame, device 1 starts a first timer.
[0122] If device 1 has not received the first confirmation frame from device 2 and device 3 before the first timer times out, then after the first timer times out, the following steps 603 and 604 are executed.
[0123] Step 603: Device 1 sends a first unicast frame to device 2. The first unicast frame includes the channel number of the switched channel b. The first unicast frame is used to notify device 2 to switch channels.
[0124] Step 604: Device 1 sends a first unicast frame to device 3. The first unicast frame includes the channel number of the switched channel b. The first unicast frame is used to notify device 3 to switch channels.
[0125] The above steps 603 and 604 may be executed sequentially or simultaneously.
[0126] Step 605: After sending the first unicast frame, device 1 starts a second timer.
[0127] Specifically, device 1 may start the second timer after sending the first unicast frame for the first time, or may start the second timer after sending the first unicast frame to both device 2 and device 3.
[0128] Step 606: Device 2 switches the channel of Device 2 from channel a to channel b.
[0129] Step 607: Device 2 sends a second confirmation frame to device 1. Correspondingly, device 1 receives the second confirmation frame.
[0130] The second confirmation frame is used to indicate that the device 2 has received the first unicast frame, indicating that the device 2 has completed the channel switching.
[0131] Device 2 has woken up from sleep or recovered from a fault, so it can receive the first unicast frame sent by device 1, then switch the channel of device 2 from channel a to channel b, and send a second confirmation frame to device 1.
[0132] Since device 3 is still in sleep mode or fails, it cannot receive the first unicast frame sent by device 1 , and thus device 3 will not switch its channel from channel a to channel b, and will not send a second confirmation frame to device 1 .
[0133] Before the second timer times out, device 1 receives the second confirmation frame from device 2, but does not receive the second confirmation frame from device 3.
[0134] Step 608: After the second timer times out, device 1 switches the channel of device 1 from channel a to channel b.
[0135] After the second timer times out, device 1 also records the information of the device that has not fed back the second confirmation frame, that is, records the information of device 3.
[0136] Step 609: Device 1 starts a third timer.
[0137] Specifically, after switching the channel of device 1 from channel a to channel b, device 1 starts the third timer.
[0138] Before the third timer expires, device 1 operates on the new channel b.
[0139] Step 610: After the third timer times out, device 1 switches the channel of device 1 from channel b to channel a.
[0140] Step 611: Device 1 sends a second unicast frame to device 3 in the synchronization time slot. The second unicast frame includes the channel number of the switched channel b. The second unicast frame is used to notify device 3 to switch channels.
[0141] After the third timer times out, device 1 switches the channel from channel b to the original channel a, and then sends a second unicast frame to device 3 in the synchronization time slot to notify device 3 to switch the channel. Since the second unicast frame is sent in the synchronization time slot, it can be ensured that device 3 can receive the second unicast frame, thereby ensuring that device 3 completes the channel switch.
[0142] Step 612: Device 3 switches the channel of Device 3 from channel a to channel b.
[0143] Step 613, device 3 sends a third confirmation frame to device 1. Correspondingly, device 1 receives the third confirmation frame.
[0144] The third confirmation frame is used to indicate that the second unicast frame is received, indicating that the device 3 completes the channel switching.
[0145] Device 3 has woken up from sleep or recovered from a fault, so it can receive the second unicast frame sent by device 1, then switch the channel of device 3 from channel a to channel b, and send a third confirmation frame to device 1.
[0146] Step 614: Device 1 switches the channel of Device 1 from channel a to channel b.
[0147] It is understandable that, in order to implement the functions in the above embodiments, the first device or the second device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0148] Figure 7 and Figure 8 A schematic diagram of the structure of possible communication devices provided for embodiments of the present application. These communication devices can be used to implement the functions of the first device or the second device in the above method embodiments, and thus can also achieve the beneficial effects possessed by the above method embodiments. In the embodiments of the present application, the communication device can be the first device or the second device, and can also be a module (such as a chip) applied to the first device or the second device.
[0149] Figure 7 The communication device 700 shown includes a processing unit 710 and a transceiver unit 720. The communication device 700 is used to implement the functions of the first device or the second device in the above method embodiment.
[0150] When the communication device 700 is used to implement the function of the first device in the above method embodiment, the processing unit 710 is used to control the transceiver unit 720 to send a broadcast frame in the networking, and the broadcast frame is used to notify the switch to the first channel. The networking includes the first device; and send a first unicast frame to the second device in the networking, and the first unicast frame is used to notify the second device to switch to the first channel. The second device is a device in the networking that has not sent a first confirmation frame to the first device, and the first confirmation frame is used to indicate that the broadcast frame has been received.
[0151] In a possible implementation method, the processing unit 710 is also used to start a first timer after the control transceiver unit 720 sends the broadcast frame; the processing unit 710 is used to control the transceiver unit 720 to send the first unicast frame to the second device in the network, specifically including: controlling the transceiver unit 720 to send the first unicast frame to the second device after the first timer expires.
[0152] In a possible implementation method, the processing unit 710 is used to control the transceiver unit 720 to send the first unicast frame to the second device in the network, specifically including: controlling the transceiver unit 720 to send the first unicast frame to the second device in the synchronization time slot of the network.
[0153] In one possible implementation method, the processing unit 710 is also used to start a second timer after the control transceiver unit 720 sends the first unicast frame; if the second timer times out and the second confirmation frame is not received from the second device, the channel of the first device is switched from the second channel to the first channel, and the second confirmation frame is used to indicate that the first unicast frame has been received.
[0154] In a possible implementation method, the processing unit 710 is also used to switch the channel of the first device from the first channel to the second channel, and control the transceiver unit 720 to send a second unicast frame to the second device in the synchronization time slot of the networking, and the second unicast frame is used to notify the second device to switch to the first channel.
[0155] In a possible implementation method, the processing unit 710 is also used to start a third timer after switching the channel of the first device from the second channel to the first channel; the processing unit 710 is used to switch the channel of the first device from the first channel to the second channel, and control the transceiver unit 720 to send the second unicast frame to the second device in the synchronization time slot of the networking, specifically including: after the third timer expires, the channel of the first device is switched from the first channel to the second channel, and control the transceiver unit 720 to send the second unicast frame to the second device in the synchronization time slot of the networking.
[0156] In one possible implementation method, the processing unit 710 is also used to switch the channel of the first device from the second channel to the first channel if a third confirmation frame is received from the second device after the control transceiver unit 720 sends the second unicast frame to the second device, and the third confirmation frame is used to indicate that the second unicast frame has been received.
[0157] In one possible implementation method, the processing unit 710 is also used to control the transceiver unit 720 to send a request frame to a master device in the network before sending a broadcast frame in the network, wherein the request frame is used to request channel switching; and receive a response frame from the master device, wherein the response frame is used to indicate that channel switching is allowed.
[0158] When the communication device 700 is used to implement the function of the second device in the above method embodiment, the processing unit 710 is used to receive a first unicast frame from a first device in the network in the control transceiver unit 720, the first unicast frame is used to notify the second device to switch to the first channel, the network includes the second device, the second device has not received a broadcast frame from the first device before receiving the first unicast frame and has not sent a first confirmation frame to the first device, the broadcast frame is used to notify switching to the first channel, the first confirmation frame is used to indicate receipt of the broadcast frame; and send a second confirmation frame to the first device, the second confirmation frame is used to indicate receipt of the first unicast frame.
[0159] In a possible implementation method, the processing unit 710 is further configured to switch a channel of the second device from a second channel to the first channel.
[0160] For a more detailed description of the processing unit 710 and the transceiver unit 720, reference may be made to the relevant description in the above method embodiment, which will not be repeated here.
[0161] Figure 8 The communication device 800 shown includes a processor 810 and an interface circuit 820. The processor 810 and the interface circuit 820 are coupled to each other. It is understood that the interface circuit 820 can be a transceiver or an input-output interface. Optionally, the communication device 700 may also include a memory 830 for storing instructions executed by the processor 810 or storing input data required by the processor 810 to execute instructions or storing data generated after the processor 810 executes instructions.
[0162] When the communication device 800 is used to implement the above method embodiment, the processor 810 is used to implement the function of the above processing unit 710, and the interface circuit 820 is used to implement the function of the above transceiver unit 720.
[0163] It is understandable that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0164] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a compact disc read-only memory (compact disc read-only memory, CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in the first device or the second device. Of course, the processor and the storage medium can also be present in the first device or the second device as discrete components.
[0165] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. A computer program (English: Computer Program) refers to a set of instructions that indicate each step of an electronic computer or other device with message processing capability, usually written in a certain programming language, and runs on a certain target architecture. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0166] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.
[0167] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of this application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula of this application, the character " / " indicates that the previous and next associated objects are in a "division" relationship.
[0168] It is understood that the various numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.
Claims
1. A communication method, characterized in that: include: The first device sends a broadcast frame in a network, where the broadcast frame is used to notify switching to a first channel, and the network includes the first device; The first device sends a first unicast frame to a second device in the network, the first unicast frame is used to notify the second device to switch to the first channel, the second device is a device in the network that has not sent a first confirmation frame to the first device, and the first confirmation frame is used to indicate that the broadcast frame has been received.
2. The method according to claim 1, characterized in that The method further comprises: After the first device sends the broadcast frame, starting a first timer; The first device sending a first unicast frame to a second device in the network includes: After the first timer times out, the first device sends the first unicast frame to the second device.
3. The method according to claim 1 or 2, characterized in that The first device sending a first unicast frame to a second device in the network includes: The first device sends the first unicast frame to the second device in a synchronization time slot of the networking.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: After the first device sends the first unicast frame, starting a second timer; If the second timer times out and the first device does not receive a second confirmation frame from the second device, the first device switches the channel of the first device from the second channel to the first channel, and the second confirmation frame is used to indicate that the first unicast frame has been received.
5. The method according to claim 4, characterized in that The method further comprises: The first device switches the channel of the first device from the first channel to the second channel, and sends a second unicast frame to the second device in the synchronization time slot of the networking, where the second unicast frame is used to notify the second device to switch to the first channel.
6. The method according to claim 5, characterized in that The method further comprises: After the first device switches the channel of the first device from the second channel to the first channel, starting a third timer; The first device switches a channel of the first device from the first channel to the second channel, and sends a second unicast frame to the second device in a synchronization time slot of the networking, including: After the third timer times out, the first device switches the channel of the first device from the first channel to the second channel, and sends the second unicast frame to the second device in the synchronization time slot of the networking.
7. The method according to claim 5 or 6, characterized in that The method comprises: After the first device sends the second unicast frame to the second device, if the first device receives a third confirmation frame from the second device, the first device switches the channel of the first device from the second channel to the first channel, and the third confirmation frame is used to indicate that the second unicast frame has been received.
8. The method according to any one of claims 1 to 7, characterized in that The method comprises: Before sending a broadcast frame in the network, the first device sends a request frame to a master device in the network, where the request frame is used to request a channel switch; The first device receives a response frame from the master device, where the response frame is used to indicate permission to initiate channel switching.
9. The method according to any one of claims 1 to 8, characterized in that The frame formats corresponding to the broadcast frame and the first unicast frame include at least one of the following fields: An attribute identification field, wherein the attribute identification field is used to indicate that the frame corresponding to the frame format is a frame for switching channels; A length field, wherein the length field is used to indicate the size of the frame; A switching type field, where the switching type field is used to indicate the type of the frame, where the type of the frame is a request frame, a response frame, a channel switching frame, or a confirmation frame, and the channel switching frame includes a broadcast frame and a unicast frame; A channel number field, where the channel number field is used to indicate the channel number of the first channel after switching; A bandwidth field, where the bandwidth field is used to indicate a channel bandwidth after switching; A switching time slot field, wherein the switching time slot field is used to indicate that the channel is switched immediately or after a set time period; A status code field, wherein the status code field is used to indicate the type of the response frame, and the type of the response frame is to allow initiation of channel switching or not to allow initiation of channel switching.
10. A communication device, characterized in that: including a processing unit and a transceiver unit; The processing unit is used to control the transceiver unit: Sending a broadcast frame in a network, wherein the broadcast frame is used to notify switching to a first channel, and the network includes a first device; A first unicast frame is sent to a second device in the network, wherein the first unicast frame is used to notify the second device to switch to the first channel, the second device is a device in the network that has not sent a first confirmation frame to the first device, and the first confirmation frame is used to indicate that the broadcast frame has been received.
11. The device according to claim 10, characterized in that The processing unit is further configured to start a first timer after controlling the transceiver unit to send the broadcast frame; The processing unit is used to control the transceiver unit to send a first unicast frame to the second device in the network, specifically including: Used to control the transceiver unit to send the first unicast frame to the second device after the first timer times out.
12. The device according to claim 10 or 11, characterized in that The processing unit is used to control the transceiver unit to send a first unicast frame to the second device in the network, specifically including: Used to control the transceiver unit to send the first unicast frame to the second device in the synchronization time slot of the networking.
13. The device according to any one of claims 10 to 12, characterized in that The processing unit is also used to control the transceiver unit to start a second timer after sending the first unicast frame; if the second timer times out and the first device has not received a second confirmation frame from the second device, the channel of the first device is switched from the second channel to the first channel, and the second confirmation frame is used to indicate that the first unicast frame has been received.
14. The device according to claim 13, characterized in that The processing unit is also used to switch the channel of the first device from the first channel to the second channel, and control the transceiver unit to send a second unicast frame to the second device in the synchronization time slot of the networking, and the second unicast frame is used to notify the second device to switch to the first channel.
15. The device according to claim 14, characterized in that The processing unit is further configured to start a third timer after switching the channel of the first device from the second channel to the first channel; The processing unit is further configured to switch the channel of the first device from the first channel to the second channel, and control the transceiver unit to send a second unicast frame to the second device in the synchronization time slot of the networking, specifically including: Used to switch the channel of the first device from the first channel to the second channel after the third timer times out, and control the transceiver unit to send the second unicast frame to the second device in the synchronization time slot of the networking.
16. The device according to claim 14 or 15, characterized in that The processing unit is also used to switch the channel of the first device from the second channel to the first channel if a third confirmation frame is received from the second device after controlling the transceiver unit to send the second unicast frame to the second device, and the third confirmation frame is used to indicate that the second unicast frame has been received.
17. The device according to any one of claims 10 to 16, characterized in that The processing unit is also used to control the transceiver unit to send a request frame to the main device in the network before sending a broadcast frame in the network, wherein the request frame is used to request channel switching; and receive a response frame from the main device, wherein the response frame is used to indicate that channel switching is allowed.
18. The device according to any one of claims 10 to 17, characterized in that The frame formats corresponding to the broadcast frame and the first unicast frame include at least one of the following fields: An attribute identification field, wherein the attribute identification field is used to indicate that the frame corresponding to the frame format is a frame for switching channels; A length field, wherein the length field is used to indicate the size of the frame; A switching type field, where the switching type field is used to indicate the type of the frame, where the type of the frame is a request frame, a response frame, a channel switching frame, or a confirmation frame, and the channel switching frame includes a broadcast frame and a unicast frame; A channel number field, where the channel number field is used to indicate the channel number of the first channel after switching; A bandwidth field, where the bandwidth field is used to indicate the channel bandwidth after switching; A switching time slot field, wherein the switching time slot field is used to indicate that the channel is switched immediately or after a set time period; A status code field, wherein the status code field is used to indicate the type of the response frame, and the type of the response frame is to allow initiation of channel switching or not to allow initiation of channel switching.
19. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by the communication device, the method as claimed in any one of claims 1 to 9 is implemented.
20. A communication system, characterized in that: A first device for executing the method according to any one of claims 1 to 9, and a second device; The second device is used to receive a first unicast frame, where the first unicast frame is used to notify the second device to switch to a first channel. The second device is a device in the network that has not sent a first confirmation frame to the first device, and the first confirmation frame is used to indicate that a broadcast frame has been received.
Citation Information
Cited By
Communication method and system
CN121126476A
Wireless ad hoc network frequency switching method and device, storage medium and site
CN121262627A
Wireless ad hoc network frequency hopping method, device, storage medium and station
CN121262627B
