CN112042212A - Audio data transmission method and electronic equipment - Google Patents
Audio data transmission method and electronic equipment Download PDFInfo
- Publication number
- CN112042212A CN112042212A CN201880093055.8A CN201880093055A CN112042212A CN 112042212 A CN112042212 A CN 112042212A CN 201880093055 A CN201880093055 A CN 201880093055A CN 112042212 A CN112042212 A CN 112042212A
- Authority
- CN
- China
- Prior art keywords
- audio data
- earplug
- earpiece
- data packet
- received
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides an audio data transmission method, which is applied to the technical field of short-distance communication and can improve the possibility that a first earplug and a second earplug of a TWS (two way radio service) earphone correctly receive an audio data packet. The specific scheme comprises the following steps: the first earpiece establishes a first bluetooth connection with the electronic device as a primary earpiece and the first earpiece establishes a second bluetooth connection with a second earpiece as a secondary earpiece. The second earpiece may receive connection parameters of the first bluetooth connection sent by the first earpiece over the second bluetooth connection. Therefore, when the electronic equipment sends the audio data packet to the first earplug through the first Bluetooth connection, the audio data packet sent by the electronic equipment can be obtained according to the connection parameters. When the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is larger than the preset difference threshold value, the second earplug stops acquiring the audio data packets sent by the electronic equipment, and the main earplugs in the first earplug and the second earplug forward the audio data packets received from the electronic equipment to the auxiliary earplugs.
Description
The embodiment of the application relates to the technical field of short-distance communication, in particular to an audio data transmission method and electronic equipment.
A True Wireless Stereo (TWS) headset includes two headset bodies, e.g., a left headset (also called a left earpiece) and a right headset (e.g., a right earpiece), respectively, and no wire connection is required between the left and right earpieces. The left and right earplugs of the TWS earphone can be used as audio input/output equipment of the mobile phone in a matched mode, and functions of music playing or voice communication and the like are achieved.
In particular, one earpiece of the TWS headset may establish a wireless connection (e.g., a bluetooth connection) with the handset as the primary earpiece. When the mobile phone sends the audio data packet to the main earplug through the wireless connection, the auxiliary earplug can obtain the audio data packet sent by the mobile phone according to the connection parameters of the wireless Bluetooth. Thus, the left and right earplugs of the TWS headset can acquire the audio data packets from the mobile phone.
However, the signal quality of the audio data packets received by the primary earpiece is different from the signal quality of the audio data packets acquired by the secondary earpiece. When the signal quality of the primary and secondary earpieces is very different, it may result in one earpiece receiving the audio data packet correctly and the other earpiece not receiving the audio data packet correctly at a later time.
Disclosure of Invention
The embodiment of the application provides an audio data transmission method and electronic equipment, which can improve the possibility that two earplugs of a TWS (two-way satellite system) earphone correctly receive an audio data packet in the process of audio data transmission between the electronic equipment and the TWS earphone, and improve the efficiency of audio data transmission.
In a first aspect, an embodiment of the present application provides an audio data transmission method. The method can comprise the following steps: the first earpiece may establish a first bluetooth connection with the electronic device as a primary earpiece and the first earpiece may establish a second bluetooth connection with a second earpiece as a secondary earpiece. The main and auxiliary earplugs can transmit audio data in a monitoring mode. Specifically, the first earpiece, being the master earpiece, sends the connection parameters of the first bluetooth connection to the second earpiece, being the slave earpiece, via the second bluetooth connection. Therefore, when the electronic equipment sends the audio data packet to the first earplug through the first Bluetooth connection, the second earplug can obtain the audio data packet sent by the electronic equipment according to the connection parameter. In this manner, both earplugs may retrieve audio data packets from the electronic device. Wherein the first and second earplugs are two earplugs of a TWS headset.
However, when the difference of the signal quality of the audio data packets received by the primary and secondary earpieces is greater than the preset difference threshold, there may be a problem that one earpiece may correctly receive the data packet, and the other earpiece may not correctly receive the data packet at a later time, which may cause the electronic device to repeatedly transmit the same data packet. In order to solve this problem, the first earpiece acting as the primary earpiece may instruct the second earpiece acting as the secondary earpiece to stop acquiring the audio data packet sent by the electronic device according to the connection parameter when the difference of the signal quality of the audio data packet received by the primary and secondary earpieces is greater than a preset difference threshold. In turn, audio data packets received from the electronic device are forwarded by the primary one of the first and second earpieces to the secondary earpiece. Namely, when the quality difference of the signals of the left and right earplugs of the TWS earphone receiving the audio data packets is large, the left and right earplugs can switch the transmission mode from the monitoring mode to the forwarding mode.
With reference to the first aspect, in one possible design manner, the first earpiece establishes a first bluetooth connection with an electronic device as a main earpiece, and includes: the method comprises the steps that a first earplug is used as a main earplug and is used for establishing an asynchronous connection-oriented link (ACL) link with electronic equipment under a first protocol, and a synchronous connection-oriented/extended SCO (SCO/eSCO) link is established under a second protocol; the SCO/eSCO link is used for transmitting audio data, and the ACL link is used for transmitting control commands. Or, the first ear-bud as a master ear-bud establishes an ACL link with the electronic device under a first protocol and an Isochronous (ISO) channel under a second protocol; the ISO channel is used to transport audio data and the ACL link is used to transport control commands.
With reference to the first aspect, in a possible design manner, the determining, by the first earpiece, that a difference between signal qualities of the audio data packets received by the main earpiece and the auxiliary earpiece is greater than a preset difference threshold may specifically include: the first earpiece determines that the signal quality of the first earpiece receiving the audio data packets is higher than the signal quality of the second earpiece receiving the audio data packets, and that the difference between the signal quality of the first earpiece receiving the audio data packets and the signal quality of the second earpiece receiving the audio data packets is greater than a first difference threshold.
With reference to the first aspect, in another possible design manner, the determining, by the first earpiece, that a difference between signal qualities of the audio data packets received by the main earpiece and the auxiliary earpiece is greater than a preset difference threshold may specifically include: the first earpiece determining that the signal quality of the first earpiece receiving the audio data packets is above a first quality threshold, and the signal quality of the second earpiece receiving the audio data packets is below a second quality threshold; wherein the first quality threshold is higher than the second quality threshold.
It can be understood that the signal quality of the audio data packet received by the main earplug is higher than that of the audio data packet received by the auxiliary earplug, and in the case that the difference of the signal quality of the audio data packet received by the main earplug and the auxiliary earplug is large, the first earplug can still be used as the main earplug and the second earplug can still be used as the auxiliary earplug. I.e., the primary and secondary earplugs do not perform a role exchange. And, because the signal quality that the vice earplug receives the audio data package is relatively poor, the main earplug can inform vice earplug stop listening the data package, but the data package is forwarded to vice earplug by main earplug. Namely, the primary and secondary earplugs can switch the transmission mode of the audio data packet from the monitoring mode to the forwarding mode.
For example, the signal quality of the audio data packets received by the primary and secondary earpieces may be represented by the Packet Error Rate (PER) of the audio data packets received by the primary and secondary earpieces. Wherein the lower the packet error rate, the higher the signal quality of the received audio data packets. The higher the packet error rate, the lower the signal quality of the received audio data packets.
With reference to the first aspect, in another possible design, the signal quality of the audio data packets received by the main earplug is higher than that of the audio data packets received by the auxiliary earplug, and the signal quality of the audio data packets received by the main earplug and the auxiliary earplug is different greatly. In this case, the instructing, by the first earpiece, the second earpiece to stop acquiring the audio data packet sent by the electronic device according to the connection parameter, and forwarding, by the main earpiece of the first earpiece and the second earpiece, the audio data packet received from the electronic device to the auxiliary earpiece may include: the first earplug sends a first switching request to the second earplug through the second Bluetooth connection, wherein the first switching request is used for indicating the second earplug to stop obtaining the audio data packet sent by the electronic equipment according to the connection parameters; the first earpiece forwards audio data packets received from the electronic device to the second earpiece.
With reference to the first aspect, in another possible design manner, after the transmission manner of the audio data packet is switched from the monitoring manner to the forwarding manner by the main and auxiliary earplugs, a forwarding delay may be generated when the audio data packet is forwarded to the auxiliary earplugs after the audio data packet is received by the main earplugs. Based on this, in the embodiment of the application, in the process that the main and auxiliary earplugs transmit the audio data in the forwarding mode, the auxiliary earplugs may request the main earplugs to switch the transmission mode of the audio data packet from the forwarding mode to the monitoring mode when the signal quality of the audio data packet received by the auxiliary earplugs is high. Specifically, after forwarding the audio data packet received from the electronic device to the auxiliary earplug by the main earplug of the first and second earplugs, the method of the embodiment of the present application may further include: the second earplug receives an audio data packet forwarded by the first earplug through the second Bluetooth connection, wherein the audio data packet forwarded by the first earplug comprises a frequency point of the audio data packet sent by the electronic equipment; the second earplug estimates the quality parameters of the audio data packet received by the second earplug in the time slot of the audio data packet received by the first earplug and the frequency point of the audio data packet sent by the electronic equipment; the quality parameters of the received audio data packets include: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet; and when the received signal power is greater than the preset power threshold value and/or the received signal power is greater than the preset power threshold value, the second earplug acquires the audio data packet sent by the electronic equipment according to the connection parameter and instructs the first earplug to stop forwarding the audio data packet received from the electronic equipment to the second earplug.
Wherein the connection parameters include a time slot for the first earpiece to receive the audio data packet. The time slot of the main earplug for receiving the audio data packet determines the time domain resource of the electronic equipment for sending the audio data packet to the main earplug, and the frequency point of the electronic equipment for sending the signal determines the frequency domain resource of the electronic equipment for sending the audio data packet to the main earplug. Based on the time domain resource and the frequency domain resource, the second earpiece, which is the secondary earpiece, can determine when the electronic device transmits the audio data packet in which frequency domain resource.
With reference to the first aspect, in another possible design manner, the determining, by the first earpiece, that a difference between signal qualities of the audio data packets received by the main earpiece and the auxiliary earpiece is greater than a preset difference threshold may specifically include: the first earpiece determines that the signal quality of the second earpiece receiving the audio data packets is higher than the signal quality of the first earpiece receiving the audio data packets, and that the difference between the signal quality of the second earpiece receiving the audio data packets and the signal quality of the first earpiece receiving the audio data packets is greater than a first difference threshold.
With reference to the first aspect, in another possible design manner, the determining, by the first earpiece, that a difference between signal qualities of the audio data packets received by the main earpiece and the auxiliary earpiece is greater than a preset difference threshold may specifically include: the first earpiece determining that the signal quality of the second earpiece receiving the audio data packets is above a first quality threshold, the signal quality of the first earpiece receiving the audio data packets is below a second quality threshold; wherein the first quality threshold is higher than the second quality threshold.
It can be understood that, the signal quality of the audio data packet received by the auxiliary earplug is higher than that of the audio data packet received by the main earplug, and in the case that the difference between the signal qualities of the audio data packets received by the main and auxiliary earplugs is large, because the signal quality of the audio data packet received by the original main earplug (i.e., the first earplug) is poor, the main earplug and the auxiliary earplug can perform role exchange, and the second earplug plays the role of the main earplug, while the first earplug serves as the auxiliary earplug. And the main and auxiliary earplugs can switch the transmission mode of the audio data packet from the monitoring mode to the forwarding mode.
With reference to the first aspect, in another possible design manner, after the first earpiece determines that the difference between the signal qualities of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold, the method of the embodiment of the present application may further include: the first earpiece requests the electronic device to stop transmitting audio data packets over the first bluetooth connection. For example, the first earpiece may request the electronic device to stop transmitting audio data (i.e., audio data packets) to the TWS headset over the SCO/eSCO link established under the second protocol.
The instructing, by the first ear plug, the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter, and forwarding, by the main ear plug of the first ear plug and the second ear plug, the audio data packet received from the electronic device to the auxiliary ear plug may specifically include: the first earpiece transmits a second handover request to the second earpiece. The second switching request is used for instructing the second earplug to stop acquiring the audio data packet sent by the electronic equipment according to the connection parameters. The second switching request is further used for instructing a second earplug to take over the first bluetooth connection between the first earplug and the electronic device so as to perform role exchange with the first earplug, wherein the second earplug is used as a main earplug and the first earplug is used as a secondary earplug after the role exchange. And in the role exchange process, the second earplug stops acquiring the audio data packet sent by the electronic equipment according to the connection parameters. After the role switch, the second earpiece requests the electronic device to begin transmitting audio data packets over the first bluetooth connection, and the second earpiece forwards audio data packets received from the electronic device to the first earpiece.
With reference to the first aspect, in another possible design manner, after the second earpiece forwards the audio data packet received from the electronic device to the first earpiece, the method of the embodiment of the present application may further include: and the first earplug receives the audio data packet forwarded by the second earplug through the second Bluetooth connection, and the audio data packet forwarded by the second earplug comprises the frequency point of the audio data packet sent by the electronic equipment. The first earplug estimates the quality parameters of the audio data packet received by the first earplug in the time slot of the audio data packet received by the second earplug and the frequency point of the audio data packet sent by the electronic equipment; the connection parameters include a time slot for the second earpiece to receive the audio data packet; the quality parameters of the received audio data packets include: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet; and when the received signal power is greater than the preset power threshold value and/or the received signal power is greater than the preset power threshold value, the first earplug acquires the audio data packet sent by the electronic equipment according to the connection parameter and instructs the second earplug to stop forwarding the audio data packet received from the electronic equipment to the first earplug.
In a second aspect, an embodiment of the present application provides an audio data transmission method. The audio data transmission method may include: the first earplug is used as a main earplug to establish a first Bluetooth connection with the electronic equipment, and the first earplug is used as the main earplug to establish a second Bluetooth connection with a second earplug which is used as a secondary earplug; the first earpiece sending connection parameters of the first bluetooth connection to the second earpiece through the second bluetooth connection; the connection parameter is used for the second earplug to acquire an audio data packet sent by the electronic equipment; the first earplug receives an audio data packet sent by the electronic equipment through a first Bluetooth connection; the first earplug determines that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than a preset difference threshold value; the first earplug instructs the second earplug to stop obtaining the audio data packet sent by the electronic device according to the connection parameters, and the main earplug in the first earplug and the second earplug forwards the audio data packet received from the electronic device to the auxiliary earplug. Wherein the first and second earplugs are two earplugs of a TWS headset.
In the embodiment of the application, when the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than the preset difference threshold, there may be a problem that one earpiece may correctly receive the data packet, and the other earpiece may not correctly receive the data packet later, which may cause the electronic device to repeatedly transmit the same data packet. In order to solve this problem, the first earpiece acting as the primary earpiece may instruct the second earpiece acting as the secondary earpiece to stop acquiring the audio data packet sent by the electronic device according to the connection parameter when the difference of the signal quality of the audio data packet received by the primary and secondary earpieces is greater than a preset difference threshold. In turn, audio data packets received from the electronic device are forwarded by the primary one of the first and second earpieces to the secondary earpiece. Namely, when the quality difference of the signals of the left and right earplugs of the TWS earphone receiving the audio data packets is large, the left and right earplugs can switch the transmission mode from the monitoring mode to the forwarding mode.
In a third aspect, embodiments of the present application provide an earplug that is a first earplug of a TWS headset. The TWS headset also includes a second earpiece. The first earplug includes: the device comprises a processor, a memory, a wireless communication module, a receiver and a microphone. The memory, the wireless communication module, the receiver, and the microphone are coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions. When the processor of the first earplug executes the computer instructions stored in the memory of the first earplug, the processor is used for establishing a first Bluetooth connection with the electronic equipment when the first earplug is used as a main earplug and establishing a second Bluetooth connection with a second earplug which is used as a secondary earplug; the wireless communication module is used for sending the connection parameters of the first Bluetooth connection to the second earplug through the second Bluetooth connection; receiving an audio data packet sent by the electronic equipment through the first Bluetooth connection; the connection parameters are used for the second earplug to obtain the audio data packet sent by the electronic equipment; the processor is further used for determining that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is larger than a preset difference threshold value; instructing the second earplug to stop acquiring the audio data packet sent by the electronic device according to the connection parameters, and forwarding the audio data packet received from the electronic device to the auxiliary earplug by the main earplug in the first earplug and the second earplug; the receiver is used for converting the audio data corresponding to the audio data packet received by the wireless communication module into a sound signal and playing the sound signal; the microphone is used for collecting sound signals of a user and converting the sound signals into audio data, and the wireless communication module transmits the audio data converted by the microphone to the electronic equipment through the first communication connection.
With reference to the third aspect, in a possible design manner, the processor, configured to determine that a difference between signal qualities of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold, includes: and the processor is used for determining that the signal quality of the audio data packet received by the wireless communication module is higher than that of the audio data packet received by the second earplug, and the difference between the signal quality of the audio data packet received by the wireless communication module and the signal quality of the audio data packet received by the second earplug is larger than a first difference threshold value.
With reference to the third aspect, in another possible design manner, the processor, configured to determine that a difference between signal qualities of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold, includes: a processor for determining that the signal quality of the audio data packets received by the wireless communication module is above a first quality threshold and the signal quality of the audio data packets received by the second earpiece is below a second quality threshold; wherein the first quality threshold is higher than the second quality threshold.
With reference to the third aspect, in another possible design manner, the wireless communication module is further configured to send a first switching request to the second earpiece through the second bluetooth connection, where the first switching request is used to instruct the second earpiece to stop acquiring the audio data packet sent by the electronic device according to the connection parameter; the audio data packets received from the electronic device are forwarded to the second earpiece.
With reference to the third aspect, in another possible design manner, the processor, configured to determine that a difference between signal qualities of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold, includes: a processor for determining that the signal quality of the audio data packets received by the second earpiece is higher than the signal quality of the audio data packets received by the wireless communication module, and that the difference between the signal quality of the audio data packets received by the second earpiece and the signal quality of the audio data packets received by the wireless communication module is greater than a first difference threshold.
With reference to the third aspect, in another possible design manner, the processor, configured to determine that a difference between signal qualities of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold, includes: a processor for determining that the signal quality of the audio data packets received by the second earpiece is above a first quality threshold, and that the signal quality of the audio data packets received by the wireless communication module is below a second quality threshold; wherein the first quality threshold is higher than the second quality threshold.
With reference to the third aspect, in another possible design manner, the wireless communication module is further configured to request the electronic device to stop transmitting the audio data packets through the first bluetooth connection after the processor determines that the difference between the signal qualities of the audio data packets received by the main and auxiliary earpieces is greater than a preset difference threshold; the wireless communication module is further used for sending a second switching request to the second earplug after the processor determines that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than a preset difference threshold value, wherein the second switching request is used for indicating the second earplug to stop obtaining the audio data packets sent by the electronic equipment according to the connection parameters; the second handover request is further configured to instruct the second earplug to take over the first bluetooth connection between the first earplug and the electronic device, so as to perform role exchange with the first earplug, where the second earplug serves as a main earplug and the first earplug serves as a secondary earplug after the role exchange.
With reference to the third aspect, in another possible design manner, the wireless communication module is further configured to receive an audio data packet forwarded by the second earpiece through the second bluetooth connection after role exchange, where the audio data packet forwarded by the second earpiece includes a frequency point at which the electronic device sends the audio data packet; the processor is also used for estimating the quality parameters of the audio data packet received by the wireless communication module in the time slot of the audio data packet received by the second earplug and the frequency point of the audio data packet sent by the electronic equipment; the connection parameters include a time slot for the second earpiece to receive the audio data packet; the quality parameters of the received audio data packets include: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet; the processor is further configured to obtain an audio data packet sent by the electronic device according to the connection parameter and instruct the second earpiece to stop forwarding the audio data packet received from the electronic device to the first earpiece when the received signal power is greater than the preset power threshold and/or the received signal power is greater than the preset power threshold.
In a fourth aspect, embodiments of the present application provide a TWS headset comprising the first earpiece and the second earpiece of the third aspect and any one of the possible designs thereof.
With reference to the fourth aspect, in a possible design manner, the second earpiece is further configured to receive an audio data packet forwarded by the first earpiece through the second bluetooth connection, where the audio data packet forwarded by the first earpiece includes a frequency point at which the electronic device sends the audio data packet; estimating the quality parameters of the second earplug for receiving the audio data packet at the time slot of the first earplug for receiving the audio data packet and the frequency point of the electronic equipment for sending the audio data packet; the connection parameters include a time slot for the first earpiece to receive the audio data packet; the quality parameters of the received audio data packets include: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet; and when the received signal power is greater than the preset power threshold value and/or the received signal power is greater than the preset power threshold value, acquiring an audio data packet sent by the electronic equipment according to the connection parameters, and instructing the first earplug to stop forwarding the audio data packet received from the electronic equipment to the second earplug.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory, a wireless communication module, a receiver and a microphone; the memory, the wireless communication module, the earpiece and the microphone are coupled to the processor, the memory for storing computer program code, the computer program code including computer instructions; when a processor of the electronic device executes computer instructions stored by a memory of the electronic device, the processor to establish a first bluetooth connection with a first earpiece that is a master earpiece; the wireless communication module is used for sending an audio data packet to the first earplug through the first Bluetooth connection; the audio data packet sent by the wireless communication module is acquired by the second earplug according to the connection parameters of the first communication connection; the connection parameter is sent by the first earpiece to the second earpiece through a second bluetooth connection between the first earpiece and the second earpiece; the processor is further used for indicating the second earplug to stop obtaining the audio data packet sent by the electronic equipment according to the connection parameters through the first earplug when the difference of the signal quality of the audio data packet received by the main earplug and the auxiliary earplug is larger than a preset difference threshold value, and forwarding the audio data packet received from the electronic equipment to the auxiliary earplug by the main earplug in the first earplug and the second earplug; the receiver is used for converting the audio data corresponding to the audio data packet received by the wireless communication module into a sound signal and playing the sound signal; and the microphone is used for acquiring a sound signal of the user and converting the sound signal into audio data.
With reference to the fifth aspect, in a possible design manner, the processor instructs, by the first earpiece, the second earpiece to stop acquiring the audio data packet sent by the electronic device according to the connection parameter, and forwards, by the main earpiece of the first earpiece and the second earpiece, the audio data packet received from the electronic device to the auxiliary earpiece, including: the processor is used for sending a first switching request to the first earplug, and forwarding the first switching request to the second earplug by the first earplug, wherein the first switching request is used for indicating the second earplug to stop acquiring the audio data packet sent by the electronic equipment according to the connection parameters; the first switch request is also for instructing the first earpiece to forward audio data packets received from the electronic device to the second earpiece.
With reference to the fifth aspect, in another possible design manner, the processor is further configured to estimate a quality parameter of the audio data packet received by the second earpiece after the audio data packet received from the electronic device is forwarded by the main earpiece of the first earpiece and the second earpiece to the auxiliary earpiece; the quality parameters of the received audio data packets include: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet; the wireless communication module is further configured to instruct the second earpiece to obtain the audio data packet sent by the electronic device according to the connection parameter and instruct the first earpiece to stop forwarding the audio data packet received from the electronic device to the second earpiece when the received signal power is greater than the preset power threshold and/or the received signal power is greater than the preset power threshold.
With reference to the fifth aspect, in another possible design manner, the wireless communication module is further configured to stop transmitting the audio data packet through the first bluetooth connection after the difference between the signal qualities of the audio data packets received by the main and auxiliary earpieces is greater than a preset difference threshold; the processor, instruct the second earplug to stop obtaining the audio data packet sent by the electronic equipment according to the connection parameter through the first earplug, forward the audio data packet received from the electronic equipment to the auxiliary earplug by the main earplug in the first earplug and the second earplug, including: the processor is used for sending a second switching request to the first earplug, and the first earplug forwards the second switching request to the second earplug, wherein the second switching request is used for indicating the second earplug to stop acquiring the audio data packet sent by the electronic equipment according to the connection parameters; the second switching request is also used for indicating the second earplug to take over the first Bluetooth connection between the first earplug and the electronic equipment so as to perform role exchange with the first earplug, wherein the second earplug is used as a main earplug and the first earplug is used as a secondary earplug after the role exchange; and the wireless communication module is also used for transmitting the audio data packet to the second earplug through the first Bluetooth connection after the roles are exchanged, and forwarding the audio data packet received from the wireless communication module to the first earplug by the second earplug.
With reference to the fifth aspect, in another possible design manner, the processor is further configured to estimate a quality parameter of the audio data packet received by the first ear plug after forwarding the audio data packet received from the wireless communication module to the first ear plug by the second ear plug; the quality parameters of the received audio data packets include: at least one of a received signal power and a signal-to-noise ratio of the received audio data packets. The wireless communication module is further configured to instruct the first ear plug to obtain the audio data packet sent by the electronic device according to the connection parameter and instruct the second ear plug to stop forwarding the audio data packet received from the electronic device to the first ear plug when the received signal power is greater than the preset power threshold and/or when the received signal power is greater than the preset power threshold.
With reference to the fifth aspect, in another possible design, the packet error rate of the audio data packets by the first ear plug is used to characterize the signal quality of the audio data packets received by the first ear plug, and the packet error rate of the audio data packets by the second ear plug is used to characterize the signal quality of the audio data packets received by the second ear plug; wherein, the lower the packet error rate, the higher the signal quality of the received audio data packet; the higher the packet error rate, the lower the signal quality of the received audio data packets.
In a sixth aspect, the present application provides a bluetooth chip, which is applied in an earplug of a true wireless stereo TWS headset; the bluetooth chip comprises a memory and a processor, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; when the processor executes the computer instructions stored in the memory, the processor is used for establishing a first Bluetooth connection with the electronic equipment and establishing a second Bluetooth connection with the auxiliary earplug when the earplug is used as a main earplug; the antenna of the control earplug sends the connection parameters of the first Bluetooth connection to the auxiliary earplug through the second Bluetooth connection; the control antenna receives an audio data packet sent by the electronic equipment through the first Bluetooth connection; the connection parameters are used for the auxiliary earplug to obtain the audio data packet sent by the electronic equipment; determining that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than a preset difference threshold; and instructing the auxiliary earplug to stop acquiring the audio data packet sent by the electronic equipment according to the connection parameters, and forwarding the audio data packet received from the electronic equipment to the auxiliary earplug by the main earplug in the earplugs and the auxiliary earplug.
In a seventh aspect, a bluetooth communication system is provided, which may include: an electronic device (such as a handset), and a TWS headset as described above in relation to the second aspect.
In an eighth aspect, a computer storage medium is provided that includes computer instructions. The computer instructions, when executed on a first earpiece of a TWS headset, cause the first earpiece to perform a method of audio data transmission as in the first aspect or any one of the possible implementations of the first aspect. When the computer instructions are run on a second earpiece of the TWS headset, the second earpiece is caused to perform the audio data transmission method as in the first aspect or any one of the possible implementations of the first aspect.
In a ninth aspect, the present application provides a computer program product for causing a computer to perform any one of the audio data transmission methods described above when the computer program product is run on the computer.
It should be understood that the earplugs of the third aspect and any one of the possible design manners provided above, the TWS headset of the fourth aspect and any one of the possible design manners thereof, the electronic device of the fifth aspect and any one of the possible design manners thereof, the bluetooth chip of the sixth aspect, the bluetooth communication system of the seventh aspect, the computer storage medium of the eighth aspect, and the computer program product of the ninth aspect are all configured to perform the corresponding methods provided above, and therefore, the beneficial effects that can be achieved by the computer program product of the sixth aspect may refer to the beneficial effects in the corresponding methods provided above, and are not repeated herein.
Fig. 1A is a schematic diagram of a network architecture of a communication system according to an embodiment of the present application;
fig. 1B is a schematic diagram of a mobile phone and a TWS headset communicating in a monitoring manner according to an embodiment of the present application;
fig. 1C is a schematic diagram of a mobile phone and a TWS headset communicating in a forwarding manner according to an embodiment of the present application;
FIG. 2A is a schematic diagram of an example product form of a TWS headset according to an embodiment of the present application;
FIG. 2B is a diagram illustrating an exemplary hardware structure of an earplug of a TWS earphone according to an embodiment of the present application;
fig. 3 is a schematic diagram of an example hardware structure of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a first audio data transmission method according to an embodiment of the present application;
fig. 5 is a flowchart of a method for transmitting audio data according to an embodiment of the present application;
fig. 6 is a first schematic diagram illustrating a processing flow example of switching a forwarding mode by a monitoring mode according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a second example of a processing flow of switching a forwarding mode by a monitoring mode according to an embodiment of the present application;
fig. 8 is a flow chart of an audio data transmission method according to an embodiment of the present application;
fig. 9 is a schematic diagram of an example processing flow of switching a forwarding scheme to a listening scheme according to an embodiment of the present application.
The embodiment of the application provides an audio data transmission method, which can be used for data transmission between an electronic device (such as a mobile phone) and a plurality of main bodies (such as left and right earplugs of a TWS (two-way telecom satellite system) earphone) of peripheral equipment.
The electronic device may be referred to as a Master device (Master, abbreviated as M), and the peripheral device may be referred to as a Slave device (Slave, abbreviated as S). Please refer to fig. 1A, which is a schematic diagram of a network architecture of a communication system of an audio data transmission method according to an embodiment of the present application. As shown in fig. 1A, the communication system may include an electronic device (M)100 and a peripheral device (S) 101. The peripheral device 101 may include two bodies, such as a device (S1)101-1 and a device (S2) 101-2. Wherein one principal of the peripheral device 101 (e.g., device 101-1) may take a primary role and another principal (e.g., device 101-2) may take a secondary role. For example, when the peripheral device 101 is a TWS headset, one earpiece (e.g., the left earpiece) of the TWS headset may serve a primary role as the primary earpiece; the other earplug (e.g., the right earplug) may serve a secondary role as a secondary earplug. Of course, the roles played by the two bodies of the peripheral device 101 may be exchanged. For example, the left earplug may serve as a secondary earplug, serving a secondary role; the right earplug may serve as the primary earplug, serving a primary role.
Wherein the electronic device 100 may establish a first bluetooth connection with a principal (e.g., device 101-1) that plays a primary role. A principal in a primary role, such as device 101-1, may establish a second bluetooth connection with a principal in a secondary role, such as device 101-2.
The electronic device 100 may be, for example, a mobile phone (e.g., the mobile phone 200 shown in fig. 1B or fig. 1C), a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, a media player, a television, or the like, and the embodiment of the present application is not limited to a specific form of the device. In the embodiment of the present application, the structure of the electronic device 100 can be as shown in fig. 3, and will be described in detail in the following embodiments.
The peripheral device 101 (including the device 101-1 and the device 101-2) may be a TWS headset (e.g., the TWS headset 201 shown in fig. 1B or fig. 1C), a bluetooth speaker, smart glasses, or other device that includes two bodies and does not require a wire connection between the two bodies. For example, device 101-1 and device 101-2 are left and right earplugs of a TWS headset. As another example, device 101-1 and device 101-2 may be a pair of Bluetooth speakers.
As an example, the peripheral device 101 shown in fig. 1A may be the TWS headset 201 shown in fig. 1B or fig. 1C, and the electronic device 100 may be a cell phone 200. Wherein the TWS headset 201 comprises two bodies, such as an earpiece 201-1 and an earpiece 201-2. Wherein, the earplug 201-1 may be a left earplug of the TWS headset 201, and the earplug 201-2 may be a right earplug; alternatively, the earplug 201-1 may be a right earplug of the TWS earpiece 201 and the earplug 201-2 a left earplug. One of the earplugs (e.g., the earplug 201-1) of the TWS headset 201 may serve as a primary earplug of the TWS headset, and the other earplug (e.g., the earplug 201-2) may serve as a secondary earplug of the TWS headset. The primary and secondary roles of the left and right earplugs of the TWS headset may be interchanged. In the embodiment of the present application, the structures of the earplugs 201-1 and 201-2 of the TWS headset 201 are shown in FIG. 2B, which will be described in detail in the following embodiments.
As shown in fig. 1B or fig. 1C, the earplug 201-1 as the main earplug can establish a bluetooth connection 1 (i.e., the first bluetooth connection) with the mobile phone 200 and a bluetooth connection 2 (i.e., the second bluetooth connection) with the earplug 201-2 as the auxiliary earplug.
Referring to fig. 1B, the ear plugs 201-1 and 201-2 may transmit audio data with the mobile phone 200 by listening. Specifically, the earplug 201-1 as the master earplug may send the connection parameters of the bluetooth connection 1 to the earplug 201-2 as the slave earplug via the bluetooth connection 2. Thus, when the mobile phone 200 sends an audio data packet to the earplug 201-1 as the main earplug through the bluetooth connection 1, the earplug 201-2 as the auxiliary earplug can obtain the audio data packet sent by the mobile phone 200 according to the connection parameters of the bluetooth connection 1. In this way, both the left and right earpieces of the TWS headset 201 can retrieve audio data packets from the handset.
In the embodiment of the present application, when the signal quality of the audio data packet received by the earplug 201-1 as the main earplug and the signal quality of the audio data packet received by the earplug 201-2 as the auxiliary earplug are different greatly, the earplug 201-2 may stop acquiring the audio data packet transmitted by the mobile phone 200. As shown in connection with fig. 1C, audio data packets may be forwarded by the earpiece 201-1 to the earpiece 201-2. Therefore, the problem that the same data packet is repeatedly transmitted by the mobile phone for many times due to the fact that one earplug can correctly receive the data packet and the other earplug cannot correctly receive the data packet later can be solved, and the transmission efficiency of the audio data packet can be improved.
In other words, in the embodiment of the present application, it is assumed that the left and right earpieces of the TWS headset 201 transmit audio data with the mobile phone by way of listening. When the quality of the signals of the left and right earplugs of the TWS earphone receiving the audio data packets is greatly different, the left and right earplugs can switch the transmission mode from the monitoring mode to the forwarding mode.
It should be noted that the data transmitted by the electronic device 100 and the peripheral device 101 includes, but is not limited to, the audio data. For example, the data transmitted by the electronic device 100 and the peripheral device 101 may also be picture or video data. For example, when the peripheral device 101 is smart glasses and the device 101-1 and the device 101-2 are both lenses of the smart glasses, the electronic device 100 may transmit picture or video data to the lenses of the smart glasses. In the embodiment of the present application, the method of the embodiment of the present application is described by taking the example that the electronic device 100 and the peripheral device 101 transmit audio data.
Please refer to fig. 2A, which illustrates an example of a product configuration of the TWS headset. As shown in fig. 2A, the TWS headset 201 may include: an earplug 201-1, an earplug 201-2 and an earplug box 201-3. The earplug case 201-3 may be used to receive left and right earplugs of a TWS headset. The product form of the peripheral device provided by the embodiment of the present application includes, but is not limited to, the TWS headset 201 shown in fig. 2A.
Please refer to fig. 2B, which is a schematic structural diagram of an earplug (a left earplug or a right earplug) of a TWS earphone according to an embodiment of the present application. As shown in fig. 2B, the earplugs (e.g., earplug 201-2) of the TWS earpiece 201 may include: a processor 210, a memory 220, a sensor 230, a wireless communication module 240, a receiver 250, a microphone 260, and a power supply 270.
The memory 220 may be used for storing application code, such as for establishing a wireless connection with another earpiece (e.g. earpiece 201-2) of the TWS headset 201 and for enabling a pairing connection of the earpiece with the electronic device 100 (e.g. handset 200) as described above. The processor 210 may control execution of the above-mentioned application program code to implement the functionality of the earpieces of the TWS headset in the embodiments of the present application.
The memory 220 may also have stored therein a bluetooth address for uniquely identifying the earpiece and a bluetooth address of another earpiece of the TWS headset. In addition, the memory 220 may also store connection data with an electronic device that the earplug has been successfully paired with before. For example, the connection data may be a bluetooth address of the electronic device that was successfully paired with the earpiece. Based on the connection data, the ear bud can be automatically paired with the electronic device without having to configure a connection therewith, such as for legitimacy verification or the like. The bluetooth address may be a Media Access Control (MAC) address.
The sensor 230 may be a distance sensor or a proximity light sensor. The ear bud may determine whether it is being worn by the user via the sensor 230. For example, the earbud may utilize a proximity light sensor to detect whether an object is near the earbud to determine whether the earbud is being worn by a user. Upon determining that the ear bud is worn, the ear bud can open the receiver 250.
In some embodiments, the earplug may further include a bone conduction sensor, incorporated into a bone conduction earpiece. By utilizing the bone conduction sensor, the earplug can acquire the vibration signal of the vibration bone block of the sound part, analyze the voice signal and realize the voice function. In other embodiments, the ear bud may further include a touch sensor for detecting a touch operation of a user. In other embodiments, the ear bud may further include a fingerprint sensor for detecting a user's fingerprint, identifying the user's identity, and the like. In other embodiments, the earplug may further comprise an ambient light sensor that adaptively adjusts parameters, such as volume, based on the perceived brightness of the ambient light.
A wireless communication module 240 for supporting short-range data exchange between the earpieces of the TWS headset and various electronic devices, such as the electronic device 100 described above. In some embodiments, the wireless communication module 240 may be a bluetooth transceiver. The earplugs of the TWS headset may establish a wireless connection with the electronic device 100 via the bluetooth transceiver to enable short-range data exchange therebetween.
At least one receiver 250, which may also be referred to as a "headset," may be used to convert the electrical audio signals into sound signals and play them. For example, when the earpieces of the TWS headset are used as the audio output device of the electronic device 100, the receiver 250 may convert the received audio electrical signal into a sound signal and play the sound signal.
At least one microphone 260, which may also be referred to as a "microphone," is used to convert sound signals into electrical audio signals. For example, when the ear-piece of the TWS headset 201 is used as the audio input device of the electronic device 100, the microphone 260 may collect the voice signal of the user and convert the voice signal into an audio electrical signal during the process of speaking (such as talking or making voice message) by the user. The audio electrical signal is the audio data in the embodiment of the present application.
A power supply 270 may be used to supply power to the various components contained in the earplugs of the TWS headset 201. In some embodiments, the power source 270 may be a battery, such as a rechargeable battery.
Typically, the TWS headset 201 will be equipped with an earbud cartridge (e.g., 201-3 shown in FIG. 2A). The earplug case may be used to receive left and right earplugs of a TWS headset. As shown in FIG. 2A, the earplug case 201-3 may be used to receive the earplugs 201-1 and 201-2 of a TWS headset. In addition, the earpiece box may also charge the left and right earpieces of the TWS headset 201. Accordingly, in some embodiments, the above-described earplug may further comprise: an input/output interface 280. The input/output interface 280 may be used to provide any wired connection between the earpieces of the TWS headset and an earpiece box, such as the earpiece box 201-3 described above.
In some embodiments, the input/output interface 280 may be an electrical connector. When the earplugs of the TWS headset 201 are disposed in the earbud box, the earplugs of the TWS headset 201 may be electrically connected to the earbud box (e.g., to an input/output interface of the earbud box) via the electrical connector. After this electrical connection is established, the earpiece box may charge the power supply 270 for the earpieces of the TWS headset. After this electrical connection is established, the earplugs of the TWS headset 201 may also be in data communication with the earpiece box. For example, the earplugs of the TWS headset 201 may receive pairing instructions from the earpiece box through the electrical connection. The pairing command is used to instruct the earpieces of the TWS headset 201 to turn on the wireless communication module 240 so that the earpieces of the TWS headset 201 can be paired with the electronic device 100 using a corresponding wireless communication protocol, such as bluetooth.
Of course, the earplugs of the TWS headset 201 described above may also not include the input/output interface 280. In this case, the ear buds may implement a charging or data communication function based on the wireless connection established with the ear bud case through the above-described wireless communication module 240.
Additionally, in some embodiments, an earbud cartridge (such as earbud cartridge 301 described above) may also include components such as a processor, memory, a SIM card, and sensors. The memory may be used to store application program code and be controlled in execution by the processor of the earplug case to implement the functionality of the earplug case. For example. When the user opens the lid of the earplug case, the processor of the earplug case may send a pairing command or the like to the earplugs of the TWS headset in response to the user opening the lid by executing application program code stored in the memory.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the earplugs of the TWS headset 201. It may have more or fewer components than shown in fig. 2B, may combine two or more components, or may have a different configuration of components. For example, the earplug may further include an indicator light (which may indicate the status of the earplug, such as power), a dust screen (which may be used with the earpiece), and the like. The various components shown in fig. 2B may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
It should be noted that the left and right earplugs of the TWS headset 201 may be identical in structure. For example, the left and right earplugs of the TWS earpiece 201 may both include the components shown in FIG. 2B. Alternatively, the structure of the left and right earplugs of the TWS headset 201 may also be different. For example, one earpiece (e.g., the right earpiece) of the TWS headset 201 may include the components shown in fig. 2B, while the other earpiece (e.g., the left earpiece) may include other components in fig. 2B in addition to the microphone 260.
Taking the above-mentioned electronic device as a mobile phone 200 as an example, fig. 3 shows a schematic structural diagram of the electronic device 100. As shown in fig. 3, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS). For example, in the embodiment of the present application, the electronic device 100 may utilize the wireless communication module 160 to establish a wireless connection with a peripheral device through a wireless communication technology, such as Bluetooth (BT). Based on the established wireless connection, the electronic device 100 may send voice data to the peripheral device and may also receive voice data from the peripheral device.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. In some embodiments, the ISP may be provided in camera 193. The camera 193 is used to capture still images or video. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1. Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. For example, in the embodiment of the present application, the processor 110 may execute instructions stored in the internal memory 121, establish a wireless connection with a peripheral device through the wireless communication module 160, and perform short-distance data exchange with the peripheral device, so as to implement functions of talking, playing music, and the like through the peripheral device. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. In the embodiment of the present application, after the wireless communication technology, such as bluetooth, is used to establish the wireless connection between the electronic device 100 and the peripheral device, the electronic device 100 may store the bluetooth address of the peripheral device in the internal memory 121. In some embodiments, when the peripheral device is a device comprising two bodies, such as a TWS headset, where the left and right earpieces of the TWS headset have respective bluetooth addresses, the electronic device 100 may store the bluetooth address associations of the left and right earpieces of the TWS headset in the internal memory 121.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a hands-free call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
In the present embodiment, when the electronic device 100 establishes a wireless connection with a peripheral device 101, such as a TWS headset, the TWS headset may be used as an audio input/output device of the electronic device 100. For example, the audio module 170 may receive an audio electrical signal transmitted by the wireless communication module 160, and implement functions of answering a call, playing music, and the like through the TWS headset. For example, during a call made by the user, the TWS headset may collect a voice signal of the user, convert the voice signal into an audio electrical signal, and transmit the audio electrical signal to the wireless communication module 160 of the electronic device 100. The wireless communication module 160 transmits the audio electrical signal to the audio module 170. The audio module 170 may convert the received audio electrical signal into a digital audio signal, encode the digital audio signal, and transmit the encoded digital audio signal to the mobile communication module 150. And is transmitted to the opposite-end call device by the mobile communication module 150 to implement a call. For another example, when the user plays music using the media player of the electronic device 100, the application processor may transmit an audio electrical signal corresponding to the music played by the media player to the audio module 170. The audio electrical signal is transmitted by the audio module 170 to the wireless communication module 160. The wireless communication module 160 may transmit the audio electrical signal to the TWS headset so that the TWS headset converts the audio electrical signal into a sound signal and plays the sound signal.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). A distance sensor 180F for measuring a distance. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen. The ambient light sensor 180L is for sensing ambient light brightness. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches. The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on. The temperature sensor 180J is used to detect temperature. The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194. The bone conduction sensor 180M may acquire a vibration signal. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication.
For convenience of understanding, the audio data transmission method provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings. In the following embodiments, the electronic device 100 shown in fig. 1A is taken as the mobile phone 200 shown in fig. 1B, the peripheral device 101 is taken as a TWS headset 201, and the TWS headset 201 includes an earpiece 201-1 and an earpiece 201-2.
The embodiment of the application provides an audio data transmission method. As shown in fig. 4, the audio data transmission method may include S301 to S303.
S301, Bluetooth connection 2 is established between the earplug 201-1 and the earplug 201-2.
Wherein the lid of the earplug case 201-3 of the TWS headset 201 may be opened when the user wishes to use the TWS headset 201. At this time, the earplugs 201-1 and 201-2 may be automatically coupled in a mating manner.
S302, the earplug 201-1 is determined as a main earplug, and the earplug 201-2 is determined as a secondary earplug.
Either earpiece of the TWS headset 201 may serve as the primary earpiece. In some implementations, after the cover of the earplug case 201-3 is opened, the earplugs (e.g., the earplug 201-1) taken out of the earplug case 201-3 are taken out as the main earplugs, and then the earplugs (e.g., the earplug 201-2) taken out of the earplug case 201-3 are taken out as the auxiliary earplugs. In other implementations, the lid of the earplug case 201-3 is opened, and after the earplugs are taken out of the earplug case 201-3, the earplugs worn first (e.g., the earplug 201-1) are used as the main earplugs, and the earplugs worn in the last step (e.g., the earplug 201-2) are used as the auxiliary earplugs.
And, the roles of the main and auxiliary earplugs can be switched. For example, when the power of the primary earplug (e.g., earplug 201-1) is below a first power threshold and the power of the secondary earplug (e.g., earplug 201-2) is above a second power threshold, an exchange of roles may be made for the primary and secondary earplugs, with earplug 201-2 serving the role of the primary earplug and earplug 201-1 serving the role of the secondary earplug.
In the embodiment of the present application, specific conditions for determining the role exchange between the primary and secondary earplugs and the primary and secondary earplugs include, but are not limited to, the above conditions, and other conditions may refer to relevant contents of this embodiment, which is not described herein again.
S303, the earplug 201-1 as the main earplug and the mobile phone 200 establish the Bluetooth connection 1.
The earplug 201-1 as a main earplug may transmit a pairing broadcast to the outside. If the handset 200 has bluetooth enabled, the handset 200 may receive the pairing broadcast and prompt the user that the associated bluetooth device (e.g., the earpiece 201-1) has been scanned. When the user selects the earplug 201-1 as the connection device on the mobile phone 200, the mobile phone 200 can be connected with the earplug 201-1 in a pairing manner. I.e. the earpiece 201-1 can establish a bluetooth connection 1 with the handset 200.
Illustratively, the earpiece 201-1, being the primary earpiece, establishes a bluetooth connection 1 with the handset 200 under a first protocol and a second protocol.
In one possible implementation, the earpiece 201-1, which is the master earpiece, and the handset 200 may establish an ACL link for the transmission of volume control commands and the like under a first protocol. The earpiece 201-1, being the primary earpiece, and the handset 200 may also establish an SCO/eSCO link under the second protocol for transmitting audio data, such as audio data while playing music and audio data during voice communication.
In another possible implementation, the earpiece 201-1 as the master earpiece and the handset 200 may establish an ACL link for transmission of volume control commands and the like under the first protocol. The earpiece 201-1 and the handset 200, which are the main earpieces, may also establish Isochronous (ISO) channels for transmitting audio data (e.g., audio data while playing music and audio data during voice communication) under the second protocol.
It should be noted that the method for establishing the bluetooth connection 2 between the earplug 201-1 and the earplug 201-2 may be similar to the method for establishing the bluetooth connection 1 between the earplug 201-1 serving as the main earplug and the mobile phone 200, and details of the embodiment of the present application are not repeated herein.
In some embodiments, after the main ear plug establishes the bluetooth connection 1 with the mobile phone 200 and the auxiliary ear plug respectively, the main ear plug and the auxiliary ear plug can perform the audio data transmission with the mobile phone 200 by a listening mode. Specifically, as shown in fig. 4, after S303, the method of the embodiment of the present application may further include S401 to S410.
S401, the earplug 201-1 as the main earplug transmits the connection parameters of the Bluetooth connection 1 to the earplug 201-2 as the auxiliary earplug through the Bluetooth connection 2.
Illustratively, the connection parameters may include a bluetooth address of the mobile phone 200, codec parameters negotiated by the mobile phone 200 and the master earpiece, clock parameters, encryption parameters, and the like.
S402, the earplug 201-2 as the auxiliary earplug receives the connection parameters of the Bluetooth connection 1 sent by the earplug 201-1 as the main earplug through the Bluetooth connection 2.
S403, the mobile phone 200 sends the audio data packet 1 to the earplug 201-1 as the main earplug through the bluetooth connection 1.
S404, the earphone 201-1 as the main earphone receives the audio data packet 1 sent by the mobile phone 200 through the Bluetooth connection 1.
S405, the earplug 201-2 serving as the auxiliary earplug acquires the audio data packet 1 sent by the mobile phone 200 according to the connection parameters of the Bluetooth connection 1.
Wherein, the auxiliary earplug can send the feedback information of the audio data packet 1 to the main earplug according to the result of monitoring the audio data packet 1. The feedback information may be an Acknowledgement (ACK) or a Negative Acknowledgement (NACK).
Specifically, if the secondary earplug does not receive the audio data packet 1 for a certain time or does not receive the audio data packet 1 correctly, NACK of the audio data packet 1 may be transmitted to the primary earplug. After the primary earpiece receives the NACK of the audio data packet 1 sent by the secondary earpiece, the primary earpiece may send the NACK of the audio data packet 1 to the mobile phone 200 to request the mobile phone 200 to retransmit the audio data packet 1, regardless of whether the primary earpiece correctly receives the audio data packet 1. If the audio data packet 1 is successfully received by the sub-earplug, S406 may be performed.
S406, if the earplug 201-2 as the secondary earplug correctly receives the audio data packet 1, ACK of the audio data packet 1 is sent to the earplug 201-1 as the primary earplug through the bluetooth connection 2.
S407, the earplug 201-1 as the master earplug receives ACK of the audio data packet 1 transmitted by the earplug 201-2 as the slave earplug.
S408, the earplug 201-1 as the main earplug receives the ACK from the earplug 201-2 as the sub earplug, and the earplug 201-1 as the main earplug correctly receives the audio data packet 1, then the ACK of the audio data packet 1 is sent to the mobile phone 200 through the bluetooth connection 1.
S409, the handset 200 receives ACK of the audio data packet 1 sent by the earplug 201-1 as the main earplug.
And S410, sending an audio data packet 2 to the earplug 201-1 as the main earplug by the mobile phone 200 through the Bluetooth connection 1.
It will be appreciated that if the primary earpiece receives the ACK for audio data packet 1 from the secondary earpiece, but the primary earpiece does not receive audio data packet 1 correctly, or the primary earpiece does not receive the ACK or NACK for audio data packet 1 from the secondary earpiece for a certain period of time, then the primary earpiece may send a NACK for audio data packet 1 to handset 200 over bluetooth connection 1 to request that handset 200 retransmit audio data packet 1. After receiving the NACK of the audio data packet 1, the handset 200 may retransmit the audio data packet 1 to the main earpiece through the bluetooth connection 1.
It should be noted that, as for the method for transmitting the audio data packet 2 and retransmitting the audio data packet 1 by the mobile phone 200 and the main and auxiliary earplugs, reference may be made to the specific method for transmitting the audio data packet 1 by the mobile phone 200 and the main and auxiliary earplugs in S403 to S410, which is not described herein again in this embodiment of the present application.
In the process of data transmission by adopting the monitoring mode, the main earplug can monitor the signal quality of the main earplug for receiving the audio data packet and monitor the signal quality of the auxiliary earplug for receiving the audio data packet. Then, when the difference between the signal quality of the audio data packet received by the main earplug and the signal quality of the audio data packet received by the auxiliary earplug is large, the left and right earplugs of the TWS headset can switch the transmission mode from the monitoring mode to the forwarding mode. Specifically, in the process of executing the above S403 to S410, the method of the embodiment of the present application may include S501 to S503. For example, as shown in fig. 5, the method of the embodiment of the present application may further include S501-S503.
S501, the earplug 201-1 as the main earplug acquires the signal quality of the audio data packet received by the main earplug.
S502, the earplug 201-1 as the main earplug obtains the signal quality of the audio data packet received by the auxiliary earplug.
For example, the signal quality of the audio data packets received by the primary and secondary earplugs can be represented by the packet error rate PER of the audio data packets. Wherein the lower the packet error rate, the higher the signal quality of the received audio data packets. The higher the packet error rate, the lower the signal quality of the received audio data packets.
For example, a master ear bud (e.g., ear bud 201-1) may count the total number of audio packets (denoted as a) received by the master ear bud within a predetermined time period. The master ear bud can then count the number of correctly decoded audio packets by the master ear bud (denoted b) among the received audio packets. Finally, the master ear plug may calculate a difference value obtained by subtracting a ratio of b to a from 1, and obtain a packet error rate PER _1 of the master ear plug for the audio data packet within the preset time period as (1-b/a) × 100%.
The master earpiece may determine the total number of audio data packets (e.g., a) received by the master earpiece during the preset time period as the total number of audio data packets received by the auxiliary earpiece during the preset time period. The master earplug can determine the number of ACKs that the slave earplug replies to the master earplug in the preset time period as the number of audio data packets that the slave earplug correctly decodes in the preset time period (denoted as c). Finally, the primary earplug may calculate a difference value obtained by subtracting a ratio of c to a from 1, and obtain a packet error rate PER _2 of the secondary earplug for the audio data packet within a preset time period as (1-c/a) × 100%.
It should be noted that the parameters that can represent the signal quality of the audio data packets received by the main and auxiliary earpieces include, but are not limited to, the packet error rate. For example, the signal-to-noise ratio of the audio data packets received by the primary and secondary earpieces may also reflect the quality of the audio data packets received by the primary and secondary earpieces.
S503, the earplug 201-1 as the main earplug judges whether the signal quality of the audio data packet received by the main earplug and the auxiliary earplug meets a first preset condition or a second preset condition.
In the embodiment of the present application, the case (1), the case (2), and the case (3) may be included in the case where the difference in signal quality between the audio data packets received by the primary and secondary earplugs is large. And the difference in signal quality of the audio data packets received by the primary and secondary earpieces being greater than the preset difference threshold may include the following cases (1) and (2).
Case (1): the signal quality of the audio data packet received by the main and auxiliary earplugs meets a first preset condition.
For example, the signal quality of the audio data packets received by the main and auxiliary earpieces is represented by the high and low packet error rate of the audio data packets by the main and auxiliary earpieces.
In one implementation, the first preset condition that the signal quality of the audio data packets received by the main and auxiliary earplugs meets may be specifically that: the signal quality of the audio data packet received by the main earplug is higher than that of the audio data packet received by the auxiliary earplug; and the difference between the signal quality of the audio data packets received by the main earplug and the signal quality of the audio data packets received by the auxiliary earplug is greater than a first difference threshold.
For example, the signal quality of the audio data packets received by the primary and secondary earplugs meeting the first preset condition may specifically be: the packet error rate (namely PER _1) of the audio data packets in the preset time period of the main earplug is less than the packet error rate (namely PER _2) of the audio data packets in the preset time period of the auxiliary earplug, namely PER _1< PER _ 2; and, the difference between PER _2 and PER _1 is greater than a first difference threshold (e.g., Y _1), i.e., (PER _2) - (PER _1) is greater than Y _ 1.
In other implementations, the first preset condition that the signal quality of the audio data packets received by the main and auxiliary earplugs meets may be specifically that: the signal quality of the audio data packets received by the primary earpiece is above a first quality threshold, and the signal quality of the audio data packets received by the secondary earpiece is below a second quality threshold. Wherein the first quality threshold is greater than the second quality threshold.
For example, the signal quality of the audio data packets received by the primary and secondary earplugs meeting the first preset condition may specifically be: the packet error rate PER _2 of the auxiliary earplug for the audio data packets in the preset time period is greater than the packet error rate (e.g. Y _2) corresponding to the second quality threshold, and the packet error rate PER _1 of the main earplug for the audio data packets in the preset time period is less than the packet error rate (e.g. Y _3) corresponding to the first quality threshold.
In the above case (1), the signal quality of the audio data packets received by the main ear plug is higher than that of the audio data packets received by the auxiliary ear plugs, and the difference in the signal quality of the audio data packets received by the main and auxiliary ear plugs is large. In this case (1), the earplug 201-1 may still be used as the primary earplug and the earplug 201-2 as the secondary earplug. I.e., the primary and secondary earplugs do not perform a role exchange. And, because the signal quality that the vice earplug receives the audio data package is relatively poor, the main earplug can inform vice earplug stop listening the data package, but the data package is forwarded to vice earplug by main earplug. Namely, the primary and secondary earplugs can switch the transmission mode of the audio data packet from the monitoring mode to the forwarding mode.
Specifically, if the signal quality of the audio data packet received by the primary and secondary earpieces satisfies the first preset condition, the first switching request may be sent from the earplug 201-1 as the primary earplug to the earplug 201-2 as the secondary earplug. The first switch request instructs the secondary earpiece to stop acquiring audio packets sent by the handset 200. The earphone 201-2 as the sub-earphone stops acquiring the audio data packet sent by the mobile phone 200 after receiving the first switching request. After receiving the audio data packet transmitted by the mobile phone 200, the earphone 201-1 as the main earphone may forward the audio data packet to the earphone 201-2 as the auxiliary earphone.
Wherein the primary earpiece may send a first handover request to the secondary earpiece via the control link of the bluetooth connection 2. For example, when the bluetooth connection 2 described above is an ISO-based bluetooth connection, the main earpiece may send a first switch request to the auxiliary earpiece over an ACL link between the main earpiece and the auxiliary earpiece.
It should be noted that, a specific method for forwarding the audio data packet from the earplug 201-1 as the main earplug to the earplug 201-2 as the auxiliary earplug may refer to a method for forwarding the audio data packet from the earplug 201-2 as the main earplug to the earplug 201-1 as the auxiliary earplug in S603-S609, and details of the embodiment of the present application are omitted here.
In order to facilitate understanding of those skilled in the art, in the embodiment of the present application, the foregoing case (1) is illustrated by a handover procedure shown in fig. 6.
For example, as shown in fig. 6, when the ear plug 201-1 is used as a main ear plug and the ear plug 201-2 is used as a sub ear plug, and audio data transmission is performed by listening, the ear plug 201-1 may receive an audio data packet transmitted by the mobile phone 200 and calculate PER _1 and PER _ 2. The ear plug 201-2 can acquire the audio data packet sent by the handset 200 and feed back ACK/NACK to the ear plug 201-1. The ear plug 201-1 may send a first switch request to the ear plug 201-2 to switch the transmission mode from the listening mode to the forwarding mode when PER _1> Y _2 and PER _2< Y _ 3. The earpiece 201-2 may stop acquiring the audio data packet sent by the handset 200 after receiving the first handover request. Subsequently, as shown in fig. 6, the earplug 201-1 is used as a main earplug, and the earplug 201-2 is used as a sub earplug, and audio data transmission is performed in a forwarding manner. The specific method for transmitting audio data by the primary and secondary earplugs in a forwarding manner is not described herein in detail in the embodiments of the present application.
Case (2): the signal quality of the audio data packet received by the main and auxiliary earplugs meets a second preset condition.
For example, the signal quality of the audio data packets received by the main and auxiliary earpieces is represented by the high and low packet error rate of the audio data packets by the main and auxiliary earpieces.
In one implementation, the second preset condition that the signal quality of the audio data packets received by the main and auxiliary earplugs meets may be specifically: the signal quality of the audio data packet received by the auxiliary earplug is higher than that of the audio data packet received by the main earplug; and the signal quality of the audio data packets received by the secondary earpiece differs from the signal quality of the audio data packets received by the primary earpiece by more than a first difference threshold.
For example, the signal quality of the audio data packets received by the primary and secondary earplugs meeting the second preset condition may specifically be: the packet error rate (PER _2) of the audio data packets in the preset time period by the auxiliary earplug is less than the packet error rate (PER _1) of the audio data packets in the preset time period by the main earplug, namely PER _2< PER _ 1; and, the difference between PER _1 and PER _2 is greater than a first difference threshold (e.g., Y _1), i.e., (PER _1) - (PER _2) is greater than Y _ 1.
In other implementations, the second preset condition that the signal quality of the audio data packets received by the main and auxiliary earplugs meets may be specifically that: the signal quality of the audio data packets received by the primary earpiece is below a second quality threshold, and the signal quality of the audio data packets received by the secondary earpiece is above a first quality threshold. Wherein the first quality threshold is greater than the second quality threshold.
For example, the signal quality of the audio data packets received by the primary and secondary earplugs meeting the second preset condition may specifically be: the packet error rate PER _2 of the audio data packets by the auxiliary earplug in the preset time period is smaller than the packet error rate (for example, Y _3) corresponding to the first quality threshold, and the packet error rate PER _1 of the audio data packets by the main earplug in the preset time period is larger than the packet error rate (for example, Y _2) corresponding to the second quality threshold.
In the above case (2), the signal quality of the audio data packets received by the auxiliary earpieces is higher than that of the audio data packets received by the main earpieces, and the difference in the signal quality of the audio data packets received by the main and auxiliary earpieces is large. In this case (2), since the quality of the audio data packet received by the original main earplug (i.e., the earplug 201-1) is poor, the main and auxiliary earplugs can exchange roles, and the earplug 201-2 plays the role of the main earplug, while the earplug 201-1 serves as the auxiliary earplug. And the main and auxiliary earplugs can switch the transmission mode of the audio data packet from the monitoring mode to the forwarding mode. Specifically, as shown in fig. 5, if the signal quality of the audio data packets received by the primary and secondary earpieces satisfies the second preset condition, the method of the embodiment of the present application may further include S601-S609.
S601, the earplug 201-1 as the main earplug and the earplug 201-2 as the auxiliary earplug are exchanged in roles, the earplug 201-2 serves as the main earplug and the earplug 201-1 serves as the auxiliary earplug after the roles are exchanged.
In this embodiment, exchanging roles between the earplugs 201-1 and 201-2 may specifically include: the earpiece 201-1, currently being the master earpiece, requests the handset 200 to temporarily stop transmitting audio data packets; the earpiece 201-1 transmits status information to the earpiece 201-2, the status information including a device address (e.g., MAC address) of the TWS earpiece 201, the status information instructing the earpiece 201-2 to use the device address of the TWS earpiece 201 instead of the earpiece 201-1 as a master earpiece and instead of a wireless connection between the earpiece 201-1 and the handset 200 (i.e., bluetooth connection 1); the earpiece 201-2, which is the master earpiece, requests the handset 200 to transmit audio data packets to the earpiece 201-2.
In this embodiment, the status information may be included in a second handover request, which is also used to instruct the secondary earpiece to stop acquiring the audio data packet sent by the handset 200. Alternatively, the status information is also used to instruct the sub-earplug to stop acquiring the audio data packet sent by the mobile phone 200.
Wherein the primary earpiece may send a second handover request to the secondary earpiece via the control link of the bluetooth connection 2. For example, when the bluetooth connection 2 described above is an ISO-based bluetooth connection, the main earpiece may send the second handover request to the auxiliary earpiece through an ACL link between the main earpiece and the auxiliary earpiece.
S602, in the process of exchanging roles of the earplug 201-1 as the main earplug and the earplug 201-2 as the auxiliary earplug, the earplug 201-2 as the auxiliary earplug stops acquiring the audio data packet sent by the mobile phone 200.
After the role exchange is finished, the earphone 201-2 as the master earphone can receive the audio data packet sent by the mobile phone 200 through the bluetooth connection 1. And the main and auxiliary earplugs can transmit audio data packets in a forwarding mode. For example, the earphone 201-2 as the main earphone may receive the audio data packet transmitted by the mobile phone 200 and forward the audio data packet to the earphone 201-1 as the auxiliary earphone. Specifically, as shown in fig. 5, after S601-S602, the method of the embodiment of the present application may further include S603-S609.
S603, the mobile phone 200 sends the audio data packet 3 to the earphone 201-2 as the main earphone through the Bluetooth connection 1.
S604, after receiving the audio data packet 3, the earplug 201-2 as the main earplug forwards the audio data packet 3 to the earplug 201-1 as the auxiliary earplug.
Specifically, if the secondary earplug does not receive the audio data packet 3 for a certain time or does not receive the audio data packet 3 correctly, NACK of the audio data packet 3 may be transmitted to the primary earplug. After the primary earpiece receives the NACK of the audio data packet 3 sent by the secondary earpiece, the primary earpiece may send the NACK of the audio data packet 3 to the mobile phone 200 to request the mobile phone 200 to retransmit the audio data packet 3, regardless of whether the primary earpiece correctly receives the audio data packet 3. If the audio packet 3 is successfully received by the sub-earplug, S605 may be performed.
S605, when the earphone 201-1 as the secondary earphone correctly receives the audio data packet 3, ACK of the audio data packet 3 is sent to the earphone 201-2 as the primary earphone through the bluetooth connection 2.
S606, the earplug 201-2 as the master earplug receives ACK of the audio data packet 3 transmitted by the earplug 201-1 as the slave earplug.
S607, the earplug 201-2 as the master earplug sends ACK of the audio data packet 3 to the handset 200 through the bluetooth connection 1.
S608, the handset 200 receives ACK of the audio data packet 3 sent by the earpiece 201-2 as the main earpiece.
And S609, the mobile phone 200 sends an audio data packet 4 to the earplug 201-2 as the main earplug through the Bluetooth connection 1.
It will be appreciated that if the primary earpiece receives the ACK for audio data packet 3 sent by the secondary earpiece, but the primary earpiece does not receive audio data packet 3 correctly, the primary earpiece may then send a NACK for audio data packet 3 to handset 200 over bluetooth connection 1 to request that handset 200 retransmit audio data packet 3. After receiving the NACK from the audio data packet 3, the handset 200 may retransmit the audio data packet 3 to the main earpiece via the bluetooth connection 1.
It should be noted that, as for the method for transmitting the audio data packet 4 and retransmitting the audio data packet 3 by the mobile phone 200 and the main and auxiliary earplugs, reference may be made to the specific method for transmitting the audio data packet 3 by the mobile phone 200 and the main and auxiliary earplugs in S603-S609, and details are not repeated here in this embodiment of the present application.
In order to facilitate understanding of those skilled in the art, in the embodiment of the present application, the foregoing case (2) is illustrated by a handover procedure shown in fig. 6.
For example, as shown in fig. 7, when the ear plug 201-1 is used as a main ear plug and the ear plug 201-2 is used as a sub ear plug, and audio data transmission is performed by listening, the ear plug 201-1 may receive audio data packets sent by the mobile phone 200 and calculate PER _1 and PER _ 2. The ear plug 201-2 can acquire the audio data packet sent by the handset 200 and feed back ACK/NACK to the ear plug 201-1. The ear plug 201-1 may send a second switching request to the ear plug 201-2 when PER _2> Y _2 and PER _1< Y _3, switch the transmission mode from the listening mode to the forwarding mode, and perform the role switching of the main and the auxiliary ear plugs. After receiving the second switching request, the earpieces 201-2 may stop acquiring the audio data packet sent by the mobile phone 200, and perform role switching between the main and auxiliary earpieces. Subsequently, as shown in fig. 7, the earplug 201-2 is used as a main earplug, and the earplug 201-1 is used as a sub-earplug, and audio data transmission is performed in a forwarding manner. The specific method for transmitting audio data by the primary and secondary earplugs in a forwarding manner is not described herein in detail in the embodiments of the present application.
Case (3): the signal quality of the audio data packet received by the main and auxiliary earplugs does not meet a first preset condition and a second preset condition.
In the case (3), the signal quality of the audio data packets received by the main and auxiliary earpieces does not satisfy either the first preset condition or the second preset condition. The master-slave ear buds may perform S403-S410 and continue to transmit audio data by listening.
In other embodiments, after the main earpiece is connected to the mobile phone 200 and the auxiliary earpiece respectively via bluetooth, the main earpiece and the auxiliary earpiece may perform audio data transmission with the mobile phone 200 in a forwarding manner. Specifically, the main earplug may receive an audio data packet sent by the mobile phone 200 through the bluetooth connection 1, and forward the audio data packet to the auxiliary earplug through the bluetooth connection 2.
Illustratively, the earplug 201-2 is taken as a main earplug, and the earplug 201-1 is taken as a secondary earplug. After the earplug 201-2 as the main earplug establishes the bluetooth connection 1 with the mobile phone 200 and establishes the bluetooth connection 2 with the earplug 201-1 as the auxiliary earplug, the method of the embodiment of the present application may further include S603-S609.
It is understood that after S503, if the signal quality of the audio data packet received by the primary and secondary earpieces satisfies the first preset condition or the second preset condition, the primary and secondary earpieces switch the transmission mode of the audio data packet from the listening mode to the forwarding mode. However, in the forwarding scheme, a time delay is generated when the audio data packet is received by the main earplug and then forwarded to the auxiliary earplug. Compared with the monitoring mode, the transmission time delay of the audio data packet in the forwarding mode is longer, and the transmission efficiency of the audio data is lower. And the main earplug can increase the power consumption of the main earplug and shorten the endurance time of the main earplug by forwarding the audio data packet to the auxiliary earplug.
Based on this, in the embodiment of the application, in the process that the main and auxiliary earplugs transmit the audio data in the forwarding mode, the auxiliary earplugs may request the main earplugs to switch the transmission mode of the audio data packet from the forwarding mode to the monitoring mode when the signal quality of the audio data packet received by the auxiliary earplugs is high.
Illustratively, the earplug 201-2 is taken as a main earplug, and the earplug 201-1 is taken as a secondary earplug for audio data transmission by a forwarding manner. In the foregoing processes of S603 to S609, the method of the embodiment of the present application may include S801 to S804. For example, as shown in fig. 8, the method of the embodiment of the present application may include S801-S804.
S801, the earplug 201-1 serving as the auxiliary earplug estimates the quality parameters of the earplug 201-1 serving as the auxiliary earplug for receiving the audio data packet in the time slot of the main earplug for receiving the audio data packet and the frequency point of the signal sent by the mobile phone 200.
The time slot for the master ear plug to receive the audio data packet is a parameter negotiated when the master ear plug establishes the bluetooth connection 1 with the mobile phone 200. I.e. the connection parameters of the above-mentioned bluetooth connection 1 may also comprise the time slot in which the master ear plug receives the audio data packet.
In some cases, the earplug 201-1 previously acted as a secondary earplug and the earplug 201-2 previously acted as a primary earplug, the primary and secondary earplugs performing audio data transmission by way of listening. In this case, the earplug 201-2 as the main earplug sends the connection parameters of the bluetooth connection 1 to the earplug 201-1 as the sub earplug before audio data transmission by the listening mode.
In other cases, the earplug 201-1 previously acted as the primary earplug and the earplug 201-2 previously acted as the secondary earplug, with the primary and secondary earplugs transmitting audio data by way of listening. In this case, the earpiece 201-1, which is the main earpiece, establishes the bluetooth connection 1 with the handset 200 before audio data transmission by means of listening. The earplug 201-1 may obtain the connection parameters of the bluetooth connection 1.
The frequency points at which the handset 200 transmits audio packets may be included in the audio packets transmitted by the handset 200 to the earpiece 201-2 as the primary earpiece. The earplug 201-1 as the auxiliary earplug receives the audio data packet forwarded by the earplug 201-2, so that the frequency point of the audio data packet sent by the mobile phone 200 can be obtained.
Thus, after the transmission mode of the main and auxiliary earplugs is switched from the monitoring mode to the forwarding mode, the earplug 201-1 as the auxiliary earplug can perform background scanning in the time slot of the main earplug for receiving the audio data packet and the frequency point of the signal sent by the mobile phone 200. In the embodiment of the present application, the process of estimating the quality parameter of the audio data packet received by the auxiliary earplug is called background scanning.
The time slot of the audio data packet received by the main earpiece determines the time domain resource of the audio data packet sent by the mobile phone 200 to the main earpiece, and the frequency point of the signal sent by the mobile phone 200 determines the frequency domain resource of the audio data packet sent by the mobile phone 200 to the main earpiece. Based on the time domain resource and the frequency domain resource, the earplug 201-1 as the secondary earplug can determine when the handset 200 transmits the audio data packet in which frequency domain resource.
Therefore, the earplug 201-1 as the secondary earplug can estimate the quality parameter of the earplug 201-1 as the secondary earplug for receiving the audio data packet according to the capability (such as signal strength) of the earplug 201-1 for acquiring the audio data packet sent by the mobile phone 200 in the time slot of the primary earplug for receiving the audio data packet and the frequency point of the mobile phone 200 for sending the signal.
For example, the quality parameter of the audio data packet received by the auxiliary earphone may include: the secondary earpiece receives at least one of a received signal power and a signal-to-noise ratio of the audio data packet.
S802, the earplug 201-1 as the auxiliary earplug judges whether the estimated quality parameter meets a third preset condition.
The above estimated quality parameters including the received signal power and signal-to-noise ratio of the audio data packets received by the secondary earpiece are taken as examples. The estimated quality parameter satisfies a third preset condition, which may specifically be: the received signal power is greater than a preset power threshold; or the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold value; or, the received signal power is greater than a preset power threshold, and the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold. The estimated quality parameter does not satisfy the third preset condition, which may specifically be: the received signal power is less than or equal to a preset power threshold, and the signal-to-noise ratio is less than or equal to a preset signal-to-noise ratio threshold.
The received signal power and signal-to-noise ratio of the audio data packets received by the secondary earpiece may be used to characterize the signal quality of the audio data packets received by the secondary earpiece. And under the condition that the received signal power is greater than a preset power threshold value or the received signal power is greater than the preset power threshold value, the signal quality of the audio data packet received by the auxiliary earplug is higher.
Specifically, if the estimated quality parameter satisfies the third preset condition, it indicates that the signal quality of the audio data packet received by the secondary earplug is high, i.e. the signal quality of the audio data packet received by the secondary earplug is good. At this time, in order to reduce the transmission delay of the audio data packet, reduce the power consumption of the main earplug, and prolong the endurance time of the main earplug, the auxiliary earplug may request the main earplug to switch the transmission mode from the forwarding mode to the monitoring mode. The earplug 201-1 as the sub-earplug may perform S803.
And if the estimated quality parameters do not meet the third preset condition, the main and auxiliary earplugs continue to transmit audio data in a forwarding mode.
S803, the earphone 201-1 as the secondary earphone starts to acquire the audio data packet transmitted by the mobile phone 200, and transmits a third switching request to the earphone 201-2 as the primary earphone.
Wherein the main earpiece may send a third handover request to the secondary earpiece via the control link of the bluetooth connection 2. For example, when the bluetooth connection 2 described above is an ISO-based bluetooth connection, the main earplug may send the third handover request to the auxiliary earplug through an ACL link between the main earplug and the auxiliary earplug.
S804, the earplug 201-2 as the main earplug receives the third switching request sent by the earplug 201-1 as the auxiliary earplug, and stops forwarding the audio data packet to the earplug 201-1 as the auxiliary earplug.
The earplug 201-2 is used as a main earplug, and the earplug 201-1 is used as an auxiliary earplug, and a specific mode of performing frequency data transmission with the mobile phone 200 in a monitoring mode can refer to a method of performing frequency data transmission with the mobile phone 200 in a monitoring mode in S403-S410, which is not described herein in this embodiment of the present application.
After S804, the earplug 201-2 serving as the master earplug may obtain the signal quality of the audio data packet received by the master earplug and the slave earplug, and switch the transmission mode from the monitoring mode to the forwarding mode again when whether the signal quality of the audio data packet received by the master earplug and the slave earplug meets the first preset condition or the second preset condition. For a specific handover method, reference may be made to detailed descriptions in S501-S503 and S601-S609, which are not described herein again in this embodiment of the present application. In the embodiment of the application, the main and auxiliary earplugs can switch the monitoring mode and the forwarding mode to transmit the audio data according to the change of the signal quality of the audio data packet received by the main and auxiliary earplugs.
In order to facilitate understanding of those skilled in the art, in the embodiment of the present application, the foregoing forwarding manner is illustrated by the handover procedure shown in fig. 6, fig. 7, or fig. 9.
For example, as shown in fig. 7 or fig. 9, when the earplug 201-2 is used as a main earplug and the earplug 201-1 is used as a sub-earplug, and audio data transmission is performed in a forwarding manner, the earplug 201-2 may receive an audio data packet sent by the mobile phone 200 and forward the audio data packet to the earplug 201-1, where the audio data packet includes a frequency point at which the mobile phone 200 sends the audio data packet. The ear piece 201-1 can perform background scanning and receive the audio data packet forwarded by the ear piece 201-2. The earplug 201-1 can also estimate the signal power and the signal-to-noise ratio of the audio data packet received by the earplug 201-1 from the mobile phone 200 according to the background scanning result and the frequency point of the audio data packet transmitted by the mobile phone 200. If the received signal power and the signal-to-noise ratio satisfy the third preset condition, the transmission mode can be switched from the forwarding mode to the monitoring mode. At this time, the earplug 201-1 may send a third handover request to the earplug 201-2. After the ear-bud 201-2 receives the third handover request, it may stop forwarding the audio data packet to the ear-bud 201-1. Subsequently, as shown in fig. 9, the earplug 201-2 is used as a main earplug, and the earplug 201-1 is used as a sub-earplug, and audio data transmission is performed by a listening mode. The specific method for audio data transmission by the main and auxiliary earplugs in the listening mode is not described herein again in this embodiment of the present application.
For example, as shown in fig. 6, the earplug 201-1 is used as a main earplug, the earplug 201-2 is used as a secondary earplug, and a specific method for transmitting audio data in a forwarding manner may refer to the method for transmitting audio data in a forwarding manner by using the earplug 201-2 as the main earplug and the earplug 201-1 as the secondary earplug in fig. 7, which is not described herein again in this embodiment of the present application.
In still other embodiments of the present application, a peripheral device is provided, such as a TWS headset. The structure of the earplugs of the TWS headset may refer to the structure of the earplugs shown in fig. 2B. One or more computer programs may be stored in the memory of the earplug. The one or more computer programs include instructions. The instructions may be for performing the functions or steps performed by the earplugs (e.g., the earpiece 101-1, the earpiece 101-2) of the TWS headset as described in the corresponding description of any of fig. 4, fig. 5, fig. 6, fig. 7, fig. 8, or fig. 9. Of course, the ear plug of the TWS headset shown in fig. 2B may further include other devices such as a sensor, and the embodiments of the present application do not limit this.
It should be noted that the functions or steps performed by each body (e.g., the earpiece 101-1 or the earpiece 101-2) of the peripheral device (e.g., the TWS headset 101) may also be performed by the electronic device (e.g., the handset 100). The embodiment of the present application also provides an electronic device, and the structure of the electronic device may refer to the structure of the electronic device shown in fig. 3. One or more computer programs may be stored in the memory of the electronic device. The one or more computer programs include instructions. The instructions may be for performing the functions or steps performed by the earplugs (e.g., the earpiece 101-1, the earpiece 101-2) of the TWS headset as described in the corresponding description of any of fig. 4, fig. 5, fig. 6, fig. 7, fig. 8, or fig. 9.
Embodiments of the present application also provide a computer storage medium comprising computer instructions that, when executed on a first earpiece (e.g., earpiece 101-1) of a TWS headset, cause the first earpiece to perform various functions or steps as performed by the earpiece 101-1 in the description corresponding to any of fig. 4, fig. 5, fig. 6, fig. 7, fig. 8, or fig. 9. When the computer instructions are run on a second earpiece (e.g., earpiece 101-2) of the TWS headset, the second earpiece is caused to perform the various functions or steps performed by the earpiece 101-2 as described in the corresponding description of any of fig. 4, 5, 6, 7, 8 or 9.
Embodiments of the present application also provide a computer program product, which when run on a computer, causes the computer to execute the audio data transmission method as shown in any one of fig. 4, fig. 5, fig. 6, fig. 7, fig. 8, or fig. 9.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, 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, devices or units, and may be in an electrical, mechanical 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, each functional unit in the embodiments of the present embodiment 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 integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment essentially or partially contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above descriptions are only specific embodiments of the present embodiment, but the scope of the present embodiment is not limited thereto, and any changes or substitutions within the technical scope of the present embodiment should be covered by the scope of the present embodiment. Therefore, the protection scope of the present embodiment shall be subject to the protection scope of the claims.
Claims (30)
- A method for audio data transmission, the method comprising:the method comprises the steps that a first earplug is used as a main earplug to be connected with electronic equipment in a first Bluetooth mode, and the first earplug is used as the main earplug to be connected with a second earplug which is used as an auxiliary earplug in a second Bluetooth mode;the first ear bud sending connection parameters of the first Bluetooth connection to the second ear bud over the second Bluetooth connection; the first earphone receives an audio data packet sent by the electronic equipment through the first Bluetooth connection;the second earplug acquires the audio data packet sent by the electronic equipment according to the connection parameters;the first earplug determines that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than a preset difference threshold value;the first earplug instructs the second earplug to stop obtaining the audio data packet sent by the electronic equipment according to the connection parameter, and the audio data packet received from the electronic equipment is forwarded to the auxiliary earplug by the main earplug in the first earplug and the second earplug.
- The method of claim 1, wherein the first earpiece determining that the difference in signal quality of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold comprises:the first earpiece determines that a signal quality of the first earpiece receiving the audio data packets is higher than a signal quality of the second earpiece receiving the audio data packets, and that a difference between the signal quality of the first earpiece receiving the audio data packets and the signal quality of the second earpiece receiving the audio data packets is greater than a first difference threshold.
- The method of claim 1, wherein the first earpiece determining that the difference in signal quality of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold comprises:the first earpiece determining that a signal quality of the first earpiece receiving audio data packets is above a first quality threshold, and a signal quality of the second earpiece receiving audio data packets is below a second quality threshold;wherein the first quality threshold is higher than the second quality threshold.
- The method of any one of claims 1-3, wherein the first earpiece instructs the second earpiece to stop obtaining audio data packets sent by the electronic device according to the connection parameters, and wherein forwarding audio data packets received from the electronic device to a secondary earpiece by a primary earpiece of the first earpiece and the second earpiece comprises:the first earplug sends a first switching request to the second earplug through the second Bluetooth connection, wherein the first switching request is used for instructing the second earplug to stop acquiring the audio data packet sent by the electronic equipment according to the connection parameters;the first earpiece forwards audio data packets received from the electronic device to the second earpiece.
- The method of any of claims 1-4, wherein after forwarding audio data packets received from the electronic device to a secondary earpiece by a primary earpiece of the first and second earpieces, the method further comprises:the second earplug receives an audio data packet forwarded by the first earplug through the second Bluetooth connection, wherein the audio data packet forwarded by the first earplug comprises a frequency point of the audio data packet sent by the electronic equipment;the second earplug estimates the quality parameters of the audio data packet received by the second earplug in the time slot of the audio data packet received by the first earplug and the frequency point of the audio data packet sent by the electronic equipment; the connection parameters include a time slot for the first earpiece to receive an audio data packet; the quality parameters of the received audio data packets comprise: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet;and when the received signal power is greater than a preset power threshold value and/or the received signal power is greater than a preset power threshold value, the second earplug acquires an audio data packet sent by the electronic equipment according to the connection parameter, and instructs the first earplug to stop forwarding the audio data packet received from the electronic equipment to the second earplug.
- The method of claim 1, wherein the first earpiece determining that the difference in signal quality of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold comprises:the first earpiece determines that the signal quality of the second earpiece receiving the audio data packets is higher than the signal quality of the first earpiece receiving the audio data packets, and that the difference between the signal quality of the second earpiece receiving the audio data packets and the signal quality of the first earpiece receiving the audio data packets is greater than a first difference threshold.
- The method of claim 1, wherein the first earpiece determining that the difference in signal quality of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold comprises:the first earpiece determining that a signal quality of the second earpiece receiving the audio data packets is above a first quality threshold, the signal quality of the first earpiece receiving the audio data packets is below a second quality threshold;wherein the first quality threshold is higher than the second quality threshold.
- The method of any of claims 1, 6 or 7, wherein after the first earpiece determines that the difference in signal quality of the audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold, the method further comprises:the first earpiece requesting the electronic device to cease transmitting audio data packets over the first Bluetooth connection;wherein the first ear plug instructs the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter, and the main ear plug of the first ear plug and the second ear plug forwards the audio data packet received from the electronic device to the auxiliary ear plug, and the method comprises the following steps:the first earplug sends a second switching request to the second earplug, wherein the second switching request is used for indicating the second earplug to stop obtaining the audio data packet sent by the electronic equipment according to the connection parameter; the second switching request is further used for indicating the second earplug to take over the first Bluetooth connection between the first earplug and the electronic device so as to perform role exchange with the first earplug, wherein the second earplug is used as a main earplug and the first earplug is used as a secondary earplug after the role exchange;in the role exchange process, the second earplug stops acquiring the audio data packet sent by the electronic equipment according to the connection parameters;after the role switch, the second earpiece requests the electronic device to begin transmitting audio packets over the first bluetooth connection, the second earpiece forwarding audio packets received from the electronic device to the first earpiece.
- The method of claim 8, wherein after the second earpiece forwards audio data packets received from the electronic device to the first earpiece, the method further comprises:the first earplug receives an audio data packet forwarded by the second earplug through the second Bluetooth connection, wherein the audio data packet forwarded by the second earplug comprises a frequency point of the audio data packet sent by the electronic equipment;the first earplug estimates the quality parameters of the audio data packet received by the first earplug in the time slot of the audio data packet received by the second earplug and the frequency point of the audio data packet sent by the electronic equipment; the connection parameters include a time slot for the second earpiece to receive an audio data packet; the quality parameters of the received audio data packets comprise: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet;and when the received signal power is greater than a preset power threshold value and/or the received signal power is greater than a preset power threshold value, the first earplug acquires an audio data packet sent by the electronic equipment according to the connection parameter, and instructs the second earplug to stop forwarding the audio data packet received from the electronic equipment to the first earplug.
- The method of any one of claims 1-9, wherein the packet error rate of the audio data packets by the first ear plug is used to characterize the signal quality of the audio data packets received by the first ear plug, and wherein the packet error rate of the audio data packets by the second ear plug is used to characterize the signal quality of the audio data packets received by the second ear plug;wherein, the lower the packet error rate, the higher the signal quality of the received audio data packet; the higher the packet error rate, the lower the signal quality of the received audio data packets.
- A method for audio data transmission, the method comprising:a first earplug as a main earplug is used for establishing a first Bluetooth connection with the electronic equipment, and a second earplug as a secondary earplug is used for establishing a second Bluetooth connection with the first earplug;the first ear bud sending connection parameters of the first Bluetooth connection to the second ear bud over the second Bluetooth connection; the connection parameter is used for the second earplug to acquire the audio data packet sent by the electronic equipment; the first earphone receives an audio data packet sent by the electronic equipment through the first Bluetooth connection;the first earplug determines that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than a preset difference threshold value;the first earplug instructs the second earplug to stop obtaining the audio data packet sent by the electronic equipment according to the connection parameter, and the audio data packet received from the electronic equipment is forwarded to the auxiliary earplug by the main earplug in the first earplug and the second earplug.
- An earbud, wherein the earbud is a first earbud of a true wireless stereo TWS headset, the TWS headset further comprising a second earbud;the first earplug includes: the system comprises a processor, a memory, a wireless communication module, a receiver and a microphone; the memory, the wireless communication module, the earpiece, and the microphone are coupled with the processor, the memory to store computer program code, the computer program code comprising computer instructions; when the processor of the first earpiece executes computer instructions stored by the memory of the first earpiece,the processor is used for establishing a first Bluetooth connection with an electronic device when the first earplug is used as a main earplug and establishing a second Bluetooth connection with the second earplug used as a secondary earplug;the wireless communication module is used for sending the connection parameters of the first Bluetooth connection to the second earplug through the second Bluetooth connection; receiving an audio data packet sent by the electronic equipment through the first Bluetooth connection; the connection parameter is used for the second earplug to obtain the audio data packet sent by the electronic equipment;the processor is further used for determining that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is larger than a preset difference threshold value; instructing the second earplug to stop acquiring the audio data packet sent by the electronic device according to the connection parameter, and forwarding the audio data packet received from the electronic device to an auxiliary earplug by a main earplug in the first earplug and the second earplug;the telephone receiver is used for converting the audio data corresponding to the audio data packet received by the wireless communication module into a sound signal and playing the sound signal;the microphone is used for collecting sound signals of a user and converting the sound signals into audio data, and the wireless communication module transmits the audio data converted by the microphone to the electronic equipment through the first communication connection.
- The earbud of claim 12, wherein the processor, for determining that the difference in signal quality of the audio data packets received by the primary and secondary earbuds is greater than a preset difference threshold, comprises:the processor is configured to determine that the signal quality of the audio data packets received by the wireless communication module is higher than the signal quality of the audio data packets received by the second ear bud, and that the difference between the signal quality of the audio data packets received by the wireless communication module and the signal quality of the audio data packets received by the second ear bud is greater than a first difference threshold.
- The earbud of claim 12, wherein the processor, for determining that the difference in signal quality of the audio data packets received by the primary and secondary earbuds is greater than a preset difference threshold, comprises:the processor is configured to determine that the signal quality of the audio data packets received by the wireless communication module is higher than a first quality threshold, and that the signal quality of the audio data packets received by the second earpiece is lower than a second quality threshold;wherein the first quality threshold is higher than the second quality threshold.
- The ear plug according to any of claims 12-14, wherein the wireless communication module is further configured to send a first handover request to the second ear plug via the second bluetooth connection, the first handover request being configured to instruct the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter; forwarding audio data packets received from the electronic device to the second earpiece.
- The earbud of claim 12, wherein the processor, for determining that the difference in signal quality of the audio data packets received by the primary and secondary earbuds is greater than a preset difference threshold, comprises:the processor is configured to determine that the signal quality of the audio data packets received by the second earpiece is higher than the signal quality of the audio data packets received by the wireless communication module, and that the difference between the signal quality of the audio data packets received by the second earpiece and the signal quality of the audio data packets received by the wireless communication module is greater than a first difference threshold.
- The earbud of claim 12, wherein the processor, for determining that the difference in signal quality of the audio data packets received by the primary and secondary earbuds is greater than a preset difference threshold, comprises:the processor is configured to determine that the signal quality of the audio data packets received by the second earpiece is above a first quality threshold, and that the signal quality of the audio data packets received by the wireless communication module is below a second quality threshold;wherein the first quality threshold is higher than the second quality threshold.
- The earbud of any one of claims 12, 16 or 17, wherein the wireless communication module is further configured to request the electronic device to stop transmitting audio packets via the first bluetooth connection after the processor determines that the difference in signal quality of the audio packets received by the primary and secondary earbuds is greater than a preset difference threshold;the wireless communication module is further configured to send a second switching request to the second ear plug after the processor determines that the difference between the signal qualities of the audio data packets received by the main and auxiliary ear plugs is greater than the preset difference threshold, where the second switching request is used to instruct the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter; the second switching request is further used for indicating the second earplug to take over the first bluetooth connection between the first earplug and the electronic device so as to perform role exchange with the first earplug, wherein the second earplug is used as a main earplug and the first earplug is used as a secondary earplug after the role exchange.
- The ear plug according to claim 18, wherein the wireless communication module is further configured to receive an audio data packet forwarded by the second ear plug through the second bluetooth connection after the role exchange, where the audio data packet forwarded by the second ear plug includes a frequency point at which the electronic device sends the audio data packet;the processor is further configured to estimate a quality parameter of the audio data packet received by the wireless communication module in a time slot in which the second earpiece receives the audio data packet and a frequency point in which the electronic device sends the audio data packet; the connection parameters include a time slot for the second earpiece to receive an audio data packet; the quality parameters of the received audio data packets comprise: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet;the processor is further configured to obtain an audio data packet sent by the electronic device according to the connection parameter and instruct the second earpiece to stop forwarding the audio data packet received from the electronic device to the first earpiece when the received signal power is greater than a preset power threshold and/or the received signal power is greater than a preset power threshold.
- A true wireless stereo TWS headset, characterized in that the TWS headset comprises a first earpiece according to any of claims 12-19, and a second earpiece.
- The TWS headset of claim 20, wherein the second earpiece is further configured to receive an audio data packet forwarded by the first earpiece through the second bluetooth connection, and the audio data packet forwarded by the first earpiece includes a frequency point at which the electronic device sends the audio data packet; estimating the quality parameters of the audio data packet received by the second earplug in the time slot of the audio data packet received by the first earplug and the frequency point of the audio data packet sent by the electronic equipment; the connection parameters include a time slot for the first earpiece to receive an audio data packet; the quality parameters of the received audio data packets comprise: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet;and when the received signal power is greater than a preset power threshold value and/or the received signal power is greater than a preset power threshold value, acquiring an audio data packet sent by the electronic equipment according to the connection parameter, and instructing the first earplug to stop forwarding the audio data packet received from the electronic equipment to the second earplug.
- An electronic device, characterized in that the electronic device comprises: the system comprises a processor, a memory, a wireless communication module, a receiver and a microphone; the memory, the wireless communication module, the earpiece, and the microphone are coupled with the processor, the memory to store computer program code, the computer program code comprising computer instructions; when the processor of the electronic device executes the computer instructions stored by the memory of the electronic device,the processor for establishing a first bluetooth connection with the first earpiece as a master earpiece;the wireless communication module is used for sending the audio data packet to the first earplug through the first Bluetooth connection; wherein, the audio data packet sent by the wireless communication module is obtained by the second earplug according to the connection parameter of the first communication connection; the connection parameter is sent by the first earpiece to the second earpiece through a second bluetooth connection between the first earpiece and the second earpiece;the processor is further configured to instruct, by the first ear plug, the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter when a difference between signal qualities of the audio data packets received by the main and auxiliary ear plugs is greater than a preset difference threshold, and forward, by the main ear plug of the first ear plug and the second ear plug, the audio data packet received from the electronic device to the auxiliary ear plug;the telephone receiver is used for converting the audio data corresponding to the audio data packet received by the wireless communication module into a sound signal and playing the sound signal;the microphone is used for collecting sound signals of a user and converting the sound signals into audio data.
- The electronic device of claim 22, wherein the processor, by the first earpiece instructing the second earpiece to stop obtaining audio data packets sent by the electronic device according to the connection parameters, forwards audio data packets received from the electronic device to a secondary earpiece by a primary earpiece of the first earpiece and the second earpiece, comprising:the processor is configured to send the first switching request to the first ear plug, forward the first switching request to the second ear plug by the first ear plug, and instruct the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter; the first switch request is also for instructing the first earpiece to forward audio data packets received from the electronic device to the second earpiece.
- The electronic device of claim 22 or 23, wherein the processor is further configured to estimate the quality parameter of the audio data packets received by the second earpiece after forwarding the audio data packets received from the electronic device to the secondary earpiece by the primary earpiece of the first earpiece and the second earpiece; the quality parameters of the received audio data packets include: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet;the wireless communication module is further configured to instruct the second ear plug to obtain an audio data packet sent by the electronic device according to the connection parameter and instruct the first ear plug to stop forwarding the audio data packet received from the electronic device to the second ear plug when the received signal power is greater than a preset power threshold and/or when the received signal power is greater than the preset power threshold.
- The electronic device of claim 22, wherein the wireless communication module is further configured to stop transmitting audio data packets through the first bluetooth connection after the difference in signal quality of audio data packets received by the primary and secondary earpieces is greater than a preset difference threshold;the processor, which instructs the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter through the first ear plug, forwards the audio data packet received from the electronic device to a secondary ear plug by a main ear plug of the first ear plug and the second ear plug, including:the processor is configured to send the second handover request to the first ear plug, and forward the second handover request to the second ear plug by the first ear plug, where the second handover request is used to instruct the second ear plug to stop obtaining the audio data packet sent by the electronic device according to the connection parameter; the second switching request is further used for indicating the second earplug to take over the first Bluetooth connection between the first earplug and the electronic device so as to perform role exchange with the first earplug, wherein the second earplug is used as a main earplug and the first earplug is used as a secondary earplug after the role exchange;the wireless communication module is further configured to transmit an audio data packet to the second ear plug through the first bluetooth connection after the role exchange, and forward the audio data packet received from the wireless communication module to the first ear plug by the second ear plug.
- The electronic device of claim 25, wherein the processor is further configured to estimate a quality parameter of the audio data packets received by the first earpiece after forwarding the audio data packets received from the wireless communication module to the first earpiece by the second earpiece; the quality parameters of the received audio data packets comprise: receiving at least one of a received signal power and a signal-to-noise ratio of the audio data packet;the wireless communication module is further configured to instruct the first ear plug to obtain an audio data packet sent by the electronic device according to the connection parameter and instruct the second ear plug to stop forwarding the audio data packet received from the electronic device to the first ear plug when the received signal power is greater than a preset power threshold and/or when the received signal power is greater than the preset power threshold.
- The electronic device of any one of claims 22-26, wherein the packet error rate of audio data packets by the first earpiece is used to characterize the signal quality of audio data packets received by the first earpiece, and wherein the packet error rate of audio data packets by the second earpiece is used to characterize the signal quality of audio data packets received by the second earpiece;wherein, the lower the packet error rate, the higher the signal quality of the received audio data packet; the higher the packet error rate, the lower the signal quality of the received audio data packets.
- A Bluetooth chip, wherein the Bluetooth chip is applied in an earplug of a true wireless stereo TWS earphone; the bluetooth chip comprises a memory for storing computer program code comprising computer instructions and a processor; the processor executes the computer instructions stored in the memory to enable the earplug to be used as a main earplug, and to establish a first Bluetooth connection with an electronic device and a second Bluetooth connection with an auxiliary earplug; controlling an antenna of the earplug to send connection parameters of the first Bluetooth connection to the auxiliary earplug through the second Bluetooth connection; controlling the antenna to receive an audio data packet sent by the electronic equipment through the first Bluetooth connection; the connection parameters are used for the auxiliary earplug to obtain the audio data packet sent by the electronic equipment; determining that the difference of the signal quality of the audio data packets received by the main and auxiliary earplugs is greater than a preset difference threshold; and instructing the auxiliary earplug to stop acquiring the audio data packet sent by the electronic equipment according to the connection parameters, and forwarding the audio data packet received from the electronic equipment to the auxiliary earplug by the main earplug in the earplugs and the auxiliary earplug.
- A computer storage medium comprising computer instructions that, when run on a first earpiece of a true wireless stereo TWS headset, cause the first earpiece to perform the audio data transmission method of any of claims 1-10;when the computer instructions are run on a second earpiece of the TWS headset, cause the second earpiece to perform the audio data transmission method of any of claims 1-10.
- A computer program product, characterized in that it causes a computer to carry out the audio data transmission method according to any one of claims 1-10, when the computer program product is run on the computer.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/122774 WO2020124581A1 (en) | 2018-12-21 | 2018-12-21 | Audio data transmission method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112042212A true CN112042212A (en) | 2020-12-04 |
CN112042212B CN112042212B (en) | 2021-12-21 |
Family
ID=71100122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201880093055.8A Active CN112042212B (en) | 2018-12-21 | 2018-12-21 | Audio data transmission method and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112042212B (en) |
WO (1) | WO2020124581A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112821989A (en) * | 2019-11-18 | 2021-05-18 | 安华高科技股份有限公司 | Wireless audio streaming |
CN114268911A (en) * | 2021-09-23 | 2022-04-01 | 珠海市杰理科技股份有限公司 | Communication method and device, readable storage medium and TWS system |
CN114499587A (en) * | 2021-07-22 | 2022-05-13 | 荣耀终端有限公司 | Audio synchronization communication method and system and electronic equipment |
CN114666777A (en) * | 2022-05-26 | 2022-06-24 | 成都市安比科技有限公司 | Bandwidth improving method of Bluetooth audio system |
CN114786139A (en) * | 2022-02-28 | 2022-07-22 | Oppo广东移动通信有限公司 | Connection establishing method, device, equipment, storage medium and program product |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111867144B (en) * | 2020-06-29 | 2022-05-31 | 炬芯科技股份有限公司 | Wireless communication method and wireless communication equipment |
CN112437418B (en) * | 2020-07-17 | 2024-01-30 | 珠海市杰理科技股份有限公司 | TWS equipment communication data configuration method, TWS equipment communication data configuration device, TWS equipment communication data configuration chip and TWS equipment communication data configuration medium |
CN113286212B (en) * | 2021-05-20 | 2022-07-12 | 北京明略软件系统有限公司 | Wearing type audio acquisition assembly |
US11445286B1 (en) | 2021-05-20 | 2022-09-13 | Amazon Technologies, Inc. | Wireless connection management |
CN113556650B (en) * | 2021-06-07 | 2023-04-21 | 广州安凯微电子股份有限公司 | TWS earphone wireless communication method, system, device and storage medium |
CN113242546B (en) * | 2021-06-25 | 2023-04-21 | 南京中感微电子有限公司 | Audio forwarding method, device and storage medium |
CN114079896B (en) * | 2021-07-22 | 2024-06-07 | 珠海市杰理科技股份有限公司 | Method, device, equipment and system for error correction of packet loss data in double-transmission mode |
CN115278623A (en) * | 2022-07-20 | 2022-11-01 | 哲库科技(上海)有限公司 | Multimedia packet transmission method, apparatus, device and medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471829A (en) * | 2007-12-28 | 2009-07-01 | 华为技术有限公司 | Method and apparatus for directly connecting stations in wireless LAN |
CN106792321A (en) * | 2017-02-08 | 2017-05-31 | 河荣华 | A kind of separated wireless earphone and its communication means |
US20170237845A1 (en) * | 2016-01-08 | 2017-08-17 | Lg Electronics Inc. | Mobile terminal and mobile terminal audio signal processing system including the same |
CN107894881A (en) * | 2017-10-18 | 2018-04-10 | 恒玄科技(上海)有限公司 | The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch |
CN108337074A (en) * | 2018-06-22 | 2018-07-27 | 恒玄科技(上海)有限公司 | The bluetooth headset wireless communications method of high reliability |
CN108419228A (en) * | 2018-02-09 | 2018-08-17 | 恒玄科技(上海)有限公司 | A kind of wireless communications method suitable for bluetooth headset |
CN108429949A (en) * | 2018-03-21 | 2018-08-21 | 恒玄科技(上海)有限公司 | A kind of Bluetooth audio frequency mixed communication method suitable for bluetooth headset |
-
2018
- 2018-12-21 CN CN201880093055.8A patent/CN112042212B/en active Active
- 2018-12-21 WO PCT/CN2018/122774 patent/WO2020124581A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101471829A (en) * | 2007-12-28 | 2009-07-01 | 华为技术有限公司 | Method and apparatus for directly connecting stations in wireless LAN |
US20170237845A1 (en) * | 2016-01-08 | 2017-08-17 | Lg Electronics Inc. | Mobile terminal and mobile terminal audio signal processing system including the same |
CN106792321A (en) * | 2017-02-08 | 2017-05-31 | 河荣华 | A kind of separated wireless earphone and its communication means |
CN107894881A (en) * | 2017-10-18 | 2018-04-10 | 恒玄科技(上海)有限公司 | The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch |
CN108419228A (en) * | 2018-02-09 | 2018-08-17 | 恒玄科技(上海)有限公司 | A kind of wireless communications method suitable for bluetooth headset |
CN108429949A (en) * | 2018-03-21 | 2018-08-21 | 恒玄科技(上海)有限公司 | A kind of Bluetooth audio frequency mixed communication method suitable for bluetooth headset |
CN108337074A (en) * | 2018-06-22 | 2018-07-27 | 恒玄科技(上海)有限公司 | The bluetooth headset wireless communications method of high reliability |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112821989A (en) * | 2019-11-18 | 2021-05-18 | 安华高科技股份有限公司 | Wireless audio streaming |
CN112821989B (en) * | 2019-11-18 | 2024-02-06 | 安华高科技股份有限公司 | Wireless audio streaming |
CN114499587A (en) * | 2021-07-22 | 2022-05-13 | 荣耀终端有限公司 | Audio synchronization communication method and system and electronic equipment |
CN114499587B (en) * | 2021-07-22 | 2022-12-23 | 荣耀终端有限公司 | Audio synchronization communication method, system, wireless earphone, terminal and storage medium |
CN114268911A (en) * | 2021-09-23 | 2022-04-01 | 珠海市杰理科技股份有限公司 | Communication method and device, readable storage medium and TWS system |
CN114786139A (en) * | 2022-02-28 | 2022-07-22 | Oppo广东移动通信有限公司 | Connection establishing method, device, equipment, storage medium and program product |
CN114666777A (en) * | 2022-05-26 | 2022-06-24 | 成都市安比科技有限公司 | Bandwidth improving method of Bluetooth audio system |
CN114666777B (en) * | 2022-05-26 | 2022-07-29 | 成都市安比科技有限公司 | Bandwidth improving method of Bluetooth audio system |
Also Published As
Publication number | Publication date |
---|---|
CN112042212B (en) | 2021-12-21 |
WO2020124581A1 (en) | 2020-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112042212B (en) | Audio data transmission method and electronic equipment | |
CN112789867B (en) | Bluetooth connection method and equipment | |
CN112640505B (en) | Transmission rate control method and equipment | |
CN112789866B (en) | Audio data transmission method and equipment applied to TWS earphone single-ear and double-ear switching | |
CN112771890B (en) | Point-to-multipoint data transmission method and electronic equipment | |
CN112868244B (en) | Point-to-multipoint data transmission method and device | |
CN115426064B (en) | Audio data synchronization method and equipment | |
CN112789883B (en) | Rate control method, device and computer storage medium | |
CN112913321B (en) | Method, equipment and system for carrying out call by using Bluetooth headset | |
WO2021129521A1 (en) | Bluetooth communication method and apparatus | |
CN112771828B (en) | Audio data communication method and electronic equipment | |
CN114710768B (en) | Bluetooth connection method and related device | |
CN112806092B (en) | Microphone MIC switching method and device | |
CN115706755A (en) | Echo cancellation method, electronic device, and 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 |