A method and system for remotely adding and deleting bluetooth remote controls
Patent Information
- Application Number
- CN202410697095.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2044-05-31
AI Technical Summary
该方法首先需要门锁管理者在锁面前添加蓝牙遥控器,然后管理者将蓝牙遥控器给用户,用户才能按遥控器开锁,操作比较繁琐,尤其是在面对一些特定场景时应用会十分不方便,例如在酒店、公租房、养老院场景下,涉及到批量的门锁,管理员逐一现场进行蓝牙遥控器添加/删除操作会十分繁琐,效率低下,需要一种可以解决上述困难的可以远程给门锁下发蓝牙遥控器的方式方法
[0014] The beneficial effects of this invention are as follows: by applying the method of this application, the door lock manager does not need to add a Bluetooth remote control in front of the lock. After the administrator issues the Bluetooth remote control at the front desk, he can directly hand it to the user for use. This improves management efficiency while taking into account the security of Bluetooth remote control use. It can also effectively control the Bluetooth remote control, such as tracking which lock it was issued to, who used it, and the frequency of use. It is especially suitable for use in hotel, public rental housing, and nursing home scenarios.
Smart Images

Figure CN118781681B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart door lock technology, and more specifically, to a method and system for remotely adding and deleting Bluetooth remote controls. Background Technology
[0002] The current main method for adding Bluetooth remote controls to smart locks is as follows: Press a shortcut key on the lock or access the menu to add a Bluetooth remote. The lock then enters the Bluetooth remote control addition process, broadcasting specific data. The user then manually presses and holds a button on the Bluetooth remote for 5 seconds. The Bluetooth remote then enters the lock search phase, finds the broadcast data, initiates a connection, and binds the remote. This method requires the lock administrator to add the Bluetooth remote in front of the lock, then give it to the user to unlock. This process is cumbersome, especially in certain scenarios such as hotels, public housing, and nursing homes, where there are many locks. Adding / removing Bluetooth remotes one by one on-site is extremely inefficient and time-consuming. A method is needed that allows remotely sending Bluetooth remote controls to locks, solving these difficulties. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method for remotely adding and deleting Bluetooth remote controllers, and to provide a method for remotely adding and deleting Bluetooth remote controllers, in view of the above-mentioned defects of the prior art.
[0004] The technical solution adopted by this invention to solve its technical problem is: A method for remotely adding and removing Bluetooth remote controls is constructed, comprising the following steps: Step 1: The APP / server backend scans the QR code on the Bluetooth remote control to obtain the MAC address of the Bluetooth remote control; Step 2: The APP / server backend remotely sends the MAC address of the Bluetooth remote control to the smart door lock; Step 3: After receiving the Bluetooth remote control MAC address from the remote control, the smart lock saves it to the whitelist of Bluetooth remote controls to be added, and encrypts the MAC address of the Bluetooth remote control using the default AES key AESKEY1. Then, it broadcasts the information via Bluetooth according to the set broadcast format, so that the smart lock is in an unbound state. Step 4: After receiving the corresponding Bluetooth remote control, the user presses the unlock button on the Bluetooth remote control; Step 5: The Bluetooth remote control first checks whether it has been paired with the smart lock. If it has not been paired with the smart lock, it searches for nearby Bluetooth broadcasts. If it finds a smart lock that is not paired, it decrypts the broadcast data of the smart lock using AESKEY1 ciphertext. It checks whether the decrypted data matches its own MAC address. If they match, it initiates a Bluetooth connection to the smart lock. Step Six: After the smart door lock detects that it has been connected by the Bluetooth remote control, it changes the Bluetooth broadcast status to "Pairing". Step 7: The Bluetooth remote control initiates an unlocking command to the smart lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is an ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the hash values of the smart lock MAC and the Bluetooth remote control MAC. Step 8: After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC + digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If it is, it executes the unlocking and returns a message that the remote control unlocked successfully, and changes its own broadcast status to "bound". Step 9: After the Bluetooth remote control receives a successful unlock notification, record the MAC address of the bound smart lock.
[0005] The method for remotely adding and deleting Bluetooth remote controllers according to the present invention further includes deleting the Bluetooth remote controller, which specifically includes the following steps: Front desk staff use the APP / server backend to send a message to the smart door lock to delete previously sent Bluetooth remote controls; After receiving the instruction to delete the Bluetooth remote control, the smart door lock will remove the corresponding Bluetooth remote control MAC address from the smart door lock's Bluetooth remote control whitelist. After receiving the corresponding Bluetooth remote control, the user presses the unlock button on the Bluetooth remote control; The Bluetooth remote control first checks whether it has been paired with a smart lock. If it has been paired with a smart lock, it then establishes a Bluetooth connection with the already paired smart lock. The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the hash values of the smart door lock MAC and the Bluetooth remote control MAC. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC and digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If not, it returns an error code that the Bluetooth remote control has been deleted. After receiving an error code indicating that the smart lock has been deleted from the Bluetooth remote control, the bound smart lock MAC address is cleared, and the status is set to unbound.
[0006] The method for remotely adding and deleting Bluetooth remote controllers according to the present invention, wherein the broadcast format is defined as follows: The smart door lock's Bluetooth MAC address + the Bluetooth remote control's MAC address are encrypted and broadcast status codes are displayed.
[0007] The method for remotely adding and deleting Bluetooth remote controllers according to the present invention, wherein the smart door lock, Bluetooth remote controller, and APP / server jointly define a private secure communication protocol, wherein the data format of the protocol is defined as follows: Packet header + packet identifier + packet length + data area + check digit + packet footer.
[0008] The method for remotely adding and deleting Bluetooth remote controllers according to the present invention includes a smart door lock with a built-in low-power Bluetooth module and a networking module; the Bluetooth remote controller has a MAC QR code affixed to it, and the Bluetooth remote controller generates a pair of ECC public and private keys PA1 and PB1, wherein the public key PA1 is written into the door lock's flash memory before the door lock leaves the factory.
[0009] A system for remotely adding and deleting Bluetooth remote controllers, for implementing the method of remotely adding and deleting Bluetooth remote controllers as described above, wherein the system includes an APP / server, a Bluetooth remote controller, and a smart door lock; The APP / server is used to scan the QR code on the Bluetooth remote control in the background to obtain the MAC address of the Bluetooth remote control; it is also used to remotely send the MAC address of the Bluetooth remote control to the smart door lock. After receiving the Bluetooth remote control MAC address remotely, the smart door lock saves it to the whitelist of Bluetooth remote controls to be added, and encrypts the Bluetooth remote control MAC address using the default AES key AESKEY1. Then, it broadcasts the information via Bluetooth according to the set broadcast format, so that the smart door lock is in an unbound state. When the unlock button on the Bluetooth remote is pressed, it first determines whether it has been bound to the smart lock. If it has not been bound to the smart lock, it searches for surrounding Bluetooth broadcasts. If a smart lock that is not bound is found, it decrypts the broadcast data of the smart lock using AESKEY1 ciphertext. It then checks whether the decrypted data matches its own MAC address. If they match, it initiates a Bluetooth connection to the smart lock. After the smart door lock detects that it has been connected by a Bluetooth remote control, it changes the Bluetooth broadcast status to "binding". The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature, where the digital signature is ciphertext that signs the hash values of the smart door lock MAC and the Bluetooth remote control MAC using the private key PB1 of the Bluetooth remote control. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC + digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If it is, it executes the unlocking and returns a message that the remote control has successfully unlocked, and changes its own broadcast status to "bound". After the Bluetooth remote control receives a successful unlocking notification, it records the MAC address of the bound smart lock.
[0010] The system for remotely adding and deleting Bluetooth remote controllers according to the present invention, wherein the APP / server is also used to send a message to the smart door lock in the background to delete previously sent Bluetooth remote controllers; After receiving the instruction to delete the Bluetooth remote control, the smart door lock removes the corresponding Bluetooth remote control MAC from the smart door lock's Bluetooth remote control whitelist. When the unlock button on the Bluetooth remote control is pressed, it is determined whether the smart lock has been bound before. If the smart lock has been bound before, a Bluetooth connection is established with the bound smart lock. The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature, where the digital signature is ciphertext that signs the hash values of the smart door lock MAC and the Bluetooth remote control MAC using the private key PB1 of the Bluetooth remote control. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC and digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If not, it returns an error code that the Bluetooth remote control has been deleted. After receiving an error code indicating deletion from the smart lock, the Bluetooth remote control clears the bound smart lock MAC address and sets the status to unbound.
[0011] The system for remotely adding and deleting Bluetooth remote controllers according to the present invention, wherein the broadcast format is defined as follows: The smart door lock's Bluetooth MAC address + the Bluetooth remote control's MAC address are encrypted and broadcast status codes are displayed.
[0012] The system for remotely adding and deleting Bluetooth remote controllers according to the present invention, wherein the smart door lock, the Bluetooth remote controller, and the APP / server jointly define a private secure communication protocol, wherein the data format of the protocol is defined as follows: Packet header + packet identifier + packet length + data area + check digit + packet footer.
[0013] The system for remotely adding and deleting Bluetooth remote controllers according to the present invention includes a smart door lock with a built-in low-power Bluetooth module and a networking module; the Bluetooth remote controller has a MAC QR code affixed to it, and the Bluetooth remote controller generates a pair of ECC public and private keys PA1 and PB1, wherein the public key PA1 is written into the door lock's flash memory before the door lock leaves the factory.
[0014] The beneficial effects of this invention are as follows: by applying the method of this application, the door lock manager does not need to add a Bluetooth remote control in front of the lock. After the administrator issues the Bluetooth remote control at the front desk, he can directly hand it to the user for use. This improves management efficiency while taking into account the security of Bluetooth remote control use. It can also effectively control the Bluetooth remote control, such as tracking which lock it was issued to, who used it, and the frequency of use. It is especially suitable for use in hotel, public rental housing, and nursing home scenarios. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort: Figure 1 This is a flowchart illustrating the method for remotely adding and deleting Bluetooth remote controllers according to a preferred embodiment of the present invention. Figure 2 This is a flowchart illustrating the method for remotely adding and deleting Bluetooth remote controllers according to a preferred embodiment of the present invention. Figure 3 This is a system principle block diagram of remotely adding and deleting Bluetooth remote controllers according to a preferred embodiment of the present invention. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, a clear and complete description will be provided below in conjunction with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the protection scope of the present invention.
[0017] A preferred embodiment of the present invention provides a method for remotely adding and deleting Bluetooth remote controllers, wherein the method for adding Bluetooth remote controllers is as follows: Figure 1 As shown, it includes the following steps: S01: The APP / server backend scans the QR code on the Bluetooth remote control to obtain the MAC address of the Bluetooth remote control; S02: The APP / server backend remotely sends the MAC address of the Bluetooth remote control to the smart door lock; S03: After receiving the Bluetooth remote control MAC address remotely, the smart door lock saves it to the whitelist of Bluetooth remote controls to be added, and encrypts the MAC address of the Bluetooth remote control using the default AES key AESKEY1. Then, it broadcasts the information via Bluetooth according to the set broadcast format, so that the smart door lock is in an unbound state. S04: After receiving the corresponding Bluetooth remote control, the user presses the unlock button on the Bluetooth remote control; S05: The Bluetooth remote control first determines whether it has been bound to a smart lock. If it has not been bound to a smart lock, it searches for nearby Bluetooth broadcasts. If a smart lock that is not bound is found, the broadcast data of the smart lock is decrypted using AESKEY1 ciphertext. The decrypted data is checked against its own MAC address. If they match, a Bluetooth connection is initiated with the smart lock. S06: After the smart door lock detects that it has been connected by a Bluetooth remote control, it changes the Bluetooth broadcast status to "binding". S07: The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is an ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the HASH value of the smart door lock MAC and the Bluetooth remote control MAC. S08: After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC + digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If it is, it executes the unlocking and returns that the remote control unlocked successfully, and changes its own broadcast status to "bound". S09: After the Bluetooth remote control receives a successful unlocking notification, it records the MAC address of the bound smart lock. Using the method described in this application, lock administrators do not need to add Bluetooth remote controls to the locks. After the administrator issues the remote control at the front desk, they can simply hand it to the user. This improves management efficiency while also taking into account the security of the Bluetooth remote control. Furthermore, it allows for effective control of the Bluetooth remote control, such as tracking which lock it was issued to, who used it, and the frequency of use. This method is particularly suitable for use in hotels, public rental housing, and nursing homes.
[0018] Deleting a Bluetooth remote control specifically includes the following steps: S11: Front-end staff use the APP / server backend to send a message to the smart door lock to delete previously sent Bluetooth remote controls; S12: After receiving the instruction to delete the Bluetooth remote control, the smart door lock will remove the corresponding Bluetooth remote control MAC from the smart door lock's Bluetooth remote control whitelist; S13: After receiving the corresponding Bluetooth remote control, the user presses the unlock button on the Bluetooth remote control; S14: The Bluetooth remote control first checks whether it has been bound to a smart lock. If it has been bound to a smart lock, it will connect to the bound smart lock via Bluetooth. S15: The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is an ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the HASH value of the smart door lock MAC and the Bluetooth remote control MAC. S16: After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC and digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If not, it returns an error code that the Bluetooth remote control has been deleted. S17: After the Bluetooth remote control receives the error code "deleted" from the smart lock, it clears the bound smart lock MAC address and sets the status to "unbound". In conjunction with the above method for adding Bluetooth remote controls, a corresponding method for deleting Bluetooth remote controls was designed. Using this method, Bluetooth remote controls can be deleted conveniently and flexibly, while also ensuring the security of the deletion process. It is flexible in use and facilitates the management of Bluetooth remote controls.
[0019] The broadcast format can be defined as follows: The encrypted text of the smart door lock's Bluetooth MAC address and the Bluetooth remote control's MAC address, plus the broadcast status code; Of course, this definition is only an example and is not intended to limit the scope; other existing broadcast formats may also be used.
[0020] To ensure communication security, the smart lock, Bluetooth remote control, and APP / server jointly define a proprietary secure communication protocol, the data format of which is defined as follows: Packet header + packet identifier + packet length + data area + checksum + packet trailer; details are shown in the table below:
[0021] The prerequisites for implementing the above methods include: 1. The smart door lock has a built-in low-power Bluetooth module and a network module; 2. The Bluetooth remote control has a MAC QR code attached to it. The Bluetooth remote control generates a pair of ECC public and private keys PA1 and PB1. The public key PA1 is written into the door lock's flash memory before the door lock leaves the factory.
[0022] A system for remotely adding and deleting Bluetooth remote controllers, used to implement the method for remotely adding and deleting Bluetooth remote controllers as described above, such as... Figure 3 As shown, the system includes an APP / server 100, a Bluetooth remote control 101, and a smart door lock 102; APP / server 100 is used to scan the QR code on the Bluetooth remote control in the background to obtain the MAC of the Bluetooth remote control 101; it is also used to remotely send the MAC of the Bluetooth remote control 101 to the smart door lock 102. After receiving the Bluetooth remote control MAC address remotely, the smart door lock 102 saves it to the whitelist of Bluetooth remote controls to be added, and encrypts the MAC address of the Bluetooth remote control using the default AES key AESKEY1. Then, it broadcasts the Bluetooth remote control via Bluetooth according to the set broadcast format, so that the smart door lock is in an unbound state. When the unlock button on the Bluetooth remote control 101 is pressed, it first checks whether it has been bound to the smart lock. If it has not been bound to the smart lock, it searches for surrounding Bluetooth broadcasts. If it finds a smart lock that is not bound, it decrypts the broadcast data of the smart lock using AESKEY1 ciphertext. It then checks whether the decrypted data matches its own MAC address. If they match, it initiates a Bluetooth connection to the smart lock. After the smart door lock 102 detects that it has been connected to the Bluetooth remote control 101, it changes the Bluetooth broadcast status to "binding". Bluetooth remote control 101 initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is an ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the HASH value of the smart door lock MAC and the Bluetooth remote control MAC. After receiving the data, the smart door lock 102 uses the key AESKEY1 to decrypt the unlocking command and the smart door lock MAC + Bluetooth remote control MAC + digital signature carried by the unlocking command. The smart door lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If it is, it executes the unlocking and returns a message that the remote control has successfully unlocked, and changes its own broadcast status to "bound". After receiving a successful unlock notification, Bluetooth remote control 101 records the MAC address of the bound smart lock. Using the method described in this application, lock administrators do not need to add Bluetooth remote controls to the locks. After the administrator issues the remote control at the front desk, they can simply hand it to the user. This improves management efficiency while also taking into account the security of the Bluetooth remote control. Furthermore, it allows for effective control of the Bluetooth remote control, such as tracking which lock it was issued to, who used it, and the frequency of use. This method is particularly suitable for use in hotels, public rental housing, and nursing homes.
[0023] Preferably, the APP / server 100 is also used in the background to send the deletion of previously sent Bluetooth remote controls to the smart door lock; After receiving the instruction to delete the Bluetooth remote control, the smart door lock will remove the corresponding Bluetooth remote control MAC address from the smart door lock's Bluetooth remote control whitelist. When the unlock button on the Bluetooth remote is pressed, it checks whether the smart lock has been bound before. If it has been bound before, it connects to the bound smart lock via Bluetooth. The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the hash values of the smart door lock MAC and the Bluetooth remote control MAC. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC and digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If not, it returns an error code that the Bluetooth remote control has been deleted. After the Bluetooth remote receives an error code indicating that the smart lock has been deleted, it clears the bound smart lock MAC address and sets the status to unbound. In conjunction with the above method for adding Bluetooth remote controls, a corresponding method for deleting Bluetooth remote controls was designed. Using this method, Bluetooth remote controls can be deleted conveniently and flexibly, while also ensuring the security of the deletion process. It is flexible in use and facilitates the management of Bluetooth remote controls.
[0024] The preferred broadcast format is defined as follows: The smart door lock's Bluetooth MAC address + the Bluetooth remote control's MAC address are encrypted and broadcast status codes are displayed.
[0025] Preferably, the smart lock, Bluetooth remote control, and APP / server 100 jointly define a proprietary secure communication protocol, wherein the data format of the protocol is defined as follows: Packet header + packet identifier + packet length + data area + check digit + packet footer.
[0026] Preferably, the smart door lock has a built-in low-power Bluetooth module and a network module; the Bluetooth remote control has a MAC QR code affixed to it, and the Bluetooth remote control generates a pair of ECC public and private keys PA1 and PB1, wherein the public key PA1 is written into the door lock's flash memory before the door lock leaves the factory.
[0027] It should be understood that those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A method for remotely adding and deleting Bluetooth remote controls, characterized in that, Includes the following steps: Step 1: The APP / server backend scans the QR code on the Bluetooth remote control to obtain the MAC address of the Bluetooth remote control; Step 2: The APP / server backend remotely sends the MAC address of the Bluetooth remote control to the smart door lock; Step 3: After receiving the Bluetooth remote control MAC address from the remote control, the smart lock saves it to the whitelist of Bluetooth remote controls to be added, and encrypts the MAC address of the Bluetooth remote control using the default AES key AESKEY1. Then, it broadcasts the information via Bluetooth according to the set broadcast format, so that the smart lock is in an unbound state. Step 4: After receiving the corresponding Bluetooth remote control, the user presses the unlock button on the Bluetooth remote control; Step 5: The Bluetooth remote control first checks whether it has been paired with the smart lock. If it has not been paired with the smart lock, it searches for nearby Bluetooth broadcasts. If it finds a smart lock that is not paired, it decrypts the broadcast data of the smart lock using AESKEY1 ciphertext. It checks whether the decrypted data matches its own MAC address. If they match, it initiates a Bluetooth connection to the smart lock. Step Six: After the smart door lock detects that it has been connected by the Bluetooth remote control, it changes the Bluetooth broadcast status to "Pairing". Step 7: The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is an ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the hash value of the smart door lock MAC and the Bluetooth remote control MAC. Step 8: After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC + digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If it is, it executes the unlocking and returns a message that the remote control unlocked successfully, and changes its own broadcast status to "bound". Step 9: After the Bluetooth remote control receives a successful unlock notification, record the MAC address of the bound smart lock.
2. The method for remotely adding and deleting Bluetooth remote controllers according to claim 1, characterized in that, The method also includes deleting the Bluetooth remote control, which specifically includes the following steps: Front desk staff use the APP / server backend to send a message to the smart door lock to delete previously sent Bluetooth remote controls; After receiving the instruction to delete the Bluetooth remote control, the smart door lock will remove the corresponding Bluetooth remote control MAC address from the smart door lock's Bluetooth remote control whitelist. After receiving the corresponding Bluetooth remote control, the user presses the unlock button on the Bluetooth remote control; The Bluetooth remote control first checks whether it has been paired with a smart lock. If it has been paired with a smart lock, it then establishes a Bluetooth connection with the already paired smart lock. The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature. The digital signature is ciphertext that uses the private key PB1 of the Bluetooth remote control to sign the hash values of the smart door lock MAC and the Bluetooth remote control MAC. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC and digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If not, it returns an error code that the Bluetooth remote control has been deleted. After receiving an error code indicating that the smart lock has been deleted from the Bluetooth remote control, the bound smart lock MAC address is cleared, and the status is set to unbound.
3. The method for remotely adding and deleting Bluetooth remote controllers according to claim 1, characterized in that, The broadcast format is defined as follows: The smart door lock's Bluetooth MAC address + the Bluetooth remote control's MAC address are encrypted and broadcast status codes are displayed.
4. The method for remotely adding and deleting Bluetooth remote controllers according to claim 1, characterized in that, The smart lock, Bluetooth remote control, and APP / server jointly define a proprietary secure communication protocol, the data format of which is defined as follows: Packet header + packet identifier + packet length + data area + check digit + packet footer.
5. The method for remotely adding and deleting Bluetooth remote controllers according to claim 1, characterized in that, The smart door lock has a built-in low-power Bluetooth module and a network module; the Bluetooth remote control has a MAC QR code affixed to it, and the Bluetooth remote control generates a pair of ECC public and private keys PA1 and PB1, wherein the public key PA1 is written into the door lock's flash memory before the door lock leaves the factory.
6. A system for remotely adding and deleting Bluetooth remote controllers, used to implement the method for remotely adding and deleting Bluetooth remote controllers as described in any one of claims 1-5, characterized in that, The system includes an app / server, a Bluetooth remote control, and a smart door lock; The APP / server is used to scan the QR code on the Bluetooth remote control in the background to obtain the MAC address of the Bluetooth remote control; It is also used as a MAC for remotely sending Bluetooth remote controls to smart door locks; After receiving the Bluetooth remote control MAC address remotely, the smart door lock saves it to the whitelist of Bluetooth remote controls to be added, and encrypts the Bluetooth remote control MAC address using the default AES key AESKEY1. Then, it broadcasts the information via Bluetooth according to the set broadcast format, so that the smart door lock is in an unbound state. When the unlock button on the Bluetooth remote is pressed, it first determines whether it has been bound to the smart lock. If it has not been bound to the smart lock, it searches for surrounding Bluetooth broadcasts. If a smart lock that is not bound is found, it decrypts the broadcast data of the smart lock using AESKEY1 ciphertext. It then checks whether the decrypted data matches its own MAC address. If they match, it initiates a Bluetooth connection to the smart lock. After the smart door lock detects that it has been connected by a Bluetooth remote control, it changes the Bluetooth broadcast status to "binding". The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature, where the digital signature is ciphertext that signs the hash values of the smart door lock MAC and the Bluetooth remote control MAC using the private key PB1 of the Bluetooth remote control. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC + digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If it is, it executes the unlocking and returns a message that the remote control has successfully unlocked, and changes its own broadcast status to "bound". After the Bluetooth remote control receives a successful unlocking notification, it records the MAC address of the bound smart lock.
7. The system for remotely adding and deleting Bluetooth remote controllers according to claim 6, characterized in that, The APP / server is also used in the background to send a message to the smart door lock to delete previously sent Bluetooth remote controls; After receiving the instruction to delete the Bluetooth remote control, the smart door lock removes the corresponding Bluetooth remote control MAC from the smart door lock's Bluetooth remote control whitelist. When the unlock button on the Bluetooth remote control is pressed, it is determined whether the smart lock has been bound before. If the smart lock has been bound before, a Bluetooth connection is established with the bound smart lock. The Bluetooth remote control initiates an unlocking command to the smart door lock, which is encrypted using the key AESKEY1. The unlocking command carries the smart door lock MAC + Bluetooth remote control MAC + digital signature, where the digital signature is ciphertext that signs the hash values of the smart door lock MAC and the Bluetooth remote control MAC using the private key PB1 of the Bluetooth remote control. After receiving the data, the smart lock uses the key AESKEY1 to decrypt the unlocking command and the smart lock MAC + Bluetooth remote control MAC and digital signature carried by the unlocking command. The smart lock uses the factory-preset public key PA1 to verify the digital signature to verify the identity of the Bluetooth remote control. After successfully verifying the identity of the Bluetooth remote control, it compares whether the MAC of the Bluetooth remote control is in the whitelist. If not, it returns an error code that the Bluetooth remote control has been deleted. After receiving an error code indicating deletion from the smart lock, the Bluetooth remote control clears the bound smart lock MAC address and sets the status to unbound.
8. The system for remotely adding and deleting Bluetooth remote controllers according to claim 6, characterized in that, The broadcast format is defined as follows: The smart door lock's Bluetooth MAC address + the Bluetooth remote control's MAC address are encrypted and broadcast status codes are displayed.
9. The system for remotely adding and deleting Bluetooth remote controllers according to claim 6, characterized in that, The smart lock, the Bluetooth remote control, and the APP / server jointly define a proprietary secure communication protocol, the data format of which is defined as follows: Packet header + packet identifier + packet length + data area + check digit + packet footer.
10. The system for remotely adding and deleting Bluetooth remote controllers according to claim 6, characterized in that, The smart door lock has a built-in low-power Bluetooth module and a network module; the Bluetooth remote control has a MAC QR code affixed to it, and the Bluetooth remote control generates a pair of ECC public and private keys PA1 and PB1, wherein the public key PA1 is written into the door lock's flash memory before the door lock leaves the factory.
Citation Information
Patent Citations
Non-inductive intelligent unlocking method and system
CN110276864A
Method and device for controlling door lock and electronic equipment
CN116645748A