Photon key authority acquiring method based on mobile phone
Technical field
The present invention relates to the gate control system field, more particularly, relate to a kind of photon key authority acquiring method based on mobile phone.
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, to the above-mentioned defective of prior art, a kind of photon key authority acquiring method based on mobile phone is provided, and its authority acquiring method is simple, can realize being convenient to the management and the use of authority.
The technical solution adopted for the present invention to solve the technical problems is: a kind of photon key authority acquiring method based on mobile phone is provided, and it comprises the steps:
S1, server send to user mobile phone with authority information with the form of note;
S2, user are solidificated in said authority information on the mobile phone according to unlocking authority or the mobile phone that said authority information is provided with mobile phone automatically.
Further, before said step S1, also comprise step S0: the user launches rights request message with the form of note to said server through mobile phone.
Further, said step S1 is specially: through manual interpolation or cellphone subscriber's authority is set, server sends to user mobile phone with authority information with the form of note to server administrators again on said server.
Further, among the said step S1, after said authority information is sent by said server, through Network Transmission to Short Message Service Gateway, pass through short message service center and base station then after, deliver to said user mobile phone.
Further, said step S2 is specially: the Frame that the user is provided for unblanking according to said authority information, and said Frame is stored in the mobile phone, said Frame comprises the rights field with authority information.
Further, said server is a Cloud Server.
Further, said server is the SMS platform server of common carrier.
Further, said SMS platform server is connected with management server, and communicates with said management server, and said management server is used for user's authority is managed.
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 mobile phone comprises information input/output module, microprocessor module, RF receiving and transmission 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 RF receiving and transmission module, controls said driver module or information is launched through said RF receiving and transmission 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.
Adopt the photon key authority acquiring method based on mobile phone of the present invention to have following beneficial effect: because the present invention authorizes unlocking authority with the form of note to the mobile phone that can be used as the photon key through server; The light signal that is used to unblank of mobile phone 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, thus the authority acquiring method simple, be convenient to management and use gate control system.
Description of drawings
Fig. 1 is the process flow diagram that the present invention is based on a kind of embodiment of photon key authority acquiring method of mobile phone.
Fig. 2 is the authority information transfer process figure of first kind of embodiment of the present invention shown in Figure 1.
Fig. 3 is the theory diagram of photon key of the present invention when cooperating with light-operated door lock.
Fig. 4 is the process flow diagram of second kind of embodiment that the present invention is based on the photon key authority acquiring method of mobile phone.
Embodiment
See also Fig. 1 and Fig. 2, the present invention relates to a kind of photon key authority acquiring method based on mobile phone, it comprises the steps:
S0, user launch rights request message with the form of note to server 6 through mobile phone 1;
S1, server 6 send to user mobile phone 1 with authority information with the form of note;
S2, user are provided with the unlocking authority of mobile phone 1 according to said authority information.
Among the said step S1, said mobile phone 1 can be used for opening light-operated door lock 2, promptly has the function of key.Said mobile phone 1 comprises information input/output module 11, microprocessor module 12, RF receiving and transmission 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 RF receiving and transmission module 13, controls said driver module 14 or information is launched through said RF receiving and transmission module 13.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.As user when for the first time desire is opened the key function of said mobile phone 1, the user earlier through mobile phone 1 with the form of note to server 6 emission rights request message, so that user's unlocking authority to be set.The SMS platform server that said server 6 can be Cloud Server or common carrier, in the present embodiment, it is short breath Platform Server 6, thereby can practice thrift personnel and equipment, thereby reduces cost.Said SMS platform server is connected with the management server (not shown), and communicates with said management server, and said management server is used for user's authority is managed.After said server 6 is received said rights request message, automatically user's authority is distributed, and then authority information is sent by server 6.After said authority information is sent by said server 6, through Network Transmission to Short Message Service Gateway 5, pass through short message service center 4 and base station 3 then after, deliver to said user mobile phone 1.
See also table 1, among the said step S2, the Frame that the user is provided for unblanking according to said authority information, and said Frame is stored in the said mobile phone 1.Said Frame comprises rights field, open the door a digital section, door lock ID field and photon key ID field, and said door lock ID field comprises that promptly from door lock ID number 1 to door lock ID N, said door lock ID number as unlocking cipher some door lock ID numbers.Said photon key is for ID number the SIM number of mobile phone.
Authority |
The number of opening the door |
Door lock ID number 1 |
… |
Door lock ID N |
SIM number |
Table 1
See also Fig. 3, 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 gate inhibition's server (not shown), so that gate inhibition's server is transferred said journal file, and then facilitates for the managing gate inhibition system.
When desire is opened said light-operated door lock 2; The door opening key of the information input/output module 11 through triggering said mobile phone 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 ID 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 light-operated door lock 2 and is opened, and photon key ID 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 ID 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 ID information is saved in the journal file of said memory module 26.Through preserving said photon key ID information, can understand the operating position of said light-operated door lock 2.
See also table 2 and Fig. 4, it is the data frame format table of second kind of embodiment of the present invention.Present embodiment is similar with said first kind of embodiment; Its difference is: present embodiment has omitted the step S0 among first kind of embodiment; After the user buys when having the said mobile phone 1 that can be used as the photon key or buys said mobile phone 1, earlier to the card number of the registered user's of operator SIM.Then the step S1 of present embodiment is specially: after said operator obtains said user's the card number of SIM; Through manual interpolation or mobile phone 1 user's authority is set, server 6 sends to user mobile phone 1 with authority information with the form of note to the server administrators of operator again on said server 6.In addition, 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 present invention authorizes unlocking authority with the form of note to the mobile phone that can be used as the photon key 1 through server 6; The light signal of mobile phone 1 emission contains authority information; Through said authority information is set, different photon key users can open Yishanmen, multiple leaf door or all doors, and the communication protocol between promptly said photon key and the said light-operated door lock 2 contains the authority information authentication; Make part user's can open multiple leaf door to the photon key, thus the authority acquiring method simple, 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 restrictive, those of ordinary skill in the art is not breaking away under the scope situation that aim of the present invention and claim protect under enlightenment of the present invention; Also can make a lot of forms; For example, said step S2 is that mobile phone 1 is solidificated in said authority information on the mobile phone 1 automatically, need not manual work setting; Said light signal only contains authority information etc., and these all belong within the protection of the present invention.