System and method for constructing a protocol data unit using selective relaying
Recovering lost packets in wireless personal area networks through a selective relay mechanism solves the performance degradation and user experience problems caused by packet errors and losses in WPAN, ensuring the alignment status between devices and the reliability of audio streams.
Patent Information
- Application Number
- CN202080025772.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-04-08
- Filing Date
- 2020-04-09
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-04-09
AI Technical Summary
In Wireless Personal Area Networks (WPAN), short-range wireless communication may cause packet errors or loss due to noise and congestion, resulting in reduced device performance and poor user experience. In particular, the secondary receiver lacks a mechanism to recover lost packets, causing the primary receiver to Lost alignment with secondary receiver.
Through the selective relay mechanism, bitmap information is exchanged between the primary receiver and the secondary receiver to identify possible lost packets, and selective relay is performed to recover the lost packets and ensure that the packet counters between the two are aligned. , thereby maintaining alignment.
Effectively recover lost packets to ensure the reliability and user experience of audio streaming in wireless headsets and reduce user dissatisfaction caused by packet loss.
Smart Images

Figure CN113728577B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Indian Patent Application No. 201941014808, filed on April 12, 2019, entitled “SYSTEM AND METHOD FOR CONSTRUCTION OF A PROTOCOL DATA UNIT USING SELECTIVE RELAY,” and U.S. Patent Application No. 16 / 843,521, filed on April 8, 2020, entitled “SYSTEM AND METHOD FOR CONSTRUCTION OF A PROTOCOL DATA UNITUSING SELECTIVE RELAY,” both of which are expressly incorporated herein by reference in their entirety. Technical Field
[0003] The present disclosure relates generally to communication systems and, more particularly, to structuring protocol data using selective relaying.
[0004] Related technical description
[0005] A wireless personal area network (WPAN) is a personal short-range wireless network used to interconnect devices centered at a specific distance from a user. WPANs have become popular due to the flexibility and convenience they offer 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 (such as 5 meters, 10 meters, 20 meters, 100 meters, etc.).
[0006] Short-range wireless communication protocols may include (BT) protocol, Low Energy (BLE) protocol, Protocols, etc. BT is a wireless technology standard that uses ultra-high frequency (UHF) radio waves in the globally recognized industrial, scientific and medical (ISM) band (such as from 2.400 gigahertz (GHz) to 2.485GHz) to achieve radio frequency communication. Similarly, BLE defines a standard that allows radio frequency communication within the 2.4GHz ISM band.
[0007] Short-range wireless communication protocols can be used to connect devices on a WPAN. Examples of devices that can communicate on a WPAN may include laptops, tablet computers, smart phones, personal data assistants, audio systems (such as head-mounted devices, headphones, speakers, etc.), wearable devices (such as smart watches, fitness trackers, etc.), battery-powered sensors and actuators in various medical, industrial, consumer, and fitness applications, and the like.
[0008] In some scenarios, WPAN can provide advantages and convenience over other network types, such as wireless local area networks (WLANs). However, short-range wireless communications in WPANs may encounter 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 encountered with short-range wireless communications may reduce the performance of the device, may reduce the user experience, and so on. Therefore, a method for addressing one or more missed packets in short-range wireless communications is needed.
[0009] Overview
[0010] A brief summary of one or more aspects is given below to provide a basic understanding of such aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or critical elements of all aspects nor to define 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 that will be presented later.
[0011] Various standards and protocols for wireless personal area networks (WPANs), such as (BT) and / or Low Energy (BLE), decoding and / or decryption techniques may be provided, for example, to ensure packet integrity, recover from lost packets, and the like. For example, at least a portion of a packet (such as the payload of the packet) may be protected with a cyclic redundancy check (CRC) value that must match a value calculated by the receiving device in order for the packet to be successfully decoded. If the packet is encrypted, at least a portion of the packet (such as the payload) may be protected with a packet integrity code (MIC). Similar to the CRC verification, the MIC must match a value calculated by the receiving device in order for the packet to be successfully decrypted. If the CRC verification and / or the MIC verification are not passed at the receiving device, the packet may be invalid.
[0012] Potentially, the receiving device may implement feedback or other mechanisms so that packets that have not been verified by CRC and / or MIC may be retransmitted to the receiving device. However, some receiving devices may include two receivers, such as a wireless head-mounted device with two earpieces. For such a device, the main receiver (e.g., the main earpiece) may implement feedback or other mechanisms to recover lost or invalid packets, while the secondary receiver (e.g., the secondary earpiece) may rely on "sniffing" packets intended for the main receiver, and therefore may lack a mechanism to recover lost packets. In addition, for example, when the secondary receiver loses or invalidates a packet successfully received by the main receiver, the main receiver and the secondary receiver may become misaligned. Therefore, there is a need to recover lost or invalid packets at the receiving device, for example, in order to maintain alignment between the receivers of the receiving device.
[0013] In a first aspect of the present disclosure, a method, a computer-readable medium, and an apparatus are provided. The apparatus may be configured to: receive a first bitmap indicating a first packet set received by the second device from a third device on a second communication link from a second device on a first communication link; determine a second bitmap indicating a second packet set received by the first device from a third device, each of the first packet set and the second packet set including at least one segment of a protocol data unit (PDU); transmit information indicating a third packet set to the second device on the first communication link based on the first bitmap and based on the second bitmap, the third packet set not being successfully received by the first device from the third device; and receive a fourth packet set from the second device on the first communication link based on the transmission of the information indicating the third packet set, the fourth packet set including information from the third packet set.
[0014] In a second aspect of the present disclosure, another method, another computer-readable medium, and another apparatus are provided. The apparatus may be configured to determine a first bitmap indicating a first packet set successfully received by a first device from a source device on a first communication link; receive a second bitmap indicating a second packet set received by the second device from the source device on a second communication link from a second device, each of the first packet set and the second packet set including at least one segment of a PDU; determine a third packet set based on at least one of the first bitmap or the second bitmap, the third packet set not being successfully received by the second device from the source device; and transmit a fourth packet set to the second device on the second communication link based on the third packet set, the fourth packet set including information from the third packet set.
[0015] To achieve the foregoing and related ends, the one or more aspects include the features fully described below and particularly pointed out in the claims. The following description and drawings set forth in detail certain illustrative features of the one or more aspects. However, these features are merely indicative of several of the various ways in which the principles of the various aspects may be employed, and this description is intended to cover all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a diagram illustrating an example of a short-range wireless communication system in accordance with certain aspects of the present disclosure.
[0018] Figure 2 is a block diagram of a short-range wireless communication device in accordance with certain aspects of the present disclosure.
[0019] 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.
[0020] 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.
[0021] Figure 4A is a diagram illustrating a BT data packet in accordance with certain aspects of the present disclosure.
[0022] Figure 4B is a diagram illustrating a BLE data packet in accordance with certain aspects of the present disclosure.
[0023] Figure 5 is a diagram illustrating a short-range wireless communication system.
[0024] Figure 6 is a representation of a bitmap.
[0025] Figure 7 is a representation of a bitmap.
[0026] Figure 8 is a diagram illustrating a short-range wireless communication system.
[0027] Fig. 9 is a representation of a bitmap.
[0028] Fig.10 is a representation of a bitmap.
[0029] Fig.11 is a call flow diagram of the selective relay method.
[0030] Fig.12 is a diagram of information bits.
[0031] Fig.13 is a diagram illustrating a short-range wireless communication system.
[0032] Fig.14 is a representation of a bitmap.
[0033] Fig.15 is a representation of a bitmap.
[0034] Fig.16 is a representation of a bitmap.
[0035] Fig.17 is a representation of a bitmap.
[0036] Fig.18 is a representation of a bitmap.
[0037] Fig.19 is a flow chart of a method of selectively relaying packets.
[0038] Fig. 20 is a diagram illustrating data flow in an example short-range wireless communication system.
[0039] Fig.21 is a flow chart of an example method of short-range wireless communication.
[0040] Fig. 22 is a flow chart of another example method of short-range wireless communication.
[0041] Detailed Description
[0042] 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 configurations in which the concepts described herein may be practiced. This detailed description includes specific details to provide 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, well-known structures and components are shown in block diagram form in order to avoid diluting such concepts.
[0043] Several aspects of telecommunication systems will now be presented with reference to various devices and methods. These devices 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 can 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.
[0044] As an example, an element, or any part of an element, or any combination of elements may 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, gating logic, discrete hardware circuits, and other suitable hardware configured to perform various functionalities described throughout this disclosure. One or more processors in a processing system may execute software. 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, executables, threads of execution, procedures, functions, etc., whether it is described in software, firmware, middleware, microcode, hardware description languages, or other terms.
[0045] Accordingly, in one or more aspects, the functions described can be implemented in hardware, software, or any combination thereof. If implemented in software, each function can be stored or encoded on a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media. Storage media can be any available medium that can be accessed by a computer. As an 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 can be used to store computer-accessible instructions or data structure forms of computer executable code.
[0046] Figure 1 An example WPAN 100 is illustrated in accordance with certain aspects of the present disclosure. Within the WPAN 100, a wireless source device 102 may use a communication link 116 to communicate with one or more peripheral devices 104, 106, 108, 110, 112 using a short-range wireless communication protocol. The short-range wireless communication protocol may include (BT) protocol or BT Low Energy (BLE) protocol. Although the present disclosure may include descriptions in the context of BT and / or BLE, the concepts and techniques described herein may be applied to other additional and / or alternative wireless communication protocols and standards, such as FlashLinQ, WiMedia, Bluetooth, ZigBee, Wi-Fi based on IEEE802.11 standards, Long Term Evolution (LTE), and / or 5G New Radio (NR).
[0047] Examples of source device 102 include a cellular phone, a smart phone, a Session Initiation Protocol (SIP) phone, a mobile station (STA), a laptop, a personal computer (PC), a desktop computer, a personal digital assistant (PDA), a satellite radio, a global positioning system, a multimedia device, a video device, a digital audio player, a camera, a game console, a tablet, a smart device, a wearable device, a vehicle, an electric meter, a gas station, an oven, a thermostat, a hearing aid, a wireless headset, a body-worn blood glucose unit, an Internet of Things (IoT) device, or any other similarly functional device.
[0048] Examples of one or more peripheral devices 104, 106, 108, 110, 112 include cellular phones, smart phones, SIP phones, STAs, laptops, PCs, desktop computers, PDAs, satellite radios, global positioning systems, multimedia devices, video devices, digital audio players, cameras, game consoles, tablet devices, smart devices, wearable devices, vehicles, electric meters, gas stations, ovens, thermostats, hearing aids, wireless headsets, body-worn blood glucose units, IoT devices, or any other similarly functional devices. Although source device 102 is illustrated as communicating with six peripheral devices 104, 106, 108, 110, 112 in WPAN 100, source device 102 may communicate with more or less than six peripheral devices within WPAN 100 without departing from the scope of the present disclosure.
[0049] A device implementing the BT protocol, such as source device 102, may thus operate according to one radio mode, such as basic rate (BR) / enhanced data rate (EDR). Similarly, a device implementing the BLE protocol may operate according to a BLE radio mode. In some aspects, a device, such as source device 102, may be configured with dual radio modes and may thus be able to operate according to either a BR / EDR mode or a BLE mode, for example, based on the type of short-range wireless communication in which the device may engage.
[0050] For example, a device may operate according to a BR / EDR mode for continuous streaming of data, for broadcast networks, for mesh networks, and / or for some other applications where relatively higher data rates may be more appropriate. However, a device may operate according to a BLE mode for short burst data transmissions and / or for some other applications where power savings may be desired and / or relatively lower data rates may be acceptable. In other aspects, a device may operate according to one or more other radio modes, including proprietary radio modes (such as high-speed radio mode, low energy radio mode, isochronous radio mode, etc.).
[0051] The short-range wireless communication protocol (such as BT, BLE and / or BR / EDR) may include and / or may use one or more other communication protocols, for example, for establishing and maintaining a communication link. As illustrated, the source device 102 may establish a communication link 116 with at least one other device (such as a wireless head mounted device 112) according to at least one communication protocol for short-range wireless communication.
[0052] The communication link 116 may include a communication link that complies with a protocol included and / or used with BT, BLE, BR / EDR, etc. In one aspect, the communication link 116 may include an asynchronous connectionless (ACL) link. Using the ACL, the source device 102 can connect (or "pair" in the terminology of the BT specification) with a second device (such as the head mounted device 112). The connection is asynchronous because the two devices may not need to synchronize data communications between each other in time to permit communication of data packets via the communication link 116.
[0053] The Logical Link Control and Adaptation Protocol (L2CAP) may be used within the BT protocol stack to pass packets to the Host Controller Interface (HCI), or for "hostless" systems, directly to the Link Manager / ACL link. The L2CAP connection may be established after the ACL link has been established. References to L2CAP in the present disclosure may further apply to Enhanced L2CAP (EL2CAP), which may be an enhanced version of the L2CAP protocol that allows multiple logical data channels to be multiplexed over a single radio connection.
[0054] In one aspect, the communication link 116 may include an Advanced Audio Distribution Profile (A2DP) link. The A2DP link provides a point-to-point link between a source device (such as source device 102) and a sink device (such as head mounted device 112). Using the A2DP link, data packets including audio may be transmitted on an ACL data channel, and other information, such as for controlling the audio stream, may be transmitted on a separate control channel. The data packets may occur non-periodically.
[0055] In another aspect, the communication link 116 may support a synchronous logical transport mechanism between a "master device" and a "slave device". For example, the communication link 116 may include a synchronous connection-oriented (SCO) link. The SCO link may provide a symmetrical point-to-point link between a master device (such as source device 102) and a slave device (such as head mounted device 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 dropped audio or voice packets may degrade the quality of user experience.
[0056] Then, in another aspect, the communication 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 and a slave device using a time slot reserved for BT communication, and may also provide a retransmission window after the reserved time slot. Since the retransmission window may be used to facilitate retransmissions, the eSCO link may be suitable for audio streaming and / or voice use cases, because dropped audio or voice packets may be retransmitted, and thus the probability of successfully receiving data packets may be increased.
[0057] In one aspect, the communication link 116 may include an isochronous (ISO) link. With an ISO link, the communication link 116 may combine some features of both synchronous and asynchronous links. For example, a stream on an ISO link may begin with a start packet, and then data packets may be transmitted asynchronously. On an ISO link, the number of retransmission attempts by a transmitting device may be limited. Therefore, if a receiving device 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 the stream without data from the discarded data packet.
[0058] Due to various factors, wireless devices may cause congestion on frequencies used for wireless channels, such as the wireless channel over which communication link 116 is carried. As a result, wireless communication channels, including the wireless communication channel over which communication 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 over established communication link 116. Such static, congestion, interference, and / or other random signals may cause errors for packets transmitted over communication link 116 and / or may cause packets to not be received over communication link 116.
[0059] In some standards and protocols (such as BLE and / or BR / EDR), the source device 102 can detect errors in packets and / or dropped / missed / not received packets by using cyclic redundancy check (CRC) verification and by using message integrity code (MIC) verification. MIC verification can be used when the packet is encrypted. For example, a CRC verification failure can indicate one or more errors in the received packet, and a MIC verification failure can indicate that another packet has not been received (although a CRC verification failure can also indicate that another packet has not been received, and / or a MIC verification failure can also indicate one or more errors in the received packet).
[0060] CRC verification and MIC verification can be based on: generating a CRC value and a MIC respectively according to the received packet, and comparing these generated CRC values and MIC with the CRC and MIC included in the received packet respectively. Specifically, the receiving device (such as the head mounted device 112) receiving the packet can first generate a CRC value or a CRC checksum based on the received packet (such as, based on the payload included in the received packet and (if applicable) MIC). The receiving device can compare the generated CRC value with the CRC value included in the received packet. If the generated CRC value matches the CRC value included in the received packet, the received packet can be verified for CRC. The received packet verified by CRC can then be decrypted. However, if the generated CRC value does not match the CRC value included in the received packet, the receiving device can determine that the received packet fails to pass the CRC verification. If the receiving device determines that the received packet fails to pass the CRC verification, the received packet may include errors and / or may be damaged. In one configuration, the receiving device can discard the received packet that fails to pass the CRC verification; however, in another configuration, the receiving device can, for example, use one or more error correction techniques to try to recover the received packet.
[0061] If the received packet passes the CRC verification and is encrypted, the receiving device may decrypt the received packet to obtain a decrypted payload and a decrypted MIC. For MIC verification, the receiving device may generate a MIC based on the decrypted payload and compare the generated MIC with the MIC obtained from the decrypted received packet. If the generated MIC matches the decrypted MIC, the receiving device may determine that the received packet is successfully decrypted. When the received packet is successfully decrypted, the decoded and decrypted payload of the received packet may be provided to another layer of the receiving device, such as a codec of the receiving device, which may cause the payload data of the received packet to be output by the receiving device as, for example, audio through a speaker of the head mounted device 112.
[0062] If the generated MIC does not match the decrypted MIC of the received packet, the receiving device may determine that the received packet was not successfully decrypted. When the received packet was not successfully decrypted, a different packet may be missed or the received packet may be erroneous or otherwise damaged. In one configuration, the receiving device may discard the received packet that failed the MIC verification; however, in another configuration, the receiving device may attempt to recover the received packet.
[0063] Refer again Figure 1In the illustrated aspect, the source device 102 may establish a communication link 116 with the wireless head mounted device 112. However, in some configurations, the wireless head mounted device 112 may include two earpieces 114a, 114b that implement a protocol stack (such as a BT protocol stack configured for BR / EDR) at respective components and / or circuit systems. Thus, the communication link 116 may be established at the protocol stack through the first or "primary" earpiece 114a of the head mounted device 112. In practice, when the source device 102 establishes a communication link 116 with the head mounted device 112, the communication link 116 is established through the primary earpiece 114a. For example, a logical link (such as an ACL link, an L2CAP link, etc.) may exist on one or more layers of the protocol stack through the primary earpiece 114a.
[0064] Source device 102 may transmit a set of packets 120 to head mounted device 112 over communication link 116. Each of packets 120 may be a data packet. For example, each of packets 120 may include a protocol data unit (PDU) having a payload, such as an L2CAP PDU. When one of packets 120 is decoded and decrypted, the payload may be obtained and output as, for example, audio through a speaker of head mounted device 112. When packets 120 are streamed over communication link 116, head mounted device 112 may stream audio through a speaker of head mounted device 112.
[0065] According to various configurations, each of the packets 120 may be addressed to the primary earpiece 114a by, for example, using a logical transport address (LT_ADDR) or access address of the protocol stack for transmission through the primary earpiece 114a to the head mounted device 112. Accordingly, when configured, the primary earpiece 114a may (implicitly or explicitly) provide an acknowledgment (ACK) / negative acknowledgment (NAK) feedback for each of the packets 120 to the source device 102 (e.g., after decoding and decrypting each of the packets 120).
[0066] The communication link 116 toward the primary earpiece 114a can be encrypted so that the MIC verification is applied by the head mounted device 112. The communication link 116 between the source device 102 and the primary earpiece 114a can be encrypted using an encryption mode. In one configuration, the communication link 116 can be encrypted using the Advanced Encryption Standard (AES) with a Cipher Block Chaining Message Authentication Code (CBC-MAC) (CCM) (AES-CCM) mode. For example, the source device 102 can encrypt each of the packets 120 using a CCM encryption function, and then the source device 102 can transmit the encrypted packets 120 to the primary earpiece 114a on the communication link 116. Accordingly, the primary earpiece 114a can receive each of the packets 120 on the communication link 116, and the primary earpiece 114a can decrypt each of the packets 120 using a CCM decryption function. In other configurations, the communication link 116 may be encrypted using a different encryption mode, and each packet in the set of packets 120 may be encrypted and decrypted using other encryption functions and / or algorithms.
[0067] In order to maintain consistent packet numbering across each of the packets 120, both the source device 102 and the primary handset 114a may maintain respective packet counters for the packet numbers corresponding to the packets 120. According to one configuration, the source device 102 may increment its packet counter when each of the packets 120 is encrypted, for example, when each of the packets 120 is provided to the encryption function of the source device 102, the source device 102 may increment its packet counter. In various configurations, the source device 102 may avoid incrementing its packet counter for packets that are not encrypted and / or do not include a payload. In addition, the source device 102 may avoid incrementing its packet counter when one of the packets 120 is retransmitted.
[0068] Accordingly, the primary earpiece 114a may increment its packet counter after receiving each packet in the packet 120--e.g., when each of the packets 120 is provided to the decryption function of the primary earpiece 114a, the primary earpiece 114a may increment its packet counter. In various configurations, the primary earpiece 114a may avoid incrementing its packet counter for packets that are not encrypted and / or do not include a payload. In this way, the source device 102 and the primary earpiece 114a may maintain alignment between their respective packet counters.
[0069] In one configuration, both the source device 102 and the primary handset 114a may initialize their respective packet counters to the same value. For example, the source device 102 and the primary handset 114a may be configured with the same predetermined value for initializing the packet counter. In another configuration, the value to which the packet counter is to be initialized may be advertised, such as by the source device 102, prior to transmission of the packet 120.
[0070] In some configurations, the source device 102 and the primary handset 114a each include a set of packet counters. For example, the source device 102 may include a transmit (TX) packet counter to be aligned with the receive (RX) packet counter of the primary handset 114a. Similarly, the source device 102 may include an RX packet counter to be aligned with the TX packet counter of the primary handset 114a. For example, these TX packet counters of the source device 102 may remain aligned with the RX packet counter of the primary handset 114a because when a new non-zero length packet is transmitted by the source device 102 and received by the primary handset 114a, the source device 102 may increment its TX packet counter, and the primary handset 114a may increment its RX packet counter.
[0071] In some configurations, the ACK / NAK feedback provided by the primary handset 114a to the source device 102 (implicitly or explicitly) may prevent the packet counter of the primary handset 114a from becoming unaligned with the packet counter of the source device 102—for example, when a first packet in packets 120 is not received by the primary handset 114a and NAK feedback for the first packet is indicated at the source device 102, the source device 102 may retransmit the first packet.
[0072] When the packet counters across the source device 102 and the primary earpiece 114a remain aligned, the random number (nonce) generated by the source device 102 can correspond to the random number (nonce) generated by the primary earpiece 114a, and the MIC verification can continue to succeed. Accordingly, the primary earpiece 114a can decrypt each of the packets 120 and obtain each payload. The primary earpiece 114a can then provide each payload to another layer (such as a codec), which can process and / or decode the payload and output the payload as, for example, audio through the speaker of the primary earpiece 114a.
[0073] However, the head mounted device 112 may additionally include a secondary earpiece 114b having its own speaker configured to also output the payload of the packet 120. Because the communication link 116 may be established toward the primary earpiece 114a, the secondary earpiece 114b may receive the packet 120 by passively monitoring the channel carrying the packet 120 on the communication link 116. That is, the secondary earpiece 114b may "sniff" the packet 120 transmitted over the communication link 116 to the primary earpiece 114a.
[0074] Since the secondary earpiece 114b can sniff the packets 120 from the source device 102, the secondary earpiece 114b may need to perform CRC and MIC verification separately from the primary earpiece 114a. Similar to the primary earpiece 114a, the secondary earpiece 114b can then successfully decrypt the corresponding one of the packets 120 using a corresponding random number corresponding to the random number used by the source device 102 to encrypt the corresponding one of the packets 120. Therefore, the secondary earpiece 114b can maintain a packet counter (e.g., RX packet counter) that is aligned with the packet counter (e.g., TX packet counter) of the source device 102.
[0075] Similar to the primary earpiece 114a, the secondary earpiece 114b may initialize the packet counter to the same value as the source device 102. In one configuration, the secondary earpiece 114b may be configured with the same predetermined value used to initialize the packet counter as the primary earpiece 114a and the source device 102. In other configurations, the value used to initialize the packet counter may be advertised and / or relayed from the primary earpiece 114a to the secondary earpiece 114b.
[0076] Potentially, the packet counter (e.g., RX packet counter) of the secondary earpiece 114b may become misaligned with the packet counter (e.g., TX packet counter) of the source device 102. For example, the secondary earpiece 114b may drop or lose a first packet of packets 120, but receive the next packet of packets 120. However, the secondary earpiece 114b may lack a mechanism to indicate ACK / NAK feedback to the source device 102 (implicitly or explicitly).
[0077] When the packet counters across the source device 102 and the secondary earpiece 114b remain aligned, the random number generated by the source device 102 may correspond to the random number generated by the secondary earpiece 114b, and the MIC verification may be continuously successful. Accordingly, the secondary earpiece 114b may decrypt each of the packets 120 and obtain each payload. The secondary earpiece 114b may then provide each payload to another layer (such as a codec) that may process and / or decode the payload and cause the payload to be output as, for example, audio through the speaker of the secondary earpiece 114b.
[0078] Since the secondary earpiece 114b can sniff the packet 120 from the source device 102, the secondary earpiece 114b may need to perform CRC and MIC verification separately from the main earpiece 114a. In some aspects, the secondary earpiece 114b can communicate with the main earpiece 114a on a short-range communication link 118. Other communication links 118 can be, for example, BT links (such as BR / EDR links), BLE links, near-field magnetic induction (NFMI) links or any other suitable short-range wireless communication links. According to a configuration, the secondary earpiece 114b can receive information associated with the source device 102 and / or the communication link 116 from the main earpiece 114a. In one aspect, the main earpiece 114a can configure and / or relay one or more parameters to the secondary earpiece 114b, and the one or more parameters can be facilitated by the monitoring of the communication link 116 to the reception of the packet set by the secondary earpiece 114b.
[0079] However, passively monitoring the communication link 116 in order to receive each of the packets 120 may be unreliable. Therefore, when sniffing on the communication link 116, the secondary earpiece 114b may lose one or more of the packets 120. Therefore, the main earpiece 114a may relay one or more of the packets 120 that may have been missed by the secondary earpiece 114b to the secondary earpiece 114b. In addition, the main earpiece 114a may lose one or more packets 120 that may have been received by the secondary earpiece 114b, and therefore, the secondary earpiece 114b may relay one or more of the packets 120 that may have been missed by the main earpiece 114a to the main earpiece 114a. To this end, the main earpiece 114a and the secondary earpiece 114b may each be prepared to communicate with a controller at a corresponding controller level (e.g., see Figure 2 The short-range communication controller 252 shown and described below) receives a corresponding one of the bitmaps 122 associated with the packet 120. Both the primary earpiece 114a and the secondary earpiece 114b can identify one or more of the packets 120 that each of the primary earpiece 114a and the secondary earpiece 114b may have missed based on at least one bitmap 122 generated by the primary earpiece 114a and based on at least one bitmap 122 generated by the secondary earpiece 114b. Therefore, the primary earpiece 114a and the secondary earpiece 114b can exchange the corresponding bitmaps 122 generated by the primary earpiece 114a and the secondary earpiece 114b. Based on the corresponding bitmap 122, the primary earpiece 114a can identify one or more packets 120 missed by the secondary earpiece 114b and relay the one or more packets 120 to the secondary earpiece 114b, and / or the secondary earpiece 114b can identify one or more packets 120 missed by the primary earpiece 114a and relay the one or more packets 120 to the primary earpiece 114a. In some configurations, the primary earpiece 114a and / or the secondary earpiece 114b can identify a missing packet in the packets 120 based on a sequence number (SEQN) associated with the missing packet in the packets 120 and / or generate a corresponding one of the bitmaps 122.
[0080] According to various aspects, at least one of the main handset 114a and / or the secondary handset 114b can reconstruct one or more packets 120, and at least a part of the one or more packets 120 can be received from the other of the main handset 114a or the secondary handset 114b via relay. In some configurations, the reconstruction of one or more of the packets 120 can involve two operations. For example, when the PDU (e.g., L2CAP PDU) of one of the packets 120 is segmented, each of the main handset 114a and the secondary handset 114b can obtain all segments of the PDU, so as to reassemble the segments to reconstruct the PDU. Therefore, each of the main handset 114a and the secondary handset 114b can obtain the information of the "start / continue" information of each of the payload and the segment indicating the baseband segment. Such information can be included in the bitmap 122 generated by each of the main handset 114a and the secondary handset 114b. Thus, the bitmap 122 may include information indicating one or more of the packets 120 that may have been missed (e.g., based on a SEQN associated with the one or more lost packets), and information associated with baseband packets of the one or more packets 120 that may have been missed. For example, when relaying one or more of the packets 120 that may have been missed, one of the primary earpiece 114a or the secondary earpiece 114b may divide a source baseband packet of one of the packets 120 into an earpiece baseband packet set, and one of the primary earpiece 114a or the secondary earpiece 114b may provide the earpiece baseband packet set to the other of the primary earpiece 114a or the secondary earpiece 114b. The other of the primary earpiece 114a or the secondary earpiece 114b may then reconstruct the source baseband packet of one of the packets 120 as transmitted by the source device 102. The other of the primary earpiece 114a or the secondary earpiece 114b may then combine the reconstructed source baseband packet with one or more other source baseband packets to obtain a complete PDU (eg, an L2CAP PDU).
[0081] The audio traffic on the BT Classic BR / EDR stream may be asynchronous. In order to provide reliability of the audio traffic to the secondary earpiece 114b, the primary earpiece 114a may selectively relay packets to the secondary earpiece 114b, which may assist the secondary earpiece 114b in recovering lost data. In some configurations, the selective relay from the primary earpiece 114a to the secondary earpiece 114b may be implemented at the controller level.
[0082] Selective relaying may be facilitated by a bitmap 122 set. Transmission slots of the source device 102 for the head mounted device 112 may be categorized in the bitmap according to sequence number 0, sequence number 1, or no data (null). No data or null values may typically occur when no reception occurs in a slot (e.g., an idle slot), the head mounted device 112 is located on the primary earpiece 114a or the secondary earpiece 114b or some other piconet, a synchronization timeout, a CRC error, a MIC error at the primary earpiece 114a (e.g., the secondary earpiece 114b may retain the MIC error packet for later recovery), a polling / null value reception. In general, a no data or null bitmap may be for any transmission slot of the source device 102 in which the head mounted device 112 does not receive a packet (e.g., an ACL packet) from the source device 102.
[0083] The head mounted device 112 may generate one or more bitmaps 122 with a set of categories, such as 4 categories. For 4 categories, 2 bits may be sufficient to mark what happened at the primary earpiece 114a or the secondary earpiece 114b in the transmission time slot of the source device 102. In addition, a bitmap may be added for retransmissions, but it may be done only by the primary earpiece 114a. However, for scalability, new categories may be added, which may be defined by 4 bits or one / more octets. In addition, categories for zero-length L2CAP packets may be added for refreshed packets.
[0084] 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 In some configurations, the wireless device 200 may be, for example, a BT and / or BLE device configured to construct a PDU (e.g., L2CAP PDU) using a selective relay mechanism for selectively relaying packets and / or corresponding information.
[0085] like Figure 2As shown in , the wireless device 200 may include a processing element, such as a processor(s) 202 that may execute program instructions for the wireless device 200. The wireless device 200 may also include a display circuit system 204 that may perform graphics processing and provide display signals to a display 242. The processor 202 may also be coupled to a memory management unit (MMU) 240, which may be configured to receive addresses from the processor 202 and translate those addresses to locations in a memory (such as, memory 206, ROM 208, flash memory 210), and / or the processor 202 may also be coupled to other circuits or devices, such as the display circuit system 204, the radio 230, the connector interface 220, and / or the display 242. The MMU 240 may be configured to perform memory protection and page table translation or setup. In some aspects, the MMU 240 may be included as part of the processor 202.
[0086] As shown, the processor 202 may be coupled to various other circuits of the wireless device 200. For example, the wireless device 200 may include various types of memory, a connector interface 220 (which may allow coupling to a computer system), a display 242, and / or wireless communication circuitry (which may facilitate 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 (including BT devices, BLE devices, etc.).
[0087] In certain aspects, the wireless device 200 may include hardware and software components (processing elements) configured to, for example, use the techniques described herein to respectively check the header of a data packet for errors and perform majority voting of the data packet. The wireless device 200 may also include firmware or other hardware / software for controlling short-range wireless communication operations (such as BT operations, BLE operations, etc.). In addition, the wireless device 200 may store and execute a WLAN software driver for controlling WLAN operations.
[0088] 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 (such as a non-transitory computer-readable memory medium) and / or by hardware or firmware operations. In other aspects, 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 as an application specific integrated circuit (ASIC).
[0089] In some aspects, radio 230 may include separate controllers configured to control communications for various corresponding radio access technology (RAT) protocols. Figure 2As shown, the radio 230 may include a wireless local area network (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 (such as BT communications, BLE communications, etc.). A coexistence interface 254 may be used to transmit information between the WLAN controller 250 and the short-range communication controller 252.
[0090] In some 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.
[0091] In some aspects, the WLAN controller 250 may be configured to use all antennas 235a, 235b, 235c, 235d to communicate with the second device using the WLAN link. In some configurations, the short-range communication controller 252 may be configured to implement a short-range wireless communication protocol stack, such as a BT stack (e.g., as follows Figure 3A ) and / or a BLE stack (e.g. Figure 3B ), and uses one or more of antennas 235a, 235b, 235c, 235d to communicate with at least one second wireless device. The short-range communication controller 252 may be configured to reconstruct a PDU (e.g., L2CAP PDU) when the wireless device 200 is receiving or passively monitoring a packet sent by a source wireless device.
[0092] Figure 3A 1 illustrates a BT protocol stack 300 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 Figure 2 The short-range communication controller 252 may be implemented by one or more of the processor 202, memory 206, flash memory 210, ROM 208, radio 230, and / or short-range communication controller 252 illustrated in FIG.
[0093] refer to Figure 3A , the BT protocol stack 300 may be organized into (all) lower layers, (all) middle layers, and (all) higher layers. The lower layers of the BT protocol stack 300 may include a controller stack 306, which may be used, among other things, for hardware interface management, link establishment, and link management. The middle layers of the BT protocol stack 300 may include a host stack 304, which may be used, among other things, for application (layer) interface management to allow application (layer) access to short-range wireless communications. The higher layers of the BT protocol stack 300 may include an application layer 302, which may include one or more applications and one or more profiles that allow the one or more applications to use BT communications.
[0094] 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 transmitting a bit stream on a physical link or channel connecting a BT device. The bit stream may be organized into codewords or symbols and converted into data packets transmitted on a wireless transmission medium. The PHY layer 322 may provide an electrical, mechanical, and / or protocol interface to a wireless transmission medium. The PHY layer 322 may be responsible for modulating and demodulating data into radio frequency (RF) signals for air transmission. The PHY layer 322 may describe the physical characteristics of the receiver / transmitter of a wireless device. The physical characteristics may include modulation characteristics, radio frequency tolerance, sensitivity levels, etc.
[0095] The controller stack 306 may further include a link controller 320. The link controller 320 may be responsible for properly formatting data to provide data to and obtain data from the PHY layer 322. In addition, the link controller 320 may perform synchronization of links (including 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 instructed by the link manager 318.
[0096] The link manager 318 may convert host controller interface (HCI) 316 commands into controller-level operations (such as baseband-level operations). The link manager 318 may be responsible for establishing and configuring links and managing other tasks such as power change requests. Each type of logical link (such as an ACL link, an A2DP link, a SCO link, an eSCO link, an 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 retransmissions. 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 retransmissions. Starting from the establishment of 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 encoding information as well as a payload.
[0097] The link manager 318 can communicate with the host stack 304 via a host controller interface (HCI) 316 - for example, the link manager 318 can convert HCI 316 commands into controller-level operations (such as baseband-level operations). The HCI 316 can act as a boundary between the lower layers of the BT protocol stack 300 (such as the controller stack 306) and other layers of the BT protocol stack (such as the host stack 304 and / or the application layer 302). The BT specification can define a standard HCI to support BT systems implemented across two independent processors. For example, a BT system on a computer can use the BT system's own processor to implement the lower layers of the stack (such as 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, such as 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".
[0098] 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 308. The L2CAP layer 314 is implemented on top of the HCI 316 and may communicate through the HCI 316. The L2CAP layer 314 is primarily responsible for establishing connections across some existing links (such as logical links including ACL links), and / or requesting some links (if these links do not already 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 (such as 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 a 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 data flow or stream between an L2CAP layer 314 at a transmitting device (such as a master device) and another L2CAP layer 314 at a receiving device (such as a slave device).
[0099] 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 what services are available. When an SDP client finds a desired service, the SDP client can request a separate connection to use that 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 may include a set of service records describing the services provided by the SDP server. Along with information describing how an SDP client can connect to a service, a service record may also include a universally unique identifier (UUID) for the service.
[0100] The RFCOMM layer 310 can emulate the serial cable line settings and the 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 emulation, the RFCOMM layer 310 can support legacy serial port applications. The RFCOMM layer 310 can also support the object exchange (OBEX) layer 308.
[0101] The OBEX layer 308 can define a communication protocol that can be used by devices to exchange data objects, and data objects can also be defined by the OBEX layer 308. A BT device that wants to establish an OBEX communication session with another device can be considered a client device. The client can initially send one or more SDP requests to ensure that the other device can act as a server for the OBEX service. If the server device can provide OBEX services, the server device can respond with the OBEX service record of the server device. The OBEX service record can include an RFCOMM channel number, and the client device can use the channel number to establish an RFCOMM channel. Further communication between the two devices can be conveyed in packets, which can include requests, responses and / or data. The format of the packet can be defined by the OBEX session protocol.
[0102] 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 profiles 328, which may describe various different types of tasks. By following the procedures of the one or more profiles 328, the application 326 may use BT communications in accordance with the BT specification.
[0103] Figure 3B The BLE protocol stack 350 that can be implemented in a BLE device is illustrated. For example, the BLE protocol stack 350 can be composed of Figure 2The short-range communication controller 252 may be implemented by one or more of the processor 202, memory 206, flash memory 210, ROM 208, radio 230, and / or short-range communication controller 252 illustrated in FIG.
[0104] 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 located 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.
[0105] The PHY layer 372 may define a mechanism for transmitting a bit stream over a physical link connecting BLE devices. The bit stream may be organized into codewords or symbols and converted into data packets transmitted over a transmission medium. The PHY layer 372 may provide an electrical, mechanical, and / or procedural interface to the transmission medium. The shape and characteristics 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.
[0106] LL 370 is responsible for low-level communication on PHY layer 372. LL 370 manages the sequence and timing for transmitting 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, LL 370 maintains a list of allowed devices and will ignore all requests for data exchange from devices not in the list. LL 3710 can also reduce power consumption. In some aspects, LL 370 may include a company-specific LL that can be used to discover peer devices and establish a secure communication channel with them. In some aspects, LL 370 may be responsible for transmitting data packets between devices in WPAN. Each data packet may include an access address that specifies the type of logical transmission used to carry the data packet. Logical transmission may exist between a master device and a slave device. Additionally, some logical transmissions may carry multiple logical links.
[0107] 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 (such as 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 (such as a BLE controller) in the wireless device. Figure 2LL 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).
[0108] 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 higher layers into a data packet format (and vice versa). The L2CAP layer 368 may also decompose a packet from a higher layer having a large data payload into multiple packets, wherein the data payload is segmented into smaller data payloads that accommodate a maximum payload size (e.g., twenty-seven bytes) on the transmit 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 the data payload to be sent to a higher layer (such as the application layer 352).
[0109] ATT 366 includes a client / server protocol based on attributes associated with BLE devices configured for specific purposes (examples may include 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 may form the basis for data exchange between BLE devices.
[0110] 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 corresponding BLE device. SM 364 provides additional cryptographic functions that can be used by other components of the BLE protocol stack 350. The architecture of SM 364 used in BLE is designed to minimize the recourse requirements for peripheral devices by shifting the work to a presumed more powerful central device. BLE uses a pairing mechanism for key distribution. SM 364 provides a mechanism that not only encrypts data but also provides data authentication.
[0111] 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 to obtain various functionalities.
[0112] 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 applications 358, for example, through profiles that may define a set of attributes to be used in BLE communications and any permissions required for those attributes. GAP 360 may provide an interface for applications 358 to initiate, establish, and manage connections with other BLE devices.
[0113] In some aspects, wireless devices (such as source device 102, wireless device 200, etc.) can be configured to communicate according to different standards and / or protocols. For example, a wireless device can be configured with both BT and BLE for short-range wireless communication. Therefore, the wireless device can be configured with both BT protocol stack 300 and BLE protocol stack 350. In some aspects, one or more layers can be configured to be used in both BT protocol stack 300 and BLE protocol stack 350-for example, L2CAP layers 314, 368 of protocol stacks 300, 350 can be configured for dual-mode short-range wireless communication using BT or BLE.
[0114] 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 and including BR / EDR. 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.
[0115] In certain configurations, the PDU 412 may include a header 422, a payload 424, and a MIC 426. The MIC includes information that may be used to authenticate the data packet (e.g., when the data packet is encrypted). In other words, the MIC may be used by a receiving device to confirm and / or authenticate that the message is from the claimed transmitting device and to confirm that the payload 424 has not been altered (which may provide data packet integrity). The MIC 426 protects 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. In some aspects, the MIC 426 may be present when the packet 400 is encrypted (such as encrypted using AES-CCM encryption), but may not be present when the packet 400 is not encrypted.
[0116] In some configurations, such as BR / EDR, payload 424 (excluding MIC 426 and header 422) may include an unencrypted baseband packet. For example, payload 424 may include the payload portion of an unencrypted baseband ACL-User Data (ACL-U) packet (excluding the MIC and payload header).
[0117] In some aspects, the header 422 of the PDU 412 may include a plurality of fields including at least a LT_ADDR 428. The LT_ADDR may indicate a logical transport address. The LT_ADDR 428 may be associated with a logical link. For example, the logical transport address included in the LT_ADDR 428 may indicate the type of the logical link, including ACL, A2DP, eSCO, ISO, etc.
[0118] In certain configurations, the header 422 of the PDU 412 may include a logical link identifier (LLID). The LLID may be a two-bit field of the header 422.
[0119] Figure 4B 450 is a diagram illustrating a data packet 450 according to certain aspects of the present disclosure. The data packet may 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.
[0120] In some aspects, access address 454 may set the address of a link layer connection, such as link layer 370. For example, access address 454 may include an address indicating the type of logical link, including ACL, A2DP, eSCO, ISO, etc.
[0121] 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 (e.g., when the data packet is encrypted). In some aspects, the header 462 of the PDU 456 may include multiple fields, including at least an LLID, which may be a two-bit field.
[0122] In certain configurations, the payload 464 (excluding the MIC 468 and the header 462) may include an unencrypted baseband packet. For example, the payload 464 may include the payload portion of an unencrypted baseband ACL-U packet (excluding the MIC and the payload header).
[0123] Figure 5 An example of generating a bitmap in the wireless communication system 500 is shown. Figure 1, the wireless communication system 500 may include a source device 102 that may transmit a set of packets 120, and may include a head mounted device 112 that may include a primary earpiece 114a and a secondary earpiece 114b.
[0124] In one configuration, reference Figure 4A , the source device 102 may transmit a BT and / or BR / EDR packet 400 that may include a MIC 426 appended to a payload 424 and a CRC 414 appended to a PDU 412 that includes both the payload 424 and the MIC 426. The PDU 412 may include an L2CAP PDU. In another configuration, reference Figure 4B , source device 102 may transmit a BLE packet 450 that may include a MIC 468 appended to a payload 464 and a CRC 458 appended to a PDU 456 that includes both the payload 464 and the MIC 468. The PDU 456 may include an L2CAP PDU.
[0125] The set of packets 120 may include a set of three time slot packets transmitted by the source device 102. The source device 102 may transmit a first packet 520a, which may correspond to a SEQN of 0. The primary handset 114a may receive the first packet 520a (e.g., in the set of packets 120) and may transmit an ACK in response to the first packet 520a. However, the source device 102 may not receive the ACK, so the source device 102 may transmit a second packet 520b, which may be a retransmission of the first packet 520a. When the second packet 520b is a retransmission of the first packet 520a, the second packet 520b may also correspond to a SEQN of 0. The primary handset 114a may also receive the second packet 520b, and may transmit an ACK in response to the reception of the second packet 520b. The source device 102 may receive an ACK corresponding to the second packet 520b, so the next consecutive packet may be transmitted, which may be a third packet 520c corresponding to a SEQN of 1. However, the primary handset 114a may not receive the third packet 520c, such as due to a synchronization timeout. Because the primary handset 114a may not transmit an ACK in response to the third packet 520c, the source device 102 may retransmit the third packet 520c as a fourth packet 520d, which may also correspond to a SEQN of 1 because the fourth packet 520d is a retransmission of the third packet 520c.
[0126] Based on the reception of the first packet 520a, the second packet 520b and the fourth packet 520d, the primary receiver 114a may generate a first bitmap 522a. The primary receiver 114a may generate a first bitmap 522a to reflect the reception of the aforementioned first packet 520a, the second packet 520b and the fourth packet 520d. The primary receiver 114a may generate a first bitmap 522a to include a null value (NULL) set between each of the bits indicating the reception of the first packet 520a, the second packet 520b and the fourth packet 520d. For example, each null value in the null value set may indicate a synchronization timeout, an idle time slot, an error (e.g., a MIC or CRC error), a polling / null value reception, etc.
[0127] The secondary earpiece 114b may not receive the first packet 520a (eg, due to a synchronization timeout), but may receive a retransmission of the first packet 520a, which may be a second packet 520b corresponding to a SEQN of 0. Furthermore, the secondary earpiece 114b may successfully receive both the third packet 520c and the fourth packet 520d.
[0128] Based on the reception of the second grouping 520b, the third grouping 520c and the fourth grouping 520d, the secondary earpiece 114b can generate a second bitmap 522b. The secondary earpiece 114b can generate a second bitmap 522b to reflect the reception of the aforementioned second grouping 520b, the third grouping 520c and the fourth grouping 520d. The secondary earpiece 114b can generate a second bitmap 522b to include a null value (NULL) set between each of the bits indicating the reception of the second grouping 520b, the third grouping 520c and the fourth grouping 520d. For example, each null value in the null value set can indicate a synchronization timeout, an idle time slot, an error (e.g., MIC or CRC error), polling / null value reception, etc.
[0129] The primary earpiece 114a and / or the secondary earpiece 114b may identify a point (e.g., a point corresponding to a time slot) on the first bitmap 522a (e.g., a bitmap generated by the primary earpiece 114a) at which the source device 102 may have transmitted a previous packet and will transmit the next packet. For example, the primary earpiece 114a and / or the secondary earpiece 114b may traverse the first bitmap 522a until such a point is identified. Illustratively, the identified point may occur at the boundary after the last null value (NULL) before the bit corresponding to the fourth packet 520d of the first bitmap 522a.
[0130] Thus, the primary earpiece 114a and the secondary earpiece 114b may each store at least one first bitmap 522a and at least one second bitmap 522b, respectively. Each of the first bitmap 522a and the second bitmap 522b may correspond to each time slot pair (e.g., a time slot pair of a piconet involving the source device 102 and the primary earpiece 114a or the secondary earpiece 114b).
[0131] Each of the first bitmap 522a and the second bitmap 522b may indicate at least one of the following three options: (1) SEQN=0 is received (no header error and no CRC error; potentially including a MIC error); (2) SEQN=1 is received (no header error and no CRC error; potentially including a MIC error); (3) NULL, indicating that nothing was received (potentially indicating that the corresponding primary earpiece 114a or secondary earpiece 114b did not have a chance to turn on its receiver, synchronization timed out, and / or received a packet with a header error and / or CRC error, and may or may not have a MIC error). For the first three options used to illustrate each time slot pair, a 2-bit bitmap may be sufficient (although other sizes are possible).
[0132] In some configurations, at least one of the first bitmap 522a and / or the second bitmap 522b may be extended. The extension of the first bitmap 522a and / or the second bitmap 522b may allow for the reorganization of the packet 120 to reconstruct a PDU, such as a host-level data unit (e.g., an L2CAP PDU). In order to reconstruct the PDU (e.g., an L2CAP PDU), one of the primary handset 114a and / or the secondary handset 114b that is reconstructing the PDU may be notified of the start / continue information of the corresponding baseband packet. The start / continue information may be present in a two-bit logical link identifier (LLID) that may be included in a header of the payload. The LLID information may be used for received packets in the packet 120, but may not be used for missed, lost, and / or discarded packets in the packet 120, for example, because the packet relayed by the primary handset 114a to the secondary handset 114b may include the payload of the missed packet, but may not include at least a portion of other packet contents, such as the LLID of the missed packet. Other information (in addition to the payload) may also be included in the relayed packet itself, for example, information included at a predefined location within the payload, at a predefined location in the packet header, and / or at a predefined location in the payload header. In some configurations, the primary earpiece 114a may relay packets from the source device 102 to the secondary earpiece 114b on other communication links 118 without modification—for example, the payload size and packet size supported on the communication link 116 between the source device 102 and the primary earpiece 114a may correspond to (e.g., match) the payload size and packet size supported on the other communication link 118 between the primary earpiece 114a and the secondary earpiece 114b.
[0133] Accordingly, a wireless device (e.g., head mounted device 112) may benefit from an extension of a bitmap to include at least a portion of other packet contents of a missing packet relayed between one earpiece (e.g., primary earpiece 114a) of the wireless device and another earpiece (e.g., secondary earpiece 114b) of the wireless device. For example, the bitmap may be extended to include at least information indicating the LLID of the missing packet. By including at least a portion of the other information (e.g., LLID information) in the extended bitmap, the relaying of control packets (e.g., control packets with separate LLIDs) and / or the relaying of null packets that replace control packets may be reduced or eliminated.
[0134] According to one configuration, the relay protocol (e.g., as described herein) may provide LLID information of the missing packets in addition to relaying the payload of the missing packets by including some metadata when relaying. However, this may increase the latency experienced by at least one of the primary earpiece 114a and / or the secondary earpiece 114b. For example, if a full-length 2-DH5 packet relay were to include metadata octets, the information may flow in two baseband packets instead of one.
[0135] According to Table 1 below, at least one of the first bitmap 522a and / or the second bitmap 522b may uniquely mark each time slot pair.
[0136]
[0137]
[0138] Table 1
[0139] The null value entry of Table 1 (in which nothing is received in the time slot pair) may indicate that the primary earpiece 114a (if included in the first bitmap 522a) or the secondary earpiece 114b (if included in the second bitmap 522b) did not have a chance to turn on its receiver, may indicate a synchronization timeout, may indicate that a packet with at least one of a header error, a CRC error, and / or a MIC error was received, or may indicate a packet without any payload (e.g., a polling / null value packet). For packets with header error control (HEC) and CRC pass but with a MIC error, the secondary earpiece 114b may or may not use one of the first 6 bitmap values above (i.e., one of the entries in Table 1 that do not include a null value entry) to mark such a packet. If the secondary earpiece 114b does not use one of the first 6 entries of Table 1 to mark packets with HEC and CRC pass and MIC errors, the secondary earpiece 114b may use a null value entry (i.e., the seventh bitmap value above) to mark such a packet. To mark all 7 entries of Table 1, a 3-bit bitmap for each slot pair may be used—eg, 3 bits to mark each of the transmission slots of source device 102 .
[0140] Since packets may be segmented when transmitted over the air, the LLID may indicate the type of segmentation. For example, the start segment of a packet may be indicated by an LLID of "10", while the continuation segment may be indicated by an LLID of "01". Unsegmented packets may use an LLID of "10" and may not be associated with any continuation segment. However, a control segment may be indicated by "11".
[0141] refer to Figure 6 , diagram 600 shows example bitmaps 622a, 622b. The main earpiece 114a and / or the secondary earpiece 114b can traverse back to the end of the null value set after receiving the packet. For example, the source device 102 may have started transmitting the next packet early, and the main earpiece 114a may have received the next packet by retransmission. After traversing back to the end of the null value after receiving the packet, the main earpiece 114a and / or the secondary earpiece 114b can identify the point at which the source device 102 last transmitted the previous packet. If the secondary earpiece 114b has not received the previous packet at this point, the secondary earpiece 114b may have missed the previous packet.
[0142] refer to Figure 7 , diagram 700 shows example bitmaps 622a, 622b, 622c, 622d. The positions of corresponding time slots of the bitmap 622d generated by the secondary earpiece 114b are shown. In this example, the secondary earpiece 114b has received a set of packets with SEQN equal to 0 until the corresponding SEQN boundary.
[0143] refer to Figure 8, diagram 800 shows example bitmaps 822a, 822b. In this example, the secondary earpiece 114b may have missed one of the packets in the grouping 120 set. Because the secondary earpiece 114b missed this one packet, the secondary earpiece 114b may miss the next packet due to the SEQN bit (e.g., the SEQN between the expected packet and the actual received packet does not match). That is, when the secondary earpiece 114b misses the first packet, the secondary earpiece 114b may miss the next consecutive packet due to a MIC error. For example, the secondary earpiece 114b may use the SEQN corresponding to the missed first packet to attempt to perform MIC verification on the next consecutive packet (e.g., because the secondary earpiece 114b may not know that the secondary earpiece 114b has missed the first packet, and the secondary earpiece has not incremented the packet counter of the secondary earpiece 114b by 2).
[0144] refer to Fig. 9 , diagram 900 shows example bitmaps 922a, 922b. The primary earpiece 114a and the secondary earpiece 114b may start preparing the first bitmap 922a and the second bitmap 922b, respectively. Because the bitmaps 922a, 922b from the primary earpiece 114a and the secondary earpiece 114b, respectively, will be analyzed for the same time slot, the primary earpiece 114a and the secondary earpiece 114b may prepare the first bitmap 922a and the second bitmap 922b, respectively, starting from a time slot that may be referred to as "time slot zero". In addition to time slot zero, the secondary earpiece 114b may obtain a packet counter for a time slot. Accordingly, the primary earpiece 114a may share the present value or current value of the piconet clock (e.g., the piconet clock value of the source device 102), thereby marking the present value / current value of the piconet clock as time slot zero. At time slot zero, the primary earpiece 114a may begin preparing the first bitmap 922a, and also at time slot zero, the secondary earpiece 114b may begin preparing the second bitmap 922b. In addition, the primary earpiece 114a may share a present / current packet counter value corresponding to the shared clock value with the secondary earpiece 114b.
[0145] After generating the first bitmap 922a, the primary earpiece 114a may share the first bitmap 922a with the secondary earpiece 114b (e.g., by transmitting the first bitmap 922a on other communication links 118). Then, the secondary earpiece 114b may analyze the second bitmap 922b, together with the first bitmap 922a shared by the primary earpiece 114a. In some aspects, when the secondary earpiece 114b receives the first bitmap 922a from the primary earpiece 114a, the second bitmap 922b may be relatively larger than the first bitmap 922a. Therefore, the secondary earpiece 114b may analyze the second bitmap 922 for the number of time slots of the first bitmap 922a, and / or the secondary earpiece 114b may analyze the first bitmap 922a and the second bitmap 922b at the intersection of the first bitmap 922a and the second bitmap 922b.
[0146] Secondary handset 114b can identify missing packets based on the analysis of the first bitmap 922a and the second bitmap 922b to determine the relay list (including the packet counter). The relay list may include a list of packets that the secondary handset 114b determines the secondary handset 114b should obtain. Secondary handset 114b can determine the packets with MIC errors and use the corrected packet counter to recover these packets, which can be provided to the secondary handset 114b by the primary handset 114a together with the relay list. For example, when the actual MIC error of the packet occurs after the corrected packet counter, the secondary handset 114b can include the packet with the MIC error in the relay list. However, including the packet that the secondary handset 114b has received but has the MIC error in the relay list can be optional, and can reduce the number of relays between the primary handset 114a and the secondary handset 114b. Secondary handset 114b can receive packets whose packet counters may be correct but still have MIC errors. The secondary earpiece 114b may address such packets according to one or more approaches—for example, the secondary earpiece 114b may have a parallel 1-bit bitmap indicating whether the packet has a MIC error. After analyzing the first bitmap 922a and the second bitmap 922b, the secondary earpiece 114b may request the primary earpiece 114a to relay the missing and / or erroneous set of packets, which may be indicated in the relay list.
[0147] refer to Fig.10 , diagram 1000 shows example bitmaps 1022a, 1022b. When the primary handset 114a initially shares the first bitmap 1022a (generated by the primary handset 114a), the secondary handset 114b may have started preparing the second bitmap 1022b several time slots after the primary handset 114a starts preparing the first bitmap 1022a. Therefore, the secondary handset 114b may include a null value (NULL) fill from time slot zero until the secondary handset 114b actually starts preparing the second bitmap 1022b. However, the packet counter of the secondary handset 114b may be stale, and all packets in the first synchronization between the primary handset 114a and the secondary handset 114b may not pass the MIC verification. Therefore, the secondary handset 114b can recover the packets that have not passed the MIC verification by removing the MIC error using the corrected packet counter.
[0148] refer to Fig.11, the call flow diagram illustrates a wireless communication method 1100 between a primary handset 114a and a secondary handset 114b. At operation 1104, the primary handset 114a and the secondary handset 114b may share time slot zero (e.g., BT clock) and packet counter information. At operation 1106, the primary handset 114a may send a first bitmap (generated by the primary handset 114a) to the secondary handset 114b. As shown in operation 1108, the secondary handset 114b may receive the first bitmap, and based on the first bitmap, the secondary handset 114b may evaluate, for example, the first bitmap and the second bitmap (generated by the secondary handset 114b) to generate a relay list (which may include corresponding packet counter information). Further to operation 1108, the secondary handset 114b may optionally recover packets with MIC errors (e.g., the secondary handset 114b may include a request for information for recovering packets with MIC errors in the relay list). In operation 1110, the secondary handset 114b may transmit a relay list to the primary handset 114a, and the relay list may indicate a selective list of packets and / or corresponding information (e.g., packet counter information) that the secondary handset 114b is trying to obtain (e.g., due to packet loss) and / or recover (e.g., due to MIC error). In operation 1112, the primary handset 114a and the secondary handset 114b may share selective relaying of packets and / or corresponding information (e.g., packet counter information). For example, the primary handset 114a may selectively relay packets and / or corresponding information (e.g., packet counter information) with the secondary handset 114b based on the selective relay list (as shown in operation 1110) sent to the primary handset 114a. The primary handset 114a may include additional information in the first bitmap (generated by the primary handset 114a) PDU. Such additional information may include multiple entries in the first bitmap. In addition, such additional information may include packet counter information and / or SEQN information of the packets at the beginning of the first bitmap. Such additional information may also include a clock value (e.g., a BT clock value) corresponding to the first bitmap generated by the primary earpiece 114a. With respect to the Link Manager Protocol (LMP), the primary earpiece 114a and / or the secondary earpiece 114b may avoid retransmitting LMP information (e.g., LMP messages). The LMP information may be processed immediately at the primary earpiece 114a, and the primary earpiece 114a may avoid relaying the LMP information.
[0149] If the packet is lost by the secondary earpiece 114b, the next packet may be discarded due to having the same SEQN number. However, the secondary earpiece 114b may retain the next packet and check it for MIC verification. If there is a MIC error, the next packet may be a new packet or a retransmitted packet, and the secondary earpiece 114b may use the MIC recovery process (possibly using relay information from the primary earpiece 114a) to recover the new packet.
[0150] If the packet is lost due to a CRC error, the secondary earpiece 114b may store the SEQN number of the lost packet. If the next packet received by the secondary earpiece 114b has a SEQN number different from the stored SEQN number, the secondary earpiece 114b may discard the next packet based on the fact that it has the same SEQN as the previous successful reception. Alternatively, the secondary earpiece 114b may retain the next packet because the secondary earpiece 114b may recover the next packet using a recovery process (e.g., a MIC recovery process).
[0151] In some configurations, the refreshed packet may be received by at least one of the primary earpiece 114a and / or the secondary earpiece 114b. The packet that is received by one of the primary earpiece 114a or the secondary earpiece 114b but is refreshed before the other of the primary earpiece 114a or the secondary earpiece 114b is received may be handled using at least one of the following methods. In the first method, one of the primary earpiece 114a or the secondary earpiece 114b that receives the refresh packet may relay the refresh packet to the other of the primary earpiece 114a or the secondary earpiece 114b. In the second method, if the primary earpiece 114a receives the refresh packet, but the secondary earpiece 114b does not, the primary earpiece 114a may relay the refresh packet to the secondary earpiece 114b; otherwise, the secondary earpiece 114b may also refresh the refresh packet. In the third method, one of the primary earpiece 114a or the secondary earpiece 114b that receives the refresh packet may also refresh the refresh packet. According to a third approach, no additional control packets may be used for refreshing; instead, the sharing of the first bitmap (generated by the primary earpiece 114a) and the second bitmap (generated by the secondary earpiece 114b) between the primary earpiece 114a and the secondary earpiece 114b may refresh the packet. In some aspects, the primary earpiece 114a or the secondary earpiece 114b that receives the refresh packet may refresh the packet; the corresponding bitmap information corresponding to the refresh packet may be used for the entry instead of the entry for the successfully received packet. When the corresponding bitmaps are exchanged, both the primary earpiece 114a and the secondary earpiece 114b are notified based on the corresponding bitmaps that they do not have a refresh packet.
[0152] In one configuration (e.g., for a refresh packet or no refresh packet received at one of the primary earpiece 114a or the secondary earpiece 114b), the secondary earpiece 114b may share the second bitmap (generated by the secondary earpiece 114b) with the primary earpiece 114a. In this way, the primary earpiece 114a may begin to use the initial PDU that has been correctly received at the secondary earpiece 114b until the secondary earpiece 114b has a missing or erroneous PDU.
[0153] refer to Fig.12, illustrates one configuration 1200 of an extension of at least one of the first and / or second bitmaps described above. In some configurations, the SEQN information may form the basis (BASIS) for determining missing packets. Other information (referred to as "Aux Information" or "Aux info") may provide additional information about missing packets. In one configuration, the base information and the auxiliary information may be different fields in the bitmap tag for each time slot pair.
[0154] In one configuration, determining missing packets using basic information may include two operations, which may be performed sequentially: (1) determining a boundary for switching transmission of the source device 102 from one packet (e.g., SEQN=s) to the next packet (e.g., SEQN=s'); and (2) determining whether a packet (e.g., SEQN=s) has been received before the boundary. A basic bitmap for the first two operations is prepared in at least one of at least two configurations. In the first configuration, both initial transmissions (i.e., not retransmissions) and retransmissions of SEQN may be marked with a single bitmap, while the bitmaps may be different for different SEQNs. The remaining reception conditions may be marked with any other bitmap. In the second configuration, all transmissions (regardless of their SEQN) may be marked with a single bitmap, and all retransmissions (regardless of any SEQN) may be marked with another bitmap. The remaining reception conditions may be marked with any other bitmap that is the same or different.
[0155] In some configurations, header information (e.g., L2CAP header information) may be appended to a first bitmap (generated by the primary earpiece 114a) and / or a second bitmap (generated by the secondary earpiece 114b). For example, the auxiliary information bits of a bitmap packet (e.g., including the first bitmap and / or including the second bitmap) may contain information such as a context identifier (CID) and / or the length of each start packet (e.g., each L2CAP start packet). This information may inform the secondary earpiece 114b of packets (e.g., L2CAP packets) that may be flushed and cannot be relayed from the primary earpiece 114a to the secondary earpiece 114b (however, the primary earpiece 114a may rarely fail to transmit a bitmap packet including the first bitmap to the secondary earpiece 114b). Accordingly, the secondary earpiece 114b may be notified of how many packets corresponding to a particular CID (e.g., A2DP) are missed.
[0156] After the secondary earpiece 114a obtains all possible relay packets from the primary earpiece 114a, the secondary earpiece 114b can determine whether any of the packets are refreshed and cannot be relayed. If the packet is refreshed and cannot be relayed, the secondary earpiece 114b can determine information about the header (e.g., L2CAP header) of the packet from the first bitmap provided by the primary earpiece 114a. Such information can be encapsulated in an L2CAP packet (e.g., with a special CID that has been agreed upon between the controller and the host) and will be sent to the host in the same order as the actual packets were originally sent. In some configurations, events may not be used here because events may be delivered from the data at different times and the order may change. The host can read the special CID, and based on the length indicated in the packet, the host can determine how much data (e.g., audio data) may be missed; accordingly, the host can adjust the play time (TTP) of future packets.
[0157] refer to Fig.13 , an example of bitmap preparation 1300 may be illustrated. In one configuration, reference Figure 4A , the source device 102 may transmit a BT and / or BR / EDR packet 400 that may include a MIC 426 appended to a payload 424 and a CRC 414 appended to a PDU 412 that includes both the payload 424 and the MIC 426. The PDU 412 may include an L2CAP PDU. In another configuration, reference Figure 4B , source device 102 may transmit a BLE packet 450 that may include a MIC 468 appended to a payload 464 and a CRC 458 appended to a PDU 456 that includes both the payload 464 and the MIC 468. The PDU 456 may include an L2CAP PDU.
[0158] The set of packets 120 may include a set of three-slot packets transmitted by the source device 102. The source device 102 may transmit a first packet 1320a, which may correspond to a SEQN of 0. The primary earpiece 114a may receive the first packet 1320a (e.g., of the set of packets 120) and may transmit an ACK in response to the first packet 1320a. However, the source device 102 may not receive the ACK, and therefore, the source device 102 may transmit a second packet 1320b, which may be a retransmission of the first packet 1320a. When the second packet 1320b is a retransmission of the first packet 1320a, the second packet 1320b may also correspond to a SEQN of 0. The primary earpiece 114a may also receive the second packet 1320b and may transmit an ACK in response to the reception of the second packet 1320b. The source device 102 may receive an ACK corresponding to the second packet 1320b and may therefore transmit the next consecutive packet, which may be a third packet 1320c corresponding to a SEQN of 1. However, the primary earpiece 114a may not receive the third packet 1320c, such as due to a synchronization timeout. Because the primary earpiece 114a may not transmit an ACK in response to the third packet 1320c, the source device 102 may retransmit the third packet 1320c as a fourth packet 1320d, which may also correspond to a SEQN of 1 because the fourth packet 1320d is a retransmission of the third packet 1320c.
[0159] Based on the reception of the first packet 1320a, the second packet 1320b, and the fourth packet 1320d, the primary receiver 114a may generate a first bitmap 1322a. The primary receiver 114a may generate a first bitmap 1322a to reflect the reception of the aforementioned first packet 1320a, the second packet 1320b, and the fourth packet 1320d. The primary receiver 114a may generate a first bitmap 1322a to include a NULL value set between each of the bits indicating the reception of the first packet 1320a, the second packet 1320b, and the fourth packet 1320d. For example, each NULL value in the NULL value set may indicate a synchronization timeout, an idle time slot, an error (e.g., a MIC or CRC error), a polling / NULL value reception, etc.
[0160] When generating the first bitmap 1322a, the primary earpiece 114a may mark each "new" packet (i.e., each packet that is not received as a retransmission of another packet) with a first value (e.g., "N"), and may mark each retransmitted packet with a second value (e.g., "R"). For example, the primary earpiece 114a may mark the first packet 1320a with a first value (e.g., "N") in the first bitmap 1322a. The primary earpiece 114a may mark the second packet 1320b with a second value (e.g., "R") in the first bitmap 1322a. The primary earpiece 114a may mark the fourth packet 1320d with the first value (e.g., "N") in the first bitmap 1322a because, even though the fourth packet 1320d is a retransmission of the third packet 1320c, the fourth packet 1320d is a new packet to the primary earpiece 114a (because the third packet 1320c was not received by the primary earpiece 114a).
[0161] The secondary earpiece 114b may not receive the first packet 1320a (eg, due to a synchronization timeout), but may receive a retransmission of the first packet 1320a, which may be a second packet 1320b corresponding to a SEQN of 0. Furthermore, the secondary earpiece 114b may successfully receive both the third packet 1320c and the fourth packet 1320d.
[0162] Based on the reception of the second grouping 1320b, the third grouping 1320c and the fourth grouping 1320d, the secondary earpiece 114b can generate a second bitmap 1322b. The secondary earpiece 114b can generate a second bitmap 1322b to reflect the reception of the aforementioned second grouping 1320b, the third grouping 1320c and the fourth grouping 1320d. The secondary earpiece 114b can generate a second bitmap 1322b to include a null value (NULL) set between each of the bits indicating the reception of the second grouping 1320b, the third grouping 1320c and the fourth grouping 1320d. For example, each null value in the null value set can indicate a synchronization timeout, an idle time slot, an error (e.g., a MIC or CRC error), polling / null value reception, etc.
[0163] When generating the second bitmap 1322b, the secondary earpiece 114b may mark each "new" packet (i.e., each packet that is not received as a retransmission of another packet) with a first value (e.g., "N"), and may mark each retransmitted packet with a second value (e.g., "R"). For example, the secondary earpiece 114b may mark the second packet 1320b with a first value (e.g., "N") in the second bitmap 1322b because, even though the second packet 1320b is a retransmission of the first packet 1320a, the second packet 1320b is a new packet to the secondary earpiece 114b (because the first packet 1320a was not received by the secondary earpiece 114b). The secondary earpiece 114a may mark the third packet 1320c with a first value (e.g., "N") in the second bitmap 1322b. The secondary earpiece 114b may mark the fourth packet 1320d with a second value (eg, "R") in the second bitmap 1322b because the fourth packet 1320d is received by the secondary earpiece 114b as a retransmission of the third packet 1320c.
[0164] refer to Fig.14 , diagram 1400 illustrates a method for generating a Fig.13 1322a of the first bitmap 1320d. The primary earpiece 114a and / or the secondary earpiece 114b may identify a point (e.g., a point corresponding to a time slot) on the first bitmap 1322a (e.g., a bitmap generated by the primary earpiece 114a) at which the source device 102 may have transmitted a previous packet and will transmit a next packet. For example, the primary earpiece 114a and / or the secondary earpiece 114b may traverse the first bitmap 1322a until such a point or boundary 1402 is identified. Illustratively, the identified point or boundary may occur at the boundary after the last null value (NULL) before the bit corresponding to the fourth packet 1320d of the first bitmap 1322a. For example, the primary earpiece 114a and / or the secondary earpiece 114b may traverse the first bitmap 1322a from one occurrence of the first value (eg, “N”) to the next consecutive occurrence of the first value (eg, “N”) to identify the first boundary 1402 .
[0165] refer to Fig.15 , diagram 1500 illustrates a method for Fig.131322a of the first bitmap 1322a. Once the first boundary 1402 is identified, the primary earpiece 114a and / or the secondary earpiece 114b can backtrack until a bit corresponding to the first value (e.g., "N") or the second value (e.g., "R") is identified. For example, the source device 102 may have started transmitting the next packet early, and the primary earpiece 114a may have received the next packet through a retransmission. After backtracking, the primary earpiece 114a and / or the secondary earpiece 114b can identify the second boundary 1502 of the last packet transmitted by the source device 102. If the secondary earpiece 114b has not received the packet at this point or boundary 1502, the secondary earpiece 114b may have missed the packet.
[0166] refer to Fig.16 , diagram 1600 illustrates a method for Fig.13 1322a and the second bitmap 1322b. Once the second boundary 1502 is identified, the secondary earpiece 114b can determine whether the secondary earpiece 114b has received a packet at the second boundary 1502. For example, the secondary earpiece 114b can align the first bitmap 1322a and the second bitmap 1322b so that the time slots are aligned. The secondary earpiece 114b can check until the second boundary 1502 has received a packet. In this example, the secondary earpiece 114b has received a packet with SEQN=0.
[0167] In some configurations, there may be alternative options for the base information in the first bitmap 1322a and / or the second bitmap 1322b. For example, a 3-slot packet spans 3 slots, and therefore, the packet may correspond to the marking of two transmission slots of the source device 102 (in the case of 5 slots, the marking may be used for 3 transmission slots of the source device 102). Depending on which configuration is used for the base information, the first transmission slot may be marked with SEQN or a first value / second value (e.g., "N" / "R"). The remaining transmission slots may be marked with a null value (NULL), or alternatively repeat the same marking as the first transmission slot. The markings of the remaining transmission slots for the first transmission and the retransmission may be different.
[0168] In some configurations, the end packet and start packet information can be simplified in the bitmap 1322a, 1322b. For example, the main earpiece 114a can be configured to prevent the last bit in the first bitmap 1322a from corresponding to a null value (NULL) when sending the first bitmap 1322a. If a null value (NULL) is allowed in the last bit of the first bitmap 1322a, coordination may be involved between the current first bitmap 1322a and the next bitmap. This can be avoided by preventing the null value (NULL) in the last bit so that the first bitmap 1322a shared by the main earpiece 114a is independent of the next bitmap shared by the main earpiece 114a. If the last packet is missing for the secondary earpiece 114b, the secondary earpiece 114b can receive a retransmission in the next bitmap; however, the secondary earpiece 114b can cause the retransmission to be relayed. Therefore, when selecting the first packet bitmap from the next bitmap generated by the first earpiece 114a, the secondary earpiece 114b can ignore the previous non-data bit (if any). Additionally, when the last packet is recovered from the primary earpiece 114a, the secondary earpiece 114b may update the SEQN number.
[0169] refer to Fig.17 , diagram 1700 illustrates an example of a first bitmap 1722a and a second bitmap 1722b. The first bitmap 1722a may be generated by the primary earpiece 114a, and the second bitmap 1722b may be generated by the secondary earpiece 114b. If the secondary earpiece 114b has received a packet marked with the second value (e.g., "R"), the secondary earpiece 114b may not request selective relaying of the packet even if the secondary earpiece 114b receives the packet as a retransmission (but marked with the first value "N" because the secondary earpiece 114b did not receive the initial transmission of the packet).
[0170] refer to Fig.18 , diagram 1800 illustrates an example of a first bitmap 1822a and a second bitmap 1822b. The first bitmap 1822a may be generated by the primary earpiece 114a, and the second bitmap 1822b may be generated by the secondary earpiece 114b. Figure X When the secondary earpiece 114b is not receiving a packet corresponding to the bitmap N of the first bitmap 1822a, the secondary earpiece 114b may request selective relaying of a packet because the secondary earpiece 114b has not received a packet corresponding to the bitmap N of the first bitmap 1822a. Figure X +1, such as sharing the bitmap 1822b of the second bitmap Figure X +1, if there is no corresponding group in the secondary earpiece 114b, the primary earpiece 114a may not be in the first position of the first bitmap 1822a. Figure X+1. The packets before the first new packet and up to the last retransmitted packet may be discarded by the slave earpiece 114b because these packets may have been received by the master earpiece 114a in the first bit of the first bitmap 1822a. Figure X is relayed at the end of .
[0171] refer to Fig.19 , the flow diagram illustrates a method 1900 for constructing a telephone baseband segment from multiple relay packets from the main handset 114a to the secondary handset 114b. A PDU (e.g., an L2CAP PDU) may be sent in one or more baseband packets (also referred to as segments). As used herein, S may be the first segment (e.g., the start segment) sent over the air. S may be identified by LLID=10. C may be the next (one or more) segments ((one or more) continuation segments) sent over the air. C may be identified by LLID=01. LLID=11 may be used for control packets (e.g., packets including LMP information). There may be no start / continue for LMP packets because LMP packets may be sent as a single packet. The link between the main handset 114a and the secondary handset 114b may be referred to as a "partner" link.
[0172] For example, source device 102 may have transmitted 5 packets, and primary and secondary handsets 114a and 114b have prepared corresponding bitmaps for these 5 packets. In this example, packet 1 may have a payload size of 600, packet 2 may have a payload size of 895, packet 3 may have a payload size of 700, packet 4 may have a payload size of 600, and packet 5 may have a payload size of 500. Packet 1 may be an S segment, packet 2 may be an S segment, packet 3 may be an S segment, packet 4 may be a C segment, and packet 5 may be an S segment. If secondary handset 114b has missed packets 2 and 4 and transmits a bitmap indicating this to primary handset 114a (e.g., using the extended bitmap described herein), primary handset 114a may know that secondary handset 114b has missed the S segment for packet 2 and the C segment for packet 4. The primary handset 114a may relay the payload of missing packets 2 and 4 to the secondary handset 114b over the partner link.
[0173] For relaying of the payload of Packet 2, the primary handset 114a may transmit the payload of Packet 2 in two packets (two segments), for example, 679 octets in the first segment S and the remaining 216 octets in the next segment C. The secondary handset 114b may combine the two segments received on the partner link and may reconstruct Packet 2, which is the S segment from the source device 102. For relaying of Packet 4, the primary handset 114a may transmit the payload of Packet 4 in a single baseband packet on the partner link. Packet 4 is an S segment on the partner link, even though Packet 4 corresponds to a C segment from the source device 102. If an LMP packet (or control packet) has been missed by the secondary earpiece 114b, the primary earpiece 114a and the secondary earpiece 114b may not be able to play using the next packet after the LMP packet until at least one of the primary earpiece 114a and / or the secondary earpiece 114b obtains at least one of the following: the missed packet; an empty packet (a packet with only a payload header) replacing the missed LMP packet; and / or information indicating that the missed packet is an LMP packet. Therefore, when the earpieces 114a, 114b use the extended bitmap to determine (e.g., from the basic information) that a particular packet is missed, the earpieces 114a, 114 may correspondingly determine that the missed packet is an LMP packet. Therefore, both the primary earpiece 114a and the secondary earpiece 114b may have a common understanding that an LMP packet missed at the secondary earpiece 114b is not necessarily relayed when missed by the primary earpiece 114a (which handles the control packet).
[0174] With respect to relaying between the primary earpiece 114a and the secondary earpiece 114b, the bitmap exchange PDU may include one of the following: (1) a bitmap stream (e.g., the fields to be included); (2) a clock value for the first bitmap; (3) a packet counter number for the first packet (in the case of an AES-CCM encrypted link between the source device 102 and the primary earpiece 114a). There may be multiple options for relaying, including: (1) the primary earpiece 114a shares its bitmap with the secondary earpiece 114b, and then the secondary earpiece 114b finds out its own missing packets and requests the primary earpiece to relay the missing packets (or vice versa); (2) the primary earpiece 114a shares its bitmap with the secondary earpiece 114b, and then the secondary earpiece 114b finds out the missing packets of the primary earpiece 114a and relays these missing packets one by one (or vice versa); (3) before starting relaying, both the primary earpiece 114a and the secondary earpiece 114b share their bitmaps with each other.
[0175] The main earpiece 114a and the secondary earpiece 114b can share their bitmaps before relaying. When the earpiece 114a / 114b has sent out its own bitmap and has received the bitmap of the peer earpiece 114b / 114a in response or has received the bitmap of the peer earpiece 114b / 114a and has sent its own bitmap in response, the earpiece 114a / 114b can start to relay the packet that the peer earpiece 114b / 114a misses. The bitmap exchange in both directions can uniquely determine the relay order of the sender earpiece 114a / 114b and the receiver earpiece 114b / 114a, thereby reducing or eliminating the need for mapping the packet to be relayed to any metadata of the missing packet from the source device 102. According to the unique relay order (based on the common understanding between the earpiece 114a / 114b), the receiver earpiece 114b / 114a can determine whether the packet is packet 2 or packet 4. Relaying may occur in the context of the latest bitmap exchange. Thus, before sending out a bitmap PDU, the handset 114a / 114b may pause relaying data after sending or flushing (if any) the segments of the relayed packets in the retransmission queue. The bitmap PDU may contain a clock value corresponding to the first slot pair marker in the bitmap stream. Thus, relaying occurs in the context of the latest clock value of the sent and received bitmap PDUs. There may be a timeout associated with the bitmap PDU, similar to the LMP response timeout.
[0176] In operation 1902, a first earpiece (e.g., a primary earpiece 114a) may send a bitmap to a second earpiece (e.g., a secondary earpiece 114b). In operation 1904, the second earpiece may determine the missing packet set based on the received bitmap and based on the bitmap generated by the second earpiece. For example, the second earpiece may compare the received bitmap with the generated bitmap, and the second earpiece may determine which entries are present in the received bitmap but not in the generated bitmap. The second earpiece may transmit information indicating at least one of the generated bitmap and / or the missing packet set to the first earpiece. In operation 1906, the first earpiece may relay the missing baseband packets to the second earpiece. For example, the first earpiece may identify the missing packets based on the information received from the second earpiece. In 1908, the second earpiece may construct a PDU based on the relayed baseband packets. For example, the second earpiece may combine information received from one or more packets, and the second earpiece may provide the combined information to a higher layer.
[0177] Fig. 201 is a diagram illustrating a data flow between a source device 102 and a head mounted device 112 including a primary earpiece 114a and a secondary earpiece 114b. The source device 102 may transmit a set of PDUs 2020a-d (e.g., L2CAP PDUs) to the primary earpiece 114a over a communication link 116. However, to this end, the source device 102 may divide each of the PDUs 2020a-d into a corresponding set of segments (also referred to as baseband packets). Each of the PDUs 2020a-d may include a corresponding one of the start segments S1-S4 2022a-d and a corresponding one of the continuation segments C1-C4 2024a-d. In some aspects, the PDUs 2020a-d may be divided into more than two segments, and therefore, a greater number of continuation segments may be used to transmit the PDUs 2020a-d.
[0178] The primary handset 114a may successfully receive each of the initial segments S1-S4 2022a-d and each of the consecutive segments C1-C4 2024a-d and, therefore, may be able to construct each of the PDUs 2020a-d. Figure 3A In the context of , for example, the primary handset 114a may construct the PDU at the link controller 320, the link manager 320, and / or the L2CAP layer 314. Figure 3B In the context of , for example, the primary handset 114a may construct the PDU at the link layer 370 and / or the L2CAP layer 368. The primary handset 114a may successfully receive a segment when it passes the CRC verification and passes the MIC verification (if present).
[0179] The secondary earpiece 114b can monitor (or sniff) the segments transmitted to the primary earpiece 114a on the communication link 116. Based on the monitoring of the communication link 116, the secondary earpiece 114b can receive a subset of the segments. For example, the secondary earpiece 114b can successfully receive the start segments S1-S2 2022a-b of the first and second PDUs 2020a-b, and can successfully receive the continuation segments C3-C4 2024c-d of the third and fourth PDUs 2020c-d. When a segment passes the CRC verification and passes the MIC verification (if present), the secondary earpiece 114b can successfully receive the segment.
[0180] However, the secondary earpiece 114b may not successfully receive the continuation segments C1-C2 2024a-b of the first and second PDUs 2024a-b, and may not successfully receive the start segments S3-S4 2022c-d of the third and fourth PDUs 2020c-d. For example, when the secondary earpiece 114b does not receive the segment or the segment does not pass the CRC verification and / or does not pass the MIC verification (if any), the secondary earpiece 114b may not successfully receive the segment. Since the secondary earpiece 114b may lack both the start and continuation segments of each of the PDUs 2020a-d, the secondary earpiece 114b may not be able to construct any one of the PDUs 2020a-d based on the monitoring of the communication link 116 without the relay from the main device 114a.
[0181] Based on receiving the segments, each of the handsets 114a-b may determine, for example, to generate a corresponding one of the bitmaps 2030a-b. As the master handset 114a receives each of the start and continuation segments S1-S4, C1-C4 2022a-d, 2024a-d of each of the PDUs 2020a-d, the master handset 114a may generate a first bitmap 2030a including an indication of a SEQN 2032a associated with each of the segments S1-S4, C1-C4 2022a-d, 2024a-d and an LLID 2034a associated with each of the segments S1-S4, C1-C4 2022a-d, 2024a-d. In some aspects, the SEQN 2032a may be the same for each of the segments of the same PDU. In some further aspects, the LLID 2034a may indicate whether each of the segments S1-S4, C1-C4 2022a-d, 2024a-d is a start segment or a continuation segment. For example, an LLID of "10" may indicate that the segment is a start segment, while an LLID of "01" may indicate that the segment is a continuation segment. The secondary earpiece 114b may receive a subset of the segments, and therefore, may generate a second bitmap 2030b that includes information indicating the SEQN 2032b and LLID 2034b of each of the segments S1-S2, C3-C4 2022a-d, 2024c-d that were successfully received.
[0182] Subsequently, the primary earpiece 114a may transmit the first bitmap 2030a to the secondary earpiece 114b. In some aspects, the primary earpiece 114a may transmit additional information associated with the first bitmap 2030a to the secondary earpiece 114b (e.g., in the same message as the first bitmap 2030a or in a different (one or more) message). The additional information may include one or more of the following: a bitmap stream of the first bitmap 2030a, a clock value associated with the first bitmap 2030a, and / or a value of a packet counter corresponding to the first packet associated with the first bitmap 2030a (e.g., when the communication link 116 is an AES-CCM encrypted link).
[0183] According to some aspects, the secondary earpiece 114b can determine the segments that were not successfully received by the secondary earpiece 114b based on the first bitmap 2030a and / or based on the second bitmap 2030b (eg, as described above with respect to Figure 6-7 , 9, 10 and 14-18 in one or more of the description). For example, the secondary earpiece 114b can compare the first and second bitmaps 2030a-b to determine which segments are indicated as received in the first bitmap 2030a, but not present in the second bitmap 2030b. As illustrated, the secondary earpiece 114b can determine that the secondary earpiece 114b did not successfully receive the first two continuation segments C1-C2 2024a-b, and, further, did not successfully receive the second two start segments S3-S4 2022c-d.
[0184] In one example configuration, the secondary earpiece 114b may begin processing the first start segment S1 2022a, such as when the secondary earpiece 114b determines that the secondary earpiece 114b has not successfully received the first continuation segment C1 2024a. For example, the controller 306 / 356 of the secondary earpiece 114b may provide the first start segment S1 2022a to the host 304 / 354. Further, the secondary earpiece 114b (e.g., the controller 306 / 356) may determine the length of the missing first continuation segment C1 2024a based on the length 2026 of the first PDU 2020a, which may be carried in the header of the first start segment S1 2022a. For example, the secondary earpiece 114b may subtract the length of the successfully received first starting segment S1 2022a from the length 2026 of the first PDU 2020a indicated in the header of the first starting segment S1 2022a.
[0185] The secondary earpiece 114b may send information indicating the segments that were not successfully received by the secondary earpiece 114b to the primary earpiece 114a. In some aspects, the information may identify the segments that were not successfully received--for example, the information may be a list including information identifying each of the segments that were not successfully received. In some other aspects, the secondary earpiece 114b may transmit a second bitmap 2030b to the primary earpiece 114a, which may indicate the segments that were not successfully received to the primary earpiece 114a.
[0186] In some aspects, the secondary earpiece 114b may transmit additional information associated with the second bitmap 2030b to the primary earpiece 114a (e.g., in the same message as the second bitmap 2030b or in a different (one or more) message). The additional information may include one or more of the following: a bitmap stream of the second bitmap 2030b, a clock value associated with the second bitmap 2030b, and / or a value of a packet counter corresponding to the first packet associated with the second bitmap 2030b (e.g., when the communication link 116 is an AES-CCM encrypted link).
[0187] The primary earpiece 114a may receive information indicating segments that were not successfully received by the secondary earpiece 114b. Further, the primary earpiece 114a may determine the segments that were not successfully received by the secondary earpiece 114b. In one example, the primary earpiece 114a may determine the unsuccessfully received segments based on information identifying each of the segments that were not successfully received by the secondary earpiece 114b (e.g., a list received from the secondary earpiece 114b, the list including information identifying each of the segments that were not successfully received), which may have been received by the primary earpiece 114a based on the first bitmap 2030a transmitted to the secondary earpiece 114b. In another example, the primary earpiece 114a may determine the unsuccessfully received segments based on the first bitmap 2030a and the second bitmap 2030b (e.g., as described above with respect to Figure 6-7 , 9, 10 and 14-18 in one or more of the description). For example, the primary earpiece 114a can compare the first and second bitmaps 2030a-b to determine which segments are indicated as received in the first bitmap 2030a, but not present in the second bitmap 2030b. As illustrated, the primary earpiece 114a can determine that the secondary earpiece 114b has not successfully received the first two continuation segments C1-C2 2024a-b, and, further, has not successfully received the second two start segments S3-S4 2022c-d.
[0188] When the primary earpiece 114a determines the segments that were not successfully received by the secondary earpiece 114a, the primary earpiece 114a may relay each of the unsuccessfully received segments to the secondary earpiece 114a. To this end, the primary earpiece 114a may divide each of the unsuccessfully received segments into two or more segments (or baseband packets). For example, the main handset 114a may divide the unsuccessfully received first continuation segment C1 2024a into the first relay start segment S(C1) 2040a and the first relay continuation segment C(C1) 2042a, divide the unsuccessfully received second continuation segment C2 2024b into the second relay start segment S(C2) 2040b and the second relay continuation segment C(C2) 2042b, divide the unsuccessfully received third start segment C3 2022c into the third relay start segment S(S3) 2040c and the third relay continuation segment C(S3) 2042c, and divide the unsuccessfully received fourth start segment S4 2022d into the fourth relay start segment S(S4) 2040d and the fourth relay continuation segment C(S4) 2042d. The primary earpiece 114a may then transmit the relay segments 2040a-d, 2042a-d to the secondary earpiece 114b over the short-range communication link 118. Potentially, the primary earpiece 114 may transmit the relay segments 2040a-d, 2042a-d sequentially such that the secondary earpiece 114b receives the relay segments 2040a-d, 2042a-d sequentially.
[0189] The secondary earpiece 114b may receive the relay segments 2040a-d, 2042a-d correspondingly from the primary earpiece 114a over the short-range communication link 118. When the secondary earpiece 114b receives the segment S(C1) 2040a over the short-range communication link 118, the secondary earpiece 114b may determine, for example, based on the length of the unsuccessfully received continuation segment C1 2024a, that the segment S(C1) 2040a is the starting segment corresponding to the continuation segment C1 2024a. In some aspects, the controller 306 / 356 of the secondary earpiece 114b may provide the segment S(C1) 2040a to the host 304 / 354 while waiting to receive the remaining continuation segments to complete the segment C1 2024a.
[0190] Then, the secondary earpiece 114b may receive a continuation segment C(C1) 2042a corresponding to the unsuccessfully received first continuation segment C1 2024a. Upon receiving, the controller 306 / 356 of the secondary earpiece 114b may provide the segment C(C1) 2042a to the host 304 / 354, and the host 304 / 354 may construct the first PDU 2020a based on the received segment determined to correspond to the first PDU 2020a.
[0191] Similarly, the secondary earpiece 114b can receive the segment S(C2) 2040b on the short-range communication link 118, and the secondary earpiece 114b can determine, for example, based on the length of the unsuccessfully received continuation segment C2 2024b that the segment S(C2) 2040b is the starting segment corresponding to the continuation segment C2 2024b. The controller 306 / 356 of the secondary earpiece 114b can provide the segment S(C2) 2040b to the host 304 / 354 while waiting to receive the remaining continuation segments to complete the segment C2 2024b. Next, the secondary earpiece 114b may receive a continuation segment C(C2) 2042b corresponding to the unsuccessfully received second continuation segment C2 2024b, and the controller 306 / 356 may provide the segment C(C2) 2042b to the host 304 / 354 so as to construct a second PDU 2020b based on the received segment determined to correspond to the second PDU 2020b.
[0192] Subsequently, the secondary earpiece 114b may receive the third relay start segment S(S3) 2040c, and the controller 306 / 356 may provide the third relay start segment S(S3) 2040c to the host 304 / 354 while waiting to receive the remaining continuation segments. According to some configurations, the secondary earpiece 114b may determine the length of the third PDU 2020c based on the information carried in the header of the relay start segment S(S3) 2040c, and thus, the secondary earpiece 114b may determine the length of the unsuccessfully received third start segment S3 2022c, because the secondary earpiece 114b has successfully received the third continuation segment C3 2024c, and can thereby determine its own length. The secondary handset 114b may then receive the relay continuation segment C(S3) 2042c, which the controller 306 / 356 may provide to the host 304 / 354 to construct the third PDU 2020c.
[0193] Since the primary earpiece 114a can transmit the segments sequentially, the secondary earpiece 114b can continuously receive the fourth relay start segment S(S4) 2040d, and the controller 306 / 356 can provide the fourth relay start segment S(S4) 2040d to the host 304 / 354. Then, the secondary earpiece 114b can receive the relay continuation segment C(S4) 2042d that completes the fourth PDU 2020d. The controller 306 / 356 of the secondary earpiece 114b can provide the relay continuation segment C(S4) 2042d to the host 304 / 354, and the host 304 / 354 can construct the fourth PDU 2020d and thereby complete the construction of the PDU 2020a-d sequence transmitted by the source device 102.
[0194] In another configuration, the secondary handset 114b can avoid determining the length of those PDUs according to the header corresponding to the starting segment of the PDU. In one configuration, the bitmap 2030a-b can be extended to indicate two values other than "start" and "end"--for example, for each segment, the bitmap 2030a-b can be configured to additionally indicate "start-end" and "continue-end". Specifically, the LLID field can be used to indicate one of the "start", "continue", "start-end" and "continue-end" of each successfully received segment. In other words, the LLID field of the bitmap 2030a-b can be used to convey the information indicating the end of the relay of the missing segment (for example, the segment relayed by the primary handset 114a on the short-range communication link 118). This extension of the LLID field can facilitate the relay on a separate LT-ADDR or on another configuration that separates a communication link (for example, communication link 116) from a short-range communication link (for example, short-range communication link 118) between the handsets.
[0195] In a further configuration, the first bitmap 2030a transmitted by the primary earpiece 114a may additionally indicate information associated with the L2CAP header (e.g., CID and length) of each L2CAP start segment marked by the primary earpiece 114a in the first bitmap 2030a. The additional indication information may inform the secondary earpiece 114b about L2CAP segments that may have been refreshed or otherwise unable to be relayed. Accordingly, the secondary earpiece 114b may obtain information about the number of packets corresponding to a specific CID (A2DP), which may not be indicated in the first bitmap 2030a. Based on the information about the segments that were missed by the secondary earpiece 114b and / or not relayed to the secondary earpiece 114b, the secondary earpiece 114b may determine the amount of data (e.g., audio data of an audio stream) that was missed, and may adjust the TTP corresponding to future packets accordingly.
[0196] Fig.21 is a flow chart of a wireless communication method 2100 performed by a first device. For example, the first device can be a secondary earpiece, such as the secondary earpiece 114b. In some configurations, Figure 2 The wireless device 200 may perform the method 2100. In some other configurations, the method 2100 may be implemented by Figure 3A Protocol stack 300 or Figure 3B The method 2100 is executed by the first device of the protocol stack 350. According to various aspects, one or more operations of the method 2100 can be transposed, omitted and / or performed concurrently.
[0197] At 2102, the first device may monitor the second communication link to detect a second set of packets. The first device may be configured to communicate with the second device on the first communication link, and the second communication link may be established between the second device and the third device. The first device may monitor the second communication link, for example, by determining a resource configured between the second device and the third device, and then sniffing packets on the determined resource to receive the packets. For example, referring to Figure 1 , the secondary earpiece 114b may monitor the communication link 116 to detect a set of packets 120 transmitted by the source device 102 to the primary earpiece 114a.
[0198] At 2104, the first device may determine a second bitmap indicating a second set of packets received by the first device from the third device. In various aspects, each packet in the second set of packets may include at least one segment (or baseband packet) of a PDU. For example, the first device may receive each packet in the second set of packets, and then the first device may mark a SEQN in the second bitmap for each successfully received packet in the second set of packets, and may mark a LLID in the second bitmap for each successfully received packet in the second set of packets. For example, referring to Fig. 20 , the secondary earpiece 114b may determine a second bitmap 2030b that indicates the segments S1-S2, C3-C4 2022a-b, 2024c-d received by the secondary earpiece 114b from the source device 102.
[0199] At 2106, the first device may receive a first bitmap from the second device on the first communication link, the first bitmap indicating a first set of packets received by the second device from the third device on the second communication link. In some aspects, the first bitmap indicates a corresponding LLID for each packet in the first set of packets received by the second device. For example, referring to Fig. 20 , the secondary earpiece 114b may receive a first bitmap 2030a from the primary earpiece 114a over the short-range communication link 118 that indicates the segments S1-S4, C1-C4 2022a-d, 2024a-d that the primary earpiece 114a received from the source device 102 over the communication link 116.
[0200] At 2108, the first device may transmit information indicating a third set of packets to the second device over the first communication link based on the first bitmap and based on the second bitmap. The third set of packets may be those packets transmitted by the third device but not successfully received by the first device. In some aspects, the information indicating the third set of packets may be based on one or more LLIDs corresponding to one or more packets in the first set of packets and / or one or more LLIDs corresponding to one or more packets in the second set of packets. For example, referring to Fig. 20, the secondary earpiece 114b may transmit information indicating segments S3-S4, C1-C2 2022c-d, 2024a-b that were not successfully received by the secondary earpiece 114b to the primary earpiece 114a over the short-range communication link 118 based on the first bitmap 2030a and based on the second bitmap 2030b.
[0201] At 2110, the first device may transmit a second bitmap to the second device over the first communication link. In some aspects, the second bitmap may be information indicating a third set of packets (e.g., 2108 and 2110 may be combined). In some aspects, the second bitmap indicates a corresponding LLID for each packet in the second set of packets received by the first device. For example, referring to Fig. 20 , the secondary earpiece 114b may transmit a second bitmap 2030b indicating the segments S1 - S2 , C3 - C4 2022a - b , 2024c - d successfully received by the secondary earpiece 114b from the source device 102 to the primary earpiece 114a over the short-range communication link 118 .
[0202] At 2112, the first device may transmit to the second device over the first communication link at least one of: a bitmap stream of a second bitmap, a clock value associated with the second bitmap, and / or a packet counter value associated with the second bitmap. Fig. 20 , the secondary earpiece 114b may transmit at least one of the following to the primary earpiece 114a over the short-range communication link 118: a bitmap stream of the second bitmap 2030b, a clock value associated with the second bitmap 2030b, and / or a packet counter value associated with the second bitmap 2030b.
[0203] At 2114, the first device may receive a fourth set of packets from the second device on the first communication link based on transmitting information indicating the third set of packets. The fourth set of packets may include information from the third set of packets—for example, each packet in the fourth set of packets may be a relay of at least a portion of a corresponding packet in the third set of packets. In some aspects, each packet in the fourth set of packets may be one of a starting segment or a continuation segment of a packet in the third set of packets. For example, referring to Fig. 20 , the secondary earpiece 114b can receive segments S(C1), C(C1), S(C2), C(C2), S(S3), C(S3), S(S4), C(S4) 2040a-d, 2042a-d from the primary earpiece 114a on the short-range communication link 118, which can correspond to a corresponding one of the segments S3-S4, C1-C2 2022c-d, 2024a-b that were not successfully received by the secondary earpiece 114b.
[0204] At 2116, the first device may construct a corresponding PDU based on one or more of the second group set and / or at least one of the one or more of the fourth group set. Each of the second group set and each of the fourth group set may be a segment corresponding to the corresponding PDU. In some aspects, the first device may identify a start segment and each of one or more continuation segments corresponding to the corresponding PDU, and then, the first device may combine information from the corresponding start segment and one or more continuation segments to recover the corresponding PDU. In some aspects, the corresponding PDU may be constructed based on a first length of the corresponding PDU and at least one second length of at least one of the one or more of the second group set and / or at least one of the one or more of the fourth group set. For example, referring to Fig. 20 , the secondary earpiece 114b can construct each of the PDUs 2020a-d based on the segment sets S1-S2, C3-C4 2022a-b, 2024c-d successfully received by the secondary earpiece 114b from the source device 102 and based on the segments S(C1), C(C1), S(C2), C(C2), S(S3), C(S3), S(S4), C(S4) 2040a-d successfully received by the secondary earpiece 114b from the primary earpiece 114a.
[0205] Fig. 22 is a flow chart of a method 2200 of wireless communication performed by a first device. For example, the first device may be a primary earpiece, such as the primary earpiece 114a. In some configurations, Figure 2 The wireless device 200 may perform the method 2200. In some other configurations, the method 2200 may be implemented by Figure 3A Protocol stack 300 or Figure 3B The method 2200 is executed by the first device of the protocol stack 350. According to various aspects, one or more operations of the method 2200 can be transposed, omitted and / or performed concurrently.
[0206] At 2202, a first device may establish a first communication link to receive a first set of packets from a source device. The first device may be associated with a second device, which may be configured to passively monitor the first communication link to receive a second set of packets. The first device may be configured to communicate with the second device over a second communication link, such as a short-range communication link. The first device may establish the first communication link, for example, by associating with the source device and then determining resources configured between the first device and the source device. For example, referring to Figure 1 , the primary handset 114a may establish a communication link 116 with the source device 102 to receive the set of packets 120 transmitted by the source device 102 to the primary handset 114a.
[0207] At 2204, the first device may determine a first bitmap indicating a first set of packets received by the first device from a third device on the first communication link. In various aspects, each packet in the first set of packets may include at least one segment (or baseband packet) of a PDU. For example, the first device may receive each packet in the first set of packets, and then the first device may mark a SEQN in the first bitmap for each packet in the first set of packets that is successfully received, and may mark a LLID for each packet in the first set of packets that is successfully received. For example, referring to Fig. 20 , the primary handset 114a may determine a first bitmap 2030a that indicates the segments S1 - S4 , C1 - C4 2022a - d , 2024a - d received by the primary handset 114a from the source device 102 over the communication link 116 .
[0208] At 2206, the first device may transmit to the second device over the second communication link a first bitmap indicating a first set of packets received by the first device from the third device over the first communication link. Fig. 20 , the primary earpiece 114a may transmit a first bitmap 2030a to the secondary earpiece 114b over the short-range communication link 118 indicating the segments S1-S4, C1-C4 2022a-d, 2024a-d that the primary earpiece 114a successfully received from the source device 102 over the communication link 116.
[0209] At 2208, the first device may transmit to the second device over the second communication link at least one of: a bitmap stream of the first bitmap, a clock value associated with the first bitmap, and / or a packet counter value associated with the first bitmap. Fig. 20 , the primary earpiece 114a may transmit at least one of the following to the secondary earpiece 114b over the short-range communication link 118: a bitmap stream of the first bitmap 2030a, a clock value associated with the first bitmap 2030a, and / or a packet counter value associated with the first bitmap 2030a.
[0210] At 2210, the first device may receive a second bitmap from the second device on the second communication link, the second bitmap indicating a second set of packets that the second device successfully received from the source device. In some aspects, the second bitmap indicates a corresponding LLID for each packet in the second set of packets received by the second device. In some aspects, the second bitmap may indicate a set of packets transmitted by the source device but not successfully received by the second device. For example, referring to Fig. 20 , the primary earpiece 114a may receive a second bitmap 2030b from the secondary earpiece 114b over the short-range communication link 118 indicating the segments S1 - S2 , C3 - C4 2022a - b , 2024c - d successfully received by the secondary earpiece 114b from the source device 102 .
[0211] At 2212, the first device may determine a third set of packets based on at least one of the first bitmap and / or the second bitmap. The third set of packets may be those packets transmitted by the source device but not successfully received by the second device. For example, the first device may compare entries of the first bitmap with entries of the second bitmap, and then, the first device may identify packets that have associated entries in the first bitmap but do not have associated entries in the second bitmap, which may indicate packets that were not successfully received by the second device. In some further aspects, the first device may determine the third set of packets based on one or more LLIDs of the first bitmap corresponding to one or more packets in the first set of packets and / or one or more LLIDs of the second bitmap corresponding to one or more packets in the second set of packets. For example, referring to Fig. 20 , the primary earpiece 114a may determine based on at least one of the first bitmap 2030a and / or the second bitmap 2030b that the segments S3-S4, C1-C2 2022c-d, 2024a-b were not successfully received by the secondary earpiece 114b.
[0212] At 2214, the first device may transmit a fourth set of packets to the second device over the second communication link. The fourth set of packets may include information from the third set of packets—for example, each packet in the fourth set of packets may be a relay of at least a portion of a corresponding packet in the third set of packets. In some aspects, each packet in the fourth set of packets may be one of a starting segment or a continuation segment of a packet in the third set of packets. For example, referring to Fig. 20 , the primary earpiece 114a may transmit segments S(C1), C(C1), S(C2), C(C2), S(S3), C(S3), S(S4), C(S4) 2040a-d, 2042a-d to the secondary earpiece 114b on the short-range communication link 118, which may correspond to a corresponding one of the segments S3-S4, C1-C2 2022c-d, 2024a-b that were not successfully received by the secondary earpiece 114b.
[0213] It should be understood that the specific order or hierarchy of each box in the disclosed process / flowchart is an illustration of an exemplary approach. It should be understood that the specific order or hierarchy of each box in these process / flowcharts can be rearranged based on design preferences. In addition, some boxes can be combined or omitted. The attached method claims present the elements of various boxes in an exemplary order and are not meant to be limited to the specific order or hierarchy presented.
[0214] 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 easily understood by those skilled in the art, and the universal principles defined in this article can be applied to other aspects. Thus, the claims are not intended to be limited to the aspects shown in this article, but should be granted the full scope consistent with the claims in language, wherein the singular reference of the elements is not intended to represent "there is and only one", but "one or more", unless otherwise stated. The wording "exemplary" is used in this article to mean "used as an example, instance, or explanation". Any aspect described as "exemplary" herein does not have to be interpreted as being superior to or superior to other aspects. Unless otherwise stated, the term "some / certain" 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 multiple A, multiple B or multiple C. Specifically, 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" may be A only, B only, C only, 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 of the various aspects described throughout this disclosure that are currently or hereafter known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be covered by the claims. In addition, nothing disclosed herein is intended to be dedicated to the public, regardless of whether such disclosure is expressly recorded in the claims. The terms "module," "mechanism," "element," "device," and the like may not be a substitute for the term "means." Thus, no claim element should be interpreted as a means-plus-function unless the element is explicitly stated using the phrase "means for..."
Claims
1. A method for wireless communication by a first device, the method include: receiving, from a second device on a first communications link, a first bitmap indicating a first set of packets received by the second device from a third device on a second communications link; determining a second bitmap indicating a second set of packets received by the first device from the third device, each of the first set of packets and the second set of packets comprising at least one segment of a protocol data unit (PDU); transmitting, based on the first bitmap and based on the second bitmap, information indicating a third set of packets to the second device over the first communication link, the third set of packets not successfully received by the first device from the third device; as well as Based on transmitting the information indicative of the third set of packets, a fourth set of packets is received from the second device over the first communication link, the fourth set of packets including information from the third set of packets.
2. The method of claim 1, further comprising: include: The second bitmap is transmitted to the second device over the first communication link.
3. The method of claim 2, further comprising: include: At least one of: a bitmap stream of the second bitmap, a clock value associated with the second bitmap, or a packet counter value associated with the second bitmap is transmitted to the second device over the first communication link.
4. The method according to claim 2, in, The information indicating the third packet set includes the second bitmap.
5. The method according to claim 2, in, Prior to receiving the fourth set of packets, the second bitmap is transmitted to the first device.
6. The method of claim 1, further comprising: include: constructing a corresponding PDU based on at least one of one or more of the second packet set or one or more of the fourth packet set, Wherein the at least one of one or more of the second packet sets or the at least one of one or more of the fourth packet sets includes at least one segment of the corresponding PDU.
7. The method according to claim 6, in, The corresponding PDU is constructed based on the first length of the corresponding PDU and at least one second length of the at least one of one or more of the second packet sets or one or more of the fourth packet sets.
8. The method according to claim 1, in, The first bitmap indicates a corresponding first link layer identifier (LLID) for each packet in the first packet set and the second bitmap indicates a corresponding second LLID for each packet in the second packet set, and wherein the information indicating the third packet set is based on at least one of the one or more first LLIDs or the one or more second LLIDs.
9. The method of claim 1, further comprising: include: monitoring the second communication link to detect the second set of packets, The second communication link is established between the second device and the third device.
10. A method for wireless communication by a first device, the method include: determining a first bitmap indicative of a first set of packets successfully received by the first device from a source device over a first communications link; receiving, from a second device over a second communications link, a second bitmap indicating a second set of packets received by the second device from the source device, each of the first set of packets and the second set of packets comprising at least one segment of a protocol data unit (PDU); determining a third set of packets based on at least one of the first bitmap or the second bitmap, the third set of packets not successfully received by the second device from the source device; as well as A fourth set of packets is transmitted to the second device over the second communication link based on the third set of packets, the fourth set of packets including information from the third set of packets.
11. The method of claim 10, further comprising: include: The first bitmap is transmitted to the second device over the second communication link, wherein the third set of packets is determined based on transmitting the first bitmap.
12. The method according to claim 11, in, Prior to transmitting the fourth set of packets, the first bitmap is transmitted to the second device.
13. The method of claim 10, further comprising: include: At least one of: a bitmap stream of the first bitmap, a clock value associated with the first bitmap, or a packet counter value associated with the first bitmap is transmitted to the second device over the second communication link.
14. The method according to claim 10, in, The fourth packet set includes at least two packets, each packet carrying a portion of a payload of a packet in the third packet set.
15. The method according to claim 10, in, The first bitmap indicates a corresponding first link layer identifier (LLID) for each packet in the first packet set and the second bitmap indicates a corresponding second LLID for each packet in the second packet set, and wherein the third packet set is determined based on at least one of the one or more first LLIDs or the one or more second LLIDs.
16. The method of claim 10, in, Each packet in the fourth set of packets indicates a payload length corresponding to at least a portion of a payload length of a corresponding one of the packets in the third set of packets.
17. The method of claim 10, further comprising: include: establishing the first communication link with the source device to receive the first set of packets, Wherein the second device is configured to passively monitor the first communication link to receive the second set of packets.
18. An apparatus for wireless communication by a first device, the apparatus include: Memory; as well as at least one processor communicatively connected to the memory, the at least one processor configured to: receiving, from a second device on a first communications link, a first bitmap indicating a first set of packets received by the second device from a third device on a second communications link; determining a second bitmap indicating a second set of packets received by the first device from the third device, each of the first set of packets and the second set of packets comprising at least one segment of a protocol data unit (PDU); transmitting, based on the first bitmap and based on the second bitmap, information indicating a third set of packets to the second device over the first communication link, the third set of packets not successfully received by the first device from the third device; as well as A fourth set of packets is received from the second device over the first communication link based on the transmission of the information indicative of the third set of packets, the fourth set of packets including information from the third set of packets.
19. The apparatus of claim 18, wherein the at least one processor is further configured to: The second bitmap is transmitted to the second device over the first communication link.
20. The apparatus of claim 19, wherein the at least one processor is further configured to: At least one of: a bitmap stream of the second bitmap, a clock value associated with the second bitmap, or a packet counter value associated with the second bitmap is transmitted to the second device over the first communication link.
21. The device according to claim 19, in, The information indicating the third packet set includes the second bitmap.
22. The device according to claim 19, in, Prior to receiving the fourth set of packets, the second bitmap is transmitted to the first device.
23. The apparatus of claim 18, wherein the at least one processor is further configured to: constructing a corresponding PDU based on at least one of one or more of the second packet set or one or more of the fourth packet set, Wherein the at least one of one or more of the second packet sets or the at least one of one or more of the fourth packet sets includes at least one segment of the corresponding PDU.
24. The device according to claim 23, in, The corresponding PDU is constructed based on the first length of the corresponding PDU and at least one second length of the at least one of one or more of the second packet sets or one or more of the fourth packet sets.
25. The device of claim 18, in, The first bitmap indicates a corresponding first link layer identifier (LLID) for each packet in the first packet set and the second bitmap indicates a corresponding second LLID for each packet in the second packet set, and wherein the information indicating the third packet set is based on at least one of the one or more first LLIDs or the one or more second LLIDs.
26. An apparatus for wireless communication by a first device, the apparatus include: Memory; as well as at least one processor communicatively connected to the memory, the at least one processor configured to: determining a first bitmap indicative of a first set of packets successfully received by the first device from a source device over a first communications link; receiving, from a second device over a second communications link, a second bitmap indicating a second set of packets received by the second device from the source device, each of the first set of packets and the second set of packets comprising at least one segment of a protocol data unit (PDU); determining a third set of packets based on at least one of the first bitmap or the second bitmap, the third set of packets not successfully received by the second device from the source device; as well as A fourth set of packets is transmitted to the second device over the second communication link based on the third set of packets, the fourth set of packets including information from the third set of packets.
27. The apparatus of claim 26, wherein the at least one processor is further configured to: transmitting the first bitmap to the second device over the second communication link, Wherein the third packet set is determined based on transmitting the first bitmap.
28. The device according to claim 27, in, Prior to transmitting the fourth set of packets, the first bitmap is transmitted to the second device.
29. The apparatus of claim 26, wherein the at least one processor is further configured to: At least one of: a bitmap stream of the first bitmap, a clock value associated with the first bitmap, or a packet counter value associated with the first bitmap is transmitted to the second device over the second communication link.
30. The device of claim 26, in, The fourth packet set includes at least two packets, each packet carrying a portion of a payload of a packet in the third packet set.
Citation Information
Patent Citations
System and method for construction of a protocol data unit using selective relay
US20200329400A1
Method and apparatus for transmitting and receiving a packet via high speed downlink packet access
CN101558621A
System, method and apparatus for retransmitting protocol data units in wireless communications
CN103918212A
Extended bluetooth communication modes
CN105898672A
Techniques for protecting communications in wireless local area networks
CN107439035A
