WO2020154938A1 - 一种数据传输方法以及相关装置 - Google Patents

一种数据传输方法以及相关装置 Download PDF

Info

Publication number
WO2020154938A1
WO2020154938A1 PCT/CN2019/073821 CN2019073821W WO2020154938A1 WO 2020154938 A1 WO2020154938 A1 WO 2020154938A1 CN 2019073821 W CN2019073821 W CN 2019073821W WO 2020154938 A1 WO2020154938 A1 WO 2020154938A1
Authority
WO
WIPO (PCT)
Prior art keywords
transceiver
response
target data
audio
source device
Prior art date
Application number
PCT/CN2019/073821
Other languages
English (en)
French (fr)
Inventor
谢子晨
郭湛
李卫华
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2019/073821 priority Critical patent/WO2020154938A1/zh
Priority to CN201980090037.9A priority patent/CN113330757B/zh
Publication of WO2020154938A1 publication Critical patent/WO2020154938A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a data transmission method and related devices.
  • Bluetooth is a wireless technology standard that can realize short-distance data exchange between fixed devices, mobile devices and building personal area networks. With the continuous improvement of user needs, Bluetooth wireless transmission technology has also developed from one-to-one data transmission to one-to-many data transmission.
  • the audio source device is connected with multiple transceivers in a Bluetooth manner.
  • the multiple transceivers are divided into a main transceiver and a secondary transceiver, and the primary transceiver and the secondary transceiver are also connected by Bluetooth.
  • the audio source device sends target data to the main transceiver and the secondary transceiver.
  • the secondary transceiver receives the target data
  • the secondary transceiver sends a response to the primary transceiver.
  • the primary transceiver sends all The response of the secondary transceiver and the response of the primary transceiver are sent to the audio source device.
  • the audio source device determines whether the target data needs to be retransmitted based on the responses of all secondary transceivers and the primary transceiver.
  • the primary transceiver needs to reply to the audio source device after integrating the reception situation of the primary transceiver and the response of the secondary transceiver.
  • the secondary transceiver only needs to perform For one reception and one transmission, the main transceiver has to perform multiple receptions and one transmission, resulting in higher energy consumption of the main transceiver, which causes the energy consumption of each transceiver to be unbalanced, which in turn causes the standby time of each transceiver to be inconsistent, thereby affecting user experience.
  • the embodiments of the present application provide a data transmission method and related devices, which are used to equalize the energy consumption of each transceiver in an audio device, so that the standby time of each transceiver in the audio device is relatively consistent.
  • an embodiment of the present application provides a data transmission method, including: in a one-to-many data transmission scenario, the audio source device broadcasts to each transceiver in the audio device based on a wireless short-distance transmission protocol. Send the first target data; then, the audio source device will respectively receive the response of each transceiver in the audio device to the audio source device, where the response may be that the first transceiver in the audio device responds to the first target data The first response fed back as to whether it is successfully received, the response may also be a second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received. Then, the audio source device determines whether to send the first target data again in a broadcast manner according to the reception of the first response and the second response.
  • the audio source device may respectively receive the response fed back by each transceiver in the audio device according to whether the first target data is successfully received, and according to The reception of the response determines whether to send the first target data again in a broadcast manner. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers, but each transceiver directly responds to the audio source device separately. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the audio source device determines whether to send the first target data again by broadcasting according to the reception of the first response and the second response Including: when the first response or the second response is a negative response, the audio source device sends the first target data again in a broadcast manner, wherein if the first response is a negative response, it means the first transceiver The first target data is not received, and if the second response is a negative response, it means that the second transceiver has not received the first target data.
  • the audio source device determines whether to send the first target data or the first target data by broadcast again according to the reception of the first response and the second response.
  • Sending the second target data includes: when the sound source device does not receive the first response or does not receive the second response, the sound source device sends the first target data again in a broadcast manner.
  • a handling method for the case where the sound source device does not receive part or all of the response is also proposed.
  • the audio source device because the audio source device did not receive the response sent by one or several transceivers, the audio source device cannot determine whether the transceivers that did not reply successfully received the first target. data. Therefore, in order to ensure that each transceiver in the audio device can receive the first target data, the audio source device will send the first target data again by broadcasting, so as to ensure that each transceiver in the audio device receives the first target data. The first target data.
  • the audio source device sends the first target data again by broadcasting
  • the method further includes: the sound source device receives a response of the first transceiver or the second transceiver to whether the re-sent first target data is successfully received, wherein the response is an affirmative response or a negative response.
  • the audio source device after the audio source device sends the first target data again by broadcast, the audio source device still needs to receive the responses from the transceivers in the audio device again, so that the audio source device will further Determine whether to resend the first target data.
  • the audio source device determines whether to send the first target data again by broadcasting according to the reception of the first response and the second response : When the first response and the second response are both positive responses, the audio source device no longer sends the first target data, wherein, if the first response is a positive response, it means that the first transceiver has received For the first target data, if the second response is an affirmative response, it means that the second transceiver has received the first target data.
  • the first response and the second response are both positive responses, which means that each transceiver in the audio device All have successfully received the first target data sent by the audio source device. Therefore, the audio device does not need the audio source device to send the first target data to the audio device.
  • the method further includes: the audio source device broadcasts Send the second target data in a way.
  • the audio source device can also broadcast to the audio device
  • Each of the transceivers sends second target data, and the second target data is different from the first target data. Therefore, using the above-mentioned solution can enable the audio source device to send the second target data to each transceiver in the audio device after successfully sending the first target data to each transceiver in the audio device, so that the The audio source device can continuously send different data to each transceiver in the audio device, thereby ensuring the continuity of data transmission and the diversity of data transmission.
  • the wireless short-distance transmission protocol includes the Bluetooth protocol or Wi-Fi protocol.
  • the wireless short-distance transmission may adopt Bluetooth or Wi-Fi, so the implementation flexibility of the solution is increased.
  • the audio source device includes multiple receiving antennas; the audio source device respectively receives the first transceiver in the audio device according to the The first response fed back as to whether the first target data is successfully received and the second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received include: the sound source device receives respectively through different receiving antennas The first response fed back by the first transceiver in the audio device according to whether the first target data is successfully received and the second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received, the The first response and the second response are from different channels.
  • an audio source device with multiple receiving antennas is proposed, so the audio source device can receive responses from different channels through different antennas. Therefore, a direct data transmission channel between the audio source device and the audio device is added to enable data transmission More efficient.
  • the audio source device includes a receiving antenna; the audio source device respectively receives the first transceiver in the audio device according to the The first response fed back whether a target data is successfully received and the second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received include: the audio source device passes the receiving device at different times.
  • the antenna receives a first response fed back by the first transceiver in the audio device according to whether the first target data is successfully received, and a second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received ,
  • the first response and the second response are both from the same channel.
  • the audio source device has only one receiving antenna, at this time, the audio source device can receive at different times through the receiving antenna and receive the audio from each transceiver in the audio device from the same channel. Response, therefore, increased the flexibility of the implementation of the program.
  • the method before the audio source device sends the first target data by broadcast based on the wireless short-range transmission protocol, the method further includes: The device sends a data transmission notification, and the data transmission notification is used to prompt the first transceiver and the second transceiver in the audio device to prepare to receive the first target data and a transceiving rule, where the transceiving rule is the first transceiver in the audio device And the second transceiver receives the first target data and sends a response rule.
  • the audio source device before the audio source device sends the first target data to the audio device by broadcasting, the audio source device will perform some preparations, for example, the audio source device should also send a data transmission notification to the audio device ,
  • the data transmission notification is used to prompt the first transceiver and the second transceiver in the audio device to prepare to receive the first target data and the transceiving rules. Therefore, the feasibility and completeness of the program are increased.
  • an embodiment of the present application provides a data transmission method, including: a first transceiver and a second transceiver in an audio device prepare to receive first target data respectively according to a transceiving rule; the first transceiver in the audio device The receiver and the second transceiver respectively send a response to the audio source device.
  • the response includes a first response fed back by the first transceiver according to whether the first target data is successfully received, or the second transceiver according to whether the first target data is The second response for successful reception.
  • the audio device may reply to the audio source device the response of each transceiver according to whether the first target data is successfully received. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the method before the first transceiver and the second transceiver in the audio device respectively prepare to receive the first target data according to the transceiving rules, the method further includes : The first transceiver and the second transceiver in the audio device respectively receive a data transmission notification sent by the audio source device, and the data transmission notification is used to remind the first transceiver and the second transceiver in the audio device to prepare to receive the first target Data or transceiving rules, where the transceiving rules are rules for the first transceiver and the second transceiver in the audio device to receive the first target data and send a response.
  • the audio device before the audio device receives the first target data, the audio device also needs to receive a data transmission notification, and the data transmission notification is used to prompt the first transceiver and the second transceiver in the audio device to prepare Receiving the first target data or the transceiving rule, so that the audio device can prepare to receive the first target data according to the transceiving rule. Therefore, the feasibility and completeness of the program are increased.
  • the method further includes: when the transceiver in the audio device confirms that the first target data to be received already exists, the transceiver rejects When receiving the first target data, the transceiver is the first transceiver or the second transceiver.
  • the transceiver in the audio device confirms that the first target data to be received already exists, the transceiver refuses to receive the first target data. Therefore, it is possible to prevent the audio device from receiving two copies of the first target data. The case of the first target data.
  • the first transceiver and the second transceiver in the audio device respectively sending responses to the audio source device include: the first transceiver in the audio device The receiver and the second transceiver use different channels to send responses to the audio source device respectively.
  • the audio device can send a response to the audio source device through different channels, and therefore, the diversity of transmission methods is increased.
  • the first transceiver and the second transceiver in the audio device respectively sending responses to the audio source device include: the first transceiver in the audio device The receiver and the second transceiver use the same channel to send responses to the audio source device at different times.
  • the audio device can send a response to the audio source device through the same channel at different times, thus increasing the diversity of transmission methods.
  • an embodiment of the present application provides an audio source device, including: a processor, a receiver, and a transmitter, the receiver and the transmitter are respectively coupled to the processor; wherein, the transmitter is used for wireless The short-distance transmission protocol sends the first target data in a broadcast manner; the receiver is used to respectively receive the first response fed back by the first transceiver in the audio device according to whether the first target data is successfully received and the audio device According to whether the first target data is successfully received, the second transceiver feedbacks a second response; in addition, the processor is also configured to determine whether to broadcast again according to the reception of the first response and the second response Send the first target data in a way.
  • the receiver in the audio source device can receive each transceiver in the audio device according to whether the first target data is successful or not.
  • the processor in the audio source device determines whether to send the first target data again in a broadcast manner according to the receiving situation of the response. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers, but each transceiver directly responds to the audio source device separately. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the processor is specifically configured to determine that the transmitter uses a broadcast mode when the first response or the second response is a negative response Send the first target data again, where if the first response is a negative response, it means that the first transceiver has not received the first target data, and if the second response is a negative response, it means that the second transceiver The machine did not receive the first target data.
  • the processor is specifically configured to determine that the audio source device does not receive the first response or does not receive the second response
  • the transmitter sends the first target data again in a broadcast manner.
  • a handling method for the case where the sound source device does not receive part or all of the response is also proposed.
  • the audio source device because the audio source device did not receive the response sent by one or several transceivers, the audio source device cannot determine whether the transceivers that did not reply successfully received the first target. data. Therefore, in order to ensure that each transceiver in the audio device can receive the first target data, the audio source device will send the first target data again by broadcasting, so as to ensure that each transceiver in the audio device receives the first target data. The first target data.
  • the receiver is further configured to receive the first transceiver or A response of the second transceiver to whether the first target data sent again is successfully received, wherein the response is an affirmative response or a negative response.
  • the audio source device after the transmitter in the audio source device sends the first target data again by broadcasting, the audio source device still needs to receive the responses fed back by the transceivers in the audio device again. The audio source device will further determine whether to resend the first target data.
  • the processor is specifically configured to determine that the first response is no longer sent when the first response and the second response are both positive responses.
  • Target data where if the first response is a positive response, it means that the first transceiver has received the first target data, and if the second response is a positive response, it means that the second transceiver has received the first target data. The first target data.
  • the first response and the second response are both positive responses, which means that each transceiver in the audio device All have successfully received the first target data sent by the audio source device. Therefore, the audio device does not need the audio source device to send the first target data to the audio device.
  • the transmitter is also used to send the second target data in a broadcast manner.
  • the audio source device can also broadcast to the audio device
  • Each of the transceivers sends second target data, and the second target data is different from the first target data. Therefore, using the above-mentioned solution can enable the audio source device to send the second target data to each transceiver in the audio device after successfully sending the first target data to each transceiver in the audio device, so that the The audio source device can continuously send different data to each transceiver in the audio device, thereby ensuring the continuity of data transmission and the diversity of data transmission.
  • the audio source device further includes a Bluetooth baseband; Baseband, used to determine the sending and receiving rules.
  • the audio source device in the audio source device also includes a Bluetooth baseband. Therefore, the audio source device can use the Bluetooth protocol to transmit data and formulate corresponding transmission and reception rules.
  • the audio source device further includes a Wi-Fi module;
  • the Wi-Fi module is used to determine the sending and receiving rules.
  • Wi-Fi may also be used, thus increasing the implementation flexibility of the solution.
  • the receiver is connected to at least two receiving antennas; the receiver is specifically configured to pass through different receiving antennas. Receive the first response fed back by the first transceiver in the audio device according to whether the first target data is successfully received and the second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received , The first response and the second response are from different channels.
  • an audio source device with multiple receiving antennas is proposed, so the audio source device can receive responses from different channels through different antennas. Therefore, a direct data transmission channel between the audio source device and the audio device is added to enable data transmission More efficient.
  • the receiver is connected to only one receiving antenna
  • the receiver is specifically configured to receive the first response fed back by the first transceiver in the audio device according to whether the first target data is successfully received through the receiving antenna at different times, and the second transceiver in the audio device according to The second response of whether the first target data is successfully received is fed back, the first response and the second response are both from the same channel.
  • the audio source device has only one receiving antenna, at this time, the audio source device can receive at different times through the receiving antenna and receive the audio from each transceiver in the audio device from the same channel. Response, therefore, increased the flexibility of the implementation of the program.
  • the transmitter is also used to send a data transmission notification to the audio device, and the data transmission notification is used to prompt the audio
  • the first transceiver and the second transceiver in the device are ready to receive first target data and transceiving rules.
  • the transceiving rules are that the first transceiver and the second transceiver in the audio device receive the first target data and send Response rules.
  • the audio source device before the audio source device sends the first target data to the audio device by broadcasting, the audio source device will perform some preparations, for example, the audio source device should also send a data transmission notification to the audio device ,
  • the data transmission notification is used to prompt the first transceiver and the second transceiver in the audio device to prepare to receive the first target data and the transceiving rules. Therefore, the feasibility and completeness of the program are increased.
  • an embodiment of the present application provides an audio device, including: the first transceiver and the second transceiver, configured to prepare to receive first target data according to the transmission and reception rules; the first transceiver and the second transceiver The device is further configured to send a response to the audio source device respectively, the response including a first response fed back by the first transceiver according to whether the first target data is successfully received, or the second transceiver according to whether the first target data is successful The second response received and fed back.
  • the audio device may reply to the audio source device the response of each transceiver according to whether the first target data is successfully received. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the first transceiver and the second transceiver are further configured to respectively receive a data transmission notification sent by the audio source device, and the data transmission notification is used for Prompt the first transceiver and the second transceiver in the audio device to prepare to receive the first target data or the transceiving rule, the transceiving rule is that the first transceiver and the second transceiver in the audio device receive the first target data and Rules for sending responses.
  • the audio device before the audio device receives the first target data, the audio device also needs to receive a data transmission notification, and the data transmission notification is used to prompt the first transceiver and the second transceiver in the audio device to prepare Receiving the first target data or the transceiving rule, so that the audio device can prepare to receive the first target data according to the transceiving rule. Therefore, the feasibility and completeness of the program are increased.
  • the first transceiver or the second transceiver is also used to confirm that the first target data to be received already exists, and refuse to receive the The first target data.
  • the transceiver in the audio device confirms that the first target data to be received already exists, the transceiver refuses to receive the first target data. Therefore, it is possible to prevent the audio device from receiving two copies of the first target data. The case of the first target data.
  • the first transceiver and the second transceiver are specifically configured to use different channels to send responses to the audio source device respectively.
  • the audio device can send a response to the audio source device through different channels, and therefore, the diversity of transmission methods is increased.
  • the first transceiver and the second transceiver are specifically configured to use the same channel to send responses to the audio source device at different times.
  • the audio device can send a response to the audio source device through the same channel at different times, thus increasing the diversity of transmission methods.
  • an embodiment of the present application provides an audio source device, including: a sending module, configured to send first target data by broadcast based on a wireless short-range transmission protocol; and a receiving module, configured to respectively receive A first response fed back by the first transceiver according to whether the first target data is successfully received and a second response fed back by the second transceiver in the audio device according to whether the first target data is successfully received; a determining module, for According to the reception of the first response and the second response, it is determined whether to send the first target data again in a broadcast manner.
  • the audio source device may respectively receive the response fed back by each transceiver in the audio device according to whether the first target data is successfully received, and according to The reception of the response determines whether to send the first target data again in a broadcast manner. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers, but each transceiver directly responds to the audio source device separately. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • an embodiment of the present application provides an audio device, including: a first receiving module and a second receiving module, which are configured to prepare to receive first target data according to transmitting and receiving rules; a first sending module and a second sending module, Used to respectively send a response to the audio source device, the response including the first response fed back by the first transceiver according to whether the first target data is successfully received, or the second transceiver feedback according to whether the first target data is successfully received The second response.
  • the audio device may reply to the audio source device the response of each transceiver according to whether the first target data is successfully received. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • an embodiment of the present application provides a data transmission system, including: the audio source device described in the third aspect, and the audio device described in the fourth aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the computer storage medium is located in the sound source device, the computer storage medium stores a computer program, and the computer program includes program instructions that can be used by the sound source When the processor in the device executes, the processor executes the method described in any one of the foregoing third aspects.
  • an embodiment of the present application provides a computer program product, characterized in that the computer program product is stored in the sound source device, and when the computer program product runs on the sound source device, the sound source device executes The method described in any of the foregoing third aspects.
  • the audio source device may respectively receive the response generated by each transceiver in the audio device according to whether the first target data is successfully received, and according to the The reception status of the response determines whether to send the first target data again in a broadcast manner. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • FIG. 1 is an application scenario diagram of the data transmission method in an embodiment of the application
  • FIG. 2 is a schematic diagram of an embodiment of a data transmission method in an embodiment of this application.
  • FIG. 3 is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • FIG. 4 is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • 5A is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • FIG. 5B is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • FIG. 6A is a schematic diagram of an embodiment of a sound source device in an embodiment of this application.
  • 6B is a schematic diagram of another embodiment of the audio source device in the embodiment of the application.
  • 6C is a schematic diagram of another embodiment of the audio source device in the embodiment of the application.
  • FIG. 7 is a schematic diagram of an embodiment of an audio device in an embodiment of the application.
  • FIG. 8 is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • FIG. 9 is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • 10A is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • 10B is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • 11A is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • FIG. 11B is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • FIG. 12 is a schematic diagram of another embodiment of a data transmission method in an embodiment of this application.
  • the embodiments of the present application provide a data transmission method and related devices, which are used to equalize the energy consumption of each transceiver in an audio device, so that the standby time of each transceiver in the audio device is relatively consistent.
  • the audio source device can simultaneously send target data to multiple transceivers in the audio device.
  • Acknowledgement also known as an acknowledgement character.
  • ACK acknowledgement
  • it refers to a response message sent by the transceiver in the audio device to the audio source device to notify the audio source device that the audio device has confirmed to receive the target data.
  • Negative acknowledgment In data communication, it refers to a transmission control character sent by the receiving end to the sending end to indicate that the data has not been successfully received. In the embodiment of the present application, it refers to a response message sent by the transceiver in the audio device to the audio source device to notify the audio source device that the audio device is unable to receive the target data.
  • Bluetooth baseband (bluetooth baseband): It is used to specify or implement media access and physical layer procedures in the Bluetooth system to support real-time voice and data information flow exchange and establishment of real-time networks between Bluetooth devices.
  • Bluetooth low energy also known as Bluetooth low energy
  • BLE Bluetooth low energy
  • BLE Bluetooth low energy
  • the method proposed in the embodiment of the present application is mainly applied to a data transmission scenario between an audio source device and multiple transceivers in an audio device.
  • the audio source device can be used as a data source to send data to multiple transceivers in the audio device.
  • Each transceiver in the audio device can be independent of other transceivers.
  • all the transceivers in the audio device are The design, production, and sales are all coordinated, and each transceiver in the audio device needs to be used in combination to give users a complete experience.
  • the complete experience refers to the experience that the product is designed for users to achieve .
  • any one of the binaural Bluetooth headsets is the transceiver 1021, and the binaural Bluetooth headset is a Audio device 102.
  • the binaural Bluetooth headset is designed, produced and sold as a pair. The original intention of the binaural Bluetooth headset is to allow the user's two ears to receive audio at the same time, so the user needs to wear the headset at the same time. Binaural Bluetooth headsets can enjoy the complete experience.
  • the audio source device that performs data interaction with the audio device can be a smart terminal such as a mobile phone, a tablet computer, and a walk-in player, or other devices that can use the Bluetooth protocol, which is not specifically limited here.
  • the audio device can be the binaural Bluetooth headset described above, or a Bluetooth speaker group composed of multiple Bluetooth speakers, which is not specifically limited here.
  • the audio device is a Bluetooth speaker group
  • the speakers in the Bluetooth speaker group are matched during the design, production and sales, and each Bluetooth speaker in the Bluetooth speaker group needs to be used in combination to provide users with complete Experience.
  • the solutions proposed in the embodiments of this application can also be applied to Wi-Fi-based transmission scenarios, and can also be applied to other one-to-many wireless transmission scenarios.
  • the short-distance transmission scenario is not limited here.
  • only the Bluetooth-based transmission scenario is used as an example for introduction, and the audio source device is a smart terminal and the audio device is a binaural Bluetooth headset for introduction.
  • the audio source device can start data interaction with the audio device. At this time, the audio source device can broadcast to Each transceiver in the audio device sends first target data.
  • the audio source device receives the response sent by each transceiver in the audio device.
  • the response sent by each transceiver in the audio device to the audio source device varies depending on the receiving situation of the first target data. It may be different.
  • the response may be a positive response, which indicates that the transceiver that sent the response received the first target data sent by the audio source device; the response may also be a negative response, which indicates that the transceiver that sent the response did not receive To the first target data sent by the sound source device and request the sound source device to resend the first target data.
  • each transceiver in the audio device is the same, that is, the first target data received by each transceiver in the audio device is the same as the first target data received by other transceivers. it's the same. Furthermore, since each transceiver in the audio device is independent of each other, the probability of each transceiver in the audio device receiving the first target data is the same.
  • the audio device includes at least two transceivers. That is to say, in practical applications, such as the scene of Bluetooth speakers, the number of transceivers can be two or more. There is no limitation here. However, in this embodiment and subsequent embodiments, since the sound source device is a smart terminal and the audio device is a binaural Bluetooth headset as an example for introduction, only the audio device includes the first transceiver and the second transceiver. The machine is introduced as an example.
  • the audio source device and audio device in the data transmission method perform the following steps, including:
  • the audio source device sends a data transmission notification to each transceiver in the audio device;
  • the audio source device can send a data transmission notification to each transceiver in the audio device, and the data transmission notification is used to prompt the audio
  • the first transceiver and the second transceiver in the device are ready to receive the first target data and the transceiving rules, and the transceiving rules are for the first transceiver and the second transceiver in the audio device to receive the first target data and send a response. rule. Therefore, each transceiver in the audio device will check whether the audio source device has sent the first target data to itself at regular intervals according to the transceiving rule. Specifically, the interval time can be adjusted according to different actual conditions. There are no restrictions.
  • the smart terminal can perform Bluetooth with the Bluetooth headset. After connecting, the smart terminal will respectively send a data transmission notification to the left earphone and the right earphone in the binaural Bluetooth earphone to prompt the left earphone and the right earphone to prepare to receive the first target data.
  • the audio source device sends the first target data to each transceiver in the audio device in a broadcast manner
  • the audio source device after the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device will broadcast to the audio device Each of the transceivers sends the first target data. Still taking the example listed in step 201 as an example, at this time, the smart terminal can send the first target data to the left earphone and the right earphone respectively.
  • the audio source device will wait for a response respectively sent by each transceiver in the audio device, wherein the response fed back by the first transceiver in the audio device according to whether the first target data is successfully received is the first response, the The response fed back by the second transceiver in the audio device according to whether the first target data is successfully received is the second response.
  • the first target data can be the Bluetooth audio transmission model (advanced audio aistribution profile, A2DP) protocol for audio playback between the smart terminal and the headset in the Bluetooth protocol, or it can be audio data or a Bluetooth protocol.
  • the call data between the smart terminal and the headset may also be other types of data, which is not specifically limited here.
  • the first response sent by the first transceiver in the audio device to the audio source device is an affirmative response
  • the first transceiver is any one of the audio devices.
  • the first transceiver can send the first target data to the audio source device.
  • One response is a positive response.
  • the first transceiver may be a left earphone or a right earphone, which is not specifically limited here.
  • the left earphone will send an affirmative response to the smart terminal to notify the smart terminal that the left earphone has received the first target data. The first target data.
  • the second response sent by the second transceiver in the audio device to the audio source device is an affirmative response
  • the second transceiver may send an affirmative response to the audio source device. Since the first transceiver is assumed to be the left headset in step 203, the second transceiver is assumed to be the right headset. When the right headset receives the first target data, the right headset will send a message to the smart The terminal sends an affirmative response to notify the smart terminal that the right earphone has received the first target data.
  • first transceiver and the second transceiver exemplified in this embodiment are not necessarily the left earphone and the right earphone. It is also possible that the first transceiver is the right earphone and the second transceiver is the left earphone. The specific situation is not limited here. In order to facilitate understanding and unify the examples in the text, in this embodiment and subsequent embodiments, only the first transceiver is the left earphone and the second transceiver is the right earphone as an example.
  • steps 203 and 204 are performed in this embodiment.
  • the first transceiver first sends the first response to the sound source device, and then the second transceiver sends the first response to the audio source device.
  • the audio source device sends the second response; it is also possible that the second transceiver first sends the second response to the audio source device, and then the first transceiver sends the first response to the audio source device, which is not specifically limited here.
  • the audio source device may include multiple receiving antennas. Therefore, the audio source device may receive the first response and the second response respectively through different receiving antennas, where the first response and the second response come from different Channel.
  • the audio source device only includes one receiving antenna, then the audio source device receives the first response and the second response through the receiving antenna at different times, and both the first response and the second response come from the same channel.
  • the number of antennas will vary depending on the type of audio source equipment, and the specific number is not limited here.
  • the audio source device sends the second target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device since the first response and the second response received by the audio source device are both positive responses, the audio source device can determine that both the first transceiver and the second transceiver in the audio device have successfully received In addition, the first target data sent by the audio source device, therefore, the audio source device may send second target data in a broadcast manner, and the second target data is new data that is different from the first target data.
  • first target data and the second target data in this embodiment may be audio data or non-audio data, which is not specifically limited here.
  • the first target data and the second target data may be different types of data.
  • the first target data is audio data
  • the second target data is non-audio data, which is not specifically limited here.
  • the audio source device can respectively receive the response of each transceiver in the audio device according to whether the first target data is successfully received, and according to the response The reception status of determines whether to send the first target data again by broadcasting. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the audio source device and transceiver in the data transmission method Perform the following steps, including:
  • the audio source device sends a data transmission notification to each transceiver in the audio device;
  • the audio source device can send a data transmission notification to each transceiver in the audio device, and the data transmission notification is used to prompt the audio
  • the first transceiver and the second transceiver in the device are ready to receive the first target data and the transceiving rules, and the transceiving rules are for the first transceiver and the second transceiver in the audio device to receive the first target data and send a response. rule.
  • the details are similar to the previous step 201, and will not be repeated here.
  • the audio source device sends the first target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device after the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device broadcasts to the audio device Each transceiver transmits the first target data.
  • the details are similar to step 202 in the foregoing, and will not be repeated here.
  • the audio source device will wait for a response respectively sent by each transceiver in the audio device, wherein the response fed back by the first transceiver in the audio device according to whether the first target data is successfully received is the first response, the The response fed back by the second transceiver in the audio device according to whether the first target data is successfully received is the second response.
  • the first response sent by the first transceiver in the audio device to the audio source device is a negative response
  • the first transceiver is any one of the audio devices.
  • the first transceiver can send a negative to the audio source device answer.
  • the first transceiver may be a left earphone or a right earphone, which is not specifically limited here.
  • the left earphone will send a negative response to the smart terminal to request the The smart terminal resends the first target data.
  • the second response sent by the second transceiver in the audio device to the audio source device is a negative response
  • the second transceiver is any one of the audio devices.
  • the second transceiver can send a negative to the audio source device answer.
  • the second transceiver may be a left earphone or a right earphone, which is not specifically limited here. Since the first transceiver is assumed to be the left earphone in step 303, it is assumed here that the second transceiver is the right earphone.
  • the right earphone will send a negative response to the smart terminal to request the smart terminal to resend the first target data.
  • steps 303 and 304 there is no order in which steps 303 and 304 are performed.
  • the first transceiver first sends the first response to the audio source device, and then the second transceiver sends the second response to the audio source device.
  • the second transceiver first sends the first response to the audio source device, and then the first transceiver sends the second response to the audio source device, which is not specifically limited here.
  • the sound source device will execute step 305 after receiving the negative response sent by the first transceiver or the negative response sent by the second transceiver.
  • the audio source device sends the first target data to each transceiver in the audio device again by broadcasting.
  • the audio source device when the audio source device receives a negative response sent by any one of the audio equipment's transceivers, the audio source device will send the first one to each of the audio equipment's transceivers again by broadcasting.
  • Target data Still taking the smart terminal and dual Bluetooth headsets mentioned in the previous article as an example, after the smart terminal sends the first target data to each headset, if the smart terminal receives a negative response from any headset, the smart terminal The first target data will be sent to each headset again.
  • the audio source device will wait for the response sent by each transceiver in the audio device. If there is a negative response in the response from the first transceiver or the second transceiver, the audio source device will perform the steps again 305, that is to say, the audio source device will again broadcast the first target data to each transceiver in the audio device until the first response and the second response received by the audio source device are both positive responses .
  • step 306 is executed; when the second transceiver in the audio device receives the first target data, step 307 is executed.
  • the first response sent by the first transceiver in the audio device to the audio source device is an affirmative response.
  • the first transceiver in the audio device may send an affirmative response to the audio source device.
  • the left earphone in the binaural bluetooth earphone does not receive the first target data sent by the smart terminal for the first time, but when the left earphone successfully receives the second target data sent by the smart terminal The left earphone may send an affirmative response to the smart terminal to notify the smart terminal that the left earphone has received the first target data.
  • the second response sent by the second transceiver in the audio device to the audio source device is an affirmative response
  • the second transceiver in the audio device may send an affirmative response to the audio source device.
  • the right earphone in the binaural Bluetooth headset may not received the first target data sent by the smart terminal for the first time, but when the right earphone successfully receives the second data sent by the smart terminal The right earphone may send an affirmative response to the smart terminal to notify the smart terminal that the right earphone has received the first target data when the first target data is selected.
  • the audio source device sends the second target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device can determine that both the first transceiver and the second transceiver in the audio device have successfully After receiving the first target data sent by the audio source device, the audio source device may send the second target data in a broadcast manner, and the second target data is new data that is different from the first target data.
  • each transceiver in the audio device if each transceiver in the audio device does not receive the first target data sent by the audio source device, the audio source device will send the first target data to each transceiver in the audio device again. If each transceiver in the audio device can receive the first target data, the audio source device can respectively receive a response directly sent by each transceiver in the audio device to the audio source device. Because in the data interaction process between the transceiver and the audio source device, it is not necessary to use a certain transceiver as a relay to receive the response of other transceivers, so the energy consumption of each transceiver in the audio device can be relatively balanced, Thus, the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the above describes the situation where the response received by the audio source device is all negative responses.
  • the following will introduce the situation where the response received by the audio source device contains both positive and negative responses, as shown in Figure 4, the data transmission
  • the audio source device and transceiver in the method perform the following steps, including:
  • the audio source device sends a data transmission notification to each transceiver in the audio device;
  • the audio source device can send a data transmission notification to each transceiver in the audio device, and the data transmission notification is used to prompt the audio
  • the first transceiver and the second transceiver in the device are ready to receive the first target data and the transceiving rules, and the transceiving rules are for the first transceiver and the second transceiver in the audio device to receive the first target data and send a response. rule.
  • the details are similar to the previous step 201, and will not be repeated here.
  • the audio source device sends the first target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device after the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device broadcasts to the audio device Each transceiver transmits the first target data.
  • the smart terminal can make a Bluetooth connection with the Bluetooth headset, and then the smart terminal can send the first target data to the left headset and the right headset respectively, that is, the left headset.
  • the first target data that the earphone and the right earphone can receive are the same.
  • the audio source device will wait for the response sent by each transceiver in the audio device.
  • the first transceiver performs step 403
  • the second transceiver in the audio device receives the first target data
  • the second transceiver performs step 404.
  • the first response sent by the first transceiver in the audio device to the audio source device is a negative response
  • the first transceiver is any transceiver in the audio device.
  • the first transceiver may send a negative response to the audio source device .
  • the first transceiver may be a left earphone or a right earphone, which is not specifically limited here. In this embodiment, assuming that the left earphone in the binaural Bluetooth headset does not receive the first target data, the left earphone will send a negative response to the smart terminal to request the smart terminal to resend the first target data.
  • the audio source device will execute step 405 after receiving the negative response sent by the first transceiver.
  • the second response sent by the second transceiver in the audio device to the audio source device is an affirmative response
  • the second transceiver is any transceiver in the audio device.
  • the second transceiver may send an affirmative response to the audio source device.
  • the second transceiver may be a left earphone or a right earphone, which is not specifically limited here.
  • the right earphone in the binaural Bluetooth headset receives the first target data
  • the right earphone will send an affirmative response to the smart terminal to inform the smart terminal that the right earphone has received the first target data.
  • the first target data is any transceiver in the audio device.
  • the left earphone may first send a response to the smart terminal, and then the right earphone may send a response to the smart terminal; it may also be the right earphone first. Send a response to the smart terminal, and then the left earphone sends a response to the smart terminal, which is not specifically limited here.
  • the sound source device may include multiple receiving antennas. Therefore, the sound source device may receive the first response and the second response through different receiving antennas, where the first response and the second response come from different Channel.
  • the audio source device includes a receiving antenna. Therefore, the audio source device receives the first response and the second response through the receiving antenna at different times, and both the first response and the second response come from the same channel.
  • the number of antennas will vary depending on the type of audio source equipment, and the specific number is not limited here.
  • the audio source device again sends the first target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device when the audio source device receives a negative response sent by any one of the audio equipment's transceivers, the audio source device will send the first one to each of the audio equipment's transceivers again by broadcasting.
  • Target data Still taking the smart terminal and dual Bluetooth headsets mentioned in the previous article as an example, after the smart terminal sends the first target data to each headset, if the smart terminal receives a negative response from any headset, the smart terminal The first target data will be sent to each earphone by broadcasting again.
  • the audio source device will wait for the response sent by each transceiver in the audio device. If there is a negative response in the response from the first transceiver or the second transceiver, the audio source device will perform the steps again 405, that is, the audio source device will once again send the first target data to each transceiver in the audio device in a broadcast manner until the first response received by the audio source device is an affirmative response, and the second The response is also an affirmative.
  • the first transceiver in the audio device does not receive the first target data
  • the first transceiver executes step 407; at this time, the second transceiver in the audio device that has received the first target data Step 406 will be executed.
  • the audio device when the second transceiver in the audio device confirms that the first target data already exists, that is, when the second transceiver in the audio device confirms that it has received the first target data, the audio device The second transceiver in will refuse to receive the first target data.
  • the audio device will refuse to receive the first target data.
  • the first response sent by the first transceiver in the audio device to the audio source device is an affirmative response
  • the first transceiver in the audio device may send an affirmative response to the audio source device.
  • the left earphone in the binaural bluetooth earphone does not receive the first target data sent by the smart terminal for the first time, but when the left earphone successfully receives the second target data sent by the smart terminal
  • the left earphone may send an affirmative response to the smart terminal to notify the smart terminal that the right earphone has received the first target data.
  • the audio source device sends the second target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device since the second response received by the audio source device for the first time is an affirmative response, and the first response received for the second time is also an affirmative response, that is, the audio source device responds to the same first target.
  • the data is sent and the affirmative response of each transceiver is received respectively, so the audio source device can determine that the first transceiver and the second transceiver in the audio device have successfully received the first target sent by the audio source device Therefore, the audio source device can send second target data in a broadcast manner, and the second target data is new data that is different from the first target data.
  • the sound source device may respectively receive the response directly sent to the sound source device by each transceiver in the audio device. Because in the data interaction process between the transceiver and the audio source device, it is not necessary to use a certain transceiver as a relay to receive the response of other transceivers, so the energy consumption of each transceiver in the audio device can be relatively balanced, Thus, the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the audio source device can receive the responses sent by all audio devices.
  • the audio source device may not successfully receive the response returned by each transceiver, that is, the audio source The device may only receive a part of the response, as shown in FIG. 5A.
  • the audio source device and the transceiver in the data transmission method perform the following steps, including:
  • the audio source device sends a data transmission notification to each transceiver in the audio device;
  • the audio source device may send a data transmission notification to each transceiver in the audio device.
  • the details are similar to the previous step 201, and will not be repeated here.
  • the audio source device sends the first target data to each transceiver in the audio device in a broadcast manner.
  • the audio source device after the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device sends the first target data to each transceiver in the audio device. Send the first target data.
  • the details are similar to step 202 in the foregoing, and will not be repeated here.
  • the second transceiver in the audio device receives the first target data
  • the second transceiver in the audio device sends an affirmative response to the audio source device.
  • the second transceiver is any one of the audio devices.
  • the second transceiver can send an affirmative response to the audio source device .
  • the second transceiver may be a left earphone or a right earphone, which is not specifically limited here.
  • the right earphone in the binaural Bluetooth headset receives the first target data
  • the right earphone will send an affirmative response to the smart terminal to inform the smart terminal that the right earphone has received the first target data.
  • the first target data is any one of the audio devices.
  • the audio source device sends first target data to each transceiver in the audio device.
  • the total number of responses received by the sound source device is less than the total number of the transceivers in the audio device.
  • the audio source device will send the first target data to each transceiver in the audio device again. If the first transceiver in the audio device receives the first target data re-sent by the audio source device, step 506 is executed. Following the example introduced in step 503, when the smart terminal only receives the affirmative response from the right earphone, the smart terminal will send the first target data to each earphone again.
  • the audio source device when the total number of responses received by the audio source device is less than the total number of the transceivers in the audio device, except for the possibility that some transceivers have not received the first target data sent by the audio source device, as shown in the figure As shown in 5B, it may also be because some transceivers have received the first target data but did not send an acknowledgement response in time. At this time, the audio source device will also send the first target to each transceiver in the audio device again. data. At this time, the first transceiver executes step 507.
  • the audio device when the second transceiver in the audio device confirms that the first target data already exists, that is, when the second transceiver in the audio device confirms that it has received the first target data, the audio device The second transceiver in will refuse to receive the first target data. The details are similar to step 406 above, and will not be repeated here.
  • the first transceiver in the audio device receives the first target data
  • the first transceiver in the audio device sends an affirmative response to the audio source device.
  • the first transceiver in the audio device may send an affirmative response to the audio source device.
  • the details are similar to step 407 above, and will not be repeated here.
  • the audio device executes step 507.
  • the first transceiver in the audio device confirms that the first target data already exists, the first transceiver refuses to receive the first target data.
  • the first transceiver because the first transceiver has received the first target data sent by the audio source device for the first time, but it did not send the affirmative response in time, when the audio source device sends the first target data to the first transceiver again When the first target data is used, the first transceiver refuses to receive the first target data.
  • the audio source device since the audio source device did not receive the response from the first transceiver, after resending the first target data to the first audio source device, the first transceiver again refused to receive the first target data , The audio source device can determine that the first transceiver has received the first target data.
  • the audio source device can respectively receive the response of each transceiver in the audio device according to whether the first target data is successfully received, and according to the response The reception status of determines whether to send the first target data again by broadcasting. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the data transmission method proposed in the embodiment of the present application is introduced above, and the audio source device and audio device in the data transmission method are introduced below.
  • the structure of the audio source device 60 is shown in FIG. 6A, including: a receiver 601, a transmitter 602, and a processor 603.
  • the receiver 601 and the transmitter 602 are respectively coupled to the processor 603; the transmitter 602,
  • the receiver 601 is used to send the first target data by broadcast based on the wireless short-range transmission protocol.
  • the receiver 601 is used to respectively receive the first feedback from the first transceiver in the audio device according to whether the first target data is successfully received.
  • the processor 603 is configured to determine whether to re-receive the first response and the second response
  • the first target data is sent in a broadcast manner.
  • the processor 603 when the first response or the second response is a negative response, is specifically configured to determine that the transmitter 602 sends the first target data again in a broadcast manner, where, if the If the first response is a negative response, it means that the first transceiver has not received the first target data. If the second response is a negative response, it means that the second transceiver has not received the first target data.
  • the processor 603 is specifically configured to determine that the transmitter 602 transmits again in a broadcast manner.
  • the first target data is specifically configured to determine that the transmitter 602 transmits again in a broadcast manner.
  • the receiver 601 is also used to receive information on whether the first transceiver or the second transceiver has successfully received the first target data sent again. Response, the response is a positive response or a negative response.
  • the processor 603 is specifically configured to determine that the first target data is no longer sent when the first response and the second response are both affirmative responses, wherein, if the first response is A positive response means that the first transceiver has received the first target data, and if the second response is a positive response, it means that the second transceiver has received the first target data.
  • the transmitter 602 is also used to send the second target data in a broadcast manner.
  • both the first target data and the second target data in this embodiment can be obtained by the processor 603 from the memory, and processed, and then sent to the transmitter 602 to prepare for transmission.
  • the details are not limited here. .
  • the audio source device 60 further includes a Bluetooth baseband 6031, and the Bluetooth baseband 6031 is used to determine the sending and receiving rules.
  • Bluetooth baseband 6031 may be located in the processor 603 in FIG. 6A, or may be independent of the processor 603, which is not specifically limited here.
  • the receiver 601, transmitter 602, and Bluetooth baseband 6031 in FIG. 6B can be integrated on a single chip, or can be integrated with a Bluetooth-enabled chipset, specifically here Not limited. However, such chips or chipsets can be manufactured, sold or used as independent products.
  • the audio source device 60 further includes a Wi-Fi module (not shown), and the Wi-Fi module may also be used to determine the transmission and reception rules.
  • the Wi-Fi module alone can be integrated on a certain chip in the audio source device, or can be integrated on a chip or a group of chips together with the receiver 601 and the transmitter 602, which is not specifically limited here. However, such chips or chipsets can also be manufactured, sold or used as independent products.
  • the receiver 601 in the audio source device 60 when the receiver 601 in the audio source device 60 is connected to multiple receiving antennas, as shown in FIG. 6B, when the receiver 601 in the audio source device 60 is connected to two receiving antennas 6042/6041 as As an example, the receiver 601 is connected to the first receiving antenna 6041 and the second receiving antenna 6042 respectively.
  • the receiver 601 is specifically configured to receive the first response and the first response fed back by the first transceiver in the audio device according to whether the first target data is successfully received through the first receiving antenna 6041 and the second receiving antenna 6042 respectively.
  • the second transceiver in the audio device feeds back a second response according to whether the first target data is successfully received, and the first response and the second response are from different channels.
  • the receiver 601 is specifically used to receive the first transceiver in the audio device through the receiving antenna 6043 at different times.
  • the responses are all from the same channel.
  • the receiving antenna 6042/6041 may be an internal antenna or an external antenna, which is not specifically limited here. It should also be understood that the shape of the receiving antenna 6041/6042/6043 or the transmitting antenna 605 in FIG. 6B and FIG. 6C is only used as a schematic diagram of the antenna. In practical applications, the receiving antenna 6041/6042/6043 or the transmitting antenna 605 The specific shape and size are not limited to those shown in Figs. 6B and 6C.
  • the transmitter 602 is also used to send a data transmission notification to the audio device, and the data transmission notification is used to prompt the first transceiver and the second transceiver in the audio device to prepare to receive first target data
  • a transceiving rule which is a rule for the first transceiver and the second transceiver in the audio device to receive the first target data and send a response.
  • the audio source device can respectively receive the response of each transceiver in the audio device according to whether the first target data is successfully received, and according to the response The reception status of determines whether to send the first target data again by broadcasting. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the audio device 70 includes a first transceiver 701 and a second transceiver 702, wherein the first transceiver The first transceiver 701 and the second transceiver 702 are respectively used to prepare to receive the first target data according to the transceiving rules; the first transceiver 701 and the second transceiver 702 are also used to respectively send a response to the sound source device 60, and the response includes the The first response fed back by the first transceiver 701 according to whether the first target data is successfully received, or the second response fed back by the second transceiver 702 according to whether the first target data is successfully received.
  • the first transceiver 701 and the second transceiver 702 are also used to respectively receive a data transmission notification sent by the audio source device 60, and the data transmission notification is used to prompt the first transceiver in the audio device
  • the receiver 701 and the second transceiver 702 are ready to receive first target data or a transceiving rule, which is a rule for the first transceiver 701 and the second transceiver 702 in the audio device to receive the first target data and send a response.
  • the first transceiver 701 or the second transceiver 702 is also used to confirm that the first target data to be received already exists, and refuse to receive the The first target data.
  • the first transceiver 701 and the second transceiver 702 are specifically configured to use different channels to respectively send responses to the audio source device 60.
  • the first transceiver 701 and the second transceiver 702 are specifically configured to use the same channel to send responses to the audio source device 60 at different times.
  • first transceiver 701 and the second transceiver 702 shown in FIG. 7 are merely examples selected in various implementation manners, and the audio device 70 may also include other transceivers in practical applications.
  • each transceiver in the audio device 70 is designed, produced and sold as a complete set, for example, a pair of Bluetooth headsets or a complete set of speakers, which is not specifically limited here.
  • the audio device may reply to the audio source device the response of each transceiver according to whether the first target data is successfully received. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers. Instead, each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the audio device includes at least two transceivers.
  • the audio device includes the first transceiver and the second transceiver as an example for introduction.
  • the air interface interaction sequence diagram between the audio source device and each transceiver in the audio device is shown in Figure 8.
  • This figure includes the audio source device and the audio device.
  • TX represents the transmit timeline
  • RX represents the receive timeline.
  • the audio source device, the first transceiver and the second transceiver all occupy Two timelines.
  • each timeline can be divided into a complete event and a subevent according to the steps of the target data transmission process.
  • a subevent refers to the audio source device sending target data to each transceiver in the audio device, and then, Each transceiver in the audio device replies a response to the audio source device.
  • a sub-event between the audio source device and the audio device does not necessarily guarantee that the audio device successfully receives the target data sent by the audio source device. Therefore, one or more times may occur after the first sub-event.
  • Sub-event until each transceiver in the audio device has received the target data sent by the audio source device and successfully responded to the audio source device with an affirmative answer. Wherein, from the sound source device sending the first target data in a broadcast manner to the sound source device receiving the affirmative response from the last transceiver in the audio device, it is called a complete event.
  • the audio source device only includes one receiving antenna. After the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device will broadcast to each transceiver in the audio device Send the first target data. Then, the audio source device receives the response sent by each transceiver in the audio device at different times through the same antenna, wherein the first transceiver in the audio device feeds back the response according to whether the first target data is successfully received As the first response, the response fed back by the second transceiver in the audio device according to whether the first target data is successfully received is the second response.
  • the audio source device After the device finishes sending the first target data of the last bit and the first transceiver sends the first data bit response to the sound source device, the interval between the first network frame interval (time of interframe space, T_IFS) .
  • the interval between the sound source device sending the first target data of the last bit and the second transceiver sending the response of the first data bit to the sound source device is the second network frame interval (time of second inter frame space, T_SIFS).
  • T_IFS and T_SIFS in this embodiment may be different depending on the adopted Bluetooth protocol.
  • the T_IFS is 150us. Therefore, the details are not limited here.
  • each transceiver in the audio device should follow the previous agreement with the audio source device.
  • the first transceiver of the audio device After the device finishes sending the T_IFS time, it replies to the audio source device with a first response.
  • the first response is an affirmative response, which means that the first transceiver that sent the first response received the first target data sent by the audio source device ; Also in accordance with the agreement, after the T_SIFS time after the audio source device completes the transmission, the second transceiver replies to the audio source device with a second response, the second response is a positive response, the positive response represents the second response to the second The transceiver receives the first target data sent by the audio source device.
  • the answer understands that in actual applications, it is not necessary that the first transceiver first replies to the sound source device with a response, but it may also be that the second transceiver first replies to the sound source device with a response.
  • the specifics are not limited here.
  • the example only takes the first transceiver to reply to the audio source device as an example for introduction. It should also be understood that if the audio device contains more than two transceivers, the order in which multiple transceivers reply to the audio source device can follow the above rules and analogy, and the details will not be repeated here.
  • the first target data in this embodiment can be the A2DP protocol for audio playback between the smart terminal and the headset in the Bluetooth protocol, or it can be audio data, or it can be the Bluetooth protocol between the smart terminal and the headset.
  • the call data can also be other types of data, which is not limited here.
  • the audio source device can receive each transceiver in the audio device at different times through the same receiving antenna, depending on whether the first target data is successfully received. Feedback the response, and determine whether to send the first target data again by broadcasting according to the reception of the response. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers, but each transceiver directly responds to the audio source device. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the response received by the audio source device is all negative. In the figure, it is still a scene where the audio source device only includes one receiving antenna. After the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device will broadcast to each transceiver in the audio device Send the first target data. Then, the sound source device receives the response sent by each transceiver in the audio device at different times through the same antenna.
  • the first transceiver of the audio device finishes sending the T_IFS time of the sound source device, it sends the response to the The audio source device replies with a first response, the first response being a negative response, which means that the transceiver that sent the response did not receive the first target data sent by the audio source device and requests the audio source device to resend the first target data; similarly
  • the second transceiver replies to the audio source device with a second response.
  • the second response is a negative response, which means that the transceiver that sent the response did not receive the audio source.
  • the device sends the first target data and requests the audio source device to resend the first target data.
  • the first target data is sent from the sound source device to the audio device in a broadcast manner, and when the sound source device receives the second response of the second transceiver, sub-event 1 ends. Since the audio source device did not complete the task of sending the first target data to each transceiver in the audio device, sub-event 2 was triggered, and the audio source device again broadcasts to each of the audio devices.
  • the device sends the first target data, and then, similarly, when the first transceiver of the audio device sends a first response to the audio source device after the T_IFS time that the audio source device completes the transmission, the first response is affirmative at this time Response, the affirmative response indicates that the first transceiver that sent the first response received the first target data sent by the audio source device; also according to the agreement, after the audio source device completes the transmission after T_SIFS time, the second transceiver sends the The audio source device replies with a second response. At this time, the second response is an affirmative response, which indicates that the second transceiver that sent the second response received the first target data sent by the audio source device.
  • the sound source device receives the affirmative response from the last transceiver in the audio device, which means that each transceiver in the audio device has received the first target data sent by the sound source device and has notified the Each transceiver of the audio source device has received the first target data. Therefore, the sub-event 2 is completed. In this case, the sub-event 1 and the sub-event 2 are combined together as a complete event. It should be understood that a complete event may have only one sub-event as shown in FIG. 8, or may include two sub-events as shown in FIG. 9, and may also include multiple sub-events, which is not specifically limited here.
  • the audio source device when the response returned by the first transceiver in the audio device to the audio source device is a negative response, and when the response returned by the second transceiver in the audio device to the audio source device is a positive response Time.
  • the audio source device after the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device will broadcast to each of the audio devices.
  • a transceiver transmits the first target data.
  • the sound source device receives the response sent by each transceiver in the audio device at different times through the same antenna.
  • the first transceiver of the audio device finishes sending the T_IFS time of the sound source device, it sends the response to the The audio source device replies with a first response, the first response being a negative response, which means that the transceiver that sent the response did not receive the first target data sent by the audio source device and requests the audio source device to resend the first target data; similarly
  • the second transceiver replies to the audio source device with a second response.
  • the second response is an affirmative response, which indicates that the transceiver that sent the response received the audio source device.
  • the first target data sent sent.
  • the first target data is sent from the sound source device to the audio device in a broadcast manner, and when the sound source device receives the second response of the second transceiver, sub-event 1 ends. Since the audio source device did not complete the task of sending the first target data to each transceiver in the audio device, sub-event 2 was triggered, and the audio source device again broadcasts to each of the audio devices.
  • the device sends the first target data, and then, similarly, when the first transceiver of the audio device sends a first response to the audio source device after the T_IFS time that the audio source device completes the transmission, the first response is affirmative at this time A response, the affirmative response indicates that the first transceiver that sent the first response received the first target data sent by the audio source device.
  • each transceiver in the audio device has received the first target data sent by the audio source device, and has notified the audio source device that each transceiver has received the first target data.
  • the second transceiver replies to the audio source device as For a negative response, the specific situation is similar to the previous step 401 to step 408, so it will not be repeated here.
  • the audio source device can receive the responses sent by all audio devices.
  • the audio source device may not successfully receive the response returned by each transceiver, that is, the audio source The device may only receive a part of the response, please refer to Figure 11A and Figure 11B for details.
  • the audio source device After the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device will broadcast to each transceiver in the audio device Send the first target data. Then, the sound source device receives the response sent by each transceiver in the audio device at different times through the same antenna. Specifically, as shown in FIG.
  • the sound source device fails to The response returned by the first transceiver in the audio device is received.
  • the first transceiver may also be the first transceiver Failed to receive the first target data, but failed to successfully send a negative response; it may also be because the first transceiver has sent an affirmative response or a negative response, but the audio source device failed due to signal interference and other reasons Receive the response of the first transceiver.
  • the second transceiver replies to the audio source device with a second response.
  • the second response is an affirmative response, which indicates that the transceiver that sent the response received the audio source
  • the first target data sent by the device Since the audio source device fails to receive the response of the first transceiver, the audio source device cannot determine that the first transceiver in the audio device has successfully received the first target data.
  • the audio source device sends the first target data to each transceiver in the audio device again in a broadcast manner, and then, similarly, when the first transceiver of the audio device finishes sending the T_IFS time of the audio source device, Reply to the sound source device with a first response.
  • the first response is an affirmative response, which indicates that the first transceiver that sent the first response has received the first target data sent by the sound source device.
  • the audio source device when the audio source device sends the first target data to each transceiver in the audio device by broadcasting, the audio source device does not receive the second transceiver station.
  • the specific situation of the reply is similar to the previous step 501 to step 507, and the details will not be repeated here.
  • the audio source device can receive each transceiver in the audio device at different times through the same receiving antenna, depending on whether the first target data is successfully received. Feedback the response, and determine whether to send the first target data again by broadcasting according to the reception of the response. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers, but each transceiver directly responds to the audio source device separately. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.
  • the sound source device receives the responses from the transceivers in the audio device at different times through the same antenna.
  • the following describes the case when the sound source device contains at least two receiving antennas, as shown in Figure 12. It is shown that in this case, the audio source device can receive the response from each transceiver in the audio device at the same time through different antennas.
  • the audio source device After the audio source device sends a data transmission notification to each transceiver in the audio device, the audio source device will formally send the first target data, that is, the audio source device will broadcast to each of the audio devices.
  • a transceiver transmits the first target data.
  • the audio source device receives the first transceiver in the audio device through the first receiving antenna and the second receiving antenna shown in FIG.
  • the first response returned and the second response returned by the second transceiver.
  • the first response and the second response are both affirmative responses, and the affirmative response indicates that the transceiver received the first response sent by the audio source device.
  • One target data At this time, each transceiver in the audio device has received the first target data and replies with an affirmative response to the audio source device, indicating that each transceiver in the audio device has received the first target data.
  • the audio source device can receive feedback from each transceiver in the audio device through different receiving antennas according to whether the first target data is successfully received. Respond, and determine whether to send the first target data again in a broadcast manner according to the reception of the response. Because, in the data exchange process between the transceiver and the audio source device, there is no need to use a certain transceiver as a relay to receive responses from other transceivers, but each transceiver directly responds to the audio source device separately. Therefore, the energy consumption of each transceiver in the audio device can be relatively balanced, so that the standby time of each transceiver is relatively consistent, thereby improving user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种数据传输方法,用于使音频设备中的各接收器的耗能均衡,从而使该音频设备中的各接收器的待机时间相对一致。本申请实施例中的数据传输方法包括:音源设备基于无线短距离传输协议,以广播的方式发送第一目标数据;所述音源设备分别接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应;所述音源设备根据所述第一响应和所述第二响应的接收情况,确定是否再次以广播的方式发送所述第一目标数据。

Description

一种数据传输方法以及相关装置 技术领域
本申请实施例涉及通信技术领域,尤其涉及一种数据传输方法以及相关装置。
背景技术
蓝牙(bluetooth)是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换。随着用户需求的不断提高,蓝牙无线传输技术也由一对一数据传输向一对多数据传输发展。
在一对多的通信方式中,音源设备与多个收发机采用蓝牙方式连接,该多个收发机分主收发机和副收发机,该主收发机与副收发机之间也采用蓝牙连接。在数据传输时,音源设备向主收发机和副收发机发送目标数据,当副收发机接收到目标数据后,该副收发机将响应发送给主收发机,然后,该主收发机将所有的副收发机的响应和主收发机的响应发送给音源设备,最后,该音源设备根据所有的副收发机的响应和主收发机的响应确定是否需要重传该目标数据。
在这样的方案中,需要区分主收发机和副收发机,主收发机需要在综合主收发机的接收情况和副收发机的响应情况后统一回复音源设备,具体地,副收发机只需要执行一次接收和一次发送,主收发机要执行多次接收和一次发送,导致主收发机耗能较高,于是造成各收发机的耗能不均衡,进而导致各收发机的待机时间不一致,从而影响用户体验。
发明内容
本申请实施例提供了一种数据传输方法以及相关装置,用于使音频设备中的各收发机的耗能均衡,从而使该音频设备中的各收发机的待机时间相对一致。
第一方面,本申请实施例提供了一种数据传输方法,包括:在一对多的数据传输场景中,音源设备基于无线短距离传输协议,以广播的方式向音频设备中的每一个收发机发送第一目标数据;然后,该音源设备将分别接收该音频设备中的各个收发机回复给该音源设备的响应,其中,该响应可以是音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应,该响应也可以是音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应。然后,该音源设备根据该第一响应和该第二响应的接收情况确定是否再次以广播的方式发送该第一目标数据。
本申请实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机根据该第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
根据第一方面,本申请实施例第一方面的第一种实施方式中,该音源设备根据该第一响应和该第二响应的接收情况,确定是否再次以广播的方式发送该第一目标数据包括:当该第一响应或该第二响应为否定应答时,该音源设备以广播的方式再次发送该第一目标数据,其中,若该第一响应为否定应答,则表示该第一收发机未接收到该第一目标数据,若该第二响应为否定应答,则表示该第二收发机未接收到该第一目标数据。
本实施方式中,明确了当该音源设备接收的响应中存在否定应答时,该音源设备将以广播的方式再次发送该第一目标数据。在这样的方案中,由于否定应答代表发送该否定应答的收发机未成功接收到该音源设备所发送的目标数据,于是,当该音源设备收到的多个响应中存在否定应答时,该音源设备便以广播的方式再次向该音频设备发送该第一目标数据。因此,这样的方案可以避免该音源设备忽略掉未能成功接收该第一目标数据的音频设备中的收发机,从而保证该音频设备中的每一个收发机都接收该第一目标数据。
根据第一方面,本申请实施例第一方面的第二种实施方式中,该音源设备根据该第一响应和该第二响应的接收情况确定是否再次以广播的方式发送该第一目标数据或发送第二目标数据包括:当该音源设备未接收到该第一响应或未接收到该第二响应时,该音源设备再次以广播的方式发送该第一目标数据。
本实施方式中,还提出了关于音源设备未接收到部分或者全部响应的情况的处理方式。在这样的情况下,由于,该音源设备未接收到某一个或者某几个收发机所发送的响应,因此,该音源设备便无法确定这些未回复响应的收发机是否已成功接收该第一目标数据。于是,为保证该音频设备中的各个收发机能够接收到该第一目标数据,该音源设备将再次以广播的方式发送该第一目标数据,从而保证该音频设备中的每一个收发机都接收该第一目标数据。
根据第一方面的第一种实施方式或第一方面的第二种实施方式,本申请实施例第一方面的第三种实施方式中,该音源设备以广播的方式再次发送该第一目标数据之后,该方法还包括:该音源设备接收该第一收发机或该第二收发机针对再次发送的第一目标数据的是否成功接收的响应,其中,该响应为肯定应答或者否定应答。
本实施方式中,提出当该音源设备以广播的方式再次发送该第一目标数据之后,该音源设备依然要再次接收该音频设备中的各个收发机所反馈的响应,这样该音源设备才会进一步确定是否要重新发送该第一目标数据。
根据第一方面,本申请实施例第一方面的第四种实施方式中,该音源设备根据该第一响应和该第二响应的接收情况,确定是否再次以广播的方式发送该第一目标数据:当该第一响应和该第二响应均为肯定应答时,该音源设备不再发送该第一目标数据,其中,若该第一响应为肯定应答,则表示该第一收发机已接收到该第一目标数据,若该第二响应为肯定应答,则表示该第二收发机已接收到该第一目标数据。
本实施方式中,明确了该音源设备接收的响应的另一种情况,在这样的情况下,该第一响应和该第二响应均为肯定应答,则说明该音频设备中的每一个收发机都已经成功接收到该音源设备所发送的该第一目标数据,因此,该音频设备就不需要该音源设备再向该音频设备发送该第一目标数据。
根据第一方面的第四种实施方式,本申请实施例第一方面的第五种实施方式中,该音源设备不再发送该第一目标数据之后,该方法还包括:该音源设备以广播的方式发送第二目标数据。
本实施方式中,由于,该音频设备中的每一个收发机都已经成功接收到该音源设备所发送的该第一目标数据,此时,该音源设备还可以以广播的方式向该音频设备中的每一个收发机发送第二目标数据,并且,该第二目标数据是不同于该第一目标数据的数据。因此,采用上述方案可以使该音源设备在已成功向该音频设备中的各个收发机发送了第一目标数据后,又接着向该音频设备中的各个收发机发送第二目标数据,从而使得该音源设备可以连续向该音频设备中的各个收发机发送不同的数据,进而保证了数据传输的连续性和数据传输的多样性。
根据第一方面、第一方面的第一种实施方式至第一方面的第五种实施方式,本申请实施例第一方面的第六种实施方式中,该无线短距离传输协议包括蓝牙协议或Wi-Fi协议。
本实施方式中,列举了无线短距离传输的具体方式,该无线短距离传输可以采用蓝牙的方式,也可以采用Wi-Fi的方式,因此增加了方案的实现灵活性。
根据第一方面的第六种实施方式,本申请实施例第一方面的第七种实施方式中,该音源设备包括多个接收天线;该音源设备分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应包括:该音源设备通过不同的接收天线分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应,该第一响应和该第二响应分别来自不同的频道。
本实施方式中,提出了具有多个接收天线的音源设备,于是该音源设备可以通过不同的天线接收不同频道的响应,因此,增添了音源设备与音频设备直接的数据传输通道,使得数据的传输更加高效。
根据第一方面的第六种实施方式,本申请实施例第一方面的第八种实施方式中,该音源设备包括一个接收天线;该音源设备分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应包括:该音源设备分别在不同的时刻通过该接收天线接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应,该第一响应和该第二响应均来自相同频道。
本实施方式中,提出了若该音源设备仅有一个接收天线的情况,此时,该音源设备可以分别在不同的时刻通过该接收天线接收该音频设备中的各个收发机发送的来自相同频道的响应,因此,增加了该方案的实现灵活性。
根据第一方面,本申请实施例第一方面的第九种实施方式中,该音源设备基于无线短距离传输协议,以广播的方式发送第一目标数据之前,该方法还包括:音源设备向音频设备发送数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机 准备接收第一目标数据和收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。
本实施方式中,明确了该音源设备以广播的方式向该音频设备发送第一目标数据之前,该音源设备还将执行一些准备工作,例如,该音源设备还应向该音频设备发送数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据和收发规则。因此,增加了该方案的可行性和完整性。
第二方面,本申请实施例提供了一种数据传输方法,包括:音频设备中的第一收发机和第二收发机根据收发规则分别准备接收第一目标数据;该音频设备中的第一收发机和第二收发机分别向音源设备发送响应,该响应包括该第一收发机根据该第一目标数据是否成功接收而反馈的第一响应,或该第二收发机根据该第一目标数据是否成功接收而反馈的第二响应。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音频设备可以分别向该音源设备回复各个收发机根据第一目标数据是否成功接收而反馈的响应。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
根据第二方面,本申请实施例第二方面的第一种实施方式中,该音频设备中的第一收发机和第二收发机根据收发规则分别准备接收第一目标数据之前,该方法还包括:音频设备中的第一收发机和第二收发机分别接收音源设备发送的数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据或收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。
本实施方式中,明确了该音频设备在接收第一目标数据之前,该音频设备还要接收数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据或收发规则,以使得该音频设备可以根据该收发规则分别准备接收第一目标数据。因此,增加了该方案的可行性和完整性。
根据第二方面,本申请实施例第二方面的第二种实施方式中,该方法还包括:当该音频设备中的收发机确认待接收的该第一目标数据已存在时,该收发机拒绝接收该第一目标数据,该收发机为该第一收发机或该第二收发机。
本实施方式中,明确了当该音频设备中的收发机确认待接收的该第一目标数据已存在时,该收发机拒绝接收该第一目标数据,因此,可以避免该音频设备重复接收两份第一目标数据的情况。
根据第二方面,本申请实施例第二方面的第三种实施方式中,该音频设备中的第一收发机和第二收发机分别向音源设备发送响应包括:该音频设备中的第一收发机和第二收发机采用不同的频道分别向该音源设备发送响应。
本实施方式中,明确了该音频设备可以通过不同频道向该音源设备发送响应,因此,增添了传输方式的多样性。
根据第二方面,本申请实施例第二方面的第四种实施方式中,该音频设备中的第一收发机和第二收发机分别向音源设备发送响应包括:该音频设备中的第一收发机和第二收发机采用相同的频道在不同的时刻向该音源设备发送响应。
本实施方式中,提出了该音频设备可以在不同时刻通过相同的频道向该音源设备发送响应,因此,增添了传输方式的多样性。
第三方面,本申请实施例提供了一种音源设备,包括:处理器、接收机和发射机,该接收机和该发射机分别耦合至该处理器;其中,该发射机,用于基于无线短距离传输协议,以广播的方式发送第一目标数据;该接收机,用于分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应;此外,该处理器,还用于根据该第一响应和该第二响应的接收情况确定是否再次以广播的方式发送该第一目标数据。
本申请实施例中,在音源设备中的发射机以广播的方式发送第一目标数据之后,该音源设备中的接收机可以分别接收该音频设备中的各个收发机根据该第一目标数据是否成功接收而反馈的响应,然后,该音源设备中的处理器根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
根据第三方面,本申请实施例第三方面的第一种实施方式中,该处理器,具体用于当该第一响应或该第二响应为否定应答时,确定该发射机以广播的方式再次发送该第一目标数据,其中,若该第一响应为否定应答,则表示该第一收发机未接收到该第一目标数据,若该第二响应为否定应答,则表示该第二收发机未接收到该第一目标数据。
本实施方式中,明确了当该音源设备接收的响应中存在否定应答时,该音源设备将以广播的方式再次发送该第一目标数据。在这样的方案中,由于否定应答代表发送该否定应答的收发机未成功接收到该音源设备所发送的目标数据,于是,当该音源设备收到的多个响应中存在否定应答时,该音源设备便以广播的方式再次向该音频设备发送该第一目标数据。因此,这样的方案可以避免该音源设备忽略掉未能成功接收该第一目标数据的音频设备中的收发机,从而保证该音频设备中的每一个收发机都接收该第一目标数据。
根据第三方面,本申请实施例第三方面的第二种实施方式中,该处理器,具体用于当该音源设备未接收到该第一响应或未接收到该第二响应时,确定该发射机以广播的方式再次发送该第一目标数据。
本实施方式中,还提出了关于音源设备未接收到部分或者全部响应的情况的处理方式。在这样的情况下,由于,该音源设备未接收到某一个或者某几个收发机所发送的响应,因此,该音源设备便无法确定这些未回复响应的收发机是否已成功接收该第一目标数据。于是,为保证该音频设备中的各个收发机能够接收到该第一目标数据,该音源设备将再次以广播的方式发送该第一目标数据,从而保证该音频设备中的每一个收发机都接收该第一目标数据。
根据第三方面的第一种实施方式或第三方面的第二种实施方式,本申请实施例第三方面的第三种实施方式中,该接收机,还用于接收该第一收发机或该第二收发机针对再次发送的第一目标数据的是否成功接收的响应,其中,该响应为肯定应答或者否定应答。
本实施方式中,提出当该音源设备中的发射机以广播的方式再次发送该第一目标数据之后,该音源设备中依然要再次接收该音频设备中的各个收发机所反馈的响应,这样该音源设备才会进一步确定是否要重新发送该第一目标数据。
根据第三方面,本申请实施例第三方面的第四种实施方式中,该处理器,具体用于当该第一响应和该第二响应均为肯定应答时,确定不再发送该第一目标数据,其中,若该第一响应为肯定应答,则表示该第一收发机已接收到该第一目标数据,若该第二响应为肯定应答,则表示该第二收发机已接收到该第一目标数据。
本实施方式中,明确了该音源设备接收的响应的另一种情况,在这样的情况下,该第一响应和该第二响应均为肯定应答,则说明该音频设备中的每一个收发机都已经成功接收到该音源设备所发送的该第一目标数据,因此,该音频设备就不需要该音源设备再向该音频设备发送该第一目标数据。
根据第三方面的第四种实施方式,本申请实施例第三方面的第五种实施方式中,该发射机,还用于以广播的方式发送第二目标数据。
本实施方式中,由于,该音频设备中的每一个收发机都已经成功接收到该音源设备所发送的该第一目标数据,此时,该音源设备还可以以广播的方式向该音频设备中的每一个收发机发送第二目标数据,并且,该第二目标数据是不同于该第一目标数据的数据。因此,采用上述方案可以使该音源设备在已成功向该音频设备中的各个收发机发送了第一目标数据后,又接着向该音频设备中的各个收发机发送第二目标数据,从而使得该音源设备可以连续向该音频设备中的各个收发机发送不同的数据,进而保证了数据传输的连续性和数据传输的多样性。
根据第三方面、第三方面的第一种实施方式至第三方面的第五种实施方式,本申请实施例第三方面的第六种实施方式中,该音源设备还包括蓝牙基带;该蓝牙基带,用于确定该收发规则。
本实施方式中,该音源设备中的音源设备还包蓝牙基带,于是,该音源设备可以采用蓝牙协议传输数据,并制定相应的收发规则。
根据第三方面、第三方面的第一种实施方式至第三方面的第五种实施方式,本申请实施例第三方面的第七种实施方式中,该音源设备还包括Wi-Fi模块;该Wi-Fi模块,用于确定该收发规则。
本实施方式中,列举了无线短距离传输的具体方式,除了可以采用蓝牙的方式,也可以采用Wi-Fi的方式,因此增加了方案的实现灵活性。
根据第三方面的第六种实施方式,本申请实施例第三方面的第八种实施方式中,该接收机至少与两个接收天线相连;该接收机,具体用于分别通过不同的接收天线分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应,该第一响应和该 第二响应分别来自不同的频道。
本实施方式中,提出了具有多个接收天线的音源设备,于是该音源设备可以通过不同的天线接收不同频道的响应,因此,增添了音源设备与音频设备直接的数据传输通道,使得数据的传输更加高效。
根据第三方面的第六种实施方式,本申请实施例第三方面的第九种实施方式中,该接收机仅与一个接收天线相连;
该接收机,具体用于在不同的时刻通过该接收天线接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应,该第一响应和该第二响应均来自相同频道。
本实施方式中,提出了若该音源设备仅有一个接收天线的情况,此时,该音源设备可以分别在不同的时刻通过该接收天线接收该音频设备中的各个收发机发送的来自相同频道的响应,因此,增加了该方案的实现灵活性。
根据第三方面的第六种实施方式,本申请实施例第三方面的第十种实施方式中,该发射机,还用于向音频设备发送数据传输通知,该数据传输通知用于提示该音频设备中的该第一收发机和该第二收发机准备接收第一目标数据和收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。
本实施方式中,明确了该音源设备以广播的方式向该音频设备发送第一目标数据之前,该音源设备还将执行一些准备工作,例如,该音源设备还应向该音频设备发送数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据和收发规则。因此,增加了该方案的可行性和完整性。
第四方面,本申请实施例提供了一种音频设备,包括:该第一收发机和第二收发机,用于根据收发规则分别准备接收第一目标数据;该第一收发机和第二收发机,还用于分别向音源设备发送响应,该响应包括该第一收发机根据该第一目标数据是否成功接收而反馈的第一响应,或该第二收发机根据该第一目标数据是否成功接收而反馈的第二响应。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音频设备可以分别向该音源设备回复各个收发机根据第一目标数据是否成功接收而反馈的响应。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
根据第四方面,本申请实施例第四方面的第一种实施方式中,该第一收发机和第二收发机,还用于分别接收音源设备发送的数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据或收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。
本实施方式中,明确了该音频设备在接收第一目标数据之前,该音频设备还要接收数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据或收发规则,以使得该音频设备可以根据该收发规则分别准备接收第一目标数据。因此,增加了该方案的可行性和完整性。
根据第四方面,本申请实施例第四方面的第二种实施方式中,该第一收发机或第二收发机,还用于确认待接收的该第一目标数据已存在时,拒绝接收该第一目标数据。
本实施方式中,明确了当该音频设备中的收发机确认待接收的该第一目标数据已存在时,该收发机拒绝接收该第一目标数据,因此,可以避免该音频设备重复接收两份第一目标数据的情况。
根据第四方面,本申请实施例第四方面的第三种实施方式中,该第一收发机和第二收发机,具体用于采用不同的频道分别向该音源设备发送响应。
本实施方式中,明确了该音频设备可以通过不同频道向该音源设备发送响应,因此,增添了传输方式的多样性。
根据第四方面,本申请实施例第四方面的第四种实施方式中,该第一收发机和第二收发机,具体用于采用相同的频道在不同的时刻向该音源设备发送响应。
本实施方式中,提出了该音频设备可以在不同时刻通过相同的频道向该音源设备发送响应,因此,增添了传输方式的多样性。
第五方面,本申请实施例提供了一种音源设备,包括:发送模块,用于基于无线短距离传输协议,以广播的方式发送第一目标数据;接收模块,用于分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应;确定模块,用于根据该第一响应和该第二响应的接收情况,确定是否再次以广播的方式发送该第一目标数据。
本申请实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机根据该第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
第六方面,本申请实施例提供了一种音频设备,包括:第一接收模块和第二接收模块,用于根据收发规则分别准备接收第一目标数据;第一发送模块和第二发送模块,用于分别向音源设备发送响应,该响应包括该第一收发机根据该第一目标数据是否成功接收而反馈的第一响应,或该第二收发机根据该第一目标数据是否成功接收而反馈的第二响应。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音频设备可以分别向该音源设备回复各个收发机根据第一目标数据是否成功接收而反馈的响应。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
第七方面,本申请实施例提供了一种数据传输系统,包括:如第三方面所介绍的音源设备,以及如第四方面所介绍的音频设备。
第八方面,本申请实施例提供了一种计算机可读存储介质,该计算机存储介质位于该音源设备中,该计算机存储介质存储有计算机程序,该计算机程序包括程序指令,该程序 指令当被音源设备中的处理器执行时使该处理器执行如前述第三方面中任一项所介绍的方法。
第九方面,本申请实施例提供了一种计算机程序产品,其特征在于,该计算机程序产品存储于该音源设备中,当该计算机程序产品在该音源设备上运行时,使得该音源设备执行如前述第三方面中任一项所介绍的方法。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机根据第一目标数据是否成功接收而生成的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例。
图1为本申请实施例中数据传输方法的一个应用场景图;
图2为本申请实施例中数据传输方法的一个实施例的示意图;
图3为本申请实施例中数据传输方法的另一个实施例的示意图;
图4为本申请实施例中数据传输方法的另一个实施例的示意图;
图5A为本申请实施例中数据传输方法的另一个实施例的示意图;
图5B为本申请实施例中数据传输方法的另一个实施例的示意图;
图6A为本申请实施例中音源设备的一个实施例的示意图;
图6B为本申请实施例中音源设备的另一个实施例的示意图;
图6C为本申请实施例中音源设备的另一个实施例的示意图;
图7为本申请实施例中音频设备的一个实施例的示意图;
图8为本申请实施例中数据传输方法的另一个实施例的示意图;
图9为本申请实施例中数据传输方法的另一个实施例的示意图;
图10A为本申请实施例中数据传输方法的另一个实施例的示意图;
图10B为本申请实施例中数据传输方法的另一个实施例的示意图;
图11A为本申请实施例中数据传输方法的另一个实施例的示意图;
图11B为本申请实施例中数据传输方法的另一个实施例的示意图;
图12为本申请实施例中数据传输方法的另一个实施例的示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本申请实施例提供了一种数据传输方法以及相关装置,用于使音频设备中的各收发机的耗能均衡,从而使该音频设备中的各收发机的待机时间相对一致。
下面对本申请实施例涉及的一些术语进行介绍:
广播:本申请实施例中指音源设备可以同时向音频设备中的多个收发机发送目标数据。
肯定应答(acknowledgement,ACK):也称确认字符,在数据通信中,指接收端发给发送端的一种传输类控制字符,用于表示数据已确认接收无误。在本申请实施例中指音频设备中的收发机发送给音源设备的,用于通知该音源设备该音频设备已确认接收该目标数据的一种响应消息。
否定应答(negative acknowledgment,NAK):在数据通信中,指接收端发给发送端的一种传输类控制字符,用于表示数据未能成功接收。在本申请实施例中指音频设备中的收发机发送给音源设备的,用于通知该音源设备该音频设备未能够接收该目标数据的一种响应消息。
蓝牙基带(bluetooth baseband):是蓝牙系统中用于指定或实施媒体接入及物理层程序,以支持在蓝牙设备间进行实时语音、数据信息流交换及建立即时网络的部分。
蓝牙低能耗(bluetooth low energy,BLE):也称低功耗蓝牙,是蓝牙技术联盟设计和销售的一种个人局域网技术,一般用于医疗保健、运动健身、信标、安防以及家庭娱乐等领域的新兴应用。该技术相比于经典蓝牙技术可以在保持同等通信范围的同时显著降低功耗和成本。
为了便于理解,下面对本申请实施例中的应用场景进行简单介绍:
本申请实施例所提出的方法主要应用于音源设备与音频设备中的多个收发机之间的数据传输场景。其中,音源设备可以作为数据源,向该音频设备中的多个收发机发送数据,该音频设备中的每一个收发机可以与其他收发机相互独立,但是,该音频设备中所有的收发机在设计、生产和销售时都是搭配进行的,并且,该音频设备中的每一个收发机需组合使用才能给用户完整的体验,该完整的体验指该产品在设计时为了让用户达到的体验效果。以图1为例,当产品为双耳蓝牙耳机时,当音源设备101向该产品发送数据时,该双耳蓝牙耳机中的任意一个蓝牙耳机为收发机1021,该双耳蓝牙耳机则为一个音频设备102,显然,该双耳蓝牙耳机在设计、生产和销售时都是成对的,该双耳蓝牙耳机的设计初衷也是为了让用户的双耳能同时接收音频,所以用户需同时佩戴该双耳蓝牙耳机才能享受到完整的体验。此时,与该音频设备进行数据交互的音源设备可以是手机、平板电脑以及随声听等智能终端,还可以是其他的可以使用蓝牙协议的装置,具体此处不做限定。该音频设 备可以是前文所介绍的双耳蓝牙耳机,还可以是由多个蓝牙音箱组成的蓝牙音箱组,具体此处不做限定。当该音频设备为蓝牙音箱组时,该蓝牙音箱组中的各个音箱在设计、生产和销售时都是搭配进行的,并且,该蓝牙音箱组中的每一个蓝牙音箱需组合使用才能给用户完整的体验。
应当注意的是,本申请实施例中所提出的方案除了可以应用于上述基于蓝牙的传输场景之外,也可以应用于基于Wi-Fi的传输场景,还可以应用于其他的一对多的无线短距离传输场景,具体此处不做限定。在本实施例以及后续实施例中,仅以基于蓝牙的传输场景为例进行介绍,并且,以音源设备为智能终端且音频设备为双耳蓝牙耳机为例进行介绍。
为便于更好地理解本申请实施例所提出的方案,下面对本申请实施例所提供的数据传输方法的流程进行简单介绍。
本实施例中,当该音源设备与音频设备中的每一个收发机采用蓝牙协议连接之后,该音源设备便可以与该音频设备开始进行数据交互,此时,该音源设备可以以广播的方式向该音频设备中的每一个收发机发送第一目标数据。
之后,该音源设备分别接收该音频设备中的各个收发机发送的响应,但是,该音频设备中的每一个收发机给该音源设备发送的响应因对该第一目标数据的接收情况的不同而可能不同。具体地,该响应可以是肯定应答,该肯定应答表示发送响应的收发机接收到该音源设备发送的第一目标数据;该响应还可以是否定应答,该否定应答表示发送响应的收发机未接收到该音源设备发送的第一目标数据并请求该音源设备重新发送该第一目标数据。
应当理解的是,该音频设备中的每一个收发机的地位是相同的,也就是说该音频设备中的每一个收发机接收到的第一目标数据与其他收发机接收到的第一目标数据是一样的。并且,由于该音频设备中的每一个收发机之间是相互独立的,所以,该音频设备中的各个收发机收到该第一目标数据的概率是相同的。
需要注意的是,该音频设备至少包括两个收发机,也就是说,在实际应用中,例如用于蓝牙音箱的场景,该收发机的个数可以为两个,也可以为多个,具体此处不做限定。但是,在本实施例以及后续实施例中,由于是以音源设备为智能终端且音频设备为双耳蓝牙耳机为例进行介绍,所以,仅以该音频设备中包括第一收发机和第二收发机为例进行介绍。
上面简单介绍了该数据传输方法的大致流程,下面分别针对该音源设备接收响应的不同情况进行具体介绍:
当该音源设备收到的响应全为肯定应答时,如图2所示,该数据传输方法中的音源设备和音频设备执行如下步骤,包括:
201、音源设备向音频设备中的每一个收发机发送数据传输通知;
本实施例中,当该音源设备与音频设备中的每一个收发机采用蓝牙协议连接之后,音源设备可以向音频设备中的每一个收发机发送数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据和收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。于是,该音频设备中的各个收发机将根据该收发规则每隔一段时间检查该音源设备是否向自己发送了第一目标数据,具体地,根据不同的实际情况,间隔的时间可以调整,具体此处不做 限定。具体地,以音源设备为智能终端且音频设备为双耳蓝牙耳机为例进行介绍,如图1所示,当用户欲采用双耳蓝牙耳机听音频时,该智能终端可以与该蓝牙耳机进行蓝牙连接,然后,该智能终端将分别向该双耳蓝牙耳机中的左耳机和右耳机发送数据传输通知,以提示该左耳机和该右耳机准备接收第一目标数据。
202、音源设备以广播的方式向音频设备中的每一个收发机发送第一目标数据;
本实施例中,当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备将以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。依然以步骤201所列举的例子为例,此时,该智能终端便可以分别将向左耳机和右耳机发送第一目标数据。然后,该音源设备将等待该音频设备中的各个收发机分别发送的响应,其中,该音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的响应为第一响应,该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的响应为第二响应。
应当注意的是,该第一目标数据可以是蓝牙协议中智能终端与耳机之间关于音频播放的蓝牙音频传输模型(advanced audio aistribution profile,A2DP)协议,也可以是音频数据,也可以是蓝牙协议中智能终端与耳机间的通话数据,还可以是其他类型的数据,具体此处不做限定。
203、当该音频设备中的第一收发机收到该第一目标数据时,该音频设备中的第一收发机向该音源设备发送的第一响应为肯定应答;
本实施例中,该第一收发机为该音频设备中的任意一个该收发机,当该第一收发机收到该第一目标数据时,该第一收发机可以向该音源设备发送的第一响应为肯定应答。具体地,该第一收发机可以为左耳机或者右耳机,具体此处不做限定。在本实施例中,假设,该双耳蓝牙耳机中的左耳机收到该第一目标数据,则该左耳机将向该智能终端发送肯定应答,以通知该智能终端该左耳机已收到该第一目标数据。
204、当该音频设备中的第二收发机收到该第一目标数据时,该音频设备中的第二收发机向该音源设备发送的第二响应为肯定应答;
本实施例中,当该第二收发机收到该第一目标数据时,该第二收发机可以向该音源设备发送肯定应答。由于步骤203中已假设该第一收发机为左耳机,于是,此处假设该第二收发机为右耳机,则当该右耳机收到该第一目标数据时,该右耳机将向该智能终端发送肯定应答,以通知该智能终端该右耳机已收到该第一目标数据。
需要注意的是,本实施例中所举例的第一收发机和第二收发机并不一定就是左耳机和右耳机,还有可能该第一收发机为右耳机和第二收发机为左耳机的情况,具体此处不做限定。为了方便理解,以及前后文举例统一,在本实施例以及后续实施例中,仅以该第一收发机为左耳机且该第二收发机为右耳机为例进行介绍。
还应理解的是,本实施例中的步骤203和步骤204的执行没有先后顺序,在实际应用中,可能是第一收发机先向该音源设备发送第一响应,再是第二收发机向该音源设备发送第二响应;也可能是第二收发机先向该音源设备发送第二响应,再是第一收发机向该音源设备发送第一响应,具体此处不做限定。
本实施例中,音源设备可以包括多个接收天线,于是,该音源设备可以通过不同的接收天线分别接收第一响应和第二响应,其中,该第一响应和该第二响应分别来自不同的频道。当然,若该音源设备仅包括一个接收天线,于是,该音源设备分别在不同的时刻通过该接收天线接收第一响应和第二响应,该第一响应和该第二响应均来自相同频道。在实际应用中,该天线数量将因音源设备的种类不同而有所差异,具体此处不做限定。
205、音源设备以广播的方式向音频设备中的每一个收发机发送第二目标数据。
本实施例中,由于,该音源设备接收的第一响应和第二响应均为肯定应答,于是,该音源设备可以确定该音频设备中的第一收发机和第二收发机都已经成功地接收了该音源设备发送的第一目标数据,因此,该音源设备可以以广播的方式发送第二目标数据,该第二目标数据是区别于该第一目标数据的新的数据。
应当理解的是,本实施例中的第一目标数据和第二目标数据可以为音频数据,也可以为非音频数据,具体此处不做限定。此外,该第一目标数据与该第二目标数据可以是不同种类的数据,例如,该第一目标数据是音频数据,该第二目标数据是非音频数据,具体此处不做限定。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机根据第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
上面介绍了该音源设备接收的响应全为肯定应答的情况,下面介绍该音源设备收到的响应全为否定应答的情况,具体如图3所示,该数据传输方法中的音源设备和收发机执行如下步骤,包括:
301、音源设备向音频设备中的每一个收发机发送数据传输通知;
本实施例中,当该音源设备与音频设备中的每一个收发机采用蓝牙协议连接之后,音源设备可以向音频设备中的每一个收发机发送数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据和收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。具体与前文步骤201类似,此处不再赘述。
302、音源设备以广播的方式向音频设备中的每一个收发机发送第一目标数据;
本实施例中,当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。具体与前文步骤202类似,此处不再赘述。
然后,该音源设备将等待该音频设备中的各个收发机分别发送的响应,其中,该音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的响应为第一响应,该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的响应为第二响应。
303、当该音频设备中的第一收发机未收到该第一目标数据时,该音频设备中的第一收 发机向该音源设备发送的第一响应为否定应答;
本实施例中,该第一收发机为该音频设备中的任意一个该收发机,当该第一收发机未收到该第一目标数据时,该第一收发机可以向该音源设备发送否定应答。具体地,该第一收发机可以为左耳机或者右耳机,具体此处不做限定。在本实施例中,假设该第一收发机为左耳机,该双耳蓝牙耳机中的左耳机未收到该第一目标数据,则该左耳机将向该智能终端发送否定应答,以请求该智能终端重新发送该第一目标数据。
304、当该音频设备中的第二收发机未收到该第一目标数据时,该音频设备中的第二收发机向该音源设备发送的第二响应为否定应答;
本实施例中,该第二收发机为该音频设备中的任意一个该收发机,当该第二收发机未收到该第一目标数据时,该第二收发机可以向该音源设备发送否定应答。具体地,该第二收发机可以左耳机或者右耳机,具体此处不做限定。由于步骤303中已假设该第一收发机为左耳机,于是,此处假设该第二收发机为右耳机,则当该双耳蓝牙耳机中的右耳机未收到该第一目标数据,则该右耳机将向该智能终端发送否定应答,以请求该智能终端重新发送该第一目标数据。
在本实施例的步骤303和步骤304的执行没有先后顺序,在实际应用中,可能是第一收发机先向该音源设备发送第一响应,再是第二收发机向该音源设备发送第二响应;也可能是第二收发机先向该音源设备发送第一响应,再是第一收发机向该音源设备发送第二响应,具体此处不做限定。
于是,该音源设备在接收到该第一收发机发送的否定应答或该第二收发机发送的否定应答之后,将执行步骤305。
305、音源设备再次以广播的方式向音频设备中的每一个收发机发送该第一目标数据;
本实施例中,当该音源设备接收到该音频设备中的任意一个收发机所发送的否定应答时,该音源设备将再次以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。依然以前文所提及的智能终端和双蓝牙耳机为例,在该智能终端向各个耳机发送了第一目标数据之后,若该智能终端收到任意一个耳机所回复的否定应答,则该智能终端将再次向各个耳机发送该第一目标数据。
此时,该音源设备将等待该音频设备中的各个收发机分别发送的响应,若该第一收发机或该第二收发机所回复的响应中又存在否定应答,该音源设备将再次执行步骤305,也就是说,该音源设备将再次以广播的方式向该音频设备中的每一个收发机发送该第一目标数据,直到该音源设备接收到的第一响应和第二响应均为肯定应答。当该音频设备中的第一收发机收到该第一目标数据,则执行步骤306;当该音频设备中的第二收发机收到该第一目标数据,则执行步骤307。
306、当该音频设备中的第一收发机收到该第一目标数据时,该音频设备中的第一收发机向该音源设备发送的第一响应为肯定应答;
本实施例中,若该音频设备中的第一收发机收到该音源设备重新发送的第一目标数据,则该第一收发机可以向该音源设备发送肯定应答。接续步骤303所举的例子,假设,该双耳蓝牙耳机中的左耳机未收到该智能终端第一次发送的第一目标数据,但当该左耳机成功 收到该智能终端第二次发送的第一目标数据时,该左耳机可以向该智能终端发送肯定应答,以通知该智能终端该左耳机已收到该第一目标数据。
307、当该音频设备中的第二收发机收到该第一目标数据时,该音频设备中的第二收发机向该音源设备发送的第二响应为肯定应答;
本实施例中,若该音频设备中的第二收发机收到该音源设备重新发送的第一目标数据,则该第二收发机可以向该音源设备发送肯定应答。接续步骤304所举的例子,假设,该双耳蓝牙耳机中的右耳机未收到该智能终端第一次发送的第一目标数据,但当该右耳机成功收到该智能终端第二次发送的第一目标数据时,该右耳机可以向该智能终端发送肯定应答,以通知该智能终端该右耳机已收到该第一目标数据。
308、音源设备以广播的方式向音频设备中的每一个收发机发送第二目标数据。
本实施例中,由于,该音源设备再次接收的第一响应和第二响应均为肯定应答,于是,该音源设备可以确定该音频设备中的第一收发机和第二收发机都已经成功地接收了该音源设备发送的第一目标数据,因此,该音源设备可以以广播的方式发送第二目标数据,该第二目标数据是区别于该第一目标数据的新的数据。
本实施例中,若音频设备中的各个收发机都没有接收到该音源设备发送的第一目标数据,则该音源设备将再次向音频设备中的每一个收发机发送第一目标数据,若该音频设备中的各个收发机能接收到该第一目标数据,则该音源设备可以分别接收该音频设备中的各个收发机直接发送给音源设备的响应。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
上面介绍了该音源设备收到的响应全为否定应答的情况,下面将介绍该音源设备收到的响应中既有肯定应答,又有否定应答的情况,具体如图4所示,该数据传输方法中的音源设备和收发机执行如下步骤,包括:
401、音源设备向音频设备中的每一个收发机发送数据传输通知;
本实施例中,当该音源设备与音频设备中的每一个收发机采用蓝牙协议连接之后,音源设备可以向音频设备中的每一个收发机发送数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机和第二收发机准备接收第一目标数据和收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。具体与前文步骤201类似,此处不再赘述。
402、音源设备以广播的方式向音频设备中的每一个收发机发送第一目标数据;
本实施例中,当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。依然以步骤202中所举的例子为例,此时,该智能终端可以与该蓝牙耳机进行蓝牙连接,然后,该智能终端便可以分别向左耳机和右耳机分别发送第一目标数据,即左耳机和右耳机所能接收到的第一目标数据是相同的。
此时,该音源设备将等待该音频设备中的各个收发机分别发送的响应,当该音频设备中的第一收发机未收到该第一目标数据时,则该第一收发机执行步骤403;当该音频设备 中的第二收发机收到该第一目标数据时,则第二收发机执行步骤404。
403、当该音频设备中的第一收发机未收到该第一目标数据时,该音频设备中的第一收发机向该音源设备发送的第一响应为否定应答;
本实施例中,该第一收发机为该音频设备中的任意一个收发机,当该第一收发机未收到该第一目标数据时,该第一收发机可以向该音源设备发送否定应答。具体地,该第一收发机可以为左耳机或者右耳机,具体此处不做限定。在本实施例中,假设,该双耳蓝牙耳机中的左耳机未收到该第一目标数据,则该左耳机将向该智能终端发送否定应答,以请求该智能终端重新发送该第一目标数据。
于是,该音源设备在接收到该第一收发机发送的否定应答之后,将执行步骤405。
404、当该音频设备中的第二收发机收到该第一目标数据时,该音频设备中的第二收发机向该音源设备发送的第二响应为肯定应答;
本实施例中,该第二收发机为该音频设备中的任意一个收发机,当该第二收发机收到该第一目标数据时,该第二收发机可以向该音源设备发送肯定应答。具体地,该第二收发机可以为左耳机或者右耳机,具体此处不做限定。在本实施例中,假设,该双耳蓝牙耳机中的右耳机收到该第一目标数据,则该右耳机将向该智能终端发送肯定应答,以通知该智能终端该右耳机已收到该第一目标数据。
在本实施例的步骤403和步骤404的执行没有先后顺序,在实际应用中,可能是左耳机先向该智能终端发送响应,再是右耳机向该智能终端发送响应;也可能是右耳机先向该智能终端发送响应,再是左耳机向该智能终端发送响应,具体此处不做限定。
与前文类似,该音源设备可以包括多个接收天线,于是,该音源设备可以通过不同的接收天线分别接收第一响应和第二响应,其中,该第一响应和该第二响应分别来自不同的频道。当然,该音源设备包括一个接收天线,于是,该音源设备分别在不同的时刻通过该接收天线接收第一响应和第二响应,该第一响应和该第二响应均来自相同频道。在实际应用中,该天线数量将因音源设备的种类不同而有所差异,具体此处不做限定。
405、该音源设备再次以广播的方式向音频设备中的每一个收发机发送该第一目标数据;
本实施例中,当该音源设备接收到该音频设备中的任意一个收发机所发送的否定应答时,该音源设备将再次以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。依然以前文所提及的智能终端和双蓝牙耳机为例,在该智能终端向各个耳机发送了第一目标数据之后,若该智能终端收到任意一个耳机所回复的否定应答,则该智能终端将再次以广播的方式向各个耳机发送该第一目标数据。
此时,该音源设备将等待该音频设备中的各个收发机分别发送的响应,若该第一收发机或该第二收发机所回复的响应中又存在否定应答,该音源设备将再次执行步骤405,也就是说,该音源设备将再次以广播的方式向该音频设备中的每一个收发机发送该第一目标数据,直到该音源设备接收到的第一响应为肯定应答,并且该第二响应也为肯定应答。当该音频设备中的第一收发机未收到该第一目标数据,则该第一收发机执行步骤407;此时,该音频设备中的已经接收过该第一目标数据的第二收发机将执行步骤406。
406、当该音频设备中的第二收发机确认该第一目标数据已存在时,拒绝接收该第一目标数据;
本实施例中,当该音频设备中的第二收发机确认该第一目标数据已存在时,即当该音频设备中的第二收发机确认已经接收过该第一目标数据时,该音频设备中的第二收发机将拒绝接收该第一目标数据。接续步骤404所举的例子,假设,该双耳蓝牙耳机中的右耳机在该智能终端第一次发送第一目标数据的时候已经成功接收该第一目标数据,则当该智能终端再次向该右耳机发送该第一目标数据时,该右耳机将拒绝接收该第一目标数据。
407、当该音频设备中的第一收发机收到该第一目标数据时,该音频设备中的第一收发机向该音源设备发送的第一响应为肯定应答;
本实施例中,若该音频设备中的第一收发机收到该音源设备重新发送的第一目标数据,则该第一收发机可以向该音源设备发送肯定应答。接续步骤403所举的例子,假设,该双耳蓝牙耳机中的左耳机未收到该智能终端第一次发送的第一目标数据,但当该左耳机成功收到该智能终端第二次发送的第一目标数据时,该左耳机可以向该智能终端发送肯定应答,以通知该智能终端该右耳机已收到该第一目标数据。
408、音源设备以广播的方式向音频设备中的每一个收发机发送第二目标数据。
本实施例中,由于,该音源设备在第一次接收的第二响应为肯定应答,并且第二次接收的第第一响应也为肯定应答,也就是说,该音源设备对同一第一目标数据的发送而分别接收了每一个收发机的肯定应答,于是,该音源设备可以确定该音频设备中的第一收发机和第二收发机都已经成功地接收了该音源设备发送的第一目标数据,因此,该音源设备可以以广播的方式发送第二目标数据,该第二目标数据是区别于该第一目标数据的新的数据。
本实施例中,在音源设备向音频设备中的每一个音频设备发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机直接发送给音源设备的响应。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
前文所介绍的情况中,该音源设备能够接收所有的音频设备发送的响应,但是,在实际应用中,该音源设备可能没有成功接收到每一个收发机所返回的响应,也就是说,该音源设备可能仅接收到一部分响应,具体如图5A所示,在这样的情况下,该数据传输方法中的音源设备和收发机执行如下步骤,包括:
501、音源设备向音频设备中的每一个收发机发送数据传输通知;
本实施例中,当该音源设备与音频设备中的每一个收发机采用蓝牙协议连接之后,音源设备可以向音频设备中的每一个收发机发送数据传输通知。具体与前文步骤201类似,此处不再赘述。
502、音源设备以广播的方式向音频设备中的每一个收发机发送第一目标数据;
本实施例中,当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备向该音频设备中的每一个收发机发送该第一目标数据。具体与前文步骤202类似,此处不再赘述。
503、当该音频设备中的第二收发机收到该第一目标数据时,该音频设备中的第二收发机向该音源设备发送肯定应答;
本实施例中,该第二收发机为该音频设备中的任意一个该收发机,当该第二收发机收到该第一目标数据时,该第二收发机可以向该音源设备发送肯定应答。具体地,该第二收发机可以为左耳机或者右耳机,具体此处不做限定。在本实施例中,假设,该双耳蓝牙耳机中的右耳机收到该第一目标数据,则该右耳机将向该智能终端发送肯定应答,以通知该智能终端该右耳机已收到该第一目标数据。
504、该音源设备向音频设备中的每一个收发机发送第一目标数据;
本实施例中,当由于该音源设备只接收了该音频设备中的部分收发机发送的响应,所以该音源设备接收的响应的总数小于该音频设备中的该收发机的总数,此时,可能存在部分收发机未收到该音源设备发送的第一目标数据,于是,该音源设备将再次向音频设备中的每一个收发机发送该第一目标数据。若该音频设备中的第一收发机收到该音源设备重新发送的第一目标数据,则执行步骤506。接续步骤503所介绍的例子,当该智能终端只接收到该右耳机回复的肯定应答响应时,该智能终端将再次向各个耳机发送该第一目标数据。
本实施例中,当该音源设备接收的响应的总数小于该音频设备中的该收发机的总数时,除了可能存在部分收发机未收到该音源设备发送的第一目标数据之外,如图5B所示,还可能是因为部分收发机已接收了该第一目标数据但是没有及时发送肯定应答响应,此时,该音源设备也将再次向音频设备中的每一个收发机发送该第一目标数据。此时,该第一收发机执行步骤507。
505、当该音频设备中的第二收发机确认该第一目标数据已存在时,拒绝接收该第一目标数据;
本实施例中,当该音频设备中的第二收发机确认该第一目标数据已存在时,即当该音频设备中的第二收发机确认已经接收过该第一目标数据时,该音频设备中的第二收发机将拒绝接收该第一目标数据。具体与前文步骤406类似,此处不再赘述。
506、当该音频设备中的第一收发机收到该第一目标数据时,该音频设备中的第一收发机向该音源设备发送肯定应答;
本实施例中,若该音频设备中的第一收发机收到该音源设备重新发送的第一目标数据,则该第一收发机可以向该音源设备发送肯定应答。具体与前文步骤407类似,此处不再赘述。
本实施例中,如图5B所示,若该第一收发机已接收了该音源设备第一次发送的第一目标数据,只是没有及时发送肯定应答响应,则该音频设备执行步骤507。
507、当该音频设备中的第一收发机确认第一目标数据已存在时,则该第一收发机拒绝接收该第一目标数据。
本实施例中,由于该第一收发机已接收了该音源设备第一次发送的第一目标数据,只是没有及时发送肯定应答响应,因此,当该音源设备再次向该第一收发机发送该第一目标数据时,该第一收发机拒绝接收该第一目标数据。
本实施例中,由于,该音源设备没有收到该第一收发机的响应,在向该第一音源设备 重新发送该第一目标数据之后,该第一收发机又拒绝接收该第一目标数据,则该音源设备可以确定该第一收发机已经接收到该第一目标数据。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机根据第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
上面对本申请实施例所提出的数据传输方法进行了介绍,下面对该数据传输方法中的音源设备和音频设备进行介绍。该音源设备60的结构如图6A所示,包括:接收机601、发射机602和处理器603,其中,该接收机601和该发射机602分别耦合至该处理器603;该发射机602,用于基于无线短距离传输协议,以广播的方式发送第一目标数据,该接收机601,用于分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应;该处理器603,用于根据该第一响应和该第二响应的接收情况确定是否再次以广播的方式发送该第一目标数据。
在一种实施方式中,当该第一响应或该第二响应为否定应答时,该处理器603具体用于确定该发射机602以广播的方式再次发送该第一目标数据,其中,若该第一响应为否定应答,则表示该第一收发机未接收到该第一目标数据,若该第二响应为否定应答,则表示该第二收发机未接收到该第一目标数据。
或者,在另一种实施方式中,当该音源设备60未接收到该第一响应或未接收到该第二响应时,该处理器603具体用于确定该发射机602再次以广播的方式发送该第一目标数据。
在前述两种实施方式中的任意一种实施方式的情况下,该接收机601,还用于接收该第一收发机或该第二收发机针对再次发送的第一目标数据的是否成功接收的响应,该响应为肯定应答或者否定应答。
还存在这样一种实施方式,该处理器603,具体用于当该第一响应和该第二响应均为肯定应答时,确定不再发送该第一目标数据,其中,若该第一响应为肯定应答,则表示该第一收发机已接收到该第一目标数据,若该第二响应为肯定应答,则表示该第二收发机已接收到该第一目标数据。此时,该发射机602,还用于以广播的方式发送第二目标数据。
应当理解的是,本实施例中的第一目标数据以及第二目标数据都可以由该处理器603从存储器中获取,并经过处理后交由该发射机602准备发送,具体此处不做限定。
可选的,如图6B所示,该音源设备60还包括蓝牙基带6031,该蓝牙基带6031,用于确定该收发规则。
应当理解的是,该蓝牙基带6031可以位于图6A中的处理器603中,也可以独立于该处理器603,具体此处不做限定。
还应理解的是,在实际应用中,该图6B中的,接收机601、发射机602以及蓝牙基带6031可以整合在一块芯片上,也可以集成与具有蓝牙功能的芯片组上,具体此处不做限定。 但是,这样的芯片或者芯片组可以作为独立的产品进行制造、销售或者使用。
在一些可行的实施例中,该音源设备60还包括Wi-Fi模块(图未示),该Wi-Fi模块,也可以用于确定该收发规则。该Wi-Fi模块单独可以集成于该音源设备中的某一芯片上,也可以于该接收机601和发射机602一起集成与一块芯片或一组芯片上,具体此处不做限定。但是,这样的芯片或者芯片组也可以作为独立的产品进行制造、销售或者使用。
本实施例中,当该音源设备60中的接收机601与多个接收天线相连时,如图6B所示,以当该音源设备60中的接收机601与两个接收天线6042/6041相连为例进行介绍,该接收机601分别与第一接收天线6041和第二接收天线6042相连。此时,该接收机601,具体用于分别通过第一接收天线6041和第二接收天线6042分别接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应,该第一响应和该第二响应分别来自不同的频道。
当然,也存在部分音源设备60只有一个接收天线6043的情况,如图6C所示,此时,该接收机601,具体用于在不同的时刻通过该接收天线6043接收音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的第一响应以及该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的第二响应,该第一响应和该第二响应均来自相同频道。
本实施例中,该接收天线6042/6041可以是内置天线,也可以是外置天线,具体此处不做限定。还应理解的是,图6B和图6C中的接收天线6041/6042/6043或者发射天线605的形状仅仅是为了作为天线的示意图,在实际应用中该接收天线6041/6042/6043或者发射天线605的具体形状和尺寸并不受限与该图6B和图6C所示的形状和尺寸。
除此之外,该发射机602,还用于向音频设备发送数据传输通知,该数据传输通知用于提示该音频设备中的该第一收发机和该第二收发机准备接收第一目标数据和收发规则,该收发规则为该音频设备中的第一收发机和第二收发机接收该第一目标数据和发送响应的规则。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以分别接收该音频设备中的各个收发机根据第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
上面介绍了音源设备60的结构,下面将对音频设备70的结构进行介绍,具体请参阅图7,该音频设备70包括:第一收发机701和第二收发机702,其中,该第一收发机701和第二收发机702,用于根据收发规则分别准备接收第一目标数据;该第一收发机701和第二收发机702,还用于分别向音源设备60发送响应,该响应包括该第一收发机701根据该第一目标数据是否成功接收而反馈的第一响应,或该第二收发机702根据该第一目标数据是否成功接收而反馈的第二响应。
在一些可行的实施例中,该第一收发机701和第二收发机702,还用于分别接收音源设备60发送的数据传输通知,该数据传输通知用于提示该音频设备中的第一收发机701和第二收发机702准备接收第一目标数据或收发规则,该收发规则为该音频设备中的第一收发机701和第二收发机702接收该第一目标数据和发送响应的规则。
当音源设备60向该音频设备70重发该第一目标数据时,该第一收发机701或第二收发机702,还用于确认待接收的该第一目标数据已存在时,拒绝接收该第一目标数据。
当该音源设备60有多个不同的接收天线6041/6042时,该第一收发机701和第二收发机702,具体用于采用不同的频道分别向该音源设备60发送响应。
当该音源设备60仅有一个相同的接收天线6043时,该第一收发机701和第二收发机702,具体用于采用相同的频道在不同的时刻向该音源设备60发送响应。
应当理解的是,图7所示的第一收发机701与第二收发机702仅仅是在多种实施方式中选取的一种示例,在实际应用中该音频设备70还可能包括其他收发机。但是,该音频设备70中的各个收发机在设计、生产和销售时都是成套的,例如,成对的蓝牙耳机或者成套的音箱组,具体此处不做限定。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音频设备可以分别向该音源设备回复各个收发机根据第一目标数据是否成功接收而反馈的响应。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是,直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
上面分别对该数据传输方法的流程、音源设备和音频设备进行了介绍,下面将结合实际应用中的空口交互时序图对该数据传输方法进行介绍。需要注意的是,该音频设备至少包括两个收发机,但是,在本实施例以及后续实施例中,仅以该音频设备中包括第一收发机和第二收发机为例进行介绍。
为了便于理解,依然与前文类似,针对该音源设备接收响应的不同情况分别进行介绍:
当该音源设备收到的响应全为肯定应答时,该音源设备与该音频设备中的各个收发机之间的空口交互时序图如图8所示,该图中,包含音源设备、音频设备中的第一收发机、音频设备中的第二收发机以及六条时间线,其中,TX代表发射时间线,RX代表接收时间线,当然,音源设备、第一收发机和第二收发机均分别占有两条时间线。此外,每条时间线可以根据目标数据传输的流程的步骤分为完整事件(event)和子事件(subevent),其中,一次子事件指音源设备向音频设备中的各个收发机发送目标数据,然后,音频设备中的各个收发机向该音源设备回复响应。但是,音源设备与音频设备之间的一次子事件并不一定能够保证音频设备成功地接收了该音源设备所发送的目标数据,因此,在第一次子事件之后可能还会发生一次甚至多次子事件,直到该音频设备中的各个收发机均接收到了该音源设备发送的目标数据以及均成功向音源设备回复了肯定应答。其中,从音源设备以广播的方式发送该第一目标数据,到该音源设备接收到音频设备中的最后一个收发机所回复的肯定应答,称一次完整事件。
如图8所示,为该音源设备仅包括一个接收天线的场景。当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备将以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。然后,该音源设备通过同一天线在不同的时刻接收该音频设备中的各个收发机所发送的响应,其中,该音频设备中的第一收发机根据该第一目标数据是否成功接收而反馈的响应为第一响应,该音频设备中的第二收发机根据该第一目标数据是否成功接收而反馈的响应为第二响应。在实际应用中,如图8所示,该音源设备以广播的方式发送完第一目标数据之后到该音源设备接收第一个响应之间还存在一定的时间间隔,本实施例中,将音源设备在完成最后一个bit的第一目标数据发送,到第一收发机向音源设备进行第一个数据bit的响应的发送之间的间隔为第一网络帧间隔(time of inter frame space,T_IFS)。此外,将音源设备在完成最后一个bit的第一目标数据发送,到第二收发机向音源设备进行第一个数据bit的响应的发送之间的间隔为第二网络帧间隔(time of second inter frame space,T_SIFS)。应当理解的是,本实施例中T_IFS和T_SIFS的具体时长为可以因采用的蓝牙协议的不同而有所差异,例如,当采用蓝牙BLE协议中的标准规定时,该T_IFS为150us。因此,具体此处不做限定。
本实施例中,当音源设备以广播的方式向音频设备中的每一个收发机发送第一目标数据之后。若该音源设备和该音频设备中的各个收发机均处于正常状况,则该音频设备中的各个收发机应按照之前与该音源设备之间的约定,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,向该音源设备回复第一响应,该第一响应为肯定应答,该肯定应答表示发送该第一响应的第一收发机接收到该音源设备发送的第一目标数据;同样按照约定,在音源设备完成发送后的T_SIFS时间后,该第二收发机向该音源设备回复第二响应,该第二响应为肯定应答,该肯定应答表示发送该第二响应的第二收发机接收到该音源设备发送的第一目标数据。
应答理解的是,在实际应用中,不一定是该第一收发机先向该音源设备回复响应,还可能是第二收发机先向该音源设备回复响应,具体此处不做限定,本实施例仅以该第一收发机先向该音源设备回复响应为例进行介绍。还应理解的是,若该音频设备中包含不止两个收发机时,多个收发机向该音源设备回复响应的次序可以遵循上述规则类推,具体此处不再赘述。
还应注意的是,本实施例中的第一目标数据可以是蓝牙协议中智能终端与耳机之间关于音频播放的A2DP协议,也可以是音频数据,也可以是蓝牙协议中智能终端与耳机间的通话数据,还可以是其他类型的数据,具体此处不做限定。
需要注意的是,本实施例以及后续实施例中所列举的空口交互时序图中未对该数据传输通知进行表述。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以通过同一接收天线在不同时刻分别接收该音频设备中的各个收发机根据该第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为 中转接收其他收发机的响应,而是直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
以上即是音源设备与音频设备的一次完整数据收发的空口交互时序过程,更具体的流程可以参阅前文步骤201至步骤205,具体此处不再赘述。
下面将对一些异常情况进行介绍,如图9所示,为该音源设备收到的响应全为否定应答的情况。该图中,依然是该音源设备仅包括一个接收天线的场景。当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备将以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。然后,该音源设备通过同一天线在不同的时刻接收该音频设备中的各个收发机所发送的响应,具体地,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,向该音源设备回复第一响应,该第一响应为否定应答,该否定应答表示发送响应的收发机未接收到该音源设备发送的第一目标数据并请求该音源设备重新发送该第一目标数据;同样按照约定,在音源设备完成发送后的T_SIFS时间后,该第二收发机向该音源设备回复第二响应,该第二响应为否定应答,该否定应答表示发送响应的收发机未接收到该音源设备发送的第一目标数据并请求该音源设备重新发送该第一目标数据。从音源设备向该音频设备以广播的方式发送该第一目标数据,到该音源设备接收到该第二收发机的第二响应时,子事件1结束。由于,该音源设备并没有完成将该第一目标数据发送给该音频设备中的各个收发机的任务,于是触发了子事件2,该音源设备再次以广播的方式向音频设备中的每一个收发机发送该第一目标数据,然后,类似的,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,向该音源设备回复第一响应,此时,该第一响应为肯定应答,该肯定应答表示发送该第一响应的第一收发机接收到该音源设备发送的第一目标数据;同样按照约定,在音源设备完成发送后的T_SIFS时间后,该第二收发机向该音源设备回复第二响应,此时,该第二响应为肯定应答,该肯定应答表示发送该第二响应的第二收发机接收到该音源设备发送的第一目标数据。此时,该音源设备接收到该音频设备中的最后一个收发机所回复的肯定应答,表示该音频设备中的各个收发机均接收到该音源设备发送的第一目标数据,并都已通知该音源设备各个收发机已收到该第一目标数据。于是,该子事件2完成,在这样的情况下,将子事件1与子事件2合起来称作一次完整事件。应当理解的是,一次完整的事件中可以如图8所示仅有一个子事件,也可以如图9所示包含两个子事件,还可以包含多个子事件,具体此处不做限定。
以上为该音源设备收到的响应全为否定应答的情况的空口交互时序过程,更具体的流程可以参阅前文步骤301至步骤308,具体此处不再赘述。
由前文可知,当音源设备中的任意一个收发机向该音源设备回复的响应为否定应答时,该音源设备都将以广播的方式再次发送该第一目标数据。所以,除了已介绍的该音源设备收到的响应全为否定应答的情况以外,还存在该音源设备仅接收到部分否定应答的情况。于是,下面以图10A和图10B的空口交互时序图为例分别进行介绍。
如图10A所示,当该音频设备中的第一收发机向该音源设备所回复的响应为否定应答, 且当该音频设备中的第二收发机向该音源设备所回复的响应为肯定应答时的情况。具体地,当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备将以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。然后,该音源设备通过同一天线在不同的时刻接收该音频设备中的各个收发机所发送的响应,具体地,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,向该音源设备回复第一响应,该第一响应为否定应答,该否定应答表示发送响应的收发机未接收到该音源设备发送的第一目标数据并请求该音源设备重新发送该第一目标数据;同样按照约定,在音源设备完成发送后的T_SIFS时间后,该第二收发机向该音源设备回复第二响应,该第二响应为肯定应答,该肯定应答表示发送响应的收发机接收到该音源设备发送的第一目标数据。从音源设备向该音频设备以广播的方式发送该第一目标数据,到该音源设备接收到该第二收发机的第二响应时,子事件1结束。由于,该音源设备并没有完成将该第一目标数据发送给该音频设备中的各个收发机的任务,于是触发了子事件2,该音源设备再次以广播的方式向音频设备中的每一个收发机发送该第一目标数据,然后,类似的,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,向该音源设备回复第一响应,此时,该第一响应为肯定应答,该肯定应答表示发送该第一响应的第一收发机接收到该音源设备发送的第一目标数据。此时,表示该音频设备中的各个收发机均接收到该音源设备发送的第一目标数据,并都已通知该音源设备各个收发机已收到该第一目标数据。类似的,如图10B所示的空口交互时序图中,当音源设备向该音频设备中的各个收发机以广播的方式发送第一目标数据之后,该第二收发机向该音源设备回复的为否定应答,具体情况与前文步骤401至步骤408类似,因此此处不再赘述。
前文所介绍的情况中,该音源设备能够接收所有的音频设备发送的响应,但是,在实际应用中,该音源设备可能没有成功接收到每一个收发机所返回的响应,也就是说,该音源设备可能仅接收到一部分响应,具体请参阅图11A和图11B。当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备将以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。然后,该音源设备通过同一天线在不同的时刻接收该音频设备中的各个收发机所发送的响应,具体地,如图11A所示,在音源设备完成发送的T_IFS时间后,该音源设备未能接收到该音频设备中的第一收发机所返回的响应,此时,可能是该第一收发机已接收该第一目标数据,但是没能够成功发送肯定应答;也可能是该第一收发机未能接收该第一目标数据,但是也没有能够成功发送否定应答;还可能是因为该第一收发机已经发送了肯定应答或否定应答,但是,由于信号干扰等原因导致该音源设备未能够成功接收该第一收发机的响应。同样按照约定,在音源设备完成发送后的T_SIFS时间后,该第二收发机向该音源设备回复第二响应,该第二响应为肯定应答,该肯定应答表示发送响应的收发机接收到该音源设备发送的第一目标数据。由于,该音源设备未能接收到该第一收发机的响应,因此,该音源设备也无法确定该音频设备中的第一收发机已成功接收了该第一目标数据。于是,该音源设备再次以广播的方式向音频设备中的每一个收发机发送该第一目标数据,然后,类似的,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,向该音源设备回复第一响应, 此时,该第一响应为肯定应答,该肯定应答表示发送该第一响应的第一收发机接收到该音源设备发送的第一目标数据。此时,表示该音频设备中的各个收发机均接收到该音源设备发送的第一目标数据,并都已通知该音源设备各个收发机已收到该第一目标数据。类似的,如图11B所示的空口交互时序图中,当音源设备向该音频设备中的各个收发机以广播的方式发送第一目标数据之后,该音源设备未接收到该第二收发机所回复的响应时的具体情况与前文步骤501至步骤507类似,具体此处不再赘述。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以通过同一接收天线在不同时刻分别接收该音频设备中的各个收发机根据该第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
上面介绍了该音源设备通过同一天线在不同时刻接收该音频设备中的各个收发机所回复的响应的过程,下面将介绍当该音源设备中包含至少两个接收天线的情况,具体如图12所示,在这样的情况下,该音源设备可以通过不同的天线在相同的时刻接收该音频设备中的各个收发机所回复的响应。
具体地,当该音源设备向该音频设备中的每一个收发机发送数据传输通知之后,该音源设备将正式发送第一目标数据,即该音源设备将以广播的方式向该音频设备中的每一个收发机发送该第一目标数据。然后,当该音频设备的第一收发机在音源设备完成发送的T_IFS时间后,该音源设备通过图12所示的第一接收天线和第二接收天线分别接收该音频设备中的第一收发机所回复的第一响应和第二收发机所回复的第二响应,此时,该第一响应和该第二响应均为肯定应答,该肯定应答表示该收发机接收到该音源设备发送的第一目标数据。此时,该音频设备中的各个收发机已接收到该第一目标数据并向该音源设备回复的肯定应答,说明该音频设备中的各个收发机均已接收了该第一目标数据。
应当理解的是,该音源设备收到的响应中存在否定应答,以及该音源设备未能接收到部分收发机的响应的情况与前文类似,具体此处不再赘述。
本实施例中,在音源设备以广播的方式发送第一目标数据之后,该音源设备可以通过不同的接收天线分别接收该音频设备中的各个收发机根据该第一目标数据是否成功接收而反馈的响应,并根据该响应的接收情况确定是否要再次以广播的方式发送该第一目标数据。由于,在收发机与音源设备之间的数据交互过程中,不需要以某一个收发机为中转接收其他收发机的响应,而是直接由各个收发机分别向该音源设备回响应。因此,可以使该音频设备中的各个收发机的耗能相对均衡,从而使各收发机的待机时间相对一致,进而提升用户体验。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本 申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (32)

  1. 一种数据传输方法,其特征在于,包括:
    音源设备基于无线短距离传输协议,以广播的方式发送第一目标数据;
    所述音源设备分别接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应;
    所述音源设备根据所述第一响应和所述第二响应的接收情况,确定是否再次以广播的方式发送所述第一目标数据。
  2. 根据权利要求1所述的方法,其特征在于,所述音源设备根据所述第一响应和所述第二响应的接收情况,确定是否再次以广播的方式发送所述第一目标数据包括:
    当所述第一响应或所述第二响应为否定应答时,所述音源设备以广播的方式再次发送所述第一目标数据,其中,若所述第一响应为否定应答,则表示所述第一收发机未接收到所述第一目标数据,若所述第二响应为否定应答,则表示所述第二收发机未接收到所述第一目标数据。
  3. 根据权利要求1所述的方法,其特征在于,所述音源设备根据所述第一响应和所述第二响应的接收情况,确定是否再次以广播的方式发送所述第一目标数据包括:
    当所述音源设备未接收到所述第一响应或未接收到所述第二响应时,所述音源设备再次以广播的方式发送所述第一目标数据。
  4. 根据权利要求2或3所述的方法,其特征在于,所述音源设备以广播的方式再次发送所述第一目标数据之后,所述方法还包括:
    所述音源设备接收所述第一收发机或所述第二收发机针对再次发送的第一目标数据的是否成功接收的响应,所述响应为肯定应答或者否定应答。
  5. 根据权利要求1所述的方法,其特征在于,所述音源设备根据所述第一响应和所述第二响应的接收情况,确定是否再次以广播的方式发送所述第一目标数据包括:
    当所述第一响应和所述第二响应均为肯定应答时,所述音源设备不再发送所述第一目标数据,其中,若所述第一响应为肯定应答,则表示所述第一收发机已接收到所述第一目标数据,若所述第二响应为肯定应答,则表示所述第二收发机已接收到所述第一目标数据。
  6. 根据权利要求5所述的方法,其特征在于,所述音源设备不再发送所述第一目标数据之后,所述方法还包括:
    所述音源设备以广播的方式发送第二目标数据。
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述无线短距离传输协议包括蓝牙协议或Wi-Fi协议。
  8. 根据权利要求7所述的方法,其特征在于,所述音源设备包括多个接收天线;
    所述音源设备分别接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应包括:
    所述音源设备通过不同的接收天线分别接收音频设备中的第一收发机根据所述第一目 标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应,所述第一响应和所述第二响应分别来自不同的频道。
  9. 根据权利要求7所述的方法,其特征在于,所述音源设备包括一个接收天线;
    所述音源设备分别接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应包括:
    所述音源设备分别在不同的时刻通过所述接收天线接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应,所述第一响应和所述第二响应均来自相同频道。
  10. 根据权利要求1所述的方法,其特征在于,所述音源设备基于无线短距离传输协议,以广播的方式发送第一目标数据之前,所述方法还包括:
    音源设备向音频设备发送数据传输通知,所述数据传输通知用于提示所述音频设备中的第一收发机和第二收发机准备接收第一目标数据和收发规则,所述收发规则为所述音频设备中的第一收发机和第二收发机接收所述第一目标数据和发送响应的规则。
  11. 一种数据传输方法,其特征在于,包括:
    音频设备中的第一收发机和第二收发机根据收发规则分别准备接收第一目标数据;
    所述音频设备中的第一收发机和第二收发机分别向音源设备发送响应,所述响应包括所述第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应,或所述第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应。
  12. 根据权利要求11所述的方法,其特征在于,所述音频设备中的第一收发机和第二收发机根据收发规则分别准备接收第一目标数据之前,所述方法还包括:
    音频设备中的第一收发机和第二收发机分别接收音源设备发送的数据传输通知,所述数据传输通知用于提示所述音频设备中的第一收发机和第二收发机准备接收第一目标数据或收发规则,所述收发规则为所述音频设备中的第一收发机和第二收发机接收所述第一目标数据和发送响应的规则。
  13. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    当所述音频设备中的接收器确认待接收的所述第一目标数据已存在时,所述接收器拒绝接收所述第一目标数据,所述接收器为所述第一收发机或所述第二收发机。
  14. 根据权利要求11所述的方法,其特征在于,所述音频设备中的第一收发机和第二收发机分别向音源设备发送响应包括:
    所述音频设备中的第一收发机和第二收发机采用不同的频道分别向所述音源设备发送响应。
  15. 根据权利要求11所述的方法,其特征在于,所述音频设备中的第一收发机和第二收发机分别向音源设备发送响应包括:
    所述音频设备中的第一收发机和第二收发机采用相同的频道在不同的时刻向所述音源 设备发送响应。
  16. 一种音源设备,其特征在于,包括:
    处理器,接收机和发射机,所述接收机和所述发射机分别耦合至所述处理器;
    所述发射机,用于基于无线短距离传输协议,以广播的方式发送第一目标数据;
    所述接收机,用于分别接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应;
    所述处理器,用于根据所述第一响应和所述第二响应的接收情况,确定是否再次以广播的方式发送所述第一目标数据。
  17. 根据权利要求16所述的音源设备,其特征在于,
    所述处理器,具体用于当所述第一响应或所述第二响应为否定应答时,确定所述发射机以广播的方式再次发送所述第一目标数据,其中,若所述第一响应为否定应答,则表示所述第一收发机未接收到所述第一目标数据,若所述第二响应为否定应答,则表示所述第二收发机未接收到所述第一目标数据。
  18. 根据权利要求16所述的音源设备,其特征在于,
    所述处理器,具体用于当所述音源设备未接收到所述第一响应或未接收到所述第二响应时,确定所述发射机以广播的方式再次发送所述第一目标数据。
  19. 根据权利要求17或18所述的音源设备,其特征在于,
    所述接收机,还用于接收所述第一收发机或所述第二收发机针对再次发送的第一目标数据的是否成功接收的响应,所述响应为肯定应答或者否定应答。
  20. 根据权利要求16所述的音源设备,其特征在于,
    所述处理器,具体用于当所述第一响应和所述第二响应均为肯定应答时,确定不再发送所述第一目标数据,其中,若所述第一响应为肯定应答,则表示所述第一收发机已接收到所述第一目标数据,若所述第二响应为肯定应答,则表示所述第二收发机已接收到所述第一目标数据。
  21. 根据权利要求20所述的音源设备,其特征在于,所述发射机,还用于以广播的方式发送第二目标数据。
  22. 根据权利要求16至21中任意一项所述的音源设备,其特征在于,所述音源设备还包括蓝牙基带;
    所述蓝牙基带,用于确定所述收发规则。
  23. 根据权利要求16至21中任意一项所述的音源设备,其特征在于,所述音源设备还包括Wi-Fi模块;
    所述Wi-Fi模块,用于确定所述收发规则。
  24. 根据权利要求22所述的音源设备,其特征在于,所述接收机至少与两个接收天线相连;
    所述接收机,具体用于分别通过不同的接收天线分别接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根 据所述第一目标数据是否成功接收而反馈的第二响应,所述第一响应和所述第二响应分别来自不同的频道。
  25. 根据权利要求22所述的音源设备,其特征在于,所述接收机仅与一个接收天线相连;
    所述接收机,具体用于在不同的时刻通过所述接收天线接收音频设备中的第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应以及所述音频设备中的第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应,所述第一响应和所述第二响应均来自相同频道。
  26. 根据权利要求22所述的音源设备,其特征在于,所述发射机,还用于向音频设备发送数据传输通知,所述数据传输通知用于提示所述音频设备中的所述第一收发机和所述第二收发机准备接收第一目标数据和收发规则,所述收发规则为所述音频设备中的第一收发机和第二收发机接收所述第一目标数据和发送响应的规则。
  27. 一种音频设备,其特征在于,包括:
    第一收发机和第二收发机,用于根据收发规则分别准备接收第一目标数据;
    所述第一收发机和第二收发机,还用于分别向音源设备发送响应,所述响应包括所述第一收发机根据所述第一目标数据是否成功接收而反馈的第一响应,或所述第二收发机根据所述第一目标数据是否成功接收而反馈的第二响应。
  28. 根据权利要求27所述的音频设备,其特征在于,所述第一收发机和第二收发机,还用于分别接收音源设备发送的数据传输通知,所述数据传输通知用于提示所述音频设备中的第一收发机和第二收发机准备接收第一目标数据或收发规则,所述收发规则为所述音频设备中的第一收发机和第二收发机接收所述第一目标数据和发送响应的规则。
  29. 根据权利要求27所述的音频设备,其特征在于,所述第一收发机或第二收发机,还用于确认待接收的所述第一目标数据已存在时,拒绝接收所述第一目标数据。
  30. 根据权利要求27所述的音频设备,其特征在于,所述第一收发机和第二收发机,具体用于采用不同的频道分别向所述音源设备发送响应。
  31. 根据权利要求27所述的音频设备,其特征在于,所述第一收发机和第二收发机,具体用于采用相同的频道在不同的时刻向所述音源设备发送响应。
  32. 一种数据传输系统,其特征在于,包括:
    如权利要求16至26中任一项所述的音源设备,以及如权利要求27至31中任一项所述的音频设备。
PCT/CN2019/073821 2019-01-30 2019-01-30 一种数据传输方法以及相关装置 WO2020154938A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/073821 WO2020154938A1 (zh) 2019-01-30 2019-01-30 一种数据传输方法以及相关装置
CN201980090037.9A CN113330757B (zh) 2019-01-30 2019-01-30 一种数据传输方法以及相关装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073821 WO2020154938A1 (zh) 2019-01-30 2019-01-30 一种数据传输方法以及相关装置

Publications (1)

Publication Number Publication Date
WO2020154938A1 true WO2020154938A1 (zh) 2020-08-06

Family

ID=71841750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073821 WO2020154938A1 (zh) 2019-01-30 2019-01-30 一种数据传输方法以及相关装置

Country Status (2)

Country Link
CN (1) CN113330757B (zh)
WO (1) WO2020154938A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994754A (zh) * 2021-02-03 2021-06-18 展讯通信(上海)有限公司 蓝牙音频数据的传输方法和设备
CN114007209A (zh) * 2021-10-28 2022-02-01 歌尔光学科技有限公司 一种基于ble的数据传输方法、装置及ble主设备
WO2023024119A1 (zh) * 2021-08-27 2023-03-02 华为技术有限公司 一种应用于短距无线通信的数据传输方法及通信装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140297815A1 (en) * 2007-01-27 2014-10-02 Blackfire Research Corporation Synchronous playback of media using a wi-fi network with the media originating from a bluetooth source
CN105120436A (zh) * 2015-07-16 2015-12-02 广东欧珀移动通信有限公司 一种蜂窝音响系统的实现方法及移动终端
WO2016108115A1 (en) * 2014-12-31 2016-07-07 Qualcomm Technologies International, Ltd. Audio broadcast retransmissions
CN205540039U (zh) * 2016-02-02 2016-08-31 讯雷远大科技(深圳)有限公司 基于无线传输技术的一对多音频控制系统
CN108881990A (zh) * 2018-06-25 2018-11-23 努比亚技术有限公司 音频播放方法、终端及计算机存储介质
CN109089330A (zh) * 2018-08-23 2018-12-25 维沃移动通信有限公司 一种音频数据传输方法及终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10136429B2 (en) * 2014-07-03 2018-11-20 Lg Electronics Inc. Method for transmitting and receiving audio data in wireless communication system supporting bluetooth communication and device therefor
CN104955168A (zh) * 2015-05-18 2015-09-30 乐视致新电子科技(天津)有限公司 音频数据发送处理方法、接收处理方法及设备
CN106712904B (zh) * 2016-12-27 2020-06-30 深圳市道通合创软件开发有限公司 数据传输的控制方法及装置、终端
CN108616819B (zh) * 2018-03-23 2021-10-26 南京中感微电子有限公司 一种数据重传方法、蓝牙主设备及无线通信系统
CN108712737A (zh) * 2018-05-04 2018-10-26 北京洛克家智能科技有限责任公司 一种信息交互的方法和系统
CN108901004A (zh) * 2018-08-08 2018-11-27 易兆微电子(杭州)有限公司 一种同步传输蓝牙耳机的方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140297815A1 (en) * 2007-01-27 2014-10-02 Blackfire Research Corporation Synchronous playback of media using a wi-fi network with the media originating from a bluetooth source
WO2016108115A1 (en) * 2014-12-31 2016-07-07 Qualcomm Technologies International, Ltd. Audio broadcast retransmissions
CN105120436A (zh) * 2015-07-16 2015-12-02 广东欧珀移动通信有限公司 一种蜂窝音响系统的实现方法及移动终端
CN205540039U (zh) * 2016-02-02 2016-08-31 讯雷远大科技(深圳)有限公司 基于无线传输技术的一对多音频控制系统
CN108881990A (zh) * 2018-06-25 2018-11-23 努比亚技术有限公司 音频播放方法、终端及计算机存储介质
CN109089330A (zh) * 2018-08-23 2018-12-25 维沃移动通信有限公司 一种音频数据传输方法及终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994754A (zh) * 2021-02-03 2021-06-18 展讯通信(上海)有限公司 蓝牙音频数据的传输方法和设备
WO2022166438A1 (zh) * 2021-02-03 2022-08-11 展讯通信(上海)有限公司 蓝牙音频数据的传输方法和设备
CN112994754B (zh) * 2021-02-03 2022-08-16 展讯通信(上海)有限公司 蓝牙音频数据的传输方法、设备、芯片及存储介质
WO2023024119A1 (zh) * 2021-08-27 2023-03-02 华为技术有限公司 一种应用于短距无线通信的数据传输方法及通信装置
CN114007209A (zh) * 2021-10-28 2022-02-01 歌尔光学科技有限公司 一种基于ble的数据传输方法、装置及ble主设备

Also Published As

Publication number Publication date
CN113330757A (zh) 2021-08-31
CN113330757B (zh) 2023-09-01

Similar Documents

Publication Publication Date Title
US11678163B2 (en) Power-efficient, balanced, and reliable true wireless Bluetooth stereo audio solution
US10104474B2 (en) Un-tethered wireless audio system
EP3014908B1 (en) Communications in an ad-hoc multicast network
WO2021190430A1 (zh) 音频数据传输方法、系统和装置
US10136429B2 (en) Method for transmitting and receiving audio data in wireless communication system supporting bluetooth communication and device therefor
US11723087B2 (en) Establishing a short-range communication pathway
US10979990B2 (en) Seamless link transfers between primary and secondary devices
US20120171958A1 (en) Method and apparatus for distributing data in a short-range wireless communication system
WO2020154938A1 (zh) 一种数据传输方法以及相关装置
US10990349B2 (en) Wireless audio splitter
WO2021121289A1 (zh) 蓝牙耳机的数据接收方法、装置、设备及存储介质
JP2019004459A (ja) アクセサリデバイスのための最適化されたBluetoothスケジューリング
US10819489B2 (en) Real time ACK/NAK from link sniffing
EP3685600B1 (en) Performing a reliable broadcast to a plurality of nodes
US20080279130A1 (en) Bluetooth and Wireless Network Coexistence
US10880045B2 (en) Retransmission and new packet detection in wireless systems
CN112039637A (zh) 一种音频数据通信方法、系统及音频通信设备
WO2016161645A1 (zh) 一种天线配置方法及终端
US20160249185A1 (en) Enhanced wireless multicast delivery
KR20230002425A (ko) 무선 통신 시스템에서 채널 선택 방법, 장치, 컴퓨터 프로그램 및 그 기록 매체
WO2022236828A1 (zh) 一种头戴式无线耳机及其通信方法
US20240137745A1 (en) Communication method, communication apparatus, and non-transitory computer-readable storage medium
TW202103473A (zh) 音訊補償方法及對應使用此方法的無線音訊輸出裝置
TW201249117A (en) A one-to-many wireless transmitting method and device of 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: 19913218

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: 19913218

Country of ref document: EP

Kind code of ref document: A1