Summary of the invention
The invention reside in the shortcoming that overcomes prior art with not enough, provide that a kind of security is high, identity good and can be used for the intelligent electronic lock control method of telemanagement.
The present invention is achieved by the following technical solutions: a kind of intelligent electronic lock control method, comprises the steps:
Step S11: door lock initialization, initial door lock phone number; Storer stores the fixed password of setting and multiple phone number;
Step S12: user is at coded lock input keyboard input fixed password, this fixed password is sent to described controller by described coded lock input keyboard, the fixed password storing setting in the fixed password of acquisition and storer compares by described controller, if unanimously, then performs step S13;
Step S13: user obtains with the mobile phone dialing door lock phone number carried with, described GSM communication device the phone number dialing door lock phone number by GSM network, and is sent to described controller;
Step S14: described controller obtains dial-in handset number, and retrieval judges whether store consistent phone number in storer; If have, then perform step S15;
Step S15: described controller sends control command to described random cipher maker, and described random cipher maker generates current authentication password, and is sent to described controller, and this authentication password is sent to dial-in handset by GSM communication device by described controller;
Step S16: after dial-in handset user receives authentication password, this authentication password is inputted at coded lock input keyboard, this authentication password is sent to described controller by described coded lock input keyboard, the authentication password of the authentication password fed back to and transmission compares by described controller, if consistent, then perform step S17;
Step S17: described controller sends unlock command to described electronic lock cylinder, and described electronic lock cylinder is unblanked.
The present invention is by coded lock input keyboard input fixed password; Utilize with oneself must with handset call doorplate phone number, described controller is using GSM communication device as bridge, obtain the phone number of calling, also send authentication password with note form to legal catchword mobile phone, user is verified by coded lock input keyboard input validation password more simultaneously; The fixed password of input that and if only if, phone number and authentication password all meet setting when requiring, just can untie coded lock, open door lock, serve triple protection effect.Owing to pretending to be the disabled user of cell-phone number at present, only there is transmission signal, and do not possess the function of Received signal strength, the present invention is according to this characteristic, after receiving the signal of dial-in handset, authentication password is sent to dial-in handset, make only to receive authentication password and just can unblank at the validated user that coded lock input keyboard correctly inputs this authentication password, effectively preventing from disabled user from copying falsely using the lawbreaking activities that cell-phone number is unblanked, improve the security of intelligent electronic lock.
Further, in described step S17, after electronic lock cylinder is unblanked, the phone number that described storer stored record is unblanked.
Further, in this step S12, when the fixed password obtained is consistent with the fixed password that storer stores, described display screen points out " input validation password ", and performs step S13; If inconsistent, then display screen point out " Password Input mistake ", need fixed password be re-entered.
Further, in this step S14, when the phone number received does not have storage in storer, described display screen points out " input fixed password ", gets back to step S12.
Further, in this step S16, when the authentication password inputted and the current authentication password that generates with random cipher maker inconsistent time, on described display screen, prompting " input fixed password ", gets back to step S12.
The present invention simultaneously is also supplied to a kind of intelligent electronic lock control device, comprising:
---controller, whether the fixed password that acquisition coded lock input keyboard transmits is also consistent with the fixed password storing setting in storer; If consistent, then receive the dial-in handset number that GSM communication device transmits, and retrieval judges whether store in storer and this phone number; If have, then described controller sends control signals to described random cipher maker; This random cipher maker generates current accidental validation password and is sent to described controller, and authentication password is sent to dial-in handset by described GSM communication device by described controller; Described controller receives the authentication password of coded lock input keyboard input, and the authentication password of this authentication password and transmission is compared; When authentication password is consistent, sends unlock command and unblank to described electronic lock cylinder;
---storer, described storer is connected with described controller signals, and stores the fixed password of setting and multiple phone number;
---coded lock input keyboard, described coded lock input keyboard is connected with described controller signals; For inputting fixed password and authentication password and being sent to described controller;
---GSM communication device, described GSM communication device is connected with described controller signals; Described GSM communication device obtains the phone number dialing door lock phone number, and is sent to described controller; And the authentication password that controller transmits is sent to dial-in handset;
---random cipher maker, described random cipher maker is connected with described controller signals; The order that described random cipher maker receives controller generates current accidental validation password, and current authentication password is sent to described controller;
---electronic lock cylinder, described electronic lock cylinder is connected with described controller signals; Described electronic lock cylinder receives the unlock command of described controller and unblanks.
In order to understand better and implement, describe the present invention in detail below in conjunction with accompanying drawing.
Embodiment
Please refer to the process flow diagram that Fig. 1, Fig. 1 are intelligent electronic lock control methods of the present invention.This intelligent electronic lock control method, comprises the steps:
Step S11: door lock initialization, initial door lock phone number; Storer stores the fixed password of setting and multiple phone number.
Concrete, insert SIM card, make door lock have a door lock phone number; The fixing unlocking cipher of setting is also stored in storer as fixed password; Add multiple phone number and be stored in storer as legal phone number.
Step S12: user is at coded lock input keyboard input fixed password, this fixed password is sent to described controller by described coded lock input keyboard, the fixed password storing setting in the fixed password of acquisition and storer compares by described controller, if unanimously, then performs step S13.
Concrete, user inputs fixed password by password input key, when fixed password is consistent with the fixed password stored in storer, described display screen points out " input validation password ", shows that fixed password input is correct, then performs step S13; If inconsistent, then display screen point out " Password Input mistake ", need fixed password be re-entered.
Step S13: user obtains with the mobile phone dialing door lock phone number carried with, described GSM communication device the phone number dialing door lock phone number by GSM network, and is sent to described controller;
Concrete, after fixed password input is correct, user uses the mobile phone dialing door lock phone number carried with, and described GSM communication device receives the mobile phone signal dialed by GSM network, and this phone number is sent to described controller.
Step S14: described controller obtains dial-in handset number, and retrieval judges whether store consistent phone number in storer; If have, then perform step S15.
Concrete, dial-in handset number compares with the phone number stored in storer by described controller, stores consistent phone number if having with storer, then described display screen points out " input fixed password ", get back to step S12.
Step S15: described controller sends control command to described random cipher maker, and described random cipher maker generates current authentication password, and is sent to described controller, and this authentication password is sent to dial-in handset by GSM communication device by described controller.
In the present embodiment, current only when phone number is consistent with the phone number that storer stores, when described random cipher maker receives described controller signals, described random cipher maker is stochastic generation authentication password, as current authentication password.For managing intelligent electronic lock more easily, described controller only sends authentication password to the current single legal mobile phone dialing door lock phone number.
Step S16: after dial-in handset user receives authentication password, this authentication password is inputted at coded lock input keyboard, this authentication password is sent to described controller by described coded lock input keyboard, the authentication password of the authentication password fed back to and transmission compares by described controller, if consistent, then perform step S17.
User is by password input key input control device input validation password, described controller obtains this authentication password from coded lock input keyboard, when the authentication password inputted and the current authentication password that generates with random cipher maker inconsistent time, described display screen points out " input fixed password ", gets back to step S12.
Step S17: described controller sends unlock command to described electronic lock cylinder, and described electronic lock cylinder is unblanked.
Further, to come in and go out personnel for ease of query note, play the effect of control of access, in the present embodiment, after electronic lock cylinder is unblanked, described storer is the stored record phone number of unblanking also.
In the present invention, if the phone number stored in cellphone subscriber and storer is inconsistent, controller can not send checking note; If cellphone subscriber is the disabled user falsely using legal cell-phone number, because the present invention needs to verify note, disabled user then owing to not receiving checking note, and cannot unblank, thus ensure that the security of door lock.
Intelligent electronic lock control method provided by the invention, the owner running into residential quarters does not exist, and have relatives and friends to be in a hurry needs when entering indoor, relatives and friends can input fixed password on coded lock input keyboard, allow owner dial door lock phone number again and by the checking short message sending that receives to relatives and friends, relatives and friends can realize opening door lock by input validation password.The present invention both ensure that the security of door lock, can be used for again telemanagement door lock, practical requirement, convenient and swift.
The present invention is by coded lock input keyboard input fixed password; Utilize with oneself must with handset call doorplate phone number, described controller is using GSM communication device as bridge, obtain the phone number of calling, also send authentication password with note form to legal catchword mobile phone, user is verified by coded lock input keyboard input validation password more simultaneously; The fixed password of input that and if only if, phone number and authentication password all meet setting when requiring, just can untie coded lock, open door lock, serve triple protection effect.Owing to pretending to be the disabled user of cell-phone number at present, only there is transmission signal, and do not possess the function of Received signal strength, the present invention is according to this characteristic, after receiving the signal of dial-in handset, authentication password is sent to dial-in handset, make only to receive authentication password and just can unblank at the validated user that coded lock input keyboard correctly inputs this authentication password, effectively preventing from disabled user from copying falsely using the lawbreaking activities that cell-phone number is unblanked, improve the security of intelligent electronic lock.Further, the present invention can add multiple legal phone number in control module, and unblank compared to fingerprint, Information Monitoring is more convenient, and identity is high, can be used for remote management and control door lock.
Refer to Fig. 2, it is the structural representation of intelligent electronic lock control device of the present invention.This intelligent electronic lock control device, comprising:
---controller, whether the fixed password that acquisition coded lock input keyboard transmits is also consistent with the fixed password storing setting in storer; If consistent, then receive the dial-in handset number that GSM communication device transmits, and retrieval judges whether store in storer and this phone number; If have, then described controller sends control signals to described random cipher maker; This random cipher maker generates current accidental validation password and is sent to described controller, and authentication password is sent to dial-in handset by described GSM communication device by described controller; Described controller receives the authentication password of coded lock input keyboard input, and the authentication password of this authentication password and transmission is compared; When authentication password is consistent, sends unlock command and unblank to described electronic lock cylinder;
---storer, described storer is connected with described controller signals, and stores the fixed password of setting and multiple phone number;
---coded lock input keyboard, described coded lock input keyboard is connected with described controller signals; For inputting fixed password and authentication password and being sent to described controller;
---GSM communication device, described GSM communication device is connected with described controller signals; Described GSM communication device obtains the phone number dialing door lock phone number, and is sent to described controller; And the authentication password that controller transmits is sent to dial-in handset;
---random cipher maker, described random cipher maker is connected with described controller signals; The order that described random cipher maker receives controller generates current accidental validation password, and current authentication password is sent to described controller;
---electronic lock cylinder, described electronic lock cylinder is connected with described controller signals; Described electronic lock cylinder receives the unlock command of described controller and unblanks.
Further, when electronic lock cylinder is successfully unblanked, described this phone number of storer stored record.
Further, also comprise a display screen, described display is connected with described controller signals, and described display screen is according to control signal prompting description operation situation.
Intelligent electronic lock control device of the present invention, by coded lock input keyboard input fixed password; Utilize with oneself must with handset call doorplate phone number, described controller is using GSM communication device as bridge, obtain the phone number of calling, also send authentication password with note form to legal catchword mobile phone, user is verified by coded lock input keyboard input validation password more simultaneously; The fixed password of input that and if only if, phone number and authentication password all meet setting when requiring, just can untie coded lock, open door lock, serve triple protection effect.Owing to pretending to be the disabled user of cell-phone number at present, only there is transmission signal, and do not possess the function of Received signal strength, the present invention is according to this characteristic, after receiving the signal of dial-in handset, authentication password is sent to dial-in handset, make only to receive authentication password and just can unblank at the validated user that coded lock input keyboard correctly inputs this authentication password, effectively preventing from disabled user from copying falsely using the lawbreaking activities that cell-phone number is unblanked, improve the security of intelligent electronic lock.
The present invention is not limited to above-mentioned embodiment, if do not depart from the spirit and scope of the present invention to various change of the present invention or distortion, if these are changed and distortion belongs within claim of the present invention and equivalent technologies scope, then the present invention is also intended to comprise these changes and distortion.