Method for a secondary earphone in a TWS earphone to listen as a master device
By establishing dual Bluetooth links in TWS earbuds, the secondary earbud obtains the clock offset value and data reception window length, corrects the communication timing of the monitoring link, solves the problem of the secondary earbud being unable to synchronize, and achieves efficient monitoring.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU GUOXIN MICRO TECH CO LTD
- Filing Date
- 2023-01-12
- Publication Date
- 2026-06-30
AI Technical Summary
In TWS earbuds, when the secondary earbud acts as a slave, communication synchronization is impossible, resulting in poor monitoring performance, especially when the master-slave switch fails and monitoring requirements cannot be met.
The primary earpiece establishes a first Bluetooth link with the smart device, and the secondary earpiece establishes a second Bluetooth link with the primary earpiece. The secondary earpiece obtains the clock offset value and the data receiving window length, corrects the communication timing of the monitoring link, and enables the secondary earpiece to act as the primary device for monitoring.
Successful synchronous communication between the secondary earpiece and the monitoring link was achieved, improving the monitoring effect and overcoming the limitation of the slave not being able to synchronize in the classic Bluetooth protocol.
Smart Images

Figure CN116074676B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of wireless communication technology, especially the field of TWS earphone technology. It relates to a method for monitoring TWS earphones where the secondary earphone acts as the master device. This method is applicable to TWS earphone monitoring when the master earphone acts as the master device and the smart device acts as the slave device in a Bluetooth link established between the master earphone and the smart device. Background Technology
[0002] In the classic Bluetooth protocol, a Bluetooth piconet consists of a master device role and a slave device role. The device that initiates the Bluetooth piconet establishment request is the master, and the device that accepts the request is the slave. The channel used for data exchange between the master and slave in a Bluetooth piconet is called a Bluetooth link. The protocol allows any device in a Bluetooth piconet to negotiate and switch roles with another device in the piconet via a role switch command.
[0003] During each data exchange between the Master and Slave, the Master always uses its local Bluetooth clock and attempts to receive data packets sent by the Slave at a fixed reception time. The Slave, on the other hand, uses its own local Bluetooth clock plus a clock offset value and attempts to receive data packets sent by the Master at a variable reception time. The Slave calculates the clock offset value and the reception time by comparing its own local Bluetooth clock with the Master's local Bluetooth clock; the reception time is called the data reception window length. Due to the influence of crystal oscillator frequency offset, the local Bluetooth clock will inevitably drift. The Slave needs to use the communication synchronization mechanism defined in the classic Bluetooth protocol to continuously adjust the clock offset value and the data reception window length to maintain the stability of the Bluetooth connection with the Master.
[0004] TWS earbuds consist of two wireless Bluetooth earbuds: a primary earbud and a secondary earbud. In a TWS earbud monitoring transmission scheme, the primary earbud establishes a first Bluetooth link with the smart device, and the primary earbud establishes a second Bluetooth link with the secondary earbud. After the secondary earbud obtains all the information from the primary earbud via the second Bluetooth link, it creates a monitoring link to listen to the interaction data in the first Bluetooth link. Since only the Slave has communication synchronization capabilities in the classic Bluetooth protocol, in the first Bluetooth link, the smart device typically acts as the Master, and the primary earbud acts as the Slave. The secondary earbud also acts as a Slave in the monitoring link.
[0005] Although the protocol allows any device in a Bluetooth piconet to switch roles via master-slave switching commands, there is a possibility of switching failure due to unforeseen factors such as environmental interference. If the master earpiece fails to switch master-slave when actively establishing a Bluetooth connection with the smart device, the master earpiece will continue to act as the master, the smart device as the slave, and the secondary earpiece will also act as the master in the monitoring link. The secondary earpiece acting as the master lacks communication synchronization capabilities, resulting in poor monitoring performance. Summary of the Invention
[0006] The purpose of this invention is to address the shortcomings of the prior art by providing a method for using the secondary earphone as the primary monitoring device in a TWS earphone.
[0007] The method of this invention is specifically as follows:
[0008] Step S1. The master earphone establishes a first Bluetooth link with the smart device. In the first Bluetooth link, the master earphone acts as the Master and the smart device acts as the Slave. When establishing a Bluetooth connection, the master earphone actively initiates a Bluetooth connection request to the smart device and establishes a connection directly; or the smart device actively initiates a Bluetooth connection request to the master earphone, and the master earphone actively initiates a master-slave switching command to the smart device until the switch is successful.
[0009] The primary and secondary earphones establish a second Bluetooth link, in which the primary earphone acts as the Master and the secondary earphone acts as the Slave. When establishing a Bluetooth connection, the primary earphone actively initiates a Bluetooth connection request to the secondary earphone and establishes a connection directly; or the secondary earphone actively initiates a Bluetooth connection request to the primary earphone and initiates a master-slave switch command until the switch is successful.
[0010] Step S2. The secondary earphone obtains all the information of the first Bluetooth link through the second Bluetooth link, and uses this information, as well as the clock offset value and data reception window length in the second Bluetooth link information, to create a monitoring link with the smart device;
[0011] Step S3. The secondary earphone performs communication synchronization each time it receives a data packet sent by the primary earphone. The secondary earphone calculates the clock offset between its own local Bluetooth clock and the primary earphone's local Bluetooth clock, as well as the required data reception window length, by comparing the time of each data packet received from the primary earphone. It then adjusts the communication timing.
[0012] Step S4. Each time the secondary earphone performs communication synchronization on the second Bluetooth link, the recalculated clock offset value and data reception window length on the second Bluetooth link are applied to the monitoring link.
[0013] The beneficial effect of this invention is that, in the classic Bluetooth protocol, only slave devices can perform communication synchronization, while master devices cannot. This limitation makes it impossible to meet the requirement of the secondary earphone acting as the master device for monitoring in TWS earphones. In this invention, the secondary earphone relies on the time information in the first Bluetooth link to correct the communication timing of the monitoring link and achieve successful monitoring. Attached Figure Description
[0014] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0015] The following describes the embodiments of the present invention through specific examples and in conjunction with the accompanying drawings. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and various details in this specification can also be modified and changed based on different viewpoints and applications without departing from the spirit of the present invention.
[0016] like Figure 1 As shown, a method for using the secondary earphone as the primary device for monitoring in a TWS earphone includes the following steps:
[0017] Step S1. The master earphone establishes a first Bluetooth link with the smart device. In the first Bluetooth link, the master earphone acts as the Master and the smart device acts as the Slave. When establishing a Bluetooth connection, the master earphone actively initiates a Bluetooth connection request to the smart device and establishes a connection directly; or the smart device actively initiates a Bluetooth connection request to the master earphone, and the master earphone actively initiates a master-slave switching command to the smart device until the switch is successful.
[0018] The primary and secondary earphones establish a second Bluetooth link, in which the primary earphone acts as the Master and the secondary earphone acts as the Slave. When establishing a Bluetooth connection, the primary earphone actively initiates a Bluetooth connection request to the secondary earphone and establishes a connection directly; or the secondary earphone actively initiates a Bluetooth connection request to the primary earphone and initiates a master-slave switch command until the switch is successful.
[0019] In the classic Bluetooth protocol, the one that actively initiates the Bluetooth connection request is the Master, and the one that accepts the Bluetooth connection request is the Slave. The Master and Slave negotiate and switch roles through the role switch command.
[0020] Step S2. The secondary earphone acquires all information from the first Bluetooth link via the second Bluetooth link, and uses this information, along with the clock offset value and data reception window length from the second Bluetooth link information, to create a monitoring link with the smart device. The monitoring link is a virtual link that replicates the first Bluetooth link.
[0021] The primary earpiece acts as the Master in both the first and second Bluetooth links. Therefore, the Bluetooth clock controlling the communication timing of both the first and second Bluetooth links is the primary earpiece's local Bluetooth clock. The secondary earpiece uses its own local Bluetooth clock plus the clock offset value and data receive window length from the second Bluetooth link information to calculate the primary earpiece's local Bluetooth clock and the communication timing generated based on the primary earpiece's local Bluetooth clock. When the secondary earpiece establishes a monitoring link with the smart device, it uses the clock offset value and data receive window length from the second Bluetooth link information as the clock offset value and data receive window length for the monitoring link, thus obtaining the communication timing of the first Bluetooth link.
[0022] Step S3. To prevent the clock precision drift of the main and secondary earphones from causing the secondary earphone to be unable to accurately obtain the local Bluetooth clock of the main earphone, the secondary earphone performs communication synchronization every time it receives a data packet sent by the main earphone. The secondary earphone calculates the clock offset value between its own local Bluetooth clock and the local Bluetooth clock of the main earphone, as well as the required data reception window length, by comparing the time of each data packet received by the secondary earphone. The communication timing is then adjusted.
[0023] Step S4. Each time the secondary earphone performs communication synchronization on the second Bluetooth link, the recalculated clock offset value and data reception window length on the second Bluetooth link are applied to the monitoring link to correct the communication timing of the monitoring link.
Claims
1. A method for monitoring as a primary device in a TWS earphone, characterized in that: Step S1. The master earphone establishes a first Bluetooth link with the smart device. In the first Bluetooth link, the master earphone acts as the Master and the smart device acts as the Slave. When establishing a Bluetooth connection, the master earphone actively initiates a Bluetooth connection request to the smart device and establishes a connection directly; or the smart device actively initiates a Bluetooth connection request to the master earphone, and the master earphone actively initiates a master-slave switching command to the smart device until the switch is successful. The primary and secondary earphones establish a second Bluetooth link, in which the primary earphone acts as the Master and the secondary earphone acts as the Slave. When establishing a Bluetooth connection, the primary earphone actively initiates a Bluetooth connection request to the secondary earphone and establishes a connection directly; or the secondary earphone actively initiates a Bluetooth connection request to the primary earphone and initiates a master-slave switch command until the switch is successful. The master-slave switching command is a command defined within the classic Bluetooth protocol; Step S2. The secondary earphone obtains all information from the first Bluetooth link through the second Bluetooth link, and uses this information, along with the clock offset value and data reception window length in the second Bluetooth link information, to create a monitoring link with the smart device; the monitoring link is a virtual link that replicates the first Bluetooth link; Step S3. The secondary earphone performs communication synchronization each time it receives a data packet sent by the primary earphone. The secondary earphone calculates the clock offset between its own local Bluetooth clock and the primary earphone's local Bluetooth clock, as well as the required data reception window length, by comparing the time of each data packet received from the primary earphone. It then adjusts the communication timing. Step S4. Each time the secondary earphone performs communication synchronization on the second Bluetooth link, the recalculated clock offset value and data reception window length on the second Bluetooth link are applied to the monitoring link.