Error correction of data packets in short-range wireless communication systems
By applying multiple error correction operation modes in short-range wireless communication, combined with CRC and MIC verification, and optimizing the error correction mechanism of the logical link, the problem of high error rate in short-range wireless communication is solved, and the data transmission success rate and user experience are improved.
Patent Information
- Application Number
- CN202080011566.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-01-22
AI Technical Summary
Short-range wireless communication is susceptible to noise and congestion, resulting in a high error rate. Existing retransmission mechanisms consume power and bandwidth, affecting device performance and user experience.
By applying multiple error correction operation modes in the receiving device, including soft merging mode, quality bit mask mode, and quality bit mask hybrid mode, combined with CRC and MIC verification, the error correction mechanism of the logical link is optimized, reducing the number of retransmissions.
It effectively reduces power consumption and bandwidth usage during error correction, improving data transmission success rate and user experience.
Smart Images

Figure CN113366871B_ABST
Abstract
Description
[0001] priority
[0002] This patent application claims priority to non-provisional application No. 16 / 268,395, filed on February 5, 2019, entitled “ERROR CORRECTION FOR DATAPACKETS IN SHORT-RANGE WIRELESS COMMUNICATIONS SYSTEMS,” which application has been assigned to the assignee of the present application and is expressly incorporated herein by reference. Technical Field
[0003] The present disclosure relates generally to communication systems and, more particularly, to error correction of data packets received via logical links. Background Art
[0004] A wireless personal area network (WPAN) is a personal, short-range wireless network used to interconnect devices that are concentrated within a specific distance range of a user. WPANs have gained popularity because of the flexibility and convenience they provide in terms of connectivity. WPANs (such as those based on short-range wireless communication protocols) provide wireless connectivity to devices by providing a wireless link that allows connectivity within a specific distance (e.g., 5 meters, 10 meters, 20 meters, 100 meters, etc.).
[0005] Short-range wireless communication protocols may include (BT) protocol, Low Energy (BLE) protocol, Protocols, etc. BT is a wireless technology standard that supports radio frequency communications using ultra-high frequency (UHF) radio waves in the globally recognized industrial, scientific, and medical (ISM) band (e.g., from 2.400 gigahertz (GHz) to 2.485 GHz). Similarly, BLE defines a standard that supports radio frequency communications operating within the 2.4 GHz ISM band.
[0006] Short-range wireless communication protocols can be used to connect devices on a WPAN. Examples of devices that can communicate on a WPAN can include laptops, tablet computers, smart phones, personal data assistants, audio systems (e.g., headphones, headsets, speakers, etc.), wearable devices (e.g., smart watches, fitness trackers), battery-powered sensors and actuators in various medical, industrial, consumer, and fitness applications, etc.
[0007] In some cases, WPANs can provide advantages and conveniences over other network types, such as wireless local area networks (WLANs). However, short-range wireless communications in WPANs may be susceptible to the same or similar problems as communications in other wireless networks. For example, short-range wireless communications may experience errors due to noisy and / or congested transmission media. Such problems experienced by short-range wireless communications may degrade the performance of the device, may degrade the user experience, and so on. Therefore, there is a need for error correction methods in short-range wireless communications. Summary of the invention
[0008] A simplified summary of one or more aspects is presented below to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is neither intended to identify key or important elements of all aspects, nor to delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to a more detailed description presented later.
[0009] Various standards and protocols for wireless personal area networks (WPANs) such as (BT) and / or Bluetooth Low Energy (BLE) can provide for retransmission of messages, such as when a message is received with one or more errors and / or unsuccessfully decoded. The message (e.g., the payload of the message) can be protected with a cyclic redundancy check (CRC) value, which must match the value calculated by the receiving device in order for the message to be successfully decoded. If the message is encrypted, the message (e.g., the payload) can be protected with a message integrity code (MIC). Similar to the CRC verification, the MIC value must match the value calculated by the receiving device in order for the message to be successfully decoded. If the CRC verification and / or the MIC verification (if present) fails at the receiving device, the receiving device can discard the message, the sending device can retransmit the message, etc.
[0010] Various conditions (e.g., air, channel conditions) may result in errors (e.g., bit errors) in receiving a message, which may prevent the message from being correctly received by the receiving device. Thus, for example, when the receiving device does not (e.g., within a predetermined time period) issue an acknowledgment (ACK) message in response to the message, the sending device may issue one or more retransmissions of the message. The sending device may retransmit the message multiple times (e.g., twelve times) before the receiving device is able to successfully decode the message without any errors. Each retransmission of the message by the sending device (and each non-ACK (NACK) sent by the receiving device, if any) may consume additional power of the device, and further may occupy a frequency band that may be shared with other devices (e.g., Wi-Fi devices).
[0011] In view of the foregoing, devices communicating on a WPAN may benefit from mechanisms for error correction. Utilizing such mechanisms for error correction, the number of retransmissions may be reduced. Because decoding each transmitted / retransmitted message individually and issuing an ACK / NACK message in response to each individual message may result in considerable overhead (e.g., power consumption and / or bandwidth usage), reducing the number of retransmissions from which error-free messages may be obtained may reduce overhead. For example, using bits from each transmission / retransmission of a message may allow the message to be successfully decoded while reducing the number of retransmissions.
[0012] In aspects of the present disclosure, methods, computer-readable media, and devices are provided. The device may be a first device. The first device may establish a logical link associated with a short-range communication with a second device. The first device may receive a first packet carried on the logical link. When the first protocol data unit (PDU) data included in the first packet passes a decoding check, the first device may send at least a portion of the first PDU data to a higher layer of the first device. When the first PDU data does not pass the decoding check, the first device may determine a first operating mode from a plurality of operating modes for error correction based on the logical link, the first device may receive a retransmission packet set on the logical link, each retransmission packet in the retransmission packet set including corresponding PDU data as a retransmission of the first PDU data, and the first device may apply the first operating mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet included in the retransmission packet set.
[0013] In some aspects, the first device may determine a type of the logical link, wherein the first mode of operation for error correction is determined based on the type of the logical link. In one aspect, the type of the logical link is determined based on at least one of an access address or a logical transport address (LT_ADDR) indicated by at least one header of at least one packet received on the logical link.
[0014] In one aspect, the logical link includes one of an asynchronous connection-less link (ACL) link or an advanced audio distribution profile (A2DP) link, and the first operating mode includes a soft-combining mode based on the ACL link or the A2DP link. In one aspect, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the retransmitted packets, and when the first operating mode for error correction includes a soft-combining mode, the first operating mode for error correction is applied based on the first PDU data of the first packet including the first payload data and the first message integrity code (MIC) value and further based on the corresponding PDU data of each retransmitted packet in the retransmitted packet set including the corresponding payload data and the corresponding MIC value. In one such aspect, when the first operating mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmitted packet in the retransmitted packet set are decrypted. In another aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets remain encrypted.
[0015] In one aspect, when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the set of retransmission packets, and when the first operation mode for error correction includes a soft merge mode, the first operation mode for error correction is applied based on the first payload data included in the first PDU data of the first packet and further based on the corresponding payload data in the corresponding PDU data of each retransmission packet in the set of retransmission packets. In one such aspect, when the first PDU data packet of the first packet includes a first MIC value and when the corresponding PDU data packet of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values. In one aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
[0016] In one aspect, when the first operation mode for error correction includes a soft merging mode, the first device applies the first operation mode for error correction by storing each soft value in a set of soft values in each buffer in the set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of a first PDU data of a first packet; for each retransmission packet in the set of retransmission packets, accumulating each soft value in the set of soft values with a signed value in each buffer in the set of buffers, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmission packet in the set of retransmission packets; mapping each accumulated soft value in the set of soft values accumulated in each buffer in the set of buffers to a bit value in a set of estimated bit values; and determining whether the set of estimated bit values passes a decoding check. In one such aspect, each buffer in the set of buffers is limited by a minimum threshold and a maximum threshold, and each accumulated soft value in the set of soft values accumulated in each buffer in the set of buffers does not exceed the minimum threshold and does not exceed the maximum threshold.
[0017] In another aspect, the logical link comprises an extended synchronous connection-oriented (eSCO) link, and the first operation mode comprises a quality bit mask (QBm) mode based on the eSCO link. When the first operation mode for error correction comprises the QBm mode, the first device applies the first operation mode for error correction in the following manner: performing a bitwise majority function based on a first bit set of a first PDU data of a first packet, a second bit set of a corresponding PDU data of a retransmitted packet in a retransmitted packet set, and a third bit set of another corresponding PDU data of another retransmitted packet in the retransmitted packet set; determining a set of estimated bit values based on performing the bitwise majority function; and determining a set of bit error quality metrics based on the set of estimated bit values.
[0018] In another aspect, the logical link includes an isochronous (ISO) link, and the first operating mode for error correction includes a quality bit mask hybrid (QBm-H) mode based on the ISO link. In one such aspect, when the first operating mode for error correction includes the QBm-H mode, the first device applies the first operating mode for error correction in the following manner: performing a bitwise majority function based on a first set of bits of a first PDU data of a first packet, a second set of bits of a corresponding PDU data of one retransmission packet in a retransmission packet set, and a third set of bits of another corresponding PDU data of another retransmission packet in the retransmission packet set; determining a set of estimated bit values based on performing the bitwise majority function; determining a set of bit error quality metrics based on the estimated set of bit values; and discarding one or more additional retransmission packets when one or more additional retransmission packets received after one retransmission packet and another retransmission packet in the retransmission packet set include a retransmission of the first PDU data of the first packet. In one such aspect, when the first operating mode for error correction includes a QBm-H mode, and when the set of retransmission packets includes three or more retransmission packets, the first device applies the first operating mode for error correction in the following manner: storing each soft value in the soft value set in each buffer in the set of buffers, each soft value in the soft value set being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmission packet in the set of retransmission packets, accumulating each soft value in the soft value set with a signed value in each buffer in the set of buffers, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmission packet in the set of retransmission packets; mapping each accumulated soft value in the soft value set accumulated in each buffer in the set of buffers to a bit value in a set of estimated bit values; and determining whether the set of estimated bit values passes a decoding check.
[0019] In certain aspects, the first device may generate an estimated cyclic redundancy check (CRC) value based on an estimated set of bit values, the estimated set of bit values being obtained based on application of a first operating mode for error correction, the estimated set of bit values being estimated to be included in first PDU data, and the first device may compare the estimated CRC value with a first CRC value in a most recently received retransmitted packet included in a set of retransmitted packets, and the estimated set of bit values passes a decoding check based on the comparison of the estimated CRC value with the first CRC value, and wherein when the generated CRC value is different from the first CRC value, the estimated set of bit values fails the decoding check.
[0020] In certain aspects, the first device may generate an estimated MIC value based on the estimated set of bit values, and the first device may compare the estimated MIC value with a first MIC value in a most recently received retransmitted packet included in the set of retransmitted packets, and the estimated set of bit values passes a decoding check when the estimated CRC value matches the first CRC value and the estimated MIC value matches the first MIC value, wherein the estimated set of bit values fails the decoding check when the estimated CRC value is different from the first CRC value or when the estimated MIC value is different from the first MIC value.
[0021] In one aspect, the first device may send to a higher layer of the first device a set of estimated bit values obtained based on the application of the first operating mode for error correction, the estimated set of bit values being estimated as at least a portion of the first PDU data. In one aspect, the first device may determine a set of bit errors associated with the set of estimated bit values based on the application of the first operating mode for error correction, and the first device may send to a higher layer of the first device at least one bit error quality metric indicating at least one of a set of locations of the bit error sets or a number of the bit error sets.
[0022] To accomplish the foregoing and related ends, one or more aspects comprise the features fully described below and particularly pointed out in the claims. The following description and the accompanying drawings detail certain illustrative features of one or more aspects. However, these features are indicative of only a few of the various ways in which the principles of the various aspects may be employed, and this description is intended to include all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a diagram illustrating an example of a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0024] Figure 2 is a block diagram of a short-range wireless communication device in accordance with certain aspects of the present disclosure.
[0025] Figure 3A is a diagram illustrating a Bluetooth (BT) protocol stack that may be implemented by a BT device in accordance with certain aspects of the present disclosure.
[0026] Figure 3B is a diagram illustrating a BT Low Energy (BLE) protocol stack that may be implemented by a BLE device in accordance with certain aspects of the present disclosure.
[0027] Figure 4A is a diagram illustrating a BT data packet in accordance with certain aspects of the present disclosure.
[0028] Figure 4Bis a diagram illustrating a BLE data packet in accordance with certain aspects of the present disclosure.
[0029] Figure 5 is a diagram illustrating a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0030] Figure 6 is a flow chart of a method of error correction in a short-range wireless communication system according to certain aspects of the present disclosure.
[0031] Figure 7 is a diagram of error correction in a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0032] Figures 8A-8B is a flow chart of a method of error correction in a short-range wireless communication system according to certain aspects of the present disclosure.
[0033] Fig. 9 is a flowchart of a method of performing decoding verification in a short-range wireless communication system according to certain aspects of the present disclosure.
[0034] Fig.10 is a flow chart illustrating a first aspect of a method of applying an operating mode for error correction in a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0035] Fig.11 is a flow chart illustrating a second aspect of a method of applying an operating mode for error correction in a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0036] Fig.12 is a flow chart illustrating a third aspect of a method of applying an operating mode for error correction in a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0037] Fig.13 is a conceptual data flow diagram illustrating the flow of data between different parts / components in an example apparatus.
[0038] Fig.14 is a diagram illustrating an example of a hardware implementation for an apparatus employing a processing system. DETAILED DESCRIPTION
[0039] The detailed description set forth below in conjunction with the accompanying drawings is intended as a description of various configurations and is not intended to represent the only configuration in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, a plurality of well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.
[0040] Several aspects of telecommunication systems will now be presented with reference to various apparatus and methods. These apparatus and methods will be described in the following detailed description and illustrated in the accompanying drawings by various blocks, components, circuits, processes, algorithms, etc. (collectively referred to as "elements"). These elements may be implemented using electronic hardware, computer software, or any combination thereof. Whether such elements are implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system.
[0041] By way of example, any part of an element or an element, or any combination of elements, can be implemented as a "processing system" including one or more processors. Examples of processors include microprocessors, microcontrollers, graphics processing units (GPUs), central processing units (CPUs), application processors, digital signal processors (DSPs), reduced instruction set computing (RISC) processors, systems on chip (SoCs), baseband processors, field programmable gate arrays (FPGAs), programmable logic devices (PLDs), state machines, gated logic, discrete hardware circuits, and other suitable hardware configured to perform various functionalities described throughout the present disclosure. One or more processors in a processing system can execute software. Whether referred to as software, firmware, middleware, microcode, hardware description language or other, software should be broadly interpreted as meaning instructions, instruction sets, codes, code segments, program codes, programs, subroutines, software components, applications, software applications, software packages, routines, subroutines, objects, executable files, execution threads, processes, functions, etc.
[0042] Accordingly, in one or more example embodiments, the functions described may be implemented in hardware, software, or any combination thereof. If implemented in software, the functions may be stored on a computer-readable medium, or encoded as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media. Storage media may be any available medium accessible by a computer. By way of example and not limitation, such computer-readable media may include random access memory (RAM), read-only memory (ROM), electrically erasable programmable ROM (EEPROM), optical disk storage, magnetic disk storage, other magnetic storage devices, a combination of computer-readable media of the above types, or any other medium that may be used to store computer executable code in the form of instructions or data structures accessible by a computer.
[0043] Figure 1 An example WPAN 100 is shown in accordance with certain aspects of the present disclosure. Within the WPAN 100, a central wireless device 102 may use a logical link 116 to communicate with one or more peripheral devices 104, 106, 108, 110, 112, 114 using a short-range wireless communication protocol. The short-range wireless communication protocol may include (BT) protocol or BT Low Energy (BLE) protocol.
[0044] Examples of wireless device 102 include a cellular phone, a smart phone, a Session Initiation Protocol (SIP) phone, a mobile station (STA), a laptop computer, a personal computer (PC), a desktop computer, a personal digital assistant (PDA), a satellite radio, a global positioning system (GPS), a multimedia device, a video device, a digital audio player (e.g., an MP3 player), a camera, a game console, a tablet, a smart device, a wearable device, a vehicle, an electric meter, a gas pump, a toaster, a thermostat, a hearing aid, a wireless headset, a blood glucose on-body unit, an Internet of Things (IoT) device, or any other similarly functional device.
[0045] Examples of one or more peripheral devices 104, 106, 108, 110, 112, 114 include a cellular phone, a smart phone, a SIP phone, a STA, a laptop, a PC, a desktop computer, a PDA, a satellite radio, a global positioning system, a multimedia device, a video device, a digital audio player (e.g., an MP3 player), a camera, a game console, a tablet, a smart device, a wearable device, a vehicle, an electric meter, a gas pump, a toaster, a thermostat, a hearing aid, a wireless headset, an on-body glucose unit, an IoT device, or any other similarly functional device. Although the central wireless device 102 is shown as communicating with six peripheral devices 104, 106, 108, 110, 112, 114 in the WPAN 100, the wireless device 102 can communicate with more or less than six peripheral devices within the WPAN 100 without departing from the scope of the present disclosure.
[0046] A device implementing the BT protocol (e.g., the wireless device 102) may operate according to one radio mode, such as basic rate (BR) / enhanced data rate (EDR), and a device implementing the BLE protocol may operate according to the BLE radio mode. In some aspects, a device (e.g., the wireless device 102) may be configured with dual radio modes and may thus be able to operate according to either the BR / EDR mode or the BLE mode, for example, based on the type of short-range wireless communication in which the device may engage.
[0047] For example, for continuous streaming of data (e.g., audio data), for broadcast networks, for mesh networks, and / or for certain other applications where relatively higher data rates may be more appropriate, the device may operate according to the BR / EDR mode. However, for short burst data transmission and / or for certain other applications where power conservation may be desired (e.g., and relatively lower data rates may be acceptable), the device may operate according to the BLE mode. In other aspects, the device may operate according to one or more other radio modes, including proprietary radio modes (e.g., high-speed radio mode, low-energy radio mode, isochronous radio mode, etc.).
[0048] The short-range wireless communication protocol (e.g., BT and / or BLE) may include and / or may use one or more other communication protocols, such as for establishing and maintaining a communication link. As shown, the wireless device 102 may establish a logical link 116 with at least one other device (such as a wireless headset 112) based on at least one communication protocol for short-range wireless communication.
[0049] The logical link 116 may include a communication link that complies with a protocol including BT or BLE and / or a protocol for use with BT or BLE. In one aspect, the logical link 116 may include an asynchronous connectionless (ACL) link. Using the ACL, the wireless device 102 can be connected (or "paired" in the terminology of the BT specification) with a second device (e.g., a headset 112). The connection is asynchronous, where the two devices may not need to synchronize data communications with each other in time to allow communication of data packets via the logical link 116.
[0050] In one aspect, the logical link 116 may include an Advanced Audio Distribution Profile (A2DP) link. The A2DP link may provide a point-to-point link between a source device (e.g., wireless device 102) and a sink device (e.g., headset 112). Using the A2DP link, data packets including audio may be sent on an ACL data channel, and other information (e.g., for controlling audio flow) may be sent on a separate control channel. Data packets (e.g., including audio) may occur non-periodically.
[0051] In another aspect, the logical link 116 can support a synchronous logical transfer mechanism between a "master device" and a "slave device". For example, the logical link 116 can include a synchronous connection-oriented (SCO) link. The SCO link can provide a symmetrical point-to-point link between a master device (e.g., wireless device 102) and a slave device (e.g., headset 112) using time slots reserved for BT communications. However, the SCO link may not support retransmission of data packets, which may be unsatisfactory in audio streaming and / or voice use cases, where discarded audio or voice packets may reduce the quality of the user experience.
[0052] In yet another aspect, the logical link 116 may include an extended SCO (eSCO) link. The eSCO link may provide a symmetrical or asymmetrical point-to-point link between a master device (e.g., wireless device 102) and a slave device (e.g., headset 112) using time slots reserved for BT communications, and may also provide a retransmission window after the reserved time slots. Because the retransmission window may be used to facilitate retransmissions, the eSCO link may be suitable for audio streaming and / or voice use cases, because discarded audio or voice packets may be retransmitted, and thus the probability of successfully receiving data packets may be increased.
[0053] In one aspect, the logical link 116 may include an isochronous (ISO) link. With an ISO link, the logical link 116 may combine certain features of both synchronous and asynchronous links. For example, a stream on an ISO link may begin with a start packet, and data packets may then be sent asynchronously. On an ISO link, the number of retransmission attempts made by a sending device (e.g., wireless device 102) may be limited. Therefore, if a receiving device (e.g., headset 112) is unable to decode a data packet within a limited number of retransmission attempts, the data packet may be discarded, and the receiving device may continue to receive a stream without data from the discarded data packet.
[0054] Due to various factors (e.g., an increased number of wireless devices being used), wireless devices may cause congestion on the frequencies used for wireless channels, such as the wireless channel over which the logical link 116 is carried. As a result, wireless communication channels (e.g., the wireless communication channels over which the logical link 116 is carried) may be "noisy" because static, congestion, and / or other interference may introduce random signals on the same frequency bands as those reserved for communication on the established logical link 116. Such static, congestion, interference, and / or other random signals may cause errors in initial packets sent on the logical link 116. By providing for retransmission of initial packets on the logical link 116, the probability of receiving error-free packets may be increased.
[0055] In certain standards and protocols (such as BLE), the wireless device 102 can detect errors in the protocol data unit (PDU) of the data packet by using cyclic redundancy check (CRC) verification, and optionally by using message integrity code (MIC) verification (for example, when the data packet is encrypted, MIC verification can be used). Accordingly, the retransmission of the data packet provides a means for error correction of the PDU data by repeatedly providing the same PDU data to the receiving device so that the receiving device can replace the erroneous PDU data with the PDU data of the retransmitted packet that can pass the CRC verification (and MIC verification, if present).
[0056] For example, the wireless device 102 may send an initial data packet 120 to the headset 112 over the logical link 116. The headset 112 may receive the initial data packet 120 over the logical link 116, and the headset 112 may attempt to verify the PDU data of the initial data packet 120 using CRC verification and, if applicable, MIC verification. If one of the CRC and MIC verifications fails, the headset 112 may determine that the PDU data packet of the initial data packet 120 includes an error. In certain aspects, the headset 112 may respond to the initial data packet 120 by sending an acknowledgement (ACK) / non-ACK (NACK) message indicating a NACK because the PDU data packet of the initial data packet 120 includes at least one error.
[0057] The wireless device 102 may send at least a first retransmitted data packet in the set of retransmitted data packets 122 to the headset 112 over the logical link 116. For example, the wireless device 102 may send the first retransmitted data packet in the set of retransmitted data packets 122 based on receiving a NACK message from the headset 112. Like the initial data packet 120, the headset 112 may attempt to verify the PDU data of the first retransmitted data packet in the set of retransmitted data packets 122 using CRC verification and, if applicable, MIC verification. Although the set of retransmitted data packets 122 may increase the probability that the PDU data of the initial data packet 120 will be received without any errors, the first retransmitted data packet in the set of retransmitted data packets 122 may nonetheless be affected by suboptimal conditions on the wireless channel over which the logical link 116 is carried.
[0058] As a result, the first retransmitted data packet in the set of retransmitted data packets 122 may still experience degradation due to static, congestion, interference, and / or other random signals. Similar to the initial data packet 120, when the headset 112 receives the first retransmitted data packet in the set of retransmitted data packets 122, the degradation due to the wireless channel conditions may introduce errors into the first retransmitted data packet. Therefore, when the first retransmitted data packet in the set of retransmitted data packets 122 fails the CRC verification or fails the MIC verification (if the MIC verification is applicable), the headset 112 may issue another NACK message to the wireless device 102. For example, in response to the other NACK message sent by the headset 112, the wireless device 102 may then send a second retransmitted data packet in the set of retransmitted data packets 122 on the logical link 116.
[0059] According to certain standards and / or protocols, the retransmitted data packet set 122 may reach a relatively large number (e.g., 12 retransmitted data packets) because the wireless device 102 may be configured to repeatedly transmit the retransmitted data packets in the retransmitted data packet set 122 until the headset 112 is able to verify the PDU data of one of the retransmitted data packets in the retransmitted data packet set 122. For example, the wireless device 102 may repeatedly transmit the retransmitted data packets in the retransmitted data packet set 122 until an ACK message is received from the headset 112 indicating that the headset 112 is able to verify the PDU data of one of the retransmitted data packets in the retransmitted data packet set 122.
[0060] While the transmission of the set of retransmitted data packets 122 may allow the headset 112 to receive and verify the PDU data originally intended to be in the initial data packet 120 (and obtain the payload data included therein), each transmission of each retransmitted data packet in the set of retransmitted data packets 122 and each transmission of a corresponding NACK message may incur overhead at both the wireless device 102 and the headset. Specifically, each occurrence of the transmission / reception of one of the retransmitted data packets in the set of retransmitted data packets 122 and the reception / transmission of a corresponding NACK message by the wireless device 102 and the headset 112 may accordingly cause the wireless device 102 and the headset 112 to consume an amount of additional power, and additionally, an amount of time that may have otherwise been allocated to continued data flow. Furthermore, each occurrence of the transmission of one of the retransmitted data packets in the set of retransmitted data packets 122 by the wireless device 102 and the transmission of a corresponding NACK message by the headset 112 may occupy the wireless channel on which the logical link 116 is carried for an additional duration. During the additional duration of occupation of the wireless channel, other systems and devices (eg, Wi-Fi systems and devices) sharing the wireless channel may experience delays or interference.
[0061] In view of the overhead caused by using retransmitted data packet sets for error correction, short-range wireless communications may benefit from mechanisms that reduce the amount of retransmitted data packet sets 122 required to successfully pass CRC validation. For example, PDU data from an initial data packet 120 may be combined with PDU data from each retransmitted packet in the retransmitted packet set 122. When combining PDU data across multiple different data packets 120, 122, the PDU data originally intended to be sent in the initial data packet 120 may be estimated or recovered.
[0062] Additionally or alternatively, combining the PDU data across the plurality of different data packets 120, 122 may facilitate generating one or more bit metrics associated with the PDU data that is ultimately sent to higher layers of the headset 112, such as a coder-decoder (CODEC). The one or more quality bit metrics may include information about one or more error bits of those PDU bits sent to the higher layers, such as the number of bit errors, the location of the bit errors, and other bit error information. For example, the CODEC of the headset 112 may be able to recover error bits of a stream, attempt to seamlessly stream data that includes a relatively small number of bit errors, conceal bit errors within a stream, etc. based on the one or more bit metrics.
[0063] In order to reduce the number of retransmitted data packets, the wireless device can be configured to have a plurality of different operating modes for error reduction. The wireless device configured with a plurality of different operating modes for error reduction can be any wireless device capable of receiving packets on the logical link 116, including the wireless device 102, the headset 112 and / or another device 104, 106, 108, 110, 114 shown. For example, the headset 112 can receive a data packet (e.g., an initial packet 120) on the logical link 116. The headset 112 can select a first operating mode for error reduction from a plurality of different operating modes. Because the logical link 116 can have different characteristics depending on the type of the implemented logical link 116, the headset 112 can select a first operating mode from a plurality of operating modes for error reduction based on the logical link 116. For example, the headset 112 can select a first operating mode from multiple operating modes based on whether the logical link 116 includes an ACL link, an A2DP link, an eSCO link, or an ISO link, because the selected first operating mode can be more suitable for the characteristics of a specific type of logical link 116 than other operating modes.
[0064] According to one aspect of the technology disclosed herein, a first device (such as a headset 112) may establish a logical link associated with a short-range communication with a second device (e.g., a wireless device 102). The first device may receive a first packet carried on the logical link. When the first PDU data included in the first packet passes the decoding check, the first device may send at least a portion of the first PDU data to a higher layer of the first device. When the first PDU data does not pass the decoding check, the first device may determine a first operating mode from a plurality of operating modes for error correction based on the logical link, the first device may receive a retransmission packet set on the logical link, each retransmission packet in the retransmission packet set including corresponding PDU data as a retransmission of the first PDU data, and the first device may apply the first operating mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet included in the retransmission packet set.
[0065] In some aspects, the first device may determine a type of the logical link, wherein the first mode of operation for error correction is determined based on the type of the logical link. In one aspect, the type of the logical link is determined based on at least one of an access address or a logical transport address (LT_ADDR) indicated by at least one header of at least one packet received on the logical link.
[0066] In one aspect, the logical link includes one of an ACL link or an A2DP link, and the first operating mode includes a soft merge mode based on the ACL link or the A2DP link. In one aspect, when the first packet is associated with a first random number (nonce) for decryption, the first random number matches the corresponding random number for decrypting each retransmission packet in the retransmission packet, and when the first operating mode for error correction includes a soft merge mode, the first operating mode for error correction is applied based on the first PDU data of the first packet including the first payload data and the first MIC value and further based on the corresponding PDU data of each retransmission packet in the retransmission packet set including the corresponding payload data and the corresponding MIC value. In one such aspect, when the first operating mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the retransmission packet set are decrypted. In another aspect, when the first operating mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the retransmission packet set remain encrypted.
[0067] In one aspect, when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the set of retransmission packets, and when the first operation mode for error correction includes a soft merge mode, the first operation mode for error correction is applied based on the first payload data included in the first PDU data of the first packet and further based on the corresponding payload data in the corresponding PDU data of each retransmission packet in the set of retransmission packets. In one such aspect, when the first PDU data packet of the first packet includes a first MIC value and when the corresponding PDU data packet of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values. In one aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
[0068] In one aspect, when the first operation mode for error correction includes a soft combining mode, the first device applies the first operation mode for error correction by storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of a first PDU data of a first packet; for each retransmission packet in a set of retransmission packets, accumulating each soft value in the set of soft values with a signed value in each buffer in the set of buffers, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmission packet in the set of retransmission packets; mapping each accumulated soft value in the set of soft values accumulated in each buffer in the set of buffers to a bit value in a set of estimated bit values; and determining whether the set of estimated bit values passes a decoding check. In one such aspect, each buffer in the set of buffers is limited by a minimum threshold and a maximum threshold, and each accumulated soft value in the set of soft values accumulated in each buffer in the set of buffers does not exceed the minimum threshold and does not exceed the maximum threshold.
[0069] In another aspect, the logical link includes an eSCO link, and the first operation mode includes a quality bit mask (QBm) mode based on the eSCO link. When the first operation mode for error correction includes the QBm mode, the first device applies the first operation mode for error correction in the following manner: performing a bitwise majority function based on a first bit set of a first PDU data of a first packet, a second bit set of a corresponding PDU data of a retransmitted packet in a retransmitted packet set, and a third bit set of another corresponding PDU data of another retransmitted packet in the retransmitted packet set; determining a set of estimated bit values based on performing the bitwise majority function; and determining a set of bit error quality metrics based on the set of estimated bit values.
[0070] In another aspect, the logical link comprises an ISO link, and the first mode of operation for error correction comprises a quality bit mask hybrid (QBm-H) mode based on the ISO link. In one such aspect, when the first mode of operation for error correction comprises the QBm-H mode, the first device applies the first mode of operation for error correction by: performing a bitwise majority function based on a first set of bits of a first PDU data of a first packet, a second set of bits of a corresponding PDU data of one retransmission packet in a set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bitwise majority function; determining a set of bit error quality metrics based on the set of estimated bit values; and, when one or more additional retransmission packets received after one retransmission packet and another retransmission packet in the set of retransmission packets comprise a retransmission of the first PDU data of the first packet, discarding the one or more additional retransmission packets. In one such aspect, when the first operating mode for error correction includes the QBm-H mode, and when the retransmission packet set includes three or more retransmission packets, the first device applies the first operating mode for error correction in the following manner: storing each soft value in the soft value set in each buffer in the buffer set, each soft value in the soft value set being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmission packet in the retransmission packet set, accumulating each soft value in the soft value set with a signed value in each buffer in the buffer set, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmission packet in the retransmission packet set; mapping each accumulated soft value in the soft value set accumulated in each buffer in the buffer set to a bit value in a set of estimated bit values; and determining whether the set of estimated bit values passes the decoding check.
[0071] In certain aspects, the first device may generate an estimated CRC value based on an estimated set of bit values, the estimated set of bit values being obtained based on application of a first operating mode for error correction, the estimated set of bit values being estimated to be included in the first PDU data, and the first device may compare the estimated CRC value with a first CRC value in a most recently received retransmitted packet included in a set of retransmitted packets, and the estimated set of bit values passes a decoding check based on the comparison of the estimated CRC value with the first CRC value, and wherein when the generated CRC value is different from the first CRC value, the estimated set of bit values fails the decoding check.
[0072] In certain aspects, the first device may generate an estimated MIC value based on the estimated set of bit values, and the first device may compare the estimated MIC value with a first MIC value in a most recently received retransmitted packet included in the set of retransmitted packets, and the estimated set of bit values passes a decoding check when the estimated CRC value matches the first CRC value and the estimated MIC value matches the first MIC value, and wherein the estimated set of bit values fails the decoding check when the estimated CRC value is different from the first CRC value or when the estimated MIC value is different from the first MIC value.
[0073] In one aspect, the first device may send to a higher layer of the first device a set of estimated bit values obtained based on the application of the first operating mode for error correction, the set of estimated bit values being estimated as at least a portion of the first PDU data. In one aspect, the first device may determine a set of bit errors associated with the set of estimated bit values based on the application of the first operating mode for error correction, and the first device may send to a higher layer of the first device at least one bit error quality metric indicating at least one of a set of locations of the bit error sets or a number of the bit error sets.
[0074] One or more of the illustrated wireless devices (e.g., central wireless device 102, headset 112) may include suitable logic, circuitry, interfaces, processors, and / or code that may be used for the error correction techniques described herein when communicating with another device (e.g., central wireless device 102 or one or more peripheral devices 104, 106, 108, 110, 112, 114). The wireless device 102 may be operable to establish a short-range wireless communication connection with at least one of the peripheral devices 104, 106, 108, 110, 112, 114, and the wireless device 102 may establish a logical link 116 with at least one of the peripheral devices 104, 106, 108, 110, 112, 114. For BT, for example, the wireless device 102 may establish a logical link 116 with the intended peripheral devices 104, 106, 108, 110, 112, 114 via a link manager (LM). For BLE, for example, the wireless device 102 may establish a logical link 116 with the intended peripheral devices 104 , 106 , 108 , 110 , 112 , 114 via a link layer (LL).
[0075] Refer again Figure 1 In certain aspects, the central wireless device 102 and / or the peripheral device (eg, the headset 112) can be configured to establish a logical link 116 and select an operating mode from a plurality of operating modes for error correction based on the logical link, as described herein.
[0076] Figure 2 is a block diagram of a wireless device 200 according to certain aspects of the present disclosure. The wireless device 200 may correspond to, for example Figure 1 102, and / or one of the peripheral devices 104, 106, 108, 110, 112, 114. In some configurations, the wireless device 200 may be, for example, a BT and / or BLE device configured to apply a first operating mode for error correction selected from a plurality of operating modes for error correction based on a logical link established with another wireless device.
[0077] like Figure 2 As shown in , the wireless device 200 may include a processing element, such as (one or more) processors 202, which may execute program instructions for the wireless device 200. The wireless device 200 may also include a display circuit 204, which may perform graphics processing and provide display signals to a display 242. The (one or more) processors 202 may also be coupled to a memory management unit (MMU) 240, which may be configured to receive addresses from the (one or more) processors 202 and translate those addresses to locations in memory (e.g., memory 206, ROM 208, flash memory 210), and / or to other circuits or devices (such as display circuit 204, radio 230, connector interface 220, and / or display 242). The MMU 240 may be configured to perform memory protection and page table translation or establishment. In some embodiments, the MMU 240 may be included as part of the (one or more) processors 202.
[0078] As shown, the processor 202 can be coupled to various other circuits of the wireless device 200. For example, the wireless device 200 can include various types of memory, a connector interface 220 (e.g., for coupling to a computer system), a display 242, and / or wireless communication circuits (e.g., for Wi-Fi, BT, BLE, etc.). The wireless device 200 may include multiple antennas 235a, 235b, 235c, 235d for performing wireless communications with other short-range wireless communication devices (e.g., BT devices, BLE devices, etc.).
[0079] In certain aspects, the wireless device 200 may include hardware and software components (processing elements) configured to individually check the headers of data packets for errors and perform majority voting of data packets, for example, using the techniques described herein. The wireless device 200 may also include firmware or other hardware / software for controlling short-range wireless communication operations (e.g., BT operations, BLE operations, etc.). In addition, the wireless device 200 may store and execute a WLAN software driver for controlling WLAN operations.
[0080] The wireless device 200 may be configured to implement part or all of the error correction techniques described herein, for example, by executing program instructions stored on a memory medium (e.g., a non-transitory computer-readable memory medium), and / or by hardware or firmware operations. In other embodiments, the error correction techniques described herein may be implemented at least in part by programmable hardware elements such as a field programmable gate array (FPGA), and / or implemented as an application specific integrated circuit (ASIC).
[0081] In some aspects, the radio 230 may include a separate controller configured to control communications for various corresponding radio access technology (RAT) protocols. Figure 2 As shown, the radio 230 may include a WLAN controller 250 configured to control wireless local area network (WLAN) communications, and a short-range communication controller 252 configured to control short-range communications (e.g., BT communications, BLE communications, etc.). A coexistence interface 254 (e.g., a wired interface) may be used to transmit information between the WLAN controller 250 and the short-range communication controller 252.
[0082] In certain aspects, one or more of the WLAN controller 250 and / or the short-range communication controller 252 may be implemented as hardware, software, firmware, or some combination thereof.
[0083] In some aspects, the WLAN controller 250 can be configured to communicate with the second device using the WLAN link using all antennas 235a, 235b, 235c, 235d. In some configurations, the short-range communication controller 252 can be configured to implement a short-range wireless communication protocol stack, such as a BT stack (e.g., see Figure 3A , below) and / or BLE stack (see, for example, Figure 3B, hereinafter), and communicate with at least one second wireless device using one or more of antennas 235a, 235b, 235c, 235d. The short-range communication controller 252 may be configured to apply a first operation mode for error correction selected from a plurality of operation modes for error correction based on a logical link established with another wireless device.
[0084] Figure 3A 300 is shown that can be implemented in a wireless device according to certain aspects of the present disclosure. For example, the BT protocol stack 300 can be composed of, for example, Figure 2 The short-range communications controller 252 may be implemented as shown by one or more of the processor(s) 202 , memory 206 , flash memory 210 , ROM 208 , radio 230 , and / or short-range communications controller 252 .
[0085] Reference Figure 3A , the BT protocol stack 300 may be organized into (one or more) lower layers, (one or more) middle layers, and (one or more) upper layers. The (one or more) lower layers of the BT protocol stack 300 may include a controller stack 306, which may be used, in particular, for hardware interface management, link establishment, and link management. The (one or more) middle layers of the BT protocol stack 300 may include a host stack 304, which may be used, in particular, for application (layer) interface management to allow applications (layers) to access short-range wireless communications. The (one or more) upper layers of the BT protocol stack 300 may include an application layer 302, which may include one or more applications and one or more configuration files that allow one or more applications to use BT communications.
[0086] The controller stack 306 may include a physical (PHY) layer 322. The PHY layer 322 may include, for example, a radio and / or baseband processor. In some aspects, the PHY layer 322 may define a mechanism for sending a bit stream on a physical link or channel connecting a BT device. The bit stream may be grouped into code words or symbols and converted into data packets sent on a wireless transmission medium. The PHY layer 322 may provide an electrical interface, a mechanical interface, and / or a process interface to the wireless transmission medium. The PHY layer 322 may be responsible for modulating and demodulating data into a radio frequency (RF) signal for sending in the air. The PHY layer 322 may describe the physical characteristics of the receiver / transmitter of the wireless device. The physical characteristics may include modulation characteristics, radio frequency tolerance, sensitivity level, etc.
[0087] The controller stack 306 may further include a link controller 320. The link controller 320 may be responsible for appropriately formatting data for provision to and from the PHY layer 322. In addition, the link controller 320 may perform synchronization of links (e.g., logical links, including ACL links, A2DP links, SCO links, eSCO links, ISO links, etc.). The link controller 320 may be responsible for executing commands and instructions issued by the link manager 318, including establishing and maintaining links directed by the link manager 318.
[0088] The link manager 318 may convert host controller interface (HCI) 316 commands into controller-level operations (e.g., baseband-level operations). The link manager 318 may be responsible for establishing and configuring links, as well as managing tasks such as power change requests. Each type of logical link (e.g., ACL link, A2DP link, SCO link, eSCO link, ISO link, etc.) may be associated with a specific packet type. For example, a SCO link may provide reserved channel bandwidth for communication between a master device and a slave device, and support regular, periodic exchange of data packets without retransmission. An eSCO link may provide reserved channel bandwidth for communication between a master device and a slave device, and support regular, periodic exchange of data packets with retransmission. Starting from establishing a connection between a master device and a slave device, an ACL link may exist between the master device and the slave device, and data packets for the ACL link may include encoded information in addition to a payload.
[0089] The link manager 318 can communicate with the host stack 304 through the host controller interface (HCI) 316 - for example, the link manager 318 can convert the HCI 316 commands into controller-level operations (e.g., baseband-level operations). The HCI 316 can act as a boundary between the lower layers of the BT protocol stack 300 (e.g., the controller stack 306) and the other layers of the BT protocol stack (e.g., the host stack 304 and the application layer 302). The BT specification can define a standard HCI to support a BT system implemented across two separate processors. For example, a BT system on a computer can use the processor of the BT system itself to implement the lower layers of the stack (e.g., the PHY layer 322, the link controller 320, and / or the link manager 318). The BT system can use the processor of the BT component to implement other layers (e.g., the host stack 304 and the application layer 302). However, in some aspects, the BT system can be implemented on the same processor, and such a BT system can be referred to as "hostless".
[0090] The host stack 304 may include at least a logical link control and adaptation protocol (L2CAP) layer 314, a service discovery protocol (SDP) layer 312, a radio frequency communication (RFCOMM) layer 310, and an object exchange (OBEX) layer 316. The L2CAP layer 314 is implemented above the HCI 316 and may communicate through the HCI 316. The L2CAP layer 314 may be primarily responsible for establishing connections across certain existing links (e.g., logical links, including ACL links), and / or requesting those links when certain links (e.g., logical links, including ACL links) no longer exist. In addition, the L2CAP layer 314 may implement multiplexing between different higher layer protocols (such as the SDP protocol and the RFCOMM protocol), which may allow different applications to use a single link (e.g., a logical link, including an ACL link). In addition, the L2CAP layer 314 may repackage data packets received from a higher layer into a format desired by the lower layer. The L2CAP layer 314 may employ the concept of a channel to track where data packets come from and where data packets should go. A channel may be a logical representation of a flow or stream of data between an L2CAP layer 314 at a sending device (eg, a master device) and another L2CAP layer 314 at a receiving device (eg, a slave device).
[0091] The SDP layer 312 can define actions for both the server and the client of a BT service. The BT specification defines a service as any feature that can be used by another (remote) BT device. An SDP client can communicate with an SDP server using a reserved channel on an L2CAP link to discover which services are available. When an SDP client finds the desired service, the SDP client can request a separate connection to use the service. The reserved channel can be dedicated to SDP communications so that the device knows how to connect to an SDP service on any other device. An SDP server can maintain an SDP database that can include a collection of service records that describe the services provided by the SDP server. Along with information that describes how an SDP client connects to a service, a service record can contain a universally unique identifier (UUID) for the service.
[0092] The RFCOMM layer 310 can simulate the serial cable line settings and status of the RS-232 serial port. The RFCOMM layer 310 can be connected to the lower layer of the BT protocol stack 300 through the L2CAP layer 314. By providing serial port simulation, the RFCOMM layer 310 can support traditional serial port applications. The RFCOMM layer 310 can also support the object exchange (OBEX) layer 308.
[0093] The OBEX layer 308 can define a communication protocol that can be used by devices to exchange data objects, and the data objects can also be defined by the OBEX layer 308. A BT device that wishes to establish an OBEX communication session with another device can be considered a client device. The client can initially issue one or more SDP requests to ensure that the other device can act as a server for the OBEX service. If the server device is capable of providing the OBEX service, the server device can respond with an OBEX service record for the server device. The OBEX service record can contain an RFCOMM channel number that the client device can use to establish an RFCOMM channel. Further communications between the two devices can be conveyed in a packet, which can contain requests, responses, and / or data. The format of the packet can be defined by the OBEX session protocol.
[0094] The application layer 302 may include at least one application 326 with which a user may interact and which may access BT communications for various functionalities. The application 326 may access BT communications through one or more configuration files 328, which may describe various different types of tasks. By following the process of one or more configuration files 328, the application 326 may use BT communications in accordance with the BT specification.
[0095] Figure 3B 350 is shown as a BLE protocol stack that can be implemented in a BLE device. For example, the BLE protocol stack 350 can be composed of Figure 2 The present invention is implemented by one or more of the processor(s) 202, memory 206, flash memory 210, ROM 208, radio 230, and / or short range communication controller 252 as shown.
[0096] The BLE protocol stack 350 may be organized into three layers, which may include an application layer 352, a host stack 354, and a controller stack 356. The controller stack 356 may be below the host stack 354 and the application layer 352 in the BLE protocol stack 350. The controller stack 356 may include a PHY layer 372 and an LL 370.
[0097] The PHY layer 372 may define a mechanism for sending a bit stream over a physical link connecting BLE devices. The bit stream may be grouped into codewords or symbols and converted into data packets that are sent over a transmission medium. The PHY layer 372 may provide an electrical interface, a mechanical interface, and a process interface to the transmission medium. The shape and properties of the electrical connector, the frequency band used for transmission, the modulation scheme, and similar low-level parameters may be specified by the PHY layer 372.
[0098] LL 370 is responsible for low-level communication on PHY layer 372. LL 370 manages the sequence and timing for sending and receiving data packets, and uses LL protocol to communicate with other devices about connection parameters and data flow control. LL 370 also provides gatekeeping functionality to limit exposure and data exchange with other devices. If filtering is configured, LL370 maintains a list of allowed devices and will ignore all requests for data exchange from devices not on the list. LL 370 can also reduce power consumption. In some aspects, LL 370 can include a company-specific LL that can be used to discover peer devices (e.g., other devices associated with a company) and establish a secure communication channel with them. In some aspects, LL 370 can be responsible for transmitting data packets between devices in WPAN. Each data packet can include an access address that specifies the type of logical transmission used to carry data packets. Logical transmission can exist between a master device and a slave device. In addition, some logical transmissions can carry multiple logical links.
[0099] The BLE protocol stack 350 may include an HCI 374, which may act as a boundary between the lower layers of the BLE protocol stack 350 (e.g., the controller stack 356) and other layers of the BLE protocol stack (e.g., the host stack 354 and the application layer 352). In addition, the host stack 354 may use the HCI 374 to communicate with a BLE controller (e.g., Figure 2 LL 370 may communicate with the host stack 354 of the BLE protocol stack 350 using HCI 374. Although some BLE systems may be "hostless" in that the host stack 354 and the controller stack 356 may be implemented on the same processor, HCI 374 may also allow the host stack 354 to communicate with a different controller stack 356, such as when the controller stack 356 is implemented on a second processor.
[0100] The host stack 354 may include a Generic Access Profile (GAP) 360, a Generic Attribute Protocol (GATT) 362, a Security Manager (SM) 364, an Attribute Protocol (ATT) 366, and an L2CAP layer 368. The L2CAP layer 368 may encapsulate multiple protocols from the upper layer into a data packet format (and vice versa). The L2CAP layer 368 may also split a packet from the upper layer with a large data payload into multiple packets, wherein the data payload is segmented into smaller-sized data payloads that fit the maximum payload size (e.g., twenty-seven bytes) of the sending side. Similarly, the L2CAP layer 368 may receive multiple data packets carrying data payloads that have been segmented, and the L2CAP layer 368 may combine the segmented data payloads into a single data packet carrying a data payload to be sent to the upper layer (e.g., the application layer 352).
[0101] ATT 366 includes a client / server protocol based on attributes associated with BLE devices that are configured for specific purposes (e.g., monitoring heart rate, temperature, broadcasting advertisements, etc.). Attributes can be discovered, read, and written by peer devices. The set of operations performed on ATT 366 may include, but are not limited to, error handling, server configuration, finding information, read operations, write operations, queued writes, etc. ATT 366 can form the basis for data exchange between BLE devices.
[0102] SM 364 may be responsible for device pairing and key distribution. The security manager protocol implemented by SM 364 may define how to perform communication with the SM of the other BLE device. SM 364 provides additional cryptographic functions that may be used by other components of the BLE protocol stack 350. The architecture of SM 364 used in BLE is designed to minimize resource requirements on peripheral devices by transferring work to a presumably more powerful central device. BLE uses a pairing mechanism for key distribution. SM 364 provides a mechanism not only for encrypting data but also for providing data authentication.
[0103] Above the host stack 354 in the BLE protocol stack 350 , the application layer 352 may include applications 358 , such as user applications that interface with the host stack 354 of the BLE protocol stack 350 through BLE communications for various functionalities.
[0104] Referring back to the host stack 354, GATT 362 may provide a service framework using an attribute protocol for discovering services, and for reading and writing characteristic values on peer devices. GATT 362 may interface with application 358, for example, through a profile, which may define a set of attributes, and any permissions required to use those attributes in BLE communications. GAP 360 may provide an interface for application 358 to initiate, establish, and manage connections with other BLE devices.
[0105] In some aspects, a wireless device (e.g., wireless device 102, wireless device 200) can be configured to communicate according to different standards and / or protocols. For example, a wireless device can be configured to use both BT and BLE for short-range wireless communication. Therefore, the wireless device can be configured to have both a BT protocol stack 300 and a BLE protocol stack 350. In some aspects, one or more layers can be configured for both the BT protocol stack 300 and the BLE protocol stack 350-for example, the L2CAP layers 314, 368 of the protocol stacks 300, 350 can be configured for dual-mode short-range wireless communication using BT or BLE.
[0106] Figure 4A 4 is a diagram illustrating a data packet 400 according to certain aspects of the present disclosure. The data packet may be used with various short-range wireless communication technologies such as BT. The data packet 400 may include a preamble 402, a sync word 404, a trailer 406, a PDU 412, and a CRC 414. In some configurations, the data packet 400 may not include the CRC 414.
[0107] In some configurations, the PDU 412 may include a header 422, a payload 424, and a MIC 426. The MIC includes information that can be used to authenticate the data packet, for example, when the data packet is encrypted. In other words, the MIC can be used by a receiving device to confirm that the message came from the claimed sending device (e.g., data packet authenticity), and to confirm that the payload 424 has not been altered (e.g., data packet integrity). The MIC protects both the payload integrity and authenticity of the data packet 400 by enabling a receiving device that also possesses a secret key to detect any changes to the payload 424.
[0108] In some aspects, the header 422 of the PDU 412 may include multiple fields, including at least LT_ADDR 428. LT_ADDR may indicate a logical transport address. LT_ADDR 428 may be associated with a logical link. For example, the logical transport address included in LT_ADDR 428 may indicate the type of the logical link (e.g., ACL, A2DP, eSCO, ISO, etc.).
[0109] Figure 4B 450 is a diagram illustrating a data packet 450 according to certain aspects of the present disclosure. The data packet can be used with various short-range wireless communication technologies such as BLE. The data packet 450 may include a preamble 452, an access address 454, a PDU 456, and a CRC 458. In some configurations, the data packet 450 may not include the CRC 458.
[0110] In some aspects, access address 454 may set the address of a link layer (eg, link layer 370) connection. For example, access address 454 may include an address indicating the type of logical link (eg, ACL, A2DP, eSCO, ISO, etc.).
[0111] In some configurations, the PDU 456 may include a header 462, a payload 464, and a MIC 468. The MIC includes information that can be used to authenticate the data packet, for example, when the data packet is encrypted. In some aspects, the header 462 of the PDU 456 may include multiple fields, including at least a logical link identifier (LLID).
[0112] Figure 5 A wireless communication system 500 is shown in accordance with various aspects of the present disclosure. The wireless communication system 500 may include two devices 502, 550. In some aspects, one device 550 may be a source device. For example, the device 550 may be Figure 1 Another device 502 may be a sink device. For example, device 502 may be Figure 1 Herein, device 502 may be referred to as sink device 502, and device 550 may be referred to as source device; however, these labels are not intended to limit the scope of the present disclosure.
[0113] The sink device 502 may be configured to send packets using one or more mechanisms for security and / or integrity. Accordingly, the sink device 502 may include an encryption component 504, a CRC generation component 506, and a whitening component 508. The encryption component 504 may encrypt the packet according to any of a variety of different encryption algorithms or protocols, such as the Advanced Encryption Standard (AES) or AES Counter (AES-CCM) with Cipher Block Chaining Message Authentication Code (CBC-MAC) (CCM). In one aspect, the encryption component 504 may generate a MIC value based on the data to be sent, and the encryption component 504 may append the MIC value to the data to be included in the payload of the packet.
[0114] CRC generation component 506 can be configured to generate CRC value based on data, and this data can include additional MIC value.In some aspects, CRC generation component 506 can generate CRC value based on PDU (for example, PDU including header, payload and MIC value).CRC value can be attached in the grouping after PDU.Whitening component 508 can be configured to whiten data, such as by applying whitening transformation to data.Packet can be provided to RF interface subsequently, and this RF interface can provide data to RF front-end circuit for sending via the transmission chain of host equipment 502.
[0115] According to different aspects, the sink device 502 may include more or fewer components. For example, the sink device 502 may include a component for forward error correction (FEC) encoding, which may encode the packet using FEC (e.g., using error correction codes to encode the packet with redundancy). The component for FEC encoding may appear logically after the whitening component 508, for example, so that the packet is encoded using FEC after data whitening. In another example, the sink device 502 may include a component for pattern mapping. For pattern mapping, the bit code of the packet may be mapped to the input bit, resulting in an expansion of the data associated with the FEC encoding to facilitate the recovery of the data by the receiver. Therefore, the component for pattern mapping may appear logically after the component for FEC encoding.
[0116] In yet another example, sink device 502 can include a component for encoding that can encode at least a portion of the packet before transmitting. The component for encoding can logically appear after whitening component 508, for example, such that the packet is encoded after data whitening.
[0117] When sink device 502 receives a packet, the packet can be received by RF front-end circuitry via a receive chain of sink device 502, and RF interface 510 can provide the packet to a dewhitening component 512. Dewhitening component 512 can dewhiten data included in a PDU of the received packet, which can include applying the inverse of a whitening transform used to whiten the data.
[0118] In some aspects, the sink device 502 may include a component for FEC decoding, which may decode the packet using FEC (e.g., using error correction codes to decode redundancy in the packet). The component for FEC decoding may logically appear before the de-whitening component 512, for example, so that the packet is decoded using FEC before the data is de-whitened. In another example, the sink device 502 may include a component for mode demapping. For mode mapping, the bit code of the packet may be demapped to data bits, for example, to facilitate recovery of the data by the sink device 502. Therefore, the component for mode demapping may logically appear before the component for FEC decoding.
[0119] In yet another aspect, sink device 502 can include a component for decoding that can decode at least a portion of the packet after receiving. The component for decoding can logically appear before de-whitening component 512, for example, so that the packet is decoded before the data is de-whitened.
[0120] The received packets (including the initial data packet and one or more retransmissions of the initial data packet) can be provided to the error correction component 520. As described in the present disclosure, the error correction component 520 can be configured to detect errors in the retransmitted packets. The error correction component 520 can attempt to correct any errors detected in the retransmitted packets, and if the error correction component 520 cannot generate an error-free packet to correct the errors, the error correction component 520 can generate a set of bit error quality metrics.
[0121] The error correction component 520 can provide the packet (e.g., estimated based on the initial packet and the retransmitted packet) and, if applicable, a set of bit error quality metrics to the CRC check component 514. The CRC check component 514 can generate a CRC value based on the packet from the error correction component 520 and compare the generated CRC value to the CRC value indicated in the packet. If the CRC check component 514 determines that the generated CRC value matches the CRC value indicated in the packet, the packet can pass at least a portion of the decoding check, and the CRC check component 514 can provide the packet to the decryption component 516.
[0122] If CRC check component 514 determines that the generated CRC value does not match the CRC value indicated in the packet, the packet may have failed the decoding check. In this case, the packet can still be provided to a higher layer (e.g., CODEC) along with a set of bit error quality metrics to attempt to reconstruct the data even with (one or more) errors, or sink device 502 can send a NACK message to source device 550 to indicate that the packet was not successfully decoded.
[0123] When decryption component 516 obtains the packet, decryption component 516 can apply at least one of any number of decryption algorithms or protocols, such as AES-CCM, EO, etc., to decrypt the packet. The packet can then be provided to a higher layer (e.g., CODEC) for output by sink device 502, e.g., for streaming audio or video.
[0124] The decryption component 516 of the sink device 502 and the source device 550 can agree on at least one random number for decryption of the data packets. In one aspect, one random number can be agreed upon between the decryption component 516 and the source device 550 for at least one set of packets, such as the initial data packets 562 and the set of retransmitted data packets 564. In another aspect, the decryption component 516 and the source device 550 can agree on a first random number for decryption of one set of data packets (e.g., the initial data packets 562) and at least one other random number for decryption of another set of data packets (e.g., the set of retransmitted data packets 564).
[0125] For communication of packets, the source device 550 can establish a short-range wireless communication link with the sink device 502. The short-range wireless communication link can be, for example, a BT link or a BLE link. In this regard, the source device 550 and the sink device 502 can establish a logical link 552. In various aspects, the logical link 552 can be one of an ACL link, an A2DP link, an eSCO link, or an ISO link. The source device 550 can send data packets to the sink device 502 on the logical link 552. In some configurations, the sink device 502 can respond to the received data packets with feedback, such as an ACK message when the data packet is successfully decoded by the sink device 502, or a NACK message when the data packet is not successfully decoded.
[0126] Source device 550 may send first packet 560, which may be received by sink device 502. First packet 560 may be associated with establishment of logical link 552. First packet 560 may include a header portion. In one aspect, the header portion may be included in a PDU of first packet 560 (e.g., header 422 of PDU 412 of packet 400). In another aspect, first packet 560 may include an access address (e.g., access address 454) separate from a PDU (e.g., PDU 456).
[0127] The packet may include an address indicating the type of the logical link 552. For example, the first packet 560 may include a header portion including an LT_ADDR (e.g., for BT communication), or the first packet 560 may include an access address (e.g., for BLE communication). The sink device 502 may determine the type of the logical link 552 based on the access address or the LT_ADDR indicated in the header portion of the first packet 560. For example, the sink device 502 may determine whether the logical link 552 is an ACL link, an A2DP link, an eSCO link, or an ISO link.
[0128] When logical link 552 is established, sink device 502 may be configured to receive data packets on established logical link 552. For example, source device 550 may send initial data packet 562 on logical link 552. Initial data packet 562 may include, for example, data to be output by sink device 502. For example, initial data packet 562 may include audio data, video data, etc.
[0129] Sink device 502 can receive initial data packet 562 at RF interface 510. De-whitening component 512 can obtain initial data packet 562 provided by RF interface 510, and de-whitening component 512 can de-whiten data (eg, PDU) of initial data packet 562.
[0130] Sink device 502 can then apply a decoding check to initial data packet 562. When initial data packet 562 is received, error correction component 520 can obtain initial data packet 562, but can refrain from applying error correction until a decoding check is applied, e.g., to determine whether initial data packet 562 includes one or more errors. The decoding check can include a CRC verification and, if applicable, a MIC verification (e.g., when the initial data packet is encrypted).
[0131] The CRC check component 514 can obtain the initial data packet 562. The CRC check component 514 can generate a CRC value based on the initial data packet 562 (e.g., based on the payload, and (if applicable) based on the MIC value included in the PDU of the initial data packet 562). The CRC check component 514 can compare the generated CRC value with the CRC value indicated in the initial data packet 562 (e.g., after the PDU of the initial data packet 562). If the generated CRC value matches the CRC value indicated in the initial data packet 562, the initial data packet 562 can be CRC-verified and can at least partially pass the decoding check. The CRC-verified initial data packet 562 can be provided to the decryption component 516. If the generated CRC value does not match the CRC value indicated in the initial data packet 562, the CRC check component 514 can determine that the initial data packet 562 is not CRC-verified and has not passed the decoding check.
[0132] If the initial data packet is encrypted, the decryption component 516 can decrypt the initial data packet 562 and obtain the decrypted payload and the decrypted MIC value. The decryption component 516 can generate a MIC value based on the decrypted payload and compare the generated MIC value with the decrypted MIC value. If the generated MIC value matches the decrypted MIC value (and the CRC check component 514 has verified the initial data packet 562), the initial data packet 562 can pass the decoding check.
[0133] When the initial data packet passes the decoding check, the payload of the PDU of the initial data packet 562 can be delivered to a higher layer (e.g., a receiver buffer, a CODEC, etc.). In some aspects, the sink device 502 can send a feedback message indicating an ACK to the source device 550 to indicate that the initial data packet 562 was successfully received and decoded.
[0134] If the generated MIC value does not match the decrypted MIC value, the initial data packet 562 may not pass the decoding check (even though the initial data packet 562 may be CRC verified). When the initial data packet 562 does not pass the decoding check, then the error correction component 520 can obtain a set of retransmit packets for error correction of the initial data packet 562. In some aspects, the sink device 502 can send a feedback message 582 indicating a NACK to the source device to indicate that the initial data packet 562 was not successfully decoded.
[0135] Source device 550 can send set of retransmitted data packets 564. For example, source device can send a first retransmitted data packet of set of retransmitted data packets 564 in response to a feedback message indicating a NACK received from sink device 502. Sink device 502 can receive the first retransmitted data packet of set of retransmitted data packets 564, and error correction component 520 can obtain the first retransmitted data packet of set of retransmitted data packets 564 from de-whitening component 512.
[0136] The error correction component 520 can be configured with multiple operating modes for error correction of data packets. The multiple operating modes for error correction can include at least a soft combining mode, a quality bit mask (QBm) mode, and a quality bit mask hybrid (QBm-H) mode. Illustrative aspects of the operating modes can be described herein.
[0137] The error correction component 520 can select and apply one of a plurality of operating modes for error correction. To select an operating mode, the error correction component 520 can first determine the type of the logical link 552. The error correction component 520 can determine the type of the logical link 552 based on at least one of an access address or a LT_ADDR, which can be included in the first packet 560 and / or the initial data packet 562. The access address or the LT_ADDR can indicate the type of the logical link 552 to the error correction component 520.
[0138] Each of the plurality of operation modes may be associated with at least one of the types of logical links. For example, when the logical link 552 includes an ACL link or an A2DP link, the error correction component 520 may select a soft merge mode. When the logical link 552 includes an eSCO link, the error correction component 520 may select a QBm mode. When the logical link 552 includes an ISO link, the error correction component 520 may select a QBm-H mode. When the initial data packet 562 fails the decoding check (e.g., fails the CRC verification and / or fails the MIC verification), the error correction component 520 may apply the selected operation mode 526.
[0139] In various aspects of the operating mode 526, if the initial data packet 562 and the set of retransmitted data packets 564 are encrypted, the selected operating mode 526 may be applied to the encrypted PDUs of the data packets 562, 564 or the decrypted PDUs of the data packets 562, 564. Additionally, the selected soft combining operating mode 526 may be applied to the payload of the PDUs of the data packets 562, 564 (without the MIC) or to both the payload and the MIC of the PDUs of the data packets 562, 564.
[0140] When the first random number agreed upon for decryption of the initial data packet 562 matches one or more corresponding random numbers agreed upon for decryption of each retransmitted data packet in the set of retransmitted data packets 564, then the selected soft combining operation mode 526 may be applied to both the payload and the MIC value of the initial data packet 562 and the set of retransmitted data packets 564. When the first random number agreed upon for decryption of the initial data packet 562 is different from the at least one random number agreed upon for decryption of at least one retransmitted data packet in the set of retransmitted data packets 564, then the selected soft combining operation mode 526 may be applied only to the payload of the PDU data of the initial data packet 562 and the set of retransmitted data packets 564. In other words, the MIC values included in the PDU data of the initial data packet 562 and the set of retransmitted data packets 564 may be excluded from the application of the selected soft combining operation mode 526.
[0141] In the application of the selected soft merge operation mode 526, the error correction component 520 can store each soft value in the soft value set in each buffer in the buffer set. For example, each bit of the initial data packet 562 can be mapped to a three-bit signed soft value. That is, each bit in the bit array of the PDU data (e.g., payload, and (if applicable) MIC value) of the initial data packet 562 can be stored as a three-bit signed soft value in each buffer in the buffer array. In other words, bit i of the PDU data of the initial data packet 562 can be stored in the buffer index i as a three-bit signed soft value. 1 bit of the PDU data of the initial data packet 562 can be stored as a -1 soft value (e.g., -'3sd1), and 0 bit of the PDU data of the initial data packet 562 can be stored as a 0 soft value (e.g., +'3sd0, and the 0 soft value can be regarded as a positive sign soft value).
[0142] Further with respect to the application of the selected soft combining operation mode 526, for each retransmitted data packet in the set of retransmitted data packets 564, each soft value in the set of soft values stored in each buffer may be accumulated with another three-bit signed soft value based on a corresponding bit of the PDU data of each retransmitted data packet in the set of retransmitted data packets 564. For example, bit i of the PDU data of the first retransmitted data packet in the set of retransmitted data packets 564 may be accumulated with the three-bit signed soft value in buffer index i. Bit 1 of the PDU data of the first retransmitted data packet in the set of retransmitted data packets 564 may be accumulated as a -1 soft value (e.g., -'3sd1), and bit 0 of the PDU data of the first retransmitted data packet in the set of retransmitted data packets 564 may be accumulated as a +1 soft value (+3'sd1).
[0143] In some aspects, the buffer set may be saturated at minimum and maximum values, which may prevent buffer underflow or overflow. For example, each buffer may be saturated at a maximum value of +3 (+3'sd3) and saturated at a minimum value of -4 (-3'sd4). Accordingly, the buffer index i may not exceed the minimum or maximum value, and the additional bits i of additional PDU data from the additional retransmitted data packets in the retransmitted data packet set 564 may cause the soft value in the buffer index i to remain at the saturated minimum or maximum value.
[0144] After the bits of the PDU data of the retransmitted data packets in the retransmitted data packet set 564 are accumulated in the buffer set, the three-bit signed soft value in the buffer set can be "hard sliced" or mapped to a bit value in a set of estimated bit values. When the buffer index i is greater than or equal to 0 (3'sd0), then 0 can be mapped to a bit value in a set of estimated values. When the buffer index i is less than 0 (3'sd0), then 1 can be mapped to a bit value in a set of estimated values. This estimated set of bit values can represent an estimate of the PDU data of the initial data packet 562 (e.g., payload, and (if applicable) MIC value).
[0145] The estimated set of bit values may then be provided as a data packet to the CRC check component 514 and the decryption component 516, which may determine whether the estimated set of bit values passes a decoding check (e.g., CRC validation, and, if applicable, MIC validation). For example, the CRC check component 514 may generate a CRC value based on the estimated set of bit values, and may compare the generated CRC value with a CRC value in a most recently received data packet included in the set of retransmitted data packets 564. Similarly, the decryption component 516 may generate a MIC value based on the estimated set of bit values, and may compare the generated MIC value with a MIC value in a most recently received data packet included in the set of retransmitted data packets 564.
[0146] If the estimated set of bit values results in the data packet passing the decoding check, the estimated set of bit values may be provided to a higher layer (e.g., a receiver buffer, a CODEC, etc.). In one aspect, if the estimated set of bit values results in the data packet failing the decoding check, the sink device 502 may send a feedback message 582 indicating a NACK for the most recently received retransmitted data packet in the set of retransmitted data packets. In another aspect, if the estimated set of bit values results in the data packet failing the decoding check, the sink device 502 may still provide the estimated set of bit values to a higher layer (e.g., a receiver buffer, a CODEC, etc.), and potentially the higher layer may recover the bit error or may conceal the bit error. For example, when the number of retransmitted data packet sets 564 is limited by a maximum threshold, the last retransmitted data packet before the maximum threshold is received, and the estimated set of bit values still fails the decoding check, the estimated set of bit values may still be provided to a higher layer.
[0147] In certain aspects, the error correction component 520 can generate a set of bit error quality metrics based on the set of estimated bit values, and the set of bit error quality metrics can indicate the location and / or amount of one or more potential bit errors—e.g., at the index of the set of estimated bit values where the three-bit signed soft value is 0 at the hard slice. The error correction component 520 can provide the set of bit error quality metrics to higher layers, e.g., to facilitate recovery from bit errors.
[0148] When the logical link 552 includes an eSCO link, the selected operation mode 526 may include a QBm mode. For the QBm mode, the error correction component 520 may perform a bit-by-bit majority function based on the bits of the PDU data of the initial data packet 562, the bits of the PDU data of the first retransmitted data packet in the set of retransmitted data packets 564, and the bits of the PDU data of the second retransmitted data packet in the set of retransmitted data packets 564.
[0149] According to one aspect of the bit-by-bit majority function, the error correction component 520 can capture the initial data packet 562 in the first buffer, and the CRC check component 514 and the decryption component 516 (if applicable) can determine whether the initial data packet 562 passes the decoding check. When the initial data packet 562 does not pass the decoding check and the first retransmitted data packet in the set of retransmitted data packets 564 is received, the CRC check component 514 and the decryption component 516 (if applicable) can determine whether the first retransmitted data packet passes the decoding check. If so, the first retransmitted data packet can be passed to a higher layer, and the error correction component 520 can avoid any further error correction of the initial data packet 562.
[0150] When the first retransmitted data packet fails the decoding check, each bit of the PDU data (e.g., payload, and (if applicable) MIC value) of the initial data packet 562 may be XORed with the corresponding bit of the PDU data of the first retransmitted data packet in the retransmitted data packet set 564. The result of each XOR operation may be captured in the second buffer. In addition, a bit error quality metric set may be calculated based on the initial data packet 562 and the first retransmitted data packet. For example, the bit error quality metric set may indicate the number and / or location of bit errors in which bit i in the PDU data of the initial data packet 562 does not match the corresponding bit i in the PDU data of the first retransmitted data packet. In some aspects, the result of the XOR operation indicates the location of the bit error.
[0151] In addition, when the first retransmitted data packet fails the decoding check, the second retransmitted data packet in the retransmitted data packet set 564 can be received. The second retransmitted data packet in the retransmitted data packet set 564 can be captured in the third buffer. The CRC check component 514 and the decryption component 516 (if applicable) can determine whether the second retransmitted data packet passes the decoding check. If so, the second retransmitted data packet can be passed to a higher layer, and the error correction component 520 can avoid any further error correction of the initial data packet 562.
[0152] When the second retransmitted data packet fails the decoding check, each bit of the PDU data (e.g., payload, and (if applicable) MIC value) of the initial data packet 562 may be XORed with the corresponding bit of the PDU data of the second retransmitted data packet in the retransmitted data packet set 564. The result of each XOR operation may be captured in the fourth buffer. For the first retransmitted data packet and the second retransmitted data packet, each bit of the PDU data (e.g., payload, and (if applicable) MIC value) of the first retransmitted data packet may be XORed with the corresponding bit of the PDU data of the second retransmitted data packet in the retransmitted data packet set 564. The result of each XOR operation may be captured in the fifth buffer.
[0153] Based on the bits of the PDU data of the initial data packet 562, the first retransmitted data packet, and the second retransmitted data packet, the error correction component 520 can generate a set of bit error quality metrics. The set of bit error quality metrics can indicate the number and / or location of bit errors of the PDU data across the initial data packet 562, the first retransmitted data packet, and the second retransmitted data packet. For example, when bit i is the same in two data packets but different in another data packet, the set of bit error quality metrics can indicate that bit i is likely to be erroneous in the set of estimated bit values.
[0154] Based on the results of the XOR operations in the second, fourth, and fifth buffers, the error correction component 520 can perform a bit-by-bit majority vote. The error correction component 520 can generate a set of estimated bit values based on a bit-by-bit majority vote by determining that bit i in the set of estimated bit values is equal to the bit value at bit i in at least two data packets. For example, if the initial data packet 562 and the second retransmitted data packet each include a 0 bit value at bit i, but the first retransmitted data packet includes a 1 bit value at bit i, the error correction component 520 can insert a 0 at bit i in the set of estimated bit values.
[0155] The estimated set of bit values can be passed in the data packet to the CRC check component 514 and the decryption component 516 for decoding verification. If the estimated set of bit values passes the decoding verification, the estimated set of bit values can be passed to a higher layer. If the estimated set of bit values does not pass the decoding verification, the packet can be discarded or the estimated set of bit values can be passed to a higher layer along with a set of bit error quality metrics (e.g., so that the higher layer can recover bit errors or conceal erroneous data).
[0156] When the logical link 552 includes an ISO link, the selected operation mode 526 may include a QBm-H mode. The QBm-H mode may depend on the number of retransmitted data packet sets 564. For example, for the first three data packets, the error correction component 520 may perform a bit-by-bit majority function based on the following: bits of PDU data of the initial data packet 562, bits of PDU data of the first retransmitted data packet in the retransmitted data packet set 564, and bits of PDU data of the second retransmitted data packet in the retransmitted data packet set 564. If the error correction component 520 is able to generate a set of estimated bit values that pass the decoding check from the bit-by-bit majority function, the estimated set of bit values may be passed to a higher layer. In certain aspects, the error correction component 520 may determine that a threshold amount of time or a threshold number of retransmitted data packets has been reached, and therefore, the error correction component 520 may still pass a set of estimated bit values (and potentially, a set of bit error quality metrics) to a higher layer. In such aspects, additional retransmitted data packets (outside the first and second retransmitted data packets) may be discarded.
[0157] In another aspect, when the error correction component 520 is unable to generate a set of estimated bit values that pass the decoding check, then more than two retransmitted data packets in the set of retransmitted data packets 564 may be received. In such aspects, the error correction component 520 may switch to a soft merging mode of operation to accumulate a set of three-bit signed soft values in a buffer set for each data packet in the initial data packet 562 and the set of retransmitted data packets. As described herein, the error correction component 520 may generate a set of estimated bit values by hard slicing or mapping each of the three-bit signed soft values in the buffer set to a bit value in the set of estimated bit values. The error correction component 520 may communicate the set of estimated bit values (and potentially, a set of bit error quality metrics) to a higher layer.
[0158] Figure 6 It is shown that various aspects of the present disclosure can be Figure 5600 of operations performed by a sink device 502 of the embodiment of the present invention. At operation 602, the de-whitening component 512 can de-whiten the initial data packet 562. At operation 604, the error correction component 520 can determine whether at least one operation mode in a set of operation modes for error correction is enabled. For example, the error correction component 520 can determine the type of the logical link 552 based on the header of the packet (e.g., the first packet 560, the initial data packet 562, etc.). If the type of the logical link 552 includes an ACL link or an A2DP link, the error correction component 520 can enable the soft merge operation mode 526. If the type of the logical link 552 includes an eSCO link, the error correction component 520 can enable the QBm operation mode 526. If the type of the logical link 552 includes an ISO link, the error correction component 520 can enable the QBm-H operation mode 526.
[0159] If the error correction component 520 does not enable the operation mode 526 (for example, because the type of the logical link 552 is not one of ACL, A2DP, eSCO, or ISO), the initial data packet 562 can be verified using a decoding check. At operation 640, the CRC check component 514 can process the CRC corresponding to the payload of the initial data packet 562. If the CRC check component 514 verifies the CRC value of the initial data packet 562, the decryption component 516 can verify the MIC value of the initial data packet 562 (if the MIC value is included). If the decryption component 516 verifies the MIC value of the initial data packet 562, the decryption component 516 can decrypt the payload of the initial data packet 562. At operation 622, the decrypted payload of the initial data packet 562 can be stored and can be provided to a higher layer (e.g., a receiver buffer, a CODEC, etc.). In some aspects, the sink device 502 can send a feedback message 582 indicating an ACK.
[0160] If the error correction component 520 does enable the operating mode 526, the error correction component 520 can determine a first random number for the initial data packet 562 or determine whether encryption is disabled for the initial data packet 562 according to operation 606. At operation 608, when the initial data packet 562 is encrypted, the error correction component 520 can optionally decrypt 522 the payload of the initial data packet 562. At operation 610, the error correction component 520 can determine whether the initial data packet 562 is an initial data packet or whether the initial data packet 562 is a retransmitted data packet in the set 564 of retransmitted data packets.
[0161] When the initial data packet 562 is not a retransmission of another data packet, the error correction component 520 can store (e.g., in a buffer) the initial payload of the initial data packet 562, as shown at operation 612. At operation 614, the error correction component 520 can optionally encrypt 524 the initial payload of the initial data packet 562 (e.g., if the payload of the initial data packet 562 was decrypted according to operation 608).
[0162] The initial data packet 562 may be verified using a decoding check. At operation 616, the CRC check component 514 may process the CRC corresponding to the payload of the initial data packet 562. If the CRC check component 514 verifies the CRC value of the initial data packet 562, the decryption component 516 may verify the MIC value of the initial data packet 562 (if a MIC value is included). If the decryption component 516 verifies the MIC value of the initial data packet 562, then at operation 620, when the initial data packet 562 passes the decoding check, the decryption component 526 may decrypt the payload of the initial data packet 562. At operation 622, the decrypted payload of the initial data packet 562 may be stored and may be provided to a higher layer (e.g., a receiver buffer, a CODEC, etc.).
[0163] If the initial data packet 562 fails the decoding check (e.g., CRC check or MIC check), the first retransmitted data packet in the set of retransmitted data packets 564 may be received (e.g., the sink device may send a feedback message 582 indicating a NACK to request at least one retransmitted data packet in the set of retransmitted data packets 564). Returning to operation 602, the de-whitening component 512 may de-whiten the first retransmitted data packet. If the operating mode 526 is not enabled, the first retransmitted data packet may be verified using a decoding check.
[0164] At operation 640, the CRC check component 514 can process the payload of the first retransmitted data packet to generate a CRC value, and determine whether the CRC value included in the first retransmitted data packet matches the generated CRC value. At operation 642, the decryption component 516 can process the MIC of the first retransmitted data packet to generate a MIC value, and determine whether the MIC value included in the first retransmitted data packet matches the generated MIC value.
[0165] If both the generated CRC value and the generated MIC value match the CRC value and the MIC value included in the first retransmitted data packet, respectively, then the first retransmitted data packet can pass the decoding check. The sink device 502 can send a feedback message 582 indicating an ACK. At operation 620, the decryption component 516 can decrypt the first retransmitted data packet (if encrypted). At operation 622, the payload of the first retransmitted data packet can be stored (e.g., to be provided to a higher layer).
[0166] If the generated CRC value or the generated MIC value does not match the CRC value or the MIC value included in the first retransmitted data packet, respectively, the first retransmitted data packet may not pass the decoding check. The sink device 502 may send a feedback message 582 indicating a NACK. The sink device 502 may receive a second retransmitted data packet in the set 564 of retransmitted data packets.
[0167] Returning to operation 604, for the first retransmitted data packet, when the operating mode 526 is enabled, the error correction component 520 can determine whether the corresponding random number agreed upon for the first retransmitted data packet matches the first random number agreed upon for the initial data packet 562, or can determine whether the first retransmitted data packet is encrypted. When the first random number does not match the corresponding random number, then the error correction component 520 can optionally decrypt 522 the payload of the first retransmitted data packet according to operation 608. When the first random number matches the corresponding random number or encryption is disabled, then the error correction component 520 can determine which transmission / retransmission corresponds in sequence to the first retransmitted data packet, as shown in operation 610.
[0168] Because the first retransmitted data packet is the first in the set of retransmitted data packets 564, the error correction component can apply the selected operating mode 526, which can be one of the soft combining mode, the QBm mode, or the QBm-H mode. Accordingly, at operation 624, the error correction component 520 can generate and store a corrected payload (e.g., a set of estimated bit values), and (if applicable) a MIC value. Further to operation 624, the error correction component 520 can generate and store a set of bit error quality metrics based on the application of the selected operating mode 526.
[0169] At operation 626, if the payload of the first retransmitted data packet is decrypted according to operation 608, the error correction component 520 can encrypt 524 the payload of the first retransmitted data packet 562. At operation 628, the CRC check component 514 can process the payload of the first retransmitted data packet to generate a CRC value, and determine whether the CRC value included in the first retransmitted data packet matches the generated CRC value. At operation 630, if encryption is enabled, the decryption component 516 can process the MIC of the first retransmitted data packet to generate a MIC value, and determine whether the MIC value included in the first retransmitted data packet matches the generated MIC value.
[0170] If both the generated CRC value and the generated MIC value match the CRC value and the MIC value included in the first retransmitted data packet, respectively, the first retransmitted data packet can pass the decoding check. The sink device 502 can send a feedback message 582 indicating an ACK. At operation 620, the decryption component 516 can decrypt the first transmit data packet (if encrypted). At operation 622, the payload of the first retransmitted data packet can be stored (e.g., to be provided to a higher layer).
[0171] If the generated CRC value or the generated MIC value does not match the CRC value or the MIC value included in the first retransmitted data packet, respectively, the first retransmitted data packet may not pass the decoding check. The sink device 502 may send a feedback message 582 indicating a NACK. The sink device 502 may receive a second retransmitted data packet in the set 564 of retransmitted data packets.
[0172] The sink device 502 may receive the second retransmitted data packet, and the de-whitening component 512 may de-whiten the second retransmitted data packet as shown in operation 602. At operation 604, if the operating mode 526 is disabled, the second retransmitted data packet may be processed for decoding verification, as described herein with respect to operations 640 and 642.
[0173] Returning to operation 604, for the second retransmitted data packet, when the operating mode 526 is enabled, the error correction component 520 can determine whether the corresponding random number agreed upon for the second retransmitted data packet matches the first random number agreed upon for the initial data packet 562, or can determine whether the second retransmitted data packet is encrypted. When the first random number does not match the corresponding random number, then the error correction component 520 can optionally decrypt 522 the payload of the second retransmitted data packet according to operation 608. When the first random number matches the corresponding random number or encryption is disabled, then the error correction component 520 can determine which transmission / retransmission corresponds in sequence to the second retransmitted data packet, as shown in operation 610.
[0174] Because the second retransmitted data packet is the second one in the set of retransmitted data packets 564, the error correction component can apply the selected operation mode 526, which can be one of the soft merge mode, the QBm mode, or the QBm-H mode. Accordingly, at operation 632, the error correction component 520 can generate and store a corrected payload and, if applicable, a MIC value using the second retransmitted data packet. For example, as described herein, the error correction component 520 can generate a set of estimated bit values based on the initial data packet 562 and the set of retransmitted data packets 564.
[0175] The set of estimated bit values may include bits estimated to be correct for the PDU data of the initial data packet 562, and thus, the set of estimated bit values may include each bit estimated to be correct for the payload and, if applicable, each bit estimated to be correct for the MIC value of the most recently received retransmitted data packet in the set of retransmitted data packets 564 (because the MIC value may be verified based on the MIC value of the most recently received retransmitted data packet in the set of retransmitted data packets 564). Further to operation 632, the error correction component 520 may generate and store a set of bit error quality metrics based on the application of the selected operating mode 526 using the second retransmitted data packet.
[0176] At operation 634, if the payload of the second retransmitted data packet is decrypted according to operation 608, the error correction component 520 may encrypt 524 the corrected payload (e.g., the estimated set of bit values) generated by the error correction component 520. At operation 636, the CRC check component 514 may process the corrected payload (e.g., the estimated set of bit values). The error correction component 520 may provide the data packet including the estimated set of bit values to the CRC check component 514, and the CRC check component 514 may generate a CRC value and determine whether the CRC value included in the most recently received retransmitted data packet (e.g., the second retransmitted data packet) in the set of retransmitted data packets 564 matches the generated CRC value. At operation 638, if encryption is enabled, the decryption component 516 may process the MIC of the second retransmitted data packet to generate a MIC value, and determine whether the MIC value included in the most recently received retransmitted data packet (e.g., the second retransmitted data packet) in the set of retransmitted data packets 564 matches the generated MIC value.
[0177] If both the generated CRC value and the generated MIC value match the CRC value and the MIC value, respectively, in the most recently received retransmitted data packet (e.g., the second retransmitted data packet) included in the set of retransmitted data packets 564, then the estimated set of bit values can pass the decoding check. The sink device 502 can send a feedback message 582 indicating an ACK. At operation 620, the decryption component 516 can decrypt the estimated set of bit values (if encrypted). At operation 622, the estimated set of bit values can be stored (e.g., to be provided to a higher layer).
[0178] As shown in method 600, when set of retransmitted data packets 564 includes more than two retransmitted data packets, a subset of operations including one or more of operations 602, 604, 606, 608, 610, 620, 622, 632, 634, 636, 638 may be performed. Thus, sink device 502 may iterate through method 600 until a corrected payload is determined by applying selected operation mode 526, until the corrected payload passes decoding checks (e.g., CRC verification, and, if applicable, MIC verification), or until a threshold number of retransmitted data packets is reached and the corrected payload is passed to a higher layer along with a set of bit error quality metrics.
[0179] Figure 7 700 illustrates aspects of a soft merge mode of operation according to various aspects of the present disclosure. Figure 5 In the context of , when the logical link 552 includes an ACL link or an A2DP link, the sink device 502 can perform a soft merge operation mode. Figure 6 In the context of , as described with respect to operations 632, 634, 636, and 638, sink device 502 may apply a soft combining mode of operation to generate a corrected payload (eg, a set of estimated bit values).
[0180] When the source device and the sink device establish a logical link including an ACL link or an A2DP link and the sink device selects the soft combining operation mode accordingly, the source device can send an initial data packet with a TX message A 706a (i.e., the expected bit set). The TX message A 706a can include PDU data, and thus the TX message A 706a can include payload data and, in certain aspects, can include a MIC value.
[0181] During transmission of TX message A 706a, one or more bit errors 708a may occur in TX message A 706a, for example due to interference or other channel conditions. Thus, TX message A 706a may be received by the sink device as RX message A 712a, which may include a set of bits having one or more bit errors 708a.
[0182] The sink device may buffer 716a RX Message A 712a in a set of buffers (e.g., in an indexed buffer array). For example, when RX Message A 712a is encrypted, the sink device may buffer 716a RX Message A 712a without first decrypting RX Message A 712a. However, in another example, the sink device may first decrypt RX Message A 712a.
[0183] Because the sink device may be applying a soft combining mode of operation, the sink device may buffer 716a each bit of the RX message A 712a as a soft value in a buffer set. For example, the RX message A 712a may have n bits, and for index i equal to 0 to n-1 (where the first bit of the PDU data is indexed at 0), bit i of the PDU data of the RX message A 712a may be buffered 716a in buffer index i as a three-bit signed soft value. A 1 bit of the PDU data of the RX message A 712a may be stored as a -1 soft value (e.g., -'3sd1), and a 0 bit of the PDU data of the RX message A 712a may be stored as a 0 soft value (e.g., +'3sd0, and the 0 soft value may be considered a positive signed soft value). The foregoing examples are provided as illustrations, and different values may be buffered in association with the set of bits comprising RX Message A 712a (e.g., bit values may be buffered as unsigned values, soft values may be greater or less than three bits, 0 and 1 bit values may be stored as soft values other than -1 and 0, etc.) without departing from the scope of the present disclosure.
[0184] The sink device may decode 718a the RX message A 712a, and in some aspects, the sink device may decode 718a the RX message A 712a in real time while also buffering the RX message A 712a. When the RX message A 712a is decoded, the sink device may perform a decoding check, which may include at least a CRC verification, and if the RX message A 712a is encrypted, also includes a MIC verification. Accordingly, the sink device may perform a CRC verification on the RX message A 712a. Due to one or more bit errors 708a, the sink device may determine that the CRC value generated based on the RX message A 712a does not match the CRC value for the TX message A 706a (included in the initial data packet). Therefore, the sink device may determine that the RX message A 712a has not passed the CRC verification 720a.
[0185] In addition, when RX message A 712a is encrypted, the sink device can perform MIC verification on RX message A 712a. Due to one or more bit errors 708a, the sink device can determine that the MIC value generated based on RX message A 712a does not match the MIC value for TX message A 706a (included in the PDU data of the initial data packet). Therefore, the sink device can determine that RX message A 712a has failed MIC verification 722a.
[0186] When RX message A 712a fails the decoding check (eg, fails CRC verification 720a, and fails MIC verification 722a if encrypted), the sink device may send a NACK message 724a to the source device. In response to the NACK message 724a, the source device may send a TX message B 706b.
[0187] TX message B 706b may be a retransmission of TX message A 706a and may therefore include a copy of at least the payload data of the PDU data of TX message A 706a. During transmission of TX message B 706b, one or more bit errors 708b may occur in TX message B 706b. Thus, TX message B 706b may be received by the sink device as RX message B 712b, which may include a set of bits having one or more bit errors 708a.
[0188] Because the sink device may be applying soft combining, the sink device may buffer 716b the soft values corresponding to RX message A 712a and RX message B 712b. In certain aspects, each soft value in the set of soft values buffered 716a in association with RX message A 712a may be accumulated with a value (e.g., a signed value) of a corresponding bit based on the PDU data of RX message B 712b. For example, a three-bit signed soft value in buffer index i that may be buffered 716a for RX message A 712a may be accumulated with a signed value of bit i based on the PDU data of RX message B 712b (e.g., added to a signed value of bit i based on the PDU data of RX message B 712b). For example, a 1-bit value at index i of the PDU data of RX message B 712b may be accumulated with a three-bit signed soft value buffered 716a at index i as a -1 signed value (e.g., -'3sd1). The 0-bit value at index i of the PDU data of RX message B 712b may be accumulated with the three-bit signed soft value buffered 716a at index i to be a +1 soft value (eg, +'3sd1).
[0189] Accordingly, the sink device buffers 716b the soft-combined PDU data of RX message A 712a and RX message B 712b as a value accumulated based on the bits of the PDU data of RX message B 712b and the corresponding soft values buffered 716a based on the PDU data of RX message A 712a. The sink device may estimate the PDU data of TX message B 706b based on the soft values accumulated in the buffer set, which may include the same payload as TX message A 706a. To this end, the sink device may "hard slice" (e.g., map) each soft value at index i to a bit value estimated as the bit value of TX message B 706b at index i.
[0190] For example, the sink device may map a three-bit signed soft value at index i that is greater than or equal to 0 (3'sd0) to a 0-bit value at index i. When the three-bit signed soft value at index i is less than 0 (3'sd0), then the sink device may map a 1-bit value at index i. The foregoing examples are provided as illustrations, and thus, different mappings may be used for hard slicing without departing from the scope of the present disclosure. For example, the mapping between soft values accumulated based on RX messages and estimated bit values of TX messages may depend on the soft values of 1-bit values and 0-bit values, respectively, assigned to the initial RX message (e.g., RX message A 712a). In another example, the mapping between soft values accumulated based on RX messages and estimated bit values of TX messages may depend on how the soft values are accumulated based on the bit values of retransmitted messages (e.g., RX message B 712b).
[0191] From the hard slices, the sink device may obtain an estimate of the PDU data (e.g., payload, and, if applicable, MIC value) of TX message B 706b. That is, because each bit value derived from the hard slice at index i may be estimated as the bit value of TX message B 706b at index i, the sink device may obtain a set of estimated bit values representing the PDU data of TX message B 706b. Therefore, the sink device may decode 718b the set of estimated bit values representing the PDU data of TX message B 706b, which may include the hard slices of the accumulated soft values buffered 716b for RX message A 712a, RX message B 712b.
[0192] Using the estimated set of bit values decoded to represent the PDU data of TX message B 706b, the sink device can perform a decoding check on the estimated set of bit values. First, the sink device can perform a CRC verification 720b on the estimated set of bit values of the PDU data representing TX message B 706b. For example, the sink device can generate a CRC value based on the estimated set of bit values of the PDU data representing TX message B 706b. Because the CRC value may change between each sent message, the generated CRC value should match the CRC value associated with the most recently received RX message (here, RX message B 712b). Therefore, the sink device can compare the generated CRC value with the CRC value associated with RX message B 712b.
[0193] If the generated CRC value matches the CRC value associated with RX message B 712b, the estimated set of bit values representing the PDU data of TX message B 706b may successfully pass the CRC verification 720b of the decoding check. However, the CRC verification 720b of the estimated set of bit values representing the PDU data of TX message B 706b may not be successful because the application of the soft combining mode of operation may still produce one or more bit errors.
[0194] In addition, the sink device may perform MIC verification 722b on a set of estimated bit values representing the PDU data of TX message B 706b for decoding verification. For example, the sink device may generate a MIC value based on a set of estimated bit values representing the PDU data of TX message B 706b. Because the MIC value may change between each message sent, the generated MIC value should match the MIC value associated with the most recently received RX message (here, RX message B 712b). Therefore, the sink device may compare the generated MIC value with the MIC value associated with RX message B 712b.
[0195] If the generated MIC value matches the MIC value associated with RX message B 712b, the estimated set of bit values representing the PDU data of TX message B 706b may successfully pass the MIC verification 722b of the decoding check. However, the MIC verification 722b of the estimated set of bit values representing the PDU data of TX message B 706b may not be successful because the application of the soft combining operation mode may still produce one or more bit errors.
[0196] Because the estimated set of bit values representing the PDU data of TX message B 706b may not pass the decoding check, the sink device may send a NACK message 724b to the source device. Accordingly, the source device may send TX message C 706c.
[0197] TX message C 706c may be a retransmission of TX message A 706a and may therefore include a copy of at least the payload data of the PDU data of TX message A 706a. During transmission of TX message C 706c, one or more bit errors 708c may occur in TX message C 706c. Thus, TX message C 706c may be received by the sink device as RX message C 712c, which may include a set of bits having one or more bit errors 708c.
[0198] Because the sink device may be applying soft combining, the sink device may buffer 716c soft values corresponding to RX message A 712a, RX message B 712b, and RX message C 712c. In certain aspects, each soft value in the set of soft values buffered 716b associated with RX message A 712a, RX message B 712b may be accumulated with a value (e.g., a signed value) of a corresponding bit based on the PDU data of RX message C 712c. For example, a three-bit signed soft value in a buffer index i that may be buffered 716b based on a bit at index i of RX message A 712a and a bit at index i of RX message B 712b may be accumulated with a signed value of bit i based on the PDU data of RX message C 712c. For example, a 1-bit value at index i of the PDU data of RX message C 712c may be accumulated with a three-bit signed soft value buffered 716b at index i as a -1 signed value (e.g., -'3sd1). The 0-bit value at index i of the PDU data of RX message C 712c may be accumulated with the three-bit signed soft value buffered 716b at index i to be a +1 soft value (eg, +'3sd1).
[0199] In certain aspects, the sink device may be configured such that each buffer in the buffer set may be saturated at a minimum and maximum value, which may prevent buffer underflow or overflow. For example, each buffer at index i may be saturated at a maximum value of +3 (+3'sd3) and saturated at a minimum value of -4 (-3'sd4). Accordingly, buffer index i may not exceed the minimum or maximum value, and the additional bit i of the additional PDU data from RX message C 712c may cause the soft value in buffer index i to remain at the saturated minimum value when the value to be accumulated is a -1 soft value, or to remain at the saturated maximum value when the value to be accumulated is a +1 soft value.
[0200] In real time, the sink device buffers 716c the soft combined PDU data of RX message A 712a, RX message B 712b, and RX message C 712c accordingly as soft values accumulated based on bits of the PDU data of RX message C 712c and corresponding soft values buffered 716b based on the PDU data of RX message A 712a and RX message B 712b. The sink device can estimate the PDU data of TX message C 706c based on these soft values accumulated in the buffer set.
[0201] Therefore, the sink device may "hard slice" (e.g., map) each soft value at index i again to a one-bit value estimated to be the bit value of TX message C 706c at index i. For example, the sink device may map a three-bit signed soft value at index i that is greater than or equal to 0 (3'sd0) to a 0-bit value at index i. When the three-bit signed soft value at index i is less than 0 (3'sd0), then the sink device may map a 1-bit value at index i.
[0202] From the hard slice, the sink device may obtain a second estimate of the PDU data (e.g., payload, and, if applicable, MIC value) of TX message C 706c. That is, because each bit value derived from the hard slice at index i may be estimated as a bit value of TX message C 706c at index i, the sink device may obtain a second set of estimated bit values representing the PDU data of TX message C 706c. Therefore, the sink device may decode 718c the second set of estimated bit values representing the PDU data of TX message C 706c, which may include the hard slices of the accumulated soft values buffered 716c for RX message A 712a, RX message B 712b, and RX message C 712c.
[0203] Using the second set of estimated bit values decoded to represent the PDU data of TX message C 706c, the sink device can perform a decoding check on the second set of estimated bit values. First, the sink device can perform a CRC verification 720c on the second set of estimated bit values representing the PDU data of TX message C 706c. For example, the sink device can generate a CRC value based on the second set of estimated bit values representing the PDU data of TX message C 706c. The sink device can compare the generated CRC value with the CRC value associated with RX message C 712c.
[0204] If the generated CRC value matches the CRC value associated with RX Message C 712c, the estimated set of bit values representing the PDU data of TX Message C 706c may successfully pass the CRC verification 720c of the decoding check. However, the CRC verification 720c of the second set of estimated bit values representing the PDU data of TX Message C 706c may not be successful because the application of the soft combining mode of operation may still produce one or more bit errors.
[0205] In addition, the sink device may perform MIC verification 722c on a second set of estimated bit values representing the PDU data of TX message C 706c for decoding verification. For example, the sink device may generate a MIC value based on the second set of estimated bit values representing the PDU data of TX message C 706c. The sink device may compare the generated MIC value with the MIC value associated with RX message C 712c.
[0206] If the generated MIC value matches the MIC value associated with RX message C 712c, the second set of estimated bit values representing the PDU data of TX message C 706c may successfully pass the MIC verification 722c of the decoding check. However, the MIC verification 722c of the second set of estimated bit values representing the PDU data of TX message C 706c may not be successful because the application of the soft combining operation mode may still produce one or more bit errors.
[0207] Because the second set of estimated bit values representing the PDU data of TX message C 706c may again fail the decoding check, the sink device may send a NACK message 724c to the source device. Accordingly, the source device may send a TX message D 706d. TX message D 706d may be a retransmission of TX message A 706a and may therefore include a copy of at least the payload data of the PDU data of TX message A 706a.
[0208] During transmission of TX message D 706d, one or more bit errors 708d may occur in TX message D 706d. Thus, TX message D 706d may be received by the sink device as RX message D 712d, which may include a set of bits having one or more bit errors 708d.
[0209] Similar to the aforementioned RX message A 712a, RX message B 712b, RX message C 712c, the sink device may buffer 716d the soft values corresponding to RX message A 712a, RX message B 712b, RX message C 712c, RX message D 712d. In certain aspects, each soft value in the soft value set buffered 716c associated with RX message A 712a, RX message B 712b, RX message C 712c may be accumulated with the value (e.g., signed value) of the corresponding bit based on the PDU data of RX message D 712d. For example, the three-bit signed soft value in the buffer index i that may be buffered 716c based on the corresponding bit at the corresponding index i of RX message A 712a, RX message B 712b, RX message C 712c may be accumulated with the signed value of the bit value at the index i based on the PDU data of RX message D 712d.
[0210] For example, the 1-bit value at index i of the PDU data of RX message D 712d can be accumulated with the three-bit signed soft value buffered 716c at index i to form a -1 signed value (e.g., -'3sd1). The 0-bit value at index i of the PDU data of RX message C 712c can be accumulated with the three-bit signed soft value buffered 716c at index i to form a +1 soft value (e.g., +'3sd1).
[0211] In certain aspects, the sink device may be configured such that the buffer at index i may be saturated at a minimum and maximum value (e.g., saturated at a maximum value of +3 (+3'sd3) and saturated at a minimum value of -4 (-3'sd4)). Accordingly, the additional bit i of the additional PDU data from RX message D 712d may cause the soft value in buffer index i to remain at a saturated minimum value or a saturated maximum value, depending on the soft values to be accumulated based on the PDU data of RX message D 712d.
[0212] Accordingly, the sink device buffers 716d the soft combined PDU data of RX message A 712a, RX message B 712b, RX message C 712c, and RX message D 712d as soft values accumulated based on bits of the PDU data of RX message D 712d and corresponding soft values buffered 716c based on the PDU data of RX message A 712a, RX message B 712b, and RX message C 712c. The sink device may estimate the PDU data of TX message D 706d based on these soft values accumulated in the buffer set.
[0213] In real time, the sink device may hard slice each soft value at index i into a one-bit value estimated to be the bit value of TX message D 706d at index i. For example, the sink device may map a three-bit signed soft value at index i that is greater than or equal to 0 (3'sd0) to a 0-bit value at index i. When the three-bit signed soft value at index i is less than 0 (3'sd0), then the sink device may map a 1-bit value at index i.
[0214] From this third hard slice, the sink device may obtain a third estimate of the PDU data (e.g., payload, and, if applicable, MIC value) of TX message D 706d. Thus, because each bit value derived from the hard slice at index i may be estimated as a bit value of TX message D 706d at index i, the sink device may obtain a third set of estimated bit values representing the PDU data of TX message D 706d. The sink device may decode 718c the third set of estimated bit values representing the PDU data of TX message D 706d, which may include hard slices of the accumulated soft values buffered 716d based on RX message A 712a, RX message B 712b, RX message C 712c, and RX message D 712d.
[0215] Using the third set of estimated bit values decoded to represent the PDU data of TX message D 706d, the sink device can perform a decoding check by first performing a CRC verification 720d on the third set of estimated bit values of the PDU data representing TX message D 706d. For example, the sink device can generate a CRC value based on the third set of estimated bit values of the PDU data representing TX message D 706d. The sink device can compare the generated CRC value with the CRC value associated with RX message D 712d.
[0216] If the generated CRC value matches the CRC value associated with RX message D 712d, the third set of estimated bit values representing the PDU data of TX message D 706d can successfully pass the CRC verification 720d of the decoding check. Here, the CRC verification 720d of the third set of estimated bit values representing the PDU data of TX message D 706d can be successful. For example, the bit errors 708a, 708b, 708c, 708d may not occur in the same bit position, and therefore, the soft combining operation mode can produce a third set of estimated bit values that matches TX message D 706d after one or more retransmissions (e.g., three retransmissions in the illustrated aspect, although depending on the number and location of the bit errors, more or fewer retransmissions can produce a set of estimated bit values that successfully pass the decoding check).
[0217] Further to the decoding check, the sink device may perform MIC verification 722d on the third set of estimated bit values representing the PDU data of TX message D 706d. For example, the sink device may generate a MIC value based on the third set of estimated bit values representing the PDU data of TX message D 706d. The sink device may compare the generated MIC value with the MIC value associated with RX message D 712d.
[0218] If the generated MIC value matches the MIC value associated with RX message D 712d, the third set of estimated bit values representing the PDU data of TX message D 706d may successfully pass MIC verification 722d. Here, MIC verification 722d of the third set of estimated bit values representing the PDU data of TX message D 706d may be successful. For example, from a hard slice, the soft combining mode of operation may produce a third set of estimated bit values that matches TX message D 706d.
[0219] When CRC verification 720d and MIC verification 722d are successful, the sink device may send an ACK message 724d to the source device. The source device may then stop retransmission of TX message D 706d and may continue to send further packets.
[0220] In response to the ACK message 724a, the source device may send the next message, TX Message 2A 746a. In the illustrated aspect, TX Message 2A 746a may not experience enough interference or other adverse channel conditions to cause bit errors, and therefore, the sink device may receive RX Message 2A 752a without enough bit errors 748a to degrade the message.
[0221] Since the sink device may not be aware that the absence of bit errors 748a has substantially degraded the RX message 2A 752a, the sink device may buffer 756a a set of values based on the RX message 2A 752a. For example, the sink device may buffer 756a a set of soft values based on the PDU data of the RX message 2A 752a according to the soft combining mode of operation. In addition, the sink device may decode 758a the RX message 2A 752a to perform a decoding check.
[0222] Because bit errors 748a sufficient to significantly degrade the RX message 2A 752a may not occur in the RX message 2A 752a, the RX message 2A 752a may be substantially similar to the TX message 2A 746a, so that the decoding check may succeed. Specifically, the sink device may perform a CRC verification 760a on the RX message 2A 752a, for example, by generating a CRC value that matches the CRC value associated with the RX message 2A 752a based on the PDU data of the RX message 2A 752a. If applicable (for example, if the RX message 2A 752a is encrypted), the sink device may perform a MIC verification 762a on the RX message 2A 752a, for example, by generating a MIC value that matches the MIC value associated with the RX message 2A 752a (for example, indicated in the PDU data after the payload of the RX message 2A 752a) based on the PDU data of the RX message 2A 752a (for example, based on the payload).
[0223] The error correction techniques described herein can provide improved means for error correction in communication systems, wherein different error correction techniques (e.g., QBm, QBm-H, and / or real-time soft combining) can be applied differently to different types of logical links. As a result of these techniques, data communications over noisy communication media can be improved because these techniques can substantially recover from bit errors. For data communications involving voice or other streaming audio data, these techniques facilitate improved audio quality over systems that do not employ the techniques described in the present disclosure.
[0224] Fig. 8A and 8B8 is a flow chart of a method 800 of wireless communication. The method 800 may be performed by a first device (e.g., wireless device 102, peripheral devices 104, 106, 108, 110, 112, 114, wireless device 200, source device 550, second device 1350) communicating with a second device (e.g., central wireless device 102, peripheral devices 104, 106, 108, 110, 112, 114, wireless device 200, sink device 502, apparatus 1302 / 1302'). In different aspects, one or more of the operations shown may be omitted, swapped, and / or performed simultaneously.
[0225] Reference Fig. 8A , at operation 802, a first device may establish a logical link associated with a short-range communication with a second device. For example, the first device and the second device may discover each other, and the first device and the second device may determine the type of communication that will occur between the first device and the second device. The first device and the second device may establish a logical link. The logical link may be one of an ACL link, an A2DP link, an eSCO link, or an ISO link. In some aspects, one of the first device or the second device may send a first packet to the other of the first device or the second device to establish the logical link. The first packet may include an access address based on the type of the logical link or include a header portion of LT_ADDR.
[0226] For example, refer to Figure 5 , the sink device 502 may receive (e.g., at the RF interface 510) a first packet 560 associated with establishment of a logical link 552 with the source device 550. The first packet 560 may include at least one of an access address or a LT_ADDR associated with the type of the logical link 552 (i.e., associated with one of an ACL link, an A2DP link, an eSCO link, or an ISO link).
[0227] At operation 804, the first device may determine the type of the logical link. For example, the first device may receive a first packet from the second device, and the first device may detect an address portion of the packet. From the address portion, the first device may identify one of an access address or an LT_ADDR. For example, the first device may detect an access address after the preamble of the BLE packet and before the PDU, or the first device may detect an LT_ADDR in a header portion of the BT packet. Based on the identified access address or LT_ADDR, the first device may determine the type of the logical link.
[0228] For example, refer to Figure 5, the sink device 502 may receive (e.g., at the RF interface 510) a first packet 560 associated with a logical link 552 with the source device 550. The first packet 560 may include at least one of an access address or a LT_ADDR associated with the type of the logical link 552 (i.e., associated with one of an ACL link, an A2DP link, an eSCO link, or an ISO link). Based on the identified access address of the first packet 560 or the LT_ADDR included in the header portion, the sink device 502 (e.g., the error correction component 520) may determine the type of the logical link 552.
[0229] At operation 806, the first device may select a first operating mode from a plurality of operating modes for error correction based on a logical link. For example, the first device may identify an association between each operating mode and a type of each logical link, and the first device may select a first operating mode identified as being associated with the determined type of logical link from a plurality of operating modes. In one aspect, the first device may select a soft merge operating mode based on a logical link comprising an ACL link or an A2DP link. In another aspect, the first device may select a QBm operating mode based on a logical link comprising an eSCO link. In another aspect, the first device may select a QBm-H operating mode based on a logical link comprising an ISO link.
[0230] For example, refer to Figure 5 , the sink device 502 (eg, the error correction component 520 ) can select an operating mode 526 from a plurality of operating modes based on the logical link 552 .
[0231] At operation 808, the first device may receive a first packet carried on the logical link. For example, the first device may receive the first packet from the second device, and the first packet may include data (e.g., audio data, video data, etc.) in a payload. Figure 5 , sink device 502 can receive initial data packet 562 from source device 550 over logical link 552 (eg, at RF interface 510 ).
[0232] At operation 810, the first device may perform a decoding check to determine whether the first PDU data included in the first packet passes the decoding check (e.g., the decoding check is successful) or fails the decoding check (e.g., the decoding check is unsuccessful). For example, the first device may perform a CRC verification on the first PDU data included in the first packet. If the first packet is encrypted, the first device may perform a MIC verification on the first PDU data included in the first packet. When the CRC verification succeeds and (if applicable) the MIC verification succeeds, the first device may then determine that the first packet passes the decoding check. When the CRC verification fails or (if applicable) the MIC verification fails, the first device may then determine that the first packet fails the decoding check. One aspect of the decoding check is relative to Fig. 9 To illustrate.
[0233] For example, refer to Figure 5 , the sink device 502 (e.g., the CRC check component 514, and (if applicable) the decryption component 516) may perform a decoding check on the first PDU data included in the initial data packet 562. If the CRC check component 514 verifies the CRC value associated with the first PDU data included in the initial data packet 562, and (if applicable) the decryption component 516 verifies the MIC value associated with the first PDU data included in the initial data packet 562, the initial data packet 562 may successfully pass the decoding check. If the CRC check component 514 does not verify the CRC value associated with the first PDU data included in the initial data packet 562, or (if applicable) the decryption component 516 does not verify the MIC value associated with the first PDU data included in the initial data packet 562, the initial data packet 562 may not pass the decoding check and the decoding check on the initial data packet 562 may not be successful.
[0234] If the decoding check succeeds, the first device may send at least a portion of the first PDU data included in the first packet to a higher layer, as shown at operation 812. For example, the first device may extract the payload from the first packet, and the payload may be provided to the CODEC. The CODEC may cause the payload to be output by the first device, for example, as audio, as video, etc.
[0235] For example, refer to Figure 5If the CRC check component 514 verifies the CRC value associated with the first PDU data included in the initial data packet 562, and (if applicable) the decryption component 516 verifies the MIC value associated with the first PDU data included in the initial data packet 562, the payload of the initial data packet 562 can be provided to a higher layer (e.g., CODEC) of the sink device 502. The sink device 502 can then output the payload, for example, as audio, as video, etc.
[0236] Reference Figure 8B If the decoding check is unsuccessful, the first device may receive the retransmission packet set on the logical link. Specifically, the first device may send a NACK message to the second device based on the unsuccessful decoding check of the first packet. Based on the NACK message, the first device may receive the first retransmission packet in the retransmission packet set from the second device on the logical link.
[0237] For example, refer to Figure 5 , sink device 502 may receive (e.g., at RF interface 510) a first retransmitted data packet in set 564 of retransmitted data packets. In certain aspects, sink device 502 may send a feedback message 582 indicating a NACK when initial data packet 562 fails CRC verification by CRC checking component 514 or when initial data packet 562 fails MIC verification by decryption component 516.
[0238] At operation 816, the first device may apply a first operation mode for error correction based on the first PDU data of the first packet and the corresponding PDU data in each retransmission packet included in the retransmission packet set. For example, the first device may buffer a first set of bits based on the first PDU data of the first packet. In addition, the first device may buffer at least one other set of bits based on the corresponding PDU data in each retransmission packet included in the retransmission packet set (e.g., when only the first retransmission packet in the retransmission packet set has been received, based on the first retransmission PDU data included in the first retransmission packet).
[0239] In certain aspects, when the first PDU data included in the first packet fails the decoding check, the first device may determine the first operation mode from a plurality of operation modes based on the logical link—for example, when the type of the logical link is determined, the first operation mode may be selected (for example, as described with respect to operations 804 and 806). In one aspect, when the type of the logical link includes one of an ACL link or an A2DP link, the first device may determine that the first operation mode is a soft merge operation mode. In another aspect, when the type of the logical link includes an eSCO link, the first device may determine that the first operation mode is a QBm operation mode. In another aspect, when the type of the logical link includes an ISO link, the first device may determine that the first operation mode is a QBm-H operation mode. The first device may apply one of the soft merge operation mode, the QBm operation mode, or the QBm-H operation mode based on at least one bit set, the at least one bit set being buffered based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet included in the retransmission packet set.
[0240] For example, refer to Figure 5 , the sink device 502 (e.g., the error correction component 520) can determine the operation mode 526 for error correction based on the logical link 552. The sink device 502 (e.g., the error correction component 520) can apply the operation mode 526 for error correction based on the first PDU data included in the initial data packet 562 and based on the corresponding PDU data in each retransmitted data packet included in the set of retransmitted data packets 564.
[0241] According to certain aspects, when a first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in a set of retransmitted packets, and when a first operation mode for error correction includes a soft combining operation mode, the first operation mode for error correction (including the soft combining operation mode) may be applied based on the first PDU data of the first packet including the first payload data and the first MIC value and further based on the corresponding PDU data of each retransmitted packet in the set of retransmitted packets including the corresponding payload data and the corresponding MIC value. In one such aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmitted packet in the set of retransmitted packets may be decrypted.
[0242] According to certain other aspects, when a first packet is associated with a first random number for decryption, the first random number being different from a corresponding random number for decryption of at least one retransmission packet in a set of retransmission packets, and when a first operation mode of operation for error correction includes a soft merging operation mode, the first operation mode for error correction (including the soft merging operation mode) may be applied based on first payload data included in the first PDU data of the first packet and further based on corresponding payload data in corresponding PDU data of each retransmission packet in the set of retransmission packets. In one such aspect, when the first PDU data of the first packet may include a first MIC value and when the corresponding PDU data packet of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction may be applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values (e.g., bits corresponding to the MIC value may be omitted from application of the first operation mode for error correction). In another such aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets may be decrypted.
[0243] In various aspects, the first device may perform a decoding check on each retransmission packet in the set of retransmission packets (e.g., similar to the decoding check described with respect to operation 810). When a retransmission packet in the set of retransmission packets successfully passes the decoding check, the first device may provide the corresponding PDU data (e.g., payload) of the retransmission packet to a higher layer of the first device (e.g., as described with respect to operation 812), and the first device may send an ACK message to the second device. In addition, when the retransmission packet in the set of retransmission packets successfully passes the decoding check, the first device may avoid applying or continue to apply the selected operation mode for error correction, for example, because error correction may be unnecessary when the retransmission packet successfully passes the decoding check.
[0244] At operation 818, the first device may send a set of estimated bit values obtained based on the application of the first operating mode for error correction to a higher layer. For example, the first device may calculate a set of estimated bit values based on the application of the first operating mode for error correction. In various aspects, the set of estimated bit values may be estimated to include PDU data of the most recently received retransmitted packet (whose payload may be the same as the payload of the first packet). The first device may then provide the set of estimated bit values to at least one higher layer (e.g., CODEC) of the first device. The first device may then cause data to be output based on the set of estimated bit values-for example, the first device may output audio and / or video based on the set of estimated bit values.
[0245] For example, refer to Figure 5 , sink device 502 (e.g., error correction component 520) can calculate a set of estimated bit values based on application of operating mode 526. The set of estimated bit values can be estimated to include corresponding PDU data of the most recently received retransmitted data packet in set of retransmitted data packets 564 (e.g., the corresponding PDU data can include a payload that matches the payload of initial data packet 562).
[0246] In various aspects, the first device may perform a decoding check (e.g., similar to the decoding check described with respect to operation 810) on the estimated set of bit values. For example, the estimated set of bit values may be provided as PDU data (e.g., payload, and (if applicable) MIC value) for CRC verification and (if applicable) MIC verification. When the estimated set of bit values successfully passes the decoding check (e.g., as described with respect to operation 812), the first device may provide the estimated set of bit values as PDU data (e.g., payload) expected to be included in the first packet and each retransmission packet in the retransmission packet set to a higher layer of the first device. In addition, the first device may send an ACK message associated with a most recently received retransmission packet in the retransmission packet set to the second device. When the estimated set of bit values does not pass the decoding check (e.g., as described with respect to operation 812), the first device may send a NACK message associated with a most recently received retransmission packet in the retransmission packet set to the second device. In certain aspects, the first device may subsequently receive another retransmission packet in the set of retransmission packets based on the NACK message, and the first device may continue to apply the first operation mode for error correction using the other retransmission packet added to the set of retransmission packets.
[0247] At operation 820, the first device may determine a set of bit errors associated with a set of estimated bit values based on applying a first operating mode for error correction. For example, the first device may identify one or more bits corresponding to the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the retransmission packet set, and the one or more bits are different across at least two of the following: the first PDU data of the first packet and each corresponding PDU data of the corresponding PDU data of each retransmission packet in the retransmission packet set. In other words, the first device may determine a bit value at index i that is different between the PDU data of the first packet and the corresponding PDU data of at least one retransmission packet in the retransmission packet set or that is different between the corresponding PDU data of at least two retransmission packets in the retransmission packet set. The first device may then calculate the number of one or more bits and / or may detect the position of one or more bits (e.g., the corresponding index of each of the one or more bits).
[0248] For example, refer to Figure 5 , the sink device 502 (e.g., the error correction component 520) can determine a set of bit errors associated with the estimated set of bit values based on the application of the operating mode 526 for error correction. The set of bit errors can include a number and / or (one or more) positions of one or more bits that differ across at least two of the following: the first PDU data of the initial data packet 562 and each corresponding PDU data of the corresponding PDU data of each retransmitted data packet in the set of retransmitted data packets 564.
[0249] At operation 822, the first device may send at least one bit error quality metric to a higher layer, the at least one bit error quality metric indicating at least one of a set of positions of a set of bit errors or a number of a set of bit errors. For example, the first device may generate a message indicating at least one bit error quality metric, and the first device may provide the generated message to a higher layer (e.g., CODEC) of the first device. The first device may then cause data to be output based on at least one bit error quality metric. For example, the first device may attempt to correct one or more bit errors based on at least one bit error quality metric. For example, if the correction is successful, the first device may output audio and / or video. If the correction is unsuccessful or if the first device does not correct the bit error, the first device may output data (e.g., audio and / or video) that hides or discards data that would otherwise be output (e.g., data estimated to be contained in the payload of the first packet).
[0250] For example, refer to Figure 5, the sink device 502 (e.g., the error correction component 520) can send at least one bit error quality metric to a higher layer (e.g., CODEC) of the sink device. The at least one bit error quality metric can indicate the number and / or (one or more) positions of one or more bit errors identified by the error correction component 520.
[0251] Reference Fig. 9 , a flowchart illustrates a method 900 for decoding verification described relative to operation 810 of method 800. Starting from operation 902, the first device may generate an estimated CRC value based on a set of bit values. For example, the first device may generate an estimated CRC value based on the first PDU data of the first packet (e.g., the payload, and (if applicable) the MIC value). The first device may identify a set of bit values corresponding to the first PDU data of the first packet, and the first device may calculate an estimated CRC value based on the identified set of bits. In another example, the first device may identify a set of estimated bit values obtained based on applying the first operating mode, and the first device may calculate an estimated CRC value based on the set of estimated bit values.
[0252] For example, refer to Figure 5 , the sink device 502 (e.g., CRC check component 514) can calculate an estimated CRC value based on the set of bit values. In one aspect, the set of bit values can correspond to the PDU data of the initial data packet 562 or the PDU data of at least one retransmitted data packet in the set of retransmitted data packets 564. In another aspect, the set of bit values can correspond to a set of estimated bit values generated by the sink device 502 (e.g., error correction component 520) obtained based on the application of the operating mode 526.
[0253] At operation 904, the first device may compare the generated CRC value with the CRC value indicated by the packet. For example, the first device may compare the generated CRC value with the CRC value indicated by the most recently received packet, and the first device may determine whether the generated CRC value matches the CRC value indicated by the most recently received data packet based on the comparison.
[0254] For example, refer to Figure 5 , the sink device 502 (eg, the CRC checking component 514 ) can compare the estimated CRC value with the CRC value indicated by the initial data packet 562 or a most recently received one of the retransmitted data packets in the set of retransmitted data packets 564 .
[0255] At operation 906, if the first device is encrypted, the first device may generate an estimated MIC value based on a set of bit values. For example, the first device may generate an estimated MIC value based on a first payload of the first packet. The first device may identify a set of bit values corresponding to the first payload of the first packet, and the first device may calculate an estimated MIC value based on the identified set of bits. In another example, the first device may identify a set of estimated bit values obtained based on applying the first operating mode, and the first device may calculate an estimated MIC value based on the set of estimated bit values.
[0256] For example, refer to Figure 5 , the sink device 502 (e.g., decryption component 516) can calculate an estimated MIC value based on the set of bit values. In one aspect, the set of bit values can correspond to the payload of the initial data packet 562 or the payload of at least one retransmitted data packet in the set of retransmitted data packets 564. In another aspect, the set of bit values can correspond to a set of estimated bit values generated by the sink device 502 (e.g., error correction component 520) obtained based on application of the operating mode 526.
[0257] At operation 908, the first device may compare the generated MIC value with the MIC value indicated by the packet. For example, the first device may compare the generated MIC value with the MIC value indicated by the most recently received packet, and the first device may determine whether the generated MIC value matches the MIC value indicated by the most recently received data packet based on the comparison.
[0258] For example, refer to Figure 5 , the sink device 502 (eg, the decryption component 516 ) can compare the estimated MIC value with the MIC value indicated by the initial data packet 562 or a most recently received one of the retransmitted data packets in the set of retransmitted data packets 564 .
[0259] Reference Fig.10 , a flowchart illustrates a method 1000 for application of a first operating mode for error correction described with respect to operation 816 of method 800. Method 1000 may be implemented when the logical link comprises one of an ACL link or an A2DP link. The first operating mode may be selected as a soft merge operating mode.
[0260] At operation 1002, the first device may store each soft value in the set of soft values in each buffer in the set of buffers. In one aspect, each soft value in the set of soft values may be a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet. For example, for a packet of size n, each bit has an index i (where 0≤i≤n-1), when bit i of the first PDU data is equal to 0, the first device may identify a first soft value, and the first device may store the first soft value in buffer index i. In addition, when bit i of the first PDU data is equal to 1, the first device may identify a second soft value, and the first device may store the first soft value in buffer index i.
[0261] For example, refer to Figure 5 , the sink device 502 (error correction component 520) can store each soft value in the soft value set in each buffer in the buffer set. In one aspect, each soft value in the soft value set can be a three-bit signed soft value based on the corresponding bit of the first PDU data of the initial data packet 562.
[0262] At operation 1004, the first device may accumulate each soft value in the set of soft values with a signed value in each buffer in the set of buffers for each retransmitted packet in the set of retransmitted packets. In some aspects, each of the signed values may be based on a corresponding bit of the corresponding PDU data of each retransmitted packet in the set of retransmitted packets. For example, when bit i of the corresponding PDU data is equal to 0, the first device may identify a first signed value, and the first device may add the first signed value to the soft value in buffer index i. Additionally, when bit i of the corresponding PDU data is equal to 1, the first device may identify a second signed value, and the first device may add the first signed value to the soft value in buffer index i.
[0263] For example, refer to Figure 5 , the sink device 502 (e.g., error correction component 520) may accumulate each soft value in the set of soft values with a signed value in each buffer in the set of buffers for each retransmitted data packet in the set of retransmitted data packets 564. In some aspects, each of the signed values may be based on a corresponding bit of a corresponding PDU data of each retransmitted data packet in the set of retransmitted data packets 564.
[0264] In some aspects, each buffer in the buffer set may be limited by a minimum threshold and a maximum threshold. Accordingly, each accumulated soft value in the soft value set accumulated in each buffer in the buffer set may not exceed the minimum threshold and may not exceed the maximum threshold.
[0265] At operation 1006, the first device may map each accumulated soft value in the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values. That is, the first device may hard slice each of the accumulated soft values to obtain a set of estimated bit values. For example, for a packet of size n, a soft value at a buffer index i (where 0≤i≤n-1) may be mapped to a 0-bit value when the soft value is within a first range, and may be mapped to a 1-bit value when the soft value is within a second range different from the first range. Each of the mapped bit values may be stored in a set of estimated bit values, which may be estimated as PDU data of a recently received data packet.
[0266] For example, refer to Figure 5 , the sink device 502 (e.g., the error correction component 520) can map each accumulated soft value in the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values. The sink device 502 (e.g., the error correction component 520) can provide the set of estimated bit values for CRC verification (e.g., at the CRC check component 514) and, if applicable, MIC verification (e.g., at the decryption component 516).
[0267] At operation 1008, the first device may determine whether the estimated set of bit values passes a decoding check (e.g., as described with respect to operation 810 of method 800). For example, the first device may perform a CRC verification and, if applicable, a MIC verification based on the estimated set of bit values. If the CRC verification or the MIC verification (if applicable) fails, the first device may send a NACK message to the second device. If the CRC verification and the MIC verification (if applicable) succeed, the first device may send an ACK message to the second device and may provide the estimated set of bit values to a higher layer of the first device.
[0268] Reference Fig.11 , a flow chart illustrates a method 1100 for application of a first mode of operation for error correction described with respect to operation 816 of method 800. Method 1100 may be implemented when the logical link comprises an eSCO link. The first mode of operation may be selected as a QBm mode of operation.
[0269] At operation 1102, the first device may perform a bit-by-bit majority function based on a first bit set of a first PDU data of a first packet, a second bit set of a corresponding PDU data of a retransmitted packet in a retransmitted packet set, and a third bit set of another corresponding PDU data of another retransmitted packet in a retransmitted packet set. For example, for a packet of size n, each bit has an index i (where 0≤i=≤n-1), and the first device may perform multiple XOR operations based on the first bit set, the second bit set, and the third bit set. The first device may then determine the bit value at index i based on the multiple XOR operations. Accordingly, the first device may determine, for index i, which bit value (between 0 and 1) appears on at least two of the first packet, a retransmitted packet, and another retransmitted packet.
[0270] For example, refer to Figure 5 , the host device 502 (e.g., the error correction component 520) can perform a bit-by-bit majority function based on a first bit set of the first PDU data of the initial data packet 562, a second bit set of a corresponding PDU data of one retransmitted data packet in the retransmitted data packet set 564, and a third bit set of another corresponding PDU data of another retransmitted data packet in the retransmitted data packet set 564.
[0271] At operation 1104, the first device may determine a set of estimated bit values based on performing a bit-by-bit majority function. For example, the first device may identify each of the bit values for each index i, and the first device may store each of the identified bit values as PDU data corresponding to the most recently received packet. In some aspects, the first device may also determine a set of bit error quality metrics based on the set of estimated bit values, and the first device may attempt to correct one or more bits based on the set of bit error quality metrics. For example, referring to Figure 5 , the sink device 502 (eg, the error correction component 520) can determine a set of estimated bit values based on performing a bit-by-bit majority function.
[0272] Reference Fig.12 , a flow chart illustrates a method 1200 for application of a first mode of operation for error correction described with respect to operation 816 of method 800. Method 1200 may be implemented when the logical link comprises one of the ISO links. The first mode of operation may be selected as a QBm-H mode of operation.
[0273] At operation 1202, the first device may determine the number of retransmission packets received in the retransmission packet set. For example, the first device may count the number of retransmission packets in the retransmission packet set, and the first device may compare the number to a threshold number (such as three). For example, referring to Figure 5 , the sink device (eg, error correction component 520 ) can determine the number of retransmitted data packets received in set 564 of retransmitted data packets.
[0274] If the number of retransmitted packets is less than three (eg, only two), the first device may perform a QBm mode of operation, as shown at operation 1204. The operation of the QBm mode of operation may be relative to Fig.11 If the first device is able to obtain a set of estimated bit values that pass the decoding check, the first device may send an ACK message, and the first device may send the set of estimated bit values to a higher layer of the first device.
[0275] For example, refer to Figure 5 , sink device 502 (e.g., error correction component 520) can determine the number of retransmitted data packet sets 564. If the number of retransmitted data packets is less than three (e.g., only two), sink device 502 (e.g., error correction component 520) can perform a QBm mode of operation.
[0276] At operation 1206, when the additional retransmission packet received after the determined set of estimated bit values is a retransmission of the first packet, the first device may discard the additional retransmission packet. For example, if the first device is able to obtain the set of estimated bit values that passes the decoding check and / or provides the set of bit error quality metrics to the higher layer (in other words, if the first device has moved on from attempting to process the payload of the first packet), the first device may send an ACK message, and the first device may discard the additional retransmission packet received after the set of estimated bit values passes the decoding check and / or the set of bit error quality metrics is provided to the higher layer. For example, referring to Figure 5 , the sink device (eg, error correction component 520) can discard additional retransmitted data packets received after the determined set of estimated bit values.
[0277] If the number of retransmitted packets is greater than or equal to three, the first device may perform a soft combining mode of operation, as shown at operation 1208. The soft combining mode of operation may operate with respect to Fig.10 If the first device cannot obtain a set of estimated bit values that pass the decoding check, the first device may continue to receive retransmitted packets greater than or equal to three, and thus the first device may switch from the QBm operation mode to the soft combining operation mode in order to attempt to obtain a set of estimated bit values that pass the decoding check. For example, referring to Figure 5, sink device 502 (eg, error correction component 520) can determine the number of retransmitted data packet sets 564. If the number of retransmitted data packets is greater than or equal to three, sink device 502 (eg, error correction component 520) can perform a soft combining mode of operation.
[0278] Fig.13 13 is a conceptual data flow diagram 1300 illustrating the flow of data between different parts / components in an exemplary apparatus 1302. The apparatus may be a first device (e.g., wireless device 102, peripheral devices 104, 106, 108, 110, 112, 114, wireless device 200, sink device 502) communicating with a second device 1350 (e.g., wireless device 102, peripheral devices 104, 106, 108, 110, 112, 114, wireless device 200, source device 550).
[0279] The apparatus 1302 may include a receiving component 1304 that may be configured to receive a signal on a logical link from a second device 1350. Additionally, the apparatus 1302 may include a sending component 1312 that may be configured to send a signal to the second device 1350 on a logical link.
[0280] The apparatus 1302 may include a logical link component 1314. The logical link component 1314 may establish a logical link associated with short-range communication with the second device 1350. The logical link component 1314 may determine the type of the logical link. For example, the logical link component 1314 may determine the type of the logical link based on an access address or LT_ADDR indicated by at least one header of at least one packet received on the logical link. The logical link may include one of an ACL link, an A2DP link, an eSCO link, or an A2DP link.
[0281] The apparatus 1302 may include an operation mode component 1308. The operation mode component 1308 may receive the type of the logical link from the logical link component 1314. The operation mode component 1308 may select a first operation mode for error correction from a plurality of operation modes for error correction based on the logical link. For example, when the logical link includes an ACL or A2DP link, the operation mode component 1308 may select a soft merge operation mode. In another example, when the logical link includes an eSCO link, the operation mode component 1308 may select a QBm operation mode. In another example, when the logical link includes an ISO link, the operation mode component 1308 may select a QBm-H mode.
[0282] Apparatus 1302 may include a decoding and verification component 1306. Receiving component 1304 may receive a first packet on a logical link, and the first packet may be provided to decoding and verification component 1306. Decoding and verification component 1306 may be configured to perform CRC verification and, if applicable, MIC verification on the first packet.
[0283] In certain aspects, the decoding check component 1306 may be configured to perform CRC verification on a set of bits (e.g., obtained from the PDU data of the first packet or the retransmitted packet, obtained from the operating mode component 1308 as an estimated set of bits). For CRC verification, the decoding check component 1306 may generate a CRC value based on the set of bits. The decoding check component 1306 may compare the generated CRC value with the CRC value indicated by the most recently received packet (e.g., the first packet, the retransmitted packet). When the generated CRC value matches the CRC value indicated by the most recently received packet, the decoding check component 1306 may determine that the set of bits at least partially passes the decoding check. When the generated CRC value does not match the CRC value indicated by the most recently received packet (corresponding to the set of bits or based on which the set of bits is based), the decoding check component 1306 may determine that the set of bits has not passed the decoding check.
[0284] When the first packet is encrypted, the decoding verification component 1306 can be configured to perform MIC verification on a set of bits (e.g., obtained from the PDU data of the first packet or the retransmitted packet, obtained from the operating mode component 1308 as an estimated set of bits). For the MIC verification, the decoding verification component 1306 can generate a MIC value based on the set of bits. The decoding verification component 1306 can compare the generated MIC value with the MIC value indicated by the most recently received packet (e.g., the first packet, the retransmitted packet). When the generated MIC value matches the MIC value indicated by the most recently received packet, the decoding verification component 1306 can determine that the set of bits at least partially passes the decoding verification. When the generated MIC value does not match the MIC value indicated by the most recently received packet (corresponding to the set of bits or based on which the set of bits is based), the decoding verification component 1306 can determine that the set of bits has not passed the decoding verification.
[0285] When the first packet passes the decoding check, the decoding check component 1306 can send an ACK message to the second device 1350. In addition, the decoding check component 1306 can provide the payload of the first packet to the decoding component 1310 of the apparatus 1302. The decoding component 1310 can decode the payload and can cause the apparatus to output audio and / or video based on the decoded payload.
[0286] When the first packet fails the decoding check, the decoding check component 1306 can send a NACK message to the second device 1350. The receiving component 1304 can receive at least one retransmit packet in the set of retransmit packets from the second device 1350 (e.g., based on the NACK message). Whenever the operating mode component 1308 fails to obtain a set of estimated bit values that pass the decoding check, the decoding check component 1306 can send another NACK message, and the receiving component can receive another retransmit packet in the set of retransmit packets.
[0287] The decoding check component 1306 can perform a decoding check on each retransmission packet in the retransmission packet set. In addition, the operation mode component 1308 can apply a first operation mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet in the retransmission packet set. The operation mode component 1308 can determine the first operation mode for error correction.
[0288] When the logical link is one of an ACL link or an A2DP link and the first operation mode includes a soft merging operation mode, the operation mode component 1308 may store each soft value in the soft value set in each buffer in the buffer set, and each soft value in the soft value set may be a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet. In addition, the operation mode component 1308 may accumulate each soft value in the soft value set with a signed value in each buffer in the buffer set for each retransmission packet in the retransmission packet set, and each of the signed values may be based on a corresponding bit of the corresponding PDU data of each retransmission packet in the retransmission packet set. The operation mode component 1308 may map each accumulated soft value in the soft value set accumulated in each buffer in the buffer set to a bit value in a set of estimated bit values. In one aspect, each buffer in the buffer set is limited by a minimum threshold and a maximum threshold, and each accumulated soft value in the soft value set in each buffer in the buffer set does not exceed the minimum threshold and does not exceed the maximum threshold.
[0289] In one aspect, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the retransmitted packets, and when the first operation mode for error correction includes a soft merge mode, the operation mode component 1308 can apply the first operation mode for error correction based on the first PDU data of the first packet including the first payload data and the first MIC value and further based on the corresponding PDU data of each retransmitted packet in the set of retransmitted packets including the corresponding payload data and the corresponding MIC value. In one aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmitted packet in the set of retransmitted packets are decrypted. In another aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmitted packet in the set of retransmitted packets remain encrypted.
[0290] In one aspect, when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the set of retransmission packets, and when the first operation mode for error correction includes a soft merge mode, the operation mode component 1308 can apply the first operation mode for error correction based on the first payload data included in the first PDU data of the first packet and further based on the corresponding payload data in the corresponding PDU data of each retransmission packet in the set of retransmission packets. In one aspect, when the first PDU data packet of the first packet includes a first MIC value and when the corresponding PDU data packet of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values. In one aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
[0291] The operation mode component 1308 can provide the estimated set of bit values to the decoding check component 1306. The decoding check component 1306 can determine whether the estimated set of bit values passes the decoding check. When the estimated set of bit values passes the decoding check, the decoding check component 1306 can provide at least a portion of the estimated set of bit values to the decoding component 1310, and the decoding component 1310 can decode the estimated set of bit values as if it were the payload of the first packet. In addition, the decoding check component 1306 can send an ACK message to the second device 1350.
[0292] When the estimated set of bit values fails the decoding check, the decoding check component 1306 can send a NACK message to the second device 1350, and the receiving component 1304 can receive another retransmitted packet in the set of retransmitted packets. The operating mode component 1308 can continue to apply the first operating mode for error correction based on the first packet and the set of retransmitted packets.
[0293] When the logical link comprises an eSCO link and the first operation mode comprises a QBm mode, the operation mode component 1308 may perform a bitwise majority function based on a first set of bits of a first PDU data of a first packet, a second set of bits of a corresponding PDU data of a retransmitted packet in the set of retransmitted packets, and a third set of bits of another corresponding PDU data of another retransmitted packet in the set of retransmitted packets. The operation mode component 1308 may determine a set of estimated bit values based on the execution of the bitwise majority function. The operation mode component 1308 may additionally determine a set of bit error quality metrics based on the set of estimated bit values.
[0294] When the logical link comprises an ISO link and the first operation mode comprises a QBm-H mode, the operation mode component 1308 can perform a QBm operation mode when there are less than three sets of retransmission packets. The operation mode component 1308 can discard additional retransmission packets that are retransmissions of the first packet after the QBm operation mode is applied and the set of estimated bit values is obtained (e.g., by decoding verification). When the number of retransmission packet sets is greater than or equal to three, the operation mode component 1308 can perform a soft combining operation mode for error correction based on the first packet and the retransmission packet sets.
[0295] When applying the first operating mode, the operating mode component 1308 can determine a set of bit errors associated with the estimated set of bit values based on the application of the first operating mode for error correction. The operating mode component 1308 can attempt to correct the bit errors of the determined set and / or can provide at least one bit error quality metric indicating at least one of a set of locations of the bit error sets or a number of the bit error sets to the decoding component 1310 (e.g., to be corrected, concealed, or discarded).
[0296] The apparatus may include executing the aforementioned Figure 6 , 8A -8B and each of the additional components in the blocks of the algorithms in the flowcharts of 9-12. Thus, the aforementioned Figure 6 , 8AEach block in the flowcharts of 8B and 9-12 may be performed by a component, and the apparatus may include one or more of those components. These components may be one or more hardware components specifically configured to perform the stated process / algorithm, implemented by a processor configured to perform the stated process / algorithm, stored in a computer-readable medium for implementation by a processor, or some combination thereof.
[0297] Fig.14 1400 is a diagram illustrating an example of a hardware implementation for an apparatus 1302' employing a processing system 1414. The processing system 1414 may be implemented with a bus architecture, generally represented by a bus 1424. The bus 1424 may include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the processing system 1414. The bus 1424 links together various circuits including one or more processors and / or hardware components represented by the processor 1404, components 1304, 1306, 1308, 1310, 1312, 1314, and computer readable media / memory 1406. The bus 1424 may also link various other circuits, such as timing sources, peripherals, voltage regulators, power management circuits, which are well known in the art and, therefore, will not be described any further.
[0298] The processing system 1414 may be coupled to the transceiver 1410. The transceiver 1410 is coupled to one or more antennas 1420. The transceiver 1410 provides components for communicating with various other devices over a transmission medium. The transceiver 1410 receives signals from the one or more antennas 1420, extracts information from the received signals, and provides the extracted information to the processing system 1414 (specifically, to the receiving component 1304). In addition, the transceiver 1410 receives information from the processing system 1414 (specifically, from the transmitting component 1312), and based on the received information, generates a signal to be applied to the one or more antennas 1420. The processing system 1414 includes a processor 1404 coupled to a computer-readable medium / memory 1406. The processor 1404 is responsible for general processing, including the execution of software stored on the computer-readable medium / memory 1406. The software, when executed by the processor 1404, causes the processing system 1414 to perform the various functions described above for any particular device. The computer-readable medium / memory 1406 may also be used to store data that is manipulated by the processor 1404 when executing software. The processing system 1414 further includes at least one of the components 1304, 1306, 1308, 1310, 1312, 1314. These components may be software components running in the processor 1404, resident / stored in the computer-readable medium / memory 1406, one or more hardware components coupled to the processor 1404, or some combination thereof.
[0299] In one configuration, the apparatus 1302 / 1302' for wireless communication may include a component for establishing a logical link associated with a short-range communication with a second device. The apparatus 1302 / 1302' may include a component for receiving a first packet carried on the logical link. The apparatus 1302 / 1302' may include a component for sending at least a portion of the first PDU data to a higher layer of the first device when the first PDU data included in the first packet passes the decoding check. When the first PDU data does not pass the decoding check, the apparatus 1302 / 1302' may include: a component for determining a first operating mode from a plurality of operating modes for error correction based on the logical link; a component for receiving a retransmission packet set on the logical link, each retransmission packet in the retransmission packet set including corresponding PDU data as a retransmission of the first PDU data; and a component for applying the first operating mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet included in the retransmission packet set.
[0300] The apparatus 1302 / 1302' may include means for determining a type of a logical link, wherein the first mode of operation for error correction is determined based on the type of the logical link. In one aspect, the type of the logical link is determined based on at least one of an access address or a LT_ADDR indicated by at least one header of at least one packet received on the logical link.
[0301] In one aspect, the logical link includes one of an ACL link or an A2DP link, and the first operation mode includes a soft merge mode based on the ACL link or the A2DP link. In one aspect, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the retransmitted packets, and when the first operation mode for error correction includes a soft merge mode, the first operation mode for error correction is applied based on the first PDU data of the first packet including the first payload data and the first MIC value and further based on the corresponding PDU data of each retransmitted packet in the retransmitted packet set including the corresponding payload data and the corresponding MIC value. In one aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmitted packet in the retransmitted packet set are decrypted. In another aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmitted packet in the retransmitted packet set remain encrypted.
[0302] In one aspect, when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the set of retransmission packets, and when the first operation mode for error correction includes a soft merge mode, the first operation mode for error correction is applied based on the first payload data included in the first PDU data of the first packet and further based on the corresponding payload data in the corresponding PDU data of each retransmission packet included in the set of retransmission packets. In one aspect, when the first PDU data packet of the first packet includes a first MIC value and when the corresponding PDU data packet of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values. In one aspect, when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
[0303] In one aspect, when the first operation mode for error correction includes a soft merging mode, the component for applying the first operation mode for error correction is configured to: store each soft value in the soft value set in each buffer in the buffer set, each soft value in the soft value set being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmission packet in the retransmission packet set, accumulate each soft value in the soft value set with a signed value in each buffer in the buffer set, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmission packet in the retransmission packet set; map each accumulated soft value in the soft value set accumulated in each buffer in the buffer set to a bit value in a set of estimated bit values; and determine whether the set of estimated bit values passes a decoding check. In one aspect, each buffer in the buffer set is limited by a minimum threshold and a maximum threshold, and each accumulated soft value in the soft value set accumulated in each buffer in the buffer set does not exceed the minimum threshold and does not exceed the maximum threshold.
[0304] In one aspect, the logical link includes an eSCO link, and the first operation mode includes a QBm mode based on the eSCO link. In one aspect, when the first operation mode for error correction includes the QBm mode, the component for applying the first operation mode for error correction is configured to: perform a bitwise majority function based on a first bit set of a first PDU data of a first packet, a second bit set of a corresponding PDU data of a retransmitted packet in a retransmitted packet set, and a third bit set of another corresponding PDU data of another retransmitted packet in the retransmitted packet set; determine a set of estimated bit values based on performing the bitwise majority function; and determine a set of bit error quality metrics based on the set of estimated bit values.
[0305] In one aspect, the logical link comprises an ISO link, and the first operation mode for error correction comprises a QBm-H mode based on the ISO link. In one aspect, when the first operation mode for error correction comprises the QBm-H mode, the component for applying the first operation mode for error correction is configured to: perform a bitwise majority function based on a first set of bits of a first PDU data of a first packet, a second set of bits of a corresponding PDU data of one retransmission packet in a set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determine a set of estimated bit values based on performing the bitwise majority function; determine a set of bit error quality metrics based on the set of estimated bit values; and when one or more additional retransmission packets received after one retransmission packet and another retransmission packet in the set of retransmission packets include a retransmission of the first PDU data of the first packet, discard the one or more additional retransmission packets. In one aspect, when the first operating mode for error correction includes the QBm-H mode, and when the retransmission packet set includes three or more retransmission packets, the component for applying the first operating mode for error correction is configured to: store each soft value in the soft value set in each buffer in the buffer set, each soft value in the soft value set being a three-bit signed soft value based on the corresponding bit of the first PDU data of the first packet; for each retransmission packet in the retransmission packet set, accumulate each soft value in the soft value set with a signed value in each buffer in the buffer set, each of the signed values being based on the corresponding bit of the corresponding PDU data of each retransmission packet in the retransmission packet set; map each accumulated soft value in the soft value set accumulated in each buffer in the buffer set to a bit value in a set of estimated bit values; and determine whether the set of estimated bit values passes the decoding check.
[0306] In one aspect, the apparatus 1302 / 1302' comprises: a component for generating an estimated CRC value based on an estimated set of bit values, the estimated set of bit values being obtained based on application of a first operating mode for error correction, the estimated set of bit values being estimated to be included in first PDU data; and a component for comparing the estimated CRC value with a first CRC value in a most recently received retransmission packet included in a set of retransmission packets, wherein the estimated set of bit values passes a decoding check based on comparing the estimated CRC value with the first CRC value, and wherein when the generated CRC value is different from the first CRC value, the estimated set of bit values fails the decoding check.
[0307] In one aspect, the apparatus 1302 / 1302′ includes means for generating an estimated message integrity code (MIC) value based on an estimated set of bit values, and means for comparing the estimated MIC value with a first MIC value in a most recently received retransmitted packet included in a set of retransmitted packets, wherein the set of estimated bit values passes a decoding check when the estimated CRC value matches the first CRC value and the estimated MIC value matches the first MIC value, and wherein the set of estimated bit values fails the decoding check when the estimated CRC value is different from the first CRC value or when the estimated MIC value is different from the first MIC value.
[0308] In one aspect, the apparatus 1302 / 1302' comprises: a component for sending to a higher layer of the first device a set of estimated bit values obtained based on applying a first operation mode for error correction, the estimated set of bit values being estimated as at least a portion of first PDU data. In one aspect, the apparatus 1302 / 1302' comprises: a component for determining a set of bit errors associated with the set of estimated bit values based on applying the first operation mode for error correction; a component for sending to a higher layer of the first device at least one bit error quality metric indicating at least one of a set of locations of bit error sets or a number of bit error sets.
[0309] The aforementioned components may be one or more of the following: Figure 2 The aforementioned processor(s) 202, short-range communication controller 252, and / or radio 230, components of device 1302, and / or a processing system of device 1302' are configured to perform the functions recited by the aforementioned components.
[0310] It should be understood that the specific order or hierarchy of blocks in the disclosed process / flowchart is an illustration of an exemplary method. Based on design preferences, it will be understood that the specific order or hierarchy of blocks in the process / flowchart can be rearranged. In addition, certain blocks can be combined or omitted. The attached method claims present the elements of the various blocks in a sample order and are not meant to be limited to the specific order or hierarchy presented.
[0311] The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein, but are intended to be given a complete scope consistent with the language of the claims, wherein unless specifically stated, reference to an element in a singular form is not intended to mean "one and only one", but "one or more". The word "exemplary" is used herein to mean "used as an example, instance or illustration". Any aspect described as "exemplary" herein is not necessarily interpreted as being more preferred or advantageous than other aspects. Unless otherwise specifically stated, the term "some" refers to one or more. Combinations such as "at least one of A, B or C", "one or more of A, B or C", "at least one of A, B and C", "one or more of A, B and C" and "A, B, C or any combination thereof" include any combination of A, B and / or C, and may include multiples of A, multiples of B or multiples of C. Specifically, phrases such as "at least one of A, B, or C," "one or more of A, B, or C," "at least one of A, B, and C," "one or more of A, B, and C," and "A, B, C, or any combination thereof" may be only A, only B, only C, A and B, A and C, B and C, or A and B and C, wherein any such combination may include one or more members of A, B, or C. All structural and functional equivalents of the elements throughout the various aspects described in this disclosure that are known or will later be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be covered by the claims. Moreover, none of the contents disclosed herein are intended to be donated to the public, regardless of whether such disclosure is explicitly recited in the claims. The words "module," "mechanism," "element," "device," and the like may not be substitutes for the word "component." Thus, unless a claim element is explicitly recited using the phrase "component for...", no claim element should be interpreted as a component plus function.
Claims
1. A method for wireless communication performed by a first device, the method comprising: establishing a logical link associated with short-range communication with a second device; Receiving a first packet carried on the logical link; When first packet data unit (PDU) data included in the first packet passes decoding check, sending at least a portion of the first PDU data to a higher layer of the first device; as well as When the first PDU data fails the decoding check: determining a first operating mode from a plurality of operating modes for error correction based on the logical link; receiving a set of retransmission packets on the logical link, each retransmission packet in the set of retransmission packets including corresponding PDU data as a retransmission of the first PDU data; as well as applying the first operation mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet included in the set of retransmission packets, Wherein, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the set of retransmitted packets, and when the first operating mode for error correction includes a soft merging mode, the first operating mode for error correction is applied based on the first PDU data of the first packet including first payload data and a first message integrity code MIC value, and further based on the corresponding PDU data of each retransmitted packet in the set of retransmitted packets including corresponding payload data and corresponding MIC value.
2. The method of claim 1, further comprising: A type of the logical link is determined, wherein the first operating mode for error correction is determined based on the type of the logical link.
3. The method of claim 2, wherein the type of the logical link is determined based on at least one of an access address AA or a logical transport address LT_ADDR indicated by at least one header of at least one packet received on the logical link.
4. The method of claim 1, wherein the logical link comprises one of an asynchronous connectionless (ACL) link or an advanced audio distribution profile (A2DP) link, and the soft merge mode comprises a soft merge mode based on the ACL link or the A2DP link.
5. The method of claim 1, wherein when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
6. A method as claimed in claim 1, wherein when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the retransmission packet set, and when the first operation mode for error correction includes a soft merging mode, the first operation mode for error correction is applied based on first payload data included in the first PDU data of the first packet and further based on corresponding payload data in the corresponding PDU data of each retransmission packet included in the retransmission packet set.
7. The method of claim 6, wherein when the first PDU data of the first packet includes a first message integrity code (MIC) value and when the corresponding PDU data of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values.
8. The method of claim 6, wherein when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
9. The method of claim 1 , wherein when the first operating mode for error correction includes the soft merging mode, applying the first operating mode for error correction includes: storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmitted packet in the set of retransmitted packets, accumulating each soft value in the set of soft values in each buffer in the set of buffers with a signed value, each of the signed values being based on a corresponding bit of the corresponding PDU data of the each retransmitted packet in the set of retransmitted packets; Mapping each accumulated soft value of the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values; as well as A determination is made as to whether the estimated set of bit values passes the decoding check.
10. The method of claim 9, wherein each buffer in the buffer set is limited by a minimum threshold and a maximum threshold, and each accumulated soft value of the soft value set accumulated in each buffer in the buffer set does not exceed the minimum threshold and does not exceed the maximum threshold.
11. The method of claim 1, wherein the logical link comprises an extended synchronous connection-oriented (eSCO) link, and the first operation mode comprises a quality bit mask (QBm) mode based on the eSCO link.
12. The method of claim 11, wherein when the first operation mode for error correction includes the QBm mode, applying the first operation mode for error correction includes: performing a bitwise majority function based on a first set of bits of the first PDU data of the first packet, a second set of bits of a corresponding PDU data of one retransmission packet in the set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bit-by-bit majority function; as well as A set of bit error quality metrics is determined based on the set of estimated bit values.
13. The method of claim 1, wherein the logical link comprises an isochronous (ISO) link, and the first operation mode for error correction comprises a quality bit mask hybrid (QBm-H) mode based on the ISO link.
14. The method of claim 13, wherein when the first operation mode for error correction includes the QBm-H mode, applying the first operation mode for error correction includes: performing a bitwise majority function based on a first set of bits of the first PDU data of the first packet, a second set of bits of a corresponding PDU data of one retransmission packet in the set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bit-by-bit majority function; determining a set of bit error quality metrics based on the estimated set of bit values; as well as When one or more additional retransmission packets received after the one retransmission packet and the another retransmission packet in the retransmission packet set include retransmission of the first PDU data of the first packet, the one or more additional retransmission packets are discarded.
15. The method of claim 13, wherein when the first operation mode for error correction includes the QBm-H mode, and when the retransmission packet set includes three or more retransmission packets, applying the first operation mode for error correction includes: storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmitted packet in the set of retransmitted packets, accumulating each soft value in the set of soft values in each buffer in the set of buffers with a signed value, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmitted packet in the set of retransmitted packets; Mapping each accumulated soft value of the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values; as well as A determination is made as to whether the estimated set of bit values passes the decoding check.
16. The method of claim 1, further comprising: generating an estimated cyclic redundancy check (CRC) value based on an estimated set of bit values obtained based on applying the first operation mode for error correction, the estimated set of bit values being estimated to be included in the first PDU data; as well as comparing the estimated CRC value with a first CRC value in a most recently received retransmitted packet included in the set of retransmitted packets, wherein the estimated set of bit values passes the decoding check based on comparing the estimated CRC value to the first CRC value, and wherein the estimated set of bit values fails the decoding check when the estimated CRC value is different from the first CRC value.
17. The method of claim 16, further comprising: generating an estimated message integrity code MIC value based on the estimated set of bit values; as well as comparing the estimated MIC value with a first MIC value in the most recently received retransmitted packet included in the set of retransmitted packets, wherein the set of estimated bit values passes the decoding check when the estimated CRC value matches the first CRC value and the estimated MIC value matches the first MIC value, and wherein the set of estimated bit values fails the decoding check when the estimated CRC value is different from the first CRC value or when the estimated MIC value is different from the first MIC value.
18. The method of claim 1, further comprising: A set of estimated bit values obtained based on applying the first operation mode for error correction is issued to a higher layer of the first device, the set of estimated bit values being estimated as at least a portion of first PDU data.
19. The method of claim 18, further comprising: determining a set of bit errors associated with the estimated set of bit values based on applying the first mode of operation for error correction; At least one bit error quality metric is sent to a higher layer of the first device, the at least one bit error quality metric indicating at least one of a set of locations of the bit error sets or a number of the bit error sets.
20. An apparatus for wireless communication, the apparatus comprising: Memory; as well as at least one processor coupled to the memory and configured to: establishing a logical link associated with short-range communication with a second device; Receiving a first packet carried on the logical link; When first packet data unit (PDU) data included in the first packet passes decoding check, sending at least a portion of the first PDU data to a higher layer of the device; as well as When the first PDU data fails the decoding check: determining a first operating mode from a plurality of operating modes for error correction based on the logical link; receiving a set of retransmission packets on the logical link, each retransmission packet in the set of retransmission packets including corresponding PDU data as a retransmission of the first PDU data; as well as applying the first operation mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data in each retransmission packet included in the set of retransmission packets, Wherein, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the set of retransmitted packets, and when the first operating mode for error correction includes a soft merging mode, the first operating mode for error correction is applied based on the first PDU data of the first packet including first payload data and a first message integrity code MIC value, and further based on the corresponding PDU data of each retransmitted packet in the set of retransmitted packets including corresponding payload data and corresponding MIC value.
21. The apparatus of claim 20, wherein the at least one processor is further configured to: A type of the logical link is determined, wherein the first operating mode for error correction is determined based on the type of the logical link.
22. The apparatus of claim 21, wherein the type of the logical link is determined based on at least one of an access address AA or a logical transport address LT_ADDR indicated by at least one header of at least one packet received on the logical link.
23. The apparatus of claim 20, wherein the logical link comprises one of an asynchronous connectionless (ACL) link or an advanced audio distribution profile (A2DP) link, and the soft merge mode comprises a soft merge mode based on the ACL link or the A2DP link.
24. The apparatus of claim 20, wherein when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
25. An apparatus as claimed in claim 20, wherein when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the retransmission packet set, and when the first operation mode for error correction includes a soft merging mode, the first operation mode for error correction is applied based on first payload data included in the first PDU data of the first packet and further based on corresponding payload data in the corresponding PDU data of each retransmission packet included in the retransmission packet set.
26. The apparatus of claim 25, wherein when the first PDU data of the first packet includes a first message integrity code (MIC) value and when the corresponding PDU data of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each of the corresponding MIC values.
27. The apparatus of claim 25, wherein when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
28. The apparatus of claim 20, wherein when the first operating mode for error correction includes the soft combining mode, applying the first operating mode for error correction includes: storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmitted packet in the set of retransmitted packets, accumulating each soft value in the set of soft values in each buffer in the set of buffers with a signed value, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmitted packet in the set of retransmitted packets; Mapping each accumulated soft value of the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values; as well as A determination is made as to whether the estimated set of bit values passes the decoding check.
29. The apparatus of claim 28, wherein each buffer in the buffer set is limited by a minimum threshold and a maximum threshold, and each accumulated soft value of the soft value set accumulated in each buffer in the buffer set does not exceed the minimum threshold and does not exceed the maximum threshold.
30. The apparatus of claim 20, wherein the logical link comprises an extended synchronous connection-oriented (eSCO) link, and the first operation mode comprises a quality bit mask (QBm) mode based on the eSCO link.
31. The apparatus of claim 30, wherein when the first operating mode for error correction comprises the QBm mode, applying the first operating mode for error correction comprises: performing a bitwise majority function based on a first set of bits of the first PDU data of the first packet, a second set of bits of a corresponding PDU data of one retransmission packet in the set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bit-by-bit majority function; as well as A set of bit error quality metrics is determined based on the set of estimated bit values.
32. The apparatus of claim 20, wherein the logical link comprises an isochronous (ISO) link, and the first operation mode for error correction comprises a quality bit mask hybrid (QBm-H) mode based on the ISO link.
33. The apparatus of claim 32, wherein when the first operating mode for error correction comprises the QBm-H mode, applying the first operating mode for error correction comprises: performing a bitwise majority function based on a first set of bits of the first PDU data of the first packet, a second set of bits of a corresponding PDU data of one retransmission packet in the set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bit-by-bit majority function; determining a set of bit error quality metrics based on the estimated set of bit values; as well as When one or more additional retransmission packets received after the one retransmission packet and the another retransmission packet in the retransmission packet set include retransmission of the first PDU data of the first packet, the one or more additional retransmission packets are discarded.
34. The apparatus of claim 32, wherein when the first operating mode for error correction includes the QBm-H mode, and when the set of retransmission packets includes three or more retransmission packets, applying the first operating mode for error correction includes: storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmitted packet in the set of retransmitted packets, accumulating each soft value in the set of soft values in each buffer in the set of buffers with a signed value, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmitted packet in the set of retransmitted packets; Mapping each accumulated soft value of the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values; as well as A determination is made as to whether the estimated set of bit values passes the decoding check.
35. The apparatus of claim 20, wherein the at least one processor is further configured to: generating an estimated cyclic redundancy check CRC value based on an estimated set of bit values, the estimated set of bit values being obtained based on applying the first operation mode for error correction, the estimated set of bit values being estimated to be included in the first PDU data; and comparing the estimated CRC value with a first CRC value in a most recently received retransmitted packet included in the set of retransmitted packets, in, The estimated set of bit values passes the decoding check based on a comparison of an estimated CRC value with the first CRC value, and wherein the estimated set of bit values fails the decoding check when the estimated CRC value is different from the first CRC value.
36. The apparatus of claim 35, wherein the at least one processor is further configured to: generating an estimated message integrity code MIC value based on the estimated set of bit values; and comparing the estimated MIC value with a first MIC value in the most recently received retransmitted packet included in the set of retransmitted packets, wherein the set of estimated bit values passes the decoding check when the estimated CRC value matches the first CRC value and the estimated MIC value matches the first MIC value, and wherein the set of estimated bit values fails the decoding check when the estimated CRC value is different from the first CRC value or when the estimated MIC value is different from the first MIC value.
37. The apparatus of claim 20, wherein the at least one processor is further configured to: A set of estimated bit values obtained based on applying the first operation mode for error correction is issued to a higher layer of the apparatus, the set of estimated bit values being estimated as at least a portion of first PDU data.
38. The apparatus of claim 37, wherein the at least one processor is further configured to: determining a set of bit errors associated with the estimated set of bit values based on applying the first mode of operation for error correction; At least one bit error quality metric is issued to a higher layer of the apparatus, the at least one bit error quality metric indicating at least one of a set of locations of the bit error sets or a number of the bit error sets.
39. An apparatus for wireless communication, the apparatus comprising: means for establishing a logical link associated with short-range communications with a second device; means for receiving a first packet carried on said logical link; means for sending at least a portion of first packet data unit (PDU) data included in the first packet to a higher layer of the device when the first PDU data passes a decoding check; as well as When the first PDU data fails the decoding check: means for determining a first operating mode from a plurality of operating modes for error correction based on the logical link; means for receiving a set of retransmission packets on the logical link, each retransmission packet in the set of retransmission packets comprising corresponding PDU data as a retransmission of the first PDU data; as well as means for applying the first operation mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data included in each retransmission packet in the set of retransmission packets, Wherein, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the set of retransmitted packets, and when the first operating mode for error correction includes a soft merging mode, the first operating mode for error correction is applied based on the first PDU data of the first packet including first payload data and a first message integrity code MIC value, and further based on the corresponding PDU data of each retransmitted packet in the set of retransmitted packets including corresponding payload data and corresponding MIC value.
40. The apparatus of claim 39, further comprising: Means for determining a type of the logical link, wherein the first operating mode for error correction is determined based on the type of the logical link.
41. The apparatus of claim 40, wherein the type of the logical link is determined based on at least one of an access address AA or a logical transport address LT_ADDR indicated by at least one header of at least one packet received on the logical link.
42. The apparatus of claim 39, wherein the logical link comprises one of an asynchronous connectionless (ACL) link or an advanced audio distribution profile (A2DP) link, and the soft merge mode comprises a soft merge mode based on the ACL link or the A2DP link.
43. The apparatus of claim 39, wherein when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
44. An apparatus as claimed in claim 39, wherein when the first packet is associated with a first random number for decryption that is different from a corresponding random number associated with decryption of at least one retransmission packet in the retransmission packet set, and when the first operation mode for error correction includes a soft merging mode, the first operation mode for error correction is applied based on first payload data included in the first PDU data of the first packet and further based on corresponding payload data in the corresponding PDU data of each retransmission packet included in the retransmission packet set.
45. An apparatus as claimed in claim 44, wherein when the first PDU data of the first packet includes a first message integrity code (MIC) value and when the corresponding PDU data of each retransmission packet in the set of retransmission packets includes a corresponding MIC value, the first operation mode for error correction is applied without utilizing the first MIC value and without utilizing each corresponding MIC value of the corresponding MIC values.
46. The apparatus of claim 44, wherein when the first operation mode for error correction is applied, the first PDU data of the first packet and the corresponding PDU data of each retransmission packet in the set of retransmission packets are decrypted.
47. The apparatus of claim 39, wherein when the first operating mode for error correction comprises the soft merging mode, the means for applying the first operating mode for error correction is configured to: storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmitted packet in the set of retransmitted packets, accumulating each soft value in the set of soft values in each buffer in the set of buffers with a signed value, each of the signed values being based on a corresponding bit of the corresponding PDU data of each retransmitted packet in the set of retransmitted packets; Mapping each accumulated soft value of the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values; as well as A determination is made as to whether the estimated set of bit values passes the decoding check.
48. The apparatus of claim 47, wherein each buffer in the buffer set is limited by a minimum threshold and a maximum threshold, and each accumulated soft value of the soft value set accumulated in each buffer in the buffer set does not exceed the minimum threshold and does not exceed the maximum threshold.
49. The apparatus of claim 39, wherein the logical link comprises an extended synchronous connection-oriented (eSCO) link, and the first operation mode comprises a quality bit mask (QBm) mode based on the eSCO link.
50. The apparatus of claim 49, wherein when the first operating mode for error correction comprises the QBm mode, the means for applying the first operating mode for error correction is configured to: performing a bitwise majority function based on a first set of bits of the first PDU data of the first packet, a second set of bits of a corresponding PDU data of one retransmission packet in the set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bit-by-bit majority function; as well as A set of bit error quality metrics is determined based on the set of estimated bit values.
51. The apparatus of claim 48, wherein the logical link comprises an isochronous (ISO) link, and the first operation mode for error correction comprises a quality bit mask hybrid (QBm-H) mode based on the ISO link.
52. The apparatus of claim 51 , wherein when the first operating mode for error correction comprises the QBm-H mode, the means for applying the first operating mode for error correction is configured to: performing a bitwise majority function based on a first set of bits of the first PDU data of the first packet, a second set of bits of a corresponding PDU data of one retransmission packet in the set of retransmission packets, and a third set of bits of another corresponding PDU data of another retransmission packet in the set of retransmission packets; determining a set of estimated bit values based on performing the bit-by-bit majority function; determining a set of bit error quality metrics based on the estimated set of bit values; as well as When one or more additional retransmission packets received after the one retransmission packet and the another retransmission packet in the retransmission packet set include retransmission of the first PDU data of the first packet, the one or more additional retransmission packets are discarded.
53. The apparatus of claim 51, wherein when the first operation mode for error correction includes the QBm-H mode, and when the set of retransmission packets includes three or more retransmission packets, the means for applying the first operation mode for error correction is configured to: storing each soft value in a set of soft values in each buffer in a set of buffers, each soft value in the set of soft values being a three-bit signed soft value based on a corresponding bit of the first PDU data of the first packet; for each retransmitted packet in the set of retransmitted packets, accumulating each soft value in the set of soft values in each buffer in the set of buffers with a signed value, each of the signed values being based on a corresponding bit of the corresponding PDU data of the each retransmitted packet in the set of retransmitted packets; Mapping each accumulated soft value of the set of soft values accumulated in each buffer in the set of buffers to a bit value in the set of estimated bit values; as well as A determination is made as to whether the estimated set of bit values passes the decoding check.
54. The apparatus of claim 39, further comprising: means for generating an estimated cyclic redundancy check, CRC, value based on an estimated set of bit values obtained based on applying the first operation mode for error correction, the estimated set of bit values being estimated to be included in the first PDU data; as well as means for comparing the estimated CRC value with a first CRC value in a most recently received retransmitted packet included in said set of retransmitted packets, wherein the estimated set of bit values passes the decoding check based on comparing the estimated CRC value to the first CRC value, and wherein the estimated set of bit values fails the decoding check when the estimated CRC value is different from the first CRC value.
55. The apparatus of claim 54, further comprising: means for generating an estimated message integrity code MIC value based on the estimated set of bit values; as well as means for comparing the estimated MIC value with a first MIC value in said most recently received retransmitted packet included in said set of retransmitted packets, wherein the set of estimated bit values passes the decoding check when the estimated CRC value matches the first CRC value and the estimated MIC value matches the first MIC value, and wherein the set of estimated bit values fails the decoding check when the estimated CRC value is different from the first CRC value or when the estimated MIC value is different from the first MIC value.
56. The apparatus of claim 39, further comprising: Means for issuing to a higher layer of the apparatus a set of estimated bit values obtained based on applying the first operation mode for error correction, the set of estimated bit values being estimated as at least a portion of first PDU data.
57. The apparatus of claim 56, further comprising: means for determining a set of bit errors associated with the estimated set of bit values based on applying said first mode of operation for error correction; as well as Means for issuing at least one bit error quality metric to a higher layer of the apparatus, the at least one bit error quality metric indicating at least one of a set of locations of the set of bit errors or a number of the set of bit errors.
58. A computer-readable medium storing computer-executable code for wireless communication by a first device, comprising code for: establishing a logical link associated with short-range communication with a second device; Receiving a first packet carried on the logical link; When first packet data unit (PDU) data included in the first packet passes decoding check, sending at least a portion of the first PDU data to a higher layer of the first device; as well as When the first PDU data fails the decoding check: determining a first operating mode from a plurality of operating modes for error correction based on the logical link; receiving a set of retransmission packets on the logical link, each retransmission packet in the set of retransmission packets including corresponding PDU data as a retransmission of the first PDU data; as well as applying the first operation mode for error correction based on the first PDU data included in the first packet and the corresponding PDU data included in each retransmission packet in the set of retransmission packets, Wherein, when the first packet is associated with a first random number for decryption that matches a corresponding random number for decrypting each retransmitted packet in the set of retransmitted packets, and when the first operating mode for error correction includes a soft merging mode, the first operating mode for error correction is applied based on the first PDU data of the first packet including first payload data and a first message integrity code MIC value, and further based on the corresponding PDU data of each retransmitted packet in the set of retransmitted packets including corresponding payload data and corresponding MIC value.
Citation Information
Patent Citations
Majority vote error correction technical field
CN102771072A
Method and system for saving power for packet re-transmission in an encrypted bluetooth low power link layer connection
US20110022916A1
Robust Connection for Low-Energy Wireless Networks
US20160210189A1
