Door lock and APP collaborative delegation method and system

By using a collaborative delegation method between door locks and an app, and leveraging an improved multicast communication mechanism and router interception technology, the issues of response latency and communication reliability in cross-entity, multi-device collaborative scenarios are resolved, thereby enhancing the real-time performance and user experience of the delegation process.

CN121660766APending Publication Date: 2026-03-13DESSMANN CHINA MACHINERY & ELECTRONICS
View PDF 0 Cites 1 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-05
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing smart lock and mobile application-based delegation services suffer from high response latency, poor communication reliability, and weak privacy protection in cross-entity and multi-device collaborative scenarios, resulting in lengthy delegation processes, inflexible access control, and poor user experience.

Method used

By using a collaborative delegation method involving door locks and an app, the system enables role registration and multicast joining, delegation relationship establishment and list synchronization, supermarket verification and shopping notifications, payment confirmation and proxy payment. It also utilizes an improved multicast communication mechanism and router interception technology to ensure efficient and secure identity verification and payment collaboration.

Benefits of technology

It improves the real-time performance, reliability, and user experience of delegated processing, and enables efficient and secure identity verification and payment collaboration among multiple delegates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121660766A_ABST
    Figure CN121660766A_ABST
Patent Text Reader

Abstract

The invention discloses a door lock and APP collaborative proxy entrusting method and system, and the method comprises the steps: recording role information through a property management system according to the registration operation of a proxy consignor, a delegated person and a consignor on respective door locks or APPs, and completing the multicast registration; according to a delegation request initiated by the proxy delegator and a confirmation operation of the delegated person, establishing a delegation relationship among the proxy delegator, the delegated person and the delegator door lock, and synchronizing the shopping list to the delegated person door lock; according to a triggering event that the delegated person starts shopping, identity verification is completed, and access is authorized; and according to a payment request after the delegated person completes shopping, the proxy delegator is triggered to confirm and complete payment. According to the embodiment of the invention, efficient and safe identity verification and payment cooperation among multiple delegation parties can be realized, and the real-time performance, the reliability and the user experience of delegation processing are improved.
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 delegated services in collaboration between a door lock and an APP. Background Technology

[0002] Currently, proxy services based on smart locks and mobile applications are becoming increasingly common in property management and community life, frequently used for scenarios such as package collection and temporary access. However, most existing systems rely on centralized servers for identity verification and task transmission, resulting in issues such as high response latency, poor communication reliability, and weak privacy protection. Especially in cross-entity, multi-device collaborative scenarios, such as complex processes involving multiple parties confirming and paying for goods, existing technologies lack efficient local multicast communication mechanisms and real-time transaction synchronization capabilities, leading to lengthy proxy processes, inflexible access control, and a poor user experience. Summary of the Invention

[0003] The purpose of this invention is to provide a method and system for delegated services that integrates door locks and an app, in order to overcome the shortcomings of existing technologies. This method enables efficient and secure identity verification and payment collaboration among multiple delegates, improving the real-time performance, reliability, and user experience of delegated services.

[0004] One embodiment of this application provides a method for delegated services in collaboration between a door lock and an app, the method comprising: Role registration and multicast joining: Based on the registration operations of the agent, the agent and the principal on their respective door locks or APP, the property management system records the role information, and the agent's door lock sends an improved multicast joining message to the preset multicast address to complete the multicast registration; Establishment of agency relationship and synchronization of shopping list: Based on the agency request initiated by the agent and the confirmation operation of the agent, an agency relationship is established between the agent, the agent and the agent's door lock, and the shopping list is synchronized to the agent's door lock; Supermarket verification and shopping notification: Based on the trigger event of the authorized person starting shopping, the door lock sends a multicast notification message containing the authorized person's identity and shopping list. The router compares the multicast forwarding table and forwards the message to the supermarket door lock to complete the identity verification and authorize entry. Payment Confirmation and Proxy Payment: Based on the payment request after the agent completes the shopping, the supermarket system generates a payment confirmation multicast message, which is forwarded by the router to the agent's door lock, triggering the agent to confirm and complete the payment.

[0005] Optionally, the role registration and multicast joining include: Role registration and reporting: Based on the actions of the agent, agent and principal filling in personal information and selecting service type on the door lock or APP, the respective door locks will report the registration information to the property management system; Router Listening and Interception: Based on the neighbor registration message sent unicast by the property management system to the supermarket door lock, the router listens for and intercepts the message based on specific fields in the message; Multicast interface registration: Based on the matching result of the destination IP address in the intercepted packet and the router's ARP table entry, the corresponding interface is statically registered as a multicast forwarding interface, and the face feature vector of the delegate and the door lock ID are stored. Multicast join complete: Based on the serviceable time period of the entrusted door lock, send an improved IGMP join message carrying its own door lock ID to the preset multicast address.

[0006] Optionally, the establishment of the delegation relationship and the synchronization of the list include: Proxy delegation trigger: Based on the agent's operation of selecting the delegated object and supermarket service on the APP, the door lock generates a delegation request multicast message containing the identifiers of the agent, the principal, and the delegate; Authentication and request forwarding: Based on the delegated request message received by the router, query the multicast forwarding table for the outgoing interface that matches the delegated door lock ID, and forward the message to the delegated door lock; Confirmation of agency relationship: Based on the agency request received by the agent's door lock, the agent verifies the identity of the principal and the agent agent with the property management system. If the verification is successful, the agent is prompted to confirm acceptance of the agency. Shopping list synchronization: Based on the event that the agent's door lock is in the agent delegation state, the entered shopping list is sent to the agent's door lock, and the local status tables of both parties are updated.

[0007] Optionally, the supermarket verification and shopping notification includes: Departure event trigger: The shopping notification event is triggered when the entrusted person's door lock detects a change in the user's status, indicating that the user has confirmed their shopping list and left home. Shopping Announcement Multicast: Based on the triggered event, the entrusted door lock generates a multicast announcement message containing the entrusted person's facial features, door lock ID, and shopping list, and sends it to the preset multicast address; Router Directed Forwarding: Based on the multicast announcement message received by the router, the router matches the face features of the entrusted person and the door lock ID with the information stored in the multicast forwarding table output interface, and forwards the message from the matching interface to the supermarket door lock; Supermarket verification and entry: Based on the notification message received by the supermarket door lock, the shopping list is stored, and feature comparison is performed when the authorized person scans their face. After successful verification, the door lock is opened and the shopping list is displayed via voice prompt.

[0008] Optionally, the payment confirmation and agent payment include: Payment request generation: Based on the agent's completion of product scanning and facial recognition at the payment terminal, the supermarket system generates a payment confirmation multicast message containing the agent's door lock ID and product details; Payment request forwarding: Based on the payment confirmation message received by the router, query the outgoing interface in the multicast forwarding table that matches the agent's door lock ID, and forward the message to the agent's door lock; Agent Confirmation and Payment: Based on the payment confirmation message received by the agent / principal, the door lock displays the shopping details and prompts the agent / principal for confirmation. After the agent / principal obtains the principal's payment QR code, the door lock collects and sends it to the supermarket payment machine to complete the payment. Payment completion notification: Upon successful deduction by the payment machine, a payment completion notification will be sent to the agent / principal of the door lock, thus concluding this entrustment process.

[0009] Another embodiment of this application provides a system for delegated services that integrates door locks and an app, the system comprising: The registration module is used for role registration and multicast joining: Based on the registration operations of the agent, the agent and the principal on their respective door locks or APP, the property management system records the role information, and the agent's door lock sends an improved multicast join message to the preset multicast address to complete the multicast registration; The module is used to establish a delegation relationship and synchronize the shopping list: Based on the delegation request initiated by the agent and the confirmation operation of the agent, a delegation relationship is established between the agent, the agent and the agent's door lock, and the shopping list is synchronized to the agent's door lock; The verification module is used for supermarket verification and shopping notification: based on the trigger event of the authorized person starting shopping, the door lock sends a multicast notification message containing the authorized person's identity and shopping list. The router compares the multicast forwarding table and forwards the message to the supermarket door lock to complete the identity verification and authorize entry. The confirmation module is used for payment confirmation and agent payment: Based on the payment request after the agent completes the shopping, the supermarket system generates a payment confirmation multicast message, which is forwarded by the router to the agent's door lock, triggering the agent to confirm and complete the payment.

[0010] 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.

[0011] 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.

[0012] Compared with existing technologies, this invention provides a method for collaborative entrustment between door locks and an app. Based on the registration operations of the agent, the entrusted party, and the entruster on their respective door locks or apps, the property management system records role information and completes multicast registration. Based on the entrustment request initiated by the agent and the confirmation operation of the entrusted party, an entrustment relationship is established between the agent, the entrusted party, and the entruster's door lock, and the shopping list is synchronized to the entrusted party's door lock. Based on the trigger event of the entrusted party starting shopping, identity verification is completed and entry is authorized. Based on the payment request after the entrusted party completes shopping, the agent confirms and completes the payment. This enables efficient and secure identity verification and payment collaboration among multiple entrusting parties, improving the real-time performance, reliability, and user experience of the entrustment process. Attached Figure Description

[0013] Figure 1 A hardware structure block diagram of a computer terminal for a method of delegated services that integrates door locks and an app, as provided in an embodiment of the present invention. Figure 2 A flowchart illustrating a method for collaborative delegation between a door lock and an app, provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a system for coordinating door locks and an app for delegated services, provided as an embodiment of the present invention. Detailed Implementation

[0014] 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.

[0015] With the rapid development of AI technology, unmanned shopping has quietly emerged, and many residential communities now have unmanned supermarkets. Residents typically need to use their mobile phones to scan a code to open the door, select items, and pay. However, with the increasing aging population, more and more residents in these communities are elderly people living alone, who lack the physical strength to walk independently to the unmanned supermarket. In these cases, they need to rely on others (such as helpful neighbors) to help them shop. Many elderly people living alone also struggle with the complex operation of smartphones and other smart devices, requiring assistance to place orders.

[0016] This invention first provides a method for coordinating door locks and an app for delegated functions. This method can be applied to electronic devices, such as computer terminals, specifically ordinary computers.

[0017] The following detailed explanation uses a computer terminal as an example. Figure 1This is a hardware structure block diagram of a computer terminal for a method of delegated services that integrates door locks and an app, as provided in an embodiment of the present invention. Figure 1 As 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.

[0018] Non-volatile storage media can store operating systems and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any method of delegation in collaboration between the door lock and the application.

[0019] The processor provides computing and control capabilities, supporting the operation of the entire computer device.

[0020] Internal memory provides an environment for the execution of computer programs in non-volatile storage media. When the computer program is executed by the processor, it enables the processor to perform any method of delegation that coordinates door locks and apps.

[0021] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 1 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0022] It should be understood that the processor can be a Central Processing Unit (CPU), but it 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 gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.

[0023] See Figure 2 The present invention provides a method for coordinating door locks and an APP for delegated services, which may include the following steps: S201, Role Registration and Multicast Joining: Based on the registration operations of the agent, the agent, and the principal on their respective door locks or apps, the property management system records the role information, and the agent's door lock sends an improved multicast join message to the preset multicast address to complete the multicast registration; specifically, the role registration and multicast joining includes: Role registration and reporting: Based on the actions of the agent, agent and principal filling in personal information and selecting service type on the door lock or APP, the respective door locks will report the registration information to the property management system; Router Listening and Interception: Based on the neighbor registration message sent unicast by the property management system to the supermarket door lock, the router listens for and intercepts the message based on specific fields in the message; Multicast interface registration: Based on the matching result of the destination IP address in the intercepted packet and the router's ARP table entry, the corresponding interface is statically registered as a multicast forwarding interface, and the face feature vector of the delegate and the door lock ID are stored. Multicast join complete: Based on the serviceable time period of the entrusted door lock, send an improved IGMP join message carrying its own door lock ID to the preset multicast address.

[0024] S202, Establishment of Agency Relationship and Synchronization of Shopping List: Based on the agency request initiated by the agent and the confirmation operation of the agent, an agency relationship is established between the agent, the agent, and the agent's door lock, and the shopping list is synchronized to the agent's door lock; specifically, the establishment of the agency relationship and synchronization of the shopping list includes: Proxy delegation trigger: Based on the agent's operation of selecting the delegated object and supermarket service on the APP, the door lock generates a delegation request multicast message containing the identifiers of the agent, the principal, and the delegate; Authentication and request forwarding: Based on the delegated request message received by the router, query the multicast forwarding table for the outgoing interface that matches the delegated door lock ID, and forward the message to the delegated door lock; Confirmation of agency relationship: Based on the agency request received by the agent's door lock, the agent verifies the identity of the principal and the agent agent with the property management system. If the verification is successful, the agent is prompted to confirm acceptance of the agency. Shopping list synchronization: Based on the event that the agent's door lock is in the agent delegation state, the entered shopping list is sent to the agent's door lock, and the local status tables of both parties are updated.

[0025] S203, Supermarket Verification and Shopping Announcement: Based on the trigger event of the authorized person's departure for shopping, the door lock sends a multicast announcement message containing the authorized person's identity and shopping list. The router compares the message with the multicast forwarding table and forwards it to the supermarket door lock to complete identity verification and authorize entry. Specifically, the supermarket verification and shopping announcement includes: Departure event trigger: The shopping notification event is triggered when the entrusted person's door lock detects a change in the user's status, indicating that the user has confirmed their shopping list and left home. Shopping Announcement Multicast: Based on the triggered event, the entrusted door lock generates a multicast announcement message containing the entrusted person's facial features, door lock ID, and shopping list, and sends it to the preset multicast address; Router Directed Forwarding: Based on the multicast announcement message received by the router, the router matches the face features of the entrusted person and the door lock ID with the information stored in the multicast forwarding table output interface, and forwards the message from the matching interface to the supermarket door lock; Supermarket verification and entry: Based on the notification message received by the supermarket door lock, the shopping list is stored, and feature comparison is performed when the authorized person scans their face. After successful verification, the door lock is opened and the shopping list is displayed via voice prompt.

[0026] S204, Payment Confirmation and Proxy Payment: Based on the payment request after the authorized customer completes their purchase, the supermarket system generates a payment confirmation multicast message, which is forwarded by the router to the authorized customer's door lock, triggering the authorized customer to confirm and complete the payment. Specifically, the payment confirmation and proxy payment includes: Payment request generation: Based on the agent's completion of product scanning and facial recognition at the payment terminal, the supermarket system generates a payment confirmation multicast message containing the agent's door lock ID and product details; Payment request forwarding: Based on the payment confirmation message received by the router, query the outgoing interface in the multicast forwarding table that matches the agent's door lock ID, and forward the message to the agent's door lock; Agent Confirmation and Payment: Based on the payment confirmation message received by the agent / principal, the door lock displays the shopping details and prompts the agent / principal for confirmation. After the agent / principal obtains the principal's payment QR code, the door lock collects and sends it to the supermarket payment machine to complete the payment. Payment completion notification: Upon successful deduction by the payment machine, a payment completion notification will be sent to the agent / principal of the door lock, thus concluding this entrustment process.

[0027] In practical applications, this invention provides a method where an agent helps an elderly person (in need of assistance) place an order on a door lock app and entrusts a helpful neighbor to purchase the goods at an unmanned store. The router continuously listens for unicast neighbor registration messages sent by the property management system to the unmanned store door lock (listening can be based on unique fields in the registration message; the helpful neighbor registration message contains the helpful neighbor's facial feature vector). It intercepts messages whose destination IP matches the IP address in its own ARP table entry (note that after interception, the message is not forwarded; that is, the unmanned store door lock will not receive the message). The router then registers the message on its member interface, carrying the helpful neighbor's facial feature vector, door lock ID, and service ID. This method facilitates subsequent multicast communication between the store door lock, the agent (helpful neighbor – placing the order), and the entrusted party (helpful neighbor – running errands), reducing the complexity of the interaction. The system and method describe a process whereby a third-party door lock sends the third party's facial feature vector, door lock ID, business ID, and purchase list to a store door lock. The third party then arrives at the store, selects the items requested by the principal, and the agent, acting on behalf of the principal, presents the principal's payment code on the door lock's app to complete payment confirmation. One specific technical solution includes the following: I. Prerequisites: Residents' homes are equipped with smart door locks, each featuring a camera that can extract facial feature vectors from each resident's door. Collaborative communication is possible between resident door locks and between resident door locks and the locks of unmanned stores (including unmanned supermarkets, canteens, gyms, and bookstores, all uniformly decorated according to the community's property management regulations for key infrastructure). Residents can input collaborative information (such as shopping lists and amounts) through the door lock's mobile app or electronic display screen. Information exchange is possible between the door lock app, the door locks, and the community's property management system. The router supports multicast and bidirectional PIM protocol. The community's property management system pre-stores a 3D map of the community, recording the location information of each building and room, as well as the door lock ID corresponding to each room number, and records the IDs and IP addresses of all unmanned stores in the community (unmanned supermarkets, canteens, gyms, bookstores, etc.). The payment machines in the unmanned supermarkets support pre-deposited amounts and facial recognition payments. The shopping system in the unmanned supermarkets has an AI engine to assist in daily management and interpret data transmitted from residents' door locks.

[0028] 1. Solution Steps: 1. Elderly people living alone have shopping needs but are unable to move around easily, so they ask their kind neighbors to help them shop at an unmanned supermarket.

[0029] (1) Due to the large number of elderly people living alone in the community, many of whom are too old to move around easily, and many only know how to use a mobile phone, they find it difficult to master more complex online shopping operations. When elderly people need to purchase items but are unable to do so independently due to their limited mobility, they need the assistance of their kind neighbors. First, the community's owners' committee initiated a campaign to recruit kind neighbors and elderly people in need of assistance, allowing those who have more time and are willing to help the elderly to register in advance. When elderly people living alone encounter difficulties in life, such as needing someone to help them shop, they can entrust a "kind neighbor" to do it on their behalf. There are two types of "kind neighbors": one is to help elderly people in need of assistance place online orders for items, but since their usual time in the community is uncertain, another type of kind neighbor is needed to help elderly people living alone complete the errand service of shopping at unmanned stores.

[0030] (2) Neighbor A selects Elderly Services – Neighborhood Mutual Assistance Function – Register as a “Helpful Neighbor” – Errand Service on their door lock display screen or door lock APP, fills in their name, gender, age, address (house number), available mutual assistance time period, service type (erroneous), and records their face. The door lock reports the filled-in content and its own door lock ID (door lock A) to the community property management system, which records the “Helpful Neighbor – Errand Service” information. After the information is filled in, when the available mutual assistance time period arrives, door lock A will automatically send an IGMP join message with a destination address of 227.11.11.1 (the unified multicast address agreed upon between the agent door lock, the agent door lock, the unmanned supermarket door lock, the unmanned supermarket shopping system, the unmanned canteen door lock, the unmanned canteen shopping system, and other unmanned store door locks and shopping systems for shopping and other consumer communication), and join the “Shopping Service” multicast group for mutual assistance communication. The IGMP message sent by the door lock is improved here, and the door lock ID needs to be carried in addition. To facilitate the forwarding of multicast messages between routers, the PIM join message has been improved: a door lock ID has been added to the original PIM join message structure. Explanation: The purpose of joining a multicast group is to facilitate temporary communication because door lock addresses are numerous and not fixed. Owners do not pre-store each other's addresses and do not update them promptly when addresses change.

[0031] (3) After Neighbor A registers as a "helpful neighbor" (errand service), the property management system will send a "helpful neighbor notice" message to the door lock of the unmanned store (including unmanned supermarkets, unmanned canteens, etc.). The message content includes: the name of the helpful neighbor, facial feature vector, service type, door lock ID of the helpful neighbor, business ID, and neighbor notice tag set to 1. Since helpful neighbors register one after another and the number is large, but the errand service is actually a low-frequency service, the unmanned store only needs the data of helpful neighbors when serving elderly people living alone, and does not need to store this data at other times. Therefore, this patent designs a method for routers to store "helpful neighbor announcements" data, and combines it well with the communication method of the "shopping service" multicast group used when helpful neighbors help elderly people shopping: The router continuously listens for unicast messages of "helpful neighbor announcements." When the router (based on the unique field of the message: neighbor announcement tag is 1) detects a "helpful neighbor announcement" message, it intercepts it and checks whether the destination IP of the message is in its ARP table. If the destination IP is the IP address of the ARP table entry (i.e., this destination IP is the IP of the unmanned store connected to the router), the router registers (statically adds) the interface where the ARP entry is located as the forwarding table outgoing interface of the 227.11.11.1 "shopping service" multicast group, and carries the helpful neighbor's face feature vector, door lock ID, and service ID on the outgoing interface. At the same time, in order to realize the forwarding of multicast messages between routers, the PIM join message is improved: based on the original PIM join message structure, it carries the face feature vector, door lock ID, and service ID. If the destination IP is not an IP address in the ARP table, it means that the destination IP is not the IP of the unmanned store connected to the router, and the routing table is queried for forwarding.

[0032] (4) Neighbor C selects Elderly Services – Neighborhood Mutual Assistance Function – Register as a “Helpful Neighbor” – Place Service Order on their own door lock display screen or door lock APP, fills in their name, gender, age, address (house number), contact information (mobile phone number), service type (place order), and records their face. The door lock will report the filled content and its own door lock ID (door lock C) to the community property management system, and the property management system will record the “Helpful Neighbor – Place Service Order” information.

[0033] (5) Since the elderly man is not familiar with the complex procedures on his mobile phone and other devices, the property management staff helped him select the elderly service – neighborhood mutual assistance function – register as an “elderly man in need of assistance” on the display screen of his door lock, and fill in his name, gender, age, and address (door number). The door lock will report the information and its own door lock ID (door lock B's ID) to the community property management system, and the property management system will record it in the “elderly man in need of assistance” registration form. The property staff told the elderly man that when he has shopping needs, he can call a helpful neighbor to help him place an order, and let the elderly man choose a neighbor he likes to match. If the elderly man chooses neighbor C, the property staff will save neighbor C's name and contact information in the elderly man's mobile phone (Note: The elderly man can choose multiple neighbors to prevent a neighbor from being too busy to answer the call when the elderly man needs help. For simplicity, only neighbor C is used as an example here). Later, when the elderly man wants to shop, he can call neighbor C and ask neighbor C to help him place an order online. Meanwhile, property management staff used the property management system APP to pair neighbor C with the elderly person, select the elderly person B's room number, and associate neighbor C's door lock C ID with the elderly person B's door lock B ID.

[0034] (6) When elderly B wants to go grocery shopping (for simplicity, the following description will use the scenario of an unmanned supermarket in an unmanned store), elderly B calls neighbor C and describes the list of items to be purchased. Neighbor C then places the order on behalf of elderly B. Neighbor C opens the door lock APP. The APP's backend requests the matching elderly data from the property management system. Then, it selects to match elderly—selects elderly B—elderly services—neighborhood mutual assistance function—selects supermarket shopping service—selects to entrust a neighbor to run errands. The door lock APP requests a list of helpful neighbors (service type: errand runner) from the property management system. The property management system retrieves the information of registered helpful neighbors (neighbors whose current time is within the mutual assistance time period) and displays it on the APP. It also sorts the neighbors by distance from the elderly B's address from closest to furthest, or by the number of times the elderly have been helped in the past, giving priority to helpful neighbors who have helped the elderly more often. If neighbor C selects neighbor A as the delegate for elderly B on the door lock app, and this selection is synchronized to the property management system, the system queries neighbor A's door lock ID (door lock A) and returns it to door lock C's app. Door lock C's app then triggers door lock C to send a "delegation request" multicast message to 227.11.11.1. The message includes the proxy delegator's IP (door lock C's IP), the proxy delegator's door lock ID (door lock CID), the delegator's door lock ID (door lock B ID), the delegated door lock ID (door lock A ID), and a service ID of 1 (1 for supermarket, 2 for cafeteria, 3 for gym, 4 for bookstore, etc.). The delegation request tag is set to 1. The router queries its multicast forwarding table, finds the outgoing interface carrying the delegated door lock ID (i.e., door lock A ID), forwards the "delegation request," and waits for a response from door lock A. (Note 1: Because the IP address of the door lock may change, the property management system does not store the IP address of the door lock. In this case, door lock C needs to communicate with door lock A via multicast. Note 2: The improved multicast forwarding rule is that when the router receives a multicast packet, it needs to query the additional information carried on the interface before forwarding it. Only when all this information matches can the multicast packet be forwarded from this interface.) (7) When lock A receives the "delegation request" from lock C, it extracts the principal's lock ID (lock B ID), the agent's lock ID (lock C ID), and the business ID (1 for supermarket) from the message. It then uses the lock B ID and lock C ID to apply to the property management system to query whether elderly B is an "elderly person in need of assistance" and whether the agent C is paired with elderly B. After querying the "elderly person in need of assistance" registration form, the property management system finds a record of lock B's ID. Through lock B's ID, it queries the corresponding elderly person's name, age, and address (house number), as well as the name and address (house number) of the neighbor C who is paired with elderly B. If the comparison is successful, it returns this data to lock A. If the comparison fails, it returns a failure message and lock A rejects lock C's "delegation request".

[0035] (8) Door lock A displays the information of the elderly person who made the request on the screen: name, age, address (house number), name and address (house number) of the agent (the helpful neighbor who placed the order), and the content of the request is supermarket shopping (business ID is 1). The voice broadcast announces to neighbor A, prompting whether to accept the shopping request: "Dear owner, you have received a supermarket shopping request from Mr. B of room 602, building 8, which is entrusted by Mr. A of room 301, building 7. Please process it as soon as possible. If you agree, please select "Agree to the request". If you cannot complete the request, please select "Reject the request". After the owner of door lock A views the elderly person's information, if they select "Agree to the request", door lock A sends a "Confirmation of Request" message to door lock C via unicast. The message carries the IP of the entrusted person (the IP of door lock A), the ID of the entrusted person (door lock A ID), the business ID, and the confirmation tag set to 1 (1 indicates agreement, 0 indicates disagreement). Door lock A enters the "Delegated Status" (acquiring the delegated identity) in its backend and announces to its neighbor, door lock A: "Dear owner, you have accepted Mr. B's supermarket shopping request from apartment 602, building 8. Please wait patiently; the shopping list will be sent to your door lock display screen shortly for your review." If you choose "Reject Delegation," door lock A sends a "Delegation Confirmation" message to door lock C. This message includes the delegated user's IP address (door lock A's IP address), the delegated user's door lock ID (door lock A's ID), the service ID, and a delegation confirmation tag set to 0 (1 indicates agreement, 0 indicates disagreement). A delegated status table for door lock A is shown below: Door lock A delegated status table 1

[0036] (9) When lock C receives the "Confirmation of Entrustment" message from lock A, lock C extracts the entrusted party's IP (lock A's IP), the entrusted party's lock ID (lock A's ID), the business ID, and sets the entrustment confirmation tag to 1 (1 indicates agreement, 0 indicates disagreement). It then displays the successful entrustment message on neighbor C's lock APP: "Your supermarket shopping request has been successfully entrusted. The entrusted party is Ms. XX." If lock C receives a rejection message, neighbor C's lock APP will display a failure message: "This entrustment has been rejected. Please select another 'Caring Neighbor' to entrust." Neighbor C then clicks "Confirm" on the lock APP and reselects a "Caring Neighbor." If the received confirmation message indicates agreement to the entrustment, the backend of door lock C enters the "Agent Entrustment Status" (acquiring agent entrustment identity). Neighbor C's door lock app then displays a supermarket shopping interface. Neighbor C can select or fill in the names of the items entrusted to them by Elder B (e.g., soy sauce; if no option is found, it can be manually entered), the brand (e.g., brand H; if no option is found, it can be manually entered; if no brand is specified, select "any brand"), the quantity or weight of the items, and the maximum purchase amount. After selecting the confirmation button, the shopping list is saved locally in the entrustment status table and simultaneously unicasted to door lock A, where it is stored in door lock A's entrusted status table. One example of door lock C's entrustment status table 2 and door lock A's entrusted status table 3 is as follows: Door Lock C Authorization Status Table 2

[0037] Door lock A delegated status table 3

[0038] (10) After the door lock C enters the “agent delegation state”, the door lock C actively sends an IGMP message with a destination address of 227.11.11.1 to join the “shopping service” multicast group. The IGMP message carries the ID of the door lock C.

[0039] (11) The agent A can view the shopping list on the door lock display screen. After clicking "Confirm", the agent A will go to the unmanned supermarket to shop. Note: The agent A can also view the shopping list through the mobile APP.

[0040] 2: The authorized person goes to the unmanned supermarket, enters by facial recognition, and selects items.

[0041] (1) The agent A views the shopping list on the display screen of door lock A, clicks "Confirm", and then departs to the unmanned supermarket to shop. Door lock A detects the dual conditions of shopping list confirmation and door lock closure, and determines that the agent A has departed to the unmanned supermarket. Door lock A sends a "Shopping Notice" multicast message with a destination address of 227.11.11.1. The message carries the agent A's facial feature vector, name, door lock A ID (the agent's door lock ID), door lock C ID (the agent's door lock ID), business ID (1 for supermarket shopping), and shopping list.

[0042] (2) The router queries the multicast forwarding table of the group address 227.11.11.1, finds the member's outgoing interface, and compares the face feature vector data and door lock ID (compared with the entrusted person's door lock ID in the message) stored on the outgoing interface to see if they match. If the match is successful, the router forwards the multicast message from this outgoing interface. Since in the third part of step 1, the router listens to the "helpful neighbor announcement" message and registers (statically adds) the interface with the same ARP entry as the IP address of the "helpful neighbor announcement" message (at this time, it is the interface connected to the unmanned supermarket door lock) as the forwarding table outgoing interface of the 227.11.11.1 "shopping service" multicast group, and carries the helpful neighbor's face feature vector and door lock ID (entrusted person's door lock ID) on the outgoing interface. By comparison, the facial feature vector of the entrusted person A and the ID of door lock A are consistent with the facial feature vector and door lock ID stored on the interface connecting to the unmanned supermarket door lock. The "Shopping Announcement" multicast message is forwarded from the outgoing interface connecting to the supermarket door lock. After receiving the "Shopping Announcement" multicast message, the supermarket door lock saves the facial feature vector of the entrusted person A, name, entrusted person door lock ID (door lock A), agent entrustor door lock ID (door lock C), entrustor door lock ID (door lock B), and shopping list in the local "Shopping Announcement Table".

[0043] (3) After the entrusted person A arrives at the unmanned supermarket, he performs facial recognition verification at the supermarket door lock. The supermarket door lock collects the facial feature vector of the entrusted person A through the camera and compares it with the facial feature vector in the locally stored shopping notice table. It finds that he is the entrusted person, the facial verification is successful, and the supermarket door lock is opened. At the same time, the shopping list is retrieved through the facial feature vector of the entrusted person. The entrusted person's facial features and shopping list are synchronized with the supermarket shopping system. The supermarket shopping system displays the shopping list of the entrusting person B through the supermarket shopping display screen or payment machine display screen, and announces to the entrusted person A that he has completed the purchase according to the list, such as: "Dear customer, you have a purchase order for 1 bottle of H brand soy sauce. Please go to position 1 of cabinet 2 to pick it up." 3: After the authorized person completes the purchase, they scan their face at the payment machine.

[0044] (1) After purchasing the items from the list, Agent A arrives at the payment machine. Agent A selects facial recognition payment on the payment machine screen and completes facial recognition. The payment machine prompts Agent A to scan the items. The payment machine records the item name, brand, quantity or weight, calculates the total amount, and sends a "Payment Confirmation" multicast message to 227.11.11.11.1. The message carries the agent's lock ID (lock C), item name, brand, quantity or weight, and total amount. The router queries the forwarding table outgoing interface and finds the same lock ID on the outgoing interface connected to lock C. The router then forwards the "Payment Confirmation" message from this interface.

[0045] (2) After receiving the message, door lock C will display the shopping information (item name, item brand, item quantity, total amount) carried in the message on the door lock display screen or mobile APP, and announce in voice, "Dear owner, you have a shopping list from X supermarket that needs to be confirmed. Please check the list as soon as possible. If you have confirmed it, please click the 'agree' button. If the list does not meet the requirements, please click the 'reject' button and provide feedback on your rejection." (3) Agent C checks the shopping list, finds no errors in the shopping items, and clicks the "Agree" button. The lock C display screen or the lock APP continues to display a prompt: "Please show your WeChat or Alipay payment QR code and click the payment button. The system will take a picture and send it to the X supermarket's payment machine to complete the payment." At this time, the agent communicates with the principal B through WeChat, obtains the principal B's payment QR code, shows the payment QR code and clicks "Pay". The lock camera or mobile phone camera (when using the mobile APP) automatically takes a picture of the payment QR code and transmits it to the unmanned supermarket payment machine. (It should be noted that the "payment confirmation" message sent by the payment machine and the payment QR code photo message transmitted by the lock need to carry the same payment number. This number is not displayed on the lock display screen or mobile phone to ensure the consistency of the payment steps.) After receiving the payment QR code, the payment machine automatically scans the code to complete the payment and transmits a "payment completed" message to the lock C: This payment has been completed. The total payment amount is XX yuan. Have a pleasant shopping experience.

[0046] (4) In comparison with Part 3, Agent C checks the shopping list and finds that the shopping content does not meet the requirements. For example, the brand of the item was selected as any brand when purchasing, but when checking the shopping list, the brand on the list is not suitable and it is better to choose another one. The shopping content needs to be adjusted. At this time, Agent C clicks the rejection button and provides feedback on the door lock display screen or mobile APP: It is necessary to purchase 1 bottle of L brand soy sauce. Door lock C then broadcasts the rejection feedback to the payment machine of the unmanned supermarket. After receiving the rejection feedback from door lock C, the payment machine of the unmanned supermarket uses the AI ​​engine to compare the currently selected items and optimize the feedback content, and broadcasts a voice message: "Dear customer, the 1 bottle of H brand soy sauce you purchased needs to be replaced with 1 bottle of L brand soy sauce. Please put the H brand soy sauce back to position 2 of cabinet 3 and go to position 3 of cabinet 3 to purchase L brand soy sauce." Agent A adjusts the shopping content according to the voice prompt, completes the shopping requirements, and then pays again by scanning face.

[0047] (5) After payment is completed, the agent A will deliver the purchased items to the doorstep of the client B based on the client B's address information, thus completing the entire process of the supermarket helping with shopping.

[0048] Beneficial effects: By monitoring neighbor registration messages sent from the property management system to the unmanned supermarket door locks via a router, packets with destination IPs matching the IP addresses in the router's ARP table are intercepted. The router then generates a multicast member registration interface, carrying the facial feature vector of the delegate, effectively reducing the need for unmanned supermarket door locks to store data that is not normally used. Furthermore, storing this data on the router facilitates seamless participation of the supermarket door locks in subsequent multicast message communication with delegates and delegates, reducing the complexity of business interactions through multicast.

[0049] Protection Points: 1. The router continuously listens for neighbor registration messages unicast by the property management system to the unmanned supermarket door lock (listening can be based on unique fields in the registration message; the neighbor registration message contains the neighbor's facial feature vector). It intercepts messages whose destination IP matches the IP address in its own ARP table entry (note that after interception, they are not forwarded; that is, the unmanned supermarket door lock will not receive the message). The router then registers the message on its member interface, carrying the neighbor's facial feature vector. This method facilitates subsequent multicast communication between the supermarket door lock, the agent door lock, and the agent (neighbor) door lock without disturbing the supermarket door lock, reducing the complexity of the interaction. 2. After the agent door lock sends the agent's facial feature vector and shopping list to the supermarket door lock, the agent arrives at the supermarket to select the items needed by the agent, and the agent confirms payment at their own door lock.

[0050] Another embodiment of the present invention provides a system for delegated services that coordinates door locks and an APP, see [link to relevant documentation]. Figure 3 The system may include: Registration module 301 is used for role registration and multicast joining: Based on the registration operations of the agent, the agent and the principal on their respective door locks or APP, the property management system records the role information, and the agent's door lock sends an improved multicast joining message to the preset multicast address to complete the multicast registration; Module 302 is used to establish a delegation relationship and synchronize the shopping list: Based on the delegation request initiated by the agent and the confirmation operation of the agent, a delegation relationship is established between the agent, the agent and the agent's door lock, and the shopping list is synchronized to the agent's door lock; Verification module 303 is used for supermarket verification and shopping notification: based on the trigger event of the authorized person starting shopping, the door lock sends a multicast notification message containing the authorized person's identity and shopping list. The router compares the multicast forwarding table and then forwards the message to the supermarket door lock to complete the identity verification and authorize entry. Confirmation module 304 is used for payment confirmation and agent payment: Based on the payment request after the agent completes the shopping, the supermarket system generates a payment confirmation multicast message, which is forwarded by the router to the agent's door lock, triggering the agent to confirm and complete the payment.

[0051] 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.

[0052] 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.

[0053] 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.

[0054] 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 delegated services in collaboration between a door lock and an app, characterized in that: The method includes: Role registration and multicast joining: Based on the registration operations of the agent, the agent and the principal on their respective door locks or APP, the property management system records the role information, and the agent's door lock sends an improved multicast joining message to the preset multicast address to complete the multicast registration; Establishment of agency relationship and synchronization of shopping list: Based on the agency request initiated by the agent and the confirmation operation of the agent, an agency relationship is established between the agent, the agent and the agent's door lock, and the shopping list is synchronized to the agent's door lock; Supermarket verification and shopping notification: Based on the trigger event of the authorized person starting shopping, the door lock sends a multicast notification message containing the authorized person's identity and shopping list. The router compares the multicast forwarding table and forwards the message to the supermarket door lock to complete the identity verification and authorize entry. Payment Confirmation and Proxy Payment: Based on the payment request after the agent completes the shopping, the supermarket system generates a payment confirmation multicast message, which is forwarded by the router to the agent's door lock, triggering the agent to confirm and complete the payment.

2. The method according to claim 1, characterized in that, The role registration and multicast joining include: Role registration and reporting: Based on the actions of the agent, the agent and the principal filling in personal information and selecting service type on the door lock or APP, the respective door locks will report the registration information to the property management system; Router Listening and Interception: Based on the neighbor registration message sent unicast by the property management system to the supermarket door lock, the router listens for and intercepts the message based on specific fields in the message; Multicast interface registration: Based on the matching result of the destination IP address in the intercepted packet and the router ARP table entry, the corresponding interface is statically registered as a multicast forwarding interface, and the face feature vector of the delegate and the door lock ID are stored. Multicast join complete: Based on the serviceable time period of the entrusted door lock, send an improved IGMP join message carrying its own door lock ID to the preset multicast address.

3. The method according to claim 2, characterized in that, The establishment of the delegation relationship and the synchronization of the list include: Proxy delegation trigger: Based on the agent's operation of selecting the delegated object and supermarket service on the APP, the door lock generates a delegation request multicast message containing the identifiers of the agent, the principal, and the delegate; Authentication and request forwarding: Based on the delegated request message received by the router, query the multicast forwarding table for the outgoing interface that matches the delegated door lock ID, and forward the message to the delegated door lock; Confirmation of agency relationship: Based on the agency request received by the agent's door lock, the agent verifies the identity of the principal and the agent agent with the property management system. If the verification is successful, the agent is prompted to confirm acceptance of the agency. Shopping list synchronization: Based on the event that the agent's door lock is in the agent delegation state, the entered shopping list is sent to the agent's door lock, and the local status tables of both parties are updated.

4. The method according to claim 3, characterized in that, The supermarket verification and shopping notification includes: Departure event trigger: The shopping notification event is triggered when the entrusted person's door lock detects a change in the user's status, indicating that the user has confirmed their shopping list and left home. Shopping Announcement Multicast: Based on the triggered event, the entrusted door lock generates a multicast announcement message containing the entrusted person's facial features, door lock ID, and shopping list, and sends it to the preset multicast address; Router Directed Forwarding: Based on the multicast announcement message received by the router, the router matches the face features of the entrusted person and the door lock ID with the information stored in the multicast forwarding table output interface, and forwards the message from the matching interface to the supermarket door lock; Supermarket verification and entry: Based on the notification message received by the supermarket door lock, the shopping list is stored, and feature comparison is performed when the authorized person scans their face. After successful verification, the door lock is opened and the shopping list is displayed via voice prompt.

5. The method according to claim 4, characterized in that, The payment confirmation and agent payment include: Payment request generation: Based on the agent's completion of product scanning and facial recognition at the payment terminal, the supermarket system generates a payment confirmation multicast message containing the agent's door lock ID and product details; Payment request forwarding: Based on the payment confirmation message received by the router, query the outgoing interface in the multicast forwarding table that matches the agent's door lock ID, and forward the message to the agent's door lock; Agent Confirmation and Payment: Based on the payment confirmation message received by the agent / principal, the door lock displays the shopping details and prompts the agent / principal for confirmation. After the agent / principal obtains the principal's payment QR code, the door lock collects and sends it to the supermarket payment machine to complete the payment. Payment completion notification: Upon successful deduction by the payment machine, a payment completion notification will be sent to the agent / principal of the door lock, thus concluding this entrustment process.

6. A system for coordinating door locks and an app for delegated services, characterized in that: The system includes: The registration module is used for role registration and multicast joining: Based on the registration operations of the agent, the agent and the principal on their respective door locks or APP, the property management system records the role information, and the agent's door lock sends an improved multicast join message to the preset multicast address to complete the multicast registration; The module is used to establish a delegation relationship and synchronize the shopping list: Based on the delegation request initiated by the agent and the confirmation operation of the agent, a delegation relationship is established between the agent, the agent and the agent's door lock, and the shopping list is synchronized to the agent's door lock; The verification module is used for supermarket verification and shopping notification: based on the trigger event of the authorized person starting shopping, the door lock sends a multicast notification message containing the authorized person's identity and shopping list. The router compares the multicast forwarding table and forwards the message to the supermarket door lock to complete the identity verification and authorize entry. The confirmation module is used for payment confirmation and agent payment: Based on the payment request after the agent completes the shopping, the supermarket system generates a payment confirmation multicast message, which is forwarded by the router to the agent's door lock, triggering the agent to confirm and complete the payment.

7. The system according to claim 6, characterized in that, The role registration and multicast joining include: Role registration and reporting: Based on the actions of the agent, the agent and the principal filling in personal information and selecting service type on the door lock or APP, the respective door locks will report the registration information to the property management system; Router Listening and Interception: Based on the neighbor registration message sent unicast by the property management system to the supermarket door lock, the router listens for and intercepts the message based on specific fields in the message; Multicast interface registration: Based on the matching result of the destination IP address in the intercepted packet and the router ARP table entry, the corresponding interface is statically registered as a multicast forwarding interface, and the face feature vector of the delegate and the door lock ID are stored. Multicast join complete: Based on the serviceable time period of the entrusted door lock, send an improved IGMP join message carrying its own door lock ID to the preset multicast address.

8. The system according to claim 7, characterized in that, The establishment of the delegation relationship and the synchronization of the list include: Proxy delegation trigger: Based on the agent's operation of selecting the delegated object and supermarket service on the APP, the door lock generates a delegation request multicast message containing the identifiers of the agent, the principal, and the delegate; Authentication and request forwarding: Based on the delegated request message received by the router, query the multicast forwarding table for the outgoing interface that matches the delegated door lock ID, and forward the message to the delegated door lock; Confirmation of agency relationship: Based on the agency request received by the agent's door lock, the agent verifies the identity of the principal and the agent agent with the property management system. If the verification is successful, the agent is prompted to confirm acceptance of the agency. Shopping list synchronization: Based on the event that the agent's door lock is in the agent delegation state, the entered shopping list is sent to the agent's door lock, and the local status tables of both parties are updated.

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-5 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-5.

Citation Information

Cited By

  • A method and system for parking space sharing based on door lock

    CN122176836A