Door control identity authentication method
Technical field
The present invention relates to gate control system field, more particularly, relate to a kind of door control identity authentication method.
Background technology
The communication mode of visible light communication to be a kind of with light wave be transmission medium, the high speed light and shade flash signal that what it utilized fluorescent light or light emitting diode etc. to send be invisible to the naked eye carrys out transmission information.Visible light communication has following outstanding advantages: 1. visible light communication is green resource, there is not electromagnetic radiation; 2. light is had just can to communicate, without communication blind district, convenient and swift; 3. visible light communication emissive power is high; 4. without the need to radio-frequency spectrum certification; 5., large, the good confidentiality of transmission frequency bandwidth, message capacity and anti-electromagnetic interference capability strong.Thus, visible light communication is widely applied gradually in gate control system.
The existing gate control system based on visible light communication comprises photon key and light-operated door lock, described photon key is provided with unlocking cipher information, when opening described light-operated door lock, described photon key launches unlocking cipher information with the form of light signal to described light-operated door lock, and described light-operated door lock carries out door opening action after receiving described signal.But existing described photon key and light-operated door lock are one-to-one relationships, namely a key can only open Yishanmen, must be with a lot of corresponding key, be thus not easy to management and when opening a lot of door.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of door control identity authentication method, can be convenient to management and by this door control identity authentication method.
The technical solution adopted for the present invention to solve the technical problems is: provide a kind of door control identity authentication method, it comprises the steps:
The light signal of S1, photon key transmitting containing authority information gives light-operated door lock;
After S2, described light-operated door lock receive described light signal, respond according to described authority information.
Further, described authority information comprises the one of following three kinds of authority informations: only opening Yishanmen, multiple leaf door can be opened maybe can open all doors.
Further, described authority information also comprises the time period information of enabling.
Further, described light signal also comprises No. ID, some door locks, and described No. ID, light-operated door lock is as unlocking cipher.
Further, described light signal also comprises enabling number information, and described enabling number information is corresponding with the number of No. ID, door lock.
Further, described photon key is mobile phone.
Further, described light signal also comprises No. ID, photon key, after described light-operated door lock receives No. ID, described photon key, No. ID, described photon key is saved in journal file.
Further, No. ID, described photon key is card number or the photon key numbering of SIM cards of mobile phones.
Further, described mobile phone comprises information input/output module, microprocessor module, wireless communication module, driver module and light emitting module; Described information input/output module is used for input and display information; Described microprocessor module is used for, according to passing the information of coming from information input/output module and wireless communication module, controlling described driver module or information being launched by described wireless communication module; The control signal that described driver module is used for exporting according to described microprocessor module drives light emitting module to launch the light signal containing authority information.
Further, described light-operated door lock comprises photoelectric detection module, logarithmic amplifier module, operational amplifier module, comparator module, micro controller module and memory module; Described photoelectric detection module for receiving described light signal, and converts described light signal to current signal; Described logarithmic amplifier module is used for converting described current signal to voltage signal; Described operational amplifier module is for obtaining the mean value of described voltage signal volt value; Described comparator module is differentiated by the level of described mean value to described voltage signal, and described differentiation result is transmitted micro controller module; Described micro controller module is used for the electric signal exported according to described comparer, controls described electric control lock main body; Described memory module is used for storing daily record file and No. ID, door lock.
Door control identity authentication method of the present invention is adopted to have following beneficial effect: the light signal launched due to photon key of the present invention contains authority information, by arranging described authority information, different photon key users can open Yishanmen, multiple leaf door or all doors.Namely the communication protocol between described photon key and described light-operated door lock contains authority information certification, makes part user's one photon key can be opened multiple leaf door, is thus convenient to management and gate control system.
Accompanying drawing explanation
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
Refer to Fig. 1, the present invention relates to a kind of door control identity authentication method, it comprises the steps:
The light signal of S1, photon key 1 transmitting containing authority information gives light-operated door lock 2;
After S2, described light-operated door lock 2 receive described light signal, respond according to described authority information.
Refer to Fig. 2 and table 1, in described step S 1, described photon key 1 is provided with No. 1ID, photon key, and in the present embodiment, described photon key 1 is mobile phone, and No. 1ID, described photon key is the card number of SIM cards of mobile phones.Described mobile phone comprises information input/output module 11, microprocessor module 12, wireless communication module 13, driver module 14 and light emitting module 15.Described information input/output module 11 is for input and display information, and it can be the combination of touch-screen or keyboard and display screen.
Described microprocessor module 12, for according to passing the information of coming from information input/output module 11 and wireless communication module 13, being controlled described driver module 14 or information being launched by described wireless communication module 13.The burning of described microprocessor module 12 has the Frame for unblanking, described Frame comprises rights field, open the door digital section, door lock ID field and a photon key 1ID field, described door lock ID field comprises No. ID, some door locks, namely from door lock No. ID 1 to door lock ID N, No. ID, described door lock is as unlocking cipher.Described driver module 14 drives light emitting module 15 to launch the light signal containing authority information for the control signal exported according to described microprocessor module 12.
Authority |
Enabling number |
Door lock No. ID 1 |
... |
Door lock ID N |
SIM card number |
Table 1
Refer to Fig. 3, in described step S2, described light-operated door lock 2 comprises photoelectric detection module 21, logarithmic amplifier module 22, operational amplifier module 23, comparator module 24, micro controller module 25 and memory module 26; Described photoelectric detection module 21 for receiving described light signal, and converts described light signal to current signal; Described logarithmic amplifier module 22 is for converting described current signal to voltage signal; Described operational amplifier module 23 is for obtaining the mean value of described voltage signal volt value; Described comparator module 24 is differentiated by the level of described mean value to described voltage signal, and described differentiation result is transmitted micro controller module 25; The electric signal of described micro controller module 25 for exporting according to described comparer, controls door lock and opens or close; Described memory module 26 is for storing daily record file and No. ID, door lock, and described micro controller module 25 is electrically connected to server (not shown), so that server transfers described journal file, and then provides convenient for managing gate inhibition system.
Principle of work of the present invention is: by triggering the door opening key of the information input/output module 11 of described photon key 1, then described microprocessor module 12 controls described driver module 14 according to described Frame of unblanking, and makes described driver module 14 drive described light emitting module 15 to launch the light signal containing authority information, enabling number information, door lock ID information and photon key 1ID information.After described light-operated door lock 2 receives described light signal, described light signal is resolved.
If described authority information to open all doors, then described micro controller module 25 directly controls the unlatching of described door lock, and photon key 1ID information is saved in the journal file of described memory module 26; If described authority information to open multiple leaf door, No. ID, the door lock of corresponding number now will be searched according to enabling number information, and No. ID, the door lock that No. ID, the described door lock of reception being come and lock are held compares, if coupling, then described micro controller module 25 controls the unlatching of described door lock, and photon key 1ID information is saved in the journal file of described memory module 26; If described authority information is only to open Yishanmen, No. ID, the door lock that then direct No. ID, described door lock of reception being come and lock are held compares, if coupling, then described micro controller module 25 controls the unlatching of described door lock, and photon key 1ID information is saved in the journal file of described memory module 26.By preserving described photon key 1ID information, the service condition of photon key 1 can be understood.
Refer to table 2, it is the theory diagram of the data frame format of the second embodiment of the present invention.The present embodiment is similar to the first embodiment described, and its difference is: also comprise the time period field of unblanking in the data frame format of the present embodiment.Limited by the dual lock time, thus limit the usage time interval of certain groups of people to certain place, and then be convenient to management.
Authority |
Time period |
Enabling number |
Door lock No. ID 1 |
... |
Door lock ID N |
SIM card number |
Table 2
In sum, the light signal launched due to photon key 1 of the present invention contains authority information, by arranging described authority information, different photon key 1 users can open Yishanmen, multiple leaf door or all doors, namely the communication protocol between described photon key 1 and described light-operated door lock 2 contains authority information certification, make part user's one photon key 1 can be opened multiple leaf door, be thus convenient to management and gate control system.
By reference to the accompanying drawings embodiments of the invention are described above; but the present invention is not limited to above-mentioned embodiment; above-mentioned embodiment is only schematic; instead of it is restrictive; those of ordinary skill in the art is under enlightenment of the present invention; do not departing under the ambit that present inventive concept and claim protect; also can make a lot of form; such as; described photon key 1 is in lip pencil; described light signal is only containing authority information etc., and these all belong within protection of the present invention.