A contactless collaborative scheduling door opening method and system based on an intelligent lock platform
By adopting the contactless collaborative scheduling method in the smart door lock system, the problem of insufficient permission management and scheduling mechanism in the multi-user environment is solved, efficient, safe and convenient entry and exit management is achieved, improving the visitor experience and enhancing the system security.
Patent Information
- Application Number
- CN202510332410.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2045-03-20
AI Technical Summary
The existing smart door lock system lacks effective permission management and scheduling mechanisms in a multi-user environment, resulting in difficulty in verifying the identity of the visitor, cumbersome door opening process, poor guest experience, and security risks.
The contactless collaborative scheduling door opening method based on the smart lock platform is adopted. By receiving the visitors' unlock request message and the door lock read mobile phone messages, searching the visitor information table to determine the accessible owner APP-ID, and looking up the door lock IP address based on the door lock ID, and forwarding messages to schedule the door lock opening.
A more efficient, safe and convenient access management solution is achieved, reducing management chaos and inefficiency, improving visitor experience and enhancing the security of the system.
Smart Images

Figure CN119863857B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent door locks, and particularly relates to a contactless collaborative scheduling door opening method and system based on an intelligent lock platform. Background Art
[0002] With the rapid development of smart home and Internet of Things technologies, intelligent door locks, as an important part of modern residential and commercial buildings, have gradually been widely used in the needs of security and convenience. Traditional door lock systems rely on physical keys or password input to control access. However, this method has certain deficiencies in terms of security, convenience, and user experience. With the popularization of mobile devices and NFC (Near Field Communication) technology, contactless door opening methods have gradually become a trend, which can effectively improve the convenience and security of visitors.
[0003] In traditional access control management systems, visitors often need to rely on human assistants for identity verification when entering specific places, which is prone to causing management chaos and low efficiency. Especially in high-traffic places such as hotels, apartments, or offices, managers often face problems such as difficult visitor identity verification, cumbersome door opening processes, and poor visitor experiences. In addition, existing technologies lack effective permission management and scheduling mechanisms in multi-user environments, often leading to poor communication between visitors and hosts and easily causing potential safety hazards. Summary of the Invention
[0004] The purpose of the present invention is to provide a contactless collaborative scheduling door opening method and system based on an intelligent lock platform to solve the deficiencies in the prior art and be able to provide a more efficient, secure, and convenient access management solution.
[0005] An embodiment of the present application provides a contactless collaborative scheduling door opening method based on an intelligent lock platform, and the method includes:
[0006] Receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported after the intelligent door lock senses a nearby mobile phone, where the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0007] According to the unlocking request message and the visitor information table saved in the intelligent lock management platform, searching for the master APP-ID that the current visitor APP-ID can access, where the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: master APP-ID, door lock-ID, visitor APP-ID, and access validity period;
[0008] If the number of currently accessible master APP-IDs does not exceed the preset quantity, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located;
[0009] According to the NFC-ID in the mobile phone message read by the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0010] If it is within the access validity period, find the door lock IP address according to the door lock ID from the door lock list, put the door lock IP address into the mobile phone message read by the door lock, and forward the obtained current first mobile phone message read by the door lock to the corresponding master APP, so that the master APP can schedule the corresponding door lock to open according to the unlocking request message and the current first mobile phone message read by the door lock, where the door lock list includes the door lock ID, the door lock IP address, and the door lock geographical location.
[0011] Optionally, the master APP schedules the corresponding door lock to open according to the unlocking request message and the current first mobile phone message read by the door lock, including:
[0012] After the master APP receives one of the unlocking request message or the current first mobile phone message read by the door lock, if the other message is not received within the preset waiting period, discard the first received message;
[0013] When the master APP receives the unlocking request message and the current first mobile phone message read by the door lock, judge whether the visitor APP-ID is within the access validity period of allowing access to its own door lock from the visitor information table. If so, extract the door lock ID and the door lock IP address from the current first mobile phone message read by the door lock, and send an opening message to the corresponding door lock to open the door.
[0014] Optionally, the method further includes:
[0015] If the number of currently accessible master APP-IDs exceeds the preset quantity, package all the currently accessible host APP-IDs and the corresponding mobile phone IP addresses of the visitor, as well as the visitor APP-ID, to obtain a master set discussion message;
[0016] Try to connect to each master APP until one of the master APPs is connected, and send the master set discussion message to this master APP, and this master APP serves as the host APP;
[0017] According to the NFC-ID in the mobile phone message read by the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0018] If within the access validity period, the door lock IP address is found from the door lock list according to the door lock ID, the door lock IP address and the visitor APP-ID are put into the door lock reading mobile phone message, and the obtained current second door lock reading mobile phone message is forwarded to the corresponding master APP-ID;
[0019] The host APP schedules the corresponding door lock to open according to the master set discussion message and the current second door lock reading mobile phone message.
[0020] Optionally, the host APP schedules the corresponding door lock to open according to the master set discussion message and the current second door lock reading mobile phone message, including:
[0021] After receiving the master set discussion message, the host APP-ID sends the door lock master opening message containing the visitor APP-ID to other master APPs respectively;
[0022] After each master APP receives the door lock master opening message, it is retained for a preset duration. When the master APP corresponding to the door lock receives the current second door lock reading mobile phone message, by comparing the visitor APP-ID in the door lock master opening message with the visitor APP-ID in the current second door lock reading mobile phone message, if they are the same, it is determined whether the visitor APP-ID is within the access validity period for accessing its own door lock. If so, the door lock ID and the door lock IP address are extracted from the current second door lock reading mobile phone message, and an opening message is sent to the corresponding door lock to open the door.
[0023] Another embodiment of the present application provides a contactless collaborative scheduling door opening system based on an intelligent lock platform. The system includes:
[0024] A receiving module for receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock when it senses a nearby mobile phone. Among them, the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0025] A searching module for searching for the master APP-ID that the visitor APP-ID can currently access according to the unlocking request message and the visitor information table stored in the intelligent lock management platform. Among them, the visitor information table receives and stores each piece of visitor information, and each piece of visitor information includes: master APP-ID, door lock-ID, visitor APP-ID, access validity period;
[0026] A forwarding module for, if the number of currently accessible master APP-IDs does not exceed a preset number, forwarding the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located;
[0027] The first judgment module is used to read the NFC-ID in the mobile phone message according to the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0028] The door opening module is used to, if within the access validity period, find the door lock IP address from the door lock list according to the door lock ID, put the door lock IP address into the door lock reading mobile phone message, and forward the obtained current first door lock reading mobile phone message to the corresponding master APP, so that the master APP can dispatch the corresponding door lock to open the door according to the unlocking request message and the current first door lock reading mobile phone message, where the door lock list includes the door lock ID, the door lock IP address, and the door lock geographical location.
[0029] Another embodiment of the present application provides a storage medium in which a computer program is stored, where the computer program is set to execute the method described in any one of the above when running.
[0030] Another embodiment of the present application provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is set to run the computer program to execute the method described in any one of the above.
[0031] Compared with the prior art, a contactless collaborative scheduling door opening method based on an intelligent lock platform provided by the present invention finds the master APP-ID that the visitor APP-ID can currently access according to the unlocking request message and the visitor information table; if the number of master APP-IDs that can be currently accessed does not exceed the preset number, the unlocking request message is forwarded to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located; the visitor APP-ID and the mobile phone IP are found according to the NFC-ID in the door lock reading mobile phone message, and it is judged whether the visitor APP-ID is within the access validity period; if so, the door lock IP address is found, the door lock IP address is put into the door lock reading mobile phone message, and the current first door lock reading mobile phone message is forwarded to the corresponding master APP, so that the master APP can dispatch the corresponding door lock to open the door, thereby being able to provide a more efficient, safe and convenient access management solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a hardware structure block diagram of a computer terminal of a contactless collaborative scheduling door opening method based on an intelligent lock platform provided by an embodiment of the present invention;
[0033] Figure 2 It is a flowchart of a contactless collaborative scheduling door opening method based on an intelligent lock platform provided by an embodiment of the present invention;
[0034] Figure 3 The structural schematic diagram of a contactless collaborative scheduling door opening system based on an intelligent lock platform provided by an embodiment of the present invention. Specific embodiments
[0035] 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.
[0036] An embodiment of the present invention first provides a contactless collaborative scheduling door opening method based on an intelligent lock platform. This method can be applied to electronic devices, such as computer terminals, specifically, ordinary computers, etc.
[0037] The following takes running on a computer terminal as an example to describe it in detail. Figure 1 The hardware structure block diagram of a computer terminal for a contactless collaborative scheduling door opening method based on an intelligent lock platform provided by an embodiment of the present invention. As Figure 1 shown, the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory can include a non-volatile storage medium and an internal memory.
[0038] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions. When the program instructions are executed, the processor can execute any contactless collaborative scheduling door opening method based on an intelligent lock platform.
[0039] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
[0040] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any contactless collaborative scheduling door opening method based on an intelligent lock platform.
[0041] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 1 the structure shown in
[0042] It should be understood that the processor may be a Central Processing Unit (CPU), and the processor may 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 them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0043] See Figure 2 , an embodiment of the present invention provides a contactless collaborative scheduling door opening method based on an intelligent lock platform, which may include the following steps:
[0044] S201, receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported after the intelligent door lock senses a nearby mobile phone. Among them, the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0045] The core of this step is to receive unlocking request information from the visitor or visitor mobile phone information actively sensed and reported by the intelligent door lock. The unlocking request message contains the visitor's identity information (APP-ID and NFC-ID) and the request time, while the mobile phone message read by the door lock records the unique identification information of the door lock (door lock ID) and the NFC-ID and reporting time of the mobile phone. This means that the system can simultaneously obtain the user's request and the status of the door lock, thereby laying a foundation for subsequent identity verification and unlocking operations.
[0046] This step ensures that the system can timely obtain key information when the visitor requests and the door lock senses the visitor. Through this mechanism, the system can effectively distinguish different visitors and effectively manage and process their access requests. This can improve the security of the intelligent door lock, enabling only authorized visitors to perform unlocking operations and reducing potential security risks.
[0047] For example, when visitor Xiaoming is at the door of Xiaogang's house, his mobile phone establishes a connection with the door lock through NFC technology. At the same time, Xiaoming also sends an unlocking request on the mobile phone APP. At this time, the door lock senses Xiaoming's mobile phone, records the NFC-ID of the mobile phone and the ID of the door lock, and then reports this information to the intelligent lock management platform. At the same time, Xiaoming's request also includes his APP-ID and the request time. After receiving this information, the system can start the next step of verification and processing.
[0048] S202, according to the unlocking request message and the visitor information table saved in the intelligent lock management platform, find the master APP-ID that the current visitor APP-ID can access. Among them, the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: master APP-ID, door lock-ID, visitor APP-ID, access validity period;
[0049] After receiving the unlocking request, the system will search according to the visitor's information and the saved visitor information table to find the master APP-ID that matches the visitor APP-ID. The visitor information table is a summary of the access relationship between visitors and the master, including which visitors can access the master's door lock at what time and place. This step ensures the verification of the visitor's permissions. Only when the visitor is within the valid access period can they be allowed to unlock the door. Through this search step, the system can effectively manage the access permissions of different visitors to the master's door lock. Ensure that only within the set validity period can the visitor obtain the unlocking permission, thereby increasing the security of the system and avoiding unauthorized access behavior.
[0050] Suppose Xiaoming's APP-ID is "V001", and Xiaogang's APP-ID is "H001". Xiaogang records Xiaoming's access information in the system and allows Xiaoming to access his door lock within a certain time period. When the system receives Xiaoming's request, the system will check the visitor information table and find that Xiaoming's APP-ID can access Xiaogang's APP-ID. After confirming Xiaoming's access validity period, the system will be ready to forward the unlocking request to Xiaogang's APP to ensure that this request can be processed subsequently.
[0051] S203, if the number of currently accessible master APP-IDs does not exceed the preset quantity, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located;
[0052] When the number of accessible master APP-IDs does not exceed the preset threshold, the system will forward the unlocking request message to the corresponding master APP. This step uses the IP address of the mobile phone where the master APP is located to ensure that the information can be accurately and timely delivered to the master's device, thereby facilitating the processing of the unlocking request.
[0053] This mechanism effectively enhances the response speed and flexibility of the system. If there are only a few masters who can be accessed, the system can directly send requests to these masters to complete the unlocking operation more quickly. In this way, visitors can enter and exit more rapidly, improving the usage experience.
[0054] Taking Xiaoming and Xiaogang as examples, assume that Xiaogang has a smartphone with an IP address of "192.168.1.2". When the system confirms that Xiaoming's APP-ID can access Xiaogang's door lock and the number of master APP-IDs that can be accessed currently is only 1 (i.e., Xiaogang's APP-ID), the system will forward Xiaoming's unlocking request message to Xiaogang's APP via the network. At the same time, after receiving the request, Xiaogang's APP can respond quickly.
[0055] S204, According to the NFC-ID in the mobile phone message read by the door lock, find the corresponding visitor APP-ID and mobile phone IP in the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0056] In this step, the system finds the associated visitor APP-ID and the IP address of the mobile phone corresponding to the NFC-ID in the mobile phone message read by the door lock from the user list. Subsequently, the system further checks whether the visitor APP-ID is within the access validity period in the visitor information table. This step ensures that only visitors within the validity period can obtain the unlocking permission, guaranteeing the security of the door lock.
[0057] By strictly checking the validity of visitors, the system can effectively prevent expired or unauthorized access, thus ensuring the security of the unlocking operation. This additional verification process effectively reduces potential security risks and ensures the high reliability of the door lock system.
[0058] Assume that the NFC-ID in the mobile phone message read by the door lock is "NFC123". The system searches for this NFC-ID in the user list and finds that the corresponding visitor APP-ID is "Xiaoming", and at the same time obtains the IP address of Xiaoming's mobile phone. Then, the system checks Xiaoming's visitor information table to confirm whether he is within the valid access period. If Xiaoming's validity period is still valid, the system will continue to process the unlocking request to ensure the safe and efficient operation of the smart door lock.
[0059] S205, if within the access validity period, look up the door lock IP address from the door lock list according to the door lock ID, put the door lock IP address into the door lock reading mobile phone message, and forward the obtained current first door lock reading mobile phone message to the corresponding owner APP, so that the owner APP can dispatch the corresponding door lock to open the door according to the unlocking request message and the current first door lock reading mobile phone message, where the door lock list includes the door lock ID, the door lock IP address, and the door lock geographical location.
[0060] After confirming that the visitor is within the validity period, the system will retrieve the corresponding door lock IP address from the door lock list and embed it into the current door lock reading mobile phone message. Subsequently, the system will send this updated message to the corresponding owner APP so that it can perform door lock dispatching and unlocking operations based on the relevant information.
[0061] This step is a key link in the entire unlocking process, ensuring the accurate transmission of information and corresponding unlocking operations. By combining the door lock IP address with the visitor information, the system can effectively guide the owner to control the door lock, thereby enhancing the convenience of using the smart door lock.
[0062] For example, assume that the system confirms that Xiaoming is still within the access validity period and the door lock ID is "LOCK001". The system looks up the door lock list and finds the corresponding door lock IP address "192.168.1.5". The system adds this information to the current door lock reading mobile phone message and then sends the message to Xiaogang's APP. After receiving this message, Xiaogang's APP can dispatch the door lock to open according to Xiaoming's request and the status of the door lock, realizing a contactless door opening experience.
[0063] Specifically, when the owner APP receives one of the unlocking request message or the current first door lock reading mobile phone message, if it does not wait for the other message within the preset waiting period, it discards the first received message;
[0064] When the owner APP receives the unlocking request message and the current first door lock reading mobile phone message, it judges whether the visitor APP-ID is within the access validity period of allowing access to its own door lock from the visitor information table. If so, it extracts the door lock ID and the door lock IP address from the current first door lock reading mobile phone message and sends an opening message to the corresponding door lock to open the door.
[0065] Specifically, if the number of currently accessible owner APP-IDs exceeds the preset quantity, pack all the currently accessible host APP-IDs and corresponding mobile phone IP addresses of the visitor, as well as the visitor APP-ID, to obtain the owner set discussion message;
[0066] Attempt to connect to each master APP until one of them is connected. Send the master set discussion message to this master APP, and this master APP serves as the host APP.
[0067] Read the NFC-ID in the mobile phone message according to the door lock, search for the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table.
[0068] If it is within the access validity period, search for the door lock IP address according to the door lock ID from the door lock list, put the door lock IP address and the visitor APP-ID into the mobile phone message read by the door lock, and forward the obtained current second mobile phone message read by the door lock to the corresponding master APP-ID.
[0069] The host APP schedules the corresponding door lock to open according to the master set discussion message and the current second mobile phone message read by the door lock.
[0070] Specifically, after receiving the master set discussion message, the host APP-ID sends a message asking the door lock owner to open the door containing the visitor APP-ID to other master APPs respectively.
[0071] After each master APP receives the message asking the door lock owner to open the door, it retains it for a preset duration. When the master APP corresponding to the door lock receives the current second mobile phone message read by the door lock, by comparing the visitor APP-ID in the message asking the door lock owner to open the door with the visitor APP-ID in the current second mobile phone message read by the door lock, if they are the same, judge whether the visitor APP-ID is within the access validity period for allowing access to its own door lock. If so, extract the door lock ID and the door lock IP address from the current second mobile phone message read by the door lock, and send an open door message to the corresponding door lock to open the door.
[0072] Exemplarily, preset conditions:
[0073] An intelligent door lock is installed on the master's entrance door (each door lock has an independent ID, door lock IP address, door lock geographical location, etc.), and it is connected to the cloud platform, registered with the platform, and updated periodically. The platform records the door lock list, including the door lock ID, door lock IP address, door lock geographical location, etc.
[0074] The mobile phones of the master and the visitor are both installed with APPs. Each APP has a unique ID (such as the username + mobile phone number used during registration), and supports reporting the APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP, etc. to the platform, and updating periodically. The platform records the user list, and the user list includes: serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, the mobile phone IP where the user APP is located, other user information, etc.
[0075] Application before the visitor visits the host's home:
[0076] The visitor sends their APP-ID to the host. The host fills in the visitor's APP-ID in their own APP and reports a "visitor registration" message to the platform, which includes: the host's APP-ID, the door lock-ID, the visitor's APP-ID, and the validity period. At the same time, a local copy of the visitor information form reported by themselves is saved in the APP, including the door lock-ID, the visitor's APP-ID, and the validity period.
[0077] The platform saves the visitor information form, including the host's APP-ID, the door lock-ID, the visitor's APP-ID, the validity period, etc., as shown in the following table. Assume that the host's APP is APP-host, the door lock ID is door lock-host, and the mobile phone NFC-host; the APP of visitor 1 is APP-guest1, the door lock ID is door lock-guest1, and the mobile phone NFC-guest1; the APP of visitor 2 is APP-guest2, the door lock ID is door lock-guest2, and the mobile phone NFC-guest2. The visitor information form saved by the platform is shown in Table 1.
[0078] Table 1
[0079]
[0080] Processing when the visitor arrives at the host's home:
[0081] When visitor guest1 arrives at the host's doorstep and opens the mobile APP and clicks the unlock button (the key here is that it is not required for the visitor to explicitly select which room, even if the visitor has the permission to access multiple rooms at this time point), the visitor's APP reports an "unlock request" message to the platform, which includes: the visitor's APP-ID, the visitor's mobile phone NFC-ID, and the sending time. Designing for the visitor's APP to actively report is to avoid the situation where when the visitor passes by the host's gate temporarily without the need to unlock, the gate is wrongly opened, causing a security risk.
[0082] The platform saves the message content, and the visitor unlock request message saved by the platform is shown in Table 2.
[0083] Table 2
[0084]
[0085] When the door lock senses the mobile phone NFC nearby, it reads the NFC-ID of the nearby mobile phone and reports a "door lock reads mobile phone" message to the platform, which includes: the door lock ID, the NFC-ID of the mobile phone, and the sending time. Designing for the door lock to report after reading the mobile phone information is to avoid the situation where when the visitor is not at the host's doorstep (such as going to the wrong place or remote misoperation), the platform only checks and opens the door based on the visitor's APP information, causing a security risk.
[0086] The platform saves the message content. The message read by the door lock saved by the platform is shown in Table 3.
[0087] Table 3
[0088]
[0089] When the host fills in the visitor APP-ID in their own APP and reports the "visitor registration" message to the platform, which includes information such as the host APP-ID, door lock-ID, visitor APP-ID, validity period, etc. The APP locally saves a copy of the visitor information table it reported, including the door lock-ID, visitor APP-ID, and validity period.
[0090] When the visitor wants to enter the host's home, they bring their mobile phone close to the door lock, open the mobile APP, and click the unlock button. The mobile APP will submit an "unlock request" message to the platform, which includes the visitor APP-ID, the visitor's mobile phone NFC-ID, and the sending time.
[0091] After the platform receives it, it extracts the visitor APP-ID in the message and determines which host homes this visitor APP-ID is suitable to access at this time point from Table 1, that is, according to the visitor APP-ID, it finds the table entries whose "validity period" covers the current time point, and the corresponding host APP-ID is the host home that this visitor can access. For example, at this time, the visitor guest1 can access host and host2. Then, the platform forwards the "unlock request" message according to the IP address of the mobile phone where the host APP is located (the specific method to obtain the mobile phone IP address is to find the corresponding host mobile phone IP address from the user list maintained locally according to the host APP-ID), and forwards the message to APP-host and APP-host2 (before the platform forwards the message to the host APP, it needs to first determine whether the host APP is in a connectable state. If it is not connectable, it means that the host APP is not activated or powered off. At this time, the platform needs to switch to its own processing mode).
[0092] When the door lock host senses a nearby mobile phone NFC, it reads the NFC-ID of the nearby mobile phone and reports a "door lock reads mobile phone" message to the platform, which contains: door lock ID, NFC-ID of the mobile phone, and sending time. The platform finds the corresponding APP-ID and mobile phone IP from the locally maintained user list according to the NFC-ID, and judges whether the visitor APP-ID is within the validity period according to Table 1. If so, it finds the door lock IP address from the locally maintained door lock list according to the door lock ID, inserts the door lock IP address into the "door lock reads mobile phone" message, and forwards the message to the corresponding master APP-ID (the method to obtain the master APP-ID is to find the master APP-ID of this door lock according to the door lock ID in Table 1. Before the platform forwards the message to the master APP, it needs to first judge whether the master APP is in a connectable state. If it is not connectable, it means that the master APP is not activated or powered off. At this time, the platform needs to switch to its own processing mode).
[0093] After the master APP receives one of the above two messages, it starts to wait for the other message for a duration of 5 minutes (which can be set by the administrator). If it does not wait for the other message, it discards the first message received (obviously, the door lock-host2 will not send a "door lock reads mobile phone" message). When the master APP receives two messages, it judges whether the visitor APP-ID is within the validity period of allowing access to its own door lock from the locally saved table. If so, it extracts the door lock ID and door lock IP address from the "door lock reads mobile phone" message and sends an open door message to the door lock. If it is not legal, it discards the above two messages.
[0094] After the platform receives an "unlock request" message from the visitor guest1, it sends messages to all host APPs that the visitor guest1 can currently access, which consumes a large amount. The improvement is as follows:
[0095] The platform forms a list of all host APP-IDs that the visitor guest1 can currently access and the corresponding mobile phone IP addresses, packs them into a "master set discussion" message, and the "master set discussion message" also contains the visitor APP-ID; and tries to connect to the first master APP. If it cannot connect, it tries to connect to the second master APP, and so on, until it can connect to one of the master APPs, sends the "master set discussion" message to this master APP, and immediately releases the resources. This master APP is called the host APP-ID.
[0096] When the door lock host senses a nearby mobile phone's NFC, it reads the NFC-ID of the nearby mobile phone and reports the "door lock reads mobile phone" message to the platform, which includes: the door lock ID, the NFC-ID of the mobile phone, and the sending time. The platform finds the corresponding visitor APP-ID and mobile phone IP from the locally maintained user list based on the NFC-ID, and determines whether the visitor APP-ID is within the valid period according to Table 1. If so, it finds the door lock IP address from the locally maintained door lock list based on the door lock ID, puts the door lock IP address and the visitor APP-ID into the "new door lock reads mobile phone" message, and forwards the message to the corresponding master APP-ID (the method to obtain the master APP-ID is to find the master APP-ID of this door lock according to the door lock ID in Table 1. Before the platform forwards the message to the master APP, it needs to first determine whether the master APP is in a connectable state. If it is not, it means the master APP is not activated or powered off. At this time, the platform needs to switch to its own processing mode).
[0097] After receiving the message, the host APP-ID sends the "please ask the door lock owner to open the door" message to the master APPs sorted later in the list, which includes the visitor APP-ID (the reason for only sending the query message to the master APPs sorted later is that the master APPs sorted earlier are not in a connectable state). Each master APP retains the above "please ask the door lock owner to open the door" message for 5 minutes. When the master APP corresponding to the door lock receives the "new door lock reads mobile phone" message, by comparing the visitor APP-ID in the "ask the door lock owner" message with the visitor APP-ID in the "new door lock reads mobile phone", if they are the same, it determines whether the visitor APP-ID is within the permitted access time period. If so, it sends an open door message to the door lock.
[0098] Beneficial effects: The platform intervenes in the specific business process and only forwards, reducing the computing consumption. When the user submits an "unlock request", there is no need to specify which master's door lock to open, and the system automatically processes it. The platform does not need to send messages to all master APPs separately, but only to one of the active APPs.
[0099] It can be seen that according to the unlocking request message and the visitor information table, the master APP-ID that the visitor APP-ID can currently access is searched for; if the number of master APP-IDs that can be currently accessed does not exceed the preset quantity, according to the IP address of the mobile phone where the master APP-ID is located, the unlocking request message is forwarded to the master APP that can be currently accessed; according to the NFC-ID in the message read by the door lock from the mobile phone, the visitor APP-ID and the mobile phone IP are searched for, and it is judged whether the visitor APP-ID is within the access validity period; if so, the IP address of the door lock is searched for, the IP address of the door lock is put into the message read by the door lock from the mobile phone, and the current first message read by the door lock from the mobile phone is forwarded to the corresponding master APP, so that the master APP can schedule the corresponding door lock to open, thereby being able to provide a more efficient, safe and convenient access management solution.
[0100] Another embodiment of the present invention provides a contactless collaborative scheduling door opening system based on an intelligent lock platform. Refer to Figure 3 , the system may include:
[0101] A receiving module 301, configured to receive an unlocking request message sent by a current visitor or a message read by the door lock from the mobile phone reported after the intelligent door lock senses a nearby mobile phone. Among them, the unlocking request message includes: a visitor APP-ID, a visitor mobile phone NFC-ID, and a sending time, and the message read by the door lock from the mobile phone includes: a door lock ID, an NFC-ID of the mobile phone, and a reporting time;
[0102] A searching module 302, configured to search for the master APP-ID that the visitor APP-ID can currently access according to the unlocking request message and the visitor information table saved in the intelligent lock management platform. Among them, the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: a master APP-ID, a door lock-ID, a visitor APP-ID, and an access validity period;
[0103] A forwarding module 303, configured to, if the number of master APP-IDs that can be currently accessed does not exceed the preset quantity, forward the unlocking request message to the master APP that can be currently accessed according to the IP address of the mobile phone where the master APP-ID is located;
[0104] A first judgment module 304, configured to search for the corresponding visitor APP-ID and mobile phone IP from the user list according to the NFC-ID in the message read by the door lock from the mobile phone, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0105] The door opening module 305 is used to, if within the access validity period, look up the door lock IP address according to the door lock ID from the door lock list, put the door lock IP address into the door lock reading mobile phone message, and forward the obtained current first door lock reading mobile phone message to the corresponding master APP, so that the master APP schedules the corresponding door lock to open according to the unlocking request message and the current first door lock reading mobile phone message. Among them, the door lock list includes the door lock ID, the door lock IP address, and the door lock geographical location.
[0106] It can be seen that according to the unlocking request message and the visitor information table, look up the master APP-ID that the visitor APP-ID can currently access; if the number of master APP-IDs that can be currently accessed does not exceed the preset number, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located; according to the NFC-ID in the door lock reading mobile phone message, look up the visitor APP-ID and the mobile phone IP, and determine whether the visitor APP-ID is within the access validity period; if so, look up the door lock IP address, put the door lock IP address into the door lock reading mobile phone message, and forward the current first door lock reading mobile phone message to the corresponding master APP, so that the master APP schedules the corresponding door lock to open, thus being able to provide a more efficient, safe and convenient access management solution.
[0107] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, and wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
[0108] Specifically, in this embodiment, the above storage medium can be set to store a computer program for executing the following steps:
[0109] S201, receive the unlocking request message sent by the current visitor or the door lock reading mobile phone message reported after the smart door lock senses a nearby mobile phone. Among them, the unlocking request message includes: the visitor APP-ID, the visitor mobile phone NFC-ID, and the sending time, and the door lock reading mobile phone message includes: the door lock ID, the NFC-ID of the mobile phone, and the reporting time;
[0110] S202, according to the unlocking request message and the visitor information table saved in the smart lock management platform, look up the master APP-ID that the visitor APP-ID can currently access. Among them, the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: the master APP-ID, the door lock-ID, the visitor APP-ID, and the access validity period;
[0111] S203, if the number of currently accessible master APP-IDs does not exceed a preset quantity, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located;
[0112] S204, read the NFC-ID in the mobile phone message by the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and determine whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0113] S205, if it is within the access validity period, find the door lock IP address according to the door lock ID from the door lock list, put the door lock IP address into the mobile phone message read by the door lock, and forward the obtained current first mobile phone message read by the door lock to the corresponding master APP, so that the master APP can dispatch the corresponding door lock to open the door according to the unlocking request message and the current first mobile phone message read by the door lock, where the door lock list includes the door lock ID, the door lock IP address, and the door lock geographical location.
[0114] It can be seen that according to the unlocking request message and the visitor information table, find the master APP-ID that the visitor APP-ID can currently access; if the number of currently accessible master APP-IDs does not exceed a preset quantity, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located; find the visitor APP-ID and mobile phone IP according to the NFC-ID in the mobile phone message read by the door lock, and determine whether the visitor APP-ID is within the access validity period; if so, find the door lock IP address, put the door lock IP address into the mobile phone message read by the door lock, and forward the current first mobile phone message read by the door lock to the corresponding master APP, so that the master APP can dispatch the corresponding door lock to open the door, thereby being able to provide a more efficient, secure and convenient access management solution.
[0115] An embodiment of the present invention further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0116] Specifically, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0117] Specifically, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0118] S201, Receive the unlocking request message sent by the current visitor or the door lock reading mobile phone message reported after the smart door lock senses a nearby mobile phone. Among them, the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time. The door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0119] S202, According to the unlocking request message and the visitor information table saved in the smart lock management platform, find the master APP-ID that the current visitor APP-ID can access. Among them, the visitor information table receives and saves each piece of visitor information. Each piece of visitor information includes: master APP-ID, door lock-ID, visitor APP-ID, and access validity period;
[0120] S203, If the number of master APP-IDs that can be accessed currently does not exceed the preset quantity, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located;
[0121] S204, According to the NFC-ID in the door lock reading mobile phone message, find the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table;
[0122] S205, If it is within the access validity period, find the door lock IP address according to the door lock ID from the door lock list, put the door lock IP address into the door lock reading mobile phone message, and forward the obtained current first door lock reading mobile phone message to the corresponding master APP, so that the master APP can dispatch the corresponding door lock to open according to the unlocking request message and the current first door lock reading mobile phone message. Among them, the door lock list includes door lock ID, door lock IP address, and door lock geographical location.
[0123] It can be seen that according to the unlocking request message and the visitor information table, find the master APP-ID that the current visitor APP-ID can access; if the number of master APP-IDs that can be accessed currently does not exceed the preset quantity, forward the unlocking request message to the currently accessible master APP according to the IP address of the mobile phone where the master APP-ID is located; according to the NFC-ID in the door lock reading mobile phone message, find the visitor APP-ID and mobile phone IP, and judge whether the visitor APP-ID is within the access validity period; if so, find the door lock IP address, put the door lock IP address into the door lock reading mobile phone message, and forward the current first door lock reading mobile phone message to the corresponding master APP, so that the master APP can dispatch the corresponding door lock to open, thereby being able to provide a more efficient, safe and convenient access management solution.
[0124] The structure, features, and effects of the present invention have been described in detail based on the embodiments shown in the drawings. The above is only the preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or equivalent embodiments modified into equivalent changes, that still do not exceed the spirit covered by the specification and the drawings shall be within the protection scope of the present invention.
Claims
1. A contactless collaborative door opening method based on a smart lock platform, characterized in that: The method comprises: Receive the unlock request message sent by the current visitor or the door lock reads the mobile phone message reported by the smart door lock after sensing the nearby mobile phone, wherein the unlock request message includes: visitor APP-ID, visitor mobile phone NFC-ID and sending time, and the door lock reads the mobile phone message includes: door lock ID, mobile phone NFC-ID and reporting time; According to the unlocking request message and the visitor information table saved by the smart lock management platform, find the owner APP-ID that the visitor APP-ID can currently access, wherein the visitor information table receives and saves each visitor information, each visitor information includes: owner APP-ID, door lock-ID, visitor APP-ID, access validity period; If the number of currently accessible owner APP-IDs does not exceed the preset number, the unlock request message is forwarded to the currently accessible owner APP according to the IP address of the mobile phone where the owner APP-ID is located; Read the NFC-ID in the mobile phone message according to the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and determine whether the visitor APP-ID is within the access validity period according to the visitor information table; If within the access validity period, the door lock IP address is searched from the door lock list according to the door lock ID, the door lock IP address is put into the door lock reading mobile phone message, and the current first door lock reading mobile phone message obtained is forwarded to the corresponding owner APP, so that the owner APP can schedule the corresponding door lock to open the door according to the unlocking request message and the current first door lock reading mobile phone message, wherein the door lock list includes the door lock ID, door lock IP address, and door lock geographic location.
2. The method according to claim 1, characterized in that The owner APP reads the mobile phone message according to the unlocking request message and the current first door lock, and schedules the corresponding door lock to open the door, including: When the owner APP receives the unlock request message or the current first door lock reads the mobile phone message, if another message is not received within the preset waiting period, the first message received is discarded; When the owner APP receives the unlock request message and the mobile phone message read by the current first door lock, it determines from the visitor information table whether the visitor APP-ID is within the access validity period allowed to access the home door lock. If so, it extracts the door lock ID and door lock IP address from the mobile phone message read by the current first door lock, and sends an opening message to the corresponding door lock to open the door.
3. The method according to claim 1, characterized in that The method further comprises: If the number of host APP-IDs currently accessible exceeds the preset number, all host APP-IDs currently accessible to the visitor and the corresponding mobile phone IP addresses, as well as the visitor APP-ID, are packaged to obtain the host set discussion message; Try to connect to each master APP until one of them is connected, and send the master group discussion message to the master APP, which will act as the moderator APP; Read the NFC-ID in the mobile phone message according to the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and determine whether the visitor APP-ID is within the access validity period according to the visitor information table; If the access is valid, find the door lock IP address from the door lock list according to the door lock ID, put the door lock IP address and visitor APP-ID into the door lock reading mobile phone message, and forward the current second door lock reading mobile phone message to the corresponding owner APP-ID; The host APP reads the mobile phone message based on the host group discussion message and the current second door lock, and dispatches the corresponding door lock to open the door.
4. The method according to claim 3, characterized in that The host APP reads the mobile phone message based on the host group discussion message and the current second door lock, and schedules the corresponding door lock to open the door, including: After the host APP-ID receives the master group discussion message, it sends a message containing the guest APP-ID to the other master APPs asking the door lock owner to open the door; Each owner APP retains the preset length of time after receiving the message asking the door lock owner to open the door. When the owner APP corresponding to the door lock receives the mobile phone message read by the current second door lock, it compares the visitor APP-ID in the message asking the door lock owner to open the door with the visitor APP-ID in the mobile phone message read by the current second door lock. If they are consistent, it determines whether the visitor APP-ID is within the access validity period allowed to access the home door lock. If so, extract the door lock ID and door lock IP address from the mobile phone message read by the current second door lock, and send an opening message to the corresponding door lock to open the door.
5. A contactless collaborative door opening system based on a smart lock platform, characterized in that: The system comprises: A receiving module is used to receive an unlock request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock after sensing a nearby mobile phone, wherein the unlock request message includes: visitor APP-ID, visitor mobile phone NFC-ID and sending time, and the door lock reading mobile phone message includes: door lock ID, mobile phone NFC-ID and reporting time; A search module is used to search for the host APP-ID that the visitor APP-ID can currently access according to the unlocking request message and the visitor information table saved by the smart lock management platform, wherein the visitor information table receives and saves each visitor information, each visitor information includes: host APP-ID, door lock-ID, visitor APP-ID, access validity period; A forwarding module, used for forwarding the unlocking request message to the currently accessible owner APP according to the IP address of the mobile phone where the owner APP-ID is located if the number of currently accessible owner APP-ID does not exceed a preset number; The first judgment module is used to read the NFC-ID in the mobile phone message according to the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table; The door opening module is used to search the door lock IP address from the door lock list according to the door lock ID if the access is valid, put the door lock IP address into the door lock reading mobile phone message, and forward the current first door lock reading mobile phone message obtained to the corresponding owner APP, so that the owner APP can schedule the corresponding door lock to open the door according to the unlocking request message and the current first door lock reading mobile phone message, wherein the door lock list includes the door lock ID, door lock IP address, and door lock geographic location.
6. The system according to claim 5, characterized in that The door opening module is specifically used for: When the owner APP receives the unlock request message or the current first door lock reads the mobile phone message, if another message is not received within the preset waiting period, the first message received is discarded; When the owner APP receives the unlock request message and the mobile phone message read by the current first door lock, it determines from the visitor information table whether the visitor APP-ID is within the access validity period allowed to access the home door lock. If so, it extracts the door lock ID and door lock IP address from the mobile phone message read by the current first door lock, and sends an opening message to the corresponding door lock to open the door.
7. The system according to claim 5, characterized in that The system further comprises: The packaging module is used to package all host APP-IDs and corresponding mobile phone IP addresses, as well as the visitor APP-ID that the visitor can currently access to obtain the host set discussion message if the number of host APP-IDs that can currently be accessed exceeds a preset number; A connection module is used to try to connect to each master APP until one of the master APPs is connected, and send the master group discussion message to the master APP, which serves as the moderator APP; The second judgment module is used to read the NFC-ID in the mobile phone message according to the door lock, find the corresponding visitor APP-ID and mobile phone IP from the user list, and judge whether the visitor APP-ID is within the access validity period according to the visitor information table; A module is put in to search the door lock IP address from the door lock list according to the door lock ID if the access is valid, put the door lock IP address and the visitor APP-ID into the door lock reading mobile phone message, and forward the current second door lock reading mobile phone message obtained to the corresponding owner APP-ID; The scheduling module is used by the host APP to read the mobile phone message according to the host set discussion message and the current second door lock, and schedule the corresponding door lock to open the door.
8. The system according to claim 7, characterized in that The scheduling module is specifically used for: After the host APP-ID receives the master group discussion message, it sends a message containing the guest APP-ID to the other master APPs asking the door lock owner to open the door; Each owner APP retains the preset length of time after receiving the message asking the door lock owner to open the door. When the owner APP corresponding to the door lock receives the mobile phone message read by the current second door lock, it compares the visitor APP-ID in the message asking the door lock owner to open the door with the visitor APP-ID in the mobile phone message read by the current second door lock. If they are consistent, it determines whether the visitor APP-ID is within the access validity period allowed to access the home door lock. If so, extract the door lock ID and door lock IP address from the mobile phone message read by the current second door lock, and send an opening message to the corresponding door lock to open the door.
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 4 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 4.
Citation Information
Patent Citations
Residential quarter network access control scheme
CN106056707A
Remote authorization and unlocking method and system
CN114567658A