Summary of the invention
Fundamental purpose of the present invention is the control circuit, the system and method that provide a kind of master control borad for electronic lock and electronic lock, cannot the problem of remote control electronic lock to solve in prior art.
To achieve these goals, according to an aspect of the embodiment of the present invention, a kind of control circuit of electronic lock is provided.
Control circuit according to electronic lock of the present invention comprises: telecommunication circuit; Processor, is connected with described telecommunication circuit, for by described telecommunication circuit and server communication; And driving circuit, be connected with described processor, and be connected with the electronic lock body arranged in described electronic lock, for being received the steering order that described server sends by described processor, drive described electronic lock body action.
Further, described telecommunication circuit comprises: radio communication circuit, is connected with described processor; And antenna, be connected with described radio communication circuit.
Further, described status data also for reading the status data of electronic lock body, and is sent to described processor by described driving circuit.
Further, described control circuit also comprises: storer, is connected with described processor, for the encrypted message of the badge information and/or described electronic lock that store described electronic lock.
Further, described control circuit also comprises: card reader interface circuit, is connected with the card reader arranged in described electronic lock, for reading the badge information that described card reader receives, and the described badge information read is sent to described processor.
Further, described control circuit also comprises: code keypad circuit, for receiving the unlocking cipher of input, and described unlocking cipher is sent to described processor.
Further, described control circuit also comprises: lock testing circuit, locks state, and the first testing result is sent to described processor for what detect described electronic lock, wherein, described first testing result be the described electronic lock detected lock state.
Further, described control circuit also comprises: burglar alarm testing circuit, for detecting the abnormal start-up state of described electronic lock.
Further, described control circuit also comprises: power circuit, is connected with power supply, for powering to described control circuit.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of master control borad for electronic lock.Master control borad for electronic lock according to the present invention comprise that foregoing provides any one described in the control circuit of electronic lock.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of control system of electronic lock.Control system according to electronic lock of the present invention comprises server; Control circuit, being arranged in electronic lock, for receiving the steering order that described server sends, controlling the electronic lock body action in described electronic lock according to described steering order, wherein, control circuit provide for foregoing any one described in the control circuit of electronic lock.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of control method of electronic lock.Control method according to electronic lock of the present invention comprises: the steering order that processor is sent by telecommunication circuit reception server, wherein, described processor provide for foregoing any one described in electronic lock control circuit in processor, described telecommunication circuit is the telecommunication circuit in described control circuit; And described processor sends described steering order to the driving circuit in described control circuit, drive electronic lock body action in described electronic lock to make described driving circuit.
According to the embodiment of the present invention, adopt the control circuit with following structure: telecommunication circuit; Processor, is connected with described telecommunication circuit, for by described telecommunication circuit and server communication; And driving circuit, be connected with described processor, and be connected with the electronic lock body arranged in described electronic lock, for being received the steering order that described server sends by described processor, drive described electronic lock body action.By arranging telecommunication circuit, make can communicate between processor and server, server long-rangely can be sent unlock instruction to processor or lock instruction.By in control circuit arrange with processor with the use of driving circuit, processor is after receiving and unblanking or lock instruction, the on off state of electronic lock can be controlled by connected driving circuit, make server just can carry out Long-distance Control to electronic lock switch state by processor and driving circuit, solving in prior art cannot the problem of remote control electronic lock, and then reaches the effect of remote control electronic lock on off state.Further, this kind, by the mode of control circuit remote control electronic lock on off state, makes the managerial personnel of electronic lock can manage concentratedly electronic lock, reaches the effect of the convenience of the managerial personnel's managing electronic lock improving electronic lock.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to the embodiment of the present invention, provide a kind of control circuit of electronic lock.Fig. 1 is the schematic diagram of the control circuit of electronic lock according to the embodiment of the present invention, as shown in Figure 1, this control circuit mainly comprises processor 10, telecommunication circuit 20 and driving circuit 30, wherein, processor 10 is connected with telecommunication circuit 20, and processor 10 is for by telecommunication circuit and server communication, driving circuit 30 is connected with processor, and be connected with the electronic lock body arranged in electronic lock, the steering order of driving circuit 30 for being sent by processor reception server, drive electronic lock body action.
Particularly, when communicating between processor with server, the embedded program for communicating pre-set can be called, and then realized the transmission of information by telecommunication circuit.Processor can be single-chip microcomputer, arm processor etc.Steering order can be unlock instruction (that is, controlling the instruction that electronic lock is opened), can also be to lock instruction (that is, controlling the instruction that electronic lock is locked).
Embodiment of the present invention detailed process is: server issues unlock instruction (locking instruction) by telecommunication circuit to the processor in control circuit, after processor receives above-mentioned unlock instruction (locking instruction) by telecommunication circuit, by driving electronic lock body to perform the action corresponding with above-mentioned unlock instruction (locking instruction) with the driving circuit that electronic lock body connects, thus realize (closing the door) operation of opening the door.It should be noted that, the electronic lock body arranged in electronic lock generally all leaves control interface, and driving circuit provides control signal by above-mentioned control interface to electronic lock body, thus can realize driving electronic lock body action.
In embodiments of the present invention, by arranging telecommunication circuit, make can communicate between processor and server, server long-rangely can be sent unlock instruction to processor or lock instruction.By in control circuit arrange with processor with the use of driving circuit, processor is receiving unlock instruction or after locking instruction, the on off state of electronic lock can be controlled by connected driving circuit, make server just can carry out Long-distance Control to electronic lock switch state by processor and driving circuit, solving in prior art cannot the problem of remote control electronic lock, and then reaches the effect of remote control electronic lock on off state.Further, this kind, by the mode of control circuit remote control electronic lock on off state, makes the managerial personnel of electronic lock can manage concentratedly electronic lock, reaches the effect of the convenience of the managerial personnel's managing electronic lock improving electronic lock.
Fig. 2 is the structural representation of the control circuit of electronic lock according to the preferred embodiment of the invention.As shown in Figure 2, telecommunication circuit 20 comprises antenna 21 and radio communication circuit 22, and wherein, antenna 21 is connected with radio communication circuit 22, and radio communication circuit 22 is connected with processor 10.Antenna 21 can be PCB antenna, ceramic antenna or high frequency lead etc.Radio communication circuit 22 can be 433Mhz radio communication circuit, 900Mhz radio communication circuit, bluetooth, Zigbee, WIFI etc.In embodiments of the present invention, by arranging antenna and radio communication circuit in telecommunication circuit, make can realize radio communication between server and processor.
Preferably, status data also for reading the status data of electronic lock body, and is sent to processor 10 by driving circuit 30.Particularly, except control interface, electronic lock body generally all also leaves state interface, and driving circuit can read the status data of electronic lock body by state interface.Electronic lock body has two states data, and a kind of status data opens, and another kind of status data locks.Detailed process is: driving circuit 30 reads the status data of electronic lock body by the state interface of electronic lock body, and the status data read is sent to processor 10, the status data received can be sent to server by processor 10, and server stores the status data received.Pass through the embodiment of the present invention, make the managerial personnel of electronic lock without the need in person removing to check the on off state of room door, can by the status data of server lookup electronic lock, recognize the on off state of the room door that above-mentioned electronic lock is corresponding, reach the work efficiency of managerial personnel and the effect of convenience that improve electronic lock.
Alternatively, as shown in Figure 2, the control circuit of electronic lock that the embodiment of the present invention provides also comprises storer 40.Storer 40 is connected with processor 10, the encrypted message of the badge information that storer 40 is locked for store electrons and/or electronic lock, wherein, the encrypted message of badge information and electronic lock is all for unlocking electronic lock, the particular content of above-mentioned information can be arranged by Server remote, and server can also arrange the term of validity of above-mentioned badge information and encrypted message, above-mentioned badge information or above-mentioned encrypted message.For the badge information and encrypted message, badge information or the encrypted message that are provided with the term of validity, if before the deadline, electronic lock unlocking action can be realized by above-mentioned badge information and encrypted message, badge information or encrypted message, if but exceed the term of validity, processor can delete above-mentioned badge information and encrypted message, badge information or encrypted message automatically, corresponding badge or password were lost efficacy, also just cannot realize the unlocking action of electronic lock.
Embodiment of the present invention detailed process is: server issues badge information, encrypted message or badge information and encrypted message by telecommunication circuit to the processor in control circuit, after processor receives above-mentioned information by telecommunication circuit, above-mentioned information is stored in memory.It should be noted that, when communicating between processor with server, call pre-set also can store in memory for the embedded program communicated.
Alternatively, as shown in Figure 2, the control circuit of electronic lock that the embodiment of the present invention provides also comprises card reader interface circuit 50.Card reader interface circuit 50 is connected with the card reader arranged in electronic lock, is also connected with processor 10, the badge information that card reader interface circuit 50 receives for reading card reader, and the badge information read is sent to processor 10.It should be noted that, above-mentioned card reader inherently exists in electronic lock.Embodiment of the present invention detailed process is: when the mode of the first client by swiping the card facing to electronic lock, during for realizing opening door operation, card reader interface circuit reads the badge information that card reader receives, and the badge information read is sent to processor, processor is verified the badge information that card reader interface circuit reads by the badge information stored in storer, if the badge information that card reader interface circuit reads is consistent with the badge information stored in storer (be also, the badge information that card reader interface circuit reads is consistent with the badge information before by Servers installed), illustrate that the badge information that card reader interface circuit reads passes through checking, processor drives electronic lock body to perform action corresponding to unlock instruction by driving circuit, thus achieve opening door operation, wherein, the first client in the present embodiment is the client swiped the card facing to electronic lock.And, no matter whether the badge information that card reader interface circuit reads is by checking, the badge information received by card reader interface circuit can also be uploaded onto the server by processor, the record to enabling situation of swiping the card (namely electronic lock opens situation) can be realized like this, and then reach the effect increasing security.
Alternatively, as shown in Figure 2, the control circuit of electronic lock that the embodiment of the present invention provides also comprises code keypad circuit 60.Code keypad circuit 60 is connected with processor 10, and unlocking cipher for receiving the unlocking cipher of input, and is sent to processor 10 by code keypad circuit 60.It should be noted that, when control circuit comprises code keypad circuit 60, the outer lock shell panel of electronic lock is code keypad panel, and code keypad circuit 60 receives the unlocking cipher of second client's input by code keypad panel.
The detailed process of the embodiment of the present invention is: when the second client is by the mode at code keypad panel input unlocking cipher, during for realizing opening door operation, code keypad circuit receives the unlocking cipher of second client's input by code keypad panel, and the unlocking cipher received is sent to processor, processor is verified the unlocking cipher received by code keypad circuit by the encrypted message stored in storer, if the unlocking cipher received by code keypad circuit is consistent with the password in the encrypted message stored in storer (be also, the unlocking cipher received by code keypad circuit is with consistent by the password in the encrypted message of Servers installed before), illustrate that the unlocking cipher received by code keypad circuit is by checking, so processor drives electronic lock body to perform action corresponding to unlock instruction by controlling driving circuit, thus realize opening door operation, wherein, the second client in the present embodiment is the client at code keypad panel input unlocking cipher, second client and the first client can be same clients, also can be different clients.And, no matter whether the unlocking cipher received by code keypad circuit is by checking, the above-mentioned unlocking cipher received by code keypad circuit can also be uploaded onto the server by processor, the record to input secret number situation (namely electronic lock opens situation) can be realized like this, and then reach the effect increasing security.
Preferably, the control circuit of electronic lock that the embodiment of the present invention provides also comprises locks testing circuit.Lock testing circuit to be not only connected with processor 10, or knob can also be locked be connected with the Square lock bolt arranged in electronic lock.That locks that testing circuit locks for detected electrons locks state, and testing result is sent to processor, wherein, testing result be electronic lock detected lock state.Particularly, the state of locking is divided into two kinds, is respectively to lock and do not lock.Square lock bolt or the position of locking knob are divided into open site and latched position, wherein, when Square lock bolt or lock knob be in open site time, represent that electronic lock is not locked; When Square lock bolt or lock knob be in latched position time, represent electronic lock locked.
Embodiment of the present invention detailed process is: lock testing circuit by detecting connected Square lock bolt or the position of locking knob determines whether electronic lock is locked, if Square lock bolt or lock knob when being positioned at latched position, then lock testing circuit and detect that the state of locking of electronic lock is for locking, so lock testing circuit feedback " locking " to processor; If Square lock bolt or lock knob when being positioned at open site, then lock testing circuit and detect that the state of locking of electronic lock is not for " locking ", so lock testing circuit not lock to processor, no matter whether electronic lock is locked, the testing result received all is sent to server by processor, server stores the testing result received, and then the managerial personnel of electronic lock can learn the using state of electronic lock by server fast query, the managerial personnel for above-mentioned electronic lock understand providing convenience property of using state and the promptness of electronic lock.
Preferably, the control circuit of the electronic lock that the embodiment of the present invention provides also comprises burglar alarm testing circuit, and burglar alarm testing circuit is connected with processor 10, and burglar alarm testing circuit is used for the abnormal start-up state of detected electrons lock.Particularly, be provided with microswitch in anti-theft warning circuit, when electronic lock is normally opened or is not opened, the default conditions of microswitch are off state.The opening of electronic lock is divided into two kinds of situations, is normal unlatching and unnormal unlocking (also can be called abnormal start-up) respectively.In the embodiment of the present invention abnormal start-up state of detected electrons lock refer to when detect do not receive badge information or unlocking cipher, electronic lock whether by unnormal unlocking (abnormal start-up), as violence unlatching etc.Embodiment of the present invention detailed process is: when electronic lock is subject to certain external force, microswitch becomes closure state from the off-state given tacit consent under the effect of above-mentioned external force, now burglar alarm testing circuit detects that the opening of electronic lock is unnormal unlocking (i.e. abnormal start-up), warning message can be sent to processor, the warning message received is sent to server by processor, to remind this electronic lock of managerial personnel of electronic lock by unnormal unlocking, there is potential safety hazard.
Preferably, as shown in Figure 2, the control circuit of electronic lock that the embodiment of the present invention provides also comprises power circuit 70.Power circuit 70 is connected with power supply, and power circuit 70 is for powering to control circuit.Particularly, power supply can be accumulator or battery case etc.
In embodiments of the present invention, by arranging power circuit in control circuit, other circuit in control circuit can normally be worked.
The embodiment of the present invention additionally provides a kind of master control borad for electronic lock.This master control borad being used for electronic lock comprises the control circuit of any one electronic lock that embodiment of the present invention foregoing provides.Particularly, master control borad can be pcb board, and the size and shape of master control borad is suitable for being installed in the lock housing of existing electronic lock, and wherein, master control borad can be installed to existing electronic lock inside by additional mode of installing.
In embodiments of the present invention, be suitable for being arranged on the master control borad in electronic lock lock housing by control circuit is integrated in, control circuit is made to be convenient to be arranged in electronic lock, realize existing electronic lock networking and monitoring and this electronic lock switch state of Long-distance Control time, extra taking up room need not be increased.Further, the control circuit of electronic lock that the embodiment of the present invention provides has structure effect that is simple, that easily realize.
The embodiment of the present invention additionally provides a kind of control system of electronic lock.Fig. 3 is the structural representation of the control system of electronic lock according to the embodiment of the present invention, as shown in Figure 3, this control system mainly comprises server 100 and control circuit 200, wherein, control circuit 200 is arranged in electronic lock, the steering order that control circuit 200 sends for reception server 100, controls the electronic lock body action in electronic lock according to steering order, wherein, the control circuit of any one electronic lock that provides for embodiment of the present invention foregoing of control circuit.Same, steering order can be unlock instruction (that is, controlling the instruction that electronic lock is opened), can also be to lock instruction (that is, controlling the instruction that electronic lock is locked).
In embodiments of the present invention, server is first to control circuit sending controling instruction, control circuit is according to receiving steering order, the electronic lock body controlled in electronic lock performs the action consistent with steering order, thus the remote monitoring achieved electronic lock switch state, electronic lock managerial personnel can be managed concentratedly electronic lock, reach the effect of the convenience improving electronic lock managerial personnel managing electronic lock.
The embodiment of the present invention additionally provides a kind of control method of electronic lock.Fig. 4 is the process flow diagram of the control method of electronic lock according to the embodiment of the present invention, and as shown in Figure 4, the method mainly comprises step S402 to S404, wherein:
S402: the steering order that processor is sent by telecommunication circuit reception server, wherein, processor in the control circuit of the electronic lock of any one that processor provides for embodiment of the present invention foregoing, the telecommunication circuit in the control circuit of the electronic lock of any one that telecommunication circuit provides for embodiment of the present invention foregoing.Same, steering order can be unlock instruction (that is, controlling the instruction that electronic lock is opened), can also be to lock instruction (that is, controlling the instruction that electronic lock is locked).
S404: processor sending controling instruction, to the driving circuit in control circuit, drives electronic lock body action in electronic lock to make driving circuit.When steering order is unlock instruction, above-mentioned unlock instruction is sent to the driving circuit in control circuit by processor, and driving circuit drives electronic lock body to perform the action corresponding with the instruction that above-mentioned control electronic lock is opened, thus realizes opening door operation; When steering order be control electronic lock lock instruction time, above-mentioned steering order is sent to the driving circuit in control circuit by processor, driving circuit drives electronic lock body to perform the action corresponding with the instruction that above-mentioned control electronic lock is locked, thus realizes door-closing operation.
In embodiments of the present invention, processor is according to receiving steering order, the electronic lock body controlled in electronic lock by driving circuit performs the action consistent with steering order, achieves the remote monitoring to electronic lock switch state, and then reaches the effect of remote control electronic lock on off state.Further, this kind, by the mode of control circuit remote control electronic lock on off state, makes the managerial personnel of electronic lock can manage concentratedly electronic lock, reaches the effect of the convenience of the managerial personnel's managing electronic lock improving electronic lock.
As can be seen from the above description, the invention solves in prior art cannot the problem of remote control electronic lock, and then reaches the effect of remote control electronic lock on off state.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.