Apartment intelligent lock management method and system

文档序号:192877 发布日期:2021-11-02 浏览:23次 中文

阅读说明:本技术 公寓智能锁管理方法和系统 (Apartment intelligent lock management method and system ) 是由 陈培添 李昭强 于 2021-08-06 设计创作,主要内容包括:本申请提供了一种公寓智能锁管理方法和系统,当用户需要开锁时,采用用户端发送开锁请求至服务器;服务器根据开锁请求对用户信息进行判断,当用户信息合法时,发送加密数字密钥至用户端;用户端将加密数字密钥发送至用户需要开启的智能锁;智能锁对加密数字密钥进行解密和校验,在校验成功时,智能锁开启。该方法智能锁不需要网关等联网模块与服务器连接,在用户需要开锁时以用户端为载体与服务器进行通信生成加密数字密钥,再由用户端将加密数字密钥发送至智能锁进行解密校验,从而完成开锁。一方面可以减少对智能锁的投入成本,同时减少对智能锁网络的依赖。另一方面智能锁采用加密数字密钥来进行开锁验证,增加了智能锁的安全性。(The application provides a management method and a system for an apartment intelligent lock, when a user needs to unlock, the user side is adopted to send an unlocking request to a server; the server judges the user information according to the unlocking request, and when the user information is legal, the server sends the encrypted digital key to the user side; the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user; the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked. According to the method, the intelligent lock does not need a gateway and other networking modules to be connected with the server, when the user needs to unlock, the user side is used as a carrier to communicate with the server to generate the encrypted digital key, and then the user side sends the encrypted digital key to the intelligent lock to perform decryption and verification, so that unlocking is completed. On one hand, the input cost of the intelligent lock can be reduced, and meanwhile, the dependence on an intelligent lock network is reduced. On the other hand, the intelligent lock adopts the encrypted digital key to carry out unlocking verification, so that the safety of the intelligent lock is improved.)

1. An apartment intelligent lock management method, characterized in that the method comprises:

the user side sends an unlocking request to the server;

the server judges the user information according to the unlocking request, and when the user information is legal, an encrypted digital key is sent to the user side;

the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user;

and the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked.

2. The method of claim 1, wherein said smart lock decrypting and verifying said encrypted digital key comprises:

the intelligent lock decrypts the encrypted digital key to obtain a room management password, a user room number, a first serial number and unlocking request time;

and when the intelligent lock judges that the unlocking request time is in a preset time range, the room management password is the same as the pre-stored management password, the user room number is the same as the pre-stored room number, and the first serial number is larger than the pre-stored serial number, the verification is successful.

3. The method of claim 2, wherein after the smart lock is unlocked, further comprising:

and the intelligent lock updates the prestored serial number by adopting the first serial number.

4. The method according to any one of claims 1 to 3, wherein before the user side sends the unlocking request to the server, the method further comprises:

the user side sends a housing request to the server;

the server sends the housing request to the management terminal;

the management terminal determines the user identity according to the house renting request, and sends user information, the user house number, the room management password and the use duration to the server after the user identity is determined to pass;

and the server sends the user house number to the user side, wherein the user house number is used for the user to determine the intelligent lock which needs to be unlocked.

5. The method of claim 2, further comprising:

and the management end sets a management password and a house number of the intelligent lock to respectively form a pre-stored management password and a pre-stored house number.

6. The method of claim 4, further comprising:

and the management end sets the preset time range of the intelligent lock.

7. The method according to claim 4, wherein the server generates a user data table based on the user information, the user house number, the room management password, and the use duration, and stores the user data table.

8. The method of claim 7, wherein before the server sends the encrypted digital key to the user side, the method comprises:

and the server generates the encrypted digital key according to unlocking request time, a first serial number generated when the unlocking request is received, a user room number stored in the user data table and the room management password, wherein the unlocking request time is corresponding time when the unlocking request is received.

9. The method of claim 7, further comprising:

the user side sends a room updating request to the server;

the server sends the room updating request to the management terminal;

and the management terminal updates the user data table of the server according to the room updating request.

10. An apartment intelligent lock management system is characterized by comprising a user side, a server and an intelligent lock; the intelligent lock is arranged on a door of an apartment; the user side is respectively connected with the server and the intelligent lock;

the user side sends an unlocking request to the server;

the server judges the user information according to the unlocking request, and when the user information is legal, an encrypted digital key is sent to the user side;

the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user;

and the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked.

Technical Field

The application relates to the technical field of intelligent control, in particular to a management method and a system for an intelligent lock of an apartment.

Background

With the continuous development and progress of science and technology, the intelligent lock is deeply loved by people due to the characteristics of convenience in use, safety and the like, and is widely applied to apartments, hotels, common individual residences and the like. At present commonly used intelligent lock, hotel lock, apartment lock for example all need set up networking module (for example communication module) in intelligent lock, adopt networking module and server to link to each other, just can realize carrying out real-time management to intelligent lock through the server, if the verification process of unblanking need earlier with the information of unblanking of lock send to (high in the clouds) server through communication module, then receive the instruction of opening the door that (high in the clouds) server feedback returns, just can accomplish and unblank. The process needs to send and receive two-way communication, the unlocking waiting time is long, and the requirement on the stability of network communication is high.

Content of application

In view of this, the embodiment of the present application provides an apartment intelligent lock management method and system.

In a first aspect, an embodiment of the present application provides an apartment intelligent lock management method, where the method includes:

the user side sends an unlocking request to the server;

the server judges the user information according to the unlocking request, and when the user information is legal, an encrypted digital key is sent to the user side;

the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user;

and the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked.

In a second aspect, an embodiment of the present application provides an apartment intelligent lock management system, where the system includes a user side, a server, and an intelligent lock; the intelligent lock is arranged on a door of an apartment; the user side is respectively connected with the server and the intelligent lock;

the user side sends an unlocking request to the server;

the server judges the user information according to the unlocking request, and when the user information is legal, an encrypted digital key is sent to the user side;

the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user;

and the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked.

According to the apartment intelligent lock management method and system provided by the embodiment of the application, firstly, when a user needs to unlock, the user side is adopted to send an unlocking request to the server; the server judges the user information according to the unlocking request, and when the user information is legal, the server sends the encrypted digital key to the user side; the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user; the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked. According to the apartment intelligent lock management method, the intelligent lock does not need a gateway and other networking modules to be connected with the server, when a user needs to unlock, the user side is used as a carrier to communicate with the server to generate an encrypted digital key, and then the user side sends the encrypted digital key to the intelligent lock to perform decryption and verification, so that unlocking is completed. On one hand, the input cost of the intelligent lock can be reduced, and meanwhile, the dependence on an intelligent lock network is reduced. On the other hand, the intelligent lock adopts the encrypted digital key to carry out unlocking verification, so that the safety of the intelligent lock is improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a schematic view of an application scenario (i.e., an apartment intelligent lock management system) of an apartment intelligent lock management method according to an embodiment of the present application;

fig. 2 is a schematic flowchart of an apartment intelligent lock management method according to an embodiment of the present application;

fig. 3 is a schematic structural diagram of an intelligent lock according to an embodiment of the present application;

fig. 4 is a schematic flowchart of an apartment intelligent lock management method according to another embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described clearly and completely below, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

For more detailed description of the present application, a method, an apparatus, a terminal device and a computer storage medium for locating a text formula provided in the present application are described in detail below with reference to the accompanying drawings.

Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application scenario (i.e., an apartment intelligent management system) of an apartment intelligent management method provided by an embodiment of the present application, where the application scenario includes a user terminal 102, a server 104, a management terminal 106, and an intelligent lock 108, where the user terminal 102 and the management terminal 106 can communicate with the server 104, respectively; the user side 102 and the management side 106 can also communicate with the smart lock 108.

The specific process is as follows: when a user or a tenant needs to apply for a room or rent a room, the user or the tenant can log in a corresponding APP application room on the user side 102, upload identity information and the number of days to the server 104, a manager checks the information of the server 104 at the APP of the management side 106 to confirm the identity information, distributes a room number after collecting the room money, binds a user name, the room number, a room management password and a lease period (namely the number of days to live), generates a legal user data table and uploads the legal user data table to the server 104, and returns the distributed room number and the number of days to the user side 102. The user or the tenant comes to the distributed room, uses the APP access server 104 of the user terminal 102 during unlocking, the server 104 returns the encrypted digital key of the corresponding intelligent lock to the APP of the user terminal 102 after judging that the user or tenant information is legal, the APP of the user terminal 102 is transmitted to the intelligent lock 108 through Bluetooth and the like, and unlocking is achieved when decryption and verification data are successful.

Alternatively, the user terminal 102 and the management terminal 106 may be various electronic devices with display screens, including but not limited to smart phones and computer devices, wherein the computer devices may be at least one of desktop computers, portable computers, laptop computers, tablet computers, and the like. The user side 102 and the management side 106 may generally refer to one of a plurality of end devices.

It should be understood that the number of user sides, administration sides, servers, and smart locks are merely illustrative. Any number of clients, management terminals, servers and intelligent locks may be provided as required by the implementation.

Based on this, the embodiment of the application provides an apartment intelligent lock management method. Referring to fig. 2, fig. 2 is a schematic flow chart of an apartment intelligent lock management method provided in an embodiment of the present application, and the method is applied to the management system in fig. 1 as an example to explain, and includes the following steps:

step S110, the user sends an unlocking request to the server.

Specifically, when a user needs to book a hotel or rent a room for a long time, the user can apply for booking by using the user side, when the booking passes, the user side can receive the room number corresponding to the booked room, at the moment, the user can arrive at the corresponding room according to the room number, then the user can unlock the room, and the user can live in the room after the unlocking is successful. When a user needs to unlock, an unlocking request can be sent to the server through the user side, wherein the unlocking request comprises but is not limited to user information and a house number.

And step S120, the server judges the user information according to the unlocking request, and when the user information is legal, the server sends the encrypted digital key to the user side.

And after receiving the unlocking request, the server judges the user information, and when judging that the user information is legal, the server sends the encrypted digital key to the user side.

Step S130, the user sends the encrypted digital key to the smart lock that the user needs to unlock.

And step S140, the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked.

And after receiving the encrypted digital key, the user side sends the encrypted digital key to the intelligent lock of the door which needs to be opened by the user. The intelligent lock can decrypt and verify the encrypted digital key, and when the verification is successful, the unlocking is successful.

In an alternative embodiment, as shown in fig. 3, the smart lock includes a microprocessor, a bluetooth module, a memory, a lock body and an RTC module, wherein the microprocessor is connected to the bluetooth module, the memory, the lock body and the RTC module respectively; the Bluetooth module is used for communicating with the user side and the management side and receiving information of the user side and the management side. Rtc (real Time clock), real Time clock, may be used to compare whether the timestamp in the encrypted digital key is Time out. The real time clock may be synchronized with the server clock.

In one embodiment, before the server sends the encrypted digital key to the user side, the method includes: the server generates an encrypted digital key according to the unlocking request time, the first serial number generated when the unlocking request is received, the user room number and the room management password stored in the user data table, wherein the unlocking request time is the corresponding time when the unlocking request is received.

Specifically, the encrypted digital key is a digital string generated by the server, and the user side is used as a carrier, so that the renter can unlock the lock by using the user side. The encrypted digital key is usually a digital string with a fixed data format, and the data information thereof contains a room number of a target lock to be unlocked, a management password, a current generation timestamp (usually the time for receiving an unlocking request), and a serial number (usually the first serial number generated when the unlocking request is received), and the unlocking can be realized only by verification if all the data information in the encrypted digital key meets the conditions. The encrypted digital key has the following functions: 1. the method has the advantages that the method has object limitation, and each encrypted digital key can only be used for unlocking an intelligent lock corresponding to a house number; 2. the method has the advantages that the number of times is limited, and the current encrypted digital key automatically fails after the key is unlocked once. When the encrypted digital key is legally unlocked, the intelligent lock can record the serial number (namely the first serial number) of the current encrypted digital key, and the serial number is larger than the serial number stored in the intelligent lock to pass verification in the next verification, so that the intercepted and copied digital key cannot be used for unlocking the next time, and the serial number in the server is automatically increased after each use; 3. the method has the advantages of safety encryption, and the method adopts an AES encryption mode by taking the management password of the target lock as a secret key to prevent plaintext data from being leaked. 4. The method has time limitation, the validity period of only one hour is generated after each generation, the data of the encrypted digital key comprises a time stamp during the generation, and if the time stamp generated in the verification process of the digital key is more than one hour earlier than the time in the lock, the verification is not passed.

Room management password: the intelligent lock is stored in the server and each intelligent lock respectively, can be modified through the management terminal, and can be provided with different management passwords which are the highest control authority of the intelligent lock. The management password is used for encrypting and decrypting the digital key and is owned by a management party only.

Room number: the intelligent door lock and the server are stored in the intelligent door lock and the server, and can be modified through the management terminal, so that the identification number of each lock is distinguished, and the locks and the house numbers are in a one-to-one mapping relation and cannot be repeated.

The serial number: the number of the current task and the serial number generated by the server are unique, and the number newly added each time is larger than the number newly added at the previous time. The first serial number refers to the serial number generated when the unlock request is received.

According to the apartment intelligent lock management method provided by the embodiment of the application, firstly, when a user needs to unlock, the user side is adopted to send an unlocking request to the server; the server judges the user information according to the unlocking request, and when the user information is legal, the server sends the encrypted digital key to the user side; the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user; the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked. According to the apartment intelligent lock management method, the intelligent lock does not need a gateway and other networking modules to be connected with the server, when a user needs to unlock, the user side is used as a carrier to communicate with the server to generate an encrypted digital key, and then the user side sends the encrypted digital key to the intelligent lock to perform decryption and verification, so that unlocking is completed. On one hand, the input cost of the intelligent lock can be reduced, and meanwhile, the dependence on an intelligent lock network is reduced. On the other hand, the intelligent lock adopts the encrypted digital key to carry out unlocking verification, so that the safety of the intelligent lock is improved.

In one embodiment, the smart lock decrypts and verifies the encrypted digital key, including: the intelligent lock decrypts the encrypted digital key to obtain a room management password, a user room number, a first serial number and unlocking request time; when the intelligent lock judges that the unlocking request time is in the preset time range, the room management password is the same as the pre-stored management password, the user room number is the same as the pre-stored room number, and the first serial number is larger than the pre-stored serial number, the verification is successful.

In one embodiment, further comprising: the management terminal sets a management password and a house number of the intelligent lock to respectively form a pre-stored management password and a pre-stored house number.

In one embodiment, further comprising: the management end sets the intelligent lock within a preset time range.

Specifically, the intelligent lock can interact with the user side through Bluetooth and the like to obtain an encrypted digital key, then the microprocessor can decrypt the encrypted digital key by using the encrypted digital key to obtain a room management password, a user room number, a first serial number and unlocking request time which are contained in the encrypted digital key, and then the information is respectively compared with information stored in the intelligent lock in advance; when the room management passwords are the same, the room numbers are the same, the unlocking request time is within a preset time range (for example, one hour), and the first serial number is larger than the serial number stored in the intelligent lock, the verification is successful, and the unlocking can be performed.

The pre-stored management password is a management password of a room stored in the smart lock before the user requests unlocking, and is usually set by a manager through a management terminal. And the manager can modify the operation by the management terminal.

The pre-stored room number refers to the number of the room in which the smart lock is installed, which is stored in the smart lock before the user requests unlocking, and is generally set by a manager through a management terminal. And the manager can modify the operation by the management terminal.

The preset time range refers to the valid time of the encrypted digital key, and management usually is performed by a manager through a management end. And the manager can modify the operation by the management terminal.

In one embodiment, after the smart lock is unlocked, the method further comprises: the intelligent lock adopts the first serial number to update the pre-stored serial number.

Specifically, after the intelligent lock is unlocked, the intelligent lock updates the prestored serial number by using the first serial number when the intelligent lock is unlocked. Because the first serial number in the encryption digital key used when unlocking every time can be increased, in order to ensure that each encryption digital key can only be used once, the first serial number when unlocking the last time is adopted to update the serial number pre-stored in the intelligent lock, and the next unlocking verification is convenient to carry out.

In one embodiment, before the user sends the unlocking request to the server, the method further includes: the user side sends a housing request to the server; the server sends the housing request to a management terminal; the management terminal determines the user identity according to the house renting request, and sends user information, the user house number, the room management password and the use duration to the server after the user identity is determined to pass; and the server sends the user house number to the user side, wherein the user house number is used for the user to determine the intelligent lock to be unlocked.

In one embodiment, the server generates a user data table based on the user information, the user house number, the room management password, and the usage time period, and stores the user data table.

Specifically, the user often needs to apply for a room before first requesting to unlock the lock. The specific process is as follows: referring to fig. 4, when a user or a tenant needs to apply for a room or rent a room, the user or the tenant can log in a corresponding APP application room on the user side, upload identity information and the number of days to live (i.e., the use duration) to the server, and a manager checks the server information at the APP of the management side to confirm the identity information, allocates a room number after receiving a room money, binds a user name, the room number, a room management password and a lease term (i.e., the number of days to live), generates a legal user data table and uploads the legal user data table to the server, and returns the allocated room number and the number of days to the tenant. And the server returns the encrypted digital key of the corresponding intelligent lock to the APP of the user side after judging that the tenant information is legal. The APP of the user side is transmitted to the intelligent lock through Bluetooth and the like, and unlocking is achieved when decryption and verification of data are successful.

In one embodiment, further comprising: the user side sends a room updating request to the server; the server sends a room updating request to a management end; and the management terminal updates the user data table of the server according to the room updating request.

Specifically, when the user needs to change the room, the user can apply for the APP at the user side, the user data table is modified after the management side confirms, the original room number bound by the original user is changed into a new room number, and the new room number is updated and stored in the server. The user applies for unlocking, and will receive the encrypted digital key containing the new house number returned by the server.

Secondly, when the user is defaulting or retreats from the house, the management end can delete the user data table in the server, and the user end cannot receive any encrypted digital key of the server any more, so that the user cannot unlock the lock.

In addition, when the cleaner needs to clean a room, the management end can add the staff data table in the server, bind the room number, the room management password and the cleaning time which need to be cleaned, generate a legal user data table and store the legal user data table in the server, and then the cleaner can enter the room through the tenant end APP and clean the room according to the specified time.

It should be understood that although the various steps in the flowcharts of fig. 2 and 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

The embodiments disclosed in the present application describe a method for managing an intelligent lock of an apartment in detail, and the method disclosed in the present application can be implemented by using devices in various forms.

As shown in fig. 1, an embodiment of the present application discloses an apartment intelligent lock management system, which mainly includes: the intelligent lock comprises a user side, a server and an intelligent lock; the intelligent lock is arranged on a door of the apartment; the user side is connected with the server and the intelligent lock respectively; the user side sends an unlocking request to the server; the server judges the user information according to the unlocking request, and when the user information is legal, the server sends the encrypted digital key to the user side; the user side sends the encrypted digital key to an intelligent lock which needs to be unlocked by the user; the intelligent lock decrypts and verifies the encrypted digital key, and when the verification is successful, the intelligent lock is unlocked.

In one embodiment, the smart lock decrypts and verifies the encrypted digital key, including: the intelligent lock decrypts the encrypted digital key to obtain a room management password, a user room number, a first serial number and unlocking request time; when the intelligent lock judges that the unlocking request time is in the preset time range, the room management password is the same as the pre-stored management password, the user room number is the same as the pre-stored room number, and the first serial number is larger than the pre-stored serial number, the verification is successful.

In one embodiment, after the smart lock is unlocked, the method further comprises: the intelligent lock adopts the first serial number to update the pre-stored serial number.

In one embodiment, the apartment management system further includes a management end, and before the user end sends the unlocking request to the server, the method further includes: the user side sends a housing request to the server; the server sends the housing request to a management terminal; the management terminal determines the user identity according to the house renting request, and sends user information, the user house number, the room management password and the use duration to the server after the user identity is determined to pass; and the server sends the user house number to the user side, wherein the user house number is used for the user to determine the intelligent lock to be unlocked.

In one embodiment, further comprising: the management terminal sets a management password and a house number of the intelligent lock to respectively form a pre-stored management password and a pre-stored house number.

In one embodiment, further comprising: the management end sets the intelligent lock within a preset time range.

In one embodiment, the server generates a user data table based on the user information, the user house number, the room management password, and the usage time period, and stores the user data table.

In one embodiment, before the server sends the encrypted digital key to the user side, the method includes: the server generates an encrypted digital key according to the unlocking request time, the first serial number generated when the unlocking request is received, the user room number and the room management password stored in the user data table, wherein the unlocking request time is the corresponding time when the unlocking request is received.

In one embodiment, further comprising: the user side sends a room updating request to the server; the server sends a room updating request to a management end; and the management terminal updates the user data table of the server according to the room updating request.

For specific limitations of the apartment intelligent lock management system, reference may be made to the above limitations of the method, which are not described herein again.

In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种智能锁的临时密码离线验证方法、系统及智能锁

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!