Authorization method and device based on optical signal
Technical Field
The present invention relates to the field of optical signal authorization technologies, and in particular, to an optical signal-based authorization method and apparatus.
Background
Optical communication includes non-visible light communication such as infrared communication, which is a medium using infrared as a medium for transferring information, and visible light communication. The transmitting end modulates the baseband binary signal into a series of pulse train signals and transmits the infrared signal through the infrared transmitting tube. The receiving end converts the received optical pulse into an electric signal, and the electric signal is amplified, filtered and the like and then sent to a demodulation circuit for demodulation, and the electric signal is restored into a binary digital signal and then output. Common visible light communication is an emerging, short-distance and high-speed wireless optical communication technology developed on the basis of LED technology. The basic principle of visible light communication is that the characteristic that an LED is faster than a fluorescent lamp and an incandescent lamp in switching speed is utilized, communication is carried out through high-frequency flicker of an LED light source, a light represents 1, a non-light represents 0, high-speed light signals are sent out, and information is obtained through photoelectric conversion.
In the prior art, the authorization of the signal receiving device is to use an upper computer to connect with a USB interface, and the upper computer software reads and manages an authorization ID list inside the signal receiving device through the USB interface. However, since the signal receiving device is generally installed at a fixed position of the system, it is very inconvenient to use the host computer to connect the signal receiving device through the USB, which may cause the user to authorize only before installation.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide an optical key for modifying authorization information of an optical signal receiving device, which can modify the authorization information of the optical signal receiving device regardless of whether the optical signal receiving device is installed at a fixed position of a system, so as to improve user experience.
In order to solve the above technical problem, an embodiment of the present invention provides an authorization method based on an optical signal, where the method includes:
the optical signal receiving device receives trigger information which is transmitted by the super optical key and used for representing deletion or writing authorization information; acquiring corresponding information from local according to the trigger information; controlling the light emitting unit to respond to the information in the form of a light signal;
and the optical signal receiving device receives the authorization information sent by the common optical key, deletes the authorization information from the authorization information list or writes the authorization information into the authorization information list.
Acquiring corresponding information from local according to the trigger information, wherein the acquiring comprises:
and acquiring an instruction for writing the authorization information or an instruction for deleting the authorization information according to the trigger information.
Optionally, the receiving, by the optical signal receiving apparatus, trigger information representing deletion or writing of authorization information transmitted by the super optical key specifically includes:
and receiving trigger information representing deletion or writing of the authorization information through the key.
Optionally, the receiving, by the key, trigger information representing deletion or writing of authorization information specifically includes:
and receiving trigger information representing deletion or writing of authorization information through different continuous trigger times of the same key.
Optionally, the receiving, by the key, trigger information representing deletion or writing of authorization information specifically includes:
and receiving trigger information representing deletion or writing of the authorization information through different keys.
Optionally, the receiving, by the optical signal receiving apparatus, trigger information indicating deletion or writing of the authorization information, which is transmitted by the super optical key, specifically includes:
and receiving the trigger information through a selection menu of the touch screen.
Optionally, before receiving the trigger information through the selection menu of the touch screen, the method further includes:
and receiving sliding unlocking information and displaying a selection menu.
Optionally, the method further comprises:
and performing authorization information authentication.
Optionally, the performing authorization information authentication specifically includes:
and collecting the biological characteristic information of the user, and if the biological characteristic information is matched with the pre-stored verification condition, judging that the authorization information is legal.
Optionally, the performing authorization information authentication specifically includes:
and receiving ID information input by a user through a keyboard, and if the ID information is matched with the prestored ID information, judging that the authorization information is legal.
Optionally, the performing authorization information authentication specifically includes:
and receiving ID information input by a user through the touch screen, and if the ID information is matched with the prestored ID information, judging that the authorization information is legal.
Optionally, after acquiring the corresponding information locally according to the trigger information, the method further includes:
the information is encrypted.
Optionally, encrypting the information specifically includes:
carrying out logic operation on the changed pseudo code sequence and the change authorization information; and/or arithmetic operations.
Optionally, the varying pseudo code sequence is a pseudo code sequence that varies continuously with the variation of local time; or,
and the pseudo code sequence changes along with the preset unit time.
Optionally, the varying pseudo code sequence is a pseudo code sequence that varies continuously with a preset number of times of the transmission signal.
Optionally, the changed pseudo code sequence is a pseudo code sequence in which the frequency of the signal changes according to the change of the crystal oscillator information; or,
and the frequency of the signal is changed according to the change of the local clock information.
Optionally, encrypting the information specifically includes:
the information is encrypted using an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, or an AES encryption algorithm.
Optionally, before controlling the light emitting unit to respond to the information in the form of an optical signal, the method further includes:
the information is encoded.
In order to solve the above technical problem, an embodiment of the present invention further provides an authorization apparatus based on an optical signal, including a storage unit, a light emitting unit, and a control unit, configured to receive trigger information indicating deletion or writing of authorization information, which is transmitted by a super optical key, obtain corresponding information from the storage unit, and control the light emitting unit to respond to the information in the form of an optical signal; and receiving the authorization information sent by the common optical key, deleting the authorization information from an authorization information list, or writing the authorization information into the authorization information list.
Optionally, the control unit further includes a modulator.
Optionally, the device further comprises a driver connected between the light emitting unit and the control unit.
Optionally, the device further comprises a backup power supply connected to the control unit.
Optionally, the apparatus further comprises an interface connected to the control unit.
Wherein the interface is a charging interface, and/or a data interface.
Optionally, the device further comprises at least one key connected to the controller.
Optionally, the device further comprises a touch screen connected to the control unit.
Optionally, the device further includes a fingerprint processor connected to the touch screen, and configured to receive and authenticate fingerprint information collected by the touch screen.
Optionally, the apparatus further includes a sliding processor, configured to receive and authenticate sliding unlocking information received by the touch screen.
Optionally, the apparatus further includes a keyboard connected to the control unit, and configured to input ID information of the user.
Optionally, the apparatus further comprises a digital processor connected to the keyboard, for receiving and authenticating ID information of the user.
Optionally, the control unit further includes an encryption unit configured to encrypt the information acquired from the storage unit.
Optionally, the encryption unit is a logical operator, and/or an arithmetic operator.
Wherein the encryption unit is an MD5 encryption operator, an RSA encryption operator, a DES encryption operator, or an AES encryption operator.
The device is integrated on mobile electronic equipment such as a mobile phone, MP3, MP4, PSP and the like, or is a stand-alone device.
In the technical scheme, the control unit judges whether the authorization information is written or deleted according to the received trigger information, then acquires the corresponding information from the storage unit connected with the control unit, and sends the corresponding information in the form of visible light signals, so that the authorization information of the optical signal receiving device is deleted or modified.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an authorization method based on optical signals according to embodiment 1 of the present invention;
fig. 2 is a flowchart of an authorization method based on optical signals according to embodiment 2 of the present invention;
fig. 3 is a flowchart of an authorization method based on optical signals according to embodiment 3 of the present invention;
fig. 4 is a flowchart of an authorization method based on optical signals according to embodiment 4 of the present invention;
fig. 5 is a schematic diagram of an authorization apparatus based on optical signals according to embodiment 5 of the present invention;
fig. 6 is a schematic diagram of an authorization apparatus based on optical signals according to embodiment 6 of the present invention;
fig. 7 is a schematic diagram of an authorization apparatus based on optical signals according to embodiment 7 of the present invention;
fig. 8 is a schematic diagram of an authorization apparatus based on an optical signal according to embodiment 8 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In the embodiment of the invention, an optical signal transmitting device (super optical key) for modifying authorization information of an optical signal receiving device sends an optical signal for deleting or writing the authorization information to the optical signal receiving device, the optical signal receiving device authenticates the received optical signal after receiving a visible optical signal, and responds if the received optical signal passes the authentication; the optical signal receiving device receives the information sent by the optical signal transmitting device (common optical key) corresponding to the authorization information, and then deletes the authorization information from the authorization information or writes the authorization information into the authorization information. Therefore, the super optical key is adopted to modify the authorization information of the optical signal receiving device, and further the management of the authorization information of the optical signal receiving device is realized.
Referring to fig. 1, it is a flowchart of an authorization method based on optical signals provided in embodiment 1 of the present invention, where the method includes:
s101: and receiving trigger information representing deletion or writing of the authorization information by different continuous trigger times in a preset time period.
For example, if the representative deletion authorization information is triggered more than 2 times within 2 seconds, the representative write authorization information is triggered once;
s102: and acquiring corresponding information according to the trigger information. Namely, if the trigger information represents that the authorization information is deleted, acquiring an instruction for deleting the authorization information; and if the trigger information represents the write-in authorization information, acquiring the command of the write-in authorization information.
S103: the light emitting unit is controlled to transmit said information in the form of a light signal. Specifically, the optical signal may be a visible light signal, an infrared signal, a far infrared signal, or an ultraviolet signal.
Through the embodiment, the authorization information of the optical signal receiving device can be conveniently modified, and the authorization information of the optical signal receiving device can be a white list, a black list or optical signal receiving device authorization information divided according to priority.
Referring to fig. 2, it is a flowchart of an authorization method based on optical signals provided in embodiment 2 of the present invention, where the method includes:
s201: and receiving trigger information representing deletion or writing of the authorization information through different keys.
For example, the trigger information sent by the key 1 represents deletion authorization information, and the trigger information sent by the key 2 represents write authorization information.
S202: and acquiring corresponding information according to the trigger information.
S203: the information is encrypted using the varying pseudo-code signal.
Specifically, the variable pseudo code sequence may be encrypted by performing a logical encryption operation on the authentication information with the error correction code, and/or may be encrypted by performing an arithmetic encryption operation on the variable pseudo code sequence and the authentication information with the error correction code.
The logic encryption operation comprises logic operation modes such as exclusive-or encryption operation, exclusive-nor encryption operation and the like; the arithmetic encryption operation includes arithmetic operation methods such as addition encryption operation, subtraction encryption operation, multiplication encryption operation, or division encryption operation.
Wherein, the changing pseudo code sequence can be a pseudo code sequence which continuously changes along with the change of local time; or a pseudo code sequence that varies with a preset unit time. Or may be a pseudo code sequence that varies with a preset number of times the signal is transmitted. The frequency of the signal can also be a pseudo code sequence which changes according to preset conditions, for example, the frequency of the pseudo code sequence changes according to the change of the crystal oscillator information; alternatively, the frequency of the pseudo code sequence is changed in accordance with a change in the local clock information.
S204: and encoding the encrypted information.
S205: the LED is controlled to send the information in the form of a visible light signal.
In the embodiment, the information is encrypted by adopting the changed pseudo code signal, so that the safety of signal transmission is improved.
Referring to fig. 3, it is a flowchart of an authorization method based on optical signals provided in embodiment 3 of the present invention, where the method includes:
s301: and receiving sliding unlocking information and displaying a selection menu.
S302: and receiving the trigger information through a selection menu of the touch screen.
S303: and acquiring corresponding information according to the trigger information.
S304: the information is encrypted using an MD5 encryption algorithm, an RSA encryption algorithm, a DES encryption algorithm, or an AES encryption algorithm.
S305: the information is transmitted in the form of infrared signals.
The embodiment adopts a sliding unlocking mode, so that the user experience can be improved.
Referring to fig. 4, it is a flowchart of an authorization method based on optical signals provided in embodiment 4 of the present invention, where the method includes:
s401: and performing authorization information authentication.
Specifically, the biometric information of the user can be collected, and if the biometric information is matched with the pre-stored verification condition, the authorization information is judged to be legal; or, receiving ID information input by a user through a keyboard, and if the ID information is matched with prestored ID information, judging that the authorization information is legal; or receiving ID information input by a user through the touch screen, and if the ID information is matched with the prestored ID information, judging that the authorization information is legal.
S402: and receiving trigger information representing deletion or writing of authorization information through different trigger times of the same key.
For example, if the trigger time is greater than or equal to 3 seconds, the erasure of the authorization information is represented, and less than 3 seconds represents the writing of the authorization information.
S403: and acquiring corresponding information according to the trigger information.
S404: and carrying out logic operation on the information by adopting the changed pseudo code signal to obtain encrypted information.
S405: and sending the encrypted information in a form of visible light signals.
In the embodiment, the identity of the authorization information is verified before the trigger information is received, so that the trigger information cannot be sent to an illegal user, and the safety is further improved.
Referring to fig. 5, a schematic diagram of an authorization apparatus based on optical signals according to embodiment 5 of the present invention is shown, where the apparatus may be a mobile electronic device such as a mobile phone, MP3, MP4, PSP, or an independent apparatus, and the apparatus includes:
at least one key 501, wherein when the number of the keys 501 is one, different meanings are represented according to the number of continuous triggering within a preset time, or different meanings are represented according to different triggering times. When there are more than one keys 501, different meanings may be represented by different keys. Specifically, a plurality of keys are adopted and arranged according to requirements.
When the control unit 502 connected to the key 501 receives the trigger information from the key 501, the control unit 502 determines whether the trigger information represents the write authorization information or the delete authorization information, and extracts corresponding information from the storage unit 503 connected to the control unit 502 according to the determination result. Specifically, if the control unit 502 determines that the trigger information represents write authorization information, the control unit obtains the write authorization information from the storage unit 503, converts the write authorization information into binary data, and sends the extracted information in the form of an optical signal through the light emitting unit 504 connected to the control unit 502. For example, in one time period, the control unit 502 converts binary data "1" into rising edge trigger information and "0" into falling edge trigger information. The light emitting unit 504 emits light when receiving the falling edge trigger information, and does not emit light when receiving the rising edge trigger information. If the control unit 502 determines that the trigger information represents deletion authorization information, the control unit obtains the deletion authorization information from the storage unit 503, converts the deletion authorization information into binary data, and sends out the extracted information in the form of flash light through the light emitting unit 504.
The light emitting unit 504 may be an LED lamp, an infrared diode, or other devices with a light emitting function.
The procedure of authorizing the optical signal receiving apparatus authorization information list by the optical key (super optical key) and the ordinary optical key provided in this embodiment is as follows:
(1) and (3) writing authorization information: the super light key sends visible light signals representing write-in authorization information, such as the light signal receiving device sends blue light, the ordinary light pen sends authorization information, and the light signal receiving device writes the authorization information sent by the ordinary light pen into the authorization information.
(2) And (3) deleting the authorization information: the super light key sends visible light signals representing the deletion of the authorization information, such as red light emitted by an indicator light of the light signal receiving device, authorization information sent by a common light pen, to the light signal receiving device, and the authorization information sent by the common light pen is deleted from the authorization information.
By adopting the embodiment, after the optical signal receiving device is installed, a user does not need to connect the USB interface of the optical signal receiving device to the upper computer, and the authorization information of the optical signal receiving device is modified through the super optical key, so that the authorization is convenient.
Referring to fig. 6, which is a schematic diagram of an authorization apparatus based on an optical signal according to embodiment 6 of the present invention, the apparatus is opposite to embodiment 5, and the control unit 502 further includes a modulator 601.
A driver 602 connected between the light emitting unit 504 and the control unit 502 for driving the light emitting unit 504 to transmit the light signal.
The control unit 502 also includes an encryption unit 603 for encrypting information that the control unit 502 acquires from the storage unit 503. Wherein the encryption unit 603 is a logical operator, and/or an arithmetic operator; the encryption unit may be an MD5 encryption operator, an RSA encryption operator, a DES encryption operator, or an AES encryption operator.
The control unit 502 is connected to a power supply 604 and a backup power supply 605 to provide power to the control unit 502 when the power supply 604 fails, and the backup power supply 605 may be a button cell.
In a specific implementation process, the control unit 502 may further be connected to an interface (not shown in the figure), and the interface may directly provide power to the control unit 502 or charge the power supply 604; the interface may also be a data interface for transmitting data.
Compared with embodiment 5, the embodiment adds an encryption unit, which can improve the safety of visible light signals; a modulator is added, and the stability of visible light signals is improved; the driver is added, so that the light-emitting unit can be ensured to work under the optimal voltage or current state; and a standby power supply is added, so that the normal operation of the device can be ensured.
Referring to fig. 7, it is a schematic diagram of an authorization apparatus based on optical signals according to embodiment 7 of the present invention, and the apparatus further includes a touch screen 701 connected to the control unit 502, compared to embodiment 6. And the fingerprint processor 702 is connected with the touch screen 701 and is configured to receive and authenticate fingerprint information collected by the touch screen 701, and if the fingerprint information passes the authentication, display an instruction for executing a next action through the touch screen 701. And the sliding processor 703 is connected to the touch screen 701 and configured to receive and authenticate the sliding unlocking information received by the touch screen 701, and display an instruction for executing a next action through the touch screen 701.
The embodiment adds a sliding unlocking function, and can improve user experience; the fingerprint verification function is added, and the safety can be improved.
Referring to fig. 8, which is a schematic diagram of an authorization apparatus based on optical signals according to embodiment 8 of the present invention, relative to embodiment 5, the apparatus further includes a keyboard 801 connected to the control unit 502 for inputting ID information of a user. A digital processor 802 connected to the keyboard 801 for receiving and authenticating ID information of the user. The above disclosure is only one preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, so that the present invention is covered by the claims and their equivalents.