CN112994754A - Bluetooth audio data transmission method and equipment - Google Patents

Bluetooth audio data transmission method and equipment Download PDF

Info

Publication number
CN112994754A
CN112994754A CN202110148241.0A CN202110148241A CN112994754A CN 112994754 A CN112994754 A CN 112994754A CN 202110148241 A CN202110148241 A CN 202110148241A CN 112994754 A CN112994754 A CN 112994754A
Authority
CN
China
Prior art keywords
audio
bluetooth
source device
code
audio source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110148241.0A
Other languages
Chinese (zh)
Other versions
CN112994754B (en
Inventor
俞忠兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202110148241.0A priority Critical patent/CN112994754B/en
Publication of CN112994754A publication Critical patent/CN112994754A/en
Priority to PCT/CN2021/139595 priority patent/WO2022166438A1/en
Application granted granted Critical
Publication of CN112994754B publication Critical patent/CN112994754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to the field of bluetooth technologies, and in particular, to a method and an apparatus for transmitting bluetooth audio data. The method comprises the following steps: an audio source device broadcasting a first audio data packet to a first audio group, the first audio group comprising a plurality of Bluetooth devices; the audio source device receives an acknowledgement code sent by at least one Bluetooth device in the first audio group, wherein the acknowledgement code is used for identifying that the first audio data packet is successfully received; the audio source device determines whether to rebroadcast the first audio data packet in the first audio group based on the received confirmation code. The embodiment of the invention adds the confirmation code confirmation mechanism when synchronously broadcasting the audio data packet, and gives consideration to the reliability of data transmission on the premise of not limiting the number of the playing devices.

Description

Bluetooth audio data transmission method and equipment
Technical Field
The present invention relates to the field of bluetooth technologies, and in particular, to a method and an apparatus for transmitting bluetooth audio data.
Background
The BLE (Bluetooth Low Energy) 5.2 protocol adds a BLE Audio scheme. BLE Audio supports LTE synchronization Channels (LTE Isochronous Channels). The LTE synchronization channel defines a time-dependent data transmission channel and transmission strategy to ensure that data received by multiple receivers meets timeliness requirements in a multi-receiver scenario. That is, the audio source data can be played synchronously in a plurality of playback devices based on the LTE synchronization channel. However, when audio source data is played synchronously in a plurality of devices, how to achieve reliability of data transmission without limiting the number of playing devices becomes a problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for transmitting bluetooth audio data, which can consider reliability of data transmission without limiting the number of playback apparatuses.
In a first aspect, an embodiment of the present invention provides a method for transmitting bluetooth audio data, where the method is applied to an audio source device, and the method includes: broadcasting a first audio data packet to a first audio group, the first audio group comprising a plurality of Bluetooth devices; receiving an acknowledgement code sent by at least one Bluetooth device in the first audio group, wherein the acknowledgement code is used for identifying that the first audio data packet is successfully received; determining whether to rebroadcast the first audio data packet in the first audio group according to the received confirmation code.
Optionally, the method further includes: and when the first audio group is established, respectively allocating identification codes for the Bluetooth devices added into the first audio group, wherein the identification codes are used for generating the confirmation codes.
Optionally, the identification code is used as the confirmation code.
Optionally, the identification code sent to each bluetooth device is an orthogonal code; the acknowledgement codes from the respective bluetooth devices are orthogonal codes.
Optionally, the method further includes: broadcasting a first transmit power and a first desired power to the first audio group, the first transmit power being a power at which the audio source device transmits the first audio data packet, the first desired power being a power at which it is desired to receive the acknowledgement code; the first transmit power and the first desired power are used for each of the bluetooth devices to calculate a second transmit power for transmitting the acknowledgement code.
Optionally, receiving an acknowledgement code sent by at least one bluetooth device in the first audio group includes: and receiving the confirmation codes sent by the Bluetooth devices at the same receiving opportunity after the first audio data packet is broadcasted, and identifying the confirmation codes of the Bluetooth devices by adopting an orthogonal demodulation mode.
Optionally, determining whether to rebroadcast the first audio data packet in the first audio group according to the received acknowledgement code includes: determining the ratio of the number of the received confirmation codes to the total number of the Bluetooth devices according to the total number of the Bluetooth devices included in the first audio group; determining not to rebroadcast the first audio packet in the first audio group if the ratio is greater than a first threshold; otherwise, rebroadcasting the first audio data packet in the first audio group.
In a second aspect, an embodiment of the present invention provides a method for transmitting bluetooth audio data, where the method is applied to a bluetooth device, and the bluetooth device is included in a first audio group, and the method includes: when the audio source device is determined to successfully receive a first audio data packet broadcast by the audio source device, sending a confirmation code to the audio source device in a preset time slot of the first audio data packet, wherein the confirmation code is used for identifying the successful reception of the first audio data packet.
Optionally, the identification code allocated to the audio source device is obtained when the audio source device joins the first audio group; the confirmation code sent to the audio source device is generated from an identification code assigned by the audio source device.
Optionally, sending an acknowledgement code to the audio source device includes: the assigned identification code is transmitted as a confirmation code to the audio source device.
Optionally, the identification codes of the bluetooth devices included in the first audio group are orthogonal codes; the acknowledgement codes from the respective bluetooth devices are orthogonal codes.
Optionally, the method further includes: receiving a first transmission power and a first expected power broadcasted by the audio source device, wherein the first transmission power is the power of the audio source device for transmitting the first audio data packet, and the first expected power is the power of the audio source device expecting to receive the confirmation code; transmitting an acknowledgement code to the audio source device, comprising: calculating a second transmission power for transmitting the confirmation code according to the first transmission power and the first expected power; transmitting the confirmation code to the audio source device at the second transmit power.
In a third aspect, an embodiment of the present invention provides an audio source device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to perform the method of the first aspect or any of the possible embodiments of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a bluetooth device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to perform the method of the second aspect or any of the possible embodiments of the second aspect.
In a fifth aspect, an embodiment of the present invention provides a bluetooth chip, including: a processor for executing computer program instructions stored in the memory, wherein the computer program instructions, when executed by the processor, trigger the bluetooth chip to perform the method of any of the above possible embodiments.
In a sixth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of any one of the above-mentioned possible embodiments.
In the embodiment of the invention, the audio source device and each Bluetooth device form a first audio group. The audio source device broadcasts audio data packets to the first audio group in a broadcast manner. Each Bluetooth device in the first audio group monitors the broadcast message and acquires an audio data packet according to the monitored broadcast message. According to the BLE Audio protocol, more devices can join an Audio group, so that more Bluetooth devices are supported to synchronously acquire Audio data packets broadcasted by the Audio source device in the mode. Furthermore, after the audio data packet is acquired by each Bluetooth device, the audio source device feeds back an acknowledgement code, and the audio source device decides whether the audio data packet needs to be retransmitted or not according to the received acknowledgement code, so that the reliability of audio data packet transmission can be ensured. Therefore, the scheme of the embodiment of the invention can give consideration to the reliability of data transmission on the premise of not limiting the number of the playing devices.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a bluetooth audio system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another bluetooth audio system provided in an embodiment of the present invention;
fig. 3 is a flowchart of a method for transmitting bluetooth audio data according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for transmitting bluetooth audio data according to an embodiment of the present invention;
fig. 5 is a timing diagram of transmission of bluetooth audio data according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a bluetooth audio system according to an embodiment of the present invention. As shown in fig. 1, the system includes an audio source device and a plurality of bluetooth devices, such as bluetooth device 1, bluetooth device 2 … … bluetooth device N. Alternatively, the Audio source device and the respective bluetooth devices may form a first Audio group based on the BLE Audio protocol. The audio source device may broadcast the audio data packets to the first audio group. Each bluetooth device in the first audio group may receive each audio data packet broadcast by the audio source device.
In the first audio group, the audio source device and each bluetooth device may be an electronic device such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a building device, an intelligent home device, an Augmented Reality (AR)/Virtual Reality (VR) device, and the embodiment of the present application does not limit the specific type of the electronic device. In a specific example, as shown in fig. 2, the audio source device may be a mobile phone, the mobile phone and a plurality of bluetooth headsets form a first audio group, for example, the mobile phone and the headsets 1 to 4 form a first audio group, and the mobile phone may broadcast audio data packets to the headsets 1 to 4. In order to increase the reliability of data transmission between the audio source device and the bluetooth device, a feedback confirmation mechanism is added in the data transmission scheme of the embodiment of the present invention, and the specific flow refers to the following description.
Fig. 3 is a flowchart of a method for transmitting bluetooth audio data according to an embodiment of the present invention. As shown in fig. 3, the executing agent of the method may be an audio source device in the system shown in fig. 1. The processing steps of the method may include:
an audio source device broadcasts a first audio data packet to a first audio group 101. In some embodiments, the audio source device may need to broadcast a series of audio data packets to the first audio group. The first audio data packet may be any one of a series of audio data packets broadcast by the audio source device. Optionally, the first audio group includes a plurality of bluetooth devices that receive the first audio data packet broadcast by the audio source device. Optionally, after the bluetooth device in the first audio group determines that the first audio data packet broadcasted by the audio source device is received, the bluetooth device sends an acknowledgement code to the audio source device.
102, the audio source device receives an acknowledgement code transmitted by at least one bluetooth device in the first audio group. Wherein the confirmation code is used to identify successful receipt of the first audio data packet.
The audio source device determines 103 whether to rebroadcast the first audio data packet in the first audio group based on the received confirmation code. Alternatively, the audio source device may determine whether to rebroadcast the first audio data packet in the first audio group based on the number of received confirmation codes. The number of the confirmation codes represents the number of the Bluetooth devices of the first audio group which successfully receive the first audio data packet. The audio source device may decide whether to rebroadcast the first audio packet based on the number of bluetooth devices that successfully received the first audio packet. Optionally, the audio source device may first determine a ratio of the number of the confirmation codes to the total number of the bluetooth devices included in the first audio group, and if the ratio is greater than a set value, the audio source device may not need to rebroadcast the first audio data packet; otherwise, the audio source device rebroadcasts the first audio data packet to the first audio source group.
In some embodiments, the audio source device may determine whether the first audio data packet was successfully received by the target bluetooth device based on the received confirmation code, and if the first audio data packet was successfully received by the target bluetooth device, the audio source device need not rebroadcast the first audio data packet. If the target Bluetooth device does not successfully receive the first audio data packet, the audio source device rebroadcasts the first audio data packet. Alternatively, the target bluetooth device may be a key bluetooth device set by the user. Of course, in some embodiments, the first audio packet is rebroadcast when the audio source device determines from the confirmation code that the first audio packet was not successfully received by the bluetooth device.
In some embodiments, the acknowledgement codes from the respective bluetooth devices of the first audio group are orthogonal codes. Optionally, when the audio source device establishes the first audio group, the audio source device may assign an identification code to each bluetooth device joining the first audio group, where the identification code assigned by the audio source device is used to generate the confirmation code. Alternatively, the bluetooth device may obtain the confirmation code by performing one or more operations of conversion, encryption, and the like on the assigned identification code. Optionally, the identification codes assigned to the respective bluetooth devices by the audio source device are orthogonal codes, and the acknowledgement codes generated by the respective bluetooth devices according to the respective assigned identification codes are also orthogonal codes. In some embodiments, the bluetooth device uses the assigned identification code as the confirmation code.
In some embodiments, the audio source device broadcasts the first transmit power and the first desired power to the first audio group in addition to broadcasting the first audio data packet to the first audio group. Wherein the first transmit power is a power at which the audio source device transmits the first audio data packet. The first desired power is the power at which the acknowledgment code is expected to be received. The first transmit power and the first desired power are used for each bluetooth device to calculate a second transmit power for transmitting the acknowledgement code.
Optionally, the first transmit power and the first desired power may be carried in the same broadcast message as the first audio data packet, or may be carried in different broadcast messages. For example, the first transmit power and the first desired power are carried in a first broadcast message and the first audio data packet is carried in a second broadcast message. In some embodiments, the audio source device broadcasts the first transmit power and the first desired power to the first audio group via a first broadcast message. And when each Bluetooth device in the first audio group receives each audio data packet broadcasted by the audio source device, calculating the transmitting power of each audio data packet according to the first transmitting power and the first expected power. For example, the bluetooth devices in the first audio group receive audio packet1, audio packet2 … …, audio packet 5. The bluetooth device calculates the transmission power of the transmission confirmation code1 and the confirmation code2 … …, and the confirmation code 5 according to the first transmission power and the first expected power acquired from the first broadcast message. The confirmation code1 and the confirmation code2 … … are confirmation codes transmitted to the audio source device after the audio data packet1 and the audio data packet2 … …, respectively, are successfully received and the confirmation code 5 is transmitted to the audio source device. In the embodiment of the present invention, based on the above measures of expected power, the receiving powers of the audio source devices receiving the respective confirmation codes can be substantially the same, which is convenient for the audio source devices to demodulate the confirmation codes.
In the embodiment of the invention, when the Bluetooth device determines that the first audio data packet is successfully received, the Bluetooth device sends the confirmation code to the audio source device at the preset time slot of the first audio data packet. The first audio data packet is sent to each Bluetooth device of the first audio group in a broadcasting mode. The first audio data packets are received by the respective bluetooth devices simultaneously or approximately simultaneously. Each bluetooth device then transmits an acknowledgement code to the audio source device at a predetermined time slot, i.e., each bluetooth device transmits an acknowledgement code to the audio source device at the same or approximately the same time slot. The audio source device receives the confirmation codes transmitted by the respective bluetooth devices at or around the same reception timing after broadcasting the first audio packet. Optionally, although the respective acknowledgement codes received by the audio source device are superimposed in the time domain and the frequency domain, the acknowledgement codes may be demodulated by using an orthogonal demodulation method. Because each confirmation code is an orthogonal code and the receiving power is basically the same, the audio source device can identify the confirmation code of each Bluetooth device by utilizing the orthogonal characteristic, and further can determine which Bluetooth devices successfully receive the first audio data packet and which devices do not receive the first audio data packet, so that the audio source device can decide whether to rebroadcast the first audio data packet according to the received confirmation codes. If it is determined that the first audio packet does not need to be rebroadcast, the audio source device broadcasts the next audio packet in the first audio group.
Fig. 4 is a flowchart of another method for transmitting bluetooth audio data according to an embodiment of the present invention. As shown in fig. 4, the main body of the method may be the bluetooth device included in the system shown in fig. 1, and the bluetooth device is included in the first audio group. The processing steps of the method may include:
the bluetooth device listens for broadcast messages sent by the audio source device 201.
202, the bluetooth device determines that the first audio data packet is successfully acquired from the broadcast message, and sends an acknowledgement code to the audio source device, wherein the acknowledgement code is used for identifying that the first audio data packet is successfully received.
Optionally, the audio source device assigns an identification code to each bluetooth device that joins the first audio group. The bluetooth device in step 102 may generate the confirmation code from the identification code assigned by the audio source device. Alternatively, the bluetooth device may use the identification code assigned by the audio source device as the confirmation code. The identification codes of all the Bluetooth devices in the first audio group are orthogonal codes; the acknowledgement codes from the respective bluetooth devices are orthogonal codes.
In particular implementations, the audio source device assigned identification code may be a walsh code of order 64/128/256. In the QPSK (Quadrature Phase Shift Keying) modulation and demodulation scheme of bluetooth, an audio source device may use one sync (symbol) to carry one walsh bit, or multiple symbols to carry one walsh bit, and use 64/128/256 symbols in total to carry 64/128/256 walsh bits. The bluetooth device may transmit an acknowledgement code to the audio source device at a predetermined time slot after successfully receiving the first audio data packet. For example, the bluetooth device may send an acknowledgement code at a location of 150us after receiving the first audio packet. The confirmation code may also be a walsh code of 64/128/256 th order, and the carrying manner of the confirmation code is the same as that of the identification code, which is not described again.
Wherein, in order to reduce the time deviation between the confirmation codes sent by the Bluetooth devices, longer confirmation codes can be adopted. For example, the following code group may be employed as the confirmation code:
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1…
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,…
1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,…
1,1,1,1,1,1,1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,…
further, in order to make the received power of each acknowledgment code substantially the same, the embodiment of the present invention adopts an expected power policy, including: the audio source device broadcasts a first transmit power and a first desired power. The bluetooth device receives a first transmit power and a first desired power broadcast by an audio source device. Wherein the first transmit power is a power at which the audio source device transmits the first audio data packet, and the first desired power is a power at which it is desired to receive the acknowledgement code. When the Bluetooth device sends the confirmation code to the audio source device, first, second transmission power for transmitting the confirmation code is calculated according to the first transmission power and the first expected power, and then the confirmation code is sent to the audio source device at the second transmission power. Based on this, the power of the confirmation codes of the Bluetooth devices received by the audio source device is basically the same, so that the audio source device can demodulate the confirmation codes conveniently.
Optionally, the bluetooth device calculates a second transmission power (Tx _ power _ conf) for transmitting the acknowledgement code according to the first transmission power (Tx _ power _ broadcast) and the first Desired power (Desired _ power _ cnf), and includes: when the bluetooth device receives the first audio data packet, an RSSI (Received Signal Strength Indication) is obtained. The path loss is calculated based on the RSSI and Tx _ power _ broadcast. Tx _ power _ conf is calculated from path loss and Desired _ power _ cnf. Wherein:
Path_loss=RSSI–Tx_power_broadcast;
Tx_power_conf=Desired_power_cnf+Path_loss。
further, after the bluetooth device successfully receives the first audio data packet, the frequency offset between the clock of the bluetooth device and the timestamp of the first audio data packet may be obtained. When the Bluetooth device sends the confirmation code to the audio source device, the frequency offset can be reversely compensated, so that the orthogonality of the sent confirmation code is kept as much as possible, and the audio source device can conveniently demodulate and identify the confirmation code.
Fig. 5 is a timing diagram of transmission of bluetooth audio data according to an embodiment of the present invention. As shown in fig. 5, the audio source device broadcasts Packet1 to the first audio group at a bluetooth transmission opportunity (Packet 1). The first audio group includes 8 bluetooth devices. The 8 bluetooth devices listen to the broadcast message of the audio source device, and if the bluetooth device successfully acquires the data Packet1 from the listened broadcast message (Packet1), the bluetooth device feeds back ACK (Acknowledgement) information to the audio source device, wherein the ACK information includes an Acknowledgement code. For example, if the bluetooth device 1 successfully receives the Packet1, it feeds back ACK CODE1 to the audio source device; the bluetooth device 2 successfully receives the Packet1, then feeds back ACK CODE2 to the audio source device, and so on. Optionally, CODE1 … … CODE8 sent by 8 bluetooth devices is an orthogonal CODE. The audio source device adopts an orthogonal demodulation mode to identify the confirmation codes sent by the 8 bluetooth devices, and determines that the 8 bluetooth devices all successfully receive the Packet1, and then broadcasts the data Packet2 to the first audio group at the next bluetooth transmission opportunity (Packet 2). Similarly, if the bluetooth device successfully receives Packet2, it sends an acknowledgement code to the audio source device. As shown in fig. 5, the audio source device receives an acknowledgement CODE lacking ACK CODE4 and ACK CODE6, and then the audio source device determines that the corresponding bluetooth device 4 and bluetooth device 6 did not successfully receive Packet 2. As shown in fig. 5, the audio source device rebroadcasts Packet2 at the first audio group.
According to the scheme of the embodiment of the invention, the audio data packet is broadcast to the Bluetooth devices in the audio group in a broadcast mode, so that data can be synchronously transmitted to a large number of Bluetooth devices. And when transmitting the audio data packet, the confirmation mechanism is added, and the reliability of the transmission data is improved. Furthermore, in the confirmation mechanism, the Bluetooth equipment side only needs to send a confirmation packet, code change is small, power consumption influence is small, realization difficulty is low, demodulation complexity is controlled on the audio source equipment side, and the scheme is easy to realize.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present specification. As shown in fig. 6, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 410, a communication interface 420, a memory 430, and a communication bus 440 that connects the various system components (including the memory 430, the communication interface 420, and the processors 410). The communication interface 420 may be coupled to other electronic devices or other components, for example, the communication interface 420 may communicate with other bluetooth devices.
Specifically, in an embodiment of the present application, a processor of the electronic device may be an on-chip device SOC, and the processor may include a Central Processing Unit (CPU), and may further include other types of processors.
Specifically, in an embodiment of the present application, the processors may include, for example, a CPU, a DSP, a microcontroller, or a digital Signal processor, and may further include a GPU, an embedded Neural-Network Processor (NPU), and an Image Signal Processing (ISP), and the processors may further include necessary hardware accelerators or logic Processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program according to the present application. Further, the processor may have the functionality to operate one or more software programs, which may be stored in the storage medium.
Communication bus 440 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 430 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Alternatively, the memory 430 may include a RAM memory that stores programs that, when called by the processor, perform methods of embodiments of the present invention. The electronic device shown in fig. 6 may be used as an audio source device, and may also be used as a bluetooth device in the first audio group. When the electronic device shown in fig. 6 is used as an audio source device, it is used to execute the method performed by the audio source device in the embodiment shown in fig. 2-5, and specific reference may be made to the related description of the embodiment shown in fig. 2-5. When the electronic device shown in fig. 6 is used as a bluetooth device in the first audio group, it is used to execute the method executed by the bluetooth device in the embodiment shown in fig. 2-5, and specific reference may be made to the related description of the embodiment shown in fig. 2-5. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 2 to fig. 5, and are not described herein again.
An embodiment of the present invention further provides a bluetooth chip, including: and a processor for executing the computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the bluetooth chip is triggered to execute the transmission method of the bluetooth audio data. Optionally, the bluetooth chip may be used as a bluetooth chip of the audio source device and may also be used as a bluetooth chip of the bluetooth device in the first audio group. When the bluetooth chip is a bluetooth chip of an audio source device, it is used to execute the method executed by the audio source device in the embodiments shown in fig. 2 to 5, and specific reference may be made to the related description of the embodiments shown in fig. 2 to 5. When the bluetooth chip is a bluetooth chip of a bluetooth device in the first audio group, it is used to execute the method executed by the bluetooth device in the embodiment shown in fig. 2 to 5, and specific reference may be made to the related description of the embodiment shown in fig. 2 to 5. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 2 to fig. 5, and are not described herein again.
Embodiments of the present invention provide a computer-readable storage medium storing computer instructions that cause a computer to perform a method performed by an audio source device in the embodiments shown in fig. 2-5 or a method performed by a bluetooth device in the embodiments shown in fig. 2-5 of the present specification.
The computer-readable storage medium described above may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), a Flash Memory, an Erasable Programmable Read Only Memory (EPROM), or a Flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (16)

1. A method for transmitting bluetooth audio data, the method being applied to an audio source device, the method comprising:
broadcasting a first audio data packet to a first audio group, the first audio group comprising a plurality of Bluetooth devices;
receiving an acknowledgement code sent by at least one Bluetooth device in the first audio group, wherein the acknowledgement code is used for identifying that the first audio data packet is successfully received;
determining whether to rebroadcast the first audio data packet in the first audio group according to the received confirmation code.
2. The method of claim 1, further comprising:
and when the first audio group is established, respectively allocating identification codes for the Bluetooth devices added into the first audio group, wherein the identification codes are used for generating the confirmation codes.
3. The method of claim 2, wherein the identification code is used as the confirmation code.
4. The method of claim 2, wherein the identification code sent to each bluetooth device is an orthogonal code; the acknowledgement codes from the respective bluetooth devices are orthogonal codes.
5. The method of claim 1, further comprising:
broadcasting a first transmit power and a first desired power to the first audio group, the first transmit power being a power at which the audio source device transmits the first audio data packet, the first desired power being a power at which it is desired to receive the acknowledgement code; the first transmit power and the first desired power are used for each of the bluetooth devices to calculate a second transmit power for transmitting the acknowledgement code.
6. The method of any of claims 1 to 5, wherein receiving the confirmation code sent by at least one Bluetooth device in the first audio group comprises:
and receiving the confirmation codes sent by the Bluetooth devices at the same receiving opportunity after the first audio data packet is broadcasted, and identifying the confirmation codes of the Bluetooth devices by adopting an orthogonal demodulation mode.
7. The method of claim 1, wherein determining whether to rebroadcast the first audio packet in the first audio group based on the received acknowledgement code comprises:
determining the ratio of the number of the received confirmation codes to the total number of the Bluetooth devices according to the total number of the Bluetooth devices included in the first audio group;
determining not to rebroadcast the first audio packet in the first audio group if the ratio is greater than a first threshold; otherwise, rebroadcasting the first audio data packet in the first audio group.
8. A method for transmitting Bluetooth audio data, the method being applied to a Bluetooth device, the Bluetooth device being included in a first audio group, the method comprising:
when the audio source device is determined to successfully receive a first audio data packet broadcast by the audio source device, sending a confirmation code to the audio source device in a preset time slot of the first audio data packet, wherein the confirmation code is used for identifying the successful reception of the first audio data packet.
9. The method of claim 8, wherein an identification code assigned by the audio source device is obtained when joining the first audio group;
the confirmation code sent to the audio source device is generated from an identification code assigned by the audio source device.
10. The method of claim 9, wherein sending an acknowledgement code to the audio source device comprises:
the assigned identification code is transmitted as a confirmation code to the audio source device.
11. The method of claim 9, wherein the identification codes of the bluetooth devices included in the first audio group are orthogonal codes; the acknowledgement codes from the respective bluetooth devices are orthogonal codes.
12. The method of claim 8, further comprising: receiving a first transmission power and a first expected power broadcasted by the audio source device, wherein the first transmission power is the power of the audio source device for transmitting the first audio data packet, and the first expected power is the power of the audio source device expecting to receive the confirmation code;
transmitting an acknowledgement code to the audio source device, comprising:
calculating a second transmission power for transmitting the confirmation code according to the first transmission power and the first expected power;
transmitting the confirmation code to the audio source device at the second transmit power.
13. An audio source device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor calling the program instructions to perform the method of any of claims 1 to 7.
14. A bluetooth device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor calling the program instructions to perform the method of any of claims 8 to 12.
15. A Bluetooth chip, comprising:
a processor for executing computer program instructions stored in a memory, wherein the computer program instructions, when executed by the processor, trigger the bluetooth chip to perform the method of any of claims 1 to 7 or 8 to 12.
16. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium resides to perform the method of any one of claims 1 to 7 or 8 to 12.
CN202110148241.0A 2021-02-03 2021-02-03 Bluetooth audio data transmission method, equipment, chip and storage medium Active CN112994754B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110148241.0A CN112994754B (en) 2021-02-03 2021-02-03 Bluetooth audio data transmission method, equipment, chip and storage medium
PCT/CN2021/139595 WO2022166438A1 (en) 2021-02-03 2021-12-20 Bluetooth audio data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110148241.0A CN112994754B (en) 2021-02-03 2021-02-03 Bluetooth audio data transmission method, equipment, chip and storage medium

Publications (2)

Publication Number Publication Date
CN112994754A true CN112994754A (en) 2021-06-18
CN112994754B CN112994754B (en) 2022-08-16

Family

ID=76346352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110148241.0A Active CN112994754B (en) 2021-02-03 2021-02-03 Bluetooth audio data transmission method, equipment, chip and storage medium

Country Status (2)

Country Link
CN (1) CN112994754B (en)
WO (1) WO2022166438A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114007209A (en) * 2021-10-28 2022-02-01 歌尔光学科技有限公司 BLE-based data transmission method and device and BLE master equipment
WO2022166438A1 (en) * 2021-02-03 2022-08-11 展讯通信(上海)有限公司 Bluetooth audio data transmission method and device
WO2023024119A1 (en) * 2021-08-27 2023-03-02 华为技术有限公司 Data transmission method applied to short-range wireless communication, and communication device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426640A (en) * 2013-08-26 2015-03-18 创杰科技股份有限公司 Blue-tooth communication system and broadcasting method thereof
US20150334488A1 (en) * 2014-05-14 2015-11-19 Samsung Electronics Co., Ltd. Method and apparatus for communicating audio data
CN105099513A (en) * 2014-05-21 2015-11-25 密克罗奇普技术公司 Bluetooth communication system and broadcasting method thereof
US20190102143A1 (en) * 2017-09-29 2019-04-04 Apple Inc. Wireless audio splitter
CN110225504A (en) * 2019-06-21 2019-09-10 恒玄科技(上海)有限公司 Transmit the method and wireless device component of data
CN111464957A (en) * 2020-03-31 2020-07-28 Oppo(重庆)智能科技有限公司 Bluetooth audio transmission method and device, electronic equipment and storage medium
WO2020154938A1 (en) * 2019-01-30 2020-08-06 华为技术有限公司 Data transmission method and related apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290412B (en) * 2019-08-26 2019-11-29 恒玄科技(北京)有限公司 A kind of audio sync playback method, device and loudspeaker apparatus, wireless headset
CN111629365B (en) * 2020-04-27 2021-04-30 恒玄科技(北京)有限公司 Bluetooth communication method and Bluetooth communication device
CN112994754B (en) * 2021-02-03 2022-08-16 展讯通信(上海)有限公司 Bluetooth audio data transmission method, equipment, chip and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426640A (en) * 2013-08-26 2015-03-18 创杰科技股份有限公司 Blue-tooth communication system and broadcasting method thereof
US20150334488A1 (en) * 2014-05-14 2015-11-19 Samsung Electronics Co., Ltd. Method and apparatus for communicating audio data
CN105099513A (en) * 2014-05-21 2015-11-25 密克罗奇普技术公司 Bluetooth communication system and broadcasting method thereof
US20190102143A1 (en) * 2017-09-29 2019-04-04 Apple Inc. Wireless audio splitter
WO2020154938A1 (en) * 2019-01-30 2020-08-06 华为技术有限公司 Data transmission method and related apparatus
CN110225504A (en) * 2019-06-21 2019-09-10 恒玄科技(上海)有限公司 Transmit the method and wireless device component of data
CN111464957A (en) * 2020-03-31 2020-07-28 Oppo(重庆)智能科技有限公司 Bluetooth audio transmission method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022166438A1 (en) * 2021-02-03 2022-08-11 展讯通信(上海)有限公司 Bluetooth audio data transmission method and device
WO2023024119A1 (en) * 2021-08-27 2023-03-02 华为技术有限公司 Data transmission method applied to short-range wireless communication, and communication device
CN114007209A (en) * 2021-10-28 2022-02-01 歌尔光学科技有限公司 BLE-based data transmission method and device and BLE master equipment

Also Published As

Publication number Publication date
WO2022166438A1 (en) 2022-08-11
CN112994754B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN112994754B (en) Bluetooth audio data transmission method, equipment, chip and storage medium
CN108260056B (en) Power efficient, balanced and reliable true wireless bluetooth stereo audio solution
JP5703416B2 (en) Systems and methods for implementing multicast using personal area network (PAN) wireless technology
US10212694B2 (en) Wireless multicast communication
CN108616818B (en) Data retransmission method, bluetooth slave device and wireless communication system
JP5859716B1 (en) Adaptive channel reuse mechanism in communication networks
CN112188415B (en) Low-power-consumption Bluetooth synchronous data streaming transmission method and device
EP2476281A1 (en) Radio communication
TW202215869A (en) User equipment and method performed thereby
US10070341B2 (en) Method and apparatus for transmitting and receiving buffer status information in wireless communication system
WO2024067687A1 (en) Information transmission method, first communication node, second communication node, and storage medium
WO2019183942A1 (en) Uplink control information transmission method and device
US11129119B2 (en) Data synchronization method, device and storage medium
CN112105005B (en) Method and device for controlling Bluetooth equipment to play
WO2020088135A1 (en) Information processing method and terminal
US20230024463A1 (en) Method of transmitting ack signal in wireless communication system and electronic device
CN113347578B (en) Audio data transmission method, device and system, storage medium and earphone
US9413601B2 (en) Channel reuse among communication networks sharing a communication channel
CN114268911B (en) Communication method and device, readable storage medium and TWS system
CN111756483B (en) Feedback information transmission method and terminal
GB2499633A (en) Time-frequency resources are defined in a radio access network and sending opportunities are allocated for an apparatus to send a discovery message
WO2019096074A1 (en) Communication method and device
CN105052225A (en) Method and device for transmitting uplink information
WO2022266986A1 (en) Communication method and information processing apparatus
WO2022184043A1 (en) Multicast service receiving method and configuring method, terminal, and network side device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant