CN112135279B - Audio transmission method and device of multi-channel Bluetooth - Google Patents

Audio transmission method and device of multi-channel Bluetooth Download PDF

Info

Publication number
CN112135279B
CN112135279B CN202010996905.4A CN202010996905A CN112135279B CN 112135279 B CN112135279 B CN 112135279B CN 202010996905 A CN202010996905 A CN 202010996905A CN 112135279 B CN112135279 B CN 112135279B
Authority
CN
China
Prior art keywords
bluetooth
audio
data
audio devices
bluetooth audio
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.)
Active
Application number
CN202010996905.4A
Other languages
Chinese (zh)
Other versions
CN112135279A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010996905.4A priority Critical patent/CN112135279B/en
Publication of CN112135279A publication Critical patent/CN112135279A/en
Application granted granted Critical
Publication of CN112135279B publication Critical patent/CN112135279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Abstract

The application discloses a multi-channel Bluetooth audio transmission method and device. Wherein, the method comprises the following steps: creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, wherein each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link. The application solves the technical problem that the transmission of multi-path Bluetooth data cannot be carried out in the related technology.

Description

Audio transmission method and device of multi-channel Bluetooth
Technical Field
The application relates to the field of communication, in particular to a multi-channel Bluetooth audio transmission method and device.
Background
Although the mobile terminal devices sold in the market at present can keep a connection state with multiple types of bluetooth audio devices (such as bluetooth earphones, bluetooth sound boxes and other devices), when the mobile terminal plays media audio, the media audio can only be played by selecting one of the connected multiple types of bluetooth audio devices, other non-output audio devices cannot output the media audio, and meanwhile, the non-output audio devices cannot directly control the behaviors (such as pause, play and the like) of the audio and video player of the mobile terminal.
Of course, the TWS bluetooth true wireless headset can be taken as a special case, and the technical principle thereof mainly includes two categories:
firstly, the mobile terminal transmits stereo audio data to a main earplug in a Bluetooth true wireless earphone through a Bluetooth data link (AVDTP Stream Channel), the main earplug strips the received stereo audio data to obtain left and right single-Channel audio data, then transmits the left and right single-channels stripped by other technical means to an auxiliary earplug, and then the main earplug and the auxiliary earplug play sound at the same time;
secondly, the mobile terminal directly transmits left and right single-Channel audio data to left and right earplugs of the Bluetooth true wireless earphone through two Bluetooth data links (AVDTP Stream channels) respectively, so as to achieve the purpose that the two earplugs of the Bluetooth true wireless earphone play sound simultaneously.
The above scheme has the following disadvantages: only one path of stereo audio data or two paths of single-track audio data can be transmitted to the same equipment, and multiple paths of stereo audio data cannot be transmitted simultaneously; cannot simultaneously support a plurality of Bluetooth audio devices with different models.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a multi-channel Bluetooth audio transmission method and device, and aims to at least solve the technical problem that multi-channel Bluetooth data cannot be transmitted in the related technology.
According to an aspect of an embodiment of the present application, there is provided a method for audio transmission of multiple bluetooth channels, including: creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, wherein each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link.
According to another aspect of the embodiments of the present application, there is also provided a multi-channel bluetooth audio transmission apparatus, including: the device comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; the device comprises a storage unit, a processing unit and a processing unit, wherein the storage unit is used for storing audio data into a plurality of buffer queues, each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and the transmission unit is used for transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, a plurality of Bluetooth data links are established for a plurality of Bluetooth audio devices, each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link, so that the technical problem that the transmission of multi-path Bluetooth data cannot be carried out in the related technology can be solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of an alternative multi-way Bluetooth audio transmission method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative multi-way Bluetooth audio transmission method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative multi-way Bluetooth audio transmission scheme according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an alternative multi-way Bluetooth audio transmission scheme in accordance with embodiments of the present application;
FIG. 5 is a schematic diagram of an alternative multi-channel Bluetooth audio transmission device according to an embodiment of the present application; and
fig. 6 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present application, there is provided a method embodiment of an audio transmission method for multipath bluetooth. Fig. 1 is a flowchart of an optional multiple bluetooth audio transmission method according to an embodiment of the present application, and as shown in fig. 1, the method may include the following steps:
step S1, the terminal device creates multiple bluetooth data links for multiple bluetooth audio devices, where each of the multiple bluetooth data links corresponds to one bluetooth audio device, and the bluetooth audio devices corresponding to any two of the multiple bluetooth data links are different.
Optionally, creating a plurality of bluetooth data links for a plurality of bluetooth audio devices comprises: determining the plurality of Bluetooth audio devices in a startup state (i.e., a start state) among all Bluetooth audio devices; creating the plurality of Bluetooth data links for the plurality of Bluetooth audio devices.
Step S2, the terminal device stores the audio data into a plurality of buffer queues, where each of the plurality of buffer queues corresponds to one bluetooth data link, and bluetooth data links corresponding to any two of the plurality of buffer queues are different.
Optionally, the saving the audio data to a plurality of buffer queues comprises: acquiring attribute information of the plurality of bluetooth audio devices, such as a Codec, a transmission unit Mtu, and a bit pool bitpool of each of the plurality of bluetooth audio devices; determining encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices, if a plurality of groups of encoder parameters corresponding to the attribute information of the plurality of Bluetooth audio devices are calculated according to a preset calculation scheme, and determining the encoder parameters matched with the plurality of Bluetooth audio devices in the plurality of groups of encoder parameters by comparing the plurality of groups of encoder parameters with the attribute information of the plurality of Bluetooth audio devices; and storing the data obtained by encoding the audio data according to the encoder parameters into the plurality of buffer queues, determining a target Bluetooth audio device in the plurality of Bluetooth audio devices, which is in communication connection with a terminal device, and storing the data obtained by encoding the audio data according to the encoder parameters into a buffer queue matched with the target Bluetooth audio device.
And step S3, the terminal device transmits the audio data in the buffer queue to the Bluetooth audio device through the corresponding Bluetooth data link.
Optionally, after transmitting the audio data in the buffer queue to the bluetooth audio device through the corresponding bluetooth data link, a control instruction sent by the bluetooth audio device may be received; and controlling the audio playing progress according to the indication of the control instruction.
Through the steps, a plurality of Bluetooth data links are established for a plurality of Bluetooth audio devices, each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link, so that the technical problem that the transmission of multi-path Bluetooth data cannot be carried out in the related technology can be solved.
In the technical scheme of the application, a plurality of avdtp stream paths (namely Bluetooth data links) can be created at the same time and a plurality of Bluetooth audio devices are controlled to be in a starting state; acquiring attribute values of a2dp codec, mtu, bitpool and the like of a plurality of Bluetooth audio devices, and calculating the most suitable encoder parameters which support the Bluetooth audio devices through an algorithm; the purpose that the terminal equipment simultaneously controls the audio playing of the plurality of Bluetooth audio equipment is achieved by creating a plurality of buffer queues to simultaneously transmit stereo audio data to the plurality of Bluetooth audio equipment; the plurality of Bluetooth audio devices which have access to the mobile terminal device system can respectively control the related behaviors (such as playing, pausing and the like) of the media audio and video player of the mobile terminal through respective avrcp links.
As an alternative example, the technical solution of the present application is further described below with reference to specific embodiments.
The parameters of the most suitable encoder supported by the plurality of bluetooth audio devices are calculated in a specific manner, the encoder is further selected and set (as shown in fig. 2), then the encrypted audio data encoded by the encoder is buffered to a plurality of buffer queues, and the corresponding avdtp stream channel is selected to transmit the encrypted audio data of the buffer queues to the corresponding bluetooth audio devices (as shown in fig. 3). The specific implementation scheme is as follows (as shown in fig. 2 and fig. 3):
100: and analyzing the played audio and video file into PCM audio data, and selecting a proper audio route to transmit the PCM audio data into a Bluetooth audio encoder (encoder).
200: selection and setting of an audio encoder (encoder) in the bluetooth protocol stack.
300: after an audio encoder (encoder) encodes and encrypts PCM audio data transmitted by an audio module, a timer is triggered, and the Bluetooth protocol stack copies the encoded and encrypted stereo audio data to a buffer queue.
400: judging whether a plurality of Bluetooth audio devices (shown in figure 4 if the system architecture of only one device) are accessed into the terminal system and whether the accessed Bluetooth audio devices are in a start state, if so, copying and backing up the buffering A data of 300 to a buffering B queue of 400, otherwise, not backing up the buffering B data.
500: and the buffer A transmits the encrypted data of the buffer A to the far-end Bluetooth audio device A through the avdtp stream channel.
600: if a plurality of Bluetooth audio devices are accessed to the terminal system, the encrypted data of the buffer B is transmitted to a remote Bluetooth audio device B through an avdtp stream channel (the Bluetooth audio device B is only one code, and if a plurality of Bluetooth audio devices are accessed, the respective avdtp stream channels of the encrypted data of the buffer B are sequentially transmitted to the corresponding Bluetooth audio devices).
The specific processing manner of selecting and setting the audio encoder is as follows (as shown in fig. 2):
step 1: the avdtp getstartabilities instruction can be used to obtain the Codec supported by the peer bluetooth audio device and the corresponding related attribute values of Mtu and bitpool through the avdtp control channel.
Step 2: and (4) judging whether a plurality of Bluetooth audio devices are accessed into the terminal system, if so, executing the step (3), and otherwise, executing the step (4).
And step 3: and obtaining the optimal encoder parameter values supported by the accessed Bluetooth audio devices through an algorithm for the acquired attribute values of Codec, Mtu, bitpool and the like of the Bluetooth audio devices.
And 4, step 4: and comparing the relevant parameter values obtained in the step 3 with encoder parameter values such as Codec types and Mtu supported by the terminal device to obtain encoder parameter values supported by the terminal device and the connected multiple Bluetooth audio devices (namely all devices).
And 5: and (4) setting the encoder parameter value of the step (4) into a Bluetooth audio encoder.
The scheme realizes the selection of the optimal parameters of the encoder, caches the audio data by creating the multi-path buffer queue, and transmits the cached audio data to the plurality of Bluetooth audio devices respectively, thereby realizing the purposes of multi-path stereo Bluetooth audio transmission and control.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided a multiple bluetooth audio transmission apparatus for implementing the multiple bluetooth audio transmission method. Fig. 5 is a schematic diagram of an alternative multi-channel bluetooth audio transmission apparatus according to an embodiment of the present application, and as shown in fig. 5, the apparatus may include:
a creating unit 51, configured to create a plurality of bluetooth data links for a plurality of bluetooth audio devices, where each of the bluetooth data links corresponds to one bluetooth audio device, and bluetooth audio devices corresponding to any two of the bluetooth data links are different;
a saving unit 53, configured to save audio data to multiple buffer queues, where each of the multiple buffer queues corresponds to one bluetooth data link, and bluetooth data links corresponding to any two of the multiple buffer queues are different;
and the transmission unit 55 is configured to transmit the audio data in the buffer queue to the bluetooth audio device through the corresponding bluetooth data link.
It should be noted that the creating unit 51 in this embodiment may be configured to execute step S1 in this embodiment, the saving unit 53 in this embodiment may be configured to execute step S2 in this embodiment, and the transmitting unit 55 in this embodiment may be configured to execute step S3 in this embodiment.
Through the module, a plurality of Bluetooth data links are established for a plurality of Bluetooth audio devices, each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link, so that the technical problem that the transmission of multi-path Bluetooth data cannot be carried out in the related technology can be solved.
Optionally, the saving unit is further configured to: acquiring attribute information of the plurality of Bluetooth audio devices; determining encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices; and storing the data obtained by encoding the audio data according to the encoder parameters into the plurality of buffer queues.
Optionally, the saving unit is further configured to: the Codec, the transmission unit Mtu, and the bit pool bitpool of each of the plurality of bluetooth audio devices are obtained.
Optionally, the saving unit is further configured to: calculating a plurality of groups of encoder parameters corresponding to the attribute information of the plurality of Bluetooth audio devices according to a preset calculation scheme; and determining the encoder parameters matched with the plurality of Bluetooth audio devices in the plurality of groups of encoder parameters by comparing the plurality of groups of encoder parameters with the attribute information of the plurality of Bluetooth audio devices.
Optionally, the saving unit is further configured to: determining a target Bluetooth audio device which is in communication connection with the terminal device in the plurality of Bluetooth audio devices; and storing the data obtained by encoding the audio data according to the encoder parameters into a buffer queue matched with the target Bluetooth audio equipment.
Optionally, the creating unit is further configured to determine the plurality of bluetooth audio devices in the activated state among all bluetooth audio devices; creating the plurality of Bluetooth data links for the plurality of Bluetooth audio devices.
Optionally, the transmission unit is further configured to receive a control instruction sent by the bluetooth audio device after transmitting the audio data in the buffer queue to the bluetooth audio device through the corresponding bluetooth data link; and controlling the audio playing progress according to the indication of the control instruction.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules as a part of the apparatus may run in a corresponding hardware environment, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiments of the present application, there is also provided a server or a terminal for implementing the multi-path bluetooth audio transmission method.
Fig. 6 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 6, the terminal may include: one or more processors 201 (only one shown), memory 203, and transmission means 205, as shown in fig. 6, the terminal may further comprise an input-output device 207.
The memory 203 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for audio transmission of multiple bluetooth in the embodiment of the present application, and the processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 203, that is, implements the above-mentioned audio transmission method of multiple bluetooth. The memory 203 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 203 may further include memory located remotely from the processor 201, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 205 is used for receiving or sending data via a network, and can also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 205 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 205 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Wherein the memory 203 is specifically used for storing application programs.
The processor 201 may call the application stored in the memory 203 via the transmission means 205 to perform the following steps:
creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, wherein each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different;
storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different;
and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link.
The processor 201 is further configured to perform the following steps:
acquiring attribute information of the plurality of Bluetooth audio devices;
determining encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices;
and storing the data obtained by encoding the audio data according to the encoder parameters into the plurality of buffer queues.
By adopting the embodiment of the application, a plurality of Bluetooth data links are established for a plurality of Bluetooth audio devices, each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different; storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different; and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link, so that the technical problem that the transmission of multi-path Bluetooth data cannot be carried out in the related technology can be solved. In the technical scheme of the application, a plurality of avdtp stream paths (namely Bluetooth data links) can be created at the same time and a plurality of Bluetooth audio devices are controlled to be in a starting state; acquiring attribute values of a2dp codec, mtu, bitpool and the like of a plurality of Bluetooth audio devices, and calculating the most suitable encoder parameters which support the Bluetooth audio devices through an algorithm; the purpose that the terminal equipment simultaneously controls the audio playing of the plurality of Bluetooth audio equipment is achieved by creating a plurality of buffer queues to simultaneously transmit stereo audio data to the plurality of Bluetooth audio equipment; the plurality of Bluetooth audio devices which have access to the mobile terminal device system can respectively control the related behaviors (such as playing, pausing and the like) of the media audio and video player of the mobile terminal through respective avrcp links.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the storage medium may be a program code for executing an audio transmission method of multiple bluetooth.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, wherein each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different;
storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different;
and transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
acquiring attribute information of the plurality of Bluetooth audio devices;
determining encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices;
and storing the data obtained by encoding the audio data according to the encoder parameters into the plurality of buffer queues.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be 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, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application 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, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (7)

1. A multi-channel Bluetooth audio transmission method is characterized by comprising the following steps:
creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, wherein each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different;
storing audio data into a plurality of buffer queues, wherein each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different;
transmitting the audio data in the buffer queue to the Bluetooth audio equipment through the corresponding Bluetooth data link;
receiving a control instruction sent by the Bluetooth audio equipment;
controlling the audio playing progress according to the indication of the control instruction, and storing the audio data to a plurality of buffer queues comprises:
acquiring attribute information of the plurality of Bluetooth audio devices;
determining encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices;
storing data obtained by encoding the audio data according to the encoder parameters into the plurality of buffer queues, and determining the encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices comprises:
calculating a plurality of groups of encoder parameters corresponding to the attribute information of the plurality of Bluetooth audio devices according to a preset calculation scheme;
and determining the encoder parameters matched with the plurality of Bluetooth audio devices in the plurality of groups of encoder parameters by comparing the plurality of groups of encoder parameters with the attribute information of the plurality of Bluetooth audio devices.
2. The method of claim 1, wherein obtaining attribute information for the plurality of Bluetooth audio devices comprises:
the Codec, the transmission unit Mtu, and the bit pool bitpool of each of the plurality of bluetooth audio devices are obtained.
3. The method of claim 1, wherein storing data resulting from encoding the audio data according to the encoder parameters to the plurality of buffer queues comprises:
determining a target Bluetooth audio device which is in communication connection with the terminal device in the plurality of Bluetooth audio devices;
and storing the data obtained by encoding the audio data according to the encoder parameters into a buffer queue matched with the target Bluetooth audio equipment.
4. The method of any of claims 1-3, wherein creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices comprises:
determining the plurality of Bluetooth audio devices in an activated state among all Bluetooth audio devices;
creating the plurality of Bluetooth data links for the plurality of Bluetooth audio devices.
5. An apparatus for audio transmission over multiple bluetooth channels, comprising:
the device comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for creating a plurality of Bluetooth data links for a plurality of Bluetooth audio devices, each Bluetooth data link in the plurality of Bluetooth data links corresponds to one Bluetooth audio device, and the Bluetooth audio devices corresponding to any two Bluetooth data links in the plurality of Bluetooth data links are different;
the device comprises a storage unit, a processing unit and a processing unit, wherein the storage unit is used for storing audio data into a plurality of buffer queues, each buffer queue in the plurality of buffer queues corresponds to a Bluetooth data link, and the Bluetooth data links corresponding to any two buffer queues in the plurality of buffer queues are different;
the transmission unit is used for transmitting the audio data in the buffer queue to the Bluetooth audio device through the corresponding Bluetooth data link, receiving a control instruction sent by the Bluetooth audio device, controlling the audio playing progress according to the instruction of the control instruction, and storing the audio data in a plurality of buffer queues, and comprises:
acquiring attribute information of the plurality of Bluetooth audio devices;
determining encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices;
storing data obtained by encoding the audio data according to the encoder parameters into the plurality of buffer queues, and determining the encoder parameters matched with the plurality of Bluetooth audio devices according to the attribute information of the plurality of Bluetooth audio devices comprises:
calculating a plurality of groups of encoder parameters corresponding to the attribute information of the plurality of Bluetooth audio devices according to a preset calculation scheme;
and determining the encoder parameters matched with the plurality of Bluetooth audio devices in the plurality of groups of encoder parameters by comparing the plurality of groups of encoder parameters with the attribute information of the plurality of Bluetooth audio devices.
6. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 4.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 4 by means of the computer program.
CN202010996905.4A 2020-09-21 2020-09-21 Audio transmission method and device of multi-channel Bluetooth Active CN112135279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010996905.4A CN112135279B (en) 2020-09-21 2020-09-21 Audio transmission method and device of multi-channel Bluetooth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010996905.4A CN112135279B (en) 2020-09-21 2020-09-21 Audio transmission method and device of multi-channel Bluetooth

Publications (2)

Publication Number Publication Date
CN112135279A CN112135279A (en) 2020-12-25
CN112135279B true CN112135279B (en) 2022-03-18

Family

ID=73843015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010996905.4A Active CN112135279B (en) 2020-09-21 2020-09-21 Audio transmission method and device of multi-channel Bluetooth

Country Status (1)

Country Link
CN (1) CN112135279B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840269B (en) * 2021-08-06 2023-11-14 深圳Tcl新技术有限公司 Multimedia data transmission method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858693A (en) * 2005-04-30 2006-11-08 艾威梯软件技术(北京)有限公司 Method for simultanuously supporting multiple path blue-tooth audio application
CN108881990A (en) * 2018-06-25 2018-11-23 努比亚技术有限公司 Audio frequency playing method, terminal and computer storage medium
CN111385621A (en) * 2020-03-18 2020-07-07 海信视像科技股份有限公司 Display device and Bluetooth audio transmission method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100129415A (en) * 2009-06-01 2010-12-09 삼성전자주식회사 Method for outputting audio data based on short range wireless communication and mobile terminal using the same
US10681479B2 (en) * 2015-01-30 2020-06-09 Cassia Networks Inc. Methods, devices and systems for bluetooth audio transmission
CN111093179B (en) * 2019-12-27 2023-10-27 合肥中感微电子有限公司 Wireless communication method, device and system
CN111199743B (en) * 2020-02-28 2023-08-18 Oppo广东移动通信有限公司 Audio coding format determining method and device, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858693A (en) * 2005-04-30 2006-11-08 艾威梯软件技术(北京)有限公司 Method for simultanuously supporting multiple path blue-tooth audio application
CN108881990A (en) * 2018-06-25 2018-11-23 努比亚技术有限公司 Audio frequency playing method, terminal and computer storage medium
CN111385621A (en) * 2020-03-18 2020-07-07 海信视像科技股份有限公司 Display device and Bluetooth audio transmission method

Also Published As

Publication number Publication date
CN112135279A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
WO2016200894A1 (en) Platform for multiple device playout
JP2006512027A5 (en)
KR20150038232A (en) Methods and systems for dynamic media content output for mobile devices
JP5342072B2 (en) Object transmission method between devices having multiple radio interfaces
US11944911B2 (en) Configuring headset voice morph based on player assignment
WO2007147447A1 (en) Continued file transfer after handover
WO2018049892A1 (en) Data transmission method and apparatus, and terminal
CN112130461A (en) Smart home control method and device, storage medium and electronic device
US11857881B2 (en) Networked gaming headset
US11510005B2 (en) Gaming headset with voice scrambling for private in-game conversations
CN109152057A (en) Timeslice distribution method, device and electronic equipment
JP2005531213A5 (en)
CN112135279B (en) Audio transmission method and device of multi-channel Bluetooth
CN108924610A (en) Multimedia file processing method, device, medium and calculating equipment
KR20110050830A (en) Apparatus and method for playing the multisound channel content using dlna in portable communication system
JP5739090B2 (en) Multiplayer online game
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
CN111049709A (en) Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
JP4341161B2 (en) Information providing method, information providing apparatus, and information recording medium
WO2021021386A1 (en) Multipath wireless controller
JP2002051400A (en) Method and device for processing sound signal
JP2017536042A (en) Message processing method, apparatus, program, and recording medium
CN110755843B (en) Game audio processing method and device, storage medium and electronic device
CN115022774A (en) Voice pick-up and play-out method, system, electronic equipment and storage medium
CN114461163A (en) Data sharing system, data sharing method, and nonvolatile storage medium

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