Bluetooth data packet receiving and error correction method and device and storage medium
By generating synthetic data packets for checksum verification, the problem of low error correction efficiency of Bluetooth data packets is solved, the number of retransmissions is reduced, and communication efficiency is improved.
Patent Information
- Application Number
- CN202210021710.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-10
AI Technical Summary
The error correction mechanism of existing Bluetooth data packets is inefficient, resulting in an increase in the number of retransmissions and affecting communication efficiency.
The processing unit receives multiple Bluetooth data packets, generates unique synthetic data packets or candidate synthetic data packets, performs checksum verification, reduces the number of retransmissions, and improves the successful reception rate.
It reduces the number of retransmissions of Bluetooth data packets, improves the successful reception rate of data packets, and improves the efficiency of Bluetooth communication.
Smart Images

Figure CN115733581B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a wireless transmission technology machine, in particular to a method for receiving and correcting errors of a Bluetooth data packet, a computer-readable storage medium and a device. Background Art
[0002] Bluetooth is a short-range wireless transmission technology standard for short-range data exchange between fixed and mobile devices using radio waves in the ISM band, which includes frequencies from 2.402 GHz to 2.48 GHz. Depending on the type of data packet, each data packet can be protected by error correction technology, such as 1 / 3 or 2 / 3 forward error correction (FEC). In addition, the data packet data (Payload) and cyclic redundancy check (CRC) will be continuously retransmitted until the automatic repeat request (ARQ) is acknowledged. However, how to speed up the error correction of Bluetooth data packets has always been an important issue in the reception of Bluetooth data packets. Therefore, the present invention proposes a method for receiving and correcting Bluetooth data packets, a computer-readable storage medium and a device for improving the efficiency of Bluetooth communication. Summary of the invention
[0003] In view of this, how to alleviate or eliminate the above-mentioned defects in related fields is indeed a problem to be solved.
[0004] The present specification relates to an embodiment of a method for receiving and correcting errors of a Bluetooth data packet, which is executed by a processing unit and includes: receiving multiple Bluetooth data packets from a radio frequency signal; when the multiple Bluetooth data packets can generate a unique synthetic data packet, performing a checksum verification on the unique synthetic data packet; when the multiple Bluetooth data packets cannot generate the unique synthetic data packet, generating multiple candidate synthetic data packets based on one or more inconsistent bits between the multiple Bluetooth data packets, and performing a checksum verification on the multiple candidate synthetic data packets; when the unique synthetic data packet or one of the multiple candidate synthetic data packets passes the verification, transmitting the verified synthetic data packet to an application module; and when the unique synthetic data packet does not pass the verification or the multiple candidate synthetic data packets do not pass the verification, starting a receiving operation for retransmitting the Bluetooth data packet.
[0005] The present specification also relates to an embodiment of a computer-readable storage medium, which includes a computer program. When a processing unit loads and executes the computer program, the method for receiving and correcting errors of a Bluetooth data packet as shown above is implemented.
[0006] The present specification also relates to an embodiment of a Bluetooth data packet receiving and error correction device, comprising: a processing unit. The processing unit is used to implement the Bluetooth data packet receiving and error correction method as shown above when loading and executing program codes.
[0007] One of the advantages of the above embodiment is that the number of retransmissions can be reduced or the success rate of receiving Bluetooth data packets can be improved by generating and verifying a unique synthetic data packet or multiple candidate synthetic data packets as described above.
[0008] Other advantages of the present invention will be explained in more detail with reference to the following description and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0010] Figure 1 FIG. 4 is a schematic diagram of a Bluetooth communication application according to an embodiment of the present invention.
[0011] Figure 2 FIG. 4 is a diagram of a system architecture configured in a left wireless headset or a right wireless headset according to an embodiment of the present invention.
[0012] Figure 3 The figure is a flow chart of a method for receiving and correcting errors of a Bluetooth data packet according to an embodiment of the present invention.
[0013] Figure 4 A schematic diagram showing the generation and verification of candidate composite data packets according to an embodiment of the present invention.
[0014] Figure 5 A schematic diagram showing the generation and verification of a unique composite data packet according to an embodiment of the present invention.
[0015] Figure 6 A schematic diagram showing a data bit processing flow of a packet on a low power uncoded physical layer and a low power coded physical layer according to an embodiment of the present invention.
[0016] Figure 7 A schematic diagram showing a data bit processing flow of a BTR / EDR packet according to an embodiment of the present invention.
[0017] Among them, the simple description of the symbols in the accompanying drawings is as follows:
[0018] 110: left wireless headset; 120: right wireless headset; 130: mobile phone; 210: antenna; 220: RF module; 230: modulator-demodulator; 240: baseband module; 242: processing unit; 244: memory; S310~S360: method steps; 410: transmitter; 420: receiver; 430: Bluetooth data packet generated by the transmitter; 440#0, 440#1: Bluetooth data packet received by the receiver; 450#0~450#7: candidate synthesized data packet; 510: transmitter; 520: receiver; 530: Bluetooth data packet generated by the transmitter; 540#0~540#2: Bluetooth data packet received by the receiver; 550: synthesized data packet; 610, 630, 710: de-whitening operation; 620, 640, 720, 740: CRC check operation; 730: decryption operation of E0 algorithm. DETAILED DESCRIPTION
[0019] The embodiments of the present invention will be described below with reference to the accompanying drawings. In these drawings, the same reference numerals represent the same or similar components or method flows.
[0020] It must be understood that the words "comprise", "include" and the like used in this specification are used to indicate the existence of specific technical features, values, method steps, job processing, components and / or assemblies, but do not exclude the addition of more technical features, values, method steps, job processing, components, assemblies, or any combination of the above.
[0021] The words "first", "second", "third", etc. used in the present invention are used to modify the components in the claims, and are not used to indicate a priority order, a prior relationship, or that one component precedes another, or a time sequence when executing method steps. They are only used to distinguish components with the same name.
[0022] It should be understood that when a component is described as being "connected" or "coupled" to another component, it may be directly connected or coupled to the other component, and there may be intervening components. Conversely, when a component is described as being "directly connected" or "directly coupled" to another component, there are no intervening components. Other words used to describe the relationship between components can also be interpreted in a similar manner, such as "between" versus "directly between", or "adjacent" versus "directly adjacent", etc.
[0023] refer to Figure 1The Bluetooth communication application shown. In this embodiment, the user can obtain data from the mobile phone 130 through a wireless headset. The wireless headset is a pair of devices with wireless communication capabilities, including a left wireless earbud 110 and a right wireless earbud 120, and there is no physical line connecting the left wireless earbud 110 and the right wireless earbud 120. The mobile phone 130 and the left wireless earbud 110 and the mobile phone 130 and the right wireless earbud 120 can use wireless communication lines to transmit data packets carrying the user's voice signals, such as low energy audio (LE Audio) of Bluetooth. In some embodiments, the left wireless earbud 110 and the right wireless earbud 120 can receive media packets of the left channel and the right channel corresponding to stereo data from the mobile phone 130, respectively. The mobile phone 130 can be called a wireless master device, and the left wireless earbud 110 and the right wireless earbud 120 can be called wireless slave devices. The left wireless headset 110 and the right wireless headset 120 are peer devices to each other.
[0024] In addition to the Bluetooth low energy audio described above, the embodiments of the present invention may also be applied to other Bluetooth communication technologies, such as Bluetooth Basic Rate (BR), Enhanced Data Rate (EDR), Synchronous Connection-Oriented (SCO), and Extended Synchronous Connection-Oriented (eSCO). In addition, the embodiments of the present invention may also be applied to other Bluetooth communication applications, such as point-to-point data transmission between two electronic devices, or point-to-point data transmission between multiple electronic devices in a Personal Area Network (PAN).
[0025] refer to Figure 2The system architecture diagram shown in FIG. 1 is a diagram of a system architecture. This system architecture can be set in a mobile phone 130, a left wireless headset 110 or a right wireless headset 120, and includes an antenna 210, a radio frequency module (RF module) 220, a modulator-demodulator (modem) 230 and a baseband module (baseband module) 240. The baseband module 240 includes a processing unit 242 and a memory 244. The processing unit 242 can be implemented in a variety of ways, such as using general hardware (for example, a microcontroller unit, a digital signal processor, a single processor, a multi-processor with parallel processing capabilities, a graphics processor or other processors with computing capabilities), and provides the functions described later when executing software and / or firmware instructions. The memory 244 can be configured with space as a data buffer to temporarily store control data, media data packets, etc. received from the medium. The memory 244 can also store data required during the execution process, such as variables, data tables, etc. The processing unit 242 can be coupled to the memory 244 via a bus architecture to access data.
[0026] Under the BLE Channel Selection Algorithm, the mobile phone 130 may transmit the same or different channel maps to the left wireless headset 110 and the right wireless headset 120. The left wireless headset 110 or the right wireless headset 120 may know to use a designated one of a plurality of physical channels (e.g., 37) in the 2.4 to 2.48 GHz frequency band for data reception or transmission in each time interval (or time slot) based on the received channel map and a predetermined hopping algorithm. The RF module 220 may use the designated physical channel for data reception or transmission in each time interval. The RF module 220 is used to receive RF signals in the medium, convert the received signals into baseband signals that can be processed by the modulator-demodulator 230, and receive baseband signals from the modulator-demodulator 230 and convert them into RF signals that can be transmitted to the mobile phone 130. The RF module 220 may include a mixer for generating a new frequency based on an input signal and a signal output by a local oscillator. The modulator-demodulator 230 may implement modulation and demodulation techniques such as Gaussian Frequency Shift Keying (GFSK), π / 4-Differential Quadrature Phase Shift Keying (DQPSK), or 8-Differential Phase Shift Keying (DPSK).
[0027] Although the Bluetooth communication protocol uses a retransmission mechanism to allow the transmitter to retransmit the data packet to the receiver when the data packet fails to pass the verification, each retransmission will consume more time and bandwidth. Therefore, an embodiment of the present invention proposes a method for receiving and correcting Bluetooth data packets, which is implemented by the processing unit 242 in the Bluetooth device (for example, a mobile phone 130, a left wireless headset 110, a right wireless headset 120, etc.) when loading and executing specific firmware, so as to reduce the number of retransmissions and improve the success rate of data reception. It should be noted here that this method is only activated when the connection between the transmitter and the receiver is configured so that each retransmitted Bluetooth data packet is the same as the original Bluetooth data packet, and the length of the Bluetooth data packet is fixed. Reference Figure 3 Detailed steps shown:
[0028] Step S310: Receive a Bluetooth data packet with a specific identification code from the transmitter through the receiving path in the antenna 210, the RF module 220 and the modem 230 (if not specifically stated, the following steps are referred to as Bluetooth data packets). The Bluetooth data packet at least includes data packet data (payload) and a checksum. The checksum is a redundant bit generated based on the data packet data, and may be a cyclic redundancy check (CRC), MD5, etc. It should be noted here that the Bluetooth data packet mentioned above may be the original data packet transmitted by the transmitter for the first time, or the Bluetooth data packet retransmitted by the transmitter.
[0029] Step S320: Determine whether the multiple Bluetooth data packets previously received can generate a unique synthesized packet. If so, the process continues to process step S340; otherwise, the process continues to process step S330. The processing unit 242 can determine whether the inconsistent bits in the multiple Bluetooth data packets previously received can generate a unique synthesized packet based on the majority decision principle. For example, if only the 10th bit of the three received Bluetooth data packets is inconsistent, the 10th bit of the Bluetooth data packet received for the first time is "1", the 10th bit of the Bluetooth data packet received for the second time is "0", and the 10th bit of the Bluetooth data packet received for the third time is "1", then a unique synthesized data packet with the 10th bit as "1" can be generated based on the majority decision principle.
[0030] Step S330: Generate multiple synthesized packet candidates according to the inconsistent bits between the multiple Bluetooth data packets received previously, so as to represent all possible combinations of the inconsistent bits between the multiple Bluetooth data packets.
[0031] Step S340: Determine whether one of the generated candidate synthesized data packets can pass the verification. If yes, the process continues to process step S360; otherwise, the process continues to process step S350. The processing unit 242 can determine whether the data packet data in the Bluetooth data packet passes the verification based on the checksum carried in the Bluetooth data packet.
[0032] Step S350: Initiate a retransmission operation. For example, a negative acknowledgement (NAK) corresponding to the Bluetooth data packet received in step S310 is replied to the transmitter through the transmission path in the antenna 210, the RF module 220 and the modem 230, or a retransmission request (re-transmission request) with a specific identification code is transmitted to the transmitter, so that the transmitter can retransmit the Bluetooth data packet indicated by the specific identification code.
[0033] Step S360: Transmit the verified synthesized data packet to the program module of the specific application, and the specific application may be file data processing, voice data processing, human-machine interface control, etc.
[0034] The following are some use cases to illustrate the above method. Figure 4 In the use case shown, the transmitter 410 transmits a Bluetooth data packet “0xFE28 555555555555 00C5AB A53C68” 430 to the receiver 420 at time t0, where “0xFE28” represents a packet header, “0x555555555555” represents data packet data, “0x00C5AB” represents a message integrated check code (MIC), and “0xA53C68” represents a checksum. However, due to noise interference, the receiver 420 receives an erroneous Bluetooth data packet “0xFE28555555” at time t0. 7555555 00C5AB A53C68" 440#0, wherein the area marked by the underscore contains an erroneous number (step S310), so that the erroneous Bluetooth data packet cannot pass the verification (the "No" path in step S340), and the retransmission operation is started (step S350). The transmitter 410 retransmits the Bluetooth data packet "0xFE28 555555555555 00C5ABA53C68" 430 to the receiver 420 at time point t1. However, due to the interference of noise, the receiver 420 still receives the erroneous Bluetooth data packet "0xFE285555 4 5555555 00C5AB A53C6 9 ” 440#1, wherein the area marked by the underline contains an erroneous number (step S310). Since the previously received Bluetooth data packets 440#0 and 440#1 cannot generate a unique synthetic data packet (the “No” path in step S320), eight candidate synthetic data packets 450#0 to 450#7 are generated based on the previously received Bluetooth data packets 440#0 and 440#1 to represent all possible combinations of inconsistent bits in the received Bluetooth data packets 440#0 and 440#1 (step S330), and the eight candidate synthetic data packets 450#0 to 450#7 are checked.
[0035] Furthermore, the least significant digits of Bluetooth data packets 440#0 and 440#1 are different, namely 8 and 9. "0x8" is equivalent to "2b1000", while "0x9" is equivalent to "2b1001". All possible combinations of inconsistent bits are "1000" and "1001", and all possible digits are 8 and 9.
[0036] Similarly, Bluetooth data packets 440#0 and 440#1 differ in the nineteenth digit, which is 7 and 5 respectively. "0x7" is equivalent to "2b0111", and "0x5" is equivalent to "2b0101". All possible combinations of inconsistent bits are "0111" and "0101", and all possible digits are 7 and 5.
[0037] Similarly, Bluetooth data packets 440#0 and 440#1 differ in the twentieth digit, which are 5 and 4 respectively. "0x5" is equivalent to "2b0101", and "0x4" is equivalent to "2b0100". All possible combinations of inconsistent bits are "0101" and "0100", and all possible digits are 5 and 4.
[0038] During the verification process, it is found that the candidate synthesized data packet 450#1 passes the verification (“Yes” path in step S340), and thus the candidate synthesized data packet 450#1 is transmitted to the program module of the specific application (step S360).
[0039] refer to Figure 5 In the illustrated use case, the transmitter 510 transmits a Bluetooth data packet “0xFE28555555555555 00C5AB A53C68” 530 to the receiver 520 at time t0. However, due to noise interference, the receiver 520 receives an erroneous Bluetooth data packet “0xFE28 55555 F 55555500C5AB A53C68" 540#0, wherein the area marked by the underscore contains an erroneous number (step S310), so that the erroneous Bluetooth data packet cannot pass the check (the "No" path in step S340), and the retransmission operation is started (step S350). The transmitter 510 retransmits the Bluetooth data packet "0xFE28 555555555555 00C5AB A53C68" 530 to the receiver 520 at time points t1 and t2, respectively. However, due to the interference of noise, the receiver 520 receives the erroneous Bluetooth data packet "0xFE285555 1 5555555 00C5ABA53C6 5 "540#1, and received an erroneous Bluetooth data packet at time t2"0xFE28 555555555 04 5 00C5ABA53C68" 540#2, wherein the area marked by the underline contains an erroneous number (step S310). Since the inconsistent numbers in the previously received Bluetooth data packets 540#0, 540#1 and 540#2 can generate a unique synthesized data packet "0xFE28 555555555555 00C5AB A53C68" 550 according to the majority decision principle (the "yes" path in step S320), and it is found that the unique synthesized data packet 550 passes the verification (the "yes" path in step S340), then the synthesized data packet 550 is transmitted to the program module of the specific application (step S360).
[0040] Depend on Figure 5The use case shown can be understood as evaluating whether there are erroneous digits by comparing each digit of multiple Bluetooth data packets one by one. For example, by comparing Bluetooth data packet 540#0 and retransmitted Bluetooth data packets 540#1 and 540#2, it can be seen that the value "5" of the least significant hexadecimal digit of Bluetooth data packet 540#1 is different from the value "8" of the least significant hexadecimal digit of Bluetooth data packets 540#0 and 540#2. In other words, in order to ensure that the comparison of each digit in Bluetooth data packet 540#0 and each digit in retransmitted Bluetooth data packet 540#1 can be completed, the length of retransmitted Bluetooth data packet 540#1 must be the same as the length of Bluetooth data packet 540#0. Similarly, the length of Bluetooth data packet 540#2 must be the same as the length of Bluetooth data packet 540#0.
[0041] The Bluetooth data packet reception and error correction method described above can be applied to the Low Energy Audio (LE audio) standard. In some embodiments, the mobile phone 130 can establish different connection-oriented isochronous channels with the left wireless headset 110 and the right wireless headset 120, respectively, and each channel uses the logical transmission of the low-power connected isochronous stream (LE Connected Isochronous Stream, LE-CIS) and supports two-way communication. The two CIS form a connected isochronous group (CIG), and each CIS can have multiple CIS instances. In a CIG, a transmission time slot (TX slot) and a reception time slot (RX slot) are scheduled for each CIS, which are called events and subevents. The CIS instances in the same CIG have a common time reference data, which is used to synchronize the processing of isochronous data between the left wireless headset 110 and the right wireless headset 120. Each event occurs at a regular time interval, also known as an isochronous (ISO interval), and the ISO interval can be set to a multiple of 1.25 milliseconds from 5 milliseconds (ms) to 4 seconds. Each event can also be divided into one or more sub-events. Each sub-event includes a transmission time slot and a reception time slot. In each sub-event in the CIS, the mobile phone 130 can transmit a media data packet to the left wireless headset 110 or the right wireless headset 120 in the transmission time slot of the mobile phone 130, and the left wireless headset 110 or the right wireless headset 120 can transmit a response packet to the mobile phone 130 in the reception time slot of the mobile phone 130. The media data packet may refer to a data packet containing a link layer data protocol data unit (LL data PDU) for carrying left channel or right channel data. The response data packet may be an empty data packet and contain information of acknowledgment (ACK) or negative-acknowledgement (NAK). When the mobile phone 130 receives unacknowledged information from the left wireless headset 110 or the right wireless headset 120, the mobile phone 130 may retransmit the media data packet.For example, in a sub-event, when the mobile phone 130 finds that the next expected sequence number (NESN) in the reply data packet is equal to the sequence number (SN) in the media data packet, it means that the reply data packet contains unacknowledged information, and the mobile phone 130 retransmits the media data packet in the next sub-event. Otherwise, it means that the reply data packet contains acknowledged information, and the media data packet does not need to be retransmitted.
[0042] When establishing a CIS connection, the mobile phone 130 may send a link layer connection isochronous stream request (LL CIS request, LL_CIS_REQ) to the left wireless headset 110 and the right wireless headset 120, wherein the control data field (CtrDataField) may include a 1-bit framing parameter, wherein when the framing parameter is set to "0", it means that the CIS connection is used to transmit unframed data packets (unframed Data PDUs); when the framing parameter is set to "1", it means that the CIS connection is used to transmit framed data packets (framed Data PDUs). After receiving the LL_CIS_REQ, the left wireless headset 110 or the right wireless headset 120 sends a link layer connection isochronous stream reply (LL CIS response, LL_CIS_RSP) to the mobile phone 130. When the processing unit 242 in the left wireless headset 110 or the right wireless headset 120 detects that the framing parameter in LL_CIS_REQ is set to "0", it knows that the length of the Bluetooth data packet transmitted by the mobile phone 130 on this CIS connection is fixed, and then starts the Bluetooth data packet reception and error correction method as described above.
[0043] In other embodiments, the mobile phone 130 can establish a connectionless isochronous channel with the left wireless headset 110 and the right wireless headset 120, which uses the logical transmission of two low-power broadcast isochronous streams (LE broadcast isochronous stream, LE-BIS) and supports uni-directional communication. The two BIS form a broadcast isochronous group (BIG), and each BIG can have multiple BIS instances. The BIS instances in the BIG have common time reference data, which is used to synchronize the processing of broadcast isochronous data for the left wireless headset 110 and the right wireless headset 120. Each BIS can have multiple wireless receiving ends, and each BIS instance has a unique access address and uses a specific channel map to send media data packets. For each BIS, transmission time slots are scheduled, called events and sub-events. Each event occurs at a regular ISO interval. Each event can also be divided into one or more sub-events. Each sub-event contains a transmission time slot. Taking the mobile phone 130 as an example, in each sub-event in the BIS, the mobile phone 130 can transmit a media data packet to the left wireless headset 110 or the right wireless headset 120 in the transmission time slot of the mobile phone 130. In addition, a retransmission number (RTN) is set for each BIS. For example, when RTN=1, it means that each media data packet will be retransmitted once.
[0044] When establishing a BIG broadcast, the mobile phone 130 may send multiple groups of BIS and periodic advertising packets, and the periodic advertising packets contain BIG transmission information (BIG Information, BIGInfo). The left wireless headset 110 and the right wireless headset 120 receive the BIG transmission information of the periodic advertising packets, wherein the BIG transmission information includes a 1-bit framing parameter, wherein when the framing parameter is set to "0", it means that this BIS connection is used to transmit unframed data packets (unframed Data PDUs); when the framing parameter is set to "1", it means that this BIS connection is used to transmit framed data packets (framed Data PDUs). When the processing unit 242 in the left wireless headset 110 or the right wireless headset 120 detects that the framing parameter in the group command for establishing a broadcast is set to "0", it knows that the length of the Bluetooth data packet transmitted by the mobile phone 130 on this BIS connection is fixed, and then starts the Bluetooth data packet reception and error correction method as described above.
[0045] Figure 6 Part (A) (upper half) of the figure shows the payload bit process on the LE uncoded PHYs. The transmitter generates a packet header (denoted as "HDR") and packet data (denoted as "Payload") of the Bluetooth packet, and encrypts them to generate a message integration check code (denoted as "MIC") and encrypted packet data (denoted as "Enc.Payload") respectively. Next, the transmitter encodes the packet header, encrypted packet data and message integration check code of the Bluetooth packet with cyclic redundancy code, and encapsulates the encoded result (denoted as "CRC") into the Bluetooth packet. After performing dewhitening 610, the receiver should theoretically obtain the Bluetooth packet transmitted from the transmitter as described above. In order to verify whether the received result is correct, the receiver performs a CRC check 620. The above-mentioned Bluetooth packet reception and error correction method can be integrated into the processing of CRC check 620, or performed between dewhitening 610 and CRC check 620. If the received Bluetooth data packet fails the CRC check, a retransmission operation is performed.
[0046] In some specific Bluetooth communication standards, even if there is no interference from noise, there are still differences between the retransmitted Bluetooth data packet and the original Bluetooth data packet before CRC check. If the above-mentioned Bluetooth data packet reception and error correction method is applied to the above-mentioned specific Bluetooth communication standard, it may not be possible to effectively perform error correction, because even if the difference between the Bluetooth data packets is identified, the difference is not necessarily caused by noise interference. In other words, in the absence of noise interference, before the CRC check process, as long as there is substantially no difference between the retransmitted Bluetooth data packet and the original Bluetooth data packet, the above-mentioned Bluetooth data packet reception and error correction method is relatively effective.
[0047] Figure 6 Part (B) (lower half) of FIG. 5 shows the data bit processing flow of the packet on the LE Coded PHYs. Similarly, the Bluetooth data packet reception and error correction method described above can be integrated into the processing of CRC check 640, or performed between de-whitening 630 and CRC check 640. Figure 6 For technical details of the bitstream processing flow, please refer to the Bluetooth Core Specification v5.2, Vol 6, Part B, Chapter 3 published on December 31, 2019.
[0048] The above-mentioned method for receiving and correcting Bluetooth data packets can be applied to the first generation / second generation Bluetooth communication standard of Basic Rate (BR) / Enhanced Data Rate (EDR). In some embodiments, the mobile phone 130 can establish a Synchronous Connection Oriented (SCO) / enhanced Synchronous Connection Oriented (eSCO) connection with the left wireless headset 110 and the right wireless headset 120. The SCO / eSCO connection is a symmetrical, point-to-point connection between the mobile phone 130 and one of the left wireless headset 110 and the right wireless headset 120. For example, the mobile phone 130 maintains the eSCO connection by reserving time slots in a fixed time interval. According to the form of the transmitted data packet, the mobile phone 130 transmits the data packet at a fixed time interval, for example, 2 to 8 time slots out of every 12 time slots are used to transmit 2-EV3 data packets, wherein each time slot is generally 625 microseconds (μs). The eSCO connection provides a limited number of retransmissions. For example, the mobile phone 130 may transmit a 2-EV3 data packet (which may be referred to as a medium data packet) to the device that has established a connection in the first time slot, which carries mono data. The connected device transmits a 2-EV3 data packet (which may be referred to as a reply data packet) to the mobile phone 130 in the second time slot, which carries information of confirmation or non-confirmation. When the mobile phone 130 receives non-confirmation information from the connected device, the mobile phone 130 may retransmit the medium data packet to the connected device in the third time slot. The first to second time slots may be referred to as an eSCO window, and the third to fourth time slots may be referred to as a retransmission window. After the processing unit 242 in the left wireless headset 110 or the right wireless headset 120 determines the modulation mode and encryption / decryption method between the master device and the slave device during the process of establishing the connection, the length of the Bluetooth data packet transmitted on the SCO / eSCO connection is fixed, and then the Bluetooth data packet reception and error correction method described above are started.
[0049] Figure 7The data packet bit processing flow of BR / EDR is shown. The communication between the transmitter and the receiver can be encrypted using E0 or AES-CCM. When E0 encryption is selected, the transmitter generates a Bluetooth data packet header (expressed as "HDR") and data packet data (expressed as "Payload"), and encodes the Bluetooth data packet header and data packet data with a cyclic redundancy code, and encapsulates the encoded result (expressed as "CRC") into the Bluetooth data packet. Next, the transmitter encrypts the data packet data using the E0 algorithm, in which the key value adds time information, and replaces the original data packet data with the encrypted result (expressed as "Enc(Payload,CLK A)"). Next, after performing decryption 710 and decryption 730 of the E0 algorithm, the receiver should theoretically obtain the unencrypted Bluetooth data packet transmitted from the transmitter as described above. In order to verify whether the received result is correct, the receiver will perform a CRC check 740. The above-mentioned Bluetooth data packet receiving and error correction method can be integrated into the processing of CRC check 740, or executed between the decryption 730 of the E0 algorithm and the CRC check 740.
[0050] In the scheme using E0 encryption, compared with Figure 6 In part (B) (lower half), although the CRC check 740 is set after the decryption 730, as long as it is ensured that there is substantially no difference between the retransmitted Bluetooth data packet and the original Bluetooth data packet before being processed by the CRC check 740, the above-mentioned Bluetooth data packet reception and error correction method can be effectively used.
[0051] When AES-CCM encryption is selected, the data packet header (expressed as "HDR") and data packet data (expressed as "Payload") of the Bluetooth data packet of the transmitting end are encrypted to generate a message integration check code (expressed as "MIC") and encrypted data packet data (expressed as "Enc.Payload"). Next, the transmitting end encodes the data packet header, encrypted data packet data and message integration check code of the Bluetooth data packet with cyclic redundancy code, and encapsulates the encoded result (expressed as "CRC") into the Bluetooth data packet. After performing the de-whitening 710, the receiving end should theoretically obtain the Bluetooth data packet encrypted by the AES-CCM algorithm transmitted from the transmitting end as described above. In order to verify whether the received result is correct, the receiving end will perform a CRC check 720. The above-mentioned Bluetooth data packet reception and error correction method can be integrated into the processing of the CRC check 720, or performed between the de-whitening 710 and the CRC check 720. If the received encrypted Bluetooth data packet fails to pass the CRC check, a retransmission operation is performed.
[0052] All or part of the steps in the method described in the present invention can be implemented by a computer program, such as a hardware driver, a DSP program code. In addition, it can also be implemented in other types of programs as shown above. A person skilled in the art can write the method of the embodiment of the present invention into a program code, which will not be described for simplicity. The computer program implemented according to the method of the embodiment of the present invention can be stored in an appropriate computer-readable storage medium, such as a DVD, a CD-ROM, a USB flash drive, a hard disk, or can be placed in a network server that can be accessed through a network (e.g., the Internet, or other appropriate media).
[0053] Although Figure 2 The above-described components are included, but it does not exclude the use of more additional components to achieve better technical effects without violating the spirit of the invention. Figure 3 The flowchart is executed in a specified order, but without violating the spirit of the invention, a person skilled in the art can modify the order of these steps while achieving the same effect, so the present invention is not limited to using only the order described above. In addition, a person skilled in the art can also integrate several steps into one step, or execute more steps sequentially or in parallel in addition to these steps, and the present invention should not be limited thereto.
[0054] The above description is only a preferred embodiment of the present invention, but it is not intended to limit the scope of the present invention. Any person familiar with this technology can make further improvements and changes on this basis without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined by the claims of this application.
Claims
1. A method for receiving and correcting errors of a Bluetooth data packet, executed by a processing unit, characterized in that: The Bluetooth data packet receiving and error correction method comprises: A plurality of Bluetooth data packets are received from the radio frequency signal; When the multiple Bluetooth data packets are capable of generating a unique composite data packet, performing a checksum check on the unique composite data packet; When the multiple Bluetooth data packets cannot generate the unique composite data packet, generating multiple candidate composite data packets according to one or more inconsistent bits between the multiple Bluetooth data packets, and performing checksum verification on the multiple candidate composite data packets, wherein the multiple candidate composite data packets are used to represent all possible combinations of inconsistent bits between the multiple Bluetooth data packets; as well as When the only synthesized data packet or one of the plurality of candidate synthesized data packets passes the verification, the synthesized data packet that passes the verification is transmitted to the application module.
2. The method for receiving and correcting errors of a Bluetooth data packet as claimed in claim 1, characterized in that: Also includes: It is determined whether the inconsistent bits among the plurality of Bluetooth data packets can generate the unique composite data packet according to the majority rule.
3. The method for receiving and correcting errors of a Bluetooth data packet as claimed in claim 1, characterized in that: Also includes: Establishing a connection-oriented isochronous channel with a transmitting end, wherein the connection-oriented isochronous channel uses a logical transmission of a low-power connection isochronous stream, and setting a framing parameter of the low-power connection isochronous stream to an unframed data packet data unit; and The plurality of Bluetooth data packets are received from the transmitter over the isochronous stream of the low power connection.
4. The method for receiving and correcting errors of a Bluetooth data packet as claimed in claim 1, characterized in that: Also includes: Establishing a connectionless isochronous channel with a transmitting end, wherein the connectionless isochronous channel uses a logical transmission of a low-power broadcast isochronous stream, and setting a framing parameter of the low-power broadcast isochronous stream to a non-framed data packet data unit; as well as The plurality of Bluetooth data packets are received from the transmitter on the low power broadcast isochronous stream.
5. The method for receiving and correcting errors of a Bluetooth data packet as claimed in claim 1, characterized in that: Also includes: Establishing a synchronous connection-oriented connection or an enhanced synchronous connection-oriented connection with a transmitting end; and The plurality of Bluetooth data packets are received from the transmitter over the synchronous connection-oriented connection or the enhanced synchronous connection-oriented connection.
6. A computer-readable storage medium for storing a computer program executable by a processing unit, characterized in that: When the computer program is executed by the processing unit, the method for receiving and correcting errors of a Bluetooth data packet according to any one of claims 1 to 5 is implemented.
7. A Bluetooth data packet receiving and error correction device, characterized in that: Include: A processing unit is used to receive multiple Bluetooth data packets from a radio frequency signal through a radio frequency module and a modem; when the multiple Bluetooth data packets can generate a unique synthetic data packet, perform a checksum check on the unique synthetic data packet; when the multiple Bluetooth data packets cannot generate the unique synthetic data packet, generate multiple candidate synthetic data packets according to one or more inconsistent bits between the multiple Bluetooth data packets, and perform a checksum check on the multiple candidate synthetic data packets, wherein the multiple candidate synthetic data packets are used to represent all possible combinations of inconsistent bits between the multiple Bluetooth data packets; when the unique synthetic data packet or one of the multiple candidate synthetic data packets passes the check, transmit the synthetic data packet that passes the check to an application module; and when the unique synthetic data packet fails the check or none of the multiple candidate synthetic data packets passes the check, start a retransmission operation.
8. The Bluetooth data packet receiving and error correction device as claimed in claim 7, characterized in that: The processing unit is used to determine whether the inconsistent bits among the plurality of Bluetooth data packets can generate the unique composite data packet according to the majority rule.
9. The Bluetooth data packet receiving and error correction device as claimed in claim 7, characterized in that: The processing unit is used to establish a connection-oriented isochronous channel with the transmitting end through the RF module and the modem, wherein the connection-oriented isochronous channel uses the logical transmission of the low-power connection isochronous stream and sets the framing parameters of the low-power connection isochronous stream to non-framed data packet data units; and receive the multiple Bluetooth data packets from the transmitting end on the low-power connection isochronous stream.
10. The Bluetooth data packet receiving and error correction device as claimed in claim 7, characterized in that: The processing unit is used to establish a non-connected isochronous channel with the transmitting end through the RF module and the modem, wherein the non-connected isochronous channel uses the logical transmission of the low-power broadcast isochronous stream and sets the framing parameters of the low-power broadcast isochronous stream to non-framed data packet data units; and receive the multiple Bluetooth data packets from the transmitting end on the low-power broadcast isochronous stream.
11. The Bluetooth data packet receiving and error correction device as claimed in claim 7, characterized in that: The processing unit is used to establish a synchronous connection-oriented connection or an enhanced synchronous connection-oriented connection with the transmitting end through the RF module and the modem; and receive the multiple Bluetooth data packets from the transmitting end on the synchronous connection-oriented connection or the enhanced synchronous connection-oriented connection.
Citation Information
Patent Citations
Bit error correction for wireless retransmission communications systems
CN111837342A
Bluetooth Audio Streaming Passthrough
US20210160673A1
