CN111379475B - Unlocking method of electronic lock, electronic lock and unlocking management equipment - Google Patents

Unlocking method of electronic lock, electronic lock and unlocking management equipment Download PDF

Info

Publication number
CN111379475B
CN111379475B CN201811642652.XA CN201811642652A CN111379475B CN 111379475 B CN111379475 B CN 111379475B CN 201811642652 A CN201811642652 A CN 201811642652A CN 111379475 B CN111379475 B CN 111379475B
Authority
CN
China
Prior art keywords
unlocking
key
electronic lock
freezing
time interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811642652.XA
Other languages
Chinese (zh)
Other versions
CN111379475A (en
Inventor
赵彬超
陈彬
张东胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunding Network Technology Beijing Co Ltd
Original Assignee
Yunding Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yunding Network Technology Beijing Co Ltd filed Critical Yunding Network Technology Beijing Co Ltd
Priority to CN201811642652.XA priority Critical patent/CN111379475B/en
Priority to PCT/CN2019/114913 priority patent/WO2020088623A1/en
Publication of CN111379475A publication Critical patent/CN111379475A/en
Application granted granted Critical
Publication of CN111379475B publication Critical patent/CN111379475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B49/00Electric permutation locks; Circuits therefor ; Mechanical aspects of electronic locks; Mechanical keys therefor
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The embodiment of the invention provides an unlocking method of an electronic lock, the electronic lock and unlocking management equipment, which can obtain an unlocking instruction, wherein the unlocking instruction carries a first unlocking key; the first unlocking key is searched in the unlocking keys stored in the electronic lock, if the first unlocking key is searched, whether the current time is within a key valid time interval of the first unlocking key is determined, if the current time is within the key valid time interval of the first unlocking key, the technical scheme of whether unlocking processing is carried out is determined according to key freezing information of the first unlocking key, and the key in the electronic lock is provided with a validity period and key freezing information, so that the electronic lock is more diversified in use method, and the electronic lock can be more flexibly used in some complex application scenes.

Description

Unlocking method of electronic lock, electronic lock and unlocking management equipment
The technical field is as follows:
the invention relates to the field of electronic locks, in particular to an unlocking method of an electronic lock, the electronic lock and unlocking management equipment.
Background art:
in recent years, electronic locks have become popular in terms of apartment renting, hotel rooms, and company units because of their high security and easy operation, which also makes electronic locks capable of adapting to various application scenarios have great market potential.
In order to enable the electronic lock to be suitable for various application scenes, electronic lock manufacturers add a plurality of unlocking modes for the electronic lock, such as Bluetooth, passwords, fingerprints, irises and the like, and manage the unlocking modes of the electronic lock by adding and deleting keys and the like in the electronic lock.
However, in the practical use of the electronic lock, the requirements of the electronic lock manager and the user cannot be met in some complicated application scenarios only by adding and deleting the secret key in the electronic lock, so how to make the electronic lock more flexibly used in the complicated application scenarios becomes a problem that technical personnel need to mainly solve when developing electronic lock products.
The invention content is as follows:
in view of the above problems, the present invention is proposed to provide an unlocking method for an electronic lock, an electronic lock and an unlocking management apparatus, which overcome or at least partially solve the above problems, and the technical solutions are as follows:
an unlocking method of an electronic lock is applied to the electronic lock, the electronic lock stores an unlocking key and attribute information of the unlocking key, wherein the attribute information comprises: a key validity time interval and key freeze information, the method comprising:
obtaining an unlocking instruction, wherein the unlocking instruction carries a first unlocking key;
and searching the first unlocking key in the unlocking keys stored in the electronic lock, if so, determining whether the current moment is within the key valid time interval of the first unlocking key, and if so, determining whether to perform unlocking processing according to the key freezing information of the first unlocking key.
Optionally, the key freezing information includes: the unlocking method comprises the following steps that a state identifier and a freezing time interval are included, the state identifier is a frozen use identifier or an unfrozen identifier, whether unlocking processing is carried out or not is determined according to key freezing information of a first unlocking key, and the unlocking method comprises the following steps:
determining whether the state identifier of the first unlocking key is the frozen use identifier, if so, determining whether the current time is within the freezing time interval of the first unlocking key, if so, rejecting the unlocking instruction, and if not, performing unlocking processing;
and if the state identifier of the first unlocking key is not the frozen use identifier, unlocking.
Optionally, the unlocking method further includes:
if the current moment is outside the key valid time interval of the first unlocking key, rejecting the unlocking instruction;
and/or if the first unlocking key is not found in the unlocking keys stored in the electronic lock, rejecting the unlocking instruction.
Optionally, the unlocking method further includes:
acquiring an unlocking management instruction of the first unlocking key sent by unlocking management equipment, wherein the unlocking management instruction carries attribute information of the first unlocking key;
and modifying part or all of the attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
Optionally, the unlocking method further includes:
the method includes the steps that an unlocking management instruction of a first unlocking mode sent by unlocking management equipment is obtained, wherein the unlocking management instruction carries management information of the first unlocking mode, and the management information of the first unlocking mode comprises the following steps: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval;
and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
An electronic lock, the electronic lock holds an unlocking key and attribute information of the unlocking key, wherein the attribute information includes: a key validity time interval and key freeze information, the electronic lockset comprising: a first obtaining unit, a first searching unit, a first determining unit and a second determining unit,
the first obtaining unit is used for obtaining an unlocking instruction, and the unlocking instruction carries a first unlocking key;
the first searching unit is used for searching the first unlocking key in the unlocking keys stored in the electronic lock, and if the first unlocking key is searched, the first determining unit is triggered;
the first determining unit is used for determining whether the current moment is within a key valid time interval of the first unlocking key, and if so, the second determining unit is triggered;
and the second determining unit is used for determining whether to carry out unlocking processing according to the key freezing information of the first unlocking key.
Optionally, the key freezing information includes: a state flag and a freezing time interval, the state flag being a freezing use flag, the second determination unit including: an identification determination subunit, a freeze determination subunit, an unlocking rejection subunit and an unlocking subunit,
the identifier determining subunit is configured to determine whether the state identifier of the first unlocking key is the frozen use identifier, and if so, trigger the frozen determining subunit; if the state identifier of the first unlocking secret key is not the frozen use identifier, triggering the unlocking subunit;
the freezing determining subunit is used for determining whether the current moment is within the freezing time interval of the first unlocking secret key, and if so, the unlocking refusing subunit is triggered; if the first unlocking key is located outside the freezing time interval of the first unlocking key, triggering the unlocking subunit;
the unlocking rejection subunit is used for rejecting the unlocking instruction;
and the unlocking subunit is used for unlocking.
Optionally, the first determining unit is further configured to trigger the unlocking rejection subunit when it is determined that the current time is outside the key validity time interval of the first unlocking key;
and/or the first searching unit is further configured to trigger the unlocking rejection subunit when the first unlocking key is not searched for in the unlocking keys stored in the electronic lock.
Optionally, the electronic lock further includes: a second obtaining unit and a first modifying unit,
the second obtaining unit is configured to obtain an unlocking management instruction for the first unlocking key sent by the unlocking management device, where the unlocking management instruction carries attribute information of the first unlocking key;
the first modifying unit is used for modifying part or all of attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
Optionally, the electronic lock further includes: a third obtaining unit and a second modifying unit,
the third obtaining unit is configured to obtain an unlocking management instruction for a first unlocking manner sent by an unlocking management device, where the unlocking management instruction carries management information of the first unlocking manner, and the management information of the first unlocking manner includes: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
the second modification unit is configured to: when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval; and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
An unlocking method of an electronic lock is applied to unlocking management equipment, the unlocking management equipment is in communication connection with the electronic lock, the electronic lock stores an unlocking key and attribute information of the unlocking key, and the attribute information comprises: a key validity time interval and key freeze information, the method comprising:
generating an unlocking management instruction of a first unlocking key stored in the electronic lock according to the operation of a user, wherein the unlocking management instruction carries attribute information of the first unlocking key;
sending the unlocking management instruction to the electronic lock;
obtaining a modification result returned after the electronic lock modifies part or all of the attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction;
and obtaining a notification sent by the electronic lock after receiving an unlocking instruction carrying the first unlocking key, wherein the notification is sent after the electronic lock finds the first unlocking key in the unlocking keys stored in the electronic lock and rejects the unlocking instruction according to the modified attribute information of the first unlocking key.
The utility model provides an unblanking management equipment, unblanking management equipment and electronic lock communication connection, electronic lock keeps unblanking key and the attribute information of unblanking key, wherein, the attribute information includes: the key validity time interval and the key freeze information, the unlocking management device includes: a management instruction generating unit, a management instruction transmitting unit, a modification result obtaining unit, and a notification obtaining unit,
the management instruction generating unit is used for generating an unlocking management instruction of a first unlocking key stored in the electronic lock according to the operation of a user, wherein the unlocking management instruction carries attribute information of the first unlocking key;
the management instruction sending unit is used for sending the unlocking management instruction to the electronic lock;
the modification result obtaining unit is used for obtaining a modification result returned after the electronic lock modifies part or all of the attribute information of the first unlocking key stored in the electronic lock according to the attribute information in the unlocking management instruction;
the notification obtaining unit is configured to obtain a notification sent by the electronic lock after receiving an unlocking instruction carrying the first unlocking key, where the notification is sent after the electronic lock finds the first unlocking key in the unlocking keys stored in the electronic lock and rejects the unlocking instruction according to the modified attribute information of the first unlocking key.
By means of the technical scheme, the unlocking method of the electronic lock, the electronic lock and the unlocking management equipment provided by the embodiment of the invention can obtain the unlocking instruction, wherein the unlocking instruction carries the first unlocking key; the first unlocking key is searched in the unlocking keys stored in the electronic lock, if the first unlocking key is searched, whether the current time is within a key valid time interval of the first unlocking key is determined, if the current time is within the key valid time interval of the first unlocking key, the technical scheme of whether unlocking processing is carried out is determined according to key freezing information of the first unlocking key, and the key in the electronic lock is provided with a validity period and key freezing information, so that the electronic lock is more diversified in use method, and the electronic lock can be more flexibly used in some complex application scenes.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. In the drawings:
fig. 1 shows a flowchart of an unlocking method of an electronic lock according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an unlocking method of an electronic lock according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating an unlocking method of an electronic lock according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating an unlocking method of an electronic lock according to another embodiment of the present invention;
FIG. 5 is a flow chart illustrating a method for managing unlocking keys according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic lock according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic lock according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another electronic lock according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another electronic lock according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating an unlocking method of an electronic lock according to another embodiment of the present invention;
fig. 11 is a schematic structural diagram of an unlocking management apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The electronic lock provided by the embodiment of the invention is applied to an electronic lock, wherein the electronic lock stores an unlocking key and attribute information of the unlocking key, and the attribute information comprises: the key validity time interval and the key freeze information, as shown in fig. 1, the method may include:
s100, obtaining an unlocking instruction, wherein the unlocking instruction carries a first unlocking key;
specifically, a user can input an unlocking instruction in the electronic lock, and the input unlocking instruction can carry an unlocking key representing the user of the electronic lock. The mode of unblanking the electronic lock can be password, bluetooth, fingerprint, iris etc.. The user can input the unlocking key to unlock the electronic lock through various unlocking modes, for example, the user sends an unlocking instruction to the electronic lock through a terminal device (such as a mobile phone) to input the unlocking key into the electronic lock.
The key validity time interval is the validity period of an unlocking key stored in the electronic lock, for example: the key validity time interval of a certain unlocking key is from 1 month 1 day in 2018 to 12 months 31 days in 2018, so that the user can unlock the lock in the key validity time interval through the unlocking key, and the user cannot unlock the lock through the unlocking key outside the key validity time interval. The invention can flexibly manage the unlocking key through the key valid time interval, such as: example 1: the cleaning personnel need to enter the home of the user for cleaning from 12 pm to 1 pm in tuesday and from 12 pm to 1 pm in friday every week, and the user can save the fingerprint of the cleaning personnel into the electronic lock on the entrance door and set the key valid time interval from 12 pm to 1 pm in tuesday and from 12 pm to 1 pm in friday for the fingerprint. Therefore, the cleaning personnel can not enter the home of the user at other times outside the key valid time interval, and the safety and the flexibility can be effectively improved.
Besides the key valid time interval, the invention can further carry out freezing management on the unlocking key through the key freezing information. Wherein the key freezing information may include: a state flag, which may be a frozen use flag or an unfrozen flag, and a freeze time interval. The freezing time interval is the time interval in which the unlocking key is frozen for use. When the state identifier of a certain unlocking key is the frozen use identifier, the unlocking key is frozen and cannot be used for unlocking within a corresponding freezing time interval.
S200, searching the first unlocking key in the unlocking keys stored in the electronic lock, and executing the step S300 if the first unlocking key is searched;
specifically, after the unlocking key is obtained, the electronic lock searches whether the obtained unlocking key exists in all unlocking keys stored in the electronic lock. In practical use of an electronic lock, an electronic lock manager may store an unlocking key of an authorized user in the electronic lock, but it is not excluded that an unauthorized user may also attempt to unlock the electronic lock, so it is necessary to verify whether the unlocking key that has just been obtained is the unlocking key of the authorized user from among the unlocking keys stored in the electronic lock. If the unauthorized user inputs the unlocking instruction for many times, the electronic lock manager can be informed, so that the electronic lock manager can timely process the unlocking instruction, for example, the unauthorized user tries to crack the unlocking key in a password-uninterrupted mode, the electronic lock manager can be timely informed, and the electronic lock manager can process the behavior of forcibly invading the electronic lock in modes of alarming and the like, so that the electronic lock and the personal and property safety of the user are protected.
S300, determining whether the current time is within a key valid time interval of the first unlocking key, and if so, executing the step S400;
specifically, after the unlocking key is determined to be the unlocking key of the authorized user, whether the unlocking key is in the key valid time interval or not is checked. Different valid times can be set for different unlocking keys. In some application scenarios, for example, for some guests who visit the owner's home temporarily, the owner may set a temporary unlocking key with an expiration date for the guest, and within the expiration date, the guest may open the electronic lock to enter the owner's home through the temporary unlocking key, so as to prevent the guest from waiting too long outdoors due to busy owner.
S400, determining whether to unlock according to the key freezing information of the first unlocking key.
Specifically, under some circumstances, the problem that the electronic lock manager cannot solve is solved completely by setting the validity period for the unlocking key, and at this time, the electronic lock manager can set the unlocking key flexibly by setting the key freezing information for the electronic lock.
The invention can freeze a certain section or a plurality of short sections of time interval within a longer key valid time interval of a certain unlocking key, thus, the unlocking key can not be used for unlocking within the frozen time interval, and the unlocking key can be normally unlocked within other time within the key valid time interval. Still referring to example 1, for example 1, when a user needs to go on business in the whole month of february, the user does not need to enter a house for cleaning. But the user is no longer on business after a week. At this time, if the key valid time interval is modified, the key valid time interval of the unlocking key of the cleaning staff stored in the electronic lock needs to be modified before the user goes on business, and february in the key valid time interval is removed. If the user returns home after a week, the user needs to modify the key validity time interval of the unlocking key of the cleaning staff stored in the electronic lock again, and adds 12 pm to 1 pm on tuesday and 12 pm to 1 pm on friday of weeks after february into the key validity time interval. Such a modification is undoubtedly cumbersome, and in order to solve this problem, the present invention flexibly manages the unlocking key by a combination of the key freezing information and the key validity time interval. For example 1, when the user needs to go on business in the whole month of february, but the user does not go on business any more after going on business for one week, the user may freeze february before going on business, and when the user goes back to home after going on business for one week, the user may unfreeze february again. Freezing and unfreezing the unlock key is simpler and more flexible than modifying the key validity time interval.
According to the unlocking method of the electronic lock, provided by the embodiment of the invention, an unlocking instruction can be obtained, and the unlocking instruction carries a first unlocking key; and searching the first unlocking key in the unlocking keys stored in the electronic lock, if so, determining whether the current moment is within the key valid time interval of the first unlocking key, and if so, determining whether to perform unlocking processing according to the key freezing information of the first unlocking key. The key effective time interval and the key freezing information are set for the unlocking key in the electronic lock, the management of the unlocking key can be realized through the combination of the key effective time interval and the key freezing information, the electronic lock is more flexible and convenient, and the electronic lock can be more flexibly used in some complex application scenes.
Optionally, the key freezing information in the embodiment of the present invention may include: a state flag, which may be a frozen use flag or an unfrozen flag, and a freeze time interval. On this basis, as shown in fig. 2, step S400 in the method shown in fig. 1 may specifically include:
s410, determining whether the state identifier of the first unlocking key is the frozen use identifier, if so, executing the step S420, and if not, executing the step S440;
specifically, the state identifier of the first unlocking key may be a frozen use identifier, may also be an unfrozen identifier, and may also be null. When the state mark is empty, the first unlocking secret key can be determined not to be frozen, and normal unlocking can be carried out. It is understood that the freezing of the first unlocking key is performed by freezing the use identifier, and the condition that the first unlocking key is not frozen as long as the use identifier is not frozen can be set to be an unfrozen identifier or other identifier or null, which is not further limited herein.
S420, determining whether the current time is within the freezing time interval of the first unlocking key, if so, executing the step S430, and if not, executing the step S440;
s430, rejecting the unlocking instruction;
and S440, unlocking.
The invention realizes the management of unlocking keys by combining the key valid time interval and the key freezing information, and can enable the electronic lock to be more flexibly used in some complex application scenes. For example: the master hires cleaning personnel to clean houses at 4 to 6 pm every day, the validity period of an unlocking key provided by the cleaning personnel is 4 to 6 pm every day, but the master needs to go on a business trip for two days temporarily, although the cleaning personnel can be informed by telephone not to be used for house cleaning in the two days, in order to avoid the condition that the cleaning personnel enters the houses of the master when the master goes on a business trip and is not at home, the unlocking key of the cleaning personnel can be provided with a freezing use mark and a freezing time interval, the freezing time interval is 4 to 6 pm in the two days when the master goes on a business trip, and after the master returns on the two days when the master goes on a business trip, the unlocking key of the cleaning personnel is automatically unfrozen without manual unfreezing, so that the complicated operation of the master is omitted.
Optionally, as shown in fig. 2, in another unlocking method of an electronic lock according to an embodiment of the present invention, step S430 may be further performed when it is determined that the current time is outside the key validity time interval of the first unlocking key in step S300.
Specifically, even if the unlocking key of an authorized electronic lock user is used, the unlocking cannot be performed beyond the validity period of the unlocking key, it can be understood that the unlocking key has expired, and for the expired unlocking key, the electronic lock manager can set automatic deletion on the expired unlocking key, and can also manually process the expired unlocking key, where the manual process includes but is not limited to: resetting the expiration date or deleting, etc.
The method shown in fig. 2 may also execute step S430 when the first unlocking key is not found in the unlocking keys stored in the electronic lock in step S200.
Specifically, when the electronic lock determines that an unauthorized electronic lock user inputs an unlocking instruction, the unlocking instruction is rejected, and when the unauthorized electronic lock user repeatedly inputs the unlocking instruction within a short time, the electronic lock gives an alarm or notifies an electronic lock manager to process the unlocking instruction.
Optionally, based on the method shown in fig. 1, as shown in fig. 3, another unlocking method for an electronic lock provided in the embodiment of the present invention may further include:
s500, acquiring an unlocking management instruction of the first unlocking key sent by unlocking management equipment, wherein the unlocking management instruction carries attribute information of the first unlocking key;
s600, modifying part or all of attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
The unlocking management equipment can be a server in communication connection with the electronic lock, and the server can manage an unlocking key in the electronic lock. Specifically, a user can be in communication connection with the server through a terminal device (such as a mobile phone), and management of an unlocking key in the electronic lock is achieved through the server.
Certainly, the unlocking management device may also be a terminal device, for example, when the unlocking management device is a terminal device (such as a mobile phone), the user may directly connect with the electronic lock through the terminal device to realize management of the unlocking key in the electronic lock, where the connection mode between the terminal device and the electronic lock may be a wireless transmission mode such as bluetooth or wifi, or may be a wired connection mode (such as connection through a data line). The embodiment of the present invention is not limited herein.
For convenience of understanding, steps S500 to S600 shown in fig. 3 are explained in detail below through the steps shown in fig. 5: in fig. 5, the user uses the terminal device to communicate with the server, and then manages the unlocking key in the electronic lock through the server, and the specific management process includes:
s001, the terminal equipment sends an unlocking management instruction for the first unlocking key, wherein the unlocking management instruction carries attribute information of the first unlocking key;
s002, the server sends the unlocking management instruction to the electronic lock;
s003, the electronic lock modifies the attribute information of the first unlocking key according to the unlocking management instruction;
s004, the electronic lock sends the modification result to a server;
s005, the server sends the modification result to the terminal equipment;
and S006, the terminal equipment displays the modification result.
Optionally, the unlocking key in the embodiment of the present invention may be stored in the electronic lock in the form of a key file, and each key file stores key information of one unlocking key, for example: fingerprint line information or a specific digital sequence of a digital code. Furthermore, the invention can set a unique file ID for each key file, and the invention can search the corresponding unlocking key through the file ID. Specifically, the unlocking key can be corresponding to the user identification through the file ID, wherein the user identification can be a user name, a user identity card number, a user living address and the like. The user identification is corresponded by the file ID, so that the user can perform centralized management on a plurality of unlocking keys of a certain person, for example: the server stores the corresponding relationship between the user identification and the file ID, and the user can send an unlocking management instruction carrying the user identification of the first user and the attribute information of all unlocking keys of the first user to the server through the terminal equipment. After obtaining the unlocking management instruction, the server can search each file ID corresponding to the user identification of the first user, and send each searched file ID and the unlocking management instruction to the electronic lock together, and the electronic lock can modify the stored attribute information of the key file with the received file ID into the attribute information in the unlocking management instruction according to each received file ID.
Optionally, the server may authenticate the user of the terminal device, determine whether the user has a right to modify the attribute information of the first unlocking key, and send the unlocking management instruction to the electronic lock if the user has the right to modify the attribute information of the first unlocking key.
Optionally, based on the method shown in fig. 1, as shown in fig. 4, another unlocking method for an electronic lock provided in the embodiment of the present invention may further include:
s700, obtaining an unlocking management instruction of a first unlocking mode sent by unlocking management equipment, wherein the unlocking management instruction carries management information of the first unlocking mode, and the management information of the first unlocking mode comprises: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode; when the unlocking management instruction comprises the target effective time interval, executing the step S800; when the unlocking management instruction comprises the target freezing information, executing a step S900;
s800, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval;
s900, modifying the key freezing information of each unlocking key of the first unlocking mode stored in the electronic lock into the target freezing information.
The electronic lock can be unlocked in various modes, such as fingerprint, iris, Bluetooth, password, face recognition and the like. The invention can manage the unlocking mode besides the unlocking key, for example, the validity period of the unlocking mode of fingerprint is set to be 7 to 17 points per day, the validity period of the unlocking mode of password is 10 to 16 points per day, and the freezing period is 12 to 13 points per day. The invention can modify the key valid time interval and/or the key freezing information of each unlocking key of at least one unlocking mode. For example: the key of the user A is provided with attribute information of two unlocking modes of a fingerprint and an iris, the key of the user B is provided with attribute information of three unlocking modes of a fingerprint, a password and a Bluetooth, and the unlocking management instruction carries the attribute information of the fingerprint, so that the attribute information of the fingerprints of the user A and the user B is modified into the attribute information of the fingerprint carried by the unlocking management.
Corresponding to the unlocking method of the electronic lock applied to the electronic lock, the embodiment of the invention also provides the electronic lock.
The electronic lock provided by the embodiment of the invention stores an unlocking key and attribute information of the unlocking key, wherein the attribute information can comprise: the key valid time interval and the key freeze information, as shown in fig. 6, the electronic lock may include: a first obtaining unit 100, a first look-up unit 200, a first determining unit 300 and a second determining unit 400,
the first obtaining unit 100 is configured to obtain an unlocking instruction, where the unlocking instruction carries a first unlocking key;
specifically, a user can input an unlocking instruction in the electronic lock, and the input unlocking instruction can carry an unlocking key representing the user of the electronic lock. The mode of unblanking the electronic lock can be password, bluetooth, fingerprint, iris etc.. The user can input the unlocking key to unlock the electronic lock through various unlocking modes, for example, the user sends an unlocking instruction to the electronic lock through a terminal device (such as a mobile phone) to input the unlocking key into the electronic lock.
The key valid time interval is the valid period of the unlocking key stored in the electronic lock.
The first searching unit 200 is configured to search for the first unlocking key in the unlocking keys stored in the electronic lock, and if the first unlocking key is found, trigger the first determining unit 300;
the first determining unit 300 is configured to determine whether a current time is within a key validity time interval of the first unlocking key, and if so, trigger the second determining unit 400;
the second determining unit 400 is configured to determine whether to perform unlocking processing according to the key freezing information of the first unlocking key.
Specifically, under some circumstances, the problem that the electronic lock manager cannot solve is solved completely by setting the validity period for the unlocking key, and at this time, the electronic lock manager can set the unlocking key flexibly by setting the key freezing information for the electronic lock.
According to the electronic lock provided by the embodiment of the invention, an unlocking instruction can be obtained, and the unlocking instruction carries a first unlocking key; and searching the first unlocking key in the unlocking keys stored in the electronic lock, if so, determining whether the current moment is within the key valid time interval of the first unlocking key, and if so, determining whether to perform unlocking processing according to the key freezing information of the first unlocking key. The key effective time interval and the key freezing information are set for the unlocking key in the electronic lock, the management of the unlocking key can be realized through the combination of the key effective time interval and the key freezing information, the electronic lock is more flexible and convenient, and the electronic lock can be more flexibly used in some complex application scenes.
Optionally, as shown in fig. 7, in another electronic lock provided in an embodiment of the present invention, the key freezing information may include: a state flag and a freeze time interval, the state flag being a freeze use flag, the second determining unit 400 may include: an identification determination subunit 410, a freeze determination subunit 420, an unlock rejection subunit 430, and an unlock subunit 440,
the identifier determining subunit 410 is configured to determine whether the status identifier of the first unlocking key is the frozen use identifier, and if so, trigger the frozen determining subunit 420; if the status identifier of the first unlocking key is not the frozen use identifier, triggering the unlocking subunit 440;
the freezing determination subunit 420 is configured to determine whether the current time is within a freezing time interval of the first unlocking key, and if so, trigger the unlocking rejection subunit 430; triggering the unlocking subunit 440 if it is outside the freezing time interval of the first unlocking key;
the unlocking rejection subunit 430 is configured to reject the unlocking instruction;
the unlocking subunit 440 is configured to perform an unlocking process.
Optionally, in another electronic lock provided in the embodiment of the present invention, the first determining unit 300 may be further configured to trigger the unlocking rejection subunit 430 when it is determined that the current time is outside the key valid time interval of the first unlocking key;
and/or the first search unit 200 is further configured to trigger the unlocking rejection subunit 430 when the first unlocking key is not found in the unlocking keys stored in the electronic lock.
Optionally, based on the electronic lock shown in fig. 6, as shown in fig. 8, another electronic lock provided in the embodiment of the present invention may further include: a second obtaining unit 500 and a first modifying unit 600,
the second obtaining unit 500 is configured to obtain an unlocking management instruction for the first unlocking key sent by the unlocking management device, where the unlocking management instruction carries attribute information of the first unlocking key;
the first modifying unit 600 is configured to modify, according to the attribute information in the unlocking management instruction, part or all of the attribute information of the first unlocking key stored in the electronic lock.
Optionally, based on the electronic lock shown in fig. 6, as shown in fig. 9, another electronic lock provided in the embodiment of the present invention may further include: a third obtaining unit 700 and a second modifying unit 800,
the third obtaining unit 700 is configured to obtain an unlocking management instruction for a first unlocking manner sent by an unlocking management device, where the unlocking management instruction carries management information of the first unlocking manner, and the management information of the first unlocking manner includes: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
the second modifying unit 800 is configured to: when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval; and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
The embodiment of the invention also provides an unlocking method of an electronic lock, which is applied to unlocking management equipment, wherein the unlocking management equipment is in communication connection with the electronic lock, the electronic lock stores an unlocking key and attribute information of the unlocking key, and the attribute information comprises: the key validity time interval and the key freeze information, as shown in fig. 10, the method may include:
s10, generating an unlocking management instruction of a first unlocking key stored in the electronic lock according to the operation of a user, wherein the unlocking management instruction carries attribute information of the first unlocking key;
specifically, the unlocking management device may be a terminal device or a server, for example, when the unlocking management device is a terminal device (such as a mobile phone), the user may be directly connected to the electronic lock through the terminal device to manage the unlocking key in the electronic lock, where the connection between the terminal device and the electronic lock may be a wireless transmission mode such as bluetooth or wifi, or may be a wired connection mode (such as connection through a data line). The embodiment of the present invention is not limited herein. Of course, the terminal device may also be in communication connection with the electronic lock through the server, so that the terminal device may manage the unlocking key in the electronic lock through the server.
The unlocking management instruction can be specifically as follows: an unlocking key freezing instruction, an unlocking key unfreezing instruction, a key valid time interval modification instruction and the like. The attribute information carried in the unlocking key freezing instruction is as follows: freezing a use identifier and a freezing time interval; the attribute information carried in the unlocking key unfreezing instruction is as follows: unfrozen marks; the attribute information carried in the key valid time interval modification instruction is as follows: a new key validity time interval for replacing the original key validity time interval.
S20, sending the unlocking management instruction to the electronic lock;
s30, obtaining a modification result returned after the electronic lock modifies part or all of attribute information of the first unlocking key stored in the electronic lock according to the attribute information in the unlocking management instruction;
the modification result may be a success of modification or a failure of modification, and may also be other modification results. Specifically, the reason for the failure of modification may be various, such as: no unlocking key to modify exists, no modification rights exist, etc.
S40, obtaining a notice sent by the electronic lock after receiving the unlocking instruction carrying the first unlocking key, wherein the notice is sent after the electronic lock finds the first unlocking key in the unlocking keys stored in the electronic lock and rejects the unlocking instruction according to the modified attribute information of the first unlocking key.
Specifically, the electronic lock may refuse the unlocking instruction and send a notification to the unlocking management device under the following conditions:
in the first situation, the electronic lock does not find the first unlocking key locally after receiving an unlocking instruction carrying the first unlocking key;
in the second situation, the moment when the electronic lock receives the unlocking instruction carrying the first unlocking key is outside the key valid time interval of the first unlocking key;
after the electronic lock receives an unlocking instruction carrying the first unlocking key, determining that the moment when the unlocking instruction carrying the first unlocking key is received is within a key effective time interval of the first unlocking key, and determining not to perform unlocking processing according to key freezing information of the first unlocking key;
determining not to unlock according to the key freezing information of the first unlocking key may specifically include: when the state identifier of the electronic lock at the first unlocking key is the frozen use identifier and the moment when the electronic lock receives the unlocking instruction carrying the first unlocking key is within the freezing time interval of the first unlocking key, the electronic lock is determined not to perform unlocking processing.
Specifically, the notification in the embodiment of the present invention may include a message that someone attempts to unlock the lock but the unlocking fails, and may further include the reason of the unlocking failure, such as: the unlocking key used by the unlocking person is frozen.
The embodiment of the invention can inform the user that someone tries to unlock the lock by using the nonexistent, invalid or frozen key in a mode of sending the notice so as to remind the user to pay attention to personal and property safety.
Corresponding to the method shown in fig. 10, the invention also provides an unlocking management device.
The unlocking management equipment provided by the embodiment of the invention is in communication connection with an electronic lock, and the electronic lock stores an unlocking key and attribute information of the unlocking key, wherein the attribute information comprises: the key valid time interval and the key freeze information, as shown in fig. 11, the unlock management device may include: a management instruction generating unit 10, a management instruction transmitting unit 20, a modification result obtaining unit 30 and a notification obtaining unit 40,
the management instruction generating unit 10 is configured to generate an unlocking management instruction for a first unlocking key stored in the electronic lock according to an operation of a user, where the unlocking management instruction carries attribute information of the first unlocking key;
specifically, the unlocking management device may be a terminal device or a server, for example, when the unlocking management device is a terminal device (such as a mobile phone), the user may be directly connected to the electronic lock through the terminal device to manage the unlocking key in the electronic lock, where the connection between the terminal device and the electronic lock may be a wireless transmission mode such as bluetooth or wifi, or may be a wired connection mode (such as connection through a data line). The embodiment of the present invention is not limited herein. Of course, the terminal device may also be in communication connection with the electronic lock through the server, so that the terminal device may manage the unlocking key in the electronic lock through the server.
The unlocking management instruction can be specifically as follows: an unlocking key freezing instruction, an unlocking key unfreezing instruction, a key valid time interval modification instruction and the like. The attribute information carried in the unlocking key freezing instruction is as follows: freezing a use identifier and a freezing time interval; the attribute information carried in the unlocking key unfreezing instruction is as follows: unfrozen marks; the attribute information carried in the key valid time interval modification instruction is as follows: a new key validity time interval for replacing the original key validity time interval.
The management instruction sending unit 20 is configured to send the unlocking management instruction to the electronic lock;
the modification result obtaining unit 30 is configured to obtain a modification result returned by the electronic lock after modifying part or all of the attribute information of the first unlocking key stored in the electronic lock according to the attribute information in the unlocking management instruction;
the modification result may be a success of modification or a failure of modification, and may also be other modification results. Specifically, the reason for the failure of modification may be various, such as: no unlocking key to modify exists, no modification rights exist, etc.
The notification obtaining unit 40 is configured to obtain a notification sent by the electronic lock after receiving the unlocking instruction carrying the first unlocking key, where the notification is sent after the electronic lock finds the first unlocking key in the unlocking keys stored in the electronic lock and rejects the unlocking instruction according to the modified attribute information of the first unlocking key.
Specifically, the electronic lock may refuse the unlocking instruction and send a notification to the unlocking management device under the following conditions:
in the first situation, the electronic lock does not find the first unlocking key locally after receiving an unlocking instruction carrying the first unlocking key;
in the second situation, the moment when the electronic lock receives the unlocking instruction carrying the first unlocking key is outside the key valid time interval of the first unlocking key;
after the electronic lock receives an unlocking instruction carrying the first unlocking key, determining that the moment when the unlocking instruction carrying the first unlocking key is received is within a key effective time interval of the first unlocking key, and determining not to perform unlocking processing according to key freezing information of the first unlocking key;
determining not to unlock according to the key freezing information of the first unlocking key may specifically include: when the state identifier of the electronic lock at the first unlocking key is the frozen use identifier and the moment when the electronic lock receives the unlocking instruction carrying the first unlocking key is within the freezing time interval of the first unlocking key, the electronic lock is determined not to perform unlocking processing.
Specifically, the notification in the embodiment of the present invention may include a message that someone attempts to unlock the lock but the unlocking fails, and may further include the reason of the unlocking failure, such as: the unlocking key used by the unlocking person is frozen.
The embodiment of the invention can inform the user that someone tries to unlock the lock by using the nonexistent, invalid or frozen key in a mode of sending the notice so as to remind the user to pay attention to personal and property safety.
The electronic lock comprises a processor and a memory, wherein the first obtaining unit, the first searching unit, the first determining unit, the second determining unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the electronic lock can be used more flexibly in a complex application scene by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program realizes the unlocking method of the electronic lock when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes an unlocking method of an electronic lock during running.
The embodiment of the invention provides an electronic lock, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the memory stores an unlocking key and attribute information of the unlocking key, and the attribute information comprises: the processor executes the program to realize the following steps:
obtaining an unlocking instruction, wherein the unlocking instruction carries a first unlocking key;
and searching the first unlocking key in the unlocking keys stored in the electronic lock, if so, determining whether the current moment is within the key valid time interval of the first unlocking key, and if so, determining whether to perform unlocking processing according to the key freezing information of the first unlocking key.
Optionally, the key freezing information includes: the method comprises a state identifier and a freezing time interval, wherein the state identifier is a frozen use identifier or an unfrozen identifier, and whether unlocking processing is performed or not is determined according to key freezing information of a first unlocking key, and the method comprises the following steps:
determining whether the state identifier of the first unlocking key is the frozen use identifier, if so, determining whether the current time is within the freezing time interval of the first unlocking key, if so, rejecting the unlocking instruction, and if not, performing unlocking processing;
and if the state identifier of the first unlocking key is not the frozen use identifier, unlocking.
Optionally, the unlocking method further includes:
if the current moment is outside the key valid time interval of the first unlocking key, rejecting the unlocking instruction;
and/or if the first unlocking key is not found in the unlocking keys stored in the electronic lock, rejecting the unlocking instruction.
Optionally, the unlocking method further includes:
acquiring an unlocking management instruction of the first unlocking key sent by unlocking management equipment, wherein the unlocking management instruction carries attribute information of the first unlocking key;
and modifying part or all of the attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
Optionally, the unlocking method further includes:
the method includes the steps that an unlocking management instruction of a first unlocking mode sent by unlocking management equipment is obtained, wherein the unlocking management instruction carries management information of the first unlocking mode, and the management information of the first unlocking mode comprises the following steps: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval;
and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
The present application also provides a computer program product adapted to perform a program for initializing the following method steps when executed on an electronic lock:
obtaining an unlocking instruction, wherein the unlocking instruction carries a first unlocking key;
and searching the first unlocking key in the unlocking keys stored in the electronic lock, if so, determining whether the current moment is within the key valid time interval of the first unlocking key, and if so, determining whether to perform unlocking processing according to the key freezing information of the first unlocking key.
Optionally, the key freezing information includes: the method comprises a state identifier and a freezing time interval, wherein the state identifier is a frozen use identifier or an unfrozen identifier, and whether unlocking processing is performed or not is determined according to key freezing information of a first unlocking key, and the method comprises the following steps:
determining whether the state identifier of the first unlocking key is the frozen use identifier, if so, determining whether the current time is within the freezing time interval of the first unlocking key, if so, rejecting the unlocking instruction, and if not, performing unlocking processing;
and if the state identifier of the first unlocking key is not the frozen use identifier, unlocking.
Optionally, the unlocking method further includes:
if the current moment is outside the key valid time interval of the first unlocking key, rejecting the unlocking instruction;
and/or if the first unlocking key is not found in the unlocking keys stored in the electronic lock, rejecting the unlocking instruction.
Optionally, the unlocking method further includes:
acquiring an unlocking management instruction of the first unlocking key sent by unlocking management equipment, wherein the unlocking management instruction carries attribute information of the first unlocking key;
and modifying part or all of the attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
Optionally, the unlocking method further includes:
the method includes the steps that an unlocking management instruction of a first unlocking mode sent by unlocking management equipment is obtained, wherein the unlocking management instruction carries management information of the first unlocking mode, and the management information of the first unlocking mode comprises the following steps: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval;
and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An unlocking method of an electronic lock is characterized in that the electronic lock is applied to the electronic lock, an unlocking key and attribute information of the unlocking key are stored in the electronic lock, wherein the attribute information comprises: the key protection method includes a key valid time interval and key freezing information, wherein the key freezing information is used for indicating whether unlocking processing is performed or not, and the key freezing information includes: a state identifier and a freezing time interval, wherein the state identifier is a frozen use identifier or an unfrozen identifier, and the method comprises the following steps:
obtaining an unlocking instruction, wherein the unlocking instruction carries a first unlocking key;
searching the first unlocking key in unlocking keys stored in the electronic lock, if so, determining whether the current moment is within a key valid time interval of the first unlocking key, and if so, determining whether to perform unlocking processing according to key freezing information of the first unlocking key;
acquiring an unlocking management instruction of the first unlocking key sent by unlocking management equipment, wherein the unlocking management instruction carries attribute information of the first unlocking key;
and modifying part or all of the attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
2. The unlocking method according to claim 1, wherein the determining whether to perform the unlocking process according to the key freezing information of the first unlocking key includes:
determining whether the state identifier of the first unlocking key is the frozen use identifier, if so, determining whether the current time is within the freezing time interval of the first unlocking key, if so, rejecting the unlocking instruction, and if not, performing unlocking processing;
and if the state identifier of the first unlocking key is not the frozen use identifier, unlocking.
3. The method of claim 1 or 2, further comprising:
if the current moment is outside the key valid time interval of the first unlocking key, rejecting the unlocking instruction;
and/or if the first unlocking key is not found in the unlocking keys stored in the electronic lock, rejecting the unlocking instruction.
4. The method of claim 1, further comprising:
the method includes the steps that an unlocking management instruction of a first unlocking mode sent by unlocking management equipment is obtained, wherein the unlocking management instruction carries management information of the first unlocking mode, and the management information of the first unlocking mode comprises the following steps: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval;
and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
5. An electronic lock, characterized in that, the electronic lock keeps unlocking key and the attribute information of the unlocking key, wherein, the attribute information includes: the key protection method includes a key valid time interval and key freezing information, wherein the key freezing information is used for indicating whether unlocking processing is performed or not, and the key freezing information includes: state sign and freezing time interval, the state sign is freezing and uses the sign or not freezing the sign, electronic lock includes: a first obtaining unit, a second obtaining unit, a first searching unit, a first determining unit, a second determining unit and a first modifying unit,
the first obtaining unit is used for obtaining an unlocking instruction, and the unlocking instruction carries a first unlocking key;
the first searching unit is used for searching the first unlocking key in the unlocking keys stored in the electronic lock, and if the first unlocking key is searched, the first determining unit is triggered;
the first determining unit is used for determining whether the current moment is within a key valid time interval of the first unlocking key, and if so, the second determining unit is triggered;
the second determining unit is used for determining whether to perform unlocking processing according to the key freezing information of the first unlocking key;
the second obtaining unit is configured to obtain an unlocking management instruction for the first unlocking key sent by the unlocking management device, where the unlocking management instruction carries attribute information of the first unlocking key;
the first modifying unit is used for modifying part or all of attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction.
6. The electronic lockset of claim 5 wherein said key freeze message comprises: a state flag and a freezing time interval, the state flag being a frozen use flag or an unfrozen flag, the second determining unit including: an identification determination subunit, a freeze determination subunit, an unlocking rejection subunit and an unlocking subunit,
the identifier determining subunit is configured to determine whether the state identifier of the first unlocking key is the frozen use identifier, and if so, trigger the frozen determining subunit; if the state identifier of the first unlocking secret key is not the frozen use identifier, triggering the unlocking subunit;
the freezing determining subunit is used for determining whether the current moment is within the freezing time interval of the first unlocking secret key, and if so, the unlocking refusing subunit is triggered; if the first unlocking key is located outside the freezing time interval of the first unlocking key, triggering the unlocking subunit;
the unlocking rejection subunit is used for rejecting the unlocking instruction;
and the unlocking subunit is used for unlocking.
7. The electronic lock according to claim 5 or 6, wherein the first determination unit is further configured to trigger the unlocking rejection subunit when it is determined that the current time is outside the key validity time interval of the first unlocking key;
and/or the first searching unit is further configured to trigger the unlocking rejection subunit when the first unlocking key is not searched for in the unlocking keys stored in the electronic lock.
8. The electronic lockset of claim 5 further comprising: a third obtaining unit and a second modifying unit,
the third obtaining unit is configured to obtain an unlocking management instruction for a first unlocking manner sent by an unlocking management device, where the unlocking management instruction carries management information of the first unlocking manner, and the management information of the first unlocking manner includes: the target attribute information of the first unlocking mode includes: target effective time interval of the first unlocking mode and/or target freezing information of the first unlocking mode;
the second modification unit is configured to: when the unlocking management instruction comprises the target valid time interval, modifying the key valid time interval of each unlocking key of the first unlocking mode stored by the electronic lock into the target valid time interval; and when the unlocking management instruction comprises the target freezing information, modifying the key freezing information of each unlocking key of the first unlocking mode stored by the electronic lock into the target freezing information.
9. An unlocking method of an electronic lock is characterized in that the unlocking method is applied to unlocking management equipment, the unlocking management equipment is in communication connection with the electronic lock, the electronic lock stores an unlocking key and attribute information of the unlocking key, and the attribute information comprises: the key protection method includes a key valid time interval and key freezing information, wherein the key freezing information is used for indicating whether unlocking processing is performed or not, and the key freezing information includes: a state identifier and a freezing time interval, wherein the state identifier is a frozen use identifier or an unfrozen identifier, and the method comprises the following steps:
generating an unlocking management instruction of a first unlocking key stored in the electronic lock according to the operation of a user, wherein the unlocking management instruction carries attribute information of the first unlocking key;
sending the unlocking management instruction to the electronic lock;
obtaining a modification result returned after the electronic lock modifies part or all of the attribute information of the first unlocking secret key stored in the electronic lock according to the attribute information in the unlocking management instruction;
and obtaining a notification sent by the electronic lock after receiving an unlocking instruction carrying the first unlocking key, wherein the notification is sent after the electronic lock finds the first unlocking key in the unlocking keys stored in the electronic lock and rejects the unlocking instruction according to the modified attribute information of the first unlocking key.
10. The utility model provides an unlocking management equipment, its characterized in that, unlocking management equipment and electronic lock communication connection, electronic lock keeps unlocking key and the attribute information of unlocking key, wherein, the attribute information includes: the key protection method includes a key valid time interval and key freezing information, wherein the key freezing information is used for indicating whether unlocking processing is performed or not, and the key freezing information includes: the unlocking management device comprises a state identifier and a freezing time interval, wherein the state identifier is a frozen use identifier or an unfrozen identifier, and the unlocking management device comprises: a management instruction generating unit, a management instruction transmitting unit, a modification result obtaining unit, and a notification obtaining unit,
the management instruction generating unit is used for generating an unlocking management instruction of a first unlocking key stored in the electronic lock according to the operation of a user, wherein the unlocking management instruction carries attribute information of the first unlocking key;
the management instruction sending unit is used for sending the unlocking management instruction to the electronic lock;
the modification result obtaining unit is used for obtaining a modification result returned after the electronic lock modifies part or all of the attribute information of the first unlocking key stored in the electronic lock according to the attribute information in the unlocking management instruction;
the notification obtaining unit is configured to obtain a notification sent by the electronic lock after receiving an unlocking instruction carrying the first unlocking key, where the notification is sent after the electronic lock finds the first unlocking key in the unlocking keys stored in the electronic lock and rejects the unlocking instruction according to the modified attribute information of the first unlocking key.
CN201811642652.XA 2018-10-31 2018-12-29 Unlocking method of electronic lock, electronic lock and unlocking management equipment Active CN111379475B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811642652.XA CN111379475B (en) 2018-12-29 2018-12-29 Unlocking method of electronic lock, electronic lock and unlocking management equipment
PCT/CN2019/114913 WO2020088623A1 (en) 2018-10-31 2019-10-31 Intelligent device control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811642652.XA CN111379475B (en) 2018-12-29 2018-12-29 Unlocking method of electronic lock, electronic lock and unlocking management equipment

Publications (2)

Publication Number Publication Date
CN111379475A CN111379475A (en) 2020-07-07
CN111379475B true CN111379475B (en) 2021-09-28

Family

ID=71216571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811642652.XA Active CN111379475B (en) 2018-10-31 2018-12-29 Unlocking method of electronic lock, electronic lock and unlocking management equipment

Country Status (1)

Country Link
CN (1) CN111379475B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115273275A (en) * 2021-04-29 2022-11-01 珠海优特电力科技股份有限公司 Lock control method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336022A (en) * 2014-08-13 2016-02-17 李凯 Novel cipher lock
CN107180467A (en) * 2017-05-11 2017-09-19 广东汇泰龙科技有限公司 A kind of network cloud lock management method and its system
CN108898725A (en) * 2018-07-25 2018-11-27 云丁智能科技(北京)有限公司 A kind of control method and device of door lock

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140051012A (en) * 2012-10-22 2014-04-30 삼성전자주식회사 Electronic key and memethods for electronic for transmitting the electronic key and thereof
CN105991776B (en) * 2016-06-29 2019-08-20 北京三快在线科技有限公司 A kind of coded lock control method, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336022A (en) * 2014-08-13 2016-02-17 李凯 Novel cipher lock
CN107180467A (en) * 2017-05-11 2017-09-19 广东汇泰龙科技有限公司 A kind of network cloud lock management method and its system
CN108898725A (en) * 2018-07-25 2018-11-27 云丁智能科技(北京)有限公司 A kind of control method and device of door lock

Also Published As

Publication number Publication date
CN111379475A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
KR101296863B1 (en) Entry authentication system using nfc door lock
EP1810093B1 (en) Actuating a security system using a wireless device
CN110009543A (en) Based on artificial intelligence community access control management method and device and system and storage medium
CN103827878B (en) Automate Password Management
CN109272606A (en) A kind of smart lock monitoring equipment, method and storage medium based on block chain
CN104809773A (en) Entrance guard control method, entrance guard control apparatus, and entrance guard system
CN110930561B (en) Control method and device of intelligent lock
US20230083819A1 (en) Access control for property management
WO2007048659A1 (en) System and method for dynamically managing badge access
CN111292454A (en) Intelligent identity access control identification system and method
CN110766850B (en) Visitor information management method, access control system, server and storage medium
CN111379475B (en) Unlocking method of electronic lock, electronic lock and unlocking management equipment
CN113012329A (en) Intelligent entrance guard identification alarm system and method
CN108307463A (en) mode switching method, system and access control system
JP6714283B1 (en) Electronic unlocking management system and program
KR101527852B1 (en) key management method and system using smartphones
CN104854827B (en) The system and method merchandised for Machine To Machine privacy and TSM Security Agent
CN110766840A (en) Access control password setting method and device
CN115798097A (en) Access right verification method, device, program product and readable storage medium
US20080282185A1 (en) Customized messages for password/passcode change events
CN112507310B (en) Building internet of things management method, device, equipment and storage medium
KR102410354B1 (en) Apparatus and method for managing a country house
CN108171084B (en) Method, apparatus, mobile terminal and the readable storage medium storing program for executing of safeguards system safety
CN114662161A (en) Electronic lock control method, system and request terminal based on block chain network
CN118233154A (en) Function locking method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100085 a521, 5th floor, block a, Huilongguan maker Plaza, 338 Huilongguan East Street, Changping District, Beijing

Patentee after: Yunding Network Technology (Beijing) Co.,Ltd.

Address before: 100085 a521, 5th floor, block a, Huilongguan maker Plaza, 338 Huilongguan East Street, Changping District, Beijing

Patentee before: YUN DING NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.