Wireless audio data transmission method and device and electronic equipment

By setting up peripheral devices to monitor and forward audio packets in the Bluetooth Audio LE Audio architecture, the audio playback problem caused by poor link quality is solved, and transmission reliability and user experience are improved.

CN119012076APending Publication Date: 2024-11-22NANJING ZGMICRO CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410964039.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the Bluetooth Audio LE Audio architecture, poor link quality caused by distance or blockages, resulting in lag and distortion of audio playback, which gives the user a poor experience.

Method used

Among the multiple peripheral devices connected to the central device, the peripheral device is set to monitor the communication link between other peripheral devices and the central device, and forward audio packets, and build a new packet transmission path to replace its own low-quality communication link. to improve audio transmission reliability and playback effect.

Benefits of technology

When the peripheral devices have poor communication link quality, new transmission paths are built through high-quality links to improve the audio playback effect, and improve the reliability and user experience of audio transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012076A_ABST
    Figure CN119012076A_ABST
Patent Text Reader

Abstract

The invention provides a wireless audio data transmission method and device and electronic equipment, and relates to the technical field of wireless audios, when the method is applied to first peripheral equipment, the method comprises the following steps: receiving a first audio data packet sent by center equipment based on a first communication link, and sending the first audio data packet to the center equipment; receiving a second audio data packet sent by the central equipment by monitoring a second communication link, wherein the second communication link is a communication link between second peripheral equipment and the central equipment; receiving a first audio data packet forwarded by the second peripheral device based on a third communication link, and / or forwarding the second audio data packet to the second peripheral device based on the third communication link; the third communication link is a communication link between the first peripheral equipment and the second peripheral equipment. According to the method, the audio transmission reliability of the peripheral equipment can be improved and the audio playing effect of the peripheral equipment can be improved by setting the scheme of forwarding the audio data packet by using the peripheral equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of wireless audio, and in particular to a method, device and electronic device for wireless audio data transmission. Background Art

[0002] With the rapid development of Bluetooth technology, Bluetooth audio applications are becoming more and more widespread in people's daily lives, such as Bluetooth Low Energy Audio (LE Audio).

[0003] The unicast application of LE Audio consists of a central device and at least one peripheral device. Due to the long distance from the central device, or the presence of obstacles or reflection problems between the central device and the peripheral devices, the link quality of at least some peripheral devices is poor, and audio playback may be stuck or distorted, giving the user a poor experience.

[0004] In other words, the audio playback effect of the LE Audio architecture provided by the relevant technology is poor. Summary of the invention

[0005] The purpose of the present disclosure is to provide a wireless audio data transmission method, device and electronic device to solve the technical problem of poor audio playback effect of the LE Audio architecture provided by the related art.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for wireless audio data transmission, which is applied to a first peripheral device, and the method includes:

[0007] receiving a first audio data packet sent by a central device based on a first communication link, and receiving a second audio data packet sent by the central device by monitoring a second communication link, wherein the second communication link is a link for a second peripheral device to communicate with the central device to transmit an audio stream;

[0008] receiving a first audio data packet forwarded by the second peripheral device based on a third communication link, and / or forwarding the second audio data packet to the second peripheral device based on the third communication link;

[0009] The third communication link is a link for communication between the first peripheral device and the second peripheral device.

[0010] In a second aspect, an embodiment of the present disclosure provides a wireless audio data transmission system, the system comprising:

[0011] A central device and N peripheral devices, where N is an integer greater than 1;

[0012] The central device is used to: send a first audio data packet to a first peripheral device based on a first communication link, and send a second audio data packet to a second peripheral device based on a second communication link, the N peripheral devices include the first peripheral device and the second peripheral device, and a third communication link is established between the first peripheral device and the second peripheral device;

[0013] The first peripheral device is used to: receive a second audio data packet sent by the central device by monitoring the second communication link, and forward the second audio data packet to the second peripheral device based on the third communication link;

[0014] The second peripheral device is used for: receiving a first audio data packet sent by the central device by monitoring the first communication link, and forwarding the first audio data packet to the first peripheral device based on the third communication link.

[0015] In a third aspect, an embodiment of the present disclosure provides a wireless audio data transmission device, applied to a first peripheral device, the device comprising:

[0016] A peripheral receiving module receives a first audio data packet sent by a central device based on a first communication link, and receives a second audio data packet sent by the central device by monitoring a second communication link, wherein the second communication link is a link for a second peripheral device to communicate with the central device to transmit an audio stream;

[0017] a peripheral transmission module, configured to receive the first audio data packet forwarded by the second peripheral device based on a third communication link, and / or forward the second audio data packet to the second peripheral device based on the third communication link;

[0018] The third communication link is a link for communication between the first peripheral device and the second peripheral device.

[0019] In a fourth aspect, an embodiment of the present disclosure further provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the wireless audio data transmission method as described in the first aspect.

[0020] In a fifth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the wireless audio data transmission method as described in the first aspect are implemented.

[0021] In a sixth aspect, an embodiment of the present disclosure further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the wireless audio data transmission method as described in the first aspect.

[0022] In the present disclosure, among the multiple peripheral devices connected to the central device, the peripheral devices are configured to not only communicate with the central device through their own communication links and send and receive audio data packets, but also monitor the communication links between other peripheral devices and the central device and receive packets, and support forwarding operations of monitored audio data packets between different peripheral devices. This can, when the quality of the communication links of some peripheral devices themselves is poor, build new data packet transmission paths through peripheral devices with high-quality communication links to temporarily replace the low-quality communication links of the peripheral devices themselves, thereby improving the audio transmission reliability of the peripheral devices corresponding to the low-quality communication links and improving the audio playback effects of the peripheral devices when their own communication links are disturbed. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flowchart of a wireless audio data transmission method provided by an embodiment of the present application;

[0024] Figure 2 is a schematic diagram showing a connection relationship between a central device and N peripheral devices provided in an embodiment of the present application;

[0025] Figure 3 It is a schematic diagram of a timing diagram of sending and receiving packets provided in an embodiment of the present application;

[0026] Figure 4 It is a schematic diagram of a timing diagram of sending and receiving packets corresponding to solution 1 provided in an embodiment of the present application;

[0027] Figure 5 It is a schematic diagram of a timing diagram of sending and receiving packets corresponding to solution 2 provided in an embodiment of the present application;

[0028] Figure 6 It is a structural schematic diagram of a wireless audio data transmission system provided in an embodiment of the present application;

[0029] Figure 7 It is a structural schematic diagram of a wireless audio data transmission device provided in an embodiment of the present application;

[0030] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] The present disclosure provides a wireless audio data transmission method, which is applied to a first peripheral device, such as Figure 1 As shown, the method includes:

[0033] Step 101: Receive a first audio data packet sent by a central device based on a first communication link, and receive a second audio data packet sent by the central device by monitoring a second communication link.

[0034] The second communication link is a link for the second peripheral device to communicate with the central device to transmit an audio stream.

[0035] like Figure 2 As shown, the central device is communicatively connected with N peripheral devices, where N is an integer greater than 1. The peripheral devices and the central device can communicate bidirectionally or unidirectionally. The N peripheral devices correspond to different channels and / or different languages ​​of the same audio content transmitted by the central device, for example: a peripheral device corresponding to the left audio channel and a peripheral device corresponding to the right audio channel, or a peripheral device corresponding to the left channel of the Chinese audio stream, a peripheral device corresponding to the right audio channel of the Chinese audio stream, a peripheral device corresponding to the left channel of the English audio stream, a peripheral device corresponding to the right audio channel of the English audio stream, etc.

[0036] The first communication link may be a bidirectional communication link or a unidirectional communication link; the monitoring link of the first peripheral device to the second communication link may be a bidirectional communication link or a unidirectional communication link.

[0037] The first peripheral device and the second peripheral device may be understood as two different peripheral devices among the N peripheral devices.

[0038] It should be understood that in the present application, for the N peripheral devices that are communicatively connected to the central device, only some of the N peripheral devices can be set to monitor the communication links of other peripheral devices and receive corresponding audio data packets, or each of the N peripheral devices can be set to monitor the communication links of other peripheral devices and receive corresponding audio data packets.

[0039] For example: when N is 2, if the link for communication between peripheral device No. 1 and central device is set as communication link No. 1, and the link for communication between peripheral device No. 2 and central device is set as communication link No. 2, then only peripheral device No. 1 can be set to listen to communication link No. 2, or only peripheral device No. 2 can be set to listen to communication link No. 1, or peripheral device No. 1 can be set to listen to communication link No. 2 and peripheral device No. 2 can be set to listen to communication link No. 1.

[0040] In addition, for a peripheral device that monitors the communication links of other peripheral devices, when there are multiple other peripheral devices, the peripheral device can monitor the communication links corresponding to some of the multiple other peripheral devices, or can monitor the communication links corresponding to each of the multiple other peripheral devices.

[0041] For example, when N is 3, if three peripheral devices are defined as peripheral device No. 1, peripheral device No. 2, and peripheral device No. 3, and when peripheral device No. 1 is set to perform link monitoring, then the aforementioned multiple other peripheral devices include peripheral device No. 2 and peripheral device No. 3. At this time, peripheral device No. 1 can only monitor the communication link corresponding to peripheral device No. 2, or only monitor the communication link corresponding to peripheral device No. 3, or monitor both the communication link corresponding to peripheral device No. 2 and the communication link corresponding to peripheral device No. 3.

[0042] In some embodiments, the central device can be called a unicast media sender (Unicast Media Sender, UMS), and the peripheral device can be called a unicast media receiver (Unicast Media Receiver, UMR). An encrypted low-energy Bluetooth asynchronous (Low Energy Asynchronous Connectionless Link, LE ACL) connectionless link is established between the UMS and the UMR. The ACL channel is used to set up isochronous streams, and to turn on, off, control the volume and media of the streams, as well as all other functions required by the user.

[0043] Isochronous stream does not contain any control information - it is used to carry audio stream information.

[0044] Unicast connections are called connected isochronous streams (CIS). When the central device plays audio, it puts the audio data on the isochronous channel and sends it to the peripheral device in the form of an isochronous stream. A confirmation scheme is used between the two devices to provide flow control. The connected isochronous stream has an ACL control channel, which is started and running throughout the life cycle of the CIS carrying the audio data.

[0045] In this implementation, both the first communication link and the second communication link may be connected isochronous streams (CIS) links.

[0046] Step 102: Receive a first audio data packet forwarded by the second peripheral device based on a third communication link, and / or forward the second audio data packet to the second peripheral device based on the third communication link.

[0047] The third communication link is a link for communication between the first peripheral device and the second peripheral device.

[0048] In the present disclosure, among the multiple peripheral devices connected to the central device, the peripheral devices are configured to not only communicate with the central device through their own communication links and send and receive audio data packets, but also monitor the communication links between other peripheral devices and the central device and receive packets, and support forwarding operations of monitored audio data packets between different peripheral devices. This can, when the quality of the communication links of some peripheral devices themselves is poor, build new data packet transmission paths through peripheral devices with high-quality communication links to temporarily replace the low-quality communication links of the peripheral devices themselves, thereby improving the audio transmission reliability of the peripheral devices corresponding to the low-quality communication links and improving the audio playback effects of the peripheral devices when their own communication links are disturbed.

[0049] In one embodiment, the first peripheral device, the second peripheral device and the central device belong to the same private device set, and the private device set includes key information used for the peripheral devices to communicate with the central device and transmit audio streams.

[0050] In this embodiment, the first peripheral device, the second peripheral device and the central device are configured to belong to the same private device set, so as to facilitate the central device to manage the first peripheral device and the second peripheral device while ensuring the data privacy of the audio stream during the transmission process.

[0051] Exemplarily, the N peripheral devices and the central device can be set to be located in the same coordination set (which can be understood as the aforementioned private device set). The coordination set is constructed based on the standard Coordinated Set Identification Profile (CSIP) defined by Bluetooth low energy audio. The central device's corresponding role in the coordination set is a set coordinator, which is used to discover and manage devices in the coordination set. The peripheral devices' corresponding role in the coordination set is a set member. The central device can perform the same volume control, audio playback and other operations on two or more peripheral devices in the same coordination set.

[0052] Each set member will contain an instantiated coordination set service, which contains the number of set members and the public set identity resolving key (SIRK). SIRK (which can be understood as the aforementioned secret key information) is a random number with a length of 128 bytes, which is used to generate and resolve the resolvable set identifier (RSI) in the set member broadcast packet to ensure the security of the link.

[0053] Different peripheral devices (such as the first peripheral device and the second peripheral device mentioned above) will all send broadcasts with the RSI field and instantiate a set coordination service with the same SIRK. If the central device wants to discover different peripheral devices in the same coordination set, it will first discover at least one member in the coordination set (for example, through a friendly name). For example, it will first discover the first peripheral device and pair it with it to establish a Low Energy Asynchronous Connectionless Link (LE ACL) connection. The SIRK is obtained by discovering the coordination set service. The SIRK can be made public in encrypted form or in plain text.

[0054] The central device uses SIRK to resolve RSI from other broadcasting devices, and determines whether the broadcasting device belongs to the coordination set identified by the SIRK when the RSI is successfully resolved. It eventually finds that other peripheral devices (such as the second peripheral device) are members of the same coordination set as the first peripheral device, and the central device continues to pair with the second peripheral device to establish an LE ACL connection.

[0055] The operations of the central device on the first peripheral device will be mirrored to the second peripheral device. For example, operations such as play, pause, and adjust volume on the first peripheral device will be copied to the second peripheral device.

[0056] When the central device plays audio, the central device will establish corresponding isochronous streams with different peripheral devices respectively (for example, establish isochronous stream CIS1 and isochronous stream CIS2 with the first peripheral device and the second peripheral device respectively). Different isochronous streams (such as CIS1 and CIS2) have a common synchronization time reference point. After the audio decoders of the first peripheral device and the second peripheral device receive the audio data stream transmitted by the central device, they can present the audio streams at the same time.

[0057] For example, the timing configuration parameters of the isochronous synchronization group (CIG) formed by isochronous streams CIS1 and CIS2 can be: setting the isochronous stream interval (ISO Interval) of each CIS to 10ms, the payload (Burst Number, BN) to 1, the sub event (Sub Event) to 4, the flush timeout (Flush Timeout, FT) to 2, and the sub event interval (SubInterval) to 1.768ms. The timing diagram of the sending and receiving packets in this example can be as follows Figure 3 shown.

[0058] In one embodiment, before receiving the second audio data packet sent by the central device by monitoring the second communication link, the method further includes:

[0059] acquiring link information of the second communication link based on a control link established between the first peripheral device and the second peripheral device, and monitoring the second communication link based on the link information of the second communication link;

[0060] The link information of the first communication link is sent to the second peripheral device based on the control link, so that the second peripheral device monitors the first communication link based on the link information of the first communication link.

[0061] In this embodiment, a control link is established between the first peripheral device and the second peripheral device to facilitate link information interaction between the first peripheral device and the second peripheral device.

[0062] For example, the control link may be an asynchronous connectionless link, such as an LE ACL link.

[0063] It should be understood that the above setting can be understood as different peripheral devices among the aforementioned N peripheral devices can exchange link information through the control link, thereby realizing monitoring of the communication links of other peripheral devices.

[0064] Exemplarily, when the N peripheral devices are located in the same coordination set, the first peripheral device and the second peripheral device are in a mirror relationship, the basic link parameters of the first communication link and the second communication link (such as physical layer PHY (1M or 2M), isochronous stream interval (ISO Interval), sub-event interval (Sub Interval), number of sub-events (NSE), payload, maximum transmission data length, refresh timeout and other information) are consistent, and the link connection parameters (such as Bluetooth reference clock (clk, us), CIS offset parameter, access code, event count value, where the access code and event count value information determine the usage of the channel table) are different, and the aforementioned link information can be understood as the above-mentioned link connection parameters.

[0065] In one embodiment, the central device communicates with the first peripheral device and the second peripheral device in consecutive isochronous intervals, each of the isochronous intervals including a first time slot for transmitting the first audio transmission packet and a second time slot for transmitting the second audio data packet;

[0066] The method of forwarding the second audio data packet to the second peripheral device based on the third communication link includes:

[0067] upon successful reception of the target second audio data packet, forwarding the target second audio data packet to the second peripheral device within the target second time slot based on the third communication link;

[0068] The second peripheral device stops receiving the target second audio data packet based on the second communication link within the target second time slot, and the first peripheral device stops receiving the target second audio data packet based on the monitoring link of the second communication link within the target second time slot; the target second audio data packet is a second audio data packet in a plurality of second audio transmission packets, and the target second time slot is a second time slot in a plurality of second time slots corresponding to the target second audio data packet;

[0069] The receiving, based on the third communication link, the first audio data packet forwarded by the second peripheral device comprises:

[0070] In the case where the second peripheral device successfully receives the target first audio data packet, receiving the target first audio data packet forwarded by the second peripheral device within the target first time slot based on the third communication link;

[0071] Among them, the first peripheral device stops receiving the target first audio data packet based on the first communication link within the target first time slot, and the second peripheral device stops receiving the target first audio data packet based on the listening link of the first communication link within the target first time slot, the target first audio data packet is a first audio data packet among multiple first audio transmission packets, and the target first time slot is a first time slot among multiple first time slots corresponding to the target first audio data packet.

[0072] In this embodiment, the forwarding operation of the corresponding audio data packet is completed by multiplexing the time slots allocated to the first communication link and / or the second communication link, so as to avoid the additional time overhead of the audio data packet during the forwarding process, shorten the delay of the audio data packet during the forwarding process as much as possible, and enable the peripheral device to receive the corresponding audio data packet through forwarding and perform audio playback to present a better playback effect.

[0073] Among them, the multiple second audio transmission packets can be understood as multiple audio data packets included in the audio stream transmitted by the central device to the second peripheral device. Similarly, the multiple first audio transmission packets can be understood as multiple audio data included in the audio stream transmitted by the central device to the first peripheral device.

[0074] The multiple first time slots corresponding to the target first audio data packet can be understood as the multiple time slots in which the central device sends the target first audio data packet through the first communication link. Similarly, the multiple second time slots corresponding to the target second audio data packet can be understood as the multiple time slots in which the central device sends the target second audio data packet through the second communication link.

[0075] In this embodiment, if the first peripheral device fails to successfully receive the target second audio data packet and there are still multiple second time slots corresponding to the target second audio data packet remaining, the first peripheral device will receive the target second audio data packet based on the listening link of the second communication link in at least one remaining second time slot until the second target audio packet is successfully received and / or there are no remaining second time slots; similarly, if the second peripheral device fails to successfully receive the target first audio data packet and there are still multiple first time slots corresponding to the target first audio data packet remaining, the second peripheral device will receive the target first audio data packet based on the listening link of the first communication link in at least one remaining first time slot until the first target audio packet is successfully received and / or there are no remaining first time slots.

[0076] In one example, if the target second audio data packet is set to correspond to 4 second time slots, when the first peripheral device successfully receives the target second audio data packet by monitoring the second communication link in the first second time slot, the first peripheral device can select at least one second time slot from the remaining three second time slots, and send the target second audio data packet to the second peripheral device through the third communication link. For example: in each of the remaining three second time slots, the target second audio data packet is sent to the second peripheral device through the third communication link to maximize the use of the time slot resources allocated to the target second audio data packet, that is, to obtain the most data packet sending opportunities, thereby increasing the probability of the second peripheral device successfully receiving the target second audio data packet through the third communication link.

[0077] In another example, if the target first audio data packet is set to correspond to 4 first time slots, when the second peripheral device successfully receives the target first audio data packet by monitoring the first communication link in the first first time slot, the second peripheral device can select at least one first time slot from the remaining three first time slots, and send the target first audio data packet to the first peripheral device through the third communication link.

[0078] In one embodiment, receiving the first audio data packet forwarded by the second peripheral device based on the third communication link includes:

[0079] In a case where the link communication quality of the first communication link is lower than the link communication quality of the first monitoring link, receiving the first audio data packet forwarded by the second peripheral device based on a third communication link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link;

[0080] The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises:

[0081] When the link communication quality of the second communication link is lower than the link communication quality of the second monitoring link, the second audio data packet is forwarded to the second peripheral device based on the third communication link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

[0082] Among them, when the link communication quality of the first communication link is higher than the link communication quality of the first listening link, or when the link communication quality of the first communication link is the same as the link communication quality of the first listening link, the first peripheral device receives the first audio data packet sent by the central device based on the first communication link.

[0083] Similarly, when the link communication quality of the second communication link is higher than the link communication quality of the second listening link, or when the link communication quality of the second communication link is the same as the link communication quality of the second listening link, the second peripheral device receives the second audio data packet sent by the central device based on the second communication link.

[0084] In this embodiment, when the communication quality of the link corresponding to the peripheral device itself is lower than the communication quality of the monitoring link, the method of forwarding audio data packets through other peripheral devices is selected for packet reception; and when the communication quality of the link corresponding to the peripheral device itself is not lower than the communication quality of the monitoring link, the link corresponding to the peripheral device itself is selected for packet reception, so as to always select a better communication link for the transmission of audio data packets, so that the audio playback effect of the peripheral device is maintained at a high level.

[0085] In this embodiment, in order to support the comparison of communication qualities of different communication links, the first peripheral device will record the channel state information (CSI) of the first communication link and the second monitoring link for sending and receiving data packets, and the second peripheral device will also record the channel state information (CSI) of the second communication link and the first monitoring link for sending and receiving data packets. For example, the channel state information includes: the channel number when receiving the corresponding audio data packet on each SubEvent, the RSSI value and packet data length when the reception is correct, and the error type when the reception is erroneous, wherein the error type includes reception timeout, CRC error, length error, etc.

[0086] By recording the channel status information, the peripheral device can continuously evaluate the reception quality of each link within an event. Based on the reception quality of multiple consecutive events, the link quality of each link and the real-time changes of the link can be evaluated.

[0087] Exemplarily, the peripheral device may record the aforementioned channel state information by maintaining a First In First Out (FIFO) queue.

[0088] In one example, a first peripheral device may send a message characterizing the link communication quality of the first communication link and / or the link communication quality of the second listening link to a second peripheral device via a third communication link, and the second peripheral device may also send a message characterizing the link communication quality of the second communication link and / or the link communication quality of the first listening link to the first peripheral device via the third communication link, so as to support comparison of the communication qualities of the first communication link and the first listening link and support comparison of the communication qualities of the second communication link and the second listening link.

[0089] In one embodiment, receiving the first audio data packet forwarded by the second peripheral device based on the third communication link includes:

[0090] When the link communication quality of the first communication link meets the low-quality communication condition and the link communication quality of the first monitoring link meets the high-quality communication condition, receiving the first audio data packet forwarded by the second peripheral device based on the third communication link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link;

[0091] The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises:

[0092] When the link communication quality of the second communication link meets the low-quality communication condition and the link communication quality of the second monitoring link meets the high-quality communication condition, the second audio data packet is forwarded to the second peripheral device based on the third communication link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

[0093] In the case where the link communication quality of the first communication link satisfies a high-quality communication condition, the first peripheral device receives the first audio data packet based on the first communication link;

[0094] Similarly, when the link communication quality of the second communication link meets the high-quality communication condition, the second peripheral device receives the second audio data packet based on the second communication link.

[0095] In this embodiment, by coordinating the setting of low-quality communication conditions and high-quality communication conditions, the frequency of communication quality information interaction between different peripheral devices through the third communication link can be reduced while maintaining the audio playback effect of the peripheral device at a high level, thereby reducing the power consumption overhead caused by the interaction of communication quality information.

[0096] In one example, when the first peripheral device determines that the link communication quality of the first communication link meets the low-quality communication condition, it can actively send a link switching request to the second peripheral device through the third communication link. After the second peripheral device receives the link switching request, when the second peripheral device determines that the link communication quality of the first listening link meets the high-quality communication condition, the second peripheral device responds to the switching message of the link switching request to the first peripheral device through the third communication link, so that the first peripheral device stops receiving the first audio data packet sent by the first communication link within the time slot for receiving the first audio data packet, and instead starts receiving the first audio data packet forwarded by the third communication link.

[0097] In this example, when the first peripheral device determines that the link communication quality of the first communication link meets the low-quality communication conditions, the first peripheral device can send the aforementioned link switching request to some other peripheral devices (such as the nearest peripheral device, or a peripheral device whose device distance is less than a preset distance threshold) or all other peripheral devices. When the first peripheral device receives the switching message in response to the link switching request fed back by at least two other peripheral devices, the first peripheral device can randomly select (or based on a preset device selection rule) one of the at least two other peripheral devices to forward the audio data packet.

[0098] In another example, when the first peripheral device determines that the link communication quality of the second listening link meets the high-quality communication conditions, it can also actively send a link assistance message to some other peripheral devices (such as the nearest peripheral device, or a peripheral device whose device distance is less than a preset distance threshold) or all other peripheral devices. When a link assistance request from at least one other peripheral device in response to the link assistance message is received, the audio data packet is received and forwarded based on the corresponding listening link within the time slot indicated by the link assistance request.

[0099] In one embodiment, the central device communicates with the first peripheral device and the second peripheral device at consecutive isochronous intervals, and the method further comprises:

[0100] Acquire a first target number, and acquire a second target number, wherein the first target number is used to indicate: within a preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first communication link is lower than a first quality threshold; the second target number is used to indicate: within the preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first listening link is lower than the first quality threshold;

[0101] In a case where the first target quantity is greater than a first quantity threshold, determining that the link communication quality of the first communication link meets a low-quality communication condition;

[0102] In a case where the first target number is less than the second number threshold, determining that the link communication quality of the first communication link meets a high-quality communication condition;

[0103] When the second target number is greater than the first number threshold, determining that the link communication quality of the first monitoring link meets a low-quality communication condition;

[0104] When the second target number is less than the second number threshold, it is determined that the link communication quality of the first monitoring link meets the high-quality communication condition.

[0105] In this embodiment, by counting the number of equal time intervals in which the communication quality value of the link is lower than a preset quality threshold, and comparing the counted number with the preset number threshold, it is possible to more accurately determine whether the corresponding link meets the high-quality communication condition or whether it meets the low-quality communication condition.

[0106] The second quantity threshold is less than or equal to the first quantity threshold.

[0107] Exemplarily, the communication quality value of the corresponding link in each equal time interval may be determined by counting the packet loss rate of the corresponding link in each equal time interval, wherein the lower the packet loss rate, the higher the communication quality value.

[0108] In some embodiments, the first target number is used to indicate: within a preset number of isochronous intervals, the number of isochronous intervals in which the communication quality value of the first communication link is continuously lower than a first quality threshold; the second target number is used to indicate: within the preset number of consecutive isochronous intervals, the number of isochronous intervals in which the communication quality value of the first listening link is continuously lower than the first quality threshold.

[0109] By counting the number of communication quality values ​​lower than the first quality threshold in consecutive equal time intervals, statistical interference caused by fluctuations in link communication quality can be avoided, and a more accurate link quality determination result can be obtained.

[0110] The settings of the first quality threshold, the first quantity threshold, and the second quantity threshold can be selected according to actual needs, and the embodiments of the present application do not limit this.

[0111] In one embodiment, obtaining the second target quantity includes:

[0112] In a case where it is determined that the link communication quality of the first communication link meets the low-quality communication condition, sending a first switching request message to the second peripheral device based on the third communication link, where the first switching request message carries the first target quantity;

[0113] receiving a first switching message fed back by the second peripheral device in response to the first switching request message, wherein the first switching message carries the second target quantity;

[0114] The method further comprises:

[0115] receiving, based on the third communication link, a second switching request message sent by the second peripheral device, the second switching request message carrying a third target number, the third target number being used to indicate: within the preset number of isochronous intervals, the number of isochronous intervals in which the communication quality value of the second communication link is lower than the first quality threshold;

[0116] When the fourth target number is less than the second number threshold, a second switching message is fed back to the second peripheral device based on the third communication link, and the second switching message carries the fourth target number. The fourth target number is used to indicate: within the preset number of isochronous intervals, the communication quality value of the second listening link is lower than the number of isochronous intervals of the first quality threshold.

[0117] In this embodiment, when the peripheral device monitors that the link communication quality of its own communication link meets the low-quality communication conditions, the peripheral device regulates the communication quality judgment of its own communication link and the monitoring link of its own communication link by defining the switching request message and the sending and receiving process and message content of the switching message, thereby ensuring the reliable operation of the data packet forwarding mechanism.

[0118] In some embodiments, it can be defined that the second peripheral device will only feedback the first switching message to the first peripheral device in response to the first switching request message if it determines that the second target number meets the high-quality communication conditions; and if the second peripheral device determines that the second target number does not meet the high-quality communication conditions, it will not respond to the first switching request message, or, in response to the first switching request message, it will feedback a first switching rejection message to the first peripheral device, and the first switching rejection message may carry the second target number or may not carry the second target number.

[0119] Similarly, it can be defined that the first peripheral device will only respond to the second switching request message and feedback the second switching message to the second peripheral device if it determines that the fourth target number meets the high-quality communication conditions; and if the first peripheral device determines that the second target number does not meet the high-quality communication conditions, it will not respond to the second switching request message, or, in response to the second switching request message, it will feedback a second switching rejection message to the second peripheral device, and the second switching rejection message may carry the fourth target number or may not carry the fourth target number.

[0120] In one embodiment, receiving the first audio data packet forwarded by the second peripheral device based on the third communication link includes:

[0121] Receiving a first audio data packet forwarded by the second peripheral device based on a third communication link until a first stop condition is met, wherein the first stop condition is that a duration of receiving the first audio data packet forwarded by the second peripheral device is greater than or equal to a first preset duration, or the first stop condition is that a link communication quality of the first communication link meets the high-quality communication condition;

[0122] The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises:

[0123] The second audio data packet is forwarded to the second peripheral device based on the third communication link until a second stop condition is met, wherein the second stop condition is that the duration of forwarding the second audio data packet to the second peripheral device is greater than or equal to a second preset duration, or the second stop condition is that the link communication quality of the second communication link meets the high-quality communication condition.

[0124] In this embodiment, when different peripheral devices receive data packets by forwarding, two setting methods for the duration of the forwarding process are provided: static duration (in this case, the first stop condition is that the duration of receiving the first audio data packet forwarded by the second peripheral device is greater than or equal to the first preset duration) and dynamic duration (in this case, the first stop condition is that the link communication quality of the first communication link meets the high-quality communication condition). Users can choose one or both of them for use according to actual needs, which can make the application of the method of the present application more flexible.

[0125] In some implementations, different quantity thresholds may be set to further subdivide the low communication quality of the link, and configure different duration setting strategies for the duration of the forwarding process corresponding to the links with different degrees of low communication quality, such as dividing the low communication quality of the link into a first level and a second level, wherein the first level indicates that the communication quality of the link is low, but the link quality is more likely to return to a normal / high quality level; the second level indicates that the communication quality of the link is low, and the link quality is more likely to return to a normal / high quality level;

[0126] For links at the first level, a shorter static duration can be selected to set the duration of the corresponding forwarding process; and for links at the second level, a dynamic duration can be selected to set the duration of the corresponding forwarding process.

[0127] Exemplarily, if the first communication link of the first peripheral device is set to CIS1, the second communication link of the second peripheral device is set to CIS2, the link (i.e., the first monitoring link) through which the first peripheral device monitors CIS1 is CIS21, the link (i.e., the second monitoring link) through which the second peripheral device monitors CIS2 is CIS12, and the third communication link between the first peripheral device and the second peripheral device for switching message interaction and data packet forwarding is CIS3;

[0128] If the first peripheral device detects that the link quality value of CIS1 is lower than the quality threshold, and the number of continuous cycles below the quality threshold (which can be understood as the number of consecutive equal-time intervals) is greater than 1 and less than 5 (the values ​​1 and 5 can be understood as the aforementioned different quantity thresholds), it can be considered that the low link quality of the isochronous synchronous link CIS1 between the first peripheral device and the central device lasts for a short time (that is, it is at the first level of low communication quality), and the possibility of the link quality returning to normal is relatively high. At this time, Plan 1 (Plan 1 corresponds to the static duration) can be adopted to perform link switching and data packet forwarding operations.

[0129] like Figure 4 As shown, the specific solution 1 is: the CIS1 link quality (which can be understood as the first target number) is sent to the second peripheral device through CIS3; after the second peripheral device receives the CIS1 link quality, it evaluates its own CIS12 link quality (which can be understood as the second target number) in the same period of time, and compares the two sets of data;

[0130] If the CIS12 link quality is better than the CIS1 link quality, and the second peripheral device has received the first audio data packet in the CIS12 time slot of the Event X cycle, a first switching message is sent to the first peripheral device via CIS3, and in the CIS12 time slot of the next Event X+1 cycle, the first audio data packet in the CIS12 time slot of the Event X cycle is sent to the first peripheral device via CIS3; after the first peripheral device receives the first switching message from the second peripheral device in the Event X cycle, it stops receiving data packets from the central device in the CIS1 time slot of the Event X+1 cycle, and instead switches to CIS3, waiting to receive the first audio data packet in the CIS12 time slot of the Event X cycle forwarded by the second peripheral device.

[0131] Since the FT parameter is 2, the first peripheral device continues not to receive data packets from the central device in the CIS1 time slot of the Event X+1 cycle. In the CIS1 time slot of the Event X+2 cycle, the central device sends a new first audio data packet. The first peripheral device continues to receive the new first audio data packet sent by the central device in the CIS1 time slot of the Event X+2 cycle. In the CIS21 time slot, the first peripheral device receives the data packet sent from the central device to the second peripheral device and caches it in the link control layer module, but does not reply to the data packet. The channel state information of the received data packets in the CIS1 time slot and the CIS21 time slot are recorded respectively.

[0132] It should be noted that the time and channel of the CIS21 link timeslot are consistent with those of the CIS2 link, but when CIS3 uses the CIS21 timeslot to send and receive packets, the channel used is different from the channel of the CIS21 link. This is to avoid affecting the communication with the central device.

[0133] If the first peripheral device detects that the link quality value of CIS1 is lower than the quality threshold, and the number of continuous cycles below the quality threshold (which can be understood as the number of consecutive isochronous intervals) is greater than 5, it can be considered that the link quality of the isochronous synchronization link CIS1 between the first peripheral device and the central device is low for a long time (that is, it is at the second level of low communication quality), and the possibility of the link quality returning to normal is small. At this time, Plan 2 (Plan 2 corresponds to dynamic duration) can be adopted to perform link switching and data packet forwarding operations.

[0134] like Figure 5 As shown, the second scheme is specifically as follows: sending a first switching message (carrying the CIS1 link quality, that is, carrying the first target number) to the second peripheral device through CIS3; after receiving the first switching message, the second peripheral device evaluates its own CIS12 link quality (which can be understood as the second target number) in the same period of time, and compares the two sets of data;

[0135] If the second peripheral device has received the first audio data packet of the CIS12 time slot of the Event X cycle, it will send a first switching message to the first peripheral device through CIS3, and continue to receive the data packet sent from the central device to the first peripheral device in the CIS12 time slot of the next Event X+1 cycle, cache it in the link control layer module, and reply to the data packet. After the central device receives the reply packet of the data packet, it believes that the second peripheral device has correctly received the data packet and stops retransmitting the data packet. Since the Sub Event is usually large, greater than or equal to 4, and the FT is 2, the CIS12 link quality is better. After correctly receiving the first audio data packet of the CIS12 time slot of the Event X cycle, there will be more CIS12 link time slots available. In the remaining CIS12 link time slots, the second peripheral device switches to CIS3 and sends the first audio data packet of the CIS12 time slot of the Event X cycle received on the CIS12 link to the first peripheral device.

[0136] For the first peripheral device, after receiving the reply message of the second switching message, the first peripheral device stops receiving the data packet of the central device, and switches to CIS3, waiting to receive the first audio data packet of the CIS12 time slot of the Event X period forwarded by the second peripheral device.

[0137] When the first peripheral device successfully receives the first audio data packet through CIS3 and there are remaining CIS1 link time slots, the first peripheral device continues to receive data packets from the central device in the remaining CIS1 link time slots, and may correctly receive the data packet or fail to correctly receive the data packet, but does not reply to the data packet;

[0138] The first peripheral device records the channel status information of the data packet received in the CIS1 time slot; the CIS1 link quality is evaluated based on the channel status information reception quality of multiple consecutive CIGEvents. If the CIS1 link quality is evaluated to be restored to normal, a link recovery message carrying the CIS1 link quality is sent to the second peripheral device through CIS3. After receiving the message, the second peripheral device replies with the link recovery message, and continues to receive the data packet sent from the central device to the first peripheral device in the CIS12 time slot of the next Event cycle and caches it in the link control layer module, and does not reply to the data packet.

[0139] After receiving the reply to the third switching message, the first peripheral device continues to receive data packets from the central device in the next Event cycle CIS1 link time slot and replies to the data packets. At this point, the first peripheral device resumes normal communication with the central device.

[0140] The present disclosure provides a wireless audio data transmission system. Figure 6 As shown, the wireless audio data transmission system 600 includes:

[0141] A central device 601 and N peripheral devices 602, where N is an integer greater than 1;

[0142] The central device 601 is used to: send a first audio data packet to a first peripheral device based on a first communication link, and send a second audio data packet to a second peripheral device based on a second communication link, the N peripheral devices 602 include the first peripheral device and the second peripheral device, and a third communication link is established between the first peripheral device and the second peripheral device;

[0143] The first peripheral device is used to: receive the second audio data packet sent by the central device 601 by monitoring the second communication link, and forward the second audio data packet to the second peripheral device based on the third communication link;

[0144] The second peripheral device is used to: receive the first audio data packet sent by the central device 601 by monitoring the first communication link, and forward the first audio data packet to the first peripheral device based on the third communication link.

[0145] In one embodiment,

[0146] The first peripheral device is further configured to: acquire link information of the second communication link based on a control link established between the first peripheral device and the second peripheral device, and monitor the second communication link based on the link information of the second communication link;

[0147] The link information of the first communication link is sent to the second peripheral device based on the control link, so that the second peripheral device monitors the first communication link based on the link information of the first communication link.

[0148] In one embodiment, the central device 601 communicates with the first peripheral device and the second peripheral device in consecutive isochronous intervals, each of which includes a first time slot for transmitting the first audio transmission packet and a second time slot for transmitting the second audio data packet;

[0149] The first peripheral device is further configured to: upon successful reception of a target second audio data packet, forward the target second audio data packet to the second peripheral device within a target second time slot based on the third communication link;

[0150] The second peripheral device stops receiving the target second audio data packet based on the second communication link within the target second time slot, and the first peripheral device stops receiving the target second audio data packet based on the monitoring link of the second communication link within the target second time slot; the target second audio data packet is a second audio data packet in a plurality of second audio transmission packets, and the target second time slot is a second time slot in a plurality of second time slots corresponding to the target second audio data packet;

[0151] In the case where the second peripheral device successfully receives the target first audio data packet, receiving the target first audio data packet forwarded by the second peripheral device within the target first time slot based on the third communication link;

[0152] Among them, the first peripheral device stops receiving the target first audio data packet based on the first communication link within the target first time slot, and the second peripheral device stops receiving the target first audio data packet based on the listening link of the first communication link within the target first time slot, the target first audio data packet is a first audio data packet among multiple first audio transmission packets, and the target first time slot is a first time slot among multiple first time slots corresponding to the target first audio data packet.

[0153] In one embodiment, the first peripheral device is further configured to:

[0154] In a case where the link communication quality of the first communication link is lower than the link communication quality of the first monitoring link, receiving the first audio data packet forwarded by the second peripheral device based on a third communication link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link;

[0155] The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises:

[0156] When the link communication quality of the second communication link is lower than the link communication quality of the second monitoring link, the second audio data packet is forwarded to the second peripheral device based on the third communication link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

[0157] In one embodiment, the first peripheral device is further configured to:

[0158] When the link communication quality of the first communication link meets the low-quality communication condition and the link communication quality of the first monitoring link meets the high-quality communication condition, receiving the first audio data packet forwarded by the second peripheral device based on the third communication link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link;

[0159] The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises:

[0160] When the link communication quality of the second communication link meets the low-quality communication condition and the link communication quality of the second monitoring link meets the high-quality communication condition, the second audio data packet is forwarded to the second peripheral device based on the third communication link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

[0161] In one embodiment, the central device communicates with the first peripheral device and the second peripheral device at consecutive isochronous intervals, and the first peripheral device is further configured to:

[0162] Acquire a first target number, and acquire a second target number, wherein the first target number is used to indicate: within a preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first communication link is lower than a first quality threshold; the second target number is used to indicate: within the preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first listening link is lower than the first quality threshold;

[0163] In a case where the first target quantity is greater than a first quantity threshold, determining that the link communication quality of the first communication link meets a low-quality communication condition;

[0164] In a case where the first target quantity is less than the second quantity threshold, determining that the link communication quality of the first communication link meets a high-quality communication condition, wherein the second quantity threshold is greater than or equal to the first quantity threshold;

[0165] When the second target number is greater than the first number threshold, determining that the link communication quality of the first monitoring link meets a low-quality communication condition;

[0166] When the second target number is less than the second number threshold, it is determined that the link communication quality of the first monitoring link meets the high-quality communication condition.

[0167] In one embodiment, the first peripheral device is further configured to: send a first switching request message to the second peripheral device based on the third communication link when it is determined that the link communication quality of the first communication link meets the low-quality communication condition, wherein the first switching request message carries the first target quantity;

[0168] receiving a first switching message fed back by the second peripheral device in response to the first switching request message, wherein the first switching message carries the second target quantity;

[0169] The method further comprises:

[0170] receiving, based on the third communication link, a second switching request message sent by the second peripheral device, the second switching request message carrying a third target number, the third target number being used to indicate: within the preset number of isochronous intervals, the number of isochronous intervals in which the communication quality value of the second communication link is lower than the first quality threshold;

[0171] When the fourth target number is less than the second number threshold, a second switching message is fed back to the second peripheral device based on the third communication link, and the second switching message carries the fourth target number. The fourth target number is used to indicate: within the preset number of isochronous intervals, the communication quality value of the second listening link is lower than the number of isochronous intervals of the first quality threshold.

[0172] In one embodiment, the first peripheral device is further used to: receive the first audio data packet forwarded by the second peripheral device based on the third communication link until a first stop condition is met, wherein the first stop condition is that the duration of receiving the first audio data packet forwarded by the second peripheral device is greater than or equal to a first preset duration, or the first stop condition is that the link communication quality of the first communication link meets the high-quality communication condition;

[0173] The second audio data packet is forwarded to the second peripheral device based on the third communication link until a second stop condition is met, wherein the second stop condition is that the duration of forwarding the second audio data packet to the second peripheral device is greater than or equal to a second preset duration, or the second stop condition is that the link communication quality of the second communication link meets the high-quality communication condition.

[0174] In one embodiment, the first peripheral device, the second peripheral device and the central device belong to the same private device set, and the private device set includes key information used for the peripheral devices to communicate with the central device and transmit audio streams.

[0175] The wireless audio data transmission system 600 provided in the embodiment of the present disclosure corresponds to the various processes involving the central device, the first peripheral device and the second peripheral device in the aforementioned embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0176] The present disclosure provides a wireless audio data transmission device, which is applied to a first peripheral device, such as Figure 7 As shown, the wireless audio data transmission device 700 includes:

[0177] The peripheral receiving module 701 receives a first audio data packet sent by a central device based on a first communication link, and receives a second audio data packet sent by the central device by monitoring a second communication link, wherein the second communication link is a link for a second peripheral device to communicate with the central device to transmit an audio stream;

[0178] The peripheral transmission module 702 is used to receive the first audio data packet forwarded by the second peripheral device based on the third communication link, and / or forward the second audio data packet to the second peripheral device based on the third communication link;

[0179] The third communication link is a link for communication between the first peripheral device and the second peripheral device.

[0180] In one embodiment, the wireless audio data transmission device 700 further includes a link information transceiver module, and the link information transceiver module is used to:

[0181] acquiring link information of the second communication link based on a control link established between the first peripheral device and the second peripheral device, and monitoring the second communication link based on the link information of the second communication link;

[0182] The link information of the first communication link is sent to the second peripheral device based on the control link, so that the second peripheral device monitors the first communication link based on the link information of the first communication link.

[0183] In one embodiment, the central device communicates with the first peripheral device and the second peripheral device in consecutive isochronous intervals, each of the isochronous intervals including a first time slot for transmitting the first audio transmission packet and a second time slot for transmitting the second audio data packet;

[0184] The peripheral transmission module 702 includes:

[0185] a forwarding and sending submodule, configured to forward the target second audio data packet to the second peripheral device within the target second time slot based on the third communication link when the target second audio data packet is successfully received;

[0186] The second peripheral device stops receiving the target second audio data packet based on the second communication link within the target second time slot, and the first peripheral device stops receiving the target second audio data packet based on the monitoring link of the second communication link within the target second time slot; the target second audio data packet is a second audio data packet in a plurality of second audio transmission packets, and the target second time slot is a second time slot in a plurality of second time slots corresponding to the target second audio data packet;

[0187] a forwarding receiving submodule, which receives the target first audio data packet forwarded by the second peripheral device in the target first time slot based on the third communication link, when the second peripheral device successfully receives the target first audio data packet;

[0188] Among them, the first peripheral device stops receiving the target first audio data packet based on the first communication link within the target first time slot, and the second peripheral device stops receiving the target first audio data packet based on the listening link of the first communication link within the target first time slot, the target first audio data packet is a first audio data packet among multiple first audio transmission packets, and the target first time slot is a first time slot among multiple first time slots corresponding to the target first audio data packet.

[0189] In one embodiment, the forwarding receiving submodule includes:

[0190] a forwarding receiving unit, configured to receive, based on a third communication link, a first audio data packet forwarded by the second peripheral device when the link communication quality of the first communication link is lower than the link communication quality of the first monitoring link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link;

[0191] The forwarding and sending submodule includes:

[0192] A forwarding and sending unit is used to forward the second audio data packet to the second peripheral device based on the third communication link when the link communication quality of the second communication link is lower than the link communication quality of the second monitoring link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

[0193] In one embodiment, the forwarding receiving unit includes:

[0194] a forwarding receiving subunit, configured to receive, based on a third communication link, a first audio data packet forwarded by the second peripheral device when the link communication quality of the first communication link meets a low-quality communication condition and the link communication quality of the first monitoring link meets a high-quality communication condition, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link;

[0195] The forwarding sending unit includes:

[0196] A forwarding and sending subunit is used to forward the second audio data packet to the second peripheral device based on the third communication link when the link communication quality of the second communication link meets the low-quality communication condition and the link communication quality of the second listening link meets the high-quality communication condition, wherein the second listening link is a link for the first peripheral device to monitor the second communication link.

[0197] In one embodiment, the peripheral transmission module 702 further includes an acquisition submodule, and the acquisition submodule is specifically used to:

[0198] Acquire a first target number, and acquire a second target number, wherein the first target number is used to indicate: within a preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first communication link is lower than a first quality threshold; the second target number is used to indicate: within the preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first listening link is lower than the first quality threshold;

[0199] In a case where the first target quantity is greater than a first quantity threshold, determining that the link communication quality of the first communication link meets a low-quality communication condition;

[0200] In a case where the first target quantity is less than the second quantity threshold, determining that the link communication quality of the first communication link meets a high-quality communication condition, wherein the second quantity threshold is greater than or equal to the first quantity threshold;

[0201] When the second target number is greater than the first number threshold, determining that the link communication quality of the first monitoring link meets a low-quality communication condition;

[0202] When the second target number is less than the second number threshold, it is determined that the link communication quality of the first monitoring link meets the high-quality communication condition.

[0203] In one embodiment, the acquisition submodule is specifically used for:

[0204] In a case where it is determined that the link communication quality of the first communication link meets the low-quality communication condition, sending a first switching request message to the second peripheral device based on the third communication link, where the first switching request message carries the first target quantity;

[0205] receiving a first switching message fed back by the second peripheral device in response to the first switching request message, wherein the first switching message carries the second target quantity;

[0206] receiving, based on the third communication link, a second switching request message sent by the second peripheral device, the second switching request message carrying a third target number, the third target number being used to indicate: within the preset number of isochronous intervals, the number of isochronous intervals in which the communication quality value of the second communication link is lower than the first quality threshold;

[0207] When the fourth target number is less than the second number threshold, a second switching message is fed back to the second peripheral device based on the third communication link, and the second switching message carries the fourth target number. The fourth target number is used to indicate: within the preset number of isochronous intervals, the communication quality value of the second listening link is lower than the number of isochronous intervals of the first quality threshold.

[0208] In one embodiment, the peripheral transmission module 702 is further used for:

[0209] Receiving a first audio data packet forwarded by the second peripheral device based on a third communication link until a first stop condition is met, wherein the first stop condition is that a duration of receiving the first audio data packet forwarded by the second peripheral device is greater than or equal to a first preset duration, or the first stop condition is that a link communication quality of the first communication link meets the high-quality communication condition;

[0210] The second audio data packet is forwarded to the second peripheral device based on the third communication link until a second stop condition is met, wherein the second stop condition is that the duration of forwarding the second audio data packet to the second peripheral device is greater than or equal to a second preset duration, or the second stop condition is that the link communication quality of the second communication link meets the high-quality communication condition.

[0211] In one embodiment, the first peripheral device, the second peripheral device and the central device belong to the same private device set, and the private device set includes key information used for the peripheral devices to communicate with the central device and transmit audio streams.

[0212] The wireless audio data transmission device provided in the embodiment of the present disclosure corresponds to each process involving the first peripheral device in the aforementioned embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0213] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0214] Figure 8 8 is a schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure. Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0215] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0216] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as wireless audio data transmission methods. For example, in some embodiments, the wireless audio data transmission method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the wireless audio data transmission method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the wireless audio data transmission method in any other appropriate manner (for example, by means of firmware).

[0217] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0218] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0219] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0220] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0221] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0222] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A wireless audio data transmission method, applied to a first peripheral device, It is characterized in that The method comprises: receiving a first audio data packet sent by a central device based on a first communication link, and receiving a second audio data packet sent by the central device by monitoring a second communication link, wherein the second communication link is a link for a second peripheral device to communicate with the central device to transmit an audio stream; receiving a first audio data packet forwarded by the second peripheral device based on a third communication link, and / or forwarding the second audio data packet to the second peripheral device based on the third communication link; The third communication link is a link for communication between the first peripheral device and the second peripheral device.

2. The method according to claim 1, It is characterized in that Before receiving the second audio data packet sent by the central device by monitoring the second communication link, the method further includes: acquiring link information of the second communication link based on a control link established between the first peripheral device and the second peripheral device, and monitoring the second communication link based on the link information of the second communication link; The link information of the first communication link is sent to the second peripheral device based on the control link, so that the second peripheral device monitors the first communication link based on the link information of the first communication link.

3. The method according to claim 1, It is characterized in that The central device communicates with the first peripheral device and the second peripheral device at consecutive isochronous intervals, each of the isochronous intervals including a first time slot for transmitting the first audio transmission packet and a second time slot for transmitting the second audio data packet; The method of forwarding the second audio data packet to the second peripheral device based on the third communication link includes: upon successful reception of the target second audio data packet, forwarding the target second audio data packet to the second peripheral device within the target second time slot based on the third communication link; The second peripheral device stops receiving the target second audio data packet based on the second communication link within the target second time slot, and the first peripheral device stops receiving the target second audio data packet based on the monitoring link of the second communication link within the target second time slot; the target second audio data packet is a second audio data packet in a plurality of second audio transmission packets, and the target second time slot is a second time slot in a plurality of second time slots corresponding to the target second audio data packet; The receiving, based on the third communication link, the first audio data packet forwarded by the second peripheral device comprises: In the case where the second peripheral device successfully receives the target first audio data packet, receiving the target first audio data packet forwarded by the second peripheral device within the target first time slot based on the third communication link; Among them, the first peripheral device stops receiving the target first audio data packet based on the first communication link within the target first time slot, and the second peripheral device stops receiving the target first audio data packet based on the listening link of the first communication link within the target first time slot, the target first audio data packet is a first audio data packet among multiple first audio transmission packets, and the target first time slot is a first time slot among multiple first time slots corresponding to the target first audio data packet.

4. The method according to claim 1, It is characterized in that The receiving, based on the third communication link, the first audio data packet forwarded by the second peripheral device comprises: In a case where the link communication quality of the first communication link is lower than the link communication quality of the first monitoring link, receiving the first audio data packet forwarded by the second peripheral device based on a third communication link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link; The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises: When the link communication quality of the second communication link is lower than the link communication quality of the second monitoring link, the second audio data packet is forwarded to the second peripheral device based on the third communication link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

5. The method according to claim 1, It is characterized in that The receiving, based on the third communication link, the first audio data packet forwarded by the second peripheral device comprises: When the link communication quality of the first communication link meets the low-quality communication condition and the link communication quality of the first monitoring link meets the high-quality communication condition, receiving the first audio data packet forwarded by the second peripheral device based on the third communication link, wherein the first monitoring link is a link in which the second peripheral device monitors the first communication link; The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises: When the link communication quality of the second communication link meets the low-quality communication condition and the link communication quality of the second monitoring link meets the high-quality communication condition, the second audio data packet is forwarded to the second peripheral device based on the third communication link, wherein the second monitoring link is a link for the first peripheral device to monitor the second communication link.

6. The method according to claim 5, It is characterized in that The central device communicates with the first peripheral device and the second peripheral device at consecutive isochronous intervals, and the method further comprises: Acquire a first target number, and acquire a second target number, wherein the first target number is used to indicate: within a preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first communication link is lower than a first quality threshold; the second target number is used to indicate: within the preset number of equal time intervals, the number of equal time intervals in which the communication quality value of the first listening link is lower than the first quality threshold; In a case where the first target quantity is greater than a first quantity threshold, determining that the link communication quality of the first communication link meets a low-quality communication condition; In a case where the first target quantity is less than a second quantity threshold, determining that the link communication quality of the first communication link meets a high-quality communication condition, wherein the second quantity threshold is less than or equal to the first quantity threshold; When the second target number is greater than the first number threshold, determining that the link communication quality of the first monitoring link meets a low-quality communication condition; When the second target number is less than the second number threshold, it is determined that the link communication quality of the first monitoring link meets the high-quality communication condition.

7. The method according to claim 6, It is characterized in that The obtaining of the second target quantity includes: In a case where it is determined that the link communication quality of the first communication link meets the low-quality communication condition, sending a first switching request message to the second peripheral device based on the third communication link, where the first switching request message carries the first target quantity; receiving a first switching message fed back by the second peripheral device in response to the first switching request message, wherein the first switching message carries the second target quantity; The method further comprises: receiving, based on the third communication link, a second switching request message sent by the second peripheral device, the second switching request message carrying a third target number, the third target number being used to indicate: within the preset number of isochronous intervals, the number of isochronous intervals in which the communication quality value of the second communication link is lower than the first quality threshold; When the fourth target number is less than the second number threshold, a second switching message is fed back to the second peripheral device based on the third communication link, and the second switching message carries the fourth target number. The fourth target number is used to indicate: within the preset number of isochronous intervals, the communication quality value of the second listening link is lower than the number of isochronous intervals of the first quality threshold.

8. The method according to claim 5, It is characterized in that The receiving, based on the third communication link, the first audio data packet forwarded by the second peripheral device comprises: Receiving a first audio data packet forwarded by the second peripheral device based on a third communication link until a first stop condition is met, wherein the first stop condition is that a duration of receiving the first audio data packet forwarded by the second peripheral device is greater than or equal to a first preset duration, or the first stop condition is that a link communication quality of the first communication link meets the high-quality communication condition; The forwarding of the second audio data packet to the second peripheral device based on the third communication link comprises: The second audio data packet is forwarded to the second peripheral device based on the third communication link until a second stop condition is met, wherein the second stop condition is that the duration of forwarding the second audio data packet to the second peripheral device is greater than or equal to a second preset duration, or the second stop condition is that the link communication quality of the second communication link meets the high-quality communication condition.

9. The method according to any one of claims 1 to 8, It is characterized in that The first peripheral device, the second peripheral device and the central device belong to the same private device set, and the private device set includes key information used for the peripheral devices to communicate with the central device and transmit audio streams.

10. A wireless audio data transmission system, It is characterized in that The system comprises: A central device and N peripheral devices, where N is an integer greater than 1; The central device is used to: send a first audio data packet to a first peripheral device based on a first communication link, and send a second audio data packet to a second peripheral device based on a second communication link, the N peripheral devices include the first peripheral device and the second peripheral device, and a third communication link is established between the first peripheral device and the second peripheral device; The first peripheral device is used to: receive a second audio data packet sent by the central device by monitoring the second communication link, and forward the second audio data packet to the second peripheral device based on the third communication link; The second peripheral device is used for: receiving a first audio data packet sent by the central device by monitoring the first communication link, and forwarding the first audio data packet to the first peripheral device based on the third communication link.

11. A wireless audio data transmission device, applied to a first peripheral device, It is characterized in that The device comprises: A peripheral receiving module receives a first audio data packet sent by a central device based on a first communication link, and receives a second audio data packet sent by the central device by monitoring a second communication link, wherein the second communication link is a link for a second peripheral device to communicate with the central device to transmit an audio stream; a peripheral transmission module, configured to receive the first audio data packet forwarded by the second peripheral device based on a third communication link, and / or forward the second audio data packet to the second peripheral device based on the third communication link; The third communication link is a link for communication between the first peripheral device and the second peripheral device.

12. An electronic device, It is characterized in that The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the wireless audio data transmission method as claimed in any one of claims 1 to 9.

13. A computer-readable storage medium, It is characterized in that The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the wireless audio data transmission method according to any one of claims 1 to 9 are implemented.

14. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the wireless audio data transmission method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Wireless communication system and equipment

    CN110913375A

  • Double-wireless Bluetooth communication network packet loss data processing method, device and system

    CN111436044A

  • Bluetooth device communication method and related device

    CN111885553A

  • Wireless earphone storage box and wireless earphone

    CN112492449A

  • Dual wireless audio communication control method and device, equipment and system

    CN114079894A