WO2021052318A1 - 音频播放方法、装置及tws蓝牙耳机 - Google Patents

音频播放方法、装置及tws蓝牙耳机 Download PDF

Info

Publication number
WO2021052318A1
WO2021052318A1 PCT/CN2020/115292 CN2020115292W WO2021052318A1 WO 2021052318 A1 WO2021052318 A1 WO 2021052318A1 CN 2020115292 W CN2020115292 W CN 2020115292W WO 2021052318 A1 WO2021052318 A1 WO 2021052318A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth headset
audio data
wireless link
duty
person
Prior art date
Application number
PCT/CN2020/115292
Other languages
English (en)
French (fr)
Inventor
洪永光
范美辉
段雄
罗培彬
麦键光
Original Assignee
安徽华米信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 安徽华米信息科技有限公司 filed Critical 安徽华米信息科技有限公司
Publication of WO2021052318A1 publication Critical patent/WO2021052318A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface

Definitions

  • This application relates to the field of wireless communication technology, and in particular to an audio playback method, device and TWS Bluetooth headset.
  • the TWS Bluetooth headset includes a primary Bluetooth headset and a secondary Bluetooth headset that are not physically connected.
  • the main Bluetooth headset and the secondary Bluetooth headset can communicate with the smart device through Bluetooth to receive audio data sent by the smart device; in addition, the main Bluetooth headset and the secondary Bluetooth headset can also communicate through Bluetooth. Communicate to inform each other of their own reception of audio data. After confirming that both the main Bluetooth headset and the secondary Bluetooth headset have received the same audio data, it returns a response message to the smart device, so that the smart device continues to send audio data. As a result, the main Bluetooth headset and the secondary Bluetooth headset can play audio data synchronously.
  • the communication between the primary and secondary Bluetooth headsets and the smart device, as well as between the primary and secondary Bluetooth headsets is through Bluetooth. Therefore, both the primary and secondary Bluetooth headsets need to process different communication processes in a time-sharing manner. As a result, the communication may not be timely, thereby affecting the synchronization and fluency of audio playback.
  • this application provides an audio playback method, device, and TWS Bluetooth headset to solve the problem that TWS Bluetooth headsets need to process different communication processes in a time-sharing manner, which may lead to untimely communication, thereby affecting the synchronization and fluency of audio playback. problem.
  • the first aspect of the embodiments of the present application provides an audio playback method, which is applied to a TWS Bluetooth headset.
  • the TWS Bluetooth headset includes a primary Bluetooth headset and a secondary Bluetooth headset.
  • the method includes: the primary Bluetooth headset and the secondary Bluetooth headset.
  • the headset shares the first wireless link to simultaneously receive audio data sent by the audio source device through the first wireless link; according to the set alternate response rule, the primary Bluetooth headset and the secondary Bluetooth headset alternately serve as The person on duty sends a response message to characterize that the audio data has been received through the first wireless link, so that the audio source device, after receiving the response message, passes through the first wireless link
  • the next audio data is sent through the channel; after the primary Bluetooth headset and the secondary Bluetooth headset simultaneously receive the next audio data, the audio data and the next audio data are played synchronously.
  • a second aspect of the embodiments of the present application provides an audio playback device, which is applied to a TWS Bluetooth headset.
  • the TWS Bluetooth headset includes a main Bluetooth headset and a secondary Bluetooth headset.
  • the device includes a link sharing module for the main Bluetooth headset.
  • the Bluetooth headset and the secondary Bluetooth headset share the first wireless line to simultaneously receive the audio data sent by the audio source device through the first wireless link;
  • the message response module is used for receiving the audio data according to the set alternate response rule.
  • the main Bluetooth headset and the secondary Bluetooth headset alternately serve as the duty, and send a response message to characterize the audio data that has been received through the first wireless link, so that the audio source device receives all the audio data.
  • the next audio data is sent through the first wireless link; a playback module is used to synchronously play the next audio data after the primary Bluetooth headset and the secondary Bluetooth headset simultaneously receive the next audio data Audio data and the next audio data
  • a third aspect of the embodiments of the present application provides a TWS Bluetooth headset, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute: the main Bluetooth headset and The secondary Bluetooth headset shares the first wireless link to simultaneously receive audio data sent by the audio source device through the first wireless link; according to the set alternate response rule, the primary Bluetooth headset and the secondary Bluetooth headset
  • the Bluetooth headset alternately acts as the person on duty, and sends a response message indicating that the audio data has been received through the first wireless link, so that the audio source device, after receiving the response message, passes through the The first wireless link sends the next audio data; after the primary Bluetooth headset and the secondary Bluetooth headset simultaneously receive the next audio data, the audio data and the next audio data are played synchronously.
  • the TWS Bluetooth headset since in the process of using the TWS Bluetooth headset, the TWS Bluetooth headset only needs to process the communication process between the TWS Bluetooth headset and the audio source device, thereby improving the smoothness of audio playback.
  • Figure 1 is a schematic diagram of an audio playback system including a TWS Bluetooth headset
  • FIG. 2 is a schematic diagram of an audio playback system including TWS Bluetooth headsets according to an embodiment of the present application
  • Fig. 3A is a flowchart of an audio playing method according to an exemplary embodiment of the present application.
  • Fig. 3B is a flowchart of an audio playing method according to another exemplary embodiment of the present application.
  • Fig. 4 is a flowchart of an audio playing method according to another exemplary embodiment of the present application.
  • Fig. 5 is a flowchart of an audio playing method according to still another exemplary embodiment of the present application.
  • Fig. 6 is a flowchart of an audio playing method according to another exemplary embodiment of the present application.
  • Fig. 7 is a block diagram of an audio playback device according to an exemplary embodiment of the present application.
  • Fig. 8 is a hardware structure diagram of a TWS Bluetooth headset according to an exemplary embodiment of the present application.
  • first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.
  • the TWS Bluetooth headset includes two Bluetooth headsets that are not physically connected, the primary Bluetooth headset and the secondary Bluetooth headset. Both the TWS Bluetooth headset and the audio source device, and the primary and secondary Bluetooth headsets can be wirelessly connected through Bluetooth, thereby realizing a true wireless structure.
  • FIG. 1 it is a schematic diagram of an audio playback system including a TWS Bluetooth headset.
  • the audio playback system illustrated in FIG. 1 includes a smart phone 110 as an audio source device and a TWS Bluetooth headset 120.
  • the TWS Bluetooth headset 120 includes a main Bluetooth headset 121 and a secondary Bluetooth headset 122.
  • a wireless link 130 is established between the smart phone 110 and the main Bluetooth headset 121
  • a wireless link 140 is established between the smart phone 110 and the auxiliary Bluetooth headset 122
  • a wireless link is established between the main Bluetooth headset 121 and the auxiliary Bluetooth headset 122.
  • Link 150 is established between the main Bluetooth headset 121 and the auxiliary Bluetooth headset 122.
  • the smart phone 110 can send audio data to the main Bluetooth headset 121 and the secondary Bluetooth headset 122 through the wireless link 130 and the wireless link 140, respectively, between the main Bluetooth headset 121 and the secondary Bluetooth headset 122.
  • Bluetooth communication can be performed through the wireless link 150 to inform each other of their own reception of audio data.
  • the primary Bluetooth headset 121 confirms that both itself and the secondary Bluetooth headset 122 have received the same audio data, it can return a response message to the smart phone 110 via the wireless link 130, so that the smart phone 110 continues to send audio data. In this way, the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 can play audio data synchronously.
  • this application proposes an audio playback method.
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 can share the same wireless link, for example, the wireless link 130, so that both of them communicate to the smart device through the shared wireless link.
  • the mobile phone 110 sends a response message indicating that the audio data has been received.
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 can alternately send a response message to the smart phone 110 via the wireless link 130 to characterize the received audio data.
  • FIG. 2 is a schematic diagram of an audio playback system including a TWS Bluetooth headset according to an embodiment of the present application.
  • Fig. 2 is based on the above-mentioned Fig. 1 and differs from Fig. 1 in that there is no wireless link 140 between the smart phone 110 as an audio source device and the secondary Bluetooth headset 122, instead it duplicates the smart phone 110 and the main Bluetooth headset. 121 between the wireless link 130.
  • the main Bluetooth headset 121 can use the wireless link 150 to transfer the connection information of the wireless link 130, such as the connection key, the Bluetooth address of the audio source device, the frame skipping sequence, and the AFH channel map.
  • the wireless link 130 is a standard Bluetooth communication link, which can be used to transmit standard Bluetooth communication protocol content such as audio signals, the following retransmission signals, etc.; and the wireless link 150 can only be the main Bluetooth headset 121 and the secondary Bluetooth headset.
  • the private information transmission link between 122 does not need to have the function of transmitting audio signals.
  • the main Bluetooth headset 121 and the secondary Bluetooth headset 122 receive audio data sent by the smart phone 110 through the wireless link 130, and alternately send the audio data to the smart phone 110 through the wireless link 130 to characterize the The response message of the audio data is received, and the audio is played synchronously.
  • FIG. 3A is a flowchart of an audio playback method according to an exemplary embodiment of the present application.
  • the method can be applied to the TWS Bluetooth headset 120 in the audio playback system shown in FIG. 2 above.
  • the method may include the following steps 301 to 303.
  • Step 301 The primary Bluetooth headset and the secondary Bluetooth headset share the first wireless link to simultaneously receive audio data sent by the audio source device through the first wireless link.
  • the wireless link 130 is referred to as the first wireless link
  • the wireless link 150 is referred to as the second wireless link.
  • the second wireless link 150 is established between the main Bluetooth headset 121 and the secondary Bluetooth headset 122 first. Furthermore, the main Bluetooth headset 121 sends the connection information of the first wireless link 130 to the secondary Bluetooth headset 122 through the second wireless link 150, so that the secondary Bluetooth headset 122 can share the first wireless link with the primary Bluetooth headset 121 based on the connection information. Link 130.
  • Step 302 According to the set alternate response rule, the primary Bluetooth headset and the secondary Bluetooth headset alternately serve as the duty, and send a response message for characterizing the received audio data through the first wireless link, so that The audio source device transmits the next audio data through the first wireless link in response to receiving the response message.
  • Step 303 After the primary Bluetooth headset and the secondary Bluetooth headset simultaneously receive the next audio data, the audio data and the next audio data are played synchronously
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 can share the first wireless link 130, the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 can simultaneously receive the smartphone when the communication connection is normal. 110 through the first wireless link 130 to send audio data.
  • the primary Bluetooth headset 121 or the secondary Bluetooth headset 122 may send a response message to the smart phone 110 via the first wireless link 130 to characterize the received audio data according to the set alternate response rule.
  • the party whose turn is to send a response message to the audio source device according to the set alternate response rule is called the on-duty, and the other party Called non-duty (non-duty).
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 simultaneously receive the first audio data (3031) sent by the smart phone 110 as the audio source device via the first wireless link 130
  • first The secondary Bluetooth headset 122 returns to the smartphone 110 via the first wireless link 130 a response message (3032) for indicating that the first audio data has been received.
  • the response message is called the first Reply to the message.
  • the smart phone 110 can continue to send audio data through the first wireless link 130 (3033).
  • the audio data is referred to as second audio data.
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 share the first wireless link 130, the primary Bluetooth headset 121 can receive the first response message, and can determine that the secondary Bluetooth headset 122 has received it based on the first response message. To the first audio data.
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 have received the first audio data synchronously, and the primary Bluetooth headset 121 can know the reception of the first audio data by the secondary Bluetooth headset 122.
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 simultaneously receive the second audio data (3035) sent by the smart phone 110 through the first wireless link 130.
  • the primary Bluetooth headset 121 will pass through the first wireless link as the person on duty.
  • the link 130 sends a response message (3036) for indicating that the second audio data has been received to the smart phone 110.
  • the response message is referred to as a second response message.
  • the secondary Bluetooth headset 122 can receive the second response message through the first wireless link 130, and can determine the primary based on the second response message.
  • the Bluetooth headset 121 has received the second audio data.
  • the main Bluetooth headset 121 and the secondary Bluetooth headset 122 have received the second audio data synchronously, and the secondary Bluetooth headset 122 can know the reception status of the second audio data by the primary Bluetooth headset 121.
  • repeating the above process can effectively realize the synchronization of audio playback between the main Bluetooth headset 121 and the secondary Bluetooth headset 122.
  • the audio data and the next audio data are played synchronously (3037).
  • the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 may respectively sort the received audio data according to the frame sequence number, and play the received audio data in order.
  • the primary Bluetooth headset and the secondary Bluetooth headset share the first wireless link, so that the primary Bluetooth headset and the secondary Bluetooth headset can simultaneously receive the audio source device through the first wireless link. Audio data sent over the wireless link.
  • the primary and secondary Bluetooth headsets can effectively know each other’s reception of audio data, so that both the primary and secondary Bluetooth headsets It only needs to process the communication process between it and the audio source device, which can effectively improve the fluency of audio playback.
  • FIG. 4 is a flowchart of an audio playback method according to another exemplary embodiment of the present application.
  • the embodiment shown in FIG. 4 is based on the above-mentioned embodiment shown in FIGS. 3A and 3B, and emphatically describes that the primary Bluetooth headset 121 receives the first audio data, but the secondary Bluetooth headset 122 does not receive the first audio data due to abnormal communication.
  • the method may include the following steps 401 to 409.
  • Step 401 The audio source device sends first audio data through the first wireless link.
  • Step 402 The master Bluetooth headset receives the first audio data.
  • step 401 and step 402 it is assumed that the communication between the secondary Bluetooth headset 122 and the smart phone 110 as the audio source device is abnormal, and the secondary Bluetooth headset 122 fails to receive the first audio data sent by the smart phone 110, that is, As shown in FIG. 4, only the main Bluetooth headset 121 receives the first audio data.
  • Abnormal communication between the secondary Bluetooth headset 122 and the smart phone 110 includes, but is not limited to, packet loss during the transmission of the first audio data sent by the smart phone 110 to the secondary Bluetooth headset 122 via the first wireless link 130.
  • Step 403 When the audio source device does not receive the first response message from the secondary Bluetooth headset within the preset time period, which is used to indicate that the first audio data has been received, it sends the first audio data again through the first wireless link.
  • the smart phone 110 as the audio source device does not receive the above-mentioned first response message within a preset time period, it may be considered that the transmission of the first audio data has failed, and the first audio data will be sent again.
  • Step 404 The primary Bluetooth headset receives the first audio data again, and at the same time the secondary Bluetooth headset receives the first audio data.
  • step 404 assuming that the communication connection between the secondary Bluetooth headset 122 and the smart phone 110 returns to normal, then the primary Bluetooth headset 121 and the secondary Bluetooth headset 122 can simultaneously receive the first audio data sent by the smart phone 110 again.
  • Step 405 The secondary Bluetooth headset sends a first response message for indicating that the first audio data has been received to the audio source device through the first wireless link.
  • Step 406 After receiving the first response message, the audio source device continues to send the second audio data through the first wireless link.
  • Step 407 The primary Bluetooth headset and the secondary Bluetooth headset each receive the second audio data sent by the audio source device through the first wireless link.
  • Step 408 The master Bluetooth headset sends a second response message for indicating that the second audio data has been received to the audio source device through the first wireless link.
  • Step 409 After receiving the second response message through the first wireless link, the secondary Bluetooth headset plays the first audio data and the second audio data in synchronization with the primary Bluetooth headset.
  • steps 405 to 409 For detailed descriptions of steps 405 to 409, reference may be made to related descriptions of steps 3032 to 3037 in the embodiment shown in FIG. 3B, which will not be described in detail here.
  • FIG. 4 only describes the processing when the secondary Bluetooth headset as the duty person does not receive audio data due to abnormal communication and causes the audio source device to wait for a preset period of time without receiving the corresponding response message.
  • main Bluetooth headset as the duty person does not receive audio data due to communication abnormalities and causes the audio source device to wait for a preset period of time without receiving the corresponding response message
  • a similar procedure can be performed. Processing, that is, the audio source device resends the audio data corresponding to the response message in response to waiting for a preset period of time without receiving the response message.
  • the audio source device when it does not receive the response message within the preset time period, it will send the audio data corresponding to the response message again, which can effectively avoid the audio received by the main Bluetooth headset and the secondary Bluetooth headset.
  • the data is out of sync.
  • FIG. 5 is a flowchart of an audio playback method according to still another exemplary embodiment of the present application.
  • the embodiment shown in FIG. 5 is based on the embodiment shown in FIGS. 3A and 3B, and emphatically describes the situation where the primary Bluetooth headset 121 does not receive the first audio data, but the secondary Bluetooth headset 122 receives the first audio data.
  • the method may include step 501 to step 510.
  • Step 501 The audio source device sends first audio data through the first wireless link.
  • Step 502 The secondary Bluetooth headset receives the first audio data.
  • step 502 it is assumed that the communication between the main Bluetooth headset 121 and the smart phone 110 as the audio source device is abnormal, and the main Bluetooth headset 121 fails to receive the first audio data sent by the smart phone 110, that is, as As shown in FIG. 5, only the secondary Bluetooth headset 122 receives the first audio data.
  • Abnormal communication between the master Bluetooth headset 121 and the smart phone 110 includes, but is not limited to, that the first audio data sent by the smart phone 110 to the master Bluetooth headset 121 via the first wireless link 130 has packet loss during transmission.
  • Step 503 The secondary Bluetooth headset sends a first response message for indicating that the first audio data has been received to the audio source device through the first wireless link.
  • Step 504 After receiving the first response message, the audio source device continues to send the second audio data through the first wireless link.
  • steps 501 to 504 For detailed descriptions of steps 501 to 504, reference may be made to related descriptions of steps 301 to 302 in the embodiment shown in FIG. 3A, which will not be described in detail here.
  • Step 505 After receiving the first response message, the master Bluetooth headset sends a first retransmission signal for indicating that the first audio data is not received through the first wireless link.
  • the primary Bluetooth headset 121 can receive the first response message through the first wireless link 130.
  • the primary Bluetooth headset 121 After the primary Bluetooth headset 121 receives the above-mentioned first response message, it can be determined based on the first response message that the secondary Bluetooth headset 122 has received the first audio data, and that it has not received the first audio data.
  • the master Bluetooth headset 121 may send a first retransmission signal for indicating that it has not received the first audio data through the first wireless link 130.
  • the primary Bluetooth headset 121 may construct the first retransmission signal according to a format negotiated with the secondary Bluetooth headset 122 in advance, or, according to a preset encryption rule, perform the constructed first retransmission signal. encryption.
  • the primary Bluetooth headset 121 may encrypt the first retransmission signal according to a pre-appointed key, and send the encrypted first retransmission signal to the secondary Bluetooth headset 122.
  • the secondary Bluetooth headset 122 can analyze and identify it, or after receiving the encrypted first retransmission signal, it can be decrypted according to the preset decryption rules. Decrypt. For example, the secondary Bluetooth headset 122 can decrypt the encrypted first retransmission signal by using the aforementioned pre-appointed key to obtain the original first retransmission signal. After the smart phone 110 receives the first retransmission signal, it cannot be analyzed and identified, nor can it be decrypted. Therefore, after the smart phone 110 receives the first retransmission signal, it can discard it without sending the first audio data again based on the first retransmission signal. Of course, the smart phone 110 may also fail to receive the first retransmission signal due to abnormal communication with the main Bluetooth headset 121.
  • Step 506 The primary Bluetooth headset and the secondary Bluetooth headset each receive the second audio data through the first wireless link.
  • step 506 assuming that the communication connection between the main Bluetooth headset 121 and the smart phone 110 returns to normal, the main Bluetooth headset 121 and the secondary Bluetooth headset 122 can simultaneously receive the second audio data sent by the smart phone 110.
  • Step 507 The secondary Bluetooth headset receives the first retransmission signal through the first wireless link, and sends the first audio data through the first wireless link.
  • Step 508 The master Bluetooth headset receives the first audio data through the first wireless link.
  • the secondary Bluetooth headset 122 can receive the first retransmission signal through the first wireless link 130. After the secondary Bluetooth headset 122 receives the first retransmission signal, it can be determined based on the first retransmission signal that the primary Bluetooth headset 121 has not received the first audio data. In this case, the secondary Bluetooth headset 122 may send the first audio data through the first wireless link 130, so that the primary Bluetooth headset 121 receives the first audio data through the first wireless link 130.
  • the secondary Bluetooth headset 122 may encrypt the first audio data according to a preset encryption rule, for example, using a preset key, and send the encrypted first audio data through the first wireless link 130.
  • a preset encryption rule for example, using a preset key
  • the master Bluetooth headset 121 after the master Bluetooth headset 121 receives the encrypted first audio data via the first wireless link 130, it can decrypt it according to a preset decryption rule, for example, using a preset key. Obtain the original first audio data.
  • Step 509 The master Bluetooth headset sends a second response message for indicating that the second audio data has been received to the audio source device through the first wireless link.
  • Step 510 After receiving the second response message through the first wireless link, the secondary Bluetooth headset plays the first audio data and the second audio data in synchronization with the primary Bluetooth headset.
  • step 509 and step 510 please refer to the related description of step 3032 and step 3037 in the embodiment shown in FIG. 3B, which will not be described in detail here.
  • the primary and secondary Bluetooth headsets alternately send response messages to the audio source device. Therefore, the primary Bluetooth headset as the non-duty person receives the data sent by the secondary Bluetooth headset as the duty person to indicate the After receiving the first response message of the first audio data, it can be determined that it has not received the first audio data. Subsequently, by sending the first retransmission signal, the primary Bluetooth headset can make the secondary Bluetooth headset send the first audio data to the primary Bluetooth headset based on the first retransmission signal, thereby effectively realizing the reception of the primary Bluetooth headset and the secondary Bluetooth headset. The audio data is kept in sync.
  • FIG. 6 is a flowchart of an audio playback method according to another exemplary embodiment of the present application.
  • the embodiment shown in FIG. 6 is based on the above-mentioned embodiment shown in FIGS. 3A and 3B, and emphatically describes the case where the primary Bluetooth headset 121 receives the second audio data, but the secondary Bluetooth headset 122 does not receive the second audio data.
  • the method may include the following steps 601 to 610.
  • Step 601 The audio source device sends first audio data through the first wireless link.
  • Step 602 The primary Bluetooth headset and the secondary Bluetooth headset each receive the first audio data.
  • Step 603 The secondary Bluetooth headset sends a first response message for indicating that the first audio data has been received to the audio source device through the first wireless link.
  • Step 604 After receiving the first response message, the audio source device sends the second audio data through the first wireless link.
  • Step 605 The main Bluetooth headset receives the second audio data.
  • step 605 it is assumed that the communication between the secondary Bluetooth headset 122 and the smart phone 110 as the audio source device is abnormal, and the secondary Bluetooth headset 122 fails to receive the second audio data sent by the smart phone 110, that is, as As shown in FIG. 6, only the main Bluetooth headset 121 receives the second audio data.
  • Abnormal communication between the secondary Bluetooth headset 122 and the smart phone 110 includes, but is not limited to, that the second audio data sent by the smart phone 110 to the secondary Bluetooth headset 122 via the first wireless link 130 has packet loss during transmission.
  • Step 606 The master Bluetooth headset sends a second response message for indicating that the second audio data has been received to the audio source device through the first wireless link.
  • steps 601 to 606 For detailed descriptions of steps 601 to 606, reference may be made to related descriptions of steps 301 to 303 in the embodiment shown in FIG. 3A, which will not be described in detail here.
  • Step 607 After receiving the second response message, the secondary Bluetooth headset sends a second retransmission signal for indicating that the second audio data is not received through the first wireless link.
  • the secondary Bluetooth headset 122 can receive the above-mentioned second response message through the first wireless link 130. After receiving the second response message, the secondary Bluetooth headset 122 can determine that the primary Bluetooth headset 121 has received the second audio data based on the second response message, and that it has not received the second audio data. At this time, the secondary Bluetooth headset 122 may send a second retransmission signal for indicating that the second audio data is not received through the first wireless link 130.
  • the secondary Bluetooth headset 122 may construct the second retransmission signal according to a format negotiated with the main Bluetooth headset 121 in advance, or, according to a preset encryption rule, perform the constructed second retransmission signal. encryption.
  • the secondary Bluetooth headset 122 may encrypt the second retransmission signal according to a pre-appointed key, and send the encrypted second retransmission signal to the main Bluetooth headset 121.
  • the main Bluetooth headset 121 can analyze and identify it, or after receiving the encrypted second retransmission signal, it can be decrypted according to the preset decryption rules. Decrypt. For example, the master Bluetooth headset 121 can use the above key to decrypt the encrypted second retransmission signal to obtain the original second retransmission signal.
  • the smart phone 110 After the smart phone 110 receives the second retransmission signal, it cannot analyze and identify it, nor can it decrypt it. Therefore, after the smart phone 110 receives the second retransmission signal, it can discard it without sending the second audio data again based on the second retransmission signal.
  • the smart phone 110 may also fail to receive the second retransmission signal due to abnormal communication with the secondary Bluetooth headset 122.
  • Step 608 The master Bluetooth headset receives the second retransmission signal through the first wireless link, and sends the second audio data through the first wireless link.
  • Step 609 The secondary Bluetooth headset receives the second audio data through the first wireless link.
  • step 608 and step 609 are described.
  • the primary Bluetooth headset 121 can receive the second retransmission signal through the first wireless link 130.
  • the primary Bluetooth headset 121 After the primary Bluetooth headset 121 receives the second retransmission signal, it can be determined based on the second retransmission signal that the secondary Bluetooth headset 122 does not receive the second audio data.
  • the main Bluetooth headset 121 may send the second audio data through the first wireless link 130, so that the secondary Bluetooth headset 122 receives the second audio data through the first wireless link 130.
  • the master Bluetooth headset 121 may encrypt the second audio data according to a preset encryption rule, for example, using a preset key, and send the encrypted second audio data through the first wireless link 130.
  • a preset encryption rule for example, using a preset key
  • the secondary Bluetooth headset 122 after the secondary Bluetooth headset 122 receives the encrypted second audio data through the first wireless link 130, it can decrypt it according to a preset decryption rule, for example, using a preset key. Obtain the original second audio data.
  • Step 610 The primary Bluetooth headset and the secondary Bluetooth headset respectively play the first audio data and the second audio data.
  • the primary and secondary Bluetooth headsets alternately send response messages to the audio source device, so that the secondary Bluetooth headset that is not on duty receives the primary Bluetooth headset that is on duty to indicate that it has already been sent. After receiving the second response message of the second audio data, it can be determined that the second audio data is not received by itself. Subsequent, by sending the second retransmission signal, the secondary Bluetooth headset can make the primary Bluetooth headset send second audio data to the secondary Bluetooth headset based on the second retransmission signal, thereby effectively realizing the reception of the primary Bluetooth headset and the secondary Bluetooth headset. The audio data is kept in sync.
  • the off-duty person in the primary and secondary Bluetooth headsets does not receive the response message sent by the on-duty person due to a communication abnormality, because the off-duty person will be switched to the on-duty person in the next round, If the communication abnormality still exists, the communication abnormality will be noticed by the audio source device in time because the person on duty does not respond, and it can be handled in accordance with the flow described above with reference to FIG. 4.
  • the communication abnormality may have been eliminated when the off-duty person is switched to the on-duty person, and both the primary and secondary Bluetooth headsets can receive the next audio data sent by the audio source device. At this time, it can be considered that the primary and secondary Bluetooth headsets can receive the next audio data sent by the audio source device.
  • the audio data received by the Bluetooth headsets are kept synchronized, so that the processing can be continued according to the process described in the foregoing embodiment.
  • the present application also provides an embodiment of an audio synchronization playback device.
  • FIG. 7 is a block diagram of an audio playback device according to an exemplary embodiment of the present application.
  • the device can be applied to a true wireless stereo TWS Bluetooth headset.
  • the TWS Bluetooth headset includes a main Bluetooth headset and a secondary Bluetooth headset, and the primary Bluetooth headset and the secondary Bluetooth headset share a first wireless link.
  • the device includes: a link sharing module 71, a message response module 73, and a playing module 74.
  • the link sharing module 71 is configured to share the first wireless line between the primary Bluetooth headset and the secondary Bluetooth headset to simultaneously receive audio data sent by the audio source device through the first wireless link;
  • the message response module 73 According to the set alternate response rule, the main Bluetooth headset and the secondary Bluetooth headset are alternately used as the duty person, and the response used to characterize the received audio data is sent through the first wireless link Message, so that the audio source device sends the next audio data through the first wireless link after receiving the response message;
  • the playback module 74 is used for the primary Bluetooth headset and the secondary Bluetooth headset at the same time After receiving the next audio data, the audio data and the next audio data are played synchronously.
  • the link sharing module may include (not shown in FIG. 7): a link establishment sub-module, which may be used to establish a second wireless link between the main Bluetooth headset and the secondary Bluetooth headset
  • the connection information sending sub-module can be used for the main Bluetooth headset to send the connection information of the first wireless link to the secondary Bluetooth headset through the second wireless link
  • the link sharing sub-module It can be used for the secondary Bluetooth headset to share the first wireless link with the main Bluetooth headset based on the connection information of the first wireless link.
  • the message response module may include (not shown in FIG. 7): a first sending submodule, a second sending submodule, and a playing submodule.
  • the first sending sub-module is used to respond to receiving the first audio data sent by the audio source device, the one of the main Bluetooth headset and the secondary Bluetooth headset as the duty, through the first
  • the wireless link sends a first response message used to indicate that the first audio data has been received.
  • the second sending sub-module is configured to respond to receiving the second audio data sent by the audio source device, the other of the main Bluetooth headset and the secondary Bluetooth headset as the duty person, through the first A wireless link sends a second response message for indicating that the second audio data has been received, where the second audio data is sent by the audio source device after receiving the first response message.
  • the playing sub-module is used to respond to receiving the second response message through the first wireless link, and synchronize the non-duty person in the main Bluetooth headset and the secondary Bluetooth headset with the duty person Playing the first audio data and the second audio data.
  • the playback module 74 may be used for: the main Bluetooth headset and the secondary Bluetooth headset each sort the audio data and the next audio data according to the frame sequence number, and the main Bluetooth headset After the earphone and the pair of Bluetooth earphones simultaneously receive the next audio data, the audio data and the next audio data are synchronously played in sequence.
  • the device may further include (not shown in FIG. 7): a repeat receiving module, which may be used if the person on duty of the main Bluetooth headset and the secondary Bluetooth headset does not receive the Audio data, the non-duty of the main Bluetooth headset and the secondary Bluetooth headset will again receive the audio data sent by the audio source device through the first wireless link, wherein the audio data is received again The audio data of is sent when the audio source device does not receive a response message from the person on duty within a preset time period.
  • a repeat receiving module which may be used if the person on duty of the main Bluetooth headset and the secondary Bluetooth headset does not receive the Audio data, the non-duty of the main Bluetooth headset and the secondary Bluetooth headset will again receive the audio data sent by the audio source device through the first wireless link, wherein the audio data is received again The audio data of is sent when the audio source device does not receive a response message from the person on duty within a preset time period.
  • the device may further include (not shown in FIG. 7) a retransmission module, a sending module, and a receiving module.
  • the retransmission module is configured to, if the non-duty person of the main Bluetooth headset and the secondary Bluetooth headset does not receive the audio data but receives the response message, the non-duty person will pass the The first wireless link sends a retransmission signal used to characterize that the audio data is not received.
  • the sending module is configured to send the retransmission signal through the first wireless link after the person on duty in the primary Bluetooth headset and the secondary Bluetooth headset receives the retransmission signal through the first wireless link The audio data.
  • the receiving module is used for the non-duty person to receive the frequency data through the first wireless link.
  • the sending module may include (not shown in FIG. 7): a first encryption sub-module for the person on duty to encrypt the audio data according to a preset encryption rule; first The encrypted sending sub-module is used for the person on duty to send the encrypted audio data through the first wireless link.
  • the receiving module may include (not shown in FIG. 7): a first encrypted receiving sub-module for the non-duty person to receive the encrypted data through the first wireless link Audio data; a first decryption sub-module for the non-duty person to decrypt the encrypted audio data according to a preset decryption rule to obtain the original audio data.
  • Fig. 8 is a hardware structure diagram of a TWS Bluetooth headset according to an exemplary embodiment of the present application.
  • the TWS Bluetooth headset includes a communication interface 801, a processor 802, a memory 803 storing executable instructions of the processor 802, and a bus 804, And the physical storage medium 805.
  • the communication interface 801, the processor 802, the memory 803, and the physical storage medium 805 communicate with each other through the bus 804.
  • the processor 802 reads and executes the machine executable instructions corresponding to the control logic of the audio playback method in the memory 803, and can execute the audio synchronization playback method described above.
  • the specific content of the method refer to the above-mentioned embodiments, and will not be omitted here. Tired out.
  • the relevant part can refer to the part of the description of the method embodiment.
  • the device embodiments described above are merely illustrative.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units.
  • Some or all of the modules can be selected according to actual needs to achieve the objectives of the solution of the present application. Those of ordinary skill in the art can understand and implement it without creative work.

Abstract

本申请提供一种音频播放方法、装置及TWS蓝牙耳机。该方法包括:所述主蓝牙耳机与所述副蓝牙耳机共享第一无线链路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;并依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。

Description

音频播放方法、装置及TWS蓝牙耳机 技术领域
本申请涉及无线通信技术领域,尤其涉及一种音频播放方法、装置及TWS蓝牙耳机。
背景技术
目前,随着多媒体技术的发展,以及用户对时尚潮流的追求,无线蓝牙耳机已然成为耳机发展的必然趋势。同时,随着TWS(True Wireless Stereo,真无线立体声)技术在蓝牙耳机领域的应用,TWS蓝牙耳机应运而生。
TWS蓝牙耳机包括没有物理连接的主蓝牙耳机和副蓝牙耳机。在TWS蓝牙耳机的使用过程中,主蓝牙耳机和副蓝牙耳机可以分别通过蓝牙与智能设备进行通信,以接收智能设备发送的音频数据;此外,主蓝牙耳机和副蓝牙耳机之间也通过蓝牙进行通信,以互相告知对方自身对音频数据的接收情况。主蓝牙耳机在确认自身与副蓝牙耳机均接收到同一音频数据后,向智能设备返回应答消息,以使智能设备继续发送音频数据。由此,可以实现主蓝牙耳机和副蓝牙耳机同步播放音频数据。
然而,由于主、副蓝牙耳机与智能设备之间,以及主、副蓝牙耳机之间均是通过蓝牙进行通信的。因此,主、副蓝牙耳机均需要分时处理不同的通信进程。由此,可能导致通信不及时,从而影响音频播放的同步性和流畅度。
发明内容
有鉴于此,本申请提供一种音频播放方法、装置及TWS蓝牙耳机,以解决TWS蓝牙耳机需要分时处理不同的通信进程,可能导致通信不及时,从而影响音频播放的同步性和流畅度的问题。
本申请实施例的第一方面提供一种音频播放方法,应用于TWS蓝牙耳机,所述TWS蓝牙耳机包括主蓝牙耳机和副蓝牙耳机,所述方法包括:所述主蓝牙耳机与所述副蓝牙耳机共享第一无线链路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频 源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。
本申请实施例的第二方面提供一种音频播放装置,应用于TWS蓝牙耳机,所述TWS蓝牙耳机包括主蓝牙耳机和副蓝牙耳机,所述装置包括:链路共享模块,用于所述主蓝牙耳机与所述副蓝牙耳机共享第一无线线路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;消息应答模块,用于依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;播放模块,用于所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据
本申请实施例的第三方面提供一种TWS蓝牙耳机,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行:所述主蓝牙耳机与所述副蓝牙耳机共享第一无线链路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。
应用本申请实施例,由于在TWS蓝牙耳机的使用过程中,TWS蓝牙耳机只需处理其与音频源设备之间的通信进程,进而提高音频播放的流畅度。
附图说明
图1为包括TWS蓝牙耳机的音频播放系统的示意图;
图2为根据本申请实施例的包括TWS蓝牙耳机的音频播放系统的示意图;
图3A为根据本申请一示例性实施例的音频播放方法的流程图;
图3B为根据本申请另一示例性实施例的音频播放方法的流程图;
图4为根据本申请另一示例性实施例的音频播放方法的流程图;
图5为根据本申请再一示例性实施例的音频播放方法的流程图;
图6为根据本申请又一示例性实施例的音频播放方法的流程图;
图7为根据本申请一示例性实施例的音频播放装置的框图;
图8为根据本申请一示例性实施例示出的TWS蓝牙耳机的硬件结构图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
TWS蓝牙耳机包括没有物理连接的两个蓝牙耳机,分别为主蓝牙耳机和副蓝牙耳机。该TWS蓝牙耳机与音频源设备之间,该主、副蓝牙耳机之间均可通过蓝牙实现无线连接,从而实现了真无线结构。
如图1所示,为包括TWS蓝牙耳机的音频播放系统的示意图。图1中所示例的音频播放系统包括作为音频源设备的智能手机110和TWS蓝牙耳机120,TWS蓝牙耳机120包括主蓝牙耳机121和副蓝牙耳机122。其中,智能手机110与主蓝牙耳机121之间建立有无线链路130,智能手机110与副蓝牙耳机122之间建立有无线链路140,主蓝牙耳机121与副蓝牙耳机122之间建立有无线链路150。
在TWS蓝牙耳机120的使用过程中,智能手机110可以通过无线链路130和无线 链路140分别向主蓝牙耳机121、副蓝牙耳机122发送音频数据,主蓝牙耳机121与副蓝牙耳机122之间可以通过无线链路150进行蓝牙通信,以互相告知对方自身对音频数据的接收情况。并且,主蓝牙耳机121在确认自身与副蓝牙耳机122均接收到同一音频数据后,可以通过无线链路130向智能手机110返回应答消息,以使智能手机110继续发送音频数据。由此,可以实现主蓝牙耳机121和副蓝牙耳机122同步播放音频数据。
由上述描述可见,主蓝牙耳机121与智能手机110之间,副蓝牙耳机122与智能手机110之间,以及主蓝牙耳机121与副蓝牙耳机122之间均是通过蓝牙进行通信的。因此,主蓝牙耳机121与副蓝牙耳机122均需要分时处理不同的通信进程。由此,可能导致通信不及时,从而影响音频播放的同步性和流畅度。
为解决上述问题,本申请提出一种音频播放方法。应用该方法,在TWS蓝牙耳机120的使用过程中,主蓝牙耳机121与副蓝牙耳机122可共享同一无线链路,例如无线链路130,以使得两者均通过该共享的无线链路向智能手机110发送用于表征已接收到音频数据的应答消息。例如,主蓝牙耳机121与副蓝牙耳机122可交替地通过该无线链路130向智能手机110发送用于表征已接收到音频数据的应答消息。由此,主蓝牙耳机121与副蓝牙耳机122之间无需再进行蓝牙通信以互相告知对方自身对音频数据的接收情况,进而可以避免由于主蓝牙耳机121与副蓝牙耳机122均需要分时处理不同的通信进程可能导致的通信不及时。
如下,对本申请提出的音频播放方法进行详细说明:
首先,请参见图2,为根据本申请实施例的包括TWS蓝牙耳机的音频播放系统的示意图。图2在上述图1的基础上,与图1的区别在于,作为音频源设备的智能手机110与副蓝牙耳机122之间不存在无线链路140、而是复制了智能手机110与主蓝牙耳机121之间的无线链路130。例如,在TWS蓝牙耳机120的使用过程中,主蓝牙耳机121可通过无线链路150将无线链路130的连接信息,例如连接密钥、音频源设备的蓝牙地址、跳帧序列、AFH频道地图表等信息发送给副蓝牙耳机122,以使得副蓝牙耳机122可以基于该连接信息与主蓝牙耳机121共享无线链路130。其中,无线链路130为标准的蓝牙通信链路,可用于传输例如音频信号、下述重传信号等的标准的蓝牙通信协议内容;而无线链路150可以只是主蓝牙耳机121与副蓝牙耳机122之间的私有信息传输链路,无需具有传输音频信号的功能。由此,可以实现智能手机110与主蓝牙耳机121之间、与副蓝牙耳机122之间,均可通过无线链路130进行蓝牙通信,并使得主、副蓝牙耳机 121、122无需分时处理不同的通信进程。进一步,也就可以实现主蓝牙耳机121与副蓝牙耳机122分别通过该无线链路130接收到智能手机110发送的音频数据,并交替地通过该无线链路130向智能手机110发送用于表征已接收到音频数据的应答消息,实现音频同步播放。
如下,在上述图2的基础上,对本申请提出的音频播放方法进行详细说明。
请参见图3A,为根据本申请一示例性实施例的一种音频播放方法的流程图,该方法可应用于上述图2所示的音频播放系统中的TWS蓝牙耳机120。如图3A所示,该方法可包括以下步骤301至步骤303。
步骤301:主蓝牙耳机与副蓝牙耳机共享第一无线链路,以同时接收到音频源设备通过第一无线链路发送的音频数据。
在本申请实施例中,为了描述方便,将无线链路130称为第一无线链路,将无线链路150称为第二无线链路。
在一实施例中,主蓝牙耳机121首先与副蓝牙耳机122之间建立起该第二无线链路150。进而,主蓝牙耳机121通过该第二无线链路150向副蓝牙耳机122发送第一无线链路130的连接信息,以使得副蓝牙耳机122可以基于该连接信息与主蓝牙耳机121共享第一无线链路130。
步骤302:依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过第一无线链路发送用于表征已接收到音频数据的应答消息,以使音频源设备响应于接收到所述应答消息而通过第一无线链路发送下一音频数据。
步骤303:所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据
在一实施例中,由于主蓝牙耳机121与副蓝牙耳机122可共享第一无线链路130,从而,在通信连接正常的情况下,主蓝牙耳机121与副蓝牙耳机122可同时接收到智能手机110通过该第一无线链路130发送的音频数据。在这种情况下,可以依据设定的交替应答规则,由主蓝牙耳机121或副蓝牙耳机122通过第一无线链路130向智能手机110发送用于表征已接收到音频数据的应答消息。其中,在主蓝牙耳机121和副蓝牙耳机122中,将根据所述设定的交替应答规则而轮到向音频源设备发送应答消息的一方称为当值者(on-duty),而另一方称为非当值者(non-duty)。
举例来说,如图3B所示,假设主蓝牙耳机121与副蓝牙耳机122同时接收到作为音频源设备的智能手机110通过第一无线链路130发送的第一音频数据(3031),先由副蓝牙耳机122作为当值者通过第一无线链路130向智能手机110返回用于表征已接收到该第一音频数据的应答消息(3032),为了描述方便,将该应答消息称为第一应答消息。
此外,智能手机110接收到该第一应答消息后,可以继续通过第一无线链路130发送音频数据(3033),为了描述方便,将该音频数据称为第二音频数据。同时,由于主蓝牙耳机121与副蓝牙耳机122共享第一无线链路130,从而,主蓝牙耳机121可以接收到该第一应答消息,并可以基于该第一应答消息确定副蓝牙耳机122已接收到该第一音频数据。
至此,主蓝牙耳机121与副蓝牙耳机122已同步接收到第一音频数据,且主蓝牙耳机121可知晓副蓝牙耳机122对第一音频数据的接收情况。
后续,主蓝牙耳机121与副蓝牙耳机122同时接收到智能手机110通过该第一无线链路130发送的第二音频数据(3035),此时将由主蓝牙耳机121作为当值者通过第一无线链路130向智能手机110发送用于表征已接收到第二音频数据的应答消息(3036),为了描述方便,将该应答消息称为第二应答消息。
由于主蓝牙耳机121与副蓝牙耳机122共享第一无线链路130,从而,副蓝牙耳机122可以通过第一无线链路130接收到该第二应答消息,并可以基于该第二应答消息确定主蓝牙耳机121已接收到第二音频数据。
至此,主蓝牙耳机121与副蓝牙耳机122已同步接收到第二音频数据,且副蓝牙耳机122可知晓主蓝牙耳机121对第二音频数据的接收情况。
依据设定的交替应答规则,重复上述过程,可有效实现主蓝牙耳机121与副蓝牙耳机122之间的音频播放同步。
主蓝牙耳机与副蓝牙耳机同时接收到下一音频数据之后,同步播放该音频数据和该下一音频数据(3037)。
在一实施例中,主蓝牙耳机121和副蓝牙耳机122可分别按照帧序号对接收到的音频数据进行排序,并按照顺序播放该接收到的音频数据。
由上述实施例可见,由于在TWS蓝牙耳机的使用过程中,主蓝牙耳机与副蓝牙耳 机共享第一无线链路,从而,主蓝牙耳机与副蓝牙耳机可以同步接收到音频源设备通过该第一无线链路发送的音频数据。并且,由于主蓝牙耳机与副蓝牙耳机交替地在接收到音频数据后向音频源设备发送应答消息,可以有效实现主副蓝牙耳机互知对方对音频数据的接收情况,从而,主副蓝牙耳机均只需处理其与音频源设备之间的通信进程,进而可有效提高音频播放的流畅度。
此外,在实际应用中,可能会存在多种因素导致通信连接不正常,并因此出现主蓝牙耳机121与副蓝牙耳机122并未同步接收到同一音频数据的异常情况。以下,针对该异常情况进行说明。
请参见图4,为根据本申请另一示例性实施例的音频播放方法的流程图。该图4所示实施例在上述图3A和3B所示实施例的基础上,着重描述了主蓝牙耳机121接收到第一音频数据,但副蓝牙耳机122因通信异常而未接收到该第一音频数据的情况。如图4所示,该方法可包括以下步骤401至步骤409。
步骤401:音频源设备通过第一无线链路发送第一音频数据。
步骤402:主蓝牙耳机接收到第一音频数据。
步骤401与步骤402的详细描述可以参见上述步骤301和步骤302中的相关描述,在此不再详述。在步骤402中,假设副蓝牙耳机122与作为音频源设备的智能手机110之间的通信出现了异常,并使得副蓝牙耳机122没能接收到智能手机110发送的第一音频数据,也即如图4所示只有主蓝牙耳机121接收到第一音频数据。副蓝牙耳机122与智能手机110之间的通信异常,包括但不限于,智能手机110通过第一无线链路130向副蓝牙耳机122发送的第一音频数据在传输过程中出现了丢包现象。
步骤403:音频源设备在预设时长内未接收到来自副蓝牙耳机的、用于表征已接收到第一音频数据的第一应答消息时,通过第一无线链路再次发送第一音频数据。
关于第一应答消息的说明,可以参见上述步骤302中的相关描述,在此不再详述。
在一实施例中,作为音频源设备的智能手机110若在预设时长内未接收到上述第一应答消息,则可认为第一音频数据发送失败,并再次发送该第一音频数据。
步骤404:主蓝牙耳机再次接收到第一音频数据,同时副蓝牙耳机接收到该第一音频数据。
在步骤404中,假设副蓝牙耳机122与智能手机110之间的通信连接恢复正常,那 么,主蓝牙耳机121与副蓝牙耳机122可以同时接收到智能手机110再次发送的第一音频数据。
步骤405:副蓝牙耳机通过第一无线链路向音频源设备发送用于表征已接收到第一音频数据的第一应答消息。
步骤406:音频源设备在接收到第一应答消息后,继续通过第一无线链路发送第二音频数据。
步骤407:主蓝牙耳机与副蓝牙耳机各自接收到音频源设备通过第一无线链路发送的第二音频数据。
步骤408:主蓝牙耳机通过第一无线链路向音频源设备发送用于表征已接收到第二音频数据的第二应答消息。
步骤409:副蓝牙耳机在通过第一无线链路接收到第二应答消息后,与主蓝牙耳机同步播放第一音频数据和第二音频数据。
上述步骤405至步骤409的详细描述可以参见上述图3B所示实施例中步骤3032至步骤3037的相关描述,在此不再详述。
此外,尽管图4仅描述了副蓝牙耳机作为当值者因通信异常未接收到音频数据并导致音频源设备等待预设时长仍未接收到对应的应答消息时的处理。然而,本领域技术人员应能理解,在主蓝牙耳机作为当值者因通信异常而未接收到音频数据并且导致音频源设备等待预设时长仍未接收到对应的应答消息时,可以进行类似的处理,即由音频源设备响应于等待预设时长仍未接收到应答消息而再次发送该应答消息对应的音频数据。
由上述实施例可见,由于音频源设备在预设时长内未接收到应答消息时,会再次发送该应答消息所对应的音频数据,从而可以有效避免主蓝牙耳机与副蓝牙耳机各自接收到的音频数据不同步。
请参见图5,为根据本申请再一示例性实施例的音频播放方法的流程图。该图5所示实施例在上述图3A和3B所示实施例的基础上,着重描述了主蓝牙耳机121未接收到第一音频数据,但副蓝牙耳机122接收到该第一音频数据的情况。如图5所示,该方法可包括步骤501至步骤510。
步骤501:音频源设备通过第一无线链路发送第一音频数据。
步骤502:副蓝牙耳机接收到第一音频数据。
在步骤502中,假设主蓝牙耳机121与作为音频源设备的智能手机110之间的通信出现了异常,并使得主蓝牙耳机121没能接收到智能手机110发送的第一音频数据,也即如图5所示只有副蓝牙耳机122接收到第一音频数据。主蓝牙耳机121与智能手机110之间的通信异常,包括但不限于,智能手机110通过第一无线链路130向主蓝牙耳机121发送的第一音频数据在传输过程中出现了丢包现象。
步骤503:副蓝牙耳机通过第一无线链路向音频源设备发送用于表征已接收到第一音频数据的第一应答消息。
步骤504:音频源设备在接收到第一应答消息后,继续通过第一无线链路发送第二音频数据。
步骤501至步骤504的详细描述可以参见上述图3A所示实施例中步骤301至步骤302的相关描述,在此不再详述。
步骤505:主蓝牙耳机在接收到第一应答消息后,通过第一无线链路发送用于表征未接收到第一音频数据的第一重传信号。
在步骤505中,由于主蓝牙耳机121与副蓝牙耳机122共享第一无线链路130,从而,主蓝牙耳机121可通过第一无线链路130接收到上述第一应答消息。主蓝牙耳机121在接收到上述第一应答消息后,可以基于该第一应答消息确定副蓝牙耳机122接收到第一音频数据,并确定自身未接收到第一音频数据。此时,主蓝牙耳机121可以通过第一无线链路130发送用于表征自身未接收到第一音频数据的第一重传信号。
在一实施例中,主蓝牙耳机121可以按照预先与副蓝牙耳机122协商好的格式,构造该第一重传信号,或者是,按照预设的加密规则对所构造的第一重传信号进行加密。例如,主蓝牙耳机121可以按照预先约定的密钥对该第一重传信号进行加密,并向副蓝牙耳机122发送已加密的第一重传信号。
通过如上处理,可以使得副蓝牙耳机122在接收到第一重传信号后,可以对其进行解析识别,或者是在接收到已加密的第一重传信号后,按照预设的解密规则对其进行解密。例如,副蓝牙耳机122可利用上述预先约定的密钥对已加密的第一重传信号进行解密,得到原始的第一重传信号。而智能手机110在接收到第一重传信号后,则无法对其进行解析识别,也无法对其进行解密。从而智能手机110在接收到该第一重传信号后,可对其做丢弃处理,而无需基于该第一重传信号再次发送第一音频数据。当然,智能手机110也有可能因与主蓝牙耳机121之间的通信异常而无法接收到该第一重传信号。
步骤506:主蓝牙耳机与副蓝牙耳机各自通过第一无线链路接收到第二音频数据。
在步骤506中,假设主蓝牙耳机121与智能手机110之间的通信连接恢复正常,那么,主蓝牙耳机121可以与副蓝牙耳机122同时接收到智能手机110发送的第二音频数据。
步骤507:副蓝牙耳机通过第一无线链路接收到第一重传信号,并通过第一无线链路发送第一音频数据。
步骤508:主蓝牙耳机通过第一无线链路接收到第一音频数据。
在步骤507中,由于主蓝牙耳机121与副蓝牙耳机122共享第一无线链路130,从而,副蓝牙耳机122可以通过第一无线链路130接收到第一重传信号。副蓝牙耳机122接收到该第一重传信号后,可以基于该第一重传信号确定主蓝牙耳机121未接收到第一音频数据。在这种情况下,副蓝牙耳机122可以通过该第一无线链路130发送第一音频数据,以使主蓝牙耳机121通过第一无线链路130接收到第一音频数据。
在一实施例中,副蓝牙耳机122可以按照预设的加密规则,例如利用预设的密钥对第一音频数据进行加密,并通过第一无线链路130发送已加密的第一音频数据。相应的,在步骤508中,主蓝牙耳机121通过第一无线链路130接收到已加密的第一音频数据后,可以按照预设的解密规则,例如利用预设的密钥对其进行解密,得到原始的第一音频数据。
步骤509:主蓝牙耳机通过第一无线链路向音频源设备发送用于表征已接收到第二音频数据的第二应答消息。
步骤510:副蓝牙耳机在通过第一无线链路接收到第二应答消息后,与主蓝牙耳机同步播放第一音频数据和第二音频数据。
步骤509和步骤510的详细描述可以参见上述图3B所示实施例中步骤3032和步骤3037的相关描述,在此不再详述。
需要说明的是,上述步骤之间的执行顺序仅仅作为举例,在实际应用中,还可以存在其他符合逻辑的执行顺序,本申请对上述步骤之间的执行顺序不做限定。
由上述实施例可见,由于主、副蓝牙耳机交替地向音频源设备发送应答消息,从而,作为非当值者的主蓝牙耳机在接收到作为当值者的副蓝牙耳机发送的用于表征已接收到第一音频数据的第一应答消息后,可以确定自身未接收到第一音频数据。后续,主蓝 牙耳机通过发送第一重传信号,可以使得副蓝牙耳机基于该第一重传信号向主蓝牙耳机发送第一音频数据,以此有效实现了主蓝牙耳机与副蓝牙耳机所接收到的音频数据保持同步。
请参见图6,为根据本申请又一示例性实施例的音频播放方法的流程图。该图6所示实施例在上述图3A和3B所示实施例的基础上,着重描述了主蓝牙耳机121接收到第二音频数据,但副蓝牙耳机122未接收到该第二音频数据的情况。如图6所示,该方法可包括以下步骤601至步骤610。
步骤601:音频源设备通过第一无线链路发送第一音频数据。
步骤602:主蓝牙耳机与副蓝牙耳机各自接收到第一音频数据。
步骤603:副蓝牙耳机通过第一无线链路向音频源设备发送用于表征已接收到第一音频数据的第一应答消息。
步骤604:音频源设备在接收到第一应答消息后,通过第一无线链路发送第二音频数据。
步骤605:主蓝牙耳机接收到第二音频数据。
在步骤605中,假设副蓝牙耳机122与作为音频源设备的智能手机110之间的通信出现了异常,并使得副蓝牙耳机122没能接收到智能手机110发送的第二音频数据,也即如图6所示只有主蓝牙耳机121接收到第二音频数据。副蓝牙耳机122与智能手机110之间的通信异常,包括但不限于,智能手机110通过第一无线链路130向副蓝牙耳机122发送的第二音频数据在传输过程中出现了丢包现象。
步骤606:主蓝牙耳机通过第一无线链路向音频源设备发送用于表征已接收到第二音频数据的第二应答消息。
步骤601至步骤606的详细描述可以参见上述图3A所示实施例中步骤301至步骤303的相关描述,在此不再详述。
步骤607:副蓝牙耳机在接收到第二应答消息后,通过第一无线链路发送用于表征未接收到第二音频数据的第二重传信号。
在步骤607中,由于主蓝牙耳机121与副蓝牙耳机122共享第一无线链路130,从而,副蓝牙耳机122可以通过第一无线链路130接收到上述第二应答消息。副蓝牙耳机122在接收到该第二应答消息后,可以基于该第二应答消息确定主蓝牙耳机121接收到 第二音频数据,并确定自身未接收到第二音频数据。此时,副蓝牙耳机122可以通过第一无线链路130发送用于表征未接收到第二音频数据的第二重传信号。
在一实施例中,副蓝牙耳机122可以按照预先与主蓝牙耳机121协商好的格式,构造该第二重传信号,或者是,按照预设的加密规则对所构造的第二重传信号进行加密。例如,副蓝牙耳机122可以按照预先约定的密钥对该第二重传信号进行加密,并向主蓝牙耳机121发送已加密的第二重传信号。
通过如上处理,可以使得主蓝牙耳机121在接收到第二重传信号后,可以对其进行解析识别,或者是在接收到已加密的第二重传信号后,按照预设的解密规则对其进行解密。例如,主蓝牙耳机121可以利用上述密钥对已加密的第二重传信号进行解密,得到原始的第二重传信号。而智能手机110在接收到第二重传信号后,则无法对其进行解析识别,也无法对其进行解密。从而智能手机110在接收到该第二重传信号后,可对其做丢弃处理,而无需基于该第二重传信号再次发送第二音频数据。当然,智能手机110也有可能因与副蓝牙耳机122之间的通信异常而无法接收到该第二重传信号。
步骤608:主蓝牙耳机通过第一无线链路接收到第二重传信号,并通过第一无线链路发送第二音频数据。
步骤609:副蓝牙耳机通过第一无线链路接收到第二音频数据。
如下,对步骤608和步骤609进行说明。
在步骤608中,由于主蓝牙耳机121与副蓝牙耳机122共享第一无线链路130,从而,主蓝牙耳机121可以通过第一无线链路130接收到上述第二重传信号。主蓝牙耳机121接收到该第二重传信号后,可以基于该第二重传信号确定副蓝牙耳机122未接收到第二音频数据。在这种情况下,主蓝牙耳机121可以通过该第一无线链路130发送第二音频数据,以使副蓝牙耳机122通过第一无线链路130接收到第二音频数据。
在一实施例中,主蓝牙耳机121可以按照预设的加密规则,例如利用预设的密钥对第二音频数据进行加密,并通过第一无线链路130发送已加密的第二音频数据。相应的,在步骤609中,副蓝牙耳机122通过第一无线链路130接收到已加密的第二音频数据后,可以按照预设的解密规则,例如利用预设的密钥对其进行解密,得到原始的第二音频数据。
步骤610:主蓝牙耳机与副蓝牙耳机各自播放第一音频数据和第二音频数据。
由上述实施例可见,由于主、副蓝牙耳机交替地向音频源设备发送应答消息,从而,作为非当值者的副蓝牙耳机在接收到作为当值者的主蓝牙耳机发送的用于表征已接收到第二音频数据的第二应答消息后,可以确定自身未接收到第二音频数据。后续,副蓝牙耳机通过发送第二重传信号,可以使得主蓝牙耳机基于该第二重传信号向副蓝牙耳机发送第二音频数据,以此有效实现了主蓝牙耳机与副蓝牙耳机所接收到的音频数据保持同步。
进一步,结合参考图5、图6所介绍的两个实施例可以看出,对于主、副蓝牙耳机中的非当值者来说,在接收到当值者发送的应答消息时,可以据此确定自身可能因通信异常而错过了该应答消息对应的音频数据,并向所述当值者发送重传信号。相应地,当值者在接收到非当值者发送的重传信号时,可以据此确定所述非当值者可能因通信异常而错过了与自身当值的应答消息对应的音频数据,并向所述非当值者发送所述音频数据,以使得两者所接收到的音频数据能够及时同步。
此外,在通信连接不正常的情况下,除了可能出现主蓝牙耳机121与副蓝牙耳机122并未同步接收到同一音频数据,还有可能出现主、副蓝牙耳机中的非当值者未能接收到当值者发送的应答消息。
在主、副蓝牙耳机中的非当值者因通信异常未接收到当值者发送的应答消息的情况下,由于该非当值者将在紧接着的下一轮中切换为当值者,若该通信异常仍存在,则该通信异常将因当值者无应答而被音频源设备及时觉察到,并可按照上述参考图4所介绍的流程进行处理。当然,该通信异常有可能在该非当值者切换为当值者时已消除,并使得主、副蓝牙耳机均可以接收到音频源设备发送的下一音频数据,这时可以认为主、副蓝牙耳机各自接收到的音频数据保持同步,从而可以继续按照上述实施例中所描述的流程进行处理。
与前述音频同步播放方法的实施例相对应,本申请还提供了音频同步播放装置的实施例。
请参见图7,为根据本申请一示例性实施例的音频播放装置的框图,该装置可应用于真无线立体声TWS蓝牙耳机。该TWS蓝牙耳机包括主蓝牙耳机和副蓝牙耳机,该主蓝牙耳机和副蓝牙耳机共享第一无线链路。如图7所示,该装置包括:链路共享模块71、消息应答模块73、以及播放模块74。
其中,链路共享模块71用于所述主蓝牙耳机与所述副蓝牙耳机共享第一无线线 路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;消息应答模块73,用于依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;播放模块74,用于所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。
在一实施例中,所述链路共享模块可以包括(图7中未示出):链路建立子模块,可以用于所述主蓝牙耳机与所述副蓝牙耳机之间建立第二无线链路;连接信息发送子模块,可以用于所述主蓝牙耳机将所述第一无线链路的连接信息,通过所述第二无线链路发送至所述副蓝牙耳机;链路共享子模块,可以用于所述副蓝牙耳机基于所述第一无线链路的连接信息,与所述主蓝牙耳机共享所述第一无线链路。
在一实施例中,所述消息应答模块可以包括(图7中未示出):第一发送子模块、第二发送子模块和播放子模块。
第一发送子模块,用于响应于接收到所述音频源设备发送的第一音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的一方作为所述当值者,通过所述第一无线链路发送用于表征已接收到所述第一音频数据的第一应答消息。
第二发送子模块,用于响应于接收到所述音频源设备发送的第二音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的另一方作为所述当值者,通过所述第一无线链路发送用于表征已接收到所述第二音频数据的第二应答消息,其中所述第二音频数据为所述音频源设备在接收到所述第一应答消息之后发送的。
播放子模块,用于响应于通过所述第一无线链路接收到所述第二应答消息,所述主蓝牙耳机与所述副蓝牙耳机中的非当值者,与所述当值者同步播放所述第一音频数据和所述第二音频数据。
在一实施例中,所述播放模块74可以用于:所述主蓝牙耳机与所述副蓝牙耳机各自按照帧序号对所述音频数据和所述下一音频数据进行排序,并且所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,按顺序同步播放所述音频数据和所述下一音频数据。
在一实施例中,所述装置还可以包括(图7中未示出):重复接收模块,可以用于若所述主蓝牙耳机与所述副蓝牙耳机中的当值者未接收到所述音频数据,所述主蓝 牙耳机与所述副蓝牙耳机中的非当值者将再次接收到所述音频源设备通过所述第一无线链路发送的所述音频数据,其中,该再次接收到的音频数据为所述音频源设备在预设时长内未接收到来自所述当值者的应答消息时发送的。
在一实施例中,所述装置还可以包括(图7中未示出)重传模块、发送模块和接收模块。
重传模块,用于若所述主蓝牙耳机与所述副蓝牙耳机中的非当值者未接收到所述音频数据、但接收到所述应答消息,则所述非当值者通过所述第一无线链路发送用于表征未接收到所述音频数据的重传信号。
发送模块,用于所述主蓝牙耳机与所述副蓝牙耳机中的所述当值者在通过所述第一无线链路接收到所述重传信号后,通过所述第一无线链路发送所述音频数据。
接收模块,用于所述非当值者通过所述第一无线链路接收所述频数据。
在一实施例中,所述发送模块可以包括(图7中未示出):第一加密子模块,用于所述当值者按照预设的加密规则对所述音频数据进行加密;第一加密发送子模块,用于所述当值者通过所述第一无线链路发送所述已加密的音频数据。
在一实施例中,所述接收模块可以包括(图7中未示出):第一加密接收子模块,用于所述非当值者通过所述第一无线链路接收所述已加密的音频数据;第一解密子模块,用于所述非当值者按照预设的解密规则对所述已加密的音频数据进行解密,得到原始的音频数据。
图8为根据本申请一示例性实施例示出的TWS蓝牙耳机的硬件结构图,该TWS蓝牙耳机包括:通信接口801、处理器802、存储有处理器802可执行指令的存储器803、总线804,以及物理存储介质805。通信接口801、处理器802、存储器803,以及物理存储介质805通过总线804完成相互间的通信。处理器802通过读取并执行存储器803中与音频播放方法的控制逻辑对应的机器可执行指令,可执行上文描述的音频同步播放方法,该方法的具体内容参见上述实施例,此处不再累述。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离 部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (19)

  1. 一种音频播放方法,应用于真无线立体声TWS蓝牙耳机,所述TWS蓝牙耳机包括主蓝牙耳机和副蓝牙耳机,所述方法包括:
    所述主蓝牙耳机与所述副蓝牙耳机共享第一无线链路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;
    依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;
    所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。
  2. 根据权利要求1所述的方法,其中,所述主蓝牙耳机与所述副蓝牙耳机共享所述第一无线链路,包括:
    所述主蓝牙耳机与所述副蓝牙耳机之间建立第二无线链路;
    所述主蓝牙耳机将所述第一无线链路的连接信息,通过所述第二无线链路发送至所述副蓝牙耳机;
    所述副蓝牙耳机基于所述第一无线链路的连接信息,与所述主蓝牙耳机共享所述第一无线链路。
  3. 根据权利要求1所述的方法,其中,依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,包括:
    响应于接收到所述音频源设备发送的第一音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的一方作为所述当值者,通过所述第一无线链路发送用于表征已接收到所述第一音频数据的第一应答消息;
    响应于接收到所述音频源设备发送的第二音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的另一方作为所述当值者,通过所述第一无线链路发送用于表征已接收到所述第二音频数据的第二应答消息,其中所述第二音频数据为所述音频源设备在接收到所述第一应答消息之后发送的;
    响应于通过所述第一无线链路接收到所述第二应答消息,所述主蓝牙耳机与所述副蓝牙耳机中的非当值者,与所述当值者同步播放所述第一音频数据和所述第二音频数据。
  4. 根据权利要求1所述的方法,其中,所述主蓝牙耳机与所述副蓝牙耳机同时接 收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据,包括:
    所述主蓝牙耳机与所述副蓝牙耳机各自按照帧序号对所述音频数据和所述下一音频数据进行排序,并且
    所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,按顺序同步播放所述音频数据和所述下一音频数据。
  5. 根据权利要求1所述的方法,还包括:
    若所述主蓝牙耳机与所述副蓝牙耳机中的当值者未接收到所述音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的非当值者将再次接收到所述音频源设备通过所述第一无线链路发送的所述音频数据,
    其中,该再次接收到的音频数据为所述音频源设备在预设时长内未接收到来自所述当值者的应答消息时发送的。
  6. 根据权利要求1所述的方法,还包括:
    若所述主蓝牙耳机与所述副蓝牙耳机中的非当值者未接收到所述音频数据、但接收到所述应答消息,则所述非当值者通过所述第一无线链路发送用于表征未接收到所述音频数据的重传信号;
    所述主蓝牙耳机与所述副蓝牙耳机中的所述当值者在通过所述第一无线链路接收到所述重传信号后,通过所述第一无线链路发送所述音频数据;
    所述非当值者通过所述第一无线链路接收所述音频数据。
  7. 根据权利要求6所述的方法,其中,所述非当值者通过所述第一无线链路发送所述重传信号,包括:
    所述非当值者按照预设的加密规则对所述重传信号进行加密;
    所述非当值者通过所述第一无线链路发送所述已加密的重传信号。
  8. 根据权利要求7所述的方法,其中,所述当值者通过所述第一无线链路接收到所述重传信号,包括:
    所述当值者通过所述第一无线链路接收到所述已加密的重传信号;
    所述当值者按照预设的解密规则对所述已加密的重传信号进行解密。
  9. 根据权利要求6所述的方法,其中,所述当值者通过所述第一无线链路发送所述音频数据,包括:
    所述当值者按照预设的加密规则对所述音频数据进行加密;
    所述当值者通过所述第一无线链路发送所述已加密的音频数据。
  10. 根据权利要求9所述的方法,其中,所述非当值者通过所述第一无线链路接收所述音频数据,包括:
    所述非当值者通过所述第一无线链路接收所述已加密的音频数据;
    所述非当值者按照预设的解密规则对所述已加密的音频数据进行解密,得到原始的音频数据。
  11. 一种音频播放装置,应用于真无线立体声TWS蓝牙耳机,所述TWS蓝牙耳机包括主蓝牙耳机和副蓝牙耳机,所述装置包括:
    链路共享模块,用于所述主蓝牙耳机与所述副蓝牙耳机共享第一无线线路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;
    消息应答模块,用于依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;
    播放模块,用于所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。
  12. 根据权利要求11所述的装置,其中,所述链路共享模块包括:
    链路建立子模块,用于所述主蓝牙耳机与所述副蓝牙耳机之间建立第二无线链路;
    连接信息发送子模块,用于所述主蓝牙耳机将所述第一无线链路的连接信息,通过所述第二无线链路发送至所述副蓝牙耳机;
    链路共享子模块,用于所述副蓝牙耳机基于所述第一无线链路的连接信息,与所述主蓝牙耳机共享所述第一无线链路。
  13. 根据权利要求11所述的装置,其中,所述消息应答模块包括:
    第一发送子模块,用于响应于接收到所述音频源设备发送的第一音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的一方作为所述当值者,通过所述第一无线链路发送用于表征已接收到所述第一音频数据的第一应答消息;
    第二发送子模块,用于响应于接收到所述音频源设备发送的第二音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的另一方作为所述当值者,通过所述第一无线链路发送用于表征已接收到所述第二音频数据的第二应答消息,其中所述第二音频数据为所述音频源设备在接收到所述第一应答消息之后发送的;
    播放子模块,用于响应于通过所述第一无线链路接收到所述第二应答消息,所述主 蓝牙耳机与所述副蓝牙耳机中的非当值者,与所述当值者同步播放所述第一音频数据和所述第二音频数据。
  14. 根据权利要求11所述的装置,其中,所述播放模块用于:
    所述主蓝牙耳机与所述副蓝牙耳机各自按照帧序号对所述音频数据和所述下一音频数据进行排序,并且
    所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,按顺序同步播放所述音频数据和所述下一音频数据。
  15. 根据权利要求11所述的装置,还包括:
    重复接收模块,用于若所述主蓝牙耳机与所述副蓝牙耳机中的当值者未接收到所述音频数据,所述主蓝牙耳机与所述副蓝牙耳机中的非当值者将再次接收到所述音频源设备通过所述第一无线链路发送的所述音频数据,
    其中,该再次接收到的音频数据为所述音频源设备在预设时长内未接收到来自所述当值者的应答消息时发送的。
  16. 根据权利要求11所述的装置,还包括:
    重传模块,用于若所述主蓝牙耳机与所述副蓝牙耳机中的非当值者未接收到所述音频数据、但接收到所述应答消息,则所述非当值者通过所述第一无线链路发送用于表征未接收到所述音频数据的重传信号;
    发送模块,用于所述主蓝牙耳机与所述副蓝牙耳机中的所述当值者在通过所述第一无线链路接收到所述重传信号后,通过所述第一无线链路发送所述音频数据;
    接收模块,用于所述非当值者通过所述第一无线链路接收所述音频数据。
  17. 根据权利要求16所述的装置,其中,所述发送模块包括:
    第一加密子模块,用于所述当值者按照预设的加密规则对所述音频数据进行加密;
    第一加密发送子模块,用于所述当值者通过所述第一无线链路发送所述已加密的音频数据。
  18. 根据权利要求17所述的装置,其中,所述接收模块包括:
    第一加密接收子模块,用于所述非当值者通过所述第一无线链路接收所述已加密的音频数据;
    第一解密子模块,用于所述非当值者按照预设的解密规则对所述已加密的音频数据进行解密,得到原始的音频数据。
  19. 一种真无线立体声TWS蓝牙耳机,所述TWS蓝牙耳机包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为执行:
    所述主蓝牙耳机与所述副蓝牙耳机共享第一无线链路,以同时接收到音频源设备通过所述第一无线链路发送的音频数据;
    依据设定的交替应答规则,由所述主蓝牙耳机与所述副蓝牙耳机交替作为当值者,通过所述第一无线链路发送用于表征已接收到所述音频数据的应答消息,以使所述音频源设备在接收到所述应答消息后,通过所述第一无线链路发送下一音频数据;
    所述主蓝牙耳机与所述副蓝牙耳机同时接收到所述下一音频数据之后,同步播放所述音频数据和所述下一音频数据。
PCT/CN2020/115292 2019-09-16 2020-09-15 音频播放方法、装置及tws蓝牙耳机 WO2021052318A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910872194.7 2019-09-16
CN201910872194.7A CN110519742B (zh) 2019-09-16 2019-09-16 一种音频同步播放方法、装置及tws蓝牙耳机

Publications (1)

Publication Number Publication Date
WO2021052318A1 true WO2021052318A1 (zh) 2021-03-25

Family

ID=68631010

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/115292 WO2021052318A1 (zh) 2019-09-16 2020-09-15 音频播放方法、装置及tws蓝牙耳机

Country Status (2)

Country Link
CN (1) CN110519742B (zh)
WO (1) WO2021052318A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242603A (zh) * 2021-05-28 2021-08-10 广州安凯微电子股份有限公司 一种带宽周期的动态分配方法
CN114079894A (zh) * 2021-07-22 2022-02-22 珠海市杰理科技股份有限公司 双无线音频通信控制方法、装置、设备和系统
CN114143670A (zh) * 2021-12-20 2022-03-04 成都市易冲半导体有限公司 一种tws耳机盒体与耳机之间通信握手电路及工作方法
CN114268911A (zh) * 2021-09-23 2022-04-01 珠海市杰理科技股份有限公司 通信方法及装置、可读存储介质、tws系统
WO2022206241A1 (zh) * 2021-04-01 2022-10-06 Oppo广东移动通信有限公司 发送ack消息的方法、音频接收器、音频设备及耳机
WO2024021736A1 (zh) * 2022-07-26 2024-02-01 哲库科技(上海)有限公司 蓝牙多媒体包的传输方法、装置、设备和系统

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519742B (zh) * 2019-09-16 2022-02-18 安徽华米信息科技有限公司 一种音频同步播放方法、装置及tws蓝牙耳机
CN112994854A (zh) * 2019-12-16 2021-06-18 Oppo广东移动通信有限公司 蓝牙耳机的数据接收方法、装置、设备及存储介质
CN114945161A (zh) * 2019-12-23 2022-08-26 无锡中感微电子股份有限公司 一种无线耳机的通信方法、无线耳机及无线耳塞
CN111132377B (zh) * 2019-12-27 2022-03-22 昱兆微电子科技(上海)有限公司 一种终端与耳机的数据传输方法和系统
CN111200769B (zh) * 2020-01-08 2022-01-28 昆山泰芯微电子有限公司 一种用于蓝牙耳机设备的通信方法以及蓝牙耳机设备
CN111787098B (zh) * 2020-06-30 2022-10-04 歌尔科技有限公司 一种耳机升级方法、装置及一种耳机和存储介质
CN112437370B (zh) * 2020-08-11 2023-02-24 珠海市杰理科技股份有限公司 链路切换方法、系统、tws耳机对、芯片及介质
KR20220105402A (ko) 2021-01-20 2022-07-27 삼성전자주식회사 오디오 데이터를 처리하는 전자 장치와 이의 동작 방법
CN112423198B (zh) * 2021-01-22 2021-04-27 成都市安比科技有限公司 音频系统数据同步方法以及音频组件
CN112954527B (zh) * 2021-02-08 2023-01-24 歌尔科技有限公司 一种无线耳机、音频同步方法、系统、设备及计算机介质
CN113068167B (zh) * 2021-03-17 2021-12-10 上海物骐微电子有限公司 一种高可靠性蓝牙数据传输系统及方法
CN113613221B (zh) * 2021-04-26 2023-09-08 珠海市杰理科技股份有限公司 Tws主设备、tws从设备、音频设备及系统
CN113490268A (zh) * 2021-06-28 2021-10-08 泰凌微电子(上海)股份有限公司 音频数据无线传输方法和系统
CN115103431A (zh) * 2022-03-25 2022-09-23 恒玄科技(上海)股份有限公司 一种实现蓝牙耳机设备同步播放的方法及其蓝牙耳机设备
CN115278624A (zh) * 2022-07-21 2022-11-01 Oppo广东移动通信有限公司 信息更新方法及装置、音频共享方法及系统、电子设备
CN115175159B (zh) * 2022-09-06 2023-01-13 荣耀终端有限公司 一种蓝牙耳机播放方法及设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205192A (zh) * 2017-07-28 2017-09-26 广州黑格智能科技有限公司 一种双耳无线耳机及双耳无线耳机的音频播放方法
CN107295434A (zh) * 2017-05-26 2017-10-24 广东思派康电子科技有限公司 Tws耳机和实现tws耳机声乐同播的计算机可读存储介质
CN109391926A (zh) * 2018-01-10 2019-02-26 展讯通信(上海)有限公司 无线音频设备的数据处理方法及无线音频设备
CN109561419A (zh) * 2019-02-19 2019-04-02 恒玄科技(上海)有限公司 高可靠性的双耳无线耳机及用于双耳无线耳机的通信方法
CN109922540A (zh) * 2019-03-01 2019-06-21 展讯通信(上海)有限公司 无线收发设备组通信方法、设备组、系统及存储介质
US20190223192A1 (en) * 2018-01-12 2019-07-18 Qualcomm Incorporated Time slot reassignment mechanism for radio access technology coexistence improvement
CN110519742A (zh) * 2019-09-16 2019-11-29 安徽华米信息科技有限公司 一种音频同步播放方法、装置及tws蓝牙耳机

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10034160B2 (en) * 2016-04-14 2018-07-24 Lg Electronics Inc. Method and apparatus for transmitting or receiving data using bluetooth in wireless communication system
CN113411793A (zh) * 2016-08-18 2021-09-17 华为技术有限公司 一种蓝牙通信的方法及终端
CN107894881A (zh) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 蓝牙耳机的主从连接切换、通话监听和麦克切换的方法
CN108111953B (zh) * 2017-12-21 2020-04-07 广东小天才科技有限公司 一种基于tws耳机的音频共享方法、系统及tws耳机
CN108901004A (zh) * 2018-08-08 2018-11-27 易兆微电子(杭州)有限公司 一种同步传输蓝牙耳机的方法
CN109495869A (zh) * 2018-11-30 2019-03-19 锐迪科微电子科技(上海)有限公司 蓝牙连接方法及装置
CN109819377B (zh) * 2019-02-19 2020-12-29 恒玄科技(上海)股份有限公司 无线耳机的信号传输方法及无线耳机系统
CN110191442B (zh) * 2019-04-18 2021-05-11 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN109995479A (zh) * 2019-06-03 2019-07-09 南京中感微电子有限公司 一种音频数据通信方法、系统及音频通信设备
CN110213691A (zh) * 2019-06-26 2019-09-06 上海富芮坤微电子有限公司 一种tws音频传输的同步机制

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295434A (zh) * 2017-05-26 2017-10-24 广东思派康电子科技有限公司 Tws耳机和实现tws耳机声乐同播的计算机可读存储介质
CN107205192A (zh) * 2017-07-28 2017-09-26 广州黑格智能科技有限公司 一种双耳无线耳机及双耳无线耳机的音频播放方法
CN109391926A (zh) * 2018-01-10 2019-02-26 展讯通信(上海)有限公司 无线音频设备的数据处理方法及无线音频设备
US20190223192A1 (en) * 2018-01-12 2019-07-18 Qualcomm Incorporated Time slot reassignment mechanism for radio access technology coexistence improvement
CN109561419A (zh) * 2019-02-19 2019-04-02 恒玄科技(上海)有限公司 高可靠性的双耳无线耳机及用于双耳无线耳机的通信方法
CN109922540A (zh) * 2019-03-01 2019-06-21 展讯通信(上海)有限公司 无线收发设备组通信方法、设备组、系统及存储介质
CN110519742A (zh) * 2019-09-16 2019-11-29 安徽华米信息科技有限公司 一种音频同步播放方法、装置及tws蓝牙耳机

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206241A1 (zh) * 2021-04-01 2022-10-06 Oppo广东移动通信有限公司 发送ack消息的方法、音频接收器、音频设备及耳机
CN113242603A (zh) * 2021-05-28 2021-08-10 广州安凯微电子股份有限公司 一种带宽周期的动态分配方法
CN114079894A (zh) * 2021-07-22 2022-02-22 珠海市杰理科技股份有限公司 双无线音频通信控制方法、装置、设备和系统
CN114079894B (zh) * 2021-07-22 2024-03-22 珠海市杰理科技股份有限公司 双无线音频通信控制方法、装置、设备和系统
CN114268911A (zh) * 2021-09-23 2022-04-01 珠海市杰理科技股份有限公司 通信方法及装置、可读存储介质、tws系统
CN114268911B (zh) * 2021-09-23 2023-06-20 珠海市杰理科技股份有限公司 通信方法及装置、可读存储介质、tws系统
CN114143670A (zh) * 2021-12-20 2022-03-04 成都市易冲半导体有限公司 一种tws耳机盒体与耳机之间通信握手电路及工作方法
CN114143670B (zh) * 2021-12-20 2023-05-26 成都市易冲半导体有限公司 一种tws耳机盒体与耳机之间通信握手电路及工作方法
WO2024021736A1 (zh) * 2022-07-26 2024-02-01 哲库科技(上海)有限公司 蓝牙多媒体包的传输方法、装置、设备和系统

Also Published As

Publication number Publication date
CN110519742A (zh) 2019-11-29
CN110519742B (zh) 2022-02-18

Similar Documents

Publication Publication Date Title
WO2021052318A1 (zh) 音频播放方法、装置及tws蓝牙耳机
CN108260056B (zh) 功率高效、平衡及可靠真实无线蓝牙立体声音频解决方案
US20150135240A1 (en) Video display terminal, video transmission terminal, video communication system, video display method, video transmission method, and computer-readable recording medium recording program
WO2018098633A1 (zh) 数据传输方法、数据传输装置、电子设备和计算机程序产品
CN111698794B (zh) 一种无线音频共享方法
US8973074B2 (en) Method and system for isochronous communication in audio/video networks
JP2014505402A (ja) リンク層セキュリティー伝送を支援する交換設備およびデータ処理方法本出願は、2010年12月20日に中国特許局に提出し、出願番号が201010596665.5であり、発明名称が「リンク層セキュリティー伝送を支援する交換設備およびデータ処理方法」である中国特許出願を基礎とする優先権を主張し、その開示の総てをここに取り込む。
WO2024001035A1 (zh) 基于区块链中继通信网络系统的消息传输方法及装置
EP3293933A1 (en) Communication content protection
US11540168B2 (en) Apparatus and methods of packet retransmission between multi-link devices
US20220078169A1 (en) Methods, systems, and media for providing secure network communications
JP2001237818A (ja) プロキシ暗号通信システム及び方法並びにプログラムを記録した記録媒体
WO2023010962A1 (zh) 用于蓝牙设备联网的方法及装置、服务器、移动终端、蓝牙网关设备
US10630479B2 (en) Network communication method having function of recovering terminal session
WO2019242256A1 (zh) 通讯方法、装置、存储介质、语音板、检测板和空调
US20220417743A1 (en) Method, apparatus, and computer program for setting encryption key in wireless communication system, and recording medium for same
US10588167B1 (en) Method and system for wireless communication
US7400730B2 (en) Cryptographic communication method in communication system
WO2022117108A1 (zh) 一种基于硬管道的加解密方法及装置
WO2019026776A1 (ja) 暗号化通信装置、暗号化通信システム、暗号化通信方法、およびプログラム
WO2017112052A1 (en) Direct connection network
US10681761B2 (en) Apparatus for distributing short-range wireless signals using an interconnection protocol for electronic devices
CN101483640B (zh) 加密认证处理方法及装置
KR101730403B1 (ko) 네트워크 경로를 관리하는 방법 및 이를 수행하는 네트워크 엔티티
JP2009071481A (ja) 通信制御システム、端末、及び、プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20864509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20864509

Country of ref document: EP

Kind code of ref document: A1