Door control identity authentication method
Technical field
The present invention relates to the gate control system field, more particularly, relate to a kind of door control identity authentication method.
Background technology
Visible light communication be a kind of be the communication mode of transmission medium with the light wave, its high speed light and shade flash signal that is invisible to the naked eye of utilizing fluorescent light or light emitting diode etc. to send is come transmission information.Visible light communication has following outstanding advantage: 1. visible light communication is a green resource, does not have electromagnetic radiation; 2. there is light just can communicate, no communication blind district, convenient and swift; 3. the visible light communication emissive power is high; 4. need not the radio-frequency spectrum authentication; 5., big, good confidentiality of transmission frequency bandwidth, message capacity and anti-electromagnetic interference capability are strong.Thereby visible light communication is applied in gate control system gradually.
Existing gate control system based on visible light communication comprises photon key and light-operated door lock; Said photon key is provided with unlocking cipher information; When opening said light-operated door lock; To said light-operated door lock emission unlocking cipher information, said light-operated door lock is received the action of opening the door behind the said signal to said photon key with the form of light signal.Yet existing said photon key and light-operated door lock are one-to-one relationships, and promptly a key can only be opened Yishanmen, in the time will opening a lot of, must be with a lot of corresponding keys, thereby are not easy to management and use.
Summary of the invention
The technical matters that the present invention will solve is that the above-mentioned defective to prior art provides a kind of door control identity authentication method, can be convenient to management and use through this door control identity authentication method.
The technical solution adopted for the present invention to solve the technical problems is: a kind of door control identity authentication method is provided, and it comprises the steps:
The light signal that S1, the emission of photon key contain authority information is to light-operated door lock;
After S2, said light-operated door lock receive said light signal, respond according to said authority information.
Further, said authority information comprises a kind of of following three kinds of authority informations: only with open Yishanmen, can open multiple leaf door maybe can open all the door.
Further, said authority information also comprises the time period information of opening the door.
Further, said light signal comprises also that said light-operated door lock ID number as unlocking cipher some door lock ID numbers.
Further, said light signal also comprises the number information of opening the door, and the said number information of opening the door is corresponding with door lock ID number number.
Further, said photon key is a mobile phone.
Further, said light signal also comprises the photon key ID number, and said light-operated door lock is saved in said photon key in the journal file ID number after receiving said photon key ID number.
Further, said photon key is for ID number the card number or the photon key numbering of SIM cards of mobile phones.
Further, said mobile phone comprises information input/output module, microprocessor module, wireless communication module, driver module and light emitting module; Said information input/output module is used for input and display message; Said microprocessor module is used for according to passing the information of coming from information input/output module and wireless communication module, controls said driver module or information is launched through said wireless communication module; Said driver module is used for containing according to the control signal driven for emitting lights module emission of said microprocessor module output the light signal of authority information.
Further, said light-operated door lock comprises photodetection module, logarithmic amplifier module, operational amplifier module, comparator module, micro controller module and memory module; Said photodetection module is used to receive said light signal, and converts said light signal to current signal; Said logarithmic amplifier module is used for converting said current signal to voltage signal; Said operational amplifier module is used to obtain the mean value of said voltage signal volt value; Said comparator module is differentiated the level of said voltage signal through said mean value, and said differentiation result is transmitted micro controller module; Said micro controller module is used for the electric signal according to said comparer output, controls said electric control lock main body; Said memory module is used for storing daily record file and door lock ID number.
Adopt door control identity authentication method of the present invention to have following beneficial effect: because the light signal of photon key of the present invention emission contains authority information; Through said authority information is set, different photon key users can open Yishanmen, multiple leaf door or all doors.Be that communication protocol between said photon key and the said light-operated door lock contains the authority information authentication, make part user's can open multiple leaf door to the photon key, thereby be convenient to management and use gate control system.
Description of drawings
Fig. 1 is the process flow diagram of a kind of embodiment of door control identity authentication method of the present invention.
Fig. 2 is the theory diagram of photon key of the present invention.
Fig. 3 is the theory diagram of the light-operated door lock of the present invention.
Embodiment
See also Fig. 1, the present invention relates to a kind of door control identity authentication method, it comprises the steps:
The light signal that S1,1 emission of photon key contain authority information is to light-operated door lock 2;
After S2, said light-operated door lock 2 receive said light signal, respond according to said authority information.
See also Fig. 2 and table 1, among the said step S 1, said photon key 1 is provided with the photon key 1ID number, and in the present embodiment, said photon key 1 is a mobile phone, and said photon key is for 1ID number the card number of SIM cards of mobile phones.Said mobile phone comprises information input/output module 11, microprocessor module 12, wireless communication module 13, driver module 14 and light emitting module 15.Said information input/output module 11 is used for input and display message, and it can be the combination of touch-screen or keyboard and display screen.
Said microprocessor module 12 is used for according to passing the information of coming from information input/output module 11 and wireless communication module 13, controls said driver module 14 or information is launched through said wireless communication module 13.Said microprocessor module 12 burnings are useful on the Frame of unblanking; Said Frame comprises rights field, open the door a digital section, door lock ID field and photon key 1ID field; Said door lock ID field comprises some door lock ID numbers; Promptly from door lock ID number 1 to door lock ID N, said door lock ID number as unlocking cipher.Said driver module 14 is used for containing according to control signal driven for emitting lights module 15 emissions of said microprocessor module 12 outputs the light signal of authority information.
Authority |
The number of opening the door |
Door lock ID number 1 |
... |
Door lock ID N |
SIM number |
Table 1
See also Fig. 3, among the said step S2, said light-operated door lock 2 comprises photodetection module 21, logarithmic amplifier module 22, operational amplifier module 23, comparator module 24, micro controller module 25 and memory module 26; Said photodetection module 21 is used to receive said light signal, and converts said light signal to current signal; Said logarithmic amplifier module 22 is used for converting said current signal to voltage signal; Said operational amplifier module 23 is used to obtain the mean value of said voltage signal volt value; Said comparator module 24 is differentiated the level of said voltage signal through said mean value, and said differentiation result is transmitted micro controller module 25; Said micro controller module 25 is used for the electric signal according to said comparer output, and the control door lock is opened or closed; Said memory module 26 is used for storing daily record file and door lock ID number, and said micro controller module 25 is electrically connected to the server (not shown), so that server is transferred said journal file, and then facilitates for the managing gate inhibition system.
Principle of work of the present invention is: the door opening key of the information input/output module 11 through triggering said photon key 1; Then said microprocessor module 12 is controlled said driver module 14 according to said Frame of unblanking, and makes that said driver module 14 drives that said light emitting module 15 emissions contain authority information, the light signal of the number of opening the door information, door lock ID information and photon key 1ID information.After said light-operated door lock 2 receives said light signal, said light signal is resolved.
If said authority information is to open all doors, then said micro controller module 25 is directly controlled said door lock and is opened, and photon key 1ID information is saved in the journal file of said memory module 26; If said authority information is to open multiple leaf door; Will search door lock ID number of corresponding number this moment according to the number information of opening the door; And said door lock ID number that reception is come and lock end door lock ID number compares; If coupling, the said door lock of then said micro controller module 25 controls is opened, and photon key 1ID information is saved in the journal file of said memory module 26; If said authority information is only to open Yishanmen; Compare for door lock ID number that holds with lock then directly reception is come said door lock ID number; If coupling; The said door lock of then said micro controller module 25 controls is opened, and photon key 1ID information is saved in the journal file of said memory module 26.Through preserving said photon key 1ID information, can understand the operating position of photon key 1.
See also table 2, it is the theory diagram of the data frame format of second kind of embodiment of the present invention.Present embodiment is similar with said first kind of embodiment, and its difference is: also comprise the time period field of unblanking in the data frame format of present embodiment.Through uncaging time is limited, thereby limit the usage time interval of certain groups of people, and then be convenient to management certain place.
Authority |
Time period |
The number of opening the door |
Door lock ID number 1 |
... |
Door lock ID N |
SIM number |
Table 2
In sum; Because the light signal of photon key 1 emission of the present invention contains authority information; Through said authority information is set, different photon key 1 users can open Yishanmen, multiple leaf door or all doors, and the communication protocol between promptly said photon key 1 and the said light-operated door lock 2 contains the authority information authentication; Make part user's can open multiple leaf door to photon key 1, thereby be convenient to management and use gate control system.
Combine accompanying drawing that embodiments of the invention are described above, but the present invention is not limited to above-mentioned embodiment, above-mentioned embodiment only is schematic; Rather than it is restrictive; Those of ordinary skill in the art not breaking away under the scope situation that aim of the present invention and claim protect, also can make a lot of forms under enlightenment of the present invention; For example; Said photon key 1 is to be lip pencil, and said light signal only contains authority information etc., and these all belong within the protection of the present invention.