Door lock Bluetooth cooperative processing method and system

By using Bluetooth fragmented data processing and dynamic pairing code verification, combined with neighbor's mobile phone and robot, the efficiency and security issues of smart door locks in cross-device collaboration and temporary visitor management are solved, achieving efficient and secure door lock collaborative control.

CN120833643AActive Publication Date: 2025-10-24HANGZHOU DIANZI UNIV +1

Patent Information

Application Number
CN202511326201.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-17
Publication Date
2025-10-24
Estimated Expiration
2045-09-17

AI Technical Summary

Technical Problem

Existing smart door locks lack cross-device collaboration capabilities, have cumbersome remote authorization processes, and pose a risk of privacy data leakage. They are particularly inefficient and insecure in managing temporary visitors.

Method used

Through Bluetooth fragmented data collection and reconstruction, facial feature decryption and identity verification, cross-lock authorization verification, robot task dispatch and closed-loop management, collaborative control between locks is achieved. The system adopts AES-256-GCM decryption algorithm and dynamic pairing code verification, and combines neighbor's mobile phone and robot to carry out an efficient and secure authorization process.

Benefits of technology

It achieves efficient, safe, and intelligent collaborative control of door locks, ensuring the convenience of temporary visitor management and data security, and reducing the workload of invalid robot responses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120833643A_ABST
    Figure CN120833643A_ABST
Patent Text Reader

Abstract

The invention discloses a door lock Bluetooth cooperative processing method and system, and the method comprises the steps: a door lock A detects a doorbell trigger signal, carries out the sorting and integrity verification of encrypted fragmented data, and obtains a face feature ciphertext data block; based on the face feature ciphertext data block, performing decryption processing to obtain a plaintext face feature vector, and performing similarity comparison to generate a dynamic pairing code; according to the verification success result of the dynamic pairing code, the door lock B is triggered to send a calling confirmation request to the door lock A, and a cooperative authorization result between the door locks is obtained; and based on a collaborative authorization result, the platform sends a navigation instruction to the robot, and the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans temporary data, and obtains a closed-loop execution record of an on-behalf call process. According to the embodiment of the invention, efficient, safe and intelligent cooperative door lock control can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of intelligent door locks, and particularly relates to a door lock Bluetooth cooperative processing method and system. BACKGROUND

[0002] With the rapid development of smart home technology, the functional requirements of intelligent door locks, as the core equipment of home security, are increasingly complex. Traditional intelligent door locks usually adopt a single device independent working mode, which has problems such as insufficient cross-device cooperation capability, complicated remote proxy call authorization process, and difficulty in temporary visitor management. Especially in the scene of neighbor proxy call or temporary authorization of visitors, the existing scheme depends on the central platform to transfer authorization information, which not only has high response delay, but also has the risk of privacy data leakage. Bluetooth technology is widely used in door lock devices due to its low power consumption and short distance communication characteristics, but the existing Bluetooth door lock still has defects such as low efficiency, insufficient security and the like in terms of fragmented data transmission, dynamic authorization verification and multi-device cooperation. SUMMARY

[0003] The purpose of the present application is to provide a door lock Bluetooth cooperative processing method and system to solve the problems in the prior art and realize efficient, safe and intelligent cooperative door lock control.

[0004] One embodiment of the present application provides a door lock Bluetooth cooperative processing method, which comprises the following steps: Bluetooth fragmented data acquisition and reorganization: according to the detection of doorbell trigger signals by door lock A for two consecutive times, a Bluetooth scanning module is started to listen to periodic broadcast packets, and an encrypted fragmented data received is sorted and integrity-verified through a fragmented reorganization algorithm to obtain a complete face feature ciphertext data block; Face feature decryption and identity verification: based on the face feature ciphertext data block, an AES-256-GCM decryption algorithm is used to perform decryption processing in combination with a pre-shared secret key of door lock A and a platform to obtain a plaintext face feature vector, and similarity comparison is performed with a house owner feature library stored in door lock A, and if the similarity exceeds a threshold value, a dynamic pairing code is generated; Cross-door lock proxy call authorization verification: according to the result of successful verification of the dynamic pairing code, door lock A forwards a door lock ID, an IP address and a target user feature vector to door lock B through a neighbor's mobile phone, triggers door lock B to send a proxy call confirmation request carrying a mobile phone Bluetooth Tag-DID to door lock A, and obtains a cross-authorization result between door locks; Robot task dispatching and closed-loop management: based on the cross-authorization result, the platform sends a navigation instruction carrying a door lock A position and a user feature to a robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up temporary data of door lock A, door lock B and the platform, and obtains a closed-loop execution record of the proxy call process.

[0005] Optionally, the Bluetooth fragment data collection and reorganization includes: Periodic broadcast packet monitoring: According to the detection of two consecutive press signals by the physical button sensor of the door lock A, the Bluetooth scanning module is activated into the ACTIVE scanning mode, and the scanning window is set to 100 ms; Fragment data buffering and verification: CRC16 verification is performed on each received broadcast packet, and if the verification fails, the data packet is discarded, and if the verification is passed, the fragment data is stored in the buffer queue according to the fragment number, until the total number of fragments reaches the value declared in the broadcast packet header; Ciphertext data reorganization: The fragment data is extracted from the buffer queue according to the number, and the fragment header number and verification field are removed to splice into a complete ciphertext block, obtaining an encrypted data block containing 2048 bytes of ciphertext and 12 bytes of authentication tag.

[0006] Optionally, the face feature decryption and identity verification includes: Decryption and feature extraction: The AES-256-GCM algorithm is used to decrypt the ciphertext block, and the pre-shared key of the door lock A and the platform is used to extract the first 512 bytes of the decrypted plaintext data as the face feature vector; Dynamic pairing code generation: If the face feature similarity exceeds 85%, a 6-digit dynamic pairing code is randomly generated and displayed on the display screen of the door lock A for 30 seconds; Bluetooth interaction verification: Receive the pairing code sent by the neighbor's mobile phone through the BLE service, and if the wrong input is continuous for 3 times, lock the Bluetooth connection and clear the cache data.

[0007] Optionally, the cross-door lock authorization verification includes: Door lock information packaging: The door lock A encapsulates the door lock ID and IP address into a binary data packet and transmits it to the neighbor's mobile phone through the established encrypted Bluetooth connection; Cross-door lock data relay: After the neighbor's mobile phone returns to the door lock B, the door lock B identifies the mobile phone label DID through the BLE protocol, establishes a secure connection and receives the data packet; Proxy call confirmation request construction: The door lock B sends a proxy call confirmation request to the door lock A, which includes the door lock ID, the mobile phone label DID and the request timestamp, and the door lock A matches the mobile phone label DID with the pre-stored call event record in the local cache; Coordinated authorization response: If the matching is successful, the door lock A replies with a confirmation message, otherwise it replies with a rejection code.

[0008] Optionally, the robot task dispatching and closed-loop management includes: After the platform receives the proxy call request, it generates a navigation instruction, including the room ID of the door lock A and the face feature vector; Autonomous navigation and biometric recognition: the robot moves to the door lock A according to the navigation instruction, collects the user's face image through the camera, and compares it with the received face feature vector in real time; Task summary generation and cleaning: if the identification is successful, the robot unlocks the door and sends the task summary to the platform, and the platform deletes the temporary data in the door lock A and the door lock B after the task is completed, and marks the task state as completed.

[0009] Another embodiment of the application provides a door lock Bluetooth cooperative processing system, which comprises: The acquisition module is used for Bluetooth fragment data acquisition and reorganization: according to the detection of two consecutive doorbell trigger signals by the door lock A, the Bluetooth scanning module is started to listen to the periodic broadcast packet, and the received encrypted fragment data is sorted and integrity checked through the fragmentation reorganization algorithm to obtain the complete face feature ciphertext data block; The decryption module is used for face feature decryption and identity verification: based on the face feature ciphertext data block, the AES-256-GCM decryption algorithm is used to decrypt the pre-shared key of the door lock A and the platform to obtain the plaintext face feature vector, and the similarity comparison is performed with the house owner feature library stored in the door lock A, and if the similarity exceeds the threshold, a dynamic pairing code is generated; The authorization module is used for cross-door lock authorization verification: according to the successful result of dynamic pairing code verification, the door lock A forwards the door lock ID, IP address and target user feature vector to the door lock B through the neighbor's mobile phone, triggers the door lock B to send a call confirmation request carrying the mobile phone Bluetooth Tag-DID to the door lock A, and obtains the inter-door lock cooperative authorization result; The dispatch module is used for robot task dispatching and closed loop management: based on the cooperative authorization result, the platform sends the navigation instruction carrying the door lock A position and user feature to the robot, the robot generates the task summary after completing the face recognition and unlocking operation, synchronously cleans the temporary data of the door lock A, the door lock B and the platform, and obtains the closed loop execution record of the call process.

[0010] Another embodiment of the application provides a storage medium, which stores a computer program, wherein the computer program is set to execute the method described in any of the above embodiments when running.

[0011] Another embodiment of the application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is set to run the computer program to execute the method described in any of the above embodiments.

[0012] Compared with the prior art, the present invention provides a method for collaborative processing of door locks with Bluetooth. Door lock A detects a doorbell trigger signal, sorts and performs integrity verification on the encrypted fragmented data, and obtains a facial feature ciphertext data block; based on the facial feature ciphertext data block, decryption processing is performed to obtain a plaintext facial feature vector, and a similarity comparison is performed to generate a dynamic pairing code; based on the successful verification of the dynamic pairing code, door lock B is triggered to send a call confirmation request to door lock A, and a collaborative authorization result between door locks is obtained; based on the collaborative authorization result, the platform sends a navigation instruction to the robot, and the robot generates a task summary after completing the facial recognition and unlocking operations, and simultaneously cleans up temporary data to obtain a closed-loop execution record of the call process, thereby realizing efficient, safe and intelligent collaborative door lock control. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A hardware structure block diagram of a computer terminal for a door lock Bluetooth collaborative processing method provided by an embodiment of the present invention; Figure 2 A schematic flow chart of a method for Bluetooth collaborative processing of a door lock provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a door lock Bluetooth collaborative processing system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0014] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limiting the present invention.

[0015] The embodiment of the present invention first provides a method for Bluetooth collaborative processing of a door lock, which can be applied to electronic devices such as computer terminals, specifically ordinary computers.

[0016] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal for a door lock Bluetooth collaborative processing method provided by an embodiment of the present invention. Figure 1 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0017] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can cause the processor to execute any one of the door lock Bluetooth collaborative processing methods.

[0018] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0019] The internal memory provides an environment for the running of a computer program in a non-volatile storage medium, which, when executed by the processor, can enable the processor to perform any one of the methods of the door lock Bluetooth cooperative processing.

[0020] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that, Figure 1 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0021] It should be understood that the processor can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0022] Referring to Figure 2 The embodiments of the present application provide a method of door lock Bluetooth cooperative processing, which can include the following steps: S201, Bluetooth fragment data acquisition and reorganization: according to the detection of two consecutive doorbell trigger signals by door lock A, starting the Bluetooth scanning module to listen to the periodic broadcast packet, sorting and integrity checking the received encrypted fragment data by the fragmentation reorganization algorithm to obtain the complete face feature ciphertext data block; specifically, the Bluetooth fragment data acquisition and reorganization includes: Periodic broadcast packet listening: according to the detection of two consecutive press signals by the physical button sensor of door lock A, activating the Bluetooth scanning module to enter the ACTIVE scanning mode, setting the scanning window to 100ms; Fragment data buffering and checking: performing CRC16 checking on each received broadcast packet, discarding the data packet if the checking fails, and storing it in the cache queue according to the fragment number after the checking is passed, until the total number of fragments reaches the value declared in the broadcast packet header; Cipher data reorganization: Extract the fragment data from the cache queue by sequence number, remove the fragment header sequence number and check field, and splice into a complete cipher block to obtain an encrypted data block containing 2048 bytes of cipher and 12 bytes of authentication tag.

[0023] S202, face feature decryption and identity verification: based on the face feature ciphertext data block, using AES-256-GCM decryption algorithm combined with door lock A and platform pre-shared key for decryption processing, obtaining the plaintext face feature vector, and comparing with the house owner feature library stored in door lock A, if the similarity exceeds the threshold, a dynamic pairing code is generated; Specifically, the face feature decryption and identity verification includes: Decryption and feature extraction: using AES-256-GCM algorithm to decrypt the ciphertext block, using the pre-shared key of door lock A and platform, extracting the first 512 bytes of decrypted plaintext data as face feature vector; Dynamic pairing code generation: if the face feature similarity exceeds 85%, a 6-digit pairing code is randomly generated and displayed dynamically on the display screen of door lock A for 30 seconds; Bluetooth interaction verification: receiving the pairing code sent by the neighbor's mobile phone through BLE service, if the wrong input is continuous for 3 times, the Bluetooth connection is locked and the cache data is cleared.

[0024] S203, cross-door lock authorization verification: according to the result of dynamic pairing code verification success, door lock A forwards the door lock ID, IP address and target user feature vector to door lock B through neighbor's mobile phone, triggers door lock B to send a call confirmation request carrying mobile phone Bluetooth Tag-DID to door lock A, and obtains the cross-door lock authorization result; Specifically, the cross-door lock authorization verification includes: Door lock information packaging: door lock A packages the door lock ID and IP address into a binary data packet, and transmits it to the neighbor's mobile phone through the established encrypted Bluetooth connection; Cross-door lock data relay: after the neighbor's mobile phone returns to door lock B, door lock B identifies the mobile phone tag DID through BLE protocol, establishes a secure connection and receives the data packet; Call confirmation request construction: door lock B sends a call confirmation request to door lock A, which contains door lock ID, mobile phone tag DID and request timestamp, and door lock A matches mobile phone tag DID with pre-stored call event record in local cache; Coordinated authorization response: if the matching is successful, door lock A replies to the confirmation message, otherwise it replies to the rejection code.

[0025] S204, robot task dispatching and closed loop management: based on the collaborative authorization result, the platform sends a navigation instruction carrying the position of the door lock A and the user features to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data of the door lock A, the door lock B and the platform, and obtains a closed loop execution record of the proxy calling process. Specifically, the robot task dispatching and closed loop management comprises: After the platform receives the proxy calling request, a navigation instruction is generated, including the room ID of the door lock A and the face feature vector; Autonomous navigation and biometric recognition: the robot moves to the door lock A according to the navigation instruction, collects the user face image through the camera, and performs real-time comparison with the received face feature vector; Task summary generation and cleaning: if the identification is successful, the robot unlocks and opens the door, and sends a task summary to the platform, and the platform deletes the temporary data in the door lock A and the door lock B after the task is completed, and marks the task state as completed.

[0026] In actual application, when the owner of the smart door lock forgets to carry the door card, the owner can call the robot to help open the door by pressing the "doorbell" button of the door lock. However, if a stranger presses the "doorbell" button of the door lock, the robot will also be called. If the identity verification of the person pressing the "doorbell" button is not increased when the robot is called, the robot will respond invalidly, causing additional workload of the robot, and even seriously affecting the normal calling of the robot by the owner.

[0027] Bluetooth tag: a kind of wireless short distance communication equipment based on Bluetooth technology, its implementation principle is based on Bluetooth Low Energy (BLE) technology, BLE can transmit data in low power mode, thereby prolonging the battery life of the device. Bluetooth tags will be assigned a unique DID (Bluetooth-Tag Declaration ID, Bluetooth tag declaration ID, Tag-DID for short) when they leave the factory. This Tag-DID is the identity of the Bluetooth tag, similar to the MAC address of a WiFi device. This unique ID ensures that the Bluetooth tag can be accurately identified and tracked.

[0028] The present application proposes a method of using the Bluetooth tag of the neighbor's mobile phone to help the owner who does not carry a mobile phone to call the robot to perform face recognition, and the robot to unlock and open the door. This method can also exclude the behavior of strangers calling the robot. A technical solution specifically comprises: 1. Core idea: In order to prevent non-homeowner from invalid calling robot by door lock, the owner is determined by mobile phone Bluetooth, and then the robot is called. Further improvement, if the owner a does not have a mobile phone, the authorization is made through the neighbor b mobile phone. Then, the owner b obtains the face feature vector of the owner a through the mobile phone, and establishes a Bluetooth connection with the door lock A based on the feature vector, and calls the robot.

[0029] 2. The complete process of technical implementation is as follows: Preconditions: The owner's entry door is installed with an intelligent door lock, which supports RFID card reading and unlocking to open the door. The door lock stores the owner's information, including name, face image / feature vector, RFID-ID number, etc. The door lock supports Bluetooth communication and is in the default central mode (Central Mode). The door lock can extract the Tag-DID of the mobile phone tag by listening to the advertising data packet of the mobile phone Bluetooth tag. The door lock records the Tag-DID of the mobile phone tag that has successfully paired with the door lock through manual support. The door lock is connected to the platform and reports the room ID number, door lock ID number, door lock IP, and paired mobile phone Tag-DID, etc. to the platform. The platform receives and saves the Bluetooth tag list issued by the platform, including room ID number, name, mobile phone Tag-DID, and pairing record, etc.

[0030] Note: The room ID number, name, mobile phone Tag-DID, and pairing record in the Bluetooth tag list issued by the platform include the names, mobile phone Tag-DID, and pairing record of all members of the lock, as well as the room ID number, name, and mobile phone Tag-DID of other door locks, but do not include the pairing record.

[0031] The owner's mobile phone is installed with an intelligent door lock APP, which has an independent APP-ID. The mobile phone supports Bluetooth communication and has an independent mobile phone Tag-DID. The mobile phone Bluetooth tag is in the default peripheral mode (Peripheral). The mobile phone Bluetooth tag and the door lock have completed pre-pairing and support connectable broadcast.

[0032] The robot is pre-installed with a robot walking map, which can autonomously walk to the specified room door lock according to the pre-set room ID number. The robot is installed with a camera with face recognition and a display screen with face recognition display, which can perform face recognition comparison. The robot is connected to the door lock and supports doorbell calling and unlocking authorization of the specified door lock. The robot is connected to the platform and receives the tasks issued by the platform (such as delivering goods for the owner, providing face recognition and unlocking door on site for the owner, etc.).

[0033] Normally, the owner uses the RFID card to unlock the door: the owner holds the RFID card and swipes it on the door lock, the door lock reads the ID number of the RFID card and compares it with the stored information of the house owner, if the comparison is correct, the owner is unlocked and the process is ended.

[0034] If the owner forgets to take the RFID card, after ensuring that the Bluetooth communication function of the mobile phone is turned on, the door lock triggers the Bluetooth verification of the mobile phone carried by the owner by pressing the "doorbell" button twice, and then calls the robot.

[0035] The owner a comes to the door lock A of his own house (at this time, a may have just left the house or may have returned from outside without carrying an RFID card), opens the Bluetooth APP on the mobile phone, sets the Bluetooth of the mobile phone (assuming that the Bluetooth tag ID number of the owner's a mobile phone is Tag-DID(a)) to "enable" state, and presses the "doorbell" button on the door lock A twice.

[0036] After the door lock A receives the button signal, it listens to the advertising data packets of the surrounding Bluetooth tags and extracts the tag ID (at this time, it may sense multiple Bluetooth tag IDs), and after comparing with the Bluetooth tag list saved by the lock, it finds that Tag-DID(a) is owned by the owner of door lock A (at this time, Tag-DID(a) recorded in the Bluetooth tag list is paired with door lock A), and directly enters the reconnection process which needs to be confirmed by the mobile phone APP (at this time, since Tag-DID(a) has been successfully paired with door lock A, and door lock A saves the pairing record, it can directly restore the connection process automatically, and the user APP intervenes to confirm the connection), the APP listens to the reconnection event (such as an Android system mobile phone, it listens to BluetoothDevice.ACTION_ACL_CONNECTED / reconnection event through BluetoothDeviceAPI), sends a reconnection request, and when the APP detects the door lock reconnection request (the door lock reuses the long-term key / LTK generated during the first pairing), a dialog box is popped up (such as "Do you want to connect

door lock A

[0037] The door lock A sends a "summon robot" message to the platform after completing the Bluetooth connection with the owner's a mobile phone, including the room ID (A) number, door lock ID (A), door lock IP (A), owner name (owner a), face image / feature vector (owner a), etc. The platform receives the "summon robot" message sent by the door lock A, sends the room ID (A) number, door lock ID (A), door lock IP (A), owner name (owner a), face image / feature vector (owner a), etc. information to the robot, and dispatches the robot to the door lock A. After the robot room ID (A) number (robot built-in navigation map, generally through autonomous navigation, autonomous obstacle avoidance and autonomous walking, etc.) reaches the door lock A, it performs face recognition for the owner a, and after successful face recognition, it is connected with the door lock A and unlocks the door for a.

[0038] The robot sends a "task summary" message to the platform, including door lock ID (A), owner name (owner a), face image / feature vector (owner a), face recognition success / failure, whether to unlock / is or not, timestamp (current clock), etc., and then clears the cached "go to [door lock A]" instruction message and walks to the default address. The platform receives the "task summary" message sent by the robot, saves it for 3 months and then automatically deletes it (the retention period can generally be set to 3 months for query), and the process ends.

[0039] Further improvement: The owner b of the door lock B uses the owner b's mobile phone APP to take a face image / feature vector of the owner a, and uses the owner b's mobile phone Bluetooth to request the door lock A to establish a Bluetooth connection with the owner a's face image / feature vector. After the connection is successful, the door lock information of the door lock A is obtained. After returning to the door lock B, the owner b's mobile phone Bluetooth establishes a Bluetooth connection with the door lock B, sends the door lock information of the door lock A to the door lock B, and the door lock B sends a "substitute summon confirmation request" to the platform, and after obtaining the reply confirmation of A, the door lock B sends a "substitute summon robot" request carrying the information of the door lock A to the platform. The platform dispatches the robot to the door lock A according to the information in the "substitute summon robot" request, performs face recognition and unlocking for the owner a.

[0040] In step (3), if the owner does not carry an RFID card or a mobile phone, the door lock cannot verify whether the person who presses the "doorbell" button twice is the owner by identifying the Bluetooth tag of the mobile phone, and cannot summon the robot to perform face recognition and unlocking. In order to solve this problem, the optimization is as follows: 1) Supplementary preconditions: Mobile phone Bluetooth supports BLE Periodic Advertising + data synchronization, which can be configured by calling BLE API, such as broadcast interval of 100 ms, synchronization timeout of 5 seconds, etc.

[0041] Door lock Bluetooth supports BLE Periodic Advertising + data synchronization, which can be configured by calling BLE API, such as enabling ACTIVE scanning, scanning window of 100 ms, etc.

[0042] 2) The owner b of door lock B opens the door lock APP of the mobile phone, scans the face of the owner a of door lock A with the APP, and the mobile phone APP extracts the face image / feature vector of the owner a. The mobile phone Bluetooth tag fragments the face image / feature vector data of a (such as first encrypting the feature vector data with AES-256-GCM to generate ciphertext (2048 bytes) and authentication tag (12 bytes), then splitting the ciphertext into several packets (such as 224 bytes per packet), and then adding packet number, total number of fragments, user data length, and CRC16 checksum to each packet to form multiple fragments), and then sends the fragments through BLE periodic broadcasting, including fragment number, total number of fragments, fragment data, CRC16 checksum, etc.

[0043] 3) After the owner b presses the "doorbell" button on door lock A for 2 times, the mobile phone is close to door lock A (at this time, the process of calling the robot is started). Door lock A receives the 2-doorbell button signal, starts BLE scanning, identifies the periodic broadcast packet, and initiates a periodic broadcast synchronization request (such as by calling syncAdvertiser to negotiate broadcast interval, clock offset, etc.). After synchronization is successful, door lock A receives and caches broadcast fragments according to interval, and when all fragments are received (by checking fragment number and total number of fragments), the decrypted AES-256 encrypted data is reorganized according to fragment number to restore the face image / feature vector of the owner a.

[0044] 4) The door lock A compares the face image / feature vector of the master a received by Bluetooth with the face image / feature vector in the master information stored in the door lock one by one. If it is not successful, it displays "Bluetooth connection failure" on the door lock screen, and the process ends. If it is successful, it displays the pairing code (such as "123456") on the door lock A display screen. The mobile phone sends the pairing code (the master b inputs the pairing code displayed on the door lock A display screen in the mobile phone APP) to the door lock A through BLE broadcast. The door lock A receives the pairing code sent by the mobile phone and compares it with the pairing code generated by itself. If the pairing codes match (the door lock displays the pairing code on the door lock A display screen), the door lock responds to the pairing success signal (such as sending GATT notification, etc.) through BLE. If the door lock A fails to match, it can issue a "didi" prompt sound on the door lock A. The master b re-enters the pairing code displayed on the door lock A display screen in the mobile phone APP, and then broadcasts it to the door lock A for matching. If the matching fails for 3 times, the door lock will no longer receive the mobile phone Bluetooth pairing, and the door lock A display screen will display "Bluetooth has been locked", and the process ends. After the door lock A and the mobile phone Bluetooth pairing is successful, it can establish a BLE connection (such as communication through GATT service), the door lock A prepares the door lock information and sends it to the master b in the mobile phone through the BLE connection, including door lock ID (A), door lock IP (A), etc. The mobile phone receives and caches the door lock information of A through the BLE connection. After the sending is successful, the door lock A records the calling robot event information, including calling event ID (which can be door lock ID (A) + time stamp), face image / feature vector of master a, master b mobile phone Bluetooth Tag-DID (b), whether to call / pending, and the calling robot event information is automatically deleted after 15 minutes to reduce storage overhead.

[0045] 5) The master b returns to the door lock B and presses the "doorbell" button twice on the door lock B, and then places the mobile phone close to the door lock B. The door lock B receives the 2-doorbell button signal and establishes a connection with the b's mobile phone Bluetooth through BLE (at this time, b is the master of the door lock B, and b's mobile phone Bluetooth has successfully paired). The mobile phone sends the door lock information of A, the face image / feature vector of master a collected by the mobile phone APP, etc. to B through BLE, including door lock ID (A), door lock IP (A), face image / feature vector of master a, etc. The door lock B receives and caches the door lock information of A.

[0046] 6) The door lock B sends a "substitute call confirmation request" message to the door lock A according to the door lock IP (A) address in the door lock information of the door lock A, containing the door lock ID (B), the master b mobile phone Bluetooth Tag-DID (b), etc. The door lock A receives the "substitute call confirmation request" request message, matches the mobile phone Bluetooth Tag-DID in the cached call event information with the master b mobile phone Bluetooth Tag-DID (b), and if the matching is successful, the door lock A replies with a "substitute call confirmation" reply message, containing the call event ID, the door lock ID (A), whether to confirm the substitute call / is, etc. If the Tag-DID (b) is not successfully matched (at this time, b may have taken other mobile phones), the door lock A replies with a "substitute call confirmation" reply message, containing the call event ID, the door lock ID (A), whether to confirm the substitute call / no, etc.

[0047] 7) The door lock B receives the "substitute call confirmation" reply message and checks the result of "whether to confirm the substitute call". If it is "yes", the door lock B sends a "substitute call robot" message to the platform, containing the call event ID, the room ID (A) number, the door lock ID (A), the door lock IP (A), the master name (master a), the face image / feature vector (master a), the door lock ID (B) of the substitute call door lock, the door lock IP (B), etc. The platform receives the "call robot" message sent by the door lock A, sends a "robot departure" notification message to the robot by sending the call event ID, the room ID (A) number, the door lock ID (A), the door lock IP (A), the master name (master a), the face image / feature vector (master a), etc. to the robot, and dispatches the robot to the door lock A. At the same time, the platform sends a "robot has been dispatched" message according to the door lock IP (A) and the door lock IP (B) in the "substitute call robot" message, containing the door lock ID (A) / door lock ID (B), whether to dispatch the robot / yes, etc. The door lock A receives the "robot has been dispatched" message and displays "the robot has departed, please wait" on the door lock, which stops displaying until the robot arrives and establishes a connection; the door lock B receives the "robot has been dispatched" message and displays "successfully substitute called the robot" on the door lock, which stops displaying after 30 seconds, and the door lock B process ends.

[0048] The robot receives and caches the "robot departure" notification message, and arrives at the door lock A according to the room ID (A) number in the message (the robot has a built-in navigation map, which is generally achieved through autonomous navigation, autonomous obstacle avoidance and autonomous walking, etc.) and establishes a network connection with the door lock A. The robot performs face recognition for the master a, and unlocks the door for a after successful face recognition comparison.

[0049] The robot sends a "Mission Summary" message to the platform, containing the summon event ID, door lock ID (A), owner name (owner a), facial image / feature vector (owner a), facial recognition match / yes / no, unlock / yes / no, and a timestamp (current clock). The robot then clears the cached "Robot Departure" notification message and autonomously moves to the preset default address. The platform receives the "Mission Summary" message from the robot and automatically deletes it after storing it for three months (a three-month retention period is typically set for easy querying). The process ends.

[0050] The door lock helps the owner who does not have a mobile phone to call the robot for facial recognition and unlocking the door by verifying the Bluetooth tag of the neighbor's mobile phone in the trusted whitelist, while preventing strangers from making invalid calls to the robot.

[0051] It can be seen that door lock A detects the doorbell trigger signal, sorts and integrity checks the encrypted fragmented data, and obtains the facial feature ciphertext data block; based on the facial feature ciphertext data block, it performs decryption processing to obtain the plaintext facial feature vector, and performs similarity comparison to generate a dynamic pairing code; according to the successful verification of the dynamic pairing code, it triggers door lock B to send a call confirmation request to door lock A, and obtains the collaborative authorization result between the door locks; based on the collaborative authorization result, the platform sends navigation instructions to the robot, and the robot generates a task summary after completing the facial recognition and unlocking operations, and simultaneously cleans up the temporary data to obtain a closed-loop execution record of the call process, thereby realizing efficient, safe and intelligent collaborative door lock control.

[0052] Another embodiment of the present invention provides a system for Bluetooth collaborative processing of door locks, see Figure 3 , the system may include: Collection module 301 is used for Bluetooth fragment data collection and reassembly: upon detecting two consecutive doorbell trigger signals from door lock A, the Bluetooth scanning module is activated to monitor periodic broadcast packets. The received encrypted fragment data is sorted and integrity-checked using a fragment reassembly algorithm to obtain a complete facial feature ciphertext data block; Decryption module 302, for facial feature decryption and identity verification: Based on the facial feature ciphertext data block, it uses the AES-256-GCM decryption algorithm combined with the pre-shared key between door lock A and the platform to perform decryption processing, obtains a plaintext facial feature vector, and compares it with the homeowner feature database stored in door lock A for similarity. If the similarity exceeds a threshold, a dynamic pairing code is generated; Authorization module 303, for cross-door lock call authorization verification: Based on the successful result of dynamic pairing code verification, door lock A forwards the door lock ID, IP address, and target user feature vector to door lock B via the neighbor's mobile phone, triggering door lock B to send a call confirmation request carrying the mobile phone Bluetooth Tag-DID to door lock A, obtaining the collaborative authorization result between the door locks; The dispatch module 304 is used for robot task dispatching and closed loop management: based on the collaborative authorization result, the platform sends a navigation instruction carrying the door lock A position and user features to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data of the door lock A, the door lock B and the platform, and obtains the closed loop execution record of the proxy calling process.

[0053] As can be seen, the door lock A detects the doorbell trigger signal, sorts and integrity checks the encrypted fragmented data, obtains the face feature ciphertext data block, performs decryption processing based on the face feature ciphertext data block, obtains the plaintext face feature vector, and performs similarity comparison to generate a dynamic pairing code; according to the successful result of dynamic pairing code verification, the door lock B sends a proxy calling confirmation request to the door lock A, and obtains the inter-door lock collaborative authorization result; based on the collaborative authorization result, the platform sends a navigation instruction to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data, and obtains the closed loop execution record of the proxy calling process, so that efficient, safe and intelligent collaborative door lock control can be realized.

[0054] The embodiment of the present application also provides a storage medium, wherein the storage medium stores a computer program, and the computer program is set to execute the steps in any one of the method embodiments.

[0055] Specifically, in the present embodiment, the above-mentioned storage medium can be set to store a computer program for executing the following steps: S201, Bluetooth fragmented data acquisition and reorganization: according to the detection of two consecutive doorbell trigger signals by the door lock A, a Bluetooth scanning module is started to listen to periodic broadcast packets, and the received encrypted fragmented data is sorted and integrity checked by a fragmentation reorganization algorithm to obtain a complete face feature ciphertext data block; S202, face feature decryption and identity verification: based on the face feature ciphertext data block, an AES-256-GCM decryption algorithm is used to perform decryption processing in combination with the pre-shared secret key of the door lock A and the platform to obtain a plaintext face feature vector, and similarity comparison is performed with the house owner feature library stored in the door lock A, and if the similarity exceeds a threshold, a dynamic pairing code is generated; S203, cross-door lock proxy calling authorization verification: according to the successful result of dynamic pairing code verification, the door lock A forwards the door lock ID, IP address and target user feature vector to the door lock B through a neighbor mobile phone, triggers the door lock B to send a proxy calling confirmation request carrying the mobile phone Bluetooth Tag-DID to the door lock A, and obtains the inter-door lock collaborative authorization result; S204, robot task dispatching and closed loop management: based on the collaborative authorization result, the platform sends a navigation instruction carrying the door lock A position and user features to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data of the door lock A, the door lock B and the platform, and obtains the closed loop execution record of the proxy calling process.

[0056] As can be seen, the door lock A detects the doorbell trigger signal, sorts and integrity checks the encrypted fragmented data to obtain the face feature ciphertext data block, performs decryption processing based on the face feature ciphertext data block to obtain the plaintext face feature vector, and performs similarity comparison to generate a dynamic pairing code; according to the result of successful verification of the dynamic pairing code, the door lock B sends a proxy calling confirmation request to the door lock A, and obtains the inter-door lock collaborative authorization result; based on the collaborative authorization result, the platform sends a navigation instruction to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data, and obtains the closed loop execution record of the proxy calling process, so that efficient, safe and intelligent collaborative door lock control can be realized.

[0057] The embodiment of the application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the method embodiments.

[0058] Specifically, the electronic device can further comprise a transmission device connected to the processor and an input / output device connected to the processor.

[0059] Specifically, in the embodiment, the processor can be configured to execute the following steps through the computer program: S201, Bluetooth fragmented data acquisition and reorganization: according to the detection of two consecutive doorbell trigger signals by the door lock A, a Bluetooth scanning module is started to listen to periodic broadcast packets, and the received encrypted fragmented data is sorted and integrity checked through a fragmentation reorganization algorithm to obtain a complete face feature ciphertext data block; S202, face feature decryption and identity verification: based on the face feature ciphertext data block, an AES-256-GCM decryption algorithm is used to perform decryption processing in combination with the pre-shared secret key of the door lock A and the platform to obtain a plaintext face feature vector, and similarity comparison is performed with the house owner feature library stored in the door lock A, and if the similarity exceeds a threshold, a dynamic pairing code is generated; S203, cross-door lock proxy calling authorization verification: according to the result of successful verification of the dynamic pairing code, the door lock A forwards the door lock ID, IP address and target user feature vector to the door lock B through a neighbor mobile phone, triggers the door lock B to send a proxy calling confirmation request carrying the mobile phone Bluetooth Tag-DID to the door lock A, and obtains the inter-door lock collaborative authorization result; S204, robot task dispatching and closed loop management: based on the collaborative authorization result, the platform sends a navigation instruction carrying the door lock A position and user features to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data of the door lock A, the door lock B and the platform, and obtains the closed loop execution record of the proxy calling process.

[0060] As can be seen, the door lock A detects the doorbell trigger signal, sorts and integrity checks the encrypted fragmented data, obtains the face feature ciphertext data block, performs decryption processing based on the face feature ciphertext data block, obtains the plaintext face feature vector, and performs similarity comparison to generate a dynamic pairing code; according to the result of successful verification of the dynamic pairing code, the door lock B sends a proxy calling confirmation request to the door lock A, and obtains the inter-door lock collaborative authorization result; based on the collaborative authorization result, the platform sends a navigation instruction to the robot, the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data, and obtains the closed loop execution record of the proxy calling process, so as to realize efficient, safe and intelligent collaborative door lock control.

[0061] The above embodiments illustrate the structure, features and effects of the present application. The above description is only the preferred embodiment of the present application, but the present application is not limited by the drawings. Any changes or modifications made in accordance with the concept of the present application, or equivalent embodiments with equivalent changes, are still within the scope of the present application.

Claims

1. A method for door lock Bluetooth co-processing, characterized in that, The method comprises: Bluetooth fragmented data collection and reorganization: according to the detection of two consecutive doorbell trigger signals by door lock A, start the Bluetooth scanning module to listen to the periodic broadcast packet, sort and integrity check the received encrypted fragmented data through the fragmentation reorganization algorithm, and obtain the complete face feature ciphertext data block; Face feature decryption and identity verification: based on the face feature ciphertext data block, use the AES-256-GCM decryption algorithm to decrypt the plaintext face feature vector in combination with the pre-shared key of door lock A and the platform, and compare it with the house owner feature library stored in door lock A, if the similarity exceeds the threshold, generate a dynamic pairing code; Cross-door lock authorization verification: according to the successful result of dynamic pairing code verification, door lock A transmits the door lock ID, IP address and target user feature vector to door lock B through the neighbor's mobile phone, triggers door lock B to send a proxy call confirmation request carrying the mobile phone Bluetooth Tag-DID to door lock A, and obtains the inter-door lock collaborative authorization result; Robot task assignment and closed-loop management: based on the collaborative authorization result, the platform sends a navigation instruction carrying the door lock A position and user feature to the robot, and the robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data of door lock A, door lock B and the platform, and obtains the closed-loop execution record of the proxy call process.

2. The method of claim 1, wherein, The Bluetooth fragmented data collection and reorganization comprises: Periodic broadcast packet listening: according to the detection of two consecutive press signals by the physical button sensor of door lock A, activate the Bluetooth scanning module to enter the ACTIVE scanning mode, and set the scanning window to 100 ms; Fragmented data buffering and checking: perform CRC16 checking on each received broadcast packet, discard the data packet if the checking fails, and store it in the buffer queue according to the fragment number after the checking is passed, until the total number of fragments reaches the value declared in the broadcast packet header; Ciphertext data reorganization: extract the fragmented data from the buffer queue according to the serial number, remove the fragment header serial number and the checking field, and splice them into a complete ciphertext block to obtain an encrypted data block containing 2048 bytes of ciphertext and 12 bytes of authentication tag.

3. The method of claim 2, wherein, The face feature decryption and identity verification comprises: Decryption and feature extraction: use the AES-256-GCM algorithm to decrypt the ciphertext block, use the pre-shared key of door lock A and the platform, and extract the first 512 bytes of the decrypted plaintext data as the face feature vector; Dynamic pairing code generation: if the face feature similarity exceeds 85%, generate a 6-digit pairing code, and display it dynamically on the display screen of door lock A for 30 seconds; Bluetooth interaction verification: receive the pairing code sent by the neighbor's mobile phone through the BLE service, and if the same code is input for three consecutive times, lock the Bluetooth connection and clear the buffer data.

4. The method of claim 3, wherein, The cross-door lock authorization verification comprises: Door lock information packaging: door lock A packages the door lock ID and IP address into a binary data packet, and transmits it to the neighbor's mobile phone through the established encrypted Bluetooth connection; Cross-door lock data relay: after the neighbor's mobile phone returns to door lock B, door lock B identifies the mobile phone tag DID through the BLE protocol, establishes a secure connection and receives the data packet; Proxy confirmation request construction: door lock B sends a proxy confirmation request to door lock A, which contains door lock ID, mobile phone label DID and request timestamp. Door lock A matches mobile phone label DID with pre-stored summon event record in local cache; Coordinated authorization response: if the matching is successful, door lock A replies with a confirmation message, otherwise it replies with a rejection code.

5. The method of claim 4, wherein, The robot task dispatching and closed loop management includes: After the platform receives the proxy request, it generates a navigation instruction containing the room ID of door lock A and the face feature vector; Autonomous navigation and biometric identification: the robot moves to door lock A according to the navigation instruction, collects the user's face image through the camera, and compares it with the received face feature vector in real time; Task summary generation and cleaning: if the identification is successful, the robot unlocks and opens the door, and sends a task summary to the platform. After the task is completed, the platform deletes the temporary data in door lock A and door lock B, and marks the task status as completed.

6. A system for door lock Bluetooth co-processing, characterized in that, The system includes: The acquisition module is used for Bluetooth slice data acquisition and reorganization: according to the detection of two continuous doorbell trigger signals by door lock A, the Bluetooth scanning module is started to listen to periodic broadcast packets. The received encrypted slice data is sorted and integrity checked by slice reorganization algorithm to obtain complete face feature ciphertext data block; The decryption module is used for face feature decryption and identity verification: based on the face feature ciphertext data block, the AES-256-GCM decryption algorithm is used to decrypt the data combined with the pre-shared key of door lock A and the platform to obtain the plaintext face feature vector, and the similarity comparison is performed with the house owner feature library stored in door lock A. If the similarity exceeds the threshold, a dynamic pairing code is generated; The authorization module is used for cross-door lock proxy authorization verification: according to the successful result of dynamic pairing code verification, door lock A forwards the door lock ID, IP address and target user feature vector to door lock B through the neighbor mobile phone, triggers door lock B to send a proxy confirmation request to door lock A carrying the mobile phone Bluetooth Tag-DID, and obtains the inter-door lock coordinated authorization result; The dispatch module is used for robot task dispatching and closed loop management: based on the coordinated authorization result, the platform sends a navigation instruction carrying the door lock A position and user feature to the robot. The robot generates a task summary after completing face recognition and unlocking operation, synchronously cleans up the temporary data of door lock A, door lock B and the platform, and obtains the closed loop execution record of the proxy process.

7. The system of claim 6, wherein, The Bluetooth slice data acquisition and reorganization includes: Periodic broadcast packet listening: according to the detection of two continuous pressing signals by the physical button sensor of door lock A, the Bluetooth scanning module is activated to enter ACTIVE scanning mode, and the scanning window is set to 100ms; Slice data caching and verification: CRC16 verification is performed on each received broadcast packet. If the verification fails, the data packet is discarded. If the verification is passed, the slice data is stored in the cache queue according to the slice number, and the total slice number reaches the value declared in the broadcast packet header; Ciphertext data reorganization: slice data is extracted from the cache queue according to the serial number, the slice header serial number and the verification field are removed, and the complete ciphertext block is spliced to obtain an encrypted data block containing 2048 bytes of ciphertext and 12 bytes of authentication tag.

8. The system of claim 7, wherein, The face feature decryption and identity verification includes: Decryption and feature extraction: the AES-256-GCM algorithm is used to decrypt the ciphertext block, and the first 512 bytes of the decrypted plaintext data are extracted as the face feature vector using the door lock A and the platform pre-shared key; Dynamic pairing code generation: if the face feature similarity exceeds 85%, a 6-digit pairing code is randomly generated and dynamically displayed on the display screen of door lock A for 30 seconds; Bluetooth interaction verification: receive the pairing code sent by the neighbor's mobile phone through the BLE service, and if the wrong input is continuous for 3 times, lock the Bluetooth connection and clear the cache data.

9. A storage medium, characterized by The storage medium stores a computer program, wherein the computer program is configured to execute the method of any one of claims 1-4 when running.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the computer program to execute the method of any one of claims 1-4.

Citation Information

Patent Citations

  • Access control method and system based on Bluetooth MESH networking core technology

    CN107393069A

  • Method and system for controlling door lock in area without person couplings

    CN118644914A

  • Personnel monitoring method and system based on intelligent door lock and storage medium

    CN119851384A

  • Method and system for collaborative safe unlocking of door lock and mobile phone tag

    CN120318941A

  • Digital door-rock system and control method thereof

    KR1020120136064A

Cited By

  • Shopping method and system based on cooperation of door lock and unmanned supermarket

    CN121052834A

  • A shopping method and system based on the collaboration between door locks and unmanned supermarkets

    CN121052834B

  • Multi-door-lock collaborative communication group establishment method and system

    CN121193661A

  • Emergency method and system based on door lock Bluetooth cooperation

    CN121418797A

  • An emergency method and system based on door lock bluetooth cooperation

    CN121418797B