Efficient dispatching door opening method and system based on intelligent lock platform

By implementing efficient scheduling of door opening methods on the smart lock platform, the existing smart door lock system has solved the problem of insufficient processing capabilities in the case of multiple visitors, optimized the unlocking process, improved the response speed and accuracy, and provided users with safer and more convenient access control management.

CN119851380AActive Publication Date: 2025-04-18DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510332266.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2025-04-18
Estimated Expiration
2045-03-20

AI Technical Summary

Technical Problem

The existing smart door lock system is insufficient in handling the situation where multiple visitors arrive at the same time, resulting in limited response speed and accuracy, which brings inconvenience to users.

Method used

By implementing efficient scheduling of door opening methods on the smart lock platform, receiving guest unlock request messages or door lock reading mobile phone messages, looking up NFC-ID, and determining its qualifications in the user list and visitor information table. If available, send a request message to the relevant APP to realize door lock unlocking.

Benefits of technology

The unlocking process of traditional smart door locks has been optimized, the system's response speed and accuracy have been improved, and a safer and more convenient access control management solution has been provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119851380A_ABST
    Figure CN119851380A_ABST
Patent Text Reader

Abstract

The invention discloses an efficient dispatching door opening method and system based on an intelligent lock platform. The method comprises the steps that a visitor unlocking request message or a message that a door lock reads a mobile phone is received; if a door lock reading mobile phone message is received firstly, the NFC-ID in the door lock reading mobile phone message is searched, and whether the same NFC-ID is received in the visitor unlocking request message table or not is searched; if the same NFC-ID is not received, judging whether the NFC-ID exists in a user list, if the NFC-ID exists in the user list, extracting an APP-ID corresponding to the NFC-ID, and judging whether the APP-ID has the qualification of accessing a door lock corresponding to the door lock ID; if the APP-ID exists, sending a request message containing the door lock-ID and the door lock IP address to the APP-ID, and sending an APP door opening request message containing the NFC-ID and the waiting duration to the door lock, so that the door lock and the APP interact with each other independently, and unlocking of the door lock is achieved. By utilizing the embodiment of the invention, the unlocking process of the traditional intelligent door lock can be optimized, and a safer and more convenient access control management solution is provided for a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent door locks, and in particular to an efficient 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, smart door locks have gradually gained wide application as an important part of security management in homes and commercial places. Traditional door lock systems usually rely on physical keys or a single electronic identification method, which have certain limitations in terms of security, convenience and management efficiency. For example, physical keys are easy to lose, traditional electronic keys need to be replaced frequently, and in many cases, visitors' timely access will be restricted.

[0003] In this context, the smart lock system based on mobile Internet technology came into being. It can realize remote unlocking, real-time identity authentication and more flexible access control management. However, when processing visitor unlocking requests, the existing smart lock system usually relies on a single information source, which limits the system's response speed and accuracy. Especially when multiple visitors arrive at the same time, the system's processing capacity may be bottlenecked, causing inconvenience to users. Summary of the invention

[0004] The purpose of the present invention is to provide an efficient scheduling door opening method and system based on a smart lock platform to solve the deficiencies in the prior art, optimize the unlocking process of traditional smart door locks, and provide users with a safer and more convenient access control management solution.

[0005] An embodiment of the present application provides an efficient scheduling door opening method based on a smart lock platform, the method comprising: Receive a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; If a door lock reads a mobile phone message first, find the NFC-ID in the door lock reads the mobile phone message, and find whether the same NFC-ID is received in the visitor unlock request message table saved by the smart lock management platform, wherein the visitor unlock request message table receives and saves each visitor unlock request message; If the same NFC-ID is not received, determine from the user list recorded by the platform whether the NFC-ID exists in the user list. If it exists in the user list, extract the APP-ID corresponding to the NFC-ID from the user list, and determine from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP where the user APP is located, and 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 APP-ID does not have the qualifications to access the door lock to read the door lock ID corresponding to the mobile phone message, discard the door lock to read the mobile phone message. If the APP-ID has the qualifications to access the door lock to read the door lock ID corresponding to the mobile phone message, send a request message to the door lock containing the door lock ID and the door lock IP address to the APP-ID, and send a receive APP door opening request message containing the NFC-ID and waiting time to the door lock, so that the door lock and APP can interact with each other separately to unlock the door lock.

[0006] Optionally, the door lock and the APP interact with each other separately to unlock the door lock, including: After the APP-ID receives the request message to send to the door lock, if the visitor unlock request message has not been sent, the door lock reads the mobile phone message, otherwise, a door unlock request is sent to the door lock corresponding to the door lock-ID and the door lock IP address in the request message to send to the door lock, wherein the door unlock request contains the APP-ID and NFC-ID of the mobile phone itself; After the door lock receives the door opening request, it determines whether the NFC-ID is consistent with the NFC-ID in the received APP door opening request message. If they are consistent, it further determines whether the current time is within the waiting time. If it is within the waiting time, the door lock is opened.

[0007] Optionally, the method further includes: If the door lock reads the mobile phone message first, and multiple door lock reads the mobile phone message is received within a preset short time, the corresponding APP-ID and mobile phone IP are extracted from the user list respectively, and the APP-ID, mobile phone IP, door lock IP address and current timestamp are packaged together to obtain a rotation judgment to send a request message to the door lock; The request message sent to the door lock by the turn judgment is sent to the first visitor's mobile phone APP, and the receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the corresponding door lock; The first visitor mobile phone APP determines whether it has sent a visitor unlocking request message. If it has not sent a visitor unlocking request message, it determines whether the current time point has passed a preset time relative to the timestamp in the request message sent to the door lock by taking turns. If the preset time has not passed, the mobile phone APP sends the request message sent to the door lock by taking turns to the next visitor mobile phone APP, until one of the visitor mobile phone APPs determines that it has sent a visitor unlocking request message, then extracts the door lock IP address from the request message sent to the door lock by taking turns to send a door opening request to the corresponding door lock, and ends sending the request message sent to the door lock by taking turns to the next visitor mobile phone APP, or, until one of the visitor mobile phone APPs determines that the current time point has passed a preset time relative to the timestamp in the request message sent to the door lock by taking turns to send a door lock.

[0008] Optionally, the method further includes: If a visitor 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 sending time in the visitor unlocking 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 visitor 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; 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.

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

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

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

[0012] Another embodiment of the present application provides an efficient scheduling door opening system based on a smart lock platform, the system comprising: A receiving module is used to receive a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; A search module is used to search for the NFC-ID in the door lock reading mobile phone message if a door lock reading mobile phone message is received first, and to search whether the same NFC-ID is received in the visitor unlocking request message table saved by the smart lock management platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; The judgment module is used to judge whether the NFC-ID exists in the user list from the user list recorded by the platform if the same NFC-ID is not received. If it exists in the user list, the APP-ID corresponding to the NFC-ID is extracted from the user list, and the APP-ID is judged from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP where the user APP is located, and 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 unlocking module is used to discard the mobile phone message reading the door lock if the APP-ID does not have the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message; if the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, send a request message to the door lock containing the door lock-ID and the door lock IP address to the APP-ID, and send a receiving APP door opening request message containing the NFC-ID and the waiting time to the door lock, so that the door lock and the APP can interact with each other separately to realize the door lock unlocking.

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

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

[0015] Compared with the prior art, the present invention provides an efficient scheduling door opening method based on a smart lock platform, which receives a visitor unlocking request message or a door lock reads a mobile phone message; if a door lock reads a mobile phone message is received first, the NFC-ID in the door lock reads the mobile phone message is searched, and the same NFC-ID is searched in the visitor unlocking request message table. If the same NFC-ID is not received, it is determined whether the NFC-ID exists in the user list, and if so, the APP-ID corresponding to the NFC-ID is extracted, and it is determined whether the APP-ID has the qualification to access the door lock corresponding to the door lock ID; if the APP-ID has the qualification, a request message containing the door lock-ID and the door lock IP address is sent to the APP-ID, and a receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the door lock, so as to optimize the unlocking process of the traditional smart door lock and provide users with a safer and more convenient access control management solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A hardware structure block diagram of a computer terminal for an efficient scheduling door opening method based on a smart lock platform provided in an embodiment of the present invention; Figure 2 A schematic diagram of a flow chart of an efficient 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 an efficient scheduling door opening system based on a smart lock platform provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0018] The embodiment of the present invention first provides an efficient 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.

[0019] 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 an efficient 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.

[0020] 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 efficient scheduling door opening methods based on the smart lock platform.

[0021] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0022] 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 efficient scheduling door opening method based on the smart lock platform.

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

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

[0025] See also Figure 2 , an embodiment of the present invention provides an efficient scheduling door opening method based on a smart lock platform, which may include the following steps: S201, receiving a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; S202, if a door lock reads a mobile phone message first, find the NFC-ID in the door lock reads the mobile phone message, and find whether the same NFC-ID is received in the visitor unlocking request message table saved by the smart lock management platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; Specifically, if the door lock reads the mobile phone message first, and multiple door lock reads the mobile phone messages are received within a preset short time, the corresponding APP-ID and mobile phone IP are extracted from the user list respectively, and the APP-ID, mobile phone IP, door lock IP address and current timestamp are packaged together to obtain a rotation judgment to send a request message to the door lock; The request message sent to the door lock by the turn judgment is sent to the first visitor's mobile phone APP, and the receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the corresponding door lock; The first visitor mobile phone APP determines whether it has sent a visitor unlocking request message. If it has not sent a visitor unlocking request message, it determines whether the current time point has passed a preset time relative to the timestamp in the request message sent to the door lock by taking turns. If the preset time has not passed, the mobile phone APP sends the request message sent to the door lock by taking turns to the next visitor mobile phone APP, until one of the visitor mobile phone APPs determines that it has sent a visitor unlocking request message, then extracts the door lock IP address from the request message sent to the door lock by taking turns to send a door opening request to the corresponding door lock, and ends sending the request message sent to the door lock by taking turns to the next visitor mobile phone APP, or, until one of the visitor mobile phone APPs determines that the current time point has passed a preset time relative to the timestamp in the request message sent to the door lock by taking turns to send a door lock.

[0026] Specifically, if a visitor unlocking request message is received first, it is determined whether the visitor information table saved by the smart lock management platform matches the visitor APP-ID and sending time in the visitor unlocking request message, wherein the visitor information table receives and saves each visitor information, each visitor information including: owner APP-ID, door lock-ID, visitor APP-ID, access validity period; If there is no match, the visitor 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; 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.

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

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

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

[0030] S203, if the same NFC-ID is not received, determine from the user list recorded by the platform whether the NFC-ID exists in the user list, if it exists in the user list, extract the APP-ID corresponding to the NFC-ID from the user list, and determine from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifimac, mobile phone IP where the user APP is located, and 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; S204, if the APP-ID does not have the qualification to access the door lock to read the door lock ID in the mobile phone message corresponding to the door lock, discard the door lock to read the mobile phone message; if the APP-ID has the qualification to access the door lock to read the door lock ID in the mobile phone message corresponding to the door lock, send a request message to the door lock containing the door lock-ID and the door lock IP address to the APP-ID, and send a receive APP door opening request message containing the NFC-ID and the waiting time to the door lock, so that the door lock and the APP can interact with each other separately to realize the door lock unlocking.

[0031] Specifically, the door lock and the APP interact with each other separately to realize the door lock unlocking. After the APP-ID receives the request message sent to the door lock, if the visitor unlocking request message has not been sent, the door lock reads the mobile phone message, otherwise, the door unlocking request is sent to the door lock corresponding to the door lock-ID and the door lock IP address in the request message sent to the door lock, wherein the door unlocking request contains the APP-ID and NFC-ID of the mobile phone itself; After the door lock receives the door opening request, it determines whether the NFC-ID is consistent with the NFC-ID in the received APP door opening request message. If they are consistent, it further determines whether the current time is within the waiting time. If it is within the waiting time, the door lock is opened.

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

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

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

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

[0036] Table 1

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

[0038] The platform saves the message content. The visitor unlocking request message saved by the platform is shown in Table 2.

[0039] Table 2

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

[0041] The platform saves the message content. The door lock reading message saved by the platform is shown in Table 3.

[0042] Table 3

[0043] There is a time lag between the platform receiving information reported by visitors and door locks.

[0044] 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 within ±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. When the door lock receives the "open door" message, it opens the door and returns an OK message to the platform, ending the session.

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

[0046] If the platform receives the "Door lock reads mobile phone" message from the door lock first, it must wait. If the visitor does send an "Unlock Request" message, the platform will not wait too long. However, if the visitor does not send an "Unlock Request" message, the platform will have to wait for the threshold limit, which is 120 seconds, resulting in a longer process time. In order to further save the time occupied by platform resources, the following optimizations are made: 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. If found, the corresponding APP-ID is found from Table 2, and the visitor's APP-ID is confirmed according to Table 1 whether it is within the validity period that can access the door lock ID. If it is 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. However, if the visitor APP-ID at the corresponding time point is not found immediately in Table 2, first determine whether the NFC-ID exists in the user list from the user list recorded by the platform, otherwise the message is discarded. If so, the platform extracts the APP-ID corresponding to the NFC-ID from the user list, and determines from Table 1 whether the APP-ID is qualified to access the door lock. If not, the message is discarded. Otherwise, a "Send request to door lock" message is sent to the APP-ID, including the door lock-ID and the door lock IP address (the door lock IP address is obtained by the platform from the door lock list maintained locally); and a "Receive APP door opening request" message is sent to the door lock, including the NFC-ID and waiting time; then the resources are released immediately. After the APP-ID is received, if the "unlock request" message has not been sent, the message is discarded. Otherwise, the door lock-ID is extracted from the "Send request to door lock" message, the IP address corresponding to the door lock-ID is requested from the platform, and the door lock is sent a door opening request, including the APP-ID and NFC-ID of the mobile phone; after receiving the door opening request, the door lock determines whether the NFC-ID is consistent with the NFC-ID in the "Receive APP door opening request" message from the platform. If it is consistent, it further determines whether it is within the waiting time. If both are satisfied, the door is opened.

[0047] In corridors with heavy traffic, the door lock will frequently detect mobile phone NFC. In order to avoid sending messages to the platform frequently and intensively, the door lock will delay sending the collected NFC-ID to the platform at one time. If multiple mobile phone NFC-IDs are detected in a short period of time (for example, 1 minute before and after), the "door lock reads mobile phone" message sent by the door lock will include these mobile phone NFC-IDs. At this time, the platform needs to send "send request to door lock" messages to these mobile phone APP-IDs respectively, which causes a heavy burden on the platform. Therefore, the improvements are as follows: After the platform receives the "Door lock reads mobile phone" message containing multiple mobile phone NFC-IDs, it extracts the corresponding mobile phone APP-ID and mobile phone IP address from the user list it maintains, including the door lock IP address and the current timestamp, and packages them into the "take turns to judge and send requests to the door lock" message. The platform sends this message to the mobile phone APP that ranks first. The platform also sends the "receive APP door opening request" message to the door lock, which contains the NFC-ID and waiting time; then releases the resources immediately.

[0048] The first mobile phone APP determines whether it has sent an "unlock request". If not, it determines whether 5 minutes have passed since the current time point relative to the timestamp in the message (if so, the message is discarded). If not, the mobile phone APP sends a "take turns to determine whether to send a request to the door lock" message to the second mobile phone APP.

[0049] After receiving the message, the second mobile phone APP determines whether it has sent an "unlock request". If not, it determines whether 5 minutes have passed since the current time point relative to the timestamp in the message (if so, the message is discarded). If not, the mobile phone APP sends the "take turns to determine and send a request to the door lock" message to the third mobile phone APP. And so on.

[0050] The Nth mobile phone APP finds that it has sent an "unlock request" message to the platform before, so it extracts the door lock IP address from the "take turns to determine and send a request to the door lock" message, sends an unlock request to the door lock, and stops sending messages to the next mobile phone APP.

[0051] If the last mobile phone APP does not find that it has sent an "unlock request" message to the platform, the message will be discarded.

[0052] Why don't mobile apps have to poll repeatedly? Because it's unnecessary. Why doesn't one mobile app need to poll again if it finds that it has sent an "unlock request" message before? Because, since there is a mobile app in front of the same door lock that has submitted it, the door can be opened.

[0053] Beneficial effects: The platform does not need to wait and releases resources in time. When users submit an "unlock request", they do not need to specify which owner's door lock they want to open, and the system automatically handles it. Mobile APP can save resources, and the platform can save resources.

[0054] It can be seen that a visitor unlocking request message or a door lock reads a mobile phone message is received; if a door lock reads a mobile phone message is received first, the NFC-ID in the door lock reads the mobile phone message is searched, and the same NFC-ID is found in the visitor unlocking request message table; if the same NFC-ID is not received, it is determined whether the NFC-ID exists in the user list, if so, the APP-ID corresponding to the NFC-ID is extracted, and it is determined whether the APP-ID has the qualification to access the door lock corresponding to the door lock ID; if the APP-ID has, a request message containing the door lock-ID and the door lock IP address is sent to the APP-ID, and a receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the door lock, so as to optimize the unlocking process of traditional smart door locks and provide users with a safer and more convenient access control management solution.

[0055] Another embodiment of the present invention provides an efficient scheduling door opening system based on a smart lock platform, see Figure 3 , the system may include: The receiving module 301 is used to receive a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; The search module 302 is used to search the NFC-ID in the door lock reading mobile phone message if a door lock reading mobile phone message is received first, and search whether the same NFC-ID is received in the visitor unlocking request message table saved by the smart lock management platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; The judgment module 303 is used to judge whether the NFC-ID exists in the user list from the user list recorded by the platform if the same NFC-ID is not received. If it exists in the user list, the APP-ID corresponding to the NFC-ID is extracted from the user list, and the APP-ID is judged from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP where the user APP is located, and 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 unlocking module 304 is used to discard the door lock reading mobile phone message if the APP-ID does not have the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message; if the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, send a request message to the door lock containing the door lock-ID and the door lock IP address to the APP-ID, and send a receive APP door opening request message containing the NFC-ID and the waiting time to the door lock, so that the door lock and the APP can interact with each other separately to realize the door lock unlocking.

[0056] It can be seen that a visitor unlocking request message or a door lock reads a mobile phone message is received; if a door lock reads a mobile phone message is received first, the NFC-ID in the door lock reads the mobile phone message is searched, and the same NFC-ID is found in the visitor unlocking request message table; if the same NFC-ID is not received, it is determined whether the NFC-ID exists in the user list, if so, the APP-ID corresponding to the NFC-ID is extracted, and it is determined whether the APP-ID has the qualification to access the door lock corresponding to the door lock ID; if the APP-ID has, a request message containing the door lock-ID and the door lock IP address is sent to the APP-ID, and a receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the door lock, so as to optimize the unlocking process of traditional smart door locks and provide users with a safer and more convenient access control management solution.

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

[0058] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps: S201, receiving a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; S202, if a door lock reads a mobile phone message first, find the NFC-ID in the door lock reads the mobile phone message, and find whether the same NFC-ID is received in the visitor unlocking request message table saved by the smart lock management platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; S203, if the same NFC-ID is not received, determine from the user list recorded by the platform whether the NFC-ID exists in the user list, if it exists in the user list, extract the APP-ID corresponding to the NFC-ID from the user list, and determine from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifimac, mobile phone IP where the user APP is located, and 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; S204, if the APP-ID does not have the qualification to access the door lock to read the door lock ID in the mobile phone message corresponding to the door lock, discard the door lock to read the mobile phone message; if the APP-ID has the qualification to access the door lock to read the door lock ID in the mobile phone message corresponding to the door lock, send a request message to the door lock containing the door lock-ID and the door lock IP address to the APP-ID, and send a receive APP door opening request message containing the NFC-ID and the waiting time to the door lock, so that the door lock and the APP can interact with each other separately to realize the door lock unlocking.

[0059] It can be seen that a visitor unlocking request message or a door lock reads a mobile phone message is received; if a door lock reads a mobile phone message is received first, the NFC-ID in the door lock reads the mobile phone message is searched, and the same NFC-ID is found in the visitor unlocking request message table; if the same NFC-ID is not received, it is determined whether the NFC-ID exists in the user list, if so, the APP-ID corresponding to the NFC-ID is extracted, and it is determined whether the APP-ID has the qualification to access the door lock corresponding to the door lock ID; if the APP-ID has, a request message containing the door lock-ID and the door lock IP address is sent to the APP-ID, and a receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the door lock, so as to optimize the unlocking process of traditional smart door locks and provide users with a safer and more convenient access control management solution.

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

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

[0062] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program: S201, receiving a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; S202, if a door lock reads a mobile phone message first, find the NFC-ID in the door lock reads the mobile phone message, and find whether the same NFC-ID is received in the visitor unlocking request message table saved by the smart lock management platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; S203, if the same NFC-ID is not received, determine from the user list recorded by the platform whether the NFC-ID exists in the user list, if it exists in the user list, extract the APP-ID corresponding to the NFC-ID from the user list, and determine from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifimac, mobile phone IP where the user APP is located, and 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; S204, if the APP-ID does not have the qualification to access the door lock to read the door lock ID in the mobile phone message corresponding to the door lock, discard the door lock to read the mobile phone message; if the APP-ID has the qualification to access the door lock to read the door lock ID in the mobile phone message corresponding to the door lock, send a request message to the door lock containing the door lock-ID and the door lock IP address to the APP-ID, and send a receive APP door opening request message containing the NFC-ID and the waiting time to the door lock, so that the door lock and the APP can interact with each other separately to realize the door lock unlocking.

[0063] It can be seen that a visitor unlocking request message or a door lock reads a mobile phone message is received; if a door lock reads a mobile phone message is received first, the NFC-ID in the door lock reads the mobile phone message is searched, and the same NFC-ID is found in the visitor unlocking request message table; if the same NFC-ID is not received, it is determined whether the NFC-ID exists in the user list, if so, the APP-ID corresponding to the NFC-ID is extracted, and it is determined whether the APP-ID has the qualification to access the door lock corresponding to the door lock ID; if the APP-ID has, a request message containing the door lock-ID and the door lock IP address is sent to the APP-ID, and a receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the door lock, so as to optimize the unlocking process of traditional smart door locks and provide users with a safer and more convenient access control management solution.

[0064] 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. An efficient scheduling door opening method based on a smart lock platform, characterized in that: The method comprises: Receive a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; If a door lock reads a mobile phone message first, find the NFC-ID in the door lock reads the mobile phone message, and find whether the same NFC-ID is received in the visitor unlock request message table saved by the smart lock management platform, wherein the visitor unlock request message table receives and saves each visitor unlock request message; If the same NFC-ID is not received, determine from the user list recorded by the platform whether the NFC-ID exists in the user list. If it exists in the user list, extract the APP-ID corresponding to the NFC-ID from the user list, and determine from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP where the user APP is located, and 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 APP-ID does not have the qualifications to access the door lock to read the door lock ID corresponding to the mobile phone message, discard the door lock to read the mobile phone message. If the APP-ID has the qualifications to access the door lock to read the door lock ID corresponding to the mobile phone message, send a request message to the door lock containing the door lock ID and the door lock IP address to the APP-ID, and send a receive APP door opening request message containing the NFC-ID and waiting time to the door lock, so that the door lock and APP can interact with each other separately to unlock the door lock.

2. The method according to claim 1, characterized in that The door lock and the APP interact with each other separately to unlock the door lock, including: After the APP-ID receives the request message to send to the door lock, if the visitor unlock request message has not been sent, the door lock reads the mobile phone message, otherwise, a door unlock request is sent to the door lock corresponding to the door lock-ID and the door lock IP address in the request message to send to the door lock, wherein the door unlock request contains the APP-ID and NFC-ID of the mobile phone itself; After the door lock receives the door opening request, it determines whether the NFC-ID is consistent with the NFC-ID in the received APP door opening request message. If they are consistent, it further determines whether the current time is within the waiting time. If it is within the waiting time, the door lock is opened.

3. The method according to claim 1, characterized in that The method further comprises: If the door lock reads the mobile phone message first, and multiple door lock reads the mobile phone message is received within a preset short time, the corresponding APP-ID and mobile phone IP are extracted from the user list respectively, and the APP-ID, mobile phone IP, door lock IP address and current timestamp are packaged together to obtain a rotation judgment to send a request message to the door lock; The request message sent to the door lock by the turn judgment is sent to the first visitor's mobile phone APP, and the receiving APP door opening request message containing the NFC-ID and the waiting time is sent to the corresponding door lock; The first visitor mobile phone APP determines whether it has sent a visitor unlocking request message. If it has not sent a visitor unlocking request message, it determines whether the current time point has passed a preset time relative to the timestamp in the request message sent to the door lock by taking turns. If the preset time has not passed, the mobile phone APP sends the request message sent to the door lock by taking turns to the next visitor mobile phone APP, until one of the visitor mobile phone APPs determines that it has sent a visitor unlocking request message, then extracts the door lock IP address from the request message sent to the door lock by taking turns to send a door opening request to the corresponding door lock, and ends sending the request message sent to the door lock by taking turns to the next visitor mobile phone APP, or, until one of the visitor mobile phone APPs determines that the current time point has passed a preset time relative to the timestamp in the request message sent to the door lock by taking turns to send a door lock.

4. The method according to claim 1, characterized in that The method further comprises: If a visitor 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 sending time in the visitor unlocking 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 visitor 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; 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.

5. The method according to claim 4, 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.

6. The method according to claim 4, 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.

7. The method according to claim 5 or 6, 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.

8. An efficient scheduling door opening system based on a smart lock platform, characterized in that: The system comprises: A receiving module is used to receive a visitor unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the smart door lock, wherein the visitor 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, mobile phone NFC-ID and reporting time; A search module is used to search for the NFC-ID in the door lock reading mobile phone message if a door lock reading mobile phone message is received first, and to search whether the same NFC-ID is received in the visitor unlocking request message table saved by the smart lock management platform, wherein the visitor unlocking request message table receives and saves each visitor unlocking request message; The judgment module is used to judge whether the NFC-ID exists in the user list from the user list recorded by the platform if the same NFC-ID is not received. If it exists in the user list, the APP-ID corresponding to the NFC-ID is extracted from the user list, and the APP-ID is judged from the visitor information table saved by the platform whether the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, wherein the user list includes: user serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP where the user APP is located, and 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 unlocking module is used to discard the mobile phone message reading the door lock if the APP-ID does not have the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message; if the APP-ID has the qualification to access the door lock to read the door lock corresponding to the door lock ID in the mobile phone message, send a request message to the door lock containing the door lock-ID and the door lock IP address to the APP-ID, and send a receiving APP door opening request message containing the NFC-ID and the waiting time to the door lock, so that the door lock and the APP can interact with each other separately to realize the door lock unlocking.

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

  • Safety access control method

    CN105261105A

  • Door access control method

    CN105719374A

  • Smart home platform and smart home key control method and system

    CN111179481A

  • Method and system for realizing automatic unlocking based on ibeacon geofence

    CN114677787A