A Synchronization Method, Device and Electronic Device for Bluetooth Frequency Hopping Connection

By enabling the monitoring module in the slave device of the Bluetooth communication device sleep state, sniffing the access code and interacting with the master device, obtaining connection update packets, the problem of out-of-synchronization of the frequency hopping connection of the Bluetooth device is solved, and the reliability and efficiency of the connection are improved.

CN116234064BActive Publication Date: 2025-06-13SHENZHEN BLUETRUM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211711387.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-06-13
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

During the frequency hopping connection of Bluetooth communication devices, the frequency hopping period and sequence of the slave device and the master device are not synchronized, resulting in too long connection establishment, affecting efficiency and user experience.

Method used

It provides a synchronization method for Bluetooth frequency hopping connection. By enabling the monitoring module when the slave device is in a sleep state, sniffing the access code corresponding to the access address, communicating with the master device, obtaining the connection update data packet, and synchronizing the connection after the slave device wakes up.

Benefits of technology

During the connection process of the master and slave device using the frequency hopping algorithm, the reliability of synchronous connection when disturbed by external interference is improved, the time-consuming connection establishment is reduced, and the efficiency and user experience of Bluetooth connection are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116234064B_ABST
    Figure CN116234064B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a synchronization method for Bluetooth frequency hopping connection, which is characterized in that it is applied to a slave device. The slave device includes a monitoring module, and the method includes: when the slave device does not receive a connection establishment request within a preset duration, the monitoring module is enabled; the slave device information is sent to the monitoring module, and the slave device information includes the access address of the slave device; if the monitoring module sniffs the access code corresponding to the access address, the monitoring module is made to communicate and interact with the master device; if the monitoring module receives connection update data, the slave device after waking up obtains the connection update data packet; the slave device is made to synchronize the connection with the master device according to the connection update data packet. Through the above method, the embodiment of the present invention can enable the master and slave devices to synchronize the connection when being interfered by the outside world during the connection process in which the master and slave devices apply the frequency hopping algorithm, and improve the reliability of the Bluetooth connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of Bluetooth communication, and particularly to a synchronization method, apparatus, and electronic device for Bluetooth frequency-hopping connection. Background Art

[0002] Wireless communication has quite extensive applications in people's lives, and its wireless characteristics bring a lot of convenience to work and life. In wireless communication, multiple wireless devices can communicate in the same time and space through electromagnetic waves and other means. When two or more devices send different wireless signals using electromagnetic waves of the same or similar frequencies at the same time, interference will be caused to each other, resulting in signal reception failure, and further leading to a decrease in communication efficiency or communication failure.

[0003] In addition, due to the influence of multipath effects, some communication frequencies used by wireless communication devices may have relatively serious frequency-selective fading. If a wireless communication device uses a frequency with serious signal fading for communication, it can also cause a decrease in communication efficiency.

[0004] To reduce the impact of interference and frequency-selective fading on wireless communication, wireless communication devices can frequently change the frequency of the electromagnetic waves they use in accordance with the agreed-upon method between the two communication parties, thereby reducing the probability that the frequency of the electromagnetic waves they use is always affected. The above communication method of changing the electromagnetic wave frequency is called frequency hopping, and the above agreed-upon method is called a frequency-hopping algorithm.

[0005] Bluetooth communication devices use the unlicensed 2.4G band. The same band is also used by communication technologies such as Wi-Fi and ZigBee, and it is easily interfered by signals in the same band. Therefore, Bluetooth communication devices use the above frequency-hopping algorithm to enhance their anti-interference ability. Whether in the connection establishment process or in the communication process, Bluetooth communication devices can work according to a pre-set frequency-hopping algorithm. However, before a Bluetooth communication device establishes a connection, according to the existing frequency-hopping algorithm, the frequency-hopping periods and sequences of the broadcaster (slave device) and the initiator (master device) are not synchronized. When lucky, two Bluetooth communication devices broadcast / receive on the same frequency band at the same time, and they can quickly establish a connection. When unlucky, the communication frequency bands are misaligned with each other for a long time, resulting in a long time for connection establishment, affecting efficiency and user experience. Summary of the Invention

[0006] To solve the above technical problems, a technical solution adopted in an embodiment of the present invention is: to provide a synchronization method for Bluetooth frequency-hopping connection, which is applied to a slave device. Both the master device and the slave device are Bluetooth low-energy devices. The slave device includes a monitoring module. When the slave device is in a sleep state, the method includes: when the slave device does not receive a connection establishment request within a preset duration, the monitoring module is enabled; slave device information is sent to the monitoring module, and the slave device information includes the access address of the slave device; if the monitoring module sniffs an access code corresponding to the access address, the monitoring module is made to communicate and interact with the master device; if the monitoring module receives a connection update data packet, the slave device after waking up obtains the connection update data packet; the slave device synchronizes the connection with the master device according to the connection update data packet.

[0007] In some embodiments, the method further includes: the slave device establishes a connection with the master device; the slave device communicates with the master device according to a channel map.

[0008] In some embodiments, making the monitoring module communicate and interact with the master device includes: making the monitoring module disguise as the slave device and communicate with the master device; making the monitoring module receive an information interaction packet sent by the master device; making the monitoring module send a reply signal corresponding to the information interaction packet to the master device.

[0009] In some embodiments, making the slave device synchronize the connection with the master device according to the connection update data packet includes: updating a communication frequency point according to the connection update data packet; synchronizing with the master device.

[0010] In some embodiments, when the slave device is in a sleep state, the monitoring module is enabled until the slave device wakes up; or when the slave device is in a sleep state, the monitoring module is enabled and turned off after a preset working time.

[0011] In some embodiments, the working time is 50 ms.

[0012] In some embodiments, the connection update data packet includes channel map update data.

[0013] To solve the above technical problems, another technical solution adopted in the embodiments of the present invention is: to provide a synchronization device for Bluetooth frequency hopping connection, which is characterized in that it is applied to the connection process between a master device and a slave device. Both the master device and the slave device are Bluetooth low energy devices. The slave device includes a monitoring module, which includes: a connection unit for establishing a connection with the master device; a receiving unit for the slave device to communicate with the master device according to a channel map; an enabling unit for enabling the monitoring module when no connection establishment request is received within a preset time period; a sending unit for sending slave device information to the monitoring module, where the slave device information includes the access address of the slave device; an interaction unit for enabling the monitoring module to communicate and interact with the master device if the monitoring module sniffs an access code corresponding to the access address; a sending-back unit for enabling the woken-up slave device to obtain the connection update data packet if the monitoring module receives a connection update data packet; and a synchronization unit for enabling the slave device to synchronize the connection with the master device according to the connection update data packet.

[0014] To solve the above technical problems, another technical solution adopted in the embodiments of the present invention is: to provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a synchronization method for Bluetooth frequency hopping connection as described above.

[0015] To solve the above technical problems, another technical solution adopted in the embodiments of the present invention is: to provide a non-volatile computer storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the one or more processors can be enabled to execute a synchronization method for Bluetooth frequency hopping connection as described above.

[0016] The beneficial effects of the embodiments of the present invention are: different from the prior art, the embodiments of the present invention can enable the master and slave devices to synchronize the connection when being interfered by the outside world during the connection process where the master and slave devices apply the frequency hopping algorithm, thereby improving the reliability of the Bluetooth connection. Description of the Drawings

[0017] Figure 1 is a schematic structural diagram of the application scenario of the embodiments of the present invention;

[0018] Figure 2 is a schematic flow diagram of a synchronization method for Bluetooth frequency hopping connection provided by the embodiments of the present invention;

[0019] Figure 3It is a schematic flow chart for enabling a monitoring module to communicate with and interact with a master device provided by an embodiment of the present invention;

[0020] Figure 4 It is a schematic flow chart for synchronously connecting to the master device according to a channel map provided by an embodiment of the present invention;

[0021] Figure 5 It is a schematic structural diagram of a synchronization device for Bluetooth frequency-hopping connection provided by an embodiment of the present invention;

[0022] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Specific embodiments

[0023] The present invention will be described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made. These all belong to the protection scope of the present invention.

[0024] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] A synchronization method, device and electronic device for Bluetooth frequency-hopping connection provided by an embodiment of the present application will be described in detail below in conjunction with the accompanying drawings, specific embodiments and their application scenarios.

[0026] The synchronization method for Bluetooth frequency-hopping connection provided by the embodiment of the present invention is applied to BLE (Bluetooth Low Energy) devices. The "Bluetooth Low Energy" technology uses the same operating frequency (2.400 GHz - 2.4835 GHz - ISM band) as the "Classic Bluetooth" technology, but uses another set of channels. Different from the 79 1-MHz channels of classic Bluetooth, Bluetooth Low Energy uses 40 RF Channels with a 2-MHz bandwidth channel. Within one channel, data is transmitted using Gaussian frequency shift keying (GFSK), similar to the basic rate scheme of classic Bluetooth; the bit rate is 1 Mbit / s and the maximum transmit power is 10 mW. Since the unlicensed 2.4 GHz band is used and many wireless products are using this band (WIFI), for stability, Bluetooth has a technology called frequency hopping (Hopping) in the connected state. The two connected parties simultaneously switch to another frequency for data transmission and reception during the agreed time period, avoiding data congestion on the channel.

[0027] Frequency hopping is one of the most commonly used spread spectrum methods. Its working principle refers to a communication method in which the carrier frequencies of the transmitted and received signals change discretely according to a predetermined rule. That is to say, the carrier frequencies used in communication are randomly hopped under the control of a pseudo-random change code. From the perspective of the implementation method of communication technology, "frequency hopping" is a communication method using a code sequence for multi-frequency frequency shift keying, and it is also a communication system with code-controlled carrier frequency hopping. From the time domain, the frequency hopping signal is a multi-frequency frequency shift keying signal; from the frequency domain, the spectrum of the frequency hopping signal is randomly hopped at unequal intervals over a very wide frequency band. Among them: the frequency hopping controller is the core component, including functions such as frequency hopping pattern generation, synchronization, and adaptive control; the frequency synthesizer synthesizes the required frequency under the control of the frequency hopping controller; the data terminal includes error control of the data.

[0028] Compared with fixed-frequency communication, frequency hopping communication is more concealed and difficult to intercept. As long as the other party is not clear about the rule of carrier frequency hopping, it is very difficult to intercept our communication content. At the same time, frequency hopping communication also has good anti-jamming ability. Even if some frequency points are interfered, normal communication can still be carried out on other non-interfered frequency points. Since the frequency hopping communication system is an instantaneous narrowband system, it is easy to be compatible with other narrowband communication systems. That is to say, frequency hopping radios can communicate with conventional narrowband radios, which is beneficial to the update of equipment.

[0029] At present, there are various types of frequency hopping algorithms used in low-power Bluetooth communication technology. Taking the low-power Bluetooth audio scenario as an example, there are two commonly used frequency hopping algorithms. In the low-power Bluetooth audio scenario, Bluetooth devices divide their communication into consecutive communication intervals and conduct one or more communications within each communication interval. Bluetooth devices pre-agree on a list of available channels before communication. The following introduces two existing frequency hopping algorithms.

[0030] In the first frequency hopping algorithm, the frequency used by a Bluetooth device within each communication interval has a fixed distance from the frequency used in the previous communication interval. If the communication frequency used within a certain communication interval is not in the available channel list, a certain available channel corresponding to that frequency is temporarily used. In the second frequency hopping algorithm, the Bluetooth device uses a pseudo-random method to generate the first communication frequency of each communication interval and uses a pseudo-random method to generate the communication frequencies used in the remaining communications within that communication interval. This algorithm ensures that the difference between the communication frequencies used in two adjacent communications within the same communication interval is not less than a certain fixed value.

[0031] The main application scenarios of the embodiments of the present invention are as Figure 1As shown, the application scenario consists of a master device 10 and a slave device 20. It should be noted that both the master device 10 and the slave device 20 are BLE devices. A BLE device includes six states, namely the standby state, the advertising state, the scanning state, the initiating state, the connection state, and the synchronization state. At the same time, a BLE device can only be in one of the above states (of course, a BLE device supports multiple connections and can initiate other connections after establishing a connection. However, in the same time and space, it can only be in one state. Although for the upper layer, there may be a situation where a BLE device is in the connection state while initiating a connection (initiating state), for the actual physical device, the above situation is actually time-division multiplexing). By default, that is, without any operation, a BLE device is in the standby state for services.

[0032] However, when the concept of roles (i.e., master device and slave device) appears in a BLE device, it means that the BLE device is in the connection state. Among them, the BLE device in the initiating state actively initiates a connection and finally establishes a connection. The BLE device that actively initiates the connection is called the master device. And the other BLE device in the advertising state is called the slave device after being connected.

[0033] Here, another concept needs to be explained, that is, the address of a BLE device. The device address of a BLE device is composed of 48 bits and is used to distinguish different BLE devices. The device address is divided into two major categories, namely the public device address and the random device address.

[0034] Based on the above application scenario, to solve the problem that in the connection process of applying the frequency hopping algorithm between the master and slave devices, when the slave device is in the sleep state, it may miss the connection update request, resulting in errors in the subsequent communication between the master and slave devices and a reduction in communication performance, an embodiment of the present invention proposes a synchronization method for Bluetooth frequency hopping connection. The schematic flow diagram of this method is as Figure 2 shown, and specifically includes the following steps:

[0035] Step S100: Establish a connection between the slave device and the master device.

[0036] Step S200: Enable the slave device to communicate with the master device according to the channel map.

[0037] Specifically, during the process that the slave device is in a connected state with the master device, in each connection event, it is always the master device that first sends an information interaction packet, and the slave device receives the information interaction packet sent by the master device and then replies to the master device with information. It should be noted that the prerequisite for the master device and the slave device to maintain the connection is that the master device can send an information interaction packet, the slave device can receive the information interaction packet sent by the master device, and reply to the master device with information. Even if the information interaction packet is an empty packet, it still needs to be sent to the slave device for interaction.

[0038] It should be noted that the information interaction packet specifically includes: connection parameter update (including event interval, slave delay, etc.), channel map update, start of encryption-related processes, feature exchange, version exchange, request for disconnection, LE PING, change of the maximum data length per packet, PHY update, and update of the minimum available channels, etc. In the above processes, all are LLCPs that can be interacted in the connected state. Some are for classic BLE, and some are newly introduced in BLE 5.0 (such as PHY update). Therefore, when the upper layer conducts this part of the strategy, a certain process is required. For example, after two devices are connected, first initiate a version exchange to learn some information about the other party, and then initiate a feature exchange to learn which LLCPs the other party supports (so as to have a clear understanding). After knowing the LLCPs supported by the other party, it is possible to send interaction packets targeted.

[0039] Step S300: When the slave device does not receive a connection establishment request within a preset duration, the monitoring module is enabled.

[0040] After the slave device enters the sleep state, when it does not receive a connection establishment request within a preset duration, the monitoring module is enabled.

[0041] It should be noted that the monitoring module has two working modes. One is that the monitoring module is enabled from when the slave device goes to sleep until the slave device wakes up; the other is that when the slave device is asleep, the monitoring module is enabled and closed after a preset working time.

[0042] In some embodiments, the working time is 50 ms.

[0043] For example: For instance, within the time period of 0 - 500 ms, the wake-up time of the slave device is 0 - 20 ms, and the sleep time is 20 - 500 ms. The monitoring module can work continuously within 100 - 500 ms; or the monitoring module can work in multiple stages within 50 - 100 ms, 150 - 200 ms, 250 - 300 ms, 350 - 400 ms, and 450 - 500 ms.

[0044] Step S400: Send the slave device information to the monitoring module, where the slave device information includes the access address of the slave device.

[0045] Specifically, after the slave device starts the monitoring module, it sends its own slave device information to the monitoring module, and the slave device information is used to enable the monitoring module to communicate with the master device. The slave device information mainly includes the access address of the slave device.

[0046] Step S500: If the monitoring module sniffs the access code corresponding to the access address, then enable the monitoring module to communicate and interact with the master device.

[0047] In some embodiments, step S500 includes the following steps, and the schematic flow diagram is as Figure 3 shown:

[0048] Step S510: Make the monitoring module disguise as the slave device and communicate with the master device.

[0049] Specifically, after the monitoring module receives the slave device information sent by the slave device, according to the access address of the slave device included in the slave device information, it disguises as the slave device and maintains communication with the master device.

[0050] Step S520: Make the monitoring module receive the information interaction packet sent by the master device.

[0051] Specifically, after the monitoring module disguises as the slave device and communicates with the master device, the master device continues to send the information interaction packet, and the monitoring module continuously receives the information interaction packet sent by the master device.

[0052] Step S530: Make the monitoring module send a reply signal corresponding to the information interaction packet to the master device.

[0053] As mentioned in the above premise of the master device and the slave device maintaining the connection, the premise for the master device and the slave device to maintain the connection is to have information interaction with each other. Therefore, every time the monitoring module disguises as the slave device and receives the information interaction packet sent by the master device, it needs to send a reply message to the master device to inform the master device that the interaction information packet has been received.

[0054] Step S600: If the monitoring module receives the connection update data packet, the woken-up slave device obtains the connection update data packet.

[0055] During the slave device's sleep phase, the monitoring module continues to operate based on the original communication parameters (i.e., the original channel map, clock, communication interval, etc.) and communicates with the master device in a timely manner. When the monitoring module receives a connection update data packet, after the slave device wakes up, it actively obtains the connection update data packet and updates the frequency hopping table in a timely manner according to the connection update data packet.

[0056] In some embodiments, the connection update data packet includes channel map update data.

[0057] Therefore, specifically, after the slave device wakes up, it actively obtains the channel map update data in the connection update data packet and updates the frequency hopping table in a timely manner according to the channel map update data.

[0058] During the process of interaction between the monitoring module and the master device, the monitoring module also detects each information interaction packet sent by the master device. When the monitoring module detects an information interaction packet containing a channel map, that is, when the information interaction packet is a channel map update, it will send the information interaction packet to the slave device.

[0059] After the slave device receives the information interaction packet containing the channel map sent by the monitoring module, it sends a shutdown signal to the monitoring module to shut down the monitoring module.

[0060] Step S700: Synchronize the connection of the slave device with the master device according to the connection update data packet.

[0061] In some embodiments, step S700 includes the following steps, and the schematic flow diagram is as Figure 4 shown:

[0062] Step S710: Update the communication frequency point according to the connection update data packet.

[0063] Specifically, after the slave device obtains the connection update data packet, it updates its own communication frequency point according to the connection update data packet.

[0064] Step S720: Synchronize with the master device.

[0065] Specifically, after the slave device updates its own communication frequency point, the communication frequency points of the slave device and the master device are synchronized.

[0066] It should be noted that in the above solution, the communication interval of the monitoring module is not affected by the connection parameters, so that it can always maintain the working state. However, this will bring relatively high power consumption. Therefore, this solution can also impose certain restrictions on the monitoring module appropriately. For example, the monitoring module works during the sleep phase of the slave device, and pauses during the wake-up phase of the slave device; or, according to the sleep time of the slave device, one or more appropriate time periods are intercepted for work. For example, within the time period of 0-500 ms, the wake-up time of the slave device is 0-20 ms, and the sleep time is 20-500 ms. The monitoring module can work within 100-400 ms or work in multiple stages of 50-100, 150-200, 250-300, 350-400.

[0067] Different from the prior art, the embodiment of the present invention can synchronize the master and slave devices during the connection process of applying the frequency hopping algorithm between the master and slave devices, so as to improve the reliability of the Bluetooth connection when being interfered by the outside world.

[0068] Based on the above Bluetooth frequency hopping connection synchronization method, the embodiment of the present invention also provides a Bluetooth frequency hopping connection synchronization device, and its structural schematic diagram is as Figure 5 shown. The Bluetooth frequency hopping connection synchronization device includes a connection unit 100, a receiving unit 200, an enabling unit 300, a sending unit 400, an interaction unit 500, a sending-back unit 600, and a synchronization unit 700. Among them,

[0069] The connection unit 100 is used to establish a connection with the master device.

[0070] The receiving unit 200 is used for the slave device to communicate with the master device according to the channel map.

[0071] The enabling unit 300 is used to enable the monitoring module when no connection establishment request is received within a preset time period.

[0072] The sending unit 400 is used to send slave device information to the monitoring module, and the slave device information includes the access address of the slave device.

[0073] The interaction unit 500 is used to enable the monitoring module to communicate and interact with the master device when the monitoring module sniffs the access code corresponding to the access address.

[0074] The sending-back unit 600 is used to obtain the connection update data packet by the slave device after waking up when the monitoring module receives the connection update data packet.

[0075] The synchronization unit 700 is used to synchronize the connection between the slave device and the master device according to the connection update data packet.

[0076] Figure 6It is a schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present invention. As Figure 6 shown, the electronic device 800 includes:

[0077] One or more processors 801 and a memory 802. Figure 6 Here, one processor 801 is taken as an example.

[0078] The processor 801 and the memory 802 can be connected through a bus or other means. Figure 6 Here, the connection through the bus is taken as an example.

[0079] The memory 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 801 executes various functional applications and data processing of the electronic device by running the non-volatile software programs, instructions, and units stored in the memory 802, that is, to implement a synchronization method for Bluetooth frequency hopping connection in the above method embodiments.

[0080] The memory 802 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 802 may optionally include a memory remotely set relative to the processor 801, and these remote memories can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0081] The one or more units are stored in the memory 802 and, when executed by the one or more processors 801, execute a synchronization method for Bluetooth frequency hopping connection in any of the above method embodiments. For example, execute the Figure 1 method steps S100 to step S700 described above or implement Figure 5 the functions of each unit in the device shown.

[0082] The above electronic device can execute a synchronization method for Bluetooth frequency hopping connection provided by an embodiment of the present invention, and has corresponding program modules and beneficial effects for executing the method. For technical details not described in detail in the electronic device embodiment, reference can be made to a synchronization method for Bluetooth frequency hopping connection provided by an embodiment of the present invention.

[0083] An embodiment of the present invention further provides a non-volatile computer-readable storage medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above non-volatile computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, a synchronization method for Bluetooth frequency-hopping connection in an embodiment of the present disclosure is implemented.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above. For the sake of brevity, they are not provided in detail; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A synchronization method for Bluetooth frequency hopping connection, characterized in that, applied to a slave device, both the master device and the slave device are Bluetooth low energy devices, and the slave device includes a monitoring module. When the slave device is in a sleep state, the method includes: When the slave device does not receive a connection establishment request within a preset duration, the monitoring module is enabled; Sending slave device information to the monitoring module, where the slave device information includes the access address of the slave device; If the monitoring module sniffs an access code corresponding to the access address, the monitoring module is made to communicate and interact with the master device; If the monitoring module receives a connection update data packet, the woken-up slave device acquires the connection update data packet; Making the slave device synchronize the connection with the master device according to the connection update data packet.

2. The method according to claim 1, characterized in that, the method further includes: Making the slave device establish a connection with the master device; Making the slave device communicate with the master device according to a channel map.

3. The method according to claim 1, characterized in that, The making the monitoring module communicate and connect with the master device and interact includes: Making the monitoring module disguise as the slave device and communicate with the master device; Making the monitoring module receive an information interaction packet sent by the master device; Making the monitoring module send a reply signal corresponding to the information interaction packet to the master device.

4. The method according to claim 1, characterized in that, The making the slave device synchronize the connection with the master device according to the connection update data packet includes: Updating a communication frequency point according to the connection update data packet; Synchronizing with the master device.

5. The method according to claim 1, characterized in that, When the slave device is in a sleep state, the monitoring module is enabled until the slave device is woken up; Or when the slave device is in a sleep state, the monitoring module is enabled and is turned off after a preset working time.

6. The method according to claim 5, characterized in that, the working time is 50 ms.

7. The method according to claim 1, characterized in that, the connection update data packet includes channel map update data.

8. A synchronization device for Bluetooth frequency hopping connection, characterized in that, applied to the connection process between a master device and a slave device, both the master device and the slave device are Bluetooth low energy devices, and the slave device includes a monitoring module, and includes: A connection unit, used to establish a connection with the master device; A receiving unit, used for the slave device to communicate with the master device according to a channel map; An enabling unit, used to enable the monitoring module when no connection establishment request is received within a preset duration; A sending unit, used to send slave device information to the monitoring module, where the slave device information includes the access address of the slave device; An interaction unit, used to make the monitoring module communicate and interact with the master device when the monitoring module sniffs an access code corresponding to the access address; A sending-back unit, used for the woken-up slave device to acquire the connection update data packet when the monitoring module receives a connection update data packet; A synchronization unit, configured to synchronize the connection of the slave device with the master device according to the connection update data packet.

9. An electronic device, characterized in that it includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute a synchronization method for a Bluetooth frequency hopping connection as described in any one of claims 1-7.

10. A non-volatile computer storage medium, characterized in that the computer storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the one or more processors are enabled to execute a synchronization method for a Bluetooth frequency hopping connection as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Server notice data synchronization and synchronization server migration method, system and device

    CN102611724A

  • Access point and method for controlling access point

    CN1671101A