A kind of intelligent electric-controlled device of electric door lock based on RFID and its method of work
The present invention relates to a kind of electric door lock, particularly a kind of electricity that truck door is moved applied to railway systems encrypting remote-control
The electric control gear of dynamic door lock.
It is at present that RFID radiofrequency signals are transmitted using fixed code using more remote control door gear in railway systems, and
Circuit is controlled by chip microcontroller, without function of redundancy protection.This common remote control mode has a disadvantage that：
1st, RFID radiofrequency signals are easily influenceed by single-chip microcomputer crystal oscillating circuit, and reliability and stability are poor；
2nd, the fixed code transmission of encryption is could be used without, signal is easily cracked and copied, and security is extremely low；
3rd, equipment control circuit is designed using single circuit mostly, once damaging, can only be opened by way of ruining door and tolling breakdown
Car door, causes unnecessary trouble and economic loss；
4th, if necessary to intelligent control function, fault rate is high, and equipment price is more expensive, is not suitable for largely using.
The content of the invention
To solve the above mentioned problem that prior art is present, the present invention will design a kind of reliability and stability height, security
It is high, maintain easily and the intelligent electric-controlled device of the cheap electric door lock based on RFID and its method of work.
To achieve these goals, technical scheme is as follows：A kind of electric door lock based on RFID is intelligent electric-controlled
Device, including RFID remote controls, RFID decoder, key-press input detection circuit, logic judging circuit, electric lock switch control electricity
Road, muting control circuit, electric lock feedback of status detection circuit, buzzer alarm circuit and battery condition detection circuit；
Described logic judging circuit detected respectively with key-press input the output end of circuit, electric lock ON-OFF control circuit it is defeated
Enter the output end connection of end, the input of muting control circuit and battery condition detection circuit；Described key-press input detection
The input of circuit receives the output signal of RFID remote controls through RFID decoder；Described electric lock feedback of status detection circuit
Output end is connected with electric lock equipment；Another input of described muting control circuit through electric lock feedback of status detect circuit with
It is connected with electric lock equipment；The output end of described muting control circuit is connected with buzzer alarm circuit；Described battery shape
The input of state detection circuit is connected with battery.
Further, whole device includes main electricity circuit, and described main electricity circuit includes HA12N20-
2539 power modules, VRB1205LD-15WR2 power modules and RELAY1 normally closed relays, described HA12N20-2539 power supplys
Module and VRB1205LD-15WR2 power modules are isolation Voltage stabilizing module；Described HA12N20-2539 power modules and
RELAY1 normally closed relays are connected with VRB1205LD-15WR2 power modules respectively；Described HA12N20-2539 power modules
Input is connected with municipal power network, and the input of described RELAY1 normally closed relays is connected with battery；Described
HA12N20-2539 power modules provide 12V power supplys for whole system, and described RELAY1 normally closed relay output ends are whole
System provides 12V stand-by power supplies, and described VRB1205LD-15WR2 power modules provide 5V power supplys for whole system.
Further, described RFID remote controls are the hand-held remote controllers using HCS301 rolling codes chip as core, with four
Individual button is unlocking key respectively, shut key, Jing Yin unlocking key and Jing Yin shut key；Described RFID decoder includes TDH6301
Further, described logic judging circuit is double loop logic judging circuit, including circuit 1 and circuit 2 are described
Circuit 1 be used to judge to unlock under non-mute pattern and shut state, described circuit 2 is used to judge to open under the silent mode
Lock and shut state；Described electric lock feedback of status detection circuit is double loop redundancy protecting circuit, is all the way electric lock opened point
Signal input testing circuit, another road is normally closed signal input testing circuit of electric lock；Described electric lock ON-OFF control circuit bag
Include unlocking circuit and shut circuit, described unlocking circuit is double loop redundancy protecting circuit, and described shuts circuit double loop
Redundancy protecting circuit, described unlocking circuit and to shut circuit separate.
A kind of method of work of the intelligent electric-controlled device of electric door lock based on RFID, comprises the following steps：
A, when RFID remote controls send RFID signal, RFID signal is converted to four road Transistor-Transistor Logic levels by RFID decoder to be believed
Number D0~D3, corresponds to four buttons on remote control respectively, and four described buttons are unlocking key respectively, shut key, Jing Yin opened
Locking key and Jing Yin shut key；It is also extra when there is any key-press input to produce Transistor-Transistor Logic level signal VT, and in the form of a pulse all the way
Output, that is, click button and just export a pulse signal；
The Transistor-Transistor Logic level signal exported after B, RFID decoder decoding reaches logic judgment electricity by key-press input detection circuit
Road, logic judging circuit controls muting control circuit and buzzer warning electricity respectively according to the difference in functionality of Transistor-Transistor Logic level signal
Road, electric lock ON-OFF control circuit；
C, electric lock ON-OFF control circuit are closed loop circuits, when user uses RFID remote controls, send RFID signal control electricity
Lock to open or close during state, electric lock can feed back oneself state and detect circuit, electric lock feedback of status detection electricity to electric lock feedback of status
Road judges that electric lock equipment whether there is failure, if need again by signal return to muting control circuit and buzzer alarm circuit
The overpressure alarm information that D, logic judging circuit collection battery condition detection circuit are transmitted, cuts off electric lock in time
Power supply prevents from damaging, while buzzer alarm circuit can produce alarm sound under non-mute state.
Compared with prior art, the invention has the advantages that：
1st, the present invention is detected in real time to standby battery electricity, intelligent alarm when voltage is low and during superpressure.
2nd, the present invention adopted in circuit design have access to electricity after without operation when keep equipment be in it is normally closed shut state, benefit is
It is normal or enable after battery stand-by power supply powers in equipment service restoration when equipment accident power-off or instantaneous voltage are unstable
Remain to keep vehicle door lock state.
3rd, power input of the invention uses insulating power supply module, and output end carries out Phototube Coupling using optocoupler, played
Insulation blocking is acted on, and makes the main control circuit that the 5V from insulating power supply module output end to optocoupler input powers not by extraneous ring
Border interference effect.
4th, logic judging circuit of the invention, electric lock feedback of status detection circuit and electric lock ON-OFF control circuit are using double
Loop redundancy protecting circuit, a circuit, which is damaged, will not cause control to be failed.
5th, the present invention is detected in real time to electric lock on off state, has buzzer warning prompting during any circuit controls failure, side
Just fault inquiry and maintenance.
6th, the intelligent electric-controlled devices of economical RFID that the present invention is used suitable for railway systems large area, can coordinate common electric
Door lock is used, and while RFID radiofrequency signals are not disturbed, possesses high safety and reliability.
Brief description of the drawings
Fig. 1 is the overall work schematic diagram of the present invention.
Fig. 2 is main electricity circuit theory diagrams.
Fig. 3 is battery condition detection circuit theory diagrams.
Fig. 4 is key-press input detection circuit theory diagrams.
Fig. 5 is the schematic diagram of logic judging circuit 1.
Fig. 6 is the schematic diagram of logic judging circuit 2.
Fig. 7 is electric lock feedback of status detection circuit theory diagrams.
Fig. 8 is muting control circuit and buzzer alarm circuit schematic diagram.
Fig. 9 is electric lock ON-OFF control circuit schematic diagram.
The particular content of the present invention is described in detail below in conjunction with the accompanying drawings.
It is the overall work principle of the present invention as shown in Figure 1, power supply of the invention is by main electricity and standby battery
Power supply is constituted, when power network is normal, and using 220V alternating currents, standby 12V batteries power supply to the device is used when having a power failure.When with
When HCS301 rolling codes chip sends RFID signal to intelligent electric-controlled device for the hand-held remote controller (four buttons) of core, in device
RFID decoder TDH6301 chips RFID signal is converted into four road Transistor-Transistor Logic level signals (D0~D3), respectively correspond to remote control
On four buttons, it is also extra when there is any key-press input in addition to produce Transistor-Transistor Logic level signal (VT), and with the shape of pulse all the way
Formula exports (click button and just export a pulse signal), and the Transistor-Transistor Logic level signal exported after RFID decoder decoding passes through
Key-press input detection circuit reaches logic judging circuit, and logic judging circuit is according to (totally four kinds of the difference in functionality of Transistor-Transistor Logic level signal
Function, is to unlock respectively, shuts, Jing Yin to unlock, Jing Yin to shut), control respectively muting control circuit and buzzer alarm circuit,
Electric lock ON-OFF control circuit；Electric lock switch control is closed loop circuit, and signal controls electric lock for when opening or closing state, electric lock can feed back
Oneself state detects circuit to electric lock feedback of status, and electric lock feedback of status detection circuit is again by signal return to muting control circuit
And buzzer alarm circuit, judge that equipment whether there is failure, if need to produce alarm.In addition, logic judging circuit is also needed
The overpressure alarm information that battery condition detection circuit is transmitted is gathered, the power supply of cut-out electric lock prevents from damaging in time, while honeybee
Ring device warning circuit can produce alarm sound under non-mute state.
As shown in Fig. 2 being that 220V exchanges turn the use of 12V direct currents in main electricity circuit operation principle, circuit
HA12N20-2539 power modules, 12V turns 5V using VRB1205LD-15WR2 power modules, this two kinds of power modules be all every
From Voltage stabilizing module, it is ensured that power supply is not impacted by external interference and influenceed.RELAY1 components below figure are a normally closed relay
Device, when having 220V to exchange normal power supply and inputting HA12N20-2539 power modules, power module exports 12V direct currents (in figure
Represented with A12V), while controlling normally closed relay to disconnect, B12V is represented storage battery power supply electricity from being output to 12V, B12V
Pressure；When 220V exchanges are stopped power supply, power module stops output A12V, and control relay is not acted, and now relay is kept
Normally off, makes B12V access 12V, and battery is powered for equipment.
As shown in figure 3, be battery condition detection circuit operation principle, when battery tension is less than 11V, figure top
D1 voltage-regulator diodes IN4741 is not turned on, and optocoupler PC1 is not exported, and D2 is that LED green lights do not work, and indicates electricity shortage；Work as battery
When voltage is higher than 11V, D1 conductings, optocoupler PC1 outputs, D2 Chang Liang indicate that power supply is stable.When battery tension is higher than 15V, figure
The D6 voltage-regulator diodes IN4744 conductings of bottom, optocoupler PC2 outputs, D8 is that LED red lights are lit, while exporting overpressure alarm letter
As Figure 4-Figure 6, it is that key-press input is detected on circuit and logic judging circuit operation principle, Fig. 4 P2 sockets
D0~D3 and VT signals all are from RFID decoder TDH6301 chips, and wherein D0~D3 is exported with interlock mode, the tunnels of Ji Ci tetra-
Signal is locked mutually, when button corresponding on RFID remote controls is pressed, can only have a kind of signal output in the same time
For high level.When being re-powered after RFID decoder TDH6301 chip accident power-offs, four road signal initial values are low electricity
It is flat.Four road signals represent that D0 is unlocks, and D1 is shuts, and D2 unlocks to be Jing Yin, and D3 shuts to be Jing Yin respectively；In addition, VT signal tables
Show key pulse signal, often click button, export a pulse.What the logic judging circuit shown in Fig. 5 and Fig. 6 was mainly realized
1. when being re-powered after power supply accident power-off or instant cut-off, keep output to shut signal.Specific implementation
For, when electric initial value is low level on D0~D3 signals, by 74HC14 phase inverters, it is changed into high level, it is rear to pass through again
74HC08 and door chip, export A01 and A02 two-way high level signals, and this is that two-way redundancy initially shuts signal.
2. shut control signal output function.Specific implementation is, when D1 or D3, which shuts signal, to be manually pressed,
Control signal B01 and B02 are shut by the anti-phase output isolation twice of 74HC14 phase inverters, then B01 and A01 inputs
74HC4075 OR gate chips, produce it is final shut control signal output STMOUT01 signals, another road redundant circuit similarly,
B02 and A02 input 74HC4075 OR gate chips, produce the final control signal that shuts and export STMOUT02 signals.
3. unlocking control signal output function.Specific implementation is, when D0 or D2 unlocking signals are manually pressed,
By 74HC14 twice anti-phase output isolation unlocking control signal STMOUT03INT and STMOUT04INT, then
STMOUT03INT and battery overpressure alarm signal ALARM1 input 74HC4075 OR gate chips, produce final unlocking control
Signal output STMOUT03 signals, another road redundant circuit similarly, STMOUT04INT and battery overpressure alarm signal ALARM1
74HC4075 OR gate chips are inputted, final unlocking control signal output STMOUT04 signals are produced.
4. key prompting voice signal output function.Specific implementation is that any one is pressed manually when D0~D3 signals
When lower, with output VT pulse signals, VT signals by 74HC14, isolate twice by anti-phase output, produces final prompt tone signal
Export to muting control circuit and buzzer alarm circuit.
As shown in fig. 7, be electric lock feedback of status detection circuit operation principle, when electric lock, which is in, shuts working condition, meeting
Two kinds of feedback signals (normally opened and normally closed common port is 12V earth signal) are produced, opened point closure and normally closed point disconnect.When next
From logic judging circuit when shutting control signal STMOUT01 for high level, if electric lock can normally be shut, opened point is closed
Conjunction turns on measure loop optocoupler U11, U4 (74HC08 and door) 10 pin low levels, then ALARM3 is low level, i.e., do not produce
Alarm, does not shut if electric lock is faulty, and ALARM3 is high level, produces alarm；When shutting from logic judging circuit
When control signal STMOUT01 is high level, if electric lock can normally be shut, normally closed point disconnection makes measure loop optocoupler U12 not
Conducting, U4 (74HC08 and door) 13 pin low levels, then ALARM4 is low level, i.e., alarm is not produced, if electric lock is faulty
Do not shut, then ALARM4 is high level, produces alarm.Tri- kinds of alarm signals of ALARM1, ALARM3 and ALARM4 and button are carried
Show that message ALARM2 inputs 74HC4075 OR gate chips jointly, produce final buzzer jingle bell output signal ALARMALL,
It is output to muting control circuit and buzzer alarm circuit.
As shown in figure 8, being muting control circuit and buzzer alarm circuit principle, optocoupler PC6 front ends are Jing Yin control electricity
Road, only when buzzer jingle bell output signal ALARMALL is the Jing Yin unlocking of high level, D2 and D3 is Jing Yin shuts as low level (i.e.
The corresponding function button of remote control is not pressed), this three conditions are met simultaneously in the case that, with the high electricity of door 74HC08 outputs
Flat, the buzzer alarm circuit that optocoupler just turns on control rear end sends sound, and MK1 is 12V buzzers.
As shown in figure 9, be electric lock ON-OFF control circuit principle, wherein figure left side shut control signal STMOUT01 and
One normally opened relay of STMOUT02 co- controllings, when relay is closed, ZU12V signals control electric lock equipment is shut；Figure is right
Side unlocking control signal STMOUT03 and STMOUT04 difference one normally closed relay of each control, two normally closed relays are serially connected in
In the input control loop of normally opened relay, when any one normally closed relay disconnects, it can all make the control of normally opened relay
Loop disconnects, and 1 pin POWER is 0V, so as to ensure that normally opened relay output end is off-state, electric lock equipment is in unlocking shape
The present invention is not limited to the present embodiment, any equivalent concepts in the technical scope of present disclosure or changes
Become, be classified as protection scope of the present invention.