CN108843145A - A kind of method for unlocking based on optic communication, electronic lock and electron key - Google Patents

A kind of method for unlocking based on optic communication, electronic lock and electron key Download PDF

Info

Publication number
CN108843145A
CN108843145A CN201810316611.5A CN201810316611A CN108843145A CN 108843145 A CN108843145 A CN 108843145A CN 201810316611 A CN201810316611 A CN 201810316611A CN 108843145 A CN108843145 A CN 108843145A
Authority
CN
China
Prior art keywords
key
signal
unlocking
unlocking signal
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810316611.5A
Other languages
Chinese (zh)
Other versions
CN108843145B (en
Inventor
张民
赵静
韩大海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201810316611.5A priority Critical patent/CN108843145B/en
Publication of CN108843145A publication Critical patent/CN108843145A/en
Application granted granted Critical
Publication of CN108843145B publication Critical patent/CN108843145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of method for unlocking based on optic communication, electronic lock and electron key.Method includes:If it is determined that electron key is adapted with electronic lock, then the corresponding optical signal of any key in preset-key pond is sent to the electron key as pre- unlocking signal;The unlocking signal that the electron key is sent according to the pre- unlocking signal is received, and the unlocking signal is matched with the pre- unlocking signal, if successful match, executes unlocking operation;Wherein, the electron key and the electronic lock share the preset-key pond, and the preset-key pond is the cipher key sets comprising multiple keys, optical signal corresponding to the key that the unlocking signal is chosen from the preset-key pond for the electron key.Criminal unlocks after method provided in an embodiment of the present invention can be effectively prevented key loss or be stolen, while compensating for the smart lock scope of application and being confined to defect personal, vulnerable to external condition interference.

Description

A kind of method for unlocking based on optic communication, electronic lock and electron key
Technical field
The present embodiments relate to dynamic and intelligent coded lock technology field more particularly to a kind of unlocking sides based on optic communication Method, electronic lock and electron key.
Background technique
Currently, there are mainly two types of the coded lock to circulate on the market sums up:The first is electronic password lock, it have at The advantages of this is low, strong antijamming capability, but electronic password lock is substantially using fixed keyboard-type, so that user is hidden in operation Covering property is low, is easy to be seen or take on the sly, takes so that password is easily stolen, security performance is low.Be for second smart lock (such as:Refer to Line discrimination, face recognition, IC card identification), but the characteristics of this kind of coded lock is often to be suitable for security requirements height and only for a small portion Case, cabinet or the room etc. for dividing people to use.Fingerprint, locking for face recognition are easy to be limited by external condition, poor anti jamming capability;IC Card is easily lost, in addition cost is generally higher, limits the popularization of such finished product to a certain extent.
Summary of the invention
The embodiment of the present invention provides a kind of method for unlocking based on optic communication, electronic lock and electron key, existing to solve There are the low safety locked in technology, narrow application range and defect at high cost, improves safety, expands usage range and drop Low cost.
The embodiment of the present invention provides a kind of method for unlocking based on optic communication, including:
If it is determined that electron key is adapted with electronic lock, then the corresponding optical signal of any key in preset-key pond is made The electron key is sent to for pre- unlocking signal;
Receive the unlocking signal that the electron key is sent according to the pre- unlocking signal, and by the unlocking signal and institute It states pre- unlocking signal to be matched, if successful match, executes unlocking operation;
Wherein, the electron key and the electronic lock share the preset-key pond, the preset-key pond be comprising The cipher key sets of multiple keys, the unlocking signal are right for the key that the electron key is chosen from the preset-key pond The optical signal answered.
The embodiment of the present invention provides a kind of method for unlocking based on optic communication, including:
Receive the pre- unlocking signal that electronic lock is sent;
A key is chosen from preset-key pond according to the pre- unlocking signal, and the corresponding optical signal of the key is made It is sent to the electronic lock for unlocking signal, so that the electronic lock is in the unlocking signal and the pre- unlocking signal matching When success, unlocking operation is executed;
Wherein, the electronic lock and electron key share the preset-key pond, and the preset-key pond is comprising multiple The cipher key sets of key, the pre- unlocking signal are corresponding to the key that the electron key is chosen from the preset-key pond Optical signal.
The embodiment of the present invention provides a kind of electronic lock, including:
First control module, for choosing and appointing from preset-key pond when determining that electron key is adapted with electronic lock One key;
First signal output module, for being sent to institute using the corresponding optical signal of any key as pre- unlocking signal State electron key;
First signal receiving module is believed for receiving the electron key according to the unlocking that the pre- unlocking signal is sent Number;Correspondingly, first control module is also used to match the unlocking signal with the pre- unlocking signal, if With success, then unlocking operation is executed;
Wherein, the electron key and the electronic lock share the preset-key pond, the preset-key pond be comprising The cipher key sets of multiple keys, the unlocking signal are right for the key that the electron key is chosen from the preset-key pond The optical signal answered.
The embodiment of the present invention provides a kind of electron key, including:
Second signal receiving module, for receiving the pre- unlocking signal of electronic lock transmission;
Second control module, for choosing a key from preset-key pond according to the pre- unlocking signal;
Second signal output module, for being sent to the electronics using the corresponding optical signal of the key as unlocking signal Lock, so that the electronic lock in the unlocking signal and the pre- unlocking signal successful match, executes unlocking operation;
Wherein, the electronic lock and electron key share the preset-key pond, and the preset-key pond is comprising multiple The cipher key sets of key, the pre- unlocking signal are corresponding to the key that the electron key is chosen from the preset-key pond Optical signal.
The embodiment of the present invention provides a kind of electronic lock, including memory and processor, the processor and the memory Mutual communication is completed by bus;The memory is stored with the program instruction that can be executed by the processor, the place It opens the electronic lock side that reason device calls described program instruction to be able to carry out the method for unlocking described in the embodiment of the present invention based on optic communication Locking method and its any alternative embodiment the method.
The embodiment of the present invention provides a kind of electron key, including memory and processor, the processor and the storage Device completes mutual communication by bus;The memory is stored with the program instruction that can be executed by the processor, described Processor calls described program to instruct the electron key for being able to carry out the method for unlocking described in the embodiment of the present invention based on optic communication Side method for unlocking and its any alternative embodiment the method.
A kind of method for unlocking based on optic communication, electronic lock and electron key provided in an embodiment of the present invention, " pressing " key After spoon, the signal that lock can issue key judges, if key is adapted to locking phase, lock can issue pre- unlock to key afterwards Signal, key, which receives, just can send unlocking signal to lock after pre- unlocking signal, later lock can verify unlocking signal whether with hold in advance Lock signal matches, and finally decides whether to unlock by lock.Method for unlocking provided in an embodiment of the present invention, can be effectively prevented key Criminal unlocks after losing or being stolen, while compensating for the smart locks scope of application office such as fingerprint identification lock and face recognition lock It is limited to defect personal, vulnerable to external condition interference.Beneficial effect easy to use, safe is reached.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of method for unlocking embodiment flow chart based on optic communication of the present invention;
Fig. 2 is a kind of method for unlocking embodiment flow chart based on optic communication of the present invention;
Fig. 3 is a kind of structure chart of light lock provided in an embodiment of the present invention;
Fig. 4 is a kind of process for using figure of light lock provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic lock example structure block diagram of the present invention;
Fig. 6 is a kind of electron key example structure block diagram of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of method for unlocking embodiment flow chart based on optic communication of the present invention, as shown in Figure 1, this method includes:
If it is determined that electron key is adapted with electronic lock, then the corresponding optical signal of any key in preset-key pond is made The electron key is sent to for pre- unlocking signal.
Receive the unlocking signal that the electron key is sent according to the pre- unlocking signal, and by the unlocking signal and institute It states pre- unlocking signal to be matched, if successful match, executes unlocking operation.
Wherein, the electron key and the electronic lock share the preset-key pond, the preset-key pond be comprising The cipher key sets of multiple keys, the unlocking signal are right for the key that the electron key is chosen from the preset-key pond The optical signal answered.
" light lock " concept is introduced in embodiments of the present invention, and light lock is the coded lock based on wireless light communication, and it includes electricity Sub- key and electron key two parts.For a set of light lock, electron key and electronic lock are adapted, and are based on nothing between the two Linear light Principle of Communication realizes two-way communication.
For a set of light lock, electron key and electronic lock share a pool of keys, wherein " sharing a pool of keys " The meaning be:In electron key and the mutual luminous signal of electronic lock both sides, the key in the pool of keys is all based on to send light Signal.For example, being first to need to choose a key from pool of keys, so when electronic lock sends optical signal to electron key The corresponding optical signal of the key is sent to electron key afterwards.Because this pool of keys be it is pre-set, it can also be claimed For preset-key pond.It wherein, include multiple keys in preset-key pond.Key, that is, signal specific sequence, constituting includes start-stop Flag bit and data bit, data bit can be changed as needed.It should be noted that the preset-key pond can be only located at cloud, Electronic lock and matched electron key share the pool of keys.It is understood that the preset-key pond can also be located at simultaneously In electronic lock and electron key.
Method for unlocking provided in an embodiment of the present invention, executing subject are electronic lock.Electronic lock need to determine that user holds first Whether some electron keys are adapted with the electronic lock, if be adapted, electronic lock can be randomly selected from preset-key pond One key is sent to electron key using the corresponding optical signal of the key as pre- unlocking signal.It should be noted that different close The corresponding optical signal of key is different.
After electron key receives the pre- unlocking signal of electronic lock transmission, the user for holding electron key can unlock according to pre- Signal chooses a key as unlocking signal from preset-key pond and is sent to electronic lock.
After electronic lock receives the unlocking signal of electron key transmission, unlocking signal is matched with pre- unlocking signal, If successful match, electronic lock executes unlocking operation.
It is appreciated that owner selects from preset-key pond if the user for holding electron key is the owner of light lock The key taken must be correctly that in other words, the corresponding optical signal, that is, unlocking signal of the key is centainly matched with pre- unlocking signal. If the user for holding electron key is criminal, then criminal chooses from preset-key pond to the general of correct key Rate is extremely low, and in other words, the probability of unlocking is extremely low.
Method for unlocking provided in an embodiment of the present invention, after " pressing " key, lock can to key issue signal into Row judgement, if key is adapted to locking phase, lock can issue pre- unlocking signal to key afterwards, and key just can after receiving pre- unlocking signal Unlocking signal is sent to lock, lock can verify whether unlocking signal matches with pre- unlocking signal later, finally be decided whether by lock It unlocks.Method for unlocking provided in an embodiment of the present invention, criminal unlocks after key loss can be effectively prevented or be stolen, together When compensate for the smart locks scope of application such as fingerprint identification lock and face recognition lock and be confined to personal, lacking vulnerable to external condition interference It falls into.Beneficial effect easy to use, safe is reached.
Based on the above embodiment, the present embodiment is made an explanation to how determining that electron key is adapted with electronic lock.Determine Electron key is adapted with electronic lock, further includes before:
The trigger signal that the electron key is sent is received, if the corresponding key of the trigger signal is the preset-key Any key in pond then determines that the electron key is adapted with the electronic lock.Otherwise, it is determined that the electron key and institute Electronic lock is stated not to be adapted.
Specifically, electronic lock receives the trigger signal that electron key is sent, if the corresponding key of trigger signal is electronic lock Preset-key pond in some key, then electronic lock determine electron key be adapted with electronic lock.It should be noted that touching Signal the corresponding optical signal of a key randomly selected from the preset-key pond of itself for electron key.
It is understood that electron key and electronic lock share a preset-key pond for a set of light lock, that , the key that electron key is randomly selected from the preset-key pond centainly meet " trigger signal be the preset-key This condition of any key in pond ", therefore, electron key is centainly adapted with electronic lock.
Method for unlocking provided in this embodiment, it is different from the method for unlocking of conventional combination lock.Conventional combination lock receives key It can directly check after the signal of sending, unlock if equal.Method for unlocking provided in this embodiment is receiving key sending After signal 1 (trigger signal), if trigger signal is correct, it can just be extracted from pool of keys and send out a signal 2 to key, needed It is noted that signal 1 and signal 2 do not have positive connection.After key receives signal 2, user is needed to judge that key should Any signal is sent out to lock, when user issues a signal 3 to lock using key, lock can advise after receiving signal 3 according to key Then judge whether signal 3 matches with the signal 2 issued before lock.
In other words, after key receives pre- unlocking signal, need what signal user's judgement should send out to lock.If it is master It if people, will know which type of the signal for opening lock is according to pre- unlocking signal, unlocking signal will be sent out to lock.Lock is received After the signal sent out again to key, if this signal is identical as unlocking signal defined before lock, lock will be opened.
Based on the above embodiment, if it fails to match, again by the corresponding light of any key in the preset-key pond Signal is sent to the electron key as pre- unlocking signal, and receives the unlocking signal that the electron key is sent, and by institute Unlocking signal is stated to be matched with the pre- unlocking signal;If the number of continuous coupling failure is more than preset alarm frequency threshold value, Then execute alarm operation.
Specifically, if it fails to match for the first time, electronic lock can randomly select a key from preset-key pond again It is sent to electron key as pre- unlocking signal, electron key sends unlocking signal again according to the operation of electron key holder Electron lock.Electronic lock matches unlocking signal and pre- unlocking signal, if it fails to match, repeats above-mentioned mistake again Journey.If the number of continuous coupling failure is more than preset alarm frequency threshold value, electronic lock executes alarm operation.
Method for unlocking provided in an embodiment of the present invention, by recording the number of continuous failure of unlocking, when number is more than threshold value Shi Zhihang alarm, improves the safety of light lock.
Based on the above embodiment, the key in the present embodiment is preferably the identical binary sequence of structure.Each binary system Sequence includes start-stop flag bit and data bit.And the corresponding decimal number of all binary sequences is different.Correspondingly, it will unlock Signal is matched with the pre- unlocking signal, further includes before:All keys in the preset-key pond are numbered, Different keys are corresponding to number difference.
Unlocking signal is matched with pre- unlocking signal, further comprises:
If number is XiThe corresponding pre- unlocking signal of key and number be XjThe corresponding unlocking signal of key meet it is following Condition:
Wherein, Z is the number of all keys in the preset-key pond,
The then unlocking signal and the pre- unlocking signal successful match;Otherwise, it fails to match.
Specifically, embodiment as one preferred, it is assumed that Z key is shared in pool of keys, for the convenience of description, enabling Z =2n+1, n are non-zero positive integer, and key is using binary coding and can be converted with the decimal system.If 2n+1 signal The number of sequence is respectively X1、X2、X3、……、X2n+1。X1、X2、X3、……、X2n+1The value referred to is binary system, or The Binary Conversion at decimal value.For example, when determine electron key be adapted with electronic lock after, electronic lock can from preset It is X that a number is extracted in pool of keysiKey be sent to electron key as pre- unlocking signal, electron key is by the pre- unlocking The corresponding binary sequence of signal, which is converted into being shown to user after decimal value, to be seen, user according to the decimal value, A key is extracted from preset-key pond, is sent to electronic lock using the key as unlocking signal.Only when unlocking signal pair The number for the key answered is XjWhen, electronic lock just executes unlocking operation.It should be noted that subscript i and j needs to meet at this time:Work as i When≤n+1, j=i+n and as i > n+1, the condition of j=i-n-1 just illustrates that unlocking signal matches with pre- unlocking signal.It needs It is noted that above-mentioned matching verification method only has the owner of key to know.
Fig. 2 is a kind of method for unlocking embodiment flow chart based on optic communication of the present invention, as shown in Fig. 2, this method includes:
Receive the pre- unlocking signal that electronic lock is sent;
A key is chosen from preset-key pond according to the pre- unlocking signal, and the corresponding optical signal of the key is made It is sent to the electronic lock for unlocking signal, so that the electronic lock is in the unlocking signal and the pre- unlocking signal matching When success, unlocking operation is executed;
Wherein, the electronic lock and electron key share the preset-key pond, and the preset-key pond is comprising multiple The cipher key sets of key, the pre- unlocking signal are corresponding to the key that the electron key is chosen from the preset-key pond Optical signal.
Method for unlocking provided in an embodiment of the present invention, executing subject are electron key.Electron key receives electronic lock hair After the pre- unlocking signal sent, according to the operation of user, a key is chosen from preset-key pond, and the key is corresponding Optical signal is sent to electronic lock as unlocking signal, so that electronic lock is in unlocking signal and pre- unlocking signal successful match, Execute unlocking operation.
It should be noted that faulty electronic lock is adapted the present embodiment with electron key.It is on how to both determining It is no to be adapted to and how to determine that unlocking signal has illustrated in the above-described embodiments with the whether matched process of pre- unlocking signal, Details are not described herein again.
Based on the above embodiment, described that a key is chosen from preset-key pond according to the pre- unlocking signal, into one Step includes:
If the number of the corresponding key of the pre- unlocking signal is Xi, then number is chosen in the preset-key pond is Xj Key as the unlocking signal;Wherein,
Z is the number of all keys in the preset-key pond.
It should be noted that the owner of only electron key, which just will appreciate that, sends letter of unlocking to electronic lock according to the method described above Number.
The embodiment of the present invention provides method for unlocking, and after " pressing " key, the signal that lock can issue key judge, If key is adapted to locking phase, lock can issue pre- unlocking signal to key afterwards, and key can just be sent out after receiving pre- unlocking signal to lock Unlocking signal is sent, lock can verify whether unlocking signal matches with pre- unlocking signal later, finally decide whether to unlock by lock.This The method for unlocking that inventive embodiments provide, criminal unlocks after key loss can be effectively prevented or be stolen, and makes up simultaneously The smart locks scope of application such as fingerprint identification lock and face recognition lock is confined to defect personal, vulnerable to external condition interference.It reaches Beneficial effect easy to use, safe is arrived.
The embodiment of the present invention provides a kind of electronic lock, which includes:
First control module, for choosing and appointing from preset-key pond when determining that electron key is adapted with electronic lock One key;
First signal output module, for being sent to institute using the corresponding optical signal of any key as pre- unlocking signal State electron key;
First signal receiving module is believed for receiving the electron key according to the unlocking that the pre- unlocking signal is sent Number;Correspondingly, first control module is also used to match the unlocking signal with the pre- unlocking signal, if With success, then unlocking operation is executed;
Wherein, the electron key and the electronic lock share the preset-key pond, the preset-key pond be comprising The cipher key sets of multiple keys, the unlocking signal are right for the key that the electron key is chosen from the preset-key pond The optical signal answered.
It should be noted that the electronic lock of the embodiment of the present invention can be used for executing it is shown in FIG. 1 a kind of based on optic communication The technical solution of method for unlocking embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Wherein, first signal receiving module is also used to receive the trigger signal that the electron key is sent;Accordingly Ground, first control module, is also used to determine whether the electron key is adapted with the electronic lock.
On the basis of the above embodiments, the electronic lock in the present embodiment further includes:
First display module, for showing the status information of the electronic lock, the status information include unlock successfully, it is close Any one of code mistake and alarm.
The embodiment of the present invention provides a kind of electron key, which includes:Second signal receiving module, for receiving The pre- unlocking signal that electronic lock is sent;
Second control module, for choosing a key from preset-key pond according to the pre- unlocking signal;
Second signal output module, for being sent to the electronics using the corresponding optical signal of the key as unlocking signal Lock, so that the electronic lock in the unlocking signal and the pre- unlocking signal successful match, executes unlocking operation;
Wherein, the electronic lock and electron key share the preset-key pond, and the preset-key pond is comprising multiple The cipher key sets of key, the pre- unlocking signal are corresponding to the key that the electron key is chosen from the preset-key pond Optical signal.
It should be noted that the electronic lock of the embodiment of the present invention can be used for executing it is shown in Fig. 2 a kind of based on optic communication The technical solution of method for unlocking embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
As a preferred embodiment, the present embodiment will be in conjunction with the electronic lock and electron key for attached drawing in Mingguang City's lock Communication process.Fig. 3 is a kind of structure chart of light lock provided in an embodiment of the present invention, as shown in Figure 3:
Electron key is made of second signal output module, second signal receiving module and the second control module.Second letter The output of number output module is visible LED optical signal, and wavelength band is 380~780nm, passes through the journey in the second control module Sequence control, electron key can issue particular sequence optical signal (trigger signal) to electronic lock, can also then be connect by signal It receives module and receives the particular sequence optical signal (pre- unlocking signal) that electronic lock is replied to electron key.It is logical relative to infrared light Letter, it is seen that optic communication have it is radiationless, to no damage to human body, cheap and be not easy by advantages such as Electromagnetic Interferences.Furthermore Visible light communication also have many advantages, such as it is environmentally protective, have a wide range of application, communication band is roomy and data density is high.
Electronic lock is by the first signal output module, the first signal receiving module, the first control module and the first display module Composition.Electronic lock can pass through the first signal output module and the first control after the trigger signal for receiving electron key transmission Module sends pre- unlocking signal to electron key, receives the unlocking signal that electron key issues afterwards and carries out key to it and tests Card finally judges whether to execute unlocking instruction.First display module can show three kinds of unlocking, password mistake and alarm situations.
The functional module introduction of electronic lock:
First signal output module includes visible LED and pool of keys, and pool of keys is a series of set of keys, the present invention Middle electron key and electronic lock use same pool of keys, and key, that is, signal specific sequence, constituting includes start-stop flag bit sum number According to position, wherein data bit can according to need change.
First signal receiving module uses PIN photodiode, for converting optical signals to electric signal.
First control module includes key authentication and wireless light communication control.It is mainly used for key authentication and system control.
As a preferred embodiment, the present embodiment will be in conjunction with the electronic lock and electron key for attached drawing in Mingguang City's lock Use process.Fig. 4 is a kind of process for using figure of light lock provided in an embodiment of the present invention, as shown in Figure 4:
Step 1:Electron key and electronic lock initialization.
Step 2:Electron key randomly selects a key as touching by signal output module from the pool of keys of itself Signalling is sent to electronic lock.
Step 3:Using wireless light communication, the signal receiving module of electronic lock receives trigger signal and passes through control module In the program finished judge whether trigger signal meets the requirements.It is verified, if trigger signal is close in the pool of keys of electronic lock One of key then illustrates that trigger signal meets the requirements, and electronic lock is triggered, and the signal output module of electronic lock can be from pool of keys later In randomly select a key as pre- unlocking signal 1 and be sent to electron key.If trigger signal is undesirable, electronic lock will Do not react.
Step 4:The signal receiving module of electron key receives the pre- unlocking signal 1 sent by electronic lock, by controlling mould The program finished in block analyzes pre- unlocking signal 1, then user based on the analysis results, by electron key to electricity Son lock sends a unlocking signal 1.
Step 5:The signal receiving module of electronic lock receives unlocking signal 1, is sentenced by the program finished in control module The pre- unlocking signal 1 whether lock signal 1 issues with the signal output module of electronic lock before is disconnected to match.If unlocking signal 1 Match with pre- unlocking signal 1, then the indicator light that " unlocking " is represented in display module is bright, and lock is opened.If unlocking signal 1 with open in advance Lock signal 1 mismatches, then the indicator light that " password mistake " is represented in display module is bright, and lock remains off, while electronic lock Can one key of arbitrary extracting as pre- unlocking signal 2 is sent to electron key from pool of keys again, repeat step 4, electronics Key can send a unlocking signal 2 to electronic lock again according to key rule and pre- unlocking signal 2, and electronic lock can be again later Judge whether unlocking signal 2 matches with pre- unlocking signal 2, so analogize, electronic lock can at most be sent three times to electron key Pre- unlocking signal, if the unlocking signal that electronic lock receives matches with the pre- unlocking signal previously issued, generation in display module The indicator light of table " unlocking " is bright, and lock is opened;If mismatching, the indicator light that " password mistake " is represented in display module is bright, and lock is protected Hold closed state.If after three times, password still mistake, then the indicator light for representing Alarm in display module is bright, system can be from Lock, will be unable to be inputted.
Step 6:When self-locking state occurs in system, user must press reset key, and system is resetted again, restore just Often work.
Fig. 5 is a kind of electronic lock example structure block diagram of the present invention, as shown in figure 5, the Lock-Picking Devices include:Processor (processor) 501, memory (memory) 502 and bus 503;Wherein, the processor 501 and the memory 502 are logical It crosses the bus 503 and completes mutual communication;The processor 501 is used to call the program instruction in the memory 502, To execute method provided by above-mentioned each method embodiment, for example including:If it is determined that electron key is adapted with electronic lock, then will The corresponding optical signal of any key in preset-key pond is sent to the electron key as pre- unlocking signal;Receive the electricity The unlocking signal that sub- key is sent according to the pre- unlocking signal, and the unlocking signal and the pre- unlocking signal are carried out Match, if successful match, executes unlocking operation.
Fig. 6 is a kind of electron key example structure block diagram of the present invention, as shown in fig. 6, the positioning device includes:Processing Device (processor) 601, memory (memory) 602 and bus 603;Wherein, the processor 601 and the memory 602 Mutual communication is completed by the bus 603;The processor 601 is for calling the program in the memory 602 to refer to It enables, to execute method provided by above-mentioned each method embodiment, for example including:Receive the pre- unlocking signal that electronic lock is sent;Root A key is chosen from preset-key pond according to the pre- unlocking signal, using the corresponding optical signal of the key as unlocking signal It is sent to the electronic lock, so that the electronic lock is held in the unlocking signal and the pre- unlocking signal successful match Row unlocking operation
The embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-transient including being stored in Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt When computer executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example including:If it is determined that electronics key Spoon is adapted with electronic lock, then the corresponding optical signal of any key in preset-key pond is sent to institute as pre- unlocking signal State electron key;Receive the unlocking signal that the electron key is sent according to the pre- unlocking signal, and by the unlocking signal It is matched with the pre- unlocking signal, if successful match, executes unlocking operation.
The embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-transient including being stored in Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt When computer executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example including:Receive electronic lock hair The pre- unlocking signal sent;A key is chosen from preset-key pond according to the pre- unlocking signal, the key is corresponding Optical signal is sent to the electronic lock as unlocking signal, so that the electronic lock is in the unlocking signal and the pre- unlocking When Signal Matching success, unlocking operation is executed.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage Medium storing computer instruction, the computer instruction make the computer execute side provided by above-mentioned each method embodiment Method, for example including:If it is determined that electron key is adapted with electronic lock, then the corresponding light of any key in preset-key pond is believed Number the electron key is sent to as pre- unlocking signal;The electron key is received to be opened according to what the pre- unlocking signal was sent Lock signal, and the unlocking signal is matched with the pre- unlocking signal, if successful match, execute unlocking operation.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage Medium storing computer instruction, the computer instruction make the computer execute side provided by above-mentioned each method embodiment Method, for example including:Receive the pre- unlocking signal that electronic lock is sent;One is chosen from preset-key pond according to the pre- unlocking signal A key is sent to the electronic lock using the corresponding optical signal of the key as unlocking signal, so that the electronic lock exists When the unlocking signal and the pre- unlocking signal successful match, unlocking operation is executed.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that:It still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of method for unlocking based on optic communication, which is characterized in that including:
If it is determined that electron key is adapted with electronic lock, then using the corresponding optical signal of any key in preset-key pond as pre- Unlocking signal is sent to the electron key;
Receive the unlocking signal that the electron key is sent according to the pre- unlocking signal, and by the unlocking signal with it is described pre- Unlocking signal is matched, if successful match, executes unlocking operation;
Wherein, the electron key and the electronic lock share the preset-key pond, and the preset-key pond is comprising multiple The cipher key sets of key, the unlocking signal are corresponding to the key that the electron key is chosen from the preset-key pond Optical signal.
2. the method according to claim 1, wherein the judgement electron key is adapted with electronic lock, before Further include:
The trigger signal that the electron key is sent is received, if the corresponding key of the trigger signal is in the preset-key pond Any key, then determine that the electron key is adapted with the electronic lock.
3. the method according to claim 1, wherein further including:
If it fails to match, the corresponding optical signal of any key in the preset-key pond is sent to as pre- unlocking signal The electron key, and the unlocking signal that the electron key is sent is received, and the unlocking signal and the pre- unlocking are believed It number is matched;
If the number of continuous coupling failure is more than preset alarm frequency threshold value, alarm operation is executed.
4. the method according to claim 1, wherein by the unlocking signal and the pre- unlocking signal progress Match, further includes before:
All keys in the preset-key pond are numbered, different keys are corresponding to number difference;Correspondingly,
It is described to match the unlocking signal with the pre- unlocking signal, further comprise:
If number is XiThe corresponding pre- unlocking signal of key and number be XjThe corresponding unlocking signal of key meet following item Part:
Wherein, Z is the number of all keys in the preset-key pond,
The then unlocking signal and the pre- unlocking signal successful match;Otherwise, it fails to match.
5. a kind of method for unlocking based on optic communication, which is characterized in that including:
Receive the pre- unlocking signal that electronic lock is sent;
A key is chosen from preset-key pond according to the pre- unlocking signal, using the corresponding optical signal of the key as opening Lock signal is sent to the electronic lock, so that the electronic lock is in the unlocking signal and the pre- unlocking signal successful match When, execute unlocking operation;
Wherein, the electronic lock and electron key share the preset-key pond, and the preset-key pond is to include multiple keys Cipher key sets, the pre- unlocking signal is light corresponding to the key chosen from the preset-key pond of the electron key Signal.
6. according to the method described in claim 5, it is characterized in that, it is described according to the pre- unlocking signal from preset-key pond A key is chosen, further comprises:
If the number of the corresponding key of the pre- unlocking signal is Xi, then number is chosen in the preset-key pond is XjIt is close Key is as the unlocking signal;Wherein,
Z is the number of all keys in the preset-key pond.
7. a kind of electronic lock, which is characterized in that including:
First control module, for being chosen from preset-key pond any close when determining that electron key is adapted with electronic lock Key;
First signal output module, for being sent to the electricity using the corresponding optical signal of any key as pre- unlocking signal Sub- key;
First signal receiving module, the unlocking signal sent for receiving the electron key according to the pre- unlocking signal;Phase Ying Di, first control module are also used to match the unlocking signal with the pre- unlocking signal, if matching at Function then executes unlocking operation;
Wherein, the electron key and the electronic lock share the preset-key pond, and the preset-key pond is comprising multiple The cipher key sets of key, the unlocking signal are corresponding to the key that the electron key is chosen from the preset-key pond Optical signal.
8. a kind of electron key, which is characterized in that including:
Second signal receiving module, for receiving the pre- unlocking signal of electronic lock transmission;
Second control module, for choosing a key from preset-key pond according to the pre- unlocking signal;
Second signal output module, for being sent to the electronic lock using the corresponding optical signal of the key as unlocking signal, So that the electronic lock in the unlocking signal and the pre- unlocking signal successful match, executes unlocking operation;
Wherein, the electronic lock and electron key share the preset-key pond, and the preset-key pond is to include multiple keys Cipher key sets, the pre- unlocking signal is light corresponding to the key chosen from the preset-key pond of the electron key Signal.
9. a kind of electronic lock, which is characterized in that including memory and processor, the processor and the memory pass through bus Complete mutual communication;The memory is stored with the program instruction that can be executed by the processor, and the processor calls Described program instruction is able to carry out the method as described in Claims 1-4 is any.
10. a kind of electron key, which is characterized in that including memory and processor, the processor and the memory pass through Bus completes mutual communication;The memory is stored with the program instruction that can be executed by the processor, the processor Described program instruction is called to be able to carry out the method as described in claim 5 to 6 is any.
CN201810316611.5A 2018-04-10 2018-04-10 A kind of method for unlocking based on optic communication, electronic lock and electron key Active CN108843145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810316611.5A CN108843145B (en) 2018-04-10 2018-04-10 A kind of method for unlocking based on optic communication, electronic lock and electron key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810316611.5A CN108843145B (en) 2018-04-10 2018-04-10 A kind of method for unlocking based on optic communication, electronic lock and electron key

Publications (2)

Publication Number Publication Date
CN108843145A true CN108843145A (en) 2018-11-20
CN108843145B CN108843145B (en) 2019-07-16

Family

ID=64211928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810316611.5A Active CN108843145B (en) 2018-04-10 2018-04-10 A kind of method for unlocking based on optic communication, electronic lock and electron key

Country Status (1)

Country Link
CN (1) CN108843145B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110656819A (en) * 2019-09-18 2020-01-07 上海电机学院 Optical signal intelligent lock based on embedded system
CN115063907A (en) * 2021-12-30 2022-09-16 广西金网通电子科技有限公司 Data processing method, equipment and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321236A (en) * 2014-07-30 2016-02-10 许加庆 Bluetooth bidirectional communication intelligent lock
CN105931331A (en) * 2016-04-20 2016-09-07 上海斐讯数据通信技术有限公司 Intelligent lock based on optical communication and unlocking method
US20170103595A1 (en) * 2015-10-09 2017-04-13 Wal-Mart Stores, Inc. Apparatus and method for securing merchandise with optical lock and key

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105321236A (en) * 2014-07-30 2016-02-10 许加庆 Bluetooth bidirectional communication intelligent lock
US20170103595A1 (en) * 2015-10-09 2017-04-13 Wal-Mart Stores, Inc. Apparatus and method for securing merchandise with optical lock and key
CN105931331A (en) * 2016-04-20 2016-09-07 上海斐讯数据通信技术有限公司 Intelligent lock based on optical communication and unlocking method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110656819A (en) * 2019-09-18 2020-01-07 上海电机学院 Optical signal intelligent lock based on embedded system
CN115063907A (en) * 2021-12-30 2022-09-16 广西金网通电子科技有限公司 Data processing method, equipment and system
CN115063907B (en) * 2021-12-30 2024-03-22 广西处处通电子科技有限公司 Data processing method, device and system

Also Published As

Publication number Publication date
CN108843145B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN101038619B (en) Radio frequency recognition system privacy identification method
CN105554035B (en) A kind of electronic lock system and its control method
CN104796534B (en) A kind of information content processing method and processing device
CN106780866A (en) Gate control system based on living things feature recognition
CN108843145B (en) A kind of method for unlocking based on optic communication, electronic lock and electron key
CN103929425B (en) A kind of identity registration, identity authentication method, equipment and system
CN103034417A (en) Unlocking method for touch screen and terminal equipment
CN107295016A (en) Auth method and device
CN106650361A (en) Unblocking method and device
Teh et al. NFC smartphone based access control system using information hiding
CN106778178A (en) The call method and device of fingerprint business card
CN101470795A (en) Communication method and apparatus in wireless radio frequency recognition system
Govindraj et al. Smart door using biometric NFC band and OTP based methods
CN108830091A (en) A method of for protecting information security of intelligent terminal
US20160300416A1 (en) Electronic Lock and Verification Method for Unlocking the Same
CN106981152A (en) Intelligent anti-theft system, prevent network intrusions method and anti-theft alarming method
CN101980309A (en) Near field communication (NFC) mobile terminal and NFC safety payment realizing method
CN103914893A (en) Electronic lock system adopting barcode
CN105986734B (en) The unlocking method of intelligent safe
CN103236093A (en) Identity recognition technology based escorting box management method
CN106454688A (en) Device unlocking method and device
CN110232762A (en) M1 card cabinet door electronic lock copy prevention method
CN109064197A (en) A kind of supply chain opening registration and Verification System and method based on block chain
CN107170080A (en) A kind of synchronous code encryption device and method for gate control system
CN108052831A (en) Image watermarking and display methods, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant