Tws earphone master-slave switching method for keeping master earphone local bluetooth clock continuous

By customizing the master-slave switching command in the TWS earphones, the local Bluetooth clock of the master earphone is kept continuous, which solves the problem of communication timing disorder caused by master-slave switching and ensures the stability of the Bluetooth link.

CN116074675BActive Publication Date: 2026-07-03GUANGZHOU GUOXIN MICRO TECH CO LTD

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-07-03

AI Technical Summary

Technical Problem

During the switching between primary and secondary TWS earbuds, the discontinuity of the local Bluetooth clock of the primary earbud causes communication timing errors, affecting the stability of the Bluetooth link connection with smart devices.

Method used

Through a custom master-slave switching command, the master and slave earphones maintain the communication timing generated based on the master earphone's local Bluetooth clock during the switching process, ensuring that the clock of the new master earphone is consistent with the clock of the old master earphone and avoiding changes in the communication timing.

Benefits of technology

During the master/slave switching process, the Bluetooth clock of the new master earphone remains consistent with the clock of the old master earphone, avoiding Bluetooth link disconnection due to changes in communication timing and ensuring stable communication with smart devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074675B_ABST
    Figure CN116074675B_ABST
Patent Text Reader

Abstract

This invention discloses a method for master / slave switching in TWS earphones while maintaining the continuity of the master earphone's local Bluetooth clock. The master and slave earphones first establish a classic Bluetooth connection. Either earphone initiates a master / slave switching command, and the other earphone accepts and responds. Either earphone specifies the time for the next communication. At the specified time, the slave earphone sends any data packet to the master earphone, which receives and replies with an arbitrary data packet response. Upon receiving the data packet, both earphones maintain their current communication timing. The slave earphone calculates the master earphone's local Bluetooth clock and immediately changes it to its own, switching its role to master and slave. The master earphone switches its role to slave and slave. This invention avoids the Bluetooth link between the master earphone and the smart device from being disrupted by changes in the master earphone's local Bluetooth clock after a master / slave switch, thus preventing connection loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of wireless communication technology, especially the field of TWS earphone technology, and relates to a TWS earphone master-slave switching method that maintains the continuity of the local Bluetooth clock of the master earphone. Background Technology

[0002] In the classic Bluetooth protocol, a Bluetooth link consists of a master role and a slave role. The master and slave negotiate and switch roles through a role switch command.

[0003] TWS earbuds consist of two wireless Bluetooth earbuds: a primary earbud and a secondary earbud. Currently, there are two main transmission schemes for TWS earbuds: a forwarding scheme and a monitoring scheme. The forwarding scheme involves the primary earbud establishing Bluetooth links with both the smart device and the secondary earbud. The primary earbud then transmits the interaction data with the smart device to the secondary earbud via Bluetooth, achieving data sharing. For example, the smart device transmits voice data to the primary earbud, which then transmits this voice data to the secondary earbud, allowing both earbuds to hear the same voice content through their earpieces. The monitoring scheme involves the primary earbud establishing Bluetooth links with both the smart device and the secondary earbud. The primary earbud then transmits the Bluetooth link information established with the smart device to the secondary earbud via the same Bluetooth link established with the secondary earbud. The secondary earbud uses this Bluetooth link information to create a separate Bluetooth link for monitoring the interaction data between the primary earbud and the smart device. This monitoring link only receives data and does not transmit it.

[0004] TWS earbuds typically allow the primary and secondary earbuds to negotiate and switch roles via a custom TWS RoleSwitch command outside the Bluetooth protocol. To ensure TWS earbud performance, the primary earbud needs to act as the Master and the secondary earbud as the Slave; therefore, the master-slave switching process includes the master-slave switching process of the classic Bluetooth protocol. The master-slave switching process only involves the primary and secondary earbuds and is invisible to the smart device that has established a Bluetooth connection with the primary earbud. In simpler terms, after the master-slave switch, the smart device is unaware that the primary earbud has been replaced and continues to communicate with it according to the original communication sequence, believing that the primary earbud remains unchanged. However, the local Bluetooth clocks of the primary and secondary earbuds are independent. Before and after the master-slave switch, the discontinuity of the primary earbud's local Bluetooth clock may cause communication sequence errors between the new primary earbud and the smart device, potentially leading to Bluetooth communication anomalies. Summary of the Invention

[0005] The purpose of this invention is to address the shortcomings of the prior art by providing a method for switching between primary and secondary TWS earphones while maintaining the continuity of the local Bluetooth clock of the primary earphone.

[0006] The method of the present invention includes the following steps:

[0007] Step S1. The primary and secondary earphones establish a classic Bluetooth connection, with the primary earphone acting as the Master and the secondary earphone as the Slave. When establishing the Bluetooth connection, the primary earphone actively initiates a Bluetooth connection request to the secondary earphone to directly establish the connection; or the secondary earphone actively initiates a Bluetooth connection request to the primary earphone and initiates a master-slave switching command until the switch is successful. The master-slave switching command is a command defined in the classic Bluetooth protocol.

[0008] Step S2. Either the primary or secondary earphone initiates a primary / secondary switching command. The primary / secondary switching command is a custom command used by the primary and secondary earphones in addition to the classic Bluetooth protocol. The other party agrees and responds after receiving the primary / secondary switching command.

[0009] Step S3. Either the main earpiece or the secondary earpiece specifies the time for the next communication between the two parties;

[0010] Step S4. At the designated time, the secondary earpiece sends any data packet to the primary earpiece, and the primary earpiece receives the data packet sent by the secondary earpiece and replies with any data packet as a response;

[0011] Step S5. After the main and secondary earpieces receive the data packets sent by each other, they maintain the communication timing generated based on the local Bluetooth clock of the main earpiece. The secondary earpiece executes S6, and the main earpiece executes S7.

[0012] Step S6. The secondary earphone receives the data packet sent by the primary earphone, calculates the Bluetooth clock of the primary earphone at this time, and immediately changes it to its own local Bluetooth clock. Then, it changes its own role to the primary earphone and Master. The local Bluetooth clock of the new primary earphone is consistent and continuous with the local Bluetooth clock of the old primary earphone. The primary-secondary switch and master-slave switch are completed.

[0013] Step S7. The primary earpiece receives the data packet sent by the secondary earpiece, changes its own role to the secondary earpiece and Slave, and the primary-secondary switch and primary-slave switch are completed.

[0014] The beneficial effects of this invention are as follows: The TWS earphone master / slave switching process occurs between the master and slave earphones, affecting only the master and slave earphones and not the smart device that established a Bluetooth connection with the master earphone. For the smart device that established a Bluetooth connection with the master earphone before the switch, the smart device will continue to attempt to communicate with the master earphone according to the communication timing agreed upon when establishing the Bluetooth connection. After the master / slave switch is completed, although the actual master earphone has changed, the local Bluetooth clock of the new master earphone remains consistent and continuous with the local Bluetooth clock of the old master earphone, which can prevent the Bluetooth link between the master earphone and the smart device from being disconnected due to the change in communication timing after the switch. Attached Figure Description

[0015] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation

[0016] 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.

[0017] like Figure 1 As shown, the TWS earphone master / slave switching method that maintains the continuity of the local Bluetooth clock of the master earphone includes the following steps:

[0018] Step S1. The primary and secondary earphones establish a classic Bluetooth connection, with the primary earphone acting as the Master and the secondary earphone as the Slave. When establishing the Bluetooth connection, the primary earphone actively initiates a Bluetooth connection request to the secondary earphone to directly establish the connection; or the secondary earphone actively initiates a Bluetooth connection request to the primary earphone and initiates a master-slave switching command until the switch is successful. The master-slave switching command is a command defined in the classic Bluetooth protocol.

[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. Either the primary or secondary earphone initiates a primary / secondary switching command. The primary / secondary switching command is a custom command used by the primary and secondary earphones in addition to the classic Bluetooth protocol. The other party agrees and responds after receiving the primary / secondary switching command.

[0021] Step S3. Either the main earpiece or the secondary earpiece specifies the time for the next communication between the two parties.

[0022] Step S4. At the designated time, the secondary earpiece sends any data packet to the primary earpiece, and the primary earpiece receives the data packet sent by the secondary earpiece and replies with any data packet as a response.

[0023] The specific process within the classic Bluetooth protocol is as follows: The Master specifies the time for the next communication between the two parties based on its own local Bluetooth clock; after this time arrives, the Slave sends an FHS data packet to the Master. The Master receives the FHS data packet sent by the Slave and replies with an ID data packet as an acknowledgment. The FHS data packet carries the Slave's local Bluetooth clock information; when the Master and Slave receive the data packet sent by the other party, both parties use the Slave's local Bluetooth clock information to generate a new communication timing and attempt the next communication; when the Master and Slave receive the data packet sent by the other party again, they switch master and slave roles, with the original Slave becoming the new Master and the original Master becoming the new Slave.

[0024] In this method, the primary and secondary earphones no longer generate new communication timing based on the secondary earphone's local Bluetooth clock information. Therefore, the secondary earphone no longer specifies to send FHS data packets carrying local Bluetooth clock information to the primary earphone, but instead sends arbitrary data packets to the primary earphone. After receiving the data packets sent by the secondary earphone, the primary earphone no longer specifies to send ID data packets to respond to the FHS data packets, but instead sends arbitrary data packets as a response.

[0025] Step S5. After the primary and secondary earpieces receive the data packets sent by the other, they maintain the communication timing generated based on the primary earpiece's local Bluetooth clock. The secondary earpiece executes S6, and the primary earpiece executes S7.

[0026] In the classic Bluetooth protocol, the communication timing between the Master and Slave is generated based on the Master's local Bluetooth clock. For the Slave, the communication timing also includes clock offset information calculated from the Master's local Bluetooth clock. In this method, the communication timing between the master and slave earphones is generated by the local Bluetooth clock of the master earphone, and both parties will maintain the communication timing generated based on the master earphone's local Bluetooth clock.

[0027] Step S6. The secondary earphone receives the data packet sent by the primary earphone, calculates the Bluetooth clock of the primary earphone at this time, and immediately changes it to its own local Bluetooth clock. Then, it changes its own role to primary earphone and Master. The local Bluetooth clock of the new primary earphone is consistent and continuous with the local Bluetooth clock of the old primary earphone.

[0028] The calculation method adopts the method defined in the classic Bluetooth protocol. The secondary earphone receives the data packet sent by the primary earphone in step S5, verifies the correctness of the current communication timing, and, as the Slave, calculates the Bluetooth clock of the primary earphone at this time based on the clock offset information in the communication timing and immediately changes it to its own local Bluetooth clock. At the same time, it changes its role from secondary earphone to primary earphone and from Slave to Master, thus completing the master-slave switch.

[0029] Step S7. The main headset receives the data packet sent by the secondary headset and changes the role to the secondary headset and Slave.

[0030] The master headset receives the data packet sent by the slave headset in step S5, verifying the correctness of the current communication timing; the master headset changes its role from master headset to slave headset, and from Master to Slave, completing the master-slave switch and master-slave switch.

Claims

1. A method for switching between primary and secondary TWS earphones while maintaining the continuity of the local Bluetooth clock of the primary earphone, characterized in that: Step S1. The primary and secondary earphones establish a classic Bluetooth connection, with the primary earphone acting as the Master and the secondary earphone as the Slave. When establishing the Bluetooth connection, the primary earphone actively initiates a Bluetooth connection request to the secondary earphone to directly establish the connection; or the secondary earphone actively initiates a Bluetooth connection request to the primary earphone and initiates a master-slave switching command until the switch is successful. The master-slave switching command is a command defined in the classic Bluetooth protocol. Step S2. Either the primary or secondary earphone initiates a primary / secondary switching command, and the other earphone receives the primary / secondary switching command, agrees, and responds; the primary / secondary switching command is a custom command used by the primary and secondary earphones in addition to the classic Bluetooth protocol. Step S3. Either the main earpiece or the secondary earpiece specifies the time for the next communication between the two parties; Step S4. At the designated time, the secondary earpiece sends any data packet to the primary earpiece, and the primary earpiece receives the data packet sent by the secondary earpiece and replies with any data packet as a response; Step S5. After the main and secondary earpieces receive the data packets sent by each other, they maintain the communication timing generated based on the local Bluetooth clock of the main earpiece. The secondary earpiece executes S6, and the main earpiece executes S7. Step S6. The secondary earphone receives the data packet sent by the primary earphone, calculates the Bluetooth clock of the primary earphone at this time, and immediately changes it to its own local Bluetooth clock. Then, it changes its own role to the primary earphone and Master. The local Bluetooth clock of the new primary earphone is consistent and continuous with the local Bluetooth clock of the old primary earphone. The primary-secondary switch and master-slave switch are completed. Step S7. The primary earpiece receives the data packet sent by the secondary earpiece, changes its own role to the secondary earpiece and Slave, and the primary-secondary switch and primary-slave switch are completed.