CN108877010A - Electronic lock system - Google Patents

Electronic lock system Download PDF

Info

Publication number
CN108877010A
CN108877010A CN201810733587.5A CN201810733587A CN108877010A CN 108877010 A CN108877010 A CN 108877010A CN 201810733587 A CN201810733587 A CN 201810733587A CN 108877010 A CN108877010 A CN 108877010A
Authority
CN
China
Prior art keywords
electronic lock
key
data processing
processing module
electron key
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.)
Pending
Application number
CN201810733587.5A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810733587.5A priority Critical patent/CN108877010A/en
Publication of CN108877010A publication Critical patent/CN108877010A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • 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/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/00412Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal being encrypted

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present invention provides a kind of electronic lock system, including electron key and electronic lock, electron key include:Instruction triggers device;The first data processing module being connected with instruction triggers device, for generating corresponding operational order to the operation of instruction triggers device according to user;The first data transmission module being connected with the first data processing module, for the key information of operational order and electron key to be sent to electronic lock, electronic lock includes:Second data transmission module, for receiving the key information of operational order and electron key;The second data processing module being connected with the second data transmission module, for being based on operational order and key information, it establishes and stores the cipher key relation between electronic lock and electron key, and remove cipher key relation, and it is unlocked according to the first unlocking instruction and cipher key relation control electronic lock, it is also used to control electronic lock and opens or closes guest state, and unlocked after electronic lock opens guest state according to the second unlocking instruction and cipher key relation control electronic lock.

Description

Electronic lock system
Technical field
The present invention relates to electronic lock technical fields, and in particular to a kind of electronic lock system.
Background technique
Now with the development of electronic technology, quick light electronic lock initially enters the public visual field, but current electricity Son lock is generally using quick unlocking manners such as key-press input password, fingerprint recognition, face recognition, radio-frequency card, bluetooths, with certain The safety of degree exchanges convenience, and the acquisition identification module that most of needs are relatively complicated for, increases electronic lock Cost causes certain restrictions in the number of the number and extension electron key that extend electronic lock.
Summary of the invention
The present invention is to solve that current electronic lock degree of safety is more single to be inconvenient to adjust extension, cannot easily according to using when Between or accidental high-frequency service condition to electronic lock carrying out reduce degree of safety and the skill for the adjustment appropriate such as increase convenience Art problem provides a kind of electronic lock system.
The technical solution adopted by the present invention is as follows:
A kind of electronic lock system, including electron key and electronic lock, wherein
The electron key includes:
Instruction triggers device, described instruction trigger device is for receiving user's operation;
First data processing module, first data processing module are connected with described instruction trigger device, and described first Data processing module is used to generate corresponding operational order to the operation of described instruction trigger device according to user, wherein described Operational order includes that cipher key relation establishes instruction, cipher key relation clearance order, the first unlocking instruction, the second unlocking instruction, visitor Status switching instruction and licensing status switch order;
First data transmission module, the first data transmission module is connected with first data processing module, described First data transmission module is used to the key information of the operational order and the electron key being sent to the electronic lock,
The electronic lock includes:
Second data transmission module, second data transmission module and the first data transmission module establish connection pass After system, the key information of the operational order and the electron key is received;
Second data processing module, second data processing module is connected with second data transmission module, described Second data processing module is used to establish the key information and the electronics of instruction, the electron key according to the cipher key relation The cipher key relation between the electronic lock and the electron key is established and stored to the key information of lock, and is closed according to the key It is that clearance order removes the cipher key relation, and controls the electronics according to first unlocking instruction and the cipher key relation Lock is unlocked, second data processing module be also used to be controlled according to the guest state switch order electronic lock open or Guest state is closed, and is closed after the electronic lock opens the guest state according to second unlocking instruction and the key System controls the electronic lock and unlocks.
The electronic lock further includes:Lock status sensing module, the lock status sensing module and second data processing Module is connected, and the lock status sensing module is used to detect the opening and closing lock status of the electronic lock;Lock opening and closing motor drive mechanism, it is described Lock opening and closing motor drive mechanism is connected with second data processing module, and second data processing module is opened by controlling the lock Motor drive mechanism is closed to control the electronic lock and unlock or be latched.
First data processing module and second data processing module include corresponding processor, memory and Controller.
The first data transmission module and second data transmission module include corresponding physical interface and data Signal circuit.
The cipher key relation is established with the electronic lock and possesses the first of the electron key of licensing status opening and closing permission Data transmission module sends licensing status switch order to the second data transmission module of the electronic lock, and the of the electronic lock Two data processing modules control the electronic lock according to the licensing status switch order and the cipher key relation and open or close Licensing status, after the electronic lock opens the licensing status, the first data transmission module also receives second number According to the key information for the electronic lock that transmission module is sent, first data processing module is built also according to the cipher key relation The key information of vertical instruction, the key information of the electron key and the electronic lock establish and store the electronic lock with it is described Cipher key relation between electron key, and the cipher key relation is removed according to the cipher key relation clearance order.
The operational order further includes reset indication, first data processing module and second data processing module The information of itself storage is reset also according to the reset indication.
The electron key or the electronic lock are multiple.
The electronic lock system further includes power supply, and the power supply is arranged in the electron key and/or the electronic lock In.
The electronic lock system further includes external signal output equipment, opens the guest state in the electronic lock Afterwards, and after second data transmission module and the external signal output equipment establish signal connection relationship, described second Data transmission module receives the external unlocking signal of the external signal output equipment, the direct root of the second data processing module The electronic lock is controlled according to the external unlocking signal to unlock.
The electron key and the electronic lock include the MCU (Microcontroller of model HT66F70A Unit, micro-control unit, also known as single-chip microcontroller).
Beneficial effects of the present invention:
Electronic lock system of the invention is realized by information transmitting, the ability stored between electron key and electronic lock The Dynamic link library of electron key and electronic lock, list may be implemented can be more electronics according to user's actual use correspondence electron key Lock, list can actually use electronic lock according to user corresponding more electron key;By setting guest state, it can be achieved that other electricity Sub- lock system is used in conjunction with electronic lock system of the present invention, establishes the composite electronic lock system of adjustable degree of safety and convenient degree System, gives user to adjust the convenient degree of the composite electronic lock system according to its practical service condition, it is better to give user Usage experience;By the foundation and removing of cipher key relation, may be implemented to lead to when losing the electron key in electronic lock system It crosses certain means and it is removed to the electron key progress full powers limit recycling of loss in inside to the electronic lock in electronic lock system The relevant information for establishing cipher key relation that is stored in electronic lock or change that its own uses to key, to improve electronic lock Safety and guarantee that electronic lock remains to safely reuse again when losing electron key.
Detailed description of the invention
Fig. 1 is the block diagram of the electronic lock system of the embodiment of the present invention;
Fig. 2 is the block diagram of the electronic lock of one embodiment of the invention;
Fig. 3 is the block diagram of the electron key of one embodiment of the invention;
Fig. 4 is the structural schematic diagram of the electronic lock system of one embodiment of the invention;
Fig. 5 is the circuit structure diagram of the electron key of a specific embodiment of the invention;
Fig. 6 is the circuit structure diagram of the electronic lock of a specific embodiment of the invention;
Fig. 7 is the partial process view of the control method of the electronic lock system of a specific embodiment of the invention;
Fig. 8 is that the electronic lock of a specific embodiment of the invention establishes the flow chart of cipher key relation with electron key;
Fig. 9 is the flow chart of the unlocking control method under the guest state of a specific embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the electronic lock system of the embodiment of the present invention, including electron key 10 and electronic lock 20.Electron key 10 include instruction triggers device 11, the first data processing module 12 and first data transmission module 13, and instruction triggers device 11 is used In reception user's operation;First data processing module 12 is connected with instruction triggers device 11, and the first data processing module 12 is used for Corresponding operational order is generated to the operation of instruction triggers device 11 according to user, wherein operational order includes that cipher key relation is built Vertical instruction, cipher key relation clearance order, the first unlocking instruction, the second unlocking instruction, guest state switch order and licensing status Switch order;First data transmission module 13 is connected with the first data processing module 12, and first data transmission module 13 is used for will The key information of operational order and electron key 10 is sent to electronic lock 20.Electronic lock 20 includes 21 He of the second data transmission module Second data processing module 22 receives after second data transmission module 21 establishes a connection with first data transmission module 13 The key information of operational order and electron key;Second data processing module 22 is connected with the second data transmission module 21, and second The key that data processing module 22 is used to establish instruction, the key information of electron key 10 and electronic lock 20 according to cipher key relation is believed Breath, which is established, simultaneously stores the cipher key relation between electronic lock 20 and electron key 10, and it is close according to cipher key relation clearance order to remove this Key relationship, and unlocked according to the first unlocking instruction and cipher key relation control electronic lock 20, the second data processing module 22 is also used Guest state is opened or closed in controlling electronic lock 20 according to guest state switch order, and opens guest state in electronic lock 20 It is unlocked afterwards according to the second unlocking instruction and cipher key relation control electronic lock 20.
Further, cipher key relation is established with electronic lock 20 and possess the electron key 10 of licensing status opening and closing permission First data transmission module 13 can send licensing status switch order, electronic lock to the second data transmission module 21 of electronic lock 20 20 the second data processing module 22 can be opened or be closed according to the licensing status switch order and cipher key relation control electronic lock 20 Close licensing status.
In one embodiment of the invention, the process for opening licensing status specifically includes:It is opened and closed and weighs with licensing status 10 pairs of electron key of electronic lock 20 of limit sends licensing status opening and closing signal, and electronic lock 20 confirms that electron key 10 has opening and closing Sending after licensing status permission allows the electron key 10 of identification signal extremely, is sent to the close of electronic lock 20 according to electron key 10 The counterpart keys that key is stored with itself are identified, are obtained recognition result and are opened licensing status to be correctly rear.Open visitor's shape The process of state specifically includes:10 pairs of electron key of the electronic lock 20 with guest state opening and closing permission sends licensing status opening and closing Signal, electronic lock 20, which confirms, sends the electron key of permission identification signal extremely after electron key 10 has opening and closing guest state permission 10, the counterpart keys that the key according to transmitted by electron key 10 to electronic lock 20 is stored with itself are identified, are identified It as a result and is correct rear unlatching guest state.
In one embodiment of the invention, as shown in Fig. 2, electronic lock 20 further includes that lock status sensing module 23 and lock are opened Motor drive mechanism 24 is closed, lock status sensing module 23 is connected with the second data processing module 22, and lock status sensing module 23 is for examining Survey the opening and closing lock status of electronic lock 20;Lock opening and closing motor drive mechanism 24 is connected with the second data processing module 22, the second data processing Module 22 controls the unlocking of electronic lock 20 or locking by control lock opening and closing motor drive mechanism 24.
As shown in Figures 2 and 3, the first data processing module 12 and the second data processing module 22 include corresponding processing Device, memory and controller, first data transmission module 13 and the second data transmission module 21 include corresponding physical interface And data signaling circuit.
In one embodiment of the invention, after electronic lock 20 opens licensing status, first data transmission module 13 is also The key information of the electronic lock 20 of the second data transmission module 21 transmission is received, the first data processing module 12 is closed also according to key The key information that system establishes instruction, the key information of electron key 10 and electronic lock 20 is established and stores electronic lock 20 and electronics key Cipher key relation between spoon 10, and the cipher key relation is removed according to cipher key relation clearance order.
Further, operational order may also include blocking order and reset indication, and the second data processing module 22 can basis Blocking order and cipher key relation control electronic lock 20 are latched, the first data processing module 12 and second data processing module 22 The information of itself storage can be also reset according to reset indication.
In one embodiment of the invention, electron key 10 or electronic lock 20 are multiple.That is, electron key 10 and electronic lock 20 can have the relational structure of multi-to-multi, i.e., single electron key 10 can be established with multiple electronic locks 20 Cipher key relation or single electronic lock 20 can establish cipher key relation with corresponding multiple electron key 10.
In one embodiment of the invention, electronic lock system further includes power supply, power supply may be provided at electron key and/or In electronic lock.That is, power supply may be disposed in electron key 10, or in the electronic lock 20 being set to or electronic lock 20 with Power supply is provided in electron key 10.It is main when electron key 10 is connected with the electronic lock 20 by corresponding physical interface It realizes the interconnection of respective data transmission module, while the direction with power supply can also be made to supply not with a side of power supply Electricity.In one embodiment of the invention, power supply and electronic lock 20 and electron key 10 used in lock opening and closing motor drive mechanism 24 Used power supply is identical.
In one embodiment of the invention, electronic lock system further includes external signal output equipment, is opened in electronic lock 20 After opening guest state, and after the second data transmission module 21 establishes signal connection relationship with external signal output equipment, second Data transmission module 21 receives the external unlocking signal of external signal output equipment, and the second data processing module 22 can direct basis External unlocking signal control electronic lock 20 is unlocked.
In general, the electronic lock 20 of the embodiment of the present invention has data and cipher key delivery, processing, storage and key ratio Pair function, pair electron key 10 data input with and pair typing electron key information management function Some or all of energy, the function of transmitting the electron key 10 of itself decruption key extremely, the resetting storage of electronic lock 20 electron key The movement of the function, the function of licensing status, the function of guest state, the lock opening and closing motor drive mechanism 24 provided of 10 information executes The function of signal.Electron key 10 has the function of data and key handling, transmission and storage, the electricity with unlatching licensing status Son lock 20 carries out typing or cancels the function of typing, resetting electron key 10 stores the function of information, sends and grasps to electronic lock 20 Make the function of signal.
The electronic lock of multilevel system can be set up jointly with the electronic lock of present example including but not limited to being exemplified below Electronic lock:Bluetooth electronic lock, fingerprint recognition electronic lock, radio-frequency card electronic lock, IC (Integrated Circuit, integrated circuit) Card electronic lock etc..
In one embodiment of the invention, as shown in figure 4, electron key 10 and electronic lock 20 include model The MCU of HT66F70A.Electron key 10 and electronic lock 20 share a power supply, which may be provided in electron key 10, have Body may include two 10440 iron lithium phosphate batteries, be a kind of No. 7 rechargeable batteries, it is possible to provide the DC voltage of 6.4V.Electronics key Physical interface in spoon 10 can be 3.0 Type B male connector of Micro USB, and the physical interface in electronic lock 20 can be Micro USB 3.0 Type B bases, when electron key 10 is matched with electronic lock 20, the physical interface of the two is connected, corresponding signal wire, Positive electricity polar curve is connected with negative electrode wire, can not only be carried out the transmission of SPI and status signal, can also be carried out the transmission of electric energy.Such as Fig. 4 Shown, electron key 10 and electronic lock 20 provide battery by voltage-stablizer including the voltage-stablizer of model AMS1117-3.3 6.4V voltage converted, be supplied to respective MCU.As shown in figure 4, the instruction triggers device of electron key 10 can be to touch Key, MCU can generate different operational orders according to different key trigger sequences;The lock opening and closing motor drive mechanism of electronic lock can wrap The decelerating motor of model GA12-N20 is included, the MCU of electronic lock 20 is slowed down electric by issuing control signal to triode with control Machine is switched on or switched off electric power loop, realizes the control to the operating of decelerating motor, stalling and revolving speed.In addition, the MCU of electronic lock 20 It further include external signal input terminals, to input lock status signal, external unlocking signal etc..Electron key 10 and electronic lock 20 are equal It may include the LED to carry out state instruction.
In one particular embodiment of the present invention, the circuit structure of electron key 10 is as shown in figure 5, include single-chip microcontroller HT66F70A1, AMS1117-3.3 voltage-stablizer, power input, 3.0 Type B male connector of Micro USB, 3.0 B of Micro USB Type base, self reset signal port, multiple keys (in figure by taking K0~K4 totally five as an example) and multiple LED (in figure with D1~ D2 is for totally two).Wherein, data processing module of the single-chip microcontroller HT66F70A as the electron key of the embodiment of the present invention; AMS1117-3.3 voltage-stablizer is for converting externally input 5~12V DC voltage to 3.3V direct current stable in error range Voltage, being output in single-chip microcontroller HT66F70A makes its normal work;3.0 Type B male connector of Micro USB and Micro USB 3.0 Type B base is one of first data transmission module physical interface.
As shown in figure 5, the end VCC of power input is connected with the end Vin of AMS1117-3.3 voltage-stablizer;Power input The end GND connection AMS1117-3.3 voltage-stablizer the end GND series connection;The end Vin of AMS1117-3.3 voltage-stablizer, capacity cell C1 and The end GND of AMS1117-3.3 voltage-stablizer is sequentially connected in series;The end Vin of AMS1117-3.3 voltage-stablizer, capacity cell C2 and The end GND of AMS1117-3.3 voltage-stablizer is sequentially connected in series.The end Vout of AMS1117-3.3 voltage-stablizer is with single-chip microcontroller HT66F70A's Vdd terminal series connection;It connects with the end VSS of single-chip microcontroller HT66F70A at the end GND of AMS1117-3.3 voltage-stablizer;AMS1117-3.3 pressure stabilizing The end Vout of device, the end GND of capacity cell C3 and AMS1117-3.3 voltage-stablizer are sequentially connected in series;AMS1117-3.3 voltage-stablizer The end Vout, capacity cell C4 and AMS1117-3.3 voltage-stablizer the end GND be sequentially connected in series;The Vout of AMS1117-3.3 voltage-stablizer End, resistive element R5, capacity cell C5 and AMS1117-3.3 voltage-stablizer the end GND be sequentially connected in series;AMS1117-3.3 voltage-stablizer The end Vout, resistive element R5 and single-chip microcontroller HT66F70A the end PB0/RSE be sequentially connected in series.AMS1117-3.3 voltage-stablizer The end SCS at the end Vout, resistive element R4 and single-chip microcontroller HT66F70A is sequentially connected in series.The end VCC of 3.0 Type B male connector of Micro USB It connects with the end Vin of AMS1117-3.3 voltage-stablizer;The end GND of 3.0 Type B male connector of Micro USB and AMS1117-3.3 pressure stabilizing It connects at the end GND of device;It connects with the end PC2 of single-chip microcontroller HT66F70A at the end PC2 of 3.0 Type B male connector of Micro USB;Micro It connects with the end PA4 of single-chip microcontroller HT66F70A at the end PA4 of 3.0 Type B male connector of USB;The SDI of 3.0 Type B male connector of Micro USB It connects with the end SDI of single-chip microcontroller HT66F70A at end;The end SDO of 3.0 Type B male connector of Micro USB is with single-chip microcontroller HT66F70A's The series connection of the end SDO;It connects with the end SCK of single-chip microcontroller HT66F70A at the end SCK of 3.0 Type B male connector of Micro USB.Micro USB It connects with the end PC7 of single-chip microcontroller HT66F70A at the end PC7 of 3.0 Type B bases;The end PC6 of 3.0 Type B base of Micro USB with It connects at the end PC6 of single-chip microcontroller HT66F70A;The end SDOA of 3.0 Type B base of Micro USB and the SDOA of single-chip microcontroller HT66F70A End series connection;It connects with the end SDIA of single-chip microcontroller HT66F70A at the end SDIA of 3.0 Type B base of Micro USB;Micro USB It connects with the end SCKA of single-chip microcontroller HT66F70A at the end SCKA of 3.0 Type B bases;The end SCKA of single-chip microcontroller HT66F70A, resistance member The end GND of part and AMS1117-3.3 voltage-stablizer is sequentially connected in series.The port REST at key self reset end, resistive element R1 and The end Vout of AMS1117-3.3 voltage-stablizer is sequentially connected in series;The end PC4 at key self reset end 6 and the end PC4 of single-chip microcontroller HT66F70A Series connection.The end Vout of AMS1117-3.3 voltage-stablizer 2, resistive element R2, light emitting diode D1 and single-chip microcontroller HT66F70A PC0 End is sequentially connected in series;The end Vout, resistive element R2, light emitting diode D2 and the single-chip microcontroller HT66F70A of AMS1117-3.3 voltage-stablizer The end PC1 be sequentially connected in series.The end PG0 of single-chip microcontroller HT66F70A, resistive element R11, inching button K0 and AMS1117-3.3 pressure stabilizing The end GND of device is sequentially connected in series;The end PG1 of single-chip microcontroller HT66F70A, resistive element R10, inching button K1 and AMS1117-3.3 are steady The end GND of depressor is sequentially connected in series;The end PG2 of single-chip microcontroller HT66F70A, resistive element R7, inching button K2 and AMS1117-3.3 The end GND of voltage-stablizer is sequentially connected in series;The end PG3 of single-chip microcontroller HT66F70A, resistive element R8, inching button K3 and AMS1117- The end GND of 3.3 voltage-stablizers is sequentially connected in series;The end PG4 of single-chip microcontroller HT66F70A, resistive element R9, inching button K4 and The end GND of AMS1117-3.3 voltage-stablizer is sequentially connected in series;The end PG4 of single-chip microcontroller HT66F70A and the INT0 of single-chip microcontroller HT66F70A End series connection;The end SCSA of single-chip microcontroller HT66F70A, the end GND of resistive element R6 and AMS1117-3.3 voltage-stablizer are sequentially connected in series.
In one particular embodiment of the present invention, the circuit structure of electronic lock 20 is as shown in fig. 6, include single-chip microcontroller HT66F70A, AMS1117-3.3 voltage-stablizer, 3.0 Type B base of Micro USB, switch lock driving signal output end, lock status Signal input part, the second unlocking signal input terminal and multiple LED.Wherein, single-chip microcontroller HT66F70A is as the embodiment of the present invention Electronic lock data processing module;AMS1117-3.3 voltage-stablizer is for converting externally input 5~12V DC voltage to Stable 3.3V DC voltage in error range, being output in single-chip microcontroller HT66F70A makes its normal work;Micro USB 3.0 Type B base is one of the second data transmission module physical interface.Switch lock driving signal output end is used for single-chip microcontroller HT66F70A sends driving lock switching mechanism and executes signal;Lock status signal input terminal obtains current for single-chip microcontroller HT66F70A Lock the signal of open and-shut mode;Second unlocking signal input terminal obtains the second unlocking signal for single-chip microcontroller HT66F70A, i.e., external Unlocking signal.
As shown in fig. 6, the GND at the end Vin of AMS1117-3.3 voltage-stablizer, capacity cell C1 and AMS1117-3.3 voltage-stablizer End is sequentially connected in series;The end Vin of AMS1117-3.3 voltage-stablizer, capacity cell C2 and AMS1117-3.3 voltage-stablizer the end GND successively Series connection.It connects with the vdd terminal of single-chip microcontroller HT66F70A at the end Vout of AMS1117-3.3 voltage-stablizer;AMS1117-3.3 voltage-stablizer It connects with the end VSS of single-chip microcontroller HT66F70A at the end GND;The end Vout of AMS1117-3.3 voltage-stablizer, capacity cell C3 and The end GND of AMS1117-3.3 voltage-stablizer is sequentially connected in series;The end Vout of AMS1117-3.3 voltage-stablizer, capacity cell C4 and The end GND of AMS1117-3.3 voltage-stablizer is sequentially connected in series;The end Vout of AMS1117-3.3 voltage-stablizer, resistive element R8, capacitor member The end GND of part C5 and AMS1117-3.3 voltage-stablizer is sequentially connected in series;The end Vout of AMS1117-3.3 voltage-stablizer, resistive element R8 and The end PB0/RSE of single-chip microcontroller HT66F70A is sequentially connected in series.The end GND, resistive element R7 and the single-chip microcontroller of AMS1117-3.3 voltage-stablizer The end SCS of HT66F70A is sequentially connected in series.The end VCC of 3.0 Type B base of Micro USB and the Vin of AMS1117-3.3 voltage-stablizer End series connection;It connects with the end GND of AMS1117-3.3 voltage-stablizer at the end GND of 3.0 Type B base of Micro USB;Micro USB It connects with the end PC2 of single-chip microcontroller HT66F70A at the end PC2 of 3.0 Type B bases;The end PC1 of 3.0 Type B base of Micro USB with It connects at the end PC1 of single-chip microcontroller HT66F70A;The end SDI of 3.0 Type B base of Micro USB and the end SDI of single-chip microcontroller HT66F70A Series connection;It connects with the end SDO of single-chip microcontroller HT66F70A at the end SDO of 3.0 Type B base of Micro USB;Micro USB 3.0 B It connects with the end SCK of single-chip microcontroller HT66F70A at the end SCK of type base.The end VCC of switch lock driving signal output end and Micro It connects at the end VCC of 3.0 Type B base of USB;The end GND of switch lock driving signal output end and 3.0 Type B base of Micro USB The end GND series connection;The C-terminal of switch lock driving signal output end with and the end PF2 of single-chip microcontroller HT66F70A connect;Switch lock driving The end O of signal output end with and the end PF5 of single-chip microcontroller HT66F70A connect;The end K1 of lock status signal input terminal and single-chip microcontroller It connects at the end PC0 of HT66F70A;It connects with the end PE4 of single-chip microcontroller HT66F70A at the end S2 of second unlocking signal input terminal. The end PC1 at the end Vout of AMS1117-3.3 voltage-stablizer, resistive element R5 and single-chip microcontroller HT66F70A is sequentially connected in series;AMS1117- The end PC2 at the ends Vout of 3.3 voltage-stablizers, resistive element R6 and single-chip microcontroller HT66F70A is sequentially connected in series;AMS1117-3.3 voltage-stablizer The end Vout, resistive element R1, light emitting diode D1 and single-chip microcontroller HT66F70A the end PC3 be sequentially connected in series;AMS1117-3.3 is steady The end Vout of depressor, resistive element R2, light emitting diode D2 and single-chip microcontroller HT66F70A the end PC4 be sequentially connected in series;AMS1117- The ends Vout of 3.3 voltage-stablizers, resistive element R3, light emitting diode D3 and single-chip microcontroller HT66F70A the end PC5 be sequentially connected in series; The end Vout of AMS1117-3.3 voltage-stablizer, resistive element R4, light emitting diode D4 and single-chip microcontroller HT66F70A the end PC6 successively Series connection.
Based on foregoing circuit structure, user can press according to self-demand corresponds to the corresponding behaviour of key sending on electron key It instructs in electronic lock, electronic lock is by judging whether the identity of the electron key of connection has the operational order permission with determination Whether need to carry out next step confirmation or executes the required operation of operational order.
Electron key not only has 3.0 Type B male connector of Micro USB in above-described embodiment, also has Micro USB 3.0 Type B base, when electron key A passes through Micro USB 3.0 by 3.0 Type B male connector of Micro USB and another electron key B When Type B base connects, corresponding signal wire connection, user can be requested by the specified keystroke sequence on another electron key B Obtain the second unblocking key having on electron key A.
When the physical interface of electron key does not carry out any connection, nothing is awarded by the way that specified keystroke sequence is achievable The key of power state and guest state opening and closing permission carries out cipher key relation removing and is deposited with obtaining certain cipher key relation memory space Put more crucial cipher key relation.
When electron key or electronic lock, it is attached by physical interface or corresponding equipment with corresponding management software, and When corresponding management software obtains the administration authority of electron key or electronic lock, user can be in electron key by management software Or the information for any established cipher key relation specified in electronic lock is deleted.
One of example presented below for being optionally applied to electronic lock system of the present invention is simply about identity The design scheme of certification:Electron key factory before write-in length be 3 bytes independent sequence code and interpret key with handle with The related algorithm of machine code, write-in length is the independent key of 4 bytes and the related algorithm for handling random code before electronic lock factory. The 4th byte is only with rear 6 binary systems in 4 byte keys wherein stored in electronic lock.Electron key is mutually built with electronic lock When vertical cipher key relation, the data processing module of electron key by the sequence code of itself and will be used to store this cipher key relation letter The storage location of breath is transferred in the data processing module of electronic lock by data processing module, the data processing module of electronic lock By the key of itself and preceding 2 binary systems of the 4th byte according to the permission modification key given, pass through data transmission module It is transferred in the data processing module of electron key.The processing as needed respectively of the data processor of electronic lock and electron key The cipher key relation information that receives simultaneously is stored into the memory of itself.When electron key and electronic lock are attached, electronics Key sends the sequence code of itself to electronic lock, and electronic lock has looked for whether in memory according to the sequence code received About the cipher key relation of the sequence code, authority information is confirmed if having and sends relevant information to electron key, otherwise ignores hair Send default value to electron key.
In one particular embodiment of the present invention, as shown in fig. 7, the control method of electronic lock system may include:Electronics It locks electricity and initializes waiting connection, obtain ID and send information and wait instruction.Electron key powers on and initializes waiting connection, It sends ID and obtains information, wait push button signalling, send operational order to electronic lock when there is push button signalling, and further judgement is It is no to need to verify.Electronic lock judges whether there is permission after receiving operational order, i.e. whether electron key has matching key to close The permission of system if it is, further determining whether to need to verify, while sending checking signal to electron key.Next electricity Son lock sends random code, and electron key receives random code, and the two all handles random code according to cipher key relation, at electron key transmission Reason returns to waiting for instructing and waiting if mismatching respectively as a result, electronic lock receives processing as a result, the two judges whether to match The step of push button signalling, if it does, then executing corresponding operating.
In one particular embodiment of the present invention, as shown in figure 8, electronic lock and electron key are established in electronic lock system The process of cipher key relation may include:Electronic lock powers on and initializes waiting connection, obtains ID and sends information and wait instruction.Electronics Key powers on and initializes waiting connection, sends ID and obtains information, wait push button signalling, sends out when there is push button signalling to electronic lock Cipher key relation is sent to establish instruction.Electronic lock, which receives after cipher key relation establishes instruction, judges whether licensing status is opened, if opened It opens, then judges whether to meet preset condition, such as whether electronic lock confirmation electronic key based identity meets preset condition, and to electronics Key sends consequential signal.Electron key judges whether to be allowed to according to consequential signal, if electronic lock judgement meets default item Part and electron key judge to be allowed to, then the two establishes cipher key relation.
In one particular embodiment of the present invention, as shown in figure 9, the unlocking control method under guest state can wrap It includes:Electronic lock powers on and initializes waiting connection, obtains ID and sends information and wait instruction or signal.Electron key powers on simultaneously just Beginningization waits connection, sends ID and obtains information, visitor's unlocking push button signalling is waited, when there is visitor's unlocking push button signalling to electronics Lock sends the second unlocking instruction.Electronic lock not only can receive electron key is sent second during waiting instruction or signal and unlock Instruction also can receive the second unlocking signal that external signal output equipment is sent, i.e., external unlocking signal.It is opened receiving second After lock instruction or the second unlocking signal, electronic lock judges whether guest state is opened, and judgement is instruction or letter if opening Number.If it is signal, i.e. the second unlocking signal, then direct unlocking electronic lock;It is if it is instruction, i.e. the second unlocking instruction, then electric Son lock further determines whether to meet preset condition, and sends consequential signal to electron key.Electron key is according to consequential signal Judge whether to be allowed to, if electronic lock judgement meets preset condition and electron key judgement is allowed to, electron key is sent Guest key, electronic lock receives guest key, and judges whether guest key matches, if it does, then unlocking electronic lock.
That is, the application method of above-mentioned guest state, including:It is given with a certain electronic lock guest key and possessing The electron key of the permission of its guest key gives another electron key, so that it possesses the guest state unlatching in the electronic lock In the state of send the second unlocking instruction can make the electronic lock execute unlocking signal send ability.
The application method of above-mentioned guest state further includes:By the electronic lock identity of external equipment such as other electronic lock systems The unlocking signal of authentication module is output to the second unlocking signal input terminal of the electronic lock of the electronic lock system of the embodiment of the present invention Mouthful.When the electronic lock of the electronic lock system of inventive embodiments opens guest state, user can be by using other electronics The unlocking signal of the electronic lock authentication module output of lock system is locked into the electronics of the electronic lock system of the embodiment of the present invention Row unlocking operation.
When in the electronic lock system of the embodiment of the present invention electronic lock or electron key abandon or lose when, retain and use The electronic lock or electron key for having corresponding relationship can guarantee that it continues to come into operation by the means of inside setting, and such as abandoning can phase It connects and executes cipher key relation clear operation;The electronic lock used or electron key will be retained if losing can connect and can only obtain Shallow-layer cipher key relation and can only carry out cipher key relation removing the embodiment of the present invention electronic lock system management software to specified The electronic lock or electron key lost or abandoned carry out cipher key relation removing to guarantee the electronic lock or electron key energy that retain Enough possess the space that more cipher key relations are established to come into operation to continue to come into operation or can safely continue.
In conclusion electronic lock system according to an embodiment of the present invention, is passed by information between electron key and electronic lock The ability pass, stored realizes the Dynamic link library of electron key and electronic lock, and list may be implemented can be according to user electron key Actual use is corresponding more electronic lock, and list can actually use electronic lock according to user corresponding more electron key;Pass through setting Guest state, it can be achieved that other electronic lock systems are used in conjunction with electronic lock system of the present invention, establish adjustable degree of safety and The composite electronic lock system of convenient degree gives user to adjust the composite electronic lock system according to its practical service condition Convenient degree gives the better usage experience of user;By the foundation and removing of cipher key relation, may be implemented losing electronic lock system When electron key in system can by certain means to the electronic lock in electronic lock system inside to the electron key of loss into The relevant information for establishing cipher key relation or change what its own was used that it is stored in electronic lock are removed in the limit recycling of row full powers To key, to improve the safety of electronic lock and guarantee that when losing electron key, electronic lock remains to again safely again It uses.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (10)

1. a kind of electronic lock system, which is characterized in that including electron key and electronic lock, wherein
The electron key includes:
Instruction triggers device, described instruction trigger device is for receiving user's operation;
First data processing module, first data processing module are connected with described instruction trigger device, first data Processing module is used to generate corresponding operational order to the operation of described instruction trigger device according to user, wherein the operation Instruction includes that cipher key relation establishes instruction, cipher key relation clearance order, the first unlocking instruction, the second unlocking instruction, guest state Switch order and licensing status switch order;
First data transmission module, the first data transmission module are connected with first data processing module, and described first Data transmission module is used to the key information of the operational order and the electron key being sent to the electronic lock,
The electronic lock includes:
Second data transmission module, second data transmission module establish a connection with the first data transmission module Afterwards, the key information of the operational order and the electron key is received;
Second data processing module, second data processing module are connected with second data transmission module, and described second Data processing module is used to establish instruction, the key information of the electron key and the electronic lock according to the cipher key relation The cipher key relation between the electronic lock and the electron key is established and stored to key information, and clear according to the cipher key relation Except the cipher key relation is removed in instruction, and the electronic lock is controlled according to first unlocking instruction and the cipher key relation and is opened Lock, second data processing module are also used to control the electronic lock according to the guest state switch order and open or close Guest state, and according to second unlocking instruction and the cipher key relation control after the electronic lock opens the guest state The electronic lock is made to unlock.
2. electronic lock system according to claim 1, which is characterized in that the electronic lock further includes:
Lock status sensing module, the lock status sensing module are connected with second data processing module, and the lock status passes Sense module is used to detect the opening and closing lock status of the electronic lock;
Lock opening and closing motor drive mechanism, the lock opening and closing motor drive mechanism are connected with second data processing module, second data Processing module is opened and closed motor drive mechanism by controlling the lock to control the electronic lock and unlock or be latched.
3. electronic lock system according to claim 1, which is characterized in that first data processing module and described second Data processing module includes corresponding processor, memory and controller.
4. electronic lock system according to claim 1, which is characterized in that the first data transmission module and described second Data transmission module includes corresponding physical interface and data signaling circuit.
5. electronic lock system according to claim 1, which is characterized in that establish the cipher key relation with the electronic lock And the first data transmission module for possessing the electron key of licensing status opening and closing permission is transmitted to the second data of the electronic lock Module sends licensing status switch order, and the second data processing module of the electronic lock is according to the licensing status switch order The electronic lock is controlled with the cipher key relation and opens or closes licensing status, opens the licensing status in the electronic lock Afterwards, the first data transmission module also receives the key information for the electronic lock that second data transmission module is sent, First data processing module establishes the key information and the electricity of instruction, the electron key also according to the cipher key relation The cipher key relation between the electronic lock and the electron key is established and stored to the key information of son lock, and according to the key Relationship clearance order removes the cipher key relation.
6. electronic lock system according to claim 1 or 5, which is characterized in that the operational order further includes reset indication, First data processing module and second data processing module reset the letter of itself storage also according to the reset indication Breath.
7. electronic lock system according to claim 1, which is characterized in that the electron key or the electronic lock are more It is a.
8. electronic lock system according to claim 1, which is characterized in that further include power supply, the power supply is arranged described In electron key and/or the electronic lock.
9. electronic lock system according to claim 1, which is characterized in that further include external signal output equipment, described After electronic lock opens the guest state, and second data transmission module and the external signal output equipment are established and are believed After number connection relationship, second data transmission module receives the external unlocking signal of the external signal output equipment, described Second data processing module directly controls the electronic lock according to the external unlocking signal and unlocks.
10. electronic lock system according to claim 1, which is characterized in that the electron key and the electronic lock wrap Include the MCU of model HT66F70A.
CN201810733587.5A 2018-07-06 2018-07-06 Electronic lock system Pending CN108877010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810733587.5A CN108877010A (en) 2018-07-06 2018-07-06 Electronic lock system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810733587.5A CN108877010A (en) 2018-07-06 2018-07-06 Electronic lock system

Publications (1)

Publication Number Publication Date
CN108877010A true CN108877010A (en) 2018-11-23

Family

ID=64299606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810733587.5A Pending CN108877010A (en) 2018-07-06 2018-07-06 Electronic lock system

Country Status (1)

Country Link
CN (1) CN108877010A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022135423A1 (en) * 2020-12-24 2022-06-30 天扬精密科技股份有限公司 System of electronic lock and electronic key
CN115063907A (en) * 2021-12-30 2022-09-16 广西金网通电子科技有限公司 Data processing method, equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3848229A (en) * 1971-04-09 1974-11-12 Little Inc A Electronic lock system
WO2002042584A1 (en) * 2000-11-22 2002-05-30 Xiao Ming Zhai An intelligent lock that can set a key code by itself, a key which can be used for many locks and a setting tool thereof
CN1489329A (en) * 2002-09-10 2004-04-14 �ձ�������ʽ���� Terminal locking system comprising key device and termianl-associated device
CN107886613A (en) * 2017-12-18 2018-04-06 苏州七巧板日用品科技有限公司 A kind of Intelligent key
CN208477614U (en) * 2018-07-06 2019-02-05 岑耀荣 Electronic lock system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3848229A (en) * 1971-04-09 1974-11-12 Little Inc A Electronic lock system
WO2002042584A1 (en) * 2000-11-22 2002-05-30 Xiao Ming Zhai An intelligent lock that can set a key code by itself, a key which can be used for many locks and a setting tool thereof
CN1489329A (en) * 2002-09-10 2004-04-14 �ձ�������ʽ���� Terminal locking system comprising key device and termianl-associated device
CN107886613A (en) * 2017-12-18 2018-04-06 苏州七巧板日用品科技有限公司 A kind of Intelligent key
CN208477614U (en) * 2018-07-06 2019-02-05 岑耀荣 Electronic lock system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022135423A1 (en) * 2020-12-24 2022-06-30 天扬精密科技股份有限公司 System of electronic lock and electronic key
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

Similar Documents

Publication Publication Date Title
JP4253186B2 (en) Smart lock that can be set by the key and realizes a lock of 10,000 keys and its key and setting tool
CN108877010A (en) Electronic lock system
CN101324413A (en) Detonating device and main control process flow thereof
CN106934903A (en) A kind of blue-tooth intelligence lock
CN205845134U (en) A kind of smart lock
CN104831998B (en) A kind of security device of intelligent antitheft mechanical lock
CN208477614U (en) Electronic lock system
CN102624742A (en) Method for enhancing security of communication between mobile equipment and home intelligent terminal
CN103810464B (en) Fingerprint recognition terminal
CN107842254A (en) A kind of electric padlock and its unlocking method
CN112365636B (en) Intelligent lock management system based on mobile intelligent terminal and working method thereof
CN207892381U (en) Based on the intelligent lock system for referring to hand vein recognition
CN206400658U (en) A kind of electric lockset of multiple fingerprints certification
CN109961546A (en) Intelligent networking locking device based on wireless communication technique
CN203626429U (en) Intelligent safe-guard chain door lock
CN108830997A (en) A kind of smooth password unlocking system and unlocking apparatus
CN208689639U (en) Tripper and lock system
JP2018183555A (en) Suitcase lock with USB port
CN105905192A (en) Burglary resisting system and method of battery of electric bicycle, based on bluetooth 4.0
CN206322618U (en) A kind of new five anti-computer key
CN109326022A (en) A kind of double-core control method and system based on bluetooth Fingerprint Lock
CN208805854U (en) A kind of novel intelligent bluetooth lock
CN210798549U (en) Novel electronic coded lock
CN208236130U (en) A kind of public affairs based on Internet of Things are rented a house intelligent door lock system
CN208444317U (en) A kind of key management system

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