Bluetooth system and connection synchronization method of Bluetooth slave device

Bluetooth connection synchronization is achieved through the broadcast and scan response mechanisms between devices, which solves the host-side control synchronization complexity problem in the existing technology and improves system automation and efficiency.

CN113395759BActive Publication Date: 2024-10-15PIXART IMAGING INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011338554.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-03-13
Filing Date
2020-11-25
Publication Date
2024-10-15
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

The existing Bluetooth system requires host-side application software or driver control to synchronize the connection when the device connection changes, resulting in complexity and resource consumption.

Method used

Through the broadcast and scan response mechanism between slave devices, Bluetooth connection synchronization is achieved, allowing the first slave device to actively notify the second slave device when changing the connected master device, completing connection synchronization without host intervention.

Benefits of technology

It simplifies the connection synchronization process, reduces the control requirements on the host side, improves the automation and efficiency of the system, and reduces the dependence on host resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113395759B_ABST
    Figure CN113395759B_ABST
Patent Text Reader

Abstract

A Bluetooth system with multiple slave devices. When a first slave device among the multiple slave devices switches to connect to a different master device, the first slave device actively notifies other slave devices among the multiple slave devices to switch to connect to the different master device, so as to form Bluetooth connection synchronization among the multiple slave devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a Bluetooth system, and more particularly to a Bluetooth system comprising a first slave device and a second slave device for Bluetooth connection with multiple master devices and a connection synchronization method thereof, so that when the first slave device changes the connected master device among the multiple master devices, the first slave device actively notifies the second slave device to connect to the same master device. Background Art

[0002] Please refer to Figure 1 , which shows a block diagram of a known Bluetooth system, including a first host 91, a second host 92, a keyboard 93, and a mouse 94. Assuming that the keyboard 93 and the mouse 94 are originally connected to the first host 91 via Bluetooth, when one of the keyboard 93 and the mouse 94 is changed to be connected to the second host 92 via Bluetooth by the user's control, the second host 92 needs to notify the other of the keyboard 93 and the mouse 94 to connect to the second host 92 for connection synchronization, which requires the control of the application software or driver of the second host 92.

[0003] More specifically, the conventional technology is to synchronize the Bluetooth connection by informing the device side through the host side.

[0004] In view of this, the present invention further provides a Bluetooth system and a connection synchronization method thereof in which a device end performs Bluetooth connection synchronization automatically, so as to save the control of application software or driver program on the host end. Summary of the invention

[0005] The present invention provides a Bluetooth system and a connection synchronization method thereof, wherein slave devices mutually notify the conversion of the currently connected master device to achieve the purpose of connection synchronization.

[0006] The present invention provides a connection synchronization method for a Bluetooth system, wherein the Bluetooth system includes a first slave device and a second slave device for performing Bluetooth connection with multiple master devices. The connection synchronization method includes the following steps: when the first slave device changes the master device to which it is connected, the first slave device broadcasts the second slave device; the first slave device determines whether a scanning request from the second slave device is received; when the first slave device receives the scanning request from the second slave device, the first slave device replies a scanning response to the second slave device; and according to the scanning response, the second slave device is connected to the master device to which the first slave device is connected.

[0007] The present invention also provides a connection synchronization method for a Bluetooth slave device, comprising the following steps: scanning and determining whether a broadcast is received from a first slave device; when the Bluetooth slave device receives the broadcast from the first slave device, replying a scan request to the first slave device; determining whether a scan response from the first slave device is received; and after the Bluetooth slave device receives the scan response from the first slave device, connecting to the master device to which the first slave device is connected according to the scan response.

[0008] The present invention also provides a connection synchronization method for a Bluetooth system, wherein the Bluetooth system includes a first master device, a second master device, a first slave device, and a second slave device. The connection synchronization method includes the following steps: connecting the first slave device and the second slave device to the first master device via Bluetooth; disconnecting the Bluetooth connection between the first slave device and the first master device when the first slave device receives a conversion signal; searching the connection information of the second master device with the first slave device; broadcasting the second slave device with the first slave device; determining whether a scan request from the second slave device is received with the first slave device; replying a scan response to the second slave device with the first slave device when the first slave device receives the scan request from the second slave device; and connecting the first slave device to the second master device via Bluetooth.

[0009] In the embodiments of the present invention, the so-called connection refers to a Bluetooth connection. Therefore, the master device and the slave device mentioned in the present invention description at least include a Bluetooth chip or module for performing Bluetooth transmission and pairing and a Bluetooth transceiver for sending and receiving wireless signals.

[0010] In the embodiment of the present invention, one of the first slave device and the second slave device is a primary slave device and the other is a secondary slave device, and their roles are interchangeable. The primary slave device is used to control the connection conversion of the master device.

[0011] In the embodiment of the present invention, the master device and the slave device can use the standard Bluetooth protocol to connect and transmit data. Each slave device can use the time slot of the Bluetooth communication between the master and slave devices, and the time interval after the data is sent and received between the master and slave devices to send and receive synchronization-related data and signals.

[0012] In order to make the above and other purposes, features and advantages of the present invention more obvious, the following will be described in detail with reference to the accompanying drawings. In addition, in the description of the present invention, the same components are represented by the same symbols, which are hereby described together. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1is a block diagram of a known Bluetooth system;

[0014] Figure 2 is a block diagram of a Bluetooth system according to an embodiment of the present invention;

[0015] Figure 3 is a flow chart of a connection synchronization method of a Bluetooth system according to an embodiment of the present invention;

[0016] Figure 4 is a flow chart of a connection synchronization method of a Bluetooth system according to another embodiment of the present invention;

[0017] Figure 5 is a flow chart of a connection synchronization method of a Bluetooth system according to another embodiment of the present invention;

[0018] Figure 6 is a communication timing diagram of a Bluetooth system according to an embodiment of the present invention; and

[0019] Fig. 7A and 7B 2 is another communication sequence diagram of the Bluetooth system according to some embodiments of the present invention.

[0020] Description of Reference Numerals

[0021] 200 Bluetooth system

[0022] 211 First master device

[0023] 212 Second master device

[0024] 21n Nth master device

[0025] 231 First slave device

[0026] 232 Second slave device DETAILED DESCRIPTION

[0027] The present invention is applicable to a connection synchronization method between different slave devices and multiple master devices, so that the different slave devices are connected to the same master device among the multiple master devices through Bluetooth communication between each other, instead of any master device notifying different slave devices.

[0028] Please refer to Figure 2, which is a block diagram of a Bluetooth system 200 according to an embodiment of the present invention. The Bluetooth system 200 includes a first slave device 231 and a second slave device 232 for Bluetooth connection with multiple master devices (e.g., shown as 211, 212 ... 21n, which are the same or different types), wherein the master devices 211, 212 ... 21n are selected from, for example, computer systems (e.g., laptop computers, desktop computers, tablet computers, etc.), mobile phones, or other electronic devices that can be used as master devices (master) of Bluetooth communication. The first slave device 231 and the second slave device 232 are selected from, for example, computer peripheral devices (e.g., mice, keyboards, joysticks, web cameras, etc.), Bluetooth headsets, Bluetooth microphones, or other electronic devices that can be used as slave devices (slave) of Bluetooth communication, and are the same or different types.

[0029] In the present invention, the master device 211, 212 ... 21n, the first slave device 231 and the second slave device 232 all include at least a Bluetooth chip (or module) for performing Bluetooth transmission and pairing and a Bluetooth transceiver for sending and receiving wireless signals. In addition, the first slave device 231 and the second slave device 232 also have built-in auxiliary information synchronization programs of the coding software to perform connection synchronization between the slave devices described later.

[0030] In addition, each slave device in the present invention also includes a memory (not shown) for storing device names, device passwords, device addresses and connection information related to multiple master devices 211, 212...21n, that is, each slave device has completed Bluetooth pairing with multiple master devices 211, 212...21n in advance, wherein the Bluetooth pairing is completed according to the standard Bluetooth protocol. In addition, the memory also records the connection priorities of multiple master devices 211, 212...21n, for example, by pairing indexes. For example, when the first master device 211 (for example, the first priority) cannot be connected or the slave device is controlled to change the connection with the first master device 211, the slave device searches for and connects to the second master device 212; when the second master device 212 (for example, the second priority) cannot be connected or the slave device is controlled to change the connection with the second master device 212, the slave device searches for and connects to the master device of the next priority, and so on. In addition, the memory also records the connection status between the slave device and the master device, for example, using the content recorded in a register, such as "1" and "0", to indicate the connection status, but the present invention is not limited thereto.

[0031] The memory is, for example, EEPROM, random access memory (RAM) or flash memory.

[0032] In the present invention, when the first slave device 231 and the second slave device 232 are connected to different master devices, the predetermined first slave device 231 or second slave device 232 notifies the other slave device to switch to the master device, thereby achieving the purpose of connection synchronization.

[0033] Please refer to Figure 3 As shown, it is a flow chart of a connection synchronization method of a Bluetooth system 200 according to an embodiment of the present invention. In this embodiment, it is assumed that (1) there is only one master device within the connection range of the first slave device 231 and the second slave device 232; (2) the connection priority of the first slave device 231 is higher than that of the second slave device 232; (3) the first slave device 231 broadcasts first and then scans, while the second slave device 232 scans first and then broadcasts. As mentioned above, the first slave device 231 (sometimes referred to as D1 in this description) and the second slave device 232 (sometimes referred to as D2 in this description) both record the connection information of multiple master devices that have completed Bluetooth pairing, such as the connection priority, device name, device password, device address and other Bluetooth connection related information of multiple master devices 211, 212...21n. It can be understood that when a new master device is detected, the connection information can be added to the memory. The Bluetooth pairing is known and is not the main purpose of the present invention, so it will not be repeated here.

[0034] Please also refer to Figure 2 and Figure 3 Next, the implementation method of this embodiment is described. Figure 2 As shown, the Bluetooth system 200 includes a first slave device 231 and a second slave device 232 coupled to a plurality of master devices 211 , 212 . . . 21 n.

[0035] Steps S311-S312: When the first slave device 231 is powered on, awakened or receives a switching signal, the first slave device 231 determines whether to change the connected master device. For example, assuming that the first slave device 231 was previously connected to the first master device 211, the information is recorded in its memory.

[0036] In this embodiment, the conversion signal is, for example, generated by the user controlling the first slave device 231, such as pressing a button, turning a knob, touching the touchpad a predetermined number of times, or tapping the device a predetermined number of times; in addition, the conversion signal may also be that the first slave device 231 receives a response from other master devices (such as the second master device 212) but does not receive a response from the first master device 211 (such as the first master device 211 is not within the connection range). For example, the conversion signal may also be a response packet (such as CONNECT_REQ) from other master devices, but is not limited to this.

[0037] Step S313 : When the first slave device 231 changes the connected master device (eg switches to connect to the second master device 212 ), the first slave device 231 broadcasts the second slave device 233 , wherein the broadcast packet at least includes the device address of the first slave device 231 .

[0038] Please refer to Figure 6 As shown, after the first slave device 231 forms a Bluetooth connection with a master device, the first slave device 231 and the master device are connected in a Bluetooth time slot T S1 (e.g., 7.5 ms) to transmit data to each other, for example, in time interval M0, the master device transmits data to the first slave device 231, and in time interval S1, the first slave device 231 transmits data to the master device. In this embodiment, the first slave device 231 and the master device are connected and communicated using a standard Bluetooth protocol.

[0039] The standard Bluetooth protocol, for example, includes the following steps: the first slave device 231 broadcasts ADV_DIRECT_IND packets to the master device at a predetermined period; the master device responds to the first slave device 231 with a CONNECT_REQ request, which carries parameters for subsequent communication, such as the time point and physical channel for sending and receiving data, and the master device then automatically enters a connection state and becomes a master; after receiving the CONNECT_REQ request, the first slave device 231 also automatically enters a connection state and becomes a slave; then, both parties switch to a predetermined physical channel at a predetermined time according to the CONNECT_REQ parameter agreement and exchange data in the order of master role→slave role, slave role→master role until the connection is disconnected.

[0040] Step S314: The first slave device 231 determines whether it has received a scan request from the second slave device 232, wherein the scan request packet at least includes the device address of the second slave device 232. When the first slave device 231 has not received the scan request from the second slave device 232, the first slave device 231 continues to broadcast the second slave device 232 for a predetermined broadcast period, for example Figure 3 The scheduled broadcast period is, but not limited to, 30 seconds, that is, each Bluetooth time slot T of the first slave device 231 during the scheduled broadcast period S1 When the first slave device 231 reaches the predetermined broadcast period, the first slave device 231 stops broadcasting, indicating that the second slave device 232 is not within the connection range or has been turned off.

[0041] like Figure 6 As shown, at this time, the first slave device 231 is a broadcasting device and in the time interval T AThe second slave device 232 is a scanning device and broadcasts in the time interval T S In the present invention, T S1 With T S2 Same or different.

[0042] Step S315: When the first slave device 231 receives the scan request from the second slave device 232, the first slave device 231 replies a scan response to the second slave device 232, wherein the scan response is preferably also in Figure 6 Time interval T A In this embodiment, the scanning response replied by the first slave device 231 includes, for example, the pairing information of the master device (e.g., the device name, device address, device password, etc. of the second master device 212), the pairing index (e.g., when the first slave device 231 and the second slave device 232 have multiple sets of pairing information pre-stored, which pairing group the second master device 212 belongs to), the pre-configured parameters required by the slave device for synchronization information (e.g., the encryption key for connection and other user-defined information), and the connection status of the first slave device 231 (whether the connection is completed, for example, represented by at least one bit), etc. That is, the scanning response includes information that allows the second slave device 232 to know which master device the first slave device 231 is currently connected to.

[0043] Step S316: After the first slave device 231 replies the scan response to the second slave device 232, it stops broadcasting.

[0044] Step S317: Finally, the second slave device 232 is connected to the master device currently connected to the first slave device 231, such as the second master device 212, according to the data of the scan response. In this way, the slave device does not need to go through the application software or driver of the master device, but only through the synchronization program between the slave devices (i.e., the above-mentioned broadcast, scan request and scan response) to complete the connection synchronization action. As mentioned above, the auxiliary information synchronization program of the encoding software built into the first slave device 231 and the second slave device 232 is used to execute the above-mentioned synchronization programs such as broadcast, scan request and scan response.

[0045] In step S312, when the first slave device 231 is not connected to any master device, the first slave device 231 S The second slave device 232 is internally scanned, step S322.

[0046] Step S323: The first slave device 231 determines whether it has received a broadcast from the second slave device 232, wherein the broadcast packet at least includes the device address of the second slave device 232. Figure 6 The broadcasting device, and in the time interval T AThe first slave device 231 is Figure 6 The scanning device, and in the time interval T S Scan inside.

[0047] When the first slave device 231 does not receive the broadcast of the second slave device 232, it continues to scan the second slave device 232 for a predetermined scanning period, for example Figure 3 The predetermined scanning period is, but not limited to, 30 seconds, that is, each Bluetooth time slot T of the first slave device 231 during the predetermined scanning period S2 When the scanning of the first slave device 231 reaches the predetermined scanning period, the scanning is stopped, indicating that the second slave device 232 is not currently within the connection range or has been turned off.

[0048] Please refer to Fig. 7A and 7B FIG. 10 shows a scanning period (ie, T 201 ) during which the first slave device 231 scans the second slave device 231 when the first slave device 231 is not connected to any master device. S ) from Bluetooth time slot T S2 The starting point (such as Figure 7B as shown) or 1ms after the starting point (as shown Fig. 7A ), where 1 ms is a predetermined period required for data exchange between a master device and a slave device as defined in the standard Bluetooth protocol, for example Figure 6 The predetermined period may be appropriately selected and is not limited to 1 ms.

[0049] Step S324 : When the first slave device 231 receives the broadcast from the second slave device 232 , it replies a scan request to the second slave device 232 , wherein the packet of the scan request at least includes the device address of the first slave device 231 .

[0050] Step S325: Next, the first slave device 231 determines whether it has received a scan response from the second slave device 232, wherein the scan response is preferably also within the time interval T in the figure. A In this embodiment, the scanning response replied by the second slave device 232 includes the pairing information of the master device (e.g., the device name, device address, device password, etc. of the second master device 212), the pairing index (e.g., when the first slave device 231 and the second slave device 232 have multiple sets of pairing information pre-stored, which pairing group the second master device 212 belongs to), the pre-configured parameters required by the slave device for synchronization information (e.g., the encryption key and other user-defined information used for connection), and the connection status of the second slave device 232 (whether the connection is completed, for example, represented by at least one bit), etc. That is, the scanning response includes information that allows the first slave device 231 to know which master device the second slave device 232 is currently connected to.

[0051] Step S326: After receiving the scanning response from the second slave device 232, the first slave device 231 stops scanning and connects to the master device (e.g., 212) to which the second slave device 232 is currently connected according to the data in the scanning response, step S327. The first slave device 231 and the master device are connected and communicated using a standard Bluetooth protocol, so it will not be described in detail here.

[0052] Thereby, the slave device does not need to go through the application software or driver of the master device, and can complete the connection synchronization action only through the synchronization program between the slave devices (ie the above-mentioned broadcast, scan request and scan response, etc.).

[0053] Please refer to Figure 4 , which is a flow chart of a connection synchronization method of a Bluetooth system 200 according to another embodiment of the present invention. In this embodiment, it is assumed that (1) there is only one master device within the connection range of the first slave device 231 and the second slave device 232; (2) the connection priority of the first slave device 231 is higher than that of the second slave device 232; (3) the first slave device 231 only broadcasts while the second slave device 232 only scans. Similarly, the first slave device 231 and the second slave device 232 both record information of multiple master devices that have been paired, such as the connection priority, device name, device password, device address and other Bluetooth connection related information of multiple master devices 211, 212...21n.

[0054] Please also refer to Figure 2 and Figure 4 , then explain the implementation method of this embodiment.

[0055] Steps S411-S412: When the second slave device 232 is powered on, awakened, or receives a conversion signal, the second slave device 232 determines whether to connect to a new master device. For example, assuming that the second slave device 232 was previously connected to the first master device 211, the information is recorded in its memory. In this embodiment, the conversion signal is generated by, for example, the user controlling the second slave device 232, such as pressing a button, turning a knob, touching the touchpad a predetermined number of times, or tapping the device a predetermined number of times; in addition, the conversion signal may also be that the second slave device 232 receives a response from another master device (such as the second master device 212) but does not receive a response from the first master device 211 (such as the first master device 211 is not within the connection range). For example, the conversion signal may also be a response packet (such as CONNECT_REQ) from another master device, but is not limited thereto.

[0056] Step S413: When the second slave device 232 changes the connected master device (for example, changes to connect to the second master device 212), the second slave device 232 Figure 6 Time interval T SInternally scan the first slave device 231, step S413.

[0057] like Figure 6 As shown, after the second slave device 232 forms a Bluetooth connection with a master device, the second slave device 232 and the master device are connected in a Bluetooth time slot T S2 (e.g., 7.5 ms) to transmit data to each other, for example, in time interval M0, the master device transmits data to the second slave device 232, and in time interval S2, the second slave device 232 transmits data to the master device. In this embodiment, the second slave device 232 and the master device are connected and communicated using a standard Bluetooth protocol, so it is not described here.

[0058] Step S414: The second slave device 232 determines whether it has received the broadcast from the first slave device 231, wherein the broadcast packet at least includes the device address of the first slave device 231. Figure 6 The broadcast device in the time interval T A The second slave device 232 is Figure 6 The scanning device in the time interval T S Scan inside.

[0059] When the second slave device 232 does not receive the broadcast of the first slave device 231, it continues to scan the first slave device 231 for a predetermined scanning period, for example Figure 4 The predetermined scanning period is, but not limited to, 30 seconds, that is, each Bluetooth time slot T of the second slave device 232 during the predetermined scanning period S2 When the second slave device 232 reaches the predetermined scanning period, the scanning is stopped, indicating that the first slave device 231 is not within the connection range or has been turned off.

[0060] Step S415 : When the second slave device 232 receives the broadcast from the first slave device 231 , it replies a scan request to the first slave device 231 , wherein the packet of the scan request at least includes the device address of the second slave device 232 .

[0061] Step S416: Next, the second slave device 232 determines whether it has received a scan response from the first slave device 231, wherein the scan response is preferably also received in Figure 6 Time interval T AIn this embodiment, the scanning response replied by the first slave device 231 includes the pairing information of the master device (e.g., the device name, device address, device password, etc. of the second master device 212), the pairing index (e.g., when the first slave device 231 and the second slave device 232 have multiple sets of pairing information pre-stored, which pairing group the second master device 212 belongs to), the pre-configured parameters required by the slave device for synchronization information (e.g., the encryption key for connection and other user-defined information), and the connection status of the first slave device 231 (whether the connection is completed, for example, represented by at least one bit), etc.

[0062] Step S417: After receiving the scanning response from the first slave device 231, the second slave device 232 stops scanning.

[0063] Step S418: After receiving the scan response from the first slave device 231, the second slave device 232 compares the master device currently connected to the second slave device 232 and the first slave device 231 to see if they are the same. The second slave device 232 includes a microprocessor for performing the comparison procedure.

[0064] Step S419: If the second slave device 232 and the first slave device 231 are connected to the same master device, there is no need to change the connection of the second slave device 232. If not, the second slave device 232 is connected to the master device currently connected to the first slave device 231 according to the data of the scan response. In this way, the slave device does not need to go through the application software or driver of the master device, but only through the synchronization procedure between the slave devices (i.e. the above-mentioned broadcast, scan request and scan response, etc.), to complete the connection synchronization action.

[0065] In step S412, when the second slave device 232 is not connected to any master device, the process proceeds to step S423. In this embodiment, steps S423 to S429 are substantially the same as steps S413 to S419, except that when the second slave device 232 is not connected to any master device, the second slave device 232 does not need to compare the connection between the second slave device 232 and the first slave device 231 (i.e., the step corresponding to step S418 is not included), and the second slave device 232 directly follows the connection of the first slave device 231.

[0066] Please refer to Fig. 7A and Figure 7B Similarly, when the second slave device 232 is not connected to any master device, the scanning period (ie, T S ) from Bluetooth time slot T S2 The starting point (such as Figure 7B ) or a predetermined time after the starting point, for example, 1 ms (as shown in Fig. 7A shown).

[0067] Please refer to Figure 5 As shown, it is a flow chart of a connection synchronization method of a Bluetooth system 200 according to another embodiment of the present invention. In this embodiment, it is assumed that (1) there is more than one master device within the connection range of the first slave device 231 and the second slave device 232 at the same time; (2) the first slave device 231 and the second slave device 232 have been connected to the first master device 211 by Bluetooth, wherein the connection between the first slave device 231 and the second slave device 232 and the first master device 211 adopts a standard Bluetooth protocol, which is not described here. Similarly, the first slave device 231 and the second slave device 232 both record information of multiple master devices that have been paired, such as connection priorities (such as pairing indexes), device names, device passwords, device addresses, and other Bluetooth connection related information of multiple master devices 211, 212...21n.

[0068] Please also refer to Figure 2 and Figure 5 Next, the implementation method of this embodiment is described. Figure 2 As shown, the Bluetooth system 200 includes a first slave device 231 and a second slave device 232 coupled to a first master device 211 and a second master device 212 .

[0069] Steps S511-S512: When the first slave device 231 receives the conversion signal, it disconnects the Bluetooth connection with the first master device 211. As mentioned above, the conversion signal is generated by, for example, the user controlling the first slave device 231, or the first slave device 231 does not receive a response from the first master device 211 but receives a response from another master device.

[0070] Step S513: Next, the first slave device 231 searches (for example, the first slave device 231 includes a microprocessor that executes a search program) the connection information of the second host device 212 in its memory (for example, by using a lookup table record), where it is assumed that the connection priority of the second host device 212 is second only to that of the first host device 211. Therefore, when the first host device 211 cannot connect, its microprocessor automatically searches for the existing connection information of the second host device 212.

[0071] Then, the process proceeds to step S514 to step S517. In this embodiment, the implementation of step S514 to step S517 is the same as Figure 3Steps S313 to 316 of the method include: broadcasting the second slave device 232 by the first slave device 231 (step S514); determining by the first slave device 231 whether a scan request from the second slave device 232 is received (step S515); when the first slave device 231 receives the scan request from the second slave device 232, replying a scan response to the second slave device 232 by the first slave device 231 (step S516); and stopping the broadcast of the first slave device 231 after the first slave device 231 replies the scan response to the second slave device 232 (step S516), and the details of which can be referred to Figure 3 And related instructions, so no more details here.

[0072] Similarly, when the first slave device 231 does not receive the scanning request from the second slave device 232, the first slave device 231 continues to broadcast the second slave device 232 for a predetermined broadcast period, for example Figure 5 The scheduled broadcast period is 30 seconds, but is not limited thereto. When the first slave device 231 reaches the scheduled broadcast period, the broadcast is stopped, indicating that the second slave device 232 is not currently within the connection range or has been turned off.

[0073] Step S518: The first slave device 231 is connected to the second master device 212 via the standard Bluetooth protocol. The standard Bluetooth communication has been described above and is known to those skilled in the art, so it will not be described again.

[0074] The above description Figure 5 The operation of the first slave device 231, Figure 5 The operation of the second slave device 232 in FIG. 2 is performed with reference to steps S523 to S528, wherein the implementation of steps S523 to S527 is the same as that of FIG. Figure 4 Steps S413 to 417 of the present invention include: scanning the first slave device 231 with the second slave device 232 (step S523); determining whether the broadcast of the first slave device 231 is received with the second slave device 232 (step S524); when the second slave device 232 receives the broadcast of the first slave device 231, replying the scanning request to the first slave device 231 with the second slave device 232 (step S525); determining whether the scanning response of the first slave device 231 is received with the second slave device 232 (step S526); and after the second slave device 232 receives the scanning response of the first slave device 231, stopping the scanning of the second slave device 232 (step S527); the details of which can be referred to Figure 4 And related instructions, so no more details here.

[0075] Similarly, when the second slave device 232 does not receive the broadcast of the first slave device 231, the second slave device 232 continues to scan the first slave device 231 for a predetermined scanning period, for example Figure 5The preset scanning period is 30 seconds, but is not limited thereto. When the second slave device 232 reaches the preset scanning period, it stops scanning, indicating that the first slave device 231 is not within the connection range or has been turned off.

[0076] Step S528: When the second slave device 232 receives the scan response from the first slave device 231, the Bluetooth connection between the second slave device 232 and the first host device 211 is disconnected and the second slave device 232 is connected to the second host device 212 via Bluetooth according to the data of the scan response. The second slave device 232 and the second host device 212 are connected and communicated using a standard Bluetooth protocol, which will not be described in detail herein.

[0077] Figure 5 In the process, steps S513 to S518 and steps S523 to S528 can be based on Figures 6 to 7B The above broadcast, scanning request and scanning response are preferably performed in the time interval T in the figure. A and T S Conducted within.

[0078] It is understood that the above three implementations are only examples and are not intended to limit the present invention. As long as multiple slave devices switch the connected master device by connecting and synchronizing with each other without the intervention of the master device, it does not deviate from the spirit and scope of the present invention.

[0079] The connection synchronization method of the Bluetooth system 200 includes a synchronization method of respective Bluetooth slave devices, such as the first slave device 231 and the second slave device 232 .

[0080] In summary, in the known Bluetooth system, when different devices need to be synchronized, it needs to be done through the host. Therefore, the present invention further provides a Bluetooth system / slave device and a method for synchronization of connections that can be synchronized by communication between slave devices (see Figures 3 to 5 ), which utilizes the slave device whose connection has been changed to actively notify other slave devices whose connection has not been changed to perform connection synchronization, so as to achieve Bluetooth connection synchronization of multiple slave devices without the intervention of the host end.

[0081] Although the present invention has been disclosed through the above examples, they are not intended to limit the present invention. Any person skilled in the art with ordinary knowledge in the art to which the present invention belongs can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the appended claims.

Claims

1. A connection synchronization method for a Bluetooth system, wherein the Bluetooth system comprises a first slave device and a second slave device for performing Bluetooth connection with a plurality of master devices, the connection synchronization method comprising: When the first slave device changes the connected master device, determining whether the first slave device is connected to a new master device; When it is determined that the first slave device is connected to the new master device, the first slave device broadcasts the second slave device, wherein the broadcast packet at least includes the device address of the first slave device; Determining, by the first slave device, whether a scanning request from the second slave device is received; When the first slave device receives the scan request from the second slave device, the first slave device replies a scan response to the second slave device; stopping the broadcast of the first slave device; as well as connecting the second slave device to the master device to which the first slave device is connected according to the scan response, wherein: There is only one master device within the connection range of the first slave device and the second slave device, The first slave device has a higher connection priority than the second slave device, and The first slave device broadcasts first and then scans, while the second slave device scans first and then broadcasts.

2. The connection synchronization method according to claim 1, further comprising: When the first slave device does not receive the scanning request from the second slave device, the first slave device continues to broadcast the second slave device for a predetermined broadcast period.

3. The connection synchronization method according to claim 1, further comprising: When the first slave device is not connected to any master device, scanning the second slave device with the first slave device; Determining, by the first slave device, whether a broadcast from the second slave device is received; When the first slave device receives the broadcast from the second slave device, replying a scan request to the second slave device with the first slave device; determining, by the first slave device, whether a scan response from the second slave device is received; as well as After receiving the scan response from the second slave device, the first slave device connects the first slave device to the master device to which the second slave device is connected according to the scan response.

4. The connection synchronization method according to claim 3, further comprising: When the first slave device does not receive the broadcast of the second slave device, the first slave device continues to scan the second slave device for a predetermined scanning period.

5. The connection synchronization method according to claim 3, wherein after the first slave device receives the scan response from the second slave device, the connection synchronization method further comprises: The scanning of the first slave device is stopped. 6 . The connection synchronization method according to claim 3 , wherein a scanning period in which the first slave device scans the second slave device starts from a starting point of a Bluetooth time slot or a predetermined time after the starting point.

7. The connection synchronization method according to claim 1, wherein The scan request of the second slave device includes a device address of the second slave device; and The scan response replied by the first slave device includes the pairing information of the master device, the pairing index, the pre-configured parameters required by the slave device for synchronization information, and the connection status of the first slave device.

8. A connection synchronization method for a Bluetooth slave device, comprising: Determining whether the Bluetooth slave device is connected to a new master device; When determining that the Bluetooth slave device is connected to the new master device, scanning and determining whether a broadcast is received from a first slave device, wherein the broadcast packet at least includes a device address of the first slave device; When the Bluetooth slave device receives the broadcast from the first slave device, replying a scan request to the first slave device; determining whether a scan response from the first slave device is received; as well as After the Bluetooth slave device receives the scan response from the first slave device, the Bluetooth slave device stops scanning and connects to the master device to which the first slave device is connected according to the scan response, wherein: There is only one master device within the connection range of the first slave device and the Bluetooth slave device, The first slave device has a higher connection priority than the Bluetooth slave device, and The first slave device only broadcasts and the Bluetooth slave device only scans.

9. The connection synchronization method according to claim 8, further comprising: When the Bluetooth slave device does not receive the broadcast of the first slave device, the Bluetooth slave device continues to scan the first slave device for a predetermined scanning period.

10. The connection synchronization method according to claim 8, further comprising: After the Bluetooth slave device receives the scan response from the first slave device and when the Bluetooth slave device is connected to the new master device, the Bluetooth slave device is used to compare whether the current master device connected to the Bluetooth slave device and the first slave device is the same.

11. The connection synchronization method according to claim 10, wherein when the Bluetooth slave device is not connected to the new master device, a scanning period during which the Bluetooth slave device scans the first slave device starts from a starting point of a Bluetooth time slot or a predetermined time after the starting point.

12. The connection synchronization method according to claim 8, wherein: The scan request replied by the Bluetooth slave device includes the device address of the Bluetooth slave device; and The scan response of the first slave device includes the pairing information of the master device, a pairing index, pre-configured parameters required by the slave device for synchronization information, and a connection status of the first slave device.

13. A connection synchronization method of a Bluetooth system, the Bluetooth system comprising a first master device, a second master device, a first slave device and a second slave device, the connection synchronization method comprising: Bluetooth connects the first slave device and the second slave device to the first master device; When the first slave device receives the conversion signal, disconnecting the Bluetooth connection between the first slave device and the first master device; Using the first slave device to search for connection information of the second master device recorded in its memory; broadcasting the second slave device with the first slave device; Determining, by the first slave device, whether a scanning request from the second slave device is received; When the first slave device receives the scan request from the second slave device, the first slave device replies a scan response to the second slave device; stopping the broadcast of the first slave device; Bluetooth connects the first slave device to the second master device; as well as The second slave device is connected to the second master device via Bluetooth according to the scan response.

14. The connection synchronization method according to claim 13, further comprising: When the first slave device does not receive the scanning request from the second slave device, the first slave device continues to broadcast the second slave device for a predetermined broadcast period.

15. The connection synchronization method according to claim 13, wherein: Before connecting the second slave device to the second master device via Bluetooth according to the scan response, the connection synchronization method further comprises: Scanning the first slave device with the second slave device; determining, by the second slave device, whether the broadcast of the first slave device is received; When the second slave device receives the broadcast from the first slave device, replying the scanning request to the first slave device with the second slave device; determining, by the second slave device, whether the scan response of the first slave device is received; as well as After receiving the scan response from the first slave device, the second slave device disconnects the Bluetooth connection between the second slave device and the first master device.

16. The connection synchronization method according to claim 15, further comprising: When the second slave device does not receive the broadcast of the first slave device, the second slave device continues to scan the first slave device for a predetermined scanning period.

17. The connection synchronization method according to claim 15, further comprising: After receiving the scan response from the first slave device, the second slave device stops the scan.