A method, apparatus and related device for synchronizing a Bluetooth wireless device

By obtaining the fixed clock of Peak and calculating the preset time, the local clock of the Bluetooth wireless device is adjusted, which solves the problem of switching time loss caused by different Peak switching clocks in Bluetooth TWS devices and improves data transmission and reception efficiency.

CN116367295BActive Publication Date: 2026-06-09ACTIONS ZHUHAI MICROELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ACTIONS ZHUHAI MICROELECTRONICS CO LTD
Filing Date
2021-12-28
Publication Date
2026-06-09

Smart Images

  • Figure CN116367295B_ABST
    Figure CN116367295B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of synchronous method, apparatus and related equipment of bluetooth wireless device, the method includes after the first piconet is accessed by bluetooth wireless device as slave device, the fixed clock of the first piconet is obtained;First preset time T1 and second preset time T2 are obtained, and first clock offset value is calculated according to the first preset time T1 and second preset time T2;Then the clock offset value of the local clock of the bluetooth wireless device and the fixed clock is adjusted to the first clock offset value, and the local clock of the bluetooth wireless device is synchronously adjusted, to realize the synchronization of the bluetooth wireless device and the first piconet, whereby, the time loss of piconet switching can be reduced, and the efficiency of data transceiving is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth connectivity technology, and in particular to a synchronization method, apparatus, and related equipment for Bluetooth devices. Background Technology

[0002] Compared to traditional wired headphones, True Wireless Stereo (TWS) headphones achieve true wireless connectivity, eliminating the hassle of tangled wires, offering comfortable wear, and providing excellent stereo sound. TWS technology is based on Bluetooth chip technology. Its working principle involves dividing the two earbuds into a master and a slave. Audio source devices such as mobile phones connect to the master earbud via Bluetooth, and the master earbud then wirelessly connects to the slave earbud, achieving true wireless separation of the left and right channels. Therefore, Bluetooth TWS devices typically contain two piconets (also called micronets): Piconet A and Piconet B. Piconet A refers to the connection link between the audio source device (such as the mobile phone) and the master earbud, while Piconet B refers to the connection link between the master earbud and the slave earbud.

[0003] The clocks of the two Peak Networks are usually different. When switching from Peak Network A to Peak Network B, because the clocks are different and Peak Networks transmit and receive data in fixed time slots, it may take hundreds of microseconds before data transmission and reception can begin after switching to Peak Network B. The switching time of Peak Networks is relatively large, resulting in low data transmission and reception efficiency. Summary of the Invention

[0004] This invention provides a synchronization method and device for Bluetooth devices, which can reduce the time loss of Peak switching and greatly improve the efficiency of data transmission and reception.

[0005] To address the aforementioned technical problems, in a first aspect, embodiments of the present invention provide a synchronization method for a Bluetooth wireless device, comprising:

[0006] After the Bluetooth wireless device connects to the first Peak Network as a slave device, it obtains the fixed clock of the first Peak Network;

[0007] Obtain a first preset time T1 and a second preset time T2, where the first preset time T1 is the reception time of the master device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to send and receive data.

[0008] The first clock offset value is calculated based on the first preset time T1 and the second preset time T2;

[0009] At a preset time, the clock offset between the local clock of the Bluetooth wireless device and the fixed clock is adjusted to the first clock offset value, and the local clock of the Bluetooth wireless device is adjusted according to the fixed clock and the first clock offset value, so as to achieve synchronization between the Bluetooth wireless device and the first Peak Network.

[0010] Furthermore, when the sum of (625+T1+T2) is less than 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625+T1+T2), where slot_offset1 represents the first clock offset value; when the sum of (625+T1+T2) is greater than or equal to 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625+T1+T2) mod 1250, where slot_offset1 represents the first clock offset value, and mod 1250 represents the remainder when the sum of (625+T1+T2) is divided by 1250.

[0011] Furthermore, the step of adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value includes:

[0012] Calculate the difference between the fixed clock and the first clock offset value, and adjust the local clock of the Bluetooth wireless device to the difference.

[0013] Furthermore, before adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first offset clock, the method further includes: the Bluetooth wireless device accessing a second Peak Network as a master device;

[0014] After adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, the method further includes: sending the adjusted local clock of the Bluetooth wireless device to the slave device in the second Peak Network to achieve synchronization between the slave device in the second Peak Network and the Bluetooth wireless device.

[0015] Furthermore, the Bluetooth wireless device may connect to the second Peak Network as a master device before it connects to the first Peak Network as a slave device, or it may connect to the second Peak Network as a master device after it connects to the first Peak Network as a slave device.

[0016] Furthermore, after adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, the method further includes: the Bluetooth wireless device connecting to the second Peak Network as a master device based on the adjusted local clock.

[0017] Furthermore, the data packet is an empty data packet.

[0018] Secondly, embodiments of the present invention also provide a synchronization device for a Bluetooth wireless device, comprising:

[0019] The first acquisition module is used to acquire the fixed clock of the first Peak Network after the Bluetooth wireless device connects to the first Peak Network as a slave device.

[0020] The second acquisition module is used to acquire a first preset time T1 and a second preset time T2. The first preset time T1 is the reception time of the master device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to send and receive data.

[0021] The calculation module is used to calculate the first clock offset value based on the first preset time T1 and the second preset time T2;

[0022] An adjustment module is used to adjust the clock offset between the local clock of the Bluetooth wireless device and the fixed clock to the first clock offset value at a preset time, and to adjust the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, so as to achieve synchronization between the Bluetooth wireless device and the first Peak Network.

[0023] Thirdly, embodiments of the present invention also provide a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the synchronization method of the Bluetooth wireless device described above.

[0024] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the synchronization method of the Bluetooth wireless device described in any of the preceding claims.

[0025] Beneficial Effects: In the Bluetooth wireless device synchronization method of the present invention, when the Bluetooth wireless device accesses the first Peak Network as a slave device, it obtains the fixed clock of the first Peak Network; it obtains a first preset time T1 and a second preset time T2, where the first preset time T1 is the reception time of the master device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to transmit and receive data; it calculates a first clock offset value based on the first preset time T1 and the second preset time T2; then, at a preset time, it adjusts the clock offset value between the local clock of the Bluetooth wireless device and the fixed clock to the first clock offset value, and adjusts the local clock of the Bluetooth wireless device based on the fixed clock and the first clock offset value to achieve synchronization between the Bluetooth wireless device and the first Peak Network. Through the above clock adjustment, when the Bluetooth wireless device quickly switches from the first Peak Network to the second Peak Network, or from the second Peak Network to the first Peak Network, it can quickly enter the transmit and receive time slot, reducing the time loss of Peak Network switching and improving the efficiency of data transmission and reception. Attached Figure Description

[0026] The technical solution and its beneficial effects of the present invention will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.

[0027] Figure 1 This is a flowchart of a Bluetooth wireless device synchronization method provided in an embodiment of the present invention;

[0028] Figure 2 This is a schematic diagram illustrating the adjustment of the local clock of a Bluetooth wireless device in an embodiment of the present invention;

[0029] Figure 3a This is a schematic diagram of the synchronization device for a Bluetooth wireless device provided in an embodiment of the present invention;

[0030] Figure 3b This is another schematic diagram of the synchronization device for a Bluetooth wireless device provided in an embodiment of the present invention;

[0031] Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0032] Please refer to the diagrams, where the same component symbols represent the same components. The principles of the invention are illustrated by way of example implemented in a suitable computing environment. The following description is based on the illustrative specific embodiments of the invention and should not be construed as limiting the invention to other specific embodiments not detailed herein.

[0033] See Figure 1The synchronization method for a Bluetooth wireless device according to an embodiment of the present invention includes the following steps:

[0034] Step S11: After the Bluetooth wireless device connects to the first Peak network as a slave device, it obtains the fixed clock of the first Peak network.

[0035] Each Peak network has its own fixed clock, which serves as the local clock for the master device within that network. The Bluetooth wireless device can be, for example, a main headset. The fixed clock of the first Peak network is also the local clock of the master device within that network. This local clock refers to the clock generated by the oscillator of the master device within the first Peak network; that is, the fixed clock of the first Peak network is the clock generated by the oscillator of the master device within the first Peak network. The master device within the first Peak network can be, for example, a mobile phone or tablet computer. Once a Bluetooth wireless device establishes a connection with a master device within the first Peak network, it connects to the first Peak network as a slave device, at which point the Bluetooth wireless device can obtain the fixed clock of the first Peak network.

[0036] Step S12: Obtain a first preset time T1 and a second preset time T2. The first preset time T1 is the reception time of the main device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to send and receive data.

[0037] Wherein, the first preset time T1 and the second preset time T2 are pre-set times that can be set according to actual needs. The data packet can be an empty data packet, in which case the range of the first preset time T1 can be set to 100μs to 150μs, such as 110μs or 120μs. It is understood that the specific values ​​of the first preset time T1 and the second preset time T2 can be set according to actual needs; for example, the first preset time T1 can also be greater than 150μs. Furthermore, the data packet can also be a non-empty data packet, that is, a regular data packet containing data content.

[0038] Step S13: Calculate the first clock offset value based on the first preset time T1 and the second preset time T2.

[0039] Specifically, when the sum of (625 + T1 + T2) is less than 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625 + T1 + T2), where slot_offset1 represents the first clock offset value. When the sum of (625 + T1 + T2) is greater than or equal to 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625 + T1 + T2) mod 1250, where slot_offset1 represents the first clock offset value, and mod 1250 represents the remainder when the sum of (625 + T1 + T2) is divided by 1250. Those skilled in the art will understand that the Bluetooth timeslot clock range is 0 to 1249. When the Bluetooth timeslot clock reaches 1250, a carry-over is required, meaning 1250 becomes 0. Therefore, in order to avoid slot_offset1 exceeding 1250, when (625+T1+T2) exceeds 1250, the result of (625+T1+T2) mod 1250 is taken as the first clock offset value slot_offset1.

[0040] In this embodiment, when calculating the first clock offset value, the first preset time T1 and the second preset time T2 are taken into account. In other embodiments, other factors affecting the Peak Network switching can also be taken into account. That is, the expression of the first clock offset value slot_offset1 can also be slot_offset1=(625+T1+T2+T3+T4), or slot_offset1=(625+T1+T2+T3+T4)mod 1250, where T3 and T4 represent other preset times.

[0041] Step S14: At a preset time, adjust the clock offset value between the local clock of the Bluetooth wireless device and the fixed clock to the first clock offset value, and adjust the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, so as to achieve synchronization between the Bluetooth wireless device and the first Peak Network.

[0042] The preset time can be any time, such as before the switch from the first peak network to the second peak network. After calculating the first clock offset value, the clock offset value between the local clock of the Bluetooth wireless device and the fixed clock is adjusted to the first clock offset value. To achieve synchronization, the local clock of the Bluetooth wireless device is also adjusted accordingly. Specifically, the difference between the fixed clock and the first clock offset value is calculated, and the local clock of the Bluetooth wireless device is adjusted to the difference. It can be understood that the local clock of the Bluetooth wireless device refers to the clock generated by the oscillator of the Bluetooth wireless device; therefore, adjusting the local clock of the Bluetooth wireless device means adjusting the clock generated by the oscillator of the Bluetooth wireless device.

[0043] For example, such as Figure 2 As shown, Figure 2 The diagram illustrates two Bluetooth time slot clock cycles. One Bluetooth time slot clock cycle is from 0 to 1249. When the Bluetooth time slot clock reaches 1250, a carry-over is required, meaning 1250 becomes 0. In the fixed clock of the first Peak network, 847 and 847 represent the clock values ​​within the first Bluetooth time slot clock cycle. The second Bluetooth time slot clock cycle begins from clock 0, at which point clock 0 is equivalent to clock 1250. Similarly, in the initial local clock of the Bluetooth wireless device, 46 to 1195 represent the clock values ​​within the first Bluetooth time slot clock cycle. When it reaches 1250, a carry-over occurs, making clock 45 shown in the diagram the clock value within the second Bluetooth time slot clock cycle. In the adjusted local clock of the Bluetooth wireless device, 1 to 1150 represent the clock values ​​within the first Bluetooth time slot clock cycle, while 0 marks the start of the second cycle.

[0044] Continue reading Figure 2 Before adjusting the local clock of the Bluetooth wireless device, when the Bluetooth wireless device establishes a connection with the master device in the first Peak Network, that is, when the Bluetooth wireless device accesses the first Peak Network, it is assumed that the initial clock offset value slot_offset0 between the local clock and the fixed clock of the Bluetooth wireless device is 800μs. When the fixed clock of the first Peak Network is 846, the initial local clock of the Bluetooth wireless device is 46. When the fixed clock of the first Peak Network is 847, the initial local clock of the Bluetooth wireless device is 47, and so on. The final fixed clock of the Bluetooth wireless device is the sum of its initial local clock and the initial clock offset value, thereby realizing the synchronization between the Bluetooth wireless device and the first Peak Network.

[0045] When adjusting the local clock of the Bluetooth wireless device, assuming the first preset time T1 is 120μs and the second preset time T2 is 100μs, the first clock offset value slot_offset1 can be calculated as 845μs according to the formula in step S13. Since the fixed clock of the first Peak network remains unchanged, after adjusting the clock offset between the local clock of the Bluetooth wireless device and the fixed clock of the first Peak network to the first clock offset value at a predetermined time, the clock offset between the local clock of the Bluetooth wireless device and the fixed clock of the first Peak network becomes 845μs. At this time, when the fixed clock of the first Peak network is 846μs, the difference between the fixed clock of the first Peak network and the first clock offset value is 1μs. Therefore, the local clock of the Bluetooth wireless device is adjusted to 1μs, so that the final fixed clock of the Bluetooth wireless device is the sum of its local clock 1μs and the first clock offset value 845μs, i.e., 846μs, thereby achieving synchronization with the first Peak network.

[0046] In some embodiments of the present invention, the Bluetooth wireless device can also access the second Peak Network as a master device. Specifically, when the Bluetooth wireless device accesses the second Peak Network as a master device before adjusting its local clock, that is, before adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first offset clock, after the step of adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, that is, after step S14, the following step is further included: sending the adjusted local clock of the Bluetooth wireless device to the slave devices in the second Peak Network to achieve synchronization between the slave devices in the second Peak Network and the Bluetooth wireless device.

[0047] In this configuration, the Bluetooth wireless device can connect to the second Peak Network as a master device before connecting to the first Peak Network as a slave device; that is, the Bluetooth wireless device first connects to the second Peak Network as a master device and then connects to the first Peak Network as a slave device. Alternatively, the Bluetooth wireless device can first connect to the first Peak Network as a slave device and then connect to the second Peak Network as a master device before adjusting its local clock. In both cases, after adjusting the local clock of the Bluetooth wireless device, the adjusted local clock of the Bluetooth wireless device is sent to the slave devices within the second Peak Network, thereby achieving synchronization between the slave devices within the second Peak Network and the Bluetooth wireless device.

[0048] Furthermore, when the Bluetooth wireless device connects to the second Peak network as a master device after adjusting its local clock—that is, after step S14—it connects based on the adjusted local clock. In this case, the Bluetooth wireless device directly connects to the second Peak network using the adjusted local clock, without needing to send the adjusted local clock to the slave devices on the second Peak network.

[0049] In this embodiment of the invention, a first clock offset value is calculated based on the first preset time T1 and the second preset time T2. This first clock offset value is then adjusted to be the clock offset between the local clock of the Bluetooth wireless device and the fixed clock of the first Peak network. The local clock of the Bluetooth wireless device is also adjusted synchronously to achieve synchronization between the Bluetooth wireless device and the first Peak network. As a result, when the Bluetooth wireless device switches from the first Peak network to the second Peak network, or vice versa, it can quickly enter the corresponding transmit / receive time slot, reducing the time loss during Peak network switching and improving the efficiency of data transmission and reception.

[0050] See Figure 3a This invention provides a synchronization device 300 for a Bluetooth wireless device. This synchronization device can be integrated into the Bluetooth wireless device, and when the Bluetooth wireless device is the main earpiece, the synchronization device is integrated into the main earpiece. The synchronization device 300 includes a first acquisition module 31, a second acquisition module 32, a calculation module 33, and an adjustment module 34.

[0051] The first acquisition module 31 is used to acquire the fixed clock of the first Peak Network after the Bluetooth wireless device connects to the first Peak Network as a slave device.

[0052] The second acquisition module 32 is used to acquire a first preset time T1 and a second preset time T2. The first preset time T1 is the reception time of the main device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to send and receive data.

[0053] The calculation module 33 is used to calculate the first clock offset value based on the first preset time T1 and the second preset time T2.

[0054] The adjustment module 34 is used to adjust the clock offset value between the local clock of the Bluetooth wireless device and the fixed clock to the first clock offset value at a preset time, and to adjust the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, so as to realize the synchronization between the Bluetooth wireless device and the first Peak Network.

[0055] Specifically, the calculation module 33 is used to calculate the first clock offset value according to the formula slot_offset1 = (625 + T1 + T2) when the sum of (625 + T1 + T2) is less than 1250, where slot_offset1 represents the first clock offset value; and to calculate the first clock offset value according to the formula slot_offset1 = (625 + T1 + T2) mod 1250 when the sum of (625 + T1 + T2) is greater than or equal to 1250, where slot_offset1 represents the first clock offset value, and mod 1250 represents the remainder when the sum of (625 + T1 + T2) is divided by 1250.

[0056] The adjustment module 34 is specifically used to calculate the difference between the fixed clock and the first clock offset value, and adjust the local clock of the Bluetooth wireless device to the difference.

[0057] Further, see Figure 3b The synchronization device 300 of this embodiment further includes a transmitting module 35. Before the adjustment module 34 adjusts the local clock of the Bluetooth wireless device according to the fixed clock and the first offset clock, if the Bluetooth wireless device has already been connected to the second Peak Network as a master device, the transmitting module 35 is used to send the adjusted local clock of the Bluetooth wireless device to the slave device in the second Peak Network after the adjustment module 34 adjusts the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, so as to realize the synchronization between the slave device in the second Peak Network and the Bluetooth wireless device.

[0058] Specifically, the Bluetooth wireless device may connect to the second Peak Network as a master device before it connects to the first Peak Network as a slave device, or it may connect to the second Peak Network as a master device after it connects to the first Peak Network as a slave device.

[0059] Furthermore, if the Bluetooth wireless device connects to the second Peak network as a master device after the adjustment module 34 adjusts the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, then the Bluetooth wireless device connects to the second Peak network as a master device based on the adjusted local clock.

[0060] The synchronization device of this invention can enable the Bluetooth wireless device to enter the corresponding transmit / receive time slot as soon as possible when switching from the first Peak Network to the second Peak Network, or from the second Peak Network to the first Peak Network, thereby reducing the time loss of Peak Network switching and improving the efficiency of data transmission and reception.

[0061] See Figure 4 , Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device 400 includes: a memory 402, a processor 401, and a computer program stored in the memory 402 and executable on the processor. When the processor 401 executes the computer program, it implements the steps in the synchronization method of the Bluetooth wireless device provided in the above embodiment.

[0062] The computer device 400 provided in this embodiment of the invention can implement the various implementation methods and corresponding beneficial effects in the above method embodiments. To avoid repetition, it will not be described again here.

[0063] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes in the synchronization method for Bluetooth wireless devices provided in this invention and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0064] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0065] The synchronization method, apparatus, and related devices for a Bluetooth wireless device provided by the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A synchronization method for a Bluetooth wireless device, characterized in that, include: After the Bluetooth wireless device connects to the first Peak Network as a slave device, it obtains the fixed clock of the first Peak Network; Obtain a first preset time T1 and a second preset time T2, where the first preset time T1 is the reception time of the master device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to send and receive data. The first clock offset value is calculated based on the first preset time T1 and the second preset time T2; At a preset time, the clock offset between the local clock of the Bluetooth wireless device and the fixed clock is adjusted to the first clock offset value, and the local clock of the Bluetooth wireless device is adjusted according to the fixed clock and the first clock offset value, so as to achieve synchronization between the Bluetooth wireless device and the first Peak Network. The step of calculating the first clock offset value based on the first preset time T1 and the second preset time T2 includes: When the sum of (625 + T1 + T2) is less than 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625 + T1 + T2), where slot_offset1 represents the first clock offset value. When the sum of (625 + T1 + T2) is greater than or equal to 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625 + T1 + T2) mod 1250, where slot_offset1 represents the first clock offset value and mod 1250 represents the remainder when the sum of (625 + T1 + T2) is divided by 1250.

2. The synchronization method according to claim 1, characterized in that, The step of adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value includes: Calculate the difference between the fixed clock and the first clock offset value, and adjust the local clock of the Bluetooth wireless device to the difference.

3. The synchronization method according to claim 1, characterized in that, Before adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, the method further includes: the Bluetooth wireless device accessing the second Peak Network as a master device; After adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, the method further includes: sending the adjusted local clock of the Bluetooth wireless device to the slave device in the second Peak Network to achieve synchronization between the slave device in the second Peak Network and the Bluetooth wireless device.

4. The synchronization method according to claim 3, characterized in that, Before the Bluetooth wireless device connects to the first Peak network as a slave device, the Bluetooth wireless device connects to the second Peak network as a master device; or, after the Bluetooth wireless device connects to the first Peak network as a slave device, the Bluetooth wireless device connects to the second Peak network as a master device.

5. The synchronization method according to claim 1, characterized in that, After adjusting the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, the method further includes: the Bluetooth wireless device connecting to the second Peak Network as a master device based on the adjusted local clock.

6. The synchronization method according to claim 1, characterized in that, The data packet is an empty data packet.

7. A synchronization device for a Bluetooth wireless device, characterized in that, include: The first acquisition module is used to acquire the fixed clock of the first Peak Network after the Bluetooth wireless device connects to the first Peak Network as a slave device. The second acquisition module is used to acquire a first preset time T1 and a second preset time T2. The first preset time T1 is the reception time of the master device in the first Peak Network receiving the data packet sent by the Bluetooth wireless device, and the second preset time T2 is the preparation time for the Bluetooth wireless device to send and receive data. The calculation module is used to calculate a first clock offset value based on the first preset time T1 and the second preset time T2; wherein, When the sum of (625 + T1 + T2) is less than 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625 + T1 + T2), where slot_offset1 represents the first clock offset value; when the sum of (625 + T1 + T2) is greater than or equal to 1250, the first clock offset value is calculated according to the formula slot_offset1 = (625 + T1 + T2) mod 1250, where slot_offset1 represents the first clock offset value, and mod 1250 represents the remainder when the sum of (625 + T1 + T2) is divided by 1250. An adjustment module is used to adjust the clock offset between the local clock of the Bluetooth wireless device and the fixed clock to the first clock offset value at a preset time, and to adjust the local clock of the Bluetooth wireless device according to the fixed clock and the first clock offset value, so as to achieve synchronization between the Bluetooth wireless device and the first Peak Network.

8. A computer device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the synchronization method for a Bluetooth wireless device as claimed in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the synchronization method for a Bluetooth wireless device as described in any one of claims 1 to 6.