Bluetooth connection control methods, devices and systems
By using a verification mechanism that combines token information and signature information in the Bluetooth connection, the problems of long reconnection time and high power consumption in traditional Bluetooth are solved, enabling fast and secure Bluetooth connection recovery and improving system efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GEER TECH CO LTD
- Filing Date
- 2025-10-27
- Publication Date
- 2026-07-17
AI Technical Summary
Traditional Bluetooth reconnection processes are time-consuming, connection status is lost, power consumption is high, and system efficiency is low, especially in unstable wireless environments.
By using a verification mechanism that combines token information and signature information in Bluetooth connections, fast reconnection is achieved, skipping traditional steps such as advertising, scanning, secure pairing, and service discovery, and using keys to verify the identity and legitimacy of peripheral devices.
It reduces Bluetooth reconnection time, lowers device power consumption, improves system efficiency, and ensures rapid connection recovery and security.
Smart Images

Figure CN121509953B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Bluetooth connectivity technology, and more specifically, to a Bluetooth connectivity control method, device, and system. Background Technology
[0002] With the popularization of IoT technology, Bluetooth devices are widely used in smart homes, wearable devices, industrial sensors, and other scenarios. However, when dealing with unstable wireless environments, the Bluetooth protocol's inherent reconnection mechanism has the following obvious shortcomings.
[0003] The reconnection process is lengthy: Traditional Bluetooth reconnection requires re-executing the entire connection establishment process, including a series of steps such as advertising, scanning, connection initialization, secure pairing, and service and feature discovery. This process typically takes hundreds of milliseconds or even several seconds.
[0004] Connection state loss: After a connection is lost, the connection state information maintained by both the peripheral and central devices (such as feature handles and configuration bitmaps for subscription notifications, data caches, etc.) will be lost. Upon successful reconnection, the application layer must re-execute all subscription and configuration operations, further increasing the time required to restore effective communication and consuming additional system resources.
[0005] Power consumption and efficiency issues: Frequent full reconnection processes will prolong the device's radio frequency activity time and involve a large number of unnecessary protocol layer data exchanges, which will significantly increase the device's power consumption and reduce the overall system efficiency. Summary of the Invention
[0006] One objective of this invention is to provide a new technical solution for a Bluetooth connection control method.
[0007] According to a first aspect of the present invention, a Bluetooth connection control method is provided, implemented by a central device, comprising: receiving, when a peripheral device completes a Bluetooth connection with the central device, token combination information encrypted with a key established based on the current Bluetooth connection, sent by the peripheral device, wherein the token combination information includes token information and signature information, the token information includes subscription status information corresponding to the current Bluetooth connection, and the signature information includes peripheral device identification information;
[0008] Store the correspondence between the peripheral devices and the token combination information;
[0009] When the peripheral device disconnects from the central device via Bluetooth, a broadcast data packet sent by the peripheral device via broadcast is received, wherein the broadcast data packet contains the token combination information.
[0010] Based on the key established by this Bluetooth connection, the first signature information and the second signature information are extracted respectively, wherein the first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence.
[0011] If the first signature information and the second signature information are consistent, a connection request is sent to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request.
[0012] Optionally, the method further includes:
[0013] When the peripheral device and the central device complete another Bluetooth connection, the subscription status information in the token information is extracted from the stored correspondence.
[0014] The subscription status information is sent to the peripheral device.
[0015] Optionally, the subscription status information includes the subscription bitmap corresponding to this Bluetooth connection.
[0016] Optionally, the token combination information is sent from the peripheral device to the central device via a control feature, wherein the control feature is a dedicated channel for transmitting the token combination information.
[0017] Optionally, the token information also includes a token validity period, wherein the method further includes:
[0018] The validity of the token information is determined based on the token's validity period.
[0019] If the first signature information and the second signature information are inconsistent, and / or if the token information is determined to be invalid, restart a complete Bluetooth connection establishment operation.
[0020] Optionally, the method further includes:
[0021] When the peripheral device and the central device complete a Bluetooth connection again, the device receives token combination information encrypted with the key established during the completed Bluetooth connection, sent by the peripheral device.
[0022] According to a second aspect of the present invention, a Bluetooth connection control method is provided, implemented by a peripheral device, comprising:
[0023] When a Bluetooth connection is completed between a peripheral device and a central device, token combination information is generated. The token combination information includes token information and signature information. The token information includes subscription status information corresponding to this Bluetooth connection, and the signature information includes peripheral device identification information.
[0024] The token combination information is encrypted using the key established based on this Bluetooth connection to obtain the encrypted token combination information;
[0025] The encrypted token combination information is sent to the central device so that the central device stores the correspondence between the peripheral devices and the token combination information;
[0026] When the peripheral device and the central device disconnect from Bluetooth, a broadcast data packet is sent via broadcast. The broadcast data packet contains encrypted token combination information, so that the central device can extract the first signature information and the second signature information based on the key established by this Bluetooth connection. The first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence.
[0027] If the central device determines that the first signature information and the second signature information are consistent, it receives a connection request sent by the central device to re-establish a Bluetooth connection with the central device based on the connection request.
[0028] According to a third aspect of the invention, a central device is provided, including a memory and a processor, the memory storing a computer program for controlling the processor to operate in order to perform the method according to any one of the first aspects.
[0029] According to a fourth aspect of the present invention, a peripheral device is provided, including a memory and a processor, the memory storing a computer program for controlling the processor to operate in order to perform the method according to any one of the second aspects.
[0030] According to a fifth aspect of the present invention, a Bluetooth connection control system is provided, comprising: a central device as described in the third aspect or a peripheral device as described in the fourth aspect.
[0031] This disclosure provides a Bluetooth connection control method. When a peripheral device completes a Bluetooth connection with a central device and then disconnects, it is no longer necessary to re-execute all the steps involved in the Bluetooth connection, namely advertising, scanning, secure pairing, and service and feature discovery. The central device can verify the identity of the peripheral device through signature information. That is, if the first signature information and the second signature information are consistent, the central device can determine the security of the peripheral device's identity, prove that the peripheral device is a legitimate and paired device, and then send a connection request to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request. This can skip the time-consuming pairing or key exchange process in traditional reconnection technology.
[0032] The features and advantages of the embodiments of this specification will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0033] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of this specification and, together with their description, serve to explain the principles of these embodiments.
[0034] Figure 1 This is a flowchart illustrating a Bluetooth connection control method according to an embodiment of the present invention.
[0035] Figure 2 This is a flowchart illustrating a Bluetooth connection control method according to another embodiment of the present invention.
[0036] Figure 3 This is a flowchart illustrating a Bluetooth connection control method according to another embodiment of the present invention.
[0037] Figure 4 This is a schematic diagram of the structure of a central device according to an embodiment of the present invention.
[0038] Figure 5 This is a schematic diagram of the structure of a peripheral device according to an embodiment of the present invention.
[0039] Figure 6 This is a schematic diagram of a Bluetooth connection control system according to an embodiment of the present invention. Detailed Implementation
[0040] Various exemplary embodiments of this specification will now be described in detail with reference to the accompanying drawings.
[0041] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the embodiments of this specification or their application or use.
[0042] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0043] To address the aforementioned technical issues, this disclosure provides a Bluetooth connection control method. When a peripheral device completes a Bluetooth connection with a central device and then disconnects, it is no longer necessary to re-execute all the steps involved in the Bluetooth connection process, namely advertising, scanning, secure pairing, and service and feature discovery. The central device can verify the identity of the peripheral device through signature information. Specifically, if the first and second signature information match, the central device can determine the security of the peripheral device's identity, proving that the peripheral device is a legitimate and paired device. Then, it sends a connection request to the peripheral device, enabling the peripheral device to re-establish a Bluetooth connection with the central device based on the connection request. This skips the time-consuming pairing or key exchange process in traditional reconnection techniques.
[0044] In one embodiment of the present invention, a Bluetooth connection control method is provided. This method is implemented by a central device.
[0045] according to Figure 1 As shown, the cardiac health status detection method in this embodiment includes the following steps S110 to S150.
[0046] Step S110: When the peripheral device and the central device complete a Bluetooth connection, the device receives the token combination information encrypted with the key established based on the current Bluetooth connection sent by the peripheral device. The token combination information includes token information and signature information. The token information includes the subscription status information corresponding to the current Bluetooth connection, and the signature information includes the peripheral device identification information.
[0047] A Bluetooth connection between a peripheral device and a central device includes advertising, scanning, secure pairing, and service and feature discovery.
[0048] When a peripheral device and a central device complete a Bluetooth connection, both the peripheral device and the central device store the key established based on this Bluetooth connection. The key established based on this Bluetooth connection can be a long-term key (LTK) or a shared key.
[0049] The subscription status information includes the subscription bitmap corresponding to this Bluetooth connection. The subscription bitmap includes the subscription status of each feature, which can be represented using a Client Characteristic Configuration Descriptor (CCCD). Each CCCD indicates whether the corresponding feature has notifications or indicators enabled. For example, if the feature is subscribed to heart rate data, the corresponding CCCD indicates that heart rate notifications are enabled. If the feature is subscribed to with battery notifications disabled, the corresponding CCCD indicates that battery notifications are disabled.
[0050] In some embodiments, the token information may include, in addition to the subscription status information corresponding to this Bluetooth connection, at least one of the following: a device unique identifier (e.g., MAC address), a random number, a timestamp, and a serial number.
[0051] The signature information includes peripheral device identification information. This peripheral device identification information can be a Media Access Control Address (MAC).
[0052] Step S120: Store the correspondence between peripheral devices and token combination information.
[0053] In this embodiment, the central device can obtain the peripheral device identification information and store the peripheral device identification information combined with the token information sent by the corresponding peripheral device.
[0054] Step S130: When the peripheral device and the central device disconnect the Bluetooth connection, receive the broadcast data packet sent by the peripheral device via broadcast, wherein the broadcast data packet contains token combination information.
[0055] The token combination information written in the broadcast data packet is the encrypted information based on the key established for this Bluetooth connection.
[0056] Specifically, the peripheral device embeds the token combination information into the ManufacturerSpecific Data field in the broadcast data packet. This field is reserved for manufacturer-defined data in the standard Bluetooth broadcast packet, ensuring good compatibility. The peripheral device can broadcast continuously or intermittently.
[0057] Step S140: Based on the key established by this Bluetooth connection, extract the first signature information and the second signature information respectively, wherein the first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence.
[0058] The central device stores the key corresponding to the latest Bluetooth connection established with the peripheral device. It can first extract the token combination information from the broadcast data packet, decrypt the token combination information based on the key to obtain the decrypted token combination information, and finally obtain the signature information from the decrypted token combination information as the first signature information.
[0059] The central device can also obtain the peripheral device identification information corresponding to the broadcast data packet. Based on the peripheral device identification information corresponding to the broadcast data packet and the correspondence between the stored peripheral device and token combination information, it can find the corresponding token combination information. Based on the key, it can decrypt the found token combination information to obtain the decrypted token combination information. It can then obtain the signature information from the decrypted token combination information as the second signature information.
[0060] In step S150, if the first signature information and the second signature information are consistent, a connection request is sent to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request.
[0061] If the first and second signature information match, the central device can determine the security of the peripheral device's identity, prove that the peripheral device is a legitimate and paired device, and then send a connection request to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request. This can skip the time-consuming pairing or key exchange process in traditional reconnection technology.
[0062] In some embodiments, the token information also includes the token validity period. The token validity period can be set as needed; specifically, a shorter validity period can be set, for example, 5-60 seconds.
[0063] The method further includes: determining whether the token information is valid based on the token validity period; and restarting a complete Bluetooth connection establishment operation if the first signature information and the second signature information are inconsistent, and / or if the token information is determined to be invalid.
[0064] If the first and second signature information are inconsistent, and / or the token information is determined to be invalid, the central device can determine that the identity of the peripheral device has not been verified. In this case, a complete Bluetooth connection establishment operation needs to be performed again, which involves completing the steps of advertising, scanning, secure pairing, and service and feature discovery.
[0065] In this embodiment, by determining whether the token information is valid, the identity of the peripheral device can be further verified, ensuring the legitimacy of the peripheral device that the central device re-establishes a Bluetooth connection.
[0066] In some embodiments, the method further includes: extracting subscription status information from the stored correspondence from the token information when the peripheral device and the central device complete another Bluetooth connection; and sending the subscription status information to the peripheral device.
[0067] In this embodiment, when the peripheral device and the central device complete a Bluetooth connection again, the subscription status information in the token information is extracted from the stored correspondence. This can skip the service and feature discovery steps in the traditional reconnection process and reduce time consumption.
[0068] In some embodiments, token combination information is sent from a peripheral device to a central device via a control feature, wherein the control feature is a dedicated channel for transmitting token combination information.
[0069] A control signature is a dedicated channel located in the GATT (Generic Attribute Profile) database used for transmitting commands and instructions. This signature is typically protected, ensuring the security of the entire process of transmitting token combination information.
[0070] In some embodiments, the method further includes: receiving token combination information encrypted with the key established during the renewed Bluetooth connection between the peripheral device and the central device. That is, the operations involved in steps S110 to S150 are performed again after the peripheral device and the central device re-establish a Bluetooth connection.
[0071] In one embodiment of the present invention, a Bluetooth connection control method is provided. This method is implemented by a peripheral device.
[0072] according to Figure 2 As shown, the cardiac health status detection method in this embodiment includes the following steps S210 to S250.
[0073] Step S210: When the peripheral device and the central device complete a Bluetooth connection, token combination information is generated. The token combination information includes token information and signature information. The token information includes the subscription status information corresponding to this Bluetooth connection, and the signature information includes the peripheral device identification information.
[0074] The subscription status information includes the subscription bitmap corresponding to this Bluetooth connection. The subscription bitmap includes the subscription status of each feature, which can be represented using a Client Characteristic Configuration Descriptor (CCCD). Each CCCD indicates whether the corresponding feature has notifications or indicators enabled. For example, if the feature is subscribed to heart rate data, the corresponding CCCD indicates that heart rate notifications are enabled. If the feature is subscribed to with battery notifications disabled, the corresponding CCCD indicates that battery notifications are disabled.
[0075] In some embodiments, the token information may include, in addition to the subscription status information corresponding to this Bluetooth connection, at least one of the following: a device unique identifier (e.g., MAC address), a random number, a timestamp, and a serial number.
[0076] The signature information includes peripheral device identification information. This peripheral device identification information can be a Media Access Control Address (MAC).
[0077] Step S220: Encrypt the token combination information based on the key established in this Bluetooth connection to obtain the encrypted token combination information.
[0078] When a peripheral device and a central device complete a Bluetooth connection, both the peripheral device and the central device store the key established based on this Bluetooth connection. The key established based on this Bluetooth connection can be a long-term key (LTK) or a shared key.
[0079] Step S230: Send the encrypted token combination information to the central device so that the central device stores the correspondence between the peripheral devices and the token combination information.
[0080] In this embodiment, the central device can obtain the peripheral device identification information and store the peripheral device identification information combined with the token information sent by the corresponding peripheral device.
[0081] Step S240: When the peripheral device and the central device disconnect the Bluetooth connection, a broadcast data packet is sent via broadcast. The broadcast data packet contains encrypted token combination information so that the central device can extract the first signature information and the second signature information based on the key established by this Bluetooth connection. The first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence.
[0082] Specifically, the peripheral device embeds the token combination information into the ManufacturerSpecific Data field in the broadcast data packet. This field is reserved for manufacturer-defined data in the standard Bluetooth broadcast packet, ensuring good compatibility. The peripheral device can broadcast continuously or intermittently.
[0083] The central device stores the key corresponding to the latest Bluetooth connection established with the peripheral device. It can first extract the token combination information from the broadcast data packet, decrypt the token combination information based on the key to obtain the decrypted token combination information, and finally obtain the signature information from the decrypted token combination information as the first signature information.
[0084] The central device can also obtain the peripheral device identification information corresponding to the broadcast data packet. Based on the peripheral device identification information corresponding to the broadcast data packet and the correspondence between the stored peripheral device and token combination information, it can find the corresponding token combination information. Based on the key, it can decrypt the found token combination information to obtain the decrypted token combination information. It can then obtain the signature information from the decrypted token combination information as the second signature information.
[0085] In step S250, if the central device determines that the first signature information and the second signature information are consistent, it receives a connection request sent by the central device to re-establish a Bluetooth connection with the central device based on the connection request.
[0086] If the first and second signature information match, the central device can determine the security of the peripheral device's identity, prove that the peripheral device is a legitimate and paired device, and then send a connection request to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request. This can skip the time-consuming pairing or key exchange process in traditional reconnection technology.
[0087] In some embodiments, the method further includes: receiving subscription status information sent by the central device when the peripheral device and the central device complete a Bluetooth connection again, so as to perform subsequent operations based on the subscription status information.
[0088] The Bluetooth connection control method provided by the present invention will be described below with reference to a specific embodiment. Figure 3 As shown, the Bluetooth connection control method includes steps S301 to S310.
[0089] In step S301, when the peripheral device and the central device complete a Bluetooth connection, the peripheral device generates token combination information, wherein the token combination information includes token information and signature information. The token information includes the subscription status information corresponding to this Bluetooth connection, and the signature information includes the peripheral device identification information.
[0090] In step S302, the peripheral device encrypts the token combination information based on the key established in this Bluetooth connection to obtain the encrypted token combination information.
[0091] In step S303, the peripheral device sends the encrypted token combination information to the central device.
[0092] In step S304, the central device stores the correspondence between the peripheral devices and the token combination information.
[0093] In step S305, when the peripheral device disconnects from the central device via Bluetooth, the peripheral device sends a broadcast data packet via broadcast, wherein the broadcast data packet contains encrypted token combination information.
[0094] Step S306: The central device receives the broadcast data packet sent by the peripheral device via broadcast.
[0095] In step S307, the central device extracts the first signature information and the second signature information based on the key established by this Bluetooth connection. The first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence.
[0096] In step S308, if the first signature information and the second signature information are consistent, the central device sends a connection request to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request.
[0097] In step S309, if the peripheral device and the central device complete a Bluetooth connection again, the central device extracts the subscription status information from the stored correspondence information.
[0098] In step S310, the central device sends the subscription status information to the peripheral device so that the peripheral device can configure itself based on the subscription status information.
[0099] One embodiment of the present invention provides a central device. According to... Figure 4 As shown, the central device includes a memory 420 and a processor 410. The memory 420 stores a computer program for controlling the processor 410 to operate and execute the Bluetooth connection control method provided according to any of the above embodiments.
[0100] The processor 410 is used to execute computer instructions, which can be written using instruction sets of architectures such as x86, Arm, RISC, MIPS, and SSE. The memory 420 includes, for example, ROM (Read-Only Memory), RAM (Random Access Memory), and non-volatile memory such as a hard disk, etc., and is not limited thereto.
[0101] One embodiment of the present invention provides a peripheral device. According to... Figure 5 As shown, the peripheral device includes a memory 520 and a processor 510. The memory 520 stores a computer program that controls the processor 510 to operate and execute the Bluetooth connection control method provided according to any of the above embodiments.
[0102] The processor 510 is used to execute computer instructions, which can be written using instruction sets of architectures such as x86, Arm, RISC, MIPS, and SSE. The memory 520 includes, for example, ROM (Read-Only Memory), RAM (Random Access Memory), and non-volatile memory such as hard disks, etc., and is not limited thereto.
[0103] One embodiment of the present invention provides a Bluetooth connection control system. According to... Figure 6 As shown, the Bluetooth connectivity control system includes the central device and peripheral devices provided in any of the above embodiments.
[0104] The central device can be any type of mobile phone or tablet computer.
[0105] Electronic devices can be any of the following: headphones, watches, bracelets, or rings.
[0106] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.
[0107] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0108] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0109] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from computer-readable program instructions. These electronic circuits can execute computer-readable program instructions to implement various aspects of the present invention.
[0110] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0111] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0112] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.
[0114] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims
1. A Bluetooth connection control method, characterized in that, Implemented by central equipment, including: When a peripheral device and a central device complete a Bluetooth connection, the device receives token combination information encrypted with the key established based on the Bluetooth connection, sent by the peripheral device. The token combination information includes token information and signature information. The token information includes subscription status information corresponding to the Bluetooth connection, and the signature information includes peripheral device identification information. Store the correspondence between the peripheral devices and the token combination information; When the peripheral device disconnects from the central device via Bluetooth, a broadcast data packet sent by the peripheral device via broadcast is received, wherein the broadcast data packet contains the token combination information. Based on the key established by this Bluetooth connection, the first signature information and the second signature information are extracted respectively, wherein the first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence. If the first signature information and the second signature information are consistent, a connection request is sent to the peripheral device so that the peripheral device can re-establish a Bluetooth connection with the central device based on the connection request.
2. The method according to claim 1, characterized in that, The method further includes: When the peripheral device and the central device complete another Bluetooth connection, the subscription status information in the token information is extracted from the stored correspondence. The subscription status information is sent to the peripheral device.
3. The method according to claim 1 or 2, characterized in that, The subscription status information includes the subscription bitmap corresponding to this Bluetooth connection.
4. The method according to claim 1, characterized in that, The token combination information is sent from the peripheral device to the central device via a control feature, wherein the control feature is a dedicated channel for transmitting the token combination information.
5. The method according to claim 1, characterized in that, The token information also includes a token validity period, and the method further includes: The validity of the token information is determined based on the token's validity period. If the first signature information and the second signature information are inconsistent, and / or if the token information is determined to be invalid, restart a complete Bluetooth connection establishment operation.
6. The method according to claim 1, characterized in that, The method further includes: When the peripheral device and the central device complete a Bluetooth connection again, the device receives token combination information encrypted with the key established during the completed Bluetooth connection, sent by the peripheral device.
7. A Bluetooth connection control method, characterized in that, Implemented by peripheral equipment, including: When a Bluetooth connection is completed between a peripheral device and a central device, token combination information is generated. The token combination information includes token information and signature information. The token information includes subscription status information corresponding to this Bluetooth connection, and the signature information includes peripheral device identification information. The token combination information is encrypted using the key established based on this Bluetooth connection to obtain the encrypted token combination information; The encrypted token combination information is sent to the central device so that the central device stores the correspondence between the peripheral devices and the token combination information; When the peripheral device and the central device disconnect from Bluetooth, a broadcast data packet is sent via broadcast. The broadcast data packet contains encrypted token combination information, so that the central device can extract the first signature information and the second signature information based on the key established by this Bluetooth connection. The first signature information is the signature information extracted from the broadcast data packet, and the second signature information is the signature information extracted from the stored correspondence. If the central device determines that the first signature information and the second signature information are consistent, it receives a connection request sent by the central device to re-establish a Bluetooth connection with the central device based on the connection request.
8. A central device, characterized in that, It includes a memory and a processor, the memory storing a computer program for controlling the processor to operate in order to perform the method according to any one of claims 1 to 6.
9. A peripheral device, characterized in that, It includes a memory and a processor, the memory storing a computer program for controlling the processor to operate in order to perform the method according to claim 7.
10. A Bluetooth connection control system, characterized in that, include: The central device as described in claim 8 or the peripheral device as described in claim 9.