A fast scheduling door opening method and system based on an intelligent lock platform
Through the smart lock platform method of receiving and matching visitors APP-ID and NFC-ID, the problem of slow response speed and insufficient security of the smart lock system in multiple visitors is solved, and the fast and secure door opening process is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202510332123.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-03-20
AI Technical Summary
The existing smart lock system is slow to respond when handling multiple visitors arrive at the same time, has poor user experience, and insufficient security.
Read mobile phone messages by receiving the visitors' unlock request message and the door lock reported by the smart door lock, use the visitor APP-ID and NFC-ID to make matching judgments, and schedule the corresponding door lock to open the door, combining the access validity period and power margin to optimize the processing process.
Improves the security and user experience of smart locks, ensuring rapid response to unlock requests from multiple visitors, reducing resource usage and waiting time.
Smart Images

Figure CN119888900B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent door locks, and particularly relates to a fast scheduling door opening method and system based on an intelligent lock platform. Background Art
[0002] In modern smart home systems, intelligent 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, which, although having a certain level of security, are insufficient in terms of convenience and user experience. For example, when a visitor needs to enter a certain area, they often need to communicate with the host in advance and use a physical key or access card. This method is not only time-consuming but also difficult to meet the requirements of fast and flexible use.
[0003] With the rapid development of electronic technology and mobile Internet, the demand for user security and convenience has prompted the industry to continuously promote the innovation of intelligent door lock technology. Although existing intelligent lock systems can achieve remote unlocking and identity verification, most systems still rely on a single information source when processing visitor unlocking requests, resulting in slow response speed and poor user experience in the case of multiple visitors arriving simultaneously. Summary of the Invention
[0004] The purpose of the present invention is to provide a fast scheduling door opening method and system based on an intelligent lock platform to solve the deficiencies in the prior art, improve the security of the intelligent lock, and significantly enhance the user experience.
[0005] An embodiment of the present application provides a fast scheduling door opening method based on an intelligent lock platform, the method comprising:
[0006] Receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by the intelligent door lock, wherein the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0007] If the unlocking request message is received first, judging whether it matches the visitor information table stored in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message, wherein the visitor information table receives and stores each piece of visitor information, and each piece of visitor information includes: host APP-ID, door lock-ID, visitor APP-ID, and access validity period;
[0008] If there is no match, discard the unlocking request message. If there is a match, based on the NFC-ID corresponding to the visitor APP-ID, search the mobile phone message table read by the door lock saved on the smart lock platform for the mobile phone message read by the door lock that contains the NFC-ID. Among them, the mobile phone message table read by the door lock receives and saves each mobile phone message read by the door lock;
[0009] If a mobile phone message read by the door lock that contains the NFC-ID is found, dispatch the corresponding door lock to open the door according to the mobile phone message read by the door lock.
[0010] Optionally, the method further includes:
[0011] If a mobile phone message read by the door lock that contains the NFC-ID is not found, read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table according to the visitor APP-ID;
[0012] Send an identifying nearby mobile phone message to the door lock ID allowed to be accessed, so that after the door lock corresponding to the door lock ID allowed to be accessed receives the nearby mobile phone message, 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, open the door lock. Among them, the identifying nearby mobile phone message includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining battery power of the door lock.
[0013] Optionally, the method further includes:
[0014] If a mobile phone message read by the door lock that contains the NFC-ID is not found, read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table according to the visitor APP-ID;
[0015] Search the visitor information table for all door lock IDs allowed to be accessed by the current visitor, and find the IP addresses of the corresponding door locks according to the door lock list maintained locally. Put all the door lock IDs, 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 for polling identification within a preset period until a door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID of the visitor's mobile phone in the autonomous polling identification message, and then open the corresponding door lock.
[0016] Optionally, the method further includes:
[0017] If a mobile phone message read by the door lock is received first, based on the NFC-ID in the mobile phone message read by the door lock, search whether there is the same NFC-ID in the visitor unlocking request message table saved on the platform. Among them, the visitor unlocking request message table receives and saves each visitor unlocking request message;
[0018] If there is no identical NFC-ID, discard the door lock's reading of the mobile phone message. If there is an identical NFC-ID, search for the corresponding visitor APP-ID of the identical NFC-ID, and confirm whether the reporting time in the door lock's reading of the mobile phone message is within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table;
[0019] If it is confirmed that the reporting time in the door lock's reading of the mobile phone message is not within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table, discard the door lock's reading of the mobile phone message. If it is confirmed that the reporting time in the door lock's reading of the mobile phone message is within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table, send an unlock message to the corresponding door lock ID to unlock the corresponding door.
[0020] Optionally, determining whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlock request message includes:
[0021] Determine whether there is a visitor APP-ID identical to the current visitor APP-ID in the visitor information table saved in the intelligent lock management platform, and whether the sending time is within the access validity period corresponding to the same visitor APP-ID;
[0022] If there is a visitor APP-ID identical to the current visitor APP-ID and the sending time is within the access validity period corresponding to the same visitor APP-ID, then the unlock request message matches the visitor information table saved in the intelligent lock management platform; otherwise, it does not match.
[0023] Optionally, dispatching the corresponding door lock to unlock according to the door lock's reading of the mobile phone message includes:
[0024] Extract the door lock ID corresponding to the NFC-ID in the door lock's reading of the mobile phone message, and check whether the reporting time is within the access validity period corresponding to the door lock ID;
[0025] If the reporting time is not within the access validity period, discard the unlock request message. If the reporting time is within the access validity period, send an unlock message to the corresponding door lock ID to unlock the corresponding door.
[0026] Another embodiment of the present application provides a fast dispatching unlocking system based on an intelligent lock platform, and the system includes:
[0027] A receiving module, configured to receive an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, where the unlocking request message includes: a visitor APP-ID, a visitor mobile phone NFC-ID, and a sending time, and the door lock reading mobile phone message includes: a door lock ID, an NFC-ID of the mobile phone, and a reporting time;
[0028] A judging module, configured to, if the unlocking request message is received first, judge whether it matches the visitor information table stored in the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message, where the visitor information table receives and stores each piece of visitor information, and each piece of visitor information includes: a host APP-ID, a door lock-ID, a visitor APP-ID, and an access validity period;
[0029] A searching module, configured to, if it does not match, discard the unlocking request message, and if it matches, search for a door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table stored in the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID, where the door lock reading mobile phone message table receives and stores each piece of door lock reading mobile phone message;
[0030] A scheduling module, configured to, if a door lock reading mobile phone message containing the NFC-ID is found, schedule the corresponding door lock to open according to the door lock reading mobile phone message.
[0031] Another embodiment of the present application provides a storage medium, in which a computer program is stored, where the computer program is configured to execute the method described in any one of the above when running.
[0032] Another embodiment of the present application provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of the above.
[0033] Compared with the prior art, a fast scheduling unlocking method based on an intelligent lock platform provided by the present invention receives an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock; if the unlocking request message is received first, judge whether it matches the visitor information table stored in the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message; if it does not match, discard the unlocking request message, and if it matches, search for a door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table stored in the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID; if a door lock reading mobile phone message containing the NFC-ID is found, schedule the corresponding door lock to open according to the door lock reading mobile phone message, so as to improve the security of the intelligent lock and significantly enhance the user experience at the same time. Description of the Drawings
[0034] Figure 1 The hardware structure block diagram of a computer terminal for a fast scheduling door opening method based on an intelligent lock platform provided by an embodiment of the present invention;
[0035] Figure 2 The schematic flow chart of a fast scheduling door opening method based on an intelligent lock platform provided by an embodiment of the present invention;
[0036] Figure 3 The structural schematic diagram of a fast scheduling door opening system based on an intelligent lock platform provided by an embodiment of the present invention. Detailed Embodiment
[0037] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0038] An embodiment of the present invention first provides a fast scheduling door opening method based on an intelligent lock platform. This method can be applied to electronic devices, such as computer terminals, specifically ordinary computers, etc.
[0039] The following takes running on a computer terminal as an example to describe it in detail. Figure 1 The hardware structure block diagram of a computer terminal for a fast scheduling door opening method based on an intelligent lock platform provided by an embodiment of the present invention. As Figure 1 shown, the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory may include a non-volatile storage medium and an internal memory.
[0040] The non-volatile storage medium can store an operating system and computer programs. These computer programs include program instructions. When these program instructions are executed, the processor can execute any fast scheduling door opening method based on an intelligent lock platform.
[0041] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
[0042] The internal memory provides an environment for the operation of the computer programs in the non-volatile storage medium. When these computer programs are executed by the processor, the processor can execute any fast scheduling door opening method based on an intelligent lock platform.
[0043] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand, Figure 1The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0044] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0045] See Figure 2 , an embodiment of the present invention provides a fast scheduling door opening method based on an intelligent lock platform, which may include the following steps:
[0046] S201, receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock. Among them, the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0047] S202, if the unlocking request message is received first, judging whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message. Among them, the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: host APP-ID, door lock-ID, visitor APP-ID, access validity period;
[0048] Specifically, if the door lock reading mobile phone message is received first, according to the NFC-ID in the door lock reading mobile phone message, checking whether there is the same NFC-ID in the visitor unlocking request message table saved by the platform. Among them, the visitor unlocking request message table receives and saves each piece of visitor unlocking request message;
[0049] If there is no identical NFC-ID, discard the door lock's reading of the mobile phone message. If there is an identical NFC-ID, search for the corresponding visitor APP-ID of the identical NFC-ID, and confirm whether the reporting time in the door lock's reading of the mobile phone message is within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table;
[0050] If it is confirmed that the reporting time in the door lock's reading of the mobile phone message is not within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table, discard the door lock's reading of the mobile phone message. If it is confirmed that the reporting time in the door lock's reading of the mobile phone message is within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table, send an unlock message to the corresponding door lock ID to unlock the corresponding door lock.
[0051] Specifically, based on the visitor APP-ID and the sending time in the unlock request message, determine whether it matches the visitor information table saved in the intelligent lock management platform, and it can be determined whether there is a visitor APP-ID identical to the current visitor APP-ID in the visitor information table saved in the intelligent lock management platform, and whether the sending time is within the access validity period corresponding to the same visitor APP-ID;
[0052] If there is a visitor APP-ID identical to the current visitor APP-ID and the sending time is within the access validity period corresponding to the same visitor APP-ID, then the unlock request message matches the visitor information table saved in the intelligent lock management platform, otherwise it does not match.
[0053] S203, if it does not match, discard the unlock request message. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, search for the door lock's reading of the mobile phone message containing the NFC-ID from the door lock's reading of the mobile phone message table saved in the intelligent lock platform, where the door lock's reading of the mobile phone message table receives and saves each door lock's reading of the mobile phone message;
[0054] Specifically, if the door lock's reading of the mobile phone message containing the NFC-ID is not found, read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table according to the visitor APP-ID;
[0055] Send a message to identify the nearby mobile phone to the allowed door lock ID, so that after the door lock corresponding to the allowed door lock ID receives the nearby mobile phone message, it reads the NFC-ID of the nearby mobile phone. If the read NFC-ID is the same as the NFC-ID in the message to identify the nearby mobile phone, unlock the door lock. The message to identify the nearby mobile phone includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining battery power of the door lock.
[0056] Specifically, if the door lock that contains the NFC-ID fails 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;
[0057] All the door lock IDs that the current visitor is allowed to access are found from the visitor information table, and the IP addresses of the corresponding door locks are found according to the door lock list maintained locally. All the door lock IDs, the corresponding door lock IP addresses, the NFC-ID of the visitor's mobile phone, and the current timestamp are put into the independent polling identification message, and the independent polling identification message is sent to the first door lock among all the door locks for polling identification within a preset period until a door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID of the visitor's mobile phone in the independent polling identification message, and then the corresponding door lock is opened.
[0058] S204, if the door lock that contains the NFC-ID reads the mobile phone message, the corresponding door lock is scheduled to open the door according to the mobile phone message read by the door lock.
[0059] Specifically, according to the mobile phone message read by the door lock, scheduling the corresponding door lock 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 it is checked whether the reported time is within the access validity period corresponding to the door lock ID;
[0060] If the reported time is not within the access validity period, the unlocking request message is discarded. If the reported time is within the access validity period, an opening message is sent to the corresponding door lock ID to make the corresponding door lock open the door.
[0061] Exemplary, preset conditions:
[0062] An intelligent door lock is installed on the host's entrance door (each door lock has an independent ID, door lock IP address, door lock geographical location, etc.), and is connected to the cloud platform, registered with the platform, and updated periodically. The platform records the door lock list, including the door lock ID, door lock IP address, door lock geographical location, etc.
[0063] The mobile phones of the host and the visitor are both installed with APPs. Each APP has a unique ID (such as the username + mobile phone number used during registration), and supports reporting the APP-ID, mobile phone NFC-ID, mobile phone wifi mac, mobile phone IP, etc. to the platform, and is updated periodically. The platform records the user list, and the user list includes: serial number, APP-ID, mobile phone NFC-ID, mobile phone wifi mac, the mobile phone IP where the user APP is located, other user information, etc.
[0064] Application before the visitor visits the host's home:
[0065] The visitor sends their APP-ID to the host. The host fills in the visitor's APP-ID in their own APP and reports a "Visitor Registration" message to the platform, which includes: the host's APP-ID, the door lock-ID, the visitor's APP-ID, and the validity period. At the same time, a local copy of the visitor information form reported by the host is saved in the APP, including the door lock-ID, the visitor's APP-ID, and the validity period.
[0066] The platform saves the visitor information form, including the host's APP-ID, the door lock-ID, the visitor's APP-ID, the validity period, etc., as shown in the following table. Assume that the host's APP is APP-host, the door lock ID is door lock-host, and the mobile phone NFC-host; the APP of visitor 1 is APP-guest1, the door lock ID is door lock-guest1, and the mobile phone NFC-guest1; the APP of visitor 2 is APP-guest2, the door lock ID is door lock-guest2, and the mobile phone NFC-guest2. The visitor information form saved by the platform is shown in Table 1.
[0067] Table 1
[0068]
[0069] Processing when the visitor arrives at the host's home:
[0070] When visitor guest1 arrives at the host's doorstep and opens the mobile APP and clicks the unlock button (the key here is that it is not required for the visitor to explicitly select which room, even if the visitor has the permission to access multiple rooms at this time), the visitor's APP reports an "Unlock Request" message to the platform, which includes: the visitor's APP-ID, the visitor's mobile phone NFC-ID, and the sending time. Designing for the visitor's APP to actively report is to avoid the situation where when the visitor passes by the host's front door without the need to unlock and accidentally opens the door, causing a security risk.
[0071] The platform saves the message content. The visitor unlock request message saved by the platform is shown in Table 2.
[0072] Table 2
[0073]
[0074] When the door lock senses the mobile phone NFC nearby, it reads the NFC-ID of the nearby mobile phone and reports a "Door Lock Reads Mobile Phone" message to the platform, which includes: the door lock ID, the NFC-ID of the mobile phone, and the sending time. Designing for the door lock to report after reading the mobile phone information is to avoid the situation where when the visitor is not at the host's doorstep (such as going to the wrong place or remotely operating by mistake), the platform only checks and opens the door based on the visitor's APP information, causing a security risk.
[0075] The platform saves the message content. The door lock read message saved by the platform is shown in Table 3.
[0076] Table 3
[0077]
[0078] Platform processing:
[0079] There is a time difference between the information reported by the platform from the visitor and the door lock. If the platform first receives the "unlock request" message from the visitor's mobile APP - guest1, the platform searches the visitor information table, Table 1, according to the visitor APP-ID and the sending time. If there is no match, the message is discarded (indicating that there is no permission for the visitor to access the host within the valid period); otherwise, according to the NFC-ID corresponding to the visitor APP-ID, the platform searches for 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), 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 it is checked whether the sending time is within the valid period. If it exceeds the valid period, the message is discarded (indicating that the time point of the visitor's access is no longer within the period allowed by the host); if the sending time is within the valid period, the platform sends an "open door" message to the corresponding door lock ID. The door lock opens the door upon receiving the "open door" message and returns an OK message to the platform, ending the session.
[0080] 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 to check whether there is a corresponding visitor APP-ID at the corresponding time point, allowing for a certain time period range, such as within ±120 seconds. If not found, it is discarded (indicating that the door lock only detects a nearby mobile phone, but the APP of this mobile phone has not actively requested to open the door); otherwise, the corresponding APP-ID is found from Table 2, and it is confirmed according to Table 1 whether the visitor APP-ID is within the valid period to access the door lock ID. If it exceeds the valid period, the message is discarded (indicating that the time point of the visitor's access is no longer within the period allowed by the host); otherwise, the platform sends an "open door" message to the corresponding door lock ID. The door lock opens the door upon receiving the "open door" message and returns an OK message to the platform, ending the session.
[0081] 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:
[0082] 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.
[0083] 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.
[0084] If there are a large number of door locks that guest1 can access at this time point, the platform needs to send the message "Identify nearby mobile phones" to these door locks respectively, which results in a heavy burden on the platform. Moreover, each door lock that allows access will be harassed once, which is also inappropriate. Therefore, continue to optimize as follows:
[0085] The platform looks up all the door lock IDs that guest1 is allowed to access at this time point from Table 1, finds the IP addresses of the corresponding door locks according to the locally maintained door lock list, puts all the door lock IDs and the corresponding door lock IP addresses into the "Independent Polling Identification" message. This message also contains the NFC-ID of guest1's mobile phone and the current timestamp. The platform sends this message to the first door lock.
[0086] The first door lock attempts to identify nearby mobile phones. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, it is judged whether 5 minutes have passed since the current time point relative to the timestamp in the message (if so, discard the message). If not, this door lock sends the "Independent Polling Identification" message to the second door lock in the ranking.
[0087] After receiving the message, the second door lock attempts to identify nearby mobile phones. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, it is judged whether 5 minutes have passed since the current time point relative to the timestamp in the message. If not, this door lock sends the "Independent Polling Identification" message to the third door lock in the ranking. And so on.
[0088] If the Nth door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID given by the platform, it opens the door and ends sending the message to the next door lock in the ranking.
[0089] If the last door lock also fails to identify a compliant NFC-ID, it is judged whether 5 minutes have passed since the current time point relative to the timestamp in the message. If not, it continues to send to the first door lock in the ranking. Continue to take turns until a compliant mobile phone NFC-ID is found or 5 minutes have passed since the timestamp of the message. The reason for continuing the polling is that there is a situation where the door lock is too far from the mobile phone to sense. In order to improve reliability as much as possible, implement continuous polling.
[0090] Beneficial effects: The platform doesn't have to wait and can release resources in a timely manner. When the user submits an "Unlock Request", there is no need to specify which host's door lock to open, and the system automatically processes it. It won't cause all accessible door locks to be disturbed once.
[0091] It can be seen that the system receives an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock. If the unlocking request message is received first, it determines whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message. If it does not match, the unlocking request message is discarded. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, it searches for the door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table saved in the intelligent lock platform. If the door lock reading mobile phone message containing the NFC-ID is found, it schedules the corresponding door lock to open according to the door lock reading mobile phone message, thereby improving the security of the intelligent lock and significantly enhancing the user experience.
[0092] Another embodiment of the present invention provides a fast scheduling door opening system based on an intelligent lock platform. Refer to Figure 3 , the system may include:
[0093] A receiving module 301, configured to receive an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock. Among them, the unlocking request message includes: a visitor APP-ID, a visitor mobile phone NFC-ID, and a sending time, and the door lock reading mobile phone message includes: a door lock ID, an NFC-ID of the mobile phone, and a reporting time;
[0094] A judging module 302, configured to, if the unlocking request message is received first, determine whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message. Among them, the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: a host APP-ID, a door lock-ID, a visitor APP-ID, and an access validity period;
[0095] A searching module 303, configured to, if it does not match, discard the unlocking request message. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, search for the door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table saved in the intelligent lock platform. Among them, the door lock reading mobile phone message table receives and saves each piece of door lock reading mobile phone message;
[0096] A scheduling module 304, configured to, if the door lock reading mobile phone message containing the NFC-ID is found, schedule the corresponding door lock to open according to the door lock reading mobile phone message.
[0097] It can be seen that the system receives an unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the intelligent door lock. If the unlocking request message is received first, it is determined whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message. If it does not match, the unlocking request message is discarded. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, a door lock reading mobile phone message containing the NFC-ID is searched from the door lock reading mobile phone message table saved in the intelligent lock platform. If a door lock reading mobile phone message containing the NFC-ID is found, the corresponding door lock is scheduled to open according to the door lock reading mobile phone message, thereby improving the security of the intelligent lock and significantly enhancing the user experience.
[0098] An embodiment of the present invention also provides a storage medium, in which a computer program is stored, and the computer program is set to execute the steps in any one of the above method embodiments when running.
[0099] Specifically, in this embodiment, the above storage medium may be set to store a computer program for executing the following steps:
[0100] S201, receive an unlocking request message sent by the current visitor or a door lock reading mobile phone message reported by the intelligent door lock, where the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time;
[0101] S202, if the unlocking request message is received first, determine whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message, where the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: host APP-ID, door lock-ID, visitor APP-ID, and access validity period;
[0102] S203, if it does not match, discard the unlocking request message. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, search for a door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table saved in the intelligent lock platform, where the door lock reading mobile phone message table receives and saves each piece of door lock reading mobile phone message;
[0103] S204, if a door lock reading mobile phone message containing the NFC-ID is found, schedule the corresponding door lock to open according to the door lock reading mobile phone message.
[0104] It can be seen that the unlocking request message sent by the current visitor or the door lock reading mobile phone message reported by the intelligent door lock is received; if the unlocking request message is received first, according to the visitor APP-ID and the sending time in the unlocking request message, it is judged whether it matches the visitor information table saved in the intelligent lock management platform; 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 in the intelligent lock platform; if the door lock reading mobile phone message containing the NFC-ID is found, the corresponding door lock is dispatched to open the door according to the door lock reading mobile phone message, so as to improve the security of the intelligent lock and significantly improve the user experience at the same time.
[0105] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0106] Specifically, the above electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0107] Specifically, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0108] S201, receive the unlocking request message sent by the current visitor or the door lock reading mobile phone message reported by the intelligent door lock, wherein the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID and sending time, and the door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone and reporting time;
[0109] S202, if the unlocking request message is received first, judge whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message, wherein the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: host APP-ID, door lock-ID, visitor APP-ID, access validity period;
[0110] S203, if it does not match, discard the unlocking request message, and if it matches, search for the door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table saved in the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the door lock reading mobile phone message table receives and saves each piece of door lock reading mobile phone message;
[0111] S204, if a door lock that contains the NFC-ID reads the mobile phone message, dispatch the corresponding door lock to open the door according to the door lock reading the mobile phone message.
[0112] It can be seen that the present invention receives an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock; if the unlocking request message is received first, it is determined whether it matches the visitor information table saved in the intelligent 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, a door lock reading mobile phone message containing the NFC-ID is searched in the door lock reading mobile phone message table saved in the intelligent lock platform; if a door lock reading mobile phone message containing the NFC-ID is found, the corresponding door lock is dispatched to open the door according to the door lock reading the mobile phone message, thereby improving the security of the intelligent lock and significantly enhancing the user experience.
[0113] The structure, features and effects of the present invention have been described in detail based on the embodiments shown in the drawings. The above are only the preferred embodiments of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or equivalent embodiments modified into equivalent changes, still within the spirit covered by the specification and the drawings, shall be within the protection scope of the present invention.
Claims
1. A fast scheduling door opening method based on an intelligent lock platform, characterized in that, The method includes: Receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by the intelligent door lock. Among them, the unlocking request message includes: visitor APP-ID, visitor mobile phone NFC-ID, and sending time. The door lock reading mobile phone message includes: door lock ID, NFC-ID of the mobile phone, and reporting time; If the unlocking request message is received first, determine whether it matches the visitor information table saved in the intelligent lock management platform according to the visitor APP-ID and sending time in the unlocking request message. Among them, the visitor information table receives and saves each piece of visitor information, and each piece of visitor information includes: host APP-ID, door lock-ID, visitor APP-ID, access validity period; If it does not match, discard the unlocking request message. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, search in the door lock reading mobile phone message table saved in the intelligent lock platform for the door lock reading mobile phone message containing the NFC-ID. Among them, the door lock reading mobile phone message table receives and saves each piece of door lock reading mobile phone message; If the door lock reading mobile phone message containing the NFC-ID is found, dispatch the corresponding door lock to open the door according to the door lock reading mobile phone message. If the door lock reading mobile phone message containing the NFC-ID is not found, read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table; Search in the visitor information table for all door lock IDs allowed to be accessed by the visitor at this time point, and find the corresponding door lock IP addresses according to the door lock list maintained locally. Put all the door lock IDs and the corresponding door lock IP addresses into the independent polling identification message; the platform sends the independent polling identification message to the first door lock. The first door lock attempts to identify the nearby mobile phone. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, the first door lock sends the independent polling identification message to the second door lock; after receiving the message, the second door lock attempts to identify the nearby mobile phone. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, the second door lock sends the independent polling identification message to the third door lock, and so on. If the Nth door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID given by the platform, it opens the door and ends sending the message to the next door lock in the order; Among them, the independent polling identification message includes both the NFC-ID of the visitor's mobile phone and the current timestamp; if the last door lock also does not identify the NFC-ID that meets the requirements, determine whether the preset duration has passed relative to the timestamp in the message at the current time point. If not, continue to send it to the first door lock and continue polling until the NFC-ID of the mobile phone that meets the requirements is found or the preset duration has passed relative to the timestamp in the message; 2. The method according to claim 1, characterized in that, The method further includes: If the door lock reading mobile phone message containing the NFC-ID is not found, read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table; Send a message to identify nearby mobile phones to the door lock ID allowed to access, so that after the door lock corresponding to the door lock ID allowed to access receives the nearby mobile phone message, read the NFC-ID of the nearby mobile phone. If the read NFC-ID is the same as the NFC-ID in the message to identify nearby mobile phones, open the door lock. Among them, the message to identify 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 battery power of the door lock.
3. The method according to claim 1, characterized in that, The method further includes: If the door lock reads the mobile phone message first, according to the NFC-ID in the door lock reading mobile phone message, check whether there is the same NFC-ID in the visitor unlocking request message table saved by the platform, where the visitor unlocking request message table receives and saves each visitor unlocking request message; If there is no same NFC-ID, discard the door lock reading mobile phone message. If there is the same NFC-ID, find the corresponding visitor APP-ID of the same NFC-ID, and confirm whether the reported time in the door lock reading mobile phone message is within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table; If it is confirmed that the reported time in the door lock reading mobile phone message is not within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table, discard the door lock reading mobile phone message. If it is confirmed that the reported time in the door lock reading mobile phone message is within the access validity period corresponding to the same visitor APP-ID and the same door lock ID in the visitor information table, send an open door message to the corresponding door lock ID to open the corresponding door lock.
4. The method according to claim 1, wherein The judging whether it matches the visitor information table saved by the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message includes: Judging whether there is the same visitor APP-ID as the current visitor APP-ID in the visitor information table saved by the intelligent lock management platform, and whether the sending time is within the access validity period corresponding to the same visitor APP-ID; If there is the same visitor APP-ID as the current visitor APP-ID and the sending time is within the access validity period corresponding to the same visitor APP-ID, then the unlocking request message matches the visitor information table saved by the intelligent lock management platform, otherwise it does not match.
5. The method according to claim 4, wherein The dispatching the corresponding door lock to open the door according to the door lock reading mobile phone message includes: Extract the door lock ID corresponding to the NFC-ID in the door lock reading mobile phone message, and check whether the reported time is within the access validity period corresponding to the door lock ID; If the reported time is not within the access validity period, discard the unlocking request message. If the reported time is within the access validity period, send an open door message to the corresponding door lock ID to open the corresponding door lock.
6. A fast scheduling door opening system based on an intelligent lock platform, characterized in that, The system includes: A receiving module, configured to receive an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock. The unlocking request message includes: a visitor APP-ID, a visitor mobile phone NFC-ID, and a sending time. The door lock reading mobile phone message includes: a door lock ID, an NFC-ID of the mobile phone, and a reporting time; A judging module, configured to, if the unlocking request message is received first, judge whether it matches the visitor information table stored in the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message. The visitor information table receives and stores each piece of visitor information, and each piece of visitor information includes: a host APP-ID, a door lock-ID, a visitor APP-ID, and an access validity period; A searching module, configured to, if it does not match, discard the unlocking request message. If it matches, according to the NFC-ID corresponding to the visitor APP-ID, search for the door lock reading mobile phone message containing the NFC-ID in the door lock reading mobile phone message table stored in the intelligent lock platform. The door lock reading mobile phone message table receives and stores each piece of door lock reading mobile phone message; A scheduling module, configured to, if the door lock reading mobile phone message containing the NFC-ID is found, schedule the corresponding door lock to open the door according to the door lock reading mobile phone message. If the door lock reading mobile phone message containing the NFC-ID is not found, read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table according to the visitor APP-ID; Search for all door lock IDs allowed to be accessed by the visitor at this time point from the visitor information table, and find the IP addresses of the corresponding door locks according to the door lock list maintained locally. Put all the door lock IDs and the corresponding door lock IP addresses into the autonomous polling identification message. The platform sends the autonomous polling identification message to the first door lock. The first door lock attempts to identify the nearby mobile phone. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, the first door lock sends the autonomous polling identification message to the second door lock. After receiving the message, the second door lock attempts to identify the nearby mobile phone. If no mobile phone is found or the mobile phone NFC is different from the NFC-ID given by the platform, the second door lock sends the autonomous polling identification message to the third door lock, and so on. If the Nth door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID given by the platform, it opens the door and ends sending the message to the next door lock in the order; Wherein, the autonomous polling identification message includes both the NFC-ID of the visitor mobile phone and the current timestamp. If the last door lock also does not identify a qualified NFC-ID, judge whether a preset duration has passed relative to the timestamp in the message at the current time point. If not, continue to send it to the first door lock and continue polling until a qualified mobile phone NFC-ID is found or a preset duration has passed relative to the timestamp in the message; 7. The system according to claim 6, wherein The system further includes: A reading module, configured to read a mobile phone message if a door lock containing the NFC-ID is not found, and read the door lock ID allowed to be accessed by the visitor APP-ID from the visitor information table according to the visitor APP-ID; A sending module, configured to send a message for identifying a nearby mobile phone to the door lock ID allowed to be accessed, so that after the door lock corresponding to the door lock ID allowed to be accessed receives the nearby mobile phone message, it reads the NFC-ID of the nearby mobile phone. If the read NFC-ID is the same as the NFC-ID in the message for identifying the nearby mobile phone, the door lock is opened. Wherein, the message for identifying the nearby mobile phone includes: the NFC-ID of the visitor's mobile phone and the identification duration, and the identification duration is set according to the remaining battery power of the door lock.
8. A storage medium, characterized in that, A computer program is stored in the storage medium, wherein the computer program is configured to execute the method according to any one of claims 1-5 when running.
9. 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 execute the method according to any one of claims 1-5.
Citation Information
Patent Citations
Realization method and system of NFC (near field communication) electronic lock and NFC electronic lock card reader
CN103778705A
Intelligent lock control method, mobile terminal, intelligent lock and readable medium
CN116152958A