Disclosure of Invention
The invention aims to provide a rapid door opening dispatching method and system based on an intelligent lock platform, which are used for solving the defects in the prior art, improving the safety of an intelligent lock and obviously improving the user experience.
An embodiment of the application provides a rapid door opening dispatching method based on an intelligent lock platform, which comprises the following steps:
Receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, wherein the unlocking request message comprises a visitor APP-ID, a visitor mobile phone NFC-ID and a sending time, and the door lock reading mobile phone message comprises a door lock ID, a mobile phone NFC-ID and a reporting time;
If an unlocking request message is received first, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message, wherein the visitor information table receives and stores various pieces of visitor information, and each piece of visitor information comprises a master APP-ID, a door lock-ID, a visitor APP-ID and an access validity period;
if the NFC-ID is not matched with the visitor APP-ID, discarding the unlocking request message, and if the NFC-ID is matched with the visitor APP-ID, searching a door lock reading mobile phone message containing the NFC-ID from a door lock reading mobile phone message table stored in the intelligent lock platform, wherein the door lock reading mobile phone message table receives and stores all door lock reading mobile phone messages;
if the 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.
Optionally, the method further comprises:
if the door lock reading mobile phone message containing the NFC-ID is not found, reading the door lock ID which is allowed to be accessed by the visitor APP-ID from a visitor information table according to the visitor APP-ID;
and sending a nearby mobile phone identification message to the door lock ID allowing access, so that after the door lock corresponding to the door lock ID allowing access receives the nearby mobile phone message, reading the NFC-ID of the nearby mobile phone, and opening the door lock if the read NFC-ID is the same as the NFC-ID in the nearby mobile phone identification message, wherein the nearby mobile phone identification message comprises the NFC-ID of the visitor mobile phone and identification duration time, and the identification duration time is set according to the electric quantity allowance of the door lock.
Optionally, the method further comprises:
if the door lock reading mobile phone message containing the NFC-ID is not found, reading the door lock ID which is allowed to be accessed by the visitor APP-ID from a visitor information table according to the visitor APP-ID;
Searching all door lock IDs which are allowed to be accessed by the current visitor from a visitor information table, searching the IP address of the corresponding door lock according to a door lock list which is maintained locally, putting all the door lock IDs, the corresponding door lock IP address, the NFC-ID of the visitor mobile phone and the current timestamp into an autonomous polling identification message, sending the autonomous polling identification message to the first door lock in all the door locks, carrying out polling identification within a preset period, and opening the corresponding door lock after the door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID of the visitor mobile phone in the autonomous polling identification message.
Optionally, the method further comprises:
if a door lock reading mobile phone message is received first, according to NFC-ID in the door lock reading mobile phone message, searching whether the same NFC-ID exists in a visitor unlocking request message table stored by a platform, wherein the visitor unlocking request message table receives and stores each visitor unlocking request message;
If the same NFC-ID does not exist, discarding the door lock reading mobile phone message, if the same NFC-ID exists, searching the visitor APP-ID corresponding to the same NFC-ID, and confirming whether the reporting time in the door lock reading mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading mobile phone message;
If the report time in the door lock reading mobile phone message is confirmed not to be in the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading mobile phone message, discarding the door lock reading mobile phone message, and if the report time in the door lock reading mobile phone message is confirmed to be in the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading mobile phone message, sending a door opening message to the corresponding door lock ID so as to enable the corresponding door lock to open.
Optionally, the determining whether the visitor APP-ID matches with the visitor information table stored by the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message includes:
judging whether a visitor APP-ID which is the same as the current visitor APP-ID exists in a visitor information table stored by the intelligent lock management platform, and whether the sending time is within an access validity period corresponding to the same visitor APP-ID;
If the visitor APP-ID which is the same as the current visitor APP-ID exists and the sending time is within the access validity period corresponding to the same visitor APP-ID, the unlocking request message is matched with a visitor information table stored by the intelligent lock management platform, otherwise, the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform.
Optionally, the step of dispatching the corresponding door lock to open the door according to the mobile phone message read by the door lock includes:
Extracting a door lock ID corresponding to the NFC-ID in the door lock reading mobile phone message, and checking whether the reporting time is within the access validity period corresponding to the door lock ID;
and if the reporting time is not in the access validity period, discarding the unlocking request message, and if the reporting time is in the access validity period, sending a door opening message to the corresponding door lock ID so as to enable the corresponding door lock to open.
Yet another embodiment of the present application provides a rapid dispatch door opening system based on an intelligent lock platform, the system comprising:
The receiving module is used for receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, wherein the unlocking request message comprises a visitor APP-ID, a visitor mobile phone NFC-ID and a sending time, and the door lock reading mobile phone message comprises a door lock ID, a mobile phone NFC-ID and a reporting time;
The judging module is used for judging whether the unlocking request message is matched with a visitor information table stored by the intelligent lock management platform according to the visitor APP-ID and the sending time in the unlocking request message if the unlocking request message is received, wherein the visitor information table receives and stores various pieces of visitor information, and each piece of visitor information comprises a master APP-ID, a door lock-ID, a visitor APP-ID and an access validity period;
the search module is used for discarding the unlocking request message if the NFC-ID is not matched with the visitor APP-ID, and searching the 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 the NFC-ID is matched with the visitor APP-ID, wherein the door lock reading mobile phone message table receives and stores all the door lock reading mobile phone messages;
And the scheduling module is used for scheduling 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 found.
A further embodiment of the application provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of the preceding claims when run.
Yet another embodiment of the application provides an electronic device comprising a memory having a computer program stored therein and a processor configured to run the computer program to perform the method recited in any of the preceding claims.
The quick dispatch door opening method based on the intelligent lock platform comprises the steps of receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message if the unlocking request message is received first, discarding the unlocking request message if the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform, searching a door lock reading mobile phone message containing the NFC-ID from the door lock reading mobile phone message table stored by the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID if the unlocking request message is matched with the visitor information table stored by the intelligent lock management platform, and dispatching a corresponding door lock to open according to the door lock reading mobile phone message if the door lock reading mobile phone message containing the NFC-ID is found, so that safety of the intelligent lock can be improved, and user experience is also remarkably improved.
Detailed Description
The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
The embodiment of the invention firstly provides a rapid door opening dispatching method based on an intelligent lock platform, which can be applied to electronic equipment such as a computer terminal, in particular to a common computer and the like.
The following describes the operation of the computer terminal in detail by taking it as an example. Fig. 1 is a hardware block diagram of a computer terminal according to an embodiment of the present invention, where the computer terminal is based on a method for quickly scheduling door opening of an intelligent lock platform. As shown in fig. 1, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions which, when executed, cause the processor to perform any one of the smart lock platform based fast dispatch door opening methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in the non-volatile storage medium, which when executed by the processor, causes the processor to perform any one of the smart lock platform-based fast dispatch door opening methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements may be implemented, as a particular computer device may include more or less components than those shown, or may be combined with some components, or may have a different arrangement of components.
It should be appreciated that the Processor may be a central processing unit (Central Processing Unit, CPU), it may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 2, an embodiment of the present invention provides a method for quickly scheduling door opening based on an intelligent lock platform, which may include the following steps:
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, wherein the unlocking request message comprises a visitor APP-ID, a visitor mobile phone NFC-ID and a sending time, and the door lock reading mobile phone message comprises a door lock ID, a mobile phone NFC-ID and a reporting time;
s202, if an unlocking request message is received first, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message, wherein the visitor information table receives and stores various pieces of visitor information, and each piece of visitor information comprises a master APP-ID, a door lock-ID, a visitor APP-ID and an access validity period;
Specifically, if a door lock reading mobile phone message is received first, according to NFC-ID in the door lock reading mobile phone message, searching whether the same NFC-ID exists in a visitor unlocking request message table stored by a platform, wherein the visitor unlocking request message table receives and stores each visitor unlocking request message;
If the same NFC-ID does not exist, discarding the door lock reading mobile phone message, if the same NFC-ID exists, searching the visitor APP-ID corresponding to the same NFC-ID, and confirming whether the reporting time in the door lock reading mobile phone message is within the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading mobile phone message;
If the report time in the door lock reading mobile phone message is confirmed not to be in the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading mobile phone message, discarding the door lock reading mobile phone message, and if the report time in the door lock reading mobile phone message is confirmed to be in the access validity period corresponding to the same visitor APP-ID in the visitor information table and the same door lock ID in the door lock reading mobile phone message, sending a door opening message to the corresponding door lock ID so as to enable the corresponding door lock to open.
Specifically, according to the visitor APP-ID and the sending time in the unlocking request message, judging whether the visitor APP-ID is matched with a visitor information table stored by the intelligent lock management platform, and judging whether the visitor APP-ID which is the same as the current visitor APP-ID exists in the visitor information table stored 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 the visitor APP-ID which is the same as the current visitor APP-ID exists and the sending time is within the access validity period corresponding to the same visitor APP-ID, the unlocking request message is matched with a visitor information table stored by the intelligent lock management platform, otherwise, the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform.
S203, if the lock-unlocking request messages are not matched, discarding the lock-unlocking request messages, and if the lock-unlocking request messages are matched, searching a lock-reading mobile phone message containing the NFC-ID from a lock-reading mobile phone message table stored in the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the lock-reading mobile phone message table receives and stores all lock-reading mobile phone messages;
specifically, if the door lock reading mobile phone message containing the NFC-ID is not found, the door lock ID which is allowed to be accessed by the visitor APP-ID is read from a visitor information table according to the visitor APP-ID;
and sending a nearby mobile phone identification message to the door lock ID allowing access, so that after the door lock corresponding to the door lock ID allowing access receives the nearby mobile phone message, reading the NFC-ID of the nearby mobile phone, and opening the door lock if the read NFC-ID is the same as the NFC-ID in the nearby mobile phone identification message, wherein the nearby mobile phone identification message comprises the NFC-ID of the visitor mobile phone and identification duration time, and the identification duration time is set according to the electric quantity allowance of the door lock.
Specifically, if the door lock reading mobile phone message containing the NFC-ID is not found, the door lock ID which is allowed to be accessed by the visitor APP-ID is read from a visitor information table according to the visitor APP-ID;
Searching all door lock IDs which are allowed to be accessed by the current visitor from a visitor information table, searching the IP address of the corresponding door lock according to a door lock list which is maintained locally, putting all the door lock IDs, the corresponding door lock IP address, the NFC-ID of the visitor mobile phone and the current timestamp into an autonomous polling identification message, sending the autonomous polling identification message to the first door lock in all the door locks, carrying out polling identification within a preset period, and opening the corresponding door lock after the door lock identifies that the NFC-ID of the nearby mobile phone is the same as the NFC-ID of the visitor mobile phone in the autonomous polling identification message.
S204, if the 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.
Specifically, according to the door lock reading mobile phone message, a corresponding door lock is scheduled to open, a door lock ID corresponding to the NFC-ID in the door lock reading mobile phone message can be extracted, and whether the reporting time is within the access validity period corresponding to the door lock ID is checked;
and if the reporting time is not in the access validity period, discarding the unlocking request message, and if the reporting time is in the access validity period, sending a door opening message to the corresponding door lock ID so as to enable the corresponding door lock to open.
Exemplary, preset conditions:
The master home door is provided with intelligent door locks (each door lock is provided with an independent ID, a door lock IP address, a door lock geographic position and the like), is networked with a cloud platform, registers with the platform, is updated periodically, and records a door lock list which comprises the door lock ID, the door lock IP address, the door lock geographic position and the like.
The mobile phones of the host and the visitor are provided with APP, each APP has unique ID (such as user name and mobile phone number used in registration), and the APP-ID, the mobile phone NFC-ID, the mobile phone wifi mac, the mobile phone IP and the like are supported to be reported to the platform and updated periodically. The platform records a user list, wherein the user list comprises a serial number, an APP-ID, a mobile NFC-ID, a mobile wifi mac, a mobile IP where the user APP is located, other information of the user and the like.
Application prior to visitor access to home:
The guest sends its own APP-ID to the host. The host fills in the APP-ID of the visitor, and reports the visitor registration information to the platform, wherein the host APP-ID, the door lock-ID, the visitor APP-ID and the validity period are contained. Meanwhile, a visitor information table reported by the user is locally stored in the APP, and the visitor information table comprises a door lock-ID, a visitor APP-ID and a validity period.
The platform stores a visitor information table including a master APP-ID, a door lock-ID, a visitor APP-ID, a validity period, etc., as follows. The method comprises the steps that an owner APP is APP-host, a door lock ID is door lock-host, a mobile phone NFC-host, an APP of a visitor 1 is APP-guest1, a door lock ID is door lock-guest 1, a mobile phone NFC-guest1, an APP of a visitor 2 is APP-guest2, a door lock ID is door lock-guest 2, and a mobile phone NFC-guest2. The table of visitor information stored by the platform is shown in table 1.
TABLE 1
Processing when visitor arrives at home:
when the visitor guest1 arrives at the home gate of the host, opens the mobile phone APP, clicks the unlocking key (the key here is that the visitor is not required to explicitly select which room, even if the visitor has the authority to access a plurality of rooms at the same time at the time point), the visitor APP reports an unlocking request message to the platform, and the unlocking request message comprises the visitor APP-ID, the visitor mobile phone NFC-ID and the sending time. The visitor APP is designed to actively report, so that the visitor APP can temporarily pass through a main door when the visitor does not have unlocking requirements, and the main door is opened wrongly, so that safety risks are caused.
The platform stores the message content, and the visitor unlocking request message stored by the platform is shown in table 2.
TABLE 2
The door lock senses the NFC of the nearby mobile phone, reads the NFC-ID of the nearby mobile phone, and reports a door lock reading mobile phone message to the platform, wherein the door lock reading mobile phone message comprises the door lock ID, the NFC-ID of the mobile phone and the sending time. The design of the door lock reads the mobile phone information and reports the mobile phone information, so that the safety risk is avoided when a visitor is not at a home gate (such as a walk-by-place or remote misoperation), and the platform only checks and opens the door according to visitor APP information.
The platform stores the message content, and the door lock reading message stored by the platform is shown in table 3.
TABLE 3 Table 3
Platform treatment:
The platform has time difference when receiving the information reported by the visitor and the door lock. If the platform receives the unlocking request message from the visitor mobile phone APP-guide 1, the platform searches the visitor information table 1 according to the visitor APP-ID and the sending time. If not, discarding the message (indicating that there is no authority of the visitor to access the host in the validity period), otherwise, searching for a door lock reading message received in the last period of time (a threshold value can be set according to the requirement of an administrator, for example, within + -120 seconds) according to the NFC-ID corresponding to the visitor APP-ID, namely, table 3. If the NFC-ID does not exist, discarding (namely, the message of 'door lock reading mobile phone' from the related door lock is not received within +/-120 seconds), and if the NFC-ID exists, extracting the door lock ID corresponding to the NFC-ID, and checking whether the sending time is within the valid period. If the time is within the validity period, the platform sends a door opening message to the corresponding door lock ID, and the door lock receives the door opening message and opens the door and returns an OK message to the platform to end the session.
If the platform receives the message of 'door lock reading mobile phone' from the door lock, the platform finds the corresponding NFC-ID according to the table 3, and then searches the table 2 according to the NFC-ID, and whether the visitor APP-ID at the corresponding time point exists or not, a certain time period interval, such as + -120 seconds, is allowed. If not, discarding (the door lock only detects the nearby mobile phone, but the APP of the mobile phone does not actively require the door to be opened), otherwise, finding the corresponding APP-ID from the table 2, and confirming whether the APP-ID of the visitor is within the validity period of the access to the door lock ID according to the table 1. If the time point of the visitor access is not within the allowed time period of the host, discarding the message, otherwise, the platform sends a door opening message to the corresponding door lock ID, and the door lock opens the door and returns an OK message to the platform to end the session.
If the platform receives the unlocking request message from the visitor mobile phone APP-guide 1, the platform must wait. If the visitor mobile phone is really beside the host gate, the gate lock will send a message of gate lock reading mobile phone, and the waiting time of the platform will not be too long. However, if the visitor mobile phone is not beside the host gate, the door lock cannot read the mobile phone NFC-ID, and a message of "door lock read mobile phone" will not be sent, which results in that the platform is at least waiting for the threshold limit, that is, 120 seconds, and the process takes longer. In order to further save the time occupied by platform resources, the following optimization is performed:
After the platform receives the "unlock request" message from the visitor mobile phone APP, according to the visitor APP-ID and the sending time, the platform searches the visitor information table 1, if the visitor information table 1 is not matched, the message is discarded (which indicates that the visitor has no authority to access the host in the validity period), otherwise, the information received in the latest time in the history of the door lock read information table 3 is searched according to the NFC-ID of the visitor, if the door lock-ID corresponding to the NFC-ID exists and the corresponding sending time point is different from the current time point by not more than 120 seconds (the difference is too large, which means that the entry is left behind historically and needs to be ignored), the platform sends the "open door" message to the corresponding door lock ID, the door lock receives the "open door" message, opens the door and returns the OK message to the platform, and the session is ended (most of the time, the information does not exist in table 3, but the situation that the door lock read mobile phone message sent by the door lock follows the "unlock request" message sent by the visitor mobile phone APP is likely to occur). If there is no NFC-ID corresponding to the point in time in table 3 (this is the case in most cases), the platform reads the locks that the guest is allowed to access from table 1 according to the guest APP-ID, e.g. guest APP-gust 1 is allowed to access lock-host and lock-host 2 at this time, whereupon the platform sends a message to the corresponding lock-host and lock-host 2 "identify nearby cell phone", including the NFC-ID of guest gust 1 cell phone for 5 minutes, and then the platform immediately releases the resources without having to deal with the following matters. After the door lock-host and the door lock-host 2 receive the messages, the NFC-ID of the nearby mobile phone is tried to be read, if the read NFC-ID is the same as the NFC-ID in the message from the platform for identifying the nearby mobile phone, the door is opened, otherwise, the door continues to be tried to be read, the maximum is tried for 5 minutes, the matched mobile phone NFC-ID is not read within 5 minutes, and the processing is ended.
The door lock periodically registers and reports the balance of the electric quantity to the platform. In the above steps, when the platform sends a message of identifying nearby mobile phones to the door locks, different durations are required to be set for the door locks with different electric quantity allowance respectively, wherein when the electric quantity allowance of the door locks is about 30%, the duration is 5 minutes, otherwise, the duration is set to be 2 minutes.
If the number of locks that the visitor guest1 can access is very large at this point in time, the platform needs to send messages to these locks that "identify nearby handsets" respectively, resulting in a heavy load on the platform, and each lock that allows access is disturbed once, and is also unsuitable. Thus, the optimization is continued as follows:
The platform searches all door lock IDs which are allowed to be accessed at the time point guest1 from the table 1, finds the IP address of the corresponding door lock according to the door lock list which is maintained locally, and puts all the door lock IDs and the corresponding door lock IP address into an 'autonomous polling identification' message which simultaneously contains the NFC-ID of the visitor guest1 mobile phone and the current timestamp. The platform sends the message to the first door lock.
The first door lock tries to identify nearby mobile phones, if the mobile phones are not found or the NFC of the mobile phones is different from the NFC-ID given by the platform, whether the current time point is 5 minutes relative to the timestamp in the message is judged (if yes, the message is discarded), and if not, the door lock sends an 'autonomous polling identification' message to the door lock arranged at the second position.
After the second door lock receives the message, the second door lock tries to identify the nearby mobile phone, if the mobile phone is not found or the NFC of the mobile phone is different from the NFC-ID given by the platform, whether the current time point is 5 minutes longer than the timestamp in the message is judged, and if the current time point is not longer than the timestamp in the message, the third door lock is sent with an 'autonomous polling identification' message. And so on.
And if the N-th door lock recognizes that the NFC-ID of the nearby mobile phone is the same as the NFC-ID given by the platform, opening the door. And ends sending the message to the door lock of the next order.
If the last door lock does not recognize the NFC-ID meeting the requirements, judging whether the current time point is 5 minutes past relative to the time stamp in the message, and if not, continuing to send the last door lock. The rotation is continued until the time stamp of the cell phone NFC-ID or the relative message found to be satisfactory has elapsed for 5 minutes. In order to continue polling, a door lock is too far from a mobile phone to sense, and repeated polling is performed to improve reliability as much as possible.
The platform has the beneficial effects that the platform does not need to wait for releasing resources in time. The user does not need to specify which owner's door lock is to be opened when submitting an unlocking request, and the system automatically processes the unlocking request. Not causing all accessible door locks to be disturbed one pass.
It is seen that the method includes the steps of receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message if the unlocking request message is received first, discarding the unlocking request message if the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform, searching a door lock reading mobile phone message containing the NFC-ID from a door lock reading mobile phone message table stored by the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID if the unlocking request message is not matched with the visitor APP-ID, and scheduling a door lock corresponding to the door lock according to the door lock reading mobile phone message if the door lock reading mobile phone message containing the NFC-ID is found, so that safety of the intelligent lock can be improved, and user experience is also remarkably improved.
Still another embodiment of the present invention provides a rapid dispatch door opening system based on an intelligent lock platform, see fig. 3, which may include:
The receiving module 301 is 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 a mobile phone and a reporting time;
The judging module 302 is configured to judge whether the unlocking request message is matched with a visitor information table stored in the intelligent lock management platform according to a visitor APP-ID and a sending time in the unlocking request message, where the visitor information table receives and stores pieces of visitor information, and each piece of visitor information includes a master APP-ID, a door lock-ID, a visitor APP-ID, and an access validity period;
The searching module 303 is configured to discard the unlocking request message if the locking request message is not matched, and if the locking request message is matched, searching a door lock reading mobile phone message containing the NFC-ID from a 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 door lock reading mobile phone message;
The scheduling module 304 is configured to schedule a corresponding door lock to open if a door lock reading mobile phone message including the NFC-ID is found, according to the door lock reading mobile phone message.
It is seen that the method includes the steps of receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message if the unlocking request message is received first, discarding the unlocking request message if the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform, searching a door lock reading mobile phone message containing the NFC-ID from a door lock reading mobile phone message table stored by the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID if the unlocking request message is not matched with the visitor APP-ID, and scheduling a door lock corresponding to the door lock according to the door lock reading mobile phone message if the door lock reading mobile phone message containing the NFC-ID is found, so that safety of the intelligent lock can be improved, and user experience is also remarkably improved.
The embodiment of the invention also provides a storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the method embodiments described above when run.
Specifically, in the present embodiment, the above-described storage medium may be configured to store a computer program for executing the steps of:
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, wherein the unlocking request message comprises a visitor APP-ID, a visitor mobile phone NFC-ID and a sending time, and the door lock reading mobile phone message comprises a door lock ID, a mobile phone NFC-ID and a reporting time;
s202, if an unlocking request message is received first, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message, wherein the visitor information table receives and stores various pieces of visitor information, and each piece of visitor information comprises a master APP-ID, a door lock-ID, a visitor APP-ID and an access validity period;
s203, if the lock-unlocking request messages are not matched, discarding the lock-unlocking request messages, and if the lock-unlocking request messages are matched, searching a lock-reading mobile phone message containing the NFC-ID from a lock-reading mobile phone message table stored in the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the lock-reading mobile phone message table receives and stores all lock-reading mobile phone messages;
S204, if the 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.
It is seen that the method includes the steps of receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message if the unlocking request message is received first, discarding the unlocking request message if the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform, searching a door lock reading mobile phone message containing the NFC-ID from a door lock reading mobile phone message table stored by the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID if the unlocking request message is not matched with the visitor APP-ID, and scheduling a door lock corresponding to the door lock according to the door lock reading mobile phone message if the door lock reading mobile phone message containing the NFC-ID is found, so that safety of the intelligent lock can be improved, and user experience is also remarkably improved.
The present invention also provides an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Specifically, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Specifically, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
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, wherein the unlocking request message comprises a visitor APP-ID, a visitor mobile phone NFC-ID and a sending time, and the door lock reading mobile phone message comprises a door lock ID, a mobile phone NFC-ID and a reporting time;
s202, if an unlocking request message is received first, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message, wherein the visitor information table receives and stores various pieces of visitor information, and each piece of visitor information comprises a master APP-ID, a door lock-ID, a visitor APP-ID and an access validity period;
s203, if the lock-unlocking request messages are not matched, discarding the lock-unlocking request messages, and if the lock-unlocking request messages are matched, searching a lock-reading mobile phone message containing the NFC-ID from a lock-reading mobile phone message table stored in the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID, wherein the lock-reading mobile phone message table receives and stores all lock-reading mobile phone messages;
S204, if the 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.
It is seen that the method includes the steps of receiving an unlocking request message sent by a current visitor or a door lock reading mobile phone message reported by an intelligent door lock, judging whether the unlocking request message is matched with a visitor information table stored by an intelligent lock management platform according to a visitor APP-ID and sending time in the unlocking request message if the unlocking request message is received first, discarding the unlocking request message if the unlocking request message is not matched with the visitor information table stored by the intelligent lock management platform, searching a door lock reading mobile phone message containing the NFC-ID from a door lock reading mobile phone message table stored by the intelligent lock platform according to the NFC-ID corresponding to the visitor APP-ID if the unlocking request message is not matched with the visitor APP-ID, and scheduling a door lock corresponding to the door lock according to the door lock reading mobile phone message if the door lock reading mobile phone message containing the NFC-ID is found, so that safety of the intelligent lock can be improved, and user experience is also remarkably improved.
The construction, features and effects of the present invention have been described in detail with reference to the embodiments shown in the drawings, but the above description is only a preferred embodiment of the present invention, but the present invention is not limited to the embodiments shown in the drawings, all changes, or modifications to the teachings of the invention, which fall within the meaning and range of equivalents are intended to be embraced therein, are intended to be embraced therein.