WO2021121289A1 - 蓝牙耳机的数据接收方法、装置、设备及存储介质 - Google Patents

蓝牙耳机的数据接收方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2021121289A1
WO2021121289A1 PCT/CN2020/136968 CN2020136968W WO2021121289A1 WO 2021121289 A1 WO2021121289 A1 WO 2021121289A1 CN 2020136968 W CN2020136968 W CN 2020136968W WO 2021121289 A1 WO2021121289 A1 WO 2021121289A1
Authority
WO
WIPO (PCT)
Prior art keywords
headset
audio data
earphone
slave
source device
Prior art date
Application number
PCT/CN2020/136968
Other languages
English (en)
French (fr)
Inventor
龚金华
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP20903610.2A priority Critical patent/EP4075701A4/en
Publication of WO2021121289A1 publication Critical patent/WO2021121289A1/zh
Priority to US17/841,303 priority patent/US20220312167A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1864ARQ related signaling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1848Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L2001/0092Error control systems characterised by the topology of the transmission link
    • H04L2001/0097Relays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Definitions

  • the present disclosure relates to the field of wireless communication technology, and in particular to a data receiving method, device, equipment and storage medium of a Bluetooth headset.
  • the TWS (True Wireless Stereo) headset includes two independent headsets for the left and right ears of the user. There is no need for cable connection between the two earphones, which can realize the wireless separation of left and right channels.
  • one of the headsets is defined as the main headset, which is usually used to directly establish a connection with the audio source device to communicate with the audio source device through this connection, receive audio data sent by the audio source device, and feedback whether the audio data is correct receive.
  • the slave earphone is another earphone, usually there is no direct connection with the audio source device, and it needs to feedback whether it receives audio data correctly through the main earphone.
  • this method can easily cause audio data to freeze or stop playing, which affects user listening experience.
  • the embodiments of the present disclosure provide a data receiving method, device, device, and storage medium of a Bluetooth headset, which can solve the problem that audio data cannot be played normally when there is interference between the master and slave headsets.
  • a data receiving method of a Bluetooth headset including: a main headset of the Bluetooth headset sends connection parameter information of a first wireless link between the main headset and a sound source device to the Bluetooth The slave headset of the headset; the master headset receives the first audio data sent by the audio source device through the first wireless link; the slave headset monitors the first wireless link based on the connection parameter information to Acquire the first audio data; when the master headset correctly receives the first audio data, and does not receive any feedback from the slave headset within a preset time, send an affirmative response to the audio source device Message to notify the audio source device to send the second audio data.
  • the any feedback includes: negative feedback information used to indicate that the slave earphone has not correctly received the first audio data; the method further includes: when the slave earphone is not correctly obtained When the first audio data is reached, the negative feedback information is sent to the main earphone.
  • the method further includes: when the first audio data is correctly acquired by the slave earphone, not sending to the master earphone to indicate that the slave earphone correctly receives the first audio data Positive feedback of data.
  • the method further includes: not sending any feedback information to the master headset when the slave headset does not correctly acquire the first audio data.
  • the any feedback includes: positive feedback information for indicating that the first audio data is correctly received by the slave earphone; the method further includes: when the slave earphone correctly obtains all the first audio data; When the first audio data is described, the positive feedback information is sent to the main earphone.
  • the method further includes: when the primary earphone does not correctly receive the first audio data, sending a negative response message to the audio source device to notify the audio source device to resend all the audio data.
  • the first audio data when the primary earphone does not correctly receive the first audio data, sending a negative response message to the audio source device to notify the audio source device to resend all the audio data. The first audio data.
  • the method further includes: when the master headset receives the negative feedback information sent by the slave headset within the preset time, sending a negative response message to the audio source device To notify the audio source device to resend the first audio data.
  • the method further includes: when the master earphone correctly receives the first audio data and receives the positive feedback information sent by the slave earphone, sending to the audio source device Send an acknowledgement message to notify the audio source device to send the second audio data.
  • the method before the master headset of the Bluetooth headset sends the connection parameter information of the first wireless link between the master headset and the audio source device to the slave headset of the Bluetooth headset, the method also The method includes: the master earphone establishes a first wireless connection with the audio source device to form the first wireless link; and the master earphone establishes a second wireless connection with the slave earphone to form the second wireless link; Bluetooth The master headset of the headset sends the connection parameter information of the first wireless link between the master headset and the audio source device to the slave headset of the Bluetooth headset, including: the master headset passes through the second wireless link, Sending the connection parameter information of the first wireless link to the slave earphone.
  • the method further includes: the master headset detecting whether the feedback sent by the slave headset is received through the second wireless link.
  • the preset time is less than or equal to the duration of the receiving time slot.
  • a data receiving device for a Bluetooth headset including: a parameter sending module, used for a main headset of the Bluetooth headset to determine the connection parameters of the first wireless link between the main headset and the audio source device. Information, sent to the slave headset of the Bluetooth headset; a data receiving module, used for the master headset to receive the first audio data sent by the audio source device through the first wireless link; a link monitoring module, used for all The slave earphone monitors the first wireless link based on the connection parameter information to obtain the first audio data; and a response feedback module is used for when the master earphone correctly receives the first audio data, And when no feedback sent from the earphone is received within a preset time, an acknowledgement message is sent to the audio source device to notify the audio source device to send the second audio data.
  • a parameter sending module used for a main headset of the Bluetooth headset to determine the connection parameters of the first wireless link between the main headset and the audio source device.
  • Information sent to the slave headset of the Bluetooth headset
  • a data receiving module used for the master headset to receive the first
  • the any feedback includes: negative feedback information used to indicate that the slave earphone did not correctly receive the first audio data; the device further includes a data determination module, configured to When the slave earphone does not correctly acquire the first audio data, sending the negative feedback information to the master earphone.
  • the data determining module is further configured to not send to the master headset when the slave headset correctly acquires the first audio data, which means that the slave headset correctly receives the first audio data.
  • a positive feedback information of audio data is further configured to not send to the master headset when the slave headset correctly acquires the first audio data, which means that the slave headset correctly receives the first audio data.
  • the data determining module is further configured to not send any feedback information to the master headset when the slave headset does not correctly acquire the first audio data.
  • the any feedback includes: positive feedback information for indicating that the first audio data is correctly received by the slave earphone; the data determining module is also used for when the slave earphone is correctly acquired When the first audio data is reached, the positive feedback information is sent to the main earphone.
  • the response feedback module is further configured to send a negative response message to the audio source device when the primary earphone does not correctly receive the first audio data, so as to notify the audio source device to restart Sending the first audio data.
  • the response feedback module is further configured to send a negative response message to the audio source device when the main earphone receives the negative feedback information within the preset time to notify the receiver The audio source device resends the first audio data.
  • the response feedback module is further configured to: when the master earphone correctly receives the first audio data and the positive feedback information sent by the slave earphone, The sound source device sends an acknowledgement message to notify the sound source device to send the second audio data.
  • a Bluetooth headset including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions Perform any of the above methods.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned methods is implemented.
  • the master headset sends an affirmative response message to the audio source device when it does not receive any feedback sent from the headset.
  • the master headset when the wireless communication environment between the master and slave headsets is poor (such as when there is more serious interference), if the master headset does not receive any feedback from the slave headset within the preset time due to interference, the master headset The headset will also think that the audio data is correctly received from the headset, so the main headset will continue to request the audio source device to send the next packet of audio data, ensuring that at least one headset can receive audio data normally, thereby avoiding the non-stop audio source device in the related technology.
  • the retransmission of a packet of audio data causes the playback to freeze or stop.
  • the slave headset sends negative feedback information only when the first audio data is not correctly received, so that the wireless communication environment between the master and slave headsets is better.
  • the signal strength is relatively strong and the interference is relatively small
  • it can also reduce the data transmission between the master and slave headphones, and reduce the power loss of the slave headphones.
  • Figure 1 shows a schematic diagram of a method for receiving data between a master and slave headset of a TWS Bluetooth headset in the related art.
  • Fig. 2 is a schematic diagram showing an audio playback system according to an exemplary embodiment.
  • Fig. 3 shows a flow chart of a method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • Fig. 4 shows a flowchart of another method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • Fig. 5 shows a flowchart of another method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • Fig. 6 shows a flowchart of yet another method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • Fig. 7 shows a block diagram of a data receiving device of a Bluetooth headset in an embodiment of the present disclosure.
  • Fig. 8 shows a block diagram of a Bluetooth headset in an embodiment of the present disclosure.
  • Fig. 9 shows a schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • the features defined with “first” and “second” may explicitly or implicitly include one or more of these features.
  • Figure 1 shows a schematic diagram of a method for receiving data between a master and slave headset of a TWS Bluetooth headset in the related art.
  • the slave earphone when the slave earphone correctly receives the audio data sent by the sound source device by monitoring the wireless connection between the master earphone and the sound source device, the slave earphone sends an ACK (acknowledgement) to the master earphone.
  • the master headset receives the ACK sent from the slave headset and the master headset correctly receives the audio data, the master headset sends an ACK to the audio source device to notify the audio source device that the next packet of audio data can be sent.
  • the master headset may have been unable to receive the ACK sent by the slave headset, and the master headset will continue to send retransmission requests to the audio source device. This operation It always happens in a loop, and it will eventually cause the master-slave headset to freeze or stop playing because there is not enough audio source data to play.
  • the embodiments of the present disclosure provide a data receiving method, device, device, and storage medium of a Bluetooth headset.
  • Fig. 2 is a schematic diagram showing an audio playback system according to an exemplary embodiment.
  • the audio playback system 1 includes: an audio source device 11, a master headset 12 and a slave headset 13 in the TWS Bluetooth headset.
  • the audio source device 11 may be a smart device with a Bluetooth communication function, such as a smart phone, a tablet computer, and the like.
  • the audio source device 11 and the main earphone 12 communicate with each other through the established first wireless link L1.
  • the master earphone 12 and the slave earphone 13 communicate through the established second wireless link L2.
  • Both the first wireless link L1 and the second wireless link L2 are wireless connections established based on the Bluetooth communication protocol.
  • Fig. 3 shows a flow chart of a method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • the method provided by the embodiment of the present disclosure can be executed by the main earphone in the TWS Bluetooth earphone.
  • a data receiving method 10 of a Bluetooth headset includes:
  • step S102 the master headset of the Bluetooth headset sends the connection parameter information of the first wireless link between the master headset and the audio source device to the slave headset of the Bluetooth headset.
  • a first wireless link L1 is established between the main earphone 12 and the audio source device 11.
  • the master earphone 12 needs to send the connection parameter information of the first wireless link L1 to the slave earphone 13.
  • the connection parameter information may include, for example, connection information of the first wireless link (such as the Bluetooth communication address of the audio source device 11, etc.), frequency hopping information (such as frequency hopping sequence, AFH channel map, etc.), and encryption information (such as keys, etc.) ) And other information. Based on this information, the slave earphone 13 can actively monitor the first wireless link, so as to obtain the data transmitted on the first wireless link.
  • the master earphone 12 may send the connection parameter information of the first wireless link L1 to the slave earphone 13 through the second wireless link L2 with the slave earphone 13.
  • step S104 the main earphone receives the first audio data sent by the audio source device through the first wireless link.
  • the main earphone 12 receives the first audio data sent by the audio source device through the first wireless link.
  • the first audio data sent by the audio source device on the first wireless link is obtained from the earphone 13 by monitoring the first wireless link.
  • step S106 the main earphone detects whether the feedback sent from the earphone is received within a preset time.
  • the main earphone 12 also detects whether any feedback sent from the earphone 13 is received, and the any feedback may include, for example, negative feedback information, which is used to indicate that the slave earphone has not received the first audio data correctly.
  • the main earphone 12 will also use the communication gap with the audio source device 11 to detect whether the negative feedback information sent from the earphone 13 is received by monitoring the second wireless link L2.
  • the slave earphone 13 only sends negative feedback information to the master earphone 12 when it does not receive the first audio data correctly to indicate that it has not received the first audio data correctly. It does not send positive feedback information (such as the aforementioned ACK) to the main earphone 12 every time a packet of audio data is correctly received. That is, every time the audio data is correctly received, the slave earphone 13 does not send any feedback to the master earphone 12.
  • positive feedback information such as the aforementioned ACK
  • both parties in communication will set their own transmission time slot and reception time slot, and the transmission time slot of one party is the reception time slot of the other party, so as to ensure that both parties can communicate correctly.
  • the receiving time slot of the main earphone 12 in the second wireless link L2 detects whether there is data sent from the earphone on the second wireless link L2 to detect whether the feedback sent from the earphone is received.
  • step S108 when the main earphone correctly receives the first audio data and does not receive any feedback sent from the earphone within the preset time, an acknowledgement message is sent to the audio source device to notify the audio source device to send the second audio data.
  • the main earphone 12 After the main earphone 12 has correctly received the first audio data and has not received any feedback from the earphone within a preset time, it will send an ACK to the audio source device 11 to notify the audio source device to send the second audio. Data (the next packet of audio data).
  • not receiving any feedback sent from the headset within a preset time includes:
  • the above-mentioned negative feedback information sent from the earphone is not received within a preset time.
  • the preset time is, for example, set to be less than or equal to the duration of the receiving time slot of the main earphone 12 in the second wireless link L2. That is, if the feedback information sent from the earphone 13 is not received within the receiving time slot, it is considered that the first audio data has been correctly received from the earphone 13.
  • the method 10 for receiving data from a Bluetooth headset may further include:
  • step S110 when the main earphone does not correctly receive the first audio data, or when the main earphone receives the negative feedback information sent from the earphone within a preset time, a negative response message is sent to the audio source device to notify the audio source device to restart Send the first audio data.
  • the main earphone 12 If the main earphone 12 itself does not correctly receive the first audio data, or the main earphone 12 receives the negative feedback information sent from the earphone 13 within the preset time, the main earphone 12 sends a negative response message to the audio source device 11, thereby notifying the audio source The device 11 resends the first audio data.
  • the master headset tries to receive the negative feedback information sent from the headset, and when the negative feedback information is not received within the above preset time, it is considered that the audio source is correctly received from the headset Audio data sent by the device.
  • the master headset when the wireless communication environment between the master and slave headsets is poor (for example, when there is more serious interference), if the master headset does not receive the feedback information sent by the slave headset within the preset time due to interference, the master headset The headset will also think that the audio data is correctly received from the headset, so the main headset will continue to request the audio source device to send the next packet of audio data, ensuring that at least one headset can receive audio data normally, thereby avoiding the non-stop audio source device in the related technology. The retransmission of a packet of audio data causes the playback to freeze or stop.
  • the slave headset will only send negative feedback information to the master headset when it does not correctly receive the audio data sent by the audio source device.
  • the wireless communication environment between the master and slave headsets is better (such as signal strength comparison) Strong, less interference)
  • it can also reduce the data transmission between the master and slave earphones and reduce the power loss of the slave earphones.
  • the positive feedback information ACK is sent to the main earphone, if the first audio data is not obtained correctly.
  • the audio data sends negative feedback information NACK to the main earphone.
  • the main earphone When the main earphone correctly receives the first audio data and receives the ACK sent from the earphone, it sends an affirmative response to the sound source device so that the sound source device sends the second audio data; the main earphone does not correctly receive the first audio data by itself , Or when receiving a NACK from the headset, send a negative response to the audio source device so that the audio source device retransmits the first audio data; the master headset correctly receives the first audio data by itself and does not receive the slave within the preset time When any feedback from the earphone (including neither ACK nor NACK) is received, an affirmative response is sent to the audio source device, so that the audio source device sends the second audio data; thus, it can be guaranteed that the second wireless signal is caused by the head covering, etc. When the link communication quality is poor, it can still guarantee the reception and playback of the main earphone.
  • the positive feedback information ACK is sent to the main earphone, if the first audio data is not obtained correctly Data does not send any feedback information to the main headset.
  • the main earphone When the main earphone correctly receives the first audio data and receives the ACK sent from the earphone, it sends an affirmative response to the sound source device so that the sound source device sends the second audio data; when the main earphone itself correctly receives the first audio data, and When no feedback information sent from the headset is received within the preset time (including the situation where ACK is sent from the headset but not received due to the poor communication quality of the second wireless link and the situation where no feedback information is sent from the headset) , An affirmative response is sent to the audio source device.
  • This implementation mode can also guarantee the reception and playback of the main earphone.
  • Fig. 4 shows a flowchart of another method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • the method provided by the embodiment of the present disclosure can be executed by the slave headset in the TWS Bluetooth headset.
  • the data receiving method 20 of the Bluetooth headset includes:
  • step S202 the slave headset of the Bluetooth headset receives the connection parameter information of the first wireless link between the master headset and the audio source device sent by the master headset of the Bluetooth headset.
  • connection parameter information of the first wireless link L1 sent by the main earphone 12 is received from the earphone 13.
  • the connection parameter information may include, for example: the connection information of the first wireless link (such as the Bluetooth communication address of the audio source device 11, etc.), Frequency hopping information (such as frequency hopping sequence, AFH channel chart, etc.) and encryption information (such as keys, etc.) and other information.
  • connection parameter information is received from the earphone 13, for example, through the above-mentioned second wireless link L2.
  • step S204 based on the connection parameter information, the first wireless link is monitored from the earphone to obtain the first audio data sent by the audio source device.
  • the slave earphone 13 can monitor the first wireless link L1 and detect whether there is the first audio data sent by the audio source device 11 in it.
  • step S206 when the first audio data is not correctly acquired from the earphone, negative feedback information is sent to the main earphone.
  • the negative feedback information is used to indicate that the first audio data is not correctly obtained from the earphone.
  • the slave earphone 13 After receiving the first audio data, the slave earphone 13 determines whether the first audio data is correctly acquired, for example, it is determined whether the acquired first audio data is correct by means of verification.
  • the slave earphone 13 does not send a positive confirmation to the master earphone 12 (that is, no feedback is sent). Instead, the slave earphone 13 sends negative feedback information to the master earphone 12 only when it is not correctly acquired, to indicate that it has not received the first audio data correctly.
  • the slave earphone 13 may send feedback via the aforementioned second wireless link L2, for example.
  • the slave headset sends negative feedback information to the master headset only when the audio data sent by the audio source device is not correctly obtained.
  • the master headset when the wireless communication environment between the master and slave headsets is poor (for example, when there is more serious interference), if the master headset does not receive the feedback information sent by the slave headset within the preset time due to interference, the master headset The headset will also think that the audio data is correctly received from the headset, so the main headset will continue to request the audio source device to send the next packet of audio data, ensuring that at least one headset can receive audio data normally, thereby avoiding the non-stop audio source device in the related technology.
  • the retransmission of a packet of audio data causes the playback to freeze or stop.
  • the wireless communication environment between the master and slave earphones is better (such as strong signal strength and low interference)
  • the data transmission between the master and slave earphones can be reduced, and the power of the slave earphones can be reduced. loss.
  • Fig. 5 shows a flowchart of another method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • the data receiving method 50 of the Bluetooth headset includes:
  • step S502 the master headset of the Bluetooth headset sends the connection parameter information of the first wireless link between the master headset and the audio source device to the slave headset of the Bluetooth headset.
  • step S504 the main earphone receives the first audio data sent by the audio source device through the first wireless link.
  • step S506 the slave earphone monitors the first wireless link based on the connection parameter information to obtain the first audio data.
  • step S508 when the main earphone correctly receives the first audio data and does not receive any feedback sent from the earphone within the preset time, an acknowledgement message is sent to the audio source device to notify the audio source device to send the second audio data.
  • any feedback may include, for example, negative feedback information used to indicate that the slave earphone did not correctly receive the first audio data.
  • the method 50 may further include: when the first audio data is not correctly obtained from the earphone, sending negative feedback information to the main earphone; and when the first audio data is correctly obtained from the earphone, not sending The main earphone sends positive feedback information indicating that the first audio data is correctly received from the earphone.
  • the method 50 may further include: in step S510, when the master headset does not correctly receive the first audio data, or when the master headset receives the negative feedback sent by the slave headset within the preset time When information, a negative response message is sent to the audio source device to notify the audio source device to resend the first audio data.
  • a data receiving method for a Bluetooth headset is provided.
  • the main earphone does not receive any feedback (including negative feedback information) from the earphone within the aforementioned preset time, it is considered that the earphone has correctly received the audio data sent by the audio source device.
  • the master headset when the wireless communication environment between the master and slave headsets is poor (such as when there is more serious interference), if the master headset does not receive the feedback information sent by the slave headset within the preset time due to interference, the master headset The headset will also think that the audio data is correctly received from the headset, so the main headset will continue to request the audio source device to send the next packet of audio data, ensuring that at least one headset can receive audio data normally, thereby avoiding the non-stop audio source device in the related technology. Retransmission of a packet of audio data causes the playback to freeze or stop.
  • the slave headset will only send negative feedback information to the master headset when it does not correctly receive the audio data sent by the audio source device.
  • the wireless communication environment between the master and slave headsets is better (such as The signal strength is relatively strong, the interference is relatively small), it can also reduce the data transmission between the master and slave headphones, and reduce the power loss of the slave headphones.
  • Fig. 6 shows a flowchart of yet another method for receiving data from a Bluetooth headset in an embodiment of the present disclosure.
  • the data receiving method 30 of the Bluetooth headset includes:
  • step S311 the audio source device 11 and the main earphone 12 establish a first wireless link L1.
  • step S312 the master headset 12 and the slave headset 13 establish a second wireless link L2.
  • step S313 the master headset 12 sends the connection parameter information of the first wireless link L1 to the slave headset 13.
  • step S314 the audio source device 11 sends the first audio data to the main earphone 12.
  • step S315 the slave earphone 13 monitors the first wireless link L1 to detect whether the first audio data is received.
  • step S316 the main earphone 12 determines whether it has received the first audio data correctly. If it is received correctly, go to step S317; otherwise, go to step S320.
  • step S317 the main earphone 12 sends a negative response message NACK to the sound source device 11 to notify the sound source device 11 to resend the first audio data.
  • step S318 it is judged from the earphone 13 whether it has received the first audio data correctly. If it is received correctly, go to step S326; otherwise, go to step S319.
  • step S319 negative feedback information is sent from the earphone 13 to the main earphone 12, indicating that it has not received the first audio data correctly.
  • step S320 the main earphone 12 determines whether the negative feedback information sent from the earphone 13 is received. If received, go to step S321; otherwise, go to step S322.
  • step S321 the main earphone 12 sends a negative response message NACK to the sound source device 11 to notify the sound source device 11 to resend the first audio data.
  • step S322 the main earphone 12 determines whether the preset time is reached. If it arrives, go to step S323; otherwise, go back to step S320.
  • step S323 the main earphone 12 sends an acknowledgement message to the sound source device 11 to notify the sound source device 11 to send the second audio data.
  • step S324 the sound source device 11 determines whether an acknowledgement message is received. If it is received, go to step S325; otherwise, go back to step S314 to resend the first audio data.
  • step S325 the audio source device 11 transmits the second audio data based on the first wireless link L1.
  • step S326 the slave earphone 13 monitors the first wireless link L1 to detect whether the second audio data is received.
  • Fig. 7 shows a block diagram of a Bluetooth headset data transceiving device in an embodiment of the present disclosure.
  • the device can be applied to the main earphone in the TWS Bluetooth earphone.
  • the data transceiver device 40 of the Bluetooth headset includes: a parameter sending module 402, a data receiving module 404, a data monitoring module 406, and a response feedback module 408.
  • the parameter sending module 402 is used for the master headset of the Bluetooth headset to send connection parameter information of the first wireless link between the master headset and the audio source device to the slave headset of the Bluetooth headset.
  • the data receiving module 404 is configured to receive the first audio data sent by the audio source device by the main earphone through the first wireless link.
  • the link monitoring module 406 is configured to monitor the first wireless link based on the connection parameter information on the slave earphone to obtain the first audio data.
  • the response feedback module 410 is configured to send an acknowledgement message to the audio source device when the master earphone correctly receives the first audio data and does not receive any feedback from the slave earphone within a preset time. Notifying the audio source device to send the second audio data.
  • the any feedback includes: negative feedback information used to indicate that the slave earphone did not correctly receive the first audio data.
  • the data transceiving device 40 of the Bluetooth headset further includes: a data determining module 408, configured to not send to the master headset when the slave headset correctly obtains the first audio data, indicating that the slave headset correctly receives Positive feedback information to the first audio data; and when the first audio data is not correctly acquired by the slave earphone, sending the negative feedback information to the master earphone.
  • the data determining module 408 is further configured to not send any feedback information to the master headset when the slave headset does not correctly acquire the first audio data.
  • the any feedback includes: positive feedback information used to indicate that the first audio data is correctly received by the slave earphone; the data determining module 408 is also used for when the slave earphone correctly receives the In the case of the first audio data, the positive feedback information is sent to the main earphone.
  • the response feedback module 410 is further configured to: when the main earphone does not correctly receive the first audio data, or when the main earphone receives the negative feedback within the preset time When information, a negative response message is sent to the audio source device to notify the audio source device to resend the first audio data.
  • the response feedback module 410 is further configured to send a negative response message to the audio source device when the main earphone receives the negative feedback information within the preset time, so as to notify the audio source device Retransmit the first audio data.
  • the response feedback module 410 is further configured to send to the audio source device when the master earphone correctly receives the first audio data and the positive feedback information sent by the slave earphone Acknowledgement message to notify the audio source device to send the second audio data.
  • the data receiving device 40 of the Bluetooth headset further includes: a first connection establishment module and a second connection establishment module.
  • the first connection establishment module is used for establishing a first connection between the main earphone and the audio source device to form a first wireless link.
  • the second connection establishment module is used for establishing a second connection between the master headset and the slave headset to form a second wireless link.
  • the parameter sending module 402 is used for the master earphone to send the connection parameter information of the first wireless link to the slave earphone through the second wireless link.
  • the data receiving device 40 of the Bluetooth headset further includes: a feedback receiving module for the main headset to detect whether the feedback sent from the headset is received through the second wireless link.
  • the preset time is less than or equal to the duration of the receiving time slot of the second wireless link.
  • the master headset tries to receive any feedback sent from the headset (including the above negative feedback information), and does not receive any feedback within the above preset time, it is considered The audio data sent by the audio source device is correctly received from the headset.
  • the master headset when the wireless communication environment between the master and slave headsets is poor (for example, when there is more serious interference), if the master headset does not receive the feedback information sent by the slave headset within the preset time due to interference, the master headset The headset will also think that the audio data is correctly received from the headset, so the main headset will continue to request the audio source device to send the next packet of audio data, ensuring that at least one headset can receive audio data normally, thereby avoiding the non-stop audio source device in the related technology. The retransmission of a packet of audio data causes the playback to freeze or stop.
  • the slave headset will only send negative feedback information to the master headset when it does not correctly receive the audio data sent by the audio source device.
  • the wireless communication environment between the master and slave earphones is better (for example, the signal strength is relatively strong and the interference is relatively small)
  • the data transmission between the master and the slave earphones can be reduced, and the power loss of the slave earphones can be reduced.
  • the Bluetooth headset 800 according to this embodiment of the present disclosure will be described below with reference to FIG. 8.
  • the Bluetooth headset 800 shown in FIG. 8 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
  • the components of the electronic device 800 may include, but are not limited to: the aforementioned at least one processing unit 810, the aforementioned at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).
  • the storage unit 820 stores program code, and the program code can be executed by the processing unit 810, so that the processing unit 810 executes the various examples according to the present disclosure described in the "Exemplary Method" section of this specification. sexual implementation of the steps.
  • the processing unit 810 may perform S102 as shown in FIG.
  • the master headset of the Bluetooth headset sends the connection parameter information of the first wireless link between the master headset and the audio source device to the slave headset of the Bluetooth headset;
  • the main earphone monitors the first wireless link to receive the first audio data sent by the audio source device;
  • S106 the main earphone detects whether the feedback information sent from the earphone is received;
  • S108 when the main earphone correctly receives the first audio data, and
  • an acknowledgement message is sent to the audio source device to notify the audio source device to send the second audio data.
  • the processing unit 810 may also perform S202 as shown in FIG. 4, the slave headset of the Bluetooth headset receives the connection parameter information of the first wireless link between the master headset and the audio source device sent by the master headset of the Bluetooth headset; S204 , Based on the connection parameter information, monitor the first wireless link from the headset to receive the first audio data sent by the audio source device; S206, when the slave headset does not correctly receive the first audio data, send negative feedback information to the main headset, negative feedback The information is used to indicate that the first audio data is not received correctly from the headset.
  • the storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and/or a cache storage unit 8202, and may further include a read-only storage unit (ROM) 8203.
  • RAM random access storage unit
  • ROM read-only storage unit
  • the storage unit 820 may also include a program/utility tool 8204 having a set of (at least one) program module 8205.
  • program module 8205 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment.
  • the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiments of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
  • a computer-readable storage medium on which is stored a program product capable of implementing the above-mentioned method of this specification.
  • various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code.
  • the program product runs on a terminal device, the program code is used to enable the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
  • a program product 900 for implementing the above method according to an embodiment of the present disclosure is described. It can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be installed in a terminal device, For example, running on a personal computer.
  • the program product of the present disclosure is not limited thereto.
  • the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
  • the program product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service providers for example, using Internet service providers.
  • modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory.
  • the features and functions of two or more modules or units described above may be embodied in one module or unit.
  • the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.

Abstract

本申请提供了一种蓝牙耳机的数据接收方法、装置、设备及存储介质。该方法包括:蓝牙耳机的主耳机将主耳机与音源设备之间的第一无线链路的连接参数信息,发送给蓝牙耳机的从耳机(S202);主耳机通过第一无线链路接收音源设备发送的第一音频数据(S204);从耳机基于连接参数信息,监听第一无线链路,以获取第一音频数据;当主耳机正确接收到第一音频数据,并且在预设时间内没有接收到从耳机发送的任何反馈时,向音源设备发送肯定应答消息,以通知音源设备发送第二音频数据(S206)。

Description

蓝牙耳机的数据接收方法、装置、设备及存储介质 技术领域
本公开涉及无线通信技术领域,尤其涉及一种蓝牙耳机的数据接收方法、装置、设备及存储介质。
背景技术
TWS(True Wireless Stereo,真无线立体声)耳机包括两只独立的耳机,分别用于用户左右耳。两只耳机之间无需线缆连接,可以实现左右声道的无线分离。
目前,TWS耳机在使用时,会定义其中一个耳机为主耳机,通常用于与音源设备直接建立连接,以通过该连接与音源设备通信,接收音源设备发送的音频数据,并反馈音频数据是否正确接收。从耳机为另外一个耳机,通常与音源设备之间没有直接的连接,需要通过主耳机反馈其是否正确接收音频数据。
然而,由于主耳机需要收到从耳机发送的肯定应答,才向音源设备发送肯定应答,这种方式容易导致音频数据卡顿或停止播放等影响用户收听体验。
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。
发明内容
本公开实施例提供一种蓝牙耳机的数据接收方法、装置、设备及存储介质,可以解决主从耳机之间存在干扰时,音频数据无法正常播放的问题。
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。
根据本公开的一个方面,提供一种蓝牙耳机的数据接收方法,包括:蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机;所述主耳机通过所述第一无线链路接收所述音源设备发送的第一音频数据;所述从耳机基于所述连接参数信息,监听所述第一无线链路,以获取所述第一音频数据;当所述主耳机正确接收到所述第一音频数据,并且在预设时间内没有接收到所述从耳机发送的任何反馈时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
根据本公开的一个实施方式,所述任何反馈包括:用于表示所述从耳机没有正确接收到所述第一音频数据的否定反馈信息;所述方法还包括:当所述从耳机没有正确获取到所述第一音频数据时,向所述主耳机发送所述否定反馈信息。
根据本公开的一个实施方式,所述方法还包括:当所述从耳机正确获取到所述第一音频数据时,不向所述主耳机发送表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息。
根据本公开的一个实施方式,所述方法还包括:当所述从耳机没有正确获取到所述第一音频数据时,不向所述主耳机发送任何反馈信息。
根据本公开的一个实施方式,所述任何反馈包括:用于表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息;所述方法还包括:当所述从耳机正确获取到所述第一音频数据时,向所述主耳机发送所述肯定反馈信息。
根据本公开的一实施方式,所述方法还包括:当所述主耳机没有正确接收到所述 第一音频数据时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
根据本公开的一实施方式,所述方法还包括:当所述主耳机在所述预设时间内接收到所述从耳机发送的所述否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
根据本公开的一实施方式,所述方法还包括:当所述主耳机正确接收到所述第一音频数据,并且接收到所述从耳机发送的所述肯定反馈信息时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
根据本公开的一实施方式,在蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机之前,所述方法还包括:所述主耳机与所述音源设备建立第一无线连接形成所述第一无线链路;以及所述主耳机与所述从耳机建立第二无线连接形成所述第二无线链路;蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机,包括:所述主耳机通过所述第二无线链路,将所述第一无线链路的连接参数信息发送给所述从耳机。
根据本公开的一实施方式,所述方法还包括:所述主耳机检测是否通过所述第二无线链路接收到所述从耳机发送的反馈。
根据本公开的一实施方式,所述预设时间小于或等于所述接收时隙的时长。
根据本公开的另一方面,提供一种蓝牙耳机的数据接收装置,包括:参数发送模块,用于蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机;数据接收模块,用于所述主耳机通过所述第一无线链路接收所述音源设备发送的第一音频数据;链路监听模块,用于所述从耳机基于所述连接参数信息,监听所述第一无线链路,以获取所述第一音频数据;以及应答反馈模块,用于当所述主耳机正确接收到所述第一音频数据,并且在预设时间内没有接收到所述从耳机发送的任何反馈时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
根据本公开的一实施方式,所述任何反馈包括:用于表示所述从耳机没有正确接收到所述第一音频数据的否定反馈信息;所述装置还包括,数据确定模块,用于当所述从耳机没有正确获取到所述第一音频数据时,向所述主耳机发送所述否定反馈信息。
根据本公开的一实施方式,所述数据确定模块还用于当所述从耳机正确获取到所述第一音频数据时,不向所述主耳机发送表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息。
根据本公开的一实施方式,所述数据确定模块还用于当所述从耳机没有正确获取到所述第一音频数据时,不向所述主耳机发送任何反馈信息。
根据本公开的一实施方式,所述任何反馈包括:用于表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息;所述数据确定模块还用于当所述从耳机正确获取到所述第一音频数据时,向所述主耳机发送所述肯定反馈信息。
根据本公开的一实施方式,所述应答反馈模块还用于当所述主耳机没有正确接收到所述第一音频数据时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
根据本公开的一实施方式,所述应答反馈模块还用于当所述主耳机在所述预设时间内接收到所述否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
根据本公开的一实施方式,所述应答反馈模块还用于当所述主耳机正确接收到所述第一音频数据,并且接收到所述从耳机发送的所述肯定反馈信息时,向所述音源设 备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
根据本公开的再一方面,提供一种蓝牙耳机,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一种方法。
根据本公开的再一方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一种方法。
根据本公开实施例提供的蓝牙耳机的数据接收方法,主耳机在没有收到从耳机发送的任何反馈时会向音源设备发送肯定的应答消息。通过该方法,在主从耳机之间的无线通信环境较差时(如存在较为严重的干扰时),如果主耳机在预设时间内因为存在干扰而没有接收到从耳机发送的任何反馈,主耳机也会认为从耳机正确接收了音频数据,因此主耳机会继续请求音源设备发送下一包音频数据,保证了至少有一个耳机可以正常接收音频数据,从而避免了相关技术中由于音源设备不停的重传一包音频数据而导致的播放卡顿或停止的问题。
进一步的,本公开实施例提供的蓝牙耳机的数据接收方法,通过从耳机只在未正确接收第一音频数据的情况下发送否定反馈信息,使得在主从耳机之间的无线通信环境较佳时(如信号强度比较强、干扰比较小时),还可以减小主从耳机之间的数据发送,减小从耳机的功率损耗。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了相关技术中TWS蓝牙耳机主从耳机之间数据接收方法的示意图。
图2是根据一示例性实施例示出的音频播放系统的示意图。
图3示出本公开实施例中一种蓝牙耳机的数据接收方法的流程图。
图4示出本公开实施例中另一种蓝牙耳机的数据接收方法的流程图。
图5示出本公开实施例中再一种蓝牙耳机的数据接收方法的流程图。
图6示出本公开实施例中再一种蓝牙耳机的数据接收方法的流程图。
图7示出本公开实施例中一种蓝牙耳机的数据接收装置的框图。
图8示出本公开实施例中一种蓝牙耳机的框图。
图9示出本公开实施例中一种计算机可读存储介质的示意图。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在 不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
此外,在本公开的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
图1示出了相关技术中TWS蓝牙耳机主从耳机之间数据接收方法的示意图。
如图1所示,当从耳机通过监听主耳机与音源设备之间的无线连接,正确接收到音源设备发送的音频数据时,从耳机向主耳机发送ACK(肯定应答)。主耳机在收到从耳机发送的ACK,并且主耳机也正确接收到该音频数据时,主耳机向音源设备发送ACK,以通知音源设备可以发送下一包音频数据。
但是,如果主耳机与从耳机之间存在干扰(例如头部遮挡干扰),则主耳机可能一直无法收到从耳机发送的ACK,主耳机就会不断的向音源设备发送重传请求,该操作一直循环发生,最终会导致主从耳机由于没有足够的音源数据播放而发生卡顿或者停止播放。
有鉴于此,本公开实施例提供一种蓝牙耳机的数据接收方法、装置、设备及存储介质。
图2是根据一示例性实施例示出的音频播放系统的示意图。如图2所示,音频播放系统1包括:音源设备11、TWS蓝牙耳机中的主耳机12及从耳机13。
音源设备11可以为具有蓝牙通信功能的智能设备,如智能手机、平板电脑等。
音源设备11与主耳机12之间通过建立的第一无线链路L1进行通信。
主耳机12与从耳机13之间通过建立的第二无线链路L2进行通信。
第一无线链路L1与第二无线链路L2均为基于蓝牙通信协议建立的无线连接。
下面将结合附图及实施例对本公开实施方式中的各蓝牙耳机的数据接收方法的各个步骤进行更详细的说明。
图3示出本公开实施例中一种蓝牙耳机的数据接收方法的流程图。本公开实施例提供的方法可以由TWS蓝牙耳机中的主耳机执行。
参考图3,蓝牙耳机的数据接收方法10包括:
在步骤S102中,蓝牙耳机的主耳机将主耳机与音源设备之间的第一无线链路的连接参数信息,发送给蓝牙耳机的从耳机。
结合图2,主耳机12与音源设备11之间建立第一无线链路L1。为了使从耳机13可以通过监听第一无线链路L1来接收音源设备11发送的音频数据,主耳机12需要将第一无线链路L1的连接参数信息发送给从耳机13。连接参数信息例如可以包括:第一无线链路的连接信息(如音源设备11的蓝牙通信地址等)、跳频信息(如跳频序列、AFH频道地图表等)及加密信息(如密钥等)等信息。基于这些信息,从耳机13可以主动对第一无线链路进行监听,从而获取该第一无线链路上传输的数据。
例如,主耳机12可以通过与从耳机13之间的第二无线链路L2,将第一无线链路L1的连接参数信息发送给从耳机13。
在步骤S104中,主耳机通过第一无线链路接收音源设备发送的第一音频数据。
主耳机12通过第一无线链路接收音源设备发送的第一音频数据。
从耳机13通过监听第一无线链路来获取音源设备在第一无线链路上发送的第一音频数据。
在步骤S106中,主耳机检测是否在预设时间内接收到从耳机发送的反馈。
主耳机12还会检测是否接收到从耳机13发送的任何反馈,该任何反馈例如可包 括否定反馈信息,该否定反馈信息用于指示从耳机没有正确接收到第一音频数据。
例如,主耳机12还会利用与音源设备11通信的间隙,通过监听第二无线链路L2,检测是否接收到从耳机13发送的否定反馈信息。
在本公开实施例中,从耳机13仅在没有正确接收第一音频数据时,才向主耳机12发送否定反馈信息,以指示其没有正确接收第一音频数据。而不会在每次正确接收到一包音频数据后,向主耳机12发送肯定反馈信息(如上述的ACK)。也即,每次正确接收到音频数据后,从耳机13不向主耳机12发送任何反馈。
在蓝牙通信中,通信双方会设定各自的发射时隙与接收时隙,一方的发射时隙为另一方的接收时隙,从而确保双方可以正确通信。在一些实施例中,主耳机12在第二无线链路L2中的接收时隙检测在第二无线链路L2上是否有从耳机发送的数据,以检测是否接收到从耳机发送的反馈。
在步骤S108中,当主耳机正确接收到第一音频数据,并且在预设时间内没有接收到从耳机发送的任何反馈时,向音源设备发送肯定应答消息,以通知音源设备发送第二音频数据。
其中,主耳机12在自身正确接收了第一音频数据后,并且在预设时间内没有接收到从耳机发送的任何反馈时,才会向音源设备11发送ACK,以通知音源设备发送第二音频数据(下一包音频数据)。
进一步的,在预设时间内没有接收到所述从耳机发送的任何反馈包括:
在预设时间内没有接收到所述从耳机发送的上述否定反馈信息。
也就是说,在预设时间内没有接收到所述从耳机发送的否定反馈信息,可能是因为从耳机正确接收音频信号从而没有发送反馈,或者主从耳机之间的第二无线链路通信质量差导致无法接收到否定反馈信息的情况。该预设时间例如设置小于或等于上述主耳机12在第二无线链路L2中的接收时隙的时长。也即如果在该接收时隙之内,没有接收到从耳机13发送的反馈信息,即认为从耳机13已经正确地接收了第一音频数据。
在一些实施例中,蓝牙耳机的数据接收方法10还可以包括:
在步骤S110中,当主耳机没有正确接收到第一音频数据时,或者,当主耳机在预设时间内接收到了从耳机发送的否定反馈信息时,向音源设备发送否定应答消息,以通知音源设备重新发送第一音频数据。
如果主耳机12自身没有正确接收到第一音频数据,或者主耳机12在预设时间内接收到了从耳机13发送的否定反馈信息,则主耳机12向音源设备11发送否定应答消息,从而通知音源设备11重新发送第一音频数据。
也即,当所述主耳机没有正确接收到所述第一音频数据时,或者,当所述主耳机在所述预设时间内接收到从耳机发送的否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
根据本公开实施例提供的蓝牙耳机的数据接收方法,主耳机尝试接收从耳机发送的否定反馈信息,并在上述的预设时间内没有接收到该否定反馈信息时,认为从耳机正确接收了音源设备发送的音频数据。通过该方法,在主从耳机之间的无线通信环境较差时(如存在较为严重的干扰时),如果主耳机在预设时间内因为存在干扰而没有接收到从耳机发送的反馈信息,主耳机也会认为从耳机正确接收了音频数据,因此主耳机会继续请求音源设备发送下一包音频数据,保证了至少有一个耳机可以正常接收音频数据,从而避免了相关技术中由于音源设备不停的重传一包音频数据而导致的播放卡顿或停止的问题。
此外,从耳机仅在没有正确接收到音源设备发送的音频数据时,才会向主耳机发送否定反馈信息,通过该方法,在主从耳机之间的无线通信环境较佳时(如信号强度 比较强、干扰比较小时),还可以减小主从耳机之间的数据发送,减小从耳机的功率损耗。
此外,在一种可行的实施方式中,从耳机监听第一无线链路中的第一音频数据后,如果正确获取第一音频数据则向主耳机发送肯定反馈信息ACK,如果未正确获取第一音频数据则向主耳机发送否定反馈信息NACK。主耳机在自身正确接收到第一音频数据且收到从耳机发送的ACK时,向音源设备发送肯定应答,以使得音源设备发送第二音频数据;主耳机在自身未正确接收到第一音频数据,或者收到从耳机发送的NACK时,向音源设备发送否定应答,以使得音源设备重发第一音频数据;主耳机在自身正确接收到第一音频数据且在预设时间内未收到从耳机的任何反馈(包括未收到ACK,也未收到NACK)时,则向音源设备发送肯定应答,以使得音源设备发送第二音频数据;从而可以保障,因为头部遮挡等导致第二无线链路通信质量差时,仍能够保障主耳机的接收和播放。
在另一种可行的实施方式中,从耳机监听第一无线链路中的第一音频数据后,如果正确获取第一音频数据则向主耳机发送肯定反馈信息ACK,如果未正确获取第一音频数据则不向主耳机发送任何反馈信息。主耳机在自身正确接收到第一音频数据且收到从耳机发送的ACK时,向音源设备发送肯定应答,以使得音源设备发送第二音频数据;当主耳机自身正确接收到第一音频数据,且在预设时间内未收到从耳机发送的任何反馈信息(包括从耳机有发送ACK,但因第二无线链路通信质量差未收到的情况和从耳机没有发送任何反馈信息的情况)时,则向音源设备发送肯定应答,该实施方式,也可以保障主耳机的接收和播放。
图4示出本公开实施例中另一种蓝牙耳机的数据接收方法的流程图。本公开实施例提供的方法可以由TWS蓝牙耳机中的从耳机执行。
联合参考图2和图4,蓝牙耳机的数据接收方法20包括:
在步骤S202中,蓝牙耳机的从耳机接收蓝牙耳机的主耳机发送的、主耳机与音源设备之间的第一无线链路的连接参数信息。
如上述,从耳机13接收主耳机12发送的第一无线链路L1的连接参数信息,连接参数信息例如可以包括:第一无线链路的连接信息(如音源设备11的蓝牙通信地址等)、跳频信息(如跳频序列、AFH频道地图表等)及加密信息(如密钥等)等信息。
从耳机13例如通过上述的第二无线链路L2接收该连接参数信息。
在步骤S204中,基于连接参数信息,从耳机监听第一无线链路,以获取音源设备发送的第一音频数据。
基于如上述的连接参数信息,从耳机13可以监听第一无线链路L1,检测其中是否有音源设备11发送的第一音频数据。
在步骤S206中,当从耳机没有正确获取到第一音频数据时,向主耳机发送否定反馈信息。
该否定反馈信息用于指示从耳机没有正确获取到第一音频数据。
从耳机13在接收到第一音频数据后,确定是否正确获取了该第一音频数据,例如通过校验的方式确定获取到的第一音频数据是否正确。
如果正确获取了第一音频数据,从耳机13不向主耳机12发送肯定确认(也即不发送任何反馈)。而是仅在没有正确获取时,从耳机13才向主耳机12发送否定反馈信息,以指示其没有正确接收该第一音频数据。
从耳机13例如可以通过上述的第二无线链路L2发送反馈。
根据本公开实施例提供的蓝牙耳机的数据接收方法,从耳机仅在没有正确获取到 音源设备发送的音频数据时,才会向主耳机发送否定反馈信息。通过该方法,在主从耳机之间的无线通信环境较差时(如存在较为严重的干扰时),如果主耳机在预设时间内因为存在干扰而没有接收到从耳机发送的反馈信息,主耳机也会认为从耳机正确接收了音频数据,因此主耳机会继续请求音源设备发送下一包音频数据,保证了至少有一个耳机可以正常接收音频数据,从而避免了相关技术中由于音源设备不停的重传一包音频数据而导致的播放卡顿或停止的问题。
此外,通过该方法,在主从耳机之间的无线通信环境较佳时(如信号强度比较强、干扰比较小时),还可以减小主从耳机之间的数据发送,减小从耳机的功率损耗。
图5示出本公开实施例中再一种蓝牙耳机的数据接收方法的流程图。
联合参考图2和图5,蓝牙耳机的数据接收方法50包括:
在步骤S502中,蓝牙耳机的主耳机将主耳机与音源设备之间的第一无线链路的连接参数信息,发送给蓝牙耳机的从耳机。
在步骤S504中,主耳机通过第一无线链路接收音源设备发送的第一音频数据。
在步骤S506中,从耳机基于连接参数信息,监听第一无线链路,以获取第一音频数据。
在步骤S508中,当主耳机正确接收到第一音频数据,并且在预设时间内没有接收到从耳机发送的任何反馈时,向音源设备发送肯定应答消息,以通知音源设备发送第二音频数据。
在一些实施例中,任何反馈例如可以包括:用于表示所述从耳机没有正确接收到所述第一音频数据的否定反馈信息。方法50在步骤S508之前,如还可以包括:当从耳机没有正确获取到第一音频数据时,向主耳机发送否定反馈信息;及当从耳机正确获取到所述第一音频数据时,不向主耳机发送表示从耳机正确接收到第一音频数据的肯定反馈信息。
在一些实施例中,方法50还可以包括:在步骤S510中,当主耳机没有正确接收到第一音频数据时,或者,当主耳机在所述预设时间内接收到所述从耳机发送的否定反馈信息时,向音源设备发送否定应答消息,以通知音源设备重新发送第一音频数据。
根据本公开实施例提供的蓝牙耳机的数据接收方法。主耳机在上述的预设时间内没有接收到从耳机的任何反馈(包括否定反馈信息)时,认为从耳机正确接收了音源设备发送的音频数据。通过该方法,在主从耳机之间的无线通信环境较差时(如存在较为严重的干扰时),如果主耳机在预设时间内因为存在干扰而没有接收到从耳机发送的反馈信息,主耳机也会认为从耳机正确接收了音频数据,因此主耳机会继续请求音源设备发送下一包音频数据,保证了至少有一个耳机可以正常接收音频数据,从而避免了相关技术中由于音源设备不停的重传一包音频数据而导致的播放卡顿或停止的问题。
此外,进一步的,从耳机仅在没有正确接收到音源设备发送的音频数据时,才会向主耳机发送否定反馈信息,通过该方法,在主从耳机之间的无线通信环境较佳时(如信号强度比较强、干扰比较小时),还可以减小主从耳机之间的数据发送,减小从耳机的功率损耗。
图6示出本公开实施例中再一种蓝牙耳机的数据接收方法的流程图。
联合参考图2和图6,蓝牙耳机的数据接收方法30包括:
在步骤S311中,音源设备11与主耳机12建立第一无线链路L1。
在步骤S312中,主耳机12与从耳机13建立第二无线链路L2。
在步骤S313中,主耳机12将第一无线链路L1的连接参数信息发送给从耳机13。
在步骤S314中,音源设备11向主耳机12发送第一音频数据。
在步骤S315中,从耳机13通过监听该第一无线链路L1,来检测是否接收到第一音频数据。
在步骤S316中,主耳机12判断自身是否正确接收到了第一音频数据。如果正确接收,则进入步骤S317;否则,进入步骤S320。
在步骤S317中,主耳机12向音源设备11发送否定应答消息NACK,以通知音源设备11重发第一音频数据。
在步骤S318中,从耳机13判断自身是否正确接收到了第一音频数据。如果正确接收,进入步骤S326;否则,进入步骤S319。
在步骤S319中,从耳机13向主耳机12发送否定反馈信息,指示其没有正确接收第一音频数据。
在步骤S320中,主耳机12判断是否接收到从耳机13发送的否定反馈信息。如果接收了,进入步骤S321;否则,进入步骤S322。
在步骤S321中,主耳机12向音源设备11发送否定应答消息NACK,以通知音源设备11重发第一音频数据。
在步骤S322中,主耳机12判断是否到达预设时间。如果到达,则进入步骤S323;否则,返回步骤S320。
在步骤S323中,主耳机12向音源设备11发送肯定应答消息,以通知音源设备11发送第二音频数据。
在步骤S324中,音源设备11判断是否接收到肯定应答消息。如果接收到,则进入步骤S325;否则,返回步骤S314,重新发送第一音频数据。
在步骤S325中,音源设备11基于第一无线链路L1发送第二音频数据。
在步骤S326中,从耳机13通过监听该第一无线链路L1,来检测是否接收到第二音频数据。
需要注意的是,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。
图7示出本公开实施例中一种蓝牙耳机的数据收发装置的框图。该装置可以应用于TWS蓝牙耳机中的主耳机中。
参考图7,蓝牙耳机的数据收发装置40包括:参数发送模块402、数据接收模块404、数据监听模块406及应答反馈模块408。
其中,参数发送模块402用于蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机。
数据接收模块404用于所述主耳机通过所述第一无线链路接收所述音源设备发送的第一音频数据。
链路监听模块406用于所述从耳机基于所述连接参数信息,监听所述第一无线链路,以获取所述第一音频数据。
应答反馈模块410用于当所述主耳机正确接收到所述第一音频数据,并且在预设时间内没有接收到所述从耳机的任何反馈时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
在一些实施例中,所述任何反馈包括:用于表示所述从耳机没有正确接收到所述 第一音频数据的否定反馈信息。进一步的,蓝牙耳机的数据收发装置40还包括:数据确定模块408,用于当所述从耳机正确获取到所述第一音频数据时,不向所述主耳机发送表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息;及当所述从耳机没有正确获取到所述第一音频数据时,向所述主耳机发送所述否定反馈信息。
在一些实施例中,数据确定模块408还用于当所述从耳机没有正确获取到所述第一音频数据时,不向所述主耳机发送任何反馈信息。
在一些实施例中,所述任何反馈包括:用于表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息;数据确定模块408还用于当所述从耳机正确获取到所述第一音频数据时,向所述主耳机发送所述肯定反馈信息。
在一些实施例中,应答反馈模块410还用于当所述主耳机没有正确接收到所述第一音频数据时,或者,当所述主耳机在所述预设时间内接收到所述否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
在一些实施例中,应答反馈模块410还用于当所述主耳机在所述预设时间内接收到所述否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
在一些实施例中,应答反馈模块410还用于当所述主耳机正确接收到所述第一音频数据,并且接收到所述从耳机发送的所述肯定反馈信息时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
在一些实施例中,蓝牙耳机的数据接收装置40还包括:第一连接建立模块及第二连接建立模块。第一连接建立模块用于主耳机与音源设备建立第一连接形成第一无线链路。第二连接建立模块用于主耳机与从耳机建立第二连接形成第二无线链路。参数发送模块402用于主耳机通过第二无线链路,将第一无线链路的连接参数信息发送给从耳机。
在一些实施例中,蓝牙耳机的数据接收装置40还包括:反馈接收模块,用于主耳机检测是否通过第二无线链路接收到从耳机发送的反馈。
在一些实施例中,预设时间小于或等于第二无线链路的接收时隙的时长。
根据本公开实施例提供的蓝牙耳机的数据接收装置,主耳机尝试接收从耳机发送的任何反馈(包括上述的否定反馈信息),并在上述的预设时间内没有接收到该任何反馈时,认为从耳机正确接收了音源设备发送的音频数据。通过该方法,在主从耳机之间的无线通信环境较差时(如存在较为严重的干扰时),如果主耳机在预设时间内因为存在干扰而没有接收到从耳机发送的反馈信息,主耳机也会认为从耳机正确接收了音频数据,因此主耳机会继续请求音源设备发送下一包音频数据,保证了至少有一个耳机可以正常接收音频数据,从而避免了相关技术中由于音源设备不停的重传一包音频数据而导致的播放卡顿或停止的问题。
此外,从耳机仅在没有正确接收到音源设备发送的音频数据时,才会向主耳机发送否定反馈信息。通过该方法,在主从耳机之间的无线通信环境较佳时(如信号强度比较强、干扰比较小时),还可以减小主从耳机之间的数据发送,减小从耳机的功率损耗。
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。
下面参照图8来描述根据本公开的这种实施方式的蓝牙耳机800。图8显示的蓝牙耳机800仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图8所示,电子设备800的组件可以包括但不限于:上述至少一个处理单元810、上述至少一个存储单元820、连接不同系统组件(包括存储单元820和处理单元810)的总线830。
其中,所述存储单元820存储有程序代码,所述程序代码可以被所述处理单元810执行,使得所述处理单元810执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元810可以执行如图3中所示的S102,蓝牙耳机的主耳机将主耳机与音源设备之间的第一无线链路的连接参数信息,发送给蓝牙耳机的从耳机;S104,主耳机监听第一无线链路,以接收音源设备发送的第一音频数据;S106,主耳机检测是否接收到从耳机发送的反馈信息;S108,当主耳机正确接收到第一音频数据,并且在预设时间内没有接收到从耳机的任何反馈时,向音源设备发送肯定应答消息,以通知音源设备发送第二音频数据。
或者,处理单元810还可以执行如图4中所示的S202,蓝牙耳机的从耳机接收蓝牙耳机的主耳机发送的、主耳机与音源设备之间的第一无线链路的连接参数信息;S204,基于连接参数信息,从耳机监听第一无线链路,以接收音源设备发送的第一音频数据;S206,当从耳机没有正确接收第一音频数据时,向主耳机发送否定反馈信息,否定反馈信息用于指示从耳机没有正确接收到第一音频数据。
存储单元820可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)8201和/或高速缓存存储单元8202,还可以进一步包括只读存储单元(ROM)8203。
存储单元820还可以包括具有一组(至少一个)程序模块8205的程序/实用工具8204,这样的程序模块8205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。
参考图9所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品900,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、 或者上述的任意合适的组合。
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。

Claims (22)

  1. 一种蓝牙耳机的数据接收方法,其特征在于,包括:
    蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机;
    所述主耳机通过所述第一无线链路接收所述音源设备发送的第一音频数据;
    所述从耳机基于所述连接参数信息,监听所述第一无线链路,以获取所述第一音频数据;
    当所述主耳机正确接收到所述第一音频数据,并且在预设时间内没有接收到所述从耳机发送的任何反馈时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
  2. 根据权利要求1所述的方法,其特征在于,所述任何反馈包括:用于表示所述从耳机没有正确接收到所述第一音频数据的否定反馈信息;所述方法还包括:
    当所述从耳机没有正确获取到所述第一音频数据时,向所述主耳机发送所述否定反馈信息。
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:
    当所述从耳机正确获取到所述第一音频数据时,不向所述主耳机发送表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息。
  4. 根据权利要求1所述的方法,其特征在于,还包括:
    当所述从耳机没有正确获取到所述第一音频数据时,不向所述主耳机发送任何反馈信息。
  5. 根据权利要求1或2或4所述的方法,其特征在于,所述任何反馈包括:用于表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息;所述方法还包括:
    当所述从耳机正确获取到所述第一音频数据时,向所述主耳机发送所述肯定反馈信息。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,还包括:
    当所述主耳机没有正确接收到所述第一音频数据时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
  7. 根据权利要求2所述的方法,其特征在于,还包括:
    当所述主耳机在所述预设时间内接收到所述从耳机发送的所述否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
  8. 根据权利要求5所述的方法,其特征在于,还包括:
    当所述主耳机正确接收到所述第一音频数据,并且接收到所述从耳机发送的所述肯定反馈信息时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,在蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机之前,所述方法还包括:所述主耳机与所述音源设备建立第一无线连接形成所述第一无线链路;及所述主耳机与所述从耳机建立第二无线连接形成第二无线链路。
  10. 根据权利要求9所述的方法,其特征在于,所述蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机,包括:所述主耳机通过所述第二无线链路,将所述第一无线链路的连接参数信息发送给所述从耳机。
  11. 根据权利要求9或10所述的方法,其特征在于,还包括:
    所述主耳机检测是否通过所述第二无线链路接收到所述从耳机发送的反馈。
  12. 根据权利要求9或10所述的方法,其特征在于,所述预设时间小于或等于第二无线链路的接收时隙的时长。
  13. 一种蓝牙耳机的数据接收装置,其特征在于,包括:
    参数发送模块,用于蓝牙耳机的主耳机将所述主耳机与音源设备之间的第一无线链路的连接参数信息,发送给所述蓝牙耳机的从耳机;
    数据接收模块,用于所述主耳机通过所述第一无线链路接收所述音源设备发送的第一音频数据;
    链路监听模块,用于所述从耳机基于所述连接参数信息,监听所述第一无线链路,以获取所述第一音频数据;以及
    应答反馈模块,用于当所述主耳机正确接收到所述第一音频数据,并且在预设时间内没有接收到所述从耳机发送的任何反馈时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
  14. 根据权利要求13所述的装置,其特征在于,所述任何反馈包括:用于表示所述从耳机没有正确接收到所述第一音频数据的否定反馈信息;所述装置还包括:
    数据确定模块,用于当所述从耳机没有正确获取到所述第一音频数据时,向所述主耳机发送所述否定反馈信息。
  15. 根据权利要求13或14所述的装置,其特征在于,所述数据确定模块还用于当所述从耳机正确获取到所述第一音频数据时,不向所述主耳机发送表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息。
  16. 根据权利要求13所述的装置,其特征在于,所述数据确定模块还用于当所述从耳机没有正确获取到所述第一音频数据时,不向所述主耳机发送任何反馈信息。
  17. 根据权利要求13或14或16所述的装置,其特征在于,所述任何反馈包括:用于表示所述从耳机正确接收到所述第一音频数据的肯定反馈信息;所述数据确定模块还用于当所述从耳机正确获取到所述第一音频数据时,向所述主耳机发送所述肯定反馈信息。
  18. 根据权利要求13-17任一项所述的装置,其特征在于,所述应答反馈模块还用于当所述主耳机没有正确接收到所述第一音频数据时向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
  19. 根据权利要求14所述的装置,其特征在于,所述应答反馈模块还用于当所述主耳机在所述预设时间内接收到所述否定反馈信息时,向所述音源设备发送否定应答消息,以通知所述音源设备重新发送所述第一音频数据。
  20. 根据权利要求17所述的装置,其特征在于,所述应答反馈模块还用于当所述主耳机正确接收到所述第一音频数据,并且接收到所述从耳机发送的所述肯定反馈信息时,向所述音源设备发送肯定应答消息,以通知所述音源设备发送第二音频数据。
  21. 一种蓝牙耳机,其特征在于,包括:
    处理器;以及
    存储器,用于存储所述处理器的可执行指令;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-7任一项所述的方法。
  22. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-12任一项所述的方法。
PCT/CN2020/136968 2019-12-16 2020-12-16 蓝牙耳机的数据接收方法、装置、设备及存储介质 WO2021121289A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20903610.2A EP4075701A4 (en) 2019-12-16 2020-12-16 DATA RECEIVING METHOD AND DEVICE FOR BLUETOOTH HEADPHONES, DEVICE AND STORAGE MEDIA
US17/841,303 US20220312167A1 (en) 2019-12-16 2022-06-15 Data receiving method for bluetooth earbuds, bluetooth earbuds, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911295940.7A CN112994854A (zh) 2019-12-16 2019-12-16 蓝牙耳机的数据接收方法、装置、设备及存储介质
CN201911295940.7 2019-12-16

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/841,303 Continuation US20220312167A1 (en) 2019-12-16 2022-06-15 Data receiving method for bluetooth earbuds, bluetooth earbuds, and storage medium

Publications (1)

Publication Number Publication Date
WO2021121289A1 true WO2021121289A1 (zh) 2021-06-24

Family

ID=76343414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/136968 WO2021121289A1 (zh) 2019-12-16 2020-12-16 蓝牙耳机的数据接收方法、装置、设备及存储介质

Country Status (4)

Country Link
US (1) US20220312167A1 (zh)
EP (1) EP4075701A4 (zh)
CN (1) CN112994854A (zh)
WO (1) WO2021121289A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079537A (zh) * 2021-07-22 2022-02-22 珠海市杰理科技股份有限公司 音频丢包数据接收方法、装置、音频播放设备及系统
US11589151B1 (en) 2021-09-24 2023-02-21 Shanghai Wuqi Microelectronics Co., Ltd. Audio data communication method and wireless audio system
EP4175368A1 (en) * 2021-10-29 2023-05-03 Shanghai WuQi Micro Limited Wireless data transmission system and method
WO2023082983A1 (zh) * 2021-11-12 2023-05-19 上海物骐微电子有限公司 一种无线音频监听方法及无线音频系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143659A (zh) * 2021-12-30 2022-03-04 深圳市中科蓝讯科技股份有限公司 耳机数据发送方法、终端设备、主耳机、从耳机及系统
CN114666777B (zh) * 2022-05-26 2022-07-29 成都市安比科技有限公司 一种蓝牙音频系统的带宽提升方法
CN115002940B (zh) * 2022-08-02 2022-12-27 荣耀终端有限公司 蓝牙通信方法、装置及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429949A (zh) * 2018-03-21 2018-08-21 恒玄科技(上海)有限公司 一种适于蓝牙耳机的蓝牙音频混合通信方法
CN109561419A (zh) * 2019-02-19 2019-04-02 恒玄科技(上海)有限公司 高可靠性的双耳无线耳机及用于双耳无线耳机的通信方法
CN109768806A (zh) * 2017-11-09 2019-05-17 原相科技股份有限公司 无线蓝牙装置、控制器以及使用于控制器的方法
WO2019129748A1 (en) * 2017-12-28 2019-07-04 Dopple Ip B.V. Wireless stereo headset with diversity
CN110234100A (zh) * 2019-06-28 2019-09-13 重庆物奇科技有限公司 一种无线数据传输方法、设备及系统
CN110234101A (zh) * 2019-06-28 2019-09-13 重庆物奇科技有限公司 一种可靠传输数据的无线传输方法、设备及系统
US20190387319A1 (en) * 2017-10-18 2019-12-19 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660971B (zh) * 2018-12-05 2021-11-23 恒玄科技(上海)股份有限公司 无线耳机及用于无线耳机的通信方法
US10412481B1 (en) * 2019-01-30 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones
CN110519742B (zh) * 2019-09-16 2022-02-18 安徽华米信息科技有限公司 一种音频同步播放方法、装置及tws蓝牙耳机

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190387319A1 (en) * 2017-10-18 2019-12-19 Bestechnic (Shanghai) Co., Ltd. Operation mode switch of wireless headphones
CN109768806A (zh) * 2017-11-09 2019-05-17 原相科技股份有限公司 无线蓝牙装置、控制器以及使用于控制器的方法
WO2019129748A1 (en) * 2017-12-28 2019-07-04 Dopple Ip B.V. Wireless stereo headset with diversity
CN108429949A (zh) * 2018-03-21 2018-08-21 恒玄科技(上海)有限公司 一种适于蓝牙耳机的蓝牙音频混合通信方法
CN109561419A (zh) * 2019-02-19 2019-04-02 恒玄科技(上海)有限公司 高可靠性的双耳无线耳机及用于双耳无线耳机的通信方法
CN110234100A (zh) * 2019-06-28 2019-09-13 重庆物奇科技有限公司 一种无线数据传输方法、设备及系统
CN110234101A (zh) * 2019-06-28 2019-09-13 重庆物奇科技有限公司 一种可靠传输数据的无线传输方法、设备及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4075701A4 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079537A (zh) * 2021-07-22 2022-02-22 珠海市杰理科技股份有限公司 音频丢包数据接收方法、装置、音频播放设备及系统
CN114079537B (zh) * 2021-07-22 2023-09-12 珠海市杰理科技股份有限公司 音频丢包数据接收方法、装置、音频播放设备及系统
US11589151B1 (en) 2021-09-24 2023-02-21 Shanghai Wuqi Microelectronics Co., Ltd. Audio data communication method and wireless audio system
EP4156577A1 (en) * 2021-09-24 2023-03-29 Shanghai WuQi Micro Limited Audio data communication method and wireless audio system
EP4175368A1 (en) * 2021-10-29 2023-05-03 Shanghai WuQi Micro Limited Wireless data transmission system and method
JP7288734B2 (ja) 2021-10-29 2023-06-08 上海物騏微電子有限公司 無線データ伝送システム及び方法
WO2023082983A1 (zh) * 2021-11-12 2023-05-19 上海物骐微电子有限公司 一种无线音频监听方法及无线音频系统

Also Published As

Publication number Publication date
EP4075701A1 (en) 2022-10-19
EP4075701A4 (en) 2023-01-18
US20220312167A1 (en) 2022-09-29
CN112994854A (zh) 2021-06-18

Similar Documents

Publication Publication Date Title
WO2021121289A1 (zh) 蓝牙耳机的数据接收方法、装置、设备及存储介质
US11451906B2 (en) Operation mode switch of wireless headphones
WO2019196829A1 (zh) 旁链路的操作方法和终端
WO2019196690A1 (zh) 旁链路的传输方法和终端
CN111435844B (zh) 双无线蓝牙通信音频数据更正方法、装置、设备及系统
WO2019232901A1 (zh) 一种语音数据的传输方法、无线耳机及tws耳机
WO2022021607A1 (zh) 音频数据的传输方法、系统、tws耳机对、芯片及介质
CN111436043B (zh) 双无线蓝牙通信网络的通信方法、装置、设备及系统
CN110650408B (zh) 一种耳机及防丢方法、系统、计算机可读存储介质
KR20200106742A (ko) 블루투스 네트워크 환경에서 응답 메시지를 전송하기 위한 전자 장치 및 그에 관한 방법
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
EP3923608B1 (en) Data transmission method between tws bluetooth devices and tws bluetooth device therefor
KR20210020541A (ko) 블루투스 네트워크 환경에서 데이터를 재전송하기 위한 전자 장치 및 그에 관한 방법
KR20200110086A (ko) 무선 통신 링크의 설정 방법 및 이를 지원하는 전자 장치
US10880045B2 (en) Retransmission and new packet detection in wireless systems
WO2020048256A1 (zh) 确定方法、终端设备及网络设备
CN111479184A (zh) 真无线耳机、终端设备以及真无线耳机的连接方法
CN110830973B (zh) 一种利用无线耳机传输音频信息的方法
CN112335328B (zh) 传输音频数据的方法、系统及无线音频系统
KR102333306B1 (ko) 데이터 통신 방법 및 시스템, 전자 디바이스, 칩 및 저장 매체
CN110166988B (zh) 一种无线通信系统及其方法
CN110234101A (zh) 一种可靠传输数据的无线传输方法、设备及系统
WO2023061127A1 (zh) 通信方法、装置、耳机组及计算机可读介质
CN115694742A (zh) 在无线通信系统中发送确认信号的方法和电子设备
EP3820127A1 (en) Microphone hole blockage detecting method and related product

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020903610

Country of ref document: EP

Effective date: 20220715