CN104318645A - Programmable electronic cipher lock - Google Patents
Programmable electronic cipher lock Download PDFInfo
- Publication number
- CN104318645A CN104318645A CN201410494444.5A CN201410494444A CN104318645A CN 104318645 A CN104318645 A CN 104318645A CN 201410494444 A CN201410494444 A CN 201410494444A CN 104318645 A CN104318645 A CN 104318645A
- Authority
- CN
- China
- Prior art keywords
- resistance
- pin
- triode
- module
- data
- 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
Links
Landscapes
- Programmable Controllers (AREA)
Abstract
The invention relates to the technical field of locksets, and discloses a programmable electronic cipher lock. The programmable electronic cipher lock comprises a programmable controller, a data storage module, a latching module, an unlocking module, a data reading module and an electronic key; the programmable controller is connected with the latching module signal; the signal output end of the programmable controller is connected with the signal input end of the unlocking module, and the signal output end of the unlocking module is connected with an electromagnetic lock; the data reading module is used for reading driving data read in the electronic key, the signal output end of the data reading module is connected with the signal input end of the programmable controller, and the driving data is transmitted to the programmable controller; the programmable controller is in signal connection with the data storage module, acquires preset data from the data storage module, and compares the driving data with the preset data; and a signal is output to the unlocking module to unlock if the driving data matches with the preset data. The programmable electronic cipher lock has high safety, and meets the demands of people for locks.
Description
Technical field
The present invention relates to lock technology field, be mainly applicable to programmable electronic coded lock.
Background technology
At present, most of family and enterprise adopt traditional mechanical lock to lock a door, but increasing lawless person can by instrument opening door locks such as tinfoil inserted sheet, iron wires, and therefore the security of existing mechanical lock is lower.Along with improving constantly of people's living standard, the continuous reinforcement of the prevention awareness of people, existing mechanical lock can not meet the demand of people.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of programmable electronic coded lock, and it has the high feature of security, meets the demand of people to lockset.
For solving the problems of the technologies described above, the invention provides a kind of programmable electronic coded lock, comprising: Programmable Logic Controller, data memory module, latch module, module of unblanking, data read module and electron key; Described Programmable Logic Controller is connected with described latch module signal; The signal output part of described Programmable Logic Controller is connected with the signal input part of described module of unblanking, described in the unblank signal output part of module be connected with Electromagnetic lock; The signal input part of described data read module is for reading the driving data in described electron key, the signal output part of described data read module is connected with the signal input part of described Programmable Logic Controller, the driving data got is transferred in described Programmable Logic Controller; Described Programmable Logic Controller is connected with described data memory module signal, obtains initialize data, and described driving data and described initialize data are compared from described data memory module; If coupling, module of unblanking described in outputing signal, unblanks.
Further, also comprise: alarm module; The signal output part of described Programmable Logic Controller is connected with the signal input part of described alarm module, if described driving data and described initialize data are not mated, described Programmable Logic Controller outputs signal described alarm module, reports to the police.
Further, described Programmable Logic Controller also judges that whether described data read module is normal from described electron key, reads described driving number;
If abnormal reading, then output signal is to described alarm module, reports to the police;
If normally read, then described driving data and described initialize data are compared.
Further, described alarm module comprises: hummer, the first resistance, the 6th resistance and the first triode; The base stage of described first triode is connected with the signal output part of described Programmable Logic Controller by described first resistance, the emitter of described first triode is connected with power output end, and the collector of described first triode is connected with the signal input part of described hummer by described 6th resistance; Described hummer also ground connection;
Or described alarm module comprises: the 5th resistance, the 3rd triode, the 7th resistance and the second light emitting diode; The base stage of described 3rd triode is connected with the signal output part of described Programmable Logic Controller by described 5th resistance; The emitter of described 3rd triode is connected with power output end, and the collector of described 3rd triode is by described 7th resistance, described second light emitting diode ground connection;
Or described alarm module comprises: hummer, the first resistance, the 6th resistance, the first triode, the 5th resistance, the 3rd triode, the 7th resistance and the second light emitting diode; The base stage of described first triode is connected with the signal output part of described Programmable Logic Controller by described first resistance, the emitter of described first triode is connected with power output end, and the collector of described first triode is connected with the signal input part of described hummer by described 6th resistance; Described hummer also ground connection; The base stage of described 3rd triode is connected with the signal output part of described Programmable Logic Controller by described 5th resistance; The emitter of described 3rd triode is connected with power output end, and the collector of described 3rd triode is by described 7th resistance, described second light emitting diode ground connection.
Further, module of unblanking described in comprises: the second triode, the second resistance, the first electric capacity, electromagnetic relay and terminal box; The base stage of described second triode is connected with the signal output part of described Programmable Logic Controller by described second resistance, the emitter of described second triode is connected with power output end, and the collector of described second triode is connected with the normally closed interlock of described electromagnetic relay; The normally open contact of described electromagnetic relay is connected with described terminal box.
Further, described Programmable Logic Controller is the AT89S52 single board computer that American ATMEL is produced; Described data memory module comprises: the 3rd resistance, the 4th resistance and storer ST24C02; The base stage of described first triode is connected with the pin P1.2 of described AT89S52 single board computer by described first resistance; The base stage of described 3rd triode is connected with the pin P1.3 of described AT89S52 single board computer by described 5th resistance; The base stage of described second triode is connected with the pin P1.4 of described AT89S52 single board computer by described second resistance; Described 3rd resistance and described 4th resistor coupled in parallel are connected to power output end, and the other end of described 3rd resistance is connected with the pin SCL of described storer ST24C02, and the other end of described 4th resistance is connected with the pin SDA of described storer ST24C02; Pin E0, E1, E2, MODE and GND ground connection of described storer ST24C02, the pin VCC of described storer ST24C02 connects power output end; The pin P1.0 of described AT89S52 single board computer is connected with the pin SCL of described storer ST24C02, and the pin P1.1 of described AT89S52 single board computer is connected with the pin SDA of described storer ST24C02.
Further, described electron key is USB; Described data read module is the common interface chip CH375 of usb bus; 8 BDB Bi-directional Data Bus D0, D1, D2, D3, D4, D5, D6 and the D7 of the common interface chip CH375 of described usb bus are connected with pin P0.0, P0.1, P0.2, P0.3, P0.4, P0.5, P0.6 and P0.7 of described AT89S52 single board computer separately respectively; The pin INT# of the common interface chip CH375 of described usb bus is connected with the pin P3.2 of described AT89S52 single board computer, the pin WR# of the common interface chip CH375 of described usb bus is connected with the pin P3.3 of described AT89S52 single board computer, the pin RD# of the common interface chip CH375 of described usb bus is connected with the pin P3.4 of described AT89S52 single board computer, and the pin A0 of the common interface chip CH375 of described usb bus is connected with the pin P3.5 of described AT89S52 single board computer.
Further, also comprise: extension storage module; Described extension storage module is connected with described AT89S52 single board computer signal by described latch module.
Further, described extension storage module is chip I ntel 6264; Described latch module is chip 74LS373; Pin A7, A6, A5, A4, A3, A2, A1, A0, IO1, IO2, IO3, IO4, IO5, IO6, IO7 of described chip I ntel 6264 are connected with pin Q7, Q6, Q5, Q4, Q3, Q2, Q1, Q0, D0, D1, D2, D3, D4, D5, D6 and D7 of described chip 74LS373 separately respectively with IO8; Pin A8, A9, A10, A11, A12, CE1, OE of described chip I ntel 6264 are connected with pin P2.0, P2.1, P2.2, P2.3, P2.4, P2.7, P3.7 and P3.6 of described AT89S52 single board computer separately respectively with WE; The pin LE of described chip 74LS373 is connected with the pin ALE/PROG of described AT89S52 single board computer.
Further, also comprise: manual reset circuit; Described manual reset circuit comprises: the 3rd electric capacity, the 9th resistance, the tenth resistance and reset button; The described first end of the 9th resistance is connected with the pin P1.7 of described AT89S52 single board computer, and the second end of described 9th resistance and the first end of described 3rd electric capacity are connected to an A; Second end of described 3rd electric capacity connects power output end; Described some A is by described tenth resistance eutral grounding; First pedestal of described reset button is drawn from the first end of described 9th resistance, and the second pedestal of described reset button is drawn from described power output end.。
Beneficial effect of the present invention is:
Programmable electronic coded lock provided by the invention, reads the driving data in electron key by data read module, and driving data is transferred to Programmable Logic Controller; Data preset in the driving data received and data memory module are mated by Programmable Logic Controller; If coupling, by unblanking, tapered end is opened by module.Present invention, avoiding the generation of lawless person by the situation of the instrument opening door locks such as tinfoil inserted sheet, iron wire, have the advantages that security is high, meet the demand of people to lockset.In addition, user as required, can also carry out personalized change to key data, thus improves practicality of the present invention voluntarily.
Accompanying drawing explanation
The structured flowchart of the programmable electronic coded lock that Fig. 1 provides for the embodiment of the present invention;
The detailed circuit connection layout of the programmable electronic coded lock that Fig. 2 provides for the embodiment of the present invention;
The workflow diagram of the programmable electronic coded lock that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 for the embodiment of the present invention is provided programmable electronic coded lock change password process flow diagram.
Embodiment
For setting forth the present invention further for the technological means reaching predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, the embodiment of the programmable electronic coded lock proposed according to the present invention and principle of work are described in detail.
See Fig. 1, the programmable electronic coded lock that the embodiment of the present invention provides, comprising: Programmable Logic Controller, data memory module, latch module, module of unblanking, data read module, alarm module and electron key; Programmable Logic Controller is connected with latch module signal; The signal output part of Programmable Logic Controller is connected with the signal input part of module of unblanking, and the signal output part of module of unblanking is connected with Electromagnetic lock; The signal input part of data read module is for reading the driving data in electron key, and the signal output part of data read module is connected with the signal input part of Programmable Logic Controller, is transferred in Programmable Logic Controller by the driving data got; The signal output part of Programmable Logic Controller is connected with the signal input part of alarm module; Programmable Logic Controller is connected with data memory module signal, obtains initialize data, and driving data and initialize data are compared from data memory module; If coupling, outputs signal module of unblanking, unblanks.If do not mate, Programmable Logic Controller outputs signal alarm module, reports to the police.Here it should be noted that, Programmable Logic Controller, before driving data and initialize data being compared, judges that whether data read module is normal and read driving data from electron key;
If abnormal reading, then output signal is to alarm module, reports to the police;
If normally read, then driving data and initialize data are compared.
See Fig. 2, be described the structure of the embodiment of the present invention, in embodiments of the present invention, alarm module comprises: hummer, the first resistance R1, the 6th resistance R6 and the first triode Q1; The base stage of the first triode Q1 is connected with the signal output part of Programmable Logic Controller by the first resistance R1, the emitter of the first triode Q1 is connected with power output end, and the collector of the first triode Q1 is connected with the signal input part of hummer by the 6th resistance R6; Hummer is ground connection also.After energising, the first triode Q1 is in cut-off state, and hummer is sounding not.When key does not mate, Programmable Logic Controller is low level output, and the first triode Q1 conducting, hummer sends warning.
It should be noted that, alarm module can also comprise: the 5th resistance R5, the 3rd triode Q3, the 7th resistance R7 and the second LED 2; The base stage of the 3rd triode Q3 is connected with the signal output part of Programmable Logic Controller by the 5th resistance R5; The emitter of the 3rd triode Q3 is connected with power output end, and the collector of the 3rd triode Q3 is by the 7th resistance R7, the second LED 2 ground connection.After energising, the 3rd triode Q3 is in cut-off state, and the second LED 2 does not work.When key does not mate, Programmable Logic Controller is low level output, and the 3rd triode Q3 conducting, the second LED 2 lights.
Module of unblanking comprises: the second triode Q2, the second resistance R2, the first electric capacity C1, electromagnetic relay K and terminal box P1; The base stage of the second triode Q2 is connected with the signal output part of Programmable Logic Controller by the second resistance R2, and the emitter of the second triode Q2 is connected with power output end, and the collector of the second triode Q2 is connected with the normally closed interlock of electromagnetic relay K; The normally open contact of electromagnetic relay K is connected with terminal box P1.
Be described the structure of the embodiment of the present invention further, in embodiments of the present invention, Programmable Logic Controller is the AT89S52 single board computer that American ATMEL is produced; Data memory module comprises: the 3rd resistance R3, the 4th resistance R4 and storer ST24C02; The base stage of the first triode Q1 is connected with the pin P1.2 of AT89S52 single board computer by the first resistance R1; The base stage of the 3rd triode Q3 is connected with the pin P1.3 of AT89S52 single board computer by the 5th resistance R5; The base stage of the second triode Q2 is connected with the pin P1.4 of AT89S52 single board computer by the second resistance R2; 3rd resistance R3 and the 4th resistance R4 is connected in parallel in power output end, and the other end of the 3rd resistance R3 is connected with the pin SCL of storer ST24C02, and the other end of the 4th resistance R4 is connected with the pin SDA of storer ST24C02; Pin E0, E1, E2, MODE and GND ground connection of storer ST24C02, the pin VCC of storer ST24C02 connects power output end; The pin P1.0 of AT89S52 single board computer is connected with the pin SCL of storer ST24C02, and the pin P1.1 of AT89S52 single board computer is connected with the pin SDA of storer ST24C02.Storer ST24C02 is a 2K bit serial erasable programmable read only memory, and this device carries out the read-write of data by I2C bus.It is by transmission information between SDA (serial data line) and SCL (serial time clock line) two lines and the main frame linking in bus.Storer ST24C02 supports I2C bus data transfer agreement, and namely any device data being sent to bus is transmitter, and any device from bus reception data is receiver.The transmission of data is controlled by the main device producing serial clock and all initial stop signals.E0, E1 and E2 of storer ST24C02 are three address wires, with address register in sheet in chip.Often write or read after a data byte, this address register adds 1 automatically, to realize the read-write to next storage unit.Pin SCL is serial clock input pin, for generation of the clock that all data of device send and/or accept, and is connected with the pin P1.0 of AT89S52 single board computer.Pin SDA is the constrained input end of serial data, and data are by this two-way I2C bus serial transmission.Main frame (AT89S52) and all can be used as transmitter or receiver from machine (ST24C02), make main from machine two-way communication.
Electron key is USB; Data read module is the common interface chip CH375 of usb bus; 8 BDB Bi-directional Data Bus D0, D1, D2, D3, D4, D5, D6 and the D7 of the common interface chip CH375 of usb bus are connected with pin P0.0, P0.1, P0.2, P0.3, P0.4, P0.5, P0.6 and P0.7 of AT89S52 single board computer separately respectively; The pin TXD ground connection of the common interface chip CH375 of usb bus, thus make the common interface chip CH375 of usb bus work in parallel port mode; The pin INT# of the common interface chip CH375 of usb bus is connected with the pin P3.2 of AT89S52 single board computer, the pin WR# of the common interface chip CH375 of usb bus is connected with the pin P3.3 of AT89S52 single board computer, the pin RD# of the common interface chip CH375 of usb bus is connected with the pin P3.4 of AT89S52 single board computer, and the pin A0 of the common interface chip CH375 of usb bus is connected with the pin P3.5 of AT89S52 single board computer.The two ends of the 6th electric capacity C6 connect pin V3 and GND of the common interface chip CH375 of usb bus separately respectively; Pin X1 with X0 of the common interface chip CH375 of usb bus is connected crystal oscillator unit; In embodiments of the present invention, crystal oscillator unit comprises: first crystal Y1, the 7th electric capacity C7 and the 8th electric capacity C8; The first end of the 7th electric capacity C7 is connected with the pin X1 of the common interface chip CH375 of usb bus; The first end of the 8th electric capacity C8 is connected with the pin X0 of the common interface chip CH375 of usb bus; Second end of the 7th electric capacity C7 is connected with second end of the 8th electric capacity C8; First crystal Y1 is connected in parallel between pin X1 and X0 of the common interface chip CH375 of usb bus.The pin VCC of the common interface chip CH375 of usb bus connects power output end; 4th electric capacity C4 is connected in parallel between pin VCC and GND of the common interface chip CH375 of usb bus.The pin CS# ground connection of the common interface chip CH375 of usb bus.The common interface chip CH375 of usb bus has 8 bit data bus and reading and writing, control line and interrupt output.As long as increase the common interface chip CH375 of 1 usb bus in embodiments of the present invention, the subroutine library that the common interface chip CH375 that just directly can call usb bus provides directly reads the driving data in USB, thus realizes the communication of AT89S52 single board computer and USB.
In order to enable AT89S52 single board computer place of working more stable, in embodiments of the present invention, also comprise: crystal oscillating circuit; Pin XTAL1 and the pin XTAL2 signal of crystal oscillating circuit and AT89S52 single board computer are connected.Particularly, crystal oscillating circuit comprises: the 17 electric capacity C17, the 18 electric capacity C18 and the second crystal Y2; The first end of the 17 electric capacity C17 is connected with the pin XTAL1 of AT89S52 single board computer, and the first end of the 18 electric capacity C18 is connected with the pin XTAL2 of AT89S52 single board computer, and second end of the 17 electric capacity C17 is connected with second end of the 18 electric capacity C18; Second crystal Y2 is connected in parallel between the pin XTAL1 of AT89S52 single board computer and pin XTAL2.In embodiments of the present invention, the value of the 17 electric capacity C17 and the 18 electric capacity C18 is 20pF; The frequency of the second crystal Y2 is 12MHZ.
In order to expand the internal memory of AT89S52 single board computer, to improve the applicability of the embodiment of the present invention, in embodiments of the present invention, also comprise: extension storage module; Extension storage module is connected with AT89S52 single board computer signal by latch module.Further, extension storage module is chip I ntel6264; Latch module is chip 74LS373; Pin A7, A6, A5, A4, A3, A2, A1, A0, IO1, IO2, IO3, IO4, IO5, IO6, IO7 of chip I ntel 6264 are connected with pin Q7, Q6, Q5, Q4, Q3, Q2, Q1, Q0, D0, D1, D2, D3, D4, D5, D6 and D7 of chip 74LS373 separately respectively with IO8; Pin A8, A9, A10, A11, A12, CE1, OE of chip I ntel 6264 are connected with pin P2.0, P2.1, P2.2, P2.3, P2.4, P2.7, P3.7 and P3.6 of AT89S52 single board computer separately respectively with WE; The pin LE of chip 74LS373 is connected with the pin ALE/PROG of AT89S52 single board computer.Chip 74LS373 is an address latch chip, and latch exports low eight, and pin QE is the bus of data, address multiplex, realizes the multiplexing of QE mouth.The capacity of Intel6264 is 8KB, is 28 pin dual inline type chips, adopts CMOS technology manufacture.Pin OE is that data export gating end, Low level effective.
When the embodiment of the present invention make a mistake operation or AT89S52 single board computer send false command time, just need to reset to the embodiment of the present invention.The quality of reset circuit, directly has influence on the reliability of embodiment of the present invention work.For this reason, the embodiment of the present invention also comprises: manual reset circuit; Manual reset circuit comprises: the 3rd electric capacity C3, the 9th resistance R9, the tenth resistance R10 and reset button K1; The first end of the 9th resistance R9 is connected with the pin P1.7 of AT89S52 single board computer, and second end of the 9th resistance R9 and the first end of the 3rd electric capacity C3 are connected to an A; Second end of the 3rd electric capacity C3 connects power output end; Point A is by the tenth resistance R10 ground connection; First pedestal of reset button K1 is drawn from the first end of the 9th resistance R9, and second pedestal of reset button K1 is drawn from power output end.When pressing reset button K1, the pin RST of AT89S52 single board computer just obtains a high level, as long as the time that hold reset button K1 is pressed reaches more than 2 machine cycles, just can meet the time requirement of reset, then the pin RST of AT89S52 single board computer just can respond, and by system reset.
The embodiment of the present invention needs to power with the direct supply of 5V, and these feed circuit use integrated voltage-stabilized chip LM7805 to solve the problem of power supply voltage stabilizing.Particularly, feed circuit comprise: external power interface power, the 4th diode D4, the 13 electric capacity C13, the 14 electric capacity C14, the 16 electric capacity C16 and voltage stabilizing chip LM7805.External power interface power is connected with the input end of voltage stabilizing chip LM7805; Between the input end that 14 electric capacity C14 and the 16 electric capacity C16 is connected on voltage stabilizing chip LM7805 and ground.4th diode D4 forward connects the input end of voltage stabilizing chip LM7805.Between the output terminal that 13 electric capacity C13 is connected on voltage stabilizing chip LM7805 and ground.The voltage of 12V and 5V can be provided the embodiment of the present invention by the 13 electric capacity C13.
See Fig. 3, the embodiment of the present invention before operation, needs to carry out initialization to the common interface chip CH375 of usb bus, and waits for the insertion of USB flash disk.When USB flash disk inserts, first judge whether USB flash disk is plugged; Particularly, whether be ready to by the file-level subroutine CH375DiskReady Automatic inquirying USB flash disk of CH375; If USB flash disk is ready to, then illustrates that USB flash disk is plugged, otherwise be judged as that USB flash disk is not plugged; If be not plugged, hummer sends warning; If be plugged, pilot lamp is bright, and the common interface chip CH375 of usb bus obtains key from USB flash disk, and by key delivery in AT89S52 single board computer; Key preset in the key received and storer ST24C02 is compared by AT89S52 single board computer; If comparison is not mated, then reported to the police by hummer.If comparison is mated, AT89S52 single board computer output order opens latch gear.If AT89S52 single board computer stops receiving the key in USB flash disk, illustrate that now USB flash disk is extracted, then pilot lamp extinguishes.It should be noted that, see Fig. 4, the embodiment of the present invention can also be changed the password of dual lock.Concrete grammar is: first carry out initialization to the common interface chip CH375 of usb bus, and wait for the insertion of USB flash disk.When USB flash disk inserts, first judge whether USB flash disk is plugged; Particularly, whether be ready to by the file-level subroutine CH375DiskReady Automatic inquirying USB flash disk of CH375; If USB flash disk is ready to, then illustrates that USB flash disk is plugged, otherwise be judged as that USB flash disk is not plugged; If be not plugged, hummer sends warning; If be plugged, pilot lamp is bright; Password in USB flash disk is changed; Concrete operations are as follows: the type (as public, independence or privilege etc.) first selecting the password needing amendment, inputs new password (need twice and confirm) in the input frame ejected; After click confirming button, new password will be written to the sevtor address (depending on the type of the password that needs are revised) that USB flash disk is specified by AT89S52 single board computer, and now pilot lamp can glimmer three times, illustrates that password has been changed successfully.
Here it should be noted that, if by the key file of one family or unit lock used all stored in a USB flash disk, then a USB flash disk can be used to open the whole lock of one family or unit, thus improve the practicality of the embodiment of the present invention.
The programmable electronic coded lock that the embodiment of the present invention provides, reads the driving data in electron key by data read module, and driving data is transferred to Programmable Logic Controller; Data preset in the driving data received and data memory module are mated by Programmable Logic Controller; If coupling, by unblanking, tapered end is opened by module.The embodiment of the present invention avoids the generation of lawless person by the situation of the instrument opening door locks such as tinfoil inserted sheet, iron wire, has the advantages that security is high, meets the demand of people to lockset.The embodiment of the present invention is using single-chip microcomputer as core parts, and single-chip microcomputer has, and volume is little, quality is light, low-cost feature, and thus the embodiment of the present invention also has that volume is little, quality is light, low-cost feature.In addition, user as required, can also carry out personalized change to key data, further increases the security of the embodiment of the present invention voluntarily; And all kinds of cryptographic algorithm can be used to modify to data, further improve the security of the embodiment of the present invention.The standby current of the embodiment of the present invention only has 20 milliamperes, and running current is 800 milliamperes, energy-conserving and environment-protective and safe and reliable.In addition, because the embodiment of the present invention is without movable members, can not wear and tear, thus also there is the advantage of life-span length.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to example to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not departing from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.
Claims (10)
1. a programmable electronic coded lock, is characterized in that, comprising: Programmable Logic Controller, data memory module, latch module, module of unblanking, data read module and electron key; Described Programmable Logic Controller is connected with described latch module signal; The signal output part of described Programmable Logic Controller is connected with the signal input part of described module of unblanking, described in the unblank signal output part of module be connected with Electromagnetic lock; The signal input part of described data read module is for reading the driving data in described electron key, the signal output part of described data read module is connected with the signal input part of described Programmable Logic Controller, the driving data got is transferred in described Programmable Logic Controller; Described Programmable Logic Controller is connected with described data memory module signal, obtains initialize data, and described driving data and described initialize data are compared from described data memory module; If coupling, module of unblanking described in outputing signal, unblanks.
2. programmable electronic coded lock as claimed in claim 1, is characterized in that, also comprise: alarm module; The signal output part of described Programmable Logic Controller is connected with the signal input part of described alarm module, if described driving data and described initialize data are not mated, described Programmable Logic Controller outputs signal described alarm module, reports to the police.
3. programmable electronic coded lock as claimed in claim 2, it is characterized in that, described Programmable Logic Controller also judges that whether described data read module is normal from described electron key, reads described driving number;
If abnormal reading, then output signal is to described alarm module, reports to the police;
If normally read, then described driving data and described initialize data are compared.
4. programmable electronic coded lock as claimed in claim 2, it is characterized in that, described alarm module comprises: hummer, the first resistance, the 6th resistance and the first triode; The base stage of described first triode is connected with the signal output part of described Programmable Logic Controller by described first resistance, the emitter of described first triode is connected with power output end, and the collector of described first triode is connected with the signal input part of described hummer by described 6th resistance; Described hummer also ground connection;
Or described alarm module comprises: the 5th resistance, the 3rd triode, the 7th resistance and the second light emitting diode; The base stage of described 3rd triode is connected with the signal output part of described Programmable Logic Controller by described 5th resistance; The emitter of described 3rd triode is connected with power output end, and the collector of described 3rd triode is by described 7th resistance, described second light emitting diode ground connection;
Or described alarm module comprises: hummer, the first resistance, the 6th resistance, the first triode, the 5th resistance, the 3rd triode, the 7th resistance and the second light emitting diode; The base stage of described first triode is connected with the signal output part of described Programmable Logic Controller by described first resistance, the emitter of described first triode is connected with power output end, and the collector of described first triode is connected with the signal input part of described hummer by described 6th resistance; Described hummer also ground connection; The base stage of described 3rd triode is connected with the signal output part of described Programmable Logic Controller by described 5th resistance; The emitter of described 3rd triode is connected with power output end, and the collector of described 3rd triode is by described 7th resistance, described second light emitting diode ground connection.
5. programmable electronic coded lock as claimed in claim 4, is characterized in that, described in module of unblanking comprise: the second triode, the second resistance, the first electric capacity, electromagnetic relay and terminal box; The base stage of described second triode is connected with the signal output part of described Programmable Logic Controller by described second resistance, the emitter of described second triode is connected with power output end, and the collector of described second triode is connected with the normally closed interlock of described electromagnetic relay; The normally open contact of described electromagnetic relay is connected with described terminal box.
6. programmable electronic coded lock as claimed in claim 5, is characterized in that, described Programmable Logic Controller is the AT89S52 single board computer that American ATMEL is produced; Described data memory module comprises: the 3rd resistance, the 4th resistance and storer ST24C02; The base stage of described first triode is connected with the pin P1.2 of described AT89S52 single board computer by described first resistance; The base stage of described 3rd triode is connected with the pin P1.3 of described AT89S52 single board computer by described 5th resistance; The base stage of described second triode is connected with the pin P1.4 of described AT89S52 single board computer by described second resistance; Described 3rd resistance and described 4th resistor coupled in parallel are connected to power output end, and the other end of described 3rd resistance is connected with the pin SCL of described storer ST24C02, and the other end of described 4th resistance is connected with the pin SDA of described storer ST24C02; Pin E0, E1, E2, MODE and GND ground connection of described storer ST24C02, the pin VCC of described storer ST24C02 connects power output end; The pin P1.0 of described AT89S52 single board computer is connected with the pin SCL of described storer ST24C02, and the pin P1.1 of described AT89S52 single board computer is connected with the pin SDA of described storer ST24C02.
7. programmable electronic coded lock as claimed in claim 6, it is characterized in that, described electron key is USB; Described data read module is the common interface chip CH375 of usb bus; 8 BDB Bi-directional Data Bus D0, D1, D2, D3, D4, D5, D6 and the D7 of the common interface chip CH375 of described usb bus are connected with pin P0.0, P0.1, P0.2, P0.3, P0.4, P0.5, P0.6 and P0.7 of described AT89S52 single board computer separately respectively; The pin INT# of the common interface chip CH375 of described usb bus is connected with the pin P3.2 of described AT89S52 single board computer, the pin WR# of the common interface chip CH375 of described usb bus is connected with the pin P3.3 of described AT89S52 single board computer, the pin RD# of the common interface chip CH375 of described usb bus is connected with the pin P3.4 of described AT89S52 single board computer, and the pin A0 of the common interface chip CH375 of described usb bus is connected with the pin P3.5 of described AT89S52 single board computer.
8. programmable electronic coded lock as claimed in claim 6, is characterized in that, also comprise: extension storage module; Described extension storage module is connected with described AT89S52 single board computer signal by described latch module.
9. programmable electronic coded lock as claimed in claim 8, it is characterized in that, described extension storage module is chip I ntel 6264; Described latch module is chip 74LS373; Pin A7, A6, A5, A4, A3, A2, A1, A0, IO1, IO2, IO3, IO4, IO5, IO6, IO7 of described chip I ntel6264 are connected with pin Q7, Q6, Q5, Q4, Q3, Q2, Q1, Q0, D0, D1, D2, D3, D4, D5, D6 and D7 of described chip 74LS373 separately respectively with IO8; Pin A8, A9, A10, A11, A12, CE1, OE of described chip I ntel 6264 are connected with pin P2.0, P2.1, P2.2, P2.3, P2.4, P2.7, P3.7 and P3.6 of described AT89S52 single board computer separately respectively with WE; The pin LE of described chip 74LS373 is connected with the pin ALE/PROG of described AT89S52 single board computer.
10., as the programmable electronic coded lock that claim 6 is stated, it is characterized in that, also comprise: manual reset circuit; Described manual reset circuit comprises: the 3rd electric capacity, the 9th resistance, the tenth resistance and reset button; The described first end of the 9th resistance is connected with the pin P1.7 of described AT89S52 single board computer, and the second end of described 9th resistance and the first end of described 3rd electric capacity are connected to an A; Second end of described 3rd electric capacity connects power output end; Described some A is by described tenth resistance eutral grounding; First pedestal of described reset button is drawn from the first end of described 9th resistance, and the second pedestal of described reset button is drawn from described power output end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410494444.5A CN104318645A (en) | 2014-09-24 | 2014-09-24 | Programmable electronic cipher lock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410494444.5A CN104318645A (en) | 2014-09-24 | 2014-09-24 | Programmable electronic cipher lock |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104318645A true CN104318645A (en) | 2015-01-28 |
Family
ID=52373870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410494444.5A Pending CN104318645A (en) | 2014-09-24 | 2014-09-24 | Programmable electronic cipher lock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104318645A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6331812B1 (en) * | 1995-01-25 | 2001-12-18 | Electronic Key Systems (E.K.S.) S.A.R.L. | Programmable electronic locking device |
CN101383083A (en) * | 2008-07-11 | 2009-03-11 | 梁乐逊 | Alarming method and alarm thereof |
CN101477334A (en) * | 2009-01-19 | 2009-07-08 | 浙江大学 | Miniature organic refuse treatment automatic control system |
CN101519061A (en) * | 2009-04-08 | 2009-09-02 | 李丽丽 | Automotive anti-theft alarming system |
CN102535986A (en) * | 2012-03-09 | 2012-07-04 | 许晓聪 | Device for controlling door lock of automobile by using mobile phone |
CN102542647A (en) * | 2012-02-08 | 2012-07-04 | 广东步步高电子工业有限公司 | Method and system for opening safe or entrance guard device by utilizing mobile terminal |
CN102677987A (en) * | 2012-05-17 | 2012-09-19 | 黎荣金 | Control device of intelligent electronic password lock, control method thereof and management system thereof |
CN102760313A (en) * | 2012-06-29 | 2012-10-31 | 深圳光启创新技术有限公司 | Light-operated lock system based on voice prompt |
CN103353997A (en) * | 2013-07-24 | 2013-10-16 | 江苏晓山信息产业股份有限公司 | Intelligent mobile terminal control electronic lock system |
CN103366431A (en) * | 2013-06-08 | 2013-10-23 | 国家电网公司 | Management system and method for lockset of distribution network equipment |
-
2014
- 2014-09-24 CN CN201410494444.5A patent/CN104318645A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6331812B1 (en) * | 1995-01-25 | 2001-12-18 | Electronic Key Systems (E.K.S.) S.A.R.L. | Programmable electronic locking device |
CN101383083A (en) * | 2008-07-11 | 2009-03-11 | 梁乐逊 | Alarming method and alarm thereof |
CN101477334A (en) * | 2009-01-19 | 2009-07-08 | 浙江大学 | Miniature organic refuse treatment automatic control system |
CN101519061A (en) * | 2009-04-08 | 2009-09-02 | 李丽丽 | Automotive anti-theft alarming system |
CN102542647A (en) * | 2012-02-08 | 2012-07-04 | 广东步步高电子工业有限公司 | Method and system for opening safe or entrance guard device by utilizing mobile terminal |
CN102535986A (en) * | 2012-03-09 | 2012-07-04 | 许晓聪 | Device for controlling door lock of automobile by using mobile phone |
CN102677987A (en) * | 2012-05-17 | 2012-09-19 | 黎荣金 | Control device of intelligent electronic password lock, control method thereof and management system thereof |
CN102760313A (en) * | 2012-06-29 | 2012-10-31 | 深圳光启创新技术有限公司 | Light-operated lock system based on voice prompt |
CN103366431A (en) * | 2013-06-08 | 2013-10-23 | 国家电网公司 | Management system and method for lockset of distribution network equipment |
CN103353997A (en) * | 2013-07-24 | 2013-10-16 | 江苏晓山信息产业股份有限公司 | Intelligent mobile terminal control electronic lock system |
Non-Patent Citations (1)
Title |
---|
姚超友 等: "《工业自动化实训教程1嵌入式篇》", 31 May 2014, 中国轻工业出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107409056A (en) | Use the communication path of repeater selective enabling first and the second communication path | |
CN205232386U (en) | An apparatus for detecting an audio return function of a HDMI interface | |
CN102446141B (en) | Device and method for realizing write protection control | |
CN104217768B (en) | A kind of detection method and device of eMMC embedded memories | |
CN113568855B (en) | Low-cost PCIE hot plug multimode compatible device | |
CN105955911A (en) | Hot-plug control circuit and control method thereof | |
CN106789210A (en) | A kind of many DSP intelligent nodes on-line software updating methods based on CAN | |
CN101651794A (en) | Method for coping television memory data and intelligent copier | |
CN109739791A (en) | A kind of universal safety trusted interface card of PCIE and MINIPCIE double nip | |
CN202026431U (en) | Debugging device and debugging system | |
CN207115402U (en) | Usb interface circuit | |
CN104318645A (en) | Programmable electronic cipher lock | |
CN205722202U (en) | Electronic locker | |
CN109992129A (en) | A kind of method and system for sharing cell phone keyboard by USB data line | |
CN206696926U (en) | A kind of Bluetooth door lock | |
CN202995822U (en) | An automatic fare collection system master control unit | |
CN109240957A (en) | M.2 hard-disk interface turns usb circuit and conversion method to one kind | |
CN103035035B (en) | Automatic fare collection system main control unit | |
CN210867739U (en) | Automatic networking equipment for smart home system | |
CN101131666A (en) | Contact smart card simulation card | |
CN203733110U (en) | Internal integration circuit and control circuit thereof | |
CN103164125B (en) | A kind of display device utilizing touch key-press to realize digit input function | |
CN105630120B (en) | A kind of method and device of loading processing device hardware configuration word | |
CN206639124U (en) | A kind of industrial host computer | |
CN207488755U (en) | A kind of portable IIC command control systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150128 |
|
RJ01 | Rejection of invention patent application after publication |