WO2020000425A1 - Audio data transmission method and system and wireless audio system - Google Patents
Audio data transmission method and system and wireless audio system Download PDFInfo
- Publication number
- WO2020000425A1 WO2020000425A1 PCT/CN2018/093825 CN2018093825W WO2020000425A1 WO 2020000425 A1 WO2020000425 A1 WO 2020000425A1 CN 2018093825 W CN2018093825 W CN 2018093825W WO 2020000425 A1 WO2020000425 A1 WO 2020000425A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless transceiver
- link
- terminal
- audio data
- data
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the field of wireless technology, and in particular, to a method, system, and wireless audio system for transmitting audio data.
- the terminal can transmit audio data to the headset through a wireless link such as Bluetooth, so that users can listen to audio information without the shackles of wired headsets.
- a wireless headset that establishes a wireless link with a terminal, receives signals from the terminal, and converts it into sound waves is called a wireless headset.
- the wireless headset usually includes a left headset and a right headset. After the wireless link is established between the terminal and the wireless headset, how audio data is transmitted between the terminal and the wireless headset and between the left and right headsets determines the power consumption of the left and right headsets. Therefore, a method for transmitting audio data needs to be studied. Method to reduce power consumption of left and right headphones.
- the present application provides a method, a system, and a wireless audio system for transmitting audio data, which can reduce the power consumption of the left and right earphones in a wireless earphone.
- the present application provides a method for transmitting audio data, which is applied to a wireless headset.
- the wireless headset includes a primary wireless transceiver and a secondary wireless transceiver.
- the method includes: establishing a two-way connection between the primary wireless transceiver and a terminal. A transmission link, and receiving audio data sent by the terminal based on the bidirectional transmission link; the secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the terminal, and based on the link establishment information One-way monitoring of audio data sent by the terminal.
- a two-way transmission link is established between the terminal and the main wireless transceiver.
- the main wireless transceiver can receive audio data sent by the terminal based on the two-way transmission link, and the sub wireless transceiver can obtain the two-way transmission link from the terminal.
- the secondary wireless transceiver can monitor the audio data based on the link establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal.
- the audio data method can reduce the number of times information is exchanged between the primary wireless transceiver and the secondary wireless transceiver, thereby reducing the power consumption of the primary wireless transceiver, making the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver More balanced.
- the acquiring, by the secondary wireless transceiver, the link establishment information of the bidirectional transmission link from the terminal includes: establishing, by the secondary wireless transceiver, a first low-power link with the terminal; The wireless transceiver receives the chain establishment information sent by the terminal based on the first low power consumption link.
- a first low-power link is established between the terminal and the secondary wireless transceiver, and the secondary wireless transceiver may obtain the link establishment information based on the first low-power link.
- the link establishment information is acquired by the terminal when an audio playback instruction is detected, or when the terminal determines that the bidirectional transmission link and the first low-power link are successfully established Acquired.
- the terminal when the bidirectional transmission link and the first low power consumption link are successfully established, the terminal can send the link establishment information of the bidirectional transmission link to the secondary wireless transceiver.
- the terminal can also send the The secondary wireless transceiver sends link establishment information for a bidirectional transmission link. That is, the secondary wireless transceiver can start listening to the audio data transmitted on the bidirectional transmission link when the bidirectional transmission link and the first low-power link are successfully established, and can also start monitoring the bidirectional transmission chain when there is a voice service. Audio data transmitted on the road, the latter can save the power consumption of the primary and secondary wireless transceivers.
- the method further includes: When the master wireless transceiver receives the link establishment information acquisition request sent by the terminal, the master wireless transceiver acquires the link establishment information; the master wireless transceiver sends the chain establishment information to the terminal based on the bidirectional transmission link, So that the terminal forwards the link establishment information to the secondary wireless transceiver based on the first low power consumption link.
- the main wireless transceiver can obtain the two-way transmission link establishment information, and then send the two-way transmission link establishment information to the terminal, and then the terminal forwards To the secondary wireless transceiver.
- the method further includes: detecting, by the secondary wireless transceiver, physiological characteristic information of a first user wearing the secondary wireless transceiver, obtaining first detection data, and based on the first low-power link Reporting the first detection data to the terminal, so that the terminal displays the first detection data; the main wireless transceiver detects physiological characteristic information of a second user wearing the main wireless transceiver, and obtains a first Two detection data, and report the second detection data to the terminal based on the bidirectional transmission link or the second low power consumption link, so that the terminal displays the second detection data, and the second low power consumption
- the link is a wireless link between the terminal and the primary wireless transceiver.
- the primary wireless transceiver and the secondary wireless transceiver in addition to acquiring the audio data sent by the terminal, can also report the detected data to the terminal. That is, in this application, the primary wireless transceiver and the secondary wireless transceiver can also detect the physiological characteristic information of the user who wears it, and report the detected data to the terminal, expanding the application of wireless headsets.
- the two-way transmission link is a Bluetooth BT link
- the first low-power link and the second low-power link are low-power Bluetooth BLE links.
- BT link is used to transmit audio data
- BLE link is used to transmit detection data
- the secondary wireless transceiver sends monitoring result indication information to the primary wireless transceiver based on a third low-power link, and the monitoring result indication information is used to indicate whether the secondary wireless transceiver is at a specified time.
- the audio data is monitored in the slot, and the third low-power link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver; when the primary wireless transceiver is based on the monitoring
- the result indication information determines that the secondary wireless transceiver listens to the audio data, and determines that the primary wireless transceiver receives an acknowledgement (acknowledgement, ACK) when the audio data is received within the specified time slot. )information.
- acknowledgement acknowledgement
- the secondary wireless transceiver after the secondary wireless transceiver monitors the audio data, it sends monitoring result indication information to the primary wireless transceiver.
- the primary wireless transceiver only obtains the audio data after determining that both the secondary wireless transceiver and the primary wireless transceiver obtain audio data. Only when the ACK message is returned to the terminal.
- the method further includes: when the primary wireless transceiver determines the monitoring result according to the monitoring result indication information.
- the secondary wireless transceiver does not listen to the audio data within the specified time slot, and / or the primary wireless transceiver determines that the primary wireless transceiver does not receive the audio data within the specified time slot
- NACK non-acknowledgement
- the primary wireless transceiver reports the results of acquiring the audio data by the primary wireless transceiver and the secondary wireless transceiver to the terminal.
- the secondary radio transmitter further includes: the main wireless transceiver responds to the terminal with reception result indication information, where The receiving result indication information is used to indicate whether the primary wireless transceiver receives the audio data in a specified time slot; when the secondary wireless transceiver determines that the audio data is not monitored in the specified time slot, Sending interference information at the same time slot that the primary transceiver transmits the reception result indication information to the terminal, so that the terminal retransmits the audio data.
- the secondary wireless transceiver may not send the monitoring result indication information to the primary wireless transceiver, but may send interference information when it is determined that no audio data is monitored, and when the interference is successful, the terminal may retransmit Audio data, which can prevent the main wireless transceiver from forwarding the monitoring results of the secondary wireless transceiver to the terminal, thereby reducing the power consumption required for the main wireless transceiver to forward data.
- the method further includes: the secondary wireless transceiver counts an identifier of a data packet to which each audio data belongs in the multiple audio data that has been received; if the statistical data packet is not continuously sent by the terminal A data packet, the secondary wireless transceiver determines at least one missing data packet identifier according to the statistical data packet identifier, and sends the at least one missing data packet identifier to the primary wireless transceiver based on a data forwarding link; when When the main wireless transceiver receives the at least one missing data packet identifier, it sends audio data corresponding to each missing data packet identifier in the at least one missing data packet identifier to the secondary wireless transceiver based on a data forwarding link.
- the data forwarding link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver.
- the terminal will no longer retransmit the audio data.
- the audio data received by the secondary wireless transceiver will be missing. Therefore, the secondary wireless transceiver can Obtain missing audio data at the wireless transceiver.
- the method further includes: the secondary wireless transceiver monitors the primary wireless transceiver based on the chain establishment information. Sent data; correspondingly, the secondary wireless transceiver releases the first low power consumption link after acquiring the link establishment information of the bidirectional transmission link.
- the secondary wireless transceiver in addition to monitoring the audio data sent by the terminal based on the two-way transmission link, can also monitor the data sent by the main wireless transceiver based on the two-way transmission link. After the link establishment information of the link, the first low power consumption link can be released, and the power consumption of the primary wireless transceiver and the secondary wireless transceiver can also be reduced.
- the left earphone of the wireless earphone corresponds to one transceiver
- the right earphone corresponds to one transceiver
- the primary wireless transceiver and the secondary wireless transceiver are two transceivers in the same wireless headset, respectively.
- the left and right earphones of the wireless earphone share a transceiver
- the main wireless transceiver is a transceiver in one wireless earphone
- the sub wireless transceiver is a transceiver in another wireless earphone.
- the left earphone corresponds to one transceiver
- the right earphone corresponds to one transceiver.
- the primary wireless transceiver and the secondary wireless transceiver can be the same wireless receiver.
- Two transceivers in the headset The other type is that the left and right earphones of a wireless earphone share a transceiver.
- the main wireless transceiver is a transceiver in one wireless earphone
- the secondary wireless transceiver is a transceiver in another wireless earphone. Then, the function of music sharing can be realized through the latter terminal.
- a wireless audio system in a second aspect, includes a primary wireless transceiver and a secondary wireless transceiver.
- the primary wireless transceiver and the secondary wireless transceiver are transceivers in a wireless headset.
- the primary wireless transceiver and the secondary wireless transceiver are used to implement the method for transmitting audio data described in the first aspect.
- a system for transmitting audio data includes a terminal and a wireless audio system.
- the wireless audio system is any of the wireless audio systems described in the second aspect.
- a computer-readable storage medium is provided.
- the computer-readable storage medium is applied to a wireless headset, and the computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute The method for transmitting audio data according to the first aspect.
- a computer program product containing instructions which when run on a computer, causes the computer to execute the method for transmitting audio data described in the first aspect above.
- FIG. 1 is a schematic diagram of a system for transmitting audio data according to an embodiment of the present application
- FIG. 2 is a schematic diagram of another system for transmitting audio data according to an embodiment of the present application.
- FIG. 3 is a flowchart of a method for transmitting audio data according to an embodiment of the present application
- FIG. 4 is a schematic diagram of a link relationship according to an embodiment of the present application.
- FIG. 5 is a flowchart of another method for transmitting audio data provided by the implementation of the present application.
- FIG. 6 is a schematic diagram of another link relationship according to an embodiment of the present application.
- FIG. 7 is a schematic diagram of another link relationship according to an embodiment of the present application.
- FIG. 8 is a block diagram of a wireless audio system according to an embodiment of the present application.
- wireless earphones are more and more popular because they do not need to communicate with the terminal through a wired connection for communication. Because there is no cable between the wireless headset and the terminal, after the terminal sends audio data, how the left and right earphones included in the wireless headset accurately obtain the audio data will directly affect the user experience of the product.
- the terminal establishes a bidirectional transmission link with one of the left earphone and the right earphone, and the terminal and the right earphone establish a bidirectional transmission link as an example for description. Because a bidirectional transmission link is established between the terminal and the right earphone, the terminal can send audio data to the right earphone based on the bidirectional transmission link.
- the audio data sent by the terminal includes left channel data and right channel data. In this case, the left earphone can obtain audio data through the following two schemes.
- (1) Full forwarding scheme When the right earphone receives the audio data sent by the terminal, all the received audio data is forwarded to the left earphone. In this case, both the left earphone and the right earphone can obtain the audio data sent by the terminal, and then the left earphone and the right earphone parse the acquired audio data to obtain left channel data and right channel data. After that, the left earphone plays the left channel data in the audio data, and the right earphone plays the right channel data in the audio data.
- an embodiment of the present application provides a method for transmitting audio data to reduce power consumption of a wireless headset.
- the system 100 includes a terminal 101 and a wireless audio system 102.
- the terminal 101 and the wireless audio system 102 are wirelessly connected for communication.
- the terminal 101 is configured to send audio data
- the wireless audio system 102 is configured to acquire audio data and play the audio data.
- the wireless audio system 102 includes a primary wireless transceiver 1021 and a secondary wireless transceiver 1022.
- the connection between the primary wireless transceiver 1021 and the secondary wireless transceiver 1022 and the terminal will be explained in detail in the following embodiments. Here, Do not elaborate.
- the primary wireless transceiver 1021 and the secondary wireless transceiver 1022 are transceivers in a wireless headset.
- the structure of the wireless earphone is explained here first.
- wireless headphones are also called wireless stereo audio speakers.
- Existing wireless headphones usually include a radio frequency (RF) transceiver and two left and right speakers.
- RF radio frequency
- the term “speaker” as used herein refers to any electroacoustic transducer and includes, but is not limited to, home and professional audio speakers.
- Wireless headsets can use standard wireless protocols, as well as proprietary wireless protocols or proprietary protocols.
- standard wireless protocol or “standard protocol” as used herein refers to any open or publicly available wireless protocol, or any wireless protocol that is a product of a standards organization or special interest group, including but not limited to the Bluetooth wireless protocol and Wi-Fi (based on the IEEE 802.11 standard series of the Institute of Electrical and Electronics Engineers) wireless protocol.
- proprietary wireless protocol or “proprietary protocol” as used herein refers to any wireless protocol other than standard wireless protocols.
- True Wireless Earphones (True Wireless Stereo) belong to this type of wireless earphones.
- True wireless earphones refer to earphones without a cable between the left earphone and the right earphone.
- the other type is that the left and right earphones of a wireless earphone share a transceiver.
- a wireless earphone connected by a wired method between the left earphone and the right earphone belongs to this type of wireless earphone.
- the left earphone or right earphone described in the embodiments of the present application refers to the left or right speaker in the wireless earphone.
- the system 100 is applied to a scenario in which the left headset corresponds to one transceiver and the right headset corresponds to one transceiver.
- the primary wireless transceiver and the secondary wireless transceiver are the same wireless headset.
- Two transceivers in the. there are two ways to determine whether the transceiver corresponding to the left headset is the main wireless transceiver or the transceiver corresponding to the right headset in the wireless headset: (1) When the wireless headset leaves the factory, One of the transceiver corresponding to the left earphone and the transceiver corresponding to the right earphone included in the wireless earphone is set as the primary wireless transceiver, and the other is set as the secondary wireless transceiver.
- the transceiver corresponding to the headset that first establishes a bidirectional transmission link with the terminal is determined as the primary wireless transceiver, and the transceiver corresponding to the remaining headset is determined as the secondary wireless transceiver.
- the transceiver corresponding to the left earphone is a secondary wireless transceiver
- the transceiver corresponding to the right earphone is a main wireless transceiver, which does not limit the embodiment of the present application.
- the system 100 is applied to a scenario in which the left and right earphones of a wireless earphone share a single transceiver.
- the main wireless transceiver is a transceiver in one wireless earphone
- the secondary wireless transceiver is another transceiver.
- Transceiver in a wireless headset In this case, it is equivalent to having two wireless earphones accessing the terminal.
- both of the wireless earphones can obtain the audio data to implement the function of music sharing.
- the method for determining which of the two transceivers in the two wireless headsets is the primary wireless transceiver and which is the secondary wireless transceiver may be: determining the transceiver in the wireless headset that first establishes a bidirectional transmission link with the terminal as the primary.
- the wireless transceiver determines the transceiver in the remaining wireless headset as a secondary wireless transceiver.
- the system for transmitting audio data provided in the embodiment of the present application may be the system for transmitting audio data shown in FIG. 2, which is not described in detail here.
- the transceiver in the wireless headset may be a Bluetooth transceiver, and of course, it may also be another type of wireless transceiver, which is not described in detail in the embodiment of the present application.
- the first type of link relationship The primary wireless transceiver and the terminal are established.
- Wireless link a wireless link is also established between the secondary wireless transceiver and the terminal;
- the second link relationship a wireless link is established between the primary wireless transceiver and the terminal, and the secondary wireless transceiver is connected to the primary wireless transceiver.
- wireless links There are also wireless links established.
- the following two embodiments will describe the method for transmitting audio data provided by the embodiments of the present application based on the first link relationship and the second link relationship, respectively.
- FIG. 3 is a flowchart of a method for transmitting audio data according to an embodiment of the present application, which is applied to the first link relationship. As shown in FIG. 3, the method includes the following steps:
- Step 301 The main wireless transceiver establishes a bidirectional transmission link with the terminal, and receives audio data sent by the terminal based on the bidirectional transmission link.
- the main wireless transceiver can directly receive audio data based on the bidirectional transmission link.
- the establishment of a bidirectional transmission link between the terminal and the main wireless transceiver means that the terminal and the main wireless transceiver establish a protocol for the bidirectional transmission link in advance, and in the agreement, the encoding method, encryption method and transmission method used by the two parties to send data are agreed.
- Information such as the point-in-time information used by the data.
- the terminal sends audio data based on a bidirectional transmission link means that the terminal sends audio data according to information such as an agreed encoding method, encryption method, and time point information. Therefore, the master wireless transceiver can receive audio data according to the information such as the agreed encoding method, encryption method, and point-in-time information, and reply to the terminal based on the two-way transmission link.
- information such as the encoding method, encryption method, and point-in-time information used by the two parties to send data in the agreement is collectively referred to as the information of the two-way transmission link, that is, the two-way transmission link.
- the link establishment information includes at least one piece of information in the agreement, such as the encoding method, the encryption method, and the point-in-time information used by the parties to send data.
- the point-in-time information used to send data includes the respective systems of the devices at both ends of the wireless link. Clock information, and point-in-time information when sending data specifically.
- Step 302 The secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the terminal, and monitors the audio data sent by the terminal unidirectionally based on the link establishment information.
- the two-way transmission link is a wireless link between the terminal and the main wireless transceiver
- the secondary wireless transceiver can obtain the link establishment information of the two-way transmission link
- the secondary wireless transceiver can be based on the two-way transmission link.
- Link information monitors audio data in one direction.
- the monitoring of audio data by the secondary wireless transceiver based on the link establishment information of the bidirectional transmission link means that after the terminal sends audio data, the secondary wireless transceiver performs signals such as decoding and Decryption and other processing to obtain audio data transmitted on the bidirectional transmission link.
- the audio data sent by the secondary transceiver to the monitoring terminal based on the link establishment information means that the secondary transceiver only monitors the audio data transmitted on the bidirectional transmission link, and does not reply any data to the terminal.
- a first low-power link is established between the terminal and the secondary wireless transceiver.
- the secondary wireless transceiver may receive the link establishment information of the bidirectional transmission link sent by the terminal based on the first low power consumption link.
- the link establishment information of the two-way transmission link is obtained by the terminal when it detects an audio playback instruction, or it is obtained by the terminal when it is determined that the two-way transmission link and the first low-power link are successfully established. That is, when the primary wireless transceiver and the secondary wireless transceiver successfully access the terminal, the terminal can send the link establishment information of the bidirectional transmission link to the secondary wireless transceiver, so that the secondary wireless transceiver can monitor the two-way transmission link. Audio data transmitted on the Internet. Alternatively, when the terminal detects an audio playback instruction, it indicates that there is currently a voice service.
- the terminal sends the link establishment information of the two-way transmission link to the secondary wireless transceiver, which can prevent the secondary wireless transceiver from accessing the terminal. Start monitoring the two-way transmission link at any time to reduce the power consumption of the primary and secondary wireless transceivers.
- the terminal may strictly protect the link establishment information of the two-way transmission link.
- the terminal can send a link establishment information acquisition request to the master wireless transceiver.
- the master wireless transceiver receives the link establishment information acquisition request sent by the terminal, it obtains the link establishment information of the bidirectional transmission link.
- the master wireless transceiver is based on the bidirectional transmission.
- the link sends the bidirectional transmission link establishment information to the terminal, so that the terminal forwards the bidirectional transmission link establishment information to the secondary wireless transceiver based on the first low power consumption link.
- the timing for the terminal to send the link establishment information acquisition request to the primary wireless transceiver may still be when the primary wireless transceiver and the secondary wireless transceiver successfully access the terminal, or when a voice service currently exists.
- the main wireless transceiver sends the two-way transmission link establishment information to the terminal based on the two-way transmission link.
- the main wireless transceiver packs the two-way transmission link establishment information and sends the packaged information to the terminal. terminal.
- the secondary wireless transceiver receives the packetized link-building information, it analyzes the packetized link-building information to obtain the link-building information of the bidirectional transmission link.
- Step 303 The secondary wireless transceiver sends monitoring result indication information to the primary wireless transceiver based on the third low-power link.
- the monitoring result indication information is used to indicate whether the secondary wireless transceiver has monitored audio data within a specified time slot.
- a low power link is a wireless link between the primary and secondary wireless transceivers.
- the primary wireless transceiver and the secondary wireless transceiver need to report the reception results to the terminal so that the terminal can determine whether the audio data needs to be retransmitted.
- the secondary wireless transceiver reports the monitoring result to the primary wireless transceiver, and then the primary wireless transceiver responds to the terminal with the result of obtaining audio data by both.
- the monitoring result indication information sent may be ACK information.
- the monitoring result indication information sent may be NACK information.
- the third low-power link is a link for transmitting ACK information and NACK information, and therefore, the third low-power link is also commonly referred to as an ACK link.
- the third low-power link can be any low-power wireless link that can transmit ACK information and NACK information. The embodiment of this application does not limit the specific form of the third low-power link.
- a third low-power link can be established when the primary wireless transceiver and the secondary wireless transceiver access the terminal, and then the third low-power link The cost of the link is always present.
- a time slot refers to a time period, and each time slot has a start time point and an end time point.
- audio data sent by a terminal is sent within a specified time slot. Therefore, listening to audio data by the secondary wireless transceiver means that the secondary wireless transceiver monitors audio data within the specified time slot.
- the secondary wireless transceiver may not send any information.
- the primary wireless transceiver may also determine the secondary wireless transceiver. The wireless transceiver is not listening to audio data.
- Step 304 When the primary wireless transceiver determines that the secondary wireless transceiver listens to the audio data according to the monitoring result indication information, and determines that the primary wireless transceiver receives the audio data within a specified time slot, it returns a confirmation ACK message to the terminal.
- the secondary wireless transceiver reports the monitoring result to the primary wireless transceiver, and then the primary wireless transceiver uniformly responds to the terminal to obtain the audio data acquisition results. Therefore, only the primary wireless transceiver determines the two.
- the ACK message is returned to the terminal.
- the primary wireless transceiver determines that the secondary wireless transceiver does not listen to audio data in the specified time slot according to the monitoring result indication information, and / or, the primary wireless transceiver determines that the primary wireless transceiver does not receive audio in the specified time slot
- a NACK message is returned to the terminal. That is, if the primary wireless transceiver determines that neither the secondary wireless transceiver nor the primary wireless transceiver has acquired audio data, it will reply a NACK message to the terminal so that the terminal retransmits the audio data.
- the primary wireless transceiver may not send any information.
- the terminal may also be determined that neither the secondary wireless transceiver nor the primary wireless transceiver has acquired audio data, and the terminal may retransmit the audio data at this time.
- the above steps 301 to 304 are used to describe how the primary wireless transceiver and the secondary wireless transceiver obtain audio data sent by the terminal. Since the secondary wireless transceiver acquires audio data through monitoring, the primary wireless transceiver does not need to forward audio data to the secondary wireless transceiver. This can reduce the power consumption of the primary wireless transceiver, and thus balance the power consumption of the primary wireless transceiver and the secondary wireless transceiver. Wireless transceiver power consumption.
- the primary wireless transceiver and the secondary wireless transceiver also have physiological feature information detection functions, for example, can perform motion information detection, health information detection, or sleep information detection.
- the main wireless transceiver The transceiver and the secondary wireless transceiver also need to report the detected data to the terminal.
- the secondary wireless transceiver may report the detected data through step 305 described below
- the primary wireless transceiver may report the detected data through step 306 described below.
- Step 305 The secondary wireless transceiver detects the physiological characteristic information of the first user wearing the secondary wireless transceiver, obtains the first detection data, and reports the first detection data to the terminal based on the first low-power link, so that the terminal displays the first -Test data.
- the secondary wireless transceiver can report the first low-power link to the terminal through the first low-power link.
- -Test data When the terminal receives the first detection data reported by the secondary wireless transceiver, it may perform data analysis on the first detection data and display the first detection data after the data analysis.
- the first detection data may be exercise data, health data, or sleep data.
- the first low-power link can be a Bluetooth Low Energy (BLE) link or other types of low-power links.
- BLE Bluetooth Low Energy
- the specific form of the first low-power link in this embodiment of the present application is No restrictions.
- Step 306 The main wireless transceiver detects the physiological characteristic information of the second user wearing the main wireless transceiver, obtains the second detection data, and reports the second detection data to the terminal based on the two-way transmission link or the second low power consumption link.
- the second low power consumption link is a wireless link between the terminal and the main wireless transceiver.
- the main wireless transceiver can report the second detection data to the terminal through the two-way transmission link.
- the terminal receives the second detection data reported by the main wireless transceiver, it can perform data analysis on the second detection data and display the second detection data after the data analysis.
- the second detection data may be exercise data, health data, or sleep data.
- the bidirectional transmission link carries the function of transmitting audio data and second detection data at the same time.
- a second low-power link can also be established between the main wireless transceiver and the terminal.
- the second low-power link is used to transmit the second detection data
- the two-way transmission link is used to transmit the audio data.
- the two-way transmission link is a Bluetooth (BT) link
- the second low-power link is a BLE link.
- the BT link can be a Bluetooth Basic Rate (BR) link or an enhanced data rate. (Enhanced Data Rate, EDR) link.
- the two-way transmission link and the second low power consumption link may also be other forms of wireless links, which are not limited in the embodiment of the present application.
- the physiological characteristic information of the first user may be detected by the secondary wireless transceiver, and the physiological characteristic information of the second user may be detected by the primary wireless transceiver, so that the wireless headset has physiological characteristic information detection.
- the first user and the second user are different users.
- the physiological characteristic information of the first user may be detected only by the secondary wireless transceiver, or the physiological characteristic information of the second user may be detected only by the primary wireless transceiver, which is not specifically limited in this embodiment of the present application.
- the secondary wireless transceiver may send interference information to the terminal. Notify itself that no audio data is being monitored.
- the implementation manner in which the secondary wireless transceiver sends the interference information to notify the terminal that it has not listened to the audio data will be explained in detail in the embodiment shown in FIG. 5 below, and will not be described here.
- the secondary wireless transceiver notifies the terminal that it is not listening to audio data by sending interference information
- the primary and secondary wireless transceivers still report detection data through the above steps 305 and 306, the interference information may Will affect the terminal to receive detection data, so in this case, the master and slave wireless transceivers may not report detection data to the terminal.
- the secondary wireless transceiver when the primary and secondary wireless transceivers do not report the detection data through the above steps 305 and 306, after the secondary wireless transceiver monitors the audio data based on the bidirectional transmission link establishment information, it can also monitor the bidirectional transmission link establishment information. Data sent by the master wireless transceiver. In this case, the secondary wireless transceiver releases the first low power consumption link after acquiring the link establishment information of the bidirectional transmission link, so as to reduce the power consumption between the primary and secondary wireless transceivers. In the embodiment of the present application, this monitoring scheme is referred to as a full monitoring scheme. For detailed implementation of the full monitoring scheme, reference may be made to the embodiment shown in FIG. 5, which will not be described here.
- the primary wireless transceiver and the secondary wireless transceiver in the embodiments of the present application may be two transceivers in the same wireless headset, respectively. It can also be: the main wireless transceiver is a transceiver of a wireless headset, and the secondary wireless transceiver is a transceiver of another wireless headset.
- the above steps 301 to 306 will be exemplified respectively for these two cases.
- Case 1 The left earphone of the wireless earphone corresponds to one transceiver, and the right earphone corresponds to one transceiver.
- the primary wireless transceiver and the secondary wireless transceiver may be two transceivers in the same wireless headset, respectively.
- the transceiver corresponding to the left earphone in the wireless earphone is a sub wireless transceiver
- the transceiver corresponding to the right earphone in the wireless earphone is the main wireless transceiver.
- the wireless headset is connected to the terminal
- the transceiver corresponding to the left headset, the transceiver corresponding to the right headset, and the terminal will establish the link relationship shown in FIG. 4.
- the sub wireless transceiver is corresponding to the left headset.
- the main wireless transceiver is the transceiver corresponding to the right earphone. As shown in FIG.
- a bidirectional transmission link is established between the transceiver corresponding to the right earphone and the terminal, a first low power link is established between the transceiver corresponding to the left earphone and the terminal, and the transceiver corresponding to the right earphone is A second low power consumption link is also established between the terminals, and a third low power consumption link is established between the transceiver corresponding to the left earphone and the transceiver corresponding to the right earphone.
- the two-way transmission link may be a BT link, and the first low-power link, the second low-power link, and the third low-power link may be BLE links.
- the terminal has an executable application program corresponding to the wireless headset installed. Therefore, in a possible implementation manner, when the user opens the executable application program through a preset operation, the terminal uses the executable application program to separately communicate with the left headset.
- the corresponding transceiver and the transceiver corresponding to the right earphone establish the foregoing link.
- the transceiver corresponding to the right earphone receives audio data based on the bidirectional transmission link, and the transceiver corresponding to the left earphone listens to audio data based on the bidirectional transmission link establishment information, and passes the third low-power link
- the monitoring result is returned to the transceiver corresponding to the right earphone, and the transceiver corresponding to the right earphone uniformly returns ACK information or NACK information to the terminal.
- the executable application in the terminal detects that the two-way transmission link and the first low-power link are successfully established, it indicates that both the left earphone and the right earphone exist.
- the executable application program can correspond to the left earphone respectively.
- the transceiver corresponding to the right earphone sends a mono playback instruction, so that the transceiver corresponding to the left earphone controls the left channel of the left earphone to play the audio data, and the transceiver corresponding to the right earphone controls the right earphone to play the audio data.
- Right channel data in.
- the executable application can send a two-channel playback instruction to the transceiver corresponding to the right headset, so that The transceiver corresponding to the right earphone controls the right earphone to play the left channel data and the right channel data in the audio data, that is, stereo sound is played by the right earphone.
- the transceiver corresponding to the right headset may automatically control the right headset to play.
- the left and right channel data in the audio data that is, the stereo is automatically played by the right earphone.
- the transceiver corresponding to the left earphone reports the first detection data based on the first low-power link
- the transceiver corresponding to the right earphone reports the second detection data based on the second low-power link, that is, the left earphone corresponds to
- the transceiver reports the first detection data to the executable application
- the transceiver corresponding to the right headset reports the second detection data to the executable application.
- the executable application can present the first detection data and the second detection data. To the user.
- Case 2 The left and right earphones of a wireless earphone share a transceiver, the main wireless transceiver is a transceiver in one wireless earphone, and the sub wireless transceiver is a transceiver in another wireless earphone.
- the transceiver in the wireless headset A is a secondary wireless transceiver
- the transceiver in the wireless headset B is the primary wireless transceiver.
- the transceiver in wireless earphone A, the transceiver in wireless earphone B, and the terminal will also establish the link relationship shown in FIG. 4, at this time in FIG. 4
- the secondary wireless transceiver is the transceiver in wireless headset A
- the primary wireless transceiver is the transceiver in wireless headset B.
- a bidirectional transmission link is established between the transceiver in the wireless headset B and the terminal, and a first low-power link is established between the transceiver in the wireless headset A and the terminal.
- a second low-power link is also established between the transceiver and the terminal, and a third low-power link is established between the transceiver in the wireless headset B and the transceiver in the wireless headset A.
- the two-way transmission link is a BT link, and the first low-power link and the second low-power link are BLE links.
- a corresponding executable application program is installed in the terminal. Therefore, in a possible implementation manner, when the user opens the executable application program through a preset operation, the terminal uses the executable application program to communicate with the wireless headset A separately.
- the transceiver and the transceiver in the wireless headset B establish the aforementioned link.
- the transceiver in wireless headset B receives audio data based on the bidirectional transmission link, and the transceiver in wireless headset A listens to audio data based on the bidirectional transmission link establishment information, and passes the third low power consumption
- the link returns the monitoring result to the transceiver in the wireless headset B, and the transceiver in the wireless headset B uniformly returns ACK information or NACK information to the terminal.
- the transceiver in wireless headset A or the transceiver in wireless headset B after acquiring the audio data, the acquired audio data is parsed, and the left channel data is sent to the corresponding left headset, right The channel data is sent to the corresponding right earphone, so that the corresponding left earphone and right earphone can respectively play the data of the corresponding channel.
- the left and right earphones in the wireless earphone share a transceiver, so whether wireless earphone A and wireless earphone B both exist, or only one of wireless earphone A and wireless earphone B exists, as long as A transceiver receives the audio data, parses the acquired audio data, and sends the left channel data to the corresponding left earphone, and the right channel data to the corresponding right earphone, so that the corresponding left earphone and right The headset can play the data of the corresponding channel separately.
- the transceiver in wireless headset A can also report the first detection data based on the first low-power link
- the transceiver in wireless headset B can also report the second detection data based on the second low-power link, that is, Yes
- the wireless earphone A can report the first detection data to the executable application program
- the wireless earphone B can report the second detection data to the executable application program.
- the executable application program can report the first detection data and the second detection data. The data is presented to the user.
- the primary wireless transceiver and the secondary wireless transceiver after receiving the audio data and parsing the audio data, send the channel data synchronized with the playback time information to the corresponding headphones, so that the headphones play The output audio is synchronized audio.
- a two-way transmission link is established between the terminal and the main wireless transceiver.
- the main wireless transceiver can receive audio data sent by the terminal based on the two-way transmission link, and the sub wireless transceiver can obtain the two-way transmission link from the terminal.
- the secondary wireless transceiver can monitor the audio data based on the link establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal.
- the audio data method can reduce the number of times information is exchanged between the primary wireless transceiver and the secondary wireless transceiver, thereby reducing the power consumption of the primary wireless transceiver, making the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver More balanced.
- FIG. 3 The embodiment shown in FIG. 3 is applied to the first link relationship among the two link relationships provided in the embodiments of the present application.
- the method for transmitting audio data in the second link relationship is explained below.
- FIG. 5 is a flowchart of another method for transmitting audio data provided by the implementation of this application, which is applied to a second link relationship. As shown in Figure 5, the method includes the following steps:
- Step 501 The main wireless transceiver establishes a bidirectional transmission link with the terminal, and receives audio data sent by the terminal based on the bidirectional transmission link.
- step 501 For the implementation manner of step 501, reference may be made to the implementation manner of step 301 in the embodiment of FIG. 3, which is not described in detail here.
- Step 502 The secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the main transceiver, and unidirectionally monitors the audio data sent by the monitoring terminal based on the link establishment information.
- no wireless link is established between the secondary wireless transceiver and the terminal, but a separate link is established between the secondary wireless transceiver and the primary wireless transceiver: a data forwarding link.
- the secondary wireless transceiver can obtain the link establishment information of the bidirectional transmission link based on the data forwarding link.
- the embodiment of the present application does not limit the specific form of the data forwarding link.
- the main wireless transceiver can send the link establishment information of the bidirectional transmission link to the sub wireless transceiver when the terminal is successfully accessed, or can send the establishment information of the bidirectional transmission link when it is determined that the voice service currently exists.
- the secondary wireless transceiver it will not be described in detail here.
- Step 503 The master wireless transceiver replies to the terminal with reception result indication information, and the reception result indication information is used to indicate whether the master wireless transceiver receives audio data within a specified time slot.
- the primary wireless transceiver Since a data forwarding link has been established between the primary wireless transceiver and the secondary wireless transceiver, if the secondary wireless transceiver reports the monitoring result to the terminal through the primary wireless transceiver, the primary wireless transceiver and the secondary wireless transceiver will interact. There are many times of information, which results in large power consumption of the primary wireless transceiver and the secondary wireless transceiver. Therefore, in the embodiment of the present application, the primary wireless transceiver only reports its own reception result to the terminal, and the secondary wireless transceiver reports the monitoring result through the following step 504.
- the reception result indication information may be ACK information. If the main wireless transceiver determines that the audio data is not received within the designated time slot, the reception result indication information may be NACK information. Of course, if the master wireless transceiver determines that no audio data is received within the designated time slot, the master wireless transceiver may not reply to the terminal with any information.
- Step 504 When the secondary wireless transceiver determines that the audio data is not monitored within the designated time slot, the primary wireless transceiver sends interference information in the same time slot as the reply response indication information to the terminal, so that the terminal retransmits the audio data.
- the secondary wireless transceiver when the secondary wireless transceiver determines that the audio data is monitored, the secondary wireless transceiver does not perform any operation, and when the secondary wireless transceiver determines that the audio data is not monitored, it sends interference information to the terminal. Because the timing for the secondary wireless transceiver to send interference information is: the primary wireless transceiver replies to the terminal with the same time slot of the reception result indication information. Therefore, if the secondary wireless transceiver sends interference information, the terminal will not be able to recognize the reception result indication information sent by the primary wireless transceiver. In this case, the terminal will determine that the current transmission data has failed and retransmit the audio data.
- the terminal can identify the reception result indication information, indicating that the secondary wireless transceiver is not currently sending interference information, the terminal can determine that the secondary wireless transceiver has successfully monitored the audio data, and then determine whether the primary wireless transceiver has successfully received the information based on the reception result indication information. Audio data.
- the secondary wireless transceiver may periodically report the missing audio data to the primary wireless transceiver through the data forwarding link, so that the primary wireless transceiver forwards the missing audio data to the secondary wireless transceiver.
- the secondary wireless transceiver counts the identifier of the data packet to which each audio data belongs in the multiple audio data that has been received; if the statistical data packet is not a data packet continuously sent by the terminal, the secondary wireless transceiver The transceiver determines at least one missing data packet identifier according to the statistical data packet identifier, and sends at least one missing data packet identifier to the main wireless transceiver based on the data forwarding link; when the main wireless transceiver receives at least one missing data packet identifier , Sending audio data corresponding to each missing packet identifier in the at least one missing packet identifier to the secondary wireless transceiver based on the data forwarding link.
- the secondary wireless transceiver counts the identifiers of the data packets that each audio data belongs to in the received multiple audio data are: data packet 1, data packet 2, data packet 4, and data packet 5, then the secondary wireless transceiver It can be determined that the data packet 3 is a missing data packet. At this time, the secondary wireless transceiver can send the identification of the data packet 3 to the primary wireless transceiver based on the data forwarding link, so that the primary wireless transceiver forwards the data packet 3 to the secondary wireless transceiver. .
- steps 503 and 504 provide another method for the secondary wireless transceiver to report the monitoring result.
- the secondary wireless transceiver may also report the monitoring result through the primary wireless transceiver.
- the secondary wireless transceiver may report the monitoring result to the terminal through steps 303 and 304 in the embodiment of FIG. 3, that is, the secondary wireless transceiver passes the third low power
- the consuming link reports the monitoring result to the main wireless transceiver, and the main wireless transceiver uniformly returns ACK information or NACK information to the terminal.
- the secondary wireless transceiver in order to reduce the interaction information between the primary wireless transceiver and the secondary wireless transceiver, after the secondary wireless transceiver monitors the audio data based on the link establishment information of the bidirectional transmission link, it can also use the bidirectional transmission link establishment information. Listen for data sent by the master wireless transceiver. In this case, the secondary wireless transceiver can release the data forwarding link after obtaining the link establishment information of the bidirectional transmission link, so as to reduce the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver.
- the data sent by the main wireless transceiver includes control data sent by the main wireless transceiver based on the bidirectional transmission link.
- the first monitoring scheme is the scheme described in the above steps 501 to 504, which may be referred to as “Monitoring + interference + forwarding” scheme
- “monitoring” means that the secondary wireless transceiver listens to audio data on the bidirectional transmission link
- “interference” means that the secondary wireless transceiver sends interference information to the terminal when it does not listen to the audio data.
- "Forwarding” means that the primary wireless transceiver forwards the missing audio data in the secondary wireless transceiver based on the data forwarding link.
- the link relationship established between the primary wireless transceiver, the secondary wireless transceiver, and the terminal is the link relationship shown in FIG. 6.
- a bidirectional transmission chain is established between the terminal and the primary wireless transceiver.
- the terminal transmits audio data based on the bidirectional transmission link.
- a data forwarding link is established between the primary wireless transceiver and the secondary wireless transceiver.
- the secondary wireless transceiver obtains the link establishment information of the two-way transmission link based on the data forwarding link.
- Monitoring the audio data transmitted by the terminal based on the acquired link establishment information of the bidirectional transmission link, and sending interference information when no audio data is monitored.
- the primary wireless transceiver may also forward the audio data missing from the secondary wireless transceiver to the secondary wireless transceiver based on the data forwarding link.
- the second scheme is a scheme composed of the above steps 501, 502, step 303, and step 304.
- This scheme can be referred to as the "full listening” scheme.
- Full listening means that the secondary wireless transceiver not only monitors the terminal based on the bidirectional transmission chain
- the data transmitted on the channel is also monitored by the main wireless transceiver based on the data sent on the bidirectional transmission link. This can enable the secondary wireless transceiver to release the data forwarding link after obtaining the link establishment information of the bidirectional transmission link.
- the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver are examples of the power consumption of the secondary wireless transceiver.
- the link relationship established between the primary wireless transceiver, the secondary wireless transceiver, and the terminal is the link relationship shown in FIG. 7.
- a bidirectional transmission chain is established between the terminal and the primary wireless transceiver.
- the terminal transmits audio data based on a bidirectional transmission link, and a data forwarding link is established between the primary wireless transceiver and the secondary wireless transceiver.
- the secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link based on the data forwarding link, monitors the audio data transmitted by the terminal based on the obtained link establishment information of the bidirectional transmission link, and transmits and receives to and from the main wireless based on the third low-power link
- the transceiver reports the monitoring results
- the primary wireless transceiver reports the situation in which the primary wireless transceiver and the secondary wireless transceiver obtain audio data to the terminal.
- the secondary wireless transceiver not only monitors the data sent by the terminal based on the two-way transmission link, but also listens to the data transmitted by the primary wireless transceiver based on the two-way transmission link.
- the secondary wireless transceiver After obtaining the link establishment information of the bidirectional transmission link, the data forwarding link can be released to reduce the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver.
- the primary wireless transceiver and the secondary wireless transceiver can still report detection data to the terminal.
- the primary wireless transceiver and the secondary wireless transceiver can use FIG. 3
- the method of step 305 and step 306 in the embodiment reports the detection data, which will cause too many links to be established, thereby increasing the power consumption of the primary wireless transceiver and the secondary wireless transceiver.
- the secondary wireless transceiver first reports the first detection data to the primary wireless transceiver through the data forwarding link, and then the primary wireless transceiver forwards the first detection data to the terminal, and also reports the second detection data detected by itself to the terminal.
- Terminal the embodiments of the present application are not specifically limited herein.
- the secondary wireless transceiver can be based on the data forwarding link. After acquiring the link establishment information of the bidirectional transmission link so that the terminal sends audio data based on the bidirectional transmission link, the secondary wireless transceiver can listen to the audio data based on the establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal.
- the primary wireless transceiver When the secondary wireless transceiver determines that the audio data is not monitored within the specified time slot, the primary wireless transceiver sends interference information in the same time slot as the feedback result indication information to the terminal, so that the terminal retransmits the audio data and avoids the primary wireless transceiver The transceiver forwards the monitoring results of the secondary wireless transceiver to reduce the power consumption of the primary wireless transceiver.
- FIG. 8 is a block diagram 800 of a wireless audio system according to an embodiment of the present application.
- the wireless audio system 800 includes a primary wireless transceiver 801 and a secondary wireless transceiver 802.
- the primary wireless transceiver and the secondary wireless transceiver are transceivers in a wireless headset.
- the main wireless transceiver 801 is configured to perform step 301 in the embodiment of FIG. 3 or step 501 in the embodiment of FIG. 5;
- the secondary wireless transceiver 802 is configured to perform step 302 in the embodiment in FIG. 3.
- the secondary wireless transceiver is further configured to establish a first low-power link with the terminal;
- the secondary wireless transceiver is further configured to receive the link establishment information sent by the terminal based on the first low power consumption link.
- the link establishment information is acquired by the terminal when the audio playback instruction is detected, or is acquired by the terminal when it is determined that the bidirectional transmission link and the first low-power link are successfully established.
- the terminal protects the chain establishment information
- the main wireless transceiver is further configured to obtain chain establishment information when receiving a request for obtaining the chain establishment information sent by the terminal;
- the main wireless transceiver is further configured to send the chain establishment information to the terminal based on the bidirectional transmission link, so that the terminal forwards the chain establishment information to the secondary wireless transceiver based on the first low power consumption link.
- the secondary wireless transceiver is further configured to perform step 305 in the embodiment of FIG. 3;
- the main wireless transceiver is further configured to perform step 306 in the embodiment of FIG. 3.
- the bidirectional transmission link is a BT link
- the first low-power link and the second low-power link are BLE links.
- the secondary wireless transceiver is further configured to perform step 303 in the embodiment of FIG. 3;
- the main wireless transceiver is further configured to perform step 304 in the embodiment of FIG. 3.
- the main wireless transceiver is further configured to: when it is determined according to the monitoring result indication information that the secondary wireless transceiver does not listen to audio data within a specified time slot, and / or, the main wireless transceiver determines that the main wireless transceiver is not When audio data is received in the time slot, a NACK message is returned to the terminal.
- the master wireless transceiver is further configured to perform step 503 in the embodiment of FIG. 5;
- the secondary wireless transceiver is further configured to perform step 504 in the embodiment of FIG. 5.
- the secondary wireless transceiver is further configured to count an identifier of a data packet to which each audio data belongs in the multiple received audio data;
- the secondary wireless transceiver is also used to determine at least one missing data packet identifier according to the statistical data packet identifier if the statistical data packet is not a data packet sent continuously by the terminal, and send to the primary wireless transceiver based on the data forwarding link At least one missing data packet identifier, and the data forwarding link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver;
- the main wireless transceiver is further configured to, when receiving at least one missing data packet identifier, send audio data corresponding to each missing data packet identifier in the at least one missing data packet identifier to the secondary wireless transceiver based on the data forwarding link.
- the secondary wireless transceiver is further configured to monitor data sent by the primary wireless transceiver based on the link establishment information
- the secondary wireless transceiver is further configured to release the first low power consumption link after acquiring the link establishment information.
- a two-way transmission link is established between the terminal and the main wireless transceiver.
- the main wireless transceiver can receive audio data sent by the terminal based on the two-way transmission link, and the sub wireless transceiver can obtain the two-way transmission link from the terminal.
- the secondary wireless transceiver can monitor the audio data based on the link establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal.
- the audio data method can reduce the number of times information is exchanged between the primary wireless transceiver and the secondary wireless transceiver, thereby reducing the power consumption of the primary wireless transceiver, making the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver More balanced.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, a computer, a server, or a data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available medium integration.
- the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD) )Wait.
- the program may be stored in a computer-readable storage medium.
- the storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
An audio data transmission method and system and a wireless audio system. The method comprises: establishing a bidirectional transmission link between a terminal and a primary wireless transceiver; the primary wireless transceiver receiving audio data transmitted by the terminal on the basis of the bidirectional transmission link; and a secondary wireless transceiver acquiring link establishment information of the bidirectional transmission link from the terminal, such that after the terminal transmits the audio data on the basis of the bidirectional transmission link, the secondary wireless transceiver can unidirectionally monitor the audio data on the basis of the link establishment information of the bidirectional transmission link. The secondary wireless transceiver acquires the link establishment information of the bidirectional transmission link from the terminal, and when compared to transmitting link establishment information to a secondary wireless transceiver via a primary wireless transceiver, the audio data transmission method provided by the present application reduces the instances of information exchange between a primary wireless transceiver and a secondary wireless transceiver, thereby reducing power consumption of the primary wireless transceiver and causing more balanced power consumption between the primary wireless transceiver and the secondary wireless transceiver.
Description
本申请涉及无线技术领域,特别涉及一种传输音频数据的方法、系统及无线音频系统。The present application relates to the field of wireless technology, and in particular, to a method, system, and wireless audio system for transmitting audio data.
随着无线技术的发展,终端可以通过蓝牙等无线链路向耳机传输音频数据,以使用户可以在摆脱有线耳机的束缚下收听音频信息。为了后续便于说明,将通过与终端建立无线链路,接收终端发出的讯号,并转换成声波的耳机称为无线耳机,无线耳机通常包括左耳机和右耳机。在终端与无线耳机建立无线链路之后,终端与无线耳机之间以及左耳机与右耳机之间如何传输音频数据决定了左耳机和右耳机的功耗,因此,需要研究一种传输音频数据的方法,以降低左耳机和右耳机的功耗。With the development of wireless technology, the terminal can transmit audio data to the headset through a wireless link such as Bluetooth, so that users can listen to audio information without the shackles of wired headsets. For the convenience of description later, a headset that establishes a wireless link with a terminal, receives signals from the terminal, and converts it into sound waves is called a wireless headset. The wireless headset usually includes a left headset and a right headset. After the wireless link is established between the terminal and the wireless headset, how audio data is transmitted between the terminal and the wireless headset and between the left and right headsets determines the power consumption of the left and right headsets. Therefore, a method for transmitting audio data needs to be studied. Method to reduce power consumption of left and right headphones.
发明内容Summary of the invention
本申请提供了一种传输音频数据的方法、系统及无线音频系统,可以降低无线耳机中左耳机和右耳机的功耗。The present application provides a method, a system, and a wireless audio system for transmitting audio data, which can reduce the power consumption of the left and right earphones in a wireless earphone.
第一方面,本申请提供一种传输音频数据的方法,应用于无线耳机,所述无线耳机包括主无线收发器和副无线收发器,所述方法包括:所述主无线收发器与终端建立双向传输链路,并基于所述双向传输链路接收所述终端发送的音频数据;所述副无线收发器从所述终端获取所述双向传输链路的建链信息,并基于所述建链信息单向监听所述终端发送的音频数据。In a first aspect, the present application provides a method for transmitting audio data, which is applied to a wireless headset. The wireless headset includes a primary wireless transceiver and a secondary wireless transceiver. The method includes: establishing a two-way connection between the primary wireless transceiver and a terminal. A transmission link, and receiving audio data sent by the terminal based on the bidirectional transmission link; the secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the terminal, and based on the link establishment information One-way monitoring of audio data sent by the terminal.
在本申请中,终端与主无线收发器之间建立有双向传输链路,主无线收发器可以基于双向传输链路接收终端发送的音频数据,并且副无线收发器可以从终端获取双向传输链路的建链信息,以使终端基于双向传输链路发送音频数据之后,副无线收发器可以基于双向传输链路的建链信息监听音频数据,以获取终端发送的音频数据。由于副无线收发器是从终端处获取到双向传输链路的建链信息的,因此,相对于由主无线收发器向副无线收发器发送双向传输链路的建链信息,本申请提供的传输音频数据的方法可以减少主无线收发器和副无线收发器之间交互信息的次数,从而降低了主无线收发器的功耗,使得主无线收发器的功耗与副无线收发器的功耗之间更为均衡。In this application, a two-way transmission link is established between the terminal and the main wireless transceiver. The main wireless transceiver can receive audio data sent by the terminal based on the two-way transmission link, and the sub wireless transceiver can obtain the two-way transmission link from the terminal. After the terminal establishes the link information so that the terminal sends audio data based on the bidirectional transmission link, the secondary wireless transceiver can monitor the audio data based on the link establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal. Since the secondary wireless transceiver obtains the link establishment information of the two-way transmission link from the terminal, the transmission provided by this application is relative to the transmission of the two-way transmission link establishment information by the primary wireless transceiver to the secondary wireless transceiver. The audio data method can reduce the number of times information is exchanged between the primary wireless transceiver and the secondary wireless transceiver, thereby reducing the power consumption of the primary wireless transceiver, making the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver More balanced.
可选地,所述副无线收发器从所述终端获取所述双向传输链路的建链信息,包括:所述副无线收发器与所述终端建立第一低功耗链路;所述副无线收发器基于所述第一低功耗链路接收所述终端发送的所述建链信息。Optionally, the acquiring, by the secondary wireless transceiver, the link establishment information of the bidirectional transmission link from the terminal includes: establishing, by the secondary wireless transceiver, a first low-power link with the terminal; The wireless transceiver receives the chain establishment information sent by the terminal based on the first low power consumption link.
在一种可能的实现方式中,终端与副无线收发器之间建立有第一低功耗链路,副无线收发器可以基于第一低功耗链路获取建链信息。In a possible implementation manner, a first low-power link is established between the terminal and the secondary wireless transceiver, and the secondary wireless transceiver may obtain the link establishment information based on the first low-power link.
可选地,所述建链信息是所述终端在检测到音频播放指令时获取的,或者,是所述终端在确定所述双向传输链路和所述第一低功耗链路建立成功时获取的。Optionally, the link establishment information is acquired by the terminal when an audio playback instruction is detected, or when the terminal determines that the bidirectional transmission link and the first low-power link are successfully established Acquired.
在本申请中,终端可以在双向传输链路和第一低功耗链路建立成功时向副无线收发器 发送双向传输链路的建链信息,当然,终端也可以在存在语音业务时再向副无线收发器发送双向传输链路的建链信息。也即是,副无线收发器可以在双向传输链路和第一低功耗链路建立成功时开始监听双向传输链路上传输的音频数据,也可以在存在语音业务时再开始监听双向传输链路上传输的音频数据,后者可以节省主副无线收发器的功耗。In this application, when the bidirectional transmission link and the first low power consumption link are successfully established, the terminal can send the link establishment information of the bidirectional transmission link to the secondary wireless transceiver. Of course, the terminal can also send the The secondary wireless transceiver sends link establishment information for a bidirectional transmission link. That is, the secondary wireless transceiver can start listening to the audio data transmitted on the bidirectional transmission link when the bidirectional transmission link and the first low-power link are successfully established, and can also start monitoring the bidirectional transmission chain when there is a voice service. Audio data transmitted on the road, the latter can save the power consumption of the primary and secondary wireless transceivers.
可选地,所述终端对所述建链信息进行保护;所述副无线收发器基于所述第一低功耗链路接收所述终端发送的所述建链信息之前,还包括:当所述主无线收发器接收到所述终端发送的建链信息获取请求时,获取所述建链信息;所述主无线收发器基于所述双向传输链路向所述终端发送所述建链信息,以使所述终端基于所述第一低功耗链路向所述副无线收发器转发所述建链信息。Optionally, before the terminal protects the chain establishment information, before the secondary wireless transceiver receives the chain establishment information sent by the terminal based on the first low power consumption link, the method further includes: When the master wireless transceiver receives the link establishment information acquisition request sent by the terminal, the master wireless transceiver acquires the link establishment information; the master wireless transceiver sends the chain establishment information to the terminal based on the bidirectional transmission link, So that the terminal forwards the link establishment information to the secondary wireless transceiver based on the first low power consumption link.
如果终端严格保护双向传输链路的建链信息,这时,可以由主无线收发器获取双向传输链路的建链信息,然后将双向传输链路的建链信息发送给终端,再由终端转发给副无线收发器。If the terminal strictly protects the two-way transmission link establishment information, at this time, the main wireless transceiver can obtain the two-way transmission link establishment information, and then send the two-way transmission link establishment information to the terminal, and then the terminal forwards To the secondary wireless transceiver.
可选地,所述方法还包括:所述副无线收发器检测佩戴所述副无线收发器的第一用户的生理特征信息,得到第一检测数据,并基于所述第一低功耗链路向所述终端上报所述第一检测数据,以使所述终端显示所述第一检测数据;所述主无线收发器检测佩戴所述主无线收发器的第二用户的生理特征信息,得到第二检测数据,并基于所述双向传输链路或第二低功耗链路向所述终端上报第二检测数据,以使所述终端显示所述第二检测数据,所述第二低功耗链路为所述终端与所述主无线收发器之间的无线链路。Optionally, the method further includes: detecting, by the secondary wireless transceiver, physiological characteristic information of a first user wearing the secondary wireless transceiver, obtaining first detection data, and based on the first low-power link Reporting the first detection data to the terminal, so that the terminal displays the first detection data; the main wireless transceiver detects physiological characteristic information of a second user wearing the main wireless transceiver, and obtains a first Two detection data, and report the second detection data to the terminal based on the bidirectional transmission link or the second low power consumption link, so that the terminal displays the second detection data, and the second low power consumption The link is a wireless link between the terminal and the primary wireless transceiver.
在本申请中,主无线收发器和副无线收发器除了可以获取终端发送的音频数据,还可以向终端上报检测到的数据。也即是,在本申请中,主无线收发器和副无线收发器还可以对佩戴的用户的生理特征信息进行检测,并将检测到的数据上报给终端,拓展了无线耳机的应用。In this application, in addition to acquiring the audio data sent by the terminal, the primary wireless transceiver and the secondary wireless transceiver can also report the detected data to the terminal. That is, in this application, the primary wireless transceiver and the secondary wireless transceiver can also detect the physiological characteristic information of the user who wears it, and report the detected data to the terminal, expanding the application of wireless headsets.
可选地,所述双向传输链路为蓝牙BT链路,所述第一低功耗链路和所述第二低功耗链路为低功耗蓝牙BLE链路。Optionally, the two-way transmission link is a Bluetooth BT link, and the first low-power link and the second low-power link are low-power Bluetooth BLE links.
由于传输音频数据所需的功耗大于传输检测数据所需的功耗,因此,可以采用不同的链路传输音频数据和检测数据,以降低主无线收发器和副无线收发器的功耗。比如,采用BT链路传输音频数据,采用BLE链路传输检测数据。Because the power consumption required to transmit audio data is greater than the power required to transmit detection data, different links can be used to transmit audio data and detection data to reduce the power consumption of the primary wireless transceiver and the secondary wireless transceiver. For example, BT link is used to transmit audio data, and BLE link is used to transmit detection data.
可选地,所述副无线收发器基于第三低功耗链路向所述主无线收发器发送监听结果指示信息,所述监听结果指示信息用于指示所述副无线收发器是否在指定时隙内监听到所述音频数据,所述第三低功耗链路是所述主无线收发器与所述副无线收发器之间的无线链路;当所述主无线收发器根据所述监听结果指示信息确定所述副无线收发器监听到所述音频数据,且确定所述主无线收发器在所述指定时隙内接收到所述音频数据时,向所述终端回复确认(acknowledgement,ACK)信息。Optionally, the secondary wireless transceiver sends monitoring result indication information to the primary wireless transceiver based on a third low-power link, and the monitoring result indication information is used to indicate whether the secondary wireless transceiver is at a specified time. The audio data is monitored in the slot, and the third low-power link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver; when the primary wireless transceiver is based on the monitoring The result indication information determines that the secondary wireless transceiver listens to the audio data, and determines that the primary wireless transceiver receives an acknowledgement (acknowledgement, ACK) when the audio data is received within the specified time slot. )information.
在一种实现方式中,副无线收发器在监听音频数据之后,向主无线收发器发送监听结果指示信息,主无线收发器只有在确定出副无线收发器和主无线收发器均获取到音频数据时,才会向终端回复ACK信息。In an implementation manner, after the secondary wireless transceiver monitors the audio data, it sends monitoring result indication information to the primary wireless transceiver. The primary wireless transceiver only obtains the audio data after determining that both the secondary wireless transceiver and the primary wireless transceiver obtain audio data. Only when the ACK message is returned to the terminal.
可选地,所述副无线收发器基于第三低功耗链路向所述主无线收发器发送监听结果指示信息之后,还包括:当所述主无线收发器根据所述监听结果指示信息确定所述副无线收发器没有在所述指定时隙内监听到所述音频数据,和/或,所述主无线收发器确定所述主无 线收发器没有在所述指定时隙内接收到所述音频数据时,向所述终端回复否定(non-acknowledgement,NACK)信息。Optionally, after the secondary wireless transceiver sends the monitoring result indication information to the primary wireless transceiver based on the third low-power link, the method further includes: when the primary wireless transceiver determines the monitoring result according to the monitoring result indication information. The secondary wireless transceiver does not listen to the audio data within the specified time slot, and / or the primary wireless transceiver determines that the primary wireless transceiver does not receive the audio data within the specified time slot When audio data is received, a non-acknowledgement (NACK) message is returned to the terminal.
其中,主无线收发器在确定出副无线收发器和主无线收发器中任一者未获取到音频数据时,均会向终端回复NACK信息。也即是,由主无线收发器统一向终端上报主无线收发器和副无线收发器获取音频数据的结果。Wherein, when it is determined that any one of the secondary wireless transceiver and the primary wireless transceiver has not obtained audio data, it will reply with a NACK message to the terminal. That is, the primary wireless transceiver reports the results of acquiring the audio data by the primary wireless transceiver and the secondary wireless transceiver to the terminal.
可选地,所述副收无线发器基于所述建链信息单向监听所述终端发送的音频数据之后,还包括:所述主无线收发器向所述终端回复接收结果指示信息,所述接收结果指示信息用于指示所述主无线收发器是否在指定时隙内接收到所述音频数据;当所述副无线收发器确定没有在所述指定时隙内监听到所述音频数据时,在所述主收无线发器向所述终端回复接收结果指示信息的同一时隙发送干扰信息,以使所述终端重传所述音频数据。Optionally, after monitoring the audio data sent by the terminal unidirectionally based on the link establishment information, the secondary radio transmitter further includes: the main wireless transceiver responds to the terminal with reception result indication information, where The receiving result indication information is used to indicate whether the primary wireless transceiver receives the audio data in a specified time slot; when the secondary wireless transceiver determines that the audio data is not monitored in the specified time slot, Sending interference information at the same time slot that the primary transceiver transmits the reception result indication information to the terminal, so that the terminal retransmits the audio data.
在另一种实现方式中,副无线收发器可以不向主无线收发器发送监听结果指示信息,而是在确定没有监听到音频数据时,发送干扰信息,当干扰成功时,终端就可以重传音频数据,这样可以避免主无线收发器向终端转发副无线收发器的监听结果,从而降低了主无线收发器转发数据所需的功耗。In another implementation manner, the secondary wireless transceiver may not send the monitoring result indication information to the primary wireless transceiver, but may send interference information when it is determined that no audio data is monitored, and when the interference is successful, the terminal may retransmit Audio data, which can prevent the main wireless transceiver from forwarding the monitoring results of the secondary wireless transceiver to the terminal, thereby reducing the power consumption required for the main wireless transceiver to forward data.
可选地,所述方法还包括:所述副无线收发器统计已经接收到的多个音频数据中每个音频数据所属的数据包的标识;如果统计出的数据包不是所述终端连续发送的数据包,所述副无线收发器根据统计出的数据包的标识确定至少一个缺失数据包标识,并基于数据转发链路向所述主无线收发器发送所述至少一个缺失数据包标识;当所述主无线收发器接收到所述至少一个缺失数据包标识时,基于数据转发链路向所述副无线收发器发送与所述至少一个缺失数据包标识中每个缺失数据包标识对应的音频数据,所述数据转发链路是所述主无线收发器与所述副无线收发器之间的无线链路。Optionally, the method further includes: the secondary wireless transceiver counts an identifier of a data packet to which each audio data belongs in the multiple audio data that has been received; if the statistical data packet is not continuously sent by the terminal A data packet, the secondary wireless transceiver determines at least one missing data packet identifier according to the statistical data packet identifier, and sends the at least one missing data packet identifier to the primary wireless transceiver based on a data forwarding link; when When the main wireless transceiver receives the at least one missing data packet identifier, it sends audio data corresponding to each missing data packet identifier in the at least one missing data packet identifier to the secondary wireless transceiver based on a data forwarding link. The data forwarding link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver.
如果干扰信息没有成功干扰到终端,那么终端将不再重传音频数据,这样的话,副无线收发器接收到的音频数据中将缺失该音频数据,因此,副无线收发器可以通过上述方式从主无线收发器处获取缺失的音频数据。If the interference information does not successfully interfere with the terminal, the terminal will no longer retransmit the audio data. In this case, the audio data received by the secondary wireless transceiver will be missing. Therefore, the secondary wireless transceiver can Obtain missing audio data at the wireless transceiver.
可选地,所述副无线收发器基于所述建链信息单向监听所述终端发送的音频数据之后,还包括:所述副无线收发器基于所述建链信息监听所述主无线收发器发送的数据;相应地,所述副无线收发器在获取到所述双向传输链路的建链信息之后解除所述第一低功耗链路。Optionally, after the secondary wireless transceiver monitors the audio data sent by the terminal unidirectionally based on the chain establishment information, the method further includes: the secondary wireless transceiver monitors the primary wireless transceiver based on the chain establishment information. Sent data; correspondingly, the secondary wireless transceiver releases the first low power consumption link after acquiring the link establishment information of the bidirectional transmission link.
在本申请中,副无线收发器除了监听终端基于双向传输链路发送的音频数据,还可以监听主无线收发器基于双向传输链路发送的数据,这样的话,副无线收发器在获取到双向传输链路的建链信息之后就可以解除第一低功耗链路,同样可以降低主无线收发器和副无线收发器的功耗。In this application, in addition to monitoring the audio data sent by the terminal based on the two-way transmission link, the secondary wireless transceiver can also monitor the data sent by the main wireless transceiver based on the two-way transmission link. After the link establishment information of the link, the first low power consumption link can be released, and the power consumption of the primary wireless transceiver and the secondary wireless transceiver can also be reduced.
可选地,无线耳机的左耳机对应一个收发器,右耳机对应一个收发器,所述主无线收发器和所述副无线收发器分别为同一无线耳机中的两个收发器。可选地,无线耳机的左耳机和右耳机共用一个收发器,所述主无线收发器为一个无线耳机中的收发器,所述副无线收发器为另一个无线耳机中的收发器。Optionally, the left earphone of the wireless earphone corresponds to one transceiver, and the right earphone corresponds to one transceiver, and the primary wireless transceiver and the secondary wireless transceiver are two transceivers in the same wireless headset, respectively. Optionally, the left and right earphones of the wireless earphone share a transceiver, the main wireless transceiver is a transceiver in one wireless earphone, and the sub wireless transceiver is a transceiver in another wireless earphone.
在本申请中,无线耳机有两类,一类是无线耳机的左耳机对应一个收发器,右耳机对应一个收发器,这种情况下,主无线收发器和副无线收发器可以分别为同一无线耳机中的两个收发器。另一类是无线耳机的左耳机和右耳机共用一个收发器,这种情况下,主无线收发器为一个无线耳机中的收发器,副无线收发器为另一个无线耳机中的收发器,这样的 话,通过后者终端可以实现音乐分享的功能。In this application, there are two types of wireless earphones. One is the left earphone corresponds to one transceiver, and the right earphone corresponds to one transceiver. In this case, the primary wireless transceiver and the secondary wireless transceiver can be the same wireless receiver. Two transceivers in the headset. The other type is that the left and right earphones of a wireless earphone share a transceiver. In this case, the main wireless transceiver is a transceiver in one wireless earphone, and the secondary wireless transceiver is a transceiver in another wireless earphone. Then, the function of music sharing can be realized through the latter terminal.
第二方面,提供一种无线音频系统,所述无线音频系统包括主无线收发器和副无线收发器,所述主无线收发器和所述副无线收发器为无线耳机中的收发器。其中,主无线收发器和副无线收发器用于实现上述第一方面所述的传输音频数据的方法。In a second aspect, a wireless audio system is provided. The wireless audio system includes a primary wireless transceiver and a secondary wireless transceiver. The primary wireless transceiver and the secondary wireless transceiver are transceivers in a wireless headset. The primary wireless transceiver and the secondary wireless transceiver are used to implement the method for transmitting audio data described in the first aspect.
第三方面,提供一种传输音频数据的系统,所述系统包括终端和无线音频系统,所述无线音频系统为上述第二方面中所述的任一无线音频系统。According to a third aspect, a system for transmitting audio data is provided. The system includes a terminal and a wireless audio system. The wireless audio system is any of the wireless audio systems described in the second aspect.
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质应用于无线耳机,且所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的传输音频数据的方法。According to a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium is applied to a wireless headset, and the computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute The method for transmitting audio data according to the first aspect.
第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的传输音频数据的方法。In a fifth aspect, a computer program product containing instructions is provided, which when run on a computer, causes the computer to execute the method for transmitting audio data described in the first aspect above.
上述第二方面、第三方面、第四方面和第五方面所获得的技术效果与第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the second aspect, the third aspect, the fourth aspect, and the fifth aspect are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not repeated here.
图1是本申请实施例提供的一种传输音频数据的系统示意图;FIG. 1 is a schematic diagram of a system for transmitting audio data according to an embodiment of the present application; FIG.
图2是本申请实施例提供的另一种传输音频数据的系统示意图;2 is a schematic diagram of another system for transmitting audio data according to an embodiment of the present application;
图3是本申请实施例提供的一种的传输音频数据的方法流程图;3 is a flowchart of a method for transmitting audio data according to an embodiment of the present application;
图4是本申请实施例提供的一种链路关系示意图;4 is a schematic diagram of a link relationship according to an embodiment of the present application;
图5是本申请实施提供的另一种传输音频数据的方法流程图;5 is a flowchart of another method for transmitting audio data provided by the implementation of the present application;
图6是本申请实施例提供的另一种链路关系示意图;6 is a schematic diagram of another link relationship according to an embodiment of the present application;
图7是本申请实施例提供的另一种链路关系示意图;7 is a schematic diagram of another link relationship according to an embodiment of the present application;
图8是本申请实施例提供的一种无线音频系统框图。FIG. 8 is a block diagram of a wireless audio system according to an embodiment of the present application.
为使本申请的目的、技术方案和优点更加清楚,In order to make the purpose, technical solution and advantages of this application clearer,
在对本申请实施例进行解释说明之前,先对本申请实施例的应用场景进行介绍:Before explaining the embodiments of the present application, the application scenarios of the embodiments of the present application are introduced:
随着无线技术的发展,无线耳机因其无需与终端之间通过有线连接以进行通信而受到人们越来越多的欢迎。由于无线耳机与终端之间没有连接线,因此,在终端发送音频数据之后,无线耳机包括的左耳机和右耳机如何准确地获取音频数据将直接影响产品的用户体验。With the development of wireless technology, wireless earphones are more and more popular because they do not need to communicate with the terminal through a wired connection for communication. Because there is no cable between the wireless headset and the terminal, after the terminal sends audio data, how the left and right earphones included in the wireless headset accurately obtain the audio data will directly affect the user experience of the product.
相关技术中,终端与左耳机和右耳机中的一个耳机建立双向传输链路,以终端与右耳机建立双向传输链路为例进行说明。由于终端与右耳机之间建立有双向传输链路,因此,终端可以基于该双向传输链路向右耳机发送音频数据,终端发送的音频数据包括左声道数 据和右声道数据。这种情况下,左耳机可以通过以下两种方案获取音频数据。In the related art, the terminal establishes a bidirectional transmission link with one of the left earphone and the right earphone, and the terminal and the right earphone establish a bidirectional transmission link as an example for description. Because a bidirectional transmission link is established between the terminal and the right earphone, the terminal can send audio data to the right earphone based on the bidirectional transmission link. The audio data sent by the terminal includes left channel data and right channel data. In this case, the left earphone can obtain audio data through the following two schemes.
(1)全转发方案:当右耳机接收到终端发送的音频数据时,将接收到的音频数据全部转发给左耳机。这样的话,左耳机和右耳机均可获取到终端发送的音频数据,然后左耳机和右耳机均对获取的音频数据进行解析,得到左声道数据和右声道数据。之后,由左耳机播放音频数据中的左声道数据,右耳机播放音频数据中的右声道数据。(1) Full forwarding scheme: When the right earphone receives the audio data sent by the terminal, all the received audio data is forwarded to the left earphone. In this case, both the left earphone and the right earphone can obtain the audio data sent by the terminal, and then the left earphone and the right earphone parse the acquired audio data to obtain left channel data and right channel data. After that, the left earphone plays the left channel data in the audio data, and the right earphone plays the right channel data in the audio data.
(2)半转发方案:当右耳机接收到终端发送的音频数据时,对音频数据进行解析,得到左声道数据和右声道数据,然后右耳机将左声道数据发送给左耳机。左耳机获取到左声道数据之后,播放左声道数据,同时右耳机播放音频数据中的右声道数据。(2) Semi-forwarding scheme: When the right earphone receives the audio data sent by the terminal, it analyzes the audio data to obtain the left channel data and the right channel data, and then the right earphone sends the left channel data to the left earphone. After the left earphone acquires the left channel data, the left earphone data is played, while the right earphone plays the right channel data in the audio data.
显然,在上述两种方案中,需要右耳机向左耳机转发音频数据或左声道数据,这样将导致右耳机所需的功耗较大,容易导致左右耳机的功耗不均衡的问题。因此,本申请实施例提供一种传输音频数据的方法以降低无线耳机的功耗。Obviously, in the above two solutions, the right earphone needs to forward the audio data or the left channel data to the left earphone, which will cause the power consumption required by the right earphone to be large, and the power consumption of the left and right earphones may be unbalanced. Therefore, an embodiment of the present application provides a method for transmitting audio data to reduce power consumption of a wireless headset.
接下来对本申请实施例提供的传输音频数据的系统进行解释说明,如图1所示,系统100包括终端101和无线音频系统102,终端101与无线音频系统102之间通过无线方式连接以进行通信。终端101用于发送音频数据,无线音频系统102用于获取音频数据并播放音频数据。Next, the system for transmitting audio data provided in the embodiment of the present application is explained. As shown in FIG. 1, the system 100 includes a terminal 101 and a wireless audio system 102. The terminal 101 and the wireless audio system 102 are wirelessly connected for communication. . The terminal 101 is configured to send audio data, and the wireless audio system 102 is configured to acquire audio data and play the audio data.
其中,无线音频系统102包括主无线收发器1021和副无线收发器1022,主无线收发器1021和副无线收发器1022与终端之间的连接方式将在下述实施例中进行详细解释说明,在此先不阐述。The wireless audio system 102 includes a primary wireless transceiver 1021 and a secondary wireless transceiver 1022. The connection between the primary wireless transceiver 1021 and the secondary wireless transceiver 1022 and the terminal will be explained in detail in the following embodiments. Here, Do not elaborate.
在本申请实施例中,主无线收发器1021和副无线收发器1022为无线耳机中的收发器。为了后续便于说明,在此先对无线耳机的结构进行解释说明。In the embodiment of the present application, the primary wireless transceiver 1021 and the secondary wireless transceiver 1022 are transceivers in a wireless headset. In order to facilitate the subsequent description, the structure of the wireless earphone is explained here first.
其中,无线耳机也称为无线立体声音频扬声器。现有的无线耳机通常包括射频(Radio Freqency,RF)收发器和左右两个扬声器。这里使用的术语“扬声器”指的是任何电声换能器,并且包括但不限于家庭和专业音频扬声器。无线耳机可以使用标准无线协议,也可以使用专有无线协议或专有协议。这里使用的术语“标准无线协议”或“标准协议”是指任何开放或公共可用的无线协议,或者是指作为标准组织或特殊兴趣组的产品的任何无线协议,包括但不限于蓝牙无线协议和Wi-Fi(基于电气和电子工程师协会的IEEE 802.11标准系列)无线协议。这里使用的术语“专有无线协议”或“专有协议”是指除标准无线协议之外的任何无线协议。Among them, wireless headphones are also called wireless stereo audio speakers. Existing wireless headphones usually include a radio frequency (RF) transceiver and two left and right speakers. The term "speaker" as used herein refers to any electroacoustic transducer and includes, but is not limited to, home and professional audio speakers. Wireless headsets can use standard wireless protocols, as well as proprietary wireless protocols or proprietary protocols. The term "standard wireless protocol" or "standard protocol" as used herein refers to any open or publicly available wireless protocol, or any wireless protocol that is a product of a standards organization or special interest group, including but not limited to the Bluetooth wireless protocol and Wi-Fi (based on the IEEE 802.11 standard series of the Institute of Electrical and Electronics Engineers) wireless protocol. The term "proprietary wireless protocol" or "proprietary protocol" as used herein refers to any wireless protocol other than standard wireless protocols.
目前,无线耳机主要有两类,一类是无线耳机的左耳机对应一个收发器,右耳机对应一个收发器,如图1所示的无线耳机。比如,真无线耳机(True Wireless Stereo)属于此种类型的无线耳机,真无线耳机是指左耳机和右耳机之间没有连接线的耳机。另一类是无线耳机的左耳机和右耳机共用一个收发器,比如左耳机和右耳机之间通过有线方式连接的无线耳机属于此种类型的无线耳机。需要说明的是,本申请实施例中所述的左耳机或右耳机是指无线耳机中的左扬声器或右扬声器。At present, there are two main types of wireless earphones. One is the left earphone corresponding to a transceiver and the right earphone corresponds to a transceiver, as shown in FIG. 1. For example, True Wireless Earphones (True Wireless Stereo) belong to this type of wireless earphones. True wireless earphones refer to earphones without a cable between the left earphone and the right earphone. The other type is that the left and right earphones of a wireless earphone share a transceiver. For example, a wireless earphone connected by a wired method between the left earphone and the right earphone belongs to this type of wireless earphone. It should be noted that the left earphone or right earphone described in the embodiments of the present application refers to the left or right speaker in the wireless earphone.
因此,在一种实现方式中,系统100应用于无线耳机的左耳机对应一个收发器,右耳机对应一个收发器的场景中,此时,主无线收发器和副无线收发器分别为同一无线耳机中的两个收发器。这种情况下,无线耳机中具体是左耳机对应的收发器为主无线收发器还是右耳机对应的收发器为主无线收发器,有两种确定方式:(1)在无线耳机出厂时,已经将 无线耳机包括的左耳机对应的收发器和右耳机对应的收发器中的一个设置为主无线收发器,另一个设置为副无线收发器。(2)在无线耳机每次与终端进行连接时,将先与终端建立双向传输链路的耳机对应的收发器确定为主无线收发器,将剩下的一个耳机对应的收发器确定为副无线收发器。其中,图1仅仅是以左耳机对应的收发器为副无线收发器,右耳机对应的收发器为主无线收发器为例进行说明,并不构成对本申请实施例的限定。Therefore, in one implementation, the system 100 is applied to a scenario in which the left headset corresponds to one transceiver and the right headset corresponds to one transceiver. At this time, the primary wireless transceiver and the secondary wireless transceiver are the same wireless headset. Two transceivers in the. In this case, there are two ways to determine whether the transceiver corresponding to the left headset is the main wireless transceiver or the transceiver corresponding to the right headset in the wireless headset: (1) When the wireless headset leaves the factory, One of the transceiver corresponding to the left earphone and the transceiver corresponding to the right earphone included in the wireless earphone is set as the primary wireless transceiver, and the other is set as the secondary wireless transceiver. (2) Each time a wireless headset is connected to the terminal, the transceiver corresponding to the headset that first establishes a bidirectional transmission link with the terminal is determined as the primary wireless transceiver, and the transceiver corresponding to the remaining headset is determined as the secondary wireless transceiver. In FIG. 1, the transceiver corresponding to the left earphone is a secondary wireless transceiver, and the transceiver corresponding to the right earphone is a main wireless transceiver, which does not limit the embodiment of the present application.
在另一种实现方式中,系统100应用于无线耳机的左耳机和右耳机共用一个收发器的场景中,此时,主无线收发器为一个无线耳机中的收发器,副无线收发器为另一个无线耳机中的收发器。这种情况下,相当于有两个无线耳机接入终端,当终端发送音频数据时,这两个无线耳机均可获取到该音频数据,以实现音乐分享的功能。其中,两个无线耳机中的两个收发器中哪个为主无线收发器哪个为副无线收发器的确定方式可以为:将先与终端建立双向传输链路的无线耳机中的收发器确定为主无线收发器,将剩下的一个无线耳机中的收发器确定为副无线收发器。此时,本申请实施例提供的传输音频数据的系统可以为图2所示的传输音频数据的系统,在此不再详细阐述。In another implementation, the system 100 is applied to a scenario in which the left and right earphones of a wireless earphone share a single transceiver. At this time, the main wireless transceiver is a transceiver in one wireless earphone, and the secondary wireless transceiver is another transceiver. Transceiver in a wireless headset. In this case, it is equivalent to having two wireless earphones accessing the terminal. When the terminal sends audio data, both of the wireless earphones can obtain the audio data to implement the function of music sharing. The method for determining which of the two transceivers in the two wireless headsets is the primary wireless transceiver and which is the secondary wireless transceiver may be: determining the transceiver in the wireless headset that first establishes a bidirectional transmission link with the terminal as the primary. The wireless transceiver determines the transceiver in the remaining wireless headset as a secondary wireless transceiver. At this time, the system for transmitting audio data provided in the embodiment of the present application may be the system for transmitting audio data shown in FIG. 2, which is not described in detail here.
其中,无线耳机中的收发器可以为蓝牙收发器,当然还可以为其他类型的无线收发器,本申请实施例在此不再详细阐述。The transceiver in the wireless headset may be a Bluetooth transceiver, and of course, it may also be another type of wireless transceiver, which is not described in detail in the embodiment of the present application.
接下来对本申请实施例的提供的传输音频数据的方法进行详细阐述。其中,主无线收发器、副无线收发器以及终端之间如何建立链路将决定数据如何传输。需要说明的是,在本申请实施例中,主无线收发器、副无线收发器以及终端之间有以下两种链路关系,第一种链路关系:主无线收发器与终端之间建立有无线链路,副无线收发器与终端之间也建立有无线链路;第二种链路关系:主无线收发器与终端之间建立有无线链路,副无线收发器与主无线收发器之间也建立有无线链路。下面两个实施例将分别基于第一种链路关系和第二种链路关系说明本申请实施例提供的传输音频数据的方法。Next, the method for transmitting audio data provided in the embodiment of the present application is described in detail. Among them, how to establish a link between the primary wireless transceiver, the secondary wireless transceiver and the terminal will determine how the data is transmitted. It should be noted that, in the embodiment of the present application, there are the following two link relationships between the primary wireless transceiver, the secondary wireless transceiver, and the terminal. The first type of link relationship: The primary wireless transceiver and the terminal are established. Wireless link, a wireless link is also established between the secondary wireless transceiver and the terminal; the second link relationship: a wireless link is established between the primary wireless transceiver and the terminal, and the secondary wireless transceiver is connected to the primary wireless transceiver. There are also wireless links established. The following two embodiments will describe the method for transmitting audio data provided by the embodiments of the present application based on the first link relationship and the second link relationship, respectively.
图3是本申请实施例提供的一种的传输音频数据的方法流程图,应用于上述第一种链路关系。如图3所示,该方法包括如下步骤:FIG. 3 is a flowchart of a method for transmitting audio data according to an embodiment of the present application, which is applied to the first link relationship. As shown in FIG. 3, the method includes the following steps:
步骤301:主无线收发器与终端建立双向传输链路,并基于双向传输链路接收终端发送的音频数据。Step 301: The main wireless transceiver establishes a bidirectional transmission link with the terminal, and receives audio data sent by the terminal based on the bidirectional transmission link.
由于终端与主无线收发器之间建立有双向传输链路,因此,当终端基于双向传输链路发送音频数据之后,主无线收发器就可以直接基于双向传输链路接收音频数据。Because a bidirectional transmission link is established between the terminal and the main wireless transceiver, after the terminal sends audio data based on the bidirectional transmission link, the main wireless transceiver can directly receive audio data based on the bidirectional transmission link.
其中,终端与主无线收发器之间建立双向传输链路是指:终端与主无线收发器预先建立针对双向传输链路的协议,在协议中约定双方发送数据采用的编码方式、加密方式以及发送数据采用的时间点信息等信息。终端基于双向传输链路发送音频数据是指:终端按照约定的编码方式、加密方式和时间点信息等信息发送音频数据。因此,主无线收发器可以根据约定的编码方式、加密方式和时间点信息等信息接收音频数据,并基于双向传输链路向终端回复信息。为了后续便于说明,将在协议中约定双方发送数据采用的编码方式、加密方式以及发送数据采用的时间点信息等信息统称为双向传输链路的建链信息,也即是,双向传输链路的建链信息中包括协议中约定双方发送数据采用的编码方式、加密方式以及发送数据采用的时间点信息等信息中的至少一条信息。Among them, the establishment of a bidirectional transmission link between the terminal and the main wireless transceiver means that the terminal and the main wireless transceiver establish a protocol for the bidirectional transmission link in advance, and in the agreement, the encoding method, encryption method and transmission method used by the two parties to send data are agreed. Information such as the point-in-time information used by the data. The terminal sends audio data based on a bidirectional transmission link means that the terminal sends audio data according to information such as an agreed encoding method, encryption method, and time point information. Therefore, the master wireless transceiver can receive audio data according to the information such as the agreed encoding method, encryption method, and point-in-time information, and reply to the terminal based on the two-way transmission link. For the convenience of explanation later, information such as the encoding method, encryption method, and point-in-time information used by the two parties to send data in the agreement is collectively referred to as the information of the two-way transmission link, that is, the two-way transmission link. The link establishment information includes at least one piece of information in the agreement, such as the encoding method, the encryption method, and the point-in-time information used by the parties to send data.
其中,由于任一设备均有对应的系统时钟,且一个设备的系统时钟可能与另一设备的 系统时钟不同,因此,发送数据采用的时间点信息包括建立无线链路的两端设备各自的系统时钟信息,以及具体发送数据时的时间点信息。Among them, since any device has a corresponding system clock, and the system clock of one device may be different from the system clock of the other device, the point-in-time information used to send data includes the respective systems of the devices at both ends of the wireless link. Clock information, and point-in-time information when sending data specifically.
步骤302:副无线收发器从终端获取双向传输链路的建链信息,并基于建链信息单向监听终端发送的音频数据。Step 302: The secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the terminal, and monitors the audio data sent by the terminal unidirectionally based on the link establishment information.
虽然双向传输链路是终端与主无线收发器之间的无线链路,但是如果副无线收发器能够获取到双向传输链路的建链信息,那么副无线收发器就可以基于双向传输链路的建链信息单向监听音频数据。其中,副无线收发器基于双向传输链路的建链信息监听音频数据是指:当终端发送音频数据后,副无线收发器基于双向传输链路的建链信息对终端发送的信号进行诸如解码和解密等处理,以获取到双向传输链路上传输的音频数据。Although the two-way transmission link is a wireless link between the terminal and the main wireless transceiver, if the secondary wireless transceiver can obtain the link establishment information of the two-way transmission link, then the secondary wireless transceiver can be based on the two-way transmission link. Link information monitors audio data in one direction. Among them, the monitoring of audio data by the secondary wireless transceiver based on the link establishment information of the bidirectional transmission link means that after the terminal sends audio data, the secondary wireless transceiver performs signals such as decoding and Decryption and other processing to obtain audio data transmitted on the bidirectional transmission link.
其中,副收发器基于建链信息单向监听终端发送的音频数据是指:副收发器仅仅监听双向传输链路上传输的音频数据,而不向终端回复任何数据。Among them, the audio data sent by the secondary transceiver to the monitoring terminal based on the link establishment information means that the secondary transceiver only monitors the audio data transmitted on the bidirectional transmission link, and does not reply any data to the terminal.
在一种可能的实现方式中,终端与副无线收发器之间建立有第一低功耗链路。这种情况下,副无线收发器可以基于第一低功耗链路接收终端发送的双向传输链路的建链信息。In a possible implementation manner, a first low-power link is established between the terminal and the secondary wireless transceiver. In this case, the secondary wireless transceiver may receive the link establishment information of the bidirectional transmission link sent by the terminal based on the first low power consumption link.
其中,双向传输链路的建链信息是终端在检测到音频播放指令时获取的,或者,是终端在确定双向传输链路和第一低功耗链路建立成功时获取的。也即是,当主无线收发器和副无线收发器成功接入终端时,终端可以将双向传输链路的建链信息发送给副无线收发器,以使副无线收发器能够监听到双向传输链路上传输的音频数据。或者,当终端在检测到音频播放指令时,表明当前存在语音业务,此时终端再将双向传输链路的建链信息发送给副无线收发器,这样可以避免副无线收发器从接入终端的时刻就开始监听双向传输链路,以降低主副无线收发器的功耗。The link establishment information of the two-way transmission link is obtained by the terminal when it detects an audio playback instruction, or it is obtained by the terminal when it is determined that the two-way transmission link and the first low-power link are successfully established. That is, when the primary wireless transceiver and the secondary wireless transceiver successfully access the terminal, the terminal can send the link establishment information of the bidirectional transmission link to the secondary wireless transceiver, so that the secondary wireless transceiver can monitor the two-way transmission link. Audio data transmitted on the Internet. Alternatively, when the terminal detects an audio playback instruction, it indicates that there is currently a voice service. At this time, the terminal sends the link establishment information of the two-way transmission link to the secondary wireless transceiver, which can prevent the secondary wireless transceiver from accessing the terminal. Start monitoring the two-way transmission link at any time to reduce the power consumption of the primary and secondary wireless transceivers.
另外,为了避免终端基于双向传输链路传输的数据被泄密,终端可能会严格保护双向传输链路的建链信息。这时,终端可以向主无线收发器发送建链信息获取请求,当主无线收发器接收到终端发送的建链信息获取请求时,获取双向传输链路的建链信息,主无线收发器基于双向传输链路向终端发送双向传输链路的建链信息,以使终端基于第一低功耗链路向副无线收发器转发双向传输链路的建链信息。其中,终端向主无线收发器发送建链信息获取请求的时机仍然可以为当主无线收发器和副无线收发器成功接入终端时,也可以为当前存在语音业务时。In addition, in order to prevent the data transmitted by the terminal based on the two-way transmission link from being leaked, the terminal may strictly protect the link establishment information of the two-way transmission link. At this time, the terminal can send a link establishment information acquisition request to the master wireless transceiver. When the master wireless transceiver receives the link establishment information acquisition request sent by the terminal, it obtains the link establishment information of the bidirectional transmission link. The master wireless transceiver is based on the bidirectional transmission. The link sends the bidirectional transmission link establishment information to the terminal, so that the terminal forwards the bidirectional transmission link establishment information to the secondary wireless transceiver based on the first low power consumption link. The timing for the terminal to send the link establishment information acquisition request to the primary wireless transceiver may still be when the primary wireless transceiver and the secondary wireless transceiver successfully access the terminal, or when a voice service currently exists.
其中,主无线收发器基于双向传输链路向终端发送双向传输链路的建链信息是指:主无线收发器将双向传输链路的建链信息进行打包,将打包之后的建链信息发送给终端。后续当副无线收发器接收到该打包之后的建链信息时,对该打包之后的建链信息进行解析,即可得到双向传输链路的建链信息。The main wireless transceiver sends the two-way transmission link establishment information to the terminal based on the two-way transmission link. The main wireless transceiver packs the two-way transmission link establishment information and sends the packaged information to the terminal. terminal. Subsequently, when the secondary wireless transceiver receives the packetized link-building information, it analyzes the packetized link-building information to obtain the link-building information of the bidirectional transmission link.
步骤303:副无线收发器基于第三低功耗链路向主无线收发器发送监听结果指示信息,监听结果指示信息用于指示副无线收发器是否在指定时隙内监听到音频数据,第三低功耗链路是主无线收发器与副无线收发器之间的无线链路。Step 303: The secondary wireless transceiver sends monitoring result indication information to the primary wireless transceiver based on the third low-power link. The monitoring result indication information is used to indicate whether the secondary wireless transceiver has monitored audio data within a specified time slot. A low power link is a wireless link between the primary and secondary wireless transceivers.
在终端发送音频数据之后,主无线收发器和副无线收发器需要向终端上报接收结果,以便终端确定是否需要重传音频数据。在一种可能的实现方式中,副无线收发器向主无线收发器上报监听结果,然后由主无线收发器统一向终端回复两者获取音频数据的结果。After the terminal sends audio data, the primary wireless transceiver and the secondary wireless transceiver need to report the reception results to the terminal so that the terminal can determine whether the audio data needs to be retransmitted. In a possible implementation manner, the secondary wireless transceiver reports the monitoring result to the primary wireless transceiver, and then the primary wireless transceiver responds to the terminal with the result of obtaining audio data by both.
其中,当副无线收发器确定监听到音频数据时,发送的监听结果指示信息可以为ACK信息,当副无线收发器确定没有监听到音频数据时,发送的监听结果指示信息可以为NACK 信息。这种情况下,第三低功耗链路是用于传输ACK信息和NACK信息的链路,因此,第三低功耗链路也通常被称为ACK链路。其中,第三低功耗链路可以为任意可以传输ACK信息和NACK信息的低功耗无线链路,本申请实施例对第三低功耗链路的具体形式不做限定。When the secondary wireless transceiver determines that the audio data is monitored, the monitoring result indication information sent may be ACK information. When the secondary wireless transceiver determines that the audio data is not monitored, the monitoring result indication information sent may be NACK information. In this case, the third low-power link is a link for transmitting ACK information and NACK information, and therefore, the third low-power link is also commonly referred to as an ACK link. The third low-power link can be any low-power wireless link that can transmit ACK information and NACK information. The embodiment of this application does not limit the specific form of the third low-power link.
另外,由于第三低功耗链路仅仅用于传输监听结果指示信息,因此,可以在主无线收发器与副无线收发器接入终端时建立第三低功耗链路,之后第三低功耗链路一直存在。当然也可以在存在语音业务时再建立第三低功耗链路,在语音业务结束时断开第三低功耗链路,以降低主副无线收发器的功耗,本申请实施例在此不做限定。In addition, because the third low-power link is only used to transmit monitoring result indication information, a third low-power link can be established when the primary wireless transceiver and the secondary wireless transceiver access the terminal, and then the third low-power link The cost of the link is always present. Of course, it is also possible to establish a third low-power link when there is a voice service and disconnect the third low-power link at the end of the voice service to reduce the power consumption of the primary and secondary wireless transceivers. This embodiment of the present application is here No restrictions.
需要说明的是,终端与主无线收发器和副无线收发器之间交互信息是按照时隙进行的,时隙是指一个时间段,每个时隙有开始时间点和结束时间点。比如,终端发送音频数据是在指定时隙内发送的,因此,副无线收发器监听到音频数据是指副无线收发器在指定时隙内监听到音频数据。It should be noted that the information exchange between the terminal, the primary wireless transceiver and the secondary wireless transceiver is performed according to time slots. A time slot refers to a time period, and each time slot has a start time point and an end time point. For example, audio data sent by a terminal is sent within a specified time slot. Therefore, listening to audio data by the secondary wireless transceiver means that the secondary wireless transceiver monitors audio data within the specified time slot.
另外,当副无线收发器确定没有监听到音频数据时,副无线收发器也可以不发送任何信息,这样的话,如果主无线收发器没有接收到副无线收发器发送的任何信息,也可以确定副无线收发器没有监听到音频数据。In addition, when the secondary wireless transceiver determines that no audio data is being monitored, the secondary wireless transceiver may not send any information. In this case, if the primary wireless transceiver does not receive any information from the secondary wireless transceiver, it may also determine the secondary wireless transceiver. The wireless transceiver is not listening to audio data.
步骤304:当主无线收发器根据监听结果指示信息确定副无线收发器监听到音频数据,且确定主无线收发器在指定时隙内接收到音频数据时,向终端回复确认ACK信息。Step 304: When the primary wireless transceiver determines that the secondary wireless transceiver listens to the audio data according to the monitoring result indication information, and determines that the primary wireless transceiver receives the audio data within a specified time slot, it returns a confirmation ACK message to the terminal.
由于在本申请实施例中,由副无线收发器向主无线收发器上报监听结果,然后由主无线收发器统一向终端回复两者获取音频数据的结果,因此,只有主无线收发器确定两者均获取到音频数据时,才会向终端回复ACK信息。In the embodiment of the present application, the secondary wireless transceiver reports the monitoring result to the primary wireless transceiver, and then the primary wireless transceiver uniformly responds to the terminal to obtain the audio data acquisition results. Therefore, only the primary wireless transceiver determines the two. When the audio data is obtained, the ACK message is returned to the terminal.
相应地,当主无线收发器根据监听结果指示信息确定副无线收发器没有在指定时隙内监听到音频数据,和/或,主无线收发器确定主无线收发器没有在指定时隙内接收到音频数据时,向终端回复NACK信息。也即是,如果主无线收发器确定副无线收发器和主无线收发器中任一个没有获取到音频数据,都将向终端回复NACK信息,以使终端重传该音频数据。Correspondingly, when the primary wireless transceiver determines that the secondary wireless transceiver does not listen to audio data in the specified time slot according to the monitoring result indication information, and / or, the primary wireless transceiver determines that the primary wireless transceiver does not receive audio in the specified time slot When data is received, a NACK message is returned to the terminal. That is, if the primary wireless transceiver determines that neither the secondary wireless transceiver nor the primary wireless transceiver has acquired audio data, it will reply a NACK message to the terminal so that the terminal retransmits the audio data.
可选地,如果主无线收发器确定副无线收发器和主无线收发器中任一个没有获取到音频数据,主无线收发器还可以不发送任何信息,这样的话,如果终端没有在指定时隙内接收到主无线收发器发送的任何信息,也可以确定副无线收发器和主无线收发器中任一个没有获取到音频数据,此时终端也可以重传该音频数据。Optionally, if the primary wireless transceiver determines that neither the secondary wireless transceiver nor the primary wireless transceiver has acquired audio data, the primary wireless transceiver may not send any information. In this case, if the terminal is not in the designated time slot After receiving any information sent by the primary wireless transceiver, it may also be determined that neither the secondary wireless transceiver nor the primary wireless transceiver has acquired audio data, and the terminal may retransmit the audio data at this time.
上述步骤301至步骤304用于说明主无线收发器和副无线收发器如何获取到终端发送的音频数据。由于副无线收发器是通过监听获取音频数据的,无需主无线收发器将音频数据转发给副无线收发器,这样可以降低主无线收发器的功耗,进而均衡主无线收发器的功耗和副无线收发器的功耗。The above steps 301 to 304 are used to describe how the primary wireless transceiver and the secondary wireless transceiver obtain audio data sent by the terminal. Since the secondary wireless transceiver acquires audio data through monitoring, the primary wireless transceiver does not need to forward audio data to the secondary wireless transceiver. This can reduce the power consumption of the primary wireless transceiver, and thus balance the power consumption of the primary wireless transceiver and the secondary wireless transceiver. Wireless transceiver power consumption.
进一步地,在本申请实施例中,主无线收发器和副无线收发器还具有生理特征信息检测功能,比如,可以进行运动信息检测、健康信息检测或睡眠信息检测等,这时,主无线收发器和副无线收发器还需向终端上报检测到的数据。示例地,副无线收发器可以通过下述步骤305上报检测到的数据,主无线收发器可以通过下述步骤306上报检测到的数据。Further, in the embodiment of the present application, the primary wireless transceiver and the secondary wireless transceiver also have physiological feature information detection functions, for example, can perform motion information detection, health information detection, or sleep information detection. At this time, the main wireless transceiver The transceiver and the secondary wireless transceiver also need to report the detected data to the terminal. For example, the secondary wireless transceiver may report the detected data through step 305 described below, and the primary wireless transceiver may report the detected data through step 306 described below.
步骤305:副无线收发器检测佩戴副无线收发器的第一用户的生理特征信息,得到第一检测数据,并基于第一低功耗链路向终端上报第一检测数据,以使终端显示第一检测数据。Step 305: The secondary wireless transceiver detects the physiological characteristic information of the first user wearing the secondary wireless transceiver, obtains the first detection data, and reports the first detection data to the terminal based on the first low-power link, so that the terminal displays the first -Test data.
由于上报检测数据所需的功耗较低,并且终端与副无线收发器之间已经有第一低功耗链路,因此,副无线收发器可以通过第一低功耗链路向终端上报第一检测数据。当终端接收到副无线收发器上报的第一检测数据时,可以对第一检测数据进行数据分析,并显示数据分析之后的第一检测数据。第一检测数据可以为运动数据、健康数据或睡眠数据等。Because the power consumption required to report detection data is low, and the first low-power link already exists between the terminal and the secondary wireless transceiver, the secondary wireless transceiver can report the first low-power link to the terminal through the first low-power link. -Test data. When the terminal receives the first detection data reported by the secondary wireless transceiver, it may perform data analysis on the first detection data and display the first detection data after the data analysis. The first detection data may be exercise data, health data, or sleep data.
示例地,第一低功耗链路可以为蓝牙低功耗(Bluetooth Low Energy,BLE)链路或者其他类型的低功耗链路,本申请实施例对第一低功耗链路的具体形式不做限定。For example, the first low-power link can be a Bluetooth Low Energy (BLE) link or other types of low-power links. The specific form of the first low-power link in this embodiment of the present application is No restrictions.
步骤306:主无线收发器检测佩戴主无线收发器的第二用户的生理特征信息,得到第二检测数据,并基于双向传输链路或第二低功耗链路向终端上报第二检测数据,以使终端显示第二检测数据,第二低功耗链路为终端与主无线收发器之间的无线链路。Step 306: The main wireless transceiver detects the physiological characteristic information of the second user wearing the main wireless transceiver, obtains the second detection data, and reports the second detection data to the terminal based on the two-way transmission link or the second low power consumption link. For the terminal to display the second detection data, the second low power consumption link is a wireless link between the terminal and the main wireless transceiver.
由于终端与主无线收发器之间已经有双向传输链路,因此,主无线收发器可以通过双向传输链路向终端上报第二检测数据。当终端接收到主无线收发器上报的第二检测数据时,可以对第二检测数据进行数据分析,并显示数据分析之后的第二检测数据。第二检测数据可以为运动数据、健康数据或睡眠数据等。此时,双向传输链路同时承载传输音频数据和第二检测数据的功能。Because the terminal and the main wireless transceiver already have a two-way transmission link, the main wireless transceiver can report the second detection data to the terminal through the two-way transmission link. When the terminal receives the second detection data reported by the main wireless transceiver, it can perform data analysis on the second detection data and display the second detection data after the data analysis. The second detection data may be exercise data, health data, or sleep data. At this time, the bidirectional transmission link carries the function of transmitting audio data and second detection data at the same time.
另外,由于传输音频数据的要求比较高,导致主无线收发器基于双向传输链路传输音频数据所需的功耗也比较大,但是传输检测数据实际上并不需要这么大的功耗。因此,还可以在主无线收发器与终端之间建立第二低功耗链路,这样的话,第二低功耗链路用于传输第二检测数据,双向传输链路用于传输音频数据,以降低主无线收发器的功耗。比如,双向传输链路为蓝牙(BlueTooth,BT)链路,第二低功耗链路为BLE链路,其中,BT链路可以为蓝牙基本速率(Basic Rate,BR)链路或增强数据率(Enhanced Data Rate,EDR)链路。当然,双向传输链路和第二低功耗链路也可以为其他形式的无线链路,本申请实施例在此不做限定。In addition, because the requirements for transmitting audio data are relatively high, the power consumption of the main wireless transceiver to transmit audio data based on the bidirectional transmission link is also relatively large, but transmitting such detection data does not actually require such a large power consumption. Therefore, a second low-power link can also be established between the main wireless transceiver and the terminal. In this case, the second low-power link is used to transmit the second detection data, and the two-way transmission link is used to transmit the audio data. To reduce the power consumption of the main wireless transceiver. For example, the two-way transmission link is a Bluetooth (BT) link, and the second low-power link is a BLE link. The BT link can be a Bluetooth Basic Rate (BR) link or an enhanced data rate. (Enhanced Data Rate, EDR) link. Of course, the two-way transmission link and the second low power consumption link may also be other forms of wireless links, which are not limited in the embodiment of the present application.
也即是,在本申请实施例中,可以通过副无线收发器检测第一用户的生理特征信息,并通过主无线收发器检测第二用户的生理特征信息,以使无线耳机具有生理特征信息检测功能,拓展了无线耳机的应用。其中,第一用户和第二用户为不同的用户。示例地,可以仅通过副无线收发器检测第一用户的生理特征信息,或者仅通过主无线收发器检测第二用户的生理特征信息,本申请实施例在此不做具体限定。That is, in the embodiment of the present application, the physiological characteristic information of the first user may be detected by the secondary wireless transceiver, and the physiological characteristic information of the second user may be detected by the primary wireless transceiver, so that the wireless headset has physiological characteristic information detection. Features, expanding the application of wireless headphones. The first user and the second user are different users. For example, the physiological characteristic information of the first user may be detected only by the secondary wireless transceiver, or the physiological characteristic information of the second user may be detected only by the primary wireless transceiver, which is not specifically limited in this embodiment of the present application.
需要说明的是,上述步骤303和步骤304仅仅是主副无线收发器向终端上报获取音频数据情况的一种方式,在本发明实施例中,副无线收发器可以通过发送干扰信息的方式向终端通知自身没有监听到音频数据。其中,副无线收发器通过发送干扰信息的方式向终端通知自身没有监听到音频数据的实现方式将在下述图5所示的实施例中详细解释说明,在此先不展开阐述。It should be noted that the above steps 303 and 304 are only a way for the primary and secondary wireless transceivers to report the situation of obtaining audio data to the terminal. In the embodiment of the present invention, the secondary wireless transceiver may send interference information to the terminal. Notify itself that no audio data is being monitored. The implementation manner in which the secondary wireless transceiver sends the interference information to notify the terminal that it has not listened to the audio data will be explained in detail in the embodiment shown in FIG. 5 below, and will not be described here.
值得注意的是,当副无线收发器通过发送干扰信息的方式向终端通知自身没有监听到音频数据时,如果此时主副无线收发器仍然通过上述步骤305和步骤306上报检测数据,干扰信息可能会影响终端接收检测数据,因此,在这种情况下,主副无线收发器可以不向终端上报检测数据。It is worth noting that when the secondary wireless transceiver notifies the terminal that it is not listening to audio data by sending interference information, if the primary and secondary wireless transceivers still report detection data through the above steps 305 and 306, the interference information may Will affect the terminal to receive detection data, so in this case, the master and slave wireless transceivers may not report detection data to the terminal.
另外,当主副无线收发器不通过上述步骤305和步骤306上报检测数据时,副无线收发器基于双向传输链路的建链信息监听音频数据之后,还可以基于双向传输链路的建链信息监听主无线收发器发送的数据。这种情况下,副无线收发器在获取到双向传输链路的建 链信息之后解除第一低功耗链路,以降低主副无线收发器之间的功耗。在本申请实施例中,将这种监听方案称为全监听方案,关于全监听方案的详细实施方式可以参考图5所示的实施例,在此先不展开说明。In addition, when the primary and secondary wireless transceivers do not report the detection data through the above steps 305 and 306, after the secondary wireless transceiver monitors the audio data based on the bidirectional transmission link establishment information, it can also monitor the bidirectional transmission link establishment information. Data sent by the master wireless transceiver. In this case, the secondary wireless transceiver releases the first low power consumption link after acquiring the link establishment information of the bidirectional transmission link, so as to reduce the power consumption between the primary and secondary wireless transceivers. In the embodiment of the present application, this monitoring scheme is referred to as a full monitoring scheme. For detailed implementation of the full monitoring scheme, reference may be made to the embodiment shown in FIG. 5, which will not be described here.
由于本申请实施例中的主无线收发器和副无线收发器可以分别为同一无线耳机中的两个收发器。也可以是:主无线收发器为一个无线耳机的收发器,副无线收发器为另一个无线耳机的收发器。下面将针对这两种情况分别对上述步骤301至步骤306进行举例说明。Because the primary wireless transceiver and the secondary wireless transceiver in the embodiments of the present application may be two transceivers in the same wireless headset, respectively. It can also be: the main wireless transceiver is a transceiver of a wireless headset, and the secondary wireless transceiver is a transceiver of another wireless headset. The above steps 301 to 306 will be exemplified respectively for these two cases.
情况1:无线耳机的左耳机对应一个收发器,右耳机对应一个收发器,主无线收发器和副无线收发器可以分别为同一无线耳机中的两个收发器。Case 1: The left earphone of the wireless earphone corresponds to one transceiver, and the right earphone corresponds to one transceiver. The primary wireless transceiver and the secondary wireless transceiver may be two transceivers in the same wireless headset, respectively.
在情况1中,假设无线耳机中的左耳机对应的收发器为副无线收发器、无线耳机中的右耳机对应的收发器为主无线收发器。当无线耳机接入终端时,左耳机对应的收发器、右耳机对应的收发器和终端三者将建立图4所示的链路关系,在图4中,副无线收发器为左耳机对应的收发器,主无线收发器为右耳机对应的收发器。如图4所示,右耳机对应的收发器与终端之间建立有双向传输链路,左耳机对应的收发器与终端之间建立有第一低功耗链路,右耳机对应的收发器与终端之间还建立有第二低功耗链路,左耳机对应的收发器与右耳机对应的收发器之间建立有第三低功耗链路。其中,双向传输链路可以为BT链路,第一低功耗链路、第二低功耗链路和第三低功耗链路可以为BLE链路。In case 1, it is assumed that the transceiver corresponding to the left earphone in the wireless earphone is a sub wireless transceiver, and the transceiver corresponding to the right earphone in the wireless earphone is the main wireless transceiver. When the wireless headset is connected to the terminal, the transceiver corresponding to the left headset, the transceiver corresponding to the right headset, and the terminal will establish the link relationship shown in FIG. 4. In FIG. 4, the sub wireless transceiver is corresponding to the left headset. Transceiver, the main wireless transceiver is the transceiver corresponding to the right earphone. As shown in FIG. 4, a bidirectional transmission link is established between the transceiver corresponding to the right earphone and the terminal, a first low power link is established between the transceiver corresponding to the left earphone and the terminal, and the transceiver corresponding to the right earphone is A second low power consumption link is also established between the terminals, and a third low power consumption link is established between the transceiver corresponding to the left earphone and the transceiver corresponding to the right earphone. The two-way transmission link may be a BT link, and the first low-power link, the second low-power link, and the third low-power link may be BLE links.
其中,终端中安装有与无线耳机对应的可执行应用程序,因此,在一种可能的实现方式中,当用户通过预设操作打开可执行应用程序时,终端通过可执行应用程序分别与左耳机对应的收发器和右耳机对应的收发器建立上述链路。The terminal has an executable application program corresponding to the wireless headset installed. Therefore, in a possible implementation manner, when the user opens the executable application program through a preset operation, the terminal uses the executable application program to separately communicate with the left headset. The corresponding transceiver and the transceiver corresponding to the right earphone establish the foregoing link.
当终端发送音频数据时,右耳机对应的收发器基于双向传输链路接收音频数据,左耳机对应的收发器基于双向传输链路的建链信息监听音频数据,并通过第三低功耗链路向右耳机对应的收发器回复监听结果,由右耳机对应的收发器统一向终端回复ACK信息或NACK信息。When the terminal sends audio data, the transceiver corresponding to the right earphone receives audio data based on the bidirectional transmission link, and the transceiver corresponding to the left earphone listens to audio data based on the bidirectional transmission link establishment information, and passes the third low-power link The monitoring result is returned to the transceiver corresponding to the right earphone, and the transceiver corresponding to the right earphone uniformly returns ACK information or NACK information to the terminal.
另外,当终端中的可执行应用程序检测到双向传输链路和第一低功耗链路均建立成功时,表明左耳机和右耳机均存在,此时可执行应用程序可以分别向左耳机对应的收发器和右耳机对应的收发器发送单声道播放指令,以使左耳机对应的收发器控制左耳机播放音频数据中的左声道数据,右耳机对应的收发器控制右耳机播放音频数据中的右声道数据。当终端中的可执行应用程序仅仅检测到双向传输链路建立成功时,表明当前只有右耳机存在,此时,可执行应用程序可以向右耳机对应的收发器发送双声道播放指令,以使右耳机对应的收发器控制右耳机播放音频数据中的左声道数据和右声道数据,也即是,由右耳机播放立体声。In addition, when the executable application in the terminal detects that the two-way transmission link and the first low-power link are successfully established, it indicates that both the left earphone and the right earphone exist. At this time, the executable application program can correspond to the left earphone respectively. The transceiver corresponding to the right earphone sends a mono playback instruction, so that the transceiver corresponding to the left earphone controls the left channel of the left earphone to play the audio data, and the transceiver corresponding to the right earphone controls the right earphone to play the audio data. Right channel data in. When the executable application in the terminal only detects that the two-way transmission link is successfully established, it indicates that only the right headset currently exists. At this time, the executable application can send a two-channel playback instruction to the transceiver corresponding to the right headset, so that The transceiver corresponding to the right earphone controls the right earphone to play the left channel data and the right channel data in the audio data, that is, stereo sound is played by the right earphone.
可选地,当右耳机对应的收发器在一定时间内未接收到左耳机对应的收发器基于第三低功耗链路上报的ACK信息时,右耳机对应的收发器可以自动控制右耳机播放音频数据中的左声道数据和右声道数据,也即是,由右耳机自动播放立体声。Optionally, when the transceiver corresponding to the right headset does not receive the ACK information reported by the transceiver corresponding to the left headset based on the third low-power link within a certain period of time, the transceiver corresponding to the right headset may automatically control the right headset to play. The left and right channel data in the audio data, that is, the stereo is automatically played by the right earphone.
另外,左耳机对应的收发器基于第一低功耗链路上报第一检测数据,右耳机对应的收发器基于第二低功耗链路上报第二检测数据,也即是,左耳机对应的收发器将第一检测数据上报给可执行应用程序,右耳机对应的收发器将第二检测数据上报给可执行应用程序,这样,可执行应用程序可以将第一检测数据和第二检测数据呈现给用户。In addition, the transceiver corresponding to the left earphone reports the first detection data based on the first low-power link, and the transceiver corresponding to the right earphone reports the second detection data based on the second low-power link, that is, the left earphone corresponds to The transceiver reports the first detection data to the executable application, and the transceiver corresponding to the right headset reports the second detection data to the executable application. In this way, the executable application can present the first detection data and the second detection data. To the user.
情况2:无线耳机的左耳机和右耳机共用一个收发器,主无线收发器为一个无线耳机中 的收发器,副无线收发器为另一个无线耳机中的收发器。Case 2: The left and right earphones of a wireless earphone share a transceiver, the main wireless transceiver is a transceiver in one wireless earphone, and the sub wireless transceiver is a transceiver in another wireless earphone.
在情况2中,假设无线耳机A中的收发器为副无线收发器、无线耳机B中的收发器为主无线收发器。当无线耳机A和无线耳机B接入终端时,无线耳机A中的收发器、无线耳机B中的收发器以及终端三者也将建立图4所示的链路关系,此时在图4中,副无线收发器为无线耳机A中的收发器,主无线收发器为无线耳机B中的收发器。如图4所示,无线耳机B中的收发器与终端之间建立有双向传输链路,无线耳机A中的收发器与终端之间建立有第一低功耗链路,无线耳机B中的收发器与终端之间还建立有第二低功耗链路,无线耳机B中的收发器与无线耳机A中的收发器之间建立有第三低功耗链路。其中,双向传输链路为BT链路,第一低功耗链路和第二低功耗链路为BLE链路。In Case 2, it is assumed that the transceiver in the wireless headset A is a secondary wireless transceiver, and the transceiver in the wireless headset B is the primary wireless transceiver. When wireless earphone A and wireless earphone B are connected to the terminal, the transceiver in wireless earphone A, the transceiver in wireless earphone B, and the terminal will also establish the link relationship shown in FIG. 4, at this time in FIG. 4 The secondary wireless transceiver is the transceiver in wireless headset A, and the primary wireless transceiver is the transceiver in wireless headset B. As shown in FIG. 4, a bidirectional transmission link is established between the transceiver in the wireless headset B and the terminal, and a first low-power link is established between the transceiver in the wireless headset A and the terminal. A second low-power link is also established between the transceiver and the terminal, and a third low-power link is established between the transceiver in the wireless headset B and the transceiver in the wireless headset A. The two-way transmission link is a BT link, and the first low-power link and the second low-power link are BLE links.
其中,终端中安装有对应的可执行应用程序,因此,在一种可能的实现方式中,当用户通过预设操作打开可执行应用程序时,终端通过可执行应用程序分别与无线耳机A中的收发器和无线耳机B中的收发器建立上述链路。A corresponding executable application program is installed in the terminal. Therefore, in a possible implementation manner, when the user opens the executable application program through a preset operation, the terminal uses the executable application program to communicate with the wireless headset A separately. The transceiver and the transceiver in the wireless headset B establish the aforementioned link.
当终端发送音频数据时,无线耳机B中的收发器基于双向传输链路接收音频数据,无线耳机A中的收发器基于双向传输链路的建链信息监听音频数据,并通过第三低功耗链路向无线耳机B中的收发器回复监听结果,由无线耳机B中的收发器统一向终端回复ACK信息或NACK信息。另外,无论是无线耳机A中的收发器还是无线耳机B中的收发器,在获取到音频数据之后,均将获取的音频数据进行解析,并将左声道数据发送给对应的左耳机,右声道数据发送给对应的右耳机,以使对应的左耳机和右耳机可以分别播放对应声道的数据。When the terminal sends audio data, the transceiver in wireless headset B receives audio data based on the bidirectional transmission link, and the transceiver in wireless headset A listens to audio data based on the bidirectional transmission link establishment information, and passes the third low power consumption The link returns the monitoring result to the transceiver in the wireless headset B, and the transceiver in the wireless headset B uniformly returns ACK information or NACK information to the terminal. In addition, whether it is the transceiver in wireless headset A or the transceiver in wireless headset B, after acquiring the audio data, the acquired audio data is parsed, and the left channel data is sent to the corresponding left headset, right The channel data is sent to the corresponding right earphone, so that the corresponding left earphone and right earphone can respectively play the data of the corresponding channel.
另外,由于在情况2中,无线耳机中的左耳机和右耳机共有一个收发器,因此,无论无线耳机A和无线耳机B均存在,还是无线耳机A和无线耳机B中仅仅有一个存在,只要某个收发器接收到音频数据,均将获取的音频数据进行解析,并将左声道数据发送给对应的左耳机,右声道数据发送给对应的右耳机,以使对应的左耳机和右耳机可以分别播放对应声道的数据。In addition, since in the case 2, the left and right earphones in the wireless earphone share a transceiver, so whether wireless earphone A and wireless earphone B both exist, or only one of wireless earphone A and wireless earphone B exists, as long as A transceiver receives the audio data, parses the acquired audio data, and sends the left channel data to the corresponding left earphone, and the right channel data to the corresponding right earphone, so that the corresponding left earphone and right The headset can play the data of the corresponding channel separately.
另外,无线耳机A中的收发器也可以基于第一低功耗链路上报第一检测数据,无线耳机B中的收发器也可以基于第二低功耗链路上报第二检测数据,也即是,无线耳机A可以将第一检测数据上报给可执行应用程序,无线耳机B可以将第二检测数据上报给可执行应用程序,这样,可执行应用程序可以将第一检测数据和第二检测数据呈现给用户。In addition, the transceiver in wireless headset A can also report the first detection data based on the first low-power link, and the transceiver in wireless headset B can also report the second detection data based on the second low-power link, that is, Yes, the wireless earphone A can report the first detection data to the executable application program, and the wireless earphone B can report the second detection data to the executable application program. In this way, the executable application program can report the first detection data and the second detection data. The data is presented to the user.
通过情况2,可以实现两个用户同时收听音乐,以实现音乐共享的目的。并且由于第三低功耗链路的存在,可以保证音乐分享的可靠性和同步性。In case 2, two users can listen to music at the same time for the purpose of music sharing. And because of the existence of the third low-power link, the reliability and synchronization of music sharing can be guaranteed.
另外,在本申请实施例中,主无线收发器和副无线收发器在接收到音频数据并解析出音频数据之后,是将播放时间信息同步的声道数据发送给对应的耳机,以使耳机播放出的音频为同步的音频。In addition, in the embodiment of the present application, after receiving the audio data and parsing the audio data, the primary wireless transceiver and the secondary wireless transceiver send the channel data synchronized with the playback time information to the corresponding headphones, so that the headphones play The output audio is synchronized audio.
在本申请中,终端与主无线收发器之间建立有双向传输链路,主无线收发器可以基于双向传输链路接收终端发送的音频数据,并且副无线收发器可以从终端获取双向传输链路的建链信息,以使终端基于双向传输链路发送音频数据之后,副无线收发器可以基于双向传输链路的建链信息监听音频数据,以获取终端发送的音频数据。由于副无线收发器是从终端处获取到双向传输链路的建链信息的,因此,相对于由主无线收发器向副无线收发器发送双向传输链路的建链信息,本申请提供的传输音频数据的方法可以减少主无线收发器 和副无线收发器之间交互信息的次数,从而降低了主无线收发器的功耗,使得主无线收发器的功耗与副无线收发器的功耗之间更为均衡。In this application, a two-way transmission link is established between the terminal and the main wireless transceiver. The main wireless transceiver can receive audio data sent by the terminal based on the two-way transmission link, and the sub wireless transceiver can obtain the two-way transmission link from the terminal. After the terminal establishes the link information so that the terminal sends audio data based on the bidirectional transmission link, the secondary wireless transceiver can monitor the audio data based on the link establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal. Since the secondary wireless transceiver obtains the link establishment information of the two-way transmission link from the terminal, the transmission provided by this application is relative to the transmission of the two-way transmission link establishment information by the primary wireless transceiver to the secondary wireless transceiver. The audio data method can reduce the number of times information is exchanged between the primary wireless transceiver and the secondary wireless transceiver, thereby reducing the power consumption of the primary wireless transceiver, making the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver More balanced.
上述图3所示的实施例应用于本申请实施例提供的两种链路关系中的第一种链路关系,下面对第二种链路关系中的传输音频数据的方法进行解释说明。The embodiment shown in FIG. 3 is applied to the first link relationship among the two link relationships provided in the embodiments of the present application. The method for transmitting audio data in the second link relationship is explained below.
图5是本申请实施提供的另一种传输音频数据的方法流程图,应用于第二种链路关系。如图5所示,该方法包括如下步骤:FIG. 5 is a flowchart of another method for transmitting audio data provided by the implementation of this application, which is applied to a second link relationship. As shown in Figure 5, the method includes the following steps:
步骤501:主无线收发器与终端建立双向传输链路,并基于双向传输链路接收终端发送的音频数据。Step 501: The main wireless transceiver establishes a bidirectional transmission link with the terminal, and receives audio data sent by the terminal based on the bidirectional transmission link.
其中,步骤501的实现方式可以参考图3实施例中的步骤301的实现方式,在此不再详细阐述。For the implementation manner of step 501, reference may be made to the implementation manner of step 301 in the embodiment of FIG. 3, which is not described in detail here.
步骤502:副无线收发器从主收发器获取双向传输链路的建链信息,并基于建链信息单向监听终端发送的音频数据。Step 502: The secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the main transceiver, and unidirectionally monitors the audio data sent by the monitoring terminal based on the link establishment information.
在本申请实施例中,副无线收发器与终端之间没有建立无线链路,而是在副无线收发器和主无线收发器之间单独建立一条链路:数据转发链路。副无线收发器可以基于数据转发链路获取双向传输链路的建链信息。本申请实施例对数据转发链路的具体形式不做限定。In the embodiment of the present application, no wireless link is established between the secondary wireless transceiver and the terminal, but a separate link is established between the secondary wireless transceiver and the primary wireless transceiver: a data forwarding link. The secondary wireless transceiver can obtain the link establishment information of the bidirectional transmission link based on the data forwarding link. The embodiment of the present application does not limit the specific form of the data forwarding link.
其中,主无线收发器可以在成功接入终端时就将双向传输链路的建链信息发送给副无线收发器,也可以在确定当前存在语音业务时,将双向传输链路的建链信息发送给副无线收发器,在此不再详细阐述。Among them, the main wireless transceiver can send the link establishment information of the bidirectional transmission link to the sub wireless transceiver when the terminal is successfully accessed, or can send the establishment information of the bidirectional transmission link when it is determined that the voice service currently exists. For the secondary wireless transceiver, it will not be described in detail here.
步骤503:主无线收发器向终端回复接收结果指示信息,接收结果指示信息用于指示主无线收发器是否在指定时隙内接收到音频数据。Step 503: The master wireless transceiver replies to the terminal with reception result indication information, and the reception result indication information is used to indicate whether the master wireless transceiver receives audio data within a specified time slot.
由于主无线收发器与副无线收发器之间已经建立有数据转发链路,此时如果副无线收发器通过主无线收发器向终端上报监听结果,将导致主无线收发器和副无线收发器交互信息次数较多,从而导致主无线收发器和副无线收发器的功耗较大。因此,在本申请实施例中,主无线收发器只向终端上报自身的接收结果,副无线收发器通过下述步骤504上报监听结果。Since a data forwarding link has been established between the primary wireless transceiver and the secondary wireless transceiver, if the secondary wireless transceiver reports the monitoring result to the terminal through the primary wireless transceiver, the primary wireless transceiver and the secondary wireless transceiver will interact. There are many times of information, which results in large power consumption of the primary wireless transceiver and the secondary wireless transceiver. Therefore, in the embodiment of the present application, the primary wireless transceiver only reports its own reception result to the terminal, and the secondary wireless transceiver reports the monitoring result through the following step 504.
其中,如果主无线收发器确定接收到音频数据,接收结果指示信息可以为ACK信息,如果主无线收发器确定没有在指定时隙内接收到音频数据,接收结果指示信息可以为NACK信息。当然,如果主无线收发器确定没有在指定时隙内接收到音频数据,主无线收发器可以不向终端回复任何信息。Wherein, if the main wireless transceiver determines that the audio data is received, the reception result indication information may be ACK information. If the main wireless transceiver determines that the audio data is not received within the designated time slot, the reception result indication information may be NACK information. Of course, if the master wireless transceiver determines that no audio data is received within the designated time slot, the master wireless transceiver may not reply to the terminal with any information.
步骤504:当副无线收发器确定没有在指定时隙内监听到音频数据时,在主无线收发器向终端回复接收结果指示信息的同一时隙发送干扰信息,以使终端重传音频数据。Step 504: When the secondary wireless transceiver determines that the audio data is not monitored within the designated time slot, the primary wireless transceiver sends interference information in the same time slot as the reply response indication information to the terminal, so that the terminal retransmits the audio data.
在本申请实施例中,当副无线收发器确定监听到音频数据时,副无线收发器不执行任何操作,当副无线收发器确定没有监听到音频数据时,向终端发送干扰信息。由于副无线收发器发送干扰信息的时机为:主无线收发器向终端回复接收结果指示信息的同一时隙。因此,如果副无线收发器发送干扰信息,那么终端将无法识别主无线收发器发送的接收结果指示信息,这样的话,终端将确定当前发送数据失败,从而重传音频数据。如果终端能够识别出接收结果指示信息,表明副无线收发器当前没有发送干扰信息,终端可以确定副无线收发器成功监听到音频数据,进而再根据接收结果指示信息确定主无线收发器是否成 功接收到音频数据。In the embodiment of the present application, when the secondary wireless transceiver determines that the audio data is monitored, the secondary wireless transceiver does not perform any operation, and when the secondary wireless transceiver determines that the audio data is not monitored, it sends interference information to the terminal. Because the timing for the secondary wireless transceiver to send interference information is: the primary wireless transceiver replies to the terminal with the same time slot of the reception result indication information. Therefore, if the secondary wireless transceiver sends interference information, the terminal will not be able to recognize the reception result indication information sent by the primary wireless transceiver. In this case, the terminal will determine that the current transmission data has failed and retransmit the audio data. If the terminal can identify the reception result indication information, indicating that the secondary wireless transceiver is not currently sending interference information, the terminal can determine that the secondary wireless transceiver has successfully monitored the audio data, and then determine whether the primary wireless transceiver has successfully received the information based on the reception result indication information. Audio data.
在本申请实施例中,如果副无线收发器发送了干扰信息,但是该干扰信息未能成功干扰到终端,恰恰这时主无线收发器成功接收到音频数据,这样的话,将导致终端可能不重传音频数据,从而使副无线收发器接收到的音频数据中将缺失该音频数据。因此,副无线收发器可以周期性通过数据转发链路向主无线收发器汇报缺失的音频数据,以使主无线收发器向副无线收发器转发该缺失的音频数据。In the embodiment of the present application, if the secondary wireless transceiver sends interference information, but the interference information fails to interfere with the terminal, it is at this time that the primary wireless transceiver successfully receives audio data. In this case, the terminal may not be heavy. The audio data is transmitted, so that the audio data received by the secondary wireless transceiver will be missing. Therefore, the secondary wireless transceiver may periodically report the missing audio data to the primary wireless transceiver through the data forwarding link, so that the primary wireless transceiver forwards the missing audio data to the secondary wireless transceiver.
在一种可能的实现方式中,副无线收发器统计已经接收到的多个音频数据中每个音频数据所属的数据包的标识;如果统计出的数据包不是终端连续发送的数据包,副无线收发器根据统计出的数据包的标识确定至少一个缺失数据包标识,并基于数据转发链路向主无线收发器发送至少一个缺失数据包标识;当主无线收发器接收到至少一个缺失数据包标识时,基于数据转发链路向副无线收发器发送与至少一个缺失数据包标识中每个缺失数据包标识对应的音频数据。In a possible implementation manner, the secondary wireless transceiver counts the identifier of the data packet to which each audio data belongs in the multiple audio data that has been received; if the statistical data packet is not a data packet continuously sent by the terminal, the secondary wireless transceiver The transceiver determines at least one missing data packet identifier according to the statistical data packet identifier, and sends at least one missing data packet identifier to the main wireless transceiver based on the data forwarding link; when the main wireless transceiver receives at least one missing data packet identifier , Sending audio data corresponding to each missing packet identifier in the at least one missing packet identifier to the secondary wireless transceiver based on the data forwarding link.
比如,副无线收发器统计已经接收到的多个音频数据中每个音频数据所属的数据包的标识分别为:数据包1、数据包2、数据包4和数据包5,那么副无线收发器可以确定数据包3为缺失的数据包,这时副无线收发器可以基于数据转发链路向主无线收发器发送数据包3的标识,以使主无线收发器向副无线收发器转发数据包3。For example, the secondary wireless transceiver counts the identifiers of the data packets that each audio data belongs to in the received multiple audio data are: data packet 1, data packet 2, data packet 4, and data packet 5, then the secondary wireless transceiver It can be determined that the data packet 3 is a missing data packet. At this time, the secondary wireless transceiver can send the identification of the data packet 3 to the primary wireless transceiver based on the data forwarding link, so that the primary wireless transceiver forwards the data packet 3 to the secondary wireless transceiver. .
上述步骤503和步骤504提供了另一种副无线收发器上报监听结果的方法,当然,副无线收发器也可以通过主无线收发器上报监听结果。在一种可能的实现方式中,在步骤502之后,副无线收发器可以通过图3实施例中的步骤303和步骤304向终端上报监听结果,也即是,副无线收发器通过第三低功耗链路向主无线收发器上报监听结果,由主无线收发器统一向终端回复ACK信息或NACK信息。这种情况下,为了减少主无线收发器与副无线收发器之间交互信息,副无线收发器基于双向传输链路的建链信息监听音频数据之后,还可以基于双向传输链路的建链信息监听主无线收发器发送的数据。这样的话,副无线收发器在获取到双向传输链路的建链信息之后就可以解除数据转发链路,以降低主无线收发器的功耗与副无线收发器的功耗。其中,主无线收发器发送的数据包括主无线收发器基于双向传输链路发送的控制数据。The above steps 503 and 504 provide another method for the secondary wireless transceiver to report the monitoring result. Of course, the secondary wireless transceiver may also report the monitoring result through the primary wireless transceiver. In a possible implementation manner, after step 502, the secondary wireless transceiver may report the monitoring result to the terminal through steps 303 and 304 in the embodiment of FIG. 3, that is, the secondary wireless transceiver passes the third low power The consuming link reports the monitoring result to the main wireless transceiver, and the main wireless transceiver uniformly returns ACK information or NACK information to the terminal. In this case, in order to reduce the interaction information between the primary wireless transceiver and the secondary wireless transceiver, after the secondary wireless transceiver monitors the audio data based on the link establishment information of the bidirectional transmission link, it can also use the bidirectional transmission link establishment information. Listen for data sent by the master wireless transceiver. In this case, the secondary wireless transceiver can release the data forwarding link after obtaining the link establishment information of the bidirectional transmission link, so as to reduce the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver. The data sent by the main wireless transceiver includes control data sent by the main wireless transceiver based on the bidirectional transmission link.
也即是,在本申请实施例中,提供了另外两种区别与图3实施例中的监听方案,第一种监听方案为上述步骤501至步骤504所阐述的方案,可以将该方案称为“监听+干扰+转发”方案,“监听”是指副无线收发器监听双向传输链路上的音频数据,“干扰”是指副无线收发器在没有监听到音频数据时向终端发送干扰信息,“转发”是指主无线收发器基于数据转发链路转发副无线收发器中缺失的音频数据。That is, in the embodiment of the present application, two other differences from the monitoring scheme in the embodiment of FIG. 3 are provided. The first monitoring scheme is the scheme described in the above steps 501 to 504, which may be referred to as "Monitoring + interference + forwarding" scheme, "monitoring" means that the secondary wireless transceiver listens to audio data on the bidirectional transmission link, and "interference" means that the secondary wireless transceiver sends interference information to the terminal when it does not listen to the audio data. "Forwarding" means that the primary wireless transceiver forwards the missing audio data in the secondary wireless transceiver based on the data forwarding link.
此时,主无线收发器、副无线收发器以及终端之间建立的链路关系为图6所示的链路关系,如图6所示,终端与主无线收发器之间建立有双向传输链路,终端基于双向传输链路传输音频数据,主无线收发器与副无线收发器之间建立有数据转发链路,副无线收发器基于数据转发链路获取双向传输链路的建链信息,并基于获取的双向传输链路的建链信息监听终端传输的音频数据,并在没有监听到音频数据时发送干扰信息。另外,主无线收发器还可以基于数据转发链路向副无线收发器转发副无线收发器中缺失的音频数据。At this time, the link relationship established between the primary wireless transceiver, the secondary wireless transceiver, and the terminal is the link relationship shown in FIG. 6. As shown in FIG. 6, a bidirectional transmission chain is established between the terminal and the primary wireless transceiver. The terminal transmits audio data based on the bidirectional transmission link. A data forwarding link is established between the primary wireless transceiver and the secondary wireless transceiver. The secondary wireless transceiver obtains the link establishment information of the two-way transmission link based on the data forwarding link. Monitoring the audio data transmitted by the terminal based on the acquired link establishment information of the bidirectional transmission link, and sending interference information when no audio data is monitored. In addition, the primary wireless transceiver may also forward the audio data missing from the secondary wireless transceiver to the secondary wireless transceiver based on the data forwarding link.
第二种方案为上述步骤501、步骤502、步骤303和步骤304组成的方案,可以将该方案称为“全监听”方案,“全监听”是指副无线收发器不仅监听终端基于双向传输链路发送 的数据,还监听主无线收发器基于双向传输链路上发送的数据,这样可以使副无线收发器在获取到双向传输链路的建链信息之后就可以解除数据转发链路,以降低主无线收发器的功耗与副无线收发器的功耗。The second scheme is a scheme composed of the above steps 501, 502, step 303, and step 304. This scheme can be referred to as the "full listening" scheme. "Full listening" means that the secondary wireless transceiver not only monitors the terminal based on the bidirectional transmission chain The data transmitted on the channel is also monitored by the main wireless transceiver based on the data sent on the bidirectional transmission link. This can enable the secondary wireless transceiver to release the data forwarding link after obtaining the link establishment information of the bidirectional transmission link. The power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver.
此时,主无线收发器、副无线收发器以及终端之间建立的链路关系为图7所示的链路关系,如图7所示,终端与主无线收发器之间建立有双向传输链路,终端基于双向传输链路传输音频数据,主无线收发器与副无线收发器之间建立有数据转发链路。副无线收发器基于数据转发链路获取双向传输链路的建链信息,基于获取的双向传输链路的建链信息监听终端传输的音频数据,并基于第三低功耗链路向主无线收发器上报监听结果,由主无线收发器统一向终端上报主无线收发器和副无线收发器获取音频数据的情况。在图7所示的链路关系中,副无线收发器不仅监听终端基于双向传输链路发送的数据,还监听主无线收发器基于双向传输链路上发送的数据,这样的话,副无线收发器在获取到双向传输链路的建链信息之后就可以解除数据转发链路,以降低主无线收发器的功耗与副无线收发器的功耗。At this time, the link relationship established between the primary wireless transceiver, the secondary wireless transceiver, and the terminal is the link relationship shown in FIG. 7. As shown in FIG. 7, a bidirectional transmission chain is established between the terminal and the primary wireless transceiver. The terminal transmits audio data based on a bidirectional transmission link, and a data forwarding link is established between the primary wireless transceiver and the secondary wireless transceiver. The secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link based on the data forwarding link, monitors the audio data transmitted by the terminal based on the obtained link establishment information of the bidirectional transmission link, and transmits and receives to and from the main wireless based on the third low-power link The transceiver reports the monitoring results, and the primary wireless transceiver reports the situation in which the primary wireless transceiver and the secondary wireless transceiver obtain audio data to the terminal. In the link relationship shown in FIG. 7, the secondary wireless transceiver not only monitors the data sent by the terminal based on the two-way transmission link, but also listens to the data transmitted by the primary wireless transceiver based on the two-way transmission link. In this case, the secondary wireless transceiver After obtaining the link establishment information of the bidirectional transmission link, the data forwarding link can be released to reduce the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver.
需要说明的是,在图5所示的实施例中,主无线收发器和副无线收发器仍然可以向终端上报检测数据,这种情况下,主无线收发器和副无线收发器可以通过图3实施例中的步骤305和步骤306中的方式上报检测数据,这样将导致建立的链路太多,从而增加了主无线收发器和副无线收发器的功耗。或者,副无线收发器先通过数据转发链路将第一检测数据上报给主无线收发器,然后由主无线收发器向终端转发第一检测数据,并将自身检测的第二检测数据也上报给终端,本申请实施例在此不做具体限定。It should be noted that, in the embodiment shown in FIG. 5, the primary wireless transceiver and the secondary wireless transceiver can still report detection data to the terminal. In this case, the primary wireless transceiver and the secondary wireless transceiver can use FIG. 3 The method of step 305 and step 306 in the embodiment reports the detection data, which will cause too many links to be established, thereby increasing the power consumption of the primary wireless transceiver and the secondary wireless transceiver. Alternatively, the secondary wireless transceiver first reports the first detection data to the primary wireless transceiver through the data forwarding link, and then the primary wireless transceiver forwards the first detection data to the terminal, and also reports the second detection data detected by itself to the terminal. Terminal, the embodiments of the present application are not specifically limited herein.
在本申请实施例中,终端与主无线收发器之间有双向传输链路,主无线收发器与副无线收发器之间有数据转发链路,因此,副无线收发器可以基于数据转发链路获取双向传输链路的建链信息,以使终端基于双向传输链路发送音频数据之后,副无线收发器可以基于双向传输链路的建链信息监听音频数据,以获取终端发送的音频数据。当副无线收发器确定没有在指定时隙内监听到音频数据时,在主无线收发器向终端反馈接收结果指示信息的同一时隙发送干扰信息,以使终端重传音频数据,避免由主无线收发器转发副无线收发器的监听结果,以降低主无线收发器的功耗。In the embodiment of the present application, there is a two-way transmission link between the terminal and the primary wireless transceiver, and there is a data forwarding link between the primary wireless transceiver and the secondary wireless transceiver. Therefore, the secondary wireless transceiver can be based on the data forwarding link. After acquiring the link establishment information of the bidirectional transmission link so that the terminal sends audio data based on the bidirectional transmission link, the secondary wireless transceiver can listen to the audio data based on the establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal. When the secondary wireless transceiver determines that the audio data is not monitored within the specified time slot, the primary wireless transceiver sends interference information in the same time slot as the feedback result indication information to the terminal, so that the terminal retransmits the audio data and avoids the primary wireless transceiver The transceiver forwards the monitoring results of the secondary wireless transceiver to reduce the power consumption of the primary wireless transceiver.
图8是本申请实施例提供的一种无线音频系统框图800,该无线音频系统800包括主无线收发器801和副无线收发器802,主无线收发器和副无线收发器为无线耳机中的收发器;FIG. 8 is a block diagram 800 of a wireless audio system according to an embodiment of the present application. The wireless audio system 800 includes a primary wireless transceiver 801 and a secondary wireless transceiver 802. The primary wireless transceiver and the secondary wireless transceiver are transceivers in a wireless headset. Device
主无线收发器801,用于执行图3实施例中的步骤301或图5实施例中的步骤501;The main wireless transceiver 801 is configured to perform step 301 in the embodiment of FIG. 3 or step 501 in the embodiment of FIG. 5;
副无线收发器802,用于执行图3实施例中的步骤302。The secondary wireless transceiver 802 is configured to perform step 302 in the embodiment in FIG. 3.
可选地,副无线收发器,还用于与终端建立第一低功耗链路;Optionally, the secondary wireless transceiver is further configured to establish a first low-power link with the terminal;
副无线收发器,还用于基于第一低功耗链路接收终端发送的建链信息。The secondary wireless transceiver is further configured to receive the link establishment information sent by the terminal based on the first low power consumption link.
可选地,建链信息是终端在检测到音频播放指令时获取的,或者,是终端在确定双向传输链路和第一低功耗链路建立成功时获取的。Optionally, the link establishment information is acquired by the terminal when the audio playback instruction is detected, or is acquired by the terminal when it is determined that the bidirectional transmission link and the first low-power link are successfully established.
可选地,终端对建链信息进行保护;Optionally, the terminal protects the chain establishment information;
主无线收发器,还用于当接收到终端发送的建链信息获取请求时,获取建链信息;The main wireless transceiver is further configured to obtain chain establishment information when receiving a request for obtaining the chain establishment information sent by the terminal;
主无线收发器,还用于基于双向传输链路向终端发送建链信息,以使终端基于第一低功耗链路向副无线收发器转发建链信息。The main wireless transceiver is further configured to send the chain establishment information to the terminal based on the bidirectional transmission link, so that the terminal forwards the chain establishment information to the secondary wireless transceiver based on the first low power consumption link.
可选地,副无线收发器,还用于执行图3实施例中的步骤305;Optionally, the secondary wireless transceiver is further configured to perform step 305 in the embodiment of FIG. 3;
主无线收发器,还用于执行图3实施例中的步骤306。The main wireless transceiver is further configured to perform step 306 in the embodiment of FIG. 3.
可选地,双向传输链路为BT链路,第一低功耗链路和第二低功耗链路为BLE链路。Optionally, the bidirectional transmission link is a BT link, and the first low-power link and the second low-power link are BLE links.
可选地,副无线收发器,还用于执行图3实施例中的步骤303;Optionally, the secondary wireless transceiver is further configured to perform step 303 in the embodiment of FIG. 3;
主无线收发器,还用于执行图3实施例中的步骤304。The main wireless transceiver is further configured to perform step 304 in the embodiment of FIG. 3.
可选地,主无线收发器,还用于当根据监听结果指示信息确定副无线收发器没有在指定时隙内监听到音频数据,和/或,主无线收发器确定主无线收发器没有在指定时隙内接收到音频数据时,向终端回复NACK信息。Optionally, the main wireless transceiver is further configured to: when it is determined according to the monitoring result indication information that the secondary wireless transceiver does not listen to audio data within a specified time slot, and / or, the main wireless transceiver determines that the main wireless transceiver is not When audio data is received in the time slot, a NACK message is returned to the terminal.
可选地,主无线收发器,还用于执行图5实施例中的步骤503;Optionally, the master wireless transceiver is further configured to perform step 503 in the embodiment of FIG. 5;
副无线收发器,还用于执行图5实施例中的步骤504。The secondary wireless transceiver is further configured to perform step 504 in the embodiment of FIG. 5.
可选地,副无线收发器,还用于统计已经接收到的多个音频数据中每个音频数据所属的数据包的标识;Optionally, the secondary wireless transceiver is further configured to count an identifier of a data packet to which each audio data belongs in the multiple received audio data;
副无线收发器,还用于如果统计出的数据包不是终端连续发送的数据包,根据统计出的数据包的标识确定至少一个缺失数据包标识,并基于数据转发链路向主无线收发器发送至少一个缺失数据包标识,数据转发链路是主无线收发器与副无线收发器之间的无线链路;The secondary wireless transceiver is also used to determine at least one missing data packet identifier according to the statistical data packet identifier if the statistical data packet is not a data packet sent continuously by the terminal, and send to the primary wireless transceiver based on the data forwarding link At least one missing data packet identifier, and the data forwarding link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver;
主无线收发器,还用于当接收到至少一个缺失数据包标识时,基于数据转发链路向副无线收发器发送与至少一个缺失数据包标识中每个缺失数据包标识对应的音频数据。The main wireless transceiver is further configured to, when receiving at least one missing data packet identifier, send audio data corresponding to each missing data packet identifier in the at least one missing data packet identifier to the secondary wireless transceiver based on the data forwarding link.
可选地,副无线收发器,还用于基于建链信息监听主无线收发器发送的数据;Optionally, the secondary wireless transceiver is further configured to monitor data sent by the primary wireless transceiver based on the link establishment information;
相应地,副无线收发器,还用于在获取到建链信息之后解除第一低功耗链路。Correspondingly, the secondary wireless transceiver is further configured to release the first low power consumption link after acquiring the link establishment information.
在本申请中,终端与主无线收发器之间建立有双向传输链路,主无线收发器可以基于双向传输链路接收终端发送的音频数据,并且副无线收发器可以从终端获取双向传输链路的建链信息,以使终端基于双向传输链路发送音频数据之后,副无线收发器可以基于双向传输链路的建链信息监听音频数据,以获取终端发送的音频数据。由于副无线收发器是从终端处获取到双向传输链路的建链信息的,因此,相对于由主无线收发器向副无线收发器发送双向传输链路的建链信息,本申请提供的传输音频数据的方法可以减少主无线收发器和副无线收发器之间交互信息的次数,从而降低了主无线收发器的功耗,使得主无线收发器的功耗与副无线收发器的功耗之间更为均衡。In this application, a two-way transmission link is established between the terminal and the main wireless transceiver. The main wireless transceiver can receive audio data sent by the terminal based on the two-way transmission link, and the sub wireless transceiver can obtain the two-way transmission link from the terminal. After the terminal establishes the link information so that the terminal sends audio data based on the bidirectional transmission link, the secondary wireless transceiver can monitor the audio data based on the link establishment information of the bidirectional transmission link to obtain the audio data sent by the terminal. Since the secondary wireless transceiver obtains the link establishment information of the two-way transmission link from the terminal, the transmission provided by this application is relative to the transmission of the two-way transmission link establishment information by the primary wireless transceiver to the secondary wireless transceiver. The audio data method can reduce the number of times information is exchanged between the primary wireless transceiver and the secondary wireless transceiver, thereby reducing the power consumption of the primary wireless transceiver, making the power consumption of the primary wireless transceiver and the power consumption of the secondary wireless transceiver More balanced.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(digital subscriber line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例 如:数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如:固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are wholly or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, a computer, a server, or a data center. Transmission by wire (for example: coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example: infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes one or more available medium integration. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD) )Wait.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps for implementing the foregoing embodiments may be implemented by hardware, or may be instructed by a program to complete related hardware. The program may be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk.
以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned embodiments provided by this application are not intended to limit this application. Any modification, equivalent replacement, or improvement made within the spirit and principle of this application shall be included in the protection scope of this application. Inside.
Claims (23)
- 一种传输音频数据的方法,其特征在于,应用于无线音频系统,所述无线音频系统包括主无线收发器和副无线收发器,所述主无线收发器和所述副无线收发器为无线耳机中的收发器,所述方法包括:A method for transmitting audio data, which is characterized in that it is applied to a wireless audio system. The wireless audio system includes a primary wireless transceiver and a secondary wireless transceiver. The primary wireless transceiver and the secondary wireless transceiver are wireless headphones. Transceiver, the method includes:所述主无线收发器与终端建立双向传输链路,并基于所述双向传输链路接收所述终端发送的音频数据;Establishing a bidirectional transmission link between the master wireless transceiver and a terminal, and receiving audio data sent by the terminal based on the bidirectional transmission link;所述副无线收发器从所述终端获取所述双向传输链路的建链信息,并基于所述建链信息单向监听所述终端发送的音频数据。The secondary wireless transceiver obtains the link establishment information of the bidirectional transmission link from the terminal, and monitors the audio data sent by the terminal unidirectionally based on the link establishment information.
- 如权利要求1所述的方法,其特征在于,所述副无线收发器从所述终端获取所述双向传输链路的建链信息,包括:The method according to claim 1, wherein the obtaining, by the secondary wireless transceiver, the link establishment information of the two-way transmission link from the terminal comprises:所述副无线收发器与所述终端建立第一低功耗链路;Establishing a first low-power link between the secondary wireless transceiver and the terminal;所述副无线收发器基于所述第一低功耗链路接收所述终端发送的所述建链信息。The secondary wireless transceiver receives the link establishment information sent by the terminal based on the first low power consumption link.
- 如权利要求1或2所述的方法,其特征在于,所述建链信息是所述终端在检测到音频播放指令时获取的,或者,是所述终端在确定所述双向传输链路和所述第一低功耗链路建立成功时获取的。The method according to claim 1 or 2, wherein the link establishment information is acquired by the terminal when an audio playback instruction is detected, or the terminal determines the bidirectional transmission link and all links It is described when the first low-power link is successfully established.
- 如权利要求2所述的方法,其特征在于,所述终端对所述建链信息进行保护;The method according to claim 2, wherein the terminal protects the link establishment information;所述副无线收发器基于所述第一低功耗链路接收所述终端发送的所述建链信息之前,还包括:Before the secondary wireless transceiver receives the chain establishment information sent by the terminal based on the first low power consumption link, the method further includes:当所述主无线收发器接收到所述终端发送的建链信息获取请求时,获取所述建链信息;When the master wireless transceiver receives the request for obtaining the link establishment information sent by the terminal, obtain the link establishment information;所述主无线收发器基于所述双向传输链路向所述终端发送所述建链信息,以使所述终端基于所述第一低功耗链路向所述副无线收发器转发所述建链信息。The primary wireless transceiver sends the link establishment information to the terminal based on the bidirectional transmission link, so that the terminal forwards the connection establishment information to the secondary wireless transceiver based on the first low-power link. Chain information.
- 如权利要求1至4任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, further comprising:所述副无线收发器检测佩戴所述副无线收发器的第一用户的生理特征信息,得到第一检测数据,并基于所述第一低功耗链路向所述终端上报所述第一检测数据,以使所述终端显示所述第一检测数据;The secondary wireless transceiver detects physiological characteristic information of a first user wearing the secondary wireless transceiver, obtains first detection data, and reports the first detection to the terminal based on the first low-power link. Data, so that the terminal displays the first detection data;所述主无线收发器检测佩戴所述主无线收发器的第二用户的生理特征信息,得到第二检测数据,并基于所述双向传输链路或第二低功耗链路向所述终端上报第二检测数据,以使所述终端显示所述第二检测数据,所述第二低功耗链路为所述终端与所述主无线收发器之间的无线链路。The main wireless transceiver detects the physiological characteristic information of a second user wearing the main wireless transceiver, obtains second detection data, and reports to the terminal based on the two-way transmission link or the second low power consumption link. Second detection data, so that the terminal displays the second detection data, and the second low power consumption link is a wireless link between the terminal and the main wireless transceiver.
- 如权利要求1至5任一所述的方法,其特征在于,所述双向传输链路为蓝牙BT链路,所述第一低功耗链路和所述第二低功耗链路为低功耗蓝牙BLE链路。The method according to any one of claims 1 to 5, wherein the two-way transmission link is a Bluetooth BT link, and the first low-power link and the second low-power link are low Bluetooth BLE link.
- 如权利要求1所述的方法,其特征在于,所述副无线收发器基于所述建链信息单向监 听所述终端发送的音频数据之后,还包括:The method according to claim 1, wherein after the secondary wireless transceiver unidirectionally monitors the audio data sent by the terminal based on the link establishment information, further comprising:所述副无线收发器基于第三低功耗链路向所述主无线收发器发送监听结果指示信息,所述监听结果指示信息用于指示所述副无线收发器是否在指定时隙内监听到所述音频数据,所述第三低功耗链路是所述主无线收发器与所述副无线收发器之间的无线链路;The secondary wireless transceiver sends monitoring result indication information to the primary wireless transceiver based on a third low-power link, and the monitoring result indication information is used to indicate whether the secondary wireless transceiver has monitored in a specified time slot. The audio data, the third low-power link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver;当所述主无线收发器根据所述监听结果指示信息确定所述副无线收发器监听到所述音频数据,且确定所述主无线收发器在所述指定时隙内接收到所述音频数据时,向所述终端回复确认ACK信息。When the primary wireless transceiver determines that the secondary wireless transceiver monitors the audio data according to the monitoring result indication information, and determines that the primary wireless transceiver receives the audio data in the specified time slot , Replying to the terminal with an acknowledgement ACK message.
- 如权利要求7所述的方法,其特征在于,所述副无线收发器基于第三低功耗链路向所述主无线收发器发送监听结果指示信息之后,还包括:The method according to claim 7, wherein after the secondary wireless transceiver sends the monitoring result indication information to the primary wireless transceiver based on a third low-power link, the method further comprises:当所述主无线收发器根据所述监听结果指示信息确定所述副无线收发器没有在所述指定时隙内监听到所述音频数据,和/或,所述主无线收发器确定所述主无线收发器没有在所述指定时隙内接收到所述音频数据时,向所述终端回复否定NACK信息。When the primary wireless transceiver determines that the secondary wireless transceiver does not monitor the audio data within the specified time slot according to the monitoring result indication information, and / or, the primary wireless transceiver determines the primary When the wireless transceiver does not receive the audio data within the designated time slot, it returns a negative NACK message to the terminal.
- 如权利要求1所述的方法,其特征在于,所述副无线收发器基于所述建链信息单向监听所述终端发送的音频数据之后,还包括:The method according to claim 1, wherein after the secondary wireless transceiver unidirectionally monitors audio data sent by the terminal based on the link establishment information, further comprising:所述主无线收发器向所述终端回复接收结果指示信息,所述接收结果指示信息用于指示所述主无线收发器是否在指定时隙内接收到所述音频数据;The master wireless transceiver responds to the terminal with reception result indication information, where the reception result indication information is used to indicate whether the master wireless transceiver receives the audio data within a specified time slot;当所述副无线收发器确定没有在所述指定时隙内监听到所述音频数据时,在所述主无线收发器向所述终端回复接收结果指示信息的同一时隙发送干扰信息,以使所述终端重传所述音频数据。When the secondary wireless transceiver determines that the audio data is not monitored within the specified time slot, the primary wireless transceiver sends interference information in the same time slot as the primary wireless transceiver replies to the reception result indication information so that the terminal The terminal retransmits the audio data.
- 如权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9, further comprising:所述副无线收发器统计已经接收到的多个音频数据中每个音频数据所属的数据包的标识;The secondary wireless transceiver counts an identifier of a data packet to which each audio data belongs in the multiple received audio data;如果统计出的数据包不是所述终端连续发送的数据包,所述副无线收发器根据统计出的数据包的标识确定至少一个缺失数据包标识,并基于数据转发链路向所述主无线收发器发送所述至少一个缺失数据包标识,所述数据转发链路是所述主无线收发器与所述副无线收发器之间的无线链路;If the statistical data packet is not a data packet continuously sent by the terminal, the secondary wireless transceiver determines at least one missing data packet identifier according to the statistical data packet identifier, and sends and receives data to the primary wireless transceiver based on a data forwarding link The transmitter sends the at least one missing data packet identifier, and the data forwarding link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver;当所述主无线收发器接收到所述至少一个缺失数据包标识时,基于所述数据转发链路向所述副无线收发器发送与所述至少一个缺失数据包标识中每个缺失数据包标识对应的音频数据。When the primary wireless transceiver receives the at least one missing data packet identifier, it sends to the secondary wireless transceiver based on the data forwarding link each missing data packet identifier in the at least one missing data packet identifier. Corresponding audio data.
- 如权利要求1所述的方法,其特征在于,所述副无线收发器基于所述建链信息单向监听所述终端发送的音频数据之后,还包括:The method according to claim 1, wherein after the secondary wireless transceiver unidirectionally monitors audio data sent by the terminal based on the link establishment information, further comprising:所述副无线收发器基于所述建链信息监听所述主无线收发器发送的数据;Monitoring, by the secondary wireless transceiver, data sent by the primary wireless transceiver based on the link establishment information;相应地,所述副无线收发器在获取到所述建链信息之后解除所述第一低功耗链路。Correspondingly, the secondary wireless transceiver releases the first low power consumption link after acquiring the link establishment information.
- 一种无线音频系统,其特征在于,所述无线音频系统包括主无线收发器和副无线收 发器,所述主无线收发器和所述副无线收发器为无线耳机中的收发器;A wireless audio system, characterized in that the wireless audio system includes a primary wireless transceiver and a secondary wireless transceiver, and the primary wireless transceiver and the secondary wireless transceiver are transceivers in a wireless headset;所述主无线收发器,用于与终端建立双向传输链路,并基于所述双向传输链路接收所述终端发送的音频数据;The main wireless transceiver is configured to establish a bidirectional transmission link with a terminal, and receive audio data sent by the terminal based on the bidirectional transmission link;所述副无线收发器,用于从所述终端获取所述双向传输链路的建链信息,并基于所述建链信息单向监听所述终端发送的音频数据。The secondary wireless transceiver is configured to obtain chain establishment information of the bidirectional transmission link from the terminal, and monitor audio data sent by the terminal unidirectionally based on the chain establishment information.
- 如权利要求12所述的无线音频系统,其特征在于,The wireless audio system according to claim 12, wherein:所述副无线收发器,还用于与所述终端建立第一低功耗链路;The secondary wireless transceiver is further configured to establish a first low-power link with the terminal;所述副无线收发器,还用于基于所述第一低功耗链路接收所述终端发送的所述建链信息。The secondary wireless transceiver is further configured to receive the chain establishment information sent by the terminal based on the first low power consumption link.
- 如权利要求12或13所述的无线音频系统,其特征在于,所述建链信息是所述终端在检测到音频播放指令时获取的,或者,是所述终端在确定所述双向传输链路和所述第一低功耗链路建立成功时获取的。The wireless audio system according to claim 12 or 13, wherein the link establishment information is obtained when the terminal detects an audio playback instruction, or the terminal determines the bidirectional transmission link And obtained when the first low-power link is successfully established.
- 如权利要求13所述的无线音频系统,其特征在于,所述终端对所述建链信息进行保护;The wireless audio system according to claim 13, wherein the terminal protects the link establishment information;所述主无线收发器,还用于当接收到所述终端发送的建链信息获取请求时,获取所述建链信息;The master wireless transceiver is further configured to obtain the chain establishment information when receiving a request for obtaining the chain establishment information sent by the terminal;所述主无线收发器,还用于基于所述双向传输链路向所述终端发送所述建链信息,以使所述终端基于所述第一低功耗链路向所述副无线收发器转发所述建链信息。The primary wireless transceiver is further configured to send the link establishment information to the terminal based on the bidirectional transmission link, so that the terminal sends the secondary wireless transceiver to the secondary wireless transceiver based on the first low power consumption link. Forward the chain building information.
- 如权利要求12至15任一所述的无线音频系统,其特征在于,The wireless audio system according to any one of claims 12 to 15, wherein:所述副无线收发器,还用于检测佩戴所述副无线收发器的第一用户的生理特征信息,得到第一检测数据,并基于所述第一低功耗链路向所述终端上报所述第一检测数据,以使所述终端显示所述第一检测数据;The secondary wireless transceiver is further configured to detect physiological characteristic information of a first user wearing the secondary wireless transceiver, obtain first detection data, and report the data to the terminal based on the first low-power link. The first detection data, so that the terminal displays the first detection data;所述主无线收发器,还用于检测佩戴所述主无线收发器的第二用户的生理特征信息,得到第二检测数据,并基于所述双向传输链路或第二低功耗链路向所述终端上报第二检测数据,以使所述终端显示所述第二检测数据,所述第二低功耗链路为所述终端与所述主无线收发器之间的无线链路。The main wireless transceiver is further configured to detect physiological characteristic information of a second user wearing the main wireless transceiver, to obtain second detection data, and based on the two-way transmission link or the second low-power link The terminal reports second detection data, so that the terminal displays the second detection data, and the second low power consumption link is a wireless link between the terminal and the main wireless transceiver.
- 如权利要求12至16任一所述的无线音频系统,其特征在于,所述双向传输链路为蓝牙BT链路,所述第一低功耗链路和所述第二低功耗链路为低功耗蓝牙BLE链路。The wireless audio system according to any one of claims 12 to 16, wherein the two-way transmission link is a Bluetooth BT link, the first low-power link and the second low-power link It is a Bluetooth low energy BLE link.
- 如权利要求12所述的无线音频系统,其特征在于,The wireless audio system according to claim 12, wherein:所述副无线收发器,还用于基于第三低功耗链路向所述主无线收发器发送监听结果指示信息,所述监听结果指示信息用于指示所述副无线收发器是否在指定时隙内监听到所述音频数据,所述第三低功耗链路是所述主无线收发器与所述副无线收发器之间的无线链路;The secondary wireless transceiver is further configured to send monitoring result indication information to the primary wireless transceiver based on a third low-power link, and the monitoring result indication information is used to indicate whether the secondary wireless transceiver is at a specified time. The audio data is monitored in the slot, and the third low-power link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver;所述主无线收发器,还用于当根据所述监听结果指示信息确定所述副无线收发器监听到所述音频数据,且确定所述主无线收发器在所述指定时隙内接收到所述音频数据时,向所述 终端回复确认ACK信息。The main wireless transceiver is further configured to: when it is determined that the sub wireless transceiver listens to the audio data according to the monitoring result indication information, and determine that the main wireless transceiver receives all audio data within the specified time slot. When audio data is described, acknowledgement ACK information is returned to the terminal.
- 如权利要求18所述的无线音频系统,其特征在于,The wireless audio system according to claim 18, wherein所述主无线收发器,还用于当根据所述监听结果指示信息确定所述副无线收发器没有在所述指定时隙内监听到所述音频数据,和/或,所述主无线收发器确定所述主无线收发器没有在所述指定时隙内接收到所述音频数据时,向所述终端回复否定NACK信息。The main wireless transceiver is further configured to, when it is determined according to the monitoring result indication information, that the sub wireless transceiver does not monitor the audio data in the specified time slot, and / or, the main wireless transceiver When it is determined that the master wireless transceiver does not receive the audio data within the designated time slot, it returns a negative NACK message to the terminal.
- 如权利要求12所述的无线音频系统,其特征在于,The wireless audio system according to claim 12, wherein:所述主无线收发器,还用于向所述终端回复接收结果指示信息,所述接收结果指示信息用于指示所述主无线收发器是否在指定时隙内接收到所述音频数据;The master wireless transceiver is further configured to reply to the terminal with receiving result indication information, where the receiving result indication information is used to indicate whether the master wireless transceiver receives the audio data within a specified time slot;所述副无线收发器,还用于当确定没有在所述指定时隙内监听到所述音频数据时,在所述主无线收发器向所述终端回复接收结果指示信息的同一时隙发送干扰信息,以使所述终端重传所述音频数据。The secondary wireless transceiver is further configured to: when it is determined that the audio data is not monitored within the designated time slot, send interference in the same time slot in which the primary wireless transceiver replies to the terminal with a reception result indication message. Information so that the terminal retransmits the audio data.
- 如权利要求20所述的无线音频系统,其特征在于,The wireless audio system according to claim 20, wherein:所述副无线收发器,还用于统计已经接收到的多个音频数据中每个音频数据所属的数据包的标识;The secondary wireless transceiver is further configured to count an identifier of a data packet to which each audio data belongs in the multiple received audio data;所述副无线收发器,还用于如果统计出的数据包不是所述终端连续发送的数据包,根据统计出的数据包的标识确定至少一个缺失数据包标识,并基于数据转发链路向所述主无线收发器发送所述至少一个缺失数据包标识,所述数据转发链路是所述主无线收发器与所述副无线收发器之间的无线链路;The secondary wireless transceiver is further configured to determine at least one missing data packet identifier according to the statistical data packet identifier if the statistical data packet is not a data packet continuously sent by the terminal, and send the identifier to all The primary wireless transceiver sends the at least one missing data packet identifier, and the data forwarding link is a wireless link between the primary wireless transceiver and the secondary wireless transceiver;所述主无线收发器,还用于当接收到所述至少一个缺失数据包标识时,基于所述数据转发链路向所述副无线收发器发送与所述至少一个缺失数据包标识中每个缺失数据包标识对应的音频数据。The primary wireless transceiver is further configured to, when the at least one missing data packet identifier is received, send each of the at least one missing data packet identifier to the secondary wireless transceiver based on the data forwarding link. The missing data packet identifies the corresponding audio data.
- 如权利要求12所述的无线音频系统,其特征在于,The wireless audio system according to claim 12, wherein:所述副无线收发器,还用于基于所述建链信息监听所述主无线收发器发送的数据;The secondary wireless transceiver is further configured to monitor data sent by the primary wireless transceiver based on the link establishment information;相应地,所述副无线收发器,还用于在获取到所述建链信息之后解除所述第一低功耗链路。Correspondingly, the secondary wireless transceiver is further configured to release the first low power consumption link after acquiring the link establishment information.
- 一种传输音频数据的系统,其特征在于,所述系统包括终端和无线音频系统,所述无线音频系统为权利要求12至权利要求22任一权利要求所述的无线音频系统。A system for transmitting audio data, characterized in that the system includes a terminal and a wireless audio system, and the wireless audio system is the wireless audio system according to any one of claims 12 to 22.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/093825 WO2020000425A1 (en) | 2018-06-29 | 2018-06-29 | Audio data transmission method and system and wireless audio system |
CN201880095107.5A CN112335328B (en) | 2018-06-29 | 2018-06-29 | Method and system for transmitting audio data and wireless audio system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/093825 WO2020000425A1 (en) | 2018-06-29 | 2018-06-29 | Audio data transmission method and system and wireless audio system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020000425A1 true WO2020000425A1 (en) | 2020-01-02 |
Family
ID=68985698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/093825 WO2020000425A1 (en) | 2018-06-29 | 2018-06-29 | Audio data transmission method and system and wireless audio system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112335328B (en) |
WO (1) | WO2020000425A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10986683B1 (en) | 2020-05-22 | 2021-04-20 | Shenzhen GOODIX Technology Co., Ltd. | Data communication method and system, electronic device, chip and storage medium |
WO2021232389A1 (en) * | 2020-05-22 | 2021-11-25 | 深圳市汇顶科技股份有限公司 | Data communication method and system, electronic device, chip, and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150373A (en) * | 2022-05-31 | 2022-10-04 | 深圳市东微智能科技股份有限公司 | Audio transmission method, terminal device and computer-readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535081A (en) * | 2016-12-20 | 2017-03-22 | 建荣半导体(深圳)有限公司 | Bluetooth mode switching method and device, communication system and stereophonic audio transmission method |
EP3188501A2 (en) * | 2015-12-29 | 2017-07-05 | Beijing Xiaoniao Tingting Technology Co., LTD | Method for adjusting ambient sound for earphone, earphone and terminal |
CN206389530U (en) * | 2017-02-08 | 2017-08-08 | 河荣华 | A kind of separated wireless earphone |
CN107820325A (en) * | 2017-11-24 | 2018-03-20 | 珠海市杰理科技股份有限公司 | Wireless communications method and system, computer-readable storage medium and equipment |
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 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3267666B1 (en) * | 2016-07-08 | 2021-03-03 | GN Audio A/S | A wireless earphone system comprising a first earphone and a second earphone |
US9820323B1 (en) * | 2016-11-22 | 2017-11-14 | Bose Corporation | Wireless audio tethering system |
CN106792454A (en) * | 2016-12-19 | 2017-05-31 | 建荣半导体(深圳)有限公司 | Bluetooth communication method, communicator, communication system and electronic equipment |
-
2018
- 2018-06-29 CN CN201880095107.5A patent/CN112335328B/en active Active
- 2018-06-29 WO PCT/CN2018/093825 patent/WO2020000425A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3188501A2 (en) * | 2015-12-29 | 2017-07-05 | Beijing Xiaoniao Tingting Technology Co., LTD | Method for adjusting ambient sound for earphone, earphone and terminal |
CN106535081A (en) * | 2016-12-20 | 2017-03-22 | 建荣半导体(深圳)有限公司 | Bluetooth mode switching method and device, communication system and stereophonic audio transmission method |
CN206389530U (en) * | 2017-02-08 | 2017-08-08 | 河荣华 | A kind of separated wireless earphone |
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 |
CN107820325A (en) * | 2017-11-24 | 2018-03-20 | 珠海市杰理科技股份有限公司 | Wireless communications method and system, computer-readable storage medium and equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10986683B1 (en) | 2020-05-22 | 2021-04-20 | Shenzhen GOODIX Technology Co., Ltd. | Data communication method and system, electronic device, chip and storage medium |
WO2021232389A1 (en) * | 2020-05-22 | 2021-11-25 | 深圳市汇顶科技股份有限公司 | Data communication method and system, electronic device, chip, and storage medium |
US11528764B2 (en) | 2020-05-22 | 2022-12-13 | Shenzhen GOODIX Technology Co., Ltd. | Data communication method and system, electronic device, chip and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112335328A (en) | 2021-02-05 |
CN112335328B (en) | 2023-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11070917B2 (en) | Un-tethered wireless audio system | |
US11678163B2 (en) | Power-efficient, balanced, and reliable true wireless Bluetooth stereo audio solution | |
WO2021121289A1 (en) | Data receiving method and apparatus for bluetooth headset, device, and storage medium | |
CN109995479A (en) | A kind of voice data communication method, system and audio communication device | |
CN111435844B (en) | Method, device, equipment and system for correcting audio data in dual-wireless Bluetooth communication | |
CN111436043B (en) | Communication method, device, equipment and system of dual-wireless Bluetooth communication network | |
JP2023546303A (en) | Inter-device communication method and system used in wireless communication system | |
WO2020000425A1 (en) | Audio data transmission method and system and wireless audio system | |
CN110166988B (en) | Wireless communication system and method thereof | |
CN110234100A (en) | A kind of radio data transmission method, equipment and system | |
WO2024040159A1 (en) | Coordinated sniffing of air traffic within a group of audio output devices | |
CN110234101A (en) | A kind of radio transmitting method of reliable transmitting data, equipment and system | |
CN112218197B (en) | Audio compensation method and wireless audio output device using same | |
US20230224958A1 (en) | Method, device, and computer program for selecting channel in wireless communication system, and recording medium therefor | |
TWI739267B (en) | Wireless signal transceiver method and wireless signal transceiver system using the same | |
EP4114036A1 (en) | Method and system for transmitting audio data wirelessly | |
WO2022134734A1 (en) | Wireless communication method and system | |
CN114422987A (en) | TWS (time-and-time-shift switching) equipment transmitting seamless relay method and TWS equipment | |
TW202103473A (en) | Audio concealment method and wireless audio output device using the same |
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: 18923785 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: 18923785 Country of ref document: EP Kind code of ref document: A1 |