TWS device transmission seamless relay method and TWS device
By implementing a seamless relay method in the TWS device, using the second device to monitor and cache data packets between the sound source device and the first device, and perform relay operations according to the relay conditions, the problem of insufficient RF performance of TWS headphones is solved, and better anti-interference ability and lower power consumption are achieved.
Patent Information
- Application Number
- CN202111322977.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-11-09
AI Technical Summary
The RF performance of TWS headphones is insufficient, resulting in poor anti-interference ability, short test distance, and poor wearable barrier experience.
A seamless relay method for transmitting a TWS device is proposed, and the data packets of the first device and the sound source device are monitored through the second device, and the feedback data packet is received and cached, and whether to send the cached data packets to the sound source device is determined according to the relay conditions. The relay condition includes continuously receiving the same data packet or data packets containing negative response information.
The concept of masterless slave switching is realized, the relay overhead is short, which reduces the number of transmission retransmissions of the main headphones, reduces power consumption, and improves the experience.
Smart Images

Figure CN114422987B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a TWS device transmission seamless relay method and a TWS device. Background Art
[0002] With the development of Bluetooth wireless technology, TWS true wireless earphones have become the mainstream of the market. It is undeniable that the RF performance of TWS earphones is the key point of TWS earphones. Due to insufficient RF performance, poor anti-interference ability, short test distance, and poor wearing experience have become the pain points of major TWS earphone manufacturers.
[0003] To address the insufficient RF performance, major manufacturers have come up with various solutions, such as master-slave switching technology, each with its own characteristics and shortcomings. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method for seamless relay of TWS device transmission, which can improve transmission performance.
[0005] The present invention also provides a TWS device.
[0006] According to the first aspect of the present invention, a TWS device transmission seamless relay method is used for a second device, and the second device is used to monitor data packets of a first device and a sound source device, receive a first data packet sent by the sound source device to the first device, receive a second data packet fed back by the first device to the sound source device and cache it; the method includes the following steps: according to a relay condition, determining to send a second data packet to the sound source device; the relay condition includes determining that the sound source device continuously sends a first number of identical data packets or determining that the sound source device continuously sends a second number of data packets containing negative response information.
[0007] The seamless relay method for TWS device transmission according to the embodiment of the present invention has at least the following beneficial effects: the seamless relay method for TWS device transmission according to the embodiment of the present invention has no master-slave switching concept, does not require master-slave switching time, and the relay overhead time is very short, which can effectively reduce the number of retransmissions of the main earphone, reduce power consumption, and improve the experience.
[0008] According to some embodiments of the present invention, continuously receiving a first number of identical data packets from the sound source device includes: receiving a first data packet sent by the sound source device to the first device in a first communication time slot, and recording the type and content of the first data packet; receiving a second data packet fed back to the sound source device by the first device in a second communication time slot and caching it; receiving a third data packet sent by the sound source device to the first device in a third communication time slot, determining that the first data packet and the third data packet are the same data packets based on the type and content of the first data packet and the third data packet, and adding 1 to a first count value; the first count value is equal to the first value.
[0009] According to some embodiments of the present invention, determining that the sound source device continuously sends a second number of data packets containing negative response information includes: receiving a first data packet sent by the sound source device to the first device in a first communication time slot; receiving a second data packet fed back to the sound source device by the first device in a second communication time slot and caching it; receiving a third data packet sent by the sound source device to the first device in a third communication time slot, the header of the third data packet carries negative response information, and the second count value is increased by 1; the second count value is equal to the second value.
[0010] According to some embodiments of the present invention, sending the second data packet to the sound source device includes: sending the second data packet to the sound source device through a first channel in the next communication time slot; the first channel is the same as the channel used by the first device to feed back the second data packet to the sound source device.
[0011] According to some embodiments of the present invention, determining that the first data packet and the third data packet are the same data packet based on the type and content of the first data packet and the third data packet includes: parsing the first data packet and the third data packet to obtain corresponding data packet types and contents; the contents include synchronization codes, headers, and payload data; and performing CRC check on the synchronization codes, headers, and payload data of the first data packet and the third data packet to determine that they are the same data packets.
[0012] According to the second aspect of the present invention, a TWS device includes: a first receiving module for receiving a first data packet sent by a sound source device to a first device; a second receiving module for receiving a second data packet fed back by the first device to the sound source device; a first sending module for sending the second data packet to the sound source device; and a data packet parser for determining, based on a relay condition, whether to send the second data packet to the sound source device through the first sending module; wherein the relay condition includes determining that the sound source device continuously sends a first number of identical data packets or determining that the sound source device continuously sends a second number of data packets containing negative response information.
[0013] The TWS device according to the embodiment of the present invention has at least the following beneficial effects: the TWS device according to the embodiment of the present invention has no master-slave switching concept, does not require master-slave switching time, and the relay overhead time is very short, which can effectively reduce the number of retransmissions of the main earphone, reduce power consumption, and improve the experience.
[0014] According to some embodiments of the present invention, the data packet parser includes: a parsing unit for parsing the first data packet and the second data packet; a second data packet caching unit for caching the second data packet; a programmable trigger condition unit for setting a relay condition in a programmable manner; a condition matching analysis unit for determining whether the relay condition is satisfied based on the data packet parsing result and the relay condition; and an analysis result processing unit for receiving the analysis result of the condition matching analysis unit and performing corresponding processing. The programmable data packet parser of this embodiment is very flexible and can be adapted to various specific scenarios.
[0015] According to some embodiments of the present invention, the parsing unit includes: a synchronization code parsing unit for parsing a data packet synchronization code; a header parsing unit for parsing a data packet header; and a payload data parsing unit for parsing a data packet payload data.
[0016] According to some embodiments of the present invention, the analysis result processing unit is used to obtain the second data packet in the second data packet cache unit and output it to the first sending module; the first sending module is used to send the second data packet to the sound source device through the first channel in the next communication time slot; wherein, the first channel is the same as the channel used by the first device to feedback the second data packet to the sound source device.
[0017] According to some embodiments of the present invention, the condition matching analysis unit is used to perform CRC check on the synchronization code, header and payload data of the data packet.
[0018] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which:
[0020] Figure 1 Schematic diagram of the structure of a TWS device according to an embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of the structure of a data packet parser for a TWS device according to an embodiment of the present invention;
[0022] Figure 3 Schematic diagram of a TWS device implementing transmission relay according to an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of input and output signals of a Bluetooth packet parser according to an embodiment of the present invention;
[0024] Figure 5 Schematic diagram of implementing transmission relay according to the first relay condition according to an embodiment of the present invention;
[0025] Figure 6 A flowchart of a method for determining whether a sound source device continuously sends a first number of identical data packets according to an embodiment of the present invention;
[0026] Figure 7 Schematic diagram of implementing transmission relay according to the second relay condition in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.
[0028] In the description of the present invention, "several" means one or more, "more" means two or more, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The use of "first" and "second" in the description is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, implicitly specifying the number of the indicated technical features, or implicitly specifying the order of the indicated technical features.
[0029] TWS: True wireless Stereo (true wireless stereo headphones).
[0030] The present invention provides a TWS device (hereinafter referred to as the second device) for receiving data from a first device and a sound source device.
[0031] The audio source device may be any possible audio data output device, such as a mobile phone, a portable media player, a computer, a multimedia / audio transmitter in a home entertainment or home theater system, or the like.
[0032] The first device and the second device can be any possible audio communication device capable of playing audio, such as a hearing aid, a speaker, an earphone, a sound box, a mobile phone, a portable media player, a computer, a smart watch, a wearable electronic device, an in-vehicle audio device, etc. For example, each device can be a speaker, so that the first device (or the first speaker) and one or more second devices (or the second speakers) can form a wireless stereo sound system; they can also be a speaker in each of these audio communication devices, for example, the left earphone and the right earphone of a headset, etc. The first device establishes a wireless connection with the sound source device based on a predetermined wireless communication protocol to achieve the transmission of audio data such as voice, audio, and music; when the first device receives an audio data packet from the sound source device, if it is received correctly, it replies a response message ACK to the sound source device so that the sound source device can send a new audio data packet. If it is not received correctly, it replies a negative response message NAK to the sound source device.
[0033] The second device obtains wireless link information for establishing a wireless connection between the first device and the audio source device, and receives an audio data packet sent by the audio source device to the first device based on the wireless link information.
[0034] If the first device correctly receives the audio data packet and feeds back a response message ACK to the audio source device, but the audio source device does not correctly receive the response message ACK due to insufficient RF performance or other issues, the audio source device resends the audio data packet to the first device. The second device uses programmable relay transmission conditions to determine whether the number of times the audio source device has resent the audio data packet to the first device meets the relay threshold. If the relay threshold is met and the second device receives the response message ACK for the audio data packet from the first device, the second device forwards the response message ACK to the audio source device, allowing the audio source device to send a new audio data packet to the first device in the next time slot.
[0035] If the first device correctly receives the audio data packet and feeds back a response message ACK to the audio source device, the audio source device parses the response message ACK and finds that the packet header is correct but the payload data is incorrect. The audio source device sends an audio data packet with a negative response message NACK in the packet header to the first device. The second device uses programmable relay transmission conditions to determine whether the number of times the audio source device has sent negative response messages NACK to the first device meets the relay threshold. If the relay threshold is met and the response message ACK for the audio data packet is received from the first device, the response message ACK is forwarded to the audio source device, allowing the audio source device to send a new audio data packet to the first device in the next time slot.
[0036] The second device may establish a wireless connection with the first device based on a predetermined wireless communication protocol to obtain wireless link information. The wireless communication protocol may be the same as or different from the wireless communication protocol between the first device and the audio source device. For example, the second device and the first device may establish a wireless connection based on a proprietary wireless protocol, and the first device and the audio source device may establish a wireless connection based on the Bluetooth technical specification.
[0037] As used herein, the term "wireless communication protocol" can refer to a standard wireless protocol, a dedicated wireless protocol, or a proprietary wireless protocol. As used herein, the term "standard wireless protocol" refers to any open or publicly available wireless protocol, including any wireless protocol provided or published by a standards body or organization, such as Bluetooth technical specifications, Wi-Fi, and others. As used herein, the term "proprietary wireless protocol" or "proprietary wireless protocol" refers to any wireless protocol other than a standard wireless protocol.
[0038] The channel through which the second device sends the response information ACK is the same as the channel through which the first device sends the response information ACK to the audio source device.
[0039] Reference Figure 1 The second device includes: a first receiving module for receiving a first data packet sent by the sound source device to the first device; a second receiving module for receiving a second data packet fed back by the first device to the sound source device; a first sending module for sending the second data packet to the sound source device; and a data packet parser for determining whether to send the second data packet to the sound source device through the first sending module according to a relay condition; wherein the relay condition includes continuously receiving a first number of identical data packets from the sound source device or determining that the data packet sent by the sound source device to the first device contains negative response information.
[0040] Reference Figure 2 The second device of this embodiment mainly realizes seamless transmission through a data packet parser. The data packet parser has two input sources (such as Figure 2 The data packet parser includes a synchronization code parsing unit, a packet header parsing unit, a payload data parsing unit, a first device data buffer unit, a programmable trigger condition unit, and an analysis result processing unit.
[0041] Among them, the synchronization code parsing unit, the packet header parsing unit and the effective load data parsing unit respectively perform synchronization code parsing, packet header parsing and effective load data parsing on the input data, and input the parsing results into the condition matching analysis unit. The condition matching analysis unit determines whether to trigger the second device to transmit the relay according to the relay trigger condition provided by the programmable trigger condition, and outputs the corresponding processing result (such as Figure 2R1 and R2 shown in the figure respectively represent continuing to monitor the first device and relaying transmission for the first device).
[0042] As a typical application scenario, the present application can be used in a head-mounted device. For example, in a specific implementation, the first device can be, for example, a master headset, and the second device can be, for example, a head-mounted device of a slave headset. The first device, the second device, and the audio source device all use the Bluetooth communication protocol for wireless communication. For the purpose of illustration, the design ideas and specific implementation methods of the present invention will be described in detail below based on this typical application scenario. Those skilled in the art should understand that other implementation methods that adopt the technical ideas and principles of the present invention are also within the scope of protection of the embodiments of the present application.
[0043] Reference Figure 3 , using the solution in the embodiment of the present application, when the sound source device sends audio data to the main earphone, the slave earphone monitors the audio data and monitors the data packets fed back to the sound source device after the main earphone receives the audio data. The slave earphone parses the data packets sent by the sound source device to the main earphone, and records that the content of the data packets sent by the sound source device is the same twice or more times in a row, or parses that the header of the data packet sent by the sound source device carries negative response information NACK, and monitors the data packet fed back to the sound source device by the main earphone, and determines that the situation meets the relay condition according to the preset relay condition, and forwards the data packet received from the main earphone and fed back to the sound source device to the sound source device through the first channel. The first channel is the same as the channel through which the first device feeds back the data packet to the sound source device.
[0044] That is, the slave earphone monitors and parses the data packets of the master earphone and the audio source device to determine whether the data packet sent by the master earphone to the audio source device is not correctly received by the audio source device, resulting in the data packet of the audio source device being received by the master earphone. The slave earphone still resends the same data packet to the master earphone. The slave earphone determines the occurrence of the above situation through preset relay conditions, and compensates for the insufficient transmission performance of the master earphone by forwarding the data packet that failed to be sent by the master earphone to the audio source device. The usual solution is to use the master-slave switching technology or introduce a private communication protocol, but the disadvantage of the former is that the master-slave switching delay is too large, resulting in a very poor switching experience, and the disadvantage of the latter is that it introduces additional power consumption. The method of the embodiment of the present invention has no master-slave switching concept, no switching delay, and ultimately achieves an improvement in transmission performance.
[0045] Reference Figure 4In some embodiments, seamless relay of transmission is achieved through a Bluetooth packet parser from the headset. The Bluetooth packet parser is a logic circuit in the headset that can parse any packet within the protocol specification of the smart device (sound source device), can parse any packet within the protocol specification of the main headset, can use the data packet of the main headset monitored as the data packet for relay transmission, and can also program the conditions for relay transmission, which will be triggered only when the conditions are met. The packets of the sound source device and the main headset monitored by the headset are sent to the Bluetooth packet parser (which can be a standard Bluetooth packet parser), and the Bluetooth packet parser performs data packet parsing. The Bluetooth parser has two output results based on the analysis results: 1. Continue to monitor the main headset, 2. Help the main headset relay to transmit.
[0046] The Bluetooth packet parser has two input sources: the monitored audio source device data packet and the primary headphone data packet. The packet parser includes a synchronization code parsing unit, a packet header parsing unit, a payload data parsing unit, a primary headphone data buffering unit, a condition matching analysis unit, a programmable trigger condition unit, and an analysis result processing unit.
[0047] Among them, the synchronization code parsing unit, the packet header parsing unit and the payload data parsing unit respectively perform synchronization code parsing, packet header parsing and payload data parsing on the input data, and input the parsing results into the condition matching analysis unit. The condition matching analysis unit determines whether to trigger the second device to transmit the relay based on the relay trigger condition provided by the programmable trigger condition, and outputs the corresponding processing result through the analysis result processing unit.
[0048] The method for implementing seamless transmission relay in an embodiment of the present invention includes the following steps: determining to send a second data packet to the sound source device based on a relay condition; the relay condition includes continuously receiving a first number of identical data packets from the sound source device or determining that the data packet sent by the sound source device to the main earphone contains negative response information.
[0049] The following describes two working scenarios to illustrate how the method of the embodiment of the present invention can achieve seamless transmission relay.
[0050] Reference Figure 5 In some embodiments, the relay condition is: determining that the audio source device continuously sends a first number of identical data packets (first relay condition). The specific scenario is as follows:
[0051] receiving a first data packet sent by the audio source device to the primary headset in a first communication time slot, and recording the type and content of the first data packet;
[0052] receiving, in a second communication time slot, a second data packet fed back from the primary headset to the audio source device and buffering the data packet;
[0053] receiving, in a third communication time slot, a third data packet sent by the audio source device to the primary headset, determining, based on the types and contents of the first and third data packets, that the first and third data packets are identical, and incrementing the first count value by 1;
[0054] When the first count value is equal to the first numerical value, the relay condition is triggered, and the headset forwards the second data packet to the audio source device in the next communication time slot.
[0055] The application scenario of this embodiment is that the main earphone has received the packet from the smart device, but the TX packet cannot be received by the audio source device. In this scenario, there is an obvious feature, that is, the slave earphone will repeatedly monitor the same packet from the audio source device, and will also monitor the same packet from the main earphone device. Using this feature, we can set the Bluetooth packet parser trigger condition to "continuously receive N packets from the audio source device with the same content (including synchronization code, packet header, payload) and monitor the packet to be sent by the main earphone." This embodiment uses seamless relay to solve the problem of the main earphone packet not being able to be sent out.
[0056] Further references Figure 6 The specific method for determining whether the audio source device continuously sends the same first value of data packets is as follows:
[0057] Receive a new packet and determine the type of packet (DM1, 2DH1 packet, etc.);
[0058] Determine whether the type and CRC of the new packet are the same as the previous packet (CRC, etc. are used to determine whether it is the same packet as the previous one);
[0059] If yes, add 1 to cnt (cnt indicates the number of times the packet has been received consecutively); otherwise, update the packet type and CRC;
[0060] Determine whether cnt is greater than the relay threshold N. If so, reply ACK and forward it to the audio source device.
[0061] Reference Figure 7 In some embodiments, the relay condition (second relay condition) is: determining that the audio source device continuously sends a second value of data packets containing negative response information ( Figure 7 The example shows the case where the second value is equal to 1.) The specific scenario is as follows:
[0062] receiving a first data packet sent by the audio source device to the primary earphone in a first communication time slot;
[0063] receiving, in a second communication time slot, a second data packet fed back from the primary headset to the audio source device and buffering the data packet;
[0064] In the third communication time slot, the third data packet sent by the audio source device to the main earphone is received. The header of the third data packet carries negative response information, and the second count value is increased by 1. When the second count value is equal to the second value, the second data packet is forwarded to the audio source device from the earphone in the next communication time slot.
[0065] This embodiment applies to scenarios where the source device receives a packet from the master headset, but the payload CRC is incorrect. This scenario has a distinct characteristic: the slave headset will detect a packet with a NACK in the header from the source device and also detect the same packet from the master headset. Leveraging this characteristic, we can set the Bluetooth packet parser trigger condition to "receive N consecutive NACKs in the header from the smart device and detect a packet to be sent by the master headset."
[0066] The embodiments of the present invention have the following beneficial effects: 1. There is no master-slave switching concept, no master-slave switching time is required, the relay overhead time is very short, and the hardware is automatically controlled; 2. The number of retransmissions of the master headset is effectively reduced, power consumption is reduced, and the experience is improved; 3. The programmable Bluetooth packet parser is very flexible and can be adapted to various specific scenarios; 4. The transmission behavior and content of the slave headset are controlled by hardware, and the software complexity is extremely low.
[0067] Although specific embodiments are described herein, those skilled in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described in accordance with the embodiments of the present disclosure, those skilled in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
[0068] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0069] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0070] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0072] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0073] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A TWS device transmission seamless relay method, used for a second device, characterized in that: The second device is used to monitor data packets of the first device and the sound source device, receive a first data packet sent by the sound source device to the first device, receive a second data packet fed back by the first device to the sound source device and cache it; The method comprises the following steps: If the relay condition is met and the second data packet is response information ACK, determine to send the second data packet to the sound source device; The relay condition includes determining that the sound source device continuously sends a first value of identical data packets or determining that the sound source device continuously sends a second value of data packets containing negative response information.
2. The TWS device transmission seamless relay method according to claim 1, characterized in that: Determining that the sound source device continuously sends a first value of identical data packets includes: receiving a first data packet sent by the audio source device to the first device in a first communication time slot, and recording the type and content of the first data packet; In a second communication time slot, receiving and buffering a second data packet fed back by the first device to the sound source device; receiving, in a third communication time slot, a third data packet sent by the audio source device to the first device, determining, according to types and contents of the first data packet and the third data packet, that the first data packet and the third data packet are the same data packet, and adding 1 to the first count value; The first count value is equal to the first numerical value.
3. The TWS device transmission seamless relay method according to claim 1, characterized in that: The step of determining that the sound source device continuously sends a second value of data packets containing negative response information comprises: receiving, in a first communication time slot, a first data packet sent by the audio source device to the first device; In a second communication time slot, receiving and buffering a second data packet fed back by the first device to the sound source device; receiving, in a third communication time slot, a third data packet sent by the audio source device to the first device, wherein the header of the third data packet carries negative response information, and the second count value is increased by 1; The second count value is equal to the second value.
4. The TWS device transmission seamless relay method according to claim 1, characterized in that: The sending the second data packet to the sound source device comprises: In the next communication time slot, sending the second data packet to the audio source device via the first channel; The first channel is the same as the channel used by the second data packet fed back by the first device to the sound source device.
5. The TWS device transmission seamless relay method according to claim 2, characterized in that: Determining, according to the types and contents of the first data packet and the third data packet, that the first data packet and the third data packet are the same data packet comprises: Parsing the first data packet and the third data packet to obtain corresponding data packet types and contents; the contents include synchronization codes, packet headers, and payload data; The synchronization codes, headers and payload data of the first data packet and the third data packet are verified by CRC to determine that they are the same data packets.
6. A TWS device, characterized in that: include: A first receiving module, used for receiving a first data packet sent by a sound source device to a first device; A second receiving module, configured to receive a second data packet fed back by the first device to the audio source device; A first sending module, used for sending a second data packet to the audio source device; as well as a data packet parser, configured to determine to send the second data packet to the audio source device through the first sending module if a relay condition is met and the second data packet is response information ACK; The relay condition includes determining that the sound source device continuously sends a first value of identical data packets or determining that the sound source device continuously sends a second value of data packets containing negative response information.
7. The TWS device according to claim 6, characterized in that: The data packet parser comprises: A parsing unit, configured to parse the first data packet and the second data packet; A second data packet buffering unit, configured to buffer the second data packet; A programmable trigger condition unit, used to set relay conditions in a programmable manner; a condition matching analysis unit, configured to determine whether the relay condition is satisfied according to the data packet parsing result and the relay condition; and The analysis result processing unit is used to receive the analysis result of the condition matching analysis unit and perform corresponding processing.
8. The TWS device according to claim 7, characterized in that: The parsing unit comprises: A synchronization code parsing unit, used for parsing the synchronization code of the data packet; A packet header parsing unit, used for parsing a packet header; and The payload data parsing unit is used to parse the payload data of the data packet.
9. The TWS device according to claim 8, characterized in that: The analysis result processing unit is used to obtain the second data packet in the second data packet buffer unit and output it to the first sending module; the first sending module is used to send the second data packet to the sound source device through the first channel in the next communication time slot; The first channel is the same as the channel used by the first device to feed back the second data packet to the sound source device.
10. The TWS device according to claim 8, characterized in that: The condition matching analysis unit is used to perform CRC check on the synchronization code, packet header and effective load data of the data packet.
Citation Information
Patent Citations
Wireless earphone and communication method of wireless earphone
CN110636487A
Stereo processing method and system of earphone assembly and earphone assembly
CN111142665A