Bluetooth connection control method, device and system
By using token combination information for authentication in the Bluetooth connection, the problems of lengthy and high power consumption in the traditional Bluetooth reconnection process are solved, and fast and low-power Bluetooth connection recovery is achieved.
Patent Information
- Application Number
- CN202511544909.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-27
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2045-10-27
AI Technical Summary
Traditional Bluetooth suffers from lengthy reconnection processes, loss of connection status, and high power consumption, especially in unstable wireless environments.
By using token combination information for authentication after a Bluetooth connection is established, traditional reconnection steps such as advertising, scanning, and key exchange are skipped, and the connection is established directly.
It reduces Bluetooth reconnection time, saves system resources, reduces device power consumption, and improves system efficiency.
Smart Images

Figure CN121509953A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of Bluetooth connection, and more particularly, to a Bluetooth connection control method, device and system. BACKGROUND
[0002] With the popularity of Internet of Things technology, Bluetooth devices are widely used in smart home, wearable devices, industrial sensors and other scenarios. However, the inherent reconnection mechanism of Bluetooth protocol has the following obvious defects when dealing with unstable wireless environments.
[0003] Long reconnection process: traditional Bluetooth reconnection needs to re-execute the complete connection establishment process, including a series of steps such as advertising, scanning, connection initialization, secure pairing, and service and feature discovery. This process usually takes hundreds of milliseconds or even seconds.
[0004] Loss of connection state: After the connection is disconnected, the connection state information maintained by the device end (Peripheral) and the central device end (Central) (such as subscribed feature handles and configuration bitmaps, data cache, etc.) will be lost. After 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 problems: Frequent complete reconnection process will cause the device radio frequency activity time to be prolonged, and a large amount of unnecessary protocol layer data exchange will be performed, which seriously increases the device power consumption and reduces the overall system efficiency. SUMMARY
[0006] An object of the present application is to provide a new technical solution for a Bluetooth connection control method.
[0007] According to a first aspect of the present application, a Bluetooth connection control method is provided, implemented by a central device, comprising: in the case that a peripheral device and a central device complete a Bluetooth connection, receiving token combination information encrypted based on a key established by the Bluetooth connection, sent by the peripheral device, wherein the token combination information includes token information and signature information, the token information includes subscription state information corresponding to the Bluetooth connection, and the signature information includes peripheral device identification information; storing the correspondence between the peripheral device and the token combination information; in the case that the peripheral device and the central device disconnect the Bluetooth connection, receiving a broadcast data packet sent by the peripheral device in a broadcast manner, wherein the broadcast data packet writes the token combination information; extracting first signature information and second signature information based on the key established by the Bluetooth connection, wherein the first signature information is signature information extracted from the broadcast data packet, and the second signature information is signature information extracted from the stored correspondence relationship; In a case where 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 re-establishes the Bluetooth connection with the central device based on the connection request.
[0008] Optionally, the method further comprises: In a case where the peripheral device and the central device re-establish the Bluetooth connection, subscription state information in the token information is extracted from the stored correspondence relationship; The subscription state information is sent to the peripheral device.
[0009] Optionally, the subscription state information comprises a subscription bitmap corresponding to the Bluetooth connection.
[0010] Optionally, the token combination information is sent to the central device by the peripheral device through a control feature, wherein the control feature is a dedicated channel for transmitting the token combination information.
[0011] Optionally, the token information further comprises a token validity period, and the method further comprises: determining whether the token information is valid according to the token validity period; In a case where the first signature information and the second signature information are inconsistent, and / or the token information is determined to be invalid, a complete Bluetooth connection establishment operation is restarted.
[0012] Optionally, the method further comprises: In a case where the peripheral device and the central device re-establish the Bluetooth connection, token combination information encrypted based on a key established by the re-established Bluetooth connection is received from the peripheral device.
[0013] According to a second aspect of the present application, a Bluetooth connection control method is provided, which is implemented by a peripheral device and comprises: In a case where the peripheral device and the central device establish the Bluetooth connection, token combination information is generated, wherein the token combination information comprises token information and signature information, the token information comprises subscription state information corresponding to the Bluetooth connection, and the signature information comprises peripheral device identification information; The token combination information is encrypted based on a key established by the Bluetooth connection, to obtain encrypted token combination information. send the encrypted token combination information to the central device, so that the central device stores the correspondence between the peripheral device and the token combination information; in the case where the peripheral device and the central device disconnect the Bluetooth connection, broadcast a broadcast data packet, wherein the broadcast data packet is written with the encrypted token combination information, so that the central device extracts the first signature information and the second signature information based on the key established in this Bluetooth connection, 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; in the case where the central device determines that the first signature information and the second signature information are consistent, receive a connection request sent by the central device, and re-establish the Bluetooth connection with the central device based on the connection request.
[0014] According to a third aspect of the present application, a central device is provided, comprising a memory and a processor, the memory storing a computer program for controlling the processor to operate to perform the method according to any one of the first aspect.
[0015] According to a fourth aspect of the present application, a peripheral device is provided, comprising a memory and a processor, the memory storing a computer program for controlling the processor to operate to perform the method according to any one of the second aspect.
[0016] According to a fifth aspect of the present application, a Bluetooth connection control system is provided, comprising the central device according to the third aspect or the peripheral device according to the fourth aspect.
[0017] The present disclosure provides a Bluetooth connection control method, in the case where a peripheral device and a central device complete a Bluetooth connection and then disconnect the Bluetooth connection, it is no longer necessary to re-perform all steps included in the Bluetooth connection, i.e. advertising, scanning, secure pairing and service and feature discovery, the central device can verify the identity of the peripheral device through signature information, i.e. in the case where the first signature information and the second signature information are consistent, the central device can determine the security of the identity of the peripheral device, proving that the peripheral device is a legal, paired device, and then send a connection request to the peripheral device, so that the peripheral device re-establishes the Bluetooth connection with the central device based on the connection request, which can skip the time-consuming pairing or key exchange process in the reconnection of the conventional technology.
[0018] The features and advantages of embodiments of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the drawings. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present specification and, together with the description, serve to explain the principles of embodiments of the present specification.
[0020] Figure 1 is a flowchart of a Bluetooth connection control method according to one embodiment of the present application.
[0021] Figure 2 is a flowchart of a Bluetooth connection control method according to another embodiment of the present application.
[0022] Figure 3 is a flowchart of a Bluetooth connection control method according to another embodiment of the present application.
[0023] Figure 4 is a structural diagram of a central device according to one embodiment of the present application.
[0024] Figure 5 is a structural diagram of a peripheral device according to one embodiment of the present application.
[0025] Figure 6 is a structural diagram of a Bluetooth connection control system according to one embodiment of the present application. DETAILED DESCRIPTION
[0026] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings. If it is considered that specific detailed descriptions of certain features can unnecessarily obscure the spirit of the present specification, the specific descriptions will be omitted. The terms "comprise" and "comprising" used in the present specification should not be interpreted as being restricted to the meaning of "consist of" or "consisting of."
[0027] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application or its application or uses.
[0028] It is noted that like numbers and letters refer to like items throughout the drawings, and once an item is defined in one drawing, that item need not be discussed further in subsequent drawings.
[0029] To solve the above technical problem, the present disclosure provides a Bluetooth connection control method, in the case that a peripheral device and a central device complete a Bluetooth connection and then disconnect the Bluetooth connection, all steps included in the Bluetooth connection, i.e. advertising, scanning, secure pairing and service and feature discovery, do not need to be re-executed, the central device can verify the identity of the peripheral device through signature information, i.e. in the case that the first signature information and the second signature information are consistent, the central device can determine the security of the identity of the peripheral device, prove that the peripheral device is a legal, paired device, and then send a connection request to the peripheral device, so that the peripheral device establishes a Bluetooth connection with the central device again based on the connection request, so that the time-consuming pairing or key exchange process in the traditional reconnection can be skipped.
[0030] In one embodiment of the present invention, a Bluetooth connection control method is provided. This method is implemented by a central device.
[0031] according to Figure 1 As shown, the cardiac health status detection method in this embodiment includes the following steps S110 to S150.
[0032] 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.
[0033] A Bluetooth connection between a peripheral device and a central device includes advertising, scanning, secure pairing, and service and feature discovery.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] The signature information includes peripheral device identification information. This peripheral device identification information can be a Media Access Control Address (MAC).
[0038] Step S120: Store the correspondence between peripheral devices and token combination information.
[0039] 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.
[0040] 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.
[0041] The token combination information written in the broadcast data packet is the encrypted information based on the key established for this Bluetooth connection.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] In one embodiment of the present invention, a Bluetooth connection control method is provided. This method is implemented by a peripheral device.
[0058] according to Figure 2 As shown, the cardiac health status detection method in this embodiment includes the following steps S210 to S250.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] The signature information includes peripheral device identification information. This peripheral device identification information can be a Media Access Control Address (MAC).
[0063] Step S220: Encrypt the token combination information based on the key established in this Bluetooth connection to obtain the encrypted token combination information.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] 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.
[0076] 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.
[0077] In step S303, the peripheral device sends the encrypted token combination information to the central device.
[0078] In step S304, the central device stores the correspondence between the peripheral devices and the token combination information.
[0079] 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.
[0080] Step S306: The central device receives the broadcast data packet sent by the peripheral device via broadcast.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] One embodiment of the present invention provides a central device. According to... Figure 4As 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.
[0086] 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] The central device can be any type of mobile phone or tablet computer.
[0091] Electronic devices can be any of the following: headphones, watches, bracelets, or rings.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
Citation Information
Patent Citations
Bluetooth connection control system
CN108471610A
Bluetooth reconnection method and related device
CN112399390A
Encrypted storage device authorization method and encrypted storage device
CN117714079A
Equipment connection method and device, terminal equipment and medium
CN119012410A
Digital key multichannel communication method and device, digital key device and medium
CN119483951A