Multi-door lock cooperative processing method and system
By generating and processing IGMP multicast messages in the smart door lock system and recording the association between RFID identifiers and interface information, the delay and efficiency problems in the collaborative control of multiple door locks are solved, and a low-latency, highly reliable collaborative control effect is achieved.
Patent Information
- Application Number
- CN202511321156.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-16
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-09-16
AI Technical Summary
Existing smart door lock systems have problems in the collaborative control of multiple door locks, such as high response delay, heavy network load, single point failure risk, low efficiency of multicast message management, insufficient RFID identification matching accuracy, and poor timeliness of collaborative operations. In particular, real-time status synchronization and accurate message routing are difficult in distributed environments.
By generating and processing IGMP multicast messages, recording the association between RFID identification information and interface information, achieving accurate message routing and assisted confirmation, triggering the robot summon command, and adopting the multicast forwarding table construction and caching mechanism, it ensures the directional forwarding and validity period verification of messages, avoiding network conflicts and interference.
It achieves low-latency, high-reliability collaborative control of multiple door locks, improves the security and convenience of the system, reduces network load and single-point failure risks, and improves the efficiency and accuracy of collaborative operations.
Smart Images

Figure CN120808480A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of intelligent door lock, and particularly relates to a method and system for cooperative processing of multiple door locks. BACKGROUND
[0002] In modern smart home and building management systems, cooperative control of multiple door locks is a key technology for improving security and convenience. Traditional door lock systems usually adopt an independent working mode. When a user needs to perform cooperative operations (such as visitor-assisted door opening) among multiple door locks, the user often needs to rely on a central server for complex permission verification and instruction forwarding, resulting in high response delay, large network load, and single-point failure risk. Although the existing door lock cooperative scheme based on multicast communication can reduce the dependence on the central node, it still has problems such as low efficiency of multicast message management, insufficient accuracy of RFID identification matching, and poor timeliness of cooperative operation. Especially in a distributed environment, real-time state synchronization and accurate message routing among multiple door locks face challenges, and cooperative failure is easily caused by network delay or identification conflict. SUMMARY
[0003] The purpose of the present application is to provide a method and system for cooperative processing of multiple door locks to solve the problems in the prior art and achieve low-delay and high-reliability door lock cooperative control.
[0004] One embodiment of the present application provides a method for cooperative processing of multiple door locks, the method comprising: Triggering an assistance request and multicast registration: generating an assistance request IGMP multicast message containing RFID identification information and a validity period according to a preset trigger operation detected by a first door lock B and the RFID identification information read, and sending the assistance request IGMP multicast message to a router; Multicast forwarding table entry construction and caching: recording interface information associated with the RFID identification information and the validity period in the multicast forwarding table entry according to the assistance request IGMP multicast message received by the router, and caching the multicast message; Triggering an assisted door lock request and multicast forwarding: generating an assisted request multicast message containing the same RFID identification information according to a preset trigger operation detected by a second door lock A and the RFID identification information read, and sending the assisted request multicast message to the router; Accurate message routing and assistance confirmation: according to the router matching the RFID identification information in the assisted request multicast message with the multicast forwarding table entry, verifying that the validity period has not expired, and then directing the message to the first door lock B, and sending an assistance confirmation message from the first door lock B to the second door lock A to trigger a robot calling instruction.
[0005] Optionally, the triggering of the assistance request and the multicast registration comprises: Trigger operation detection: according to the detection of two consecutive doorbell button press operations by the first door lock B, the assistance request process is started and the countdown is entered; RFID identification verification: according to the RFID identification information read within the countdown, the comparison is made with the resident registration table of the first door lock B, and if it is not matched, an abnormal prompt containing the RFID identification is generated; Multicast message generation: according to the detection of two consecutive doorbell button press operations again, an IGMP multicast message carrying the RFID identification, the validity period and the door lock ID is generated; Multicast message sending: the IGMP multicast message is sent to the preset multicast address through the router, triggering the router to record the interface binding relationship containing the RFID identification and the validity period.
[0006] Optionally, the multicast forwarding table item construction and caching includes: Interface information registration: according to the analysis of the RFID identification and the source IP address in the IGMP multicast message by the router, the interface connected to the first door lock B is marked as an assistance interface in the multicast forwarding table item, and the validity period is associated; Message cache management: cache the complete message of the IGMP multicast message, set the cache timeout time, and automatically delete if it is not matched after timeout; Conflict processing: when multiple door locks send IGMP multicast messages carrying different RFID identifications at the same time, the router independently records the binding relationship of each RFID identification and the interface.
[0007] Optionally, the assisted door lock request triggering and multicast forwarding includes: Assisted operation detection: according to the detection of two consecutive doorbell button press operations by the second door lock A, the assisted request process is started and the countdown is entered; RFID identification matching: according to the same RFID identification information read within the countdown, the comparison is made with the resident registration table of the second door lock, and if it is not matched, the assisted request multicast message is generated; Multicast message encapsulation: encapsulate the RFID identification, the door lock ID of the second door lock A and the request type into the assisted request multicast message; Multicast message directional sending: the assisted request multicast message is sent to the same multicast address through the router, triggering the router to match the forwarding logic.
[0008] Optionally, the precise message routing and assistance confirmation includes: RFID identification matching: according to the extraction of the RFID identification in the assisted request multicast message by the router, the associated assistance interface in the multicast forwarding table item is queried; Validity period verification: if the validity period of the assistance interface is not expired, the message is directed to the interface of the first door lock B; Assisted confirmation processing: according to the assisted request multicast message received by the first door lock B, verifying the consistency of the RFID identifier and the cache record, generating a unicast reply message carrying the confirmation result; Robot calling trigger: according to the confirmation result received by the second door lock A, sending a robot calling instruction to the platform, and recording the operation log.
[0009] Optionally, the robot calling trigger comprises: Instruction encapsulation: according to the door lock ID and the RFID identifier in the confirmation result, generating a robot scheduling instruction containing the target position and the permission verification parameter; Platform interaction: issuing the scheduling instruction to the robot through the platform, triggering the robot to navigate to the position of the second door lock A; Face recognition authorization: according to the user face information collected after the robot arrives, comparing with the resident registration table pre-stored in the platform, and unlocking the second door lock A after successful verification.
[0010] Another embodiment of the application provides a multi-door lock cooperative processing system, which comprises: Trigger module, for triggering assisted request and multicast registration: according to the preset trigger operation detected by the first door lock B and the RFID identifier information read, generating an assisted request IGMP multicast message containing the RFID identifier information and the validity period, and sending to the router; Construction module, for multicast forwarding table item construction and caching: according to the assisted request IGMP multicast message received by the router, recording the interface information associated with the RFID identifier information and the validity period in the multicast forwarding table item, and caching the multicast message; Forwarding module, for assisted door lock request trigger and multicast forwarding: according to the preset trigger operation detected by the second door lock A and the same RFID identifier information read, generating an assisted request multicast message containing the RFID identifier information, and sending to the router; Assistance module, for accurate message routing and assisted confirmation: according to the matching of the RFID identifier information in the assisted request multicast message and the multicast forwarding table item by the router, verifying that the validity period has not expired, and then directing the message to the first door lock B, and sending an assisted confirmation message from the first door lock B to the second door lock A, triggering a robot calling instruction.
[0011] Another embodiment of the application provides a storage medium, which stores a computer program, wherein the computer program is set to execute the method described in any one of the above embodiments when running.
[0012] Still another embodiment of the present application provides an electronic device comprising a memory and a processor, the memory having a computer program stored therein, and the processor being configured to execute the computer program to perform the method described in any of the above embodiments.
[0013] Compared with the prior art, the method for multi-door lock cooperative processing provided by the application generates an assistance request IGMP multicast message according to the preset trigger operation detected by the first door lock B and the RFID identification information read, and sends the message to a router; records the interface information associated with the RFID identification information and the validity period in a multicast forwarding table item according to the assistance request IGMP multicast message, and caches the multicast message; generates an assisted request multicast message containing the RFID identification information according to the preset trigger operation detected by the second door lock A and the same RFID identification information read, and sends the message to the router; after verifying that the validity period has not expired according to the RFID identification information and the multicast forwarding table item, the message is directly forwarded to the first door lock B, and the first door lock B sends an assistance confirmation message to the second door lock A, triggering a robot calling instruction, so that low-delay and high-reliability door lock cooperative control can be achieved. BRIEF DESCRIPTION OF DRAWINGS
[0014] Figure 1 A hardware structure block diagram of a computer terminal for the method for multi-door lock cooperative processing provided by the embodiment of the application is provided. Figure 2 A flowchart of the method for multi-door lock cooperative processing provided by the embodiment of the application is provided. Figure 3 A structure diagram of a system for multi-door lock cooperative processing provided by the embodiment of the application is provided. DETAILED DESCRIPTION
[0015] The embodiments described below with reference to the drawings are exemplary and are only used to explain the application, and cannot be explained as a limitation on the application.
[0016] The embodiment of the application first provides a method for multi-door lock cooperative processing, which can be applied to an electronic device, such as a computer terminal, specifically, a general computer, etc.
[0017] The method is described in detail below by taking a computer terminal as an example. Figure 1 A hardware structure block diagram of a computer terminal for the method for multi-door lock cooperative processing provided by the embodiment of the application is provided. As shown in Figure 1 The computer device comprises a processor, a memory and a network interface connected through a system bus, wherein the memory can comprise a non-volatile storage medium and an internal memory.
[0018] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions which, when executed, cause the processor to perform any one of the multi-lock cooperative processing methods.
[0019] The processor is configured to provide computing and control capabilities to support the operation of the entire computer device.
[0020] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium, which, when executed by the processor, causes the processor to perform any one of the multi-lock cooperative processing methods.
[0021] The network interface is configured to perform network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that, Figure 1 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0022] It should be understood that the processor can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0023] Referring to Figure 2 The embodiments of the present application provide a multi-lock cooperative processing method, which can include the following steps: S201, triggering assistance request and multicast registration: according to the preset trigger operation detected by the first lock B and the read RFID identification information, an assistance request IGMP multicast message containing the RFID identification information and the validity period is generated and sent to the router. Specifically, the trigger assistance request and multicast registration includes: Trigger operation detection: according to the detection of two consecutive doorbell button pressing operations by the first lock B, the assistance request process is started and the countdown is entered; RFID identification verification: according to the RFID identification information read within the countdown, compare with the resident registration table of the first door lock B, if not matched, generate an abnormal prompt containing the RFID identification; Multicast message generation: according to the detection of two consecutive doorbell button pressing operations, generate an IGMP multicast message carrying the RFID identification, validity period and door lock ID; Multicast message sending: send the IGMP multicast message to the preset multicast address through the router, trigger the router to record the interface binding relationship containing the RFID identification and validity period.
[0024] S202, multicast forwarding table item construction and caching: according to the assistance request IGMP multicast message received by the router, record the interface information associated with the RFID identification information and the validity period in the multicast forwarding table item, and cache the multicast message; Specifically, the multicast forwarding table item construction and caching includes: Interface information registration: according to the RFID identification and source IP address in the IGMP multicast message parsed by the router, mark the interface connected to the first door lock B as an assistance interface in the multicast forwarding table item, and associate the validity period; Message caching management: cache the complete message of the IGMP multicast message, set the cache timeout time, and automatically delete if it is not matched after timeout; Conflict processing: when multiple door locks send IGMP multicast messages carrying different RFID identifications at the same time, the router records the binding relationship of each RFID identification and interface independently.
[0025] S203, assisted door lock request trigger and multicast forwarding: according to the preset trigger operation detected by the second door lock A and the same RFID identification information read, generate an assisted request multicast message containing the RFID identification information, and send it to the router; Specifically, the assisted door lock request trigger and multicast forwarding includes: Assisted operation detection: according to the detection of two consecutive doorbell button pressing operations by the second door lock A, start the assisted request process and enter the countdown; RFID identification matching: according to the same RFID identification information read within the countdown, compare with the resident registration table of the second door lock, if not matched, generate an assisted request multicast message; Multicast message encapsulation: encapsulate the RFID identification, door lock ID of the second door lock A and request type into the assisted request multicast message; Multicast message directional sending: send the assisted request multicast message to the same multicast address through the router, trigger the router to match the forwarding logic.
[0026] S204, precise message routing and assistance confirmation: according to the router matching the RFID identification information in the assisted request multicast message and the multicast forwarding table item, after verifying that the validity period has not expired, the message is forwarded to the first door lock B, and the assistance confirmation message is sent to the second door lock A by the first door lock B, triggering the robot calling instruction. Specifically, the precise message routing and assistance confirmation comprises: RFID identification matching: according to the router extracting the RFID identification in the assisted request multicast message, querying the associated assistance interface in the multicast forwarding table item; Validity period verification: if the validity period of the assistance interface has not expired, the message is forwarded to the interface of the first door lock B; Assistance confirmation processing: according to the assisted request multicast message received by the first door lock B, verifying the consistency of the RFID identification and the cache record, generating a unicast reply message carrying the confirmation result; Robot calling trigger: according to the confirmation result received by the second door lock A, sending a robot calling instruction to the platform, and recording the operation log. Specifically, the robot calling trigger comprises: Instruction encapsulation: according to the door lock ID and RFID identification in the confirmation result, generating a robot scheduling instruction containing the target position and permission verification parameter; Platform interaction: sending the scheduling instruction to the robot through the platform, triggering the robot to navigate to the position of the second door lock A; Face recognition authorization: according to the user face information collected after the robot arrives, comparing with the platform pre-stored resident registration table, and unlocking the second door lock A after successful verification.
[0027] In practical application, the owner of the intelligent door lock forgets to carry the door card and does not have a mobile phone, and goes to the management center to seek service, which is inconvenient to go and come. It is hoped that the robot can be called to unlock the door. After negotiation, the neighbors can provide help. The application proposes a method of calling the robot by the interaction of IGMP between neighbor RFID card swiping and door locks. A specific technical solution comprises: 1. Core idea: I don't have an RFID card and a mobile phone, so I can't swipe the card to enter the door or call the robot. Seeing the neighbor, ask the neighbor for help to call the robot. The neighbor presses the button on the door lock for 2 times to trigger, then swipes the RFID card, and then presses the button for 2 times to confirm, and then immediately comes to my door lock to swipe the RFID card and press the button for 2 times, to summon the robot for me, and the robot performs face recognition and unlocks the door for me. Since the neighbor's door lock and my door lock do not know each other's IP addresses, they cannot directly interact, so the design is added: card b swipes lock B, lock B sends an igmp multicast (226.1.1.10) message, and the router records it on the interface connected to lock B; card b swipes lock A, lock A sends a multicast (226.1.1.10) confirmation message, so this multicast message will only be sent to lock B, thus avoiding disturbing other locks.
[0028] To avoid B helping A while D helping C, causing A's multicast message to be forwarded to B and D at the same time. When lock B and lock D send IGMP messages carrying door card RFID, the router records the multicast group on the interface receiving the message, and also records the RFID. At the same time, lock A and lock C send multicast messages carrying RFID, and the router needs to identify the RFID inside to accurately send lock A's multicast message from the out-interface connected to lock B, and similarly, C's multicast message from the out-interface connected to lock D.
[0029] First swipe A lock, A lock finds that it is not the card corresponding to itself, so it sends a multicast message (containing RFID). After swiping B lock, B lock finds that it is the card matching itself, sends an igmp message, and registers "assisted interface" on the (*, G) table item, and marks the RFID number. The router finds the message containing the RFID in the local cache, and sends it out from the assisted interface.
[0030] To avoid the router frequently understanding non-standard multicast message internal information, further improvement: the router registers the source IP address of A lock and the RFID association information on the assisted interface, which is taken from the IGMP message sent by A. Whenever the router generates a new RFID number on the assisted interface, it looks up the IP address associated with the RFID on the assisted interface, and according to the IP address, it looks up the cached multicast message (by comparing the source IP), and sends the matched message from the assisted interface. At the same time, delete the information on the assisted interface and the assisted interface.
[0031] 2. The complete flow of technical implementation is as follows: (1) Precondition: The owner's entrance door is installed with an intelligent door lock, which supports RFID card reading and unlocking to open the door. The door lock stores a "resident registration information table" containing name, RFID-ID number, etc. The robot supports autonomous walking to the door of the designated destination room. The robot is installed with a display screen supporting face recognition, which can perform face recognition comparison. The robot supports networking with the door lock and supports unlocking authorization for the specified door lock. The robot is connected to the platform and receives tasks such as delivering items to the owner and providing face recognition and unlocking services on site. The robot periodically synchronizes and stores the resident registration table from the platform, which is collected and recorded by the administrator, usually synchronized once a week. The table contains room ID number, door lock ID number, door lock IP, owner's name, face image / feature vector, RFID-ID number, etc.
[0032] (2) The owner a of door lock A does not have the door lock RFID card and cannot unlock the door. He finds a neighbor (the owner b of door lock B) nearby and negotiates with him for help.
[0033] Explanation: At this time, the owner a does not have the RFID card to unlock the door and does not have the mobile phone to contact the management center. Due to physical reasons or carrying items, taking care of infants or the elderly, etc., he cannot go to the management center to handle it. He hopes to summon the robot to serve at the door lock. When he finds the neighbor, the owner b of door lock B, in the corridor, b carries the RFID card of his own door lock (assuming the ID number of the RFID is RFID-ID(b), and the card is referred to as RFID(b) for convenience), a negotiates with b and confirms that b will summon the robot to the door lock to perform face recognition and unlock the door for a.
[0034] (3) Door lock B judges that this process is a summons to the robot by other door locks by reading the doorbell button information and swiping the RFID-ID(b). It caches the record of summoning the robot and sends an IGMP multicast message with RFID-ID(b) to the router, which records it on the interface connected to door lock B in the (*, G) forwarding table entry. Why does the owner b swipe the door lock B? First, to prove that it is indeed his own action, to implement verification; second, to avoid disturbing other door locks when door lock A requests.
[0035] The implementation process is as follows: The door lock B detects 2 times door lock doorbell button information (at this time, b is pressed 2 times "doorbell" button on the door lock B) to trigger the process of calling the robot to start and enter 30 seconds countdown (waiting for reading RFID card, if RFID card is not read within 30 seconds, the process of calling the robot triggered this time is ended, if you need to continue to call the robot, you need to press 2 times "doorbell" button on the door lock B again), if RFID card is not read within 30 seconds (at this time, it may be that a stranger presses 2 times "doorbell" button on the door lock B, and the stranger has no RFID card), the process is ended.
[0036] Operation instruction: in the description of the application, pressing 2 times "doorbell" button on the door lock B for the first time means triggering the process of calling the robot to start, and pressing 2 times "doorbell" button on the door lock B again after swiping RFID card means confirming to call the robot. If RFID card is not swiped after pressing 2 times "doorbell" button on the door lock B for the first time, the process of calling the robot triggered this time is stopped; if RFID card is swiped, and 2 times "doorbell" button on the door lock B is not pressed again, it is not confirmed.
[0037] When the door lock B reads RFID-ID (b) within 30 seconds (at this time, b swipes RFID (b) card on the door lock B), B extracts RFID-ID (b) and compares it with RFID-ID number in the registered information table of B's residents one by one, if not matched, there are 2 kinds of abnormal situation processing at this time: the first kind of abnormal situation, if the door lock B reads RFID card but cannot identify (at this time, it may be that the RFID card swiped by b on the door lock B is not the ID range used by the door lock of the community, or a stranger presses 2 times "doorbell" button on the door lock B and holds the card of other community to swipe the card), the display screen of B prompts "invalid card, please swipe the card again", b should swipe the card again with the correct RFID card (RFID (b)); the second kind of abnormal situation, the RFID card read by the door lock B is not the RFID-ID number in the registered information table of the lock residents (for example, the RFID card read by the door lock B is RFID-ID (z) of the door lock Z), B judges that it is Z calling the robot on behalf of B according to the method of step (4), and executes step (4); before the door lock B reads and matches RFID-ID (b), the door lock B cannot confirm who the person who "presses 2 times "doorbell" button" just is.
[0038] The door lock B reads the RFID-ID (b) and matches it with the RFID-ID number in the resident registration information table of the B's door lock. If the doorbell button information is not received twice within 30 seconds, it indicates that the robot is called by the door lock, and the robot is called according to step (7). If the doorbell button information is detected twice within 30 seconds (at this time, b presses the "doorbell" button twice on the door lock B after swiping the card, indicating that the robot is called for other door locks), the door lock B sends an "assist call" IGMP assist message to the target IP address 226.1.1.10, containing the card number RFID-ID (b), the validity period of 30 seconds, etc. The router receives and parses the "assist call" IGMP assist message sent by B, extracts the multicast group address 226.1.1.10 and RFID-ID (b), creates or updates the multicast forwarding table item (*, 226.1.1.10), and records RFID-ID (b) and the validity period of 30 seconds on the interface that receives the above "assist call" IGMP assist message in the forwarding table item (at this time, the interface connected to B is recorded on the interface, RFID-ID (b), and the validity period of 30 seconds), (when the router receives a multicast message with a destination address of 226.1.1.10 and containing RFID-ID (b) in the future, it judges the validity period of 30 seconds and only forwards it to the interface; the information about the above interface on the multicast forwarding table item (*, 226.1.1.10) is automatically deleted after the validity period of 30 seconds). Door lock B caches the robot calling event information while sending the "assist call" message, including the calling event ID number (numbered in the form of assist door lock ID (B) + timestamp), RFID-ID (b), assist door lock ID (B), validity period = 60 seconds, etc., and then starts a 60-second countdown (60 seconds is set to allow for processing delays of door lock A and the router), and deletes the robot calling event information after 60 seconds.
[0039] (4) After neighbor b completes the action of initiating assistance on door lock B, he comes to door lock A and presses the doorbell button twice, and uses the card of door lock B to swipe the card. Door lock A judges that the robot is called by the door lock corresponding to RFID-ID (b) by reading the doorbell button information and swiping the RFID-ID (b) card, and sends a "request assistance" multicast message, which is forwarded by the router to door lock B, and a unicast reply is sent back to A after B confirms. In this way, the disturbance to other door locks is avoided. After receiving the confirmation message from B, door lock A initiates the calling of the robot to door lock A. The reason why house guest b swipes the card on door lock A is to prove that he really wants to call the robot for house guest a; the reason why door lock A needs to send a message to door lock B is to confirm that it is not a bad person who wants to open door lock A maliciously or someone who swipes the card on door lock A by mistake.
[0040] Implementation process refinement: According to the method in step (3), door lock A detects the door lock doorbell button information twice (at this time, at the invitation of a, b leaves door lock B and immediately comes to door lock A, and presses the "doorbell" button on door lock A twice in a row), which triggers the process of A summoning the robot and starts a 30-second countdown. If the RFID card is not read within 30 seconds, the process ends.
[0041] If lock A detects the doorbell button twice within 30 seconds, and lock A reads RFID-ID (b) (at this time, lock b swipes the RFID card of RFID (b) on lock A), lock A extracts RFID (b) and compares it with the RFID-ID numbers in lock A's resident registration information table one by one. If RFID (b) matches (at this time, RFID (b) may also be the RFID card registered by lock A), lock A waits 30 seconds (at this time, the "doorbell" button is no longer pressed twice), and then swipes the card again to unlock the door (at this time, lock A's own RFID card is used to unlock the door, because RFID (b) is now matched with A's door card). If the doorbell button is pressed twice within 30 seconds, the process of summoning robots for other locks is triggered (at this time, RFID (b) is the RFID card registered by lock A, and the process of pressing the "doorbell" button twice in a row -> swiping this lock's RFID card -> pressing the "doorbell" button twice in a row has been executed). If RFID (b) does not match the RFID-ID number in A's household registration information table, the process is the same as step (3), and there are two abnormal situations to be handled: the first abnormal situation, if door lock A reads the RFID card but cannot recognize it (at this time, the RFID card swiped by b on door lock A may not be in the ID range used by the door locks of this community, or a stranger presses the "doorbell" button on door lock A twice in a row and swipes the card with a card from another community), then A's display screen will prompt "Invalid card, please swipe the card again", and b should replace the correct RFID card (RFID (b)) and swipe the card again; the second abnormal situation, the RFID card read by door lock A is not the RFID-ID number in the household registration information table of this lock (for example, the RFID card read by door lock A is the RFID-ID (b) of door lock B; or the RFID-ID (z) of another door lock Z).
[0042] If A reads the RFID-ID (b) and detects 2 times of the doorbell button information within 30 seconds (at this time, b presses the "doorbell" button on the door lock A for 2 times, and b wants to call the robot for A after swiping the RFID (b)), a "request assistance" multicast message with the target address of 226.1.1.10 is generated and sent, containing the RFID-ID (b), the door lock ID (A), etc. At the same time, the door lock A starts a 30-second timer. After receiving the multicast message, the router removes the RFID-ID (b) and the door lock ID (A) in the message, and then checks the multicast forwarding table entry (*, 226.1.1.10) to find out whether the interface information (including the interface connected to B, the RFID-ID (b), and the 30-second validity period) matching the RFID-ID (b) is recorded in the multicast forwarding table entry (*, 226.1.1.10), and judges whether the validity period of the interface information is expired. If the check result is that the interface information is not expired, the router only forwards the "request assistance" multicast message sent by A to the interface connected to the door lock B. If the multicast forwarding table entry (*, 226.1.1.10) does not contain the interface information matching the RFID-ID (b), or the validity period of the matching interface information is expired (i.e., more than 30 seconds), the router discards the multicast message. In this case, the door lock B will not receive the query request from the door lock A, and naturally will not reply the query result to the door lock A, i.e., the door lock A will not receive the reply message from the door lock B. After the check of the router based on the RFID-ID (b) and the 30-second validity period, the "request assistance" multicast message sent by A is accurately forwarded to the interface connected to the door lock B, avoiding the additional interference to other door locks caused by forwarding to all other door locks.
[0043] If A reads the RFID-ID (z) (at this time, A reads the RFID-ID (z) instead of the RFID-ID (b), and it is possible that b takes the wrong card), and detects 2 times of the door lock doorbell button information within 30 seconds (at this time, it is possible that b takes the wrong card), A generates and sends the multicast message of "request assistance" with the target address of 226.1.1.10, containing the RFID-ID (z), the door lock ID (A), etc., and at the same time, the door lock A starts the 30 seconds counting. The router receives the multicast message, and checks the multicast forwarding table entry (*, 226.1.1.10), and finds whether the interface information matching the RFID-ID (z) is recorded in the multicast forwarding table entry (*, 226.1.1.10) (at this time, the interface information of the router's multicast forwarding table entry (*, 226.1.1.10) only records: the interface connected with B, the RFID-ID (b), the interface information with the validity period of 30 seconds), and judges whether the validity period of the interface information is not expired. At this time, the router fails to match (at this time, the interface information of the router's multicast forwarding table entry (*, 226.1.1.10) does not contain the interface information of the RFID-ID (z)), and cannot forward the multicast message containing the RFID-ID (z), and the router discards the multicast message. After the router checks the RFID-ID (b), the validity period of 30 seconds, etc., the router does not forward the multicast message for the RFID-ID (z) which cannot match the interface information, and does not forward to other interfaces connected with other door locks, and avoids the additional interference of other door locks caused by forwarding to all other door locks.
[0044] If there are other several groups instead of calling robot events in this process (such as the owner d of the door lock D holding the RFID (d) for the owner c of the door lock C calling the robot). Then the door lock D sends an "assistance call" IGMP assistance message to the target IP address 226.1.1.10, containing the card number RFID-ID (d), the validity period of 30 seconds, etc. The router receives and parses the "assistance call" IGMP assistance message sent by D, extracts the multicast group address 226.1.1.10 and RFID-ID (d), creates or updates the multicast forwarding table item (*, 226.1.1.10), and records RFID-ID (d) and the validity period of 30 seconds on the interface receiving the above-mentioned "assistance call" IGMP assistance message (at this time, the interface records: the interface connected to D, RFID-ID (d), and the validity period of 30 seconds). When the door lock C sends a "request assistance" multicast message with the target address of 226.1.1.10, containing RFID-ID (d), door lock ID (C), etc. After receiving the multicast message, the router extracts RFID-ID (d) and door lock ID (C) from the message. Then, the router checks the multicast forwarding table item (*, 226.1.1.10) to find out whether the interface information (including the interface connected to D, RFID-ID (d), and the validity period of 30 seconds) matching the RFID-ID (d) is recorded therein, and judges that the validity period of the interface information has not expired, and the router only forwards the "request assistance" multicast message sent by C to the interface connected to the door lock D. According to the check of the corresponding RFID number recorded in the interface information of the forwarding table item, the router can only accurately forward the multicast message to the interface whose RFID can match, and will not be forwarded to other door locks or the interfaces corresponding to other door locks.
[0045] The door lock B receives the "request assistance" message of A, checks the cached proxy calling robot event information according to RFID-ID (b) in the message, confirms that RFID-ID (b) is the cached proxy calling event ID number (door lock ID (B) + timestamp), and other related information is also confirmed to be consistent, and then unicast (extracts the door lock IP (A) of door lock A from the message forwarded by the router) a "assistance confirmation" message to door lock A, containing RFID-ID (b), door lock ID (B), and whether to confirm the proxy call / is.
[0046] The door lock A receives the "assistance confirmation" message of B, checks the "whether to confirm the proxy call" result in the message as "yes", and then sends a "call robot" message to the platform, containing door lock ID (A), etc. At the same time, the door lock A stores the calling robot record for reference, containing door lock ID (A), whether to confirm the proxy call / is, proxy RFID / RFID (b), proxy door lock / door lock ID (B), timestamp (clock of receiving the reply message of B), and the calling robot record is automatically deleted after being stored for 1 year.
[0047] (5) Optional method: Unlike the card swiping order (RFID card swiping B first and then A) in steps (3) and (4), this optional improvement is to swipe the RFID (b) card first and then swipe the A card, and the method of triggering the message forwarding of the A lock sent by the B lock IGMP message in the router is used to realize the forwarding mechanism of the related message.
[0048] The implementation process refinement is as follows: After detecting the doorbell button information twice (at this time, b presses the "doorbell" button on the door lock A for 2 times in succession to trigger the robot calling process) and reading the RFID-ID (b) (at this time, b swipes the RFID (b) card on the door lock A), A extracts the RFID-ID (b) and compares it with the RFID-ID numbers in the A resident registration information table one by one, and then fails to match successfully (at this time, RFID-ID (b) is not the RFID-ID number in the A resident registration information table). After detecting the doorbell button information twice (at this time, b presses the "doorbell" button on the door lock A for 2 times in succession to confirm the robot calling), the door lock A sends a "assisted call" multicast message to the target IP address 226.1.1.10, containing the card number RFID-ID (b), the validity period of 30 seconds, etc. At the same time, A caches the robot calling event, including the calling event ID number (assisted door lock ID (A) + timestamp), RFID-ID (b), assisted door lock ID / pending, validity period = 60 seconds, etc., and then starts the 60-second countdown waiting. The door lock A sends a "assisted call" multicast message to request the router to forward.
[0049] The router receives and parses the "assisted call" multicast message sent by A, extracts the multicast group address 226.1.1.10 and RFID-ID (b), creates or updates the multicast forwarding table item (*, 226.1.1.10), and registers the "assisted interface" on the out interface of the forwarding table item, containing RFID-ID (b), the validity period of 30 seconds, etc. At the same time, the router caches the multicast message sent by A (at this time, the router caches the message of A for the purpose of waiting for the trigger of door lock B, so as to forward to B), and the caching time is 120 seconds, which is automatically deleted after expiration (here, in order to prevent storing too many expired multicast messages). The router creates or updates the multicast forwarding table item (*, 226.1.1.10), in which the out interface of the "assisted interface" is connected to the door lock A, and the "assisted interface" multicast message of A containing RFID(b) is cached, waiting for the router to match the appropriate out interface of (*, 226.1.1.10) and then forward it out.
[0050] The door lock B detects the doorbell button information twice (at this time, b leaves the door lock A immediately after the invitation of a and returns to the door lock B, and presses the "doorbell" button twice on the door lock B), reads the RFID-ID (b) (at this time, b swipes the RFID (b) card on the door lock B), B extracts the RFID (b) and matches it with the RFID-ID number in the resident registration information table of B one by one, and matches successfully (at this time, RFID-ID (b) is the RFID-ID number in the resident registration information table of B), generates and sends the "assisted call" IGMP assistance message with the target address of 226.1.1.10 after detecting the doorbell button information twice (at this time, b presses the "doorbell" button twice on the door lock B to confirm the call robot), containing RFID-ID (b), door lock ID (B) and the like. At the same time, the door lock B caches the "assisted call" record, containing the assisted call robot ID (door lock ID (B) + timestamp), RFID-ID (b), timestamp and the like. The door lock B sends the IGMP message of "assisted call" to request the router to build the multicast forwarding table item of the exit connection B.
[0051] The router receives and parses the IGMP assistance message of "assisted call" sent by B, extracts the multicast group address 226.1.1.10 and RFID-ID (b), creates or updates the multicast forwarding table item (*, 226.1.1.10), adds "assisted interface" to the out-interface list of the forwarding table item, records RFID-ID (b) and a validity period of 30 seconds. At this time, when the router periodically matches the cached "assisted call" multicast packet according to RFID-ID (b) (at this time, the router caches the "assisted call" multicast packet sent by door lock A, which contains RFID-ID (b)), matches the "assisted interface" of the multicast forwarding table item (*, 226.1.1.10) containing RFID-ID (b) information, the router will forward the cached "assisted call" multicast packet sent by door lock A matched successfully to B through the "assisted interface" of the multicast forwarding table item (*, 226.1.1.10), and delete the cached multicast packet sent by door lock A (i.e. the "assisted call" multicast message sent by door lock A) after successful forwarding. The router builds the multicast forwarding table item with the out-interface record of door lock B, RFID-ID (b) and a validity period of 30 seconds, and queries the matching cache of A and forwards it to B.
[0052] The door lock B receives and extracts the message in the "assisted call" of A forwarded by the router, extracts the source IP address (the IP address of door lock A, door lock IP (A)), the assisted door lock ID (A), the RFID-ID (b), etc., and sends a reply "assistance confirmation" message to the door lock IP (A) after successfully matching the cached "assistance call" record through the RFID-ID (b), containing the RFID-ID (b), the door lock ID (B), and whether to confirm the call on behalf / is. The door lock A receives the "assistance confirmation" message of B, checks the "whether to confirm the call on behalf" result in the message as "yes", and then sends a "call robot" message to the platform, containing the door lock ID (A) and the like. At the same time, the door lock A stores the call robot record for reference, containing the door lock ID (A), whether to confirm the call on behalf / is, the call on behalf RFID / RFID (b), the call on behalf door lock / door lock ID (B), the time stamp (the clock of receiving the reply message of B), and the call robot record is automatically deleted after being stored for 1 year.
[0053] (6) Further improvement: The router receives the "assisted call" IGMP message sent by the door lock A, creates or updates the multicast forwarding table item (*, 226.1.1.10), registers the "assisted interface" on the out-interface of the forwarding table item, contains the RFID-ID (b) and the source IP address (A) of A, etc., and caches the "assisted call" multicast message sent by the door lock A. When the door lock B sends the "assistance call" IGMP assistance message carrying the RFID-ID (b), the router queries the "assisted interface" to obtain the source IP address according to the RFID-ID (b), and then matches the source IP address in the multicast message header, so as to quickly query the cached "assisted call" multicast message sent by A, and then the router forwards the multicast message to B through the "assistance interface".
[0054] In step (5), the router needs to frequently check and understand the internal information of the non-standard multicast message (such as the need to query and match the RFID number from the "assisted call" multicast message sent by the door lock A) for accurate forwarding, which will lead the router to deeply check the internal information of the multicast message, which will affect the performance of the router. Therefore, the improvement is as follows: Taking step (5) as an example, the implementation process is as follows: When the door lock A detects the doorbell button information twice, it reads the RFID-ID (b) and matches it with the RFID-ID numbers in the resident registration information table of A one by one. If no successful match is found, when the doorbell button information is detected twice, the door lock A sends two messages to the target IP address 226.1.1.10: first, an "assisted call" IGMP message containing the card number RFID-ID (b), a validity period of 30 seconds, etc.; and a "assisted call" multicast message containing the card number RFID-ID (b), a validity period of 30 seconds, etc. At the same time, A caches the call robot event, including the call event ID number (assisted door lock ID (A) + timestamp), RFID-ID (b), assisted door lock ID / pending, validity period = 60 seconds, etc., and then starts a 60-second countdown and waits. The door lock A sends the "assisted call" IGMP message and the "assisted call" multicast message to request the router to forward.
[0055] The router first receives and parses the "assisted call" IGMP message sent by A, extracts the multicast group address 226.1.1.10 and RFID-ID (b), creates or updates the multicast forwarding table item (*, 226.1.1.10), and registers the "assisted interface" on the out-interface list of the forwarding table item, records the source IP address (taken from the source IP of the IGMP message, i.e. the IP address of the door lock A door lock IP (A)), RFID-ID (b), a validity period of 30 seconds, the interface connected to door lock A, etc.; then the router receives and parses the "assisted call" multicast message sent by A, and caches the multicast packet (including the source IP of the packet header, etc.), with a caching time of 120 seconds and automatic deletion upon expiration. The router creates or updates the multicast forwarding table item (*, 226.1.1.10), associates door lock IP (A) with RFID-ID (b) on the out-interface of the "assisted interface", and caches the "assisted call" multicast message of A containing RFID(b), and waits to be forwarded out after the router matches the appropriate out-interface of (*, 226.1.1.10).
[0056] After detecting the doorbell button information twice, the door lock B reads the RFID-ID (b) and successfully matches it with the RFID-ID numbers in the resident registration information table of B, generates and sends an "assisted call" IGMP assistance message with the target address 226.1.1.10, containing RFID-ID (b), door lock ID (B), etc. At the same time, the door lock B caches the "assisted call" record, containing the assisted call robot ID (door lock ID (B) + timestamp), RFID-ID (b), timestamp, etc. The door lock B sends the "assisted call" IGMP message to request the router to build the multicast forwarding table item with B as the out-interface.
[0057] The router receives and parses the IGMP assist message of "assist call" sent by B, extracts the multicast group address 226.1.1.10 and the RFID-ID (b), creates or updates the multicast forwarding table item (*, 226.1.1.10), adds the "assist interface" in the out interface list of the forwarding table item, records the RFID-ID (b), the interface connected with B, etc. The router immediately queries the RFID-ID (b) and matches the RFID-ID number in the "assisted interface" of the multicast forwarding table item (*, 226.1.1.10) (at this time, the information recorded in the "assisted interface" contains the RFID-ID (b)), finds that the matching is successful, then queries the source IP address in the corresponding "assisted interface" with the RFID-ID (b) (at this time, the extracted is the lock IP (A)), then queries the cached multicast message with the lock IP (A) (at this time, the multicast message with the lock IP (A) address in the cache is the multicast message of "assisted call" sent by A, the multicast message can be directly queried from the multicast message header information without deeply understanding the internal information of the multicast message), and then the router transmits the queried multicast message out through the "assist interface" of the multicast forwarding table item (*, 226.1.1.10) (at this time, the "assist interface" corresponds to the interface of the lock B). The router queries the source IP address in the "assisted interface" through the RFID number carried by B, then queries the cached multicast message with the source IP address, and then transmits the multicast message from the "assist interface" to B. This method can not deeply analyze the content of the multicast message, but can directly match the source IP address in the multicast message header by associating the source IP address with the RFID number to accurately find the multicast message.
[0058] The lock B receives and extracts the multicast message in the "assisted call" of A forwarded by the router, extracts the source IP address (the lock IP (A) of the lock A), the assisted lock ID (A), the RFID-ID (b), etc., successfully matches the cached "assist call" event record through the RFID-ID (b), and unicast sends a reply "assist confirmation" message to the lock IP (A), which contains the RFID-ID (b), the lock ID (B), and whether to confirm the call on behalf / is. The lock A receives the "assist confirmation" message of B, checks the "whether to confirm the call on behalf" result in the message as "yes", and then sends a "call robot" message to the platform, which contains the lock ID (A), etc. At the same time, the lock A stores the call robot record for reference, which contains the lock ID (A), whether to confirm the call on behalf / is, the call on behalf RFID / RFID (b), the call on behalf lock / lock ID (B), the timestamp (the clock of receiving the reply message of B), and the call robot record is automatically deleted after being stored for 1 year.
[0059] (7) The platform receives the "summons robot" message sent by the door lock A, and assigns the robot to go to A for face recognition of the master a and unlock the door.
[0060] The implementation process is refined as follows: the platform receives and caches the "summons robot" message sent by the door lock A, schedules the robot (the scheduling of the robot is not the focus of the present application, and will not be described), sends the door lock ID (A), the door lock IP (A), etc. in the "summons robot" message to the robot, and sends a reply message to the door lock A that the robot has been dispatched. The door lock receives the reply message from the platform, and prompts "the robot has been successfully summoned, please wait" on the display screen of A. The robot receives the scheduling instruction from the platform, autonomously navigates to the door lock A according to the room ID (A) (autonomous navigation, autonomous walking, etc. of the robot are not the focus of the present application, and will not be described), and establishes a connection with the door lock A. Then, face recognition is performed for a, and the door is unlocked for a after the face recognition is successful.
[0061] The final implementation of summoning the robot by the neighbor is determined by the neighbor RFID card authorization, the cooperation of the door lock "doorbell" button, and the countdown confirmation of the platform for summoning the robot for the same RFID.
[0062] It can be seen that according to the preset trigger operation detected by the first door lock B and the RFID identification information read, an assistance request IGMP multicast message is generated and sent to the router; according to the assistance request IGMP multicast message, the interface information associated with the RFID identification information and the validity period are recorded in the multicast forwarding table item, and the multicast message is cached; according to the preset trigger operation detected by the second door lock A and the same RFID identification information read, an assisted request multicast message containing the RFID identification information is generated and sent to the router; according to the RFID identification information and the multicast forwarding table item, after verifying that the validity period has not expired, the message is directly forwarded to the first door lock B, and an assistance confirmation message is sent from the first door lock B to the second door lock A, triggering a robot summons instruction, so that low-delay and high-reliable door lock cooperative control can be achieved.
[0063] Another embodiment of the present application provides a multi-door lock cooperative processing system, as shown in Figure 3 , the system can include: The trigger module 301 is used for triggering assistance request and multicast registration: according to the preset trigger operation detected by the first door lock B and the RFID identification information read, an assistance request IGMP multicast message containing the RFID identification information and the validity period is generated and sent to the router; The construction module 302 is used for multicast forwarding table item construction and caching: according to the assistance request IGMP multicast message received by the router, the interface information associated with the RFID identification information and the validity period are recorded in the multicast forwarding table item, and the multicast message is cached; The forwarding module 303 is used for triggering and multicasting forwarding of the assisted door lock request: according to the preset trigger operation detected by the second door lock A and the same RFID identification information read, an assisted request multicasting message containing the RFID identification information is generated, and is sent to the router; The assisting module 304 is used for accurate message routing and assistance confirmation: according to the matching of the RFID identification information in the assisted request multicasting message and the multicasting forwarding table item by the router, after verifying that the validity period is not expired, the message is directed to the first door lock B, and an assistance confirmation message is sent from the first door lock B to the second door lock A, triggering a robot calling instruction.
[0064] It can be seen that according to the preset trigger operation detected by the first door lock B and the RFID identification information read, an assistance request IGMP multicasting message is generated and sent to the router; according to the assistance request IGMP multicasting message, the interface information associated with the RFID identification information and the validity period are recorded in the multicasting forwarding table item, and the multicasting message is cached; according to the preset trigger operation detected by the second door lock A and the same RFID identification information read, an assisted request multicasting message containing the RFID identification information is generated and sent to the router; according to the RFID identification information and the multicasting forwarding table item, after verifying that the validity period is not expired, the message is directed to the first door lock B, and an assistance confirmation message is sent from the first door lock B to the second door lock A, triggering a robot calling instruction, so that low-delay and high-reliable door lock cooperative control can be realized.
[0065] The embodiment of the application also provides a storage medium, wherein the storage medium stores a computer program, and the computer program is set to execute the steps in any one of the method embodiments.
[0066] Specifically, in the embodiment, the above-mentioned storage medium can be set to store a computer program for executing the following steps: S201, triggering assistance request and multicasting registration: according to the preset trigger operation detected by the first door lock B and the RFID identification information read, an assistance request IGMP multicasting message containing the RFID identification information and the validity period is generated, and is sent to the router; S202, multicasting forwarding table item construction and caching: according to the assistance request IGMP multicasting message received by the router, the interface information associated with the RFID identification information and the validity period are recorded in the multicasting forwarding table item, and the multicasting message is cached; S203, assisted door lock request triggering and multicasting forwarding: according to the preset trigger operation detected by the second door lock A and the same RFID identification information read, an assisted request multicasting message containing the RFID identification information is generated, and is sent to the router; S204, accurate message routing and assistance confirmation: according to the router matching the RFID identification information in the assisted request multicast message and the multicast forwarding table item, after verifying that the validity period has not expired, the message is forwarded to the first door lock B, and the assistance confirmation message is sent to the second door lock A by the first door lock B, triggering the robot calling instruction.
[0067] It can be seen that according to the preset trigger operation detected by the first door lock B and the read RFID identification information, the assistance request IGMP multicast message is generated and sent to the router; according to the assistance request IGMP multicast message, the interface information associated with the RFID identification information and the validity period are recorded in the multicast forwarding table item, and the multicast message is cached; according to the preset trigger operation detected by the second door lock A and the read same RFID identification information, the assisted request multicast message containing the RFID identification information is generated and sent to the router; according to the RFID identification information and the multicast forwarding table item, after verifying that the validity period has not expired, the message is forwarded to the first door lock B, and the assistance confirmation message is sent to the second door lock A by the first door lock B, triggering the robot calling instruction, so that low-delay and high-reliable door lock cooperative control can be realized.
[0068] The embodiment of the application also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the method embodiments.
[0069] Specifically, the above-mentioned electronic device can further include a transmission device and an input-output device, wherein the transmission device is connected with the above-mentioned processor, and the input-output device is connected with the above-mentioned processor.
[0070] Specifically, in the embodiment, the above-mentioned processor can be configured to execute the following steps through the computer program: S201, trigger assistance request and multicast registration: according to the preset trigger operation detected by the first door lock B and the read RFID identification information, the assistance request IGMP multicast message containing the RFID identification information and the validity period is generated and sent to the router; S202, multicast forwarding table item construction and caching: according to the assistance request IGMP multicast message received by the router, the interface information associated with the RFID identification information and the validity period are recorded in the multicast forwarding table item, and the multicast message is cached; S203, assisted door lock request trigger and multicast forwarding: according to the preset trigger operation detected by the second door lock A and the read same RFID identification information, the assisted request multicast message containing the RFID identification information is generated and sent to the router; S204, accurate message routing and assistance confirmation: according to the router matching the RFID identification information in the assisted request multicast message and the multicast forwarding table item, after verifying that the validity period has not expired, the message is forwarded to the first door lock B, and the assistance confirmation message is sent to the second door lock A by the first door lock B, triggering the robot calling instruction.
[0071] It can be seen that according to the preset trigger operation detected by the first door lock B and the read RFID identification information, the assistance request IGMP multicast message is generated and sent to the router; according to the assistance request IGMP multicast message, the interface information associated with the RFID identification information and the validity period are recorded in the multicast forwarding table item, and the multicast message is cached; according to the preset trigger operation detected by the second door lock A and the read same RFID identification information, the assisted request multicast message containing the RFID identification information is generated and sent to the router; according to the RFID identification information and the multicast forwarding table item, after verifying that the validity period has not expired, the message is forwarded to the first door lock B, and the assistance confirmation message is sent to the second door lock A by the first door lock B, triggering the robot calling instruction, so as to realize low-delay and high-reliable door lock cooperative control.
[0072] The above describes the structure, features and effects of the application in detail according to the embodiments shown in the drawings. The above description is only the preferred embodiments of the application, but the application is not limited by the drawings. Any changes or modifications made in accordance with the concept of the application, or equivalent embodiments with equivalent changes, are still within the scope of the application.
Claims
1. A method for collaborative processing of multiple door locks, characterized in that: The method comprises: Triggering assistance request and multicast registration: Based on the preset trigger operation detected by the first door lock B and the read RFID identification information, an assistance request IGMP multicast message containing the RFID identification information and validity period is generated and sent to the router; Multicast forwarding table entry construction and caching: Based on the assistance request IGMP multicast message received by the router, the interface information and validity period associated with the RFID identification information are recorded in the multicast forwarding table entry, and the multicast message is cached; Assisted door lock request triggering and multicast forwarding: Based on the preset trigger operation detected by the second door lock A and the same RFID identification information read, an assisted request multicast message containing the RFID identification information is generated and sent to the router; Accurate message routing and assistance confirmation: The router matches the RFID identification information in the assistance request multicast message with the multicast forwarding table entry, verifies that the validity period has not expired, and then forwards the message to the first door lock B. The first door lock B then sends an assistance confirmation message to the second door lock A, triggering the robot summon command.
2. The method according to claim 1, characterized in that The triggering of the assistance request and the multicast registration includes: Trigger operation detection: When the first door lock B detects two consecutive doorbell button presses, the assistance request process is started and the countdown begins; RFID identification verification: The RFID identification information read during the countdown is compared with the resident registration list of the first door lock B. If there is no match, an abnormal prompt containing the RFID identification is generated; Multicast message generation: upon detecting two consecutive doorbell button presses, an IGMP multicast message is generated that carries the RFID identifier, validity period, and door lock ID. Multicast message sending: The IGMP multicast message is sent to the preset multicast address through the router, triggering the router to record the interface binding relationship including the RFID identifier and the validity period.
3. The method according to claim 2, characterized in that The multicast forwarding table entry construction and caching includes: Interface information registration: Based on the RFID identifier and source IP address in the IGMP multicast message parsed by the router, the interface connected to the first door lock B is marked as an auxiliary interface in the multicast forwarding table and associated with a validity period; Message cache management: cache complete IGMP multicast messages, set cache timeout, and automatically delete if no match is found within the timeout period; Conflict handling: When multiple door locks send IGMP multicast messages carrying different RFID identifiers at the same time, the router independently records the binding relationship between each RFID identifier and the interface.
4. The method according to claim 3, characterized in that The assisted door lock request triggering and multicast forwarding includes: Assisted operation detection: When the second door lock A detects two consecutive doorbell button presses, the assisted request process is started and the countdown begins; RFID identification matching: The same RFID identification information read during the countdown is compared with the resident registration list of the second door lock. If there is no match, a multicast message requesting assistance is generated; Multicast message encapsulation: encapsulates the RFID identifier, the door lock ID of the second door lock A, and the request type into the assisted request multicast message; Directed multicast message sending: The router sends the assistance request multicast message to the same multicast address, triggering the router's matching forwarding logic.
5. The method according to claim 4, characterized in that The precise message routing and assistance confirmation include: RFID identifier matching: The router extracts the RFID identifier from the assisted request multicast message and queries the associated assisting interface in the multicast forwarding table. Validity verification: If the validity period of the assisting interface has not expired, the message is forwarded to the interface of the first door lock B; Assistance confirmation processing: Based on the assisted request multicast message received by the first door lock B, the consistency of the RFID identifier and the cache record is verified, and a unicast reply message carrying the confirmation result is generated; Robot summon trigger: Based on the confirmation result received by the second door lock A, a robot summon instruction is sent to the platform and the operation log is recorded.
6. The method according to claim 5, characterized in that The robot summon trigger includes: Instruction packaging: Generate robot dispatch instructions containing target location and permission verification parameters based on the door lock ID and RFID identification in the confirmation result; Platform interaction: The platform sends dispatch instructions to the robot, triggering the robot to navigate to the location of the second door lock A; Face recognition authorization: The robot compares the user's face information collected after arrival with the resident registration form pre-stored on the platform. After successful verification, the second door lock A is unlocked.
7. A system for collaborative processing of multiple door locks, characterized in that: The system comprises: A trigger module, configured to trigger an assistance request and multicast registration: based on a preset trigger operation detected by the first door lock B and the read RFID identification information, generates an assistance request IGMP multicast message containing the RFID identification information and a validity period, and sends the message to the router; A construction module is used for constructing and caching multicast forwarding table entries: according to the assistance request IGMP multicast message received by the router, the interface information and validity period associated with the RFID identification information are recorded in the multicast forwarding table entry, and the multicast message is cached; The forwarding module is used for triggering and multicast forwarding the assisted door lock request: based on the preset trigger operation detected by the second door lock A and the same RFID identification information read, it generates an assisted request multicast message containing the RFID identification information and sends it to the router; The assistance module is used for accurate message routing and assistance confirmation: the router matches the RFID identification information in the assistance request multicast message with the multicast forwarding table item, and after verifying that the validity period has not expired, the message is forwarded to the first door lock B, and the first door lock B sends an assistance confirmation message to the second door lock A, triggering the robot summon command.
8. The system according to claim 7, characterized in that The trigger module is specifically used to: Trigger operation detection: When the first door lock B detects two consecutive doorbell button presses, the assistance request process is started and the countdown begins; RFID identification verification: The RFID identification information read during the countdown is compared with the resident registration list of the first door lock B. If there is no match, an abnormal prompt containing the RFID identification is generated; Multicast message generation: upon detecting two consecutive doorbell button presses, an IGMP multicast message is generated that carries the RFID identifier, validity period, and door lock ID. Multicast message sending: The IGMP multicast message is sent to the preset multicast address through the router, triggering the router to record the interface binding relationship including the RFID identifier and the validity period.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Intelligent lock safety system with autonomous recognition ability and operating method
CN107845172A
Access control method and system based on intelligent door lock
CN120071482A
Quick door opening method and system based on pan-tilt door lock
CN120299120A
Talkback method and system based on label door lock cooperation
CN120343535A
Reliable lockdown communication in wireless electronic locks
US20250208791A1
Cited By
Door lock continuous entrusted purchase method and system
CN121052815A
Multi-door-lock collaborative community mutual assistance method and system
CN121052835A
A multi-door lock cooperative community mutual assistance method and system
CN121052835B
Method and system for cooperation of door lock and multiple assistants
CN121052837A
Method and system for coordinating a door lock with multiple assistants
CN121052837B