A kind of smart electronics coded lock control device and its control method and management system thereof
Technical field
The present invention relates to a kind of corollary apparatus of smart electronics coded lock, in particular, the present invention relates generally to a kind of smart electronics coded lock control device and its control method and management system thereof.
Background technology
Electronic password lock is a kind ofly to come control circuit or chip operation through password input, thus the closure of control mechanical switch, accomplish unblank, the electronic product of locking task; Because of its good confidentiality, encoding amount is many, is far longer than cylinder lock; Its performance and safety have substantially exceeded mechanical lock, and electronic cipher has been widely used in security door, attendance recorder and the cipher counter at present, but still exist password single in the application of existing electronic password lock; The problem that the number of password that can be used is little has the certain openability at random or the risk of Brute Force password in actual use, and violence unblanks not have prompting; And it can't carry out condition management to the time that the password user accesses to your password, and promptly as long as the password input is correct, can infinitely use at any time; Also reduced the safety of password virtually; Promptly relatively poor to the protective capability of password, in the high field of employment of some confidentiality, for example business archive chamber; Defence procurement agency needs the higher coded lock device of security performance, therefore is necessary the structure of existing electronic password lock and the mode of password use are made further improvement.
Summary of the invention
One of the object of the invention is to solve above-mentioned deficiency; A kind of smart electronics coded lock control device and its control method and management system thereof are provided; Little with electronic password lock number of password in the expectation solution prior art; Can't carry out the condition management to the time that the password user accesses to your password, and technical problems such as password is cracked, violence is unblanked, the back alarm free of being unblanked by violence.
For solving above-mentioned technical problem, the present invention adopts following technical scheme:
One aspect of the present invention provides a kind of smart electronics coded lock control device; Described control device comprises single-chip microcomputer at least, unblank drive circuit and cipher input; Described drive circuit and the cipher input of unblanking inserts single-chip microcomputer respectively, and the drive circuit of unblanking also inserts motion device; Described single-chip microcomputer is also distinguished access pin data receiving interface and FLASH memory;
Described cipher input is used for to single-chip microcomputer input password;
Described single-chip microcomputer is used for reading code data and the password service condition that comes from the password storage medium through the code data receiving interface; And the encrypted message in the FLASH memory and password service condition are upgraded continued be stored in the FLASH memory, when being complementary, encrypted message of in the password of judging the cipher input input and FLASH memory, storing simultaneously and password service condition export unlock instruction to the drive circuit of unblanking;
The described drive circuit of unblanking is used to receive the unlock instruction that comes from single-chip microcomputer, and conducting and control action device are carried out corresponding unlocking action after it receives unlock instruction;
Further technical scheme is: described single-chip microcomputer also is stored in the password service recorder in the control device in the FLASH memory; When it reads the code data that comes from the password storage medium and password service condition through the code data interface; Password service recorder in the control device is transferred in the password storage medium, perhaps the password service recorder in password storage medium transmission control unit after it receives the command adapted thereto of password storage medium.
Technical scheme further is: described control device also comprises microswitch, and microswitch inserts the drive circuit of unblanking, and microswitch is used for after the shake-up of sensing motion device, makes motion device carry out the action of locking through the drive circuit of unblanking.
Technical scheme further is: described control device also comprises acousto-optic circuit; Acousto-optic circuit also inserts single-chip microcomputer; When encrypted message of in the password of single-chip microcomputer input and FLASH memory, storing at cipher input or password service condition do not match; Single-chip microcomputer sends corresponding instruction to acousto-optic circuit, and acousto-optic circuit is carried out corresponding acousto-optic hint or actuation of an alarm according to this instruction.
Technical scheme further is: described code data receiving interface is a USB interface, and the password storage medium is the USB storage device, and single-chip microcomputer reads code data and password service condition in the USB storage device through USB interface.
Technical scheme further is: the mobile communication module that described code data receiving interface is GSM/CDMA, and the SIM of in module, packing into, password storage medium are Email; With the mode of annex code data and password service condition are sent to the mobile communication module of GSM/CDMA through GPRS or 3G network through the E-mail address of appointment; Single-chip microcomputer reads code data and password service condition from the mobile communication module of GSM/CDMA; And passing through the phone number transmission affirmation note of the mobile communication module of GSM/CDMA to appointment, single-chip microcomputer is stored in encrypted message in the FLASH memory and password service condition renewal continued in the FLASH memory after confirming.
The present invention provides a kind of control method of smart electronics coded lock control device on the other hand, and described control method comprises the steps:
Steps A, described cipher input are inputed password to single-chip microcomputer;
Step B, described single-chip microcomputer read code data and the password service condition that comes from the password storage medium through the code data receiving interface; And the encrypted message in the FLASH memory and password service condition are upgraded continued be stored in the FLASH memory, when being complementary, encrypted message of in the password of judging the cipher input input and FLASH memory, storing simultaneously and password service condition export unlock instruction to the drive circuit of unblanking; Otherwise then do not export unlock instruction, single-chip microcomputer sends corresponding instruction to acousto-optic circuit, and acousto-optic circuit is carried out corresponding acousto-optic hint or actuation of an alarm according to this instruction.
Step C, the described drive circuit of unblanking receive the unlock instruction that comes from single-chip microcomputer, and conducting and control action device are carried out corresponding unlocking action after it receives unlock instruction;
Further technical scheme is: described single-chip microcomputer also is stored in the password service recorder in the control device in the FLASH memory; When it reads the code data that comes from the password storage medium and password service condition through the code data interface; Password service recorder in the control device is transferred in the password storage medium, perhaps the password service recorder in password storage medium transmission control unit after it receives the command adapted thereto of password storage medium.
The present invention also provides a kind of management system of smart electronics coded lock control device on the one hand; Comprise in the described management system that control system and above-mentioned smart electronics coded lock control device is as terminal device; The control system transfers to code data that generates and password service condition through any one mode in the middle of USB storage device, GPRS network and the 3G network and accomplishes password update in the terminal device, and also sends the password service recorder that instruction and reception come from terminal device through any one mode in the middle of USB storage device, GPRS network and the 3G network.
Further technical scheme is: described password service recorder be number of times record, the password matching of password input and Time of Day record, different password that unmatched detail record, password use use pairing mark and with password service condition coupling and unmatched detail record; Comprise password generation unit, cryptographic check unit, password service condition generation unit, password outgoing management unit, data transmission interface unit, storage device and output print unit in the described control system.
Technical scheme further is: also comprise the system time setup unit in the described control system; Make password service condition that password service condition generation unit generated after transferring in the terminal device through data transmission interface through this unit initialization system time, it is consistent that mode that terminal device is carried out and password service condition generation unit generate the original password service condition.
Technical scheme further is: temporary in the described password generation unit have 1 to 10000 group of code data to generate at random, and password service condition generation unit generates corresponding password service condition according to time set concrete in the time setting unit and the random cipher data are exported simultaneously; Described password service condition is the time interval of password use or the number of times that same password uses.
Technical scheme further is: described storage device be used to store the password service recorder that comes from the data transmission interface unit and generate after the code data and the password service condition of not sending, the output print unit is used for the password service recorder output print with storage device.
Technical scheme further is: described password outgoing management unit is used for when password is exported, carrying out Password Management, the code data and the password service condition that when the password of output is complementary with the password that in this unit, is provided with in advance, are just generated to terminal device output through any one mode in the middle of USB storage device, GPRS network and the 3G network.
Compared with prior art, one of beneficial effect of the present invention is: come from code data and the password service condition that generates at random in the password storage medium through the reception of code data receiving interface, when promoting number of password; Receive the restriction of password service condition when also making through cipher input input password; Therefore the password user unlatching coded lock that can only in the scope of official hour or number of times, access to your password, and can report to the police through the mobile communication module during by violence damage through being arranged so that at coded lock, make the safety of intelligent cipher lock be greatly enhanced; Can manage concentratedly the terminal password control device through management system simultaneously; And upgrade the code data of each terminal control mechanism respectively, increased the controllability of intelligent cipher lock, use more flexible; A kind of smart electronics coded lock control device simultaneously provided by the present invention and its control method and management system thereof; Control device is simple in structure, is suitable for suitability for industrialized production, and can be applicable on the various safeties such as security door and safety cabinet; Range of application is wide, is easy to promote.
Description of drawings
Fig. 1 is the smart electronics coded lock control device circuit structured flowchart in an embodiment of the present invention;
Fig. 2 is the smart electronics coded lock control apparatus control method schematic block diagram among the another kind of embodiment of the present invention;
Fig. 3 is the management system structured flowchart of the smart electronics coded lock control device of the another kind of embodiment of the present invention;
The specific embodiment
Below in conjunction with accompanying drawing the present invention is done further elaboration.
As shown in Figure 1; First kind of embodiment provided by the present invention is smart electronics coded lock control device; Described control device comprises single-chip microcomputer at least, unblank drive circuit and cipher input; Described drive circuit and the cipher input of unblanking inserts single-chip microcomputer respectively, and the drive circuit of unblanking also inserts motion device; Described single-chip microcomputer is also distinguished access pin data receiving interface and FLASH memory;
Described cipher input is used for to single-chip microcomputer input password;
Described single-chip microcomputer is used for reading code data and the password service condition that comes from the password storage medium through the code data receiving interface; And the encrypted message in the FLASH memory and password service condition are upgraded continued be stored in the FLASH memory, when being complementary, encrypted message of in the password of judging the cipher input input and FLASH memory, storing simultaneously and password service condition export unlock instruction to the drive circuit of unblanking;
The described drive circuit of unblanking is used to receive the unlock instruction that comes from single-chip microcomputer, and conducting and control action device are carried out corresponding unlocking action after it receives unlock instruction;
And the power supply of above-mentioned smart electronics coded lock control device generally adopts the 6V battery pack, also can select according to the actual power that its different function is brought.
On the basis of the above embodiment of the present invention; More preferred technological means is that described single-chip microcomputer also is stored in the password service recorder in the control device in the FLASH memory; When it reads the code data that comes from the password storage medium and password service condition through the code data interface; Password service recorder in the control device is transferred in the password storage medium, perhaps the password service recorder in password storage medium transmission control unit after it receives the command adapted thereto of password storage medium.This technological means combines with a kind of embodiment of the present invention, can be used as the preferred relatively a kind of embodiment of the present invention.
The technical scheme that is more preferably as invention simultaneously, for making the more perfect function of the drive circuit of unblanking, inventor of the present invention is with reference to microswitch technology of the prior art; And acousto-optic circuit alarm technique; Also the present invention is done following improvement on above-mentioned basis, described control device also comprises microswitch, and microswitch inserts the drive circuit of unblanking; Microswitch is used for after the shake-up of sensing motion device, makes motion device carry out the action of locking through the drive circuit of unblanking.Described control device also comprises acousto-optic circuit; Acousto-optic circuit also inserts single-chip microcomputer; When encrypted message of in the password of single-chip microcomputer input and FLASH memory, storing at cipher input or password service condition do not match; Single-chip microcomputer sends corresponding instruction to acousto-optic circuit, and acousto-optic circuit is carried out corresponding acousto-optic hint or actuation of an alarm according to this instruction.
The acting as of the above-mentioned code data receiving interface of mentioning makes single-chip microcomputer can read code data and password service condition in the password storage medium etc.; This inventor is considered the situation of the actual use of smart electronics coded lock control device; Adopt two kinds of different forms to the code data receiving interface; These two kinds of forms are the preferred implementations as the code data interface, and realize identical technique effect through different transmission technologys:
As shown in Figure 2, first kind of mode of above-mentioned code data receiving interface is set to USB interface for it, and the password storage medium is the USB storage device, and single-chip microcomputer reads code data and password service condition in the USB storage device through USB interface.The second way is set to the mobile communication module of GSM/CDMA for it, and the SIM of in module, packing into, password storage medium are Email; With the mode of annex code data and password service condition are sent to the mobile communication module of GSM/CDMA through GPRS or 3G network through the E-mail address of appointment; Single-chip microcomputer reads code data and password service condition from the mobile communication module of GSM/CDMA; And passing through the phone number transmission affirmation note of the mobile communication module of GSM/CDMA to appointment, single-chip microcomputer is stored in encrypted message in the FLASH memory and password service condition renewal continued in the FLASH memory after confirming.
The purpose of two kinds of above-mentioned code data receiving interfaces is code data and password service condition is transferred to the terminal from control end; It combines with other technologies means of the present invention, can be improved at least two kinds of embodiments similar but inequality of the present invention thus.
On the basis of the present invention at above-mentioned several kinds of embodiment, invention also provides the control method of the smart electronics coded lock control device that is different from the foregoing description with the form of another kind of embodiment, and as shown in Figure 2 again, described control method comprises the steps:
Steps A, described cipher input are inputed password to single-chip microcomputer;
Step B, described single-chip microcomputer read code data and the password service condition that comes from the password storage medium through the code data receiving interface; And the encrypted message in the FLASH memory and password service condition are upgraded continued be stored in the FLASH memory, when being complementary, encrypted message of in the password of judging the cipher input input and FLASH memory, storing simultaneously and password service condition export unlock instruction to the drive circuit of unblanking; Otherwise then do not export unlock instruction, single-chip microcomputer sends corresponding instruction to acousto-optic circuit, and acousto-optic circuit is carried out corresponding acousto-optic hint or actuation of an alarm according to this instruction.
Step C, the described drive circuit of unblanking receive the unlock instruction that comes from single-chip microcomputer, and conducting and control action device are carried out corresponding unlocking action after it receives unlock instruction;
Corresponding code data and password service condition are read in acting as of single-chip microcomputer; The more preferred a kind of embodiment of control method as more above-mentioned smart electronics coded lock control device; And where necessary; Single-chip microcomputer also can also be stored in the password service recorder in the control device in the FLASH memory; When it reads the code data that comes from the password storage medium and password service condition through the code data interface, the password service recorder in the control device is transferred in the password storage medium, perhaps the password service recorder in password storage medium transmission control unit after it receives the command adapted thereto of password storage medium.
Further; The present invention is also on the basis of two groups of above-mentioned embodiment; A kind of management system of smart electronics coded lock control device is provided; As shown in Figure 3; Comprise control system and smart electronics coded lock that at least one is above-mentioned control device in the described management system as terminal device, the control system transfers to code data that generates and password service condition through any one mode in the middle of USB storage device, GPRS network and the 3G network and accomplishes password update in the terminal device, and also sends the password service recorder that instruction and reception come from terminal device through any one mode in the middle of USB storage device, GPRS network and the 3G network.
Between control system described in the above embodiment of the present invention and terminal device, carry out exchanges data; It is code data and password service condition that described exchanges data in the present embodiment can be regarded as; And the exchange of data such as password service recorder; And be the exchange of supporting these data in the control system; Be provided with virtual modules such as password generation unit, cryptographic check unit, password service condition generation unit, password outgoing management unit, data transmission interface unit, storage device and output print unit in the middle of it, different according to its concrete function certainly, aforesaid partly or entirely also can be entity module.
Temporary in the above-mentioned password generation unit have 1 to 10000 group of code data to generate at random, and password service condition generation unit generates corresponding password service condition according to time set concrete in the time setting unit and the random cipher data are exported simultaneously; Described password service condition is the time interval of password use or the number of times that same password uses.And the time interval that aforesaid password uses specifically can be as partly or entirely combining between time, time interval or date, date field, in week, the week interval; Password can effectively use in these time intervals and be referred to as effective duration, promptly uses the time of inefficacy for the first time.
Above-mentioned storage device be used to store the password service recorder that comes from the data transmission interface unit and generate after the code data and the password service condition of not sending, the output print unit is used for the password service recorder output print with storage device.
Above-mentioned password outgoing management unit is used for when password is exported, carrying out Password Management, the code data and the password service condition that when the password of output is complementary with the password that in this unit, is provided with in advance, are just generated to terminal device output through any one mode in the middle of USB storage device, GPRS network and the 3G network.
Simultaneously under normal situation, above-mentioned through any one mode in the middle of USB storage device, GPRS network and the 3G network receive number of times record, the password matching that the password service recorder that comes from terminal device is the password input and Time of Day record, the different password that unmatched detail record, password use use pairing mark and with password service condition coupling and unmatched detail record; And aforesaid password service recorder is set file format, and after it transferred in the control system, the control system adopted the computer program that is complementary with this set file format that it is read, and has guaranteed the safety of this password service recorder.And aforesaid set file format can be with reference to existing file ciphering technology in the field, reads after adopting the computer program deciphering that is complementary with it again after adopting existing any one mode that it is encrypted.
On above-mentioned basis; The another kind of embodiment that the management system of relevant smart electronics coded lock control device is more preferably in the above-mentioned control system except that above-mentioned virtual or the solid element; Also be provided with the system time setup unit; Make password service condition that password service condition generation unit generated after transferring in the terminal device through data transmission interface through this unit initialization system time, it is consistent that mode that terminal device is carried out and password service condition generation unit generate the original password service condition.
" embodiment " who is spoken of in this manual, " another embodiment ", " embodiment ", etc., refer to the concrete characteristic, structure or the characteristics that combine this embodiment to describe and be included among at least one embodiment that the application's generality describes.A plurality of local appearance statement of the same race is not necessarily to refer to same embodiment in manual.Further, when describing a concrete characteristic, structure or characteristics in conjunction with arbitrary embodiment, what institute will advocate is that other embodiment of combination realize that this characteristic, structure or characteristics also fall within the scope of the invention.
Although invention has been described with reference to a plurality of explanatory embodiment of the present invention here; But; Should be appreciated that those skilled in the art can design a lot of other modification and embodiments, these are revised and embodiment will drop within disclosed principle scope of the application and the spirit.More particularly, in the scope of, accompanying drawing open and claim, can carry out multiple modification and improvement to the building block and/or the layout of subject combination layout in the application.Except modification that building block and/or layout are carried out with improve, to those skilled in the art, other purposes also will be tangible.