CN115767553A - Bluetooth safety connection method of intelligent system or intelligent device - Google Patents

Bluetooth safety connection method of intelligent system or intelligent device Download PDF

Info

Publication number
CN115767553A
CN115767553A CN202211247225.8A CN202211247225A CN115767553A CN 115767553 A CN115767553 A CN 115767553A CN 202211247225 A CN202211247225 A CN 202211247225A CN 115767553 A CN115767553 A CN 115767553A
Authority
CN
China
Prior art keywords
bluetooth
intelligent
equipment
target bluetooth
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211247225.8A
Other languages
Chinese (zh)
Inventor
余学稳
李小龙
王金拴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mojie Technology Co ltd
Original Assignee
Shenzhen Mojie Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mojie Technology Co ltd filed Critical Shenzhen Mojie Technology Co ltd
Priority to CN202211247225.8A priority Critical patent/CN115767553A/en
Publication of CN115767553A publication Critical patent/CN115767553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a safe connection method of Bluetooth of an intelligent system or intelligent equipment, which comprises the following steps: the intelligent equipment scans whether target Bluetooth equipment exists around; when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment and is verified; and when the verification fails, the intelligent equipment updates the verification code and continues to verify until the verification succeeds, the intelligent equipment updates the verification code, and the intelligent equipment is matched with the target Bluetooth equipment to complete Bluetooth connection. Whether the check is successful or failed, the intelligent device can update the check code, the check code is leaked, other Bluetooth devices acquire the check code of the intelligent device, and due to the fact that the check code of the intelligent device is updated, when the Bluetooth is connected next time, the other Bluetooth devices cannot be successfully checked, cannot be connected with the intelligent device in a Bluetooth mode, and the safety of the intelligent device is guaranteed.

Description

Bluetooth safety connection method of intelligent system or intelligent equipment
Technical Field
The invention relates to the technical field of Bluetooth communication, in particular to a safe Bluetooth connection method for an intelligent system or intelligent equipment.
Background
Bluetooth is classified into classic Bluetooth (BR/EDR) and Bluetooth Low Energy (BLE). In the prior art, classical bluetooth can be connected by other bluetooth devices in a pairing mode, so that the method is not very safe and has information leakage risk. Even adopt the key check when connecting Bluetooth Low Energy (BLE), still can be grabbed the package and acquire the check code, in case the check code is grabbed the package and is acquireed, connect just also no longer safe.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a secure connection method for bluetooth of an intelligent system or an intelligent device, aiming at solving the problem of poor security of bluetooth connection in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a safe connection method of Bluetooth of an intelligent device comprises the following steps:
the intelligent equipment scans whether target Bluetooth equipment exists around;
when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment and checks;
and when the verification fails, the intelligent equipment updates the verification code and continues to verify until the verification succeeds, the intelligent equipment updates the verification code, and the intelligent equipment is matched with the target Bluetooth equipment to complete Bluetooth connection.
The Bluetooth secure connection method of the intelligent device, wherein the intelligent device comprises: a Bluetooth management module; the intelligent device scans whether target Bluetooth devices exist around, and comprises:
the Bluetooth management module of the intelligent device sends scanning information to scan the target Bluetooth device;
and when the Bluetooth management module of the intelligent device receives the scanning result sent by the target Bluetooth device and the scanning result meets the preset condition, the target Bluetooth device exists and the scanning is finished.
The secure connection method of bluetooth of the intelligent device, wherein the scanning result includes: the supplier identification code is consistent with the product identification code, and the preset conditions are that the supplier identification code is consistent with the product identification code.
The Bluetooth secure connection method of the intelligent device, wherein the intelligent device comprises: a Bluetooth instance module; the smart machine with target bluetooth device communication connection carries out the check-up, includes:
the Bluetooth instance module of the intelligent device sends a connection request to the target Bluetooth device;
the Bluetooth instance module of the intelligent equipment receives connection success callback information sent by the target Bluetooth equipment so as to establish a communication channel with the target Bluetooth equipment to realize communication connection;
and the intelligent equipment sends a check code to the target Bluetooth equipment through the communication channel so as to check.
The secure connection method of bluetooth of the intelligent device, wherein the communication channel further includes: BLE channel and classic bluetooth channel;
when the check-up fails, the intelligent device updates the check-up code and continues to check up until the check-up succeeds, the intelligent device updates the check-up code, and the intelligent device is paired with the target Bluetooth device to complete Bluetooth connection, including:
when the intelligent device receives calibration failure callback information sent by the target Bluetooth device through the BLE channel, updating a calibration code according to a preset rule, and sending the updated calibration code to the target Bluetooth device through the BLE channel so as to continuously perform calibration;
when the intelligent device receives callback information of successful verification sent by the target Bluetooth device through the BLE channel, updating a verification code according to a preset rule, and sending a pairing command to the target Bluetooth device through the BLE channel so that the target Bluetooth device stores a first classical Bluetooth address carried by the pairing command;
the method for the safe connection of the bluetooth of the intelligent device, wherein when the verification fails, the intelligent device updates the check code and continues to perform the verification until the verification succeeds, the intelligent device updates the check code, and the intelligent device is paired with the target bluetooth device to complete the bluetooth connection, further comprising:
the intelligent device receives classic Bluetooth pairing connection information sent by the target Bluetooth device through the classic Bluetooth channel;
the intelligent device sends a pairing request to the target Bluetooth device through the classic Bluetooth channel; the pairing request carries a second classic Bluetooth address;
the intelligent device receives the comparison success information of the classic Bluetooth address through the classic Bluetooth channel so as to complete Bluetooth connection.
A secure connection method of bluetooth of an intelligent system, wherein the intelligent system comprises: the intelligent device and the target Bluetooth device; the method comprises the following steps:
the intelligent device scans whether the target Bluetooth device exists around;
when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment and carries out verification;
and when the verification fails, the intelligent equipment updates the verification code and the target Bluetooth equipment updates the local verification code, and the verification is continued until the verification succeeds, the intelligent equipment updates the verification code and the target Bluetooth equipment updates the local verification code, and the intelligent equipment is matched with the target Bluetooth equipment to complete Bluetooth connection.
The secure connection method of bluetooth of the intelligent system, wherein the intelligent device includes: a Bluetooth instance module; when the target Bluetooth device exists, the intelligent device is in communication connection with the target Bluetooth device and checks, and the method comprises the following steps:
the Bluetooth instance module of the intelligent device sends a connection request to the target Bluetooth device;
the target Bluetooth device receives the connection request and sends connection success callback information to a Bluetooth instance module of the intelligent device;
the Bluetooth instance module of the intelligent equipment receives the connection success callback information so as to establish a communication channel with the target Bluetooth equipment to realize communication connection;
the intelligent device sends a check code to the target Bluetooth device through the communication channel;
and the target Bluetooth equipment receives the check code through the communication channel, and compares the check code with a local check code stored in the target Bluetooth equipment for checking.
A computer device comprising a memory storing a computer program and a processor, wherein the processor when executing the computer program implements the steps of the method for secure connection of bluetooth of a smart device as described in any one of the above or the method for secure connection of bluetooth of a smart system as described in any one of the above.
A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the secure connection method for bluetooth of a smart device as defined in any one of the above or the secure connection method for bluetooth of a smart system as defined in any one of the above.
Has the advantages that: whether the check is successful or failed, the intelligent device can update the check code, the check code is leaked, other Bluetooth devices acquire the check code of the intelligent device, and due to the fact that the check code of the intelligent device is updated, when the Bluetooth is connected next time, the other Bluetooth devices cannot be successfully checked, cannot be connected with the intelligent device in a Bluetooth mode, and the safety of the intelligent device is guaranteed.
Drawings
FIG. 1 is a functional block diagram of an intelligent system of the present invention.
Fig. 2 is a functional block diagram of an intelligent device according to the present invention.
Fig. 3 is a flow chart of the scanning phase of the present invention.
Fig. 4 is a flow chart of the verification stage of the present invention.
Fig. 5 is a flow chart of the pairing phase of the present invention.
Fig. 6 is a flow chart of the data transfer phase of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1-6, the present invention provides some embodiments of a secure bluetooth connection method for an intelligent device.
As shown in fig. 1, the present invention provides an intelligent system comprising: the intelligent equipment is intelligent equipment worn on a user, the target Bluetooth equipment is equipment capable of establishing Bluetooth connection with the intelligent equipment, the target Bluetooth equipment is generally used for controlling the intelligent equipment, after the intelligent equipment is worn on the user, the target Bluetooth equipment is in Bluetooth connection with the intelligent equipment, data transmission is achieved, and control instructions can be sent to control the intelligent equipment through Bluetooth connection. The smart device comprises a smart earphone, a smart watch, smart eyes and the like, the smart eyes can be smart AR glasses and the like, and the target Bluetooth device comprises a smart phone, a smart tablet, a computer and the like.
Specifically, as shown in fig. 2, the smart device includes: the Bluetooth Device comprises a Bluetooth management module (Manager) and a Bluetooth instance module (Device), wherein the Bluetooth management module is used for scanning a target Bluetooth Device, and the Bluetooth instance module is used for being connected with the target Bluetooth Device.
As shown in fig. 3 to fig. 5, the method for secure bluetooth connection of an intelligent device according to the present invention includes the following steps:
and S100, the intelligent equipment scans whether target Bluetooth equipment exists around.
And S200, when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment, and the target Bluetooth equipment is verified.
And step S300, when the verification fails, the intelligent equipment updates the verification code and continues to perform verification until the verification succeeds, the intelligent equipment updates the verification code, and the intelligent equipment is paired with the target Bluetooth equipment to complete Bluetooth connection.
Specifically, when the intelligent device is checked, the intelligent device does not adopt non-key checking or fixed key checking, but adopts a mode of updating the check code to check, and whether the checking is successful or failed, the intelligent device can update the check code, so that the check code is leaked, and other Bluetooth devices acquire the check code of the intelligent device.
Specifically, the bluetooth connection between the smart device and the target bluetooth device is divided into a third phase, which is a scanning phase, a verification phase, and a pairing phase. The method comprises the steps that the Bluetooth of the intelligent device and the Bluetooth of the target Bluetooth device need to be started in a scanning stage, the target Bluetooth device starts to be scanned after the Bluetooth of the intelligent device is started, and the intelligent device can scan other Bluetooth devices besides the target Bluetooth device during scanning. It should be noted that, the target bluetooth device may control the intelligent device by installing an app and other virtual controllers, and only when the target bluetooth device is scanned, the scanning is finished, and the scanning stage is completed. Other bluetooth devices are scanned and the scan is not finished.
In order to accurately scan the target bluetooth device, step S100 specifically includes:
and step S110, the Bluetooth management module of the intelligent device sends scanning information to scan the target Bluetooth device.
And step S120, when the Bluetooth management module of the intelligent device receives the scanning result sent by the target Bluetooth device and the scanning result meets a preset condition, the target Bluetooth device exists and the scanning is finished.
Step S130, when the Bluetooth management module of the intelligent device does not receive the scanning result or the received scanning result does not meet the preset condition, the target Bluetooth device does not exist, the scanning information is continuously sent to continuously scan the target Bluetooth device, and the scanning is finished until the scanning stopping instruction is received.
Specifically, as shown in fig. 3, the smart device sends out scanning information to perform scanning. And after receiving the scanning information, the target Bluetooth device (or other Bluetooth devices) sends a scanning result to the intelligent device, and if the scanning result meets a preset condition, the target Bluetooth device is indicated to exist. If the scanning result received by the intelligent device does not meet the preset condition or the scanning result is not received, it is indicated that the target Bluetooth device does not exist, the scanning information is continuously sent to continuously scan the target Bluetooth device until the scanning stopping instruction is received, and the scanning stopping instruction can be the Bluetooth of the intelligent device.
The scanning information carries a supplier identification code (VID) and a product identification code (PID), when the target bluetooth device (or other bluetooth devices) receives the scanning information, the supplier identification code (VID) and the product identification code (PID) are obtained, some bluetooth devices cannot control the intelligent device, the local supplier identification code and the local product identification code cannot be stored, and the two cannot be compared, so that the scanning result cannot be sent after the scanning information is received. Some bluetooth devices also store local supplier identification codes and local product identification codes, and compare the two, but the supplier identification codes in the scanning information are not consistent with the local supplier identification codes, or the product identification codes in the scanning information are not consistent with the local product identification codes, then the sent scanning result is that the supplier identification codes are not consistent, or the product identification codes are not consistent. The target Bluetooth device stores a local supplier identification code and a local product identification code, compares the supplier identification code with the local supplier identification code in the scanning information, compares the product identification code with the local product identification code in the scanning information, and sends a scanning result (namely a comparison result) to the intelligent device. And after receiving the scanning result, the intelligent device judges whether the scanning result meets a preset condition, wherein the preset condition is that the supplier identification code is consistent and the product identification code is consistent.
From the above, the scanning result includes: the vendor identification code is not consistent, the vendor identification code is consistent, the product identification code is not consistent, and the product identification code is consistent. And when the scanning result meets the preset condition, namely the scanning result is that the supplier identification codes are consistent and the product identification codes are consistent, the preset condition is met. If the scanning result is that the supplier identification code is inconsistent and the product identification code is consistent, the supplier identification code is consistent and the product identification code is inconsistent, the supplier identification code is inconsistent and the product identification code is inconsistent, the preset condition is not met.
Step S200 specifically includes:
step S210, the Bluetooth instance module of the intelligent device sends a connection request to the target Bluetooth device.
Step S220, the bluetooth instance module of the intelligent device receives the connection success callback information sent by the target bluetooth device, so as to establish a communication channel with the target bluetooth device to implement communication connection.
And step S230, the intelligent equipment sends a check code to the target Bluetooth equipment through the communication channel so as to check.
Specifically, as shown in fig. 4, the intelligent device sends a connection request to the target bluetooth device, and the target bluetooth device sends connection success callback information to the intelligent device after receiving the connection request, so that the intelligent device and the target bluetooth device establish a communication channel to realize communication connection. Specifically, the communication channel includes: BLE channel and classic bluetooth channel. And the intelligent device is connected with a BLE (Bluetooth low energy) channel established by the target Bluetooth device. The smart device may perform a check based on the BLE channel, and specifically, the smart device transmits a check code to the target bluetooth device through the BLE channel to perform the check.
Specifically, a local check code is stored in the target bluetooth device, after the target bluetooth device receives the check code sent by the intelligent device through the BLE channel, the check code is compared with the local check code, when the check code is consistent with the local check code, the check is successful, and the target bluetooth device sends callback information of successful check to the intelligent device through the BLE channel; when the Bluetooth device and the Bluetooth device are inconsistent, the verification fails, and the target Bluetooth device sends callback information of the verification failure to the intelligent device through the BLE channel.
Step S300 specifically includes:
step S310, when the smart device receives the callback information of the verification failure sent by the target bluetooth device through the BLE channel, the smart device updates the verification code according to a preset rule, and sends the updated verification code to the target bluetooth device through the BLE channel to continue the verification.
Step S320, when the intelligent device receives callback information of successful verification sent by the target bluetooth device through the BLE channel, the intelligent device updates the verification code according to a preset rule, and sends a pairing command to the target bluetooth device through the BLE channel, so that the target bluetooth device stores the first classic bluetooth address carried in the pairing command.
And S330, the intelligent device receives classical Bluetooth pairing connection information sent by the target Bluetooth device through the classical Bluetooth channel.
Step S340, the intelligent device sends a pairing request to the target Bluetooth device through the classic Bluetooth channel; the pairing request carries a second classic bluetooth address.
And S350, the intelligent equipment receives comparison success information of the classic Bluetooth address through the classic Bluetooth channel so as to complete Bluetooth connection.
Specifically, when the check code is successfully checked, the target bluetooth device updates the local check code, sends callback information of successful check to the intelligent device through the BLE channel, and the intelligent device receives the callback information of successful check sent by the target bluetooth device through the BLE channel, updates the check code and pairs with the target bluetooth device. When the check code fails to be checked, the target Bluetooth device updates the local check code and sends check failure callback information to the intelligent device through the BLE channel, and the intelligent device receives the check failure callback information sent by the target Bluetooth device through the BLE channel, updates the check code and continues checking. No matter the check code is checked successfully or fails, the target Bluetooth device can update the local check code and the intelligent device can update the check code, and even if the check code is received by other Bluetooth devices in the previous check process, the check code cannot be checked successfully with the intelligent device, and the Bluetooth connection cannot be achieved.
When the intelligent device and the target Bluetooth device establish a communication channel, a classic Bluetooth channel can be established. As shown in fig. 5, in the pairing process, the smart device sends a pairing command to the target bluetooth device through the BLE channel, and after receiving the pairing command, the target bluetooth device stores a first classic bluetooth address carried in the pairing command, and then sends classic bluetooth pairing loopback information to the smart device through the classic bluetooth channel. The intelligent device receives the classic Bluetooth pairing connection information through the classic Bluetooth channel, the intelligent device sends a pairing request to the target Bluetooth device through the classic Bluetooth channel, the target Bluetooth device receives the pairing request through the classic Bluetooth channel, obtains a second classic Bluetooth address carried by the pairing request, compares the first classic Bluetooth address with the second classic Bluetooth address, if the two addresses are consistent, the comparison is successful, the target Bluetooth device sends comparison success information to the intelligent device through the classic Bluetooth channel, and Bluetooth connection between the intelligent device and the target Bluetooth device is achieved. If the Bluetooth address and the Bluetooth address are not consistent, the intelligent device continues to send a pairing command to the target Bluetooth device through the BLE channel, so that the target Bluetooth device stores the first typical Bluetooth address carried by the pairing command, and if the Bluetooth address and the Bluetooth address are still not successfully compared, the Bluetooth connection is ended.
It should be noted that, when the bluetooth connection is performed, the pairing command is directly and automatically sent, the bluetooth connection is realized by comparing the classic bluetooth addresses, and the classic bluetooth device enters the pairable mode without physical keys or commands, that is, only the bluetooth of the intelligent device and the bluetooth of the target bluetooth device are required to be ensured to be in an open state, so that the automatic bluetooth connection between the intelligent device and the target bluetooth device is realized based on the method of the present invention, and the bluetooth connection between the intelligent device and the target bluetooth device is simplified.
It can be understood that, during pairing, the smart device does not directly initiate pairing to the target bluetooth device, and even if the smart device initiates pairing to the target bluetooth device, the target bluetooth device also rejects pairing (if pairing is not rejected, the smart device needs to enter a pairable mode through a physical button or a command, which is cumbersome to operate), so that the smart device sends a pairing command to the target bluetooth device through the BLE channel to perform automatic pairing.
As shown in fig. 6, after bluetooth connection, when entering a data transmission phase, the bluetooth instance module of the smart device provides a command sending task thread and a command receiving thread, each thread has a command queue to buffer commands, so that commands are safer and command sending/receiving is not blocked.
Referring to fig. 1 to fig. 6, the present invention provides some embodiments of a secure connection method for bluetooth of an intelligent system. The intelligent system comprises: intelligent device and target bluetooth device.
As shown in fig. 3 to 5, the method for secure bluetooth connection in an intelligent system according to the present invention includes the following steps:
step A100, the intelligent device scans whether the target Bluetooth device exists around.
And A200, when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment and checks.
Step A300, when the verification fails, the intelligent device updates the verification code and the target Bluetooth device updates the local verification code, the verification is continued until the verification succeeds, the intelligent device updates the verification code and the target Bluetooth device updates the local verification code, and the intelligent device is matched with the target Bluetooth device to complete Bluetooth connection.
Specifically, the smart device scans first, and when the target bluetooth device exists in a preset range around the smart device, the target bluetooth device is checked. Regardless of whether the verification succeeds or fails, the intelligent device can update the verification code, the target Bluetooth device can update the local verification code, and even if the verification code leaks, the intelligent device cannot be connected by other Bluetooth devices due to the fact that the verification code of the intelligent device is updated, and safety problems occur.
The intelligent device firstly determines whether target Bluetooth devices capable of being connected through Bluetooth exist around in a scanning mode, and after the target Bluetooth devices are scanned, verification and pairing are carried out.
Step a100 specifically includes:
step A110, the Bluetooth management module of the intelligent device sends scanning information to scan the target Bluetooth device.
Step A120, the target Bluetooth device receives the scanning information and sends a scanning result to the Bluetooth management module of the intelligent device.
Step A130, the Bluetooth management module of the intelligent device receives the scanning result, and when the scanning result meets a preset condition, the target Bluetooth device exists, and scanning is finished.
Step A140, when the Bluetooth management module of the intelligent device does not receive the scanning result, or the received scanning result does not meet the preset condition, the target Bluetooth device does not exist, the scanning information is continuously sent to continuously scan the target Bluetooth device, and the scanning is finished until the scanning stopping instruction is received.
As shown in fig. 3, before the smart device and the target bluetooth device in the smart system are bluetooth connected, the target bluetooth device stores a local vendor identification code and a local product identification code, where the local vendor identification code and the local product identification code are respectively a vendor identification code and a product identification code belonging to the smart device, that is, after the target bluetooth device uses the vendor identification code and the product identification code of the smart device as the local vendor identification code and the local product identification code, respectively, it can perform bluetooth connection with the smart device.
Step a200 specifically includes:
step A210, the Bluetooth instance module of the intelligent device sends a connection request to the target Bluetooth device.
Step A220, the target Bluetooth device receives the connection request and sends connection success callback information to the Bluetooth instance module of the intelligent device.
Step A230, the Bluetooth instance module of the intelligent device receives the connection success callback information to establish a communication channel with the target Bluetooth device to realize communication connection.
Step A240, the intelligent device sends a check code to the target Bluetooth device through the communication channel.
And A250, the target Bluetooth device receives the check code through the communication channel, and compares the check code with a local check code stored in the target Bluetooth device to check.
Specifically, after the intelligent device scans the target bluetooth device, the intelligent device establishes a communication channel with the target bluetooth device so as to facilitate communication connection. The communication channel can comprise a BLE channel and can also comprise a classic Bluetooth channel.
As shown in fig. 4, before the intelligent device and the target bluetooth device in the intelligent system are connected via bluetooth, the target bluetooth device stores a local check code. The intelligent equipment sends the check code to the target Bluetooth equipment through the BLE channel, and then the target Bluetooth equipment can compare the received check code with the stored local check code, thereby realizing the check.
Step a300 specifically includes:
step A310, when the verification fails, the target Bluetooth device updates a local verification code according to a preset rule, and sends verification failure callback information to the intelligent device through the BLE channel.
Step A320, the intelligent device receives the checking failure callback information through the BLE channel, updates the checking code according to the preset rule, and sends the updated checking code to the target Bluetooth device through the BLE channel so as to continuously check.
Step A330, when the verification is successful, the target Bluetooth device updates the local verification code according to a preset rule, and sends callback information of successful verification to the intelligent device through the BLE channel.
Step a340, the intelligent device receives the callback information of successful verification through the BLE channel, updates the verification code according to the preset rule, and sends a pairing command to the target bluetooth device through the BLE channel.
Step A350, the target Bluetooth device receives the pairing command, stores the first classic Bluetooth address carried by the pairing command, and sends classic Bluetooth pairing connection information to the intelligent device through the classic Bluetooth channel.
And A360, the intelligent equipment receives the classic Bluetooth pairing connection information through the classic Bluetooth channel.
Step A370, the intelligent device sends a pairing request to the target Bluetooth device through the classic Bluetooth channel; the pairing request carries a second classic bluetooth address.
And step A380, the target Bluetooth device receives the pairing request, compares the second classic Bluetooth address with the first classic Bluetooth address, and sends comparison success information to the intelligent device through the classic Bluetooth channel when the comparison is successful.
And step A390, the intelligent device receives the comparison success information through the classic Bluetooth channel to complete Bluetooth connection.
The calibration can be carried out based on a BLE channel after scanning, the calibration code is updated based on the same preset rule by the intelligent device and the target Bluetooth device in the intelligent system, specifically, the calibration code is updated based on the preset rule by the intelligent device, the local calibration code is updated based on the same preset rule by the target Bluetooth device, and the updated calibration code is consistent with the updated local calibration code due to the fact that the calibration code is updated based on the same preset rule. Because the check code can be updated, the intelligent device and the target Bluetooth device based on the same preset rule can be successfully checked.
As shown in fig. 5, after the verification is successful, automatic pairing is performed, the smart device sends a pairing command to the target bluetooth device through the BLE channel, and the target bluetooth device may receive a first classic bluetooth address carried by the pairing command and feed back classic bluetooth pairing connection information to the smart device through the classic bluetooth channel. After receiving the classic Bluetooth pairing connection information, the intelligent device sends a pairing request through a classic Bluetooth channel. The target Bluetooth device can receive the second classic Bluetooth address carried by the pairing request, so that the first classic Bluetooth address and the second classic Bluetooth address can be compared, and after the first classic Bluetooth address and the second classic Bluetooth address are compared successfully, comparison success information is sent to the intelligent device, and Bluetooth connection is completed.
The invention further provides an embodiment of a computer device based on the Bluetooth secure connection method of the intelligent device or the Bluetooth secure connection method of the intelligent system in any embodiment.
The computer device of the present invention includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method for secure connection of bluetooth of an intelligent device according to any one of the above embodiments or the method for secure connection of bluetooth of an intelligent system according to any one of the above embodiments when executing the computer program.
Based on the foregoing secure connection method for bluetooth of an intelligent device or the secure connection method for bluetooth of an intelligent system in any embodiment, the present invention further provides an embodiment of a computer-readable storage medium.
The computer-readable storage medium of the present invention stores thereon a computer program that, when executed by a processor, implements the steps of the secure connection method for bluetooth of an intelligent device of any one of the above embodiments, or the secure connection method for bluetooth of an intelligent system of any one of the above embodiments.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A safe connection method of Bluetooth of an intelligent device is characterized by comprising the following steps:
the intelligent equipment scans whether target Bluetooth equipment exists around;
when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment and carries out verification;
and when the verification fails, the intelligent equipment updates the verification code and continues to perform verification until the verification succeeds, the intelligent equipment updates the verification code, and the intelligent equipment is matched with the target Bluetooth equipment to complete Bluetooth connection.
2. The secure connection method for bluetooth of a smart device according to claim 1, wherein the smart device comprises: a Bluetooth management module; the intelligent device scans whether target Bluetooth devices exist around, and comprises:
the Bluetooth management module of the intelligent device sends scanning information to scan the target Bluetooth device;
and when the Bluetooth management module of the intelligent equipment receives the scanning result sent by the target Bluetooth equipment and the scanning result meets the preset condition, the target Bluetooth equipment exists and the scanning is finished.
3. The method of claim 2, wherein the scanning result comprises: the supplier identification code is consistent with the product identification code, and the preset conditions are that the supplier identification code is consistent with the product identification code.
4. The secure connection method of bluetooth of a smart device according to claim 1, wherein the smart device comprises: a Bluetooth instance module; the smart machine with target bluetooth device communication connection carries out the check-up, includes:
the Bluetooth instance module of the intelligent device sends a connection request to the target Bluetooth device;
the Bluetooth instance module of the intelligent equipment receives connection success callback information sent by the target Bluetooth equipment so as to establish a communication channel with the target Bluetooth equipment to realize communication connection;
and the intelligent equipment sends a check code to the target Bluetooth equipment through the communication channel so as to check.
5. The method of claim 4, wherein the communication channel further comprises: BLE channel and classic bluetooth channel;
when the check-up fails, the intelligent equipment updates the check-up code and continues to carry out the check-up, when the check-up succeeds, the intelligent equipment updates the check-up code, and the intelligent equipment is paired with the target Bluetooth equipment to complete Bluetooth connection, including:
when the intelligent equipment receives calibration failure callback information sent by the target Bluetooth equipment through the BLE channel, updating a calibration code according to a preset rule, and sending the updated calibration code to the target Bluetooth equipment through the BLE channel so as to continuously perform calibration;
and when the intelligent equipment receives successful check callback information sent by the target Bluetooth equipment through the BLE channel, updating a check code according to a preset rule, and sending a pairing command to the target Bluetooth equipment through the BLE channel so that the target Bluetooth equipment stores a first classical Bluetooth address carried by the pairing command.
6. The method as claimed in claim 5, wherein the smart device updates the check code when the check fails, and continues to perform the check until the check succeeds, and the smart device updates the check code and pairs with the target bluetooth device to complete the bluetooth connection, further comprising:
the intelligent device receives classic Bluetooth pairing connection information sent by the target Bluetooth device through the classic Bluetooth channel;
the intelligent device sends a pairing request to the target Bluetooth device through the classic Bluetooth channel; the pairing request carries a second classic bluetooth address;
the intelligent device receives the comparison success information of the classic Bluetooth address through the classic Bluetooth channel so as to complete Bluetooth connection.
7. A secure connection method of Bluetooth of an intelligent system, the intelligent system comprising: the intelligent device and the target Bluetooth device; the method comprises the following steps:
the intelligent device scans whether the target Bluetooth device exists around;
when the target Bluetooth equipment exists, the intelligent equipment is in communication connection with the target Bluetooth equipment and checks;
and when the verification fails, the intelligent equipment updates the verification code and the target Bluetooth equipment updates the local verification code, and the verification is continued until the verification succeeds, the intelligent equipment updates the verification code and the target Bluetooth equipment updates the local verification code, and the intelligent equipment is matched with the target Bluetooth equipment to complete Bluetooth connection.
8. The secure connection method of bluetooth of an intelligent system according to claim 7, wherein the intelligent device comprises: a Bluetooth instance module; when the target Bluetooth device exists, the intelligent device is in communication connection with the target Bluetooth device and checks, and the method comprises the following steps:
the Bluetooth instance module of the intelligent equipment sends a connection request to the target Bluetooth equipment;
the target Bluetooth device receives the connection request and sends connection success callback information to a Bluetooth instance module of the intelligent device;
the Bluetooth instance module of the intelligent equipment receives the connection success callback information so as to establish a communication channel with the target Bluetooth equipment to realize communication connection;
the intelligent equipment sends a check code to the target Bluetooth equipment through the communication channel;
and the target Bluetooth equipment receives the check code through the communication channel and compares the check code with a local check code stored in the target Bluetooth equipment so as to check.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the method of any one of claims 1 to 6 or the steps of the method of any one of claims 7 to 8.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 6 or the steps of the method of any one of claims 7 to 8.
CN202211247225.8A 2022-10-12 2022-10-12 Bluetooth safety connection method of intelligent system or intelligent device Pending CN115767553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211247225.8A CN115767553A (en) 2022-10-12 2022-10-12 Bluetooth safety connection method of intelligent system or intelligent device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211247225.8A CN115767553A (en) 2022-10-12 2022-10-12 Bluetooth safety connection method of intelligent system or intelligent device

Publications (1)

Publication Number Publication Date
CN115767553A true CN115767553A (en) 2023-03-07

Family

ID=85351256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211247225.8A Pending CN115767553A (en) 2022-10-12 2022-10-12 Bluetooth safety connection method of intelligent system or intelligent device

Country Status (1)

Country Link
CN (1) CN115767553A (en)

Similar Documents

Publication Publication Date Title
US11417331B2 (en) Method and device for controlling terminal, and computer readable storage medium
CN103677946B (en) Method and system for updating elevator device control programs
US8732694B2 (en) Method and system for performing services in server and client of client/server architecture
CN107450945A (en) A kind of firmware update of virtual reality device
CN107948063B (en) Method for establishing aggregation link and access equipment
WO2024007995A1 (en) Network fault recovery method and apparatus, device, and storage medium
US5615339A (en) Online system having session control information table in a host computer for establishing or disconnecting session with multiple terminals in accordance with processing performance
CN112383908A (en) Bluetooth device upgrading method and system
CN106096385B (en) Unlocking processing method and system based on mobile terminal
WO2022017052A1 (en) Method and apparatus for shared device instruction control and device
CN112954190B (en) Online adjustment method, device and equipment for industrial detection equipment parameters and storage medium
CN115767553A (en) Bluetooth safety connection method of intelligent system or intelligent device
CN113362584B (en) Communication method and device and unmanned aerial vehicle
CN112565348A (en) Intelligent equipment testing method and system, computer equipment and storage medium
CN116962114A (en) Equipment interconnection method, device, equipment and medium based on distributed soft bus
KR102412438B1 (en) Identity verification method and apparatus
WO2022057561A1 (en) Switching method, system, server, and storage medium
CN105704707A (en) Slave equipment and air upgrading method thereof
CN111586651B (en) Method for managing priority in context, electronic device and communication system
KR101965033B1 (en) Improved method and system of implicit selection of an application in a secure element, from a received message
CN111741032B (en) Data transmission control method
JP2002279359A (en) Transaction control method for ic card
KR102482151B1 (en) System and method for transmitting and receiving data based on bridgehead network
CN113760577B (en) Dynamic connection answering device, processing method, control device and storage medium
US20210150004A1 (en) Control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination