A kind of smart lock control circuit
Technical field
The present invention relates to Internet of Things and control technical field, be specially a kind of smart lock control circuit.
Background technology
It is the important content of modern logistics to the location of commodity or haulage vehicle and monitoring, owing to being generally adopted lock at present by the restriction of technology and supercargo realizes the monitoring to commodity Yu vehicle.Lock is security tool the most frequently used in merchandise control, uses very extensive in fields such as vehicle people, logistic storage, workshop, families.Existing widely used lock mainly includes 3 kinds: the first is the lock using key or password to open, and the second is the lock using electronic tag to open, and the third is by identifying that certain feature of human body opens lock, such as living body finger print etc..Above-mentioned these are locked in and use very convenient in static merchandise control, have safety high.But in mobile merchandise control, as in transit, it is impossible to the safety of effective monitoring commodity, there are major safety risks.When first unblanking, lock and unlocking person must at same scenes, it is impossible to realize remote unlocking, it is necessary to arrange to escort goods on a train, truck, etc. personnel;Lock can not be carried out centralized management by second, it is impossible to the state locked in transit carries out 24 hours real time location trackings, exists and locks by the phenomenon of artificial destruction, causes the loss of commodity;3rd lock can not be carried out remote alarms when illegally beating.
Summary of the invention
In order to solve the problems referred to above, the invention provides a kind of smart lock control circuit, the position of lock and the state of lock are realized remote real-time monitoring by wireless network by it, can remote unlocking, automatically sent location and the warning message of lock when lock illegally opens, have the advantages that cost is low, integrated level is high, low in energy consumption, positioning precision is high, use safety.
Its technical scheme is such that a kind of smart lock control circuit, it includes power circuit, it is characterized in that, it also includes monolithic microcomputer kernel modular circuit, described monolithic microcomputer kernel modular circuit connects BD-126 positioning circuit, SIM900A communicating circuit, electric lock control circuit, serial communication circuit, described BD-126 positioning circuit, SIM900A communicating circuit connect antenna respectively, and described monolithic microcomputer kernel modular circuit, BD-126 positioning circuit, SIM900A communicating circuit, electric lock control circuit, serial communication circuit connect described power circuit respectively.
It is further characterized by, described monolithic microcomputer kernel modular circuit includes KL25Z128VFM4 singlechip chip U6, described KL25Z128VFM4 singlechip chip U6 connects crystal oscillating circuit, reset circuit, filter circuit, single-chip microcomputer working indicating, SWD debugging interface socket JP1, LCD jack interface JP2, described crystal oscillating circuit is by electric capacity C6, C7 and 8Mhz crystal oscillator Y1 is constituted, described reset circuit is by resistance R7, electric capacity C8 and reset switch S1 is constituted, described filtered electrical routing capacitance C1, C2, C3, C4, C5 is constituted, described single-chip microcomputer working indicating is made up of resistance R6 and display lamp D1;
Described SIM900A communicating circuit includes SIM900A chip U4, described SIM900A chip U4 connects SIMCARD circuit, chip operation indicating circuit, antenna 3G_ANT, the 9th of described SIM900A chip U4, 10 feet connect the 1st of described KL25Z128VFM4 singlechip chip U6 respectively, 24 feet, described SIMCARD electricity routing resistance R9, resistance R10, resistance R11, diode D5, diode D6, diode D7, electric capacity C21, electric capacity C22, sim card socket JP3 is constituted, described chip operation indicating circuit is by resistance R8, display lamp D3, resistance R12, resistance R13, resistance R14, display lamp D4, audion Q1 is constituted;
Described BD-126 positioning circuit includes BD-126 positioning chip U5, described BD-126 positioning chip U5 connects antenna ANT and electric capacity C27, the 20th of described BD-126 positioning chip U5 the, 21 feet connect the 30th of described KL25Z128VFM4 singlechip chip U6 the respectively, 29 feet;
Described electric lock control circuit includes audion Q2, the base stage of described audion Q2 connects resistance R4, R5 one end, the described resistance R4 other end connects the 32nd foot of described KL25Z128VFM4 singlechip chip U6, the described resistance R5 other end connects the emitter stage of described audion Q2, the colelctor electrode of described audion Q2 connects diode D8 one end, relay K 1, and the contact switch of relay K 1 connects electric lock and electric lock power supply;
Described serial communication circuit includes MAX3232ESE chip U7, described MAX3232ESE chip U7 connects DB9 serial port socket JP4, electric capacity C22, C23, C24, C25, C26, the 11st of described MAX3232ESE chip U7 the, 12 feet connect the 12nd of described KL25Z128VFM4 singlechip chip U6 the respectively, 11 feet;
Described power circuit includes 3.3V power circuit, 5V power circuit and 4.2V power circuit and supply socket JP5, the input of described 3.3V power circuit, 5V power circuit and 4.2V power circuit connects 9V input power respectively through described supply socket JP5, the outfan of described 3.3V power circuit connects described BD-126 positioning circuit, monolithic microcomputer kernel modular circuit and serial communication circuit, the outfan of described 5V power circuit connects described electric lock control circuit, and the outfan of described 4.2V power circuit connects described SIM900A communicating circuit;
Described 3.3V power circuit includes AMS1117-3.3 voltage stabilizing chip U1, described AMS1117-3.3 voltage stabilizing chip U1 connects electric capacity C13, C14, C15, C16, 3 feet of described AMS1117-3.3 voltage stabilizing chip U1 connect input power, 2 feet are the outfan of 3.3V power circuit, described 5V power circuit includes AMS1117-5.0 voltage stabilizing chip U2, described AMS1117-5.0 voltage stabilizing chip U2 connects electric capacity C17, C18, C19, C20, resistance R3, display lamp D2, 3 feet of described AMS1117-5.0 voltage stabilizing chip U2 connect input power, 2 feet are the outfan of 5V power circuit, described 4.2V power circuit includes MIC29302WT voltage stabilizing chip U3, described MIC29302WT voltage stabilizing chip U3 connects electric capacity C9, C10, C11, C12, resistance R1, R2, 2 feet of described MIC29302WT voltage stabilizing chip U3 connect input power, 4 feet are the outfan of 4.2V power circuit.
After adopting the present invention, compared with existing electronic lock control circuit, owing to using BD-126 positioning circuit, by China's BEI-DOU position system, have highly sensitive, locating speed is fast, the feature that positioning precision is high, calculation process is carried out by monolithic microcomputer kernel modular circuit, speed is fast, location information and the work state information of lock that system is obtained by SIM900A communicating circuit are sent on remote server or mobile phone after encryption, remote server or SMS signal can also be accepted, the associative operation of electric lock control circuit is controlled after decryption processing, realize the remote opening to electric lock and shutoff operation, lock can be carried out attribute setting by serial communication circuit, such as the phone number specified, the information such as password, system can be tested by electricity simultaneously, security performance is better improved, the position of lock and the state of lock are realized remote real-time monitoring by wireless network by the present invention, can remote unlocking, automatically location and the warning message of lock is sent when lock is illegally opened, there is cost low, integrated level is high, low in energy consumption, positioning precision is high, use safe feature.
Accompanying drawing explanation
Fig. 1 is electrical block diagram of the present invention;
Fig. 2 is monolithic microcomputer kernel modular circuit schematic diagram;
Fig. 3 is power circuit schematic diagram;
Fig. 4 is SIM900A communicating circuit schematic diagram;
Fig. 5 is BD-126 positioning circuit schematic diagram;
Fig. 6 is electric lock control circuit schematic diagram;
Fig. 7 is serial communication circuit schematic diagram.
Detailed description of the invention
As shown in Figure 1, a kind of smart lock control circuit, it includes power circuit 4, it also includes monolithic microcomputer kernel modular circuit 3, monolithic microcomputer kernel modular circuit 3 connects BD-126 positioning circuit 2, SIM900A communicating circuit 5, electric lock control circuit 7, serial communication circuit 8, BD-126 positioning circuit 2, SIM900A communicating circuit 5 connect antenna 1,6 respectively, and monolithic microcomputer kernel modular circuit 3, BD-126 positioning circuit 2, SIM900A communicating circuit 5, electric lock control circuit 7, serial communication circuit 8 connect power circuit 4 respectively.
As shown in Figure 2, monolithic microcomputer kernel modular circuit 3 includes KL25Z128VFM4 singlechip chip U6, KL25Z128VFM4 singlechip chip U6 and connects crystal oscillating circuit, reset circuit, filter circuit, single-chip microcomputer working indicating, SWD debugging interface socket JP1, LCD jack interface JP2, crystal oscillating circuit is by electric capacity C6, C7 and 8Mhz crystal oscillator Y1 is constituted, and reset circuit is by resistance R7, electric capacity C8 and reset switch S1 is constituted, and can be realized the reset operation of circuit, filtered electrical routing capacitance C1 by reset switch S1, C2, C3, C4, C5 is constituted, single-chip microcomputer working indicating is made up of resistance R6 and display lamp D1, in order to show the duty of single-chip microcomputer, SWD debugging interface socket JP1 can realize download program and the debugging of single-chip microcomputer, LCD jack interface JP2 can plug LCD display, by the work state information of SPI communication modes display system, KL25Z128VFM4 singlechip chip U6 provides the information processing capability of fast and reliable for system, includes download program and the function of operating temperature monitoring simultaneously.
As shown in Figure 3, power circuit includes 3.3V power circuit, 5V power circuit and 4.2V power circuit and supply socket JP5, the input of 3.3V power circuit, 5V power circuit and 4.2V power circuit connects 9V input power respectively through supply socket JP5, the outfan of 3.3V power circuit connects BD-126 positioning circuit, monolithic microcomputer kernel modular circuit and serial communication circuit, the outfan of 5V power circuit connects electric lock control circuit, and the outfan of 4.2V power circuit connects SIM900A communicating circuit;3.3V power circuit includes AMS1117-3.3 voltage stabilizing chip U1, AMS1117-3.3 voltage stabilizing chip U1 and connects electric capacity C13, C14, C15, 3 feet of C16, AMS1117-3.3 voltage stabilizing chip U1 connect input power, 2 feet are the outfan of 3.3V power circuit, and output electric current is that 500mA, 5V power circuit includes AMS1117-5.0 voltage stabilizing chip U2, AMS1117-5.0 voltage stabilizing chip U2 connection electric capacity C17, C18, C19, C20, resistance R3, 3 feet of display lamp D2, AMS1117-5.0 voltage stabilizing chip U2 connect input power, 2 feet are the outfan of 5V power circuit, and output electric current is that 500mA, 4.2V power circuit includes MIC29302WT voltage stabilizing chip U3, MIC29302WT voltage stabilizing chip U3 connection electric capacity C9, C10, C11, C12, resistance R1, 2 feet of R2, MIC29302WT voltage stabilizing chip U3 connect input power, 4 feet are the outfan of 4.2V power circuit, and output electric current is 3A, and display lamp D2 is in order to show the duty of power circuit, due to 3.3V power circuit, 5V power circuit and 4.2V power circuit are all connect 9V input power by supply socket JP5, when 5V power circuit has voltage input indicator D2 bright, then show 3.3V power circuit, 4.2V power circuit also has voltage to input, 3.3V power circuit, 5V power circuit and 4.2V power circuit normal operation.
As shown in Figure 4, SIM900A communicating circuit includes SIM900A chip U4, SIM900A chip U4 and connects SIMCARD circuit, chip operation indicating circuit, antenna 3G_ANT, SIMCARD electricity routing resistance R9, resistance R10, resistance R11, diode D5, diode D6, diode D7, electric capacity C21, electric capacity C22, sim card socket JP3 is constituted, and sim card socket JP3 may be inserted into SIM, carries out GSM/GPRS communication by antenna 3G_ANT and mobile network, launches and accept radio wave, and timing sends location and lock status to server or the mobile phone specified, the data such as system operating temperatures, chip operation indicating circuit is by resistance R8, display lamp D3, resistance R12, resistance R13, resistance R14, display lamp D4, audion Q1 is constituted, and display lamp D3 is in order to show the duty of SIM900A communicating circuit, and display lamp D4, in order to show network state, is shown in shown in Fig. 2, Fig. 4, the 9th of SIM900A chip U4, 10 feet connect the 1st of KL25Z128VFM4 singlechip chip U6 respectively, 24 feet, it is achieved the data communication of KL25Z128VFM4 singlechip chip U6 and SIM900A chip U4.
As shown in Figure 5, BD-126 positioning circuit includes BD-126 positioning chip U5, BD-126 positioning chip U5 connects antenna ANT and electric capacity C27, antenna ANT is for accepting the electric wave of big-dipper satellite, the data such as location, time service, movement velocity are provided for system, see shown in Fig. 2, Fig. 5, the 20th of BD-126 positioning chip U5,21 feet connect the 30th of KL25Z128VFM4 singlechip chip U6 the respectively, 29 feet, it is achieved the data communication of KL25Z128VFM4 singlechip chip U6 and BD-126 positioning chip U5.
As shown in Figure 6, electric lock control circuit includes audion Q2, the base stage of audion Q2 connects resistance R4, R5 one end, the emitter stage of resistance R5 other end connecting triode Q2, the colelctor electrode of audion Q2 connects diode D8 one end, relay K 1, the contact switch of relay K 1 connects electric lock and electric lock power supply, the open and close operation of electric lock is realized under the control of teleinstruction, see Fig. 2, shown in Fig. 6, the resistance R4 other end connects the 32nd foot of KL25Z128VFM4 singlechip chip U6, it is achieved the KL25Z128VFM4 singlechip chip U6 control to relay K 1.
As shown in Figure 7, serial communication circuit includes MAX3232ESE chip U7, MAX3232ESE chip U7 connects DB9 serial port socket JP21, electric capacity C22, C23, C24, C25, C26, BB9 serial ports socket JP21 is connected with host computer, transmitted the related data of system work to host computer by serial ports when system test, accept the configuration-direct of host computer simultaneously, see Fig. 2, shown in Fig. 7, the 11st of MAX3232ESE chip U7,12 feet connect the 12nd of KL25Z128VFM4 singlechip chip U6 the respectively, 11 feet, it is achieved the data communication of system and host computer.