Authorization method and device based on light signal
Technical field
The present invention relates to light signal authorization technique field, relate in particular to a kind of authorization method based on light signal and device.
Background technology
Optical communication comprises non-visible light communication and visible light communication, and common non-visible light communication such as infrared communication, infrared communication are to utilize infrared ray as the media of transmission of information.Transmitting terminal is modulated to a series of burst signal with the base band binary signal, by infrared transmitting tube emission infrared signal.The light arteries and veins that receiving terminal will receive converts the signal of telecommunication to, carries out demodulation through giving demodulator circuit after the processing such as amplification, filtering again, exports after being reduced to binary digital signal.Common visible light communication is a kind of in technical emerging, the short distance high-speed radio optical communication technique that grows up of LED.The basic principle of visible light communication is exactly to utilize LED than fluorescent lamp and the fast characteristics of incandescent lamp switch speed, glimmer to communicate by the high-frequency of led light source, have light to represent 1, unglazed representative 0, send light signal at a high speed, pass through again opto-electronic conversion and acquired information.
In the prior art, be to use host computer to connect USB interface to the mandate of signal receiving device, upper computer software reads by USB interface and the mandate ID list of supervisory signal receiving system inside.But because signal receiving device generally all is installed in certain fixed position of system, therefore use host computer to connect signal receiving device inconvenience very by USB, may cause the user before installation, to authorize.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, overcome light signal receiving in the prior art and be fixed on situation about can't authorize on the door, a kind of optical key of revising the light signal receiving authorization message is provided, no matter whether light signal receiving is installed in certain fixed position of system, all can revise the authorization message of light signal receiving, experience thereby improve the user.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of authorization method based on light signal, and described method comprises:
Receive the trigger message that characterizes deletion or write authorization message; Obtain corresponding information from this locality according to described trigger message; The control luminescence unit sends described information with the form of light signal.
Wherein, obtain corresponding information according to described trigger message, comprising:
Obtain the instruction that writes authorization message or the instruction of delete authority information according to described trigger message.
Optionally, the described reception trigger message that characterizes deletion or write authorization message specifically comprises:
Receive the trigger message that characterizes deletion or write authorization message by button.
Optionally, the described reception by button characterizes the trigger message of deleting or writing authorization message, specifically comprises:
Continuous trigger number of times by same button is different, receives the trigger message that characterizes deletion or write authorization message.
Optionally, the described reception by button characterizes the trigger message of deleting or writing authorization message, specifically comprises:
By different buttons, receive the trigger message that characterizes deletion or write authorization message.
Optionally, receive the trigger message that characterizes deletion or write authorization message, specifically comprise:
By the choice menus of touch-screen, receive trigger message.
Optionally, described choice menus by touch-screen receives before the trigger message, also comprises:
Receive slip release information, show choice menus.
Optionally, also comprise before the described method:
Carry out the authorization message authentication.
Optionally, the described authorization message of carrying out authenticates, and specifically comprises:
Gather user's biological information, if this biological information and the verification condition coupling that prestores judge that then authorization message is legal.
Optionally, the described authorization message of carrying out authenticates, and specifically comprises:
Receive the id information that the user inputs by keyboard, if this id information and the coupling that prestores judge that then authorization message is legal.
Optionally, the described authorization message of carrying out authenticates, and specifically comprises:
Receive the id information that the user inputs by touch-screen, if this id information and the coupling that prestores judge that then authorization message is legal.
Optionally, obtain according to described trigger message after the information of correspondence, also comprise:
Described information is encrypted.
Optionally, described information is encrypted, specifically comprises:
The pseudo-code sequence and the described change authorization message that change are carried out logical operation; And/or arithmetical operation.
Optionally, the pseudo-code sequence of described variation is the continually varying pseudo-code sequence with the variation of local zone time; Perhaps,
Pseudo-code sequence with default unit interval variation.
Optionally, the pseudo-code sequence of described variation is the pseudo-code sequence that changes continuously with the preset times that transmits.
Optionally, the pseudo-code sequence of described variation is the frequency of signal is carried out frequency change according to the variation of crystal oscillator information pseudo-code sequence; Perhaps,
The frequency of signal is carried out the pseudo-code sequence of frequency change according to the variation of local clock information.
Optionally, described information is encrypted, specifically comprises:
Adopt md5 encryption algorithm, RSA cryptographic algorithms, des encryption algorithm or AES cryptographic algorithm that described information is encrypted.
Optionally, the control luminescence unit sends before the described information with the form of light signal, also comprises:
Described information is encoded.
In order to solve the problems of the technologies described above, the embodiment of the invention also provides a kind of authorization device based on light signal, comprise memory cell, luminescence unit, it is characterized in that, also comprise control unit, be used for receiving the trigger message that characterizes deletion or write authorization message, obtain corresponding information from described memory cell, the control luminescence unit sends described information with the form of light signal.
Optionally, described control unit also comprises modulator.
Optionally, described device also comprises the driver that is connected between described luminescence unit and the control unit.
Optionally, described device also comprises the stand-by power supply that is connected with described control unit.
Optionally, described device also comprises the interface that is connected with described control unit.
Wherein, described interface is charging inlet and/or data-interface.
Optionally, described device also comprises at least one button that is connected with described controller.
Optionally, described device also comprises the touch-screen that is connected with described control unit.
Optionally, described device also comprises the fingerprint processor that is connected with touch-screen, is used for receiving and authenticating the finger print information that described touch-screen gathers.
Optionally, described device also comprises the slip processor, is used for receiving and authenticating the slip release information that described touch-screen receives.
Optionally, described device also comprises the keyboard that is connected with described control unit, is used for input user's id information.
Optionally, described device also comprises the digital processing unit that is connected with described keyboard, is used for receiving the also id information of authenticated user.
Optionally, described control unit also comprises ciphering unit, is used for the information of obtaining from memory cell is encrypted.
Optionally, described ciphering unit is logical-arithmetic unit and/or arithmetic unit.
Wherein, described ciphering unit is md5 encryption arithmetic unit, rsa encryption arithmetic unit, des encryption arithmetic unit or AES cryptographic calculation device.
Wherein, described device is integrated on the mobile electronic devices such as mobile phone, MP3, MP4, PSP or self-existent device.
In the technique scheme, control unit is according to the trigger message that receives, judgement writes or delete authority information, then obtain corresponding information from connected memory cell, form with visible light signal sends, thereby realize deletion or modification to the light signal receiving authorization message, when light signal receiving receives deletion or revises authorization message, if judge legal then response, when receiving the authorization message of deleting or writing, this authorization message from authorization message tabulation deletion, perhaps is written to authorization message the authorization message tabulation.
Description of drawings
In order to be illustrated more clearly in embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in execution mode or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1, a kind of authorization method flow chart based on light signal that the embodiment of the invention 1 provides;
Fig. 2, a kind of authorization method flow chart based on light signal that the embodiment of the invention 2 provides;
Fig. 3, a kind of authorization method flow chart based on light signal that the embodiment of the invention 3 provides;
Fig. 4, a kind of authorization method flow chart based on light signal that the embodiment of the invention 4 provides;
Fig. 5, a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 5 provides;
Fig. 6, a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 6 provides;
Fig. 7, a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 7 provides;
Fig. 8, a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 8 provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described execution mode only is the present invention's part execution mode, rather than whole execution modes.Based on the execution mode among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other execution mode that obtains under the creative work prerequisite.
In embodiment of the present invention, the optical signal launcher (super optical key) of revising the light signal receiving authorization message sends the light signal of deleting or writing authorization message to light signal receiving, light signal receiving receives after the visible light signal, light signal can be carried out authentication to what receive, if by authentication, then respond; Light signal receiving receives the information that optical signal launcher corresponding to this authorization message (normal optical key) sends, and then this authorization message of deletion from authorization message perhaps writes this authorization message in the authorization message.Thereby adopt super optical key realization to the modification of light signal receiving authorization message, and then realize the management to the light signal receiving authorization message.
Referring to Fig. 1, be a kind of authorization method flow chart based on light signal that the embodiment of the invention 1 provides, the method comprises:
S101: different by the continuous trigger number of times in the Preset Time section, receive the trigger message that characterizes deletion or write authorization message.
For example, if continuous trigger 2 times is with representing delete authority information in 2 seconds, triggering once, representative writing authorization message;
S102: obtain corresponding information according to described trigger message.That is, if the trigger message sign is delete authority information, the instruction of then obtaining delete authority information; If what trigger message characterized is to write authorization message, then obtain the instruction that writes authorization message.
S103: the control luminescence unit sends described information with the form of light signal.Concrete, light signal can be visible light signal, also can be infrared signal, far infrared signal or UV signal.
By present embodiment, can conveniently revise the light signal receiving authorization message, this light signal receiving authorization message can be white list, blacklist, also can be the light signal receiving authorization message of dividing according to priority.
Referring to Fig. 2, be a kind of authorization method flow chart based on light signal that the embodiment of the invention 2 provides, the method comprises:
S201: by different buttons, receive the trigger message that characterizes deletion or write authorization message.
For example, the trigger message of No. 1 button transmission characterizes delete authority information, and the trigger message of No. 2 button transmissions characterizes and writes authorization message.
S202: obtain corresponding information according to described trigger message.
S203: adopt the pseudo-code signal that changes that described information is encrypted.
Concrete, can adopt the pseudo-code sequence that will change and the mode that described authentication information with error correcting code carries out the logical encrypt computing to encrypt, and/or the mode that pseudo-code sequence and the described authentication information with error correcting code of variation carries out the arithmetic cryptographic calculation is encrypted.
Wherein, the logical encrypt computing comprise the XOR cryptographic calculation, with or cryptographic calculation or with the logical operation mode such as non-encrypted computing; The arithmetic cryptographic calculation comprises the arithmetical operation modes such as addition cryptographic calculation, subtraction cryptographic calculation, multiplication cryptographic calculation or division cryptographic calculation.
Wherein, the pseudo-code sequence of variation can be the continually varying pseudo-code sequence with the variation of local zone time; The pseudo-code sequence that perhaps changes with the default unit interval.It also can be the pseudo-code sequence that changes with the preset times that transmits.Can also be the frequency of signal according to the pre-conditioned pseudo-code sequence that changes, for example the frequency of pseudo-code sequence is carried out frequency change according to the variation of crystal oscillator information; Perhaps, the frequency of pseudo-code sequence is carried out frequency change according to the variation of local clock information.
S204: the information after encrypting is encoded.
S205: control LED sends described information with the form of visible light signal.
In the present embodiment, adopt the pseudo-code signal that changes that information is encrypted, improved the fail safe of signal transmission.
Referring to Fig. 3, be a kind of authorization method flow chart based on light signal that the embodiment of the invention 3 provides, the method comprises:
S301: receive slip release information, show choice menus.
S302: by the choice menus of touch-screen, receive trigger message.
S303: obtain corresponding information according to described trigger message.
S304: adopt md5 encryption algorithm, RSA cryptographic algorithms, des encryption algorithm or AES cryptographic algorithm that described information is encrypted.
S305: adopt the form of infrared signal to send described information.
Present embodiment has adopted the mode of slip release, can improve the user and experience.
Referring to Fig. 4, be a kind of authorization method flow chart based on light signal that the embodiment of the invention 4 provides, the method comprises:
S401: carry out the authorization message authentication.
Concrete, can gather user's biological information, if this biological information and the verification condition coupling that prestores judge that then authorization message is legal; Perhaps, receive the id information that the user inputs by keyboard, if this id information and the coupling that prestores judge that then authorization message is legal; Perhaps, receive the id information that the user inputs by touch-screen, if this id information and the coupling that prestores judge that then authorization message is legal.
S402: different by the same button triggered time, receive the trigger message that characterizes deletion or write authorization message.
For example, if the triggered time once represented delete authority information more than or equal to 3 seconds, write authorization message less than representative in 3 seconds.
S403: obtain corresponding information according to described trigger message.
S404: adopt the pseudo-code signal that changes that described information is carried out logical operation, obtain enciphered message.
S405: adopt the form of visible light signal to send described enciphered message.
In the present embodiment, owing to before receiving trigger message, the authorization message identity is verified, can't send trigger message for the disabled user, further improve fail safe.
Referring to Fig. 5, be a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 5 provides, this device can be mobile electronic device or the self-existent devices such as mobile phone, MP3, MP4, PSP, this device comprises:
At least one button 501, when this button 501 was one, the different implication of number of times sign according to continuous trigger in Preset Time perhaps characterized different implications according to the asynchronism(-nization) that triggers.When button 501 is one when above, can levy different implications with different key tables.The several buttons of concrete employing arrange according to demand.
The control unit 502 that is connected with button 501, when this control unit 502 receives from the trigger message of button 501, that judges that this trigger message characterizes writes authorization message or delete authority information, according to the memory cell 503 extractions corresponding information of judged result from being connected with this control unit 502.Concrete, what control unit 502 was judged the trigger message sign is to write authorization message, then obtain from memory cell 503 and write authorization message, this is write authorization message be converted to binary data, by the luminescence unit 504 that is connected with control unit 502 form with light signal the information of extracting is sent.For example, within a time cycle, control unit 502 is converted to the rising edge trigger message with binary data " 1 ", and " 0 " is converted to the trailing edge trigger message.Luminous when luminescence unit 504 receives the trailing edge trigger message, not luminous when receiving the rising edge trigger message.If what control unit 502 was judged the trigger message sign is delete authority information, then obtain delete authority information from memory cell 503, this delete authority information is converted to binary data, by the form of luminescence unit 504 with flash of light the information of extracting is sent.
Wherein, luminescence unit 504 can be LED lamp, infrared diode, also can be other device with lighting function.
The optical key that this embodiment provides (super optical key) is as follows with the process of normal optical key mandate light signal receiving authorization message tabulation:
(1) write the authorization message flow process: super optical key sends and characterizes the visible light signal that writes authorization message---〉light signal receiving feedback information, and for example the common light pen of light signal receiving indicator light blue light-emitting---〉sends authorization message---〉and light signal receiving writes authorization message with the authorization message that common light pen sends.
(2) delete authority information flow: super optical key sends the visible light signal that characterizes delete authority information---〉the light signal receiving feedback information, and for example the light signal receiving indicator light glows---〉, and common light pen sends authorization message---light signal receiving delete the authorization message of common light pen transmission from authorization message.
Adopt present embodiment, after light signal receiving was installed, the USB interface that the user will light signal receiving was connected to host computer, revises the light signal receiving authorization message by super optical key, thus convenient the mandate.
Referring to Fig. 6, be a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 6 provides, this installs with respect to embodiment 5, and control unit 502 also comprises modulator 601.
Be connected in the driver 602 between luminescence unit 504 and the control unit 502, be used for driving luminescence unit 504 and send light signal.
Control unit 502 also comprises ciphering unit 603, and the information that is used for control unit 502 is obtained from memory cell 503 is encrypted.Wherein, ciphering unit 603 is logical-arithmetic unit and/or arithmetic unit; Also can be that ciphering unit is md5 encryption arithmetic unit, rsa encryption arithmetic unit, des encryption arithmetic unit or AES cryptographic calculation device.
Control unit 502 is connected with power supply 604 and stand-by power supply 605, when breaking down with stand-by power source 604, provides electric energy to control unit 502, and this stand-by power supply 605 can be button cell.
In concrete implementation process, control unit 502 can also be connected with the interface (not shown), and this interface can directly provide electric energy to control unit 502, also can be to power supply 604 chargings; This interface can also be data-interface, is used for the transmission of data.
With respect to embodiment 5, present embodiment has increased ciphering unit, can improve the fail safe of visible light signal; Increase modulator, improved the stability of visible light signal; Increased driver, can guarantee that luminescence unit works under optimum voltage or current status; Increase stand-by power supply, can guarantee the normal operation of this device.
Referring to Fig. 7, be a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 7 provides, with respect to embodiment 6, this device also comprises the touch-screen 701 that is connected with control unit 502.The fingerprint processor 702 that is connected with touch-screen 701 is used for receiving and authenticate the finger print information that described touch-screen 701 gathers, if by authentication, then shows the indication of carrying out next step action by touch-screen 701.The slip processor 703 that is connected with touch-screen 701 is used for receiving and authenticating the slip release information that touch-screen 701 receives, and then shows the indication of carrying out next step action by touch-screen 701.
Present embodiment has increased the slip unlocking function, can improve the user and experience; Increase the fingerprint authentication function, can improve fail safe.
Referring to Fig. 8, be a kind of authorization device schematic diagram based on light signal that the embodiment of the invention 8 provides, with respect to embodiment 5, this device also comprises the keyboard 801 that is connected with control unit 502, is used for input user's id information.The digital processing unit 802 that is connected with keyboard 801 is used for receiving the also id information of authenticated user.
Above disclosed is a kind of preferred embodiments of the present invention only, can not limit with this rights protection scope of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.