Method for Sending ACK Message, Audio Receiver, Audio Device and Headphone

By using a random backoff mechanism to control ACK message transmission in the TWS headset system, the problem of excessive energy consumption of the main device is solved, the use time of the headset kit is extended, and the risk of power exhaustion of a single device is reduced.

CN115209476BActive Publication Date: 2025-07-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111322614.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-04-01
Filing Date
2021-11-09
Publication Date
2025-07-04
Estimated Expiration
2041-11-09

AI Technical Summary

Technical Problem

In the TWS headset system, the ACK message feedback mechanism between the master and slave devices causes the master device to consume too fast energy, affecting the use time of the headset kit.

Method used

The random backoff mechanism is used to control the transmission of ACK messages, and through the competition between the first audio receiver and the second audio receiver, the probability of both sending ACK messages to the audio source is balanced, avoiding frequent feedback by one device alone, thereby extending the power usage time.

Benefits of technology

By balancing the power consumption speed of both, the headset kit is extended and the probability of headset disconnection caused by the exhaustion of a single device is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115209476B_ABST
    Figure CN115209476B_ABST
Patent Text Reader

Abstract

Disclosed is a method for a first audio receiver to send an ACK message, including: receiving a sound source data packet from a sound source; based on determining that a second ACK message from a second audio receiver has not been received within a first backoff duration, sending a first ACK message to the second audio receiver; or, based on determining that the second ACK message has been received within the first backoff duration, sending a third ACK message to the sound source; wherein, the first ACK message is used to indicate that the first audio receiver has received the sound source data packet, the second ACK message is used to indicate that the second audio receiver has received the sound source data packet, and the third ACK message is used to indicate that both the first audio receiver and the second audio receiver have received the sound source data packet. The technical solution of this application can be used to balance the power consumption speed of two wireless earphones, which extends the usage time of the earphone kit.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of a Chinese patent application with the application number 202110356999.3 and the invention title "Method for Sending ACK Message, Audio Receiver, Storage Medium and System" filed on April 1, 2021, the entire content of which is incorporated herein by reference. Technical Field

[0002] Embodiments of the present application relate to the field of communication technologies, and more particularly to a method for sending an ACK message, an audio receiver, an audio device, and a headset. Background Art

[0003] With the development of TWS (True Wireless Stereo) technology, both the first audio receiver (audio sink1, SNK-1) and the second audio receiver (audio sink2, SNK-2) included in a TWS system can receive audio data (audio information) from an audio source (SRC).

[0004] In the prior art, SNK-1 is designated as the master device, and SNK-2 is designated as the slave device. The communication link between SNK-1 and SRC is two-way transmission, and SNK-2 can detect the communication link between SNK-1 and SRC. After the SRC transmits audio data, SNK-1 combines the feedback information sent by SNK-2 with its own situation of receiving audio source data packets and then transmits the feedback information to the SRC together. This feedback information can be used to indicate the situation of SNK-1 and SNK-2 receiving audio source data packets. The feedback information can include an ACK message or a NACK message. The ACK message is used to indicate successful reception of a certain message, while the NACK message is used to indicate unsuccessful reception of a certain message. Summary of the Invention

[0005] Embodiments of the present application provide a method for sending an ACK message, an audio receiver, a storage medium, and a system. The technical solution adopted in the present application is as follows:

[0006] According to one aspect of the present application, a method for a first audio receiver to send an ACK message is provided, wherein a communication link is established between the first audio receiver, a second audio receiver, and a sound source. The method includes: receiving a sound source data packet from the sound source; based on determining that a second ACK message from the second audio receiver is not received within a first backoff duration, sending a first ACK message to the second audio receiver; or, based on determining that the second ACK message is received within the first backoff duration, sending a third ACK message to the sound source; wherein the first ACK message is used to indicate that the first audio receiver has received the sound source data packet, the second ACK message is used to indicate that the second audio receiver has received the sound source data packet, and the third ACK message is used to indicate that both the first audio receiver and the second audio receiver have received the sound source data packet.

[0007] According to a second aspect of the present application, a method for an audio device to send an ACK message is provided, including: a first receiving unit and a second receiving unit of the audio device respectively receive a sound source data packet from the sound source; the first receiving unit, based on determining that a second ACK message from the second receiving unit is not received within a first backoff duration, sends a first ACK message to the second receiving unit; and the second receiving unit, based on determining that the first ACK message from the first receiving unit is received within a second backoff duration, sends a third ACK message to the sound source; or, the second receiving unit, based on determining that the first ACK message from the first receiving unit is not received within the second backoff duration, sends a second ACK message to the first receiving unit; and the first receiving unit, based on determining that the second ACK message from the second receiving unit is received within the first backoff duration, sends a third ACK message to the sound source.

[0008] According to a third aspect of the present application, a first audio receiver is provided for communicating with a sound source and a second audio receiver. The first audio receiver includes a sending module and a receiving module. The receiving module is configured to: receive a sound source data packet from the sound source; the sending module is configured to: based on determining that a second ACK message from the second audio receiver is not received within a first backoff duration, send a first ACK message to the second audio receiver; or, based on determining that the second ACK message is received within the first backoff duration, send a third ACK message to the sound source.

[0009] According to a fourth aspect of the present application, there is provided an audio device, including a first receiving unit and a second receiving unit. The first receiving unit includes a first transmitting module and a first receiving module. The first receiving module is configured to: receive a sound source data packet from a sound source. The first transmitting module is configured to: based on determining that no second ACK message is received from the second receiving unit within a first backoff duration, send a first ACK message to the second receiving unit; or, based on determining that a second ACK message is received within the first backoff duration, send a third ACK message to the sound source. And the second receiving unit includes a second transmitting module and a second receiving module. The second receiving module is configured to: receive a sound source data packet from the sound source. The second transmitting module is configured to: based on determining that no first ACK message is received from the first receiving unit within a second backoff duration, send a second ACK message to the first receiving unit; or, based on determining that a first ACK message is received from the first receiving unit within the second backoff duration, send a third ACK message to the sound source.

[0010] According to the technical solution of the present application, the first audio receiver determines whether a second ACK message is received from the second audio receiver within the first backoff duration. If it is determined that the second ACK message is received, a third ACK message is sent to the sound source to confirm that the first and second audio receivers have respectively received the sound source data packet. If the second ACK message is not received, a first ACK message is sent to the second audio receiver, and the second audio receiver is responsible for sending the third ACK message. Since the present application can control the first audio receiver and the second audio receiver to send the third ACK message to the sound source based on random backoff, and the probabilities of the two receivers sending the third ACK message are approximately equal, the problem that the power consumption speed of a single audio receiver is relatively fast due to always sending ACK messages to the sound source by a single audio receiver is significantly improved. In addition, the technical solution of the present application can be used to balance the power consumption speeds of two wireless earphones, which extends the usage time of the earphone kit. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly introduce the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0012] Figure 1 It is a schematic diagram of an application scenario composed of a pair of TWS earphones and a sound source SRC provided by an embodiment of the present application;

[0013] Figure 2 It is a schematic diagram of the composition structure of a pair of TWS earphones provided by an embodiment of the present application;

[0014] Figure 3It is a connection schematic diagram of a communication solution provided by an embodiment of the present application;

[0015] Figure 4 It is a connection schematic diagram of another communication solution provided by an embodiment of the present application;

[0016] Figure 5 It is a flowchart of a method for sending an ACK message provided by an embodiment of the present application;

[0017] Figure 6 It is a flowchart of a method for sending an ACK message provided by an embodiment of the present application;

[0018] Figure 7 It is a schematic diagram of a random backoff mechanism provided by an embodiment shown in the present application;

[0019] Figure 8 It is an implementation schematic diagram of a random backoff mechanism provided by an embodiment of the present application;

[0020] Figure 9 It is an implementation schematic diagram of another random backoff mechanism provided by an embodiment of the present application;

[0021] Figure 10 It is an implementation schematic diagram of another random backoff mechanism provided by an embodiment of the present application;

[0022] Figure 11 It is an implementation schematic diagram of a random backoff mechanism provided by an embodiment of the present application;

[0023] Figure 12 It is an implementation schematic diagram of a random backoff mechanism provided by an embodiment of the present application;

[0024] Figure 13 It is an implementation schematic diagram of a random backoff mechanism provided by an embodiment of the present application;

[0025] Figure 14 It is a structural block diagram of a first audio receiver provided by an embodiment of the present application;

[0026] Figure 15 It is a structural block diagram of an audio receiver provided by an embodiment of the present application;

[0027] Figure 16 It is a schematic diagram of a wireless audio system provided by an embodiment of the present application. Detailed implementation manners

[0028] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0029] When the following description refers to the accompanying 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. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0030] 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 defined, the terms "connected" and "coupled" 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 those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances. In addition, in the description of the present application, unless otherwise stated, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0031] In the development process of headphone technology, due to the fact that headphones based on TWS technology can eliminate the headphone cable and are convenient to use, they have been widely applied. Please refer to Figure 1 , Figure 1 which is a schematic diagram of an application scenario composed of a TWS headphone and a sound source SRC provided in an embodiment of the present application. In Figure 1 , the user wears the first headphone 110 of the TWS headphone on the left ear, which can also be called the left wireless headphone. The user wears the second headphone 120 of the TWS headphone on the right ear, which can also be called the right wireless headphone. The first headphone 110 is connected to the sound source 130 through the first piconet (piconet-1), and the first headphone 110 is connected to the second headphone 120 through the second piconet (piconet-2). The first piconet (piconet-1) can also be used for communication between the second headphone 120 and the sound source. Optionally, the sound source 130 can be a mobile terminal, such as a mobile phone, a tablet computer, an MP4 player, an MP5 player, a learning machine, an electronic dictionary, and a smart watch, etc.

[0032] When the sound source 130 sends sound source data packets to the first earphone 110 via the first piconet, the second earphone 120 can obtain the same sound source data packets by detecting the first piconet, so as to achieve the effect that the sound source 130 simultaneously sends the sound source data packets to the first earphone 110 and the second earphone 120. As a prerequisite, the second earphone 120 knows the network parameters of the first piconet, so it can obtain the sound source data packets by listening to the first piconet.

[0033] Optionally, piconet-2 between the first earphone 110 and the second earphone 120 may have different network parameters from piconet-1. In one possible way, piconet-2 is a Proprietary Wireless Link. Among them, both piconet-1 and piconet-2 have two-way communication capabilities.

[0034] Schematically, please refer to Figure 2 , Figure 2 is based on Figure 1 shown in the embodiment provides a schematic structural diagram of a pair of TWS earphones. The first earphone 110 includes a first audio receiver 111 (SNK-1) and a speaker. In one possible implementation, the first earphone 110 may further 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 earphone 120 may include a second audio receiver 121 (SNK-2) and a speaker, and may include other appropriate components similar to those of the first earphone.

[0035] In some embodiments of the present application, the first earphone includes a communication chip (such as a Bluetooth chip), an audio player, and a power management chip. Among them, the communication chip is configured to receive sound source data packets from a sound source, the audio player plays sounds based on the sound source data packets, and the power management chip is used to supply electrical energy to the communication chip and the audio player. The communication chip may send a first ACK message to the second earphone based on determining that no second ACK message from the second earphone is received within the first backoff duration; otherwise, the communication chip sends a third ACK message to the sound source. Correspondingly, the second earphone may include similar chip components. In some embodiments of the present application, a wireless earphone device (kit) is provided, which includes a first earphone and a second earphone used in cooperation with the first earphone. Some embodiments of the present application also provide a wireless audio system, which includes a sound source, a first earphone (or speaker), and a second earphone (or speaker) used in cooperation with the first earphone (or speaker).

[0036] In the embodiments of the present application, random competition can be performed between SNK-1 and SNK-2 as feedback devices. Among them, the SNK that competes for the identity of the feedback device receives the ACK message from the other SNK and decides whether to send an ACK message to the SRC based on the situation of its own received sound source data packets. In a possible scenario, if the SNK that competes for the identity of the feedback device successfully receives the sound source data packet and receives the ACK message from the other SNK, then this SNK sends an ACK message to the SRC. In another possible scenario, if the SNK that competes for the identity of the feedback device does not successfully receive the sound source data packet, then this SNK will not send an ACK message to the SRC either.

[0037] In the embodiments of the present application, the results of the competition between SNK-1 and SNK-2 include the following two situations. Please refer to Figure 3 and Figure 4 .

[0038] Figure 3 is a connection schematic diagram of a communication scheme according to some embodiments of the present application. In Figure 3 , it includes a first audio receiver 111, a second audio receiver 121, and a sound source 130. The first audio receiver 111 competes for the identity of the feedback device through the random backoff scheme provided by the present application. In terms of the communication network topology, the communication network between the first audio receiver 111 and the second audio receiver 121 is the second piconet (piconet-2). A first piconet (piconet-1) is established between the first audio receiver 111 and the sound source 130.

[0039] According to the Figure 3 shown communication scheme, the sound source 130 sends a sound source data packet to the first audio receiver 111 through piconet-1 in time slot M. The second audio receiver 121 obtains the sound source data packet by detecting piconet-1. After the sound source 130 sends the sound source data packet, if both the first audio receiver 111 and the second audio receiver 121 successfully receive the sound source data packet, they will send ACK messages to each other to inform the other party that their own device has successfully received the sound source data packet. In this scenario, the first audio receiver 111 receives the second ACK message sent by the second audio receiver 121 through piconet-2. Since the first audio receiver 111 has also successfully received the sound source data packet, therefore, the first audio receiver 111 will send a third ACK message to the sound source 130 through piconet-1. This third ACK message is used to indicate that both the first audio receiver 111 and the second audio receiver 121 have successfully obtained the sound source data packet from the sound source.

[0040] Figure 4 is a connection schematic diagram of another communication scheme according to some embodiments of the present application.Figure 4 It includes a first audio receiver 111, a second audio receiver 121, and a sound source 130. In Figure 4 , through the random backoff scheme provided by this application, the second audio receiver 121 competes for the identity of the feedback device.

[0041] According to Figure 4 the communication scheme shown, the sound source 130 sends a sound source data packet to the first audio receiver 111 through piconet-1 in time slot N. The second audio receiver 121 obtains the sound source data packet by detecting the piconet-1. After the sound source 130 finishes sending the sound source data packet, since both the first audio receiver 111 and the second audio receiver 121 successfully receive the sound source data packet, they will send each other feedback information indicating their reception status of receiving the sound source data packet. That is, the second audio receiver 121 receives the first feedback information sent by the first audio receiver 111 through piconet-2. If the feedback information is an acknowledgment message ACK, and the reception status of the second audio receiver 121 receiving the sound source data packet is also an acknowledgment message ACK, at this time, the second audio receiver 121 can also send a third feedback information for simultaneously feedbacking the reception status of the first audio receiver 111 and the second audio receiver 121 receiving the sound source data packet to the sound source 130 through piconet-1. In this example, since both the first audio receiver 111 and the second audio receiver 121 receive the sound source data packet, the feedback information sent by the first audio receiver 111 to the sound source 130 is also an acknowledgment message ACK.

[0042] In some embodiments of the present invention, the first audio receiver may include a sending module and a receiving module. Among them, the receiving module is used to receive the sound source data packet, and the sending module is used to send an ACK message.

[0043] For the ease of understanding of the scheme shown in the embodiments of this application, several terms appearing in the embodiments of this application are introduced below.

[0044] Feedback information: It is used to indicate whether the specified information is correctly received. Among them, correct reception may mean that the information is correctly decoded and passes the verification after being received. In this application, the feedback information specifically refers to the ACK message, that is, the feedback information is used to indicate that the sound source data packet is correctly received.

[0045] Schematically, the feedback information in this application includes a first ACK message, a second ACK message, and a third ACK message. Among them, the first ACK message is used to indicate that the first audio receiver has successfully obtained a sound source data packet from the sound source. The second ACK message is used to indicate that the second audio receiver has successfully obtained a sound source data packet from the sound source. The third ACK message is used to indicate that both the first audio receiver and the second audio receiver have successfully obtained a sound source data packet from the sound source.

[0046] Sound source data packet: Data that can be played as sound through a player after being processed. In a possible scenario, in a single data transmission, the sound source data packet will be transmitted through a single packet. Optionally, both audio control information and audio data information are present in the packet.

[0047] Backoff time: Used to indicate the total duration for which the audio receiver backs off. Optionally, the backoff time includes a number of time slices. A time slice can be referred to as a time interval, which is the smallest time unit for the audio receiver to perform communication operations. For example, if the backoff time includes N time intervals, and the length of each time interval is T, then the backoff time is N*T.

[0048] In one possible implementation, the period corresponding to the backoff time is continuous. For example, starting from the first moment, the period with a duration of N*T is the period corresponding to the backoff time. In another possible implementation, the period corresponding to the backoff time is discrete, and each discrete unit is an integer multiple of a time interval. For example, when the backoff time includes N time slices, the backoff period can be divided into three discrete parts, namely the first part, the second part, and the third part. Among them, the first part is 2 consecutive time slices, the second part is 3 consecutive time slices, and the third part is N - 5 consecutive time slices.

[0049] Current time slot: The time slot when the first audio receiver receives a sound source data packet from the sound source.

[0050] The next time slot after the current time slot: The next time slot adjacent to the current time slot. For example, if the current time slot is the Nth time slot, then the next time slot after the current time slot is the (N + 1)th time slot.

[0051] Please refer to Figure 5 , Figure 5 is a flowchart of a method for sending an ACK message provided by an embodiment of this application. This method is applied in the first audio receiver, which is configured to communicate with the sound source and communicate with the second audio receiver. The method for sending an ACK message includes:

[0052] Step 510, in response to successfully receiving a sound source data packet from a sound source, based on determining that a second ACK message has not been received from a second audio receiver, a first audio receiver sends a first ACK message to the second audio receiver.

[0053] In this example, the first audio receiver is denoted as SNK-1, the second audio receiver is denoted as SNK-2, and the sound source is denoted as SRC.

[0054] As a further example, after SNK-1 successfully receives a sound source data packet from SRC, if SNK-1 experiences a backoff duration and still does not receive a second ACK message sent by SNK-2 before the start of the next time slot in which the sound source data packet can be received, SNK-1 sends a first ACK message to SNK-2.

[0055] Step 520, in response to successfully receiving a sound source data packet from a sound source, based on determining that a second ACK message has been received from a second audio receiver, sends a third ACK message to the sound source.

[0056] As a further example, after SNK-1 successfully receives a sound source data packet, if it receives a second ACK message from SNK-2 within its backoff duration, it will send a third ACK message to SRC.

[0057] Optionally, the timing for SNK-1 to send a third ACK message to SRC can be in the current time slot or in the next time slot. This third ACK message is used to indicate that both SNK-1 and SNK-2 have successfully received the specified sound source data packet.

[0058] It should be noted that SNK-1 and SNK-2 basically receive the sound source data packet at the same time in the scenario shown in this example. In some embodiments of the present application, if both SNK-1 and SNK-2 successfully receive the sound source data packet, SNK-1 and SNK-2 will attempt to send ACK messages to each other through a mechanism of random backoff durations. The random backoff duration will determine the backoff time length in a random manner. In this way, it can not only make the probabilities for SNK-1 and SNK-2 to compete for sending a third ACK message to SRC approximately equal, but also reduce the possibility for SNK-1 and SNK-2 to obtain the same random duration.

[0059] In the first possible manner, if SNK-1 preemptively sends a first ACK message to SNK-2, then in this scenario, SNK-2 feeds back a third ACK message to SRC, and the third ACK message is used to indicate that both SNK-1 and SNK-2 have successfully received the sound source data packet. This manner is as shown in Step 510.

[0060] In the second possible way, if SNK-2 sends the second ACK message to SNK-1 preemptively, then in this scenario, SNK-1 sends a third ACK message to SRC. The third ACK message is used to indicate that both SNK-1 and SNK-2 have successfully received the audio source data packet. This method is as shown in step 520.

[0061] The above method of sending ACK messages enables SNK-1, on the premise of successfully receiving the audio source data packet, to send the first ACK message to SNK-2 if it determines that after experiencing the first backoff duration and still not receiving the second ACK message from SNK-2. The first ACK message is used to indicate that SNK-1 has successfully received the audio source data packet, achieving the effect of notifying SNK-2 of the success or failure of SNK-1 to receive the audio source data packet. On the other hand, within this first backoff duration, if SNK-1 receives the second ACK message used to indicate the success or failure of SNK-2 to receive the audio source data packet, then SNK-1 sends a third ACK message to SRC. The third ACK message is used to indicate that both SNK-1 and SNK-2 have successfully received the audio source data packet.

[0062] It can be seen from this that the method of sending ACK messages provided by this application enables SNK-1 to either send the first ACK message to SNK-2, and then feedback the situation of SNK-1 and SNK-2 receiving the audio source data packet to SRC through SNK-2, or receive the second ACK message sent by SNK-2, and then feedback the third ACK message to SRC. The third ACK message is used to indicate that both SNK-1 and SNK-2 have successfully received the audio source data packet. Due to the backoff duration mechanism, the probabilities of SNK-1 and SNK-2 sending feedback messages to SRC are basically equal. Therefore, the technical solution of this application improves the problem in the prior art that SNK-1 always sends ACK messages to SRC, resulting in relatively fast energy consumption of this SNK.

[0063] This application provides another method of sending ACK messages based on the backoff duration, which can adapt to various communication scenarios. Refer to Figure 6 and the method of sending ACK messages includes:

[0064] Step 611, the first audio receiver receives the audio source data packet from the audio source.

[0065] In this example, SNK-1 receives the audio source data packet from SRC. Among them, if a communication link is established between SNK-1 and SRC, then SNK-1 receives the audio source data packet through this communication link. If no communication link is established between SNK-1 and SRC, then SNK-1 receives the audio source data packet by listening to the communication link between SNK-2 and SRC.

[0066] Step 612, if the sound source data packet is not successfully received from the sound source, SNK-1 does not send the first ACK message to the second audio receiver and does not send the third ACK message to the sound source.

[0067] In this example, if SNK-1 does not successfully receive the sound source data packet from SRC, then SNK-1 does not need to send the first ACK message indicating that SNK-1 has successfully received the sound source data packet externally, and at the same time, it no longer sends the third ACK message indicating that SNK-1 has successfully received the sound source data packet and SNK-2 has also successfully received the sound source data packet externally. In the case of not receiving the sound source data packet, when SNK-1 does not need to send the first ACK message to SNK-2, SNK-1 can stop waiting for the backoff duration and does not need to perform the operation of listening for the second ACK message. Since the scheme of neither sending ACK messages nor sending NACK messages when the sound source data packet is not successfully received is adopted, SNK-1 reduces power consumption and improves the battery life.

[0068] In this application, the second ACK message is sent from SNK-2 to SNK-1, and is used to indicate that SNK-2 has successfully obtained the sound source data packet from SRC. It should be noted that in a possible application mode, the existence of the second ACK message can be reflected by 0 or 1 of the specified data bit. When SNK-1 and SNK-2 have an agreement on the ACK data bit, if SNK-2 sets the ACK data bit to 1, it means that there is a second ACK message sent from SNK-2 to SNK-1. If SNK-2 sets the ACK data bit to 0, it means that there is no second ACK message sent from SNK-2 to SNK-1.

[0069] In the embodiment of this application, the third ACK message is a message sent from SNK-1 to SRC, and this message is used to notify SRC that both SNK-1 and SNK-2 have successfully received the sound source data packet. Since the probability of SNK-1 and SNK-2 sending this third ACK message to SRC can be balanced, this application balances the power consumption speed of SNK-1 and SNK-2.

[0070] Step 613, the first audio receiver determines the backoff duration using a random number and a time interval, and the end point of the backoff duration is earlier than the start point of the next time slot.

[0071] In some embodiments of this application, SNK-1 can determine the first backoff duration using the product of the first random number and the time interval. Among them, the first random number can be a random number generated by a built-in random number generation algorithm or module, and the time interval is a time slice of a specified duration. Thus, SNK-1 can determine a random number of time intervals as the first backoff duration.

[0072] Since in the next time slot, SRC will send a new audio source data packet. Therefore, the end point of the first backoff duration should be earlier than the start point of the next time slot. Based on this constraint, the product of the random number and the time interval will be shorter than the remaining duration of the current time slot.

[0073] After experiencing the determined backoff duration, if SNK-1 still has not received the second ACK message from SNK-2, then SNK-1 sends the first ACK message to SNK-2. In other words, the backoff duration is a control duration for controlling the timing of sending the ACK message.

[0074] Based on the above disclosed content, those skilled in the art can understand that the first backoff duration is the control duration for controlling SNK-1 to send the first ACK message, and the second backoff duration is the control duration for controlling SNK-2 to send the second ACK message.

[0075] Step 621, in the nth time interval, detect the channel energy of the channel between the first audio receiver and the second audio receiver. Where 1 ≤ n ≤ N - 1, and N is the number of time intervals included in the backoff duration.

[0076] In this example, SNK-1 detects the channel energy of the channel between SNK-1 and SNK-2 in each time interval. In one possible scenario, in each time interval, SNK-1 continuously detects the channel energy. In another possible scenario, in each time interval, SNK-1 detects the channel energy in a specified partial time period.

[0077] In the embodiment of the present application, after SNK-1 finishes executing step 621, it selects to execute one of step 622, step 623, and step 624 according to different situations.

[0078] Step 622, when the predetermined condition is satisfied, SNK-1 backs off to the (n + 1)th time interval until N time intervals (backoff duration) are completed.

[0079] Wherein, the predetermined condition includes that the channel energy is less than or equal to a predetermined threshold and / or there is no second ACK message on the channel.

[0080] In the first possible way, the predetermined condition includes that the channel energy is less than or equal to a predetermined threshold.

[0081] In the second possible way, the predetermined condition includes that there is no second ACK message on the channel.

[0082] In the third possible way, the predetermined condition includes that the channel energy is less than or equal to a predetermined threshold and there is no second ACK message on the channel.

[0083] When the channel energy is less than or equal to a predetermined threshold, it indicates that the channel noise between SNK-1 and SNK-2 is small or there is no signal occupying the channel.

[0084] Optionally, the predetermined threshold may be an energy threshold, such as values like -30dbm, -40dbm, or -50dbm, etc. This application does not limit the predetermined threshold.

[0085] Meanwhile, if there is no second ACK message on the channel, it indicates that SNK-2 has not preemptively sent a second ACK message to notify SNK-1.

[0086] In the embodiment of this application, when the predetermined condition is met, SNK-1 will back off to the (n + 1)-th time interval until N time intervals are completed. It should be noted that when the predetermined condition is met, it means that neither SNK-1 nor SNK-2 has preemptively sent its corresponding ACK message. SNK-1 will continue to back off the remaining time intervals and then continue to back off to the (n + 1)-th time interval until N time intervals are completed.

[0087] Step 623, when the channel energy is greater than the predetermined threshold, SNK-1 continuously detects the channel energy of the channel between the first audio receiver and the second audio receiver during the remaining time intervals (within its backoff duration).

[0088] In this step, when the channel energy is greater than the predetermined threshold, it indicates that there is significant noise interference in the channel, or it indicates that there is a signal being transmitted in the channel. At this time, SNK-1 will continuously detect the channel energy of the channel between SNK-1 and SNK-2 during the remaining intervals until the second ACK message is detected.

[0089] Step 624, when there is a second ACK message on the channel, stop detection and backoff.

[0090] In a possible implementation, when SNK-1 detects the second ACK message on the channel, it stops detection and backoff, thus ending the detection and backoff process based on the backoff duration. That is, if SNK-1 detects the second ACK message on the channel, it means that SNK-2 has preemptively sent the ACK information, and SNK-1 no longer needs to send the first ACK message to SNK-2. Therefore, SNK-1 will stop detection and backoff. The end point of the backoff duration still needs to be earlier than the start point of the next time slot.

[0091] Step 631, receive the second ACK message from the channel between the first audio receiver and the second audio receiver.

[0092] Step 632, based on receiving the second ACK message from the second audio receiver, send a third ACK message to the sound source in the next time slot.

[0093] In this step, if SNK-1 successfully receives the audio source data packet and receives the second ACK message from SNK-2, it sends a third message to SRC in the next time slot. Through this operation, SNK-1 can notify SRC so that SRC knows that both SNK-1 and SNK-2 have successfully received the audio source data packet.

[0094] Step 641: Based on not receiving the second ACK message from the second audio receiver after experiencing the backoff duration before the next time slot starts, send a first ACK message to the second audio receiver.

[0095] Step 641 is used to indicate that SNK-1 has successfully preemptively sent the first ACK message to SNK-2. At this time, if the opposite SNK-2 receives this first ACK and SNK-2 has also successfully received the audio source data packet, then SNK-2 will send a third ACK message to SRC.

[0096] In some embodiments of the present application, SNK-2 can determine the second backoff duration by multiplying the second random number and the time interval. Among them, the second random number can be a random number generated by a built-in random number generation algorithm or module, and the time interval is a time slice of a specified duration. SNK-2 can determine whether it receives the first ACK message sent by SNK-1 within the second backoff duration. Under the backoff mechanism, if SNK-1 preemptively sends the first ACK message to SNK-2 and it is received by SNK-2, then SNK-2 sends a third ACK message to the sound source.

[0097] Optionally, in a possible application example of the present application, the first audio receiver is the left wireless earphone and the second audio receiver is the right wireless earphone; or the first audio receiver is the right wireless earphone and the second audio receiver is the left wireless earphone.

[0098] In summary, the method for sending ACK messages provided by the embodiments of the present application can set the backoff duration through a random number and a time interval, so that the backoff durations obtained by SNK-1 and SNK-2 respectively are both random, making the probabilities of both sending the third ACK message to SRC equal, thereby balancing the power consumption speeds of SNK-1 and SNK-2. In the scenario where SNK-1 and SNK-2 are used simultaneously, this can avoid the situation where one of the audio receivers stops working due to premature exhaustion of its power.

[0099] Optionally, the technical solution of the present application can also be applied to the scenario where the two SNKs are respectively a wireless earphone, balancing the power consumption speeds of the two wireless earphones and reducing the probability of one of the wireless earphones powering off prematurely when the user uses the earphones.

[0100] Some embodiments of the present application provide another method for sending ACK messages, including:

[0101] Step a1: Receive the sound source data packet sent by the sound source within the current time slot. The sound source data packet will be acquired by the first audio receiver and the second audio simultaneously.

[0102] It should be noted that this embodiment is described by taking the application in SNK-2 as an example. SNK-1 can make an agreement with SRC in advance that at the beginning of the specified time slot, SRC sends the sound source data packet to SNK-1. Since SNK-2 can detect the sound source data packet, the effect that the sound source data packet is acquired by SNK-1 and SNK-2 simultaneously is achieved.

[0103] Step a2: Listen for the first feedback information sent by the first audio receiver based on the first backoff duration within the remaining duration of the current time slot. The first backoff duration is randomly determined by the first audio receiver, and the first feedback information is used to indicate the reception status of the sound source data packet by the first audio receiver.

[0104] As an example, when a certain audio receiver (SNK) needs to send a notification to another SNK, this SNK starts random backoff after receiving the sound source data packet from SRC, and continuously performs channel detection during the backoff process. The SNK that first receives the feedback information from another SNK will be used as the feedback device to send the third feedback information to SRC.

[0105] In this example, after SNK-2 finishes receiving the sound source data packet, SNK-2 will listen for the first feedback information sent by the first audio receiver based on the first backoff duration within the remaining duration of the current time slot. In one possible way, SNK-2 can detect the first feedback information by detecting the target channel, and the target channel is the channel used for the first audio receiver and the second audio receiver to communicate with each other.

[0106] The following describes the process of SNK-1 sending the first feedback information based on the first backoff duration. After the start of the current time slot, SNK-1 enters the receiving state (Rx state) to receive the sound source data packet sent by SRC in the transmitting state (Tx state). When the sound source data packet is received completely, SNK-1 randomly calculates the first backoff duration, and the first backoff duration is shorter than the remaining duration of the current time slot. For example, the remaining duration of the current time slot is 5 time slices, and SNK-1 randomly determines that the first backoff duration is 3 time slices long. In this case, SNK-1 can send the first feedback information to SNK-2 after receiving the sound source data packet and experiencing these 3 time slices. In one possible way, the first feedback information is the acknowledgment information ACK.

[0107] Step a3, in response to detecting the first feedback information before the end of the second backoff duration, generate third feedback information based on the first feedback information and the reception status of the sound source data packet by the second audio receiver, and send it to the sound source.

[0108] In the embodiment of the present application, SNK-2 will also determine the second backoff duration after receiving the sound source data packet, and the second backoff duration is randomly determined by the second audio receiver. When the first feedback information is detected before the end of the second backoff duration, SNK-2 will generate third feedback information based on the first feedback information and the reception status of the sound source data packet by SNK-2 itself. Schematically, SNK-2 will perform different operations according to different reception statuses of the sound source data packet by itself.

[0109] In a possible execution manner of SNK-2, SNK-2 realizes sending the third feedback information to the SRC by executing step (b1) and step (b2).

[0110] Step b1, in response to the first feedback information being the acknowledgment information ACK and the reception status of the sound source data packet by the second audio receiver being the acknowledgment information ACK, generate the common acknowledgment information ACK.

[0111] In this step, since the first feedback information is the acknowledgment information ACK, it indicates that SNK-1 has correctly received the sound source data packet. Also, since the reception status of the sound source data packet by the second audio receiver is the acknowledgment information ACK, it indicates that SNK-2 has correctly received the sound source data packet.

[0112] Step b2, send the common acknowledgment information ACK to the sound source.

[0113] According to the above analysis, both SNK-1 and SNK-2 have correctly received the sound source data packet. Therefore, SNK-2 will send the common acknowledgment information ACK to the SRC as the third feedback information to inform the SRC that the sound source data packet has been successfully sent to SNK-1 and SNK-2 respectively.

[0114] In another possible execution manner of SNK-2, SNK-2 executes step c.

[0115] Step c, in response to the reception status of the sound source data packet by the second audio receiver being not received, cancel sending the third feedback information to the sound source.

[0116] When the reception status of the sound source data packet by SNK-2 is not received, it indicates that SNK-2 has not correctly received the sound source data packet. In this case, SNK-2 will cancel sending the third feedback information to the SRC. This processing method helps SNK-2 save energy consumption.

[0117] For example, if the total duration of the current time slot includes 16 time slices, and SNK-2 uses 9 time slices to receive the audio source data packet, SNK-2 checks whether the first feedback information is received in the remaining 7 time slices. Among them, the first feedback information is sent by SNK-1 according to the first backoff duration. In a similar communication scenario, given that SNK-2 needs 9 time slices to receive the audio source data packet, SNK-1 will generally also take about 9 time slices to receive the audio source data packet. SNK-1 will randomly determine a first backoff duration. Optionally, the upper limit of the first backoff duration can be the remaining duration of the current time slot, that is, the upper limit of the first backoff duration is 7 time slices. Taking the first backoff duration as 3 time slices as an example, after 12 time slices of the current time slot, SNK-1 will send the first feedback information to SNK-2.

[0118] In some other embodiments of the present application, after receiving the audio source data packet, SNK-1 and SNK-2 notify each other of the feedback information, that is, SNK-1 attempts to send the first feedback information to SNK-2, while SNK-2 attempts to send the second feedback information to SNK-1. In this case, through the mechanism of random backoff, a feedback device is determined from SNK-1 and SNK-2, and the third feedback information is sent to SRC by the feedback device, so that SRC can know the situation of SNK-1 and SNK-2 receiving the audio source data packet.

[0119] Figure 7 It is a schematic diagram of a random backoff mechanism provided by the embodiments shown in the present application. In Figure 7 it, it includes an audio source 130 (SRC), a first audio receiver (SNK-1) 111, and a second audio receiver (SNK-2) 121. Taking a time slice with a fixed length as a unit, after SNK-2 correctly receives the audio source data packet sent by SRC, it starts to randomly select a value p, and forms a second backoff duration with p time slices. At the same time, after SNK-1 correctly receives the audio source data packet sent by SRC, it starts to randomly select a value q, and forms a first backoff duration with q time slices. In some embodiments, when p is equal to q, in the actual scenario, the SNK with a smaller delay will preemptively send feedback information to the other party, so that the SNK that receives the feedback information is used as the feedback device.

[0120] Specifically, at the beginning of time slot N, the sound source 130 enters the Tx state and sends sound source data packets to the first audio receiver 111 and the second audio receiver 121. Correspondingly, at the beginning of time slot N, the first audio receiver 111 and the second audio receiver 121 enter the Rx state and receive the sound source data packets sent by the sound source 130. After the sound source 130 finishes sending the sound source data packets, it exits the Tx state. Correspondingly, the first audio receiver 111 randomly selects a value, for example, randomly gets 5, and forms a first backoff duration with 5 time slices. Similarly, the second audio receiver 121 randomly selects a value, for example, randomly gets 6, and forms a second backoff duration with 6 time slices.

[0121] In some embodiments of the present application, referring to Figure 7 , the first audio receiver 111 first enters the Rx state after the start of time slot N, and then enters the first backoff duration of 5 time slices. The second audio receiver 121 first enters the Rx state after the start of time slot N, and then enters the second backoff duration of 6 time slices. That is, the first audio receiver 111 needs to back off for 5 time slices after the end of the Rx state and then can send the first feedback information, while the second audio receiver 121 needs to back off for 6 time slices after the end of the Rx state and then can send the second feedback information. In other words, when the backoff duration ends, the audio receiver SNK can send the feedback information. In Figure 7 the shown scenario, since the backoff duration of the first audio receiver 111 ends first, the first audio receiver 111 takes the lead in sending the first feedback information to the second audio receiver 121, which makes the second audio receiver 121 become the feedback device. At the same time, after the second audio receiver 121 receives the sound source data packet in the current time slot, it listens for the first feedback information sent by the first audio receiver 111 based on the first backoff duration within the remaining duration. When detecting the first feedback information before the end of the second backoff duration, the second audio receiver 121 generates the third feedback information based on the first feedback information and its own reception state of receiving the sound source data packet and sends it to the sound source, so that the sound source can obtain an indication of whether to retransmit the sound source data packet. In this way, through the random backoff scheme, the power consumption speeds of the first audio receiver and the second audio receiver are matched.

[0122] Based on the random backoff mechanism provided by the present application, the following will be introduced in the form of cases (Case) according to different possible scenarios. Before introducing the cases separately, 6 scenarios that may occur for SNK-2 under the random backoff mechanism can be listed according to the different conditions shown in Table 1.

[0123]

[0124] Table 1

[0125] Among the six scenarios that may occur in the random backoff mechanism shown in Table 1, six cases are used for illustration respectively.

[0126] For Case 1, please refer to Figure 8 , Figure 8 which is a schematic diagram of the implementation of a random backoff mechanism provided by an embodiment of the present application. In Figure 8 , both SNK-2 and SNK-1 have successfully received the sound source data packet sent by SRC. That is, the reception status of SNK-2 receiving the sound source data packet is ACK. After SNK-2 receives the sound source data packet, SNK-2 randomly determines the second backoff duration, which consists of 3 time slices in total. After SNK-1 receives the sound source data packet, SNK-1 randomly determines the first backoff duration, which consists of 4 time slices in total. Schematically, in Case 1, the first feedback information, the second feedback information, and the third feedback information are all confirmation information ACK.

[0127] Before the expiration of the first backoff duration, SNK-1 continuously detects the channel energy of the target channel. Whenever a time slice expires and the channel energy of the target channel is less than the preset threshold, SNK-1 deducts the duration of the first time slice from the first backoff duration. Similarly, SNK-2 also detects the channel energy of the target channel at the expiration of each time slice, and when the channel power is less than the preset threshold, it deducts the duration of the second time slice from the second backoff duration. In Figure 8 the shown Case 1, when the first three time slices expire for SNK-1 and SNK-2, the channel energy of the target channel is detected to be less than the preset threshold for both. Therefore, time slices are deducted from their respective backoff durations. At this time, the second backoff duration of SNK-2 has ended and the first feedback information sent by SNK-1 has not been detected. Therefore, SNK-2 sends the second feedback information to SNK-1 through the target channel.

[0128] Subsequently, SNK-1 detects the target channel at the end of the fourth time slice. The result is that the channel power is greater than the preset threshold and the second feedback information is not detected. Therefore, SNK-1 maintains the fourth time slice valid, does not deduct it and restarts the timing. If the channel power detected at the expiration of the next time slice is still greater than the preset threshold and the second feedback information is not detected, the fourth time slice is continued to be maintained and the timing is restarted. In Case 1, after the fourth time slice expires for SNK-1, the channel power is detected to be less than the preset threshold and the second feedback information is not detected. At this time, SNK-1 deducts the length of the fourth time slice from the first backoff duration. Since the first backoff duration has ended and SNK-1 has not received the second feedback information. Therefore, SNK-1 sends the first feedback information to SNK-2 through the target channel.

[0129] It should be noted that please refer to Figure 8, when SNK-2 sends the second feedback information to SNK-1, due to a large amount of noise interference in the target channel, the second feedback information fails to be successfully transmitted to SNK-1. Therefore, SNK-1 mistakenly believes that SNK-2 has not sent the second feedback information and continues to execute the sending process of the first feedback information. In Case 1, after SNK-2 detects the first feedback information sent by SNK-1, it successfully receives the first feedback information. Therefore, SNK-2 generates the third feedback information (ACK) based on the received first feedback information (i.e., ACK) and its own reception status (i.e., ACK), and sends the third feedback information to SRC in the next time slot (i.e., the (N + 1)-th time slot) of the current time slot (the N-th time slot).

[0130] For Case 2, please refer to Figure 9 , Figure 9 is a schematic diagram of the implementation of another random backoff mechanism provided by the embodiments of the present application. In Figure 9 , both SNK-2 and SNK-1 successfully receive the sound source data packet sent by SRC. That is, the reception status of SNK-2 for receiving the sound source data packet is ACK. After SNK-2 finishes receiving the sound source data packet, SNK-2 randomly determines the second backoff duration, which consists of 3 time slices in total. After SNK-1 finishes receiving the sound source data packet, SNK-1 randomly determines the first backoff duration, which consists of 4 time slices in total. Schematically, in Case 2, the first feedback information, the second feedback information, and the third feedback information are all confirmation information ACK.

[0131] Before the expiration of the first backoff duration, SNK-1 continuously detects the channel energy of the target channel. When the first time slice expires and the channel power is less than the preset threshold, SNK-1 subtracts the duration of the first time slice from the first backoff duration. Similarly, before the expiration of the second backoff duration, SNK-2 continuously detects the channel energy of the target channel. When the second time slice expires and the channel power is less than the preset threshold, the second backoff duration is subtracted by the duration of the second time slice. In Figure 9In Case 2 shown above, when the channel energy of the target channel detected by both SNK-1 and SNK-2 is less than the preset threshold at the expiration of the first three time slices, the time slices are deducted from their respective backoff durations. At this time, the second backoff duration of SNK-2 has ended and the first feedback information sent by SNK-1 has not been detected yet. Therefore, SNK-2 sends the second feedback information to SNK-1 through the target channel. Correspondingly, after receiving the second feedback information when the first backoff duration of SNK-1 has not ended, SNK-1 generates the third feedback information according to the second feedback information and its own reception status (i.e., ACK). Subsequently, SNK-1 sends the third feedback information to the sound source SRC in the next time slot (time slot N + 1) of the current time slot (time slot N), so that the SRC knows that the sound source data packet has been successfully received by SNK-1 and SNK-2.

[0132] For Case 3, please refer to Figure 10 , Figure 10 which is a schematic diagram of the implementation of another random backoff mechanism provided by the embodiments of the present application. In Figure 10 , both SNK-2 and SNK-1 have successfully received the sound source data packet sent by the SRC. After SNK-2 finishes receiving the sound source data packet, SNK-2 randomly determines the second backoff duration, which consists of 4 time slices in total. After SNK-1 finishes receiving the sound source data packet, SNK-1 randomly determines the first backoff duration, which consists of 3 time slices in total. Schematically, in Case 3, the first feedback information, the second feedback information, and the third feedback information are all acknowledgment information ACK.

[0133] Before the expiration of the first backoff duration, SNK-1 will continuously detect the channel energy of the target channel. When the channel power is less than the preset threshold and the first time slice expires, SNK-1 will deduct the duration of the first time slice from the first backoff duration. Similarly, SNK-2 will continuously detect the channel energy of the target channel before the expiration of the second backoff duration, and when the second time slice expires and the channel power is less than the preset threshold, SNK-2 will deduct the duration of the second time slice from the second backoff duration. In Figure 10In Case 3 shown above, when the first three time slices expired for both SNK-1 and SNK-2, the channel energy of the target channel was detected to be less than the preset threshold. Therefore, a time slice was deducted from their respective backoff durations. At this time, the first backoff duration of SNK-1 had ended and the second feedback information sent by SNK-2 had not been detected yet. Therefore, SNK-1 sent the first feedback information to SNK-2 through the target channel. Correspondingly, after receiving the first feedback information when the second backoff duration of SNK-2 had not ended, SNK-2 generated the third feedback information based on the first feedback information and its own reception status, and SNK-2 exited the current random backoff process. Subsequently, SNK-2 sent the third feedback information to the SRC in the next time slot (time slot N + 1) of the current time slot (time slot N), so that the SRC knew that the sound source data packet had been successfully received by SNK-1 and SNK-2.

[0134] For Case 4, please refer to Figure 11 , Figure 11 is a schematic diagram of the implementation of a random backoff mechanism provided by an embodiment of the present application. In Figure 11 , both SNK-2 and SNK-1 successfully received the sound source data packet sent by the SRC. After SNK-2 received the sound source data packet, SNK-2 randomly determined the second backoff duration, which consisted of a total of 3 time slices. After SNK-1 received the sound source data packet, SNK-1 randomly determined the first backoff duration, which consisted of a total of 4 time slices. Schematically, in Case 4, the first feedback information, the second feedback information, and the third feedback information are all acknowledgment information ACK.

[0135] Before the expiration of the first backoff duration, SNK-1 continuously detected the channel energy of the target channel. When the channel power was less than the preset threshold and the first time slice expired, SNK-1 deducted the duration of the first time slice from the first backoff duration. Similarly, SNK-2 also continuously detected the channel energy of the target channel before the expiration of the second backoff duration, and when the channel power was less than the preset threshold and the second time slice expired, SNK-2 deducted the duration of the second time slice from the second backoff duration. In Figure 11 Case 4 shown above, when the first time slice expired for both SNK-1 and SNK-2, the channel power in the target channel was always detected to be greater than the preset threshold until the end of the current time slot (time slot N). In the current time slot (time slot N), since SNK-2 neither sent the second feedback information to SNK-1 nor received the first feedback message sent by SNK-1, SNK-2 could not confirm whether the reception status of SNK-1 was ACK. Therefore, SNK-2 did not send the third feedback information to the SRC in the next time slot (time slot N + 1) of the current time slot (time slot N).

[0136] For Case 5, please refer to Figure 12 ,Figure 12 This is a schematic diagram of the implementation of a random backoff mechanism provided by an embodiment of the present application. In Figure 12 , SNK-2 fails to successfully receive the audio source data packet sent by SRC, while SNK-1 successfully receives the audio source data packet sent by SRC. That is, the reception status of SNK-2 for receiving the audio source data packet is "not received". After SRC sends the audio source data packet, SNK-2 does not perform the random backoff mechanism and will not enter the listening state within the remaining duration of the current time slot (time slot N). After SNK-1 receives the audio source data packet, SNK-1 randomly determines the first backoff duration, which consists of a total of 3 time slices. SNK-1 will continue to deduct according to the deduction method of the first backoff duration. When the first backoff duration ends, SNK-1 will send the first feedback information to SNK-2. However, since SNK-2 does not perform detection, SNK-2 will not obtain the first feedback information. Therefore, neither SNK-1 nor SNK-2 will send the third feedback information to SRC in the next time slot (time slot N+1) of the current time slot (time slot N).

[0137] For Case 6, please refer to Figure 13 , Figure 13 This is a schematic diagram of the implementation of a random backoff mechanism provided by an embodiment of the present application. In Figure 13 , neither SNK-2 nor SNK-1 successfully receives the audio source data packet sent by SRC. Therefore, within the remaining duration of the current time slot (time slot N), neither SNK-2 nor SNK-1 will execute the random backoff mechanism, and they will not detect each other either. In the next time slot (time slot N+1) of the current time slot (time slot N), neither SNK-2 nor SNK-1 will send the third feedback information to SRC.

[0138] Correspondingly, since SRC does not receive ACK in time slot N+1, SRC considers that the audio source data packet transmission fails and will retransmit the audio source data packet.

[0139] The following provides embodiments of the technical solution of the present application implemented on a device, which can be used to execute the method embodiments of the present application. For details not specifically disclosed, please refer to the above method embodiments of the present application.

[0140] Figure 14 This is a structural block diagram of a first audio receiver (device) provided by an exemplary embodiment. The first audio receiver (SNK-1) is configured to communicate with the audio source, and the first audio receiver includes:

[0141] The first sending module 1410 is configured to send a first ACK message to the second audio receiver when, in response to successfully receiving an audio source data packet from the audio source, the backoff duration for sending the first ACK message is completed before the start of the next time slot after receiving the audio source data packet and the second ACK message is not received from the second audio receiver;

[0142] The second sending module 1420 is configured to send a third ACK message to the audio source when the audio source data packet is successfully received and the second ACK message is received from the second audio receiver.

[0143] In an optional embodiment, the above device further includes a backoff duration determination module that determines the backoff duration using a random number and a time interval, where the end point of the backoff duration is earlier than the start point of the next time slot.

[0144] In an optional embodiment, the random number used by the above device is N, the length of the time interval is T, and the backoff duration is N * T.

[0145] In an optional embodiment, the above device further includes a backoff module that detects the channel energy of the channel between the first audio receiver and the second audio receiver in the nth time interval, and when a predetermined condition is satisfied, backs off to the (n + 1)th time interval until N time intervals are completed, where 1 ≤ n ≤ N - 1.

[0146] In an optional embodiment, the above predetermined condition includes that the channel energy is less than or equal to a predetermined threshold; and / or, there is no second ACK message on the channel.

[0147] In an optional embodiment, when the channel energy is greater than the predetermined threshold, the backoff module continues to detect the channel energy of the channel between the first audio receiver and the second audio receiver in the nth time interval.

[0148] In an optional embodiment, the above device further includes a first stop module that stops detection and backoff when there is a second ACK message on the channel.

[0149] In an optional embodiment, the above device further includes a second stop module that does not send a second ACK message to the second audio receiver and does not send a third ACK message to the audio source if the audio source data packet is not successfully received from the audio source.

[0150] In an optional embodiment, the second sending module 1420 sends a third ACK message to the audio source in the next time slot when the audio source data packet is successfully received and the second ACK message is received from the second audio receiver.

[0151] In an alternative embodiment, the first audio receiver is a left wireless earphone and the second audio receiver is a right wireless earphone; or the first audio receiver is a right wireless earphone and the second audio receiver is a left wireless earphone.

[0152] In summary, compared with the prior art, the embodiment of the present device no longer restricts that only SNK-2 can send feedback information to SNK-1, but randomly determines a feedback device that sends feedback information to SRC from SNK-2 and SNK-1 through a random backoff mechanism, so that SNK-2 and SNK-1 have approximately equal probabilities of sending feedback information to SRC statistically. Therefore, the power consumption speeds of SNK-2 and SNK-1 are balanced, and the problem that the power of one of the devices of SNK-2 and SNK-1 is consumed too quickly is solved.

[0153] The feedback information sending device provided in this embodiment can also make SNK-2 and SNK-1 detect and notify each other through a random backoff mechanism, instead of having SNK-2 detect and SNK-1 notify fixedly. According to the random backoff mechanism, SNK-2 and SNK-1 do not have to send and receive feedback information according to a fixed timing sequence, but send feedback information based on their respective randomly determined backoff durations, which reduces the timing requirements of the process of SRC obtaining feedback information for SNK-2 and SNK-1.

[0154] The feedback information sending device provided in this embodiment can also make SNK-2 and SNK-1 detect each other respectively based on the random backoff mechanism, thereby reducing the possibility of being interfered when sending feedback information by itself.

[0155] The feedback information sending device provided in this embodiment can also, when both SNK-2 and SNK-1 receive the audio source data packet from SRC, even if the first feedback information sent from SNK-1 to SNK-2 is interfered, SNK-2 still has the opportunity to send the second feedback information to SNK-1, so as to ensure that at least one of SNK-1 and SNK-2 can send an ACK to SRC, preventing SRC from unnecessarily retransmitting the audio source data packet.

[0156] Figure 15 is a structural block diagram of an audio receiver provided by an exemplary embodiment of the present application, as Figure 15 shown. The audio receiver includes a processor 1520, a memory 1540, and a transceiver component 1560. At least one instruction is stored in the memory 1540, and the instruction is loaded and executed by the processor 1520 to implement the feedback information sending method as described in various method embodiments of the present application. The transceiver component 1560 is used to send feedback information, or detect the channel power consumption in the target channel, or receive feedback information.

[0157] In the present application, the audio receiver 1500 receives the audio source data packets sent by the audio source within the current time slot, and the audio source data packets are acquired by both the first audio receiver and the second audio receiver at the same time; the second audio receiver listens for the first feedback information sent by the first audio receiver based on the first backoff duration within the remaining duration of the current time slot, where the first backoff duration is randomly determined by the first audio receiver, and the first feedback information is used to indicate the reception status of the audio source data packets by the first audio receiver; in response to detecting the first feedback information before the end of the second backoff duration, the second audio receiver generates the third feedback information based on the first feedback information and the reception status of the audio source data packets by the second audio receiver, and sends the third feedback information to the audio source; where the second backoff duration is randomly determined by the second audio receiver.

[0158] The processor 1520 may include one or more processing cores. The processor 1520 connects various parts within the entire audio receiver 1500 using various interfaces and lines, and executes various functions of the audio receiver 1500 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1540, and by calling the data stored in the memory 1540. Optionally, the processor 1520 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 1520 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above modem may not be integrated into the processor 1520, but may be implemented separately by a single chip.

[0159] The memory 1540 may include a Random Access Memory (RAM), or may also include a Read-Only Memory (ROM). Optionally, the memory 1540 includes a non-transitory computer-readable storage medium. The memory 1540 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1540 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area can store the data involved in the following various method embodiments, etc.

[0160] The transceiver component 1560 includes a signal processing unit and an antenna. The transceiver component 1560 can both detect the channel energy of the target channel, receive feedback information sent via the target channel, send feedback information to the sound source, or can also send feedback information to the first audio receiver.

[0161] Please refer to Figure 16 , Figure 16 is a schematic diagram of a wireless audio system provided by an embodiment of the present application. In the wireless audio system 1600, it includes a first audio receiver 1610, a second audio receiver 1620, and a sound source 1630. Among them, the first audio receiver 1610 can communicate with the sound source 1630 and can also communicate with the second audio receiver 1620.

[0162] An embodiment of the present application also provides a computer-readable medium. At least one instruction is stored on the computer-readable medium. When the at least one instruction is loaded and executed by a processor, it can implement the method for sending feedback information in the above various embodiments.

[0163] It should be noted that: when the feedback information sending device provided in the above embodiment executes the feedback information sending method, only the above division of each functional module is used for illustration. In actual application, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the feedback information sending device provided in the above embodiment and the feedback information sending method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

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

[0165] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk, an optical disc, etc.

[0166] The above are only exemplary embodiments that can be implemented in the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A method for a first audio receiver to send an ACK message, wherein a communication link is established between the first audio receiver, a second audio receiver, and a sound source, characterized in that, The method includes: Receiving a sound source data packet from the sound source; Based on determining that a second ACK message from the second audio receiver has not been received within a first backoff duration, sending a first ACK message to the second audio receiver, where the second audio receiver is configured to send a third ACK message to the sound source based on determining that the first ACK message and the sound source data packet have been received within a second backoff duration, and the first backoff duration is less than the second backoff duration; or, Based on determining that the second ACK message has been received within the first backoff duration, sending the third ACK message to the sound source, where the second ACK message is sent by the second audio receiver after determining that a first ACK message from the first audio receiver has not been received within the second backoff duration, and the first backoff duration is greater than the second backoff duration; Wherein, the first ACK message is used to indicate that the first audio receiver has received the sound source data packet, the second ACK message is used to indicate that the second audio receiver has received the sound source data packet, the third ACK message is used to indicate that both the first audio receiver and the second audio receiver have received the sound source data packet, and the start times of the first backoff duration and the second backoff duration are the same moment.

2. The method according to claim 1, wherein The method further includes: Determining the first backoff duration based on a first random number and a time slice, where the time slice is the minimum time unit for the first audio receiver to perform communication operations, and the first backoff duration does not exceed the time slot for the first audio receiver to receive the sound source data packet.

3. The method according to claim 1, wherein The method further includes: Based on determining that the second ACK message has been received within the first backoff duration, ending the first backoff duration.

4. The method according to claim 1, characterized in that, The method further includes: Based on determining that the second ACK message has been received within the first backoff duration, not sending the first ACK message to the second audio receiver.

5. The method according to claim 1, characterized in that, The method further includes: Detecting the channel energy of the channel between the first audio receiver and the second audio receiver, and based on determining that the channel energy is not higher than a predetermined threshold, backing off to the next time slice within the first backoff duration.

6. The method according to claim 1, wherein The method further includes: Detecting the channel energy of the channel between the first audio receiver and the second audio receiver, and based on determining that the channel energy is not lower than a predetermined threshold, continuously detecting the channel energy within the first backoff duration until the second ACK message is detected.

7. A method for an audio device to send an ACK message, characterized in that, The method includes: The first receiving unit and the second receiving unit of the audio device respectively receive a sound source data packet from the sound source; The first receiving unit sends a first ACK message to the second receiving unit based on determining that a second ACK message from the second receiving unit has not been received within a first backoff duration; the second receiving unit sends a third ACK message to the sound source based on determining that the first ACK message from the first receiving unit has been received within a second backoff duration, and the first backoff duration is less than the second backoff duration; or, The second receiving unit sends the second ACK message to the first receiving unit based on determining that the first ACK message from the first receiving unit is not received within the second backoff duration; the first receiving unit sends the third ACK message to the sound source based on determining that the second ACK message from the second receiving unit is received within the first backoff duration, and the first backoff duration is greater than the second backoff duration; Wherein, the start times of the first backoff duration and the second backoff duration are the same moment.

8. The method according to claim 7, wherein The method further includes: Determining the first backoff duration based on a first random number and a time slice, Determining the second backoff duration based on a second random number and the time slice, Wherein, the first backoff duration does not exceed the time slot for the first receiving unit to receive the sound source data packet, and the second backoff duration does not exceed the time slot for the second receiving unit to receive the sound source data packet.

9. The method according to claim 7, characterized in that, The method further includes: Detecting the channel energy of the channel between the first receiving unit and the second receiving unit on one side of the first receiving unit and on one side of the second receiving unit respectively.

10. A first audio receiver for communicating with a sound source and a second audio receiver, the first audio receiver includes a sending module and a receiving module, characterized in that, The receiving module is configured to: Receive a sound source data packet from the sound source; The sending module is configured to: Based on determining that the second ACK message from the second audio receiver is not received within the first backoff duration, send the first ACK message to the second audio receiver, and the second audio receiver is configured to send the third ACK message to the sound source based on determining that the first ACK message is received within the second backoff duration and the sound source data packet is received, and the first backoff duration is less than the second backoff duration; Or, Based on determining that the second ACK message is received within the first backoff duration, send the third ACK message to the sound source, and the second ACK message is sent by the second audio receiver after determining that the first ACK message from the first audio receiver is not received within the second backoff duration, and the first backoff duration is greater than the second backoff duration; Wherein, the first ACK message is used to indicate that the first audio receiver receives the sound source data packet, the second ACK message is used to indicate that the second audio receiver receives the sound source data packet, the third ACK message is used to indicate that both the first audio receiver and the second audio receiver receive the sound source data packet, and the start times of the first backoff duration and the second backoff duration are the same moment.

11. The first audio receiver according to claim 10, wherein The first audio receiver is further configured to: Determine the first backoff duration based on a first random number and a time slice, wherein the first backoff duration does not exceed the time slot for the first audio receiver to receive the sound source data packet.

12. The first audio receiver according to claim 10, wherein The first audio receiver is further configured to: End the first backoff duration based on determining that the second ACK message is received within the first backoff duration.

13. The first audio receiver according to claim 10, wherein The first audio receiver is further configured to: Based on determining that the second ACK message is received within the first backoff duration, not send the first ACK message to the second audio receiver.

14. The first audio receiver according to claim 10, wherein The first audio receiver is further configured to: Detect the channel energy of the channel between the first audio receiver and the second audio receiver.

15. An audio device, comprising a first receiving unit and a second receiving unit, wherein: The first receiving unit includes a first sending module and a first receiving module, and the second receiving unit includes a second sending module and a second receiving module, where: The first receiving module is configured to: receive audio source data packets from an audio source; The second receiving module is configured to: receive audio source data packets from the audio source; The first sending module is configured to: based on determining that the second ACK message from the second receiving unit is not received within a first backoff duration, send a first ACK message to the second receiving unit; and, the second sending module is configured to: based on determining that the first ACK message from the first receiving unit is received within a second backoff duration, send a third ACK message to the audio source, where the first backoff duration is less than the second backoff duration; or, The first sending module is configured to: based on determining that the second ACK message is received within the first backoff duration, send the third ACK message to the audio source; and, the second sending module is configured to: based on determining that the first ACK message from the first receiving unit is not received within the second backoff duration, send the second ACK message to the first receiving unit, where the first backoff duration is greater than the second backoff duration; Wherein, the start times of the first backoff duration and the second backoff duration are the same moment.

16. The audio device according to claim 15, wherein: The first receiving unit is further configured to: Determine the first backoff duration based on a first random number and a time slice, The second receiving unit is further configured to: Determine the second backoff duration based on a second random number and the time slice, Wherein, the first backoff duration does not exceed the time slot for the first receiving unit to receive the audio source data packets, and the second backoff duration does not exceed the time slot for the second receiving unit to receive the audio source data packets.

17. The audio device according to claim 15, wherein: The first receiving unit is further configured to: Detect the channel energy of the channel between the first receiving unit and the second receiving unit, The second receiving unit is further configured to: Detect the channel energy of the channel between the first receiving unit and the second receiving unit.

18. A first earphone, used in cooperation with a second earphone, the first earphone comprising: A communication chip, configured to receive audio source data packets from an audio source; An audio player, configured to play sounds based on the audio source data packets; A power management chip, configured to supply electrical energy to the communication chip and the audio player; Specifically, the communication chip is further configured to send a first ACK message to the second earphone based on determining that no second ACK message from the second earphone is received within a first backoff duration. The second earphone is configured to send a third ACK message to the sound source based on determining that the first ACK message is received within a second backoff duration and the sound source data packet is received. The first backoff duration is less than the second backoff duration; or, send the third ACK message to the sound source based on determining that the second ACK message from the second earphone is received within the first backoff duration. The second ACK message is sent by the second earphone after determining that no first ACK message from the first earphone is received within the second backoff duration. The first backoff duration is greater than the second backoff duration; wherein the first ACK message is used to indicate that the first earphone has received the sound source data packet, the second ACK message is used to indicate that the second earphone has received the sound source data packet, the third ACK message is used to indicate that both the first earphone and the second earphone have received the sound source data packet, and the start times of the first backoff duration and the second backoff duration are the same.

19. A wireless earphone device, comprising: the first audio receiver according to any one of claims 10 to 14, or the first earphone of claim 18; and a second audio receiver used in cooperation with the first audio receiver, or a second earphone used in cooperation with the first earphone.

20. A wireless audio system, comprising: a sound source; the first audio receiver according to any one of claims 10 to 14, or the first earphone of claim 18; and a second audio receiver used in cooperation with the first audio receiver, or a second earphone used in cooperation with the first earphone.

21. A computer-readable storage medium storing a batch of program instructions, wherein, When the program instructions are executed by a processor, the method according to any one of claims 1 to 6, or the method according to any one of claims 7 to 9 is implemented.

Citation Information

Patent Citations

  • Operation mode switch of wireless headphones

    US10412481B1