Wireless data transmission system and method

By sending feedback signals only when the slave device does not receive the data packet correctly, and the master device sends a response to the external device according to the reception situation, the problems of high energy consumption and short battery life in wireless transmission are solved, and more efficient data transmission is achieved Interact with the device.

CN113825218BActive Publication Date: 2024-11-12SHANGHAI WU QI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111272738.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-11-12
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

In the existing wireless transmission system, slave devices cannot effectively feedback the reception situation, resulting in external devices being unable to know whether the slave devices successfully receive data packets, resulting in frequent master-slave interactions, increasing energy consumption and reducing battery life.

Method used

The slave device only sends a feedback signal to the master device when the data packet is not received correctly. The master device sends ACK/NACK signals to the external device based on the feedback of the slave device and its own situation, reducing the probability of sending and interactions of the feedback signal, and using idle time Interaction to avoid affecting normal transmission.

Benefits of technology

It reduces the energy consumption of the master and slave equipment, increases the battery life, and makes the interaction between the master and slave equipment easier to realize, while improving the consideration of packet reception and the accuracy of response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004409624420000011
    Figure HDA0004409624420000011
  • Figure HDA0004409624420000012
    Figure HDA0004409624420000012
  • Figure HDA0004409624420000021
    Figure HDA0004409624420000021
Patent Text Reader

Abstract

The present invention relates to the field of communication technology, in particular to a wireless data transmission system and method, the method comprising the following steps: S100: an external device sends a data packet; S200: a master device and a slave device receive the data packet sent by the external device; S300: when the slave device does not correctly receive the data packet sent by the external device, the slave device sends a feedback signal to the master device; when the slave device correctly receives the data packet sent by the external device, no feedback signal is sent; S400: the master device detects whether the slave device has sent a feedback signal; when the master device successfully receives the data packet and detects that the slave device has not sent a feedback signal, an ACK signal is sent to the external device; otherwise, a NACK signal is sent to the external device. This solution can reduce the energy consumption of the master and slave devices during data transmission and increase the endurance time of the master and slave devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a wireless data transmission system and method. Background Art

[0002] The birth of wireless technology has promoted the improvement of many products. For example, for headphones, wireless transmission technology has brought headphones from the era of traditional wired headphones to the era of wireless headphones. In short, the birth of wireless technology has brought many conveniences to people's lives. Wireless transmission refers to a way of transmitting data using wireless technology. The implementation of wireless transmission involves the concept of time slots. Time slots are dedicated to a part of the serial self-multiplexing of time slot information of a single channel. In T1 and E1 services, a time slot usually refers to a 64kbps channel. In the process of wireless transmission between two devices, it is usually the two devices that take turns to transmit and receive in the interval time slots to complete the data exchange.

[0003] A wireless transmission system generally includes a master device, a slave device, and an external device. When the wireless transmission system is working, the external device usually communicates wirelessly with the master device, and each device takes turns to perform the sending and receiving work in the interval time slot. Specifically, the external device transmits the source file to be transmitted to the master and slave devices to the master device in the first time slot, and the master device sends an ACK / NACK response to the external device in the second time slot based on whether it has correctly received the source file sent by the external device, so as to inform the external device whether it has successfully and correctly received the source file sent by the external device. In this process, the master device will send the Bluetooth key, device address and other data required for monitoring to the slave device, so that the slave device can monitor the external device when it sends the source file, so that the slave device can also receive the source file synchronously with the master device.

[0004] However, since the slave device receives the source file sent by the external device in a monitoring manner, it is unable to send a response to the external device to inform the external device whether it has successfully received the source file sent by it, resulting in the external device having no way of knowing when the slave device fails to successfully receive the source file. In order to solve this technical problem, it is proposed in the prior art that during the data transmission process, when the slave device correctly receives the source file, a feedback signal is sent to the master device, and then the master device sends an ACK / NACK response to the external device based on its own file reception status and the feedback signal sent by the slave device. However, in the above technical solution, since the master and slave devices need to interact frequently, the energy consumption of the master and slave devices is high, which reduces the battery life of the master and slave devices. Summary of the invention

[0005] The present invention provides a wireless data transmission system and method, which can reduce the energy consumption of master and slave devices during data transmission and increase the endurance time of the master and slave devices.

[0006] The basic solution provided by the present invention is:

[0007] The wireless data transmission method comprises the following steps:

[0008] S100: The external device sends a data packet;

[0009] S200: The master device and the slave device receive a data packet sent by the external device;

[0010] S300: When the slave device does not correctly receive the data packet sent by the external device, the slave device sends a feedback signal to the master device; when the slave device correctly receives the data packet sent by the external device, no feedback signal is sent;

[0011] S400: The master device detects whether the slave device has sent a feedback signal; when the master device successfully receives the data packet and detects that the slave device has not sent a feedback signal, the master device sends an ACK signal to the external device; otherwise, the master device sends a NACK signal to the external device.

[0012] The principles and advantages of the present invention are:

[0013] In this solution, through the interaction between the master and slave devices, the master device can learn about the data packet reception status of the slave device, and then send an ACK / NACK signal to the external device based on the master device's own data packet reception status and the slave device's data packet reception status, so that the external device can make a decision on whether to resend the data packet based on the reception status of the master and slave devices. In addition, during the conventional data packet transmission process, the entire time slot is not occupied, so the master and slave devices have free time to complete this interaction work, which will not affect the normal wireless transmission between the master and external devices. Therefore, by adopting this solution, the data packet reception status of the master and slave devices can be fully considered without affecting the normal wireless transmission between the master and external devices, and a response can be sent to the external device accordingly.

[0014] Because the failure to correctly receive a data packet sent by an external device is a rare case when the wireless device is working normally, in this solution, the slave device sends a feedback signal to the master device only when it fails to correctly receive a data packet sent by an external device. Compared with the slave device sending a feedback signal regardless of whether the data packet is received correctly or not, or sending a feedback signal when the slave device receives the data correctly, the probability of sending a feedback signal in this solution is smaller, so that this solution has the beneficial effect of saving power. In addition, since the probability of the slave device needing to send a feedback signal in this solution is smaller, that is, the probability of occupying idle time for the master-slave device to interact is smaller, the impact of not having idle time to provide the master-slave device with the interaction will also be smaller, making the normal interaction of the master-slave device easier to achieve.

[0015] In summary, by adopting this solution, it is possible to fully consider the data packet reception situation of the master and slave devices without affecting the normal wireless transmission between the master device and the external device, and send a response to the external device accordingly; it can also reduce the energy consumption of the master and slave devices during data transmission and increase the battery life of the master and slave devices; it can also make the normal interaction between the master and slave devices easier to achieve.

[0016] Furthermore, the feedback signal is radio frequency energy; in S400, the master device determines whether the slave device has sent the feedback signal by detecting whether the radio frequency energy is greater than an energy threshold.

[0017] Beneficial effect: Since the master device may fail to successfully receive the feedback signal sent by the slave device, in this solution, as long as the master device receives RF energy (which may not be sent by the slave device), it will send a NACK signal to the external device, reducing the situation where the slave device fails to correctly receive the data packet due to the failure of the master device to interact normally with the slave device and the external device cannot know it. And because the probability of the wireless device failing to correctly receive the data packet sent by the external device is higher when the RF energy in the wireless device use environment is high, it is more reasonable to add the setting of the external device retransmitting the data packet in this solution.

[0018] Furthermore, the feedback signal is an AC packet; in S400, the master device receives the AC packet and determines whether the slave device has sent the feedback signal according to the content of the AC packet.

[0019] Beneficial effect: The master device determines whether the slave device has sent a feedback signal by receiving the AC packet, thereby knowing the data packet reception status of the slave device.

[0020] Further, the AC packet includes a synchronization word, and in S300, sending a feedback signal includes:

[0021] Generate a synchronization word according to the device address of the master device, generate an AC packet according to the synchronization word, and send the AC packet;

[0022] In S400, the master device determines whether the slave device has sent a feedback signal according to whether the synchronization word is consistent with the synchronization word generated by its device address.

[0023] Beneficial effect: The synchronization word derived from the master device address makes the AC packet easier to be received by the master device. The principle is that, under normal circumstances, the 64-bit of the AC packet is generated through the lower 24 bits of the Bluetooth address, that is, the LAP. For any different Bluetooth low 24 bits (LAP), the AC encoding method - using (64,30) expurgated block code, can ensure that the minimum Hamming distance (Hamming distance) is greater than or equal to 14. This will increase the association capability of the receiver (master-slave device in this application) and ensure reliable reception. In implementation, the LAP of the slave receiver can also be used, but the fixed preset address LAP cannot be used. This is because there may be multiple pairs of TWS devices in the same network environment, and conflicts may occur between them using fixed addresses. In addition, in the specific implementation, we can increase 64 bits to even 128 bits or higher to ensure a larger Hamming distance, which depends on the remaining time between SLOT N and SLOT N+1.

[0024] Furthermore, the master device and the slave device are both Bluetooth devices, and the device address is the Bluetooth low address part LAP.

[0025] Beneficial effect: Using the low-order address part of Bluetooth as the device address makes it easier to distinguish the AC packets generated thereby. The principle is that the low-order address bits of Bluetooth devices are different, and the high-order address bits are the manufacturer's ID. These bits are the same for devices from the same manufacturer. Using these bits as a distinction to generate AC packets is meaningless.

[0026] Furthermore, it also includes S500: when the external device receives an ACK signal, the data packet is not retransmitted; when the external device receives a NACK signal, the data packet is retransmitted; the maximum number of times the data packet is retransmitted is N.

[0027] Beneficial effect: When the external device receives a NACK signal, it indicates that the master device or the slave device has not received the data packet correctly, so the data packet should be retransmitted at this time. However, in order to prevent the data packet from being incorrectly received due to other reasons, thereby delaying the normal sending of subsequent data packets, the present solution limits the number of times the external device retransmits the data packet, thereby preventing the external device from repeatedly retransmitting data packets that cannot be correctly received, thereby delaying the sending of subsequent data packets.

[0028] Further, when sending the feedback signal in S300, the slave device sends the feedback signal during the idle time of the time slot after the external device finishes sending.

[0029] Beneficial effect: The slave device sends a feedback signal during the idle time of the time slot in which the external device sends a data packet, which will not interfere with the master device's normal reception of the data packet, and the master device in the idle time has a higher probability of successfully receiving the feedback signal. Therefore, this solution can avoid interfering with the master device's correct reception of the data packet and increase the probability of the master device successfully receiving the feedback signal.

[0030] Further, in S300, when the slave device erroneously receives the header of the data packet, it continues to parse the payload length field in the data packet, and after the parsing is completed, sends a feedback signal.

[0031] Beneficial effect: In this solution, when the slave device receives the header of the data packet incorrectly, it continues to parse the payload length field in the data packet instead of directly sending a feedback signal after the header is incorrectly received. The principle is that after the slave device receives the header incorrectly, the master device may still be receiving a data packet from an external device. If the slave device sends a feedback signal at this time, it may affect the master device from correctly receiving the data packet and may also cause the master device to fail to successfully receive the feedback signal. Therefore, this solution can avoid interfering with the master device from correctly receiving the data packet and increase the probability of the master device successfully receiving the feedback signal.

[0032] Further, in S300, when the slave device erroneously receives the header of the data packet, the slave device detects radio frequency energy in the medium, and sends a feedback signal when the radio frequency energy decreases.

[0033] Beneficial effect: In this solution, when the slave device receives the header of the data packet incorrectly, the slave device detects the energy in the medium. The principle is that there is energy in the medium when the external device sends a data packet. Therefore, although the slave device receives the header of the data packet incorrectly, it can still determine whether the data packet has been sent by detecting the energy in the medium. Therefore, in this solution, when the energy decreases, the slave device sends a feedback signal to the master device, which can avoid the master device still receiving the data packet sent by the external device when the slave device sends the feedback signal, thereby avoiding interference with the master device's correct reception of the data packet and increasing the probability of the master device successfully receiving the feedback signal.

[0034] The wireless data transmission system includes a master device, a slave device and an external device, and uses the above-mentioned wireless data transmission method to perform data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The figure is a flowchart of a wireless data transmission method according to an embodiment of the present invention.

[0036] Figure 2 The figure is a schematic diagram of data packet transmission in the wireless data transmission method according to an embodiment of the present invention.

[0037] Figure 3 A schematic diagram of an AC packet in a wireless data transmission method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following is further described in detail through specific implementation methods:

[0039] Embodiment 1:

[0040] Embodiment 1 is basically as attached Figure 1 As shown:

[0041] A wireless data transmission method is applied to a master device and a slave device capable of wirelessly communicating with each other, and the master device can wirelessly communicate with an external device. Figure 1 As shown, in this method, the external device first sends a data packet in the first time slot. After the slave device receives the data packet, it uses the remaining idle time in the first time slot to interact with the master device, so that the master device combines whether both the master and slave devices have correctly received the data packet, and sends a response to the external device to instruct the external device to resend the data packet.

[0042] Specifically, the following steps are included (the numbering of each step in this scheme is only used to distinguish the steps, and does not limit the specific execution order of each step, and each step can be performed simultaneously).

[0043] S100: The external device sends a data packet.

[0044] S200: The master device and the slave device receive the data packet sent by the external device. In this embodiment, the master device and the slave device are both Bluetooth devices.

[0045] S300: When the slave device does not correctly receive the data packet sent by the external device, the slave device sends a feedback signal to the master device; when the slave device correctly receives the data packet sent by the external device, no feedback signal is sent. Figure 3 As shown, in this embodiment, the feedback signal is an AC packet, and the AC packet includes PREAMBLE, SYNC WORD (synchronization word) and TRAILER. The slave device generates a synchronization word according to the device address of the master device, generates an AC packet according to the synchronization word, and then sends the AC packet to the master device. Specifically, the device address is the Bluetooth low-order address part LAP. In other embodiments of the present application, the feedback signal can also be radio frequency energy.

[0046] Specifically, when sending a feedback signal in S300, the slave device sends a feedback signal in the idle time of the time slot after the external device finishes sending. When the slave device receives the header of the data packet incorrectly, it will not immediately send a feedback signal to the master device. In this embodiment, when the slave device receives the header of the data packet incorrectly, it will continue to parse the payload length field in the data packet, and after the parsing is completed, the slave device sends a feedback signal to the master device. In other embodiments of the present application, when the slave device receives the header of the data packet incorrectly, the slave device receives the radio frequency energy in the medium, and when the radio frequency energy is reduced to an energy threshold, the slave device sends a feedback signal to the master device. In addition, when the external device transmits a data packet, the type of the data packet has similarity, so the slave device can also determine when the data packet that is not correctly received should be sent according to the type and length of the previously received data packet, that is, determine the time when the feedback signal should be sent, and then send a feedback signal to the master device according to its estimated time.

[0047] S400: The master device detects whether the slave device has sent a feedback signal; when the master device successfully receives the data packet and detects that the slave device has not sent a feedback signal, it sends an ACK signal to the external device; otherwise, it sends a NACK signal to the external device. In this embodiment, the master device receives the AC packet and determines whether the slave device has sent a feedback signal based on whether the synchronization word is consistent with the synchronization word generated by its device address.

[0048] S500: When the external device receives an ACK signal, it does not retransmit the data packet; when the external device receives a NACK signal, it retransmits the data packet; the maximum number of times the data packet is retransmitted is N, specifically, N=3. In other embodiments of the present application, when the main device receives radio frequency energy and sends a NACK signal to the external device, instructing the external device to retransmit the same data packet M times, the main device sends an ACK signal to the external device, instructing the external device not to retransmit the data packet; wherein M=4.

[0049] S600: When the master device or the slave device does not receive a data packet and does not receive a data packet retransmitted by an external device, the master device or the slave device performs data loss concealment processing using a data loss concealment technology.

[0050] like Figure 2 As shown in the figure, during the data transmission process, according to whether the master and slave devices receive the data packets correctly, there are four cases: 101, 102, 103, and 104. In the table, SRC represents the external device, SNK-2 represents the slave device, SNK-1 represents the master device, and SLOT represents the time slot.

[0051] In Example 101, SRC sends a data packet TX which is successfully received by both SNK-1 and SNK-2. Since SNK-2 may notify SNK-1 of an "AC" packet indicating that the reception of "TX" failed, SNK-1 still reserves a receiving window for "AC" during the idle time. Since SNK-2 has successfully received "TX", SNK-1 will not receive any data packets from SNK-2. Therefore, considering that SNK-2 has successfully received "TX", SNK-1 sends a TX(ACK) to SRC.

[0052] In Example 102, SRC sent "TX", SNK-1 received it correctly, and SNK-2 received it poorly. After the reception failed, SNK-2 sent an "AC" packet to SNK-1. Knowing that SNK-2 did not receive "TX" correctly, SNK-1 sent a TX (NACK) to SRC even though it received "TX".

[0053] Example 103 is similar to Example 102, the only difference is that SNK-1 does not correctly receive the AC packet of SNK-2. Since SNK-1 correctly receives "TX" from SRC, it sends a TX(ACK) to SRC, which means that SNK-2 has no chance to receive the retransmission of "TX" from SRC again. In order to mitigate the impact of this situation, which causes the audio quality of SNK-2 to deteriorate due to packet loss, some special designs can be made to the "AC" packet so that the probability of SNK-1 receiving AC increases, higher than other types of data packets. For example: First, "AC" can only contain access code, and it can be specially designed to increase the probability of SNK-1 receiving it. In addition, AC can contain no payload, which can be calculated from the LAP field of SNK-2's MAC address. Through special design and encoding, "AC" can be more easily detected than other types of data. So this will increase the probability of SNK-1 receiving it. Second, "AC" can be just some RF energy. Every time when SNK-1 detects any RF energy during idle time, no matter it is noise from other devices or RF energy from SNK-2, SNK-1 will think it is "AC" from SNK-2 and send TX(NACK) to SRC.

[0054] In example 104, SRC sends "TX", SNK-2 receives it correctly, but SNK-1 receives it incorrectly. In this case, SNK-1 sends TX (NACK) to request SRC to resend.

[0055] Also disclosed is a wireless data transmission system, which uses the wireless data transmission method.

[0056] Embodiment 2:

[0057] The basic principle of Example 2 is the same as that of Example 1, except that in Example 2, in S400 of the wireless data transmission method, the master device can also determine whether the slave device has sent a feedback signal by detecting whether the RF energy is greater than the energy threshold. Since the master device may not successfully receive the feedback signal sent by the slave device, in this embodiment, as long as the master device receives RF energy (the RF energy may not be sent by the slave device), it sends a NACK signal to the external device, thereby reducing the situation where the slave device fails to correctly receive the data packet due to the failure of the master device to interact normally with the slave device and the external device cannot know it. And because the RF energy in the wireless device use environment is high, the probability that the wireless device cannot correctly receive the data packet sent by the external device is higher, so it is more reasonable to add a setting for the external device to resend the data packet in this embodiment.

[0058] In Embodiment 2, the wireless data transmission system uses a corresponding wireless data transmission method.

[0059] The above are only embodiments of the present invention. Common knowledge such as the known specific structures and characteristics in the scheme is not described in detail here. Ordinary technicians in the relevant field know all the common technical knowledge in the technical field to which the invention belongs before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply conventional experimental means before that date. Ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the scope of protection of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A wireless data transmission method, characterized in that: The following steps are involved: S100: The external device sends a data packet; S200: The master device and the slave device receive a data packet sent by the external device; S300: When the slave device does not correctly receive the data packet sent by the external device, the slave device sends a feedback signal to the master device; when the slave device correctly receives the data packet sent by the external device, no feedback signal is sent; S400: The master device detects whether the slave device has sent a feedback signal; when the master device successfully receives the data packet and detects that the slave device has not sent a feedback signal, the master device sends an ACK signal to the external device; otherwise, the master device sends a NACK signal to the external device; The feedback signal is radio frequency energy; in S400, the master device determines whether the slave device has sent the feedback signal by detecting whether the radio frequency energy is greater than an energy threshold.

2. The wireless data transmission method according to claim 1, characterized in that: The feedback signal is an AC packet; in S400, the master device receives the AC packet and determines whether the slave device has sent a feedback signal based on the content of the AC packet.

3. The wireless data transmission method according to claim 2, characterized in that: The AC packet includes a synchronization word. In S300, sending a feedback signal includes: Generate a synchronization word according to the device address of the master device, generate an AC packet according to the synchronization word, and send the AC packet; In S400, the master device determines whether the slave device has sent a feedback signal according to whether the synchronization word is consistent with the synchronization word generated by its device address.

4. The wireless data transmission method according to claim 3, characterized in that: The master device and the slave device are both Bluetooth devices, and the device address is the Bluetooth low address part LAP.

5. The wireless data transmission method according to claim 1, characterized in that: The method further includes S500: when the external device receives an ACK signal, not retransmitting the data packet; when the external device receives a NACK signal, retransmitting the data packet; The maximum number of retransmissions is N.

6. The wireless data transmission method according to claim 1, characterized in that: When sending the feedback signal in S300, the slave device sends the feedback signal during the idle time of the time slot after the external device finishes sending.

7. The wireless data transmission method according to claim 1, characterized in that: In S300, when the slave device receives the header of the data packet incorrectly, it continues to parse the payload length field in the data packet, and sends a feedback signal after the parsing is completed.

8. The wireless data transmission method according to claim 1, characterized in that: In S300, when the slave device erroneously receives the header of the data packet, the slave device detects radio frequency energy in the medium, and sends a feedback signal when the radio frequency energy decreases.

9. A wireless data transmission system, comprising a master device, a slave device and an external device, characterized in that: The wireless data transmission method described in any one of claims 1 to 8 is used for data transmission.