Apparatus, method and chip for transmitting audio data
By setting up a first processing core and a second processing core in the device for transmitting audio data, and establishing first and second transmission links respectively, the problem of high-speed and stable transmission of high-definition lossless audio data that is difficult to achieve by the transmission device is solved, and the audio playback quality is improved.
Patent Information
- Application Number
- CN202311193459.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-09-14
AI Technical Summary
In existing technologies, devices for transmitting audio data struggle to achieve high-speed and stable transmission of high-definition lossless audio data, resulting in poor playback quality.
By employing a time-division multiplexing approach, a first processing core and a second processing core are set up in the device transmitting audio data. A first transmission link and a second transmission link are established based on the first physical layer and the second physical layer, respectively, for transmitting the first channel and the second channel audio data, thereby improving the transmission bandwidth and speed.
This technology enables the simultaneous transmission of audio data to multiple playback components of an audio playback device via two transmission links, avoiding playback stuttering and ensuring high-speed and stable transmission of high-definition lossless audio data.
Smart Images

Figure CN119629772B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data transmission, and more particularly to a device, a method and a chip for transmitting audio data. BACKGROUND
[0002] With the development of wireless technology, consumers have higher and higher requirements on the playing quality of wireless audio playing devices. Generally, the playing quality of a wireless audio playing device (for example, a Bluetooth earphone) depends on the transmission quality of audio data between a device (for example, a mobile phone) for transmitting audio data and an audio playing device.
[0003] In the related art, the transmission capability of the device for transmitting audio data is limited, and it is difficult to realize high-speed and stable transmission of high-definition and lossless audio data. SUMMARY
[0004] The present application provides a device, a method and a chip for transmitting audio data. The following introduces each aspect of the embodiments of the present application.
[0005] In a first aspect, a device for transmitting audio data is provided, the audio data including first channel audio data and second channel audio data, and the device includes: a first processing core in communication connection with a first physical layer, the first processing core being configured to establish a first transmission link based on the first physical layer, the first transmission link being used to connect the device for transmitting audio data and a first playing component in an audio playing device and being used to transmit the first channel audio data; and a second processing core in communication connection with a second physical layer, the second processing core being configured to establish a second transmission link based on the second physical layer, the second transmission link being used to connect the device for transmitting audio data and a second playing component in the audio playing device and being used to transmit the second channel audio data.
[0006] In a second aspect, a method for transmitting audio data is provided, the audio data including first channel audio data and second channel audio data, and the method is applied to a device for transmitting audio data, the device including a first processing core, a first physical layer, a second processing core and a second physical layer, and the method includes: connecting the first processing core with the first physical layer in communication, to establish a first transmission link; transmitting the first channel audio data between the device for transmitting audio data and a first playing component in an audio playing device by using the first transmission link; connecting the second processing core with the second physical layer in communication, to establish a second transmission link; and transmitting the second channel audio data between the device for transmitting audio data and a second playing component in the audio playing device by using the second transmission link.
[0007] In a third aspect, a chip is provided, which is arranged in a device for transmitting audio data, and the chip comprises: a processor configured to invoke and run a computer program from a memory, so that the device for transmitting audio data performs the method according to the second aspect.
[0008] The device for transmitting audio data provided by the embodiments of the present application has the first processing core and the second processing core, and the first processing core and the second processing core can establish the first transmission link and the second transmission link based on the first physical layer and the second physical layer respectively, wherein the first transmission link is used for transmitting the first channel audio data between the device for transmitting audio data and the first playing component in the audio playing device, and the second transmission link is used for transmitting the second channel audio data between the device for transmitting audio data and the second playing component in the audio playing device. The device for transmitting audio data can transmit the first channel audio data and the second channel audio data to the first playing component and the second playing component respectively via the two transmission links at the same time, which improves the transmission bandwidth and rate of the audio data, effectively avoids the phenomenon of playing lag caused by the slow transmission rate of the high-definition lossless audio data, and ensures the high-speed and stable transmission of the high-definition lossless audio data. BRIEF DESCRIPTION OF DRAWINGS
[0009] Figure 1 FIG. 1 is a structural schematic diagram of an audio data transmission system in the related art.
[0010] Figure 2 FIG. 2 is a structural schematic diagram of an audio data transmission system provided by an embodiment of the present application.
[0011] Figure 3 FIG. 3 is a structural schematic diagram of a device for transmitting audio data and an application scenario thereof provided by an embodiment of the present application.
[0012] Figure 4 FIG. 4 is a structural schematic diagram of a device for transmitting audio data provided by another embodiment of the present application.
[0013] Figure 5 FIG. 5 is a structural schematic diagram of a device for transmitting audio data and an application scenario thereof provided by another embodiment of the present application.
[0014] Figure 6 FIG. 6 is a structural schematic diagram of a device for transmitting audio data and an application scenario thereof provided by another embodiment of the present application.
[0015] Figure 7 FIG. 7 is a schematic diagram of a data transmission process provided by an embodiment of the present application.
[0016] Figure 8 FIG. 8 is a schematic diagram of a data transmission process provided by another embodiment of the present application.
[0017] Figure 9 FIG. 1 is a schematic diagram of a data transmission process in a synchronous transmission scenario according to an embodiment of the present application.
[0018] Figure 10 FIG. 2 is a schematic diagram of a data transmission process in a non-synchronous transmission scenario according to an embodiment of the present application.
[0019] Figure 11 FIG. 3 is a flowchart of a transmission method of audio data according to an embodiment of the present application.
[0020] Figure 12 FIG. 4 is a schematic diagram of a chip according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] For the purpose of facilitating the understanding of the present application, the present application will be described in more detail below based on exemplary embodiments and in conjunction with the accompanying drawings. The same or similar reference signs are used to represent the same or similar modules in the accompanying drawings. It should be understood that the accompanying drawings are merely schematic, and the scope of protection of the present application is not limited thereto.
[0022] With the development of wireless technology, consumers have higher and higher requirements on the playing quality of wireless audio playing devices. A wireless audio playing device can refer to an audio playing device including at least a first playing component and a second playing component. The first playing component and the second playing component can be electro-acoustic transducers that receive audio data from a device transmitting the audio data and convert the audio data into sound.
[0023] For example, the audio playing device can be a Bluetooth earphone. The Bluetooth earphone can be, for example, an in-ear earphone or a headphone. One of the first playing component and the second playing component is a master earphone in the Bluetooth earphone, and the other is a slave earphone in the Bluetooth earphone. For another example, the audio playing device can be a Bluetooth sound box, one of the first playing component and the second playing component is a first sound box in the Bluetooth sound box, and the other is a second sound box in the Bluetooth sound box.
[0024] Since the wireless audio playing device does not need to have a physical connection with the device transmitting the audio data, the use experience is good. In particular, when the wireless audio playing device is a Bluetooth earphone, the user can listen to audio while avoiding the trouble caused by the entanglement of the physical connection.
[0025] The first and second playing components can generally be used in pairs. Taking a Bluetooth earphone as an example of a wireless audio playing device, the Bluetooth earphone generally includes a left ear earphone and a right ear earphone in pairs. The left ear earphone and the right ear earphone are the first and second playing components described above. Preferably, the audio playing device can be a true wireless Bluetooth earphone (TWS). Due to the advantages of high latency-related performance, good noise reduction performance, and easy portability, the TWS earphone can be widely applied in complex scenes such as subways, buses, airports, outdoors, and offices and ensure the quality of games, music, and calls.
[0026] The device for transmitting audio data can be implemented as any of the following electronic devices: a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA) device, a handheld device with wireless communication function, a computing device, or other processing devices connected to a wireless modem, a vehicle-mounted device, a wearable device, an MP4 playing terminal.
[0027] Generally, the playing quality of the audio playing device depends on the transmission quality of the audio data between the device for transmitting audio data and the audio playing device. However, in the related art, due to the limited transmission capability of the device for transmitting audio data, when the device for transmitting audio data is used to transmit audio data to an audio playing device including at least two playing components, it is difficult to achieve high-speed and stable transmission of high-definition and lossless audio data, resulting in poor playing quality of the audio playing device.
[0028] For ease of understanding, the following describes the device for transmitting audio data and the audio playing device in combination with Figure 1 The audio data transmission system 1 in the related art is described in detail. As shown in Figure 1 The audio data transmission system 1 includes a device 10 for transmitting audio data and an audio playing device 20.
[0029] As shown in Figure 1 The device 10 for transmitting audio data can establish a wireless transmission link 110 with the audio playing device 20 based on a wireless communication protocol to transmit audio data through the wireless transmission link 110. The wireless communication protocol can be, for example, a Bluetooth communication protocol. In some embodiments, the wireless communication protocol can also be a WiFi communication protocol.
[0030] The audio data can be transmitted from the audio data transmitting device 10 to the audio playback device 20, in which case the audio data transmitting device 10 acts as an audio source and the audio playback device 20 acts as an audio sink. The second audio device 20 can then convert the received audio data into sound so that a user wearing the audio playback device 20 can hear the sound.
[0031] In some embodiments, the audio data can also be transmitted from the audio playback device 20 to the audio data transmitting device 10, in which case the audio playback device 20 acts as an audio source and the audio data transmitting device 10 acts as an audio sink. For example, the audio playback device 20 can be equipped with a sound collector such as a receiver or a microphone. The audio playback device 20 can convert the collected sound into audio data and transmit the audio data to the audio data transmitting device 10 via the wireless transmission link 110, so that the audio data transmitting device 10 can perform subsequent processing on the audio data. The subsequent processing can be, for example, transmitting the audio data to another electronic device or saving the audio data.
[0032] As mentioned above, the audio playback device 20 includes at least a first playback component 210 and a second playback component 220. One of the first playback component 210 and the second playback component 220 is a master playback component and the other is a slave playback component. Since the audio playback device 20 includes at least two playback components, in order to ensure that both of the at least two playback components can play based on the audio data, it is necessary that both of the at least two playback components can obtain the audio data.
[0033] However, in some communication standards, the standard specifies that the audio data transmitting device 10 can only establish a wireless transmission link 110 with one of the playback components (the master playback component) of the audio playback device 20 that includes multiple playback components. The remaining playback components can obtain the audio data by listening to the wireless transmission link.
[0034] Taking the Bluetooth standard as an example, in the Bluetooth standard, the first playback component 210 is the master playback component and the second playback component 220 is the slave playback component. The audio data transmitting device 10 can only establish a Bluetooth transmission link 110 with the first playback component 210, and the second playback component 220 can only obtain the audio data on the transmission link by listening. Figure 1 In addition, the audio data transmitted to the first playback component 210 and the second playback component 220 via the single Bluetooth transmission link 110 is often two-channel mixed data, and thus the data amount is large.
[0035] The listening can be understood as that after the second playing component 220 learns the related parameters of the Bluetooth transmission link 110, the second playing component 220 can pretend to be the first playing component 210 to receive the audio data on the Bluetooth transmission link 110. In this way, the second playing component 220 can obtain the audio data transmitted by the device 10 for transmitting audio data to the first playing component 210 on the wireless transmission link without establishing a wireless transmission link with the device 10 for transmitting audio data.
[0036] The transmission rate of the single Bluetooth transmission link is not high (generally a maximum of 2-3 Mbps), and the data amount of the two-channel mixed data to be transmitted by the single Bluetooth transmission link is large, based on the limitation of the limited bandwidth of the single Bluetooth transmission link 110. Figure 1 The device 10 for transmitting audio data in the related technology transmits the audio data slowly, which causes the first playing component 210 and the second playing component 220 to wait for a long time to receive the audio data, and thus the playing process has a phenomenon of stuttering. Since the data amount of the high-definition lossless audio data is larger than that of the ordinary audio data, if the device 10 for transmitting audio data in the related technology is used to transmit the high-definition lossless audio data, more stuttering phenomena of the audio playing device 20 will occur, and thus the device 10 for transmitting audio data in the related technology is difficult to realize the fast and stable transmission of the high-definition lossless audio data. Figure 1
[0037] To solve the above problems, as a possible implementation manner, as shown in Figure 2 , the device 10 for transmitting audio data can use the time division multiplexing manner to transmit two-channel audio data to the first playing component 210 and the second playing component 220 respectively. Specifically, the audio data can be split into first channel data and second channel data. The device 10 for transmitting audio data can establish a first transmission link 110 with the first playing component 210 at T0, and transmit the first channel data to the first playing component 210 based on the first transmission link 110. In addition, the device 10 for transmitting audio data can establish a second transmission link 120 with the second playing component 210 at T1, and transmit the second channel data to the second playing component 210 based on the second transmission link 120. It should be noted that the first transmission link 110 and the second transmission link 120 cannot exist at the same time.
[0038] By using the time division multiplexing manner to transmit the single-channel audio data, compared with Figure 1 In this way, the amount of data transmitted by a single transmission link can be reduced, and thus the transmission speed of the audio data can be improved to a certain extent. However, only one transmission link (the first transmission link 110 or the second transmission link 120) is used to transmit the audio data at the same time. The speed of one transmission link is only 2-3 Mbps at most, and thus the transmission speed of the audio data cannot be improved by using the transmission link. Figure 2 The device 10 for transmitting audio data in the related art also cannot meet the requirement of fast and stable transmission of high-definition lossless audio data.
[0039] In summary, the device 10 for transmitting audio data in the related art has limited transmission capability, and it is difficult to achieve fast and stable transmission of high-definition lossless audio data.
[0040] To solve the above problems, an embodiment of the present application provides a device for transmitting audio data. The device for transmitting audio data has a first processing core and a second processing core, and the first processing core and the second processing core can respectively establish a first transmission link and a second transmission link based on the first processing core and the second processing core. The first transmission link and the second transmission link are respectively used to transmit first channel audio data between the device for transmitting audio data and a first playing component in an audio playing device and to transmit second channel audio data between the device for transmitting audio data and a second playing component in the audio playing device. The device for transmitting audio data can transmit the first channel audio data and the second channel audio data to the first playing component and the second playing component via two transmission links at the same time, thereby improving the transmission bandwidth and speed of the audio data, effectively avoiding the phenomenon of playing lag caused by slow transmission speed of high-definition lossless audio data, and ensuring fast and stable transmission of high-definition lossless audio data.
[0041] The device for transmitting audio data 30 provided by an embodiment of the present application will be described in detail below in combination with Figure 3 and Figure 4 It should be noted that the device for transmitting audio data in the embodiment of the present application is used to transmit the audio data described above. The audio data can include high-definition lossless audio data. The audio data can include first channel audio data and second channel audio data.
[0042] As shown in Figure 3 , the device for transmitting audio data 30 includes a first processing core core0, a second processing core core1, a first physical layer PHY0, and a second physical layer PHY1.
[0043] Both the first processing core 0 and the first processing core 1 can be processors or controllers responsible for establishing wireless transmission links. Communication protocols can be defined in both cores, allowing them to transmit data. In this embodiment, cores 0 and 1 can operate independently without affecting each other.
[0044] For example, both the first processing core 0 and the first processing core 1 can be Bluetooth cores. These Bluetooth cores can specify the Bluetooth Core protocol; therefore, the first processing core 0 and the second processing core 1 can transmit based on the Bluetooth Core protocol, respectively. Optionally, the first processing core 0 and the second processing core 1 can transmit based on different Bluetooth Core protocols. In some embodiments, the first processing core 0 and the first processing core 1 can also be used to define hardware-related specifications such as radio frequency and baseband.
[0045] The Bluetooth core protocol can be any of the specifications from Bluetooth Core Protocol 2.0 to Bluetooth Core Protocol 5.0. The Bluetooth technology defined by the Bluetooth core protocol primarily includes two system types: Basic Rate (BR) and Low Energy (LE). Both types of systems include device discovery, connection establishment, and connection mechanisms. Basic Rate (BR) can include optional Enhanced Data Rate (EDR) and Alternate Media Access Control and Physical Layer Extensions (AMP). Low Energy (LE) systems include features designed to achieve products requiring lower power consumption, lower complexity, and lower cost than BR / EDR.
[0046] Among them, such as Figure 3 As shown, the first processing core 0 is communicatively connected to the first physical layer PHY 0, and the first processing core 0 is configured to establish a first transmission link 310 based on the first physical layer PHY 0. The first transmission link 310 is used to connect the device 30 for transmitting audio data and the first playback component 210 in the audio playback device 20, and the first transmission link 310 is used to transmit the first channel audio data.
[0047] The second processing core core1 is communicatively connected with the second physical layer PHY1, and the second processing core core1 is configured to establish the second transmission link 320 based on the second physical layer PHY1. The second transmission link 320 is used to connect the device 30 for transmitting audio data and the second playing component 220 in the audio playing device 20, and the second transmission link 320 is used to transmit second channel audio data.
[0048] As an implementation manner, the first transmission link 310 or the second transmission link 320 can be a Bluetooth transmission link. For example, the first transmission link 310 or the second transmission link 320 can be an asynchronous connectionless (ACL) link, a synchronous connection oriented (SCO) or an extended SCO (eSCO) link. In some embodiments, the first transmission link 310 or the second transmission link 320 can also be a WiFi transmission link.
[0049] The first physical layer PHY0 and the second physical layer PHY1 are both physical layers (PHY). The physical layer is used to provide a physical channel for constituting a transmission link (for example, the first transmission link 310 or the second transmission link 320). The physical channel can be understood as an air interface physical channel between the device 30 for transmitting audio data and the audio playing device 20, and the physical layer is a channel for carrying time domain, frequency domain and space domain markers, including the concepts of frequency hopping, time slot, event and access code. The physical channel is also called a channel and is used for data transmission. The channel can generally include a control channel, a data channel, a voice channel and the like. For example, when the physical layer is used to constitute a Bluetooth channel, the physical layer uses a 2.4 GHz frequency band.
[0050] In the embodiments of the present application, the first physical layer PHY0 is used to provide a first channel for constituting the first transmission link 310, and the first transmission link 310 transmits first channel audio data based on the first channel. The second physical layer PHY1 is used to provide a second channel for constituting the second transmission link 320, and the second transmission link 320 transmits second channel audio data based on the second channel.
[0051] The operating frequency band (or bandwidth) of the first channel is different from that of the second channel. Furthermore, the difference between the frequencies of the first and second channels is not less than a preset value. Here, frequency can be understood as the center frequency of the operating frequency band. In other words, the frequencies of the first and second channels must have an interval greater than the preset value. By separating the frequencies of the first and second channels, mutual interference can be avoided when the first and second channel data are received by the first playback unit 210 and the second playback unit 220, respectively. This embodiment does not specifically limit the preset value; the preset value can be set as needed. For example, the preset value can be 100MHz. Or, the preset value can be 200MHz.
[0052] Combination Figure 4 As shown, the processing core (e.g., the first processing core core0 or the second processing core core1) includes a link layer (LL) and a host controller interface (HCI). The link layer can provide a logical transmission channel (or logical link) constituting the transmission link on top of the physical layer. The link layer can be used to control the radio frequency state of the device 30 transmitting audio data, which may include, for example, any of the following: waiting, broadcasting, scanning, initializing, or connecting. In some embodiments, the link layer may include the management module of the aforementioned ACL link and SCO link for constructing the transmission link (first transmission link or second transmission link) described above.
[0053] As mentioned above, both the first processing core 0 and the first processing core 1 define communication protocols. Therefore, in some embodiments, the first processing core 0 is further configured to encapsulate the first channel data according to its internal communication protocol, so as to encapsulate the first channel data into first protocol data. And / or, the first processing core 1 is further configured to encapsulate the second channel data according to its internal communication protocol, so as to encapsulate the second channel data into second protocol data.
[0054] In some embodiments, such as Figure 3 As shown, the first physical layer PHY0 can be connected to the first processing core 0 and the first transceiver 330, respectively, and the second physical layer PHY0 can be connected to the second physical layer PHY1 and the second transceiver 340, respectively. The first physical layer PHY0 can also be configured to re-encapsulate and modulate / demodulate the first protocol data. And / or, the second physical layer PHY1 can also be configured to re-encapsulate and modulate the second protocol data.
[0055] In this embodiment, the first processing core 0 and the first physical layer PHY 0 can both belong to the first Bluetooth chip. Alternatively, the first processing core 0 belongs to the first Bluetooth chip, and the first physical layer PHY 0 belongs to another communication chip. For example, the other communication chip could be a Wi-Fi communication chip. Similarly, the first processing core 1 and the second physical layer PHY 1 can both belong to the second Bluetooth chip, or the first processing core 1 belongs to the second Bluetooth chip, and the second physical layer PHY 1 belongs to another communication chip. Alternatively, the first processing core 0, the first processing core 1, the first physical layer PHY 0, and the second physical layer PHY 1 can all belong to the same Bluetooth chip. The difference is that the first processing core 0 is paired with the first physical layer PHY 0, and the first processing core 1 is paired with the second physical layer PHY 1. Furthermore, the first processing core 0 and the first processing core 1 are isolated and work independently without interfering with each other.
[0056] This application embodiment does not specifically limit the synchronization of data transmission on the first transmission link 310 and the second transmission link 320. In some embodiments, such as Figure 3 As shown, the device 30 for transmitting audio data may further include a communication host (HOST) 350. The communication host 350 can be communicatively connected to both the first processing core 0 and the first processing core 1. For example, the communication host 350 can be connected to the HCI interfaces of the first processing core 0 and the first processing core 1 respectively via a first HCI interface and a second HCI interface. The communication host 350 can control the synchronization or desynchronization of the clocks of the first processing core 0 and the first processing core 1 based on a communication protocol, ultimately resulting in the synchronization or desynchronization of data transmission on the first transmission link 310 and the second transmission link 320.
[0057] As one implementation, data transmission on the first transmission link 310 and the second transmission link 320 can be synchronized. That is, the communication host 350 can control the clock of the first processing core 0 to synchronize with the clock of the first processing core 1, and the clock of the first physical layer PHY0 to synchronize with the clock of the second physical layer PHY1, so as to achieve synchronous transmission of the first channel data and the second channel data. By setting synchronous transmission, interference can be prevented when the first playback component 210 and the second playback component 220 at the audio playback device 20 receive the first channel data and the second channel data respectively.
[0058] As another implementation, the data transmission on the first transmission link 310 and the second transmission link 320 can be asynchronous. That is, the communication host 350 can control the clock of the first processing core core0 and the clock of the first processing core core1 to be asynchronous, and the clock of the first physical layer PHY0 and the clock of the second physical layer PHY1 to be synchronous, so as to realize the asynchronous transmission of the first channel data and the second channel data. Through the setting of the asynchronous transmission, when the data on one of the transmission links needs to be retransmitted, the other transmission link does not need to perform the same retransmission action or waiting action, so that the rate of the overall audio data transmission can be improved.
[0059] The embodiments of the present application do not make specific limitation on the structure of the communication host 350. As an implementation, in combination with the above description of the first transmission link 310 and the second transmission link 320, the communication host 350 can include a generic access profile (GAP) module, a logical link control and adaptation protocol (L2CAP) module, a security manager (SM) module, an attribute protocol (ATT) module, and a generic attribute profile (GATT) module. Figure 4 As shown in FIG. 3, the communication host 350 can include a GAP module, an L2CAP module, an SM module, an ATT module, and a GATT module.
[0060] The GAP module is configured to parse the payload of the link layer. The GAP module can simply perform some specifications and definitions on the payload, and is mainly used for broadcasting, scanning, and initiating connection, etc. The L2CAP module is configured to manage the logical link provided by the logical layer. Based on the protocol, different applications can share the same logical link. In some embodiments, the L2CAP module can also provide the role of multiplexing. The SM module is configured to manage the encryption and security of the transmission link. The ATT module is configured to define the data of user commands and user operations. The GATT module is configured to specify the grouping of the data content of various applications.
[0061] The embodiments of the present application do not make specific limitation on the source of the audio data. As an implementation, as shown in FIG. 4, the audio data can be obtained from a Bluetooth low energy (BLE) module 410, a Bluetooth module 420, a Wi-Fi module 430, a wired module 440, or the like. Figure 4As shown, the upper layer of the communication host 350 can also be provided with an application module 360. The device 30 for transmitting audio data can also include an audio module 361. The audio module 361 is configured to generate the audio data as described above. The audio module 361 can be located at the application module 360 of the upper layer of the communication host 350. The audio module 361 can be, for example, a module implementing the following audio services: voice, music, game, video, voice assistant, mail alert tone, alarm, alert tone, navigation tone, etc. It should be understood that the audio data generated by the audio module can be dual-channel mixed data.
[0062] The audio module 361 can be in communication connection with the communication host 350, for example, the audio module 361 can be connected with the communication host 350 through an HCI interface or an API interface. The communication host 350 can be configured to obtain the audio data in the form of dual-channel mixing from the audio module 361 and split the mixed audio data into first channel audio data and second channel audio data. In addition, the communication host 350 can also perform protocol unpacking on the split first channel audio data and second channel audio data to form a data stream of the first channel audio data and a data stream of the second channel audio data, and transmit the two data streams to the first processing core core0 and the second processing core core1, respectively. One of the first channel audio data and the second channel audio data split by the communication host 350 is left channel audio data, and the other is right channel audio data.
[0063] In order to further avoid the mutual interference of the first transmission link 310 and the second transmission link 320 when transmitting data. In some embodiments, as shown in FIG. 4, the device 30 for transmitting audio data can also include a first filter 370 and a second filter 380. Figure 5 As shown, the device 30 for transmitting audio data can also include a first filter 370 and a second filter 380.
[0064] The first filter 370 and the second filter 380 can be understood as a band-pass filter with high out-of-band suppression. The first filter 370 is in communication connection with the first physical layer PHY0 and the first transceiver 330, respectively. The first filter 370 has a first preset band-pass bandwidth range and is configured to allow signals within the first preset band-pass range to be transmitted from the first channel provided by the first physical layer PHY0.
[0065] The second filter 380 is in communication connection with the second physical layer PHY1 and the second transceiver 340, respectively. The second filter 380 has a second preset band-pass bandwidth range and is configured to allow signals within the second preset band-pass range to be transmitted from the second channel provided by the second physical layer PHY0.
[0066] The first preset passband range is related to the communication type of the first channel. The second preset passband range is related to the communication type and bandwidth of the second channel. Taking the first channel as a Bluetooth channel as an example, when the bandwidth of the first channel is M1, the corresponding first preset passband range should be f. c1 -N1 to f c1 +N1, where f c1 For the center frequency band of the first filter 370, N1 is greater than M1. Similarly, when the bandwidth of the second channel is M2, the corresponding second preset bandpass range should be f. c2 -N2 to f c2 +N2, where f c2 For the center frequency band of the second filter 380, N2 is greater than M2. Based on this, the difference between the frequency of the first channel and the frequency of the second channel mentioned above should be greater than N1 and N2.
[0067] By setting the first filter 370 and the second filter 380, the isolation between the first transmission link 310 and the second transmission link 320 can be further improved, thereby avoiding interference during data transmission between the first transmission link 310 and the second transmission link 320. In particular, in scenarios where the first transmission link 310 and the second transmission link 320 are out of sync, the mutual interference between the two paths that are not simultaneously transmitting and receiving can be effectively avoided.
[0068] In some embodiments, such as Figure 6 As shown, the first processing core 0 is further configured to establish a third transmission link 311 based on the first physical layer PHY0. The third transmission link 311 is used to connect the device 30 transmitting audio data and the second playback component 220. The second processing core 1 is further configured to establish a fourth transmission link 321 based on the second physical layer PHY1. The fourth transmission link 321 is used to connect the device 30 transmitting audio data and the first playback component 210. The third transmission link 311 can be established simultaneously with the first transmission link 310. The fourth transmission link 321 and the second transmission link 320 can be established simultaneously.
[0069] The device 30 for transmitting audio data is further configured to: transmit second channel audio data based on the second transmission link 320 in response to the transmission quality of the second transmission link 320 being higher than or equal to the transmission quality of the third transmission link 311; and switch to transmitting second channel audio data based on the third transmission link 311 in response to the transmission quality of the second transmission link 320 being lower than the transmission quality of the third transmission link 311.
[0070] The device 30 for transmitting audio data is further configured to: transmit the first channel audio data based on the first transmission link 310 in response to the transmission quality of the first transmission link 310 being higher than or equal to the transmission quality of the fourth transmission link 321; and switch to transmit the first channel audio data based on the fourth transmission link 321 in response to the transmission quality of the first transmission link 310 being lower than the transmission quality of the fourth transmission link 321.
[0071] In the embodiments of the present application, the evaluation of the transmission quality is not specifically limited. For example, the received signal strength indication (RSSI) or the packet error rate (PER) can be used to represent the transmission quality.
[0072] That is, the scheme in the embodiments of the present application can realize dynamic switching of the transmission link according to the signal quality. Specifically, the first processing core core0 and the first physical layer PHY0 can simultaneously establish the first transmission link 310 and the third transmission link 311 with the first playback component 210 and the second playback component 220, respectively, the second processing core core1 and the second physical layer PHY1 can simultaneously establish the second transmission link 320 and the fourth transmission link 321 with the first playback component 210 and the second playback component 220, respectively, and the transmission link with the best transmission quality is selected from the first transmission link 310 and the fourth transmission link 321 as the target transmission link connecting the device 30 for transmitting audio data and the first playback component 210, and the transmission link with the best transmission quality is selected from the second transmission link 320 and the third transmission link 311 as the target transmission link connecting the device 30 for transmitting audio data and the second playback component 220.
[0073] For example, at time T0, the signal quality of core0, PHY0 to the first playback component 210 is the best, and the signal quality of core1, PHY1 to the first playback component 210 is the best. The data transmission at time T0 is shown in FIG. 2. Figure 7 As shown in FIG. 2, the data 0 between the first playback component 210 and the device 30 for transmitting audio data is transmitted through the first transmission link 310 established by core0, PHY0. The data 1 between the second playback component 220 and the device 30 for transmitting audio data is transmitted through the second transmission link 320 established by core1, PHY1.
[0074] At time T1, the signal quality of core0, PHY0 to the second playback component 220 is the best, and the signal quality of core1, PHY1 to the first playback component 210 is the best. The data transmission at time T1 is shown in FIG. 3. Figure 8As shown, data 0 between the first playing component 210 and the device 30 transmitting audio data is transmitted through the fourth transmission link 321 established by core 1 and PHY 1. Data 1 between the second playing component 220 and the device 30 transmitting audio data is transmitted through the third transmission link 311 established by core 0 and PHY 0.
[0075] Based on this, the first playing component 210 and the second playing component 220 can be selected for different time to select the optimal transmission link for transmitting audio data. Thus, the retransmission due to the poor transmission quality of the transmission link in the mode of using fixed transmission link is avoided, and the transmission rate is further improved.
[0076] The following will be described in combination with Figures 9-10 The processes of synchronous transmission and asynchronous transmission mentioned in the embodiments of the present application are described exemplarily.
[0077] Establishing connection: Core 0 establishes the first transmission link 310 with the first playing component 210 through PHY 0. Core 1 establishes the second transmission link 320 with the second playing component 220 through PHY 1. The first transmission link 310 and the second transmission link 320 respectively use their own frequency hopping channels MAP. The frequency hopping channel used by the first transmission link 310 is the first channel, and the frequency hopping channel used by the second transmission link 320 is the second channel.
[0078] Obtaining audio data: The audio module (Audio) generates double-channel data. The communication host Host splits the double-channel data into two single-channel data: the first channel data (marked as data 0) and the second channel data (marked as data 1). At the same time, the Host also splits data 0 and data 1 into data streams including multiple frames. The data stream of data 0 includes: data 0_N1, data 0_N2, data 0_N3… data 0_NX; and the data stream of data 1 includes: data 1_N1, data 1_N2, data 1_N3… data 1_NX.
[0079] Synchronous transmission
[0080] The host ensures complete clock synchronization between Core0 and Core1, and PHY0 and PHY1 are always perfectly synchronized with a synchronization accuracy in the microsecond range. The host synchronously transmits the data streams of data 0 and data 1 to core0 and core1. Core0 and core1 respectively split / aggregate and encapsulate the data streams of data 0 and data 1 to generate first protocol data and second protocol data. The first protocol data and second protocol data are each still data streams. Core0 and core1 transmit the first protocol data and second protocol data to PHY0 and PHY1 respectively. After PHY0 and PHY1 complete encapsulation and modulation, at the time agreed upon by the host or cores, PHY0 and PHY1 simultaneously send out the data.
[0081] For example, such as Figure 9 As shown, in a synchronized scenario, PHY0 and PHY1 can transmit data 0_N1 and data 1_N1 to the first playback component 210 and the second playback component 220 respectively via the first transmission link 310 and the second transmission link 320 at time T1. At the next time T1, PHY0 and PHY1 can send data 0_N2 and data 1_N2 to the first playback component 210 and the second playback component 220 respectively via the first transmission link 310 and the second transmission link 320. Figure 9 In the first time T0, the first transmission link 310 uses channel-0-x, and the second transmission link 320 uses channel-1-y. In the second time T1, the first transmission link 310 uses channel-0-N, and the second transmission link 320 uses channel-1-N. The frequency intervals between channel-0-x and channel-1-y, and between channel-0-N and channel-1-N, should both be greater than preset values.
[0082] Synchronous transmission enables Bluetooth to transmit two data streams concurrently, doubling the transmission rate.
[0083] Non-synchronous transmission
[0084] PHY0 and PHY1 can send their respective data streams through the first transmission link 310 and the second transmission link 320 without needing to synchronize in time, or PHY0 and PHY1 can receive data asynchronously through the first transmission link 310 and the second transmission link 320.
[0085] For example, such as Figure 10As shown, in the unsynchronized scenario, PHY0 can transmit data 0_N1 to the first playback component 210 through the first transmission link 310 at time T0, and PHY1 can receive data 1_N1 transmitted by the second playback component 220 through the second transmission link 320 at the same time T0. At the next time T1, PHY0 can receive data 0_N2 transmitted by the first playback component 210 through the first transmission link 310, and PHY1 can transmit data 1_N2 to the second playback component 220 through the second transmission link 320.
[0086] It should be noted that, in the unsynchronized scenario, since the first transmission link 310 and the second transmission link 320 can be an uplink transmission link and a downlink transmission link respectively, the out-of-band suppression can be performed by the first filter and the second filter as described above, so that the frequency interval of the channels used by PHY0 and PHY1 at the same time should be greater than half of the bandwidth of the filter.
[0087] For example, the bandwidth of the filter is f c -N to f c +N in Figure 10 At the first time T0, the first transmission link 310 uses the first channel channel-0-x, and the second transmission link 320 uses the second channel channel-1-y, and the frequency interval of channel-0-x and channel-1-y should be greater than N. At the second time T1, the first transmission link 310 uses the first channel channel-0-N, and the second transmission link 320 uses the second channel channel-1-N. The frequency interval of channel-0-N and channel-1-N should also be greater than N.
[0088] Through the unsynchronized transmission as shown in Figure 10 , the Bluetooth dual-pass data stream transmission capability is formed, and two data streams are transmitted at the same time, and the transmission rate is doubled.
[0089] It should be understood that, in the embodiments of the present application, the audio playback device 20 can further include a third playback component and a fourth playback component, and correspondingly, the device 30 for transmitting audio data can further include a third processing core, a third physical layer, a fourth processing core and a fourth physical layer. The number of processing cores and the number of physical layers can be set according to the playback components in the audio playback device 20.
[0090] The device embodiments of the present application are described in detail above. Figures 1-10 The method embodiments of the present application are described in detail below. It should be understood that the description of the method embodiments corresponds to the description of the device embodiments, and therefore, the parts not described in detail can be referred to the device embodiments above. Figure 11 The method embodiments of the present application are described in detail below. It should be understood that the description of the method embodiments corresponds to the description of the device embodiments, and therefore, the parts not described in detail can be referred to the device embodiments above.
[0091] Figure 11 A flowchart of a method for transmitting audio data is provided for the embodiments of the present application. Figure 11 The method can be performed by any of the aforementioned audio data transmitting device 30. The audio data transmitting device comprises a first processing core, a first physical layer, a second processing core and a second physical layer.
[0092] For details Figure 11 The method 1100 for transmitting audio data comprises steps S1110 and S1140.
[0093] In step S1110, the first processing core is connected with the first physical layer to establish a first transmission link.
[0094] In step S1120, the first transmission link is used to transmit first channel audio data between the audio data transmitting device and a first playback component of the audio playback device.
[0095] In step S1130, the second processing core is connected with the second physical layer to establish a second transmission link.
[0096] In step S1140, the second transmission link is used to transmit second channel audio data between the audio data transmitting device and a second playback component of the audio playback device.
[0097] Optionally, the audio data transmitting device further comprises a communication host, and the method further comprises: connecting the communication host with the first processing core and the second processing core respectively to transmit the first channel audio data and the second channel audio data to the first processing core and the second processing core respectively, and controlling the clock of the first processing core and the clock of the second processing core to be synchronized or unsynchronized based on a communication protocol.
[0098] Optionally, the first transmission link transmits the first channel audio data based on a first channel, and the second transmission link transmits the second channel audio data based on a second channel, and the difference between the frequency of the first channel and the frequency of the second channel is not less than a preset value.
[0099] Optionally, the device for transmitting audio data further comprises a first filter and a second filter, the first filter having a first preset band-pass bandwidth range, the first filter being in communication connection with the first physical layer, the second filter having a second preset band-pass bandwidth range, the second filter being in communication connection with the second physical layer, the method further comprising: allowing signals within the first preset band-pass bandwidth range to be transmitted from the first channel by using the first filter; and allowing signals within the second preset band-pass bandwidth range to be transmitted from the second channel by using the second filter.
[0100] Optionally, the device for transmitting audio data further comprises an audio module, the method comprising: using the audio module to be in communication connection with a communication host; and using the audio module to generate audio data, using the communication host to obtain the audio data and splitting the audio data into the first channel audio data and the second channel audio data.
[0101] Optionally, the method further comprises: using the first processing core to establish a third transmission link based on the first physical layer, the third transmission link being used to connect the device for transmitting audio data and the second playback component; using the second processing core to establish a fourth transmission link based on the second physical layer, the fourth transmission link being used to connect the device for transmitting audio data and the first playback component; in response to the transmission quality of the second transmission link being higher than or equal to the transmission quality of the third transmission link, transmitting the second channel audio data based on the second transmission link; in response to the transmission quality of the second transmission link being lower than the transmission quality of the third transmission link, switching to transmit the second channel audio data based on the third transmission link; in response to the transmission quality of the first transmission link being higher than or equal to the transmission quality of the fourth transmission link, transmitting the first channel audio data based on the first transmission link; and in response to the transmission quality of the first transmission link being lower than the transmission quality of the fourth transmission link, switching to transmit the first channel audio data based on the fourth transmission link.
[0102] Optionally, the first processing core is further configured to encapsulate the first channel data into first protocol data according to a communication protocol, and / or the second processing core is further configured to encapsulate the second channel data into second protocol data according to the communication protocol.
[0103] Optionally, the first transmission link or the second transmission link is a Bluetooth transmission link.
[0104] Optionally, the audio playback device is a Bluetooth earphone, one of the first playback component and the second playback component being a master earphone in the Bluetooth earphone, and the other being a slave earphone in the Bluetooth earphone.
[0105] AsFigure 12 As shown, the chip 1200 is arranged in the device 30 for transmitting audio data, and the chip 1200 comprises a processor 1210, which is configured to call and run a computer program from a memory, so that the audio playing device 40 performs the method described in the method embodiments. It can be understood that the processor can be any type of processor mentioned above. It can be understood that the memory can be independent of the chip or integrated in the chip.
[0106] The embodiments of the present application further provide a machine readable storage medium for storing a program. The program causes a computer to perform the method in the embodiments of the present application.
[0107] The embodiments of the present application further provide a computer program product. The computer program product comprises a program. The program causes a computer to perform the method in the embodiments of the present application.
[0108] It should be understood that, in the embodiments of the present application, the processor can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0109] It should be understood that, in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0110] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0111] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0112] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.
[0113] In the above embodiments, all or part can be realized by software, hardware, firmware or any combination thereof. When realized by software, all or part can be realized in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.)) way. The computer readable storage medium can be any available medium readable by a computer or a data storage device such as a server, data center, etc. containing one or more available media. The available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), optical medium (for example, digital video disc (DVD)) or semiconductor medium (for example, solid state disk (SSD)) and the like.
[0114] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any skilled person in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A device for transmitting audio data, characterized in that, The audio data includes first channel audio data and second channel audio data, and the device for transmitting the audio data includes: A first processing core is communicatively connected to a first physical layer. The first processing core is configured to establish a first transmission link based on the first physical layer. The first transmission link is used to connect the device transmitting audio data and a first playback component in the audio playback device, and the first transmission link is used to transmit first channel audio data. The second processing core is communicatively connected to the second physical layer. The second processing core is configured to establish a second transmission link based on the second physical layer. The second transmission link is used to connect the device for transmitting audio data and the second playback component in the audio playback device, and the second transmission link is used to transmit second channel audio data. The first processing core is further configured to establish a third transmission link based on the first physical layer, the third transmission link being used to connect the device transmitting audio data and the second playback component. The second processing core is further configured to establish a fourth transmission link based on the second physical layer, the fourth transmission link being used to connect the device transmitting audio data and the first playback component. The device for transmitting audio data is configured as follows: In response to the transmission quality of the second transmission link being higher than or equal to the transmission quality of the third transmission link, the second channel audio data is transmitted based on the second transmission link; In response to the transmission quality of the second transmission link being lower than that of the third transmission link, the transmission of the second channel audio data is switched to be based on the third transmission link; In response to the transmission quality of the first transmission link being higher than or equal to the transmission quality of the fourth transmission link, the first channel audio data is transmitted based on the first transmission link; In response to the transmission quality of the first transmission link being lower than that of the fourth transmission link, the system switches to transmitting the first channel audio data based on the fourth transmission link.
2. The device for transmitting audio data according to claim 1, characterized in that, The device for transmitting audio data also includes: A communication host is communicatively connected to the first processing core and the second processing core, respectively. The communication host is configured to transmit the first channel audio data and the second channel audio data to the first processing core and the second processing core, respectively, and to control the clock of the first processing core and the clock of the second processing core to be synchronized or desynchronized based on a communication protocol.
3. The device for transmitting audio data according to claim 1, characterized in that, The first transmission link transmits first channel audio data based on the first channel, and the second transmission link transmits second channel audio data based on the second channel. The difference between the frequency of the first channel and the frequency of the second channel is not less than a preset value.
4. The device for transmitting audio data according to claim 3, characterized in that, The device for transmitting audio data also includes: A first filter has a first preset passband bandwidth range, the first filter is communicatively connected to the first physical layer, and the first filter is configured to allow signals within the first preset passband bandwidth range to be transmitted from the first channel; The second filter has a second preset bandpass bandwidth range, the second filter is communicatively connected to the second physical layer, and the second filter is configured to allow signals within the second preset bandpass bandwidth range to be transmitted from the second channel.
5. The device for transmitting audio data according to claim 2, characterized in that, Also includes: An audio module is communicatively connected to the communication host. The audio module is configured to generate the audio data. The communication host is further configured to acquire the audio data and split the audio data into first channel audio data and second channel audio data.
6. The device for transmitting audio data according to claim 1, characterized in that, The first processing core is further configured to encapsulate the first channel data into first protocol data according to a communication protocol, and / or the second processing core is further configured to encapsulate the second channel data into second protocol data according to a communication protocol.
7. The audio playback device according to claim 1, characterized in that, The first transmission link or the second transmission link is a Bluetooth transmission link.
8. The audio playback device according to claim 1, characterized in that, The audio playback device is a Bluetooth headset, and one of the first playback component and the second playback component is the master earpiece of the Bluetooth headset, and the other is the slave earpiece of the Bluetooth headset.
9. A method for transmitting audio data, characterized in that, The audio data includes first channel audio data and second channel audio data. The method is applied to a device for transmitting audio data. The device for transmitting audio data includes a first processing core, a first physical layer, a second processing core, and a second physical layer. The method includes: The first processing core is used to communicate with the first physical layer to establish a first transmission link. The first transmission link is used to transmit first channel audio data between the device transmitting audio data and the first playback component in the audio playback device. The second processing core and the second physical layer communication connection are used to establish a second transmission link, which is used to transmit second channel audio data between the device transmitting audio data and the second playback component in the audio playback device; The first processing core establishes a third transmission link based on the first physical layer, and the third transmission link is used to connect the device transmitting audio data and the second playback component. The second processing core establishes a fourth transmission link based on the second physical layer, the fourth transmission link being used to connect the device transmitting audio data and the first playback component; In response to the transmission quality of the second transmission link being higher than or equal to the transmission quality of the third transmission link, the second channel audio data is transmitted based on the second transmission link; In response to the transmission quality of the second transmission link being lower than that of the third transmission link, the transmission of the second channel audio data is switched to be based on the third transmission link; In response to the transmission quality of the first transmission link being higher than or equal to the transmission quality of the fourth transmission link, the first channel audio data is transmitted based on the first transmission link; In response to the transmission quality of the first transmission link being lower than that of the fourth transmission link, the system switches to transmitting the first channel audio data based on the fourth transmission link.
10. A chip, characterized in that, The chip is disposed in a device for transmitting audio data, and the chip includes: A processor for calling and running a computer program from memory, causing the device for transmitting audio data to perform the method as described in claim 9.
Citation Information
Patent Citations
Audio transmission method and electronic equipment
CN113223539A
Data transmission method, wireless earphone and computer storage medium
CN114697794A
Communication chip, Bluetooth communication device and data transmission method
CN114745705A
Bluetooth equipment system
CN115499814A
Audio transmission device, audio playing device and audio transmission and synchronization system
CN115567086A