A home appliance reservation method and system for a door lock

By establishing multicast paths and registering identities, and utilizing the multicast forwarding mechanism based on facial feature vectors, the latency and accuracy issues of home appliance linkage control in existing smart home systems have been resolved, achieving efficient, accurate, and scalable home appliance control in multi-user scenarios.

CN122179260APending Publication Date: 2026-06-09DESSMANN CHINA MACHINERY & ELECTRONICS

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
DESSMANN CHINA MACHINERY & ELECTRONICS
Filing Date
2026-05-13
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing smart home systems, door lock devices struggle to achieve seamless appliance control, especially in scenarios with multiple concurrent users, where network load becomes excessive, response latency increases, and the lack of an efficient multicast forwarding mechanism makes it difficult to accurately deliver control commands. Furthermore, the rudimentary binding of user identities and appliance permissions limits the system's scalability and refined service capabilities.

Method used

Through multicast path establishment and identity registration, the door lock device sends an IGMP join message carrying a facial feature vector. The home gateway router constructs a multicast forwarding path. After the access control is triggered, a multicast home appliance reservation message is generated and forwarded by the access control gateway router to the RP. The RP matches the facial feature vector with the door lock unicast IP and converts it into a unicast message, which is then sent to the door lock device along the optimal path.

Benefits of technology

It enables targeted and efficient transmission of appliance reservation instructions after access control is triggered, improving the accuracy and scalability of appliance control in multi-user scenarios, simplifying the operation process, and ensuring the accuracy of identity matching and the reliability of network transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122179260A_ABST
    Figure CN122179260A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for reserving home appliances via a door lock. The method includes: constructing a multicast forwarding path from the door lock to the access control unit (RP) based on an IGMP join message carrying a member's facial feature vector sent by the door lock device; collecting the member's facial feature vector and generating a multicast home appliance reservation message based on the member's home appliance selection command on the access control device; matching the mapping relationship between the locally registered facial feature vector and the door lock's unicast IP address based on the access control gateway router's identification of the message as a multicast home appliance reservation message; and converting the multicast message into a unicast message based on the matching result, and sending the unicast message to the corresponding door lock device along the optimal path. The door lock device then parses the home appliance identifier and activates the corresponding home appliance via internal wireless communication. Using this invention, the targeted and efficient transmission of home appliance reservation commands after access control is triggered can be achieved, improving the accuracy and scalability of home appliance control in multi-user scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of smart door lock technology, and in particular to a method and system for scheduling home appliances using door locks. Background Technology

[0002] With the popularization of smart home technology, appliance linkage control based on access control systems has become an important application scenario for improving the convenience of living. In existing technologies, door lock devices usually only serve as security entry points. After entering the house, users need to manually operate them or control home appliances through a separate mobile terminal, making it difficult to achieve a seamless automated experience. Some solutions attempt to achieve personalized scene linkage through facial recognition, but in scenarios with multiple users accessing concurrently, traditional unicast communication methods require establishing an independent control channel for each door lock device, leading to excessive load on the home gateway and increased response latency. At the same time, due to the lack of an efficient multicast forwarding mechanism, control commands triggered by access control are difficult to accurately deliver to the corresponding target door lock, especially in complex network topologies, which can easily lead to command broadcasting saturation or identity matching errors. In addition, existing methods are relatively crude in binding user identities and home appliance permissions, and cannot combine precise path selection at the network layer to achieve on-demand control, limiting the scalability and refined service capabilities of smart home systems. Summary of the Invention

[0003] The purpose of this invention is to provide a method and system for reserving home appliances via door locks, in order to overcome the shortcomings of the prior art. This system enables the directional and efficient transmission of home appliance reservation instructions after access control is triggered, thereby improving the accuracy and scalability of home appliance control in multi-user scenarios.

[0004] One embodiment of this application provides a method for scheduling home appliances using a door lock, the method comprising: Multicast path establishment and identity registration: Based on the IGMP join message carrying the member's face feature vector sent by the door lock device, the home gateway router registers the face feature vector on the receiving interface and sends a PIM join message carrying the face feature vector and the door lock unicast IP to the aggregation point RP. Multicast routers along the way register the face feature vector and the door lock unicast IP on their respective receiving interfaces, thus constructing a multicast forwarding path from the door lock to the RP. Access control triggering and reservation message multicast: Based on the member's operation of selecting home appliances on the access control device, the access control camera collects the member's facial feature vector, generates a multicast home appliance reservation message containing the facial feature vector and the home appliance identifier, and sends it to the access control gateway router; Reservation message forwarding and identity matching: The access control gateway router identifies the message as a multicast home appliance reservation message and forwards it only to the RP. After receiving the message, the RP matches the mapping relationship between the locally registered face feature vector and the door lock unicast IP based on the member's face feature vector in the message. Unicast forwarding and home appliance control: Based on the matching results, the RP converts the multicast message into a unicast message and sends the unicast message to the corresponding door lock device along the optimal path. After parsing the home appliance identifier, the door lock device starts the corresponding home appliance through the internal wireless communication of the home.

[0005] Optionally, the multicast path establishment and identity registration include: Facial feature pre-storage: The facial feature vectors of family members and authorized caregivers are pre-stored in the local flash memory of the door lock device to form an identity mapping table; IGMP Join Message Generation and Sending: Based on the multicast join request initiated by the door lock device, an IGMP join message is generated. The IP header of this message carries the door lock unicast IP and the member's facial feature vector, and the payload contains the door lock ID and the member's name information. It is sent to the home gateway router with the preset multicast group G=229.0.3.3 as the destination address. Interface registration: Based on the interface through which the home gateway router receives the IGMP join message, parse and register the facial feature vector carried in the message, and establish the correspondence between the interface, the facial feature vector, and the door lock unicast IP. PIM Join Message Extension and Propagation: Based on the PIM join message generated by the home gateway router, the extended field carries the face feature vector and the door lock unicast IP, and is sent hop-by-hop to the RP along the multicast path. Each multicast router along the way registers the face feature vector and the door lock unicast IP on the receiving interface.

[0006] Optionally, the access control triggering and reservation message multicast includes: Appliance command selection: Based on the member's operation of selecting the target appliance command from the appliance option interface on the access control screen, the type and working mode of the appliance to be reserved are determined; Facial feature acquisition: Real-time acquisition of members' facial images from the access control system's built-in camera, and extraction of facial feature vectors; Multicast message encapsulation: Based on the facial feature vector and the home appliance instruction, a multicast home appliance reservation message is generated. The message header contains the facial feature vector, the payload contains the access control ID, the home appliance instruction field and the timestamp, and the destination address is the preset multicast group G=229.0.3.3. Message transmission: Send the multicast appliance reservation message to the directly connected access control gateway router.

[0007] Optionally, the targeted forwarding of the reservation message and identity matching includes: Message type identification: Based on the multicast messages received by the access control gateway router, identify whether the payload of the message contains the home appliance identification field, and determine whether it is a general multicast message or a multicast home appliance reservation message. Targeted forwarding processing: If the message is identified as a multicast appliance reservation message, the access control gateway router will only forward the message from the interface pointing to RP, and will not forward it to other outgoing interfaces of the (*,G) forwarding table entry; RP Reception and Parsing: Based on the multicast appliance reservation message received by the RP, parse the facial feature vector in the message header; Face feature matching: Based on the RP, traverse the locally stored interface-face feature vector-door lock unicast IP mapping relationship to find the door lock unicast IP address that matches the face feature vector of the message.

[0008] Optionally, the unicast forwarding and home appliance control includes: Multicast to unicast conversion: Based on the RP, the matching door lock unicast IP is used as the destination address, and the destination IP of the original multicast message is modified to the unicast IP to generate a unicast home appliance reservation message; Optimal path transmission: The unicast message is sent to the home gateway router by automatically selecting the lowest cost path according to the network routing protocol, and finally delivered to the corresponding door lock device; Door lock parsing and control: Based on the unicast message received and parsed by the door lock device, the appliance identification field is extracted, and a start command is sent to the corresponding smart home appliance through the home's internal wireless communication channel; Access revoked: Based on the administrator deleting the facial feature vector of a specific member from the door lock system, the door lock stops responding to reservation commands for that member.

[0009] Optionally, the method further includes dynamic IP updates and distributed processing optimizations: Dynamic IP Change Detection: Based on the home gateway router's DHCP relay function, it monitors the IP address allocation status of door lock devices in real time. When a door lock IP change is detected, a unicast update message containing the facial feature vectors of all people corresponding to the door lock and the new IP is generated and sent to the RP. Mapping update: After receiving the unicast update message, the RP updates the mapping relationship between the locally stored face feature vector and the door lock unicast IP. Distributed mapping storage: The IGMP join message sent by the door lock carries the face feature vector and the door lock unicast IP. During the hop-by-hop transmission of the PIM join message, the routers along the way add their own downlink interface IP to the extension field. The RP evenly distributes the face-IP mapping relationship of each door lock to the storage of the routers along the way according to the hash algorithm. Distributed multicast to unicast: When a multicast appliance reservation message is forwarded to a router along the path that has been assigned a storage mapping relationship, the router converts the multicast message into a unicast message and sends it directly to the corresponding door lock, reducing the centralized processing load of the RP.

[0010] Another embodiment of this application provides a door lock appliance reservation system, the system comprising: The module is used for multicast path establishment and identity registration: based on the IGMP join message carrying the member's face feature vector sent by the door lock device, the home gateway router registers the face feature vector on the receiving interface and sends a PIM join message carrying the face feature vector and the door lock unicast IP to the aggregation point RP. The multicast routers along the way register the face feature vector and the door lock unicast IP on their respective receiving interfaces, thus constructing a multicast forwarding path from the door lock to the RP. The triggering module is used for access control triggering and reservation message multicast: based on the member's operation of selecting home appliances on the access control device, the access control camera collects the member's facial feature vector, generates a multicast home appliance reservation message containing the facial feature vector and the home appliance identifier, and sends it to the access control gateway router; The forwarding module is used for targeted forwarding and identity matching of reservation messages: the access control gateway router identifies the message as a multicast home appliance reservation message and forwards it only to the RP. After receiving the message, the RP matches the mapping relationship between the locally registered face feature vector and the door lock unicast IP based on the member face feature vector in the message. The control module is used for unicast forwarding and home appliance control: Based on the matching result, the RP converts the multicast message into a unicast message and sends the unicast message to the corresponding door lock device along the optimal path. After parsing the home appliance identifier, the door lock device starts the corresponding home appliance through the internal wireless communication of the home.

[0011] Another embodiment of this application provides a storage medium storing a computer program, wherein the computer program is configured to execute the method described in any of the preceding claims when running.

[0012] Another embodiment of this application provides an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the method described in any of the preceding claims.

[0013] Compared with existing technologies, the present invention provides a method for reserving home appliances via door locks, which enables the targeted and efficient transmission of home appliance reservation instructions after access control is triggered, thereby improving the accuracy and scalability of home appliance control in multi-user scenarios. Attached Figure Description

[0014] Figure 1 Hardware structure block diagram of a computer terminal for a door lock appliance reservation method provided in an embodiment of the present invention; Figure 2 A flowchart illustrating a method for reserving home appliances using a door lock, provided in an embodiment of the present invention; Figure 3This is a network topology diagram illustrating a home appliance reservation method for door locks provided in an embodiment of the present invention. Figure 4 This is a schematic diagram of a door lock appliance reservation system provided in an embodiment of the present invention. Detailed Implementation

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

[0016] With the rapid development of smart home technology, more and more families are equipping themselves with smart appliances (such as air conditioners and rice cookers), and users' demands for the convenience and personalization of smart homes are increasing. Currently, the main method for remote control of smart appliances is through mobile phone apps. However, the operation steps of mobile phone app remote control are cumbersome and the font is small, making it difficult for the elderly or caregivers to operate, thus hindering the remote scheduling of appliances. In view of this, this invention provides a new solution for remote scheduling of smart appliances through a smart door lock.

[0017] In the existing technology, there is a smart home appliance reservation control scheme based on a mobile app. This scheme allows users to input reservation commands (such as reserving the start of an air conditioner) and set a reservation time on the mobile app. The mobile app then sends the reservation command to the home gateway via the internet, and the home gateway forwards the command to the corresponding smart home appliance, thus enabling the appliance to start on schedule.

[0018] The current solution has three main drawbacks: 1. Cumbersome operation: Users need to manually open the mobile app, select appliances, and set reservation times and parameters, making it difficult to perform reservations quickly and conveniently, especially for elderly users. 2. Lack of accurate identity matching: The app-based reservation method cannot accurately identify the identity of the user making the reservation. For example, if a caregiver has left the job, they can still remotely control the appliance simply by scanning the code and reinstalling the app. 3. Highly dependent on network reliability: This solution relies on internet cloud platforms for forwarding. If the mobile network, internet, or home network fails, the reservation command cannot be transmitted in time, causing the appliance reservation to fail.

[0019] This invention first provides a method for scheduling home appliances using door locks. This method can be applied to electronic devices, such as computer terminals, specifically ordinary computers.

[0020] The following detailed explanation uses a computer terminal as an example. Figure 1 This is a hardware structure block diagram of a computer terminal for a door lock appliance reservation method provided in an embodiment of the present invention. (See diagram below.) Figure 1As shown, the computer device includes a processor, memory, and network interface connected via a system bus, wherein the memory may include non-volatile storage media and internal memory.

[0021] See Figure 2 and Figure 3 The present invention provides a method for scheduling home appliances via door locks, which may include the following steps: S201, Multicast Path Establishment and Identity Registration: Based on the IGMP join message carrying the member's facial feature vector sent by the door lock device, the home gateway router registers the facial feature vector on its receiving interface and sends a PIM join message carrying the facial feature vector and the door lock's unicast IP to the aggregation point RP. Multicast routers along the path register the facial feature vector and the door lock's unicast IP on their respective receiving interfaces, thus constructing a multicast forwarding path from the door lock to the RP. Specifically, the multicast path establishment and identity registration includes: Facial feature pre-storage: The facial feature vectors of family members and authorized caregivers are pre-stored in the local flash memory of the door lock device to form an identity mapping table; IGMP Join Message Generation and Sending: Based on the multicast join request initiated by the door lock device, an IGMP join message is generated. The IP header of this message carries the door lock unicast IP and the member's facial feature vector, and the payload contains the door lock ID and the member's name information. It is sent to the home gateway router with the preset multicast group G=229.0.3.3 as the destination address. Interface registration: Based on the interface through which the home gateway router receives the IGMP join message, parse and register the facial feature vector carried in the message, and establish the correspondence between the interface, the facial feature vector, and the door lock unicast IP. PIM Join Message Extension and Propagation: Based on the PIM join message generated by the home gateway router, the extended field carries the face feature vector and the door lock unicast IP, and is sent hop-by-hop to the RP along the multicast path. Each multicast router along the way registers the face feature vector and the door lock unicast IP on the receiving interface.

[0022] S202, Access Control Triggering and Reservation Message Multicast: Based on the member's operation of selecting home appliances on the access control device, the access control camera collects the member's facial feature vector, generates a multicast home appliance reservation message containing the facial feature vector and the home appliance identifier, and sends it to the access control gateway router; specifically, the access control triggering and reservation message multicast includes: Appliance command selection: Based on the member's operation of selecting the target appliance command from the appliance option interface on the access control screen, the type and working mode of the appliance to be reserved are determined; Facial feature acquisition: Real-time acquisition of members' facial images from the access control system's built-in camera, and extraction of facial feature vectors; Multicast message encapsulation: Based on the facial feature vector and the home appliance instruction, a multicast home appliance reservation message is generated. The message header contains the facial feature vector, the payload contains the access control ID, the home appliance instruction field and the timestamp, and the destination address is the preset multicast group G=229.0.3.3. Message transmission: Send the multicast appliance reservation message to the directly connected access control gateway router.

[0023] S203, Targeted forwarding and identity matching of reservation messages: Based on the access control gateway router's identification of the message as a multicast appliance reservation message, it forwards it only to the RP. Upon receiving the message, the RP matches the locally registered facial feature vectors with the door lock's unicast IP address based on the member's facial feature vector in the message. Specifically, the targeted forwarding and identity matching of reservation messages includes: Message type identification: Based on the multicast messages received by the access control gateway router, identify whether the payload of the message contains the home appliance identification field, and determine whether it is a general multicast message or a multicast home appliance reservation message. Targeted forwarding processing: If the message is identified as a multicast appliance reservation message, the access control gateway router will only forward the message from the interface pointing to RP, and will not forward it to other outgoing interfaces of the (*,G) forwarding table entry; RP Reception and Parsing: Based on the multicast appliance reservation message received by the RP, parse the facial feature vector in the message header; Face feature matching: Based on the RP, traverse the locally stored interface-face feature vector-door lock unicast IP mapping relationship to find the door lock unicast IP address that matches the face feature vector of the message.

[0024] S204, Unicast Forwarding and Appliance Control: Based on the matching result, the RP converts the multicast message into a unicast message and sends the unicast message along the optimal path to the corresponding door lock device. After parsing the appliance identifier, the door lock device activates the corresponding appliance via internal home wireless communication. Specifically, the unicast forwarding and appliance control includes: Multicast to unicast conversion: Based on the RP, the matching door lock unicast IP is used as the destination address, and the destination IP of the original multicast message is modified to the unicast IP to generate a unicast home appliance reservation message; Optimal path transmission: The unicast message is sent to the home gateway router by automatically selecting the lowest cost path according to the network routing protocol, and finally delivered to the corresponding door lock device; Door lock parsing and control: Based on the unicast message received and parsed by the door lock device, the appliance identification field is extracted, and a start command is sent to the corresponding smart home appliance through the home's internal wireless communication channel; Access revoked: Based on the administrator deleting the facial feature vector of a specific member from the door lock system, the door lock stops responding to reservation commands for that member.

[0025] Furthermore, the method also includes dynamic IP updates and distributed processing optimizations: Dynamic IP Change Detection: Based on the home gateway router's DHCP relay function, it monitors the IP address allocation status of door lock devices in real time. When a door lock IP change is detected, a unicast update message containing the facial feature vectors of all people corresponding to the door lock and the new IP is generated and sent to the RP. Mapping update: After receiving the unicast update message, the RP updates the mapping relationship between the locally stored face feature vector and the door lock unicast IP. Distributed mapping storage: The IGMP join message sent by the door lock carries the face feature vector and the door lock unicast IP. During the hop-by-hop transmission of the PIM join message, the routers along the way add their own downlink interface IP to the extension field. The RP evenly distributes the face-IP mapping relationship of each door lock to the storage of the routers along the way according to the hash algorithm. Distributed multicast to unicast: When a multicast appliance reservation message is forwarded to a router along the path that has been assigned a storage mapping relationship, the router converts the multicast message into a unicast message and sends it directly to the corresponding door lock, reducing the centralized processing load of the RP.

[0026] To address the problems of cumbersome operation, lack of accurate identity matching, and high reliability affected by network issues in existing smart home appliance reservation control solutions, this invention provides a smart home appliance reservation control solution based on door locks and multicast technology. This allows users to remotely reserve and start home appliances through simple operations at the community entrance or downstairs access control screen, improving the convenience and efficiency of reservation operations. Facial feature vectors are used to achieve accurate user identification and matching, avoiding unauthorized and erroneous operations. A combination of multicast and unicast is used to construct an efficient command transmission path, reducing the impact of network failures on reservation command transmission and improving the reliability of the solution.

[0027] This invention provides a smart home appliance remote control solution via door locks, enabling users to remotely reserve home appliances by matching family members' faces and performing simple operations at the community entrance or downstairs access control screen. The solution is as follows: I. Facial Feature Vector Registration and Multicast Path Establishment: Each door lock sends an IGMP join message, carrying the member's facial feature vector. The gateway router registers this facial feature vector on the interface that receives the message and then sends a PIM join message to the RP, carrying the same facial feature vector. Thus, all routers along the path from the gateway router to the RP register the facial feature vector on the interface that receives the PIM message. In addition, the PIM message from the door lock to the RP also carries the door lock's unicast IP address. The data packet interaction relationships between the devices within the system are as follows: 1. Each household's door lock device pre-stores the facial feature vectors of the corresponding family member or caregiver (the facial feature vectors are collected by a facial recognition device and then entered into the door lock to ensure that each family member's facial feature vector is unique and identifiable). The door lock associates and stores "door lock ID - name - facial feature vector" in local flash memory to form an identity mapping table.

[0028] 2. The door lock device actively sends an IGMP join multicast message to the improved home gateway router R1. This message carries the facial feature vectors of the corresponding family members. For example, the IGMP join multicast data packet message is encapsulated in IP packets. The header carries the door lock IP address and the member's facial feature vector. The internal payload contains identity information such as the door lock ID, member's name, gender, and age. The target multicast group to join is G=229.0.3.3.

[0029] 3. On the interface receiving the IGMP join message, the home gateway router R1 registers the face feature vector and establishes a mapping relationship of "interface - face feature vector - door lock unicast IP". For example, the gateway router (IP: 192.168.5.1) receives the IGMP join message sent by the door lock through interface Eth1, parses the face feature vector in the multicast message, and establishes a mapping table of "interface - face feature vector - door lock unicast IP" under this interface. See Table 1 below: Table 1 ; 4. The home gateway router sends a PIM join message to the multicast RP (Rendezvous Point), which also carries the aforementioned facial feature vector. For example, the gateway router sends a PIM join message (target multicast group G=229.0.3.3) to the RP (192.168.100.1) according to the PIM-SM protocol specification. The message is encapsulated in an IP packet, and the extended fields carry core information such as door lock ID, member name, and facial feature vector.

[0030] 5. All multicast routers along the path from home gateway router R1 to RP register the face feature vector and door lock unicast IP address on the interface receiving the PIM join message, establishing their respective "interface-face feature vector-door lock unicast IP" mapping relationship, thus constructing a multicast path from the door lock to RP. Each router on this path records the association information between the corresponding face feature vector and the interface. For example, the multicast routers along the path from home gateway router to RP (R2: 192.168.20.1, R3: 192.168.100.2) parse and register the above identity information on the interface receiving the PIM join message. Taking R2 as an example, after receiving the PIM message sent by the home gateway through interface Eth2 (IP: 192.168.20.1 / 24), the established "interface-face feature vector-door lock unicast IP" mapping table 2 is as follows: Table 2 ; II. Sending multicast home appliance reservation messages: When a member arrives at the access control machine at the community / building entrance, they select one of the buttons (e.g., "air conditioner," "rice cooker") from the access control screen. The access control camera then sends a multicast appliance reservation message carrying the member's facial feature vector and the "rice cooker" field. For general multicast messages, the access control gateway router forwards them to all other outgoing interfaces of the (*,G) forwarding table entry. However, for the optimized multicast appliance reservation message, it only forwards the multicast data packet towards the RP (Access Provider). The specific implementation steps are as follows: 1. When family members are not home, they can configure and remotely operate smart home appliances such as air conditioners, rice cookers, and washing machines by touching the interface provided on the access control screen at the community entrance / unit door. For example, if the nanny needs to cook remotely while the child is playing downstairs, she can select the command to schedule / start the rice cooker (such as the "rice cooker" or "cook rice") on the access control screen at the unit door.

[0031] 2. The unit's access control system's built-in camera uses a face capture and recognition module to capture the face image of the family member, nanny Zhao, and extract the face feature vector dd. Then, the access control system generates a multicast appliance reservation message (target multicast group G=229.0.3.3). The message header contains the face feature vector dd, and the internal payload contains access control ID, appliance instructions, timestamps, and other information.

[0032] 3. The unit access control system sends a multicast appliance reservation message to the access control gateway router. After receiving the multicast message, the access control gateway router first determines whether the message is a multicast appliance reservation message (by identifying whether the message contains an appliance identification field): If it is a general multicast message, it will be forwarded to all other outgoing interfaces of the (*,G) forwarding table entry according to the normal multicast forwarding logic. For example, it can be forwarded to the R6 router in the same multicast group G.

[0033] If the message is a multicast appliance reservation message, it will only be forwarded towards the RP to ensure accurate transmission to the RP and avoid wasting network bandwidth. For example, the nanny's appliance reservation message mentioned above is forwarded only towards the RP via routers R5 and R4.

[0034] III. Appliance reservation message is forwarded to the door lock: Based on the facial feature vector, the RP forwards the message to the outgoing interface (*, G) that has the registered facial feature vector. This forwards the message all the way to the gateway router of the member's door lock. The gateway router then forwards the message from the outgoing interface that has the registered facial feature vector, ultimately reaching the door lock. The specific implementation is as follows: 1. After receiving the multicast appliance reservation message forwarded by the access control gateway router, the RP parses the facial feature vector in the message. For example, the RP (192.168.100.1) receives the multicast appliance reservation message forwarded by the access control gateway router R5 through interface Eth3 (IP: 192.168.100.1 / 24) and parses the facial feature vector dd in the message header.

[0035] 2. The RP traverses its stored "interface-face feature vector-door lock unicast IP" mapping relationship and matches the corresponding door lock unicast IP address based on the extracted face feature vector. For example, the RP uses the "interface-face feature vector-door lock unicast IP" mapping relationship established in step one above to match the record registered with the face feature vector dd in the mapping table and obtains the door lock unicast IP address corresponding to Zhao Baomu: 192.168.5.20.

[0036] 3. The RP converts the multicast appliance reservation message into a unicast message. The destination IP address of the unicast message is the matched door lock unicast IP address. The message content retains the facial feature vector and appliance identification fields. For example, after receiving the message, the RP matches the corresponding door lock unicast IP 192.168.5.20 using the facial feature vector dd. Then, it modifies the destination IP in the message header from the multicast address 229.0.3.3 to the unicast IP 192.168.5.20, retaining the source IP, protocol type, and other header fields, as well as appliance fields such as "rice cooker" and "fine cooking rice" in the payload. The generated unicast message is then sent to the door lock LOCK-XFJY-3-502-01.

[0037] 4. In asymmetric routing networks (where uplink and downlink costs are inconsistent), when a door lock sends IGMP and PIM join messages, the message will choose the path with the lower uplink cost to be transmitted to the RP (e.g., via door lock → R1 → R2 → R3). When the RP sends the converted unicast message back to the door lock, the network routing protocol will automatically select the path with the lower cost: for example, if the downlink path RP → R0 → R1 has a lower cost than the path RP → R3 → R2 → R1 on the left, the unicast message will be delivered to the door lock along the better path RP → R0 → R1, thus achieving route optimization. For example, when the door lock sends IGMP and PIM join messages uplink, the cost from R1 to R2 is 2, the cost from R2 to R3 is 2, and the cost from R3 to RP is 1, for a total uplink cost of 5. However, when RP sends unicast messages downlink, the cost from RP to R0 is 1, and the cost from R0 to R1 is 1, for a total downlink cost of only 2, which is much lower than the cost of the original uplink path. Therefore, the unicast message will preferentially choose the path RP→R0→R1 to quickly deliver the appliance reservation instruction to the door lock.

[0038] IV. Door lock control for appliance start-up and de-authorization: When the door lock receives a home appliance reservation message, it analyzes the internal payload data and finds that it is a rice cooker reservation message. Then, it starts the rice cooker through the wireless channel to execute relevant instructions, as follows: 1. The door lock device (LOCK-XFJY-3-502-01) receives unicast appliance reservation messages forwarded from the home gateway router and parses the appliance identification field (such as "rice cooker" or "fine cooking rice") in the internal payload of the message.

[0039] 2. After the door lock device confirms the appliance identifier corresponding to the message, it sends a start cooking command to the corresponding smart appliance (such as a rice cooker) through the wireless communication channel inside the home (such as Wi-Fi, ZigBee, etc.).

[0040] Note: After the nanny's employment expires or she is dismissed, her facial information can be deleted through the home's door lock system, thereby removing her remote control permissions over all smart home appliances with one click.

[0041] V. Real-time updates of table entries after a change in the dynamic IP address of the door lock: If the dynamic IP address of a door lock changes, the lock typically includes the changed IP in its IGMP and PIM messages in the next cycle. This prevents the RP (Remote Controller) from retrieving the new IP address immediately, affecting the timely forwarding of remote appliance reservation commands. Therefore, the gateway router in this invention also acts as a DHCP relay. Upon detecting a change in the door lock's IP address, the relay immediately sends a unicast message to the RP, containing the facial feature vector and the door lock's IP address. Upon receiving this message, the RP updates the (*,G) entry to match the door lock's IP address. Specifically: 1. The door lock device uses dynamic IP address allocation to obtain its network address. The gateway router also has DHCP relay functionality, monitoring the IP address allocation status of the door lock device in real time. When the gateway router detects a change in the IP address of a door lock through its DHCP relay function, it immediately triggers the IP update notification mechanism. For example, if the door lock's original IP address is 192.168.5.20, and when its DHCP lease is about to expire, the door lock initiates a renewal request and is assigned a new IP address of 192.168.5.25. At this time, the R1 router, acting as the DHCP relay, monitors this change in real time and immediately initiates the IP update process.

[0042] 2. The gateway router generates a unicast update message, which contains two core fields: the facial feature vectors of all family members corresponding to the door lock (consistent with the facial feature vectors registered in step one) and the new unicast IP address of the door lock. The gateway router sends the unicast update message directly to the RP via the unicast network, ensuring the timeliness and relevance of message transmission. For example, the unicast update message generated by R1 contains the facial feature vectors aa, bb, ab, dd corresponding to the door lock and the new IP address 192.168.5.25, and then sends this message directly to the RP via unicast.

[0043] 3. After receiving the unicast update message from the gateway router, the RP extracts the face feature vector and the new door lock IP address from the message. The RP traverses its stored "face feature vector - door lock unicast IP" mapping table, locates the corresponding old door lock IP address entry based on the face feature vector, and updates the IP address to ensure that subsequent multicast appliance reservation messages converted to unicast messages can be accurately delivered to the door lock device with the changed IP. For example, after receiving the message, the RP extracts the face feature vectors aa, bb, ab, dd and the new IP 192.168.5.25, finds the corresponding old IP 192.168.5.20 in the local mapping table, replaces it with the new IP, and can then accurately deliver any reservation message containing face feature vectors aa / bb / ab / dd to the door lock corresponding to 192.168.5.25.

[0044] VI. Further Optimization: Distributed Processing of Multicast to Unicast Conversion As the aggregation node for forwarding the entire system, the RP (Redirecting Role) can easily become a bottleneck. To reduce the storage and computational load on the RP, the mapping relationship between facial feature vectors and door lock unicast IPs is evenly distributed among the routers along the path, and the distributed routers handle the multicast-to-unicast conversion computation task. The specific implementation is as follows: 1. The door lock sends an IGMP join message carrying a face feature vector and its own unicast IP. The home gateway router generates a PIM join message. During hop-by-hop transmission to the RP, each router along the way (such as R1, R2, R3) adds its own outgoing interface IP address to the extended field of the PIM message. Finally, the PIM message received by the RP contains the interface IPs of all routers along the route from the gateway to the RP. For example, the door lock sends an IGMP join message carrying a face feature vector dd and a unicast IP of 192.168.5.20; the home gateway R1 generates an enhanced PIM join message and sends it to R2; after receiving the message, R2 adds its own downlink interface IP of 192.168.20.1 to the PIM extended field; after R2 transmits it to R3, R3 adds its own downlink interface IP of 192.168.100.2 to the field; finally, the PIM message received by the RP contains the downlink outgoing interface IPs of R2 and R3 (note that R1 is not included).

[0045] 2. The RP counts the received interface IPs of the routers along the route. Based on the hash value of each door lock's unicast IP, it assigns the "face feature vector - door lock unicast IP" mapping relationship corresponding to that door lock to one of the routers along the route (e.g., the hash result matches the interface IP of R3). The RP then sends a unicast allocation message to that router, containing the corresponding face feature vector and door lock unicast IP. For example, the RP performs hash processing (e.g., modulo hashing) on ​​the allocations for R2 and R3. The formula route = hash(door lock unicast IP) % N determines which router along the route will store and process the "face feature vector - door lock unicast IP" mapping relationship, where N is the number of routers along the route (N=2 here). If a unit has 100 households corresponding to 100 door lock IPs, the above operation will distribute the mapping tables of each door lock relatively evenly among the routers along the route. For example, RP hashes the door lock IP 192.168.5.20 to R3; RP sends a unicast allocation message to R3 containing the face feature vector dd and the 192.168.5.20 information, and R3 stores the mapping relationship of "dd-192.168.5.20" locally.

[0046] 3. After receiving the unicast allocation message, the selected router (such as R3) stores the mapping relationship between "face feature vector - door lock unicast IP" locally, thus completing the distributed storage of the mapping relationship; the other unselected routers along the way do not store the mapping relationship of the door lock, thereby achieving a uniform distribution of storage load.

[0047] 4. When the multicast appliance reservation message sent by the access control system arrives at the RP, the RP forwards the message according to the outgoing interface of the (*,G) table entry, which means that message forwarding is achieved through facial feature vector matching; when the message is transmitted hop by hop to the routers along the way, each router checks whether it has stored locally whether the door lock unicast IP corresponding to the facial feature vector of the message is stored: If not stored, continue multicasting the message towards the door lock. If the data has already been stored (e.g., R3), the router will convert the multicast reservation message into a unicast message with the unicast destination IP being the matched door lock unicast IP. The unicast message will then be sent to the door lock, completing the distributed multicast-to-unicast calculation, instead of centralizing the multicast-to-unicast conversion to a single router.

[0048] For example, when an appliance reservation message containing the facial feature vector "dd" of nanny Zhao arrives at RP, RP forwards it to R3 according to the facial feature vector matching of the outgoing interface. R3 detects the door lock IP 192.168.5.20 corresponding to "dd" stored locally, converts the multicast message into a unicast message, sets the destination IP to 192.168.5.20, and sends it to the door lock according to the lowest cost strategy.

[0049] Compared with existing mobile APP technology, the present invention has the following significant technical advantages: 1. Convenient and efficient operation: Users do not need to rely on mobile apps or other terminals. They can make home appliance reservations simply by matching faces with the community access control system and using simple button operations. It also supports one-click deletion of facial information of former nannies and other personnel to remove control permissions, balancing convenience and home security needs.

[0050] 2. Efficient and accurate message transmission: By using multicast directional forwarding, multicast to unicast conversion and optimal path selection mechanisms under asymmetric routing, network bandwidth waste is reduced and low-latency transmission of reservation instructions is ensured; combined with the dynamic IP real-time update function, instruction delivery failure caused by IP changes is avoided, ensuring business continuity.

[0051] 3. Reduce the load on the RP as the aggregation node: By distributing the face-door lock IP mapping relationship to routers along the route, and having the corresponding routers handle the multicast-to-unicast conversion calculation task, the RP avoids bearing the storage and computing pressure in a centralized manner, and supports more door locks and user access.

[0052] Key technical points: 1. A method for scheduling and controlling smart home appliances, comprising: The door lock sends an IGMP join message carrying the member's facial feature vector. The gateway router registers the facial feature vector on the receiving interface and sends a PIM join message carrying the facial feature vector and the door lock's IP to the RP. Routers along the way register the facial feature vector and the door lock's IP on their receiving interfaces. The access control camera collects facial feature vectors of members, receives the appliance identifiers selected by members, and sends a multicast appliance reservation message containing the facial feature vectors and appliance identifiers; The access control gateway router forwards the multicast appliance reservation message to the RP direction; Based on the facial feature vector, the RP unicasts the message to the door lock IP that matches the facial feature vector. The message will be sent to the door lock along the optimal path, and the door lock will control the start of the home appliances through the wireless channel.

[0053] 2. During the forwarding of the multicast appliance reservation message, the access control gateway router only forwards the message to the RP direction and does not forward it to other outgoing interfaces of the (*,G) forwarding table entry.

[0054] 3. Facial feature vectors can be replaced with biometric feature vectors such as iris feature vectors and fingerprint feature vectors.

[0055] 4. The gateway router also functions as a DHCP relay. After detecting a change in the door lock's IP address, it sends a unicast update message carrying the facial feature vector and the new IP address to the RP. The RP updates the mapping table in real time to ensure accurate forwarding of reservation instructions.

[0056] 5. IGMP adds a face feature vector and the door lock's unicast IP to the message. PIM adds its own interface IP to the message when the message is transmitted hop by hop. RP distributes the mapping relationship to the storage of the routers along the way through hash. When the multicast reservation message is forwarded to the router, it completes the multicast to unicast conversion and sends it to the door lock.

[0057] 6. The access control system has an interface with multiple home appliance options, allowing members to select their desired home appliance.

[0058] Another embodiment of the present invention provides a home appliance reservation system for door locks, see [link to relevant documentation]. Figure 4 The system may include: Establishment module 401 is used for multicast path establishment and identity registration: Based on the IGMP join message carrying the member's face feature vector sent by the door lock device, the home gateway router registers the face feature vector on the receiving interface and sends a PIM join message carrying the face feature vector and the door lock unicast IP to the aggregation point RP. Multicast routers along the way register the face feature vector and the door lock unicast IP on their respective receiving interfaces, thus constructing a multicast forwarding path from the door lock to the RP. Trigger module 402 is used for access control triggering and reservation message multicast: based on the member's operation of selecting home appliances on the access control device, the access control camera collects the member's facial feature vector, generates a multicast home appliance reservation message containing the facial feature vector and the home appliance identifier, and sends it to the access control gateway router; Forwarding module 403 is used for targeted forwarding of reservation messages and identity matching: the access control gateway router identifies the message as a multicast home appliance reservation message and forwards it only to the RP. After receiving the message, the RP matches the mapping relationship between the locally registered face feature vector and the door lock unicast IP based on the member face feature vector in the message. Control module 404 is used for unicast forwarding and home appliance control: Based on the matching result, RP converts multicast messages into unicast messages and sends the unicast messages to the corresponding door lock device along the optimal path. After parsing the home appliance identifier, the door lock device starts the corresponding home appliance through the home's internal wireless communication.

[0059] This invention also provides a storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.

[0060] This invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0061] Specifically, the aforementioned electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the aforementioned processor, and the input / output device is connected to the aforementioned processor.

[0062] The above description, based on the embodiments shown in the figures, details the structure, features, and effects of the present invention. The above description is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the figures. Any changes made in accordance with the concept of the present invention, or equivalent embodiments modified to have equivalent changes, that do not exceed the spirit covered by the specification and figures, should be within the protection scope of the present invention.

Claims

1. A method for scheduling home appliances using a door lock, characterized in that, The method includes: Multicast path establishment and identity registration: Based on the IGMP join message carrying the member's face feature vector sent by the door lock device, the home gateway router registers the face feature vector on the receiving interface and sends a PIM join message carrying the face feature vector and the door lock unicast IP to the aggregation point RP. Multicast routers along the way register the face feature vector and the door lock unicast IP on their respective receiving interfaces, thus constructing a multicast forwarding path from the door lock to the RP. Access control triggering and reservation message multicast: Based on the member's operation of selecting home appliances on the access control device, the access control camera collects the member's facial feature vector, generates a multicast home appliance reservation message containing the facial feature vector and the home appliance identifier, and sends it to the access control gateway router; Reservation message forwarding and identity matching: The access control gateway router identifies the message as a multicast home appliance reservation message and forwards it only to the RP. After receiving the message, the RP matches the mapping relationship between the locally registered face feature vector and the door lock unicast IP based on the member's face feature vector in the message. Unicast forwarding and home appliance control: Based on the matching results, the RP converts the multicast message into a unicast message and sends the unicast message to the corresponding door lock device along the optimal path. After parsing the home appliance identifier, the door lock device starts the corresponding home appliance through the internal wireless communication of the home.

2. The method according to claim 1, characterized in that, The multicast path establishment and identity registration include: Facial feature pre-storage: The facial feature vectors of family members and authorized caregivers are pre-stored in the local flash memory of the door lock device to form an identity mapping table; IGMP Join Message Generation and Sending: Based on the multicast join request initiated by the door lock device, an IGMP join message is generated. The IP header of this message carries the door lock unicast IP and the member's facial feature vector, and the payload contains the door lock ID and the member's name information. It is sent to the home gateway router with the preset multicast group G=229.0.3.3 as the destination address. Interface registration: Based on the interface through which the home gateway router receives the IGMP join message, parse and register the facial feature vector carried in the message, and establish the correspondence between the interface, the facial feature vector, and the door lock unicast IP. PIM Join Message Extension and Propagation: Based on the PIM join message generated by the home gateway router, the extended field carries the face feature vector and the door lock unicast IP, and is sent hop-by-hop to the RP along the multicast path. Each multicast router along the way registers the face feature vector and the door lock unicast IP on the receiving interface.

3. The method according to claim 2, characterized in that, The access control triggering and reservation message multicast includes: Appliance command selection: Based on the member's operation of selecting the target appliance command from the appliance option interface on the access control screen, the type and working mode of the appliance to be reserved are determined; Facial feature acquisition: Real-time acquisition of members' facial images from the access control system's built-in camera, and extraction of facial feature vectors; Multicast message encapsulation: Based on the facial feature vector and the home appliance instruction, a multicast home appliance reservation message is generated. The message header contains the facial feature vector, the payload contains the access control ID, the home appliance instruction field and the timestamp, and the destination address is the preset multicast group G=229.0.3.

3. Message transmission: Send the multicast appliance reservation message to the directly connected access control gateway router.

4. The method according to claim 3, characterized in that, The targeted forwarding of the reservation message and identity matching include: Message type identification: Based on the multicast messages received by the access control gateway router, identify whether the payload of the message contains the home appliance identification field, and determine whether it is a general multicast message or a multicast home appliance reservation message. Targeted forwarding processing: If the message is identified as a multicast appliance reservation message, the access control gateway router will only forward the message from the interface pointing to RP, and will not forward it to other outgoing interfaces of the (*,G) forwarding table entry; RP Reception and Parsing: Based on the multicast appliance reservation message received by the RP, parse the facial feature vector in the message header; Face feature matching: Based on the RP, traverse the locally stored interface-face feature vector-door lock unicast IP mapping relationship to find the door lock unicast IP address that matches the face feature vector of the message.

5. The method according to claim 4, characterized in that, The unicast forwarding and home appliance control include: Multicast to unicast conversion: Based on the RP, the matching door lock unicast IP is used as the destination address, and the destination IP of the original multicast message is modified to the unicast IP to generate a unicast home appliance reservation message; Optimal path transmission: The unicast message is sent to the home gateway router by automatically selecting the lowest cost path according to the network routing protocol, and finally delivered to the corresponding door lock device; Door lock parsing and control: Based on the unicast message received and parsed by the door lock device, the appliance identification field is extracted, and a start command is sent to the corresponding smart home appliance through the home's internal wireless communication channel; Access revoked: Based on the administrator deleting the facial feature vector of a specific member from the door lock system, the door lock stops responding to reservation commands for that member.

6. The method according to claim 5, characterized in that, The method also includes dynamic IP updates and distributed processing optimizations: Dynamic IP Change Detection: Based on the home gateway router's DHCP relay function, it monitors the IP address allocation status of door lock devices in real time. When a door lock IP change is detected, a unicast update message containing the facial feature vectors of all people corresponding to the door lock and the new IP is generated and sent to the RP. Mapping update: After receiving the unicast update message, the RP updates the mapping relationship between the locally stored face feature vector and the door lock unicast IP. Distributed mapping storage: The IGMP join message sent by the door lock carries the face feature vector and the door lock unicast IP. During the hop-by-hop transmission of the PIM join message, the routers along the way add their own downlink interface IP to the extension field. The RP evenly distributes the face-IP mapping relationship of each door lock to the storage of the routers along the way according to the hash algorithm. Distributed multicast to unicast: When a multicast appliance reservation message is forwarded to a router along the path that has been assigned a storage mapping relationship, the router converts the multicast message into a unicast message and sends it directly to the corresponding door lock, reducing the centralized processing load of the RP.

7. A home appliance reservation system for door locks, characterized in that, The system includes: The module is used for multicast path establishment and identity registration: based on the IGMP join message carrying the member's face feature vector sent by the door lock device, the home gateway router registers the face feature vector on the receiving interface and sends a PIM join message carrying the face feature vector and the door lock unicast IP to the aggregation point RP. The multicast routers along the way register the face feature vector and the door lock unicast IP on their respective receiving interfaces, thus constructing a multicast forwarding path from the door lock to the RP. The triggering module is used for access control triggering and reservation message multicast: based on the member's operation of selecting home appliances on the access control device, the access control camera collects the member's facial feature vector, generates a multicast home appliance reservation message containing the facial feature vector and the home appliance identifier, and sends it to the access control gateway router; The forwarding module is used for targeted forwarding and identity matching of reservation messages: the access control gateway router identifies the message as a multicast home appliance reservation message and forwards it only to the RP. After receiving the message, the RP matches the mapping relationship between the locally registered face feature vector and the door lock unicast IP based on the member face feature vector in the message. The control module is used for unicast forwarding and home appliance control: Based on the matching result, the RP converts the multicast message into a unicast message and sends the unicast message to the corresponding door lock device along the optimal path. After parsing the home appliance identifier, the door lock device starts the corresponding home appliance through the internal wireless communication of the home.

8. The system according to claim 7, characterized in that, The establishment module is specifically used for: Facial feature pre-storage: The facial feature vectors of family members and authorized caregivers are pre-stored in the local flash memory of the door lock device to form an identity mapping table; IGMP Join Message Generation and Sending: Based on the multicast join request initiated by the door lock device, an IGMP join message is generated. The IP header of this message carries the member's facial feature vector, and the payload contains the door lock ID and member name information. It is sent to the home gateway router with the preset multicast group G=229.0.3.3 as the destination address. Interface registration: Based on the interface through which the home gateway router receives the IGMP join message, parse and register the facial feature vector carried in the message, and establish the correspondence between the interface, the facial feature vector, and the door lock unicast IP. PIM Join Message Extension and Propagation: Based on the PIM join message generated by the home gateway router, the extended field carries the face feature vector and the door lock unicast IP, and is sent hop-by-hop to the RP along the multicast path. Each multicast router along the way registers the face feature vector and the door lock unicast IP on the receiving interface.

9. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method of any one of claims 1-6 when it is run.

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 run the computer program to perform the method of any one of claims 1-6.