Summary of the invention
Below provide the brief overview of one or more aspects so that the basic comprehension to these aspects to be provided.Detailed the combining of this not all aspect contemplating of general introduction look at, and neither is intended to point out out the also non-scope of attempting to define any or all aspect of key or decisive key element of all aspects.Its unique object is the order that some concepts that will provide in simplified form one or more aspects are thought the more detailed description providing after a while.
According to an aspect of the present invention, provide a kind of method for the photon receiving end of upgrading, having comprised: from the optical information parameter instruction of the first photon client light form; From this optical information parameter instruction, extract order code; And carry out the upgrading of this photon receiving end in response to this order code.
In one example, this light form is infrared light, visible ray or ultraviolet light.
In one example, the method also comprises: from this optical information parameter instruction, extract check code; This optical information parameter instruction is carried out to verification, if verification is passed through, carry out the step of this extraction order code.
In one example, the method is sent feedback signal to indicate upgrading whether successful after being also included in upgrading.
In one example, this order code indication increases optical information parameter, and the upgrading of carrying out this photon receiving end in response to this order code comprises: from this optical information parameter instruction, extract optical information parameter numbering and optical information parameter set; And extracted optical information parameter set and the optical information parameter numbering of extracting are stored in database explicitly.
In one example, optical information parameter is revised in this order code indication, and the upgrading of carrying out this photon receiving end in response to this order code comprises: from this optical information parameter instruction, extract optical information parameter numbering and optical information parameter set; And use in extracted optical information parameter set replacement data storehouse and number with extracted optical information parameter the optical information parameter set of storing explicitly.
In one example, optical information parameter is revised in this order code indication, and the upgrading of carrying out this photon receiving end in response to this order code comprises: from optical information parameter instruction, extract optical information parameter set; With the optical information parameter set of having stored in extracted optical information parameter set replacement data storehouse.
In one example, this optical information parameter set is selected from one or more in parameter between pre-thermal parameter, group intrinsic parameter, group.
In one example, pre-thermal parameter comprises preheating time, and group intrinsic parameter comprises the time interval between each signal in group, and between group, parameter comprises the time interval between group signal and group signal.
In one example, the method also comprises: after this upgrading, receive the light signal from the second photon client; Analyze the light-emitting mode of this light signal to obtain parameter between this second photon client group intrinsic parameter used or group; In this database, carry out reverse find to obtain this second photon client optical information parameter set used according to parameter between this second photon client group intrinsic parameter used or group; And according to this second photon client optical information parameter set used, this light signal is decoded.
In one example, this photon receiving end is the photon lock in photon gate control system, the photon receiving end being connected with POS machine, the photon receiving end of photon conference system, the photon receiving end of photon ticketing system, the photon receiving end of photon antifalsification label.
In one example, this second photon client is portable set and the optical key that comprises mobile phone, panel computer, PDA.
In one example, this light signal is infrared signal, visible light signal or ultraviolet signal.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.Note, the aspects of describing below in conjunction with the drawings and specific embodiments is only exemplary, and should not be understood to protection scope of the present invention to carry out any restriction.
Fig. 1 shows the simplified block diagram that can put into practice therein visible light communication system of the present invention.Visible light communication system 100 comprises photon client 110 and photon receiving end 120.Photon client 110 comprises scrambler 111.Scrambler 111 receives original communication data.Original communication data can be any information datas that will convey to photon receiving end with photon client 110, for example, and user identity (ID) information, operational order etc.
Scrambler 111 can adopt any coded system original communication data of encoding.Common coding can comprise nrz encoding, nrzi encoding, NRZI reversion counting coding etc.Nrz encoding is to represent 1 with high level, and low level represents 0.Nrzi encoding is to be that the saltus step of low and high level is for representing a such as 1(0 of logic with the upset of signal), and signal low and high level remain unchanged represent such as 0(1 of another logic).RZ step-by-step counting coding be by raw information take n bit as one group, between two adjacent groups signal, be provided with the time interval between group, every group of interior information that represents n bit in this group signal with the number of pulse.As shown in the table 1 in Fig. 2, work as n=2, during as one group, represent 00,01,10 and 11 with 1,2,3 and 4 pulse take two bits respectively.As shown in Figure 2, between group, the time interval is set as 25ms, the representative information position 00,10 respectively of two group numbers in figure.According to RZ coding, represent information bit 00 with a pulse, represent information 10 with 3 pulses.Note, RZ in table 1 coding 10,101010 in 1 and 0 be for representing high level and low level, and noninformation bit.
NRZI reversion counting coding be also by raw information take n bit as one group, between two adjacent groups signal, be provided with the time interval between group.Be different from RZ step-by-step counting coding, NRZI is the information that represents respectively n bit in this group signal in every group with high level to the reversion number of times of low level (or low level is to high level).As shown in the table 2 in Fig. 2, work as n=2, during as one group, represent 00,01,10 and 11 with 1,2,3 and 4 reversion number of times take two bits respectively.As shown in Figure 2, between group, the time interval is set as 25ms, the representative information 00,10 respectively of two group numbers in figure.According to nrzi encoding, for example 1 to 0 or 0 to 1 represent information bit 00 with the reversion of 1 signal level, reverse and represent information bit 10 by three signal levels.
Scrambler 111 exports encoded signal to luminescence unit 113.Luminescence unit 113 can be for example by representing high level signal and represent that with not luminous low level sends the encoded signal receiving with the form of visible ray with luminous.Luminescence unit 113 can be the element that LED or other have lighting function.Photon client 110 can be photon Internet of Things, and for example portable set in photon gate control system, such as mobile phone, panel computer, PDA and optical key etc.Optical key opens the key of door lock based on realizing of visible light communication, also can be called photon key.Now, luminescence unit 113 can be the flashlamp on mobile phone.Processor 112 can controlled encoder 111, the operation of luminescence unit 113.Processor 112 can be general processor, digital signal processor (DSP) etc.General processor can be microprocessor, but in alternative, this processor 112 can be also processor, controller, microcontroller or the state machine of any routine.Processor 112 can also be implemented as the combination of computing equipment, the combination of for example DSP and microprocessor, multi-microprocessor, with one or more microprocessors or any other this type of configuration of DSP central cooperation.
Photon receiving end 120 comprises for receiving the visible light signal that client 110 launches the receiving element 123 that visible light signal is converted to digital signal.For example, the high-frequency flicker producing for LED lamp, has light can represent high level, the unglazed low level that represents, otherwise or, thereby the visible light signal of reception can be converted to digital signal.Receiving element 123 can be photosensitive device, for example photodiode.The characteristic of utilizing electric signal and the light signal of photodiode, will form electric impulse signal by opto-electronic conversion.In practice because photon client 110 is different with the relative position of photon receiving end 120, be that the light signal strength that each photon client 110 is transmitted into photon receiving end 120 is different, so its electric signal power is also different, so the electric current that need to form photodiode carries out commutating ratio.As the current value passing through when diode, during higher than certain certain threshold value, the voltage level values of output is adjusted into high level by photoelectric switching circuit; When the current value by photodiode is during lower than a certain threshold value, the voltage level values of output is adjusted into low level by photoelectric switching circuit.The setting of this threshold value is to set according to different environment by a mathematical model, and when distant, threshold value may reduce; When near distance, threshold value may raise relatively.By above process, level can be adjusted in certain limit, guarantee correct pulse shape with this, to guarantee as far as possible the accuracy of sampling.
Demoder 121 receives the digital signal of being exported by receiving element 123 and it is decoded, to recover original communication data.Processor 122 can be controlled the operation of demoder 121, receiving element 123.Processor 122 can be general processor, digital signal processor (DSP) etc.General processor can be microprocessor, but in alternative, this processor 122 can be also processor, controller, microcontroller or the state machine of any routine.Processor 122 can also be implemented as the combination of computing equipment, the combination of for example DSP and microprocessor, multi-microprocessor, with one or more microprocessors or any other this type of configuration of DSP central cooperation.
Photon client and photon receiving end in visible light communication system described above.Those skilled in the art hold intelligible, and in other optical communication systems except visible ray, photon client and photon receiving end also can adopt other light form to communicate, for example infrared light, ultraviolet light etc.
Fig. 3 shows the schematic diagram that can put into practice therein communication environment 300 of the present invention.Communication environment 300 can be photon gate control system.In this photon gate control system, photon receiving end 320 can be mounted in the photon lock on door, and the visible light signal that comprises subscriber identity information by reception is identified user identity, and takes correspondingly to operate.In other application, photon receiving end 320 can be the photon receiving end being connected with POS machine, the photon receiving end of photon conference system, the photon receiving end of photon ticketing system, the photon receiving end of photon antifalsification label.Photon receiving end 320 can comprise receiving element 321, the photosensitive device such as photodiode.Photon receiving end 320 also can comprise process chip 322, control of for example, various operations for the digital signal after opto-electronic conversion is decoded, and to photon receiving end 320 etc.In addition, photon receiving end 320 also can comprise that the storer 323 being coupled with process chip 322 is with storing subscriber information and service data.Corresponding with photon receiving end 320 is photo emissions end 310, herein also referred to as photon client 310.The luminescence unit 311(that user can use photon client 310 for example, LED flashlamp) launch visible light signal to reach the object of release to photon receiving end 320.
The feature of visible light communication communication is that information is launched with visible ray form, and receiving end adjudicates to obtain digital signal by opto-electronic conversion and by sampling, and finally decodes original communication data.In order to reduce the error rate of photon receiving end receiving optical signals, often to the data sending and receiving that divides into groups.For example, send the data of 50, can divide into groups to it so, as 2 be one group, 25 groups altogether.Organize the time interval that is provided with between signal and group signal, be referred to as interblock space; In the middle of each group light signal, between signal and signal, be also provided with the time interval simultaneously.Take nrz encoding as example, send one group of data 01, wherein 0 can be with i.e. luminous expression not of low level, 1 can be luminous expression with high level.While sending these group data with visible light signal, suppose to represent that luminous and non-luminous time of low and high level is all 1ms, the time interval (i.e. interval in group) in group between each signal is 2ms.Now, the luminescence process that sends this information take visible light signal is not luminous (1ms)+not luminous (2ms in group)+luminous (1ms)+luminous (2ms in group).Similarly, suppose to send two groups of data 00,01, and in group, be spaced apart 2ms, interblock space is 30ms, and the luminescence process that sends this information take visible light signal is not luminous (1ms)+not luminous (2ms in group)+not luminous (1ms)+not luminous (2ms in group)+not luminous (30ms between group)+not luminous (1ms)+not luminous (2ms in group)+luminous (1ms)+luminous (2ms in group).In visible light communication system, in group, interval represents with group intrinsic parameter, and Parametric Representation between group for interblock space.In addition, could send more stable visible light signal for the luminescence unit that adapts to transmitting terminal needs before luminous carry out preheating to equipment, generally also be provided with one period of preheating time, be referred to as pre-thermal parameter.Luminous when photon client 310 is controlled transmitting visible light signal by parameter between oneself group intrinsic parameter, group and pre-thermal parameter.Here, between group intrinsic parameter, group, parameter and pre-thermal parameter are collectively referred to as the optical information parameter of photon client 310, and this group parameter is called as optical information parameter set altogether.
Photon receiving end 320 need to correctly be decoded to the visible light signal of photon client 310 by the optical information parameter set based on photon client 310.Therefore, in the database of photon receiving end 320, storing and the optical information parameter set of various existing conventional mobile phone models.For example, can store many optical information reference records in database, every records corresponding optical information parameter numbering and concrete optical information parameter set.Following table 3 shows an example of optical information reference record in database.In other examples, every record also can only record concrete optical information parameter set and there is no optical information parameter numbering.
Optical information parameter numbering |
Optical information parameter set 1 |
1 |
Optical information parameter set 1 |
2 |
Optical information parameter set 2 |
3 |
Optical information parameter set 3 |
…… |
…… |
N |
Optical information parameter set N |
Table 1---optical information reference record
Day by day universal along with portable sets such as mobile phones, utilizes the flashlamp on these portable sets that portable set itself is had to great convenience as photon client.This has cancelled conventional door access control system for the demand of making special smart card, has reduced cost, can use the different gate inhibitions of a mobile phone release simultaneously, has greatly improved convenience.But the different brands not even optical information parameter of the flashlamp of the mobile phone of same model is different.Therefore, photon receiving end 320 needs constantly upgrading to support new photon client.
According to an aspect of the present invention, provide a kind of method that uses photon client 310 by visible light communication, photon receiving end 320 to be upgraded.In the situation of execution upgrading, photon client 310 can be the super photon client that is exclusively used in the upgrading to photon receiving end 320, and photon receiving end 320 can correctly receive the decode the visible light signal of super photon client.So-called super photon client is can be by send the photon client of read write command to photon receiving end 320.
A kind of compared with the optical key of new model supporting for photon receiving end 320 is upgraded, photon client 310 can send optical information parameter instruction with visible ray form to photon receiving end 320.Fig. 4 shows the schematic diagram of the form of optical information parameter instruction according to an aspect of the present invention.As shown in Figure 4, optical information parameter instruction 400 can comprise order code field 401, parameter set number field 402, optical information parameter field 403 and check code field 404.Order code field 401 can indicator type, for example, increase optical information parameter, revise optical information parameter etc.Parameter set number field 402 can refer to the corresponding numbering of optical information parameter set in this instruction.Optical information parameter field 403 can comprise the concrete optical information parameter of optical information parameter set in this instruction, for example, organize parameter between intrinsic parameter, group, pre-thermal parameter.As above, pre-thermal parameter comprises preheating time, and group intrinsic parameter comprises the time interval between each signal in group, and between group, parameter comprises the time interval between group signal and group signal.For example, this optical information parameter set can be this optical information parameter set using compared with the optical key of new model.Check code field 404 can comprise check code, such as CRC check etc.
Photon receiving end 320 can receive from photon client 310 the optical information parameter instruction of this visible ray form.First, photon receiving end 320 can extract check code from this optical information parameter instruction, and this optical information parameter instruction is carried out to verification.For example, photon receiving end can be carried out CRC to this optical information parameter instruction and calculate, and the proof test value calculating is compared with extracted check code.If both are consistent, verification is passed through, and this optical information parameter instruction is valid instruction, otherwise verification failure, this optical information parameter instruction is disable instruction, thereby it is not further processed.
In the situation that verification is passed through, photon receiving end 320 can extract order code from optical information parameter instruction, and carries out the upgrading of photon receiving end 320 in response to this order code.For example, if order code indication increases optical information parameter, the optical information parameter set that photon receiving end 320 can extract optical information parameter numbering and follow from optical information parameter instruction, and extracted optical information parameter set and the optical information parameter numbering of extracting are stored in database explicitly, increase thus an optical information reference record.If optical information parameter is revised in order code indication, represent that this upgrading is a certain the already present optical information reference record of wanting in Update Table storehouse.Therefore, at the optical information parameter set that extracts optical information parameter numbering and follow from optical information parameter instruction, photon receiving end 320 can be used in extracted optical information parameter set replacement data storehouse and number with extracted optical information parameter the optical information parameter set of storing explicitly.For example, photon receiving end 320 is numbered index with the optical information parameter of being extracted and from database, finds this optical information reference record, and uses extracted new optical information parameter set to cover the optical information parameter set in this record.Thus, can complete the upgrading to photon receiving end 320.In other examples, also can from optical information parameter instruction, extract optical information parameter set, and directly use the optical information parameter set of having stored in extracted optical information parameter set replacement data storehouse.After upgrading successfully, photon receiving end 320 can send feedback signal.In one example, 320 serviceable condition indicating member 324 indications of photon receiving end upgrade successfully.For example, this state indication unit can comprise color LED lamp and hummer, and such as a blue lamp of feedback, and the sound that sends a sound of beep represents to upgrade successfully, and feeds back a red light, and two sound that send beep represent to upgrade unsuccessfully.
After upgrading, including this, compared with the optical key of new model, the visible light signal of all optical keys that photon receiving end 320 can be supported it is correctly decoded.As an illustrative and limiting examples, in the conventional visible light communication of supported photon client 310 and photon receiving end 320 (for example, be used for authentication to carry out access control), photon receiving end 320 can be differentiated the optical information parameter set that photon client 310 adopts automatically, thereby with suitable optical information parameter set, the visible light signal of photon client 310 is decoded.In the context of this general communication, photon client 310 can be in all clients of supporting of photon receiving end 320.
In this example, the light-emitting mode that photon receiving end 320 can be analyzed the visible light signal receiving from photon client 310 is to obtain photon client 310 group intrinsic parameter used.The light-emitting mode here can comprise interrupted, interval length of visible light signal that photon client 310 sends etc.Group intrinsic parameter is the shortest time interval in the intermittent process of visible ray, and photon receiving end 320 can relatively easily obtain this parameter.Meanwhile, due to group intrinsic parameter be also generally photon client 310(for example, mobile phone) luminescence unit 311 achieved the shortest interval on hardware, so the group intrinsic parameter of the photon client 310 of different model is generally mutually different.Therefore, after obtaining the group intrinsic parameter of this visible light signal, photon receiving end 320 can be carried out reverse find to obtain photon client 310 optical information parameter set used according to photon client 310 group intrinsic parameter used in database, thereby obtains other optical information parameters parameter, pre-thermal parameter including between group.For example, the group intrinsic parameter that photon receiving end 320 can be searched which bar record in the optical information reference record of database equals the analyze group intrinsic parameter obtaining, and can think the optical information parameter set optical information parameter set that photon client 310 is used just in this record.Therefore, photon receiving end 320 can adopt this optical information parameter set to carry out subsequent decoding to photon client 310.Similarly, also can pass through to analyze parameter between photon client 310 group used, and between the group obtaining according to analysis, parameter execution reverse find obtains this photon client 310 optical information parameter set used.Those skilled in the art understand, said method is a kind of mode that photon receiving end 320 photon client 310 that it is supported is carried out adaptive decoding, and the present invention also can adopt other modes to realize the adaptive decoding of the photon client 310 that photon receiving end 320 supports it.
Above take visible light communication system as example has illustrated principle of the present invention, but the solution of the present invention also can be applicable to other optical communication systems, for example infrared communication system, ultra-violet optical communication system etc.
Fig. 5 shows the process flow diagram 500 of the method for the photon receiving end of upgrading according to an aspect of the present invention.This flow process can be carried out by photon receiving end.
Step 501, from the optical information parameter instruction of the first photon client light form, this first photon client can be the super photon client that is exclusively used in upgrading photon receiving end;
Step 502 is extracted check code from this optical information parameter instruction;
Step 503, carries out verification to this optical information parameter instruction;
Step 504, if verification is passed through, flow process marches to step 505, otherwise marches to step 510;
Step 505 is extracted order code from this optical information parameter instruction, if order code is for increasing optical information parameter, flow process marches to step 506, if order code is modification optical information parameter, flow process marches to step 508;
Step 506 is extracted optical information parameter numbering and optical information parameter set from this optical information parameter instruction;
Step 507, is stored in extracted optical information parameter set and the optical information parameter numbering of extracting in database explicitly;
Step 508 is extracted optical information parameter numbering and optical information parameter set from this optical information parameter instruction;
Step 509, uses in extracted optical information parameter set replacement data storehouse and numbers with extracted optical information parameter the optical information parameter set of storing explicitly.
Step 510, sends feedback signal whether successful with indication upgrading.
The light form here can be visible ray, infrared light or ultraviolet light.
Although said method is illustrated and is described as a series of actions for making to explain to simplify, it should be understood that and understand, the order that these methods are not moved is limit, because according to one or more embodiment, some actions can by different order occur and/or with from illustrating herein and describe or not shown and describe but other actions that it will be appreciated by those skilled in the art that occur concomitantly herein.
Those skilled in the art will further understand, and various illustrative logic plates, module, circuit and the algorithm steps described in conjunction with embodiment disclosed herein can be embodied as electronic hardware, computer software or the two combination.For clearly explaining orally this interchangeability of hardware and software, various illustrative components, frame, module, circuit and step are done vague generalization with its functional form in the above and are described.This type of is functional is implemented as the design constraint that hardware or software depend on concrete application and puts on total system.Technician can realize by different modes described functional for every kind of application-specific, but such realize decision-making and should not be interpreted to and cause having departed from scope of the present invention.
Various illustrative logic plates, module and the circuit of describing in conjunction with embodiment disclosed herein can be realized or carry out with any combination that general processor, digital signal processor (DSP), special IC (ASIC), field programmable gate array (FPGA) or other programmable logic device (PLD), discrete or transistor logic, discrete nextport hardware component NextPort or its are designed to carry out function described herein.General processor can be microprocessor, but in alternative, this processor can be processor, controller, microcontroller or the state machine of any routine.Processor can also be implemented as the combination of computing equipment, the combination of for example DSP and microprocessor, multi-microprocessor, with one or more microprocessors or any other this type of configuration of DSP central cooperation.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be embodied directly in hardware, in the software module of being carried out by processor or in the two combination and embody.Software module can reside in the storage medium of RAM storer, flash memory, ROM storer, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or any other form known in the art.Exemplary storage medium is coupled to processor so that this processor can be read and writing information from/to this storage medium.In alternative, storage medium can be integrated into processor.Processor and storage medium can reside in ASIC.ASIC can reside in user terminal.In alternative, processor and storage medium can be used as discrete assembly and reside in user terminal.
Providing previous description of the present disclosure is for making any person skilled in the art all can make or use the disclosure.To be all apparent for a person skilled in the art to various modifications of the present disclosure, and generic principles as defined herein can be applied to other variants and can not depart from spirit or scope of the present disclosure.Thus, the disclosure is not intended to be defined to example described herein and design, but should be awarded the widest scope consistent with principle disclosed herein and novel features.