WO2019109964A1 - Electronic lock and control method, device and system thereof - Google Patents

Electronic lock and control method, device and system thereof Download PDF

Info

Publication number
WO2019109964A1
WO2019109964A1 PCT/CN2018/119438 CN2018119438W WO2019109964A1 WO 2019109964 A1 WO2019109964 A1 WO 2019109964A1 CN 2018119438 W CN2018119438 W CN 2018119438W WO 2019109964 A1 WO2019109964 A1 WO 2019109964A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic lock
instruction
lock
electronic
unlocking
Prior art date
Application number
PCT/CN2018/119438
Other languages
French (fr)
Chinese (zh)
Inventor
吕彦朋
陈彬
张东胜
Original Assignee
云丁网络技术(北京)有限公司
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
Priority claimed from CN201711273738.5A external-priority patent/CN108049721B/en
Priority claimed from CN201721677044.3U external-priority patent/CN207503302U/en
Application filed by 云丁网络技术(北京)有限公司 filed Critical 云丁网络技术(北京)有限公司
Publication of WO2019109964A1 publication Critical patent/WO2019109964A1/en

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B51/00Operating or controlling locks or other fastening devices by other non-mechanical means
    • 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

Definitions

  • the present application relates to the field of electronic lock technology, and more particularly to an electronic lock and a control method, device and system thereof.
  • the use of electronic locks still has certain defects.
  • the user can only operate the electronic lock itself to control the electronic lock, for example, by controlling the electronic lock by operating the keyboard of the electronic lock.
  • the industry's research on electronic locks is mostly smarter, the unlocking time is shorter, the temporary password is issued in a more convenient direction, but little attention is paid to how to make the temporary password issued by the administrator of the electronic lock more Quick and effective management, then, after issuing under the temporary password, if you do not want the temporary password owner to unlock for a period of time, only the temporary password in the electronic lock is deleted.
  • An electronic lock control method includes:
  • the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
  • the above method preferably, further includes:
  • the instruction for releasing the unlocking is an instruction sent by the predetermined user
  • the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  • the above method preferably, further includes:
  • the monitoring whether the electronic lock is opened indoors comprises:
  • the monitoring whether the electronic lock is opened indoors comprises:
  • the above method preferably, further includes:
  • the comparison result indicates that the stored key includes the key carried in the unlocking instruction, determining, according to the correspondence between the preset key and the identification identifier, the key corresponding to the key carried in the unlocking instruction Identifying whether the identifier is a predetermined identification identifier;
  • the electronic unlocking function of the electronic lock is restored to release the electronic lock from the unlocked state, and the electronic lock is controlled to be opened.
  • An electronic lock control device includes:
  • a first acquiring module configured to acquire an encrypted anti-locking instruction sent by the mobile communication terminal
  • control module configured to: decrypt the encrypted anti-lock instruction; determine whether the decrypted anti-lock instruction is an instruction sent by a predetermined user; and when the judgment result is that the anti-lock instruction is an instruction sent by a predetermined user, close the electronic lock
  • the electronic unlocking function causes the electronic lock to enter an anti-lock state.
  • the first obtaining module is further configured to: acquire an encrypted unlocking instruction sent by the mobile communication terminal;
  • the control module is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determination result is that the unlocking instruction is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  • the above device preferably, further comprises:
  • a monitoring module configured to monitor whether the electronic lock is opened indoors
  • the control module is further configured to: when the monitoring module detects that the electronic lock is opened indoors, restore an electronic unlocking function of the electronic lock, so that the electronic lock is unlocked.
  • An electronic lock control system includes:
  • a communication module configured to receive an encrypted anti-lock command sent by the mobile communication terminal
  • a processor configured to decrypt the encrypted anti-lock instruction; determine whether the decrypted anti-lock instruction is an instruction sent by a predetermined user; and when the judgment result is that the anti-lock instruction is an instruction sent by a predetermined user, close the electronic lock
  • the electronic unlocking function causes the electronic lock to enter an anti-lock state.
  • the communication module is further configured to receive an encrypted unlocking instruction sent by the mobile communication terminal;
  • the processor is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determined result is that the unlocked command is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  • the above system preferably, further comprises:
  • a sensing module configured to collect sensing information, where the sensing information is used to indicate whether the electronic lock is opened indoors
  • the processor is further configured to: determine, according to the sensing information, whether the electronic lock is opened indoors, and when it is determined that the electronic lock is opened indoors, restore an electronic unlocking function of the electronic lock, so that The electronic lock is unlocked.
  • the sensing module is disposed in the electronic lock
  • the mounting position of the sensing module is associated with a handle holder on an indoor side of the electronic lock
  • the sensing information collected by the sensing module changes.
  • the sensing module comprises:
  • a first sensing component configured to generate sensing information
  • a second sensing component configured to collect sensing information generated by the first sensing component
  • One of the first sensing component and the second sensing component is disposed on the handle holder, and another sensing component is disposed in the first preset area around the handle holder to ensure the When the first preset action occurs in the handle holder, the sensing information collected by the second sensing component changes.
  • the first sensing component is an infrared emitting sensor
  • the second sensing component is an infrared receiving sensor
  • the first inductive component is a magnet and the second inductive component is a reed switch.
  • the sensing module comprises:
  • a button is disposed in the second preset area around the handle holder to ensure that the sensing information collected by the button changes when the first preset action occurs in the handle holder.
  • the sensing module comprises:
  • a first sub-sensing module configured to collect first sensing information, where a mounting position of the first sub-sensing module is associated with a locking tongue of the electronic lock, or associated with a door body on which the electronic lock is mounted The first sensing information changes when the locking tongue is retracted into the electronic lock, or when the door body is opened;
  • a second sub-sensing module is configured to collect second sensing information, where a mounting position of the second sub-sensing module is associated with a mechanical unlocking mechanism of the electronic lock, and when the mechanical unlocking mechanism generates a second preset action The second sensing information changes.
  • the communication module comprises a Bluetooth module or an internet access module.
  • the processor is further configured to: obtain an unlocking instruction, compare the key carried in the unlocking instruction with the stored key; and include, when the comparison result represents the stored key, And determining, according to the correspondence between the preset key and the identification identifier, whether the identification identifier corresponding to the key carried in the unlocking instruction is a predetermined identification identifier; if the determination result is Yes, the electronic unlocking function of the electronic lock is restored to release the electronic lock from the unlocked state, and the electronic lock is controlled to be opened.
  • An electronic lock comprising an electronic lock control system as described above.
  • a storage medium comprising a stored program, wherein a device in which the storage medium is located is controlled to execute an electronic lock control method as described above while the program is running.
  • a computer program product when the computer program product is run on a terminal device, causes the terminal device to perform an electronic lock control method as described above.
  • an electronic lock and a control method, device and system thereof provided by the present application send an encrypted anti-locking instruction to an electronic lock through a mobile communication terminal, and the electronic lock decrypts the encrypted anti-locking instruction after receiving the encrypted anti-locking instruction. Only when the unlocked instruction obtained by the decryption is a control command sent by a predetermined user (such as an administrator), the electronic lock is controlled to enter an anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password, and the administrator simply moves through the application.
  • a predetermined user such as an administrator
  • the management of the electronic key can be quickly and effectively performed without deleting the electronic key or operating the electronic lock itself, simplifying the user operation and improving the convenience of the electronic lock.
  • the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
  • FIG. 1 is a flowchart of an implementation of an electronic lock control method provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of an electronic lock control device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram showing another structure of an electronic lock control device provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic lock control system provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram showing another structure of an electronic lock control system provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram showing a mounting position of a first inductive component and a second inductive component provided by an embodiment of the present application;
  • FIG. 7 is a schematic view showing another mounting position of the first sensing component and the second sensing component provided by the embodiment of the present application.
  • FIG. 8 is a schematic view showing still another mounting position of the first sensing component and the second sensing component provided by the embodiment of the present application.
  • FIG. 1 is a flowchart of an implementation of an electronic lock control method according to an embodiment of the present disclosure.
  • Step S11 Acquire an encrypted anti-locking instruction sent by the mobile communication terminal.
  • the mobile communication terminal can be a commonly used portable communication device such as a mobile phone or a tablet.
  • An application may be pre-installed in the mobile terminal, and the mobile terminal user may trigger an anti-lock command by the application, and the application encrypts the anti-lock command and sends the anti-lock command to the electronic lock.
  • an application matching the above application of the mobile terminal is installed in the electronic lock so that the two communicate based on the application.
  • the encrypted unlocking instruction may be sent by the mobile communication terminal to the electronic lock through the Bluetooth module or the Internet access module.
  • the electronic lock and the mobile communication terminal can communicate via Bluetooth.
  • the electronic lock and the mobile communication terminal communicate via the Internet.
  • the mobile communication terminal can upload the encrypted instruction (including the encrypted anti-lock instruction or the encrypted unlock instruction, etc.) to the server corresponding to the application through the Internet, and the server forwards the encrypted instruction to the Internet through the Internet.
  • the encrypted instruction including the encrypted anti-lock instruction or the encrypted unlock instruction, etc.
  • Step S12 Decrypt the encrypted unlock command.
  • Step S13 determining whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user; if the determination result is yes, executing step S14; otherwise, not responding to the anti-locking instruction, that is, not locking the electronic lock.
  • the identification identifier carried in the anti-lock instruction obtained by the decryption which is used to represent the identity of the user, it is determined whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user. Specifically, it can be determined whether the identification identifier used to represent the identity of the user carried in the decrypted anti-lock instruction is a predetermined identification identifier, and if it is a predetermined identification identifier, the decryption instruction obtained by the decryption is an instruction sent by the predetermined user; otherwise, The anti-lock instruction obtained by the decryption is not an instruction sent by the predetermined user.
  • the predetermined identification identifier may be registered in advance by the above-mentioned application by the predetermined user (for example, an administrator of the electronic lock).
  • Step S14 Turn off the electronic unlocking function of the electronic lock to make the electronic lock enter the anti-lock state.
  • the electronic unlocking manner of the electronic lock may include, but is not limited to, any one of the following modes: Bluetooth unlocking, fingerprint unlocking, password unlocking, RF card unlocking, and the like.
  • Bluetooth unlocking refers to receiving an unlock command through Bluetooth, and when the unlock command is a valid command, unlocking is performed in response to the unlock command.
  • the unlock command can be transmitted by the mobile communication terminal.
  • Fingerprint unlocking refers to collecting the fingerprint input by the user through the input panel of the electronic lock. When the collected fingerprint is a valid fingerprint, unlocking is performed.
  • Password unlocking refers to collecting the password input by the user through the input panel of the electronic lock. When the collected password is a valid password, unlocking is performed.
  • the radio frequency card unlocking refers to reading the radio frequency card information by the radio frequency card reading module of the electronic lock, and unlocking when the read information is valid information.
  • the electronic lock can only be opened from the indoor, or can be opened outdoors by a preset mechanical unlocking method, wherein the preset mechanical unlocking manner can include but is not limited to the following enumeration Any of several types: unlocked by a mechanical key, or unlocked by a mechanical code dial.
  • the electronic lock control method provided by the embodiment of the present application sends an encrypted anti-locking instruction to the electronic lock through the mobile communication terminal, and after receiving the encrypted anti-locking instruction, the electronic lock decrypts the unlocked instruction, and the unlocked instruction obtained by the decryption is a predetermined user (eg, When the control command is sent by the administrator, the electronic lock is controlled to enter the anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password.
  • the administrator can disable the electronic device by sending an anti-lock command to the electronic lock through the mobile communication terminal.
  • the key enables quick and efficient management of the electronic key, simplifies the operation of the administrator and improves the convenience of the electronic lock.
  • the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
  • information indicating that the electronic lock is in the anti-lock state may also be synchronized to the mobile communication terminal.
  • the key information in the unlocking command may be compared with the stored key information. If the stored key information includes the key information in the unlocking instruction, and the key information in the unlocking instruction is within the expiration date, the state information of whether the electronic lock is locked is obtained, and if the electronic lock is in the unlocked state, the unlocking is prohibited. Operation, if the electronic lock is not in the anti-lock state, perform the unlock operation. If the stored key information does not include the key information in the unlocking instruction, or if the stored key information includes the key information in the unlocking instruction, but is not within the validity period, it is not necessary to acquire whether the electronic lock is locked. The status information may directly return the prompt information with invalid password. In addition, the alarm information may be sent to the mobile communication terminal based on the preset identification identifier to prompt the preset user (such as the administrator) that the electronic lock is illegal. operating.
  • the unlocking instruction may be an unlocking instruction sent by the mobile communication terminal via Bluetooth or the Internet, or an unlocking instruction triggered by the electronic lock receiving the fingerprint or password input by the user through the input panel of the electronic lock, or is an electronic The lock triggers the generated unlock command and the like after reading the information in the RF card.
  • the electronic lock control method may further include:
  • the temporary key may be generated by using the application software, and the validity period of the temporary key is set.
  • the temporary key may be a password randomly generated by the application software, or may be a fingerprint collected by a fingerprint collection module of the mobile communication terminal, or may be a radio frequency card information read by a radio frequency card reading module of the mobile communication terminal. .
  • the temporary key and expiration date are then encrypted and sent to the electronic lock storage via Bluetooth or the Internet.
  • Decrypting the encrypted instruction for saving the temporary key determining whether the instruction for saving the temporary key is sent by the predetermined user based on the identification identifier carried in the instruction for saving the temporary key obtained by the decryption, and if the determination result is yes, storing the above The temporary key carried in the instruction to save the temporary key, and the expiration date of the temporary key. If the result of the determination is no, the expiration date of the temporary key and the temporary key described above is not stored.
  • the storage time of the temporary key reaches the expiration date, it indicates that the temporary key is invalid, and the invalid temporary key may also be deleted.
  • the key information in the unlocking instruction may be compared with the stored key information, if the stored key information includes the key in the unlocking instruction. The information acquires the status information of whether the electronic lock is locked. If the electronic lock is in the unlocked state, the unlocking operation is prohibited. If the electronic lock is not in the locked state, the unlocking operation is performed. If the stored key information does not include the key information in the unlocking instruction, it is not necessary to obtain the state information of whether the electronic lock is locked, and the unlocking operation can be directly prohibited. That is to say, in the embodiment of the present application, the stored key information is valid key information.
  • the electronic lock control method may further include:
  • the above encrypted unlocked instruction is decrypted.
  • the instruction for releasing the unlocking is an instruction sent by the predetermined user
  • the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  • the electronic lock When the electronic lock is unlocked, the electronic lock is in a normal locked state, that is, when the user inputs the key, if the key is correct and within the validity period, the electronic lock is opened, and if the key is incorrect or not valid, the electronic opening is prohibited. lock.
  • the electronic lock is controlled by the mobile communication terminal to release the anti-lock state.
  • the electronic lock control method may further include:
  • the electronic lock is triggered to cancel the anti-lock state by the indoor door opening operation.
  • information indicating that the electronic lock is unlocked may also be synchronized to the mobile communication terminal.
  • an implementation for monitoring whether the electronic lock is opened indoors may be:
  • the electronic lock usually includes two handle holders, one of which is connected to the handle of the room, and the other of which is connected to the handle of the outside.
  • the handle of the room is pressed down, and the pressing of the indoor handle drives the handle holder of the room to rotate.
  • the rotation of the handle seat drives the locking tongue. Retracted into the interior of the electronic lock, so that the electronic lock is opened and the door can be opened.
  • the handle seat will return to the original state, and the lock tongue will extend the electronic lock, and the door body will be locked. Therefore, when it is detected that the handle holder on the indoor side of the electronic lock rotates and meets the preset condition, the user opens the door indoors. That is to say, the first preset action is: the rotation of the handle on the indoor side that meets the preset condition occurs.
  • the operation of the handle is to press down.
  • the handle is operated by pushing or pulling.
  • the action of the handle will drive the handle of the indoor side to rotate or translate, through the electronic lock.
  • the transmission, the rotation or translation of the handle will drive the lock tongue back into the electronic lock, so that the electronic lock is opened and the door can be opened.
  • the handle is restored to its original position, and the handle seat will return to its original state, causing the lock tongue to extend the electronic lock, and the door body will be locked.
  • the first preset action is: the rotation or translation of the handle on the indoor side that meets the preset condition occurs.
  • the first preset action may be: the movement of the handle on the indoor side that meets the preset condition occurs. Whether the movement of the handle seat satisfies the preset condition can be determined by whether the change of the information sensed by the sensing module set at the specific position satisfies the preset condition.
  • one implementation of monitoring whether the electronic lock is opened indoors may be:
  • the electronic lock can only be opened outdoors by a preset mechanical unlocking method when the electronic lock is in the anti-lock state, or can only be opened indoors, when it is judged that the electronic lock is not by the preset mechanical unlocking mode When turned on, it can be determined that the electronic lock is opened indoors.
  • an implementation for monitoring whether the electronic lock is opened indoors may be:
  • the electronic lock control method provided by the present application may further include:
  • the unlocking instruction may be an unlocking instruction sent by the mobile communication terminal received by the communication module (eg, the Bluetooth module or the Internet access module), and the unlocking instruction is triggered by the user after inputting the key in the mobile communication terminal.
  • the unlock command is an unlock command generated by triggering a fingerprint input by the user through an input panel of the electronic lock.
  • the unlock command is an unlock command generated by the user inputting the password through the input panel of the electronic lock.
  • the unlock command is an unlock command generated by the RF card reading module of the electronic lock after reading the information of the RF card.
  • the comparison result indicates that the stored key includes the key carried in the unlocking instruction
  • determining whether the identification identifier corresponding to the key carried in the unlocking instruction is based on the correspondence between the preset key and the identification identifier The predetermined identification number.
  • the above identification identifier is used to characterize the user.
  • the predetermined identification identifier may be an identification identifier of the administrator.
  • the correspondence between the key and the identification identifier is stored in advance, wherein the key corresponding to the identification identifier of the administrator is different from the key corresponding to the identification identifier of the non-administrator.
  • the electronic lock is triggered to cancel the anti-lock state by an electronic unlocking operation of the administrator.
  • FIG. 2 is a schematic structural diagram of an electronic lock control apparatus according to an embodiment of the present disclosure, which may include:
  • the first obtaining module 21 is configured to obtain an encrypted anti-locking instruction sent by the mobile communication terminal.
  • the mobile communication terminal can be a commonly used portable communication device such as a mobile phone or a tablet.
  • An application may be pre-installed in the mobile terminal, and the mobile terminal user may trigger an anti-lock command by the application, and the application encrypts the anti-lock command and sends the anti-lock command to the electronic lock.
  • an application matching the above application of the mobile terminal is installed in the electronic lock so that the two communicate based on the application.
  • the encrypted unlocking instruction may be sent by the mobile communication terminal to the electronic lock via Bluetooth or the Internet.
  • the electronic lock and the mobile communication terminal can communicate via Bluetooth.
  • the electronic lock and the mobile communication terminal communicate via the Internet.
  • the mobile communication terminal can upload the encrypted instruction (including the encrypted anti-lock instruction or the encrypted unlock instruction, etc.) to the server corresponding to the application through the Internet, and the server forwards the encrypted instruction to the Internet through the Internet.
  • the encrypted instruction including the encrypted anti-lock instruction or the encrypted unlock instruction, etc.
  • the control module 22 is configured to decrypt the encrypted unlock command; determine whether the decrypted unlock command is an instruction sent by a predetermined user; and when the judgment result is that the lock command is an instruction sent by a predetermined user, the electronic lock function of the electronic lock is turned off. In order to make the electronic lock enter the anti-lock state.
  • the control module 22 can determine, according to the identification identifier carried in the decryption instruction obtained by the decryption, the identifier used to represent the identity of the user, and determine whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user. Specifically, the control module 22 may determine whether the identification identifier used to represent the identity of the user carried in the decrypted anti-lock command is a predetermined identification identifier, and if it is a predetermined identification identifier, the decryption instruction obtained by the decryption is an instruction sent by the predetermined user. Otherwise, it indicates that the decrypted instruction obtained by the decryption is not an instruction sent by the predetermined user.
  • the predetermined identification identifier may be registered in advance by the above-mentioned application by the predetermined user (for example, an administrator of the electronic lock).
  • the electronic unlocking mode of the electronic lock may include, but is not limited to, any one of the following enumerated modes: Bluetooth unlocking, fingerprint unlocking, password unlocking, RF card unlocking, and the like.
  • the electronic lock can only be opened from the indoor, or can be opened outdoors by a preset mechanical unlocking method, wherein the preset mechanical unlocking manner can include but is not limited to the following enumeration Any of several types: unlocked by a mechanical key, or unlocked by a mechanical code dial.
  • the electronic lock control device sends an encrypted anti-locking instruction to the electronic lock through the mobile communication terminal, and the electronic lock receives the encrypted anti-locking instruction and decrypts it, and only the decrypted instruction obtained by the decryption is a predetermined user (such as management)
  • the electronic lock is controlled to enter the anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password.
  • the administrator can disable the electronic key by sending an anti-lock command to the electronic lock through the mobile communication terminal. It realizes fast and effective management of the electronic key, simplifies the operation of the administrator, and improves the convenience of the electronic lock.
  • the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
  • the electronic lock control device may further include:
  • the synchronization module is configured to synchronize information indicating that the electronic lock is in an unlocked state to the mobile communication terminal after the electronic lock enters the anti-lock state.
  • the control module 22 may perform the key information in the unlock command and the stored key information. If the stored key information includes the key information in the unlocking instruction, and the key information in the unlocking instruction is within the expiration date, the state information of whether the electronic lock is locked is obtained, and if the electronic lock is in the locked state, It is forbidden to perform the unlock operation. If the electronic lock is not in the anti-lock state, the unlock operation is performed. If the stored key information does not include the key information in the unlocking instruction, or if the stored key information includes the key information in the unlocking instruction, but is not within the validity period, it is not necessary to acquire whether the electronic lock is locked. The status information may directly return the prompt information with invalid password. In addition, the alarm information may be sent to the mobile communication terminal based on the preset identification identifier to prompt the preset user (such as the administrator) that the electronic lock is illegal. operating.
  • the unlocking instruction may be an unlocking instruction sent by the mobile communication terminal via Bluetooth or the Internet, or an unlocking instruction triggered by receiving a fingerprint or a password input by the user through an input panel of the electronic lock, or reading the RF
  • the generated unlock command and the like are triggered after the information in the card.
  • the first obtaining module 21 may further acquire an instruction for saving the temporary key sent by the mobile communication terminal, where the instruction for saving the temporary key is encrypted by the application software, and the temporary key is saved.
  • the instruction In addition to carrying the temporary key, the instruction carries the identification identifier and the expiration date of the temporary key.
  • the temporary key may be generated by using the application software, and the validity period of the temporary key is set.
  • the temporary key may be a password randomly generated by the application software, or may be a fingerprint collected by a fingerprint collection module of the mobile communication terminal, or may be a radio frequency card information read by a radio frequency card reading module of the mobile communication terminal. .
  • the temporary key is then encrypted and sent to the electronic lock store via Bluetooth or the Internet.
  • the control module 22 is further configured to: decrypt the encrypted instruction for saving the temporary key, and determine, according to the identification identifier carried in the instruction for saving the temporary key obtained by the decryption, whether the instruction for saving the temporary key is sent by the predetermined user, if If the result of the determination is YES, the temporary key carried in the instruction for saving the temporary key and the expiration date of the temporary key are stored. If the result of the determination is no, the expiration date of the temporary key and the temporary key described above is not stored.
  • the control module 22 may also delete the invalid temporary key. Based on this, if the electronic lock receives the unlocking instruction carrying the key information, the control module 22 may compare the key information in the unlocking instruction with the stored key information, if the stored key information includes the unlocking instruction. The key information obtains the status information of whether the electronic lock is locked. If the electronic lock is in the unlocked state, the unlocking operation is prohibited. If the electronic lock is not in the unlocked state, the unlocking operation is performed. If the stored key information does not include the key information in the unlocking instruction, it is not necessary to obtain the state information of whether the electronic lock is locked, and the unlocking operation can be directly prohibited.
  • the stored key information is valid key information.
  • the first obtaining module 21 is further configured to obtain an encrypted unlocking instruction sent by the mobile communication terminal.
  • the control module 22 is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determining result is that the unlocking instruction is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is turned on, so that the electronic lock is unlocked.
  • the electronic lock When the electronic lock is unlocked, the electronic lock is in a normal locked state, that is, when the user inputs the key, if the key is correct and within the validity period, the electronic lock is opened, and if the key is incorrect or not valid, the electronic opening is prohibited. lock.
  • the electronic lock is controlled by the mobile communication terminal to release the anti-lock state.
  • FIG. 3 is another schematic structural diagram of an electronic lock control device according to an embodiment of the present disclosure.
  • the method may further include:
  • a monitoring module 31 configured to monitor whether the electronic lock is opened indoors
  • the control module 22 can also be used to restore the electronic unlocking function of the electronic lock when the monitoring module 31 detects that the electronic lock is opened indoors, so that the electronic lock is unlocked.
  • the electronic lock is triggered to cancel the anti-lock state by the indoor door opening operation.
  • the synchronization module may be further configured to: after the electronic lock is unlocked, synchronize information indicating that the electronic lock is unlocked to the mobile communication terminal.
  • the monitoring module 31 can include:
  • a first monitoring unit configured to monitor whether a first preset action occurs in the handle seat on the indoor side of the electronic lock
  • the first determining unit is configured to determine that the electronic lock is opened indoors when the first monitoring unit detects that the first preset action occurs in the handle holder.
  • the monitoring module 31 can include:
  • the second monitoring unit is configured to monitor whether the locking bolt of the electronic lock is retracted into the electronic lock.
  • the third monitoring unit is configured to monitor whether the electronic lock is opened by a preset mechanical unlocking manner.
  • the determining unit is configured to: when the second monitoring unit detects that the locking tongue of the electronic lock is retracted into the electronic lock, determine whether the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner.
  • a second determining unit configured to: when the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner, determining that the electronic lock is opened outdoors; when the third monitoring unit does not detect the electronic lock by a preset mechanical unlocking When the mode is turned on, it is determined that the electronic lock is opened indoors.
  • the monitoring module 31 can include:
  • a second monitoring unit configured to monitor whether the door body on which the electronic lock is installed is opened
  • a third monitoring unit configured to monitor whether the electronic lock is opened by a preset mechanical unlocking manner
  • a judging unit configured to: when the second monitoring unit detects that the door body is open, determine whether the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner;
  • a second determining unit configured to: when the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner, determining that the electronic lock is opened outdoors; when the third monitoring unit does not detect the electronic lock by a preset mechanical unlocking When the mode is turned on, it is determined that the electronic lock is opened indoors.
  • the electronic lock control apparatus provided by the present application may further include:
  • a second acquiring module configured to acquire an unlocking instruction, where the unlocking instruction carries a key
  • the comparison module is configured to compare the key carried in the unlocking instruction with the stored key
  • the judging module is configured to determine, according to the correspondence between the preset key and the identification identifier, the identifier corresponding to the key carried in the unlocking instruction, when the key stored in the unlocking instruction is included in the key stored by the comparison result Whether the identification is a predetermined identification identifier;
  • the control module is further configured to: if the judgment result of the determining module is yes, restore the electronic unlocking function of the electronic lock, so that the electronic lock is unlocked and the electronic lock is controlled to be opened; if the judgment result of the determining module is negative, the unlocking is prohibited. It is also prohibited to restore the electronic unlock function of the electronic lock.
  • FIG. 4 is a schematic structural diagram of an electronic lock control system according to an embodiment of the present disclosure, which may include:
  • the communication module 41 is configured to receive an encrypted control command sent by the mobile communication terminal.
  • the control instruction may be: an anti-lock instruction, an unlock command, an unlock command or a lock command, and the like.
  • the mobile communication terminal can be a commonly used portable communication device such as a mobile phone or a tablet.
  • An application may be pre-installed in the mobile terminal, and the mobile terminal user may trigger a generation control instruction by the application, and the application program encrypts the control instruction and sends the control command to the electronic lock.
  • an application matching the above application of the mobile terminal is installed in the electronic lock so that the two communicate based on the application.
  • the communication module 41 can be a Bluetooth module or an internet access module.
  • the electronic lock and the mobile communication terminal can communicate via Bluetooth.
  • the electronic lock and the mobile communication terminal communicate via the Internet.
  • the mobile communication terminal can upload the encrypted control command to the server corresponding to the application through the Internet, and the server forwards the encrypted control command to the electronic lock via the Internet.
  • the processor 42 is configured to decrypt the encrypted control command, and control the electronic lock in response to the decrypted control command.
  • the communication module 41 is configured to receive an encrypted anti-lock command sent by the mobile communication terminal; correspondingly,
  • the processor 42 is configured to decrypt the encrypted unlock command; determine whether the decrypted unlock command is an instruction sent by a predetermined user; and when the judgment result is an instruction sent by the predetermined user, the electronic lock function of the electronic lock is turned off. In order to make the electronic lock enter the anti-lock state.
  • the processor 42 may determine, according to the identification identifier carried in the decryption instruction obtained by the decryption, the identifier used to represent the identity of the user, and determine whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user. Specifically, the processor 42 may determine whether the identification identifier used to represent the identity of the user carried in the decrypted anti-lock command is a predetermined identification identifier, and if it is a predetermined identification identifier, the unlocking instruction obtained by the decryption is an instruction sent by the predetermined user. Otherwise, it indicates that the decrypted instruction obtained by the decryption is not an instruction sent by the predetermined user.
  • the predetermined identification identifier may be registered in advance by the above-mentioned application by the predetermined user (for example, an administrator of the electronic lock).
  • the electronic unlocking mode of the electronic lock may include, but is not limited to, any one of the following enumerated modes: Bluetooth unlocking, fingerprint unlocking, password unlocking, RF card unlocking, and the like.
  • the electronic lock can only be opened from the indoor, or can be opened outdoors by a preset mechanical unlocking method, wherein the preset mechanical unlocking manner can include but is not limited to the following enumeration Any of several types: unlocked by a mechanical key, or unlocked by a mechanical code dial.
  • the electronic lock control system provided by the present application can receive the encrypted control command sent by the mobile communication terminal through the communication module, the processor can decrypt the encrypted control command, and control the electronic lock in response to the decrypted control command. Thereby, the control of the electronic lock by the mobile communication terminal is realized, and a new way of controlling the electronic lock is provided, and the convenience of using the electronic lock is improved.
  • the encrypted communication anti-lock command is sent to the electronic lock through the mobile communication terminal, and the electronic lock receives the encrypted anti-lock command and decrypts it, and only controls the control command sent by the predetermined user (such as an administrator) when the decrypted anti-lock command is a control command sent by a predetermined user (such as an administrator)
  • the electronic lock enters the anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password.
  • the administrator can disable the electronic key by sending an anti-lock command to the electronic lock through the mobile communication terminal, thereby realizing a fast and effective electronic key. Management simplifies the operation of the administrator and improves the convenience of the electronic lock.
  • the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
  • the processor 42 may perform the key information in the unlock command and the stored key information. If the stored key information includes the key information in the unlocking instruction, and the key information in the unlocking instruction is within the expiration date, the state information of whether the electronic lock is locked is obtained, and if the electronic lock is in the locked state, It is forbidden to perform the unlock operation. If the electronic lock is not in the anti-lock state, the unlock operation is performed. If the stored key information does not include the key information in the unlocking instruction, or if the stored key information includes the key information in the unlocking instruction, but is not within the validity period, it is not necessary to acquire whether the electronic lock is locked. The status information may directly return the prompt information with invalid password. In addition, the alarm information may be sent to the mobile communication terminal based on the preset identification identifier to prompt the preset user (such as the administrator) that the electronic lock is illegal. operating.
  • the unlocking instruction may be an unlocking instruction sent by the mobile communication terminal via Bluetooth or the Internet, or an unlocking instruction triggered by the electronic lock receiving the fingerprint or password input by the user through the input panel of the electronic lock, or an electronic lock. After the information in the read RF card, etc., the generated unlock command is triggered.
  • the communication module 41 may further acquire an instruction for saving the temporary key sent by the mobile communication terminal, where the instruction for saving the temporary key is encrypted by the application software, and the temporary key is saved.
  • the command In addition to carrying the temporary key, the command carries the identification identifier and the expiration date of the temporary key.
  • the temporary key may be generated by using the application software, and the validity period of the temporary key is set.
  • the temporary key may be a password randomly generated by the application software, or may be a fingerprint collected by a fingerprint collection module of the mobile communication terminal, or may be a radio frequency card information read by a radio frequency card reading module of the mobile communication terminal. .
  • the temporary key is then encrypted and sent to the electronic lock store via Bluetooth or the Internet.
  • the processor 42 is further configured to: decrypt the encrypted instruction for saving the temporary key, and determine, according to the identification identifier carried in the instruction for saving the temporary key obtained by the decryption, whether the instruction for saving the temporary key is sent by the predetermined user, if If the result of the determination is YES, the temporary key carried in the instruction for saving the temporary key and the expiration date of the temporary key are stored. If the result of the determination is no, the expiration date of the temporary key and the temporary key described above is not stored.
  • the processor 42 may also delete the invalid temporary key. Based on this, if the electronic lock receives the unlocking instruction carrying the key information, the processor 42 may compare the key information in the unlocking instruction with the stored key information, if the stored key information includes the unlocking instruction. The key information obtains the status information of whether the electronic lock is locked. If the electronic lock is in the unlocked state, the unlocking operation is prohibited. If the electronic lock is not in the unlocked state, the unlocking operation is performed. If the stored key information does not include the key information in the unlocking instruction, it is not necessary to obtain the state information of whether the electronic lock is locked, and the unlocking operation can be directly prohibited. That is to say, in the embodiment of the present application, the stored key information is valid key information.
  • the communication module 41 is further configured to receive an encrypted unlocking command sent by the mobile communication terminal;
  • the processor 42 is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by the predetermined user; and when the determined result is that the unlocked instruction is an instruction sent by the predetermined user, Restore the electronic unlock function of the electronic lock to unlock the electronic lock.
  • the electronic lock When the electronic lock is unlocked, the electronic lock is in a normal locked state, that is, when the user inputs the key, if the key is correct and within the validity period, the electronic lock is opened, and if the key is incorrect or not valid, the electronic opening is prohibited. lock.
  • the electronic lock is controlled by the mobile communication terminal to release the anti-lock state.
  • the electronic lock control system provided by the present application may further include an induction module. Based on the embodiment shown in FIG. 4, another structure of the electronic lock control system provided by the embodiment of the present application is provided. The schematic diagram is shown in FIG. 5, and may further include:
  • the sensing module 51 is configured to collect sensing information, and the sensing information is used to indicate whether the electronic lock is opened indoors.
  • the sensing information collected by the sensing module 51 can be changed based on the change of the switching state of the electronic lock, that is, the sensing information collected by the sensing module 51 when the electronic lock is opened, and the sensing module 51 collects when the electronic lock is closed.
  • the sensing information is different.
  • the sensing module 51 can be mounted in the electronic lock, or mounted outside the electronic lock, or partially mounted in the electronic lock, and partially mounted outside the electronic lock. The specific installation location can be selected according to actual needs.
  • the processor 42 is further configured to control the electronic lock based on the sensing information collected by the sensing module 51.
  • the processor 42 may determine, according to the sensing information collected by the sensing module 51, whether the electronic lock is opened indoors, and when it is determined that the electronic lock is opened indoors, restore the electronic unlocking function of the electronic lock to enable the electronic lock Unlocked.
  • the processor 42 can determine whether the electronic lock is opened indoors according to the change of the sensing information collected by the sensing module.
  • the electronic lock is triggered to cancel the anti-lock state by the indoor door opening operation.
  • the electronic lock control system provided in this embodiment adds a sensing module, so that the processor 42 can control the electronic lock according to the sensing information, and provides a method for automatically controlling the electronic lock, thereby further improving the convenience of the electronic lock. .
  • the processor 42 is further configured to: after the electronic lock is unlocked, synchronize information indicating that the electronic lock is unlocked to the mobile communication terminal by using the communication module.
  • the sensing module 51 can be disposed in the electronic lock; specifically,
  • the mounting position of the sensing module 51 is associated with the handle holder on the indoor side of the electronic lock.
  • the sensing information collected by the sensing module 51 changes. That is to say, the change of the sensing information collected by the sensing module 51 can represent the action of the handle seat located on the indoor side of the electronic lock, and the action of the handle is caused by the action of the indoor handle, therefore,
  • the sensing information collected by the sensing module 51 can characterize whether the electronic lock is opened from the room.
  • the processor 42 determines whether the electronic lock is turned on indoors based on the sensing information
  • the processor 42 can be used to monitor the change of the sensing information collected by the sensing module 51, and the sensing information collected by the sensing module 51.
  • the change condition satisfies the preset condition, it is determined that the electronic lock is opened indoors.
  • the sensing module 51 can include:
  • a first sensing component configured to generate sensing information
  • a second sensing component configured to collect sensing information generated by the first sensing component
  • One of the first sensing component and the second sensing component is disposed on the handle holder on the indoor side, and the other sensing component is disposed in the first preset area around the handle holder to ensure indoor When the first preset action of the handle on one side occurs, the sensing information collected by the second sensing component changes.
  • the first sensing component may be an infrared emitting sensor for emitting infrared rays
  • the second sensing component is an infrared receiving sensor for receiving infrared rays emitted by the infrared emitting sensor.
  • the intensity of the infrared ray received by the second sensing component is different from the intensity of the infrared ray received by the second sensing component when the electronic lock is closed, so that when the electronic lock is opened, the second sensing component outputs a signal.
  • the strength, when the electronic lock is closed, the intensity of the signal output by the second inductive component is different.
  • the processor 42 can determine whether the electronic lock is open according to the intensity change of the signal output by the second sensing component. Specifically, the processor 42 can monitor the amount of change in the signal strength output by the second inductive component. When the amount of change in the signal strength output by the second inductive component is greater than a preset threshold, the electronic lock is determined to be turned on. Otherwise, the determination is performed. The electronic lock is not open.
  • the first sensing component may be a magnet for generating a magnetic field
  • the second sensing component is a reed switch for changing the switching state of the magnetic field under the action of the magnetic field. When the magnetic field is described, the switch state is restored.
  • some reeds are reed switches of normally open mode. When a magnet is close, the reed switch will be closed. When the magnet is far away, the reed switch will return to the normally open mode; otherwise, the reeds are normally closed. For the reed switch, the reed switch will open when there is a magnet close to it, and the reed switch will return to the normally closed mode when the magnet is far away.
  • the switch state of the reed switch is different from that of the reed switch when the electronic lock is closed.
  • the sensing information of the reed switch output is the amount of switching, which is used to characterize the switching state of the reed switch.
  • the state of the reed switch has changed, and the output of the switch has changed, indicating that the switch state of the electronic lock has changed.
  • the processor 42 can determine whether the electronic lock is opened according to a preset correspondence between the reed switch state and the electronic lock switch state.
  • the electronic lock can be opened when the reed switch is opened, and the electronic lock is closed when the reed switch is closed.
  • the electronic lock is closed when the reed switch is opened, and the electronic lock is opened when the reed switch is closed.
  • the sensing module 51 can include:
  • the button is disposed in the second preset area around the handle holder on the indoor side to ensure that the sensing information collected by the button changes when the first preset action occurs in the handle holder.
  • the sensing information collected by the button is status information of the button, and the status information is used to indicate whether the button is pressed.
  • the processor 42 can determine whether the electronic lock is opened according to the correspondence between the preset button state information and the state of the electronic lock switch.
  • the electronic lock can be opened when the button is pressed in advance, and the electronic lock is turned off when the button is not pressed.
  • the electronic lock can be turned off when the button is pressed in advance, and the electronic lock is turned on when the button is not pressed.
  • the sensing module 51 can include:
  • the first sub-sensing module is configured to collect the first sensing information, the installation position of the first sub-sensing module is associated with the locking tongue of the electronic lock, or is associated with the door body on which the electronic lock is installed; when the locking tongue is retracted The first sensing information changes within the electronic lock or when the door is opened;
  • the second sub-sensing module is configured to collect the second sensing information, and the installation position of the second sub-sensing module is associated with a preset mechanical unlocking mechanism of the electronic lock, and when the preset mechanical unlocking mechanism generates a second preset When the action is performed, the second sensing information changes.
  • the preset mechanical unlocking mechanism may be a keyhole; if the electronic lock is unlocked by the mechanical code dial, the preset mechanical unlocking mechanism may be a mechanical code dial.
  • the processor 42 determines, based on the sensing information, whether the electronic lock is opened indoors, the processor 42 may specifically be used,
  • the processor 42 monitors the change of the first sensing information and the change of the second sensing information; when the change of the first sensing information satisfies the first preset condition, determining that the electronic lock is opened, and determining the second sensing information Whether the change condition satisfies the second preset condition, and if the change of the second sensing information satisfies the second preset condition, it is determined that the electronic lock is opened in a preset mechanical unlocking manner, that is, is opened outdoors, if the second sensing information is The change condition does not satisfy the second preset condition, and it is determined that the electronic lock is opened indoors.
  • the first sub-sensing module can include:
  • a first sensing component configured to generate sensing information
  • a second sensing component configured to collect sensing information generated by the first sensing component
  • the installation position of the first sub-sensing module is associated with the locking tongue of the electronic lock
  • one of the first sensing component and the second sensing component is disposed on one end of the locking tongue located in the electronic lock, and the other sensing
  • the component is mounted in the electronic lock at a position opposite to the sensing component disposed on the bolt; or the first sensing component and the second sensing component are disposed on two sides perpendicular to the locking tongue, that is, the first sensing component and the second component
  • the connecting line of the sensing component is perpendicular or nearly perpendicular to the moving direction of the locking tongue.
  • the locking tongue When the locking tongue is retracted into the electronic lock, the locking tongue is located between the first sensing component and the second sensing component, and when the locking tongue protrudes from the electronic locking, the locking tongue The middle sensing component and the second sensing component are removed to ensure that the sensing information collected by the second sensing component changes when the locking tongue moves.
  • the second sensing component can collect the sensing information generated by the first sensing component to ensure that the sensing information collected by the second sensing component changes when the door body is opened.
  • the first sensing component may be an infrared emitting sensor for emitting infrared rays
  • the second sensing component is an infrared receiving sensor for receiving infrared rays emitted by the infrared emitting sensor.
  • the first inductive component may be a magnet for generating a magnetic field
  • the second inductive component is a reed switch for changing its own switching state under the action of the magnetic field, and returning to the switching state upon leaving the magnetic field.
  • the first sensing component and the second sensing component are installed at different positions.
  • the first sensing component and the second sensing component may move relative to each other.
  • the sensing information collected by the two sensing components changes, so that the electronic lock can be determined to be opened according to the change of the sensing information.
  • the first sub-sensing module may include:
  • the button, the sensing information collected by the button is state information of the button, and the state information is used to indicate whether the button is pressed.
  • the button can be mounted on the door frame, or mounted on the side of the door, or mounted on the end of the bolt located inside the electronic lock, as long as the electronic lock is opened or the door is opened, the state of the button can be changed.
  • the second sub-sensing module may include a third inductive component and a fourth inductive component.
  • a third sensing component configured to generate sensing information
  • a fourth sensing component configured to collect sensing information generated by the third sensing component
  • the predetermined mechanical unlocking mechanism is a locking hole
  • one of the third sensing component and the fourth sensing component is disposed on the locking hole wall, and the other sensing component is disposed in the second pre-around of the locking hole wall.
  • the sensing information collected by the fourth sensing component changes, so that the locking hole can be judged according to the change.
  • the mechanical key is unlocked. Otherwise, the instructions are not unlocked by a mechanical key.
  • the preset mechanical unlocking mechanism is a mechanical code dial
  • one of the third sensing component and the fourth sensing component is disposed on the password dial, and the other sensing component is disposed on the third preset around the password dial.
  • the sensing information collected by the fourth sensing component changes, so that the password dial can be judged according to the change.
  • the mechanical password dial is unlocked. Otherwise, the instructions are not unlocked via the mechanical code dial.
  • the password dial when the password is turned on by the mechanical password dial, the password dial is set to be multiple, and a plurality of second sub-sensing modules can be set, and each second sub-sensing module monitors a password dial, and when all the password dials are detected, When it is determined, unlock the lock by the mechanical code dial.
  • the third inductive component may be an infrared emitting sensor for emitting infrared rays
  • the fourth inductive component is an infrared receiving sensor for receiving infrared rays emitted by the infrared emitting sensor.
  • the third sensing component may be a magnet for generating a magnetic field
  • the fourth sensing component is a reed switch for changing the switching state of the magnetic field under the action of the magnetic field. When the magnetic field is described, the switch state is restored.
  • FIG. 6 is a schematic view showing a mounting position of the first inductive component 61 and the second inductive component 62 provided by the present application.
  • Electronic locks typically include a handle and a handle holder that is attached to the handle.
  • the handle base When the handle is pressed down, the handle base will rotate with the pressing of the handle. Through the transmission device in the electronic lock, the rotation of the handle will drive the lock tongue back into the electronic lock, so that the electronic lock is opened and the door is opened. Can be opened.
  • the handle seat When the door is closed, if the handle is restored to the original position, the handle seat will return to the original state, and the lock tongue will extend the electronic lock, and the door will be locked.
  • the first sensing member 61 is mounted on the handle holder on the indoor side of the electronic lock, and the second sensing member 62 is in the electronic lock.
  • the sensing information sensed by the second sensing component 62 is the strongest.
  • the handle base rotates, and the first sensing component also rotates correspondingly with the rotation of the handle holder, so that the first sensing component 61 and the second sensing component 62 Moving away from each other, the sensing information sensed by the second sensing component 62 is weakened, or the sensing information is not sensed, so that the door body can be judged to be opened.
  • FIG. 7 is a schematic diagram showing another mounting position of the first sensing component 61 and the second sensing component 62 provided by the embodiment of the present application.
  • the first inductive component 61 is mounted on one end of the bolt located inside the electronic lock, and the second inductive component 62 is fixedly mounted in the electronic lock opposite the first inductive component 61.
  • the lock tongue retracts the inside of the electronic lock, the first sensing component 61 and the second sensing component 62 are close to each other, so that the sensing information sensed by the second sensing component 62 is enhanced, and when the intensity of the sensed sensing information is increased to a certain value,
  • the door body is opened; when the lock tongue extends out of the electronic lock, the first sensing component 61 and the second sensing component 62 are away from each other, so that the sensing information sensed by the second sensing component 62 is weakened, and the intensity of the sensed information is sensed. When it is weakened to a certain value, the door is closed.
  • FIG. 8 is a schematic diagram showing still another mounting position of the first sensing component 61 and the second sensing component 62 provided by the present application.
  • the first inductive component 61 is mounted on the door body and the second inductive component 62 is mounted on the door frame.
  • the first sensing component 61 and the second sensing component 62 are close to each other; when the door body on which the electronic lock is mounted is opened, the first sensing component 61 and the second sensing component 62 are distant from each other, so that The sensing information sensed by the two sensing components 62 is weakened, or the sensing information is not sensed, so that the door body is opened.
  • the processor 42 is further configured to: obtain an unlock command, compare the key carried in the unlock command with the stored key; and include unlocking when the comparison result indicates that the stored key is included
  • the key carried in the command is based on the correspondence between the preset key and the identification identifier, it is determined whether the identification identifier corresponding to the key carried in the unlocking instruction is a predetermined identification identifier; if the determination result is yes, the electronic lock is restored.
  • the electronic unlock function enables the electronic lock to unlock the lock state and control the electronic lock to open. If the judgment result is no, the electronic lock is prohibited from being turned on, and the electronic unlocking function of the electronic lock is prohibited from being restored.
  • the unlocking instruction may be an unlocking instruction sent by the mobile communication terminal received by the communication module (eg, the Bluetooth module or the Internet access module), and the unlocking instruction is triggered by the user after inputting the key in the mobile communication terminal.
  • the unlock command is an unlock command generated by triggering a fingerprint input by the user through an input panel of the electronic lock.
  • the unlock command is an unlock command generated by the user inputting the password through the input panel of the electronic lock.
  • the unlock command is an unlock command generated by the RF card reading module of the electronic lock after reading the information of the RF card.
  • the electronic lock is triggered to cancel the anti-lock state by an electronic unlocking operation of the administrator.
  • the application also provides an electronic lock having an electronic lock control system as disclosed in the above embodiments.
  • the electronic lock control device includes a processor and a memory, and the first acquisition module and the control module are stored as a program unit in a memory, and the processor executes the program unit stored in the memory to implement The corresponding function.
  • the processor contains a kernel, and the kernel removes the corresponding program unit from the memory.
  • the kernel can be set to one or more, and the electronic lock can be controlled by adjusting the kernel parameters.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory (flash RAM), the memory including at least one Memory chip.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Embodiments of the present invention provide a storage medium on which a program is stored, and the electronic lock control method is implemented when the program is executed by a processor.
  • the embodiment of the invention provides a processor for running a program, wherein the electronic lock control method is executed when the program is running.
  • An embodiment of the present invention provides a device, including a processor, a memory, and a program stored on the memory and executable on the processor.
  • the processor implements the following steps when executing the program:
  • the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
  • the instruction for releasing the unlocking is an instruction sent by the predetermined user
  • the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  • the devices in this document can be servers, PCs, PADs, mobile phones, and the like.
  • the present application also provides a computer program product, when executed on a data processing device, adapted to perform a process of initializing the method steps as follows:
  • the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
  • the instruction for releasing the unlocking is an instruction sent by the predetermined user
  • the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can 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, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, 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 disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can 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, etc.) including computer usable program code.

Landscapes

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

Abstract

An electronic lock and a control method, device and system thereof. An encrypted counter-lock instruction is sent to an electronic lock by means of a mobile communication terminal; and after receiving the encrypted counter-lock instruction, the electronic lock decrypts the encrypted counter-lock instruction; only when the decrypted counter-lock instruction is sent by a preset user, the electronic lock is controlled to enter a counter-locking state, and the electronic lock cannot be opened by using an electronic unlocking method such as a password. By means of the method, as long as an administrator sends a counter-lock instruction to the electronic lock through the mobile communication terminal, an electronic key can be rapidly and effectively managed, the operations of the administrator are simplified, and the convenience of the electronic lock is improved. The counter-lock instruction sent by the mobile communication terminal to the electronic lock is an encrypted counter-lock instruction, thereby improving the security of the electronic lock.

Description

电子锁及其控制方法、装置及系统Electronic lock and control method, device and system thereof
本申请要求于2017年12月06日提交中国专利局、申请号为201711273738.5、发明创造名称为“电子锁及其控制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application entitled "Electronic lock and its control method, device and system" submitted to the Chinese Patent Office on December 06, 2017, application number: 201711273738.5, the entire contents of which are incorporated by reference. In this application.
本申请要求于2017年12月06日提交中国专利局、申请号为201721677044.3、发明创造名称为“电子锁及其控制系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. PCT Application No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No .
技术领域Technical field
本申请涉及电子锁技术领域,更具体地说,涉及一种电子锁及其控制方法、装置及系统。The present application relates to the field of electronic lock technology, and more particularly to an electronic lock and a control method, device and system thereof.
背景技术Background technique
随着电子技术的迅速发展,以及人们生活水平的提高,电子锁越来越多的进入了人们的生活中,给人们的生活带来了一定的便利。With the rapid development of electronic technology and the improvement of people's living standards, electronic locks have increasingly entered people's lives, bringing convenience to people's lives.
然而,在目前,电子锁的使用还是存在一定缺陷的。例如,用户只能对电子锁本身进行操作从而实现对电子锁的控制,比如,通过操作电子锁的键盘对电子锁进行控制等。再例如,业界对电子锁的研究大多向着开锁方式更加智能,开锁时间更短,临时密码下发更加便利的方向发展,却很少关注如何让电子锁的管理员对下发出去的临时密码更加快速有效的管理,那么,在临时密码下发出去后,若一段时间内不想让临时密码拥有者开锁,只有删除电子锁内的临时密码这一种操作方式。However, at present, the use of electronic locks still has certain defects. For example, the user can only operate the electronic lock itself to control the electronic lock, for example, by controlling the electronic lock by operating the keyboard of the electronic lock. For example, the industry's research on electronic locks is mostly smarter, the unlocking time is shorter, the temporary password is issued in a more convenient direction, but little attention is paid to how to make the temporary password issued by the administrator of the electronic lock more Quick and effective management, then, after issuing under the temporary password, if you do not want the temporary password owner to unlock for a period of time, only the temporary password in the electronic lock is deleted.
可见,目前对电子锁的控制方式比较单一,便利性较差。It can be seen that the current control method for the electronic lock is relatively simple and the convenience is poor.
发明内容Summary of the invention
鉴于上述问题,提出了本申请以便提供一种克服上述问题或者至少部分地解决上述问题的电子锁及其控制方法、装置及系统,方案如下:In view of the above problems, the present application has been made in order to provide an electronic lock and a control method, apparatus and system thereof that overcome the above problems or at least partially solve the above problems, and the solution is as follows:
一种电子锁控制方法,包括:An electronic lock control method includes:
获取移动通信终端发送的加密的反锁指令;Obtaining an encrypted anti-lock instruction sent by the mobile communication terminal;
对所述加密的反锁指令进行解密;Decrypting the encrypted anti-lock instruction;
判断解密得到的反锁指令是否为预定用户发送的指令;Determining whether the decrypted instruction obtained by the decryption is an instruction sent by a predetermined user;
当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功 能,以使所述电子锁进入反锁状态。When the judgment result is that the anti-lock command is an instruction sent by a predetermined user, the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
上述方法,优选的,还包括:The above method, preferably, further includes:
获取所述移动通信终端发送的加密的解除反锁的指令;Obtaining an encrypted unlocking instruction sent by the mobile communication terminal;
对所述加密的解除反锁的指令进行解密;Decrypting the encrypted unlocked instruction;
判断解密得到的解除反锁的指令是否为预定用户发送的指令;Determining whether the decrypted unlocked instruction is an instruction sent by a predetermined user;
当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When the judgment result is that the instruction for releasing the unlocking is an instruction sent by the predetermined user, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
上述方法,优选的,还包括:The above method, preferably, further includes:
监测所述电子锁是否在室内被打开;Monitoring whether the electronic lock is opened indoors;
当监测到所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When it is detected that the electronic lock is opened indoors, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
上述方法,优选的,所述监测所述电子锁是否在室内被打开,包括:In the above method, preferably, the monitoring whether the electronic lock is opened indoors comprises:
监测所述电子锁内位于室内一侧的执手座是否发生第一预置动作;Monitoring whether a first preset action occurs in the handle seat on the indoor side of the electronic lock;
当所述执手座发生第一预置动作时,确定所述电子锁在室内被打开。When the first preset action occurs in the handle holder, it is determined that the electronic lock is opened indoors.
上述方法,优选的,所述监测所述电子锁是否在室内被打开,包括:In the above method, preferably, the monitoring whether the electronic lock is opened indoors comprises:
监测所述电子锁的锁舌是否收回到所述电子锁内,或者,监测安装所述电子锁的门体是否打开;Monitoring whether the lock tongue of the electronic lock is retracted into the electronic lock, or monitoring whether the door body on which the electronic lock is installed is opened;
当监测到所述电子锁的锁舌收回到所述电子锁内,或者,所述门体打开时,判断所述电子锁是否是通过预设的机械开锁方式打开;When it is detected that the locking tongue of the electronic lock is retracted into the electronic lock, or when the door body is opened, it is determined whether the electronic lock is opened by a preset mechanical unlocking manner;
当判断结果为所述电子锁不是通过预设的机械开锁方式打开时,确定所述电子锁在室内被打开。When the result of the determination is that the electronic lock is not opened by a predetermined mechanical unlocking mode, it is determined that the electronic lock is opened indoors.
上述方法,优选的,还包括:The above method, preferably, further includes:
获取开锁指令,所述开锁指令中携带有密钥;Obtaining an unlocking instruction, where the unlocking instruction carries a key;
将所述开锁指令中携带的密钥与存储的密钥进行比对;Comparing the key carried in the unlocking instruction with the stored key;
当比对结果表征所述存储的密钥中包括所述开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与所述开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;When the comparison result indicates that the stored key includes the key carried in the unlocking instruction, determining, according to the correspondence between the preset key and the identification identifier, the key corresponding to the key carried in the unlocking instruction Identifying whether the identifier is a predetermined identification identifier;
若判断结果为是,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态, 并控制所述电子锁打开。If the result of the determination is yes, the electronic unlocking function of the electronic lock is restored to release the electronic lock from the unlocked state, and the electronic lock is controlled to be opened.
一种电子锁控制装置,包括:An electronic lock control device includes:
第一获取模块,用于获取移动通信终端发送的加密的反锁指令;a first acquiring module, configured to acquire an encrypted anti-locking instruction sent by the mobile communication terminal;
控制模块,用于对所述加密的反锁指令进行解密;判断解密得到的反锁指令是否为预定用户发送的指令;当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。a control module, configured to: decrypt the encrypted anti-lock instruction; determine whether the decrypted anti-lock instruction is an instruction sent by a predetermined user; and when the judgment result is that the anti-lock instruction is an instruction sent by a predetermined user, close the electronic lock The electronic unlocking function causes the electronic lock to enter an anti-lock state.
上述装置,优选的,所述第一获取模块还用于,获取所述移动通信终端发送的加密的解除反锁的指令;Preferably, the first obtaining module is further configured to: acquire an encrypted unlocking instruction sent by the mobile communication terminal;
所述控制模块还用于,对所述加密的解除反锁的指令进行解密;判断解密得到的解除反锁的指令是否为预定用户发送的指令;当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The control module is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determination result is that the unlocking instruction is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
上述装置,优选的,还包括:The above device, preferably, further comprises:
监测模块,用于监测所述电子锁是否在室内被打开;a monitoring module, configured to monitor whether the electronic lock is opened indoors;
所述控制模块还用于,当所述监测模块监测到所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The control module is further configured to: when the monitoring module detects that the electronic lock is opened indoors, restore an electronic unlocking function of the electronic lock, so that the electronic lock is unlocked.
一种电子锁控制系统,包括:An electronic lock control system includes:
通信模组,用于接收移动通信终端发送的加密的反锁指令;a communication module, configured to receive an encrypted anti-lock command sent by the mobile communication terminal;
处理器,用于对所述加密的反锁指令进行解密;判断解密得到的反锁指令是否为预定用户发送的指令;当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。a processor, configured to decrypt the encrypted anti-lock instruction; determine whether the decrypted anti-lock instruction is an instruction sent by a predetermined user; and when the judgment result is that the anti-lock instruction is an instruction sent by a predetermined user, close the electronic lock The electronic unlocking function causes the electronic lock to enter an anti-lock state.
上述系统,优选的,所述通信模组还用于,接收所述移动通信终端发送的加密的解除反锁的指令;In the above system, preferably, the communication module is further configured to receive an encrypted unlocking instruction sent by the mobile communication terminal;
所述处理器还用于,对所述加密的解除反锁的指令进行解密;判断解密得到的解除反锁的指令是否为预定用户发送的指令;当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The processor is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determined result is that the unlocked command is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
上述系统,优选的,还包括:The above system, preferably, further comprises:
感应模组,用于采集感应信息,所述感应信息用于表征所述电子锁是否在室内被打开;a sensing module, configured to collect sensing information, where the sensing information is used to indicate whether the electronic lock is opened indoors;
所述处理器还用于,基于所述感应信息判断所述电子锁是否在室内被打开,当判断出 所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The processor is further configured to: determine, according to the sensing information, whether the electronic lock is opened indoors, and when it is determined that the electronic lock is opened indoors, restore an electronic unlocking function of the electronic lock, so that The electronic lock is unlocked.
上述系统,优选的,所述感应模组设置于所述电子锁内;In the above system, preferably, the sensing module is disposed in the electronic lock;
所述感应模组的安装位置与所述电子锁中位于室内一侧的执手座相关联;The mounting position of the sensing module is associated with a handle holder on an indoor side of the electronic lock;
当所述执手座发生第一预置动作时,所述感应模组采集的感应信息发生变化。When the first preset action occurs in the handle holder, the sensing information collected by the sensing module changes.
上述系统,优选的,所述感应模组包括:In the above system, preferably, the sensing module comprises:
第一感应部件,用于生成感应信息;a first sensing component, configured to generate sensing information;
第二感应部件,用于采集所述第一感应部件生成的感应信息;a second sensing component, configured to collect sensing information generated by the first sensing component;
所述第一感应部件和第二感应部件中,其中一个感应部件设置于所述执手座上,另一个感应部件设置于所述执手座周围的第一预置区域内,以保证所述执手座发生第一预置动作时,所述第二感应部件采集的感应信息发生变化。One of the first sensing component and the second sensing component is disposed on the handle holder, and another sensing component is disposed in the first preset area around the handle holder to ensure the When the first preset action occurs in the handle holder, the sensing information collected by the second sensing component changes.
上述系统,优选的,所述第一感应部件为红外发射传感器,所述第二感应部件为红外接收传感器。In the above system, preferably, the first sensing component is an infrared emitting sensor, and the second sensing component is an infrared receiving sensor.
上述系统,优选的,所述第一感应部件为磁铁,所述第二感应部件为干簧管。In the above system, preferably, the first inductive component is a magnet and the second inductive component is a reed switch.
上述系统,优选的,所述感应模组包括:In the above system, preferably, the sensing module comprises:
按键,所述按键设置于所述执手座周围的第二预置区域内,以保证所述执手座发生第一预置动作时,所述按键采集的感应信息发生变化。a button is disposed in the second preset area around the handle holder to ensure that the sensing information collected by the button changes when the first preset action occurs in the handle holder.
上述系统,优选的,所述感应模组包括:In the above system, preferably, the sensing module comprises:
第一子感应模组,用于采集第一感应信息,所述第一子感应模组的安装位置与所述电子锁的锁舌相关联,或者,与安装所述电子锁的门体相关联;当所述锁舌收回到所述电子锁内,或者,所述门体被打开时,所述第一感应信息发生变化;a first sub-sensing module, configured to collect first sensing information, where a mounting position of the first sub-sensing module is associated with a locking tongue of the electronic lock, or associated with a door body on which the electronic lock is mounted The first sensing information changes when the locking tongue is retracted into the electronic lock, or when the door body is opened;
第二子感应模组,用于采集第二感应信息,所述第二子感应模组的安装位置与所述电子锁的机械开锁机构相关联,当所述机械开锁机构发生第二预置动作时,所述第二感应信息发生变化。a second sub-sensing module is configured to collect second sensing information, where a mounting position of the second sub-sensing module is associated with a mechanical unlocking mechanism of the electronic lock, and when the mechanical unlocking mechanism generates a second preset action The second sensing information changes.
上述系统,优选的,所述通信模组包括蓝牙模块,或者,互联网接入模块。In the above system, preferably, the communication module comprises a Bluetooth module or an internet access module.
上述系统,优选的,所述处理器还用于,获取开锁指令,将所述开锁指令中携带的密钥与存储的密钥进行比对;当比对结果表征所述存储的密钥中包括所述开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与所述开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;若判断结果为是,恢复所述电子锁的电子开锁功能, 以使所述电子锁解除反锁状态,并控制所述电子锁打开。In the above system, preferably, the processor is further configured to: obtain an unlocking instruction, compare the key carried in the unlocking instruction with the stored key; and include, when the comparison result represents the stored key, And determining, according to the correspondence between the preset key and the identification identifier, whether the identification identifier corresponding to the key carried in the unlocking instruction is a predetermined identification identifier; if the determination result is Yes, the electronic unlocking function of the electronic lock is restored to release the electronic lock from the unlocked state, and the electronic lock is controlled to be opened.
一种电子锁,包括如上所述的电子锁控制系统。An electronic lock comprising an electronic lock control system as described above.
一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行如上所述的电子锁控制方法。A storage medium comprising a stored program, wherein a device in which the storage medium is located is controlled to execute an electronic lock control method as described above while the program is running.
一种计算机程序产品,所述计算机程序产品在终端设备上运行时,使得所述终端设备执行如上所述的电子锁控制方法。A computer program product, when the computer program product is run on a terminal device, causes the terminal device to perform an electronic lock control method as described above.
借由上述技术方案,本申请提供的一种电子锁及其控制方法、装置及系统,通过移动通信终端向电子锁发送加密的反锁指令,电子锁接收到加密的反锁指令后,对其进行解密,只有在解密得到的反锁指令为预定用户(如管理员)发送的控制指令时,控制电子锁进入反锁状态,从而电子锁无法通过密码等电子开锁方式打开,通过本申请,管理员只要通过移动通信终端向电子锁发送反锁指令,就可以实现快速有效的对电子钥匙的管理,而无需删除电子钥匙,也无需对电子锁本身进行操作,简化了用户操作,提高了电子锁的便利性。而且,移动通信终端向电子锁发送的反锁指令为加密的反锁指令,因此,提高了电子锁的安全性。According to the above technical solution, an electronic lock and a control method, device and system thereof provided by the present application send an encrypted anti-locking instruction to an electronic lock through a mobile communication terminal, and the electronic lock decrypts the encrypted anti-locking instruction after receiving the encrypted anti-locking instruction. Only when the unlocked instruction obtained by the decryption is a control command sent by a predetermined user (such as an administrator), the electronic lock is controlled to enter an anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password, and the administrator simply moves through the application. When the communication terminal sends an anti-lock command to the electronic lock, the management of the electronic key can be quickly and effectively performed without deleting the electronic key or operating the electronic lock itself, simplifying the user operation and improving the convenience of the electronic lock. Moreover, the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solutions of the present application, and the technical means of the present application can be more clearly understood, and the above and other objects, features and advantages of the present application can be more clearly understood. The following is a specific embodiment of the present application.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can obtain other drawings according to the provided drawings without any creative work.
图1示出了本申请实施例提供的电子锁控制方法的一种实现流程图;FIG. 1 is a flowchart of an implementation of an electronic lock control method provided by an embodiment of the present application;
图2示出了本申请实施例提供的电子锁控制装置的一种结构示意图;2 is a schematic structural diagram of an electronic lock control device provided by an embodiment of the present application;
图3示出了本申请实施例提供的电子锁控制装置的另一种结构示意图;FIG. 3 is a schematic diagram showing another structure of an electronic lock control device provided by an embodiment of the present application;
图4示出了本申请实施例提供的电子锁控制系统的一种结构示意图;FIG. 4 is a schematic structural diagram of an electronic lock control system provided by an embodiment of the present application;
图5示出了本申请实施例提供的电子锁控制系统的另一种结构示意图;FIG. 5 is a schematic diagram showing another structure of an electronic lock control system provided by an embodiment of the present application;
图6示出了本申请实施例提供的第一感应部件和第二感应部件的一种安装位置示意图;FIG. 6 is a schematic diagram showing a mounting position of a first inductive component and a second inductive component provided by an embodiment of the present application;
图7示出了本申请实施例提供的第一感应部件和第二感应部件的另一种安装位置示意图;FIG. 7 is a schematic view showing another mounting position of the first sensing component and the second sensing component provided by the embodiment of the present application;
图8示出了本申请实施例提供的第一感应部件和第二感应部件的又一种安装位置示意图。FIG. 8 is a schematic view showing still another mounting position of the first sensing component and the second sensing component provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
请参阅图1,图1为本申请实施例提供的电子锁控制方法的一种实现流程图可以包括:Referring to FIG. 1 , FIG. 1 is a flowchart of an implementation of an electronic lock control method according to an embodiment of the present disclosure.
步骤S11:获取移动通信终端发送的加密的反锁指令。Step S11: Acquire an encrypted anti-locking instruction sent by the mobile communication terminal.
移动通信终端可以为手机或平板电脑等常用的便携式通信设备。The mobile communication terminal can be a commonly used portable communication device such as a mobile phone or a tablet.
移动终端内可以预先安装有应用程序(Application,App),移动终端用户可以通过该应用程序触发生成反锁指令,由该应用程序对反锁指令加密后向电子锁发送。相应的,电子锁中安装有与移动终端的上述应用程序匹配的应用程序,以便于二者基于应用程序通信。An application (Application, App) may be pre-installed in the mobile terminal, and the mobile terminal user may trigger an anti-lock command by the application, and the application encrypts the anti-lock command and sends the anti-lock command to the electronic lock. Correspondingly, an application matching the above application of the mobile terminal is installed in the electronic lock so that the two communicate based on the application.
上述加密的反锁指令可以是移动通信终端通过蓝牙模块,或者,互联网接入模块向电子锁发送的。The encrypted unlocking instruction may be sent by the mobile communication terminal to the electronic lock through the Bluetooth module or the Internet access module.
也就是说,电子锁和移动通信终端可以通过蓝牙进行通信。That is to say, the electronic lock and the mobile communication terminal can communicate via Bluetooth.
或者,电子锁和移动通信终端通过互联网进行通信。基于此通信方式,移动通信终端可以通过互联网将加密的指令(包括加密的反锁指令,或者,加密的开锁指令等)上传至上述应用程序对应的服务器,由该服务器通过互联网将加密的指令转发给电子锁。Alternatively, the electronic lock and the mobile communication terminal communicate via the Internet. Based on the communication method, the mobile communication terminal can upload the encrypted instruction (including the encrypted anti-lock instruction or the encrypted unlock instruction, etc.) to the server corresponding to the application through the Internet, and the server forwards the encrypted instruction to the Internet through the Internet. Electronic locks.
步骤S12:对上述加密的反锁指令进行解密。Step S12: Decrypt the encrypted unlock command.
步骤S13:判断解密得到的反锁指令是否为预定用户发送的指令;若判断结果为是,则执行步骤S14,否则,不响应所述反锁指令,即不对电子锁进行反锁。Step S13: determining whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user; if the determination result is yes, executing step S14; otherwise, not responding to the anti-locking instruction, that is, not locking the electronic lock.
可选的,可以根据解密得到的反锁指令中携带的,用于表征用户身份的识别标识,判断解密得到的反锁指令是否为预定用户发送的指令。具体的,可以判断解密得到的反锁指令中携带的,用于表征用户身份的识别标识是否为预定的识别标识,若是预定的识别标识, 说明解密得到的反锁指令为预定用户发送的指令,否则,说明解密得到的反锁指令不是预定用户发送的指令。Optionally, according to the identification identifier carried in the anti-lock instruction obtained by the decryption, which is used to represent the identity of the user, it is determined whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user. Specifically, it can be determined whether the identification identifier used to represent the identity of the user carried in the decrypted anti-lock instruction is a predetermined identification identifier, and if it is a predetermined identification identifier, the decryption instruction obtained by the decryption is an instruction sent by the predetermined user; otherwise, The anti-lock instruction obtained by the decryption is not an instruction sent by the predetermined user.
上述预定的识别标识可以由上述预定用户(如,电子锁的管理员)预先通过上述应用程序注册得到。The predetermined identification identifier may be registered in advance by the above-mentioned application by the predetermined user (for example, an administrator of the electronic lock).
步骤S14:关闭电子锁的电子开锁功能,以使电子锁进入反锁状态。Step S14: Turn off the electronic unlocking function of the electronic lock to make the electronic lock enter the anti-lock state.
本申请实施例中,电子锁的电子开锁方式可以包括但不限于以下列举的任意一种方式:蓝牙开锁、指纹开锁、密码开锁、射频卡开锁等等。In the embodiment of the present application, the electronic unlocking manner of the electronic lock may include, but is not limited to, any one of the following modes: Bluetooth unlocking, fingerprint unlocking, password unlocking, RF card unlocking, and the like.
蓝牙开锁是指通过蓝牙接收开锁指令,当该开锁指令为有效指令时,响应于该开锁指令进行开锁。该开锁指令可以由上述移动通信终端发送。Bluetooth unlocking refers to receiving an unlock command through Bluetooth, and when the unlock command is a valid command, unlocking is performed in response to the unlock command. The unlock command can be transmitted by the mobile communication terminal.
指纹开锁是指通过电子锁的输入面板采集用户输入的指纹,当采集的指纹为有效指纹时,进行开锁。Fingerprint unlocking refers to collecting the fingerprint input by the user through the input panel of the electronic lock. When the collected fingerprint is a valid fingerprint, unlocking is performed.
密码开锁是指通过电子锁的输入面板采集用户输入的密码,当采集的密码为有效密码时,进行开锁。Password unlocking refers to collecting the password input by the user through the input panel of the electronic lock. When the collected password is a valid password, unlocking is performed.
射频卡开锁是指电子锁的射频卡读取模块读取射频卡的信息,当读取的信息为有效信息时,进行开锁。The radio frequency card unlocking refers to reading the radio frequency card information by the radio frequency card reading module of the electronic lock, and unlocking when the read information is valid information.
当关闭电子锁的电子开锁功能时,该电子锁只能从室内打开,或者,只能通过预设的机械开锁方式在室外打开,其中,该预设的机械开锁方式可以包括但不限于以下列举的几种中的任意一种:通过机械钥匙开锁,或者,通过机械密码转盘开锁等。When the electronic unlocking function of the electronic lock is turned off, the electronic lock can only be opened from the indoor, or can be opened outdoors by a preset mechanical unlocking method, wherein the preset mechanical unlocking manner can include but is not limited to the following enumeration Any of several types: unlocked by a mechanical key, or unlocked by a mechanical code dial.
本申请实施例提供的电子锁控制方法,通过移动通信终端向电子锁发送加密的反锁指令,电子锁接收到加密的反锁指令后,对其进行解密,在解密得到的反锁指令为预定用户(如管理员)发送的控制指令时,控制电子锁进入反锁状态,从而电子锁无法通过密码等电子开锁方式打开,通过本申请,管理员只要通过移动通信终端向电子锁发送反锁指令,就可以禁用电子钥匙,实现快速有效的对电子钥匙的管理,简化了管理员的操作,提高了电子锁的便利性。而且,移动通信终端向电子锁发送的反锁指令为加密的反锁指令,因此,提高了电子锁的安全性。The electronic lock control method provided by the embodiment of the present application sends an encrypted anti-locking instruction to the electronic lock through the mobile communication terminal, and after receiving the encrypted anti-locking instruction, the electronic lock decrypts the unlocked instruction, and the unlocked instruction obtained by the decryption is a predetermined user (eg, When the control command is sent by the administrator, the electronic lock is controlled to enter the anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password. With the present application, the administrator can disable the electronic device by sending an anti-lock command to the electronic lock through the mobile communication terminal. The key enables quick and efficient management of the electronic key, simplifies the operation of the administrator and improves the convenience of the electronic lock. Moreover, the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
在一可选的实施例中,控制电子锁处于反锁状态后,还可以将表征电子锁处于反锁状态的信息同步到上述移动通信终端。In an optional embodiment, after the control electronic lock is in the anti-lock state, information indicating that the electronic lock is in the anti-lock state may also be synchronized to the mobile communication terminal.
在一可选的实施例中,在电子锁进入反锁状态后,若电子锁接收到携带密钥信息的开锁指令,则可以将开锁指令中的密钥信息与存储的密钥信息进行比对,若存储的密钥信息中包括开锁指令中的密钥信息,且开锁指令中的密钥信息在有效期限内,则获取电子锁是否反锁的状态信息,若电子锁为反锁状态,则禁止执行开锁操作,若电子锁未处于反锁状态,则执行开锁操作。若存储的密钥信息中不包括开锁指令中的密钥信息,或者,虽然存储的密钥信息中包括开锁指令中的密钥信息,但不在有效期限内,则不必再获取电子锁是否反锁的状态信息,可以直接返回密码无效的提示信息即可,除此之外,还可以基于上述预设的识别标识向移动通信终端发送报警信息,以提示预设用户(如管理员)电子锁被非法操作。In an optional embodiment, after the electronic lock enters the anti-lock state, if the electronic lock receives the unlocking instruction carrying the key information, the key information in the unlocking command may be compared with the stored key information. If the stored key information includes the key information in the unlocking instruction, and the key information in the unlocking instruction is within the expiration date, the state information of whether the electronic lock is locked is obtained, and if the electronic lock is in the unlocked state, the unlocking is prohibited. Operation, if the electronic lock is not in the anti-lock state, perform the unlock operation. If the stored key information does not include the key information in the unlocking instruction, or if the stored key information includes the key information in the unlocking instruction, but is not within the validity period, it is not necessary to acquire whether the electronic lock is locked. The status information may directly return the prompt information with invalid password. In addition, the alarm information may be sent to the mobile communication terminal based on the preset identification identifier to prompt the preset user (such as the administrator) that the electronic lock is illegal. operating.
其中,上述开锁指令可以是由移动通信终端通过蓝牙或者互联网发送的开锁指令,或者,是电子锁通过电子锁的输入面板接收到用户输入的指纹或密码后触发生成的开锁指令,或者,是电子锁读取射频卡中的信息后触发生成的开锁指令等。The unlocking instruction may be an unlocking instruction sent by the mobile communication terminal via Bluetooth or the Internet, or an unlocking instruction triggered by the electronic lock receiving the fingerprint or password input by the user through the input panel of the electronic lock, or is an electronic The lock triggers the generated unlock command and the like after reading the information in the RF card.
在一可选的实施例中,上述电子锁控制方法还可以包括:In an optional embodiment, the electronic lock control method may further include:
获取上述移动通信终端发送的保存临时密钥的指令,该保存临时密钥的指令由上述应用软件加密后发送,该保存临时密钥的指令中除了携带临时密钥外,还携带识别标识以及临时密钥的有效期限。Acquiring an instruction for saving the temporary key sent by the mobile communication terminal, where the instruction for saving the temporary key is encrypted by the application software, and the instruction for saving the temporary key carries the identification identifier and the temporary The expiration date of the key.
本申请实施例中,预定用户在移动通信终端上通过上述预定识别标识登录上述应用软件后,还可以通过上述应用软件生成临时密钥,并设置该临时密钥的有效期限。该临时密钥可以是应用软件随机生成的密码,或者,可以是通过移动通信终端的指纹采集模块采集的指纹,或者,可以是通过移动通信终端的射频卡读取模块读取的射频卡的信息。然后将临时密钥及有效期限加密后通过蓝牙或互联网发送给电子锁存储。In the embodiment of the present application, after the predetermined user logs in to the application software by using the predetermined identification identifier on the mobile communication terminal, the temporary key may be generated by using the application software, and the validity period of the temporary key is set. The temporary key may be a password randomly generated by the application software, or may be a fingerprint collected by a fingerprint collection module of the mobile communication terminal, or may be a radio frequency card information read by a radio frequency card reading module of the mobile communication terminal. . The temporary key and expiration date are then encrypted and sent to the electronic lock storage via Bluetooth or the Internet.
对加密的保存临时密钥的指令进行解密,基于解密得到的保存临时密钥的指令中携带的识别标识判断该保存临时密钥的指令是否由预定用户发送,若判断结果为是,则存储上述保存临时密钥的指令中携带的临时密钥,以及临时密钥的有效期限。若判断结果为否,则不会存储上述临时密钥及临时密钥的有效期限。Decrypting the encrypted instruction for saving the temporary key, determining whether the instruction for saving the temporary key is sent by the predetermined user based on the identification identifier carried in the instruction for saving the temporary key obtained by the decryption, and if the determination result is yes, storing the above The temporary key carried in the instruction to save the temporary key, and the expiration date of the temporary key. If the result of the determination is no, the expiration date of the temporary key and the temporary key described above is not stored.
进一步的,当临时密钥的存储时间达到上述有效期限时,说明临时密钥失效了,还可以删除该失效的临时密钥。基于此,若电子锁接收到携带密钥信息的开锁指令,则可以将 开锁指令中的密钥信息与存储的密钥信息进行比对,若存储的密钥信息中包括开锁指令中的密钥信息,则获取电子锁是否反锁的状态信息,若电子锁为反锁状态,则禁止执行开锁操作,若电子锁未处于反锁状态,则执行开锁操作。若存储的密钥信息中不包括开锁指令中的密钥信息,则不必再获取电子锁是否反锁的状态信息,可以直接禁止执行开锁操作即可。也就是说,本申请实施例中,存储的密钥信息都是有效的密钥信息。Further, when the storage time of the temporary key reaches the expiration date, it indicates that the temporary key is invalid, and the invalid temporary key may also be deleted. Based on this, if the electronic lock receives the unlocking instruction carrying the key information, the key information in the unlocking instruction may be compared with the stored key information, if the stored key information includes the key in the unlocking instruction. The information acquires the status information of whether the electronic lock is locked. If the electronic lock is in the unlocked state, the unlocking operation is prohibited. If the electronic lock is not in the locked state, the unlocking operation is performed. If the stored key information does not include the key information in the unlocking instruction, it is not necessary to obtain the state information of whether the electronic lock is locked, and the unlocking operation can be directly prohibited. That is to say, in the embodiment of the present application, the stored key information is valid key information.
在一可选的实施例中,在电子锁进入反锁状态后,上述电子锁控制方法还可以包括:In an optional embodiment, after the electronic lock enters the anti-lock state, the electronic lock control method may further include:
获取移动通信终端发送的加密的解除反锁的指令。Obtain an encrypted unlocking instruction sent by the mobile communication terminal.
对上述加密的解除反锁的指令进行解密。The above encrypted unlocked instruction is decrypted.
判断解密得到的解除反锁的指令是否为预定用户发送的指令。It is judged whether the decrypted unlocked instruction obtained by the decryption is an instruction sent by a predetermined user.
当判断结果为上述解除反锁的指令为预定用户发送的指令时,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态。When the judgment result is that the instruction for releasing the unlocking is an instruction sent by the predetermined user, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
当电子锁解除反锁状态时,电子锁处于正常锁定状态,即当用户输入密钥时,若密钥正确且在有效期内,则打开电子锁,若密钥错误或不在有效期内,则禁止打开电子锁。When the electronic lock is unlocked, the electronic lock is in a normal locked state, that is, when the user inputs the key, if the key is correct and within the validity period, the electronic lock is opened, and if the key is incorrect or not valid, the electronic opening is prohibited. lock.
本申请实施例中,通过移动通信终端控制电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is controlled by the mobile communication terminal to release the anti-lock state.
在另一可选的实施例中,在电子锁进入反锁状态后,上述电子锁控制方法还可以包括:In another optional embodiment, after the electronic lock enters the anti-lock state, the electronic lock control method may further include:
监测电子锁是否在室内被打开;Monitor whether the electronic lock is opened indoors;
当监测到电子锁在室内被打开时,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态。When it is detected that the electronic lock is opened indoors, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
本申请实施例中,通过室内开门操作触发电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is triggered to cancel the anti-lock state by the indoor door opening operation.
可选的,在解除反锁状态后,还可以将表征电子锁解除反锁状态的信息同步至上述移动通信终端。Optionally, after the unlocking state is released, information indicating that the electronic lock is unlocked may also be synchronized to the mobile communication terminal.
在一可选的实施例中,监测电子锁是否在室内被打开的一种实现方式可以为:In an alternative embodiment, an implementation for monitoring whether the electronic lock is opened indoors may be:
监测电子锁内位于室内一侧的执手座是否发生第一预置动作;Monitoring whether the first preset action occurs in the handle seat on the indoor side of the electronic lock;
当监测到上述执手座发生第一预置动作时,确定电子锁在室内被打开。When it is detected that the first preset action of the above-mentioned handle holder occurs, it is determined that the electronic lock is opened indoors.
电子锁中通常包括两个执手座,其中一个执手座与室内的把手连接,另一个执手座与室外的把手连接。The electronic lock usually includes two handle holders, one of which is connected to the handle of the room, and the other of which is connected to the handle of the outside.
以室内开门为例,当用户在室内开门时,将室内的把手下压,室内把手下压会带动室 内的执手座转动,通过电子锁内的传动装置,执手座的转动会带动锁舌收回到电子锁内部,使得电子锁打开,门体也就可以开了。同理,当门体关上时,若把手恢复原位置,执手座也会恢复原始状态,带动锁舌伸出电子锁,门体就被锁住了。因此,当监测到电子锁中位于室内一侧的执手座转动,且满足预设条件时,说明用户在室内开门了。也就是说,第一预置动作为:室内一侧的执手座发生满足预设条件的转动。Taking the indoor door opening as an example, when the user opens the door indoors, the handle of the room is pressed down, and the pressing of the indoor handle drives the handle holder of the room to rotate. Through the transmission device in the electronic lock, the rotation of the handle seat drives the locking tongue. Retracted into the interior of the electronic lock, so that the electronic lock is opened and the door can be opened. In the same way, when the door is closed, if the handle is restored to the original position, the handle seat will return to the original state, and the lock tongue will extend the electronic lock, and the door body will be locked. Therefore, when it is detected that the handle holder on the indoor side of the electronic lock rotates and meets the preset condition, the user opens the door indoors. That is to say, the first preset action is: the rotation of the handle on the indoor side that meets the preset condition occurs.
上述示例中,在开门时,把手的操作方式是下压。在另一示例中,把手的操作方式是推或拉,以拉把手开门为例,当用户在室内拉把手时,把手的动作会带动室内一侧的执手座转动或者平移,通过电子锁内的传动装置,执手座的转动或者平移会带动锁舌收回到电子锁内部,使得电子锁打开,门体也就可以打开了。同理,当门关上时,把手恢复原位置,执手座也会恢复原始状态,带动锁舌伸出电子锁,门体就被锁住了。因此,当监测到电子锁中位于室内一侧的执手座运动,且满足预设条件时,说明用户在室内开门了。也就是说,第一预置动作为:室内一侧的执手座发生满足预设条件的转动或者平移。In the above example, when the door is opened, the operation of the handle is to press down. In another example, the handle is operated by pushing or pulling. To pull the handle to open the door, when the user pulls the handle indoors, the action of the handle will drive the handle of the indoor side to rotate or translate, through the electronic lock. The transmission, the rotation or translation of the handle will drive the lock tongue back into the electronic lock, so that the electronic lock is opened and the door can be opened. In the same way, when the door is closed, the handle is restored to its original position, and the handle seat will return to its original state, causing the lock tongue to extend the electronic lock, and the door body will be locked. Therefore, when the movement of the handle on the indoor side of the electronic lock is monitored and the preset condition is met, the user opens the door indoors. That is to say, the first preset action is: the rotation or translation of the handle on the indoor side that meets the preset condition occurs.
综上,第一预置动作可以为:室内一侧的执手座发生满足预设条件的运动。执手座是否发生满足预设条件的运动可以通过在特定位置设置的感应模组感应到的信息的变化情况是否满足预置条件确定。In summary, the first preset action may be: the movement of the handle on the indoor side that meets the preset condition occurs. Whether the movement of the handle seat satisfies the preset condition can be determined by whether the change of the information sensed by the sensing module set at the specific position satisfies the preset condition.
在另一可选的实施例中,监测电子锁是否在室内被打开的一种实现方式可以为:In another alternative embodiment, one implementation of monitoring whether the electronic lock is opened indoors may be:
监测电子锁的锁舌是否收回到电子锁内。Monitor if the lock of the electronic lock is retracted into the electronic lock.
当监测到电子锁的锁舌收回到电子锁内时,判断电子锁是否是通过预设的机械开锁方式打开;When it is detected that the lock tongue of the electronic lock is retracted into the electronic lock, it is determined whether the electronic lock is opened by a preset mechanical unlocking manner;
当判断结果为电子锁是通过预设的机械开锁方式打开时,确定电子锁在室外被打开;当判断结果为电子锁不是通过预设的机械开锁方式打开时,确定电子锁在室内被打开。When the judgment result is that the electronic lock is opened by the preset mechanical unlocking mode, it is determined that the electronic lock is opened outdoors; when the judgment result is that the electronic lock is not opened by the preset mechanical unlocking mode, it is determined that the electronic lock is opened indoors.
由于当电子锁处于反锁状态时,电子锁只能通过预设的机械开锁方式在室外被打开,或者,只能在室内被打开,因此,当判断出电子锁不是通过预设的机械开锁方式被打开时,可以确定电子锁是被在室内打开。Since the electronic lock can only be opened outdoors by a preset mechanical unlocking method when the electronic lock is in the anti-lock state, or can only be opened indoors, when it is judged that the electronic lock is not by the preset mechanical unlocking mode When turned on, it can be determined that the electronic lock is opened indoors.
本申请实施例中,通过监测锁舌的动作判断电子锁是否被打开,通过监测电子锁是否通过预设的机械开锁方式被打开判断电子锁是否在室内被打开。In the embodiment of the present application, it is judged whether the electronic lock is opened by monitoring the action of the lock tongue, and whether the electronic lock is opened indoors by monitoring whether the electronic lock is opened by a preset mechanical unlocking manner.
在又一可选的实施例中,监测电子锁是否在室内被打开的一种实现方式可以为:In yet another alternative embodiment, an implementation for monitoring whether the electronic lock is opened indoors may be:
监测安装电子锁的门体是否打开;Monitor whether the door body on which the electronic lock is installed is open;
当监测到门体打开时,判断电子锁是否是通过预设的机械开锁方式打开;When it is detected that the door is opened, it is judged whether the electronic lock is opened by a preset mechanical unlocking manner;
当判断结果为电子锁是通过预设的机械开锁方式打开时,确定电子锁在室外被打开;当判断结果为电子锁不是通过预设的机械开锁方式打开时,确定电子锁在室内被打开。When the judgment result is that the electronic lock is opened by the preset mechanical unlocking mode, it is determined that the electronic lock is opened outdoors; when the judgment result is that the electronic lock is not opened by the preset mechanical unlocking mode, it is determined that the electronic lock is opened indoors.
本申请实施例中,通过监测门体的动作判断电子锁是否被打开,通过监测电子锁是否通过预设的机械开锁方式被打开判断电子锁是否在室内被打开。In the embodiment of the present application, it is judged whether the electronic lock is opened by monitoring the action of the door body, and whether the electronic lock is opened indoors by monitoring whether the electronic lock is opened by a preset mechanical unlocking manner.
在一可选的实施例中,本申请提供的电子锁控制方法还可以包括:In an optional embodiment, the electronic lock control method provided by the present application may further include:
获取开锁指令,该开锁指令中携带有密钥。Obtain an unlock command, which carries a key.
该开锁指令可以是通过通信模组(如,蓝牙模块,或,互联网接入模块)接收到的移动通信终端发送的开锁指令,该开锁指令由用户在移动通信终端输入密钥后触发生成。或者,开锁指令是通过电子锁的输入面板采集用户输入的指纹后触发生成的开锁指令。或者,开锁指令是通过电子锁的输入面板采集用户输入的密码后触发生成的开锁指令。或者,开锁指令是电子锁的射频卡读取模块读取射频卡的信息后触发生成的开锁指令。The unlocking instruction may be an unlocking instruction sent by the mobile communication terminal received by the communication module (eg, the Bluetooth module or the Internet access module), and the unlocking instruction is triggered by the user after inputting the key in the mobile communication terminal. Alternatively, the unlock command is an unlock command generated by triggering a fingerprint input by the user through an input panel of the electronic lock. Alternatively, the unlock command is an unlock command generated by the user inputting the password through the input panel of the electronic lock. Alternatively, the unlock command is an unlock command generated by the RF card reading module of the electronic lock after reading the information of the RF card.
将开锁指令中携带的密钥与存储的密钥进行比对;Comparing the key carried in the unlock command with the stored key;
当比对结果表征存储的密钥中包括开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与所述开锁指令中携带的密钥对应的识别标识是否为预定的识别标识。When the comparison result indicates that the stored key includes the key carried in the unlocking instruction, determining whether the identification identifier corresponding to the key carried in the unlocking instruction is based on the correspondence between the preset key and the identification identifier The predetermined identification number.
上述识别标识用于表征用户身份。该预定的识别标识可以为管理员的识别标识。本申请实施例中,预先存储密钥与识别标识的对应关系,其中,管理员的识别标识对应的密钥与非管理员的识别标识对应的密钥不同。The above identification identifier is used to characterize the user. The predetermined identification identifier may be an identification identifier of the administrator. In the embodiment of the present application, the correspondence between the key and the identification identifier is stored in advance, wherein the key corresponding to the identification identifier of the administrator is different from the key corresponding to the identification identifier of the non-administrator.
若判断结果为是,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态,并控制电子锁打开。If the judgment result is yes, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked and the electronic lock is controlled to be opened.
若判断结果为否,则禁止开锁,且禁止恢复电子锁的电子开锁功能。If the judgment result is no, the unlocking is prohibited, and the electronic unlocking function of the electronic lock is prohibited from being restored.
本申请实施例中,通过管理员的一次电子开锁操作触发电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is triggered to cancel the anti-lock state by an electronic unlocking operation of the administrator.
与方法实施例相对应,本申请还提供一种电子锁控制装置。请参阅图2,图2为本申请实施例提供的电子锁控制装置的一种结构示意图,可以包括:Corresponding to the method embodiment, the present application also provides an electronic lock control device. Referring to FIG. 2, FIG. 2 is a schematic structural diagram of an electronic lock control apparatus according to an embodiment of the present disclosure, which may include:
第一获取模块21和控制模块22;其中,a first acquisition module 21 and a control module 22; wherein
第一获取模块21用于获取移动通信终端发送的加密的反锁指令。The first obtaining module 21 is configured to obtain an encrypted anti-locking instruction sent by the mobile communication terminal.
移动通信终端可以为手机或平板电脑等常用的便携式通信设备。The mobile communication terminal can be a commonly used portable communication device such as a mobile phone or a tablet.
移动终端内可以预先安装有应用程序(Application,App),移动终端用户可以通过该应用程序触发生成反锁指令,由该应用程序对反锁指令加密后向电子锁发送。相应的,电子锁中安装有与移动终端的上述应用程序匹配的应用程序,以便于二者基于应用程序通信。An application (Application, App) may be pre-installed in the mobile terminal, and the mobile terminal user may trigger an anti-lock command by the application, and the application encrypts the anti-lock command and sends the anti-lock command to the electronic lock. Correspondingly, an application matching the above application of the mobile terminal is installed in the electronic lock so that the two communicate based on the application.
上述加密的反锁指令可以是移动通信终端通过蓝牙,或者,互联网发送给电子锁的。The encrypted unlocking instruction may be sent by the mobile communication terminal to the electronic lock via Bluetooth or the Internet.
也就是说,电子锁和移动通信终端可以通过蓝牙进行通信。That is to say, the electronic lock and the mobile communication terminal can communicate via Bluetooth.
或者,电子锁和移动通信终端通过互联网进行通信。基于此通信方式,移动通信终端可以通过互联网将加密的指令(包括加密的反锁指令,或者,加密的开锁指令等)上传至上述应用程序对应的服务器,由该服务器通过互联网将加密的指令转发给电子锁。Alternatively, the electronic lock and the mobile communication terminal communicate via the Internet. Based on the communication method, the mobile communication terminal can upload the encrypted instruction (including the encrypted anti-lock instruction or the encrypted unlock instruction, etc.) to the server corresponding to the application through the Internet, and the server forwards the encrypted instruction to the Internet through the Internet. Electronic locks.
控制模块22用于对上述加密的反锁指令进行解密;判断解密得到的反锁指令是否为预定用户发送的指令;当判断结果为上述反锁指令为预定用户发送的指令时,关闭电子锁的电子开锁功能,以使电子锁进入反锁状态。The control module 22 is configured to decrypt the encrypted unlock command; determine whether the decrypted unlock command is an instruction sent by a predetermined user; and when the judgment result is that the lock command is an instruction sent by a predetermined user, the electronic lock function of the electronic lock is turned off. In order to make the electronic lock enter the anti-lock state.
控制模块22可以根据解密得到的反锁指令中携带的,用于表征用户身份的识别标识,判断解密得到的反锁指令是否为预定用户发送的指令。具体的,控制模块22可以判断解密得到的反锁指令中携带的,用于表征用户身份的识别标识是否为预定的识别标识,若是预定的识别标识,说明解密得到的反锁指令为预定用户发送的指令,否则,说明解密得到的反锁指令不是预定用户发送的指令。The control module 22 can determine, according to the identification identifier carried in the decryption instruction obtained by the decryption, the identifier used to represent the identity of the user, and determine whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user. Specifically, the control module 22 may determine whether the identification identifier used to represent the identity of the user carried in the decrypted anti-lock command is a predetermined identification identifier, and if it is a predetermined identification identifier, the decryption instruction obtained by the decryption is an instruction sent by the predetermined user. Otherwise, it indicates that the decrypted instruction obtained by the decryption is not an instruction sent by the predetermined user.
上述预定的识别标识可以由上述预定用户(如,电子锁的管理员)预先通过上述应用程序注册得到。The predetermined identification identifier may be registered in advance by the above-mentioned application by the predetermined user (for example, an administrator of the electronic lock).
电子锁的电子开锁方式可以包括但不限于以下列举的任意一种方式:蓝牙开锁、指纹开锁、密码开锁、射频卡开锁等等。The electronic unlocking mode of the electronic lock may include, but is not limited to, any one of the following enumerated modes: Bluetooth unlocking, fingerprint unlocking, password unlocking, RF card unlocking, and the like.
当关闭电子锁的电子开锁功能时,该电子锁只能从室内打开,或者,只能通过预设的机械开锁方式在室外打开,其中,该预设的机械开锁方式可以包括但不限于以下列举的几种中的任意一种:通过机械钥匙开锁,或者,通过机械密码转盘开锁等。When the electronic unlocking function of the electronic lock is turned off, the electronic lock can only be opened from the indoor, or can be opened outdoors by a preset mechanical unlocking method, wherein the preset mechanical unlocking manner can include but is not limited to the following enumeration Any of several types: unlocked by a mechanical key, or unlocked by a mechanical code dial.
本申请提供的电子锁控制装置,通过移动通信终端向电子锁发送加密的反锁指令,电子锁接收到加密的反锁指令后,对其进行解密,只有在解密得到的反锁指令为预定用户(如管理员)发送的控制指令时,控制电子锁进入反锁状态,从而电子锁无法通过密码等电子 开锁方式打开,通过本申请,管理员只要通过移动通信终端向电子锁发送反锁指令,就可以禁用电子钥匙,实现快速有效的对电子钥匙的管理,简化了管理员的操作,提高了电子锁的便利性。而且,移动通信终端向电子锁发送的反锁指令为加密的反锁指令,因此,提高了电子锁的安全性。The electronic lock control device provided by the present application sends an encrypted anti-locking instruction to the electronic lock through the mobile communication terminal, and the electronic lock receives the encrypted anti-locking instruction and decrypts it, and only the decrypted instruction obtained by the decryption is a predetermined user (such as management) When the control command is sent, the electronic lock is controlled to enter the anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password. With the present application, the administrator can disable the electronic key by sending an anti-lock command to the electronic lock through the mobile communication terminal. It realizes fast and effective management of the electronic key, simplifies the operation of the administrator, and improves the convenience of the electronic lock. Moreover, the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
在一可选的实施例中,上述电子锁控制装置还可以包括:In an optional embodiment, the electronic lock control device may further include:
同步模块,用于在电子锁进入反锁状态后,将表征电子锁处于反锁状态的信息同步到上述移动通信终端。The synchronization module is configured to synchronize information indicating that the electronic lock is in an unlocked state to the mobile communication terminal after the electronic lock enters the anti-lock state.
在一可选的实施例中,在电子锁进入反锁状态后,若电子锁接收到携带密钥信息的开锁指令,则控制模块22可以将开锁指令中的密钥信息与存储的密钥信息进行比对,若存储的密钥信息中包括开锁指令中的密钥信息,且开锁指令中的密钥信息在有效期限内,则获取电子锁是否反锁的状态信息,若电子锁为反锁状态,则禁止执行开锁操作,若电子锁未处于反锁状态,则执行开锁操作。若存储的密钥信息中不包括开锁指令中的密钥信息,或者,虽然存储的密钥信息中包括开锁指令中的密钥信息,但不在有效期限内,则不必再获取电子锁是否反锁的状态信息,可以直接返回密码无效的提示信息即可,除此之外,还可以基于上述预设的识别标识向移动通信终端发送报警信息,以提示预设用户(如管理员)电子锁被非法操作。In an optional embodiment, after the electronic lock enters the anti-lock state, if the electronic lock receives the unlock command carrying the key information, the control module 22 may perform the key information in the unlock command and the stored key information. If the stored key information includes the key information in the unlocking instruction, and the key information in the unlocking instruction is within the expiration date, the state information of whether the electronic lock is locked is obtained, and if the electronic lock is in the locked state, It is forbidden to perform the unlock operation. If the electronic lock is not in the anti-lock state, the unlock operation is performed. If the stored key information does not include the key information in the unlocking instruction, or if the stored key information includes the key information in the unlocking instruction, but is not within the validity period, it is not necessary to acquire whether the electronic lock is locked. The status information may directly return the prompt information with invalid password. In addition, the alarm information may be sent to the mobile communication terminal based on the preset identification identifier to prompt the preset user (such as the administrator) that the electronic lock is illegal. operating.
其中,上述开锁指令可以是由移动通信终端通过蓝牙或者互联网发送的开锁指令,或者,是通过电子锁的输入面板接收到用户输入的指纹或密码后触发生成的开锁指令,或者,是读取射频卡中的信息后触发生成的开锁指令等。The unlocking instruction may be an unlocking instruction sent by the mobile communication terminal via Bluetooth or the Internet, or an unlocking instruction triggered by receiving a fingerprint or a password input by the user through an input panel of the electronic lock, or reading the RF The generated unlock command and the like are triggered after the information in the card.
在一可选的实施例中,第一获取模块21还可以获取上述移动通信终端发送的保存临时密钥的指令,该保存临时密钥的指令由上述应用软件加密后发送,该保存临时密钥的指令中除了携带临时密钥外,还携带识别标识以及临时密钥的有效期限。In an optional embodiment, the first obtaining module 21 may further acquire an instruction for saving the temporary key sent by the mobile communication terminal, where the instruction for saving the temporary key is encrypted by the application software, and the temporary key is saved. In addition to carrying the temporary key, the instruction carries the identification identifier and the expiration date of the temporary key.
本申请实施例中,预定用户在移动通信终端上通过上述预定识别标识登录上述应用软件后,还可以通过上述应用软件生成临时密钥,并设置该临时密钥的有效期限。该临时密钥可以是应用软件随机生成的密码,或者,可以是通过移动通信终端的指纹采集模块采集的指纹,或者,可以是通过移动通信终端的射频卡读取模块读取的射频卡的信息。然后将临时密钥加密后通过蓝牙或互联网发送给电子锁存储。In the embodiment of the present application, after the predetermined user logs in to the application software by using the predetermined identification identifier on the mobile communication terminal, the temporary key may be generated by using the application software, and the validity period of the temporary key is set. The temporary key may be a password randomly generated by the application software, or may be a fingerprint collected by a fingerprint collection module of the mobile communication terminal, or may be a radio frequency card information read by a radio frequency card reading module of the mobile communication terminal. . The temporary key is then encrypted and sent to the electronic lock store via Bluetooth or the Internet.
控制模块22还可以用于,对加密的保存临时密钥的指令进行解密,基于解密得到的 保存临时密钥的指令中携带的识别标识判断该保存临时密钥的指令是否由预定用户发送,若判断结果为是,则存储上述保存临时密钥的指令中携带的临时密钥,以及临时密钥的有效期限。若判断结果为否,则不会存储上述临时密钥及临时密钥的有效期限。The control module 22 is further configured to: decrypt the encrypted instruction for saving the temporary key, and determine, according to the identification identifier carried in the instruction for saving the temporary key obtained by the decryption, whether the instruction for saving the temporary key is sent by the predetermined user, if If the result of the determination is YES, the temporary key carried in the instruction for saving the temporary key and the expiration date of the temporary key are stored. If the result of the determination is no, the expiration date of the temporary key and the temporary key described above is not stored.
进一步的,当临时密钥的存储时间达到上述有效期限时,说明临时密钥失效了,控制模块22还可以删除该失效的临时密钥。基于此,若电子锁接收到携带密钥信息的开锁指令,则控制模块22可以将开锁指令中的密钥信息与存储的密钥信息进行比对,若存储的密钥信息中包括开锁指令中的密钥信息,则获取电子锁是否反锁的状态信息,若电子锁为反锁状态,则禁止执行开锁操作,若电子锁未处于反锁状态,则执行开锁操作。若存储的密钥信息中不包括开锁指令中的密钥信息,则不必再获取电子锁是否反锁的状态信息,可以直接禁止执行开锁操作即可。Further, when the storage time of the temporary key reaches the expiration date, it indicates that the temporary key is invalid, and the control module 22 may also delete the invalid temporary key. Based on this, if the electronic lock receives the unlocking instruction carrying the key information, the control module 22 may compare the key information in the unlocking instruction with the stored key information, if the stored key information includes the unlocking instruction. The key information obtains the status information of whether the electronic lock is locked. If the electronic lock is in the unlocked state, the unlocking operation is prohibited. If the electronic lock is not in the unlocked state, the unlocking operation is performed. If the stored key information does not include the key information in the unlocking instruction, it is not necessary to obtain the state information of whether the electronic lock is locked, and the unlocking operation can be directly prohibited.
也就是说,本申请实施例中,存储的密钥信息都是有效的密钥信息。That is to say, in the embodiment of the present application, the stored key information is valid key information.
在一可选的实施例中,第一获取模块21还可以用于,获取移动通信终端发送的加密的解除反锁的指令。In an optional embodiment, the first obtaining module 21 is further configured to obtain an encrypted unlocking instruction sent by the mobile communication terminal.
控制模块22还可以用于,对所述加密的解除反锁的指令进行解密;判断解密得到的解除反锁的指令是否为预定用户发送的指令;当判断结果为所述解除反锁的指令为预定用户发送的指令时,开启所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The control module 22 is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determining result is that the unlocking instruction is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is turned on, so that the electronic lock is unlocked.
当电子锁解除反锁状态时,电子锁处于正常锁定状态,即当用户输入密钥时,若密钥正确且在有效期内,则打开电子锁,若密钥错误或不在有效期内,则禁止打开电子锁。When the electronic lock is unlocked, the electronic lock is in a normal locked state, that is, when the user inputs the key, if the key is correct and within the validity period, the electronic lock is opened, and if the key is incorrect or not valid, the electronic opening is prohibited. lock.
本申请实施例中,通过移动通信终端控制电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is controlled by the mobile communication terminal to release the anti-lock state.
请参阅图3,图3为本申请实施例提供的电子锁控制装置的另一种结构示意图,在图2所示实施例的基础上,还可以包括:Referring to FIG. 3, FIG. 3 is another schematic structural diagram of an electronic lock control device according to an embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, the method may further include:
监测模块31,用于监测电子锁是否在室内被打开;a monitoring module 31, configured to monitor whether the electronic lock is opened indoors;
控制模块22还可以用于,当监测模块31监测到电子锁在室内被打开时,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态。The control module 22 can also be used to restore the electronic unlocking function of the electronic lock when the monitoring module 31 detects that the electronic lock is opened indoors, so that the electronic lock is unlocked.
本申请实施例中,通过室内开门操作触发电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is triggered to cancel the anti-lock state by the indoor door opening operation.
可选的,上述同步模块还可以用于,在电子锁解除反锁状态后,将表征电子锁解除反锁状态的信息同步至上述移动通信终端。Optionally, the synchronization module may be further configured to: after the electronic lock is unlocked, synchronize information indicating that the electronic lock is unlocked to the mobile communication terminal.
在一可选的实施例中,监测模块31可以包括:In an optional embodiment, the monitoring module 31 can include:
第一监测单元,用于监测电子锁内位于室内一侧的执手座是否发生第一预置动作;a first monitoring unit, configured to monitor whether a first preset action occurs in the handle seat on the indoor side of the electronic lock;
第一确定单元,用于当第一监测单元监测到执手座发生第一预置动作时,确定电子锁在室内被打开。The first determining unit is configured to determine that the electronic lock is opened indoors when the first monitoring unit detects that the first preset action occurs in the handle holder.
在另一可选的实施例中,监测模块31可以包括:In another optional embodiment, the monitoring module 31 can include:
第二监测单元,用于监测电子锁的锁舌是否收回到电子锁内。The second monitoring unit is configured to monitor whether the locking bolt of the electronic lock is retracted into the electronic lock.
第三监测单元,用于监测电子锁是否是通过预设的机械开锁方式打开。The third monitoring unit is configured to monitor whether the electronic lock is opened by a preset mechanical unlocking manner.
判断单元,用于当所述第二监测单元监测到所述电子锁的锁舌收回到所述电子锁内时,判断第三监测单元是否监测到电子锁通过预设的机械开锁方式打开。The determining unit is configured to: when the second monitoring unit detects that the locking tongue of the electronic lock is retracted into the electronic lock, determine whether the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner.
第二确定单元,用于当第三监测单元监测到电子锁通过预设的机械开锁方式打开时,确定电子锁在室外被打开;当第三监测单元未监测到电子锁通过预设的机械开锁方式打开时,确定电子锁在室内被打开。a second determining unit, configured to: when the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner, determining that the electronic lock is opened outdoors; when the third monitoring unit does not detect the electronic lock by a preset mechanical unlocking When the mode is turned on, it is determined that the electronic lock is opened indoors.
在另一可选的实施例中,监测模块31可以包括:In another optional embodiment, the monitoring module 31 can include:
第二监测单元,用于监测安装所述电子锁的门体是否打开;a second monitoring unit, configured to monitor whether the door body on which the electronic lock is installed is opened;
第三监测单元,用于监测所述电子锁是否是通过预设的机械开锁方式打开;a third monitoring unit, configured to monitor whether the electronic lock is opened by a preset mechanical unlocking manner;
判断单元,用于当所述第二监测单元监测到门体打开时,判断第三监测单元是否监测到电子锁通过预设的机械开锁方式打开;a judging unit, configured to: when the second monitoring unit detects that the door body is open, determine whether the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner;
第二确定单元,用于当第三监测单元监测到电子锁通过预设的机械开锁方式打开时,确定电子锁在室外被打开;当第三监测单元未监测到电子锁通过预设的机械开锁方式打开时,确定电子锁在室内被打开。a second determining unit, configured to: when the third monitoring unit detects that the electronic lock is opened by a preset mechanical unlocking manner, determining that the electronic lock is opened outdoors; when the third monitoring unit does not detect the electronic lock by a preset mechanical unlocking When the mode is turned on, it is determined that the electronic lock is opened indoors.
在一可选的实施例中,本申请提供的电子锁控制装置还可以包括:In an optional embodiment, the electronic lock control apparatus provided by the present application may further include:
第二获取模块,用于获取开锁指令,该开锁指令中携带有密钥;a second acquiring module, configured to acquire an unlocking instruction, where the unlocking instruction carries a key;
比对模块,用于将开锁指令中携带的密钥与存储的密钥进行比对;The comparison module is configured to compare the key carried in the unlocking instruction with the stored key;
判断模块,用于当比对结果表征存储的密钥中包括开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;The judging module is configured to determine, according to the correspondence between the preset key and the identification identifier, the identifier corresponding to the key carried in the unlocking instruction, when the key stored in the unlocking instruction is included in the key stored by the comparison result Whether the identification is a predetermined identification identifier;
控制模块还用于,若判断模块的判断结果为是,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态,并控制电子锁打开;若判断模块的判断结果为否,则禁止开锁,且禁止恢复电子锁的电子开锁功能。The control module is further configured to: if the judgment result of the determining module is yes, restore the electronic unlocking function of the electronic lock, so that the electronic lock is unlocked and the electronic lock is controlled to be opened; if the judgment result of the determining module is negative, the unlocking is prohibited. It is also prohibited to restore the electronic unlock function of the electronic lock.
本申请实施例还提供一种电子锁控制系统。请参阅图4,为本申请实施例提供的电子锁控制系统的一种结构示意图,可以包括:The embodiment of the present application also provides an electronic lock control system. FIG. 4 is a schematic structural diagram of an electronic lock control system according to an embodiment of the present disclosure, which may include:
通信模组41,用于接收移动通信终端发送的加密的控制指令。举例来说,该控制指令可以为:反锁指令、开锁指令、解除反锁指令或锁指令等等。The communication module 41 is configured to receive an encrypted control command sent by the mobile communication terminal. For example, the control instruction may be: an anti-lock instruction, an unlock command, an unlock command or a lock command, and the like.
移动通信终端可以为手机或平板电脑等常用的便携式通信设备。The mobile communication terminal can be a commonly used portable communication device such as a mobile phone or a tablet.
移动终端内可以预先安装有应用程序(Application,App),移动终端用户可以通过该应用程序触发生成控制指令,由该应用程序对控制指令加密后向电子锁发送。相应的,电子锁中安装有与移动终端的上述应用程序匹配的应用程序,以便于二者基于应用程序通信。An application (Application, App) may be pre-installed in the mobile terminal, and the mobile terminal user may trigger a generation control instruction by the application, and the application program encrypts the control instruction and sends the control command to the electronic lock. Correspondingly, an application matching the above application of the mobile terminal is installed in the electronic lock so that the two communicate based on the application.
通信模组41可以为蓝牙模块,或者,互联网接入模块。The communication module 41 can be a Bluetooth module or an internet access module.
也就是说,电子锁和移动通信终端可以通过蓝牙进行通信。That is to say, the electronic lock and the mobile communication terminal can communicate via Bluetooth.
或者,电子锁和移动通信终端通过互联网进行通信。基于此通信方式,移动通信终端可以通过互联网将加密的控制指令上传至上述应用程序对应的服务器,由该服务器通过互联网将加密的控制指令转发给电子锁。Alternatively, the electronic lock and the mobile communication terminal communicate via the Internet. Based on the communication method, the mobile communication terminal can upload the encrypted control command to the server corresponding to the application through the Internet, and the server forwards the encrypted control command to the electronic lock via the Internet.
处理器42,用于对上述加密的控制指令进行解密,响应于解密得到的控制指令对电子锁进行控制。The processor 42 is configured to decrypt the encrypted control command, and control the electronic lock in response to the decrypted control command.
在一可选的实施例中,通信模组41,用于接收移动通信终端发送的加密的反锁指令;相应的,In an optional embodiment, the communication module 41 is configured to receive an encrypted anti-lock command sent by the mobile communication terminal; correspondingly,
处理器42,用于对上述加密的反锁指令进行解密;判断解密得到的反锁指令是否为预定用户发送的指令;当判断结果为反锁指令为预定用户发送的指令时,关闭电子锁的电子开锁功能,以使电子锁进入反锁状态。The processor 42 is configured to decrypt the encrypted unlock command; determine whether the decrypted unlock command is an instruction sent by a predetermined user; and when the judgment result is an instruction sent by the predetermined user, the electronic lock function of the electronic lock is turned off. In order to make the electronic lock enter the anti-lock state.
处理器42可以根据解密得到的反锁指令中携带的,用于表征用户身份的识别标识,判断解密得到的反锁指令是否为预定用户发送的指令。具体的,处理器42可以判断解密得到的反锁指令中携带的,用于表征用户身份的识别标识是否为预定的识别标识,若是预定的识别标识,说明解密得到的反锁指令为预定用户发送的指令,否则,说明解密得到的反锁指令不是预定用户发送的指令。The processor 42 may determine, according to the identification identifier carried in the decryption instruction obtained by the decryption, the identifier used to represent the identity of the user, and determine whether the decrypted instruction obtained by the decryption is an instruction sent by the predetermined user. Specifically, the processor 42 may determine whether the identification identifier used to represent the identity of the user carried in the decrypted anti-lock command is a predetermined identification identifier, and if it is a predetermined identification identifier, the unlocking instruction obtained by the decryption is an instruction sent by the predetermined user. Otherwise, it indicates that the decrypted instruction obtained by the decryption is not an instruction sent by the predetermined user.
上述预定的识别标识可以由上述预定用户(如,电子锁的管理员)预先通过上述应用程序注册得到。The predetermined identification identifier may be registered in advance by the above-mentioned application by the predetermined user (for example, an administrator of the electronic lock).
电子锁的电子开锁方式可以包括但不限于以下列举的任意一种方式:蓝牙开锁、指纹开锁、密码开锁、射频卡开锁等等。The electronic unlocking mode of the electronic lock may include, but is not limited to, any one of the following enumerated modes: Bluetooth unlocking, fingerprint unlocking, password unlocking, RF card unlocking, and the like.
当关闭电子锁的电子开锁功能时,该电子锁只能从室内打开,或者,只能通过预设的机械开锁方式在室外打开,其中,该预设的机械开锁方式可以包括但不限于以下列举的几种中的任意一种:通过机械钥匙开锁,或者,通过机械密码转盘开锁等。When the electronic unlocking function of the electronic lock is turned off, the electronic lock can only be opened from the indoor, or can be opened outdoors by a preset mechanical unlocking method, wherein the preset mechanical unlocking manner can include but is not limited to the following enumeration Any of several types: unlocked by a mechanical key, or unlocked by a mechanical code dial.
本申请提供的电子锁控制系统,可以通过通信模组接收移动通信终端发送的加密的控制指令,处理器可以对加密的控制指令进行解密,并响应于解密得到的控制指令对电子锁进行控制,从而实现通过移动通信终端对电子锁的控制,提供了一种新的对电子锁进行控制的方式,提高了电子锁使用的便利性。The electronic lock control system provided by the present application can receive the encrypted control command sent by the mobile communication terminal through the communication module, the processor can decrypt the encrypted control command, and control the electronic lock in response to the decrypted control command. Thereby, the control of the electronic lock by the mobile communication terminal is realized, and a new way of controlling the electronic lock is provided, and the convenience of using the electronic lock is improved.
通过移动通信终端向电子锁发送加密的反锁指令,电子锁接收到加密的反锁指令后,对其进行解密,只有在解密得到的反锁指令为预定用户(如管理员)发送的控制指令时,控制电子锁进入反锁状态,从而电子锁无法通过密码等电子开锁方式打开,通过本申请,管理员只要通过移动通信终端向电子锁发送反锁指令,就可以禁用电子钥匙,实现快速有效的对电子钥匙的管理,简化了管理员的操作,提高了电子锁的便利性。而且,移动通信终端向电子锁发送的反锁指令为加密的反锁指令,因此,提高了电子锁的安全性。The encrypted communication anti-lock command is sent to the electronic lock through the mobile communication terminal, and the electronic lock receives the encrypted anti-lock command and decrypts it, and only controls the control command sent by the predetermined user (such as an administrator) when the decrypted anti-lock command is a control command sent by a predetermined user (such as an administrator) The electronic lock enters the anti-lock state, so that the electronic lock cannot be opened by an electronic unlocking method such as a password. According to the application, the administrator can disable the electronic key by sending an anti-lock command to the electronic lock through the mobile communication terminal, thereby realizing a fast and effective electronic key. Management simplifies the operation of the administrator and improves the convenience of the electronic lock. Moreover, the anti-lock command sent by the mobile communication terminal to the electronic lock is an encrypted anti-lock command, thereby improving the security of the electronic lock.
在一可选的实施例中,在电子锁进入反锁状态后,若电子锁接收到携带密钥信息的开锁指令,则处理器42可以将开锁指令中的密钥信息与存储的密钥信息进行比对,若存储的密钥信息中包括开锁指令中的密钥信息,且开锁指令中的密钥信息在有效期限内,则获取电子锁是否反锁的状态信息,若电子锁为反锁状态,则禁止执行开锁操作,若电子锁未处于反锁状态,则执行开锁操作。若存储的密钥信息中不包括开锁指令中的密钥信息,或者,虽然存储的密钥信息中包括开锁指令中的密钥信息,但不在有效期限内,则不必再获取电子锁是否反锁的状态信息,可以直接返回密码无效的提示信息即可,除此之外,还可以基于上述预设的识别标识向移动通信终端发送报警信息,以提示预设用户(如管理员)电子锁被非法操作。In an optional embodiment, after the electronic lock enters the anti-lock state, if the electronic lock receives the unlock command carrying the key information, the processor 42 may perform the key information in the unlock command and the stored key information. If the stored key information includes the key information in the unlocking instruction, and the key information in the unlocking instruction is within the expiration date, the state information of whether the electronic lock is locked is obtained, and if the electronic lock is in the locked state, It is forbidden to perform the unlock operation. If the electronic lock is not in the anti-lock state, the unlock operation is performed. If the stored key information does not include the key information in the unlocking instruction, or if the stored key information includes the key information in the unlocking instruction, but is not within the validity period, it is not necessary to acquire whether the electronic lock is locked. The status information may directly return the prompt information with invalid password. In addition, the alarm information may be sent to the mobile communication terminal based on the preset identification identifier to prompt the preset user (such as the administrator) that the electronic lock is illegal. operating.
其中,上述开锁指令可以是移动通信终端通过蓝牙或者互联网发送的开锁指令,或者,是电子锁通过电子锁的输入面板接收到用户输入的指纹或密码后触发生成的开锁指令,或者,是电子锁读取的射频卡中的信息等后触发生成的开锁指令。The unlocking instruction may be an unlocking instruction sent by the mobile communication terminal via Bluetooth or the Internet, or an unlocking instruction triggered by the electronic lock receiving the fingerprint or password input by the user through the input panel of the electronic lock, or an electronic lock. After the information in the read RF card, etc., the generated unlock command is triggered.
在一可选的实施例中,通信模组41还可以获取上述移动通信终端发送的保存临时密 钥的指令,该保存临时密钥的指令由上述应用软件加密后发送,该保存临时密钥的指令中除了携带临时密钥外,还携带识别标识以及临时密钥的有效期限。In an optional embodiment, the communication module 41 may further acquire an instruction for saving the temporary key sent by the mobile communication terminal, where the instruction for saving the temporary key is encrypted by the application software, and the temporary key is saved. In addition to carrying the temporary key, the command carries the identification identifier and the expiration date of the temporary key.
本申请实施例中,预定用户在移动通信终端上通过上述预定识别标识登录上述应用软件后,还可以通过上述应用软件生成临时密钥,并设置该临时密钥的有效期限。该临时密钥可以是应用软件随机生成的密码,或者,可以是通过移动通信终端的指纹采集模块采集的指纹,或者,可以是通过移动通信终端的射频卡读取模块读取的射频卡的信息。然后将临时密钥加密后通过蓝牙或互联网发送给电子锁存储。In the embodiment of the present application, after the predetermined user logs in to the application software by using the predetermined identification identifier on the mobile communication terminal, the temporary key may be generated by using the application software, and the validity period of the temporary key is set. The temporary key may be a password randomly generated by the application software, or may be a fingerprint collected by a fingerprint collection module of the mobile communication terminal, or may be a radio frequency card information read by a radio frequency card reading module of the mobile communication terminal. . The temporary key is then encrypted and sent to the electronic lock store via Bluetooth or the Internet.
处理器42还可以用于,对加密的保存临时密钥的指令进行解密,基于解密得到的保存临时密钥的指令中携带的识别标识判断该保存临时密钥的指令是否由预定用户发送,若判断结果为是,则存储上述保存临时密钥的指令中携带的临时密钥,以及临时密钥的有效期限。若判断结果为否,则不会存储上述临时密钥及临时密钥的有效期限。The processor 42 is further configured to: decrypt the encrypted instruction for saving the temporary key, and determine, according to the identification identifier carried in the instruction for saving the temporary key obtained by the decryption, whether the instruction for saving the temporary key is sent by the predetermined user, if If the result of the determination is YES, the temporary key carried in the instruction for saving the temporary key and the expiration date of the temporary key are stored. If the result of the determination is no, the expiration date of the temporary key and the temporary key described above is not stored.
进一步的,当临时密钥的存储时间达到上述有效期限时,说明临时密钥失效了,处理器42还可以删除该失效的临时密钥。基于此,若电子锁接收到携带密钥信息的开锁指令,则处理器42可以将开锁指令中的密钥信息与存储的密钥信息进行比对,若存储的密钥信息中包括开锁指令中的密钥信息,则获取电子锁是否反锁的状态信息,若电子锁为反锁状态,则禁止执行开锁操作,若电子锁未处于反锁状态,则执行开锁操作。若存储的密钥信息中不包括开锁指令中的密钥信息,则不必再获取电子锁是否反锁的状态信息,可以直接禁止执行开锁操作即可。也就是说,本申请实施例中,存储的密钥信息都是有效的密钥信息。Further, when the storage time of the temporary key reaches the expiration date, it indicates that the temporary key is invalid, and the processor 42 may also delete the invalid temporary key. Based on this, if the electronic lock receives the unlocking instruction carrying the key information, the processor 42 may compare the key information in the unlocking instruction with the stored key information, if the stored key information includes the unlocking instruction. The key information obtains the status information of whether the electronic lock is locked. If the electronic lock is in the unlocked state, the unlocking operation is prohibited. If the electronic lock is not in the unlocked state, the unlocking operation is performed. If the stored key information does not include the key information in the unlocking instruction, it is not necessary to obtain the state information of whether the electronic lock is locked, and the unlocking operation can be directly prohibited. That is to say, in the embodiment of the present application, the stored key information is valid key information.
在一可选的实施例中,通信模组41还可以用于,接收移动通信终端发送的加密的解除反锁的指令;In an optional embodiment, the communication module 41 is further configured to receive an encrypted unlocking command sent by the mobile communication terminal;
处理器42还可以用于,对加密的解除反锁的指令进行解密;判断解密得到的解除反锁的指令是否为预定用户发送的指令;当判断结果为解除反锁的指令为预定用户发送的指令时,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态。The processor 42 is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by the predetermined user; and when the determined result is that the unlocked instruction is an instruction sent by the predetermined user, Restore the electronic unlock function of the electronic lock to unlock the electronic lock.
当电子锁解除反锁状态时,电子锁处于正常锁定状态,即当用户输入密钥时,若密钥正确且在有效期内,则打开电子锁,若密钥错误或不在有效期内,则禁止打开电子锁。When the electronic lock is unlocked, the electronic lock is in a normal locked state, that is, when the user inputs the key, if the key is correct and within the validity period, the electronic lock is opened, and if the key is incorrect or not valid, the electronic opening is prohibited. lock.
本申请实施例中,通过移动通信终端控制电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is controlled by the mobile communication terminal to release the anti-lock state.
在一可选的实施例中,本申请提供的电子锁控制系统还可以包括感应模组,在图4所述实施例的基础上,本申请实施例提供的电子锁控制系统的另一种结构示意图如图5所示, 还可以包括:In an optional embodiment, the electronic lock control system provided by the present application may further include an induction module. Based on the embodiment shown in FIG. 4, another structure of the electronic lock control system provided by the embodiment of the present application is provided. The schematic diagram is shown in FIG. 5, and may further include:
感应模组51,用于采集感应信息,该感应信息用于表征电子锁是否在室内被打开。The sensing module 51 is configured to collect sensing information, and the sensing information is used to indicate whether the electronic lock is opened indoors.
其中,感应模组51采集的感应信息可以基于电子锁的开关状态的改变而改变,即,电子锁打开时,感应模组51采集的感应信息,与电子锁关闭时,感应模组51采集的感应信息不同。感应模组51可以安装在电子锁内,或者,安装在电子锁外,或者部分安装在电子锁内,部分安装在电子锁外。可以根据实际的需求选择具体的安装位置。The sensing information collected by the sensing module 51 can be changed based on the change of the switching state of the electronic lock, that is, the sensing information collected by the sensing module 51 when the electronic lock is opened, and the sensing module 51 collects when the electronic lock is closed. The sensing information is different. The sensing module 51 can be mounted in the electronic lock, or mounted outside the electronic lock, or partially mounted in the electronic lock, and partially mounted outside the electronic lock. The specific installation location can be selected according to actual needs.
处理器42还可以用于,基于感应模组51采集的感应信息对电子锁进行控制。可选的,处理器42可以基于上述感应模组51采集的感应信息判断电子锁是否在室内被打开,当判断出电子锁在室内被打开时,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态。The processor 42 is further configured to control the electronic lock based on the sensing information collected by the sensing module 51. Optionally, the processor 42 may determine, according to the sensing information collected by the sensing module 51, whether the electronic lock is opened indoors, and when it is determined that the electronic lock is opened indoors, restore the electronic unlocking function of the electronic lock to enable the electronic lock Unlocked.
处理器42可以根据感应模组采集的感应信息的变化情况判断电子锁是否在室内被打开。The processor 42 can determine whether the electronic lock is opened indoors according to the change of the sensing information collected by the sensing module.
本申请实施例中,通过室内开门操作触发电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is triggered to cancel the anti-lock state by the indoor door opening operation.
本实施例提供的电子锁控制系统,增加了感应模组,从而处理器42可以根据感应信息对电子锁进行控制,提供一种自动对电子锁进行控制的方式,进一步提高了电子锁的便利性。The electronic lock control system provided in this embodiment adds a sensing module, so that the processor 42 can control the electronic lock according to the sensing information, and provides a method for automatically controlling the electronic lock, thereby further improving the convenience of the electronic lock. .
可选的,处理器42还可以用于,在电子锁解除反锁状态后,将表征电子锁解除反锁状态的信息通过所述通信模组同步至上述移动通信终端。Optionally, the processor 42 is further configured to: after the electronic lock is unlocked, synchronize information indicating that the electronic lock is unlocked to the mobile communication terminal by using the communication module.
在一可选的实施例中,感应模组51可以设置于电子锁内;具体的,In an optional embodiment, the sensing module 51 can be disposed in the electronic lock; specifically,
感应模组51的安装位置与电子锁中位于室内一侧的执手座相关联,当该执手座发生第一预置动作时,感应模组51采集的感应信息发生变化。也就是说,感应模组51采集的感应信息的变化情况可以表征电子锁内位于室内一侧的执手座的动作情况,而执手座的动作是由室内把手的动作而引起的,因此,感应模组51采集的感应信息可以表征电子锁是否被从室内打开。The mounting position of the sensing module 51 is associated with the handle holder on the indoor side of the electronic lock. When the first preset action occurs in the handle holder, the sensing information collected by the sensing module 51 changes. That is to say, the change of the sensing information collected by the sensing module 51 can represent the action of the handle seat located on the indoor side of the electronic lock, and the action of the handle is caused by the action of the indoor handle, therefore, The sensing information collected by the sensing module 51 can characterize whether the electronic lock is opened from the room.
相应的,处理器42基于感应信息判断电子锁是否在室内被打开时,具体可以用于,处理器42监测感应模组51采集的感应信息的变化情况,当感应模组51采集的感应信息的变化情况满足预置条件时,确定电子锁在室内被打开。Correspondingly, when the processor 42 determines whether the electronic lock is turned on indoors based on the sensing information, the processor 42 can be used to monitor the change of the sensing information collected by the sensing module 51, and the sensing information collected by the sensing module 51. When the change condition satisfies the preset condition, it is determined that the electronic lock is opened indoors.
在一可选的实施例中,感应模组51可以包括:In an optional embodiment, the sensing module 51 can include:
第一感应部件,用于生成感应信息;a first sensing component, configured to generate sensing information;
第二感应部件,用于采集第一感应部件生成的感应信息;a second sensing component, configured to collect sensing information generated by the first sensing component;
第一感应部件和第二感应部件中,其中一个感应部件设置于上述位于室内一侧的执手座上,另一个感应部件设置于该执手座周围的第一预置区域内,以保证室内一侧的执手座发生第一预置动作时,第二感应部件采集的感应信息发生变化。One of the first sensing component and the second sensing component is disposed on the handle holder on the indoor side, and the other sensing component is disposed in the first preset area around the handle holder to ensure indoor When the first preset action of the handle on one side occurs, the sensing information collected by the second sensing component changes.
在一可选的实施例中,第一感应部件可以为红外发射传感器,用于发射红外线,第二感应部件为红外接收传感器,用于接收红外发射传感器发射的红外线。In an optional embodiment, the first sensing component may be an infrared emitting sensor for emitting infrared rays, and the second sensing component is an infrared receiving sensor for receiving infrared rays emitted by the infrared emitting sensor.
当电子锁打开时,第二感应部件接收到的红外线的强度,与电子锁关闭时,第二感应部件接收到的红外线的强度不同,从而,当电子锁打开时,第二感应部件输出信号的强度,与电子锁关闭时,第二感应部件输出的信号的强度不同。When the electronic lock is opened, the intensity of the infrared ray received by the second sensing component is different from the intensity of the infrared ray received by the second sensing component when the electronic lock is closed, so that when the electronic lock is opened, the second sensing component outputs a signal. The strength, when the electronic lock is closed, the intensity of the signal output by the second inductive component is different.
处理器42可以根据第二感应部件输出的信号的强度变化来判断电子锁是否打开。具体的,处理器42可以监测第二感应部件输出的信号强度的变化量,当预设时长内第二感应部件输出的信号强度的变化量大于预设阈值时,确定电子锁打开,否则,确定电子锁未打开。The processor 42 can determine whether the electronic lock is open according to the intensity change of the signal output by the second sensing component. Specifically, the processor 42 can monitor the amount of change in the signal strength output by the second inductive component. When the amount of change in the signal strength output by the second inductive component is greater than a preset threshold, the electronic lock is determined to be turned on. Otherwise, the determination is performed. The electronic lock is not open.
在另一可选的实施例中,第一感应部件可以为磁铁,用于产生磁场,第二感应部件为干簧管,用于在所述磁场的作用下改变自身的开关状态,在离开所述磁场时,恢复开关状态。In another optional embodiment, the first sensing component may be a magnet for generating a magnetic field, and the second sensing component is a reed switch for changing the switching state of the magnetic field under the action of the magnetic field. When the magnetic field is described, the switch state is restored.
例如,若干簧管为常开模式的干簧管,当有磁铁靠近时,干簧管就会关闭,当磁铁远离时,干簧管恢复常开模式;反之,若干簧管为常闭模式的干簧管,当有磁铁靠近时,干簧管就会打开,当磁铁远离时,干簧管恢复常闭模式。For example, some reeds are reed switches of normally open mode. When a magnet is close, the reed switch will be closed. When the magnet is far away, the reed switch will return to the normally open mode; otherwise, the reeds are normally closed. For the reed switch, the reed switch will open when there is a magnet close to it, and the reed switch will return to the normally closed mode when the magnet is far away.
此示例中,当电子锁打开时,干簧管的开关状态,与电子锁关闭时,干簧管的开关状态不同。In this example, when the electronic lock is opened, the switch state of the reed switch is different from that of the reed switch when the electronic lock is closed.
干簧管输出的感应信息为开关量,用于表征干簧管的开关状态。干簧管开关状态改变了,其输出的开关量也就改变了,说明电子锁的开关状态改变了。The sensing information of the reed switch output is the amount of switching, which is used to characterize the switching state of the reed switch. The state of the reed switch has changed, and the output of the switch has changed, indicating that the switch state of the electronic lock has changed.
处理器42可以根据预先设定的干簧管开关状态与电子锁开关状态的对应关系判断电子锁是否被打开。The processor 42 can determine whether the electronic lock is opened according to a preset correspondence between the reed switch state and the electronic lock switch state.
例如,根据实际中干簧管的设置方式,可以预先设定干簧管打开时,电子锁被打开,当干簧管关闭时,电子锁被关闭。当然,根据实际中干簧管的设置方式,也可以预先设定干簧管打开时,电子锁被关闭,当干簧管关闭时,电子锁被打开。For example, according to the actual arrangement of the reed switch, the electronic lock can be opened when the reed switch is opened, and the electronic lock is closed when the reed switch is closed. Of course, according to the way the reed switch is actually installed, it is also possible to preset that the electronic lock is closed when the reed switch is opened, and the electronic lock is opened when the reed switch is closed.
在另一可选的实施例中,感应模组51可以包括:In another optional embodiment, the sensing module 51 can include:
按键,该按键设置于上述位于室内一侧的执手座周围的第二预置区域内,以保证执手座发生第一预置动作时,该按键采集的感应信息发生变化。The button is disposed in the second preset area around the handle holder on the indoor side to ensure that the sensing information collected by the button changes when the first preset action occurs in the handle holder.
按键采集的感应信息为按键的状态信息,该状态信息用于表征按键是否被按压。The sensing information collected by the button is status information of the button, and the status information is used to indicate whether the button is pressed.
处理器42可以根据预先设定的按键状态信息与电子锁开关状态的对应关系判断电子锁是否被打开。The processor 42 can determine whether the electronic lock is opened according to the correspondence between the preset button state information and the state of the electronic lock switch.
例如,根据实际中按键的设置方式,可以预先设定按键被按压时,电子锁被打开,当按键未被按压时,电子锁被关闭。当然,根据实际中按键的设置方式,也可以预先设定按键被按压时,电子锁被关闭,当按键未被按压时,电子锁被打开。For example, according to the actual setting mode of the button, the electronic lock can be opened when the button is pressed in advance, and the electronic lock is turned off when the button is not pressed. Of course, according to the actual setting mode of the button, the electronic lock can be turned off when the button is pressed in advance, and the electronic lock is turned on when the button is not pressed.
在又一可选的实施例中,感应模块51可以包括:In still another alternative embodiment, the sensing module 51 can include:
第一子感应模组,用于采集第一感应信息,第一子感应模组的安装位置与电子锁的锁舌相关联,或者,与安装电子锁的门体相关联;当锁舌收回到电子锁内,或者,门体被打开时,第一感应信息发生变化;The first sub-sensing module is configured to collect the first sensing information, the installation position of the first sub-sensing module is associated with the locking tongue of the electronic lock, or is associated with the door body on which the electronic lock is installed; when the locking tongue is retracted The first sensing information changes within the electronic lock or when the door is opened;
第二子感应模组,用于采集第二感应信息,第二子感应模组的安装位置与电子锁的预设的机械开锁机构相关联,当该预设的机械开锁机构发生第二预置动作时,第二感应信息发生变化。The second sub-sensing module is configured to collect the second sensing information, and the installation position of the second sub-sensing module is associated with a preset mechanical unlocking mechanism of the electronic lock, and when the preset mechanical unlocking mechanism generates a second preset When the action is performed, the second sensing information changes.
若电子锁通过机械钥匙开锁,则上述预设的机械开锁机构可以为锁孔;若电子锁通过机械密码转盘开锁,则上述预置的机械开锁机构可以为机械密码转盘。If the electronic lock is unlocked by the mechanical key, the preset mechanical unlocking mechanism may be a keyhole; if the electronic lock is unlocked by the mechanical code dial, the preset mechanical unlocking mechanism may be a mechanical code dial.
相应的,处理器42基于感应信息判断电子锁是否在室内被打开时,具体可以用于,Correspondingly, when the processor 42 determines, based on the sensing information, whether the electronic lock is opened indoors, the processor 42 may specifically be used,
处理器42监测第一感应信息的变化情况,以及第二感应信息的变化情况;当第一感应信息的变化情况满足第一预置条件时,确定电子锁被打开,并判断第二感应信息的变化情况是否满足第二预置条件,若第二感应信息的变化情况满足第二预置条件,确定电子锁被以预设的机械开锁方式打开,即在室外被打开,若第二感应信息的变化情况未满足第二预置条件,确定电子锁在室内被打开。The processor 42 monitors the change of the first sensing information and the change of the second sensing information; when the change of the first sensing information satisfies the first preset condition, determining that the electronic lock is opened, and determining the second sensing information Whether the change condition satisfies the second preset condition, and if the change of the second sensing information satisfies the second preset condition, it is determined that the electronic lock is opened in a preset mechanical unlocking manner, that is, is opened outdoors, if the second sensing information is The change condition does not satisfy the second preset condition, and it is determined that the electronic lock is opened indoors.
在一可选的实施例中,第一子感应模组可以包括:In an optional embodiment, the first sub-sensing module can include:
第一感应部件,用于生成感应信息;a first sensing component, configured to generate sensing information;
第二感应部件,用于采集第一感应部件生成的感应信息;a second sensing component, configured to collect sensing information generated by the first sensing component;
若第一子感应模组的安装位置与电子锁的锁舌相关联,则第一感应部件和第二感应部 件中,其中一个感应部件设置于锁舌上位于电子锁内的一端,另一个感应部件安装在电子锁内,与设置于锁舌上的感应部件相对的位置;或者,第一感应部件和第二感应部件设置在与锁舌垂直方向的两侧,即第一感应部件和第二感应部件的连线与锁舌的运动方向垂直或近似垂直,当锁舌收回电子锁内时,锁舌位于第一感应部件和第二感应部件中间,当锁舌伸出电子锁时,锁舌移出第一感应部件和第二感应部件中间,以保证锁舌运动时,第二感应部件采集的感应信息发生变化。If the installation position of the first sub-sensing module is associated with the locking tongue of the electronic lock, one of the first sensing component and the second sensing component is disposed on one end of the locking tongue located in the electronic lock, and the other sensing The component is mounted in the electronic lock at a position opposite to the sensing component disposed on the bolt; or the first sensing component and the second sensing component are disposed on two sides perpendicular to the locking tongue, that is, the first sensing component and the second component The connecting line of the sensing component is perpendicular or nearly perpendicular to the moving direction of the locking tongue. When the locking tongue is retracted into the electronic lock, the locking tongue is located between the first sensing component and the second sensing component, and when the locking tongue protrudes from the electronic locking, the locking tongue The middle sensing component and the second sensing component are removed to ensure that the sensing information collected by the second sensing component changes when the locking tongue moves.
若第一子感应模组的安装位置与安装电子锁的门体相关联,则第一感应部件和第二感应部件中,其中一个感应部件设置于门体的侧边,另一个感应部件安装在门框上,当门体关闭时,第二感应部件可以采集第一感应部件生成的感应信息,以保证门体打开时,第二感应部件采集的感应信息发生变化。If the installation position of the first sub-sensing module is associated with the door body on which the electronic lock is mounted, one of the first inductive component and the second inductive component is disposed on a side of the door body, and the other inductive component is mounted on the On the door frame, when the door body is closed, the second sensing component can collect the sensing information generated by the first sensing component to ensure that the sensing information collected by the second sensing component changes when the door body is opened.
其中,第一感应部件可以为红外发射传感器,用于发射红外线,第二感应部件为红外接收传感器,用于接收红外发射传感器发射的红外线。The first sensing component may be an infrared emitting sensor for emitting infrared rays, and the second sensing component is an infrared receiving sensor for receiving infrared rays emitted by the infrared emitting sensor.
或者,第一感应部件可以为磁铁,用于产生磁场,第二感应部件为干簧管,用于在所述磁场的作用下改变自身的开关状态,在离开所述磁场时,恢复开关状态。Alternatively, the first inductive component may be a magnet for generating a magnetic field, and the second inductive component is a reed switch for changing its own switching state under the action of the magnetic field, and returning to the switching state upon leaving the magnetic field.
上述各实施例中,第一感应部件和第二感应部件的安装位置不同,当安装电子锁的门体打开或电子锁打开时,第一感应部件和第二感应部件会发生相对运动,使得第二感应部件采集的感应信息发生变化,从而可以根据感应信息的变化确定电子锁是否打开。In the above embodiments, the first sensing component and the second sensing component are installed at different positions. When the door body on which the electronic lock is mounted is opened or the electronic lock is opened, the first sensing component and the second sensing component may move relative to each other. The sensing information collected by the two sensing components changes, so that the electronic lock can be determined to be opened according to the change of the sensing information.
在另一可选的实施例中,第一子感应模组可以包括:In another optional embodiment, the first sub-sensing module may include:
按键,该按键采集的感应信息为按键的状态信息,该状态信息用于表征按键是否被按压。The button, the sensing information collected by the button is state information of the button, and the state information is used to indicate whether the button is pressed.
按键可以安装在门框上,或者,安装在门侧边上,或者,安装在锁舌上位于电子锁内的一端,只要在电子锁打开或门打开时,可以改变按键的状态即可。The button can be mounted on the door frame, or mounted on the side of the door, or mounted on the end of the bolt located inside the electronic lock, as long as the electronic lock is opened or the door is opened, the state of the button can be changed.
在一可选的实施例中,第二子感应模组可以包括第三感应部件和第四感应部件。In an optional embodiment, the second sub-sensing module may include a third inductive component and a fourth inductive component.
第三感应部件,用于生成感应信息;a third sensing component, configured to generate sensing information;
第四感应部件,用于采集第三感应部件生成的感应信息;a fourth sensing component, configured to collect sensing information generated by the third sensing component;
若预设的机械开锁机构为锁孔,则第三感应部件和第四感应部件中,其中一个感应部件设置于上述锁孔壁上,另一个感应部件设置于该锁孔壁周围的第二预置区域内,以保证锁孔转动时,第四感应部件采集的感应信息发生变化,从而可以根据该变化判断锁孔是否 转动,当锁孔转动时,说明是通过机械钥匙开锁。否则,说明不是通过机械钥匙开锁。If the predetermined mechanical unlocking mechanism is a locking hole, one of the third sensing component and the fourth sensing component is disposed on the locking hole wall, and the other sensing component is disposed in the second pre-around of the locking hole wall. In the area, to ensure that the keyhole rotates, the sensing information collected by the fourth sensing component changes, so that the locking hole can be judged according to the change. When the locking hole is rotated, the mechanical key is unlocked. Otherwise, the instructions are not unlocked by a mechanical key.
若预设的机械开锁机构为机械密码转盘,则第三感应部件和第四感应部件中,其中一个感应部件设置于上述密码转盘上,另一个感应部件设置于该密码转盘周围的第三预置区域内,以保证密码转盘转动时,第四感应部件采集的感应信息发生变化,从而可以根据该变化判断密码转盘是否转动,当密码转盘转动时,说明是通过机械密码转盘开锁。否则,说明不是通过机械密码转盘开锁。通常,以机械密码转盘方式开锁时,密码转盘会设置多个,则可以设置多个第二子感应模组,每个第二子感应模组监测一个密码转盘,则当监测到所有密码转盘转动时,确定通过机械密码转盘开锁。If the preset mechanical unlocking mechanism is a mechanical code dial, one of the third sensing component and the fourth sensing component is disposed on the password dial, and the other sensing component is disposed on the third preset around the password dial. In the area, when the password dial is rotated, the sensing information collected by the fourth sensing component changes, so that the password dial can be judged according to the change. When the password dial is rotated, the mechanical password dial is unlocked. Otherwise, the instructions are not unlocked via the mechanical code dial. Generally, when the password is turned on by the mechanical password dial, the password dial is set to be multiple, and a plurality of second sub-sensing modules can be set, and each second sub-sensing module monitors a password dial, and when all the password dials are detected, When it is determined, unlock the lock by the mechanical code dial.
在一可选的实施例中,第三感应部件可以为红外发射传感器,用于发射红外线,第四感应部件为红外接收传感器,用于接收红外发射传感器发射的红外线。In an optional embodiment, the third inductive component may be an infrared emitting sensor for emitting infrared rays, and the fourth inductive component is an infrared receiving sensor for receiving infrared rays emitted by the infrared emitting sensor.
在另一可选的实施例中,第三感应部件可以为磁铁,用于产生磁场,第四感应部件为干簧管,用于在所述磁场的作用下改变自身的开关状态,在离开所述磁场时,恢复开关状态。In another optional embodiment, the third sensing component may be a magnet for generating a magnetic field, and the fourth sensing component is a reed switch for changing the switching state of the magnetic field under the action of the magnetic field. When the magnetic field is described, the switch state is restored.
下面举例说明第一感应部件和第二感应部件的具体安装位置:The specific installation positions of the first sensing component and the second sensing component are exemplified below:
如图6所示,为本申请提供的第一感应部件61和第二感应部件62的一种安装位置示意图。FIG. 6 is a schematic view showing a mounting position of the first inductive component 61 and the second inductive component 62 provided by the present application.
电子锁通常包括把手,与把手连接的执手座。当把手下压时,执手座会随着把手的下压而转动,通过电子锁内的传动装置,执手座的转动会带动锁舌收回到电子锁内部,使得电子锁打开,门也就可以开了。同理,当门关上时,若把手恢复原位置的,执手座也会恢复原始状态,带动锁舌伸出电子锁,门就被锁住了。Electronic locks typically include a handle and a handle holder that is attached to the handle. When the handle is pressed down, the handle base will rotate with the pressing of the handle. Through the transmission device in the electronic lock, the rotation of the handle will drive the lock tongue back into the electronic lock, so that the electronic lock is opened and the door is opened. Can be opened. In the same way, when the door is closed, if the handle is restored to the original position, the handle seat will return to the original state, and the lock tongue will extend the electronic lock, and the door will be locked.
本示例中,假设把手下压时带动执手座转动为例进行说明,其中,第一感应部件61安装在电子锁中位于室内一侧的执手座上,第二感应部件62在电子锁上述执手座的周围。当执手座处于原始状态(如图6所示状态)时,第二感应部件62感应到的感应信息最强。In this example, assuming that the handle is rotated when the handle is pressed, the first sensing member 61 is mounted on the handle holder on the indoor side of the electronic lock, and the second sensing member 62 is in the electronic lock. Around the handle. When the handle is in the original state (as shown in FIG. 6), the sensing information sensed by the second sensing component 62 is the strongest.
当与该执手座连接的把手下压时,执手座会发生转动,第一感应部件相应的也会随着执手座的转动而转动,使得第一感应部件61与第二感应部件62相互远离,从而使得第二感应部件62感应到的感应信息减弱,或者,感应不到感应信息,从而可以判断门体打开了。When the handle connected to the handle holder is pressed down, the handle base rotates, and the first sensing component also rotates correspondingly with the rotation of the handle holder, so that the first sensing component 61 and the second sensing component 62 Moving away from each other, the sensing information sensed by the second sensing component 62 is weakened, or the sensing information is not sensed, so that the door body can be judged to be opened.
如图7所示,为本申请实施例提供的第一感应部件61和第二感应部件62的另一种安装位置示意图。FIG. 7 is a schematic diagram showing another mounting position of the first sensing component 61 and the second sensing component 62 provided by the embodiment of the present application.
本示例中,第一感应部件61安装在锁舌上位于电子锁内部的一端,第二感应部件62固定安装在电子锁内,与第一感应部件61相对。当锁舌收回电子锁内部时,第一感应部件61和第二感应部件62相互接近,使得第二感应部件62感应到的感应信息增强,当感应到的感应信息的强度增强到一定值时,说明门体打开了;当锁舌伸出电子锁时,第一感应部件61和第二感应部件62相互远离,使得第二感应部件62感应到的感应信息减弱,当感应到的感应信息的强度减弱到一定值时,说明门体关闭了。In the present example, the first inductive component 61 is mounted on one end of the bolt located inside the electronic lock, and the second inductive component 62 is fixedly mounted in the electronic lock opposite the first inductive component 61. When the lock tongue retracts the inside of the electronic lock, the first sensing component 61 and the second sensing component 62 are close to each other, so that the sensing information sensed by the second sensing component 62 is enhanced, and when the intensity of the sensed sensing information is increased to a certain value, The door body is opened; when the lock tongue extends out of the electronic lock, the first sensing component 61 and the second sensing component 62 are away from each other, so that the sensing information sensed by the second sensing component 62 is weakened, and the intensity of the sensed information is sensed. When it is weakened to a certain value, the door is closed.
如图8所示,为本申请提供的第一感应部件61和第二感应部件62的又一种安装位置示意图。FIG. 8 is a schematic diagram showing still another mounting position of the first sensing component 61 and the second sensing component 62 provided by the present application.
本示例中,第一感应部件61安装在门体上,第二感应部件62安装在门框上。当安装电子锁的门体关上时,第一感应部件61和第二感应部件62相互接近;当安装电子锁的门体打开时,第一感应部件61和第二感应部件62相互远离,使得第二感应部件62感应到的感应信息减弱,或者,感应不到感应信息,从而可以确定门体打开了。In the present example, the first inductive component 61 is mounted on the door body and the second inductive component 62 is mounted on the door frame. When the door body on which the electronic lock is mounted is closed, the first sensing component 61 and the second sensing component 62 are close to each other; when the door body on which the electronic lock is mounted is opened, the first sensing component 61 and the second sensing component 62 are distant from each other, so that The sensing information sensed by the two sensing components 62 is weakened, or the sensing information is not sensed, so that the door body is opened.
在一可选的实施例中,处理器42还可以用于,获取开锁指令,将开锁指令中携带的密钥与存储的密钥进行比对;当比对结果表征存储的密钥中包括开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;若判断结果为是,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态,并控制电子锁打开。若判断结果为否,则禁止电子锁打开,并禁止恢复电子锁的电子开锁功能。In an optional embodiment, the processor 42 is further configured to: obtain an unlock command, compare the key carried in the unlock command with the stored key; and include unlocking when the comparison result indicates that the stored key is included When the key carried in the command is based on the correspondence between the preset key and the identification identifier, it is determined whether the identification identifier corresponding to the key carried in the unlocking instruction is a predetermined identification identifier; if the determination result is yes, the electronic lock is restored. The electronic unlock function enables the electronic lock to unlock the lock state and control the electronic lock to open. If the judgment result is no, the electronic lock is prohibited from being turned on, and the electronic unlocking function of the electronic lock is prohibited from being restored.
上述开锁指令可以是通过通信模组(如,蓝牙模块,或,互联网接入模块)接收到的移动通信终端发送的开锁指令,该开锁指令由用户在移动通信终端输入密钥后触发生成。或者,开锁指令是通过电子锁的输入面板采集用户输入的指纹后触发生成的开锁指令。或者,开锁指令是通过电子锁的输入面板采集用户输入的密码后触发生成的开锁指令。或者,开锁指令是电子锁的射频卡读取模块读取射频卡的信息后触发生成的开锁指令。The unlocking instruction may be an unlocking instruction sent by the mobile communication terminal received by the communication module (eg, the Bluetooth module or the Internet access module), and the unlocking instruction is triggered by the user after inputting the key in the mobile communication terminal. Alternatively, the unlock command is an unlock command generated by triggering a fingerprint input by the user through an input panel of the electronic lock. Alternatively, the unlock command is an unlock command generated by the user inputting the password through the input panel of the electronic lock. Alternatively, the unlock command is an unlock command generated by the RF card reading module of the electronic lock after reading the information of the RF card.
本申请实施例中,通过管理员的一次电子开锁操作触发电子锁解除反锁状态。In the embodiment of the present application, the electronic lock is triggered to cancel the anti-lock state by an electronic unlocking operation of the administrator.
本申请还提供一种电子锁,该电子锁具有如上实施例公开的电子锁控制系统。The application also provides an electronic lock having an electronic lock control system as disclosed in the above embodiments.
在一实施例中,所述电子锁控制装置包括处理器和存储器,上述第一获取模块和控制模块等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来 实现相应的功能。In an embodiment, the electronic lock control device includes a processor and a memory, and the first acquisition module and the control module are stored as a program unit in a memory, and the processor executes the program unit stored in the memory to implement The corresponding function.
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来对电子锁进行控制。The processor contains a kernel, and the kernel removes the corresponding program unit from the memory. The kernel can be set to one or more, and the electronic lock can be controlled by adjusting the kernel parameters.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory (flash RAM), the memory including at least one Memory chip.
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述电子锁控制方法。Embodiments of the present invention provide a storage medium on which a program is stored, and the electronic lock control method is implemented when the program is executed by a processor.
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述电子锁控制方法。The embodiment of the invention provides a processor for running a program, wherein the electronic lock control method is executed when the program is running.
本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:An embodiment of the present invention provides a device, including a processor, a memory, and a program stored on the memory and executable on the processor. The processor implements the following steps when executing the program:
获取移动通信终端发送的加密的反锁指令;Obtaining an encrypted anti-lock instruction sent by the mobile communication terminal;
对所述加密的反锁指令进行解密;Decrypting the encrypted anti-lock instruction;
判断解密得到的反锁指令是否为预定用户发送的指令;Determining whether the decrypted instruction obtained by the decryption is an instruction sent by a predetermined user;
当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。When the judgment result is that the anti-lock command is an instruction sent by a predetermined user, the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
还可以包括:It can also include:
获取所述移动通信终端发送的加密的解除反锁的指令;Obtaining an encrypted unlocking instruction sent by the mobile communication terminal;
对所述加密的解除反锁的指令进行解密;Decrypting the encrypted unlocked instruction;
判断解密得到的解除反锁的指令是否为预定用户发送的指令;Determining whether the decrypted unlocked instruction is an instruction sent by a predetermined user;
当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When the judgment result is that the instruction for releasing the unlocking is an instruction sent by the predetermined user, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
还可以包括:It can also include:
监测所述电子锁是否在室内被打开;Monitoring whether the electronic lock is opened indoors;
当监测到所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When it is detected that the electronic lock is opened indoors, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
还可以包括:It can also include:
获取开锁指令,该开锁指令中携带有密钥;Obtaining an unlocking instruction, where the unlocking instruction carries a key;
将开锁指令中携带的密钥与存储的密钥进行比对;Comparing the key carried in the unlock command with the stored key;
当比对结果表征存储的密钥中包括开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;When the comparison result indicates that the stored key includes the key carried in the unlocking instruction, determining whether the identification identifier corresponding to the key carried in the unlocking instruction is predetermined according to the correspondence between the preset key and the identification identifier Identification mark
若判断结果为是,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态,并控制电子锁打开。If the judgment result is yes, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked and the electronic lock is controlled to be opened.
本文中的设备可以是服务器、PC、PAD、手机等。The devices in this document can be servers, PCs, PADs, mobile phones, and the like.
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:The present application also provides a computer program product, when executed on a data processing device, adapted to perform a process of initializing the method steps as follows:
获取移动通信终端发送的加密的反锁指令;Obtaining an encrypted anti-lock instruction sent by the mobile communication terminal;
对所述加密的反锁指令进行解密;Decrypting the encrypted anti-lock instruction;
判断解密得到的反锁指令是否为预定用户发送的指令;Determining whether the decrypted instruction obtained by the decryption is an instruction sent by a predetermined user;
当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。When the judgment result is that the anti-lock command is an instruction sent by a predetermined user, the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
还可以包括:It can also include:
获取所述移动通信终端发送的加密的解除反锁的指令;Obtaining an encrypted unlocking instruction sent by the mobile communication terminal;
对所述加密的解除反锁的指令进行解密;Decrypting the encrypted unlocked instruction;
判断解密得到的解除反锁的指令是否为预定用户发送的指令;Determining whether the decrypted unlocked instruction is an instruction sent by a predetermined user;
当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When the judgment result is that the instruction for releasing the unlocking is an instruction sent by the predetermined user, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
还可以包括:It can also include:
监测所述电子锁是否在室内被打开;Monitoring whether the electronic lock is opened indoors;
当监测到所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When it is detected that the electronic lock is opened indoors, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
还可以包括:It can also include:
获取开锁指令,该开锁指令中携带有密钥;Obtaining an unlocking instruction, where the unlocking instruction carries a key;
将开锁指令中携带的密钥与存储的密钥进行比对;Comparing the key carried in the unlock command with the stored key;
当比对结果表征存储的密钥中包括开锁指令中携带的密钥时,依据预设的密钥与识别 标识的对应关系,判断与开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;When the comparison result indicates that the stored key includes the key carried in the unlocking instruction, determining whether the identification identifier corresponding to the key carried in the unlocking instruction is predetermined according to the correspondence between the preset key and the identification identifier Identification mark
若判断结果为是,恢复电子锁的电子开锁功能,以使电子锁解除反锁状态,并控制电子锁打开。If the judgment result is yes, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked and the electronic lock is controlled to be opened.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can 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, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, 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 disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in a process, method, article, or device that comprises the element, without further limitation.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can 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, etc.) including computer usable program code.
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (23)

  1. 一种电子锁控制方法,其特征在于,包括:An electronic lock control method, comprising:
    获取移动通信终端发送的加密的反锁指令;Obtaining an encrypted anti-lock instruction sent by the mobile communication terminal;
    对所述加密的反锁指令进行解密;Decrypting the encrypted anti-lock instruction;
    判断解密得到的反锁指令是否为预定用户发送的指令;Determining whether the decrypted instruction obtained by the decryption is an instruction sent by a predetermined user;
    当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。When the judgment result is that the anti-lock command is an instruction sent by a predetermined user, the electronic unlocking function of the electronic lock is turned off, so that the electronic lock enters an anti-lock state.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    获取所述移动通信终端发送的加密的解除反锁的指令;Obtaining an encrypted unlocking instruction sent by the mobile communication terminal;
    对所述加密的解除反锁的指令进行解密;Decrypting the encrypted unlocked instruction;
    判断解密得到的解除反锁的指令是否为预定用户发送的指令;Determining whether the decrypted unlocked instruction is an instruction sent by a predetermined user;
    当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When the judgment result is that the instruction for releasing the unlocking is an instruction sent by the predetermined user, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  3. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    监测所述电子锁是否在室内被打开;Monitoring whether the electronic lock is opened indoors;
    当监测到所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。When it is detected that the electronic lock is opened indoors, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  4. 根据权利要求3所述的方法,其特征在于,所述监测所述电子锁是否在室内被打开,包括:The method according to claim 3, wherein said monitoring whether said electronic lock is opened indoors comprises:
    监测所述电子锁内位于室内一侧的执手座是否发生第一预置动作;Monitoring whether a first preset action occurs in the handle seat on the indoor side of the electronic lock;
    当所述执手座发生第一预置动作时,确定所述电子锁在室内被打开。When the first preset action occurs in the handle holder, it is determined that the electronic lock is opened indoors.
  5. 根据权利要求3所述的方法,其特征在于,所述监测所述电子锁是否在室内被打开,包括:The method according to claim 3, wherein said monitoring whether said electronic lock is opened indoors comprises:
    监测所述电子锁的锁舌是否收回到所述电子锁内,或者,监测安装所述电子锁的门体是否打开;Monitoring whether the lock tongue of the electronic lock is retracted into the electronic lock, or monitoring whether the door body on which the electronic lock is installed is opened;
    当监测到所述电子锁的锁舌收回到所述电子锁内,或者,所述门体打开时,判断所述电子锁是否是通过预设的机械开锁方式打开;When it is detected that the locking tongue of the electronic lock is retracted into the electronic lock, or when the door body is opened, it is determined whether the electronic lock is opened by a preset mechanical unlocking manner;
    当判断结果为所述电子锁不是通过预设的机械开锁方式打开时,确定所述电子锁在室 内被打开。When it is judged that the electronic lock is not opened by a predetermined mechanical unlocking mode, it is determined that the electronic lock is opened in the chamber.
  6. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    获取开锁指令,所述开锁指令中携带有密钥;Obtaining an unlocking instruction, where the unlocking instruction carries a key;
    将所述开锁指令中携带的密钥与存储的密钥进行比对;Comparing the key carried in the unlocking instruction with the stored key;
    当比对结果表征所述存储的密钥中包括所述开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与所述开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;When the comparison result indicates that the stored key includes the key carried in the unlocking instruction, determining, according to the correspondence between the preset key and the identification identifier, the key corresponding to the key carried in the unlocking instruction Identifying whether the identifier is a predetermined identification identifier;
    若判断结果为是,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态,并控制所述电子锁打开。If the determination result is yes, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked and the electronic lock is controlled to be opened.
  7. 一种电子锁控制装置,其特征在于,包括:An electronic lock control device, comprising:
    第一获取模块,用于获取移动通信终端发送的加密的反锁指令;a first acquiring module, configured to acquire an encrypted anti-locking instruction sent by the mobile communication terminal;
    控制模块,用于对所述加密的反锁指令进行解密;判断解密得到的反锁指令是否为预定用户发送的指令;当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。a control module, configured to: decrypt the encrypted anti-lock instruction; determine whether the decrypted anti-lock instruction is an instruction sent by a predetermined user; and when the judgment result is that the anti-lock instruction is an instruction sent by a predetermined user, close the electronic lock The electronic unlocking function causes the electronic lock to enter an anti-lock state.
  8. 根据权利要求7所述的装置,其特征在于,所述第一获取模块还用于,获取所述移动通信终端发送的加密的解除反锁的指令;The apparatus according to claim 7, wherein the first obtaining module is further configured to acquire an encrypted unlocking instruction sent by the mobile communication terminal;
    所述控制模块还用于,对所述加密的解除反锁的指令进行解密;判断解密得到的解除反锁的指令是否为预定用户发送的指令;当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The control module is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determination result is that the unlocking instruction is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  9. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    监测模块,用于监测所述电子锁是否在室内被打开;a monitoring module, configured to monitor whether the electronic lock is opened indoors;
    所述控制模块还用于,当所述监测模块监测到所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The control module is further configured to: when the monitoring module detects that the electronic lock is opened indoors, restore an electronic unlocking function of the electronic lock, so that the electronic lock is unlocked.
  10. 一种电子锁控制系统,其特征在于,包括:An electronic lock control system, comprising:
    通信模组,用于接收移动通信终端发送的加密的反锁指令;a communication module, configured to receive an encrypted anti-lock command sent by the mobile communication terminal;
    处理器,用于对所述加密的反锁指令进行解密;判断解密得到的反锁指令是否为预定用户发送的指令;当判断结果为所述反锁指令为预定用户发送的指令时,关闭所述电子锁的电子开锁功能,以使所述电子锁进入反锁状态。a processor, configured to decrypt the encrypted anti-lock instruction; determine whether the decrypted anti-lock instruction is an instruction sent by a predetermined user; and when the judgment result is that the anti-lock instruction is an instruction sent by a predetermined user, close the electronic lock The electronic unlocking function causes the electronic lock to enter an anti-lock state.
  11. 根据权利要求10所述的系统,其特征在于,所述通信模组还用于,接收所述移动通信终端发送的加密的解除反锁的指令;The system according to claim 10, wherein the communication module is further configured to receive an encrypted unlocking command sent by the mobile communication terminal;
    所述处理器还用于,对所述加密的解除反锁的指令进行解密;判断解密得到的解除反锁的指令是否为预定用户发送的指令;当判断结果为所述解除反锁的指令为预定用户发送的指令时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The processor is further configured to: decrypt the encrypted unlocked instruction; determine whether the decrypted unlocked instruction is an instruction sent by a predetermined user; and when the determined result is that the unlocked command is sent to a predetermined user In the instruction, the electronic unlocking function of the electronic lock is restored, so that the electronic lock is unlocked.
  12. 根据权利要求10所述的系统,其特征在于,还包括:The system of claim 10, further comprising:
    感应模组,用于采集感应信息,所述感应信息用于表征所述电子锁是否在室内被打开;a sensing module, configured to collect sensing information, where the sensing information is used to indicate whether the electronic lock is opened indoors;
    所述处理器还用于,基于所述感应信息判断所述电子锁是否在室内被打开,当判断出所述电子锁在室内被打开时,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态。The processor is further configured to: determine, according to the sensing information, whether the electronic lock is opened indoors, and when it is determined that the electronic lock is opened indoors, restore an electronic unlocking function of the electronic lock, so that The electronic lock is unlocked.
  13. 根据权利要求12所述的系统,其特征在于,所述感应模组设置于所述电子锁内;The system according to claim 12, wherein the sensing module is disposed in the electronic lock;
    所述感应模组的安装位置与所述电子锁中位于室内一侧的执手座相关联;The mounting position of the sensing module is associated with a handle holder on an indoor side of the electronic lock;
    当所述执手座发生第一预置动作时,所述感应模组采集的感应信息发生变化。When the first preset action occurs in the handle holder, the sensing information collected by the sensing module changes.
  14. 根据权利要求13所述的系统,其特征在于,所述感应模组包括:The system of claim 13 wherein said sensing module comprises:
    第一感应部件,用于生成感应信息;a first sensing component, configured to generate sensing information;
    第二感应部件,用于采集所述第一感应部件生成的感应信息;a second sensing component, configured to collect sensing information generated by the first sensing component;
    所述第一感应部件和第二感应部件中,其中一个感应部件设置于所述执手座上,另一个感应部件设置于所述执手座周围的第一预置区域内,以保证所述执手座发生第一预置动作时,所述第二感应部件采集的感应信息发生变化。One of the first sensing component and the second sensing component is disposed on the handle holder, and another sensing component is disposed in the first preset area around the handle holder to ensure the When the first preset action occurs in the handle holder, the sensing information collected by the second sensing component changes.
  15. 根据权利要求14所述的系统,其特征在于,所述第一感应部件为红外发射传感器,所述第二感应部件为红外接收传感器。The system of claim 14 wherein said first inductive component is an infrared emitting sensor and said second inductive component is an infrared receiving sensor.
  16. 根据权利要求14所述的系统,其特征在于,所述第一感应部件为磁铁,所述第二感应部件为干簧管。The system of claim 14 wherein said first inductive component is a magnet and said second inductive component is a reed switch.
  17. 根据权利要求13所述的系统,其特征在于,所述感应模组包括:The system of claim 13 wherein said sensing module comprises:
    按键,所述按键设置于所述执手座周围的第二预置区域内,以保证所述执手座发生第一预置动作时,所述按键采集的感应信息发生变化。a button is disposed in the second preset area around the handle holder to ensure that the sensing information collected by the button changes when the first preset action occurs in the handle holder.
  18. 根据权利要求12所述的系统,其特征在于,所述感应模组包括:The system of claim 12, wherein the sensing module comprises:
    第一子感应模组,用于采集第一感应信息,所述第一子感应模组的安装位置与所述电 子锁的锁舌相关联,或者,与安装所述电子锁的门体相关联;当所述锁舌收回到所述电子锁内,或者,所述门体被打开时,所述第一感应信息发生变化;a first sub-sensing module, configured to collect first sensing information, where a mounting position of the first sub-sensing module is associated with a locking tongue of the electronic lock, or associated with a door body on which the electronic lock is mounted The first sensing information changes when the locking tongue is retracted into the electronic lock, or when the door body is opened;
    第二子感应模组,用于采集第二感应信息,所述第二子感应模组的安装位置与所述电子锁的机械开锁机构相关联,当所述机械开锁机构发生第二预置动作时,所述第二感应信息发生变化。a second sub-sensing module is configured to collect second sensing information, where a mounting position of the second sub-sensing module is associated with a mechanical unlocking mechanism of the electronic lock, and when the mechanical unlocking mechanism generates a second preset action The second sensing information changes.
  19. 根据权利要求10所述的系统,其特征在于,所述通信模组包括蓝牙模块,或者,互联网接入模块。The system of claim 10 wherein said communication module comprises a Bluetooth module or an internet access module.
  20. 根据权利要求10所述的系统,其特征在于,所述处理器还用于,获取开锁指令,将所述开锁指令中携带的密钥与存储的密钥进行比对;当比对结果表征所述存储的密钥中包括所述开锁指令中携带的密钥时,依据预设的密钥与识别标识的对应关系,判断与所述开锁指令中携带的密钥对应的识别标识是否为预定的识别标识;若判断结果为是,恢复所述电子锁的电子开锁功能,以使所述电子锁解除反锁状态,并控制所述电子锁打开。The system according to claim 10, wherein the processor is further configured to: obtain an unlock command, compare the key carried in the unlock command with the stored key; and compare the result representation When the stored key includes the key carried in the unlocking instruction, determining whether the identification identifier corresponding to the key carried in the unlocking instruction is predetermined according to the correspondence between the preset key and the identification identifier Identifying the identifier; if the determination result is yes, restoring the electronic unlocking function of the electronic lock, so that the electronic lock is unlocked and the electronic lock is controlled to be opened.
  21. 一种电子锁,其特征在于,包括如权利要求10-20任意一项所述的电子锁控制系统。An electronic lock comprising the electronic lock control system of any of claims 10-20.
  22. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行如权利要求1-6中任一项所述的电子锁控制方法。A storage medium, characterized in that the storage medium includes a stored program, wherein the device in which the storage medium is located is controlled to perform the electronic lock control according to any one of claims 1-6 while the program is running method.
  23. 一种计算机程序产品,其特征在于,所述计算机程序产品在终端设备上运行时,使得所述终端设备执行如权利要求1-6任一项所述的电子锁控制方法。A computer program product, wherein the computer program product, when run on a terminal device, causes the terminal device to perform the electronic lock control method according to any one of claims 1-6.
PCT/CN2018/119438 2017-12-06 2018-12-06 Electronic lock and control method, device and system thereof WO2019109964A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201711273738.5 2017-12-06
CN201721677044.3 2017-12-06
CN201711273738.5A CN108049721B (en) 2017-12-06 2017-12-06 Electronic lock, control method, device and system thereof
CN201721677044.3U CN207503302U (en) 2017-12-06 2017-12-06 Electronic lock and its control system

Publications (1)

Publication Number Publication Date
WO2019109964A1 true WO2019109964A1 (en) 2019-06-13

Family

ID=66750814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119438 WO2019109964A1 (en) 2017-12-06 2018-12-06 Electronic lock and control method, device and system thereof

Country Status (1)

Country Link
WO (1) WO2019109964A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE2250109A1 (en) * 2022-02-04 2023-08-05 Assa Abloy Ab Controlling power state of a lock assembly

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104790766A (en) * 2015-03-20 2015-07-22 云丁网络技术(北京)有限公司 Intelligent door lock and identification method for lock state and unlocking legality thereof
CN204946137U (en) * 2015-09-15 2016-01-06 劳海鹏 Judge that smart lock is locked state and controlled the system that its solution locks by mobile terminal
US20160260271A1 (en) * 2015-03-03 2016-09-08 Acsys Ip Holding Inc. Systems and methods for redundant access control systems based on mobile devices
CN107038777A (en) * 2017-03-29 2017-08-11 云丁网络技术(北京)有限公司 A kind of safety communicating method and its intelligent door lock system based on intelligent door lock system
CN108049721A (en) * 2017-12-06 2018-05-18 云丁网络技术(北京)有限公司 Electronic lock and its control method, apparatus and system
CN207503302U (en) * 2017-12-06 2018-06-15 云丁网络技术(北京)有限公司 Electronic lock and its control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160260271A1 (en) * 2015-03-03 2016-09-08 Acsys Ip Holding Inc. Systems and methods for redundant access control systems based on mobile devices
CN104790766A (en) * 2015-03-20 2015-07-22 云丁网络技术(北京)有限公司 Intelligent door lock and identification method for lock state and unlocking legality thereof
CN204946137U (en) * 2015-09-15 2016-01-06 劳海鹏 Judge that smart lock is locked state and controlled the system that its solution locks by mobile terminal
CN107038777A (en) * 2017-03-29 2017-08-11 云丁网络技术(北京)有限公司 A kind of safety communicating method and its intelligent door lock system based on intelligent door lock system
CN108049721A (en) * 2017-12-06 2018-05-18 云丁网络技术(北京)有限公司 Electronic lock and its control method, apparatus and system
CN207503302U (en) * 2017-12-06 2018-06-15 云丁网络技术(北京)有限公司 Electronic lock and its control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE2250109A1 (en) * 2022-02-04 2023-08-05 Assa Abloy Ab Controlling power state of a lock assembly

Similar Documents

Publication Publication Date Title
CN108049721B (en) Electronic lock, control method, device and system thereof
US11348390B2 (en) Padlock device, systems including a padlock device, and methods of operating therefor
Aldawira et al. Door security system for home monitoring based on ESp32
US9359794B2 (en) Method for operating an intelligent door knob
TWI602048B (en) User authentication device
US9725927B1 (en) System for intelligent door knob (handle)
KR101714873B1 (en) Context based data access control
US9563794B2 (en) Method for upgrading RFID readers in situ
US6628198B2 (en) Security system for preventing a personal computer from being stolen or used by unauthorized people
AU2006203768A1 (en) Device authentication using a unidirectional protocol
JP2013217142A (en) State control system, and state control method
CN109982308A (en) It is a kind of to communicate the method and its system for carrying out door lock firmware upgrade by NFC
WO2019109964A1 (en) Electronic lock and control method, device and system thereof
TW201339892A (en) Wireless locking and unlocking system and method thereof
CN114430846A (en) Mobile digital locking technique
WO2019218328A1 (en) Smart door lock wireless communication method, smart door lock, gateway, and communication device
WO2021061497A1 (en) Dynamic generation of device identifiers
US20080191872A1 (en) Method and apparatus for securing an electronic device
JP2015233263A (en) Authentication system and authentication method
CN113850938B (en) Intelligent door lock control method and device, storage medium and electronic equipment
CN106815904B (en) Access control method and device, access control equipment and system
KR20240027751A (en) System and method for secure keyless system
CN112446984A (en) Intelligent door lock control method and device
TW201800652A (en) Door access control system with automatic unlocking function and unlocking method thereof that comprises a door lock controller and an electronic device carried by a user such that when the electronic device is approaching the door lock controller, the door lock controller, upon identifying the user, automatically unlock the door lock
JP2007217903A (en) Key, unlocking device, key device, program for key, and program for unlocking device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18886357

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18886357

Country of ref document: EP

Kind code of ref document: A1