Method for retransmitting audio data packet, audio receiver, storage medium and system

By saving the unsuccessfully received audio packets in the first audio receiver of the TWS headset and decoding with the redundant information of the second audio receiver, the problem of unsuccessfully received packets is solved, and efficient packet recovery and delay reduction is achieved.

CN115549863BActive Publication Date: 2025-03-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110726264.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2025-03-07
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

In wireless communication of TWS headsets, if the first audio receiver fails to successfully receive the audio packet, the prior art will find it difficult to effectively retransmit and restore the packet, resulting in data loss and increased delay.

Method used

By saving the unsuccessfully received audio packets in the first audio receiver and sending a NACK message to the second audio receiver, the redundant information is received and decoded to restore the original audio packet.

Benefits of technology

Reduces the amount of retransmitted data, reduces the acquisition delay of audio packets, and improves the recovery efficiency of data packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115549863B_ABST
    Figure CN115549863B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method for retransmitting an audio data packet, an audio receiver, a storage medium and a system, and belongs to the field of communication technology. The method is a method for retransmitting an audio data packet in a first audio receiver, which can receive a first audio data packet from a sound source, save the first audio data in the received data packet when the decoding of the first audio data packet fails, send a first NACK message to the second audio receiver, the message is used to indicate that the first audio receiver has not successfully received the first audio data packet, and then receive a second audio data packet sent by the second audio receiver, the data packet includes first redundant information, and decode the first redundant information and the first audio data to restore the first audio data packet. Since the present solution realizes error correction of the first data by transmitting redundant information, the amount of retransmitted data is reduced, and the delay of SNK‑1 in obtaining correct information is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a method for retransmitting an audio data packet, an audio receiver, a storage medium, and a system. Background Art

[0002] TWS (True Wireless Stereo) earphones are wireless earphones based on Bluetooth technology, including a pair of wireless earphones, each of which includes an audio receiver SNK (audio sink).

[0003] In the related art, an audio source SRC (audio source) sends audio data to one of the first audio receiver SNK-1 and the second audio receiver SNK-2, and the other SNK listens to the channel to obtain an audio data packet. When any one of the two SNKs fails to correctly decode the audio data packet, the SRC or the other SNK that has completely received the audio data packet will retransmit the audio data packet to the SNK that failed to correctly decode the audio data packet in a subsequent time slot, so that the SNK that failed to correctly decode the audio data packet can correctly decode the audio data packet. Summary of the invention

[0004] The embodiment of the present application provides a method for retransmitting an audio data packet, an audio receiver, a storage medium and a system. The technical solution is as follows:

[0005] According to a first aspect of the present application, a method for retransmitting an audio data packet in a first audio receiver is provided, wherein the first audio receiver is configured to communicate with an audio source and communicate with a second audio receiver, the method comprising:

[0006] receiving a first audio data packet from the audio source, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively;

[0007] In response to a failure in decoding the first audio data packet, saving the first audio data in the received first audio data packet;

[0008] Sending a first NACK message to the second audio receiver, where the first NACK message is used to indicate that the first audio receiver has not successfully received the first audio data packet;

[0009] receiving a second audio data packet sent by the second audio receiver, wherein the second audio data packet includes first redundant information (RI); and

[0010] The first redundant information and the first audio data are decoded to restore the first audio data packet.

[0011] According to a second aspect of the present application, a method for retransmitting an audio data packet in a second audio receiver is provided, wherein the second audio receiver is configured to communicate with an audio source and communicate with a first audio receiver, the method comprising:

[0012] receiving a first audio data packet from the audio source, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively;

[0013] receiving a first NACK message from the first audio receiver, the first NACK message being used to indicate that the first audio receiver has not successfully received the first audio data packet;

[0014] Determine a coding rule based on the first NACK message;

[0015] Encode the first audio data packet using the encoding rule to obtain first redundant information; and

[0016] A second audio data packet is sent to the first audio receiver, wherein the second audio data packet includes first redundant information.

[0017] According to a third aspect of the present application, a method for retransmitting an audio data packet in a first audio receiver is provided, wherein the first audio receiver is configured to communicate with an audio source and communicate with a second audio receiver, the method comprising:

[0018] receiving a first audio data packet from the audio source, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively;

[0019] In response to a failure in decoding the first audio data packet, when no notification indicating that the second audio receiver has failed to decode the first audio data packet is received, sending a first NACK message to the second audio receiver, wherein the first NACK message is used to indicate that the first audio receiver has not successfully received the first audio data packet;

[0020] The first audio data packet retransmitted by the sound source is received, wherein the retransmitted first audio data packet is sent by the sound source under a preset condition, and the preset condition is that both the first audio receiver and the second audio receiver fail to successfully receive the first audio data packet.

[0021] According to a fourth aspect of the present application, a method for retransmitting an audio data packet in a second audio receiver is provided, wherein the second audio receiver is configured to communicate with an audio source and communicate with a first audio receiver, the method comprising:

[0022] receiving a first audio data packet from the audio source in a first time slot, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively;

[0023] Decoding the first audio data packet;

[0024] In a case where the sound source is configured to confirm that neither the first audio receiver nor the second audio receiver has received the first audio data packet when no ACK message is received in the second time slot, in response to a decoding failure of the first audio data packet and a first NACK message sent by the first audio receiver, no feedback message is sent to the sound source in the second time slot, the feedback message including the ACK message and the second NACK message, the second time slot being the next time slot relative to the first time slot, the second NACK message being used to indicate that neither the first audio receiver nor the second audio receiver has received the first audio data packet;

[0025] or,

[0026] In a case where the sound source is set to confirm that neither the first audio receiver nor the second audio receiver has received the first audio data packet when a second NACK message is received in a second time slot, a second NACK message is sent to the sound source in response to a decoding failure of the first audio data packet and a first NACK message sent by the first audio receiver being received, the second time slot being the next time slot relative to the first time slot, and the second NACK message being used to indicate that neither the first audio receiver nor the second audio receiver has received the first audio data packet.

[0027] According to a fifth aspect of the present application, a method for retransmitting an audio data packet in a first audio receiver is provided, wherein the first audio receiver is configured to communicate with an audio source and communicate with a second audio receiver, the method comprising:

[0028] receiving a first audio data packet from the audio source, wherein the first audio data packet is acquired by the first audio receiver and the second audio receiver respectively;

[0029] In response to the decoding of the first audio data packet failing and the received first audio data cannot be used to restore the first audio data packet, discarding the received first audio data;

[0030] sending a loss notification to the second audio receiver, wherein the loss notification is used to indicate that the first audio receiver completely lost the first audio data packet;

[0031] Receive the first audio data packet retransmitted by the second audio receiver.

[0032] According to a sixth aspect of the present application, a method for retransmitting an audio data packet in a second audio receiver is provided, wherein the second audio receiver is configured to communicate with an audio source and communicate with a first audio receiver, the method comprising:

[0033] receiving a first audio data packet from the audio source, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively;

[0034] In response to successful decoding of the first audio data packet and receiving a loss notification sent by the first audio receiver, sending a second NACK message to the audio source, wherein the loss notification is used to indicate that the first audio receiver completely lost the first audio data packet, and the second NACK message is used to indicate that neither the first audio receiver nor the second audio receiver received the first audio data packet, so that the audio source retransmits the first audio data packet to the first audio receiver; or;

[0035] In response to successful decoding of the first audio data packet and receiving a loss notification sent by the first audio receiver, an ACK message is sent to the sound source, and the complete first audio data packet is sent to the first audio receiver, wherein the loss notification is used to indicate that the first audio receiver has completely lost the first audio data packet, and the ACK message is used to indicate that both the first audio receiver and the second audio receiver have received the first audio data packet.

[0036] According to another aspect of the present application, a first audio receiver is provided, comprising a processor, a memory connected to the processor, and program instructions stored on the memory, wherein the processor, when executing the program instructions, implements a method for retransmitting audio data packets in the first audio receiver as provided in any aspect of the present application.

[0037] According to another aspect of the present application, a second audio receiver is provided, which includes a processor, a memory connected to the processor, and program instructions stored on the memory. When the processor executes the program instructions, it implements the method for retransmitting audio data packets in the second audio receiver provided in any aspect of the present application.

[0038] According to another aspect of the present application, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement a method for retransmitting an audio data packet in a first audio receiver as provided in any aspect of the present application.

[0039] According to another aspect of the present application, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement a method for retransmitting an audio data packet in a second audio receiver as provided in any aspect of the present application.

[0040] According to another aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned method of retransmitting an audio data packet in a first audio receiver. The computer device is the first audio receiver.

[0041] According to another aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned method of retransmitting an audio data packet in a second audio receiver. The computer device is a second audio receiver.

[0042] According to a wireless audio system provided by the present application, the system includes an audio source, a method for retransmitting an audio data packet in a first audio receiver as provided in the first aspect, and a method for retransmitting an audio data packet in a second audio receiver as provided in the second aspect.

[0043] According to a wireless audio system provided by the present application, the system includes an audio source, a method for retransmitting an audio data packet in a first audio receiver as provided in the third aspect, and a method for retransmitting an audio data packet in a second audio receiver as provided in the fourth aspect.

[0044] According to a wireless audio system provided by the present application, the system includes an audio source, a method for retransmitting an audio data packet in a first audio receiver as provided in the fifth aspect, and a method for retransmitting an audio data packet in a second audio receiver as provided in the sixth aspect.

[0045] The method for retransmitting an audio data packet in a first audio receiver provided by the present application can receive a first audio data packet from an audio source, save the first audio data in the received data packet when the decoding of the first audio data packet fails, send a first NACK message to a second audio receiver, the message is used to indicate that the first audio receiver has not successfully received the first audio data packet, and then receive a second audio data packet sent by the second audio receiver, the data packet includes first redundant information, and decode the first redundant information and the first audio data to restore the first audio data packet. Since the present solution realizes error correction of the first data by transmitting redundant information, the amount of retransmitted data is reduced, and the delay of SNK-1 in obtaining correct information is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly introduce the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 This is a schematic diagram of an application scenario of a TWS headset and a sound source SRC provided in an embodiment of the present application;

[0048] Figure 2 is based on Figure 1 A schematic diagram of the structure of a TWS headset provided by the illustrated embodiment;

[0049] Figure 3 is a flowchart of a method for retransmitting an audio data packet in a first audio receiver provided by an exemplary embodiment of the present application;

[0050] Figure 4 is a flowchart of a method for retransmitting an audio data packet in a second audio receiver provided by an exemplary embodiment of the present application;

[0051] Figure 5 is a flowchart of a method for retransmitting an audio data packet in a wireless audio system provided by an embodiment of the present application;

[0052] Figure 6 is a schematic diagram of another audio information packet retransmission method shown in an embodiment of the present application;

[0053] Figure 7 is based on Figure 6 A schematic diagram of restoring a first audio data packet provided by the illustrated embodiment;

[0054] Figure 8is a schematic diagram of another audio information packet retransmission method shown in an embodiment of the present application;

[0055] Fig. 9 is a schematic diagram of another method for retransmitting an audio data packet shown in an embodiment of the present application;

[0056] Fig.10 is a flowchart of a method for retransmitting an audio data packet in a first audio receiver provided by an embodiment of the present application;

[0057] Fig.11 is a flow chart of a method for retransmitting an audio data packet in a second audio receiver provided by an embodiment of the present application;

[0058] Fig.12 is a schematic diagram of a method for retransmitting an audio data packet shown in an embodiment of the present application;

[0059] Fig.13 It is a schematic diagram of a design scheme of a coding rule provided in an embodiment of the present application;

[0060] Fig.14 is a flowchart of a method for retransmitting an audio data packet in a first audio receiver provided by an embodiment of the present application;

[0061] Fig.15 is a flow chart of a method for retransmitting an audio data packet in a second audio receiver provided by an embodiment of the present application;

[0062] Fig.16 is a schematic diagram of another audio information packet retransmission method shown in an embodiment of the present application;

[0063] Fig.17 is a schematic diagram of another audio information packet retransmission method shown in an embodiment of the present application;

[0064] Fig.18 It is a structural block diagram of an audio receiver provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0065] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0066] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0067] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0068] In the development of headphone technology, TWS technology has been widely used because it can eliminate the need for headphone cables and is easy to use. Figure 1 , Figure 1 Schematic diagram of an application scenario of a TWS headset and a sound source SRC provided in an embodiment of the present application. Figure 1 In the embodiment, the user wears the first earphone 110 in the TWS earphone on the left ear, and the user wears the second earphone 120 in the TWS earphone on the right ear. The first earphone 110 is connected to the sound source 130 via the first piconet (piconet-1), the second earphone 120 is connected to the sound source 130 via the second piconet (piconet-2), and the first earphone 110 is connected to the second earphone 120 via the third piconet (piconet-3). Optionally, the sound source 130 can be a mobile terminal, such as a mobile phone, a tablet computer, an MP4 player terminal, an MP5 player terminal, a learning machine, an electronic dictionary, and a smart watch.

[0069] Optionally, piconet-1 and piconet-2 may be the same wireless network. That is, they have the same network configuration parameters and use the same channel. When piconet-1 and piconet-2 use the same channel, when the SRC sends audio information to the first earphone 110, the second earphone 120 can obtain the same audio information by detecting the same signal, thereby achieving the effect that the SRC sends the audio information to the first earphone 110 and the second earphone 120 at the same time.

[0070] Optionally, the piconet-3 between the first headset 110 and the second headset 120 may be a network with a different configuration from the piconet-1. In a possible manner, the piconet-3 is a private wireless link (Primary Wireless Link), wherein the piconet-3 has a two-way communication capability.

[0071] Schematically, please refer to Figure 2 , Figure 2 is based on Figure 1 A schematic diagram of the composition structure of a TWS headset provided in the illustrated embodiment. In the first headset 110, a first audio receiver 111 (SNK-1) and a speaker are included. In other words, the first audio receiver 111 and the speaker are coupled to form the first headset 110. In a possible implementation, the first headset 110 may also include components such as a battery, a microphone array, a processor, a proximity light sensor, a pressure sensor, and a bone sensor. Similarly, the second headset 120 includes a second audio receiver 121 (SNK-2) and a speaker.

[0072] Illustratively, in an embodiment of the present application, after SNK-1 and SNK-2 simultaneously receive the first audio data packet. When SNK-1 fails to successfully receive the first audio data packet, SNK-1 does not discard the first audio information in the received first audio data packet, but saves it. At the same time, SNK-1 sends a first NACK message to SNK-2, and the first NACK message is used to indicate that SNK-1 has failed to successfully receive the first audio data packet. When SNK-2 receives the first NACK message from SNK-1, it selects a target coding rule to encode the first audio data packet received by SNK-2 according to the first NACK message to obtain additional first redundant information. SNK-2 encapsulates the first redundant information into a second audio data packet and sends it to SNK-1. SNK-1 decodes the first redundant information and the originally saved first audio data packet to restore the first audio data packet. SNK-1 can determine the duration of the time slot in which the second audio data packet is sent through the information interacted with SNK-2 to ensure that there is enough time to complete the interaction of the second audio data packet.

[0073] Please refer to Figure 3 , Figure 3 1 is a flowchart of a method for retransmitting an audio data packet in a first audio receiver provided by an exemplary embodiment of the present application. The first audio receiver is configured to communicate with an audio source and communicate with a second audio receiver. Figure 3 In the method of retransmitting an audio data packet, the method comprises:

[0074] Step 310: receiving a first audio data packet from an audio source, and the first audio data packet is acquired by a first audio receiver and a second audio receiver respectively.

[0075] In an embodiment of the present application, SNK-1 can receive the first audio data packet through a communication link between the audio source. In one possible manner, SNK-1 directly receives the first audio data packet through a communication link established between the audio source and SNK-2. In another possible manner, SNK-1 receives the first audio data packet by monitoring the communication link between the audio source and SNK-2.

[0076] Optionally, in an embodiment of the present application, SNK-1 can receive a first audio data packet from a sound source in a first time slot.

[0077] At the beginning of the first time slot, SRC sends the first audio data packet to SNK-1 or SNK-2. The other SNK obtains the first audio data packet by interception. That is, SRC may have a communication link with only one of SNK-1 and SNK-2. The other SNK obtains the first audio data packet by detecting the communication link.

[0078] For example, there is a communication link between SRC and SNK-1, and the communication link may be a piconet. SRC transmits a first audio data packet to SNK-1 via the communication link in the first time slot. Correspondingly, SNK-2 detects the communication link in the first time slot, thereby acquiring the first audio data packet.

[0079] For another example, there is a transmission channel between SRC and SNK-2, and the transmission channel may also be a piconet. At the beginning of the current time slot, SRC transmits the first audio data packet to SNK-2 through the transmission channel. Correspondingly, at the beginning of the current time slot, SNK-1 detects the transmission channel to obtain the first audio data packet.

[0080] Step 320: In response to the decoding failure of the first audio data packet, save the first data in the received first audio data packet.

[0081] In this example, after SNK-1 receives the first audio data packet, it decodes the first audio data packet. It should be noted that, in the process of SNK-1 decoding the first audio data packet, SNK-1 can verify the first audio data packet through a check code to verify whether the first audio data packet is completely and correctly received. The check code can be a CRC (Cyclic Redundancy Check) code or other check codes with a check function.

[0082] When SNK-1 fails to decode the first audio data packet, the first audio data packet will save the first data in the received first audio data packet. It should be noted that the first data can be data in the partially correct first audio data packet, or can be content including both partially correct data and partially erroneous data, which is not limited in the embodiments of the present application.

[0083] Step 330: Send a first NACK message to the second audio receiver, where the first NACK message is used to indicate that the first audio receiver has not successfully received the first audio data packet.

[0084] In an embodiment of the present application, SNK-1 can send a first NACK message to SNK-2 in a first time slot. The first NACK message is used to indicate that SNK-1 did not successfully receive the first audio data packet. Optionally, the timing of SNK-1 sending the first NACK message to SNK-2. In one possible manner, SNK-1 sends the first NACK message to SNK-2 immediately after generating the first NACK message. In another possible manner, after SNK-1 generates the first NACK message, after a specified number of time slices have passed, SNK-2 sends the first NACK message. In yet another possible manner, after SNK-1 generates the first NACK message, after a random number of time slices have passed, SNK-2 sends the first NACK message.

[0085] Step 340: Receive a second audio data packet sent by a second audio receiver, where the second audio data packet includes first redundant information.

[0086] In this example, SNK-1 can receive the second audio data packet sent by SNK-2. The second audio data packet includes the first redundant information. It should be noted that after sending the first NACK message, SNK-1 can continue to detect the communication link between SNK-1 and SNK-2, and receive the redundant information when the second audio data packet sent by SNK-2 appears in the communication link.

[0087] Optionally, the first time slot is a time slot in which the sound source is in a transmitting state relative to the second audio receiver, and the second time slot is a time slot in which the sound source is in a receiving state relative to the second audio receiver.

[0088] In a possible implementation, the first time slot is a time slot in which the SRC sends the first audio data packet to the SNK-2 and the SRC is in the Tx state. The second time slot is a time slot in which the SNK-2 is in the Rx state relative to the data of the SRC.

[0089] Step 350: decode the first redundant information and the first audio data to restore the first audio data packet.

[0090] In this example, a target encoding rule may be pre-set in SNK-1 to decode the first redundant information and the first audio data to restore the first audio data packet. In one processing method, multiple encoding rules may be pre-set in SNK-1, and a target encoding rule may be selected from the multiple encoding rules for use in actual use. When the first audio data packet is restored, the first audio receiver can successfully obtain the first audio data packet.

[0091] In a possible decoding method, SNK-1 may first merge the first redundant information and the first audio data to obtain merged data, and then decode the merged data according to the target coding rule to restore the first audio data packet.

[0092] In summary, the present embodiment provides a method for retransmitting an audio information packet in a first audio receiver SNK-1, which can save the received first audio data packet when SNK-1 fails to successfully decode the first audio data packet, and then obtain the second audio data packet from SNK-2, and decode the first redundant information and the first audio data packet in the second audio data packet together, so as to obtain a complete first audio data packet, so that SNK-1 does not need to obtain the complete first audio data packet from SRC, nor does it need to obtain the complete first audio data packet from SNK-2, so SNK-1 only needs to obtain a small amount of data to obtain the complete first audio data packet. Since the present solution restores the first audio data packet by transmitting the first redundant information, the amount of retransmitted data is reduced, and the delay of SNK-1 obtaining the first audio data after failing to obtain the first audio data for the first time is reduced.

[0093] In a system composed of SNK-1, SNK-2 and SRC, relative to the solution implemented on the SNK-1 side, the present application also provides a method for retransmitting audio data packets in SNK-2, please refer to the following embodiments.

[0094] exist Figure 4 middle, Figure 4 1 is a flowchart of a method for retransmitting an audio data packet in a second audio receiver provided by an exemplary embodiment of the present application. The second audio receiver is configured to communicate with the audio source and communicate with the first audio receiver. Figure 4 In the method of retransmitting an audio data packet, the method comprises:

[0095] Step 410: receiving a first audio data packet from an audio source, and the first audio data packet is acquired by a first audio receiver and a second audio receiver respectively.

[0096] In this example, SNK-2 can receive the first audio data packet from SRC, wherein the time slot in which SNK-2 receives the first audio data packet is the same as the time slot in which SNK-1 receives the first audio data packet.

[0097] Step 420: Receive a first NACK message from the first audio receiver, where the first NACK message is used to indicate that the first audio receiver has not successfully received the first audio data packet.

[0098] Among them, SNK-2 can receive a first NACK message from SNK-1. The first NACK message is used to indicate that SNK-1 has not successfully received the first audio data packet. In a possible manner, the first NACK message can be represented by a data bit. Optionally, when the data bit is 1, it indicates that SNK-1 has not successfully received the first audio data packet. Alternatively, when the data bit is 0, it indicates that SNK-1 has not successfully received the first audio data packet.

[0099] Step 430: Determine a coding rule based on the first NACK message.

[0100] In this example, multiple coding rules may be pre-stored in SNK-2. SNK-2 can determine a coding rule from the multiple coding rules based on the first NACK message. It should be noted that different first NACK messages can determine different coding rules.

[0101] Step 440: Encode the first audio data packet using an encoding rule to obtain first redundant information.

[0102] In this example, after SNK-2 determines the encoding rule, it can use the encoding rule to encode the first audio data packet. For example, the data volume of the first audio data packet is 50 bytes, and after encoding according to an encoding rule, the first redundant information of size 10 bytes is obtained.

[0103] It should be noted that the data volume of the first redundant information in the present application is smaller than that of the first audio data packet, so as to realize SNK-1 fast restoration of the first audio data packet.

[0104] Optionally, in one possible manner, the first redundant information may include at least a portion of original data, wherein the original data is original data in the first audio data packet. In another possible manner, the first redundant information may not include the original data, but only include all new data encoded according to the encoding rule.

[0105] Step 450: Send a second audio data packet to the first audio receiver, where the second audio data packet includes the first redundant information.

[0106] In this example, when SNK-2 generates the first redundant information, it can place the first redundant information in the second audio data packet and send the second audio data packet to SNK-1 so that SNK-1 can restore the first audio data packet based on the first redundant information and the saved first audio data.

[0107] In summary, the method for retransmitting an audio data packet in SNK-2 provided in the present application can enable SNK-2 to learn that SNK-1 has not successfully received the first audio data packet through the first NACK message sent by SNK-1 when the first audio data packet is successfully received. In this case, SNK-2 determines the corresponding encoding rule according to the first NACK message, and then encodes the first audio data packet using the encoding rule to obtain the first redundant information. After obtaining the first redundant information, the second audio data packet is sent to SNK-1. Since SNK-2 can obtain the first NACK message sent by SNK-1 when SNK-1 does not correctly receive the first audio data packet, and then determine the corresponding encoding rule, under the effect of the encoding rule, the first redundant information is obtained according to the first audio data packet, and the second audio data packet containing the first redundant information is sent to SNK-1, so that SNK-1 can obtain the first audio data packet according to the first redundant information and the first audio data that has been received.

[0108] In an embodiment of the present application, SNK-1 can also restore the first audio data packet by retransmitting the first redundant information through SNK-2 after failing to obtain the first audio data packet for the first time in another way, so as to avoid the system from completely retransmitting the first audio data packet to SNK-1, as described below.

[0109] Please refer to Figure 5 , Figure 5 The present invention is a flowchart of a method for retransmitting an audio data packet in a wireless audio system provided by an embodiment of the present application. The method for retransmitting an audio data packet is completed by a sound source (SRC), a first audio receiver (SNK-1) and a second audio receiver (SNK-2) in the wireless audio system. The method for retransmitting an audio data packet includes the following steps.

[0110] Step 501: In a first time slot, a sound source sends a first audio data packet.

[0111] Correspondingly, SNK-1 and SNK-2 can respectively obtain the first audio data packet in the first time slot.

[0112] In a possible manner, SNK-1 receives the first audio data packet from SRC in the first time slot, and SNK-2 monitors the first audio data packet sent by SRC to SNK-1 in the first time slot, so that SNK-2 can also obtain the first audio data packet in the first time slot.

[0113] In another possible manner, SNK-2 receives the first audio data packet from SRC in the first time slot, and SNK-1 monitors the first audio data packet sent by SRC to SNK-2 in the first time slot, thereby also being able to obtain the first audio data packet in the first time slot.

[0114] Step 502: In response to a decoding failure of the first audio data packet, the first audio receiver stores the first audio data in the received first audio data packet.

[0115] On the SNK-1 side, decoding of the first audio data packet may succeed or fail. In the case where SNK-1 fails to decode the first audio data packet, SNK-1 saves the received data. Optionally, SNK-1 may store the data as temporary data in a memory, or may store the data as persistent data in an external storage chip.

[0116] Step 503: In a first time slot, the first audio receiver sends a first NACK message to the second audio receiver.

[0117] The first NACK message is used to indicate that the first audio receiver has not successfully received the first audio data packet. In the present application, SNK-1 is designed to send the first NACK message to SNK-2, so that SNK-2 can know that SNK-1 has not successfully received the first audio data packet.

[0118] It should be noted that SNK-1 can determine the first sending time according to a random backoff mechanism or a fixed time slice, and send the first NACK message to SNK-2 at the first sending time. The first sending time belongs to the first time slot. In this implementation, the random backoff mechanism is that when SNK-1 needs to send the first NACK message, it generates a random number and determines the moment after the random number of time slices as the first sending time. The fixed time slice method is that when SNK-1 needs to send the first NACK message, it determines the moment after a fixed number of time slices as the first sending time.

[0119] In an embodiment of the present application, the first NACK message may include multiple information. In one possible manner, the first NACK message includes reception degree information of the first audio data packet. The reception degree information can be used by SNK-2 to determine a coding rule, and SNK-2 encodes the first audio data packet according to the coding rule to obtain the first redundant information.

[0120] In another possible manner, the first NACK message includes the accuracy information of the first audio data packet. SNK-2 receives the accuracy information from SNK-1, and the accuracy information is used to indicate the probability that the first audio data packet is correctly received; SNK-2 determines the encoding rule based on the accuracy information. At the same time, the accuracy information can be used by SNK-2 to determine the encoding rule, and SNK-2 encodes the first audio data packet according to the encoding rule to obtain the first redundant information.

[0121] As a practical implementation method, the accuracy information may include the signal-to-noise ratio SNR of the channel where the first audio data packet is located. Alternatively, the accuracy information may also include the historical bit error rate (Bit Error Rate, BER) of the channel where the first audio data packet is located. Alternatively, the accuracy information may also include both the signal-to-noise ratio SNR and the historical bit error rate BER of the channel where the first audio data packet is located.

[0122] Accordingly, in the first time slot, SNK-2 receives the first audio data packet from SRC.

[0123] Accordingly, SNK-2 receives the first NACK message from SNK-1 in the first time slot, and determines the encoding rule based on the first NACK message.

[0124] In the embodiment of the present application, SNK-2 may determine a corresponding coding rule according to different contents included in the first NACK message.

[0125] Step 504: The second audio receiver encodes the first audio data packet using an encoding rule to obtain first redundant information.

[0126] In one possible manner, the first NACK message includes the reception degree information of the first audio data packet. In this case, SNK-2 receives the reception degree information from SNK-1 and determines the coding rule based on the reception degree information. Optionally, the reception degree is used to measure the effectiveness of the available information received from the first data. Optionally, the coding rule can be a Hamming code.

[0127] The reception degree information is used to indicate the percentage of the data volume of the first audio data to the total data volume of the first audio data packet. For example, the reception degree information can be a value between 0 and 1 such as 20%, 30% or 60%, and the embodiment of the present application does not limit its specific value.

[0128] It should be noted that, in the embodiment of the present application, different reception level information may correspond to different encoding rules. For example, the correspondence between reception level information and encoding rules shown in Table 1 may be referred to.

[0129] Table 1

[0130] (0,0.2] (0.2,0.4] (0.4,0.6] (0.6,0.8] (0.8,1) Coding Rules A Coding rule B Coding Rules C Coding rules D Encoding Rules E

[0131] If the present application has five coding rules designed according to the scenario provided in Table 1, SNK-2 can first determine the interval where the reception level information is located, and then determine the coding rule corresponding to the interval. For example, if the reception level information is 0.5, SNK-2 determines that the interval where the reception level information is located is (0.4, 0.6]. Then, SNK-2 determines that the coding rule corresponding to (0.4, 0.6] is coding rule C.

[0132] In an optional implementation, if the first reception level information is greater than the second reception level information, and the encoding rule corresponding to the first reception level information is different from the encoding rule corresponding to the second reception level information, then the data amount of the first redundant information obtained by SNK-2 by encoding the first audio data packet using the encoding rule corresponding to the first reception level information is smaller than the data amount of the first redundant information obtained by SNK-2 by encoding the first audio data packet using the encoding rule corresponding to the second reception level information.

[0133] In another possible manner, the first NACK message includes information about the accuracy of the first audio data packet. The accuracy information is used to indicate the probability that the first audio data packet is correctly received. Schematically, the accuracy information can be a value between 0 and 1 such as 30%, 40% or 60%, and the embodiment of the present application does not limit its specific value.

[0134] Step 505: In a second time slot, the second audio receiver sends a second audio data packet to the first audio receiver.

[0135] In the embodiment of the present application, SNK-2 sends a second audio data packet to SNK-1 in a second time slot, wherein the second time slot is a next time slot relative to the first time slot.

[0136] Correspondingly, SNK-1 receives the second audio data packet sent by SNK-2 in the second time slot, wherein the second time slot is the next time slot relative to the first time slot.

[0137] In the embodiment of the present application, since SNK-2 successfully receives the first audio data packet, the second audio data packet may also include an ACK message. The SRC may obtain the second audio data packet by monitoring, thereby obtaining the ACK message. The ACK message is used to indicate to the sound source that both the first audio receiver and the second audio receiver have successfully received the first audio data packet.

[0138] In another possible manner, the ACK message and the first redundant information in the second audio data packet may belong to two data packets. The second audio data packet containing the first redundant information is sent by SNK-2 to SNK-1. The data packet containing the ACK message is sent by SNK-2 to SRC. That is, SNK-2 sends the ACK message to SRC. The ACK message is used to indicate to the audio source that both the first audio receiver and the second audio receiver have successfully received the first audio data packet.

[0139] In another possible implementation, the second audio data packet further includes indication information, wherein the indication information is used to indicate the duration of the second time slot, so that the second time slot is suitable for exchanging the first NACK message and the second audio data packet between the first audio receiver and the second audio receiver.

[0140] Step 506: Determine a corresponding decoding rule based on the encoding rule, and decode the first redundant information and the first audio data packet using the decoding rule to restore the first audio data packet.

[0141] In this example, SNK-1 can determine the corresponding decoding rules based on the encoding rules. It should be noted that the encoding rules and decoding rules appear in pairs during design. For example, if SNK-2 stores 5 sets of encoding rules, then SNK-1 can store 5 corresponding sets of encoding rules.

[0142] In another possible manner, the encoding rules and the decoding rules are designed as a set of rules. SNK-1 and SNK-2 are designed to share encoding rules. If SNK-1 stores n sets of encoding rules, then SNK-2 also stores the n sets of encoding rules. Where n is a positive integer greater than or equal to 1.

[0143] In this example, if SNK-1 successfully restores the first audio data packet, the present application process is terminated. If SNK-1 still fails to restore the first audio data packet, SNK-1 continues to perform subsequent steps.

[0144] Step 507: In response to a failure in decoding the first redundant information and the first audio data, the first audio receiver sends a second reception failure notification to the second audio receiver.

[0145] In this example, since the first redundant information is data with a smaller data volume obtained after encoding the first audio data packet, when SNK-1 decodes the first redundant information and the first audio data, there is a certain probability that the decoding is successful, and there is also a certain probability that the decoding fails. When SNK-1 fails to decode, SNK-1 will send a second reception failure notification to SNK-2. The second reception failure notification is used to indicate that SNK-1 has failed to decode the first redundant information and the first audio data.

[0146] Correspondingly, SNK-2 receives the second reception failure notification sent by SNK-1, wherein the second reception failure notification is used to indicate that the first audio receiver fails to decode the first redundant information and the first audio data.

[0147] In a possible manner, SNK-1 determines the second sending time according to a random backoff mechanism or a fixed time slice. At the second sending time, SNK-1 sends a second reception failure notification to the second audio receiver.

[0148] The process of determining the second sending time according to the random backoff mechanism or the fixed time slice can refer to the execution process of step 503, which will not be repeated here.

[0149] Step 508: The second audio receiver sends a third audio data packet to the first audio receiver, where the third audio data packet includes the second redundant information.

[0150] The data volume of the second redundant information is greater than the data volume of the first redundant information, so that the first audio receiver decodes the second redundant information and the first audio data to restore the first audio data packet.

[0151] In this example, since the first redundant information and the first audio data are insufficient to restore the first audio data packet, SNK-2 will send the second redundant information with a larger data volume again. In this example, SNK-2 encapsulates the second redundant information in the third audio data packet. SNK-2 sends the third audio data packet to SNK-1.

[0152] Correspondingly, SNK-1 receives a third audio data packet sent by SNK-2, the third audio data packet includes second redundant information, and the data volume of the second redundant information is larger than the data volume of the first redundant information.

[0153] Step 509: The first audio receiver decodes the second redundant information and the first audio data to restore the first audio data packet.

[0154] In summary, the method provided in the embodiment of the present application can save the received first audio data packet when SNK-1 fails to successfully decode the first audio data packet, and then obtain the second audio data packet from SNK-2, and decode the first redundant information and the first audio data packet in the second audio data packet together, so as to obtain a complete first audio data packet, so that SNK-1 does not need to obtain the complete first audio data packet from SRC, nor does it need to obtain the complete first audio data packet from SNK-2, so SNK-1 only needs to obtain a small amount of data to obtain the complete first audio data packet. Since the present solution restores the first audio data packet by transmitting the first redundant information, the amount of retransmitted data is reduced, and the delay of SNK-1 in obtaining the first audio data after failing to obtain the first audio data for the first time is reduced. For SNK-2, when SNK-2 successfully receives the first audio data packet, it can be informed through the first NACK message sent by SNK-1 that SNK-1 has not successfully received the first audio data packet. In this case, SNK-2 determines the corresponding encoding rule according to the first NACK message, and then uses the encoding rule to encode the first audio data packet to obtain the first redundant information. After obtaining the first redundant information, the second audio data packet is sent to SNK-1. Since SNK-2 can obtain the first NACK message sent by SNK-1 when SNK-1 does not correctly receive the first audio data packet, and then determine the corresponding encoding rule, under the effect of the encoding rule, the first redundant information is obtained according to the first audio data packet, and the second audio data packet containing the first redundant information is sent to SNK-1, so that SNK-1 can obtain the first audio data packet according to the first redundant information and the first audio data that has been received.

[0155] Based on the method shown in the above embodiment, the embodiment of the present application can also illustrate the implementation scenario of the present application through a variety of cases. Figures 3 to 5 The solution provided by the embodiment shown in the figure, this application provides the following Figure 6 , Figure 8 and Fig. 9 The landing case shown.

[0156] See also Figure 6 , Figure 6 Schematic diagram of another audio information packet retransmission method shown in an embodiment of the present application. In this example, the retransmission method is divided into 7 processing stages.

[0157] In phase 610, in time slot N, the sound source SRC enters the Tx state after the start of time slot N, and simultaneously sends a first audio data packet (the first audio data packet can be represented by Data 1) to SNK-2 and SNK-1.

[0158] Correspondingly, the sound source SRC enters the Tx state (transmitting state) in time slot N, SNK-2 enters the Rx state (receiving state) and successfully receives the first audio data packet. SNK-1 also enters the Rx state but fails to receive and decode the first audio data packet.

[0159] In stage 620, when the sound source SRC is in the Tx state, SNK-1 is in the Rx state, but fails to decode the first audio data packet during the receiving process. After exiting the Tx state, SNK-1 saves the first audio data in the received first audio data packet. Subsequently, SNK-1 enters the Tx state.

[0160] In stage 630, SNK-1 is in the Tx state and attempts to send a retransmission request to SNK-2.

[0161] In stage 640, corresponding to the period when SNK-1 is in the Tx state, SNK-2 is in the Rx state and receives the first NACK message from SNK-1. According to the first NACK message, SNK-2 understands that SNK-1 has failed to decode the first audio data packet. Subsequently, SNK-2 determines the encoding rule according to the reception degree and / or correctness degree information in the retransmission request carried in the first NACK message, and then encodes the first audio data packet based on the encoding rule to obtain the first redundant information RI (Redundant Information).

[0162] In phase 650, in time slot N+1, SNK-2 enters the Tx state to send the second audio data packet. SNK-2 packs the ACK message sent to the sound source SRC and the first redundant information sent to SNK-1 into the second audio data packet and sends it to the sound source SRC.

[0163] In phase 660 , when SNK- 2 is in the Tx state, SNK- 1 is in the Rx state and acquires the second audio data packet by monitoring the communication link between SNK- 2 and SRC.

[0164] After SNK-1 obtains the first redundant information RI from the second audio data packet, SNK-1 determines a decoding rule based on the encoding rule. Based on the decoding rule, SNK-1 decodes the first redundant information RI and the saved first audio data packet to restore the first audio data packet. In this example, SNK-1 successfully restores the first audio data packet in stage 760.

[0165] Schematically, SNK-1 decodes the first redundant information RI and the first audio data based on the decoding rule. Figure 7 , Figure 7 is based on Figure 6 The embodiment shown provides a schematic diagram of restoring a first audio data packet. Figure 7 In the process, SNK-1 decodes the first audio data and the first redundant information RI based on the decoding rule to obtain the data packet to be confirmed. Subsequently, SNK-1 can verify the data packet to be confirmed, and after the verification passes, the data packet to be confirmed is determined to be the first audio data packet, and confirms that the first audio data packet has been successfully restored in this process. Figure 7 Parameter 1 in is the same parameter used by the encoding method corresponding to the decoding method when encoding the first audio data packet.

[0166] In stage 670, when SNK-2 is in the Tx state, the sound source SRC is in the Rx state. The sound source SRC receives the second audio data packet and obtains ACK information from the second audio data packet. The sound source SRC knows from the ACK information that both SNK-2 and SNK-1 have successfully received the first audio data packet, thus ending the transmission process of the first audio data packet and will not retransmit the first audio data packet.

[0167] See also Figure 8 , Figure 8 Schematic diagram of another audio information packet retransmission method according to an embodiment of the present application. In this example, the retransmission method is divided into 10 processing stages.

[0168] In phase 801, SRC enters the Tx state after the start of time slot N, and sends the first audio data packet (Data 1) to SNK-2 and SNK-1 after entering the Tx state.

[0169] During the period when SRC enters the Tx state, SNK-2 enters the Rx state and successfully receives the first audio data packet.

[0170] In stage 802, during the period when SRC enters the Tx state, SNK-1 enters the Rx state, but SNK-1 does not successfully decode the first audio data packet, but saves the first audio data in the first audio data packet that has been successfully received.

[0171] In stage 803, SNK-1 enters the Tx state and sends a first NACK message to SNK-2.

[0172] In stage 804, corresponding to the period when SNK-1 is in the Tx state in stage 803, SNK-2 is in the Rx state and receives the first NACK message. SNK-2 determines the coding rule according to the reception degree in the first NACK message, and then calculates the first redundant information RI based on the coding rule and the reception degree. Alternatively, SNK-2 directly determines the coding rule based on the reception degree, and then calculates the first redundant information RI based on the coding rule and the reception degree.

[0173] In stage 805, SNK-2 enters the Tx state in time slot N+1 and sends a second audio data packet to SRC. The second audio data packet includes the first redundant information and the ACK message. Optionally, the second data may also include indication information, which is used to set the duration of the time slot in which the second audio data packet is sent.

[0174] In this example, the time slot is the N+1th time slot. If the first time slot is the Nth time slot, then the second time slot is the N+1th time slot.

[0175] In stage 806, SNK-1 receives and obtains the first redundant information RI_1 in the second audio data packet sent by SNK-2, and decodes the first redundant information RI_1 and the stored first audio data.

[0176] In stage 807, SRC is in the Rx state corresponding to the period when SNK-2 is in the Tx state in stage 803. SRC receives the second audio data packet in the Rx state, obtains an ACK message from the second audio data packet, and learns based on the ACK message that both SNK-1 and SNK-2 have received the information of the first audio data packet, so that the first audio data packet will not be retransmitted to SNK-1 or SNK-2.

[0177] In stage 808, since SNK-1 still cannot restore the first audio data packet based on the first redundant information RI_1, SNK-1 enters the Tx state again during the remaining time of time slot N+1 and sends a second reception failure notification to SNK-2.

[0178] Corresponding to the period when SNK-1 is in the Tx state in stage 808, SNK-2 enters the Rx state, and SNK-2 receives the second reception failure notification sent by SNK-1.

[0179] In stage 809, SNK-2 recalculates the second redundant information RI_2 based on the second reception failure notification. SNK-2 enters the Tx state during the remaining time of time slot N+1 and sends the second redundant information RI_2 to SNK-1.

[0180] In stage 810, corresponding to the period when SNK-2 is in the Tx state in stage 809, SNK-1 enters the Rx state and receives the second redundant information RI_2 sent by SNK-2. SNK-1 decodes the second redundant information RI_2 and the stored first audio data. Alternatively, SNK-1 decodes the second redundant information RI_2, the first redundant information RI_1 and the first audio data.

[0181] It should be noted that if SNK-1 still fails to restore the first audio data packet after obtaining redundant information from SNK-2 twice, SNK-1 may directly request SNK-2 to retransmit the first audio data packet.

[0182] In another possible manner, SNK-1 and SNK-2 may also be designed to perform an interactive process of acquiring redundant information three, four or more times, where the number of times may be Q times, where Q is a positive integer greater than 1. When the number of times that redundant information is acquired between SNK-1 and SNK-2 exceeds Q times, SNK-1 will request SNK-2 to send a complete first audio data packet.

[0183] See also Fig. 9 , Fig. 9 FIG. 1 is a schematic diagram of another method for retransmitting an audio data packet according to an embodiment of the present application. In this example, the processing process is divided into 10 processing stages.

[0184] In phase 901, SRC enters the Tx state after the start of time slot N, and simultaneously sends the first audio data packet (Data 1) to SNK-2 and SNK-1.

[0185] In this example, N in time slot N is set according to actual needs. In one possible manner, time slot N may be the first time slot.

[0186] In stage 902, SNK-1 enters the Rx state, but SNK-1 fails to receive the first audio data packet.

[0187] In this example, during the period when SRC is in the Tx state in stage 901, SNK-1 enters the Rx state. However, in the Rx state, SNK-1 fails to decode the first audio data packet.

[0188] In stage 903, after exiting the Rx state, SNK-1 enters the Tx state and sends a first NACK message to SNK-2.

[0189] In stage 904, SNK-2 enters the Rx state, and SNK-2 calculates the first redundant information according to the first NACK message of SNK-1.

[0190] Corresponding to the period in which SNK-1 is in the Tx state in stage 903, SNK-2 enters the Rx state in stage 904.

[0191] After ending phase 904, SNK-2 enters the Tx state in time slot N+1 and sends an ACK message to SRC.

[0192] In stage 905, SRC is in the Rx state, and SRC receives the ACK message sent by SNK-2.

[0193] Since the ACK message indicates that both SNK-1 and SNK-2 have received the first audio data packet, SRC will not retransmit the first audio data packet to SNK-1 and SNK-2.

[0194] In stage 906, after sending the ACK, SNK-2 sends the first redundant information to SNK-1.

[0195] In stage 907, SNK-1 is in the Rx state, receives and parses the first redundant information of SNK-2, and decodes the first redundant information and the first audio data.

[0196] In stage 908, SNK-1 still cannot restore the first audio data packet using the first redundant information. During the duration of time slot N+1, SNK-1 sends a second reception failure notification to SNK-2.

[0197] Corresponding to stage 908, SNK-2 enters the Rx state and obtains the second reception failure notification.

[0198] In stage 909, SNK-2 recalculates the second redundant information according to the second reception failure information. SNK-2 enters the Tx state and sends the second redundant information to SNK-1 in the remaining time of time slot N+1.

[0199] In stage 910, SNK-1 receives the second redundant information sent by SNK-2, and can decode the second redundant information and the first audio data separately, or can decode the second redundant information, the first redundant information and the first audio data, which is not limited in the present application.

[0200] It should be noted that if SNK-1 still fails to restore the first audio data packet after obtaining redundant information from SNK-2 twice, SNK-1 may directly request SNK-2 to retransmit the first audio data packet.

[0201] In another possible manner, SNK-1 and SNK-2 may also be designed to perform an interactive process of acquiring redundant information three, four or more times, where the number of times may be Q times, where Q is a positive integer greater than 1. When the number of times that redundant information is acquired between SNK-1 and SNK-2 exceeds Q times, SNK-1 will request SNK-2 to send a complete first audio data packet.

[0202] In the embodiment of the present application, there is also a situation where neither SNK-1 nor SNK-2 successfully decodes the first audio data packet. In this situation, the present application provides a method for retransmitting the audio data packet. Please refer to the following embodiment.

[0203] See also Fig.10 , Fig.10 1 is a flow chart of a method for retransmitting an audio data packet in a first audio receiver provided by an embodiment of the present application. The first audio receiver is configured to communicate with an audio source and communicate with a second audio receiver. Fig.10 In the method for retransmitting an audio data packet, the method comprises:

[0204] Step 1010: receiving a first audio data packet from an audio source, and the first audio data packet is acquired by a first audio receiver and a second audio receiver respectively.

[0205] In this example, SNK-1 receives a first audio data packet from SRC, wherein the first audio data packet is also acquired by SNK-2.

[0206] Step 1020: In response to the failure to decode the first audio data packet, when no notification indicating that the second audio receiver has failed to decode the first audio data packet is received, a first NACK message is sent to the second audio receiver, wherein the first NACK message is used to indicate that the first audio receiver has not successfully received the first audio data packet.

[0207] In this example, SNK-1 may also receive a notification indicating that SNK-2 has failed to decode. If SNK-1 receives the notification, SNK-1 will notify SRC that both devices have failed to successfully decode the first audio data packet. In this example, neither SNK-1 nor SNK-2 has successfully decoded the first audio data packet, so they need to compete to send the first NACK message to each other. This application takes the example of SNK-1 sending the first NACK message to SNK-2 first as an example.

[0208] The first NACK message is used to indicate that SNK-1 has not successfully received the first audio data packet.

[0209] Step 1030, receiving a first audio data packet retransmitted by a sound source, wherein the retransmitted first audio data packet is sent by the sound source under a preset condition, wherein the preset condition is that both the first audio receiver and the second audio receiver fail to successfully receive the first audio data packet.

[0210] In this example, SNK-1 receives the first audio data packet retransmitted by SRC. SRC can retransmit the first audio data packet to SNK-1 under a preset condition. It should be noted that the preset condition is that both the first audio receiver and the second audio receiver fail to successfully receive the first audio data packet.

[0211] The SRC may be informed that it is in the preset condition through a message sent by SNK-2. The catalyst that triggers SNK-2 to notify the SRC that it is in the preset condition is the first NACK message sent by SNK-1.

[0212] In summary, the present application provides a method for retransmitting an audio data packet in a first audio receiver, which can make SNK-1 and SNK-2 compete with each other to feedback information to SRC when both SNK-1 and SNK-2 fail to successfully decode the first audio data packet. In this example, SNK-1 preemptively sends a first NACK message to SNK-2, so that SNK-2 notifies SRC that it is in a preset condition. As a result, SRC will retransmit the first audio data packet to SNK-1 and SNK-2 respectively, achieving the effect of retransmitting the first audio data packet, and avoiding the problem that SNK-1 and SNK-2 cannot obtain the retransmitted first audio data packet in time when neither of them successfully decodes.

[0213] See also Fig.11 , Fig.11 It is a flowchart of a method for retransmitting an audio data packet in a second audio receiver provided by an embodiment of the present application. Fig.11 The protocol shown is implemented by SNK-2. Fig.10 The scheme of the other side of the scheme performed by SNK-1 shown. SNK-2 is configured to communicate with the audio source, and SNK-2 communicates with SNK-1, in the method of retransmitting the audio data packet, including:

[0214] Step 1110: receiving a first audio data packet from an audio source in a first time slot, and the first audio data packet is acquired by a first audio receiver and a second audio receiver respectively.

[0215] In this example, SNK-2 receives a first audio data packet from SRC in a first time slot, wherein the first audio data packet can be acquired by the first audio receiver and the second audio receiver at the same time.

[0216] Step 1120: Decode the first audio data packet.

[0217] In this example, SNK-2 will also decode the first audio packet.

[0218] In the embodiment of the present application, after SNK-2 completes step 1120, it can execute either step 1130 or step 1140.

[0219] Step 1130, when the sound source is set to confirm that both the first audio receiver and the second audio receiver have not received the first audio data packet when the ACK message is not received in the second time slot, in response to the failure of decoding the first audio data packet and receiving the first NACK message sent by the first audio receiver, no feedback message is sent to the sound source in the second time slot, the feedback message includes an ACK message and a second NACK message, the second time slot is the next time slot relative to the first time slot, and the second NACK message is used to indicate that both the first audio receiver and the second audio receiver have not received the first audio data packet.

[0220] In this example, SRC can be preset with a preset condition for retransmitting the first audio data packet. The preset condition is limited to the second time slot, and when no ACK message is received in the second time slot, it is confirmed that both SNK-1 and SNK-2 have not successfully decoded the first audio data packet. That is, both SNK-1 and SNK-2 have not successfully received the first audio data packet.

[0221] In this case, SNK-2 can fail to decode the first audio data packet by itself and receive the first NACK message sent by SNK-1, and not send a feedback message to SRC in the second time slot. The second time slot is the next time slot of the first time slot. The feedback message includes an ACK message and a second NACK message. The second NACK message is used to indicate that both SNK-1 and SNK-2 have not successfully received the first audio data packet. In other words, SNK-2 will neither send a message to SRC in the second time slot to indicate that both SNK-1 and SNK-2 have successfully received the first audio data packet, nor send a message to SRC to indicate that both SNK-1 and SNK-2 have not successfully received the first audio data packet.

[0222] Step 1140, in a case where the sound source is set to confirm that both the first audio receiver and the second audio receiver have not received the first audio data packet when receiving the second NACK message in the second time slot, in response to the failure of decoding the first audio data packet and receiving the first NACK message sent by the first audio receiver, a second NACK message is sent to the sound source, the second time slot being the next time slot relative to the first time slot, and the second NACK message being used to indicate that both the first audio receiver and the second audio receiver have not received the first audio data packet.

[0223] In this example, SRC can be preset with a preset condition for retransmitting the first audio data packet. The preset condition is limited to the second time slot, and when the second NACK message is received in the second time slot, it is confirmed that both SNK-1 and SNK-2 have not received the first audio data packet.

[0224] In this case, when SNK-2 fails to decode the first audio data packet and receives the first NACK message sent by SNK-1, it can send a second NACK message to SRC in the second time slot. The second time slot is the next time slot relative to the first time slot. The second NACK message is used to indicate that neither SNK-1 nor SNK-2 has received the first audio data packet.

[0225] In summary, the method for retransmitting an audio data packet in a second audio receiver provided by an embodiment of the present application can enable SNK-2 to receive a first audio data packet from SRC in a first time slot and decode the first audio data packet. When SRC presets that no feedback message is received in the second time slot to confirm that both SNK-1 and SNK-2 have not successfully received the first audio data packet, SNK-2 can fail to send a feedback message to SRC in the second time slot when decoding the first audio data packet fails and the first NACK message sent by SNK-1 is received, so that SRC knows that both SNK-1 and SNK-2 have not successfully received the first audio data packet, thereby facilitating SRC to retransmit the first audio data packet to SNK-2 and / or SNK-1, achieving the effect of retransmitting the first audio data packet, and avoiding the problem that SNK-1 and SNK-2 cannot obtain the retransmitted first audio data packet in time in a scenario where neither of them has successfully decoded.

[0226] Optionally, the present application can also enable SNK-2 to receive the first audio data packet from SRC in the first time slot and decode the first audio data packet. In the case where the second NACK message is received in the second time slot in the SRC, SNK-2 can send the second NACK message to SRC in the second time slot when the decoding of the first audio data packet fails and the first NACK message sent by SNK-1 is received, so that SRC knows that neither SNK-1 nor SNK-2 has successfully received the first audio data packet, thereby facilitating SRC to retransmit the first audio data packet to SNK-2 and / or SNK-1, achieving the effect of retransmitting the first audio data packet, and avoiding the problem that SNK-1 and SNK-2 cannot obtain the retransmitted first audio data packet in time when neither of them has successfully decoded.

[0227] As Fig.10 and Fig.11 For a possible implementation of the embodiment shown, see Fig.12 The scheme shown. Fig.12 is a schematic diagram of a method for retransmitting an audio data packet shown in an embodiment of the present application. Fig.12 In the provided example, the retransmission process of the first audio data packet is divided into 6 processing stages.

[0228] In stage 1210, the sound source SRC enters the Tx state in time slot N. After entering the Tx state, the SRC sends a first audio data packet (the first audio data packet may also be represented by Data 1) to SNK-2 and SNK-1.

[0229] It should be noted that time slot N represents the Nth time slot among N time slots, and N is a positive integer. In the actual processing process, N can select a suitable value as needed.

[0230] In this example, the sound source SRC may enter the Tx state immediately after entering the time slot N. When the sound source SRC is in the Tx state, the sound source SRC may send the first audio data packet to SNK-2. At the same time, SNK-1 may obtain the first audio data packet by monitoring the communication link through which the sound source SRC sends information to SNK-2.

[0231] Alternatively, after the sound source SRC enters the Tx state, the sound source SRC sends the first audio data packet to SNK-1. Meanwhile, SNK-2 can obtain the first audio data packet by monitoring the communication link through which the sound source SRC sends information to SNK-1.

[0232] In stage 1220, while the sound source SRC is in the Tx state, SNK-2 is in the Rx state to receive the first audio data packet. If SNK-2 fails to decode the first audio data packet Data1, SNK-2 will try to send a retransmission request to SNK-1 after exiting the Rx state.

[0233] In stage 1230 , SNK- 1 is in the Rx state, and SNK- 1 fails to decode the first audio data packet Data 1 . After the receiving process shown in stage 1230 is completed, SNK- 1 enters stage 1240 .

[0234] In stage 1240, SNK-1 is in the Tx state, and SNK-1 first sends a first NACK message to SNK-2. Correspondingly, SNK-2 is in the Rx state and receives the first NACK message.

[0235] In stage 1250, SNK-2 gives up sending the first NACK message to SNK-1 because it has received the first NACK message first.

[0236] That is, during the actual execution process, the preset data packet corresponding to stage 1250 is not sent. Fig.12 The dotted box in the figure shows the timing position of stage 1250.

[0237] In stage 1260, SNK-2 has received the first NACK message from SNK-1, and SNK-2 has not received the first audio data packet Data1 from SRC. Therefore, SNK-2 can choose to send a second NACK message to SRC in time slot N+1, or choose not to send any audio data packet. During the period when SNK-2 is in the Tx state, SRC is in the Rx state. Thus, SRC can know that neither SNK-1 nor SNK-2 has received the first audio data packet, and then retransmit the first audio data packet to SNK-1 and / or SNK-2.

[0238] See also Fig.13 , Fig.13 is a schematic diagram of a design scheme of a coding rule provided in an embodiment of the present application. Fig.13 In the present application, a plurality of encoding rules may be preset for the first audio data packet. Fig.13 In the example, two of the multiple coding rules are used for introduction. Among them, under coding rule 1, the first audio data packet can be encoded according to reception level 1 to obtain the encoded first audio data packet and the corresponding redundant information RI_11. Under coding rule 1, the first audio data packet can be encoded according to reception level 2 to obtain the encoded first audio data packet and the corresponding redundant information RI_12. For example, reception level 1 can be 0.4, and reception level 2 can be 0.5. Schematically, since reception level 1 is low, the amount of data of the redundant information RI_11 generated by it will be larger than that of the redundant information RI_12.

[0239] Similarly, under coding rule 2, the first audio data packet can be encoded according to reception level 3 to obtain the encoded first audio data packet and the corresponding redundant information RI_21. Under coding rule 2, the first audio data packet can be encoded according to reception level 4 to obtain the encoded first audio data packet and the corresponding redundant information RI_22. For example, reception level 3 can be 0.6, and reception level 4 can be 0.7. Schematically, since reception level 3 is low, the amount of data of redundant information RI_21 generated by it is larger than that of redundant information RI_22.

[0240] In a possible way of selecting the coding rule, SNK can select the corresponding coding rule according to the reception degree. For example, in this example, when the reception degree is in the interval [0.4, 0.5], coding rule 1 is selected as the target coding method. When the reception degree is in the interval [0.6, 0.1), coding rule 2 is selected as the target coding method. It should be noted that when the reception degree is in the interval (0, 0.4), SNK will consider that the reception degree is too low and there is no need to select a coding rule, but instead request SRC to retransmit the first audio data packet. Alternatively, another SNK that successfully receives the first audio data packet is requested to retransmit.

[0241] In the embodiment of the present application, there may also be such a situation. The data of the first audio data packet received by SNK-1 is too little, but SNK-2 successfully receives and decodes the first audio data packet. In this case, if SNK-2 is still allowed to feed back redundant information to SNK-1, SNK-1 cannot restore the first audio data packet, but instead causes SNK-1 to need to interact multiple times before restoring the first audio data packet, which prolongs the time length for SNK-1 to restore the first audio data packet. Therefore, in order to solve the problem that the time length for SNK-1 to restore the first audio data packet in this scenario may potentially take a long time, the present application provides the following embodiments.

[0242] See also Fig.14 , Fig.14 1 is a flow chart of a method for retransmitting an audio data packet in a first audio receiver provided by an embodiment of the present application. The first audio receiver is configured to communicate with an audio source and communicate with a second audio receiver. Fig.14 In the method for retransmitting an audio data packet, the method comprises:

[0243] Step 1410: Receive a first audio data packet from an audio source, wherein the first audio data packet is acquired by a first audio receiver and a second audio receiver respectively.

[0244] In this example, SNK-1 can receive the first audio data packet from SRC, wherein the first audio data packet can also be received by SNK-2.

[0245] Step 1420: In response to the decoding failure of the first audio data packet and the received first audio data cannot be used to restore the first audio data packet, discard the received first audio data.

[0246] In this example, when SNK-1 receives the first audio data packet, the amount of data received may be very small. In this scenario, a data threshold can be set in SNK-1, and the threshold can be either a percentage or a fixed value. When the amount of the first audio data stored by SNK-1 is less than the data threshold, SNK-1 determines that the first audio data it has received cannot be used to restore the first audio data packet, and then discards the first audio data that has been received.

[0247] Step 1430: Send a loss notification to the second audio receiver, where the loss notification is used to indicate that the first audio receiver completely loses the first audio data packet.

[0248] In this example, SNK-1 sends a loss notification to SNK-2, where the loss notification is used to indicate that SNK-1 has completely lost the first audio data packet.

[0249] Step 1440: Receive the first audio data packet retransmitted by the second audio receiver.

[0250] In this example, SNK-1 can receive the first audio data packet retransmitted by SNK-2. After obtaining the loss notification, SNK-2 will retransmit the first audio data packet to SNK-1 if it has successfully decoded the first audio data packet.

[0251] To summarize, the method for retransmitting an audio data packet in a first audio receiver provided in an embodiment of the present application can enable SNK-1 to receive a first audio data packet. If SNK-1 fails to decode the first audio data packet and the data already received cannot be used to restore the first audio data packet together with redundant information, SNK-1 will discard the first audio data packet already received and inform SNK-2. Subsequently, SNK-1 can receive the first audio data retransmitted by SNK-2, thereby directly reacquiring the complete first audio data packet from SNK-2 when the received data is too little, without performing the interactive process of obtaining redundant information, thereby reducing the delay of SNK-1 in reacquiring the first audio data packet when the amount of data in the first audio data packet obtained is small.

[0252] Please refer to Fig.15 , Fig.15 1 is a flowchart of a method for retransmitting an audio data packet in a second audio receiver provided by an embodiment of the present application. The second audio receiver is configured to communicate with the sound source, and the second audio receiver communicates with the first audio receiver. Fig.13 The SNK-1 and SRC in the wireless audio system work together. The method includes:

[0253] Step 1510: receiving a first audio data packet from an audio source, and the first audio data packet is acquired by a first audio receiver and a second audio receiver respectively.

[0254] In this example, SNK-2 will receive the first audio data packet from SRC. The source from which SNK-1 obtains the first audio data packet is also SRC.

[0255] In this example, after completing step 1510 , SNK-2 can either execute step 1520 or step 1530 .

[0256] In one possible approach, SNK-2 receives a first audio data packet from SRC in a first time slot.

[0257] Step 1520, in response to the successful decoding of the first audio data packet and the receipt of a loss notification sent by the first audio receiver, a second NACK message is sent to the sound source, where the loss notification is used to indicate that the first audio receiver has completely lost the first audio data packet, and the second NACK message is used to indicate that both the first audio receiver and the second audio receiver have not received the first audio data packet, so that the sound source retransmits the first audio data packet to the first audio receiver.

[0258] In a possible manner, SNK-2 sends a second NACK message to SRC in a second time slot, wherein the second time slot is a next time slot relative to the first time slot.

[0259] Step 1530, in response to the successful decoding of the first audio data packet and the receipt of the loss notification sent by the first audio receiver, an ACK message is sent to the sound source, and the complete first audio data packet is sent to the first audio receiver, the loss notification is used to indicate that the first audio receiver has completely lost the first audio data packet, and the ACK message is used to indicate that both the first audio receiver and the second audio receiver have received the first audio data packet.

[0260] In one possible manner, SNK-2 sends an ACK message to the audio source in the second time slot.

[0261] In a possible manner, the ACK message sent by SNK-2 to SRC and the complete first audio data packet sent to SNK-1 can be packaged into one data packet. For details, see step (a1).

[0262] Step (a1), SNK-2 packages the ACK message and the complete first audio data packet into a combined data packet; and sends the combined data packet to the audio source and the first audio receiver in the second time slot.

[0263] It should be noted that SNK-2 can send the combined data packet to SRC, wherein SNK-1 can also obtain the combined data packet by monitoring. Alternatively, SNK-2 can send the combined data packet to SNK-1, and SRC can obtain the combined data packet by monitoring.

[0264] In another possible manner, the ACK message sent by SNK-2 to SRC and the complete first audio data packet sent to SNK-1 can be divided into two independent data packets and sent separately. For details, see step (a2).

[0265] Step (a2), sending an ACK message to the audio source in the second time slot; and retransmitting the first audio data packet to the first audio receiver in the second time slot.

[0266] In this example, SNK-2 sends an ACK message to SRC in the second time slot. Also, SNK-2 retransmits the first audio data packet to SNK-1 in the second time slot.

[0267] To summarize, the method for retransmitting an audio data packet in a second audio receiver shown in the present application can enable SNK-2 to first receive a first audio data packet from SRC, and SNK-2 decodes the first audio data packet. When SNK-2 successfully decodes the first audio data packet and learns that SNK-1 has discarded the first audio data packet, SNK-2 sends a second NACK message to SRC to inform SRC that the first audio data packet needs to be retransmitted, so that SRC retransmits the first audio data packet to SNK-1, thereby reducing the delay for SNK-1 to reacquire the first audio data packet.

[0268] Optionally, the present application can also enable SNK-2 to first receive the first audio data packet from SRC, and SNK-2 decodes the first audio data packet. When SNK-2 successfully decodes the first audio data packet and learns that SNK-1 has discarded the first audio data packet, SNK-2 sends an ACK message to SRC to enable SRC to no longer retransmit the first audio data packet, but instead SNK-2 retransmits the first audio data packet to SNK-1, thereby reducing the delay for SNK-1 to reacquire the first audio data packet.

[0269] Based on the method shown in the above embodiment, the embodiment of the present application can also illustrate the implementation scenario of the present application through a variety of cases. Fig.14 and Fig.15 The solution provided by the embodiment shown in the figure, this application provides the following Fig.16 and Fig.17 The landing case shown.

[0270] See also Fig.16 , Fig.16 Schematic diagram of another audio information packet retransmission method according to an embodiment of the present application. In this example, the processing process is divided into five processing stages.

[0271] In stage 1601, SRC enters the Tx state after the start of time slot N, and simultaneously sends the first audio data packet (Data 1) to SNK-2 and SNK-1.

[0272] In stage 1602, SNK-1 does not receive the first audio data packet and completely discards the first audio data in the first audio data packet. After the receiving process is completed, SNK-1 attempts to send a loss notification to SNK-2.

[0273] In stage 1603, SNK-1 first sends a loss notification to SNK-2 after stage 1102 ends.

[0274] In stage 1604, SNK-2 receives the loss notification from SNK-1 and no longer calculates the first redundant information.

[0275] In stage 1605, since SNK-1 cannot correctly obtain the first audio data packet, SNK-2 chooses to send a second NACK message to SRC to trigger SRC to retransmit the first audio data packet.

[0276] See also Fig.17 , Fig.17 Schematic diagram of another audio information packet retransmission method according to an embodiment of the present application. In this example, the processing process is divided into 7 processing stages.

[0277] In stage 1701, SRC enters the Tx state after the start of time slot N, and simultaneously sends the first audio data packet (Data 1) to SNK-2 and SNK-1.

[0278] In stage 1702, SNK-1 does not receive the first audio data packet and completely discards the first audio data packet therein. Therefore, SNK-1 will attempt to send a loss notification to SNK-2 after the receiving process is completed.

[0279] In stage 1703, SNK-1 first sends a loss notification to SNK-2.

[0280] In stage 1704, SNK-2 receives the loss notification sent by SNK-1 and no longer calculates the first redundant information.

[0281] In stage 1705, SNK-2 sends a combined data packet to SRC, the combined data packet including an ACK message sent to SRC and the complete first audio data packet.

[0282] In stage 1706, SRC obtains information that SNK-2 has received the first audio data packet based on the ACK message in the combined data packet, and thus does not retransmit the first audio data packet.

[0283] In stage 1707, SNK-1 receives and parses the first audio data packet contained in the combined data packet.

[0284] See also Fig.18 , Fig.18 is a structural block diagram of an audio receiver provided by an exemplary embodiment of the present application, such as Fig.18 As shown, the audio receiver includes a processor 1820 and a memory 1840, wherein the memory 1840 stores at least one instruction, and the instruction is loaded and executed by the processor 1820 to implement the method for retransmitting an audio data packet as described in the various method embodiments of the present application.

[0285] Optionally, Fig.18 The audio receiver shown may be either a first audio receiver or a second audio receiver.

[0286] The processor 1820 may include one or more processing cores. The processor 1820 uses various interfaces and lines to connect the various parts of the entire audio receiver 1800, and executes various functions and processes data of the audio receiver 1800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1840, and calling data stored in the memory 1840. Optionally, the processor 1820 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1820 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1820, but may be implemented separately through a chip.

[0287] The memory 1840 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1840 includes a non-transitory computer-readable storage medium. The memory 1840 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1840 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data involved in the following various method embodiments, etc.

[0288] The transceiver component 1860 includes a signal processing unit and an antenna. The transceiver component 1860 can receive feedback information sent via the target channel, and can also send feedback information to the sound source, or can also send feedback information to the first audio receiver. Schematically, the transceiver component 1860 can also cooperate with the processor 1820 to calculate the signal-to-noise ratio (SNR) of the first audio data packet. Alternatively, the transceiver component 1860 can also cooperate with the processor 1820 to calculate the historical bit error rate BER of the channel where the first audio data packet is received.

[0289] An embodiment of the present application further provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the method for retransmitting an audio data packet in a first audio receiver as described in the above embodiments.

[0290] An embodiment of the present application further provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the method for retransmitting an audio data packet in a second audio receiver as described in the above embodiments.

[0291] It should be noted that in the present application, the sound source SRC, the first audio receiver SNK-1 and the second audio receiver SNK-2 form a wireless audio system.

[0292] Alternatively, if Figure 3 SNK-1 shown, Figure 4 The SNK-2 and audio source shown form a wireless audio system.

[0293] Alternatively, if Fig.10 SNK-1 shown, Fig.11 The SNK-2 and audio source shown form another wireless audio system.

[0294] Alternatively, if Fig.14 SNK-1 shown, Fig.15 The SNK-2 and audio source shown form another wireless audio system.

[0295] It should be noted that: the audio information retransmission device provided in the above embodiment only uses the division of the above functional modules as an example when executing the method for retransmitting an audio data packet. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the audio information retransmission device provided in the above embodiment and the method embodiment for retransmitting an audio data packet belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0296] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0297] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0298] The above description is only an illustrative embodiment that can be implemented in the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for retransmitting an audio data packet in a first audio receiver, wherein the first audio receiver is configured to communicate with an audio source and to communicate with a second audio receiver, characterized in that: The method comprises: receiving a first audio data packet from the audio source, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively; In response to a failure in decoding the first audio data packet, saving the first audio data in the received first audio data packet; sending a first NACK message to the second audio receiver, the first NACK message being used to indicate that the first audio receiver has not successfully received the first audio data packet; the first NACK message comprising reception degree information of the first audio data packet, so that the second audio receiver determines a coding rule based on the reception degree information, and uses the coding rule to encode the first audio data packet to obtain first redundant information; the reception degree information is used to indicate the percentage of the data volume of the first audio data to the total data volume of the first audio data packet; or, the first NACK message comprising correctness degree information of the first audio data packet, the correctness degree information being used to indicate the probability that the first audio data packet is correctly received, so that the second audio receiver determines a coding rule based on the correctness degree information, and uses the coding rule to encode the first audio data packet to obtain the first redundant information; receiving a second audio data packet sent by the second audio receiver, wherein the second audio data packet includes the first redundant information, and the first redundant information includes at least a portion of original data in the first audio data packet; and Determine a corresponding decoding rule based on the encoding rule, and decode the first redundant information and the first audio data packet according to the decoding rule to restore the first audio data packet; In response to a failure in decoding the first redundant information and the first audio data, sending a second reception failure notification to the second audio receiver; receiving a third audio data packet sent by the second audio receiver, the third audio data packet including second redundant information, wherein the amount of data of the second redundant information is greater than the amount of data of the first redundant information; and The first redundant information, the second redundant information, and the first audio data are decoded to restore the first audio data packet.

2. The method according to claim 1, characterized in that The accuracy information includes a signal-to-noise ratio (SNR) and / or a historical bit error rate (BER) of a channel where the first audio data packet is located.

3. The method according to claim 1, characterized in that The receiving a first audio data packet from the sound source comprises: In a first time slot, receiving a first audio data packet from the audio source; The sending a first NACK message to the second audio receiver includes: In the first time slot, sending a first NACK message to the second audio receiver; The receiving a second audio data packet sent by the second audio receiver comprises: In a second time slot, a second audio data packet sent by the second audio receiver is received, and the second time slot is a next time slot relative to the first time slot.

4. The method according to claim 3, characterized in that The second audio data packet further includes indication information, where the indication information is used to indicate a duration of the second time slot, so that the second time slot is suitable for exchanging the first NACK message and the second audio data packet between the first audio receiver and the second audio receiver.

5. The method according to claim 3, characterized in that: The sending a first NACK message to the second audio receiver includes: Determine a first sending time according to a random backoff mechanism or a fixed time slice, the first sending time belonging to the first time slot; The first NACK message is sent to the second audio receiver at the first sending time.

6. The method according to claim 1, characterized in that The sending a second reception failure notification to the second audio receiver includes: Determine the second sending time according to a random backoff mechanism or a fixed time slice; The second reception failure notification is sent to the second audio receiver at the second sending time.

7. The method according to claim 1, characterized in that The second audio data packet further includes an ACK message, and the ACK message is used to indicate to the audio source that both the first audio receiver and the second audio receiver have successfully received the first audio data packet.

8. The method according to claim 1, characterized in that The method further comprises: The first audio receiver and the second audio receiver are preconfigured to share the encoding rule.

9. A method for retransmitting an audio data packet in a second audio receiver, the second audio receiver being configured to communicate with an audio source and to communicate with a first audio receiver, characterized in that: The method comprises: receiving a first audio data packet from the audio source, the first audio data packet being acquired by the first audio receiver and the second audio receiver respectively; receiving a first NACK message from the first audio receiver, the first NACK message being used to indicate that the first audio receiver has not successfully received the first audio data packet; the first NACK message comprising reception degree information of the first audio data packet, the reception degree information being used to indicate a percentage of a data volume of the first audio data packet to a total data volume of the first audio data packet; or the first NACK message comprising correctness degree information of the first audio data packet, the correctness degree information being used to indicate a probability that the first audio data packet is correctly received; Determine a coding rule based on the reception degree information or the correctness degree information in the first NACK message; Encode the first audio data packet using the encoding rule to obtain first redundant information, wherein the first redundant information includes at least a portion of original data in the first audio data packet; and Sending a second audio data packet to the first audio receiver, the second audio data packet including the first redundant information, so that the first audio receiver determines a corresponding decoding rule based on the encoding rule, and decodes the first redundant information and the first audio data by using the decoding rule to restore the first audio data packet; receiving a second reception failure notification sent by the first audio receiver, where the second reception failure notification is used to indicate that the first audio receiver fails to decode the first redundant information and the first audio data; A third audio data packet is sent to the first audio receiver, wherein the third audio data packet includes second redundant information, and the data amount of the second redundant information is greater than the data amount of the first redundant information, so that the first audio receiver decodes the first redundant information, the second redundant information and the first audio data to restore the first audio data packet.

10. The method according to claim 9, characterized in that The second audio data packet also includes an ACK message, and the ACK message is used to indicate to the audio source that both the first audio receiver and the second audio receiver have successfully received the first audio data packet.

11. The method according to claim 9, characterized in that The method further includes: sending an ACK message to the sound source, where the ACK message is used to indicate to the sound source that both the first audio receiver and the second audio receiver have successfully received the first audio data packet.

12. The method according to claim 9, characterized in that The receiving a first audio data packet from the sound source comprises: In a first time slot, receiving a first audio data packet from the audio source; The receiving a first NACK message from the first audio receiver comprises: receiving, during the first time slot, the first NACK message from the first audio receiver; The sending a second audio data packet to the first audio receiver comprises: A second audio data packet is sent to the first audio receiver in a second time slot, where the second time slot is a next time slot relative to the first time slot.

13. The method according to claim 12, characterized in that The second audio data packet further includes indication information, where the indication information is used to indicate a duration of the second time slot, so that the second time slot is suitable for exchanging the first NACK message and the second audio data packet between the first audio receiver and the second audio receiver.

14. A first audio receiver, characterized in that The first audio receiver includes a processor, a memory connected to the processor, and program instructions stored in the memory. When the processor executes the program instructions, the method for retransmitting audio data packets in the first audio receiver as described in any one of claims 1 to 8 is implemented.

15. A second audio receiver, characterized in that The second audio receiver includes a processor, a memory connected to the processor, and program instructions stored in the memory. When the processor executes the program instructions, the method for retransmitting audio data packets in the second audio receiver as described in any one of claims 9 to 13 is implemented.

16. A computer-readable storage medium, wherein program instructions are stored in the storage medium, characterized in that: When the program instructions are executed by a processor, the method for retransmitting an audio data packet in a first audio receiver as claimed in any one of claims 1 to 8 is implemented.

17. A computer-readable storage medium, wherein program instructions are stored in the storage medium, characterized in that: When the program instructions are executed by the processor, the method for retransmitting an audio data packet in a second audio receiver as claimed in any one of claims 9 to 13 is implemented.

18. A wireless audio system, characterized in that: The system comprises: sound source; The first audio receiver as claimed in any one of claims 1 to 8; and A second audio receiver as claimed in any one of claims 9 to 13.

Citation Information

Patent Citations

  • Wireless device component and a communication method of the wireless device component

    CN109905925A

  • Wireless earphone and communication method of wireless earphone

    CN110312237A

  • Audio data transmission method and system, TWS earphone pair, chip and medium

    CN112437369A