Wireless communication method and device
By adopting a new communication method in wireless devices and optimizing data transmission by exchanging response packets on the same channel, the problems of high power consumption and large latency of devices such as wireless Bluetooth headsets are solved, and data transmission efficiency and user experience are improved.
Patent Information
- Application Number
- CN202510899255.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-26
AI Technical Summary
Existing devices such as wireless Bluetooth headsets have problems such as high power consumption, large latency and increased device size during data transmission, especially adding additional communication modules, which affects the user experience.
A new wireless communication method is adopted to optimize the data transmission process by simultaneously receiving data packets and exchanging response packets on the same channel, reducing conflicts between repeated reception and confirmation of messages, and improving data transmission efficiency.
It reduces the power consumption loss of wireless devices, shortens data transmission delay, increases the use time and reception efficiency of devices, and avoids conflicts.
Smart Images

Figure CN120711540A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communications, and in particular to a wireless communication method and related equipment. Background Art
[0002] With the continuous advancement of technology, audio devices have become an indispensable part of daily life, widely used in scenarios such as listening to music, watching videos, and binge-watching TV series. Conventional audio devices are either bulky, such as headsets, or require a data cable to connect two devices, which is not only unsightly but also difficult to share with others. Therefore, wireless devices that can be completely independent and do not require any connection have emerged.
[0003] The concept of time slots (SLOTs) is defined in the specifications of wireless communication protocols applied to such wireless devices, such as the classic Bluetooth protocol, BLE protocol, WiFi protocol, and various private wireless communication protocols. Taking the wireless Bluetooth headsets known in the prior art and the classic Bluetooth protocol applied to wireless Bluetooth headsets as an example, each such time slot is usually specified to be 625us and is divided into alternating master-slave time slots and slave-master time slots. When such wireless Bluetooth headsets transmit data, the master devices in the two Bluetooth headsets can only start sending packets in the master-slave time slot, and the slave devices in the two Bluetooth headsets can only start sending packets in the slave-master time slot. Each packet can occupy one or more (for example, 3 or 5) time slots. Generally speaking, wireless Bluetooth headsets that support the classic Bluetooth protocol follow this rule. Currently, conventional wireless Bluetooth headsets mostly communicate using a data forwarding model. This involves a data source device (such as a mobile phone, computer, or tablet) first sending a data packet containing, for example, left and right channel audio data to the primary headset. Assuming the primary headset is the left earphone, the left earphone parses the data packet sent by the data source device to separate the left and right channel data. It then saves the left channel data for later playback and forwards the right channel data to the right earphone. Only after the right earphone successfully receives the right channel data can both earphones play the audio data simultaneously. This forwarding process can be performed using the classic Bluetooth protocol. These wireless Bluetooth headsets often have the following disadvantages. First, wireless Bluetooth headsets are typically compact and battery-powered. Adding modules supporting other communication protocols, such as BLE or Wi-Fi, significantly increases the chip area, impacting the headset's cost. Furthermore, this data forwarding strategy significantly increases the primary headset's power consumption, impacting its usability. Furthermore, the data is transmitted step by step, from the data source device to the primary headset and then to the secondary headset, increasing data transmission latency. These disadvantages significantly impact the user experience. Here, those skilled in the art will appreciate that although the above description uses only wireless Bluetooth headsets and protocols as examples to illustrate their shortcomings, the above shortcomings exist for all wireless devices used to implement the same functions. Summary of the Invention
[0004] The object of the present invention is to provide an innovative wireless communication method, corresponding device, terminal, system, computer-readable storage medium and computer program product, so as to overcome the above-mentioned shortcomings in the prior art and improve the efficiency of data transmission of wireless devices.
[0005] According to a first aspect of the present invention, a communication method of a first device is provided, wherein the first device is wirelessly connected to a data source device and wirelessly connected to a second device, the communication method comprising:
[0006] receiving a first data packet from the data source device simultaneously with the second device on the same channel in a first time slot;
[0007] In response to receiving the first data packet from the data source device, receiving a second response packet from the second device in a time interval before the end of the first time slot, the second response packet being used to indicate that the second device has received the first data packet from the data source device; and
[0008] In response to receiving the second response packet from the second device, a first confirmation message is sent to the data source device in the second time slot, and the first confirmation message is used to notify the data source device to send a second data packet to the first device and the second device after the end of the second time slot.
[0009] Optionally, the communication method further includes, before sending the first acknowledgment message to the data source device in the second time slot:
[0010] A channel occupation signal is sent before the end of the first time slot, where the channel occupation signal is used to occupy the channel between the second device and the data source device before sending the first acknowledgement message to the data source device.
[0011] Optionally, the communication method further includes, before sending the first acknowledgment message to the data source device in the second time slot:
[0012] Performing idle channel assessment after the first time slot ends, the idle channel assessment being used to assess whether the channel between the data source device and the second device is occupied; and
[0013] If the channel is occupied, the data source device will send a new data packet;
[0014] If the channel is not occupied, the data source device will resend the first data packet.
[0015] Optionally, the communication method further includes: if it is confirmed that the first data packet is a resent data packet, skipping receiving the first data packet.
[0016] Optionally, the communication method further includes: sending a first response packet to the second device in a first time slot, where the first response packet is used to indicate that the first device has received the first data packet from the data source device.
[0017] Optionally, the wireless connection between the first device and the data source device and the wireless connection between the first device and the second device are bidirectional connections based on Bluetooth protocol, BLE protocol, WiFi protocol and various private wireless communication protocols.
[0018] According to a second aspect of the present invention, a communication method for a second device is further provided, wherein the second device is wirelessly connected to a data source device and is wirelessly connected to a first device, the communication method comprising:
[0019] receiving a first data packet from the data source device simultaneously with the first device on the same channel in a first time slot;
[0020] In response to receiving the first data packet from the data source device, receiving a first response packet from the first device in a time interval before the end of the first time slot, the first response packet being used to indicate that the first device has received the first data packet from the data source device;
[0021] In response to receiving the first response packet from the first device, detecting whether the first device is to send a first acknowledgment message to the data source device, the first acknowledgment message being used to notify the data source device to send a second data packet to the first device and the second device after the end of the second time slot; and
[0022] In response to detecting that the first device has not sent the first confirmation message to the data source device, a second confirmation message is sent to the data source device in a second time slot, and the second confirmation message is used to notify the data source device to send the second data packet to the first device and the second device after the end of the second time slot.
[0023] Optionally, detecting whether the first device is to send a first confirmation message to the data source device includes:
[0024] Performing an idle channel assessment before the end of the first time slot, wherein the idle channel assessment is used to assess whether the channel between the data source device and the data source device is occupied by the first device; and
[0025] In response to the channel with the data source device not being occupied by the first device, it is determined that the first device has not sent the first acknowledgement message to the data source device.
[0026] Optionally, the communication method further includes:
[0027] In response to not receiving the first response packet from the first device, performing a clear channel assessment before the end of a first time slot, the clear channel assessment being used to assess whether a channel between the data source device and the first device is occupied by the first device; and
[0028] In response to the channel with the data source device being occupied by the first device, it is determined that the first device is to send the first acknowledgement message to the data source device.
[0029] Optionally, the communication method further includes: in response to a channel between the data source device and the first device being not occupied by the first device, determining that the data source device resends the first data packet to the first device and the second device.
[0030] Optionally, the communication method further includes: when it is confirmed that the first data packet is a resent data packet, skipping receiving the first data packet.
[0031] Optionally, before detecting whether the first device is to send a first confirmation message to the data source device, the communication method further includes: sending a second response packet to the first device in a first time slot, wherein the second response packet is used to indicate that the second device has received the first data packet from the data source device.
[0032] Optionally, the communication method further includes: in response to detecting that the first device is to send the first confirmation message to the data source device, not sending the second confirmation message to the data source device.
[0033] According to a third aspect of the present invention, there is further provided a communication method for a data source device, wherein the data source device is wirelessly connected to a first device and a second device, the communication method comprising:
[0034] sending a first data packet in a first time slot;
[0035] In response to receiving a first acknowledgment message from the first device or receiving a second acknowledgment message from the second device in the second time slot, sending a second data packet to the first device and the second device after the second time slot ends;
[0036] Among them, the first confirmation message is sent by the first device to the data source device in response to receiving the first data packet from the data source device and receiving the second response packet from the second device, and the second response packet is used to indicate that the second device has received the first data packet from the data source device; the second confirmation message is sent by the second device to the data source device in response to receiving the first data packet from the data source device and the first response packet from the first device and detecting that the first device has not sent the first confirmation message to the data source device, and the first response packet is used to indicate that the first device has received the first data packet from the data source device.
[0037] Optionally, the data source device is a device with an audio and / or video playback function or a voice call function, and the first device and the second device are wireless headphones or speakers.
[0038] Optionally, the first data packet and the second data packet include audio data or voice data.
[0039] According to a fourth aspect of the present invention, a device is further provided, which includes a module for implementing the above communication method.
[0040] According to a fifth aspect of the present invention, there is further provided a terminal, comprising:
[0041] memory for storing computer programs;
[0042] The processor is configured to call the computer program so as to enable the terminal to execute the above communication method.
[0043] According to a sixth aspect of the present invention, there is further provided a system comprising:
[0044] A first device comprising a module for implementing the communication method according to the first aspect of the present invention;
[0045] A second device comprising a module for implementing the communication method according to the second aspect of the present invention; and
[0046] The data source device includes a module for implementing the above communication method.
[0047] Optionally, the data source device is a device with an audio and / or video playback function or a voice call function, and the first device and the second device are wireless headphones or speakers.
[0048] According to a seventh aspect of the present invention, a computer-readable storage medium is further provided, wherein the storage medium stores a computer program or instructions, and when the computer program or instructions are executed by a computer, the above-mentioned communication method is implemented.
[0049] According to an eighth aspect of the present invention, a computer program product is further provided, wherein the computer program product comprises instructions, and when the instructions are executed by a computer, the above-mentioned communication method is implemented.
[0050] The design of the present invention can improve the data transmission efficiency of wireless devices, reduce the power consumption loss caused by conventional wireless devices using data forwarding mode, increase the service life of wireless devices, and reduce data transmission delays. It also avoids conflicts that may be caused by two wireless devices sending confirmation messages at the same time, and optimizes the reception efficiency of wireless devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 The figure shows the connection relationship between the data source device, the first device, and the second device according to one embodiment of the present invention;
[0052] Figure 2 The communication relationship between a data source device and a first device and a second device according to an embodiment of the present invention is shown;
[0053] Figures 3a to 3e The figure shows the communication relationship between the data source device and the first device and the second device in two connected time slots in different scenarios according to one embodiment of the present invention;
[0054] Figures 4a to 4c An embodiment of the present invention is shown. Figures 3a to 3c Optimization solutions corresponding to the scenarios; and
[0055] Figure 5 The diagram shows a situation in which a data source device, a first device, and a second device communicate in several consecutive time slots according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the accompanying drawings and specific embodiments to describe the present invention in detail. It should be understood that the embodiments shown in the accompanying drawings and described below are merely illustrative and not intended to limit the present invention.
[0057] Figure 1The figure shows the connection relationship between the data source device, the first device, and the second device according to an embodiment of the present invention, wherein the first device and the second device have no obvious identity difference in the logical structure, and a two-way communication link based on a wireless communication protocol (such as Bluetooth, BLE, WiFi or various private wireless communication protocols, etc.) is respectively constructed between the two and the data source device, that is, the first device or the second device can both receive data from the data source device and send data to the data source device. In addition, the connection between the first device and the second device is also a two-way connection based on the wireless communication protocol. According to one embodiment of the present invention, the first device and the second device are wireless headphones or speakers, such as Bluetooth headphones or Bluetooth speakers. The communication link transmits data through classic Bluetooth protocol packets, and can also transmit data through other private protocols.
[0058] Figure 2 The communication relationship between the data source device, the first device and the second device according to an embodiment of the present invention is schematically shown. Figure 2 As shown, the data source device first sends a data packet to the first device and the second device on the channel at the same time. The data packet can be a brand new data packet or a data packet within the retransmission range. According to one embodiment of the present invention, the data packet includes, for example, audio data and / or voice data. The first device and the second device receive the data packet simultaneously on the same channel, wherein the first device successfully receives the data packet sent by the data source device at point A. The first device will then send a response packet to the second device at point C. The response packet is used to notify the second device that it has successfully received the data packet sent by the data source device. The response packet can be a Bluetooth protocol packet or other private protocol packet. If the second device successfully receives the data packet sent by the data source device at point B, the second device will send a response packet to the first device at point F. If the first device successfully receives the response packet sent by the second device at point E after sending the response packet to the second device at point C, the first device will send a first confirmation message (i.e., a first ACK message) to the data source device at point G. If the second device successfully receives the response packet sent by the first device at point D after sending the response packet to the first device at point F, and the first device does not send the first confirmation message to the data source device at point G, the second device will send a second confirmation message (i.e., a second ACK message) to the data source device at point H.
[0059] It can be seen from this that one of the first device and the second device will determine whether to send a response packet to the other of the first device and the second device (also referred to as the counterpart device) based on whether it successfully receives the data packet sent by the data source device. Preferably, the first device will determine whether to send a first confirmation message to the data source device based on whether it successfully receives the data packet from the data source device and whether it successfully receives the response packet from the second device, and the second device will determine whether to send a second confirmation message to the data source device based on whether it successfully receives the data packet from the data source device and whether it successfully receives the response packet from the first device, and whether the first device has already sent the first confirmation message.
[0060] Figures 3a to 3e The figure shows the communication relationship between the data source device and the first device and the second device in two consecutive time slots (SLOT) under different scenarios. Figures 3a to 3c In the first time slot (such as the Nth time slot shown in the figure, N is a positive integer to represent any time slot after the start of the communication process, and the Nth time slot in the following embodiments and related drawings of this article can be used as an equivalent replacement for the first time slot), the data source device sends (TX) a first data packet, and the first device or the second device respectively receives (RX) the first data packet sent by the data source device on the same channel, and both successfully receive the data packet. Thereafter, in the time interval after the reception of the first data packet is completed and before the start of the second time slot (i.e., the N+1th time slot shown in the figure, and the N+1th time slot in the following embodiments and related drawings of this article can be used as an equivalent replacement for the second time slot), the first device first sends a first response packet to the second device to notify the second device that it has successfully received the first data packet from the data source device. At this time, the second device receives the first response packet of the first device at the agreed time (still in the Nth time slot) and on the channel. Regardless of whether the first response packet is successfully received or not, the second device will send a second response packet to the first device thereafter to notify the first device that it has successfully received the first data packet from the data source device. At this time, the first device receives the second response packet sent by the second device at the agreed time (also still within the Nth time slot) and on the channel.
[0061] If the first device does not successfully receive the first data packet sent by the data source device, the first device will not send the first response packet to the second device. The first device will prepare to receive the second response packet that may be sent by the second device in the time interval between the end of sending the first response packet and the beginning of the N+1th time slot. Regardless of whether the first device successfully receives the second response packet from the second device, it will exit the current response packet receiving process before the beginning of the N+1th time slot.
[0062] If the second device does not successfully receive the first data packet sent by the data source device, the second device will not need to receive the first response packet that may be sent by the first device. After the second device receives the first response packet that may be sent by the first device, regardless of whether it successfully receives the first response packet from the first device, the second device will send a second response packet in the time interval between the end of receiving the response packet and the beginning of the N+1th time slot to notify the first device that it has successfully received the first data packet from the data source device.
[0063] exist Figure 3a In the embodiment, both the first device and the second device successfully receive the response packet from the other device. The first device preferably sends the first confirmation message (TX(ACK)) to the data source device in the N+1 time slot. The confirmation message is used to notify the data source device that it should send the second data packet to the first device and the second device after the end of the N+1 time slot.
[0064] exist Figure 3b In the example, the first device successfully receives the second response packet from the second device, but the second device does not receive the first response packet from the first device. The first device still sends the first confirmation message to the data source device in the N+1th time slot.
[0065] exist Figure 3c In the process, the first device does not receive the second response packet of the second device, but the second device successfully receives the first response packet of the first device. The second device will send a second confirmation message to the data source device in the N+1 time slot. The second confirmation message is used to notify the data source device that it should send a second data packet to the first device and the second device after the end of the N+1 time slot.
[0066] exist Figure 3d In the example, the first device successfully receives the first data packet from the data source device, but the second device may fail to receive the data packet due to signal interference or other reasons when receiving the first data packet from the data source device. Therefore, in the time interval after the end of receiving the first data packet sent by the data source device and before the start of the N+1 time slot, the second device does not send the second response packet nor receives the first response packet that may be sent by the first device, while the first device still sends the first response packet normally, but cannot receive the second response packet from the second device. Therefore, the first device will not send the first confirmation message to the data source device in the N+1 time slot.
[0067] exist Figure 3eIn the process, when the first device receives the first data packet from the data source device, the data packet reception may fail due to signal interference or other reasons, but the second device successfully receives the first data packet from the data source device. Therefore, in the time gap after the end of receiving the first data packet sent by the data source device and before the start of the N+1 time slot, the first device does not send the first response packet nor receives the second response packet that may be sent by the second device. The second device still sends the second response packet normally, but cannot receive the first response packet from the first device. Therefore, the second device will not send the second confirmation message to the data source device in the N+1 time slot.
[0068] In summary, when the data source device sends a data packet on a channel, the first device and the second device receive the data packet on the same channel, and exchange their packet receiving status by sending response packets to each other in the time interval between the successful reception of the data packet in the Nth time slot and the start of the N+1th time slot. When either the first device or the second device successfully receives a data packet from the data source device and also successfully receives a response packet from the other device, it has the opportunity to send an acknowledgment message to the data source device in the next time slot. Otherwise, no acknowledgment message will be sent to the data source device. This method of sending response packets in both directions can improve the efficiency of sending and receiving packets. Even if a single response packet is interfered with, after the undisturbed response packet is received by a device, the device can still send an acknowledgment message to the data source device, thereby requiring the data source device to subsequently send a new data packet instead of a retransmitted packet.
[0069] exist Figures 3a to 3c In the process, the first device or the second device finally sends the first confirmation message or the second confirmation message to the data source device. In order to avoid the first device and the second device sending confirmation messages at the same time to cause a conflict and optimize the reception efficiency, the first device and / or the second device can optimize the sending of the confirmation message by sending a channel occupancy signal and / or performing an idle channel assessment. This solution will be combined with Figures 4a to 4c Provide explanation.
[0070] Figures 4a to 4c The present invention shows an embodiment of the present invention. Figures 3a to 3c The optimization solution corresponding to the scenario. Figure 4a The scene shown in Figure 3a The scenario shown in is the same as that shown in . In order to avoid confirmation message conflicts, the first device can start sending a channel occupation signal a while before the start edge of the N+1 time slot before sending the first confirmation message in the N+1 time slot to occupy the channel between the second device and the data source device. At the same time, the second device starts performing a clear channel assessment (CCA) a while before the start edge of the N+1 time slot to assess whether the channel between it and the data source device has been occupied by the first device. Figure 4aIn the embodiment, since the first device sends a channel occupied signal in advance before sending the first confirmation message, the result of the idle channel assessment performed by the second device shows that the channel is busy, which indicates that the first device is about to send the first confirmation message to the data source device. Therefore, the second device chooses not to send the second confirmation message even if it successfully receives the first data packet from the data source device and the first response packet from the first device.
[0071] exist Figure 4b In this example, the first device will send a first acknowledgment message in the N+1th time slot. Therefore, the first device will begin sending a channel occupation signal some time before the start edge of the N+1th time slot. The second device does not successfully receive the first response packet from the first device and therefore will not send a second acknowledgment message to the data source device. However, the second device can still perform a clear channel assessment before the N+1th time slot to confirm whether the first device should send the first acknowledgment message to the data source device, thereby optimizing its own logic.
[0072] exist Figure 4c In the example, since the first device did not receive the second response packet from the second device, the first device does not send the first confirmation message to the data source device. If the result of the idle channel assessment performed by the second device before the starting edge of the N+1th time slot shows that the channel is idle, it means that the first device does not send the first confirmation message to the data source device. However, since the second device successfully received the first data packet from the data source device and the first response packet from the first device, the second device may choose to send the second confirmation message. In this case, the first device may choose to start performing the idle channel assessment immediately after the starting edge of the N+1th time slot to confirm whether the channel with the data source device is occupied by the second device, and then determine whether the second device has sent the second confirmation message to the data source device, so as to optimize its own logic.
[0073] According to one embodiment of the present invention, if the data source device successfully receives an acknowledgment message in the N+1th time slot, it will send a new data packet in a subsequent process; if it does not receive an acknowledgment message and is currently within the retransmission range of the data packet, it will resend the data packet in a subsequent process until it receives an acknowledgment message or reaches the retransmission limit.
[0074] To further conserve power, the first and second devices, if they know the data source device will resend a data packet after the N+1th time slot, can skip receiving the data packet from the data source device and wait until the ACK packet is sent or received before retransmitting it. From the perspective of different devices receiving data packets, a single transmission of an audio data packet typically occupies multiple time slots, for example, up to five time slots. Therefore, skipping the retransmission of the packet effectively reduces power consumption of the wireless devices.
[0075] In order to be able to exchange the packet receiving status between the first device and the second device through the response packet between the two devices in the time interval between the end of data packet reception and the start of the next time slot, the length of the response packet should meet certain conditions. Without affecting the current data source device sending packets, according to the classic Bluetooth protocol specification, the minimum time interval between the end of sending an audio data packet and the start of the next time slot is, for example, 189us. If a longer time slot needs to be negotiated with the data source device but the data packet length is not the maximum packet length corresponding to the time slot, the time gap may be longer.
[0076] As described above, when the first device and the second device know that the data source device will resend the data packet later, they can choose to skip the current receiving process. Figure 5 . Figure 5 The data source device, the first device, and the second device communicate in a number of consecutive time slots, including six phases (ST). Each phase occupies four time slots, and the length of the data packet sent by the data source device is in the first three time slots. Each phase begins when the data source device sends a data packet.
[0077] Specifically, in Figure 5 In the ST1 phase of the communication, the data source device sends a first data packet (TX M), where the first data packet is data packet M as shown in the figure (M is a positive integer to represent any data packet sent during the communication process. In the following embodiments and related figures of this article, the term "data packet M" can be used as an equivalent replacement for the term "first data packet") to the first device and the second device. Both the first device and the second device successfully receive (RX OK) data packet M. Thereafter, in the time interval after the reception of data packet M is completed and before the start of the fourth time slot of the ST1 phase, the first device and the second device exchange response packets. The first device and the second device both receive the response packets from each other, and the first device will send a first acknowledgment message (ACK) to the data source. In the gap before the start of the fourth time slot of the ST1 phase, the first device sends a channel occupation signal. At the same time, the second device performs a clear channel assessment (CCA), and the result shows that the channel is busy. This situation is shown in Figures 3 and 4. The data source device will receive the first acknowledgment message and will subsequently send a new data packet.
[0078] In the ST2 phase, the data source device sends a new second data packet (data packet M+1 as shown in the figure, the term "data packet M+1" can be used as an equivalent replacement for the term "second data packet") to the first device and the second device. The first device did not successfully receive (RX FAIL) data packet M+1, so the first device does not send a response packet nor does it receive a response packet that the second device may send. The second device successfully receives (RX OK) data packet M+1, as shown in the figure. Thereafter, the second device attempts to exchange a response packet with the first device in the time interval between the end of reception of data packet M+1 and the start of the fourth time slot of the ST2 phase, but the second device does not receive a response packet from the first device. Before the start of the fourth time slot of the ST2 phase, the second device performs a clear channel assessment (CCA), and the result shows that the channel is idle. At this time, neither the first device nor the second device sends an acknowledgment message to the data source device, and therefore the data source device will prepare to resend data packet M+1.
[0079] In the ST3 stage, the data source device resends data packet M+1, and the first device successfully receives (RX OK) data packet M+1. Since the second device has successfully received data packet M+1 before, in order to save power consumption, it chooses to skip the repeated reception process in the ST3 stage. Afterwards, in the time interval between the completion of the reception of data packet M+1 and the start of the fourth time slot of the ST3 stage, the first device and the second device exchange response packets. The first device does not receive the response packet of the second device, but the second device receives the response packet of the first device, so the first device will not send an acknowledgment message. Before the start of the fourth time slot of the ST3 stage, the second device performs an idle channel assessment, and the result shows that the channel is idle, so the second device will send an acknowledgment message in the fourth time slot of the ST3 stage. In the fourth time slot of the ST3 stage, the first device performs an idle channel assessment, and the result shows that the channel is busy, which means that the second device has sent an acknowledgment message. At this point, the data source device successfully receives the acknowledgment message and is ready to send a new data packet.
[0080] In the ST4 stage, the data source device sends a new third data packet (data packet M+2 as shown in the figure, the term "data packet M+2" can be used as an equivalent replacement for the term "third data packet") to the first device and the second device. The first device successfully receives (RX OK) data packet M+2, but the second device does not successfully receive (RX FAIL) data packet M+2. Therefore, the second device does not send a response packet nor does it receive a response packet that may be sent by the first device. Thereafter, the first device attempts to exchange a response packet with the second device in the time interval between the end of reception of data packet M+2 and the start of the fourth time slot of the ST4 stage, but does not receive a response packet from the second device. In addition, in the fourth time slot of the ST4 stage, the first device performs a clear channel assessment (CCA), and the result shows that the channel is idle. Therefore, neither the first device nor the second device sends an acknowledgment message to the data source device, and the data source device will resend data packet N+2.
[0081] In stage ST5, the data source device resends data packet M+2. To save power, the first device skips the receiving process at this stage because it has already successfully received data packet M+2. The second device attempts to receive data packet M+2 but still fails (RX FAIL). In this case, the interaction process of the response packets between the devices is the same as in stage ST4, and it is ultimately determined that the data source device still resends data packet M+2.
[0082] In the ST6 phase, the data source device continues to resend data packet M+2, and the second device successfully receives (RX OK) data packet M+2. The first device still skips the repeated reception process. Thereafter, in the time interval between the completion of data packet M+2 reception and the start of the fourth time slot of the ST6 phase, the first device and the second device exchange response packets. The first device successfully receives the response packet sent by the second device, but the second device does not receive the response packet sent by the first device. Therefore, the first device will send a first confirmation message to the data source device. Before the fourth time slot of the ST6 phase, the first device sends a channel occupancy signal. At the same time, the second device performs a clear channel assessment (CCA), and the result shows that the channel is busy. Therefore, the data source device will receive the first confirmation message and prepare to send a new data packet.
[0083] The present invention also relates to a device comprising modules for implementing the communication method as described above.
[0084] The present invention also relates to a terminal, comprising: a memory for storing a computer program; and a processor for calling the computer program so that the terminal executes the communication method described above.
[0085] The present invention also relates to a system, comprising: a first device comprising a module for implementing the above-mentioned communication method; a second device comprising a module for implementing the above-mentioned communication method; and a data source device comprising a module for implementing the above-mentioned communication method.
[0086] The present invention also relates to a computer-readable storage medium, wherein a computer program or instruction is stored in the storage medium. When the computer program or instruction is executed by a computer, the communication method as described above is implemented.
[0087] The present invention also relates to a computer program product, comprising instructions, which implement the communication method described above when the instructions are executed by a computer.
[0088] The present invention solves the communication problem between a wireless device and a data source device efficiently by providing a method in which a first device and a second device monitor simultaneously and both have the function of directly communicating with a data source device.
[0089] Although various embodiments of various aspects of the present invention have been described for the purposes of this disclosure, it should not be understood that the teachings of this disclosure are limited to these embodiments. Features disclosed in a specific embodiment are not limited to that embodiment, but may be combined with features disclosed in different embodiments. For example, one or more features and / or functions of the product according to the present invention described in one embodiment may also be applied individually, in combination or as a whole to another embodiment. It should be understood by those skilled in the art that there are possible more optional embodiments and variations, and various changes and modifications may be made to the above structure without departing from the scope of protection of the present invention.
Claims
1. A communication method for a first device, wherein the first device is wirelessly connected to a data source device and wirelessly connected to a second device, characterized in that: The communication method comprises: receiving a first data packet from the data source device simultaneously with the second device on the same channel in a first time slot; In response to receiving the first data packet from the data source device, receiving a second response packet from the second device in a time interval before the end of the first time slot, the second response packet being used to indicate that the second device has received the first data packet from the data source device; and In response to receiving the second response packet from the second device, a first confirmation message is sent to the data source device in the second time slot, and the first confirmation message is used to notify the data source device to send a second data packet to the first device and the second device after the end of the second time slot.
2. The communication method according to claim 1, characterized in that The communication method further includes, before sending the first acknowledgement message to the data source device in the second time slot: A channel occupation signal is sent before the end of the first time slot, where the channel occupation signal is used to occupy the channel between the second device and the data source device before sending the first acknowledgement message to the data source device.
3. The communication method according to claim 1, wherein: The communication method further includes, before sending the first acknowledgement message to the data source device in the second time slot: Performing idle channel assessment after the first time slot ends, wherein the idle channel assessment is used to assess whether the channel between the data source device and the second device is occupied; as well as If the channel is occupied, the data source device will send a new data packet; If the channel is not occupied, the data source device will resend the first data packet.
4. The communication method according to claim 1, wherein: The communication method further includes: If it is confirmed that the first data packet is a retransmitted data packet, receiving the first data packet is skipped.
5. The communication method according to claim 1, characterized in that The communication method further includes: A first response packet is sent to the second device in a first time slot, where the first response packet is used to indicate that the first device has received the first data packet from the data source device.
6. A communication method for a second device, wherein the second device is wirelessly connected to a data source device and wirelessly connected to a first device, characterized in that: The communication method comprises: receiving a first data packet from the data source device simultaneously with the first device on the same channel in a first time slot; In response to receiving the first data packet from the data source device, receiving a first response packet from the first device in a time interval before the end of the first time slot, the first response packet being used to indicate that the first device has received the first data packet from the data source device; In response to receiving the first response packet from the first device, detecting whether the first device is to send a first acknowledgment message to the data source device, the first acknowledgment message being used to notify the data source device to send a second data packet to the first device and the second device after the end of the second time slot; and In response to detecting that the first device has not sent the first confirmation message to the data source device, a second confirmation message is sent to the data source device in a second time slot, and the second confirmation message is used to notify the data source device to send the second data packet to the first device and the second device after the end of the second time slot.
7. The communication method according to claim 6, characterized in that Detecting whether the first device is to send a first confirmation message to the data source device includes: Performing an idle channel assessment before the end of the first time slot, wherein the idle channel assessment is used to assess whether the channel between the data source device and the data source device is occupied by the first device; and In response to the channel with the data source device not being occupied by the first device, it is determined that the first device has not sent the first acknowledgement message to the data source device.
8. The communication method according to claim 6, characterized in that The communication method further includes: In response to not receiving the first response packet from the first device, performing a clear channel assessment before the end of a first time slot, the clear channel assessment being used to assess whether a channel between the data source device and the first device is occupied by the first device; and In response to the channel with the data source device being occupied by the first device, it is determined that the first device is to send the first acknowledgement message to the data source device.
9. The communication method according to claim 8, characterized in that The communication method further includes: In response to the channel between the data source device and the first device being not occupied by the first device, the data source device is determined to resend the first data packet to the first device and the second device.
10. The communication method according to claim 8, characterized in that The communication method further includes: When it is determined that the first data packet is a retransmitted data packet, receiving the first data packet is skipped.
11. The communication method according to claim 6, characterized in that Before detecting whether the first device is to send a first acknowledgement message to the data source device, the communication method further includes: A second response packet is sent to the first device in a first time slot, where the second response packet is used to indicate that the second device has received the first data packet from the data source device.
12. The communication method according to claim 6, characterized in that The communication method further includes: In response to detecting that the first device is to send the first acknowledgment message to the data source device, the second acknowledgment message is not sent to the data source device.
13. A communication method for a data source device, wherein the data source device is wirelessly connected to a first device and a second device, characterized in that: The communication method comprises: sending a first data packet in a first time slot; In response to receiving a first acknowledgment message from the first device or receiving a second acknowledgment message from the second device in the second time slot, sending a second data packet to the first device and the second device after the second time slot ends; Among them, the first confirmation message is sent by the first device to the data source device in response to receiving the first data packet from the data source device and receiving the second response packet from the second device, and the second response packet is used to indicate that the second device has received the first data packet from the data source device; the second confirmation message is sent by the second device to the data source device in response to receiving the first data packet from the data source device and the first response packet from the first device and detecting that the first device has not sent the first confirmation message to the data source device, and the first response packet is used to indicate that the first device has received the first data packet from the data source device.
14. The communication method according to any one of claims 1 to 13, characterized in that: The data source device is a device with an audio and / or video playback function or a voice call function, and the first device and the second device are wireless headphones or speakers.
15. The communication method according to any one of claims 1 to 13, characterized in that: The first data packet and the second data packet include audio data or voice data.
16. A device, characterized in that Comprising means for implementing a communication method according to any one of claims 1 to 15.
17. A terminal, characterized in that: include: memory for storing computer programs; A processor, configured to call the computer program so as to cause the terminal to execute the communication method according to any one of claims 1 to 15.
18. A system, characterized in that: include: A first device comprising a module for implementing the communication method according to any one of claims 1 to 5; a second device comprising a module for implementing the communication method according to any one of claims 6 to 12; and A data source device comprising a module for implementing the communication method according to claim 13.
19. The system according to claim 18, wherein: The data source device is a device with an audio and / or video playback function or a voice call function, and the first device and the second device are wireless headphones or speakers.
20. 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 a computer, the communication method according to any one of claims 1 to 15 is implemented.
21. A computer program product, characterized in that The computer program product comprises instructions, which, when executed by a computer, implement the communication method according to any one of claims 1 to 15 .
Citation Information
Patent Citations
Data transmission method, device and equipment
CN110266444A
TWS earphone communication method and system based on carrier monitoring, and TWS earphone
CN111818496A
Audio data communication method and system and audio communication device
CN112039637A
Data receiving method and device of Bluetooth headset, equipment and storage medium
CN112994854A
Audio broadcasting methods and devices
US20240056207A1