WO2023000566A1 - 蓝牙丢包数据收发方法、电路、音频播放设备及系统 - Google Patents

蓝牙丢包数据收发方法、电路、音频播放设备及系统 Download PDF

Info

Publication number
WO2023000566A1
WO2023000566A1 PCT/CN2021/132495 CN2021132495W WO2023000566A1 WO 2023000566 A1 WO2023000566 A1 WO 2023000566A1 CN 2021132495 W CN2021132495 W CN 2021132495W WO 2023000566 A1 WO2023000566 A1 WO 2023000566A1
Authority
WO
WIPO (PCT)
Prior art keywords
header information
information
link
playback device
audio
Prior art date
Application number
PCT/CN2021/132495
Other languages
English (en)
French (fr)
Inventor
朱嘉俊
黄海涛
张启明
胡向军
罗广君
黄紫明
余鑫
Original Assignee
珠海市杰理科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 珠海市杰理科技股份有限公司 filed Critical 珠海市杰理科技股份有限公司
Publication of WO2023000566A1 publication Critical patent/WO2023000566A1/zh
Priority to US18/506,203 priority Critical patent/US20240080134A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/02Arrangements for detecting or preventing errors in the information received by diversity reception
    • H04L1/06Arrangements for detecting or preventing errors in the information received by diversity reception using space diversity
    • 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

Definitions

  • the present application relates to the technical field of audio communication, and in particular to a method, circuit, audio playback device and system for transmitting and receiving Bluetooth packet loss data.
  • TWS True Wireless Stereo
  • the other party When one party of TWS fails to receive the audio data packet sent by the mobile phone, the other party successfully receives the audio data packet sent by the mobile phone.
  • the successful party becomes the forwarding party in the subsequent time slots, and the unsuccessful party becomes the forwarded party in the subsequent time slots, receiving the audio data forwarded by the forwarding party, so as to correct the audio data packets that failed to receive .
  • the party as the main earphone will return a non-confirmation packet to the mobile phone, requesting the mobile phone to resend in the next time slot, and the lost audio data packet
  • One party will re-receive the audio data packet resent by the mobile phone in the next time slot for error correction.
  • FIG. 1 is a schematic diagram of a communication structure example of a dual wireless network in the prior art.
  • the left earphone and the right earphone in the dual wireless network are located at different positions in space, the left and right earphones are held by the user's head. Partition, and there may be other obstacles (such as human body, etc.) between the mobile phone and the left and right earphones. Therefore, no matter using the forwarding method of one earphone or the retransmission method of the mobile phone to correct the error, neither can overcome the serious threat of deep fading caused by the human body to the stability of TWS in the wireless environment.
  • the main purpose of the present invention is to provide a method for transmitting and receiving Bluetooth packet loss data, a circuit, an audio playback device and a system, so as to improve the data receiving method and improve the accuracy of data correction under the premise of deep fading signals caused by the human body. error rate.
  • the embodiment of the present invention discloses a method for sending Bluetooth packet loss data, which is applied to a first audio playback device, wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback
  • the device and the second audio playback device can respectively receive audio data from the audio source device, and the method includes:
  • Step S100 receiving the forwarding request sent by the second audio playback device in the receiving state, wherein the forwarding request indicates that the second audio playback device has not successfully received the current audio data sent by the audio source device;
  • Step S200 listen to the retransmission information of the audio source device on the link one to resend the current audio data packet, wherein the link one is the link through which the audio source device sends audio data;
  • Step S300 judging whether retransmission information is intercepted; if retransmission information is intercepted, step S400 and step S500 are executed sequentially;
  • Step S400 switch the receiving state to the sending state
  • Step S500 forward the current audio data to the second audio playback device through Link 2 according to the timing of the audio source device retransmitting the current audio data, wherein Link 2 is an interactive link between the first audio playback device and the second audio playback device road.
  • step S500 the same preset frequency band as that of the audio source device is used to forward the current audio data.
  • step S300 includes:
  • Step S310 extracting the first header information stored locally, where the first header information is the header information of the audio source device;
  • Step S320 extracting information from the signal sensed on link 1 to obtain second packet header information
  • Step S330 performing a correlation operation on the first packet header information and the second packet header information to obtain a correlation result
  • Step S340 judging whether the correlation result is greater than a preset value, and if the correlation result is greater than the preset value, it is determined that retransmission information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing; the first header information is the front section, and the second header information is data information corresponding to the length of the front section.
  • step S500 the subsequent part and the current audio data are sequentially forwarded immediately after switching to the sending state, so as to keep in sync with the time sequence of retransmitting the latter part and the current audio data by the audio source device.
  • the embodiment of the present invention discloses a Bluetooth packet loss data receiving method, which is applied to the second audio playback device, wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback
  • the device and the second audio playback device can respectively receive audio data from the audio source device, and the method includes:
  • Step R100 when the second audio playback device fails to receive the current audio data sent by the audio source device, prompting the first audio playback device and the audio source device that the second audio playback device has not successfully received the current audio data;
  • Step R200 listen to the retransmission information of the audio source device retransmitting the current audio data packet on the link one, and the link one is the link for the audio source device to send audio data;
  • Step R300 listen to the forwarding information of the current audio data forwarded by the first audio playback device on link 2, link 2 is an interactive link between the first audio playback device and the second audio playback device;
  • Step R400 judging whether retransmission information is intercepted to obtain a retransmission judgment result
  • Step R500 judging whether the forwarding information is intercepted to obtain a forwarding judgment result
  • Step R600 according to the retransmission judgment result and the forwarding judgment result, select link 1 and/or link 2 as the target link to receive the current audio data, so as to correct the error of the currently lost data.
  • step R400 includes:
  • Step R410 extracting the first header information stored locally, the first header information is the header information of the audio source device;
  • Step R420 extracting information from the signal sensed on link 1 to obtain the second packet header information
  • Step R430 performing a correlation operation on the first packet header information and the second packet header information to obtain a retransmission correlation result
  • Step R440 judging whether the retransmission correlation result is greater than the preset value, and if the retransmission correlation result is greater than the preset value, determine that the retransmission information is detected.
  • the header information of the sound source device includes a front section and a back section, and the latter section lags behind the front section in timing; the first header information is the front section, and the second header information is data information corresponding to the length of the front section.
  • the first header information is complete header information of the audio source device
  • the second header information is at least a part of the complete header information
  • step R500 includes:
  • Step R510 extracting the third header information stored locally, the third header information is the header information of the audio source device;
  • Step R520 extracting information from the signal sensed on link 2 to obtain fourth packet header information
  • Step R530 performing a correlation operation on the third packet header information and the fourth packet header information to obtain a forwarding correlation result
  • Step R540 judging whether the forwarding correlation result is greater than a preset value, and if the forwarding correlation result is greater than the preset value, it is determined that the forwarding information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing; the third header information is the back section, and the fourth header information is data corresponding to the length of the back section information.
  • step R600 includes:
  • link one is selected as the target link to receive the current audio data
  • link 2 is selected as the target link to receive the current audio data
  • link 1 and link 2 are selected as target links to receive the current audio data.
  • the current audio data is received on the target link through the same preset frequency band.
  • the embodiment of the present invention discloses a Bluetooth packet loss data sending device, which is applied to the first audio playback device, wherein the first audio playback device and the second audio playback device constitute an audio playback device pair, and the first audio playback device
  • the device and the second audio playback device can respectively receive audio data from the audio source device, and the device includes:
  • the request receiving module is used to receive the forwarding request sent by the second audio playback device in the receiving state, wherein the forwarding request indicates that the second audio playback device has not successfully received the current audio data sent by the audio source device;
  • the retransmission listening module is used to listen to the retransmission information of the audio source device at link one to resend the current audio data packet according to the forwarding request, wherein link one is the link through which the audio source device sends audio data;
  • the retransmission judging module is used to judge whether the retransmission information is detected; if the retransmission information is detected, the state switching module and the forwarding module are sequentially operated;
  • a state switching module is used to switch the receiving state to the sending state
  • the forwarding module is used to forward the current audio data to the second audio playback device through the link 2 according to the timing of the audio source device retransmitting the current audio data, wherein the link 2 is between the first audio playback device and the second audio playback device Interactive link.
  • the forwarding module is used to forward the current audio data in the same preset frequency band as that of the audio source device.
  • the retransmission judgment module includes:
  • the first extracting unit is used to extract the first packet header information stored locally, the first packet header information is the packet header information of the audio source device;
  • the second extraction unit is used to extract the information of the signal sensed on the link 1 to obtain the second packet header information
  • a correlation operation unit configured to perform correlation operations on the first packet header information and the second packet header information to obtain a correlation result
  • the preset value judging unit is used for judging whether the correlation result is greater than the preset value, and if the correlation result is greater than the preset value, it is determined that the retransmission information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the latter section lags behind the front section in timing; the first header information is the front section, and the second header information is data information corresponding to the length of the front section.
  • the forwarding module is configured to sequentially forward the subsequent part and the current audio data immediately after switching to the sending state, so as to keep synchronization with the timing of retransmitting the latter part and the current audio data by the audio source device.
  • the embodiment of the present invention discloses a Bluetooth packet loss data receiving device, which is applied to the second audio playback device, wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback device
  • the device and the second audio playback device can respectively receive audio data from the audio source device, and the device includes:
  • Prompt module for when the second audio playback device does not successfully receive the current audio data sent by the sound source device, prompt the second audio playback device to the first audio playback device and the sound source device that the second audio playback device does not successfully receive the current audio data;
  • the first listening module is used to listen to the retransmission information of the audio source device retransmitting the current audio data packet at the link one, and the link one is a link for the audio source device to send audio data;
  • the second listening module is used to listen to the forwarding information of the first audio playback device forwarding the current audio data at the link two, and the link two is an interactive link between the first audio playback device and the second audio playback device;
  • the first judging module is used to judge whether the retransmission information is intercepted to obtain the retransmission judgment result
  • the second judging module is used to judge whether the forwarding information is intercepted to obtain the forwarding judgment result
  • the data receiving module is used to select Link 1 and/or Link 2 as the target link to receive the current audio data according to the retransmission judgment result and the forwarding judgment result, so as to correct the current packet loss data.
  • the first judging module includes:
  • the first extracting unit is used to extract the first packet header information stored locally, the first packet header information is the packet header information of the audio source device;
  • the second extraction unit is used to extract the information of the signal sensed on the link 1 to obtain the second packet header information
  • a retransmission correlation operation unit configured to perform correlation operations on the first packet header information and the second packet header information to obtain a retransmission correlation result
  • the first judging unit is configured to judge whether the retransmission correlation result is greater than a preset value, and if the retransmission correlation result is greater than the preset value, determine that the retransmission information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the latter section lags behind the front section in timing; the first header information is the front section, and the second header information is data information corresponding to the length of the front section.
  • the first header information is complete header information of the audio source device
  • the second header information is at least a part of the complete header information
  • the second judging module includes:
  • the third extraction unit is used to extract the third packet header information stored locally, the third packet header information is the packet header information of the audio source device;
  • the fourth extraction unit is used to extract the information of the signal sensed on the second link to obtain the fourth packet header information
  • a forwarding correlation calculation unit configured to perform correlation calculations on the third packet header information and the fourth packet header information to obtain a forwarding correlation result
  • the second judging unit is configured to judge whether the forwarding correlation result is greater than a preset value, and if the forwarding correlation result is greater than the preset value, determine that the forwarding information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing; the third header information is the back section, and the fourth header information is data corresponding to the length of the back section information.
  • the data receiving mold body is used to:
  • link one is selected as the target link to receive the current audio data
  • link 2 is selected as the target link to receive the current audio data
  • link 1 and link 2 are selected as target links to receive the current audio data.
  • the current audio data is received on the target link through the same preset frequency band.
  • the embodiment of the present invention discloses a bluetooth communication sending circuit, which is applied to a first audio playback device, wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback device and the second audio playback device
  • the second audio playback device can receive audio data from the audio source device respectively
  • the bluetooth communication sending circuit includes:
  • the information computing module stores the first packet header information locally, and the first packet header information is the packet header information of the audio source device;
  • RF receiving device its input end is used to be connected to bluetooth antenna, and the output end of RF receiving device is connected to information computing module;
  • RF receiving device is used for listening to the retransmission information of audio source equipment retransmission audio data packet through bluetooth antenna to obtain the second Packet header information, the second packet header information is the packet header information of the signal received by the RF receiving device;
  • the transmitting module is connected to the information computing module, and the transmitting module is used to forward the current audio data to the second audio playback device according to the timing of the audio source device retransmitting the current audio data based on the forwarding drive signal output by the information computing module;
  • the information calculation module is used to perform correlation calculation on the first packet header information and the second packet header information to obtain a correlation result, and output a forwarding driving signal to the transmitting module when the correlation result is greater than a preset value.
  • the transmitting module uses the same preset frequency band as that of the audio source device to forward the current audio data.
  • the information operation module includes:
  • the first buffer stores the first packet header information
  • the second buffer is connected to the output end of the RF receiving device; the second buffer is used for buffering the second packet header information;
  • Correlation unit its input terminal is respectively connected to the output terminal of the first buffer and the output terminal of the second buffer, the output terminal of the correlation unit is connected to the transmission module;
  • the correlation unit is used for the first packet header information and the second
  • the packet header information is subjected to a correlation operation to obtain a correlation result, and when the correlation result is greater than a preset value, a forwarding driving signal is output to the transmitting module.
  • Switch one end of which is used to connect to the Bluetooth antenna, and the other end can be optionally connected to the RF receiving device or the transmitting module;
  • the RF receiving device listens to the retransmission information through the Bluetooth antenna
  • the transmitting module forwards the current audio data through the Bluetooth antenna.
  • the packet header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing;
  • the first buffer stores the front part
  • the second buffer is used for buffering the data information corresponding to the length of the previous part in the second packet header information.
  • the transmitting module forwards the subsequent part and the current audio data sequentially, so as to keep synchronization with the timing of retransmitting the latter part and the current audio data by the audio source device.
  • the packet header information of the audio source device is ACCESS CODE data or ACCESS ADDRESS data in the standard protocol.
  • the embodiment of the present invention discloses a bluetooth communication receiving circuit, which is applied to a second audio playback device, wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback device and the second audio playback device
  • the second audio playback device can receive audio data from the audio source device respectively
  • the bluetooth communication receiving circuit includes:
  • the sequentially connected RF receiving device, public buffer and information processing module wherein:
  • the RF receiving device listens to the retransmission information of the audio source device on the link one to resend the current audio data packet, and listens to the retransmission of the first audio playback device on the link two Forwarding information of current audio data; wherein, link one is a link for audio source equipment to send audio data; link two is an interactive link between the first audio playback device and the second audio playback device;
  • the public buffer respectively caches the data of the link 1 received when listening to the retransmission information, and the data of the link 2 received when listening to the forwarding information;
  • the information processing module calculates data correlation based on the data of link 1 and the data of link 2 respectively, and outputs a link selection control signal;
  • the RF receiving device selects link one and/or link two as the target link to receive the current audio data according to the link selection control signal, so as to correct the current packet loss data, wherein the link selected to receive the current audio data
  • the road is the link where the information is intercepted.
  • the public buffer is used to cache the second header information obtained when the RF receiving device listens to the retransmission information, and the second header information is the header information of the signal received by the RF receiving device;
  • Information processing modules include:
  • the first information processing unit stores the first header information locally, and the first header information is the header information of the sound source device; the first information processing unit is used to perform correlation calculations on the first header information and the second header information to obtain retransmission correlation Correlation result, when the retransmission correlation result is greater than the first threshold, link one is determined to be the link that has overheard the information.
  • the first information processing unit includes:
  • the first buffer stores the first packet header information
  • the first correlation subunit the input end of which is respectively connected to the output end of the first buffer and the output end of the common buffer; the first correlation subunit is used to perform a correlation operation on the first packet header information and the second packet header information to obtain retransmission
  • the correlation result when the retransmission correlation result is greater than the first threshold, it is determined that the link one is the link where the information is intercepted.
  • the packet header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing;
  • the first buffer stores the front part, and the common buffer caches data information corresponding to the length of the front part.
  • the first header information is the complete header information of the audio device
  • the first buffer stores the complete packet header information; the data cached in the public buffer is at least part of the complete packet header information.
  • the information processing module includes:
  • the second information processing unit stores third header information locally, and the third header information is the header information of the sound source device;
  • the public buffer is used to cache the fourth packet header information obtained when the RF receiving device listens to the forwarding information, and the fourth packet header information is the header information of the signal received by the RF receiving device;
  • the second information processing unit is used to perform a correlation operation on the third header information and the fourth header information to obtain a forwarding correlation result, and when the forwarding correlation result is greater than a second threshold, determine link 2 as a link that has intercepted information.
  • the second information processing unit includes:
  • the second buffer stores the third packet header information
  • the second correlation subunit the input end of which is respectively connected to the output end of the second buffer and the output end of the common buffer;
  • the second correlation subunit is used to perform a correlation operation on the third packet header information and the fourth packet header information to obtain a forwarding correlation result, and when the forwarding correlation result is greater than the second threshold, determine link 2 as a link that has detected information.
  • the packet header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing;
  • the second buffer stores the latter part, and the public buffer caches data information corresponding to the length of the latter part.
  • the RF receiving device receives the current audio data retransmitted by the audio source device on link 1 through the preset frequency band, and at the same time, transmits the current audio data on link 1 through the same preset frequency band. 2. Receive the current audio data forwarded by the first audio playback device.
  • an audio playback device comprising:
  • a processor configured to implement the method disclosed in the above first aspect; and/or, configured to implement the method disclosed in the above second aspect.
  • an audio playback device comprising:
  • the embodiment of the present invention discloses an audio signal processing system, including: a first audio playback device and a second audio playback device; the first audio playback device and the second audio playback device are a pair of audio playback devices,
  • the first audio playback device has the device disclosed in the third and fourth aspects above; the second audio playback device has the device disclosed in the third and fourth aspects above; or,
  • the first audio playback device has the circuits disclosed in the fifth and sixth aspects above; the second audio playback device has the circuits disclosed in the fifth and sixth aspects above.
  • the audio source device is configured to provide audio data to the first audio playback device and the second audio playback device.
  • the embodiment of the present invention discloses a computer-readable storage medium on which a computer program is stored, and the computer program stored in the storage medium is used to be executed to implement the methods disclosed in the first and second aspects above.
  • the embodiment of the present invention discloses a chip of an audio device, on which there is an integrated circuit designed to implement the methods disclosed in the first and second aspects above, or integrated with the above-mentioned fifth, The circuit disclosed in the sixth aspect.
  • the forwarding request sent by the second audio playback device is received in the receiving state, and the audio source device is listened to on link one according to the forwarding request.
  • switch the receiving state to the sending state and forward the current audio to the second audio playback device through link 2 according to the timing of the audio source device resending the current audio data.
  • link two is an interactive link between the first audio playback device and the second audio playback device, that is, in the process of the audio source device retransmitting the current audio data through link one, the first audio playback device
  • the current audio data can be forwarded synchronously on Link 2.
  • Link 1 and Link 2 have different spatial positions. Therefore, signals can be provided to the second audio playback device from different positions, that is, in the case of packet loss and error correction, it can This enables the second audio playback device to obtain better spatial diversity gain, and improves the data receiving mode and improves the data error correction rate under the premise of deep fading signals caused by the human body.
  • the second audio playback device fails to receive the current audio data sent by the audio source device
  • the first audio playback device and the audio source The device prompts the second audio playback device to fail to receive the current audio data, listen to the resend information of the audio source device resending the current audio data packet on link 1, and listen to the forwarding of the current audio data by the first audio playback device on link 2 Information, according to the retransmission judgment result and the forwarding judgment result, select link 1 and/or link 2 as the target link to receive the current audio data, so as to correct the current packet loss data.
  • Link 1 and link 2 have different spatial positions, different human interference conditions, and signal The fading conditions are different. Therefore, the current audio data can be obtained from different locations, and the link that detects the information can be selected as the target link to receive the current audio data. This can optimize the way the second audio playback device receives the current audio data. Under the premise of the deep fading signal caused by the human body, the data receiving method is improved, and the data error correction rate is improved.
  • the information calculation module locally stores first packet header information, which is the packet header information of the audio source device; the RF receiving device It is used to listen to the retransmission information of the audio source device to resend the audio data packet through the Bluetooth antenna to obtain the second packet header information, and the second packet header information is the packet header information of the signal received by the RF receiving device; the information operation module is used for the first packet header information Perform a correlation operation with the second packet header information to obtain a correlation result.
  • the information calculation module performs correlation calculation on the signal detected by the RF receiving device.
  • the correlation result is greater than the preset value, it indicates that the audio source device is retransmitting the audio data packet, and then outputs the forwarding drive to the transmitting module.
  • the transmitting module forwards the current audio data to the second audio playback device according to the time sequence in which the audio source device resends the current audio data, that is, the first audio playback device and the sound source device forward the current audio data to the second audio playback device synchronously, because the second An audio playback device and a sound source device have different spatial positions, therefore, signals can be provided to the second audio playback device from different locations, that is, in the case of packet loss and error correction, the second audio playback device can obtain a better space Diversity gain, under the premise of the deep fading signal caused by the human body, improves the data receiving method and improves the data error correction rate.
  • the RF receiving device, the public buffer and the information processing module are sequentially connected.
  • the RF receiving device listens to the retransmission information of the audio source device resending the current audio data packet at link one, and listens to the forwarding information of the first audio playback device forwarding the current audio data at link two;
  • the information processing module calculates data correlation based on the data of link 1 and the data of link 2 respectively, and outputs a link selection control signal;
  • the RF receiving device controls The signal selects the link that has heard the information as the target link to receive the current audio data.
  • the sound source device and the first audio playback device send the current audio data at the same time, the sound source device and the first audio playback device are in different spatial positions, the human body interference conditions are different, and the signal fading conditions are different. Therefore, they can be received from different positions.
  • the information processing module listens to the current audio data retransmitted by link 1 while synchronously listening to the current audio data forwarded by link 2, and calculates the data correlation based on the data of link 1 and the data of link 2 respectively. It can determine the link that can detect the information to receive the current audio data, which can optimize the way the second audio playback device receives the current audio data. Under the premise of the deep fading signal caused by the human body, the data receiving method is improved. Improved data error correction rate.
  • FIG. 1 is a schematic diagram of a communication structure example of a dual wireless network in the prior art
  • Fig. 2 is a flow chart of a method for sending Bluetooth packet loss data disclosed in this embodiment
  • FIG. 3 is a schematic diagram of an example of a user listening to an audio signal of a sound source device disclosed in this embodiment
  • FIG. 4 is a flow chart of a method for judging whether retransmission information is intercepted disclosed in this embodiment
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, and Figure 5C Packet format for Bluetooth Low Energy;
  • FIG. 6 is a flowchart of a method for receiving Bluetooth packet loss data disclosed in this embodiment
  • FIG. 7 is a flow chart of a method for judging whether retransmission information is intercepted to obtain a retransmission judgment result disclosed in this embodiment
  • FIG. 8 is a flow chart of a method for judging whether forwarding information is intercepted to obtain a forwarding judgment result disclosed in this embodiment
  • FIG. 9 is a schematic structural diagram of a Bluetooth packet loss data sending device disclosed in this embodiment.
  • FIG. 10 is a schematic structural diagram of a Bluetooth packet loss data receiving device disclosed in this embodiment.
  • FIG. 11 is a schematic structural diagram of a bluetooth communication sending circuit disclosed in this embodiment.
  • FIG. 12 is a schematic structural diagram of a bluetooth communication receiving circuit disclosed in this embodiment.
  • this embodiment discloses a Bluetooth packet loss data transmission method, please refer to Figure 2, which is disclosed in this embodiment A flow chart of a Bluetooth packet loss data transmission method, the Bluetooth packet loss data transmission method is applied to a first audio playback device, wherein the first audio playback device and the second audio playback device constitute an audio playback device pair, the first audio playback device and The second audio playback devices are capable of receiving audio data from the audio source devices, respectively.
  • the first audio playback device and the second audio playback device constitute a pair of audio playback devices, such as left and right earphones, left and right channel speakers, and the like.
  • the first audio playback device, the second audio playback device and the sound source device form a dual wireless communication bluetooth network.
  • the first audio playback device and the second audio playback device receive the audio sent by the sound source device in a receiving/monitoring manner. Audio data;
  • the first audio playback device and the second audio playback device respectively receive the audio data sent by the audio source device.
  • data interaction may also be performed between the first audio playback device and the second audio playback device.
  • a method for sending Bluetooth packet loss data disclosed in this embodiment includes step S100, step S200, step S300, step S400 and step S500, wherein:
  • Step S100 receiving a forwarding request sent by the second audio playback device in a receiving state.
  • the so-called forwarding request means that the second audio playback device fails to receive the current audio data sent by the audio source device.
  • FIG. 3 is a schematic diagram of an example of a user listening to an audio signal from a sound source device disclosed in this embodiment, wherein the left earphone and the right earphone correspond to the first audio playback device and the second audio playback device, and the mobile phone corresponds to the audio source device.
  • both the left earphone and the right earphone include transceiver antennas, the left earphone, the right earphone and the mobile phone perform data interaction (such as receiving or monitoring the data sent by the mobile phone) through link 1, and the left earphone and the right earphone pass through link 1 Second, data interaction.
  • the mobile phone sends data to the left earphone and the right earphone according to the standard protocol.
  • the right earphone fails to receive or monitor the current audio data sent by the mobile phone, it sends to the left earphone through link 2 to indicate that the current audio data has not been successfully received. prompt information.
  • the second audio playback device when the second audio playback device fails to receive the current audio data sent by the audio source device, it will send a message to the audio source device through the first audio playback device or the second audio playback device indicating that it has not successfully received the current audio data.
  • the audio data acknowledgment (NACK) and then the audio source device will resend the current audio data based on the acknowledgment information.
  • the first audio playback device and the second audio playback device may send table response information to the audio source device as the receiving device, for example, when the first The audio playback device receives audio data, and when the second audio playback device monitors the audio data, it sends a table response message to the audio source device through the first audio playback device.
  • the first audio playback device monitors When receiving audio data, the second audio playback device sends list response information to the audio source device.
  • the second audio playback device may send a response message to the audio source device, or, through The first audio playback device sends table response information to the audio source device for the second audio playback device when the anchor point of the second audio playback device arrives.
  • this embodiment does not limit the communication methods between the first audio playback device and the second audio playback device and the audio source device, as long as the audio source device can be notified that the transmission indicates that the current audio data has not been successfully received.
  • Step S200 listen to the audio source device on link 1 to resend the resending information of the current audio data packet.
  • the link one is a link through which the audio source device sends audio data.
  • NACK negative acknowledgment information
  • the first audio playback device can obtain the relevant link information of link 1, which will not be repeated here.
  • Step S300 judging whether retransmission information is intercepted.
  • the first audio playback device can capture the wireless signal in the air through the wireless antenna. Specifically, it can listen to the signal of the corresponding frequency band. In a specific embodiment, it can analyze the signal of the detected link-corresponding frequency band, To determine whether the captured wireless signal is sent by the audio source device, if it is a wireless signal sent by the audio source device, it can be considered that the retransmission information is detected, that is, the audio source device is resending the current audio data packet. In this embodiment, if If retransmission information is detected, step S400 and step S500 are executed in sequence.
  • Step S400 switch the receiving state to the sending state.
  • the transmission and reception of Bluetooth signals can be realized by using existing antennas and impedance circuits.
  • the antenna and related circuits may be configured in a sending state, so as to send data.
  • Step S500 forwarding the current audio data to the second audio playback device through link 2 according to the time sequence of the audio source device retransmitting the current audio data.
  • the so-called link two is an interactive link between the first audio playback device and the second audio playback device.
  • the first audio playback device uses the same timing as the audio source device to forward the current audio data, so that the second audio playback device can simultaneously receive the current audio data retransmitted by the audio source device and the current audio data forwarded by the first audio playback device. audio data, so that the second audio playback device can obtain better spatial diversity gain.
  • the same preset frequency band as the audio source device is used to forward the current audio data.
  • the so-called preset frequency band can be determined based on experience. Specifically, some frequency points in the preset frequency band can be used to receive the current data forwarded by the first audio playback device, and other frequency points in the preset frequency band can be used to receive the audio source device. The current audio data for retransmission.
  • the transmitting and receiving antenna can work in a frequency band composed of multiple frequency points at the same time, based on this, in this embodiment, by allocating frequency points in the preset frequency band, the first frequency can be received at the same time.
  • An audio playback device, the data of the audio source device, and no additional hardware devices, such as no additional antennas, etc. are required.
  • FIG. 4 is a flow chart of a method for judging whether retransmission information is intercepted disclosed in this embodiment.
  • judging whether retransmission information is intercepted includes: Step S310, step S320, step S330 and step S340, wherein:
  • Step S310 extracting locally stored first packet header information.
  • the so-called first packet header information is the packet header information of the audio source device.
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, and Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, Figure 5C shows the packet format of Bluetooth Low Energy.
  • the access code or access address is the packet header information for the Bluetooth receiver to perform synchronization, packet detection, and receive alignment.
  • the subsequent Header, Payload, or PDU has data information.
  • the packet header information of the so-called audio source device is access code or access address.
  • the packet header information of the audio source device such as access code or access address, can be stored locally, so that the stored packet header information can be directly extracted.
  • Step S320 extracting information from the signal sensed on link 1 to obtain second packet header information.
  • information extraction may be performed on the intercepted signal to obtain the second packet header information.
  • the identity of the sender can be confirmed through the second packet header information, for example, packet detection can be performed.
  • Step S330 performing a correlation operation on the first packet header information and the second packet header information to obtain a correlation result.
  • the correlation result may be obtained by performing a correlation operation in a manner such as convolution and matrix operation.
  • Step S340 judging whether the correlation result is greater than a preset value.
  • the so-called preset value may be determined based on experience. In this embodiment, if the correlation result is greater than the preset value, it is determined that retransmission information is intercepted.
  • the header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing; the first header information is the front section, and the second header information is data information corresponding to the length of the front section. That is, the packet header information of the sound source device is divided into two parts, the front section and the back section according to time sequence, wherein the first section header information in the front section is stored locally as the first packet header information.
  • step S500 immediately after switching to the sending state, the subsequent part and the current audio data are sequentially forwarded, so as to keep synchronization with the timing of retransmitting the latter part and the current audio data by the audio source device. That is, immediately after switching to the sending state, the latter part and the data body part of the forwarded packet immediately thereafter are forwarded.
  • the audio source device is retransmitting the latter part and the following retransmission packet data body part. At this time, the latter part is sent immediately, and the latter part and the following part can be retransmitted with the audio source device.
  • the data body part is kept synchronous in timing.
  • this embodiment discloses a Bluetooth packet loss data receiving method, please refer to Figure 6, which is disclosed in this embodiment A flow chart of a Bluetooth packet loss data receiving method, the Bluetooth packet loss data receiving method is applied to a second audio playback device, wherein the first audio playback device and the second audio playback device constitute an audio playback device pair, the first audio playback device and the second audio playback device
  • the second audio playback devices are capable of receiving audio data from the audio source devices, respectively.
  • the first audio playback device and the second audio playback device constitute a pair of audio playback devices, such as left and right earphones, left and right channel speakers, and the like.
  • the first audio playback device, the second audio playback device and the sound source device form a dual wireless communication bluetooth network.
  • the first audio playback device and the second audio playback device receive the audio sent by the sound source device in a receiving/monitoring manner. Audio data;
  • the first audio playback device and the second audio playback device respectively receive the audio data sent by the audio source device.
  • data interaction may also be performed between the first audio playback device and the second audio playback device.
  • a method for receiving Bluetooth packet loss data disclosed in this embodiment includes step R100, step R200, step R300, step R400 and step R500, wherein:
  • Step R100 when the second audio playback device fails to receive the current audio data sent by the sound source device, prompt the first audio playback device and the sound source device that the second audio playback device fails to receive the current audio data.
  • FIG. 3 is a schematic diagram of an example of a user listening to an audio signal from a sound source device disclosed in this embodiment, wherein the left earphone and the right earphone correspond to the first audio playback device and the second audio playback device, and the mobile phone corresponds to the audio source device. Example to illustrate.
  • both the left earphone and the right earphone include transceiver antennas, the left earphone, the right earphone and the mobile phone perform data interaction (such as receiving or monitoring the data sent by the mobile phone) through link 1, and the left earphone and the right earphone pass through link 1 Second, data interaction.
  • the mobile phone sends data to the left earphone and the right earphone according to the standard protocol.
  • the right earphone fails to receive or monitor the current audio data sent by the mobile phone, it sends to the left earphone through link 2 to indicate that the current audio data has not been successfully received. prompt information.
  • the audio source device (such as a mobile phone) has not successfully received the current audio data: in the specific implementation process, according to the standard protocol, when the second audio playback device fails to receive the current audio data sent by the audio source device, it will pass through the first audio playback device Or the second audio playback device sends a response message (NACK) indicating that the current audio data has not been successfully received to the sound source device, and then the sound source device resends the current audio data based on the response message.
  • NACK response message
  • the first audio playback device and the second audio playback device may send table response information to the audio source device as the receiving device, for example, when the first The audio playback device receives audio data, and when the second audio playback device monitors the audio data, it sends a table response message to the audio source device through the first audio playback device.
  • the first audio playback device monitors When receiving audio data, the second audio playback device sends list response information to the audio source device.
  • the second audio playback device may send a response message to the audio source device, or, through The first audio playback device sends table response information to the audio source device for the second audio playback device when the anchor point of the second audio playback device arrives.
  • this embodiment does not limit the communication methods between the first audio playback device and the second audio playback device and the audio source device, as long as the audio source device can be notified that the transmission indicates that the current audio data has not been successfully received.
  • Step R200 listen to the retransmission information of the audio source device on the link one to retransmit the current audio data packet.
  • the so-called link one is a link through which the audio source device sends audio data.
  • NACK negative acknowledgment
  • the audio source device will resend the current audio data packet in the preset frequency band through the link one. Therefore, the retransmission information of the audio source device can be monitored on link one.
  • wireless antennas can be used to capture wireless signals in the air. Specifically, signals in corresponding frequency bands can be intercepted. In a specific embodiment, it can be determined by analyzing the detected signals of the link-corresponding frequency band. Whether the captured wireless signal is sent by the audio source device, if it is a wireless signal sent by the audio source device, it can be considered that the retransmission information is detected, that is, the audio source device is resending the current audio data packet.
  • Step R300 listen to the forwarding information of the current audio data forwarded by the first audio playback device on the second link.
  • the so-called link two is an interactive link between the first audio playback device and the second audio playback device.
  • the first audio playback device when the first audio playback device receives the forwarding request sent by the second audio playback device, the first audio playback device will forward the current audio data packet in the same preset frequency band as the audio source device through Link 2. Therefore, the forwarding information of the first audio playback device can be intercepted on the second link.
  • the wireless signal in the air can be captured through the wireless antenna, specifically, the signal of the corresponding frequency band can be intercepted, and in a specific embodiment, it can be determined by analyzing the detected signal of the corresponding frequency band of link 2 Whether the captured wireless signal is sent by the first audio playback device, if it is a wireless signal sent by the first audio playback device, it can be considered that the forwarding information is detected, that is, the first audio playback device is forwarding the current audio data packet.
  • the first audio playback device uses the same preset frequency band as the audio source device to forward the current audio data.
  • the so-called preset frequency band can be determined based on experience. Specifically, some frequency points in the preset frequency band can be used to receive the current data forwarded by the first audio playback device, and other frequency points in the preset frequency band can be used to receive the audio source device. The current audio data for retransmission.
  • the transmitting and receiving antenna can work in a frequency band composed of multiple frequency points at the same time, based on this, in this embodiment, by allocating frequency points in the preset frequency band, the first frequency can be received at the same time.
  • An audio playback device, the data of the audio source device, and no additional hardware devices, such as no additional antennas, etc. are required.
  • step R200 and step R300 are not limited.
  • Step R400 judging whether retransmission information is intercepted to obtain a retransmission judging result.
  • the signal captured by link one may be analyzed to determine whether retransmission information is detected to obtain a retransmission judgment result.
  • Step R500 judging whether the forwarding information is intercepted to obtain a forwarding judging result.
  • the signal captured by link two may be analyzed to determine whether the forwarding information is intercepted to obtain a forwarding judgment result.
  • step R400 and step R500 are not limited.
  • Step R600 select Link 1 and/or Link 2 as the target link to receive the current audio data.
  • one or two links can be selected to receive the current audio data, so as to correct the current packet loss data, wherein the selected link to receive the current audio data
  • the link of is the link that has heard the information. Specifically, since the positions of the sound source device and the first audio playback device are different, the human interference between the sound source device and the first audio playback device is different, that is, the signal strength of the communication with the second audio playback device is also different.
  • by resending the judging result and forwarding the judging result it can be determined whether the current audio data of the audio source device and the first audio playback device can be received. In the specific implementation process:
  • link one is selected as the target link to receive the current audio data; that is, within the preset receiving frequency range, the retransmission of the audio source device is received through link one current audio data;
  • link 2 is selected as the target link to receive the current audio data; that is, within the preset receiving bandwidth range, the link 2 is used to receive the forwarded audio data from the first audio playback device. current audio data;
  • link 1 and link 2 are selected as target links to receive the current audio data. That is, within the preset receiving bandwidth range, the current audio data retransmitted by the audio source device and the current audio data forwarded by the first audio playback device are simultaneously received.
  • the current audio data is received on the target link through the same preset frequency band. That is, the first sound source device uses the same preset frequency band as the sound source device to forward the current audio data.
  • the second sound source device simultaneously receives the current audio data of the sound source device and the current audio data of the first audio playback device in the same preset frequency band.
  • the so-called preset frequency band can be determined based on experience. Specifically, some frequency points in the preset frequency band can be used to receive the current data forwarded by the first audio playback device, and other frequency points in the preset frequency band can be used to receive the audio source device. The current audio data for retransmission.
  • the transmitting and receiving antenna can work in a frequency band composed of multiple frequency points at the same time, based on this, in this embodiment, by allocating frequency points in the preset frequency band, the first frequency can be received at the same time.
  • An audio playback device, the data of the audio source device, and no additional hardware devices, such as no additional antennas, etc. are required.
  • link 1 and link 2 are used as target links to receive the current audio data.
  • Link 1 and link 2 have different spatial positions. Therefore, signals can be provided to the second audio playback device from different positions. That is to say, in the case of packet loss and error correction, the second audio playback device can obtain better space diversity gain. Under the premise of deep fading signals caused by the human body, the data receiving method is improved, and the data error correction is improved. Rate.
  • FIG. 7 is a flowchart of a method for judging whether retransmission information is intercepted to obtain a retransmission judgment result disclosed in this embodiment.
  • step R400 it is judged whether the Obtaining the retransmission judgment result of the retransmission information includes: step R410, step R420, step R430 and step R440, wherein:
  • Step R410 extracting locally stored first packet header information.
  • the so-called first packet header information is the packet header information of the audio source device.
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, and Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, Figure 5C shows the packet format of Bluetooth Low Energy.
  • the access code or access address is the packet header information for the Bluetooth receiver to perform synchronization, packet detection, and receive alignment.
  • the subsequent Header, Payload, or PDU has data information.
  • the packet header information of the so-called audio source device is access code or access address.
  • the packet header information of the audio source device such as access code or access address, can be stored locally, so that the stored packet header information can be directly extracted.
  • Step R420 extracting information from the signal sensed on link 1 to obtain second packet header information.
  • information extraction may be performed on the intercepted signal to obtain the second packet header information.
  • the identity of the sender can be confirmed through the second packet header information, for example, packet detection can be performed.
  • Step R430 performing a correlation operation on the first packet header information and the second packet header information to obtain a retransmission correlation result.
  • the correlation result may be obtained by performing a correlation operation in a manner such as convolution and matrix operation.
  • Step R440 judging whether the retransmission correlation result is greater than a preset value.
  • the preset value may be determined based on experience. In this embodiment, if the retransmission correlation result is greater than the preset value, it is determined that retransmission information is detected.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing;
  • the first header information is In the front section
  • the second header information is data information corresponding to the length of the front section. That is, the packet header information of the sound source device is divided into two parts, the front section and the back section according to time sequence, wherein the first section header information in the front section is stored locally as the first packet header information.
  • the first packet header information is the complete packet header information of the audio source device, and the second packet header information At least part of the full header information. That is, when part of the information is intercepted on link one, a correlation operation can be performed with the corresponding part of the data in the first packet header information to obtain a retransmission correlation result. In this way, it is possible to avoid falsely believing that retransmission information is not detected due to signal interference.
  • FIG. 8 is a flowchart of a method for judging whether the forwarding information is intercepted to obtain the forwarding judgment result disclosed in this embodiment.
  • step R500 it is judged whether the forwarding information is intercepted
  • Obtaining the forwarding judgment result includes: step R510, step R520, step R530 and step R540, wherein:
  • Step R510 extract the locally stored third packet header information.
  • the so-called third packet header information is the packet header information of the audio source device.
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, and Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, Figure 5C shows the packet format of Bluetooth Low Energy.
  • the access code or access address is the packet header information for the Bluetooth receiver to perform synchronization, packet detection, and receive alignment.
  • the subsequent Header, Payload, or PDU has data information.
  • the packet header information of the so-called audio source device is access code or access address.
  • the packet header information of the audio source device such as access code or access address, can be stored locally, so that the stored packet header information can be directly extracted.
  • the first audio playback device since the first audio playback device forwards the current audio data packet, it contains the packet header information of the audio source device, so it is called the third The packet header information is the packet header information of the audio source device.
  • Step R520 extracting information from the signal sensed on the second link to obtain fourth packet header information.
  • information extraction may be performed on the intercepted signal to obtain the fourth packet header information.
  • the identity of the signal sender can be confirmed through the fourth packet header information, for example, packet detection can be performed.
  • Step R530 performing a correlation operation on the third packet header information and the fourth packet header information to obtain a forwarding correlation result.
  • the forwarding correlation result can be obtained by performing a correlation operation in a manner such as convolution and matrix operation.
  • Step R540 judging whether the forwarding correlation result is greater than a preset value.
  • the preset value may be determined based on experience. In this embodiment, if the forwarding correlation result is greater than the preset value, it is determined that the forwarding information is intercepted.
  • the packet header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing; the third packet header information is the latter part, and the fourth packet header information is data information corresponding to the length of the latter part. That is, the packet header information of the sound source device is divided into two parts, the front section and the back section according to the time sequence, wherein, the packet header information in the back section is stored locally as the third packet header information.
  • the packet header information of the sound source device is divided into two parts, the front section and the back section according to the time sequence, wherein, the packet header information in the back section is stored locally as the third packet header information.
  • the first audio playback device since the first audio playback device forwards the audio data, it only forwards the latter part and the following retransmission packet data body part, therefore, it only needs to use the latter part as the third packet header
  • the information is stored locally.
  • This embodiment also discloses a Bluetooth packet loss data sending device, please refer to Figure 9, which is a schematic structural diagram of a Bluetooth packet loss data sending device disclosed in this embodiment, and the Bluetooth packet loss data sending device is applied to the first audio playback device , wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback device and the second audio playback device can respectively receive audio data from the sound source device.
  • the device includes: a request receiving module 100, a retransmission listening module 200, a retransmission judging module 300, a state switching module 400 and a forwarding module 500, wherein:
  • the request receiving module 100 is used to receive the forwarding request sent by the second audio playback device in the receiving state, wherein the forwarding request indicates that the second audio playback device has not successfully received the current audio data sent by the audio source device;
  • the retransmission listening module 200 is used to listen to the retransmission information of the current audio data packet at link one according to the forwarding request, where the link one is the link for the audio source device to send audio data;
  • the retransmission judging module 300 is used to judge whether the retransmission information is intercepted; if the retransmission information is intercepted, the state switching module 400 and the forwarding module 500 are sequentially operated;
  • a state switching module 400 configured to switch the receiving state to the sending state
  • the forwarding module 500 is configured to forward the current audio data to the second audio playback device through the link 2 according to the time sequence of the audio source device retransmitting the current audio data, wherein the link 2 is between the first audio playback device and the second audio playback device interactive link.
  • the forwarding module 500 is configured to forward the current audio data using the same preset frequency band as that of the audio source device.
  • the retransmission judging module 300 includes:
  • the first extracting unit is used to extract the first packet header information stored locally, the first packet header information is the packet header information of the audio source device;
  • the second extraction unit is used to extract the information of the signal sensed on the link 1 to obtain the second packet header information
  • a correlation operation unit configured to perform correlation operations on the first packet header information and the second packet header information to obtain a correlation result
  • the preset value judging unit is used for judging whether the correlation result is greater than the preset value, and if the correlation result is greater than the preset value, it is determined that the retransmission information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing; the first header information is the front section, and the second header information is corresponding to the length of the front section data information.
  • the forwarding module 500 is configured to sequentially forward the subsequent part and the current audio data immediately after switching to the sending state, so as to keep synchronization with the timing of retransmitting the latter part and the current audio data by the audio source device.
  • FIG. 10 is a schematic structural diagram of a Bluetooth packet loss data receiving device disclosed in this embodiment.
  • the Bluetooth packet loss data receiving device is applied to the second audio A playback device, wherein the first audio playback device and the second audio playback device form an audio playback device pair, and the first audio playback device and the second audio playback device can respectively receive audio data from a sound source device.
  • the device comprises: a prompt module 10, a first listening module 20, a second listening module 30, a first judging module 40, a second judging module 50 and a data receiving module 60, wherein:
  • Prompt module 10 for when the second audio playback device does not successfully receive the current audio data sent by the sound source device, prompt the second audio playback device to fail to receive the current audio data to the first audio playback device and the sound source device;
  • the first listening module 20 is used to listen to the retransmission information of the audio source device resending the current audio data packet at the link one, and the link one is a link for the audio source device to send audio data;
  • the second listening module 30 is used to listen to the forwarding information of the first audio playback device forwarding the current audio data at the link two, and the link two is an interactive link between the first audio playback device and the second audio playback device;
  • the first judging module 40 is used to judge whether the retransmission information is intercepted to obtain the retransmission judgment result
  • the second judging module 50 is used to judge whether the forwarding information is intercepted to obtain the forwarding judgment result
  • the data receiving module 60 is configured to select link 1 and/or link 2 as the target link to receive the current audio data according to the retransmission judgment result and the forwarding judgment result, so as to correct the current packet loss data.
  • the first judging module 40 includes:
  • the first extracting unit is used to extract the first packet header information stored locally, the first packet header information is the packet header information of the audio source device;
  • the second extraction unit is used to extract the information of the signal sensed on the link 1 to obtain the second packet header information
  • a retransmission correlation operation unit configured to perform correlation operations on the first packet header information and the second packet header information to obtain a retransmission correlation result
  • the first judging unit is configured to judge whether the retransmission correlation result is greater than a preset value, and if the retransmission correlation result is greater than the preset value, determine that the retransmission information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing; the first header information is the front section, and the second header information is corresponding to the length of the front section data information.
  • the first header information is complete header information of the sound source device, and the second header information is at least a part of the complete header information.
  • the second judging module 50 includes:
  • the third extraction unit is used to extract the third packet header information stored locally, the third packet header information is the packet header information of the audio source device;
  • the fourth extraction unit is used to extract the information of the signal sensed on the second link to obtain the fourth packet header information
  • a forwarding correlation calculation unit configured to perform correlation calculations on the third packet header information and the fourth packet header information to obtain a forwarding correlation result
  • the second judging unit is configured to judge whether the forwarding correlation result is greater than a preset value, and if the forwarding correlation result is greater than the preset value, determine that the forwarding information is intercepted.
  • the header information of the sound source device includes a front section and a back section, and the back section lags behind the front section in timing; the third header information is the back section, and the fourth header information is the same as the back section The data information corresponding to the length.
  • the data receiving module 60 is specifically used for:
  • link one is selected as the target link to receive the current audio data
  • link 2 is selected as the target link to receive the current audio data
  • link 1 and link 2 are selected as target links to receive the current audio data.
  • the current audio data is received on the target link through the same preset frequency band.
  • this embodiment discloses a bluetooth communication sending circuit, please refer to Figure 11, which is a kind of Schematic diagram of the structure of the Bluetooth communication sending circuit, the Bluetooth communication sending circuit is applied to the first audio playback device, wherein the first audio playback device and the second audio playback device constitute an audio playback device pair, the first audio playback device and the second audio playback device Audio data can be respectively received from the audio source device.
  • the first audio playback device and the second audio playback device constitute a pair of audio playback devices, such as left and right earphones, left and right channel speakers, and the like.
  • the first audio playback device, the second audio playback device and the sound source device form a dual wireless communication bluetooth network.
  • the first audio playback device and the second audio playback device receive the audio sent by the sound source device in a receiving/monitoring manner. Audio data;
  • the first audio playback device and the second audio playback device respectively receive the audio data sent by the audio source device.
  • data interaction may also be performed between the first audio playback device and the second audio playback device.
  • a bluetooth communication sending circuit disclosed in this embodiment includes: an information computing module 1, an RF receiving device 2 and a transmitting module 3, wherein:
  • the information operation module 1 locally stores the first packet header information.
  • the so-called first packet header information is the packet header information of the audio source device.
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, and Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, Figure 5C shows the packet format of Bluetooth Low Energy.
  • the access code or access address is the packet header information for the Bluetooth receiver to perform synchronization, packet detection, and receive alignment.
  • the subsequent Header, Payload, or PDU has data information.
  • the packet header information of the so-called audio source device is access code or access address.
  • the packet header information of the audio source device such as access code or access address, can be stored locally, so that the stored packet header information can be directly extracted.
  • the input end of the RF receiving device 2 is used to connect to the Bluetooth antenna, and the output end of the RF receiving device 2 is connected to the information computing module 1 .
  • the RF receiving device 1 is used to listen to the retransmission information of the audio source device to resend the audio data packet through the Bluetooth antenna to obtain the second packet header information.
  • the so-called second packet header information is received by the RF receiving device 1 The packet header information of the received signal.
  • the RF receiving device 2 intercepts the signal of the sound source device through the Bluetooth antenna, it can extract information from the intercepted signal to obtain the second packet header information.
  • the identity of the sender can be confirmed through the second packet header information, for example, packet detection can be performed.
  • the information operation module 1 is used to perform a correlation operation on the first packet header information and the second packet header information to obtain a correlation result, and when the correlation result is greater than a preset value, output a forwarding drive signal to the transmitting module 3 .
  • the so-called preset value may be determined based on experience.
  • the correlation result may be obtained by performing a correlation operation in a manner such as convolution and matrix operation.
  • the transmitting module 3 is connected to the information computing module 1, and the transmitting module 3 is used for forwarding the current audio data to the second audio playback device based on the forwarding drive signal output by the information computing module 1 according to the timing of the audio source device retransmitting the current audio data.
  • the transmitting module 3 is realized by including an RF transmitting device and a digital transmitting device.
  • the transmitting module 3 uses the same timing as that of the sound source device to forward the current audio data, so that the second audio playback device can simultaneously receive the current audio data retransmitted by the sound source device and The current audio data forwarded by the first audio playback device can thus enable the second audio playback device to obtain a better spatial diversity gain.
  • the transmitting module 3 uses the same preset frequency band as the sound source device to forward the current audio data.
  • the so-called preset frequency band can be determined based on experience.
  • the second audio playback device can use some frequency points in the preset frequency band to receive the current data forwarded by the first audio playback device, and use other frequency points in the preset frequency band to receive the current data forwarded by the first audio playback device. Click to receive the current audio data resent by the audio source device.
  • the transmitting and receiving antenna can work in a frequency band composed of multiple frequency points at the same time, based on this, in this embodiment, by allocating frequency points in the preset frequency band, the first frequency can be received at the same time.
  • An audio playback device, the data of the audio source device, and no additional hardware devices, such as no additional antennas, etc. are required.
  • the information operation module 1 includes: a first buffer 11, a second buffer 12 and a correlation unit 13, wherein:
  • the first buffer 11 stores first packet header information.
  • the second buffer 12 is connected to the output terminal of the RF receiving device 2 .
  • the second buffer 12 is used for buffering the second packet header information.
  • the input terminals of the correlation unit 13 are respectively connected to the output terminals of the first buffer 11 and the output terminal of the second buffer 12 , and the output terminals of the correlation unit 13 are connected to the transmitting module 3 .
  • the correlation unit 13 is used to perform a correlation operation on the first packet header information and the second packet header information to obtain a correlation result, and output a forwarding drive signal to the transmitting module 3 when the correlation result is greater than a preset value.
  • the correlation unit 13 can be realized by a correlation calculation device and a threshold judgment device.
  • the correlation calculation device can perform convolution, matrix operation, etc., and this embodiment does not limit the specific calculation method of the correlation calculation;
  • the threshold judging device can be realized by, for example, a comparison circuit.
  • the bluetooth communication sending circuit also includes: a switch 4, one end of the switch 4 is used to connect to the bluetooth antenna, and the other end can be optionally connected to the RF receiving device 2 or the transmitting module 3, that is, the other end of the switch 4 is either connected to the RF receiving device 2 or connected to the transmitting module 3.
  • the RF receiving device 2 listens to the retransmission information through the Bluetooth antenna; when the other end of the switch 4 is connected to the transmitting module 3, the transmitting module 3 forward the current audio data through the bluetooth antenna.
  • the packet header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing; the first buffer 11 stores the front part; the second buffer 12 is used for buffering the data information corresponding to the length of the front part in the second packet header information. That is, the packet header information of the sound source device is divided into two parts, the front section and the back section according to time sequence, wherein the first section header information in the front section is stored locally as the first packet header information.
  • the RF receiving device 2 listens to the retransmission information, it only needs to extract the data information corresponding to the length of the previous section, and use this part as the second header information, and then, the information operation module 1 only needs to extract the data information corresponding to the length of the previous section. to perform a correlation operation with the first packet header information, thereby reducing the calculation amount of the correlation operation.
  • the transmitting module 3 Immediately after receiving the forwarding drive signal, the transmitting module 3 forwards the subsequent part and the current audio data sequentially, so as to keep in sync with the timing of retransmitting the latter part and the current audio data by the audio source device. That is, after the switching switch 4 is switched to the sending state, the transmitting module 3 immediately forwards the latter part and the data body part of the forwarded packet immediately thereafter. It can be synchronized with the retransmission of the audio source device and the subsequent part of the data body in timing.
  • this embodiment discloses a Bluetooth packet loss data receiving circuit, please refer to Figure 12, which is disclosed in this embodiment
  • a schematic structural diagram of a bluetooth communication receiving circuit the bluetooth communication receiving circuit is applied to a second audio playback device, wherein the first audio playback device and the second audio playback device constitute an audio playback device pair, the first audio playback device and the second audio playback device
  • the playback devices are capable of receiving audio data from the audio source devices, respectively.
  • the first audio playback device and the second audio playback device constitute a pair of audio playback devices, such as left and right earphones, left and right channel speakers, and the like.
  • the first audio playback device, the second audio playback device and the sound source device form a dual wireless communication bluetooth network.
  • the first audio playback device and the second audio playback device receive the audio sent by the sound source device in a receiving/monitoring manner. Audio data;
  • the first audio playback device and the second audio playback device respectively receive the audio data sent by the audio source device.
  • data interaction may also be performed between the first audio playback device and the second audio playback device.
  • the bluetooth communication receiving circuit includes: sequentially connected RF receiving device B1, public buffer B2 and information processing module B3, wherein:
  • the RF receiving device B1 listens to the retransmission information of the audio source device on the link one to resend the current audio data packet, and listens to the first audio playback device on the link two Forward the forwarding information of the current audio data.
  • the so-called link one is the link through which the audio source device sends audio data
  • the so-called link two is the interactive link between the first audio playback device and the second audio playback device.
  • FIG. 3 is a schematic diagram of an example of a user listening to an audio signal from a sound source device disclosed in this embodiment, wherein the left earphone and the right earphone correspond to the first audio playback device and the second audio playback device, and the mobile phone corresponds to the audio source device.
  • both the left earphone and the right earphone include transceiver antennas, the left earphone, the right earphone and the mobile phone perform data interaction (such as receiving or monitoring the data sent by the mobile phone) through link 1, and the left earphone and the right earphone pass through link 1 Second, data interaction.
  • the mobile phone sends data to the left earphone and the right earphone according to the standard protocol.
  • the second audio playback device can send data to the first audio playback device through link 2. Prompt information indicating that the current audio data has not been successfully received; on the other hand, a response message (NACK) indicating that the current audio data has not been successfully received will be sent to the audio source device through the first audio playback device or the second audio playback device.
  • NACK response message
  • the first audio playback device when the first audio playback device receives the forwarding request sent by the second audio playback device, the first audio playback device will forward the current audio data packet in the same preset frequency band as the audio source device through Link 2 .
  • the audio source device obtains the negative acknowledgment (NACK) that the second audio playback device failed to receive the current audio data, the audio source device will resend the current audio data packet through the link one in the preset frequency band. Therefore, the retransmission information of the audio source device can be monitored on link one.
  • NACK negative acknowledgment
  • the RF receiving device B1 can analyze the detected signal of the frequency band corresponding to the second link to determine whether the captured wireless signal is sent by the first audio playback device, if it is the first audio playback
  • the wireless signal sent by the device can be regarded as intercepting the forwarding information, that is, the first audio playback device is forwarding the current audio data packet.
  • the RF receiving device B1 can determine whether the captured wireless signal is sent by the audio source device by analyzing the detected signal of the corresponding frequency band of the link. If it is a wireless signal sent by the audio source device, it can be regarded as The retransmission information is detected, that is, the audio source device is retransmitting the current audio data packet.
  • the public buffer B2 respectively buffers the data of the link 1 received when intercepting the retransmission information, and the data of the link 2 received when intercepting the forwarding information.
  • the cached data can be analyzed to determine the correlation of the signals.
  • each time a piece of data is intercepted it can be cached.
  • the common buffer B2 should be divided into two areas, and the two areas correspond to buffering data of link 1 and link 2 respectively, so as to avoid overlapping and crossing of data.
  • the information processing module B3 calculates data correlation based on the data of link 1 and the data of link 2 respectively, and outputs a link selection control signal.
  • the data correlation is calculated by the information processing module B3, and it can be determined whether retransmission information and/or forwarding information is intercepted.
  • the RF receiving device B1 selects link 1 and/or link 2 as the target link to receive the current audio data according to the link selection control signal, so as to correct the error of the currently lost data.
  • the link selected to receive the current audio data is the link that has heard the information.
  • the human body interference conditions of the sound source device and the first audio playback device are different, that is, the signal strengths for communicating with the second audio playback device are also different.
  • Link 1 When the data correlation calculation result of Link 1 is correlated, select Link 1 as the target link to receive the current audio data; The current audio data sent;
  • Link 2 select Link 2 as the target link to receive the current audio data; that is, within the preset receiving bandwidth range, receive the first audio through Link 2 Play the current audio data forwarded by the device;
  • link 1 When the data correlation calculation result of link 1 is relevant, and the data correlation calculation result of link 2 is relevant, select link 1 and link 2 as target links to receive the current audio data. That is, within the preset receiving bandwidth range, the current audio data retransmitted by the audio source device and the current audio data forwarded by the first audio playback device are simultaneously received.
  • the current audio data is received on the target link through the same preset frequency band. That is, the first sound source device uses the same preset frequency band as the sound source device to forward the current audio data.
  • the second sound source device simultaneously receives the current audio data of the sound source device and the current audio data of the first audio playback device in the same preset frequency band.
  • the so-called preset frequency band can be determined based on experience. Specifically, some frequency points in the preset frequency band can be used to receive the current data forwarded by the first audio playback device, and other frequency points in the preset frequency band can be used to receive the audio source device. The current audio data for retransmission.
  • the transmitting and receiving antenna can work in a frequency band composed of multiple frequency points at the same time, based on this, in this embodiment, by allocating frequency points in the preset frequency band, the first frequency can be received at the same time.
  • An audio playback device, the data of the audio source device, and no additional hardware devices, such as no additional antennas, etc. are required.
  • the information processing module B3 includes: a first information processing unit B31, and the first packet header information is the packet header information of the audio source device.
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, and Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, Figure 5C shows the packet format of Bluetooth Low Energy.
  • the access code or access address is the packet header information for the Bluetooth receiver to perform synchronization, packet detection, and receive alignment.
  • the subsequent Header, Payload, or PDU has data information.
  • the packet header information of the so-called audio source device is access code or access address.
  • the packet header information of the audio source device such as access code or access address, can be stored locally, so that the stored packet header information can be directly extracted.
  • the first information processing unit B31 includes: a first buffer B311, through which the first packet header information is stored.
  • the public buffer B2 is used for buffering the second packet header information obtained when the RF receiving device B1 intercepts the retransmission information, and the second packet header information is the header information of the signal received by the RF receiving device 1 .
  • the RF receiving device B1 may extract information from the intercepted signal to obtain the second packet header information.
  • the identity of the sender can be confirmed through the second packet header information, for example, packet detection can be performed.
  • the first information processing unit B31 is used to perform a correlation operation on the first packet header information and the second packet header information to obtain the retransmission correlation result, and when the retransmission correlation result is greater than the first threshold value, determine that link one It is the link to listen to the information.
  • the retransmission correlation result can be obtained by performing a correlation operation in a manner such as convolution and matrix operation.
  • the so-called first threshold may be determined based on experience. In this embodiment, if the retransmission correlation result is greater than the first threshold, it is determined that retransmission information is detected.
  • the first information processing unit B31 includes: a first correlation subunit B312, the input terminals of the first correlation subunit B312 are respectively connected to the output terminal of the first buffer B311 and the output terminal of the common buffer B2;
  • a correlation subunit B312 is used to perform a correlation operation on the first packet header information and the second packet header information to obtain a retransmission correlation result, and when the retransmission correlation result is greater than the first threshold, determine that link one is the chain that has intercepted the information road.
  • the first correlation subunit B312 can be realized by a correlation calculation device and a threshold judgment device.
  • the correlation calculation device can perform correlation operations such as convolution and matrix operations to obtain retransmission correlation results.
  • the threshold judgment device can use a comparison circuit, etc. to realise.
  • the packet header information of the audio source device includes a front part and a back part, and the back part lags behind the front part in timing; the first buffer B311 The front part is stored, and the public buffer B2 caches the data information corresponding to the length of the front part. That is, the packet header information of the sound source device is divided into two parts, the front section and the back section according to time sequence, wherein the first section header information in the front section is stored locally as the first packet header information.
  • the packet header information of the sound source device is divided into two parts, the front section and the back section according to time sequence, wherein the first section header information in the front section is stored locally as the first packet header information.
  • the first packet header information is the complete packet header information of the audio source device, and the second packet header information At least part of the complete header information; the first buffer B311 stores the complete header information; the data cached by the public buffer B2 is at least part of the complete header information. That is, when part of the information detected on link 1 is cached in the public buffer B2, a correlation operation can be performed with the corresponding part of the data in the first buffer B311 to obtain a retransmission correlation result. In this way, it is possible to avoid falsely believing that retransmission information is not detected due to signal interference.
  • the information processing module B3 includes: a second information processing unit B32 that locally stores the third packet header information.
  • the so-called third packet header information is the packet header information of the audio source device.
  • Figure 5A, Figure 5B and Figure 5C are schematic diagrams of the Bluetooth packet format in the Bluetooth standard protocol, wherein Figure 5A is a schematic diagram of the BDR packet format of Bluetooth v2.1, and Figure 5B is a schematic diagram of the EDR packet format of Bluetooth v2.1, Figure 5C shows the packet format of Bluetooth Low Energy.
  • the access code or access address is the packet header information for the Bluetooth receiver to perform synchronization, packet detection, and receive alignment.
  • the subsequent Header, Payload, or PDU has data information.
  • the packet header information of the so-called audio source device is access code or access address.
  • the packet header information of the audio source device such as access code or access address, can be stored locally, so that the stored packet header information can be directly extracted.
  • the second information processing unit B32 includes: a second buffer B321, and the second buffer B321 stores third packet header information.
  • the first audio playback device since the first audio playback device forwards the current audio data packet, it contains the packet header information of the audio source device, so it is called the third The packet header information is the packet header information of the audio source device.
  • the public buffer B2 is used to buffer the fourth header information obtained when the RF receiving device B1 intercepts the forwarding information, and the fourth header information is the header information of the signal received by the RF receiving device 1 .
  • the RF receiving device 1 intercepts the signal on the second link, it can perform information extraction on the intercepted signal to obtain the fourth packet header information.
  • the identity of the signal sender can be confirmed through the fourth packet header information, for example, packet detection can be performed.
  • the second information processing unit B32 is used to perform correlation calculations on the third header information and the fourth header information to obtain the forwarding correlation result, and when the forwarding correlation result is greater than the second threshold, determine that the second link is a detection Hear the link for the message.
  • the so-called second threshold may be determined based on experience. In this embodiment, if the forwarding correlation result is greater than a preset value, it is determined that the forwarding information is intercepted.
  • the second information processing unit B32 includes a second correlation subunit B322, and the input terminals of the second correlation subunit B322 are respectively connected to the output terminals of the second buffer B321 and the common buffer B2 output terminal.
  • the second correlation subunit B322 is used to perform correlation calculations on the third packet header information and the fourth packet header information to obtain the forwarding correlation result, and when the forwarding correlation result is greater than the second threshold, it is determined that the second link is a detection Hear the link for the message.
  • the second correlation subunit B322 can be realized by a correlation calculation device and a threshold judgment device.
  • the correlation calculation device can perform correlation operations such as convolution and matrix operations to obtain retransmission correlation results.
  • the threshold judgment device can use a comparison circuit, etc. to realise.
  • the packet header information of the audio source device includes a front section and a back section, and the back section lags behind the front section in timing; the second buffer B321 stores the latter part, and the public buffer B2 caches data information corresponding to the length of the latter part. That is, the packet header information of the sound source device is divided into two parts, the front section and the back section according to time sequence, wherein the latter section is stored in the local second buffer B321 as the third packet header information.
  • the second information processing unit B32 uses this part in the public buffer B2 as the fourth packet header information to communicate with the third Packet header information is used for correlation operations, thereby reducing the amount of computation involved in correlation operations.
  • the first audio playback device since the first audio playback device forwards the audio data, it only forwards the latter part and the following retransmission packet data body part, therefore, it only needs to use the latter part as the third packet header
  • the information is stored in the local second buffer B321.
  • This embodiment also discloses an audio playback device, including: a processor, configured to implement the method for sending Bluetooth packet loss data or the method for receiving Bluetooth packet loss data disclosed in the above embodiments.
  • This embodiment also discloses an audio playback device, including: the bluetooth communication sending circuit or receiving circuit disclosed in the above embodiments.
  • This embodiment also discloses an audio signal processing system, comprising: a first audio playback device and a second audio playback device; the first audio playback device and the second audio playback device are a pair of audio playback devices.
  • the first audio playback device has the device disclosed in the above-mentioned embodiment
  • the second audio playback device has the device disclosed in the above-mentioned embodiment
  • the first audio playback device has the circuit disclosed in the above-mentioned embodiment
  • the second audio playback device has the device disclosed in the above-mentioned embodiment open circuit.
  • the first audio playback device and the second audio playback device are a pair of earphones
  • the first audio playback device and the second audio playback device are a pair of speakers.
  • it also includes:
  • the audio source device is configured to provide audio data to the first audio playback device and the second audio playback device.
  • This embodiment also discloses a computer-readable storage medium, on which a computer program is stored, and the computer program stored in the storage medium is used to be executed to realize the method disclosed in the above-mentioned embodiment.
  • This embodiment also discloses a chip of an audio device, which has an integrated circuit thereon, and the integrated circuit is designed to implement the method disclosed in the above embodiment, or has the circuit disclosed in the above embodiment.
  • the forwarding request sent by the second audio playback device is received in the receiving state, and the audio source device is listened to on link one according to the forwarding request.
  • switch the receiving state to the sending state and forward the current audio to the second audio playback device through link 2 according to the timing of the audio source device resending the current audio data.
  • link two is an interactive link between the first audio playback device and the second audio playback device, that is, in the process of the audio source device retransmitting the current audio data through link one, the first audio playback device
  • the current audio data can be forwarded synchronously on Link 2.
  • Link 1 and Link 2 have different spatial positions. Therefore, signals can be provided to the second audio playback device from different positions, that is, in the case of packet loss and error correction, it can This enables the second audio playback device to obtain better spatial diversity gain, and improves the data receiving mode and improves the data error correction rate under the premise of deep fading signals caused by the human body.
  • the second audio playback device when the second audio playback device fails to receive the current audio data sent by the audio source device, it prompts the first audio playback device and the audio source If the device fails to receive the current audio data, it listens to the retransmission information of the audio source device resending the current audio data packet on link 1, and listens to the forwarding information of the first audio playback device forwarding the current audio data on link 2, and judges based on the retransmission As a result and the forwarding judgment result, select Link 1 and/or Link 2 as the target link to receive the current audio data, so as to correct the current packet loss data, wherein the link selected to receive the current audio data is the detection link.
  • Link 1 and link 2 have different spatial positions, different human interference conditions, and signal The fading conditions are different. Therefore, the current audio data can be obtained from different locations, and the link that detects the information can be selected as the target link to receive the current audio data. This can optimize the way the second audio playback device receives the current audio data. Under the premise of the deep fading signal caused by the human body, the data receiving method is improved, and the data error correction rate is improved.
  • the information calculation module locally stores first packet header information, which is the packet header information of the audio source device; the RF receiving device It is used to listen to the retransmission information of the audio source device to resend the audio data packet through the Bluetooth antenna to obtain the second packet header information, and the second packet header information is the packet header information of the signal received by the RF receiving device; the information operation module is used for the first packet header information Perform a correlation operation with the second packet header information to obtain a correlation result.
  • the information calculation module performs correlation calculation on the signal detected by the RF receiving device.
  • the correlation result is greater than the preset value, it indicates that the audio source device is retransmitting the audio data packet, and then outputs the forwarding drive to the transmitting module.
  • the transmitting module forwards the current audio data to the second audio playback device according to the time sequence in which the audio source device resends the current audio data, that is, the first audio playback device and the sound source device forward the current audio data to the second audio playback device synchronously, because the second An audio playback device and a sound source device have different spatial positions, therefore, signals can be provided to the second audio playback device from different locations, that is, in the case of packet loss and error correction, the second audio playback device can obtain a better space Diversity gain, under the premise of the deep fading signal caused by the human body, improves the data receiving method and improves the data error correction rate.
  • the RF receiving device (B1), the public buffer (B2) and the information processing module (B3) are sequentially connected, when the second When the audio playback device did not successfully receive the current audio data packet, the RF receiving device (B1) listened to the retransmission information of the audio source device at link one and resent the current audio data packet, and listened to the first audio playback device at link two to forward The forwarding information of the current audio data; the public buffer (B2) buffers the data of link one and the data of link two respectively; the information processing module (B3) calculates data correlation based on the data of link one and the data of link two respectively and output a link selection control signal; the RF receiving device (B1) selects the link that detects the information as the target link according to the link selection control signal to receive the current audio data.
  • the sound source device and the first audio playback device send the current audio data at the same time, the sound source device and the first audio playback device are in different spatial positions, the human body interference conditions are different, and the signal fading conditions are different. Therefore, they can be received from different positions.
  • the information processing module (B3) listens to the current audio data forwarded by link 1 during the process of listening to link 1 and retransmitting the current audio data, and synchronously listens to the current audio data forwarded by link 2, based on the data of link 1 and the data of link 2 respectively Calculate the data correlation and determine the link that can listen to the information to receive the current audio data, which can optimize the way the second audio playback device receives the current audio data. Under the premise of the deep fading signal caused by the human body, the data is improved. The receiving method improves the data error correction rate.
  • step numbers (letters or numbers) in the present invention to refer to some specific method steps is only for the purpose of convenience and brevity in description, rather than limiting these method steps with letters or numbers order of. Those skilled in the art can understand that the sequence of relevant method steps should be determined by the technology itself and should not be unduly limited due to the existence of step numbers.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

本申请公开了一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,其中,方法包括步骤S100,在接收状态接收第二音频播放设备发送的转发请求;步骤S200,根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息;步骤S300,判断是否侦听到重发信息;步骤S400,将接收状态切换为发送状态;步骤S500,按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据。可以从不同位置向第二音频播放设备提供信号,也就是在丢包纠错的情况下,可以使得第二音频播放设备获得较优的空间分集增益,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。

Description

蓝牙丢包数据收发方法、电路、音频播放设备及系统 技术领域
本申请涉及音频通信技术领域,具体涉及一种蓝牙丢包数据收发方法、电路、音频播放设备及系统。
背景技术
如今,真正的无线立体声(TWS)非常流行。这是因为TWS实现了两个耳机和手机之间的无线传输,给消费者带来了非常方便。
当TWS其中一方失败接收手机发送的音频数据包,另一方成功接收手机发送的音频数据包。在一种方案中,成功方则在后续时隙变为转发方,失败方则在后续时隙变为被转发方,接收转发方转发的音频数据,从而对失败接收的音频数据包进行纠错。在另一种方案中,一旦有一方发生丢失音频数据包,另一方正确接收音频数据包,作为主耳机的一方会回非确认包给手机,请求手机在下一时隙重发,丢失音频数据包的一方会在下一时隙重新接收手机重发的音频数据包来进行纠错。
然而,请参考图1,为现有技术中双无线网络的一种通信结构示例示意图,作为双无线网络中的手机、左耳机和右耳机位于空间的不同位置,左、右耳机被用户头部隔断,而手机与左、右耳机之间也可能存在其它障碍物(例如人体等)。因此,无论是采用一方耳机的转发方式来纠错,还是手机重发方式来纠错,均无法克服人体造成的深度衰落对无线环境下TWS稳定性的严重威胁。
因此,对于双无线蓝牙通信网络中的丢包纠错,在存在因人体造成的深度衰落信号的前提下,如何改善数据接收方式,提高数据纠错率,成为亟待解决的技术问题。
发明内容
基于上述现状,本发明的主要目的在于提供一种蓝牙丢包数据收发 方法、电路、音频播放设备及系统,以在存在因人体造成的深度衰落信号的前提下,改善数据接收方式,提高数据纠错率。
为实现上述目的,本发明采用的技术方案如下:
第一方面,本发明实施例公开了一种蓝牙丢包数据发送方法,应用于第一音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据,方法包括:
步骤S100,在接收状态接收第二音频播放设备发送的转发请求,其中,转发请求表示第二音频播放设备未成功接收音源设备发送的当前音频数据;
步骤S200,根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息,其中,链路一为音源设备发送音频数据的链路;
步骤S300,判断是否侦听到重发信息;如果侦听到重发信息,则顺序执行步骤S400和步骤S500;
步骤S400,将接收状态切换为发送状态;
步骤S500,按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据,其中,链路二为第一音频播放设备和第二音频播放设备之间的交互链路。
可选地,在步骤S500中,采用与音源设备同一预设频段转发当前音频数据。
可选地,步骤S300包括:
步骤S310,提取存储于本地的第一包头信息,第一包头信息为音源设备的包头信息;
步骤S320,对在链路一上侦听到的信号进行信息提取得到第二包头信息;
步骤S330,对第一包头信息和第二包头信息做相关运算得到相关性结果;
步骤S340,判断相关性结果是否大于预设值,如果相关性结果大于预设值,则确定侦听到重发信息。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分 在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。
可选地,在步骤S500中,在切换为发送状态后即刻依次转发后段部分和当前音频数据,以与音源设备重发后段部分和当前音频数据的时序保持同步。
第二方面,本发明实施例公开了一种蓝牙丢包数据接收方法,应用于第二音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据,方法包括:
步骤R100,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,向第一音频播放设备和音源设备提示第二音频播放设备未成功接收当前音频数据;
步骤R200,在链路一侦听音源设备重发当前音频数据包的重发信息,链路一为音源设备发送音频数据的链路;
步骤R300,在链路二侦听第一音频播放设备转发当前音频数据的转发信息,链路二为第一音频播放设备和第二音频播放设备之间的交互链路;
步骤R400,判断是否侦听到重发信息得到重发判断结果;
步骤R500,判断是否侦听到转发信息得到转发判断结果;
步骤R600,依据重发判断结果和转发判断结果,选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。
可选地,步骤R400包括:
步骤R410,提取存储于本地的第一包头信息,第一包头信息为音源设备的包头信息;
步骤R420,对在链路一上侦听到的信号进行信息提取得到第二包头信息;
步骤R430,对第一包头信息和第二包头信息做相关运算得到重发相关性结果;
步骤R440,判断重发相关性结果是否大于预设值,如果重发相关 性结果大于预设值,则确定侦听到重发信息。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。
可选地,第一包头信息为音源设备的完整包头信息,第二包头信息至少为完整包头信息中的部分。
可选地,步骤R500包括:
步骤R510,提取存储于本地的第三包头信息,第三包头信息为音源设备的包头信息;
步骤R520,对在链路二上侦听到的信号进行信息提取得到第四包头信息;
步骤R530,对第三包头信息和第四包头信息做相关运算得到转发相关性结果;
步骤R540,判断转发相关性结果是否大于预设值,如果转发相关性结果大于预设值,则确定侦听到转发信息。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第三包头信息为后段部分,第四包头信息为与后段部分长度对应的数据信息。
可选地,步骤R600包括:
当重发判断结果为侦听到重发信息时,选择链路一作为目标链路来接收当前音频数据;或者,
当转发判断结果为侦听到转发信息时,选择链路二作为目标链路来接收当前音频数据;或者,
当重发判断结果为侦听到重发信息,且转发判断结果为侦听到转发信息时,选择链路一和链路二作为目标链路来接收当前音频数据。
可选地,通过同一预设频段在目标链路来接收当前音频数据。
第三方面,本发明实施例公开了一种蓝牙丢包数据发送装置,应用于第一音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据,装置包括:
请求接收模块,用于在接收状态接收第二音频播放设备发送的转发请求,其中,转发请求表示第二音频播放设备未成功接收音源设备发送的当前音频数据;
重发侦听模块,用于根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息,其中,链路一为音源设备发送音频数据的链路;
重发判断模块,用于判断是否侦听到重发信息;如果侦听到重发信息,则顺序运行状态切换模块和转发模块;
状态切换模块,用于将接收状态切换为发送状态;
转发模块,用于按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据,其中,链路二为第一音频播放设备和第二音频播放设备之间的交互链路。
可选地,转发模块用于采用与音源设备同一预设频段转发当前音频数据。
可选地,重发判断模块包括:
第一提取单元,用于提取存储于本地的第一包头信息,第一包头信息为音源设备的包头信息;
第二提取单元,用于对在链路一上侦听到的信号进行信息提取得到第二包头信息;
相关运算单元,用于对第一包头信息和第二包头信息做相关运算得到相关性结果;
预设值判断单元,用于判断相关性结果是否大于预设值,如果相关性结果大于预设值,则确定侦听到重发信息。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。
可选地,转发模块用于在切换为发送状态后即刻依次转发后段部分和当前音频数据,以与音源设备重发后段部分和当前音频数据的时序保持同步。
第四方面,本发明实施例公开了一种蓝牙丢包数据接收装置,应用于第二音频播放设备,其中,第一音频播放设备和第二音频播放设备构 成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据,装置包括:
提示模块,用于当第二音频播放设备未成功接收音源设备发送的当前音频数据时,向第一音频播放设备和音源设备提示第二音频播放设备未成功接收当前音频数据;
第一侦听模块,用于在链路一侦听音源设备重发当前音频数据包的重发信息,链路一为音源设备发送音频数据的链路;
第二侦听模块,用于在链路二侦听第一音频播放设备转发当前音频数据的转发信息,链路二为第一音频播放设备和第二音频播放设备之间的交互链路;
第一判断模块,用于判断是否侦听到重发信息得到重发判断结果;
第二判断模块,用于判断是否侦听到转发信息得到转发判断结果;
数据接收模块,用于依据重发判断结果和转发判断结果,选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。
可选地,第一判断模块包括:
第一提取单元,用于提取存储于本地的第一包头信息,第一包头信息为音源设备的包头信息;
第二提取单元,用于对在链路一上侦听到的信号进行信息提取得到第二包头信息;
重发相关运算单元,用于对第一包头信息和第二包头信息做相关运算得到重发相关性结果;
第一判断单元,用于判断重发相关性结果是否大于预设值,如果重发相关性结果大于预设值,则确定侦听到重发信息。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。
可选地,第一包头信息为音源设备的完整包头信息,第二包头信息至少为完整包头信息中的部分。
可选地,第二判断模块包括:
第三提取单元,用于提取存储于本地的第三包头信息,第三包头信息为音源设备的包头信息;
第四提取单元,用于对在链路二上侦听到的信号进行信息提取得到第四包头信息;
转发相关运算单元,用于对第三包头信息和第四包头信息做相关运算得到转发相关性结果;
第二判断单元,用于判断转发相关性结果是否大于预设值,如果转发相关性结果大于预设值,则确定侦听到转发信息。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第三包头信息为后段部分,第四包头信息为与后段部分长度对应的数据信息。
可选地,数据接收模具体用于:
当重发判断结果为侦听到重发信息时,选择链路一作为目标链路来接收当前音频数据;或者,
当转发判断结果为侦听到转发信息时,选择链路二作为目标链路来接收当前音频数据;或者,
当重发判断结果为侦听到重发信息,且转发判断结果为侦听到转发信息时,选择链路一和链路二作为目标链路来接收当前音频数据。
可选地,通过同一预设频段在目标链路来接收当前音频数据。
第五方面,本发明实施例公开了一种蓝牙通信发送电路,应用于第一音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据,蓝牙通信发送电路包括:
信息运算模块,在本地存储有第一包头信息,第一包头信息为音源设备的包头信息;
RF接收装置,其输入端用于连接至蓝牙天线,RF接收装置的输出端连接至信息运算模块;RF接收装置用于通过蓝牙天线侦听音源设备重发音频数据包的重发信息得到第二包头信息,第二包头信息为RF接收装置接收到的信号的包头信息;
发射模块,连接至信息运算模块,发射模块用于基于信息运算模块 输出的转发驱动信号按照音源设备重发当前音频数据的时序向第二音频播放设备转发当前音频数据;
信息运算模块用于对第一包头信息和第二包头信息做相关运算得到相关性结果,当相关性结果大于预设值时,向发射模块输出转发驱动信号。
可选地,发射模块采用与音源设备同一预设频段转发当前音频数据。
可选地,信息运算模块包括:
第一缓存器,存储第一包头信息;
第二缓存器,连接至RF接收装置的输出端;第二缓存器用于缓存第二包头信息;
相关性单元,其输入端分别连接至第一缓存器的输出端和第二缓存器的输出端,相关性单元的输出端连接至发射模块;相关性单元用于对第一包头信息和第二包头信息做相关运算得到相关性结果,当相关性结果大于预设值时,向发射模块输出转发驱动信号。
可选地,还包括:
切换开关,其一端用于连接至蓝牙天线,另一端可选择连接于RF接收装置或发射模块;
当切换开关的另一端连接至RF接收装置时,RF接收装置通过蓝牙天线侦听重发信息;
当切换开关的另一端连接至发射模块时,发射模块通过蓝牙天线转发当前音频数据。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;
第一缓存器存储前段部分;
第二缓存器用于缓存第二包头信息中与前段部分长度对应的数据信息。
可选地,发射模块在收到转发驱动信号后即刻依次转发后段部分和当前音频数据,以与音源设备重发后段部分和当前音频数据的时序保持同步。
可选地,音源设备的包头信息为标准协议中的ACCESS CODE数据或ACCESS ADDRESS数据。
第六方面,本发明实施例公开了一种蓝牙通信接收电路,应用于第二音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据,蓝牙通信接收电路包括:
依次连接的RF接收装置、公用缓存器和信息处理模块,其中:
当第二音频播放设备未成功接收当前音频数据包时,RF接收装置在链路一侦听音源设备重发当前音频数据包的重发信息,以及在链路二侦听第一音频播放设备转发当前音频数据的转发信息;其中,链路一为音源设备发送音频数据的链路;链路二为第一音频播放设备和第二音频播放设备之间的交互链路;
公用缓存器分别缓存侦听重发信息时接收到的链路一的数据,以及侦听转发信息时接收到的链路二的数据;
信息处理模块分别基于链路一的数据和链路二的数据计算数据相关性,并输出链路选择控制信号;
RF接收装置根据链路选择控制信号选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错,其中,被选择接收当前音频数据的链路为侦听到信息的链路。
可选地,公用缓存器用于缓存RF接收装置侦听重发信息时得到第二包头信息,第二包头信息为RF接收装置接收到的信号的包头信息;
信息处理模块包括:
第一信息处理单元,在本地存储有第一包头信息,第一包头信息为音源设备的包头信息;第一信息处理单元用于对第一包头信息和第二包头信息做相关运算得到重发相关性结果,当重发相关性结果大于第一阈值时,确定链路一为侦听到信息的链路。
可选地,第一信息处理单元包括:
第一缓存器,存储第一包头信息;
第一相关性子单元,其输入端分别连接至第一缓存器的输出端和公用缓存器的输出端;第一相关性子单元用于对第一包头信息和第二包头 信息做相关运算得到重发相关性结果,当重发相关性结果大于第一阈值时,确定链路一为侦听到信息的链路。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;
第一缓存器存储前段部分,公用缓存器缓存与前段部分长度对应的数据信息。
可选地,第一包头信息为音源设备的完整包头信息;
第一缓存器存储完整包头信息;公用缓存器缓存的数据至少为完整包头信息中的部分。
可选地,信息处理模块包括:
第二信息处理单元,在本地存储有第三包头信息,第三包头信息为音源设备的包头信息;
公用缓存器用于缓存RF接收装置侦听转发信息时得到第四包头信息,第四包头信息为RF接收装置接收到的信号的包头信息;
第二信息处理单元用于对第三包头信息和第四包头信息做相关运算得到转发相关性结果,当转发相关性结果大于第二阈值时,确定链路二为侦听到信息的链路。
可选地,第二信息处理单元包括:
第二缓存器,存储第三包头信息;
第二相关性子单元,其输入端分别连接至第二缓存器的输出端和公用缓存器的输出端;
第二相关性子单元用于对第三包头信息和第四包头信息做相关运算得到转发相关性结果,当转发相关性结果大于第二阈值时,确定链路二为侦听到信息的链路。
可选地,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;
第二缓存器存储后段部分,公用缓存器缓存与后段部分长度对应的数据信息。
可选地,当链路一和链路二均侦听到信息时,RF接收装置通过预设频段在链路一接收音源设备重发的当前音频数据,同时,通过同一预 设频段在链路二接收第一音频播放设备转发的当前音频数据。
第七方面,本发明实施例公开了一种音频播放设备,包括:
处理器,用于实现上述第一方面公开的方法;和/或,用于实现上述第二方面公开的方法。
第八方面,本发明实施例公开了一种音频播放设备,包括:
上述第五方面公开的电路;和/或,上述第六方面公开的电路。
第九方面,本发明实施例公开了一种音频信号处理系统,包括:第一音频播放设备和第二音频播放设备;第一音频播放设备和第二音频播放设备为一对音频播放设备对,
第一音频播放设备具有如上述第三、第四方面公开的装置;第二音频播放设备具有如上述第三、第四方面公开的装置;或者,
第一音频播放设备具有如上述第五、第六方面公开的电路;第二音频播放设备具有如上述第五、第六方面公开的电路。
可选地,还包括:
音源设备,用于向第一音频播放设备和第二音频播放设备提供音频数据。
第七方面,本发明实施例公开了一种计算机可读存储介质,其上存储有计算机程序,存储介质中存储的计算机程序用于被执行实现如上述第一、第二方面公开的方法。
第七方面,本发明实施例公开了一种音频设备的芯片,其上具有集成电路,集成电路被设计成用于实现如上述第一、第二方面公开的方法,或者集成有如上述第五、第六方面公开的电路。
【有益效果】
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,在接收状态接收第二音频播放设备发送的转发请求,根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息,当侦听到重发信息时,将接收状态切换为发送状态,按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据,其中,链路二为第一音频播放设备和第二音频播放设备之间的交互 链路,也就是,在音源设备通过链路一重发当前音频数据的过程中,第一音频播放设备可以同步在链路二转发当前音频数据,链路一和链路二在空间位置不同,因此,可以从不同位置向第二音频播放设备提供信号,也就是在丢包纠错的情况下,可以使得第二音频播放设备获得较优的空间分集增益,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,向第一音频播放设备和音源设备提示第二音频播放设备未成功接收当前音频数据,在链路一侦听音源设备重发当前音频数据包的重发信息,在链路二侦听第一音频播放设备转发当前音频数据的转发信息,依据重发判断结果和转发判断结果,选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。也就是,侦听链路一重发当前音频数据的过程中,同步侦听链路二转发的当前音频数据,链路一和链路二在空间位置不同,所受人体干扰情况不同,信号的衰落情况不同,因此,可以从不同位置来获取当前音频数据,选择侦听到信息的链路作为目标链路来接收当前音频数据,可以优化第二音频播放设备接收当前音频数据的方式,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,信息运算模块在本地存储有第一包头信息,第一包头信息为音源设备的包头信息;RF接收装置用于通过蓝牙天线侦听音源设备重发音频数据包的重发信息得到第二包头信息,第二包头信息为RF接收装置接收到的信号的包头信息;信息运算模块用于对第一包头信息和第二包头信息做相关运算得到相关性结果,当相关性结果大于预设值时,向发射模块输出转发驱动信号;发射模块用于基于信息运算模块输出的转发驱动信号按照音源设备重发当前音频数据的时序向第二音频播放设备转发当前音频数据。也就是,信息运算模块对RF接收装置侦听到的信号进行相关运算,当相关性结果大于预设值时,表明侦听到了音源设备正在重发音频数据包,于是,向发射模块输出转发驱动信号,使 得发射模块按照音源设备重发当前音频数据的时序向第二音频播放设备转发当前音频数据,即,第一音频播放设备和音源设备同步向第二音频播放设备转发当前音频数据,由于第一音频播放设备和音源设备在空间位置不同,因此,可以从不同位置向第二音频播放设备提供信号,也就是在丢包纠错的情况下,可以使得第二音频播放设备获得较优的空间分集增益,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,RF接收装置、公用缓存器和信息处理模块依次连接,当第二音频播放设备未成功接收当前音频数据包时,RF接收装置在链路一侦听音源设备重发当前音频数据包的重发信息,以及在链路二侦听第一音频播放设备转发当前音频数据的转发信息;公用缓存器分别缓存链路一的数据,以及链路二的数据;信息处理模块分别基于链路一的数据和链路二的数据计算数据相关性,并输出链路选择控制信号;RF接收装置根据链路选择控制信号选择侦听到信息的链路作为目标链路来接收当前音频数据。也就是,音源设备和第一音频播放设备同时发送当前音频数据,音源设备和第一音频播放设备在空间位置不同,所受人体干扰情况不同,信号的衰落情况不同,因此,可以从不同位置来获取当前音频数据,信息处理模块侦听链路一重发当前音频数据的过程中,同步侦听链路二转发的当前音频数据,分别基于链路一的数据和链路二的数据计算数据相关性,确定能够侦听到信息的链路来接收当前音频数据,可以优化第二音频播放设备接收当前音频数据的方式,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
本发明的其他有益效果,将在具体实施方式中通过具体技术特征和技术方案的介绍来阐述,本领域技术人员通过这些技术特征和技术方案的介绍,应能理解所述技术特征和技术方案带来的有益技术效果。
附图说明
以下将参照附图对根据本发明的优选实施方式进行描述。图中:
图1为现有技术中双无线网络的一种通信结构示例示意图;
图2为本实施例公开的一种蓝牙丢包数据发送方法流程图;
图3为本实施例公开的一种用户收听音源设备音频信号示例示意图;
图4为本实施例公开的一种判断是否侦听到重发信息的方法流程图;
图5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式;
图6为本实施例公开的一种蓝牙丢包数据接收方法流程图;
图7为本实施例公开的一种判断是否侦听到重发信息得到重发判断结果的方法流程图;
图8为本实施例公开的一种判断是否侦听到转发信息得到转发判断结果的方法流程图;
图9为本实施例公开的一种蓝牙丢包数据发送装置结构示意图;
图10为本实施例公开的一种蓝牙丢包数据接收装置结构示意图;
图11为本实施例公开的一种蓝牙通信发送电路结构示意图;
图12为本实施例公开的一种蓝牙通信接收电路结构示意图。
具体实施方式
以下基于实施例对本申请进行描述,但是本申请并不仅仅限于这些实施例。在下文对本申请的细节描述中,详尽描述了一些特定的细节部分,为了避免混淆本申请的实质,公知的方法、过程、流程、元件并没有详细叙述。
此外,本领域普通技术人员应当理解,在此提供的附图都是为了说明的目的,并且附图不一定是按比例绘制的。
除非上下文明确要求,否则整个说明书和权利要求书中的“包括”、“包含”等类似词语应当解释为包含的含义而不是排他或穷举的含义;也就是说,是“包括但不限于”的含义。
在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于 描述目的,而不能理解为指示或暗示相对重要性。此外,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。
为了在存在因人体造成的深度衰落信号的前提下,改善数据接收方式,提高数据纠错率,本实施例公开了一种蓝牙丢包数据发送方法,请参考图2,为本实施例公开的一种蓝牙丢包数据发送方法流程图,蓝牙丢包数据发送方法应用于第一音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据。在具体实施例中,第一音频播放设备和第二音频播放设备构成音频播放设备对,例如左右耳机、左右声道音箱等。第一音频播放设备和第二音频播放设备与音源设备构成双无线通信蓝牙网络,在一种实施例中,第一音频播放设备、第二音频播放设备采用接收/监听的方式接收音源设备发送的音频数据;在另一种实施例中,第一音频播放设备、第二音频播放设备分别接收接收音源设备发送的音频数据。本实施例中,第一音频播放设备和第二音频播放设备之间还可以进行数据交互。
请参考图2,本实施例公开的一种蓝牙丢包数据发送方法包括步骤S100、步骤S200、步骤S300、步骤S400和步骤S500,其中:
步骤S100,在接收状态接收第二音频播放设备发送的转发请求。本实施例中,所称转发请求表示第二音频播放设备未成功接收音源设备发送的当前音频数据。请参考图3,为本实施例公开的一种用户收听音源设备音频信号示例示意图,其中,左耳机、右耳机对应为第一音频播放设备、第二音频播放设备,手机对应为音源设备。在具体实施过程中,左耳机和右耳机均包含了收发天线,左耳机、右耳机与手机通过链路一进行数据交互(例如接收或监听手机发出的数据),左耳机与右耳机通过链路二进行数据交互。本实施例中,手机按标准协议向左耳机、右耳机发送数据,当右耳机未成功接收或监听到手机发送的当前音频数据时,通过链路二向左耳机发送表示未成功接收当前音频数据的提示信息。
在具体实施过程中,按标准协议,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,会通过第一音频播放设备或第二音频播放设备向音源设备发送表示未成功接收当前音频数据的应答信息 (NACK),而后,音源设备会基于该应答信息重发当前音频数据。在一种实施例中,第一音频播放设备和第二音频播放设备采用接收/监听的方式接收音源设备的音频数据时,可以通过作为接收设备向音源设备发送表应答信息,例如,当第一音频播放设备接收音频数据,第二音频播放设备监听音频数据时,通过第一音频播放设备向音源设备发送表应答信息,再如,当第二音频播放设备接收音频数据,第一音频播放设备监听音频数据时,通过第二音频播放设备向音源设备发送表应答信息。在另一种实施例中,当第一音频播放设备和第二音频播放设备采用双发模式接收音源设备的音频数据时,可以通过第二音频播放设备向音源设备发送表应答信息,或者,通过第一音频播放设备在第二音频播放设备的锚点到来时代为第二音频播放设备向音源设备发送表应答信息。
需要说明的是,本实施例并不限制第一音频播放设备和第二音频播放设备与音源设备的通信方式,只要能够告知音源设备发送表示未成功接收当前音频数据即可。
步骤S200,根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息。本实施例中,链路一为音源设备发送音频数据的链路。在具体实施过程中,按标准协议,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,音源设备会基于否定应答信息(NACK)重发当前音频数据,以便于第二音频播放设备根据重发的当前音频数据对未成功接收的数据进行纠错。本实施例中,由于音源设备是在链路一重发当前音频数据包,因此,可以在链路一侦听音源设备重发当前音频数据包的重发信息。
需要说明的是,由于第一音频播放设备和第二音频播放设备均与音源设备建立了连接,因此,第一音频播放设备能够获知链路一的相关链路信息,在此不再赘述。
步骤S300,判断是否侦听到重发信息。第一音频播放设备通过无线天线可以捕捉空中的无线信号,具体而言,可以侦听对应频段的信号,在具体实施例中,可以通过对侦听到的链路一对应频段的信号进行分析,来确定捕捉到的无线信号是否是音源设备发出的,如果是音源设备发出的无线信号,可以认为侦听到重发信息,也就是音源设备正在重发当前 音频数据包,本实施例中,如果侦听到重发信息,则顺序执行步骤S400和步骤S500。
步骤S400,将接收状态切换为发送状态。在具体实施过程中,蓝牙信号的收发可以采用现有的天线及阻抗电路等来实现。本实施例中,在侦听到音源设备重发信息后,可以将天线及相关的电路配置为发送状态,以便于发送数据。
步骤S500,按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据。本实施例中,所称链路二为第一音频播放设备和第二音频播放设备之间的交互链路。本实施例中,第一音频播放设备采用与音源设备相同的时序来转发当前音频数据,可以使得第二音频播放设备能够同时接收音源设备重发的当前音频数据以及第一音频播放设备转发的当前音频数据,从而,可以使得第二音频播放设备获得较优的空间分集增益。
需要说明的是,本实施例中所称“相同的时序”在时间上可以存在一定的时间点的先后,而非完全相等的时间点。
为了便于第二音频播放设备能够同时接收音源设备和第一音频播放设备的数据,在可选的实施例中,在步骤S500中,采用与音源设备同一预设频段转发当前音频数据。所称预设频段可以依据经验来确定,具体地,可以利用预设频段中的一些频点来接收第一音频播放设备转发的当前数据,利用预设频段中的另一些频点来接收音源设备重发的当前音频数据。
需要说明的是,在无线通信中,由于收发天线在同一时段可以工作在多个频点构成的频段中,基于此,本实施例中,通过分配预设频段中的频点,可以同时接收第一音频播放设备、音源设备的数据,并且无需额外增加硬件设备,例如无需额外增设天线等。
需要说明的是,本实施例中所称“同时”在时间上可以存在一定的时间点的先后,而非完全相等的时间点。
在可选的实施例中,请参考图4,为本实施例公开的一种判断是否侦听到重发信息的方法流程图,在执行步骤S300时,判断是否侦听到重发信息包括:步骤S310、步骤S320、步骤S330和步骤S340,其中:
步骤S310,提取存储于本地的第一包头信息。本实施例中,所称第一包头信息为音源设备的包头信息。请参考图5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式,一般来讲,access code或access address都是给蓝牙接收方做同步、包检测以及接收对齐的包头信息,后续的Header,Payload或PDU才有数据信息。本实施例中,所称音源设备的包头信息为access code或access address。在具体实施过程中,可以在本地存储音源设备的包头信息,例如access code或access address,由此可以直接提取该存储的包头信息。
步骤S320,对在链路一上侦听到的信号进行信息提取得到第二包头信息。本实施例中,在对链路一上的信号进行侦听时,针对侦听到的信号,可以进行信息提取得到第二包头信息。通过该第二包头信息可以对发出信号方的身份进行确认等,例如可以进行包检测。
步骤S330,对第一包头信息和第二包头信息做相关运算得到相关性结果。在具体实施例中,可以通过例如卷积、矩阵运算等方式来做相关运算得到相关性结果。
步骤S340,判断相关性结果是否大于预设值。本实施例中,所称预设值可以根据经验来确定,本实施例中,如果相关性结果大于预设值,则确定侦听到重发信息。
为了更好地进行数据同步,以及减少数据运算量,在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。也就是,音源设备的包头信息按时序分成了前、后段两部分,其中,处于前段部分的作为第一包头信息存储于本地。在侦听重发信息时,只需提取与前段部分长度对应的数据信息,将该部分作为第二包头信息来与第一包头信息做相关运算,由此可以减少相关运算的计算量。
在执行步骤S500中,在切换为发送状态后即刻依次转发后段部分和当前音频数据,以与音源设备重发后段部分和当前音频数据的时序保 持同步。也就是,在切换为发送状态后立刻转发后段部分和紧随其后的转发包数据本体部分。在做相关运算时,音源设备正在重发后段部分和紧随其后的重发包数据本体部分,此时,即刻发送后段部分,可以与音源设备重发后段部分和紧随其后的数据本体部分在时序上保持同步。
为了在存在因人体造成的深度衰落信号的前提下,改善数据接收方式,提高数据纠错率,本实施例公开了一种蓝牙丢包数据接收方法,请参考图6,为本实施例公开的一种蓝牙丢包数据接收方法流程图,蓝牙丢包数据接收方法应用于第二音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据。在具体实施例中,第一音频播放设备和第二音频播放设备构成音频播放设备对,例如左右耳机、左右声道音箱等。第一音频播放设备和第二音频播放设备与音源设备构成双无线通信蓝牙网络,在一种实施例中,第一音频播放设备、第二音频播放设备采用接收/监听的方式接收音源设备发送的音频数据;在另一种实施例中,第一音频播放设备、第二音频播放设备分别接收接收音源设备发送的音频数据。本实施例中,第一音频播放设备和第二音频播放设备之间还可以进行数据交互。
请参考图6,本实施例公开的一种蓝牙丢包数据接收方法包括步骤R100、步骤R200、步骤R300、步骤R400和步骤R500,其中:
步骤R100,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,向提示第一音频播放设备和音源设备第二音频播放设备未成功接收当前音频数据。请参考图3,为本实施例公开的一种用户收听音源设备音频信号示例示意图,其中,以左耳机、右耳机对应为第一音频播放设备、第二音频播放设备,手机对应为音源设备为例进行说明。在具体实施过程中,左耳机和右耳机均包含了收发天线,左耳机、右耳机与手机通过链路一进行数据交互(例如接收或监听手机发出的数据),左耳机与右耳机通过链路二进行数据交互。本实施例中,手机按标准协议向左耳机、右耳机发送数据,当右耳机未成功接收或监听到手机发送的当前音频数据时,通过链路二向左耳机发送表示未成功接收当前音频数据的提示信息。
对于提示音源设备(例如手机)未成功接收当前音频数据:在具体实施过程中,按标准协议,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,会通过第一音频播放设备或第二音频播放设备向音源设备发送表示未成功接收当前音频数据的应答信息(NACK),而后,音源设备会基于该应答信息重发当前音频数据。在一种实施例中,第一音频播放设备和第二音频播放设备采用接收/监听的方式接收音源设备的音频数据时,可以通过作为接收设备向音源设备发送表应答信息,例如,当第一音频播放设备接收音频数据,第二音频播放设备监听音频数据时,通过第一音频播放设备向音源设备发送表应答信息,再如,当第二音频播放设备接收音频数据,第一音频播放设备监听音频数据时,通过第二音频播放设备向音源设备发送表应答信息。在另一种实施例中,当第一音频播放设备和第二音频播放设备采用双发模式接收音源设备的音频数据时,可以通过第二音频播放设备向音源设备发送表应答信息,或者,通过第一音频播放设备在第二音频播放设备的锚点到来时代为第二音频播放设备向音源设备发送表应答信息。
需要说明的是,本实施例并不限制第一音频播放设备和第二音频播放设备与音源设备的通信方式,只要能够告知音源设备发送表示未成功接收当前音频数据即可。
步骤R200,在链路一侦听音源设备重发当前音频数据包的重发信息。本实施例中,所称链路一为音源设备发送音频数据的链路。本实施例中,在音源设备得到第二音频播放设备未成功接收当前音频数据的否定应答信息(NACK)时,音源设备会通过链路一在预设频段重发当前音频数据包。因此,可以在链路一侦听音源设备的重发信息。具体地,通过无线天线可以捕捉空中的无线信号,具体而言,可以侦听对应频段的信号,在具体实施例中,可以通过对侦听到的链路一对应频段的信号进行分析,来确定捕捉到的无线信号是否是音源设备发出的,如果是音源设备发出的无线信号,可以认为侦听到重发信息,也就是音源设备正在重发当前音频数据包。
步骤R300,在链路二侦听第一音频播放设备转发当前音频数据的转发信息。本实施例中,所称链路二为第一音频播放设备和第二音频播 放设备之间的交互链路。本实施例中,在第一音频播放设备得到第二音频播放设备发送的转发请求时,第一音频播放设备会通过链路二在与音源设备相同的预设频段转发当前音频数据包。因此,可以在链路二侦听第一音频播放设备的转发信息。具体地,通过无线天线可以捕捉空中的无线信号,具体而言,可以侦听对应频段的信号,在具体实施例中,可以通过对侦听到的链路二对应频段的信号进行分析,来确定捕捉到的无线信号是否是第一音频播放设备发出的,如果是第一音频播放设备发出的无线信号,可以认为侦听到转发信息,也就是第一音频播放设备正在转发当前音频数据包。
本实施例中,第一音频播放设备采用与音源设备同一预设频段转发当前音频数据。所称预设频段可以依据经验来确定,具体地,可以利用预设频段中的一些频点来接收第一音频播放设备转发的当前数据,利用预设频段中的另一些频点来接收音源设备重发的当前音频数据。
需要说明的是,在无线通信中,由于收发天线在同一时段可以工作在多个频点构成的频段中,基于此,本实施例中,通过分配预设频段中的频点,可以同时接收第一音频播放设备、音源设备的数据,并且无需额外增加硬件设备,例如无需额外增设天线等。
需要说明的是,本实施例中所称“同时”在时间上可以存在一定的时间点的先后,而非完全相等的时间点。
需要说明的是,本实施例中,并不限制步骤R200和步骤R300之间的执行先后顺序。
步骤R400,判断是否侦听到重发信息得到重发判断结果。具体地,可以在对链路一捕捉到的信号进行分析,由此确定是否侦听到重发信息得到重发判断结果。
步骤R500,判断是否侦听到转发信息得到转发判断结果。具体地,可以在对链路二捕捉到的信号进行分析,由此确定是否侦听到转发信息得到转发判断结果。
需要说明的是,本实施例中,并不限制步骤R400和步骤R500之间的执行先后顺序。
步骤R600,依据重发判断结果和转发判断结果,选择链路一和/或 链路二作为目标链路来接收当前音频数据。本实施例中,在得到重发判断结果和转发判断结果后,可以选择一个或两个链路来接收当前音频数据,从而对当前丢包的数据进行纠错,其中,被选择接收当前音频数据的链路为侦听到信息的链路。具体地,由于音源设备与第一音频播放设备的位置不同,因此,音源设备与第一音频播放设备的受人体干扰情况不同,也就是,与第二音频播放设备通信的信号强度也不同,本实施例中,通过重发判断结果和转发判断结果,可以确定能否接收到音源设备、第一音频播放设备的当前音频数据。在具体实施过程中:
当重发判断结果为侦听到重发信息时,选择链路一作为目标链路来接收当前音频数据;也就是,在预设接收频宽范围内,通过链路一接收音源设备重发的当前音频数据;
当转发判断结果为侦听到转发信息时,选择链路二作为目标链路来接收当前音频数据;也就是,在预设接收频宽范围内,通过链路二接收第一音频播放设备转发的当前音频数据;
当重发判断结果为侦听到重发信息,且转发判断结果为侦听到转发信息时,选择链路一和链路二作为目标链路来接收当前音频数据。也就是,在预设接收频宽范围内,同时接收音源设备重发的当前音频数据以及第一音频播放设备转发的当前音频数据。
在可选的实施例中,通过同一预设频段在目标链路来接收当前音频数据。也就是,第一音源设备采用与音源设备同一预设频段转发当前音频数据。第二音源设备在该同一预设频段同时接收音源设备的当前音频数据、第一音频播放设备的当前音频数据。
所称预设频段可以依据经验来确定,具体地,可以利用预设频段中的一些频点来接收第一音频播放设备转发的当前数据,利用预设频段中的另一些频点来接收音源设备重发的当前音频数据。
需要说明的是,在无线通信中,由于收发天线在同一时段可以工作在多个频点构成的频段中,基于此,本实施例中,通过分配预设频段中的频点,可以同时接收第一音频播放设备、音源设备的数据,并且无需额外增加硬件设备,例如无需额外增设天线等。
需要说明的是,本实施例中所称“同时”在时间上可以存在一定的时 间点的先后,而非完全相等的时间点。
本实施例中,通过链路一和链路二作为目标链路来接收当前音频数据,链路一和链路二在空间位置不同,因此,可以从不同位置向第二音频播放设备提供信号,也就是在丢包纠错的情况下,可以使得第二音频播放设备获得较优的空间分集增益,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
在可选的实施例中,请参考图7,为本实施例公开的一种判断是否侦听到重发信息得到重发判断结果的方法流程图,在执行步骤R400时,判断是否侦听到重发信息得到重发判断结果包括:步骤R410、步骤R420、步骤R430和步骤R440,其中:
步骤R410,提取存储于本地的第一包头信息。本实施例中,所称第一包头信息为音源设备的包头信息。请参考图5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式,一般来讲,access code或access address都是给蓝牙接收方做同步、包检测以及接收对齐的包头信息,后续的Header,Payload或PDU才有数据信息。本实施例中,所称音源设备的包头信息为access code或access address。在具体实施过程中,可以在本地存储音源设备的包头信息,例如access code或access address,由此可以直接提取该存储的包头信息。
步骤R420,对在链路一上侦听到的信号进行信息提取得到第二包头信息。本实施例中,在对链路一上的信号进行侦听时,针对侦听到的信号,可以进行信息提取得到第二包头信息。通过该第二包头信息可以对发出信号方的身份进行确认等,例如可以进行包检测。
步骤R430,对第一包头信息和第二包头信息做相关运算得到重发相关性结果。在具体实施例中,可以通过例如卷积、矩阵运算等方式来做相关运算得到相关性结果。
步骤R440,判断重发相关性结果是否大于预设值。本实施例中,所称预设值可以根据经验来确定,本实施例中,如果重发相关性结果大于预设值,则确定侦听到重发信息。
在一种实施例中,为了减少数据运算量,在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。也就是,音源设备的包头信息按时序分成了前、后段两部分,其中,处于前段部分的作为第一包头信息存储于本地。在侦听重发信息时,只需提取与前段部分长度对应的数据信息,将该部分作为第二包头信息来与第一包头信息做相关运算,由此可以减少相关运算的计算量。
在另一种实施例中,考虑到有可能存在信号丢失的情况,为了提高相关运算的完整性,在可选的实施例中,第一包头信息为音源设备的完整包头信息,第二包头信息至少为完整包头信息中的部分。也就是,在链路一上侦听到部分信息时,即可与第一包头信息中相应部分的数据进行相关性运算,得到重发相关性结果。由此,可以避免因信号干扰导致误认为没有侦听到重发信息。
在可选的实施例中,请参考图8,为本实施例公开的一种判断是否侦听到转发信息得到转发判断结果的方法流程图,在执行步骤R500时,判断是否侦听到转发信息得到转发判断结果包括:步骤R510、步骤R520、步骤R530和步骤R540,其中:
步骤R510,提取存储于本地的第三包头信息。本实施例中,所称第三包头信息为音源设备的包头信息。请参考图5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式,一般来讲,access code或access address都是给蓝牙接收方做同步、包检测以及接收对齐的包头信息,后续的Header,Payload或PDU才有数据信息。本实施例中,所称音源设备的包头信息为access code或access address。在具体实施过程中,可以在本地存储音源设备的包头信息,例如access code或access address,由此可以直接提取该存储的包头信息。
需要说明的是,虽然是第一音频播放设备转发的数据包,但是,由 于第一音频播放设备转发的是当前音频数据包,因此,其包含的是音源设备的包头信息,故所称第三包头信息为音源设备的包头信息。
步骤R520,对在链路二上侦听到的信号进行信息提取得到第四包头信息。本实施例中,在对链路二上的信号进行侦听时,针对侦听到的信号,可以进行信息提取得到第四包头信息。通过该第四包头信息可以对发出信号方的身份进行确认等,例如可以进行包检测。
步骤R530,对第三包头信息和第四包头信息做相关运算得到转发相关性结果。在具体实施例中,可以通过例如卷积、矩阵运算等方式来做相关运算得到转发相关性结果。
步骤R540,判断转发相关性结果是否大于预设值。本实施例中,所称预设值可以根据经验来确定,本实施例中,如果转发相关性结果大于预设值,则确定侦听到转发信息。
为了更好地进行数据同步,以及减少数据运算量,在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第三包头信息为后段部分,第四包头信息为与后段部分长度对应的数据信息。也就是,音源设备的包头信息按时序分成了前、后段两部分,其中,处于后段部分的作为第三包头信息存储于本地。在侦听转发信息时,只需提取与后段部分长度对应的数据信息,将该部分作为第四包头信息来与第三包头信息做相关运算,由此可以减少相关运算的计算量。
需要说明的是,本实施例中,由于第一音频播放设备转发音频数据时,只转发后段部分和紧随其后的重发包数据本体部分,因此,只需将后段部分作为第三包头信息存储于本地即可。
本实施例还公开了一种蓝牙丢包数据发送装置,请参考图9,为本实施例公开的一种蓝牙丢包数据发送装置结构示意图,蓝牙丢包数据发送装置应用于第一音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据。该装置包括:请求接收模块100、重发侦听模块200、重发判断模块300、状态切换模块400和转发模块500,其中:
请求接收模块100,用于在接收状态接收第二音频播放设备发送的转发请求,其中,转发请求表示第二音频播放设备未成功接收音源设备发送的当前音频数据;
重发侦听模块200,用于根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息,其中,链路一为音源设备发送音频数据的链路;
重发判断模块300,用于判断是否侦听到重发信息;如果侦听到重发信息,则顺序运行状态切换模块400和转发模块500;
状态切换模块400,用于将接收状态切换为发送状态;
转发模块500,用于按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据,其中,链路二为第一音频播放设备和第二音频播放设备之间的交互链路。
在可选的实施例中,转发模块500用于采用与音源设备同一预设频段转发当前音频数据。
在可选的实施例中,重发判断模块300包括:
第一提取单元,用于提取存储于本地的第一包头信息,第一包头信息为音源设备的包头信息;
第二提取单元,用于对在链路一上侦听到的信号进行信息提取得到第二包头信息;
相关运算单元,用于对第一包头信息和第二包头信息做相关运算得到相关性结果;
预设值判断单元,用于判断相关性结果是否大于预设值,如果相关性结果大于预设值,则确定侦听到重发信息。
在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。
在可选的实施例中,转发模块500用于在切换为发送状态后即刻依次转发后段部分和当前音频数据,以与音源设备重发后段部分和当前音频数据的时序保持同步。
本实施例还公开了一种蓝牙丢包数据接收装置,请参考图10,为本 实施例公开的一种蓝牙丢包数据接收装置结构示意图,该蓝牙丢包数据接收装置,应用于第二音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据。该装置包括:提示模块10、第一侦听模块20、第二侦听模块30、第一判断模块40、第二判断模块50和数据接收模块60,其中:
提示模块10,用于当第二音频播放设备未成功接收音源设备发送的当前音频数据时,向第一音频播放设备和音源设备提示第二音频播放设备未成功接收当前音频数据;
第一侦听模块20,用于在链路一侦听音源设备重发当前音频数据包的重发信息,链路一为音源设备发送音频数据的链路;
第二侦听模块30,用于在链路二侦听第一音频播放设备转发当前音频数据的转发信息,链路二为第一音频播放设备和第二音频播放设备之间的交互链路;
第一判断模块40,用于判断是否侦听到重发信息得到重发判断结果;
第二判断模块50,用于判断是否侦听到转发信息得到转发判断结果;
数据接收模块60,用于依据重发判断结果和转发判断结果,选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。
在可选的实施例中,第一判断模块40包括:
第一提取单元,用于提取存储于本地的第一包头信息,第一包头信息为音源设备的包头信息;
第二提取单元,用于对在链路一上侦听到的信号进行信息提取得到第二包头信息;
重发相关运算单元,用于对第一包头信息和第二包头信息做相关运算得到重发相关性结果;
第一判断单元,用于判断重发相关性结果是否大于预设值,如果重发相关性结果大于预设值,则确定侦听到重发信息。
在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一包头信息为前段部分,第二包头信息为与前段部分长度对应的数据信息。
在可选的实施例中,第一包头信息为音源设备的完整包头信息,第二包头信息至少为完整包头信息中的部分。
在可选的实施例中,第二判断模块50包括:
第三提取单元,用于提取存储于本地的第三包头信息,第三包头信息为音源设备的包头信息;
第四提取单元,用于对在链路二上侦听到的信号进行信息提取得到第四包头信息;
转发相关运算单元,用于对第三包头信息和第四包头信息做相关运算得到转发相关性结果;
第二判断单元,用于判断转发相关性结果是否大于预设值,如果转发相关性结果大于预设值,则确定侦听到转发信息。
在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第三包头信息为后段部分,第四包头信息为与后段部分长度对应的数据信息。
在可选的实施例中,数据接收模块60具体用于:
当重发判断结果为侦听到重发信息时,选择链路一作为目标链路来接收当前音频数据;或者,
当转发判断结果为侦听到转发信息时,选择链路二作为目标链路来接收当前音频数据;或者,
当重发判断结果为侦听到重发信息,且转发判断结果为侦听到转发信息时,选择链路一和链路二作为目标链路来接收当前音频数据。
在可选的实施例中,通过同一预设频段在目标链路来接收当前音频数据。
为了在存在因人体造成的深度衰落信号的前提下,改善数据接收方式,提高数据纠错率,本实施例公开了一种蓝牙通信发送电路,请参考图11,为本实施例公开的一种蓝牙通信发送电路结构示意图,该蓝牙通信发送电路应用于第一音频播放设备,其中,第一音频播放设备和第二 音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据。在具体实施例中,第一音频播放设备和第二音频播放设备构成音频播放设备对,例如左右耳机、左右声道音箱等。第一音频播放设备和第二音频播放设备与音源设备构成双无线通信蓝牙网络,在一种实施例中,第一音频播放设备、第二音频播放设备采用接收/监听的方式接收音源设备发送的音频数据;在另一种实施例中,第一音频播放设备、第二音频播放设备分别接收接收音源设备发送的音频数据。本实施例中,第一音频播放设备和第二音频播放设备之间还可以进行数据交互。
请参考图11,本实施例公开的一种蓝牙通信发送电路包括:信息运算模块1、RF接收装置2和发射模块3,其中:
信息运算模块1在本地存储有第一包头信息。本实施例中,所称第一包头信息为音源设备的包头信息。请参考图5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式,一般来讲,access code或access address都是给蓝牙接收方做同步、包检测以及接收对齐的包头信息,后续的Header,Payload或PDU才有数据信息。本实施例中,所称音源设备的包头信息为access code或access address。在具体实施过程中,可以在本地存储音源设备的包头信息,例如access code或access address,由此可以直接提取该存储的包头信息。
RF接收装置2的输入端用于连接至蓝牙天线,RF接收装置2的输出端连接至信息运算模块1。本实施例中,RF接收装置1用于通过蓝牙天线侦听音源设备重发音频数据包的重发信息得到第二包头信息,本实施例中,所称第二包头信息为RF接收装置1接收到的信号的包头信息。在具体实施例中,RF接收装置2在通过蓝牙天线对音源设备的信号进行侦听时,针对侦听到的信号,可以进行信息提取得到第二包头信息。通过该第二包头信息可以对发出信号方的身份进行确认等,例如可以进行包检测。
在具体实施过程中,信息运算模块1用于对第一包头信息和第二包 头信息做相关运算得到相关性结果,当相关性结果大于预设值时,向发射模块3输出转发驱动信号。本实施例中,所称预设值可以根据经验来确定,本实施例中,如果相关性结果大于预设值,则可以确定侦听到重发信息。在具体实施例中,可以通过例如卷积、矩阵运算等方式来做相关运算得到相关性结果。
发射模块3连接至信息运算模块1,发射模块3用于基于信息运算模块1输出的转发驱动信号按照音源设备重发当前音频数据的时序向第二音频播放设备转发当前音频数据。请参考图11,发射模块3通过包括RF发射装置和数字发射装置来实现。本实施例中,当确定侦听到重发信息时,发射模块3采用与音源设备相同的时序来转发当前音频数据,可以使得第二音频播放设备能够同时接收音源设备重发的当前音频数据以及第一音频播放设备转发的当前音频数据,从而,可以使得第二音频播放设备获得较优的空间分集增益。
需要说明的是,本实施例中所称“相同的时序”在时间上可以存在一定的时间点的先后,而非完全相等的时间点。
为了便于第二音频播放设备能够同时接收音源设备和第一音频播放设备的数据,在可选的实施例中,发射模块3采用与音源设备同一预设频段转发当前音频数据。所称预设频段可以依据经验来确定,具体地,第二音频播放设备可以利用预设频段中的一些频点来接收第一音频播放设备转发的当前数据,利用预设频段中的另一些频点来接收音源设备重发的当前音频数据。
需要说明的是,在无线通信中,由于收发天线在同一时段可以工作在多个频点构成的频段中,基于此,本实施例中,通过分配预设频段中的频点,可以同时接收第一音频播放设备、音源设备的数据,并且无需额外增加硬件设备,例如无需额外增设天线等。
需要说明的是,本实施例中所称“同时”在时间上可以存在一定的时间点的先后,而非完全相等的时间点。
请参考图11,在可选的实施例中,信息运算模块1包括:第一缓存器11、第二缓存器12和相关性单元13,其中:
第一缓存器11存储第一包头信息。
第二缓存器12连接至RF接收装置2的输出端。本实施例中,第二缓存器12用于缓存第二包头信息。
相关性单元13的输入端分别连接至第一缓存器11的输出端和第二缓存器12的输出端,相关性单元13的输出端连接至发射模块3。本实施例中,相关性单元13用于对第一包头信息和第二包头信息做相关运算得到相关性结果,当相关性结果大于预设值时,向发射模块3输出转发驱动信号。在具体实施过程中,相关性单元13可以通过相关计算装置、门限判决装置来实现,具体地,相关计算装置可以进行卷积、矩阵运算等,本实施例并不限制相关计算的具体计算方式;门限判决装置可以通过例如比较电路来实现。
请参考图11,在可选的实施例中,该蓝牙通信发送电路还包括:切换开关4,切换开关4的一端用于连接至蓝牙天线,另一端可选择连接于RF接收装置2或发射模块3,也就是,切换开关4的另一端要么连接于RF接收装置2,要么连接于发射模块3。在具体实施过程中:当切换开关4的另一端连接至RF接收装置2时,RF接收装置2通过蓝牙天线侦听重发信息;当切换开关4的另一端连接至发射模块3时,发射模块3通过蓝牙天线转发当前音频数据。
为了更好地进行数据同步,以及减少数据运算量,在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第一缓存器11存储前段部分;第二缓存器12用于缓存第二包头信息中与前段部分长度对应的数据信息。也就是,音源设备的包头信息按时序分成了前、后段两部分,其中,处于前段部分的作为第一包头信息存储于本地。RF接收装置2在侦听重发信息时,只需提取与前段部分长度对应的数据信息,将该部分作为第二包头信息,而后,信息运算模块1只需将与前段部分长度对应的数据信息来与第一包头信息做相关运算,由此可以减少相关运算的计算量。
发射模块3在收到转发驱动信号后即刻依次转发后段部分和当前音频数据,以与音源设备重发后段部分和当前音频数据的时序保持同步。也就是,在切换开关4切换为发送状态后,发射模块3立刻转发后段部分和紧随其后的转发包数据本体部分。可以与音源设备重发后段部分和 紧随其后的数据本体部分在时序上保持同步。
为了在存在因人体造成的深度衰落信号的前提下,改善数据接收方式,提高数据纠错率,本实施例公开了一种蓝牙丢包数据接收电路,请参考图12,为本实施例公开的一种蓝牙通信接收电路结构示意图,该蓝牙通信接收电路应用于第二音频播放设备,其中,第一音频播放设备和第二音频播放设备构成音频播放设备对,第一音频播放设备和第二音频播放设备能够分别从音源设备接收音频数据。在具体实施例中,第一音频播放设备和第二音频播放设备构成音频播放设备对,例如左右耳机、左右声道音箱等。第一音频播放设备和第二音频播放设备与音源设备构成双无线通信蓝牙网络,在一种实施例中,第一音频播放设备、第二音频播放设备采用接收/监听的方式接收音源设备发送的音频数据;在另一种实施例中,第一音频播放设备、第二音频播放设备分别接收接收音源设备发送的音频数据。本实施例中,第一音频播放设备和第二音频播放设备之间还可以进行数据交互。
请参考图12,蓝牙通信接收电路包括:依次连接的RF接收装置B1、公用缓存器B2和信息处理模块B3,其中:
当第二音频播放设备未成功接收当前音频数据包时,RF接收装置B1在链路一侦听音源设备重发当前音频数据包的重发信息,以及在链路二侦听第一音频播放设备转发当前音频数据的转发信息。本实施例中,所称链路一为音源设备发送音频数据的链路,所称链路二为第一音频播放设备和第二音频播放设备之间的交互链路。
请参考图3,为本实施例公开的一种用户收听音源设备音频信号示例示意图,其中,以左耳机、右耳机对应为第一音频播放设备、第二音频播放设备,手机对应为音源设备为例进行说明。在具体实施过程中,左耳机和右耳机均包含了收发天线,左耳机、右耳机与手机通过链路一进行数据交互(例如接收或监听手机发出的数据),左耳机与右耳机通过链路二进行数据交互。手机按标准协议向左耳机、右耳机发送数据,当右耳机未成功接收或监听到手机发送的当前音频数据时,一方面,第二音频播放设备可以通过链路二向第一音频播放设备发送表示未成功接收当前音频数据的提示信息;另一方面,会通过第一音频播放设备或第二 音频播放设备向音源设备发送表示未成功接收当前音频数据的应答信息(NACK)。
本实施例中,一方面,在第一音频播放设备得到第二音频播放设备发送的转发请求时,第一音频播放设备会通过链路二在与音源设备相同的预设频段转发当前音频数据包。另一方面,在音源设备得到第二音频播放设备未成功接收当前音频数据的否定应答信息(NACK)时,音源设备会通过链路一在预设频段重发当前音频数据包。因此,可以在链路一侦听音源设备的重发信息。
基于上述分析,一方面,RF接收装置B1可以对侦听到的链路二对应频段的信号进行分析,来确定捕捉到的无线信号是否是第一音频播放设备发出的,如果是第一音频播放设备发出的无线信号,可以认为侦听到转发信息,也就是第一音频播放设备正在转发当前音频数据包。另一方面,RF接收装置B1可以通过对侦听到的链路一对应频段的信号进行分析,来确定捕捉到的无线信号是否是音源设备发出的,如果是音源设备发出的无线信号,可以认为侦听到重发信息,也就是音源设备正在重发当前音频数据包。
公用缓存器B2分别缓存侦听重发信息时接收到的链路一的数据,以及侦听转发信息时接收到的链路二的数据。本实施例中,通过公用缓存器B2来缓存侦听的链路一、链路二的数据之后,可以对缓存的数据进行分析,确定信号的相关性。在具体实施过程中,可以每侦听到一个数据即缓存。需要说明的是,在具体实施过程中,公用缓存器B2应当分成两个区域,该两个区域分别对应缓存链路一、链路二的数据,以免数据重叠交叉。
信息处理模块B3分别基于链路一的数据和链路二的数据计算数据相关性,并输出链路选择控制信号。本实施例中,通过信息处理模块B3来进行数据相关性的计算,可以确定是否侦听到重发信息和/或转发信息。
RF接收装置B1根据链路选择控制信号选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。本实施例中,被选择接收当前音频数据的链路为侦听到信息的链路。具体地, 由于音源设备与第一音频播放设备的位置不同,因此,音源设备与第一音频播放设备的受人体干扰情况不同,也就是,与第二音频播放设备通信的信号强度也不同,本实施例中,通过数据相关性计算结果,可以确定能否接收到音源设备、第一音频播放设备的当前音频数据。在具体实施过程中:
当链路一的数据相关性计算结果为具有相关性时,选择链路一作为目标链路来接收当前音频数据;也就是,在预设接收频宽范围内,通过链路一接收音源设备重发的当前音频数据;
当链路二的数据相关性计算结果为具有相关性时,选择链路二作为目标链路来接收当前音频数据;也就是,在预设接收频宽范围内,通过链路二接收第一音频播放设备转发的当前音频数据;
当链路一的数据相关性计算结果为具有相关性,且链路二的数据相关性计算结果为具有相关性时,选择链路一和链路二作为目标链路来接收当前音频数据。也就是,在预设接收频宽范围内,同时接收音源设备重发的当前音频数据以及第一音频播放设备转发的当前音频数据。
在可选的实施例中,通过同一预设频段在目标链路来接收当前音频数据。也就是,第一音源设备采用与音源设备同一预设频段转发当前音频数据。第二音源设备在该同一预设频段同时接收音源设备的当前音频数据、第一音频播放设备的当前音频数据。
所称预设频段可以依据经验来确定,具体地,可以利用预设频段中的一些频点来接收第一音频播放设备转发的当前数据,利用预设频段中的另一些频点来接收音源设备重发的当前音频数据。
需要说明的是,在无线通信中,由于收发天线在同一时段可以工作在多个频点构成的频段中,基于此,本实施例中,通过分配预设频段中的频点,可以同时接收第一音频播放设备、音源设备的数据,并且无需额外增加硬件设备,例如无需额外增设天线等。
需要说明的是,本实施例中所称“同时”在时间上可以存在一定的时间点的先后,而非完全相等的时间点。
请参考图12,在可选的实施例中,信息处理模块B3包括:第一信息处理单元B31,所称第一包头信息为音源设备的包头信息。请参考图 5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式,一般来讲,access code或access address都是给蓝牙接收方做同步、包检测以及接收对齐的包头信息,后续的Header,Payload或PDU才有数据信息。本实施例中,所称音源设备的包头信息为access code或access address。在具体实施过程中,可以在本地存储音源设备的包头信息,例如access code或access address,由此可以直接提取该存储的包头信息。具体地,第一信息处理单元B31包括:第一缓存器B311,通过第一缓存器B311存储第一包头信息。
公用缓存器B2用于缓存RF接收装置B1侦听重发信息时得到第二包头信息,第二包头信息为RF接收装置1接收到的信号的包头信息。RF接收装置B1在对链路一上的信号进行侦听时,针对侦听到的信号,可以进行信息提取得到第二包头信息。通过该第二包头信息可以对发出信号方的身份进行确认等,例如可以进行包检测。
在具体实施过程中,第一信息处理单元B31用于对第一包头信息和第二包头信息做相关运算得到重发相关性结果,当重发相关性结果大于第一阈值时,确定链路一为侦听到信息的链路。在具体实施例中,可以通过例如卷积、矩阵运算等方式来做相关运算得到重发相关性结果。本实施例中,所称第一阈值可以根据经验来确定,本实施例中,如果重发相关性结果大于第一阈值,则确定侦听到重发信息。
请参考图12,第一信息处理单元B31包括:第一相关性子单元B312,第一相关性子单元B312的输入端分别连接至第一缓存器B311的输出端和公用缓存器B2的输出端;第一相关性子单元B312用于对第一包头信息和第二包头信息做相关运算得到重发相关性结果,当重发相关性结果大于第一阈值时,确定链路一为侦听到信息的链路。第一相关性子单元B312可以通过相关计算装置和门限判决装置来实现,相关计算装置可以进行例如卷积、矩阵运算等方式来做相关运算得到重发相关性结果,门限判决装置可以通过比较电路等来实现。
在一种实施例中,为了减少数据运算量,在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前 段部分;第一缓存器B311存储前段部分,公用缓存器B2缓存与前段部分长度对应的数据信息。也就是,音源设备的包头信息按时序分成了前、后段两部分,其中,处于前段部分的作为第一包头信息存储于本地。在侦听重发信息时,只需提取与前段部分长度对应的数据信息,将该部分作为第二包头信息来与第一包头信息做相关运算,由此可以减少相关运算的计算量。
在另一种实施例中,考虑到有可能存在信号丢失的情况,为了提高相关运算的完整性,在可选的实施例中,第一包头信息为音源设备的完整包头信息,第二包头信息至少为完整包头信息中的部分;第一缓存器B311存储完整包头信息;公用缓存器B2缓存的数据至少为完整包头信息中的部分。也就是,在链路一上侦听到部分信息缓存到公用缓存器B2时,即可与第一缓存器B311中相应部分的数据进行相关性运算,得到重发相关性结果。由此,可以避免因信号干扰导致误认为没有侦听到重发信息。
请参考图12,在可选的实施例中,信息处理模块B3包括:第二信息处理单元B32,在本地存储有第三包头信息。本实施例中,所称第三包头信息为音源设备的包头信息。请参考图5A、图5B和图5C,为蓝牙标准协议中的蓝牙包格式示意图,其中,图5A为蓝牙v2.1的BDR包格式示意图,图5B为蓝牙v2.1的EDR包格式示意图,图5C为低功耗蓝牙的包格式,一般来讲,access code或access address都是给蓝牙接收方做同步、包检测以及接收对齐的包头信息,后续的Header,Payload或PDU才有数据信息。本实施例中,所称音源设备的包头信息为access code或access address。在具体实施过程中,可以在本地存储音源设备的包头信息,例如access code或access address,由此可以直接提取该存储的包头信息。
在具体实施例中,第二信息处理单元B32包括:第二缓存器B321,第二缓存器B321存储第三包头信息。
需要说明的是,虽然是第一音频播放设备转发的数据包,但是,由于第一音频播放设备转发的是当前音频数据包,因此,其包含的是音源设备的包头信息,故所称第三包头信息为音源设备的包头信息。
本实施例中,公用缓存器B2用于缓存RF接收装置B1侦听转发信息时得到第四包头信息,第四包头信息为RF接收装置1接收到的信号的包头信息。RF接收装置1在对链路二上的信号进行侦听时,针对侦听到的信号,可以进行信息提取得到第四包头信息。通过该第四包头信息可以对发出信号方的身份进行确认等,例如可以进行包检测。
在具体实施过程中,第二信息处理单元B32用于对第三包头信息和第四包头信息做相关运算得到转发相关性结果,当转发相关性结果大于第二阈值时,确定链路二为侦听到信息的链路。本实施例中,所称第二阈值可以根据经验来确定,本实施例中,如果转发相关性结果大于预设值,则确定侦听到转发信息。
请参考图12,在具体实施例中,第二信息处理单元B32包括第二相关性子单元B322,第二相关性子单元B322的输入端分别连接至第二缓存器B321的输出端和公用缓存器B2的输出端。在具体实施过程中,第二相关性子单元B322用于对第三包头信息和第四包头信息做相关运算得到转发相关性结果,当转发相关性结果大于第二阈值时,确定链路二为侦听到信息的链路。第二相关性子单元B322可以通过相关计算装置和门限判决装置来实现,相关计算装置可以进行例如卷积、矩阵运算等方式来做相关运算得到重发相关性结果,门限判决装置可以通过比较电路等来实现。
为了更好地进行数据同步,以及减少数据运算量,在可选的实施例中,音源设备的包头信息包括前段部分和后段部分,后段部分在时序上滞后于前段部分;第二缓存器B321存储后段部分,公用缓存器B2缓存与后段部分长度对应的数据信息。也就是,音源设备的包头信息按时序分成了前、后段两部分,其中,处于后段部分的作为第三包头信息存储于本地第二缓存器B321。在侦听转发信息时,只需提取与后段部分长度对应的数据信息缓存至公用缓存器B2,第二信息处理单元B32将公用缓存器B2中的该部分作为第四包头信息来与第三包头信息做相关运算,由此可以减少相关运算的计算量。
需要说明的是,本实施例中,由于第一音频播放设备转发音频数据时,只转发后段部分和紧随其后的重发包数据本体部分,因此,只需将 后段部分作为第三包头信息存储于本地第二缓存器B321。
本实施例还公开了一种音频播放设备,包括:处理器,用于实现上述实施例公开的蓝牙丢包数据发送方法或蓝牙丢包数据接收方法。
本实施例还公开了一种音频播放设备,包括:上述实施例公开的蓝牙通信发送电路或接收电路。
本实施例还公开了一种音频信号处理系统,包括:第一音频播放设备和第二音频播放设备;第一音频播放设备和第二音频播放设备为一对音频播放设备对。第一音频播放设备具有上述实施例公开的装置,第二音频播放设备具有上述实施例公开的装置;或者,第一音频播放设备具有上述实施例公开的电路,第二音频播放设备具有上述实施例公开的电路。例如,第一音频播放设备和第二音频播放设备为一对耳机,再如,第一音频播放设备和第二音频播放设备为一对音箱。
在可选的实施例中,还包括:
音源设备,用于向第一音频播放设备和第二音频播放设备提供音频数据。
本实施例还公开了一种计算机可读存储介质,其上存储有计算机程序,存储介质中存储的计算机程序用于被执行实现上述实施例公开的方法。
本实施例还公开了一种音频设备的芯片,其上具有集成电路,集成电路被设计成用于实现上述实施例公开的方法,或者具有上述实施例公开的电路。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,在接收状态接收第二音频播放设备发送的转发请求,根据转发请求在链路一侦听音源设备重发当前音频数据包的重发信息,当侦听到重发信息时,将接收状态切换为发送状态,按照音源设备重发当前音频数据的时序通过链路二向第二音频播放设备转发当前音频数据,其中,链路二为第一音频播放设备和第二音频播放设备之间的交互链路,也就是,在音源设备通过链路一重发当前音频数据的过程中,第一音频播放设备可以同步在链路二转发当前音频数据,链路一和链路二在空间位置不同,因此,可以从不同位置向第二音频播放设备提供信号, 也就是在丢包纠错的情况下,可以使得第二音频播放设备获得较优的空间分集增益,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,当第二音频播放设备未成功接收音源设备发送的当前音频数据时,提示第一音频播放设备和音源设备未成功接收当前音频数据,在链路一侦听音源设备重发当前音频数据包的重发信息,在链路二侦听第一音频播放设备转发当前音频数据的转发信息,依据重发判断结果和转发判断结果,选择链路一和/或链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错,其中,被选择接收当前音频数据的链路为侦听到信息的链路。也就是,侦听链路一重发当前音频数据的过程中,同步侦听链路二转发的当前音频数据,链路一和链路二在空间位置不同,所受人体干扰情况不同,信号的衰落情况不同,因此,可以从不同位置来获取当前音频数据,选择侦听到信息的链路作为目标链路来接收当前音频数据,可以优化第二音频播放设备接收当前音频数据的方式,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,信息运算模块在本地存储有第一包头信息,第一包头信息为音源设备的包头信息;RF接收装置用于通过蓝牙天线侦听音源设备重发音频数据包的重发信息得到第二包头信息,第二包头信息为RF接收装置接收到的信号的包头信息;信息运算模块用于对第一包头信息和第二包头信息做相关运算得到相关性结果,当相关性结果大于预设值时,向发射模块输出转发驱动信号;发射模块用于基于信息运算模块输出的转发驱动信号按照音源设备重发当前音频数据的时序向第二音频播放设备转发当前音频数据。也就是,信息运算模块对RF接收装置侦听到的信号进行相关运算,当相关性结果大于预设值时,表明侦听到了音源设备正在重发音频数据包,于是,向发射模块输出转发驱动信号,使得发射模块按照音源设备重发当前音频数据的时序向第二音频播放设备转发当前音频数据,即,第一音频播放设备和音源设备同步向第二音频 播放设备转发当前音频数据,由于第一音频播放设备和音源设备在空间位置不同,因此,可以从不同位置向第二音频播放设备提供信号,也就是在丢包纠错的情况下,可以使得第二音频播放设备获得较优的空间分集增益,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
依据本发明实施例公开的一种蓝牙丢包数据收发方法、电路、音频播放设备及系统,RF接收装置(B1)、公用缓存器(B2)和信息处理模块(B3)依次连接,当第二音频播放设备未成功接收当前音频数据包时,RF接收装置(B1)在链路一侦听音源设备重发当前音频数据包的重发信息,以及在链路二侦听第一音频播放设备转发当前音频数据的转发信息;公用缓存器(B2)分别缓存链路一的数据,以及链路二的数据;信息处理模块(B3)分别基于链路一的数据和链路二的数据计算数据相关性,并输出链路选择控制信号;RF接收装置(B1)根据链路选择控制信号选择侦听到信息的链路作为目标链路来接收当前音频数据。也就是,音源设备和第一音频播放设备同时发送当前音频数据,音源设备和第一音频播放设备在空间位置不同,所受人体干扰情况不同,信号的衰落情况不同,因此,可以从不同位置来获取当前音频数据,信息处理模块(B3)侦听链路一重发当前音频数据的过程中,同步侦听链路二转发的当前音频数据,分别基于链路一的数据和链路二的数据计算数据相关性,确定能够侦听到信息的链路来接收当前音频数据,可以优化第二音频播放设备接收当前音频数据的方式,在存在因人体造成的深度衰落信号的前提下,改善了数据接收方式,提高了数据纠错率。
需要说明的是,本发明中采用步骤编号(字母或数字编号)来指代某些具体的方法步骤,仅仅是出于描述方便和简洁的目的,而绝不是用字母或数字来限制这些方法步骤的顺序。本领域的技术人员能够明了,相关方法步骤的顺序,应由技术本身决定,不应因步骤编号的存在而被不适当地限制。
本领域的技术人员能够理解的是,在不冲突的前提下,上述各优选方案可以自由地组合、叠加。
应当理解,上述的实施方式仅是示例性的,而非限制性的,在不偏离本发明的基本原理的情况下,本领域的技术人员可以针对上述细节做出的各种明显的或等同的修改或替换,都将包含于本发明的权利要求范围内。

Claims (48)

  1. 一种蓝牙丢包数据发送方法,应用于第一音频播放设备,其中,所述第一音频播放设备和第二音频播放设备构成音频播放设备对,所述第一音频播放设备和所述第二音频播放设备能够分别从音源设备接收音频数据,其特征在于,所述方法包括:
    步骤S100,在接收状态接收所述第二音频播放设备发送的转发请求,其中,所述转发请求表示所述第二音频播放设备未成功接收所述音源设备发送的当前音频数据;
    步骤S200,根据所述转发请求在链路一侦听所述音源设备重发当前音频数据包的重发信息,其中,所述链路一为所述音源设备发送音频数据的链路;
    步骤S300,判断是否侦听到所述重发信息;如果侦听到所述重发信息,则顺序执行步骤S400和步骤S500;
    步骤S400,将接收状态切换为发送状态;
    步骤S500,按照所述音源设备重发所述当前音频数据的时序通过链路二向所述第二音频播放设备转发所述当前音频数据,其中,所述链路二为所述第一音频播放设备和所述第二音频播放设备之间的交互链路。
  2. 如权利要求1所述的蓝牙丢包数据发送方法,其特征在于,在所述步骤S500中,采用与所述音源设备同一预设频段转发所述当前音频数据。
  3. 如权利要求1或2所述的蓝牙丢包数据发送方法,其特征在于,所述步骤S300包括:
    步骤S310,提取存储于本地的第一包头信息,所述第一包头信息为所述音源设备的包头信息;
    步骤S320,对在链路一上侦听到的信号进行信息提取得到第二包头信息;
    步骤S330,对所述第一包头信息和第二包头信息做相关运算得到相关性结果;
    步骤S340,判断所述相关性结果是否大于预设值,如果所述相关性 结果大于预设值,则确定侦听到所述重发信息。
  4. 如权利要求3所述的蓝牙丢包数据发送方法,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;所述第一包头信息为所述前段部分,所述第二包头信息为与所述前段部分长度对应的数据信息。
  5. 如权利要求1-4所述的蓝牙丢包数据发送方法,其特征在于,在所述步骤S500中,在切换为发送状态后即刻依次转发所述后段部分和所述当前音频数据,以与所述音源设备重发所述后段部分和所述当前音频数据的时序保持同步。
  6. 一种蓝牙丢包数据接收方法,应用于第二音频播放设备,其中,所述第一音频播放设备和第二音频播放设备构成音频播放设备对,所述第一音频播放设备和所述第二音频播放设备能够分别从音源设备接收音频数据,其特征在于,所述方法包括:
    步骤R100,当所述第二音频播放设备未成功接收所述音源设备发送的当前音频数据时,向所述第一音频播放设备和所述音源设备提示所述第二音频播放设备未成功接收所述当前音频数据;
    步骤R200,在链路一侦听所述音源设备重发当前音频数据包的重发信息,所述链路一为所述音源设备发送音频数据的链路;
    步骤R300,在链路二侦听所述第一音频播放设备转发当前音频数据的转发信息,所述链路二为所述第一音频播放设备和所述第二音频播放设备之间的交互链路;
    步骤R400,判断是否侦听到所述重发信息得到重发判断结果;
    步骤R500,判断是否侦听到所述转发信息得到转发判断结果;
    步骤R600,依据所述重发判断结果和所述转发判断结果,选择所述链路一和/或所述链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。
  7. 如权利要求6所述的蓝牙丢包数据接收方法,其特征在于,所述步骤R400包括:
    步骤R410,提取存储于本地的第一包头信息,所述第一包头信息为所述音源设备的包头信息;
    步骤R420,对在链路一上侦听到的信号进行信息提取得到第二包头信息;
    步骤R430,对所述第一包头信息和第二包头信息做相关运算得到重发相关性结果;
    步骤R440,判断所述重发相关性结果是否大于预设值,如果所述重发相关性结果大于预设值,则确定侦听到所述重发信息。
  8. 如权利要求7所述的蓝牙丢包数据接收方法,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;所述第一包头信息为所述前段部分,所述第二包头信息为与所述前段部分长度对应的数据信息。
  9. 如权利要求7所述的蓝牙丢包数据接收方法,其特征在于,所述第一包头信息为所述音源设备的完整包头信息,所述第二包头信息至少为所述完整包头信息中的部分。
  10. 如权利要求6所述的蓝牙丢包数据接收方法,其特征在于,所述步骤R500包括:
    步骤R510,提取存储于本地的第三包头信息,所述第三包头信息为所述音源设备的包头信息;
    步骤R520,对在链路二上侦听到的信号进行信息提取得到第四包头信息;
    步骤R530,对所述第三包头信息和第四包头信息做相关运算得到转发相关性结果;
    步骤R540,判断所述转发相关性结果是否大于预设值,如果所述转发相关性结果大于预设值,则确定侦听到所述转发信息。
  11. 如权利要求10所述的蓝牙丢包数据接收方法,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;所述第三包头信息为所述后段部分,所述第四包头信息为与所述后段部分长度对应的数据信息。
  12. 如权利要求6-11任意一项所述的蓝牙丢包数据接收方法,其特征在于,所述步骤R600包括:
    当所述重发判断结果为侦听到所述重发信息时,选择所述链路一作 为目标链路来接收当前音频数据;或者,
    当所述转发判断结果为侦听到所述转发信息时,选择所述链路二作为目标链路来接收当前音频数据;或者,
    当所述重发判断结果为侦听到所述重发信息,且所述转发判断结果为侦听到所述转发信息时,选择所述链路一和所述链路二作为目标链路来接收当前音频数据。
  13. 如权利要求12所述的蓝牙丢包数据接收方法,其特征在于,通过同一预设频段在目标链路来接收当前音频数据。
  14. 一种蓝牙丢包数据发送装置,应用于第一音频播放设备,其中,所述第一音频播放设备和第二音频播放设备构成音频播放设备对,所述第一音频播放设备和所述第二音频播放设备能够分别从音源设备接收音频数据,其特征在于,所述装置包括:
    请求接收模块(100),用于在接收状态接收所述第二音频播放设备发送的转发请求,其中,所述转发请求表示所述第二音频播放设备未成功接收所述音源设备发送的当前音频数据;
    重发侦听模块(200),用于根据所述转发请求在链路一侦听所述音源设备重发当前音频数据包的重发信息,其中,所述链路一为所述音源设备发送音频数据的链路;
    重发判断模块(300),用于判断是否侦听到所述重发信息;如果侦听到所述重发信息,则顺序运行状态切换模块(400)和转发模块(500);
    状态切换模块(400),用于将接收状态切换为发送状态;
    转发模块(500),用于按照所述音源设备重发所述当前音频数据的时序通过链路二向所述第二音频播放设备转发所述当前音频数据,其中,所述链路二为所述第一音频播放设备和所述第二音频播放设备之间的交互链路。
  15. 如权利要求14所述的蓝牙丢包数据发送装置,其特征在于,所述转发模块(500)用于采用与所述音源设备同一预设频段转发所述当前音频数据。
  16. 如权利要求14或15所述的蓝牙丢包数据发送装置,其特征在于,所述重发判断模块(300)包括:
    第一提取单元,用于提取存储于本地的第一包头信息,所述第一包头信息为所述音源设备的包头信息;
    第二提取单元,用于对在链路一上侦听到的信号进行信息提取得到第二包头信息;
    相关运算单元,用于对所述第一包头信息和第二包头信息做相关运算得到相关性结果;
    预设值判断单元,用于判断所述相关性结果是否大于预设值,如果所述相关性结果大于预设值,则确定侦听到所述重发信息。
  17. 如权利要求16所述的蓝牙丢包数据发送装置,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;所述第一包头信息为所述前段部分,所述第二包头信息为与所述前段部分长度对应的数据信息。
  18. 如权利要求17所述的蓝牙丢包数据发送装置,其特征在于,所述转发模块(500)用于在切换为发送状态后即刻依次转发所述后段部分和所述当前音频数据,以与所述音源设备重发所述后段部分和所述当前音频数据的时序保持同步。
  19. 一种蓝牙丢包数据接收装置,应用于第二音频播放设备,其中,所述第一音频播放设备和第二音频播放设备构成音频播放设备对,所述第一音频播放设备和所述第二音频播放设备能够分别从音源设备接收音频数据,其特征在于,所述装置包括:
    提示模块(10),用于当所述第二音频播放设备未成功接收所述音源设备发送的当前音频数据时,向所述第一音频播放设备和所述音源设备提示所述第二音频播放设备未成功接收所述当前音频数据;
    第一侦听模块(20),用于在链路一侦听所述音源设备重发当前音频数据包的重发信息,所述链路一为所述音源设备发送音频数据的链路;
    第二侦听模块(30),用于在链路二侦听所述第一音频播放设备转发当前音频数据的转发信息,所述链路二为所述第一音频播放设备和所述第二音频播放设备之间的交互链路;
    第一判断模块(40),用于判断是否侦听到所述重发信息得到重发判断结果;
    第二判断模块(50),用于判断是否侦听到所述转发信息得到转发判断结果;
    数据接收模块(60),用于依据所述重发判断结果和所述转发判断结果,选择所述链路一和/或所述链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错。
  20. 如权利要求19所述的蓝牙丢包数据接收装置,其特征在于,所述第一判断模块(40)包括:
    第一提取单元,用于提取存储于本地的第一包头信息,所述第一包头信息为所述音源设备的包头信息;
    第二提取单元,用于对在链路一上侦听到的信号进行信息提取得到第二包头信息;
    重发相关运算单元,用于对所述第一包头信息和第二包头信息做相关运算得到重发相关性结果;
    第一判断单元,用于判断所述重发相关性结果是否大于预设值,如果所述重发相关性结果大于预设值,则确定侦听到所述重发信息。
  21. 如权利要求20所述的蓝牙丢包数据接收装置,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;所述第一包头信息为所述前段部分,所述第二包头信息为与所述前段部分长度对应的数据信息。
  22. 如权利要求20所述的蓝牙丢包数据接收装置,其特征在于,所述第一包头信息为所述音源设备的完整包头信息,所述第二包头信息至少为所述完整包头信息中的部分。
  23. 如权利要求19所述的蓝牙丢包数据接收装置,其特征在于,所述第二判断模块(50)包括:
    第三提取单元,用于提取存储于本地的第三包头信息,所述第三包头信息为所述音源设备的包头信息;
    第四提取单元,用于对在链路二上侦听到的信号进行信息提取得到第四包头信息;
    转发相关运算单元,用于对所述第三包头信息和第四包头信息做相关运算得到转发相关性结果;
    第二判断单元,用于判断所述转发相关性结果是否大于预设值,如果所述转发相关性结果大于预设值,则确定侦听到所述转发信息。
  24. 如权利要求23所述的蓝牙丢包数据接收装置,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;所述第三包头信息为所述后段部分,所述第四包头信息为与所述后段部分长度对应的数据信息。
  25. 如权利要求19-24任意一项所述的蓝牙丢包数据接收装置,其特征在于,所述数据接收模块(60)具体用于:
    当所述重发判断结果为侦听到所述重发信息时,选择所述链路一作为目标链路来接收当前音频数据;或者,
    当所述转发判断结果为侦听到所述转发信息时,选择所述链路二作为目标链路来接收当前音频数据;或者,
    当所述重发判断结果为侦听到所述重发信息,且所述转发判断结果为侦听到所述转发信息时,选择所述链路一和所述链路二作为目标链路来接收当前音频数据。
  26. 如权利要求25所述的蓝牙丢包数据接收装置,其特征在于,通过同一预设频段在目标链路来接收当前音频数据。
  27. 一种蓝牙通信发送电路,应用于第一音频播放设备,其中,所述第一音频播放设备和第二音频播放设备构成音频播放设备对,所述第一音频播放设备和所述第二音频播放设备能够分别从音源设备接收音频数据,其特征在于,所述蓝牙通信发送电路包括:
    信息运算模块(1),在本地存储有第一包头信息,所述第一包头信息为所述音源设备的包头信息;
    RF接收装置(2),其输入端用于连接至蓝牙天线,所述RF接收装置(2)的输出端连接至所述信息运算模块(1);所述RF接收装置(1)用于通过所述蓝牙天线侦听所述音源设备重发音频数据包的重发信息得到第二包头信息,所述第二包头信息为所述RF接收装置(1)接收到的信号的包头信息;
    发射模块(3),连接至所述信息运算模块(1),所述发射模块(3)用于基于所述信息运算模块(1)输出的转发驱动信号按照所述音源设备 重发所述当前音频数据的时序向所述第二音频播放设备转发所述当前音频数据;
    所述信息运算模块(1)用于对所述第一包头信息和第二包头信息做相关运算得到相关性结果,当所述相关性结果大于预设值时,向所述发射模块(3)输出所述转发驱动信号。
  28. 如权利要求27所述的蓝牙通信发送电路,其特征在于,所述发射模块(3)采用与所述音源设备同一预设频段转发所述当前音频数据。
  29. 如权利要求27或28所述的蓝牙通信发送电路,其特征在于,所述信息运算模块(1)包括:
    第一缓存器(11),存储所述第一包头信息;
    第二缓存器(12),连接至所述RF接收装置(2)的输出端;所述第二缓存器(12)用于缓存所述第二包头信息;
    相关性单元(13),其输入端分别连接至所述第一缓存器(11)的输出端和所述第二缓存器(12)的输出端,所述相关性单元(13)的输出端连接至所述发射模块(3);所述相关性单元(13)用于对所述第一包头信息和第二包头信息做相关运算得到相关性结果,当所述相关性结果大于预设值时,向所述发射模块(3)输出所述转发驱动信号。
  30. 如权利要求27或28所述的蓝牙通信发送电路,其特征在于,还包括:
    切换开关(4),其一端用于连接至所述蓝牙天线,另一端可选择连接于所述RF接收装置(2)或所述发射模块(3);
    当所述切换开关(4)的另一端连接至所述RF接收装置(2)时,所述RF接收装置(2)通过所述蓝牙天线侦听所述重发信息;
    当所述切换开关(4)的另一端连接至所述发射模块(3)时,所述发射模块(3)通过所述蓝牙天线转发所述当前音频数据。
  31. 如权利要求29所述的蓝牙通信发送电路,其特征在于,
    所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;
    所述第一缓存器(11)存储所述前段部分;
    所述第二缓存器(12)用于缓存所述第二包头信息中与所述前段部 分长度对应的数据信息。
  32. 如权利要求31所述的蓝牙通信发送电路,其特征在于,
    所述发射模块(3)在收到转发驱动信号后即刻依次转发所述后段部分和所述当前音频数据,以与所述音源设备重发所述后段部分和所述当前音频数据的时序保持同步。
  33. 如权利要求27或28所述的蓝牙通信发送电路,其特征在于,所述音源设备的包头信息为标准协议中的ACCESS CODE数据或ACCESS ADDRESS数据。
  34. 一种蓝牙通信接收电路,应用于第二音频播放设备,其中,所述第一音频播放设备和第二音频播放设备构成音频播放设备对,所述第一音频播放设备和所述第二音频播放设备能够分别从音源设备接收音频数据,其特征在于,所述蓝牙通信接收电路包括:
    依次连接的RF接收装置(B1)、公用缓存器(B2)和信息处理模块(B3),其中:
    当所述第二音频播放设备未成功接收当前音频数据包时,所述RF接收装置(B1)在链路一侦听所述音源设备重发当前音频数据包的重发信息,以及在链路二侦听所述第一音频播放设备转发当前音频数据的转发信息;其中,所述链路一为所述音源设备发送音频数据的链路;所述链路二为所述第一音频播放设备和所述第二音频播放设备之间的交互链路;
    所述公用缓存器(B2)分别缓存侦听所述重发信息时接收到的链路一的数据,以及侦听所述转发信息时接收到的链路二的数据;
    所述信息处理模块(B3)分别基于所述链路一的数据和所述链路二的数据计算数据相关性,并输出链路选择控制信号;
    所述RF接收装置(B1)根据所述链路选择控制信号选择所述链路一和/或所述链路二作为目标链路来接收当前音频数据,以对当前丢包的数据进行纠错,其中,被选择接收当前音频数据的链路为侦听到信息的链路。
  35. 如权利要求34所述的蓝牙通信接收电路,其特征在于,
    所述公用缓存器(B2)用于缓存所述RF接收装置(B1)侦听所述 重发信息时得到第二包头信息,所述第二包头信息为所述RF接收装置(1)接收到的信号的包头信息;
    所述信息处理模块(B3)包括:
    第一信息处理单元(B31),在本地存储有第一包头信息,所述第一包头信息为所述音源设备的包头信息;所述第一信息处理单元(B31)用于对所述第一包头信息和第二包头信息做相关运算得到重发相关性结果,当所述重发相关性结果大于第一阈值时,确定所述链路一为侦听到信息的链路。
  36. 如权利要求35所述的蓝牙通信接收电路,其特征在于,所述第一信息处理单元(B31)包括:
    第一缓存器(B311),存储所述第一包头信息;
    第一相关性子单元(B312),其输入端分别连接至所述第一缓存器(B311)的输出端和所述公用缓存器(B2)的输出端;所述第一相关性子单元(B312)用于对所述第一包头信息和第二包头信息做相关运算得到重发相关性结果,当所述重发相关性结果大于第一阈值时,确定所述链路一为侦听到信息的链路。
  37. 如权利要求36所述的蓝牙通信接收电路,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;
    所述第一缓存器(B311)存储所述前段部分,所述公用缓存器(B2)缓存与所述前段部分长度对应的数据信息。
  38. 如权利要求36所述的蓝牙通信接收电路,其特征在于,所述第一包头信息为所述音源设备的完整包头信息;
    所述第一缓存器(B311)存储所述完整包头信息;所述公用缓存器(B2)缓存的数据至少为所述完整包头信息中的部分。
  39. 如权利要求34所述的蓝牙通信接收电路,其特征在于,
    所述信息处理模块(B3)包括:
    第二信息处理单元(B32),在本地存储有第三包头信息,所述第三包头信息为所述音源设备的包头信息;
    所述公用缓存器(B2)用于缓存所述RF接收装置(B1)侦听所述 转发信息时得到第四包头信息,所述第四包头信息为所述RF接收装置(1)接收到的信号的包头信息;
    所述第二信息处理单元(B32)用于对所述第三包头信息和所述第四包头信息做相关运算得到转发相关性结果,当所述转发相关性结果大于第二阈值时,确定所述链路二为侦听到信息的链路。
  40. 如权利要求39所述的蓝牙通信接收电路,其特征在于,所述第二信息处理单元(B32)包括:
    第二缓存器(B321),存储所述第三包头信息;
    第二相关性子单元(B322),其输入端分别连接至所述第二缓存器(B321)的输出端和所述公用缓存器(B2)的输出端;
    所述第二相关性子单元(B322)用于对所述第三包头信息和所述第四包头信息做相关运算得到转发相关性结果,当所述转发相关性结果大于第二阈值时,确定所述链路二为侦听到信息的链路。
  41. 如权利要求39所述的蓝牙通信接收电路,其特征在于,所述音源设备的包头信息包括前段部分和后段部分,所述后段部分在时序上滞后于所述前段部分;
    所述第二缓存器(B321)存储所述后段部分,所述公用缓存器(B2)缓存与所述后段部分长度对应的数据信息。
  42. 如权利要求34-41任意一项所述的蓝牙通信接收电路,其特征在于,
    当所述链路一和所述链路二均侦听到信息时,所述RF接收装置(B1)通过预设频段在所述链路一接收所述音源设备重发的当前音频数据,同时,通过同一预设频段在所述链路二接收所述第一音频播放设备转发的当前音频数据。
  43. 一种音频播放设备,其特征在于,包括:
    处理器,用于实现如权利要求1-5任意一项所述的方法;和/或,用于实现如权利要求6-13任意一项所述的方法。
  44. 一种音频播放设备,其特征在于,包括:
    如权利要求27-33任意一项所述的电路;和/或,如权利要求34-42任意一项所述的电路。
  45. 一种音频信号处理系统,包括:第一音频播放设备和第二音频播放设备;所述第一音频播放设备和所述第二音频播放设备为一对音频播放设备对,其特征在于,
    所述第一音频播放设备具有如权利要求14-26任意一项所述的装置;所述第二音频播放设备具有如权利要求14-26任意一项所述的装置;或者,
    所述第一音频播放设备具有如权利要求27-42任意一项所述的电路;所述第二音频播放设备具有如权利要求27-42任意一项所述的电路。
  46. 如权利要求45所述的音频信号处理系统,其特征在于,还包括:
    音源设备,用于向所述第一音频播放设备和所述第二音频播放设备提供音频数据。
  47. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,存储介质中存储的计算机程序用于被执行实现如权利要求1-13任意一项所述的方法。
  48. 一种音频设备的芯片,其上具有集成电路,其特征在于,所述集成电路被设计成用于实现如权利要求1-13任意一项所述的方法,或者集成有如权利要求27-42任意一项所述的电路。
PCT/CN2021/132495 2021-07-22 2021-11-23 蓝牙丢包数据收发方法、电路、音频播放设备及系统 WO2023000566A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/506,203 US20240080134A1 (en) 2021-07-22 2023-11-10 Bluetooth packet loss data receiving and sending method, circuit, audio playback device, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110830813.3 2021-07-22
CN202110830813.3A CN114079900B (zh) 2021-07-22 2021-07-22 蓝牙丢包数据收发方法、电路、音频播放设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/506,203 Continuation US20240080134A1 (en) 2021-07-22 2023-11-10 Bluetooth packet loss data receiving and sending method, circuit, audio playback device, and system

Publications (1)

Publication Number Publication Date
WO2023000566A1 true WO2023000566A1 (zh) 2023-01-26

Family

ID=80283103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132495 WO2023000566A1 (zh) 2021-07-22 2021-11-23 蓝牙丢包数据收发方法、电路、音频播放设备及系统

Country Status (3)

Country Link
US (1) US20240080134A1 (zh)
CN (1) CN114079900B (zh)
WO (1) WO2023000566A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708142A (zh) * 2019-06-03 2020-01-17 南京中感微电子有限公司 一种音频数据通信方法、系统及设备
CN111436044A (zh) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 双无线蓝牙通信网络丢包数据处理方法、装置及系统
CN111436043A (zh) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 双无线蓝牙通信网络的通信方法、装置、设备及系统
CN111556476A (zh) * 2020-04-17 2020-08-18 炬力(珠海)微电子有限公司 蓝牙tws设备间的数据传输方法及蓝牙tws设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11259347B2 (en) * 2017-03-21 2022-02-22 Saronikos Trading And Services, Unipessoal Lda Device, system, and method for delivering and relaying an audio signal
CN112039637B (zh) * 2019-06-03 2023-07-07 南京中感微电子有限公司 一种音频数据通信方法、系统及音频通信设备
CN111435844B (zh) * 2019-11-06 2021-11-23 珠海市杰理科技股份有限公司 双无线蓝牙通信音频数据更正方法、装置、设备及系统
CN111031437B (zh) * 2019-12-27 2021-05-28 恒玄科技(北京)有限公司 一种无线耳机组件及其通信方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708142A (zh) * 2019-06-03 2020-01-17 南京中感微电子有限公司 一种音频数据通信方法、系统及设备
CN111436044A (zh) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 双无线蓝牙通信网络丢包数据处理方法、装置及系统
CN111436043A (zh) * 2019-11-06 2020-07-21 珠海市杰理科技股份有限公司 双无线蓝牙通信网络的通信方法、装置、设备及系统
CN111556476A (zh) * 2020-04-17 2020-08-18 炬力(珠海)微电子有限公司 蓝牙tws设备间的数据传输方法及蓝牙tws设备

Also Published As

Publication number Publication date
US20240080134A1 (en) 2024-03-07
CN114079900B (zh) 2024-04-05
CN114079900A (zh) 2022-02-22

Similar Documents

Publication Publication Date Title
US10348370B2 (en) Wireless device communication
KR100722312B1 (ko) 데이터 통신에서 폴링 요구를 관리하는 방법 및 장치
CN111741401B (zh) 用于无线耳机组件的无线通信方法以及无线耳机组件
CN111435844B (zh) 双无线蓝牙通信音频数据更正方法、装置、设备及系统
US20080005638A1 (en) Method and apparatus for detection and recovery of HARQ DTX to NACK error
JP2013518514A (ja) 多数決エラー訂正技術分野
WO2010124470A1 (zh) 一种数据重传方法和用户设备
US20150071276A1 (en) System and Method for Performing Hybrid Automatic Repeat Request (HARQ) in a WLAN System
US11083031B1 (en) Bluetooth audio exchange with transmission diversity
US20070183328A1 (en) Method of resetting radio link control entity in a mobile communications system and related apparatus
WO2012083762A1 (zh) 数据传输方法、设备及系统
EP3890356A1 (en) Bluetooth audio exchange with transmission diversity
CN109842462B (zh) 混合自动重送方法及系统
CN112039637A (zh) 一种音频数据通信方法、系统及音频通信设备
WO2023000566A1 (zh) 蓝牙丢包数据收发方法、电路、音频播放设备及系统
KR20020001173A (ko) 비동기 무선통신 시스템에서 데이터 및 데이터 정보 전달방법
KR20150130894A (ko) 오디오 데이터의 통신 방법 및 장치
CN114830679A (zh) 音频装置和音频装置操作方法
US11375574B2 (en) Latency reduction
TWI791997B (zh) 無線音訊輸出裝置與其操作方法
CN114079894A (zh) 双无线音频通信控制方法、装置、设备和系统
CN114079898A (zh) 双发模式下音频数据通信方法、装置、设备和系统
CN114079537B (zh) 音频丢包数据接收方法、装置、音频播放设备及系统
CN114079895B (zh) 音频丢包数据接收电路、方法、音频播放设备及系统
WO2023000565A1 (zh) 双发模式下丢包数据纠错方法、装置、设备及系统

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE