Quick dispatching door opening method and system based on intelligent lock platform
By receiving and processing visitors' unlock request messages and door lock reading mobile phone messages in the smart lock system, and judging and dispatching door lock opening, the existing smart lock system's slow response speed in the case of multiple visitors is solved, achieving more efficient user experience and security.
Patent Information
- Application Number
- CN202510332123.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-03-20
AI Technical Summary
The existing smart lock system handles the simultaneous arrival of multiple visitors, slow response speed and poor user experience, and relies on a single source of information to prevent the inability to effectively handle complex unlock requests.
Read the mobile phone message by receiving the guest's unlock request message or the door lock reported by the smart door lock, and determine that it matches the visitor information table saved by the smart lock management platform. If it matches, look up the door lock containing the guest's NFC-ID to read the mobile phone message, and schedule the corresponding door lock to open the door.
It improves the response speed and user experience of smart locks, can effectively handle unlocking requests from multiple visitors, and improves the security and convenience of the system.
Smart Images

Figure CN119888900A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent door locks, and in particular to a method and system for quickly scheduling door opening based on an intelligent lock platform. Background Art
[0002] In modern smart home systems, smart locks, as an important part of security management, are gradually replacing traditional mechanical locks. Traditional door locks rely on physical keys or simple electronic cards. Although they have certain security, they are insufficient in terms of convenience and user experience. For example, when a visitor needs to enter a certain area, he often needs to communicate with the owner in advance and use a physical key or access card. This method is not only time-consuming, but also difficult to meet the needs of fast and flexible use.
[0003] With the rapid development of electronic technology and mobile Internet, the demand for user safety and convenience has prompted the industry to continuously promote the innovation of smart door lock technology. Although the existing smart lock systems can achieve remote unlocking and identity authentication, most systems still rely on a single information source when processing visitor unlocking requests, resulting in slow response and poor user experience when multiple visitors arrive at the same time. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for quickly scheduling door opening based on a smart lock platform to address the deficiencies in the prior art, thereby improving the security of smart locks and significantly improving user experience.
[0005] An embodiment of the present application provides a quick scheduling door opening method based on a smart lock platform, the method comprising: 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, 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; If the unlock request message is received first, determine whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message, 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 there is no match, the unlock request message is discarded. If there is a match, according to the NFC-ID corresponding to the visitor's APP-ID, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; If a door lock reading mobile phone message containing the NFC-ID is found, the corresponding door lock is scheduled to open the door according to the door lock reading mobile phone message.
[0006] Optionally, the method further includes: If the door lock containing the NFC-ID is not found to read the mobile phone message, read the door lock ID that the visitor APP-ID allows to access from the visitor information table according to the visitor APP-ID; An identification message for nearby mobile phones is sent to the door lock ID that is allowed to access, so that the door lock corresponding to the door lock ID that is allowed to access reads the NFC-ID of the nearby mobile phone after receiving the nearby mobile phone message. If the read NFC-ID is the same as the NFC-ID in the identification message for nearby mobile phones, the door lock is opened, wherein the identification message for nearby mobile phones includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining power of the door lock.
[0007] Optionally, the method further includes: If the door lock containing the NFC-ID is not found to read the mobile phone message, read the door lock ID that the visitor APP-ID allows to access from the visitor information table according to the visitor APP-ID; From the visitor information table, find all the door lock IDs that the current visitor is allowed to access, and find the IP address of the corresponding door lock according to the locally maintained door lock list, put all the door lock IDs and the corresponding door lock IP addresses, the NFC-ID of the visitor's mobile phone, and the current timestamp into an autonomous polling identification message, and send the autonomous polling identification message to the first door lock among all the door locks. Perform polling identification within a preset period until a door lock recognizes that the NFC-ID of a nearby mobile phone is the same as the NFC-ID of the visitor's mobile phone in the autonomous polling identification message, and then opens the corresponding door lock.
[0008] Optionally, the method further includes: If the door lock reads the mobile phone message first, according to the NFC-ID in the door lock reads the mobile phone message, find out whether the same NFC-ID exists in the visitor unlocking request message table saved by the platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; If the same NFC-ID does not exist, the door lock reads the mobile phone message and discards it. If the same NFC-ID exists, find the visitor APP-ID corresponding to the same NFC-ID and confirm whether the reporting time in the door lock reads the mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock read mobile phone message; If it is confirmed that the reporting time in the door lock reading the mobile phone message is not within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading the mobile phone message, discard the door lock reading the mobile phone message. If it is confirmed that the reporting time in the door lock reading the mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading the mobile phone message, send a door opening message to the corresponding door lock ID to open the corresponding door lock.
[0009] Optionally, judging whether the visitor information table stored in the smart lock management platform matches the visitor APP-ID and the sending time in the unlocking request message includes: Determine whether there is a visitor APP-ID identical to the current visitor APP-ID in the visitor information table saved by the smart lock management platform, and whether the sending time is within the access validity period corresponding to the same visitor APP-ID; If there is a visitor APP-ID that is the same as the current visitor APP-ID, and the sending time is within the access validity period corresponding to the same visitor APP-ID, the unlocking request message matches the visitor information table saved by the smart lock management platform, otherwise it does not match.
[0010] Optionally, the step of reading a mobile phone message according to the door lock and scheduling a corresponding door lock to open the door includes: Extract the door lock ID corresponding to the NFC-ID in the mobile phone message read by the door lock, and check whether the reporting time is within the access validity period corresponding to the door lock ID; If the reporting time is not within the access validity period, the unlock request message is discarded. If the reporting time is within the access validity period, a door opening message is sent to the corresponding door lock ID to open the door.
[0011] Another embodiment of the present application provides a fast dispatch door opening system based on a smart lock platform, the system comprising: 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, 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 judgment module is used to judge whether the unlock request message is matched with the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message if the unlock request message is received first, 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; A search module is used to discard the unlock request message if there is no match. If there is a match, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; The scheduling module is used to schedule the corresponding door lock to open the door according to the mobile phone message read by the door lock if a door lock containing the NFC-ID is found.
[0012] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0013] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0014] Compared with the prior art, the present invention provides a fast scheduling door opening method based on a smart lock platform, which receives an unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock; if the unlocking request message is received first, it is determined whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and the sending time in the unlocking request message; if it does not match, the unlocking request message is discarded, and if it matches, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reading mobile phone message containing the NFC-ID is searched from the door lock reading mobile phone message table saved by the smart lock platform; if the door lock reading mobile phone message containing the NFC-ID is found, according to the door lock reading mobile phone message, the corresponding door lock is scheduled to open the door, thereby improving the security of the smart lock and significantly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A hardware structure block diagram of a computer terminal for a fast dispatch door opening method based on a smart lock platform provided in an embodiment of the present invention; Figure 2 A schematic diagram of a process flow of a fast scheduling door opening method based on a smart lock platform provided in an embodiment of the present invention; Figure 3 A schematic structural diagram of a rapid door-opening system based on a smart lock platform provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0017] The embodiment of the present invention first provides a fast scheduling door opening method based on a smart lock platform, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, etc.
[0018] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal for a quick scheduling door opening method based on a smart lock platform provided by an embodiment of the present invention. Figure 1 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0019] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any one of the fast scheduling door opening methods based on the smart lock platform.
[0020] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0021] 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 one of the fast scheduling door opening methods based on the smart lock platform.
[0022] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0023] 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 (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 may be a microprocessor or the processor may also be any conventional processor, etc.
[0024] See also Figure 2 , an embodiment of the present invention provides a fast scheduling door opening method based on a smart lock platform, which may include the following steps: S201, receiving an unlock request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, 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; S202, if the unlock request message is received first, determine whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message, 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; Specifically, if the door lock reads the mobile phone message first, according to the NFC-ID in the door lock reads the mobile phone message, find out whether the same NFC-ID exists in the visitor unlocking request message table saved by the platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; If the same NFC-ID does not exist, the door lock reads the mobile phone message and discards it. If the same NFC-ID exists, find the visitor APP-ID corresponding to the same NFC-ID and confirm whether the reporting time in the door lock reads the mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock read mobile phone message; If it is confirmed that the reporting time in the door lock reading the mobile phone message is not within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading the mobile phone message, discard the door lock reading the mobile phone message. If it is confirmed that the reporting time in the door lock reading the mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading the mobile phone message, send a door opening message to the corresponding door lock ID to open the corresponding door lock.
[0025] Specifically, according to the visitor APP-ID and sending time in the unlocking request message, it is judged whether it matches the visitor information table saved by the smart lock management platform. It can be judged whether there is a visitor APP-ID identical to the current visitor APP-ID in the visitor information table saved by the smart lock management platform, and whether the sending time is within the access validity period corresponding to the same visitor APP-ID; If there is a visitor APP-ID that is the same as the current visitor APP-ID, and the sending time is within the access validity period corresponding to the same visitor APP-ID, the unlocking request message matches the visitor information table saved by the smart lock management platform, otherwise it does not match.
[0026] S203, if there is no match, the unlock request message is discarded; if there is a match, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; Specifically, if the door lock containing the NFC-ID is not found to read the mobile phone message, the door lock ID that the visitor APP-ID is allowed to access is read from the visitor information table according to the visitor APP-ID; An identification message for nearby mobile phones is sent to the door lock ID that is allowed to access, so that the door lock corresponding to the door lock ID that is allowed to access reads the NFC-ID of the nearby mobile phone after receiving the nearby mobile phone message. If the read NFC-ID is the same as the NFC-ID in the identification message for nearby mobile phones, the door lock is opened, wherein the identification message for nearby mobile phones includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining power of the door lock.
[0027] Specifically, if the door lock containing the NFC-ID is not found to read the mobile phone message, the door lock ID that the visitor APP-ID is allowed to access is read from the visitor information table according to the visitor APP-ID; From the visitor information table, find all the door lock IDs that the current visitor is allowed to access, and find the IP address of the corresponding door lock according to the locally maintained door lock list, put all the door lock IDs and the corresponding door lock IP addresses, the NFC-ID of the visitor's mobile phone, and the current timestamp into an autonomous polling identification message, and send the autonomous polling identification message to the first door lock among all the door locks. Perform polling identification within a preset period until a door lock recognizes that the NFC-ID of a nearby mobile phone is the same as the NFC-ID of the visitor's mobile phone in the autonomous polling identification message, and then opens the corresponding door lock.
[0028] S204: If a door lock that contains the NFC-ID is found to read the mobile phone message, the corresponding door lock is scheduled to open the door according to the door lock reading the mobile phone message.
[0029] Specifically, according to the mobile phone message read by the door lock, the corresponding door lock is scheduled to open the door, the door lock ID corresponding to the NFC-ID in the mobile phone message read by the door lock can be extracted, and the reporting time can be checked whether it is within the access validity period corresponding to the door lock ID; If the reporting time is not within the access validity period, the unlock request message is discarded. If the reporting time is within the access validity period, a door opening message is sent to the corresponding door lock ID to open the door.
[0030] Exemplary, pre-conditions: The owner installs a smart door lock on the entrance door (each door lock has an independent ID, door lock IP address, door lock geographic location, etc.), connects to the cloud platform, registers with the platform, and updates periodically. The platform records a list of door locks, including door lock ID, door lock IP address, door lock geographic location, etc.
[0031] The host and the visitor's mobile phones are installed with APP. Each APP has a unique ID (such as the user name + mobile phone number used when registering), and supports reporting APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP, etc. to the platform and updating them periodically. The platform records the user list, which includes: serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP where the user's APP is located, and other user information.
[0032] Application before a visitor visits the host's home: The visitor sends his or her APP-ID to the host. The host fills in the visitor APP-ID in his or her own APP and reports the "visitor registration" message to the platform, which includes: host APP-ID, door lock-ID, visitor APP-ID, and validity period. At the same time, a copy of the visitor information table reported by the host is saved locally in the APP, including door lock-ID, visitor APP-ID, and validity period.
[0033] The platform saves the visitor information table, including the owner APP-ID, door lock-ID, visitor APP-ID, validity period, etc., as shown in the following table. Assume that the owner APP is APP-host, the door lock ID is door lock-host, and the mobile phone is NFC-host; the APP of visitor 1 is APP-guest1, the door lock ID is door lock-guest1, and the mobile phone is NFC-guest1; the APP of visitor 2 is APP-guest2, the door lock ID is door lock-guest2, and the mobile phone is NFC-guest2. The visitor information table saved by the platform is shown in Table 1.
[0034] Table 1
[0035] What to do when a visitor arrives at the host's home: When the visitor guest1 arrives at the host's door, opens the mobile APP, and clicks the unlock button (the key here is that the visitor is not required to explicitly select which room, even if the visitor has the authority to access multiple rooms at the same time at that time), the visitor APP reports the "unlock request" message to the platform, which contains: visitor APP-ID, visitor mobile NFC-ID and sending time. The design of the visitor APP actively reporting is to avoid the situation where the visitor passes by the host's door temporarily without unlocking the door and mistakenly opens the door, causing security risks.
[0036] The platform saves the message content. The visitor unlocking request message saved by the platform is shown in Table 2.
[0037] Table 2
[0038] When the door lock senses the NFC of a nearby mobile phone, it reads the NFC-ID of the nearby mobile phone and reports the "door lock reads the mobile phone" message to the platform, which contains: door lock ID, mobile phone NFC-ID and sending time. The design of the door lock reading the mobile phone information and reporting it is to avoid the platform only checking and opening the door based on the visitor's APP information when the visitor is not at the owner's door (for example, going to the wrong place or remote misoperation), which may cause security risks.
[0039] The platform saves the message content. The door lock reading message saved by the platform is shown in Table 3.
[0040] Table 3
[0041] Platform processing: There is a time difference between the information reported by the visitor and the door lock when the platform receives it. If the platform first receives the "unlock request" message from the visitor's mobile phone APP-guest1, the platform searches for the visitor information table 1 according to the visitor's APP-ID and the sending time. If there is no match, the message is discarded (indicating that the visitor does not have the permission to access the owner within the validity period); otherwise, the door lock reading message received in the recent period (the threshold can be set according to the administrator's requirements, such as ±120 seconds) is searched according to the NFC-ID corresponding to the visitor's APP-ID, that is, Table 3. If the NFC-ID does not exist, it is discarded (indicating that the "door lock reads mobile phone" message from the relevant door lock has not been received within ±120 seconds); if it exists, the door lock ID corresponding to the NFC-ID is extracted, and the sending time is checked whether it is within the validity period. If it exceeds, the message is discarded (indicating that the time point of the visitor's access is no longer within the time period allowed by the owner); if the sending time is within the validity period, the platform sends an "open door" message to the corresponding door lock ID, and the door lock receives the "open door" message and opens the door and returns an OK message to the platform, ending the session.
[0042] If the platform first receives the "Door lock reads mobile phone" message from the door lock, the platform first finds the corresponding NFC-ID according to Table 3, and then searches Table 2 according to the NFC-ID to see if there is a visitor APP-ID at the corresponding time point. A certain time period is allowed, such as ±120 seconds. If not found, it is discarded (indicating that the door lock only detects a nearby mobile phone, but the APP of the mobile phone does not actively request to open the door); otherwise, the corresponding APP-ID is found from Table 2, and according to Table 1, it is confirmed whether the visitor's APP-ID is within the validity period that can access the door lock ID. If exceeded, the message is discarded (indicating that the time point of the visitor's access is no longer within the time period allowed by the owner); otherwise, the platform sends an "open door" message to the corresponding door lock ID. When the door lock receives the "open door" message, it opens the door and returns an OK message to the platform, ending the session.
[0043] If the platform first receives the "unlock request" message from the visitor's mobile phone APP-guest1, it must wait. If the visitor's mobile phone is indeed next to the owner's door, the door lock will send a "door lock reads the phone" message, and the platform will not wait too long. But if the visitor's mobile phone is not next to the owner's door, the door lock cannot read the mobile phone NFC-ID, and will not send the "door lock reads the phone" message, causing the platform to at least wait for the threshold limit, that is, 120 seconds, resulting in a longer process time. In order to further save the time occupied by platform resources, the optimization is as follows: After the platform receives the "unlock request" message from the visitor's mobile phone APP, it searches the visitor information table 1 according to the visitor APP-ID and the sending time. If there is no match, the message is discarded (indicating that the visitor does not have the permission to access the owner within the validity period). Otherwise, the platform searches the door lock reading message table 3 for the most recent information received in history according to the visitor's NFC-ID. If the door lock-ID corresponding to the NFC-ID exists, and the corresponding sending time point is no more than 120 seconds different from the current time (if the difference is too large, it means that the table entry is a historical legacy and needs to be ignored), the platform sends an "open door" message to the corresponding door lock ID. When the door lock receives the "open door" message, it opens the door and returns an OK message to the platform, ending the session (most of the time, this information does not exist in Table 3, but it is also possible that the "door lock reads mobile phone" message sent by the door lock is followed by the "unlock request" message sent by the visitor's mobile phone APP, which may be a rare case). If the NFC-ID at the corresponding time point does not exist in Table 3 (this is the case in most cases), the platform reads the door lock that the visitor is allowed to access from Table 1 based on the visitor APP-ID. For example, the visitor APP-guest1 is allowed to access the door lock-host and door lock-host2 at this time. Therefore, the platform sends the corresponding door lock-host and door lock-host2 a message of "identifying nearby mobile phones", which contains: the NFC-ID of the visitor guest1's mobile phone, and the duration is 5 minutes; then the platform immediately releases resources and does not need to deal with subsequent matters. After receiving the message, the door lock-host and door lock-host2 try to read the NFC-ID of the nearby mobile phone. If the read NFC-ID is the same as the NFC-ID in the "identifying nearby mobile phone" message from the platform, the door is opened. Otherwise, continue to try to read, and try for up to 5 minutes. If the matching mobile phone NFC-ID cannot be read within 5 minutes, the processing ends.
[0044] The door locks periodically register with the platform and report the power balance. In the above steps, when the platform sends the "identify nearby mobile phones" message to these door locks, different durations need to be set for door locks with different power balances: when the door lock power balance is about 30%, the duration is 5 minutes, otherwise the duration is set to 2 minutes.
[0045] If the visitor guest1 can access many door locks at this time, the platform needs to send "identify nearby mobile phones" messages to these door locks respectively, which will cause a heavy burden on the platform, and each door lock that is allowed to access will be harassed, which is not appropriate. Therefore, continue to optimize as follows: The platform searches Table 1 for all the door lock IDs that guest1 is allowed to access at that time, finds the IP address of the corresponding door lock according to the locally maintained door lock list, and puts all the door lock IDs and the corresponding door lock IP addresses into the "autonomous polling identification" message, which also contains the NFC-ID of guest1's mobile phone and the current timestamp. The platform sends the message to the first door lock.
[0046] The first door lock tries to identify a nearby mobile phone. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, it determines whether 5 minutes have passed from the current time point relative to the timestamp in the message (if so, the message is discarded). If not, the door lock sends an "autonomous polling identification" message to the second door lock.
[0047] After receiving the message, the second door lock tries to identify the nearby mobile phone. If no mobile phone is found or the NFC ID of the mobile phone is different from the NFC-ID given by the platform, it determines whether 5 minutes have passed from the current time point relative to the timestamp in the message. If not, the door lock sends the "autonomous polling identification" message to the third door lock. And so on.
[0048] If the Nth door lock recognizes that the NFC-ID of the nearby mobile phone is the same as the NFC-ID given by the platform, it will open the door and finish sending messages to the next door lock in the order.
[0049] If the last door lock does not recognize an NFC-ID that meets the requirements, it will determine whether 5 minutes have passed from the current time point relative to the timestamp in the message. If not, it will continue to send it to the door lock that ranks first. Continue to take turns until a mobile phone NFC-ID that meets the requirements is found or 5 minutes have passed relative to the timestamp of the message. The reason for continuing to poll is that there may be a situation where the door lock is too far away from the mobile phone and cannot be sensed. In order to maximize reliability, repeated polling is implemented.
[0050] Beneficial effects: The platform does not need to wait and releases resources in time. When users submit "unlocking requests", they do not need to specify which owner's door lock they want to open, and the system automatically handles it. It will not cause all accessible door locks to be disturbed.
[0051] It can be seen that the unlock request message sent by the current visitor or the door lock reads the mobile phone message reported by the smart door lock is received; if the unlock request message is received first, it is determined whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and the sending time in the unlock request message; if it does not match, the unlock request message is discarded, and if it matches, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message table saved by the smart lock platform to find the door lock reads the mobile phone message containing the NFC-ID; if the door lock reads the mobile phone message containing the NFC-ID is found, according to the door lock reads the mobile phone message, the corresponding door lock is scheduled to open the door, thereby improving the security of the smart lock, and also significantly improving the user experience.
[0052] Another embodiment of the present invention provides a fast dispatch door opening system based on a smart lock platform, see Figure 3 , the system may include: The receiving module 301 is used to 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, 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; The judgment module 302 is used to judge whether the unlock request message is matched with the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message if the unlock request message is received first, 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; The search module 303 is used to discard the unlock request message if there is no match. If there is a match, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table stored in the smart lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the door lock reads the mobile phone message table receives and stores each door lock reads the mobile phone message; The scheduling module 304 is used to schedule the corresponding door lock to open the door according to the mobile phone message read by the door lock if a door lock containing the NFC-ID is found.
[0053] It can be seen that the unlock request message sent by the current visitor or the door lock reads the mobile phone message reported by the smart door lock is received; if the unlock request message is received first, it is determined whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and the sending time in the unlock request message; if it does not match, the unlock request message is discarded, and if it matches, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message table saved by the smart lock platform to find the door lock reads the mobile phone message containing the NFC-ID; if the door lock reads the mobile phone message containing the NFC-ID is found, according to the door lock reads the mobile phone message, the corresponding door lock is scheduled to open the door, thereby improving the security of the smart lock, and also significantly improving the user experience.
[0054] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0055] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps: S201, receiving an unlock request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, 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; S202, if the unlock request message is received first, determine whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message, 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; S203, if there is no match, the unlock request message is discarded; if there is a match, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; S204: If a door lock that contains the NFC-ID is found to read the mobile phone message, the corresponding door lock is scheduled to open the door according to the door lock reading the mobile phone message.
[0056] It can be seen that the unlock request message sent by the current visitor or the door lock reads the mobile phone message reported by the smart door lock is received; if the unlock request message is received first, it is determined whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and the sending time in the unlock request message; if it does not match, the unlock request message is discarded, and if it matches, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message table saved by the smart lock platform to find the door lock reads the mobile phone message containing the NFC-ID; if the door lock reads the mobile phone message containing the NFC-ID is found, according to the door lock reads the mobile phone message, the corresponding door lock is scheduled to open the door, thereby improving the security of the smart lock, and also significantly improving the user experience.
[0057] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0058] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0059] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program: S201, receiving an unlock request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, 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; S202, if the unlock request message is received first, determine whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message, 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; S203, if there is no match, the unlock request message is discarded; if there is a match, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; S204: If a door lock that contains the NFC-ID is found to read the mobile phone message, the corresponding door lock is scheduled to open the door according to the door lock reading the mobile phone message.
[0060] It can be seen that the unlock request message sent by the current visitor or the door lock reads the mobile phone message reported by the smart door lock is received; if the unlock request message is received first, it is determined whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and the sending time in the unlock request message; if it does not match, the unlock request message is discarded, and if it matches, according to the NFC-ID corresponding to the visitor APP-ID, the door lock reads the mobile phone message table saved by the smart lock platform to find the door lock reads the mobile phone message containing the NFC-ID; if the door lock reads the mobile phone message containing the NFC-ID is found, according to the door lock reads the mobile phone message, the corresponding door lock is scheduled to open the door, thereby improving the security of the smart lock, and also significantly improving the user experience.
[0061] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a 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 modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A fast dispatch 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, 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; If the unlock request message is received first, determine whether it matches the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message, 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 there is no match, the unlock request message is discarded. If there is a match, according to the NFC-ID corresponding to the visitor's APP-ID, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; If a door lock reading mobile phone message containing the NFC-ID is found, the corresponding door lock is scheduled to open the door according to the door lock reading mobile phone message.
2. The method according to claim 1, characterized in that The method further comprises: If the door lock containing the NFC-ID is not found to read the mobile phone message, read the door lock ID that the visitor APP-ID allows to access from the visitor information table according to the visitor APP-ID; An identification message for nearby mobile phones is sent to the door lock ID that is allowed to access, so that the door lock corresponding to the door lock ID that is allowed to access reads the NFC-ID of the nearby mobile phone after receiving the nearby mobile phone message. If the read NFC-ID is the same as the NFC-ID in the identification message for nearby mobile phones, the door lock is opened, wherein the identification message for nearby mobile phones includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining power of the door lock.
3. The method according to claim 1, characterized in that The method further comprises: If the door lock containing the NFC-ID is not found to read the mobile phone message, read the door lock ID that the visitor APP-ID allows to access from the visitor information table according to the visitor APP-ID; From the visitor information table, find all the door lock IDs that the current visitor is allowed to access, and find the IP address of the corresponding door lock according to the locally maintained door lock list, put all the door lock IDs and the corresponding door lock IP addresses, the NFC-ID of the visitor's mobile phone, and the current timestamp into an autonomous polling identification message, and send the autonomous polling identification message to the first door lock among all the door locks. Perform polling identification within a preset period until a door lock recognizes that the NFC-ID of a nearby mobile phone is the same as the NFC-ID of the visitor's mobile phone in the autonomous polling identification message, and then opens the corresponding door lock.
4. The method according to claim 1, characterized in that The method further comprises: If the door lock reads the mobile phone message first, according to the NFC-ID in the door lock reads the mobile phone message, find out whether the same NFC-ID exists in the visitor unlocking request message table saved by the platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; If the same NFC-ID does not exist, the door lock reads the mobile phone message and discards it. If the same NFC-ID exists, find the visitor APP-ID corresponding to the same NFC-ID and confirm whether the reporting time in the door lock reads the mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock read mobile phone message; If it is confirmed that the reporting time in the door lock reading the mobile phone message is not within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading the mobile phone message, discard the door lock reading the mobile phone message. If it is confirmed that the reporting time in the door lock reading the mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading the mobile phone message, send a door opening message to the corresponding door lock ID to open the corresponding door lock.
5. The method according to claim 1, characterized in that The step of judging whether the visitor information table stored in the smart lock management platform matches the visitor information table stored in the unlocking request message according to the visitor APP-ID and the sending time includes: Determine whether there is a visitor APP-ID identical to the current visitor APP-ID in the visitor information table saved by the smart lock management platform, and whether the sending time is within the access validity period corresponding to the same visitor APP-ID; If there is a visitor APP-ID that is the same as the current visitor APP-ID, and the sending time is within the access validity period corresponding to the same visitor APP-ID, the unlocking request message matches the visitor information table saved by the smart lock management platform, otherwise it does not match.
6. The method according to claim 5, characterized in that The method of reading a mobile phone message according to the door lock and scheduling a corresponding door lock to open the door comprises: Extract the door lock ID corresponding to the NFC-ID in the mobile phone message read by the door lock, and check whether the reporting time is within the access validity period corresponding to the door lock ID; If the reporting time is not within the access validity period, the unlock request message is discarded. If the reporting time is within the access validity period, a door opening message is sent to the corresponding door lock ID to open the door.
7. A fast dispatch 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, 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 judgment module is used to judge whether the unlock request message is matched with the visitor information table saved by the smart lock management platform according to the visitor APP-ID and sending time in the unlock request message if the unlock request message is received first, 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; A search module is used to discard the unlock request message if there is no match. If there is a match, the door lock reads the mobile phone message containing the NFC-ID from the door lock reads the mobile phone message table saved by the smart lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the door lock reads the mobile phone message table receives and saves each door lock reads the mobile phone message; The scheduling module is used to schedule the corresponding door lock to open the door according to the mobile phone message read by the door lock if a door lock containing the NFC-ID is found.
8. The system according to claim 7, characterized in that The system further comprises: The reading module is used to read the mobile phone message if the door lock containing the NFC-ID is not found, and read the door lock ID that the visitor APP-ID allows to access from the visitor information table according to the visitor APP-ID; The sending module is used to send an identification message of nearby mobile phones to the door lock ID that is allowed to access, so that the door lock corresponding to the door lock ID that is allowed to access reads the NFC-ID of the nearby mobile phone after receiving the nearby mobile phone message. If the read NFC-ID is the same as the NFC-ID in the identification message of nearby mobile phones, the door lock is opened, wherein the identification message of nearby mobile phones includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining power of the door lock.
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
Realization method and system of NFC (near field communication) electronic lock and NFC electronic lock card reader
CN103778705A
Underground pipe gallery access control system
CN108091007A
Access control system based on mobile phone NFC
CN110189445A
Near field communication card data writing system, near field communication card data writing method, device and medium
CN111130602A
Intelligent lock control method, mobile terminal, intelligent lock and readable medium
CN116152958A
Cited By
Quick door opening method and system based on pan-tilt door lock
CN120299120A