Bluetooth receiving method, Bluetooth receiver and Bluetooth device

By setting retransmission threshold and signal quality processing in the Bluetooth receiver, the large cache and delay problems caused by excessive packet retransmission times in Bluetooth audio applications are solved, and the smoothness of data transmission and music playback are improved. Meets the real-time requirements of audio and video synchronization.

CN113541864BActive Publication Date: 2024-12-10NANJING ZGMICRO CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110669765.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-10-29
Publication Date
2024-12-10
Estimated Expiration
2038-10-29

AI Technical Summary

Technical Problem

In Bluetooth audio applications, the A2DP protocol's asynchronous channel needs multiple retransmissions to be correctly received in the environment of interference and frequency selective fading, resulting in large cache and large delay, which cannot meet the real-time requirements, especially in audio and video synchronization. There are problems with music lag and not smooth in the scene.

Method used

By setting the retransmission threshold in the Bluetooth receiver, when the CRC checks incorrectly and the retransmission times reach the preset threshold, end the retransmission and reply to ACK to avoid excessive cache or excessive delay, and use the signal quality estimator to process the error data , select data segments with better signal quality to form new data packets to reduce the impact of data loss on audio.

Benefits of technology

Reduces cache demand, reduces latency, improves the smoothness of data transmission and music playback, especially in disturbing environments or long distances, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113541864B_ABST
    Figure CN113541864B_ABST
Patent Text Reader

Abstract

A Bluetooth receiving method, a Bluetooth receiver and a Bluetooth device, comprising: receiving a baseband signal and parsing out load data and cyclic redundancy CRC check information corresponding to the load data, obtaining a CRC check result according to the CRC check information, and ending retransmission when the CRC check is wrong and the number of retransmissions is not less than a preset retransmission threshold. The present application sets a retransmission threshold, and ends retransmission when the number of retransmissions is not less than a preset retransmission number, thereby reducing cache, reducing transmission delay, and improving communication real-time performance.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention is a divisional application of a Chinese invention patent application with an application date of October 29, 2018, patent application number: 201811268377X, and invention name: “Bluetooth Receiving Method, Bluetooth Receiver and Bluetooth Device”. Technical Field

[0002] The present application relates to the field of Bluetooth technology, and in particular to a Bluetooth receiving method, a Bluetooth receiver and a Bluetooth device. Background Art

[0003] The widespread development of Bluetooth technology has made Bluetooth products a part of people's lives, and data transmission based on Bluetooth wireless communication technology is becoming more and more frequent. In the process of wireless communication, under the interference of various factors, data packets often need to be retransmitted multiple times to ensure correct reception, resulting in defects such as large buffer required and large transmission delay in Bluetooth transmission.

[0004] This defect is particularly evident in Bluetooth audio applications. Currently, wireless audio applications such as Bluetooth music headphones and Bluetooth speakers, which are centered on smartphones and mainly use the Bluetooth audio transmission protocol (A2DP protocol, Advanced Audio Distribution Profile), have brought great convenience to people. However, A2DP transmission uses an asynchronous channel. In an environment of interference and frequency selective fading, some data packets need to be retransmitted multiple times to ensure correct reception. Therefore, the time when the receiver receives the correct data packet is random and the burstiness is very serious.

[0005] In order to ensure smooth music playback, a large amount of data needs to be cached at the receiving end or the music player to counteract the burstiness of music data transmission. However, the larger the cache, the higher the storage cost required at the receiving end, and the greater the delay in music playback. This is a great challenge for audio playback scenarios that require strong real-time performance, such as scenarios that require audio and video synchronization.

[0006] Therefore, the large cache required for Bluetooth transmission leads to high costs, and the large transmission delay leads to poor real-time performance of audio playback, etc., and the music is stuck and not smooth in the case of interference or long distance. Summary of the invention

[0007] The embodiments of the present application propose a Bluetooth receiving method, a Bluetooth receiver and a Bluetooth device to solve the above technical problems.

[0008] In a first aspect, an embodiment of the present application provides a Bluetooth receiving method, comprising the following steps:

[0009] Receiving a baseband signal and parsing payload data and cyclic redundancy check (CRC) information corresponding to the payload data;

[0010] Obtaining a CRC check result according to the CRC check information;

[0011] When the CRC check is wrong and the number of retransmissions is not less than the preset retransmission threshold, a confirmation of correct reception information ACK is replied to end the retransmission.

[0012] In a second aspect, the present application provides a Bluetooth receiver, comprising: an antenna, a radio frequency transceiver, a baseband processor, a signal quality estimator, and a data protocol processor, wherein:

[0013] Antenna, used to send and receive signals;

[0014] RF transceiver, used for conversion between RF signal and baseband signal;

[0015] A baseband processor, used to process the baseband signal and parse out the payload data and CRC check information corresponding to the payload data, and obtain a CRC check result according to the CRC check information;

[0016] The data protocol processor is used to reply confirmation information ACK to end the retransmission when the CRC check error occurs and the number of retransmissions is not less than a preset retransmission threshold.

[0017] In a third aspect, the present application provides a Bluetooth device, including the above-mentioned Bluetooth receiver.

[0018] The beneficial effects are as follows:

[0019] The Bluetooth receiving method, Bluetooth receiver and Bluetooth device provided in the embodiments of the present application set a retransmission threshold and end the retransmission when the number of retransmissions is not less than the preset number of retransmissions, thereby reducing the cache, reducing the delay, and improving the smoothness of data transmission in interference environments or long distances, especially ensuring the smoothness of music playback, which can effectively improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The specific embodiments of the present application will be described below with reference to the accompanying drawings, wherein:

[0021] Figure 1 A schematic diagram of a process for implementing a Bluetooth receiving method in an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram showing the structure of a Bluetooth receiver according to an embodiment of the present application is shown;

[0023] Figure 3 A schematic diagram showing the structure of a Bluetooth device according to an embodiment of the present application is shown;

[0024] Figure 4 A schematic diagram of the data receiving process in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] In order to make the technical solutions and advantages of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. In addition, the embodiments and features in the embodiments in this description can be combined with each other if there is no conflict.

[0026] The inventors noticed during the invention process that:

[0027] In order to realize the transmission of music data, Bluetooth receivers, such as music Bluetooth headphones and Bluetooth speakers, establish the underlying Bluetooth physical link ACL (Asynchronous Connection less) link and the upper layer A2DP link with Bluetooth audio sources, such as smart phones. In a conventional A2DP link, if the communication is disturbed or severely attenuated, data reception errors may occur. The music will repeatedly transmit the data until the receiver replies ACK to confirm correct reception, or the data is discarded due to timeout. Generally, the audio source device sets a very long timeout, and different audio source devices have different timeout settings. In order to solve the problem of not being able to receive correct data for a long time, the receiving device needs to use a large cache to ensure smooth music playback. This will cause a large delay in music playback and cannot meet application scenarios that require audio and video synchronization.

[0028] In view of the deficiencies in the prior art, the embodiments of the present application propose a Bluetooth receiving method, a Bluetooth receiver, and a Bluetooth device, which are described below.

[0029] Example 1

[0030] Figure 1 A schematic diagram of a flow chart of a Bluetooth receiving method in an embodiment of the present application is shown. As shown in the figure, the method includes the following steps:

[0031] Step 101, receiving a baseband signal and parsing out payload data and cyclic redundancy CRC check information corresponding to the payload data;

[0032] Step 102: Obtain a CRC check result according to the CRC check information, and estimate the signal quality of the payload data;

[0033] Step 103: When the CRC check error occurs and the number of retransmissions is not less than a preset retransmission threshold, the payload data with the CRC check error is processed according to the signal quality, and the retransmission is terminated.

[0034] In specific implementation, the embodiment of the present application forcibly ends retransmission when a CRC check error occurs and the number of retransmissions is not less than (greater than or equal to) a preset retransmission threshold, so as to avoid the other end from continuing to retransmit data or prompt the other end to transmit new data.

[0035] During specific implementation, the preset retransmission threshold is a positive integer greater than or equal to 1.

[0036] In implementation, the payload data is audio data transmitted according to the A2DP protocol; and the end of retransmission includes replying confirmation information ACK for correct reception.

[0037] Usually in an A2DP link, if the communication is disturbed or severely attenuated, resulting in data reception errors, the music will repeatedly transmit the data until the receiver replies with ACK confirmation of correct reception, or times out and discards the data.

[0038] Generally, the audio source device sets a very long timeout period, and different audio source devices have different timeout periods. In order to solve the problem of not being able to receive correct data for a long time, the receiving device needs to use a large cache to ensure smooth music playback. This will cause a large delay in music playback and cannot meet the application scenarios that require audio and video synchronization.

[0039] In order to solve the above-mentioned problems, in an embodiment of the present application, when transmitting audio data according to the A2DP protocol (A2DP link), even if the communication is disturbed or severely attenuated, resulting in data reception errors, when the number of retransmissions is not less than a preset retransmission threshold, there is no need to wait for retransmission, and an ACK confirmation is directly replied to the audio source device (for example, a smart phone, etc.) to end the retransmission, so as to avoid excessive cache or large delay.

[0040] In implementation, the method may further include:

[0041] When the CRC check is correct, the retransmission is terminated and the payload data is sent to the audio decoding unit for decoding.

[0042] During specific implementation, an ACK may be sent to the other end to end the retransmission.

[0043] In implementation, the method may further include:

[0044] When the CRC check is wrong and the number of retransmissions is less than a preset retransmission threshold, the number of retransmissions is accumulated and a retransmission is requested.

[0045] In specific implementation, NAK may be replied to the other end to request retransmission, and the accumulation of the number of retransmissions may be performed by adding 1 to the number of retransmissions each time.

[0046] In implementation, estimating the signal quality of the baseband signal includes:

[0047] Divide the received payload data into several data segments evenly;

[0048] For each symbol contained in each data segment, the absolute value of the difference between the signal angle before the decision and the angle of the data after the decision is taken during demodulation to obtain the absolute value of the angle difference, the absolute values ​​of the angle differences corresponding to all symbols in the data segment are accumulated and averaged to obtain the actual angle error average value of the data segment;

[0049] The actual angle error average value is compared with a preset judgment threshold to determine the signal quality of each data segment.

[0050] In a specific implementation, the received payload data may be evenly divided into a number of data segments; each data segment includes a plurality of symbols;

[0051] The absolute value of the angle difference is obtained by subtracting the difference between the signal angle before the DQPSK (Differential Quadrature Reference PhaseShift Keying) or D8PSK (Eight-Phase Phase Shift Keying) demodulated data and the corresponding angle after the data judgment. The absolute value of the angle difference corresponding to all DQPSK or D8PSK symbols of each signal segment is accumulated and averaged to obtain the actual angle error average value of each data segment;

[0052] The actual angle error average value is compared with a preset judgment threshold to determine the signal quality of each data segment.

[0053] In a specific implementation, the step of evenly dividing the received payload data into a plurality of data segments includes: dividing the received payload data into a plurality of data segments of the same length.

[0054] In a specific implementation, determining the signal quality of each data segment in the payload data according to the signal angle difference before and after the decision of each data segment in each payload data during demodulation may specifically include: dividing the payload data into N data segments according to the length of the payload data, wherein each data segment includes M symbols; M is a natural number greater than or equal to 1; N is a natural number greater than 1; respectively calculating the angle θ of the complex signal of each symbol before the decision during demodulation, and the angle θ of the data after the decision Calculate the angle θ of the complex signal and the angle of the data for each symbol The absolute value of the difference Calculate the N data segments respectively. in, is the average value of M Δθ corresponding to the M symbols in each segment of the load data; The signal quality of each data segment is determined.

[0055] Specifically, N can be preset by relevant personnel taking into account the amount of calculation and the desired data quality. Generally speaking, the larger N is, the greater the amount of calculation is, but the higher the quality of the processed data is. If N is preset, M can be determined based on the length of the payload data and N. Specifically, M=the length of the payload data divided by N.

[0056] In another embodiment, M may be preset, and the number of segments N may be determined according to the length of the payload data and the length M of each data segment. Specifically, N=the length of the payload data divided by M. For example, the length M of each data segment is set to 10, that is, each data segment includes 10 symbols. Then, when the payload data length is 100 symbols, N=100 / 10=10; when the payload data length is 80 symbols, N=80 / 10=8. This application does not limit this.

[0057] In a specific implementation, the angle θ of the complex signal before the decision of each symbol during demodulation, and the angle of the data after the decision It can be obtained by using common technical means of those skilled in the art, and this application will not elaborate on it here.

[0058] In implementation, the received payload data is demodulated using the DQPSK or D8PSK standard; the judgment threshold is the angle difference corresponding to the signal-to-noise ratio required for demodulating the DQPSK or D8PSK signal.

[0059] In implementation, comparing the actual angle error average value with a preset judgment threshold to determine the signal quality of the data segment includes:

[0060] The actual angle error average value is compared with a preset judgment threshold, and the data segment below the judgment threshold is determined as a normal data segment, and the data segment above the judgment threshold is determined as an interfered data segment.

[0061] In implementation, when a plurality of payload data are received with only one CRC check error, processing the payload data with the CRC check error according to the signal quality includes:

[0062] If each data segment is normal, it is output as load data; otherwise, it indicates an interfered data segment and is processed as lost data.

[0063] In a specific implementation, when the payload data is audio data, if each data segment is normal, it is sent to the audio decoder for decoding; otherwise, the audio decoder is indicated with the disturbed data segment and processed as lost data.

[0064] Specifically, when, in some cases, for example, after multiple retransmissions, only one packet of CRC-failed (i.e., check error) data is received, the data quality provided by the signal quality estimator, i.e., the average value of the absolute value of the angle difference corresponding to each data segment, can be used to estimate the data quality. Determine whether each data segment is normal. If each data segment is normal, it can be considered that the payload data is not affected by serious interference and is sent to the audio decoder for decoding. Otherwise, the data segment is discarded and treated as lost data.

[0065] In implementation, when a plurality of payload data having two or more CRC check errors are received, the payload data having CRC check errors is processed according to the signal quality, including:

[0066] For each data segment, a data segment with the best signal quality is selected from the received payload data to form a new data packet;

[0067] If the signal quality of each data segment in the new data packet is a normal data segment, the new data packet is output as payload data; otherwise, the interfered data segment is indicated and processed as lost data.

[0068] In specific implementation, when the payload data is audio data, the embodiment of the present application can form a data packet with the data having the best signal quality among multiple data segments; if the signal quality of each data segment in the newly formed data packet is a normal data segment, it is sent to the audio decoder for decoding; otherwise, the audio decoder is indicated with the interfered data segment and processed as lost data.

[0069] Specifically, when there are two or more packets (also called two or more data packets) of CRC error data, the best quality data in each data segment in the multiple packets can be selected, that is, the average value of the absolute value of the angle difference corresponding to each data segment The smallest data is used to form a new data packet. Then determine whether each data segment of the newly formed data packet is normal. If the signal quality of each data segment in the newly formed new data packet is not affected by serious interference, it will be sent to the audio decoder for decoding. Otherwise, it will be processed as packet loss. That is, after segmenting multiple CRC error payload data, the part with the best signal quality is selected to splice into high-quality new payload data, and then further estimate the signal quality of each data segment in the new payload data, and evaluate whether the spliced ​​payload data has continuous bit data errors caused by burst interference. If there are no continuous bit data errors, it indicates that it can be used for audio decoding.

[0070] In implementation, the method may further include:

[0071] Eliminate packet loss or data loss through audio post-processing.

[0072] In a specific implementation, packet loss or data loss is eliminated through audio post-processing, and specifically, packet loss compensation (PLC, Packet Loss Concealment) technology is used to eliminate the impact of lost data on audio.

[0073] By adopting the Bluetooth receiving method in the embodiment of the present application, when a cyclic redundancy CRC check error occurs and the remaining number of retransmissions of the payload data exceeds a preset retransmission threshold, the payload data is processed according to the signal quality of each data segment, so as to use the data with a CRC check error but good signal quality to conceal the damage caused by data loss to the transmitted data (for example, audio), effectively improve the data reliability of Bluetooth limited retransmission, reduce caching, reduce latency, reduce data transmission jams, especially music jams, thereby improving the performance of Bluetooth communication.

[0074] Example 2

[0075] Based on the same inventive concept, the embodiment of the present application also provides a Bluetooth receiver. Since the principle of solving the problem by the Bluetooth receiver is similar to the method provided in Embodiment 1 of the present application, the implementation of the Bluetooth receiver can refer to the implementation of the method, and the repeated parts will not be repeated.

[0076] Figure 2 The schematic diagram of the structure of the Bluetooth receiver of the embodiment of the present application is shown. As shown in the figure, the Bluetooth receiver includes: an antenna 201, a radio frequency transceiver 202, a baseband processor 203, a signal quality estimator 204, and a data protocol processor 205, wherein:

[0077] Antenna, used to send and receive signals;

[0078] RF transceiver, used for conversion between RF signal and baseband signal;

[0079] A baseband processor, used to process the baseband signal and parse out the payload data and CRC check information corresponding to the payload data, and obtain a CRC check result according to the CRC check information;

[0080] a signal quality estimator, for estimating the signal quality of the demodulated payload data;

[0081] A data protocol processor is used to process the load data with the CRC check error according to the signal quality and end the retransmission when the CRC check error occurs and the number of retransmissions is not less than a preset retransmission threshold.

[0082] Specifically, the Bluetooth receiver in the embodiment of the present application is based on the classic Bluetooth receiver, with a signal quality estimator added, and the above functions added to the data protocol processor (which can be a data processor and a protocol processor in specific implementation). Therefore, the antenna, the RF transceiver, the baseband processor, and other functions of the data protocol processor can be implemented using conventional technologies in the art, and this application will not go into details here.

[0083] Specifically, before the Bluetooth receiver in the embodiment of the present application receives data, the data protocol processor sets the receiving channel, synchronization code, and receiving time according to the frequency calculated by the frequency hopping algorithm.

[0084] In implementation, the payload data is audio data transmitted according to the A2DP protocol; and the end of retransmission includes: replying confirmation information ACK for correct reception.

[0085] In implementation, the data protocol processor is further configured to terminate retransmission and send the payload data to the audio decoding unit for decoding when the CRC check is correct.

[0086] In implementation, the data protocol processor is further configured to accumulate the number of retransmissions and request retransmission when the CRC check is erroneous and the number of retransmissions is less than a preset retransmission threshold.

[0087] In implementation, the signal quality estimator comprises:

[0088] A segmentation module, used to evenly divide the received load data into several data segments;

[0089] A calculation module is used to obtain the absolute value of the difference between the signal angle before the decision and the angle of the data after the decision for each symbol contained in each data segment during demodulation, and to accumulate and average the absolute values ​​of the angle differences corresponding to all symbols in the data segment to obtain the actual angle error average value of the data segment;

[0090] The estimation module is used to compare the actual angle error average value with a preset judgment threshold to determine the signal quality of each data segment.

[0091] In a specific implementation, the signal quality estimator may perform signal quality estimation on each received payload data, or may perform signal quality estimation only on the payload data that fails the CRC check, and the present application does not impose any limitation on this.

[0092] In a specific implementation, the signal quality estimator may transmit the obtained signal quality, the corresponding load data and the CRC check information together to the data protocol processor, or may only transmit the signal quality to the data protocol processor, so that the data protocol processor can distinguish the signal quality of each data segment in each load data. All implementation methods are within the protection scope of this application, and this application does not impose any restrictions on this.

[0093] In implementation, the received payload data is demodulated using the DQPSK or D8PSK standard; the judgment threshold is the angle difference corresponding to the signal-to-noise ratio required for demodulating the DQPSK or D8PSK signal.

[0094] During implementation, the estimation module is specifically used to compare the actual angle error average value with a preset judgment threshold, determine the data segment below the judgment threshold as a normal data segment, and determine the data above the judgment threshold as an interfered data segment.

[0095] In implementation, when a plurality of payload data are received with only one CRC check error, the data protocol processor is specifically used to:

[0096] If each data segment is normal, it is output as payload data;

[0097] Otherwise, the disturbed data segment is indicated and treated as lost data.

[0098] In implementation, when a plurality of payload data are received with two or more CRC check errors, the data protocol processor is specifically used to:

[0099] For each data segment, a data segment with the best signal quality is selected from the received payload data to form a new data packet;

[0100] If the signal quality of each data segment in the new data packet is a normal data segment, the new data packet is output as payload data; otherwise, the interfered data segment is indicated and processed as lost data.

[0101] In implementation, the data protocol processor is further used to eliminate packet loss or data loss through audio post-processing.

[0102] By using the Bluetooth receiver in the embodiment of the present application, when a cyclic redundancy CRC check error occurs and the remaining number of retransmissions of the payload data exceeds a preset retransmission threshold, the payload data is processed according to the signal quality of each data segment, so as to use the data with a CRC check error but good signal quality to conceal the damage caused by data loss to the transmitted data (especially voice or audio), effectively improve the data reliability of Bluetooth limited retransmission, reduce caching, reduce latency, reduce data jamming, especially music jamming, thereby improving the performance of Bluetooth communication.

[0103] Example 3

[0104] Based on the same inventive concept, the embodiment of the present application also provides a Bluetooth device. Since the principle of solving the problem by the Bluetooth device is similar to the method provided in Embodiment 1 of the present application, the implementation of the Bluetooth device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0105] Figure 3 A structural schematic diagram of a Bluetooth device according to an embodiment of the present application is shown. As shown in the figure, the Bluetooth device provided in the embodiment of the present application includes a Bluetooth receiver as in Embodiment 2 of the present application.

[0106] In specific implementation, the Bluetooth devices in the embodiments of the present application may include Bluetooth headsets, Bluetooth speakers, Bluetooth gateways, Bluetooth MP3s, Bluetooth flash drives, Bluetooth car devices, Bluetooth adapters, etc., and the present application does not impose any restrictions on this.

[0107] The Bluetooth device provided in the embodiment of the present application sets a retransmission threshold to determine the CRC check result and signal quality each time a data packet is received. When the number of retransmissions is not less than the preset number of retransmissions, the erroneous data is processed and an ACK is replied to force the retransmission to end. This can reduce cache, delay, and data jams.

[0108] Example 4

[0109] An embodiment of the present application provides a Bluetooth headset, including an antenna, a radio frequency transceiver, a baseband processor, a signal quality estimator, and a data protocol processor (or a data and protocol processor, which may be a data processor and a protocol processor in specific implementation).

[0110] Among them, the antenna is responsible for receiving air signals or transmitting RF signals into the air; the RF transceiver is responsible for converting RF signals into baseband signals or converting baseband signals into RF signals; the baseband processor is responsible for baseband data processing and providing CRC check results; the signal quality estimator is used to estimate the signal quality or signal-to-interference-noise ratio of the demodulated data, and send the estimated signal quality information to the data protocol processor as a basis for reconstructing erroneous data; the data protocol processor is responsible for processing data with correct CRC detection and CRC detection errors, communication protocol processing, and audio post-processing, etc.

[0111] Specifically, the data protocol processor may include a microprocessor and a memory, wherein the microprocessor is used to execute data and protocol processing programs, and the memory is used to store data and protocol codes, etc.

[0112] The signal quality estimator evaluates the quality of the baseband data, or the severity of interference, by calculating the decision error of the baseband signal of the demodulated baseband data. The signal quality estimator divides the received data into several segments of the same length, and estimates the signal quality of the differential demodulated signal corresponding to each segment of data. The estimation method is: take the absolute value of the difference between the signal angle before the DQPSK or D8PSK demodulated data and the angle corresponding to the data decision. Then add up the absolute values ​​of the angle differences corresponding to all DQPSK or D8PSK symbols of each segment of the signal, and then calculate the average. Set the angle difference corresponding to the signal-to-noise ratio required for demodulating the DQPSK or D8PSK signal as the judgment threshold. The actual angle error average is compared with this threshold. Data below the threshold is normal data, and data above the threshold is interfered data.

[0113] In order to realize the transmission of music data, the Bluetooth receiver (such as music Bluetooth headphones and Bluetooth speakers) establishes the underlying ACL link and the upper layer A2DP link with the Bluetooth audio source (such as a smart phone). In a conventional A2DP link, the communication is disturbed or severely attenuated, resulting in data reception errors. The music will repeatedly transmit this data until the receiver replies ACK to confirm correct reception, or the data is discarded due to timeout. Generally, the audio source device sets a very long timeout, and different audio source devices have different timeout settings. In order to solve the problem of not being able to receive correct data for a long time, the receiving device needs to use a large cache to ensure smooth music playback. This will cause a large delay in music playback and cannot meet application scenarios that require audio and video synchronization.

[0114] In order to reduce the cache and lower the delay of music playback, the embodiment of the present application limits the number of retransmissions in the Bluetooth headset.

[0115] Figure 4 A schematic diagram of the data receiving process in an embodiment of the present application is shown. As shown in the figure, the embodiment of the present application first sets a limited retransmission threshold in the link corresponding to the A2DP application. For example, the maximum number of retransmissions can be set to 3, wherein the maximum number of retransmissions can be configured according to application requirements. For scenarios with high delay requirements, the number of retransmissions is configured to be relatively low. For scenarios with high audio quality requirements and low delay, the number of retransmissions can be configured to be higher.

[0116] Each time a new data packet is received, the number of retransmissions is set to 0. The receiver receives the music data and judges based on the CRC check result provided by the baseband processor. If the CRC check is correct, it replies ACK and ends the retransmission, and hands the data with the correct CRC check to the data and protocol processor for decoding and processing. If the CRC check is wrong, the error data and its corresponding signal quality information are saved. Then, it is determined whether the number of retransmissions is equal to the preset limited retransmission threshold. If the number of retransmissions is less than the preset retransmission threshold, NAK is replied to request retransmission, and the number of retransmissions is increased by 1 to start the next data reception. If the number of retransmissions is equal to the preset retransmission threshold, the saved error data is processed, and ACK is replied to end the retransmission.

[0117] The error data processing method is as follows:

[0118] If only one data packet has a CRC error: the data quality provided by the signal quality estimator is used to determine whether each data segment is normal. If each data segment is normal, that is, not affected by severe interference, it is sent to the audio decoder for decoding. Otherwise, the audio decoder is informed of the abnormal data segment and treated as lost data.

[0119] If there are two or more data packets with CRC errors: process each data segment separately, select the data with the best quality in each data segment in multiple packets, that is, the data with the smallest average actual angle error, and form a new data packet. Then determine whether each data segment of the new data packet is normal, that is, the corresponding signal quality is not affected by serious interference, and send it to the audio decoder for decoding. Otherwise, indicate the abnormal data segment to the audio decoder and treat it as lost data.

[0120] The embodiment of the present application can also process the situation as packet loss in the case where there is no CRC error but the audio data packets all fail to synchronize or receive the packet header (HEC) error within a limited number of retransmissions.

[0121] The embodiment of the present application eliminates the above-mentioned packet loss or data loss through audio post-processing, that is, PLC is used to eliminate the impact of lost data on audio.

[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0123] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0124] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0126] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0127] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A Bluetooth receiving method, It is characterized in that The steps include: Receive a baseband signal and parse out payload data and cyclic redundancy CRC check information corresponding to the payload data; Obtaining a CRC check result according to the CRC check information; When the CRC check is wrong and the number of retransmissions is not less than the preset retransmission threshold, a confirmation message ACK is sent to end the retransmission. It also includes: estimating a signal quality of the payload data; When the CRC check error occurs and the number of retransmissions is not less than a preset retransmission threshold, processing the payload data with the CRC check error according to the signal quality, When a plurality of payload data are received with only one CRC check error, the processing of the payload data with the CRC check error according to the signal quality includes: If each data segment is normal, it is output as payload data; otherwise, it indicates a disturbed data segment and is treated as lost data; or When a plurality of payload data are received with two or more CRC check errors, the processing of the payload data with CRC check errors according to the signal quality includes: For each data segment, a data segment with the best signal quality is selected from the received payload data to form a new data packet; If the signal quality of each data segment in the new data packet is a normal data segment, the new data packet is output as payload data; otherwise, the interfered data segment is indicated and processed as lost data.

2. The method according to claim 1, It is characterized in that The method further comprises: When the CRC check is wrong and the number of retransmissions is less than a preset retransmission threshold, the number of retransmissions is accumulated and a retransmission is requested.

3. The method according to claim 1, It is characterized in that The estimating the signal quality of the load data comprises: Divide the received payload data into several data segments evenly; For each symbol contained in each data segment, the absolute value of the difference between the signal angle before the decision and the angle of the data after the decision is taken during demodulation to obtain the absolute value of the angle difference, the absolute values ​​of the angle differences corresponding to all symbols in the data segment are accumulated and averaged to obtain the actual angle error average value of the data segment; The actual angle error average value is compared with a preset judgment threshold to determine the signal quality of each data segment.

4. The method according to claim 3, It is characterized in that The received load data is demodulated using the DQPSK or D8PSK standard; the judgment threshold is the angle difference corresponding to the signal-to-noise ratio required for demodulating the DQPSK or D8PSK signal.

5. The method according to claim 3, It is characterized in that The comparing the actual angle error average value with a preset judgment threshold to determine the signal quality of the data segment includes: The actual angle error average value is compared with a preset judgment threshold, and the data segment below the judgment threshold is determined as a normal data segment, and the data segment above the judgment threshold is determined as an interfered data segment.

6. A Bluetooth receiver, It is characterized in that include: antenna, a radio frequency transceiver, a baseband processor, a signal quality estimator, and a data protocol processor, wherein: Antenna, used to send and receive signals; RF transceiver, used for conversion between RF signal and baseband signal; A baseband processor, used to process the baseband signal and parse out the payload data and CRC check information corresponding to the payload data, and obtain a CRC check result according to the CRC check information; A data protocol processor is used to reply a confirmation message ACK to end the retransmission when the CRC check is wrong and the number of retransmissions is not less than a preset retransmission threshold. It also includes: a signal quality estimator, for estimating the signal quality of the demodulated payload data; When the CRC check error occurs and the number of retransmissions is not less than a preset retransmission threshold, the data protocol processor processes the load data with the CRC check error according to the signal quality, When a plurality of payload data are received with only one CRC check error, the data protocol processor is specifically used for: If each data segment is normal, it is output as payload data; Otherwise, the disturbed data segment is indicated and treated as lost data; or When receiving a plurality of payload data with two or more CRC check errors, the data protocol processor is specifically used to: For each data segment, a data segment with the best signal quality is selected from the received payload data to form a new data packet; If the signal quality of each data segment in the new data packet is a normal data segment, the new data packet is output as payload data; otherwise, the interfered data segment is indicated and processed as lost data.

7. The Bluetooth receiver as claimed in claim 6, It is characterized in that The data protocol processor is further configured to accumulate the number of retransmissions and request retransmission when the CRC check is erroneous and the number of retransmissions is less than a preset retransmission threshold.

8. The Bluetooth receiver as claimed in claim 6, It is characterized in that The signal quality estimator comprises: A segmentation module, used to evenly divide the received load data into several data segments; A calculation module is used to obtain the absolute value of the difference between the signal angle before the decision and the angle of the data after the decision for each symbol contained in each data segment during demodulation, and to accumulate and average the absolute values ​​of the angle differences corresponding to all symbols in the data segment to obtain the actual angle error average value of the data segment; The estimation module is used to compare the actual angle error average value with a preset judgment threshold to determine the signal quality of each data segment.

9. The Bluetooth receiver as claimed in claim 8, It is characterized in that The received load data is demodulated using the DQPSK or D8PSK standard; the judgment threshold is the angle difference corresponding to the signal-to-noise ratio required for demodulating the DQPSK or D8PSK signal, The estimation module is specifically used to compare the actual angle error average value with a preset judgment threshold, determine the data segment below the judgment threshold as a normal data segment, and determine the data above the judgment threshold as a disturbed data segment.

10. A Bluetooth device, It is characterized in that It comprises a Bluetooth receiver as claimed in any one of claims 6 to 9.

Citation Information

Patent Citations

  • Bluetooth communication method, Bluetooth communication system, Bluetooth receiving method and Bluetooth receiving device

    CN108111194A

  • Radio communication equipment and method therefor

    JP2002325074A