Summary of the invention
Present invention is primarily targeted at update method and the updating device that a kind of geocoding is provided, to solve visible
Optical transmission device carries out the problem that when geocoding updates, operation is complicated.
To achieve these goals, according to an aspect of the invention, it is provided the update method of a kind of geocoding.
The update method of the geocoding according to the present invention includes: transmission of visible light equipment receives the more new clothes of geocoding
Put the renewal optical signal of transmission, wherein, update the decoded instruction of optical signal and include that destination address encodes;Visible ray passes
Renewal optical signal is decoded by transfer device;And address compiled by transmission of visible light equipment according to the instruction that obtains after decoding
Code is updated to destination address coding.
Further, after carrying out geocoding renewal, the method also includes: transmission of visible light equipment sends checking
Optical signal is to updating device, so that updating device determines renewal knot according to the geocoding after destination address coding and renewal
Really, wherein, the geocoding after the checking decoded instruction of optical signal includes transmission of visible light renewal of the equipment;And can
See that optical transmission device receives the renewal result optical signal that updating device sends, wherein, update result optical signal decoded
Instruction includes the renewal result that updating device determines.
Further, before carrying out geocoding renewal, the method also includes: transmission of visible light equipment judges to update
Whether optical signal meets the address update condition preset, wherein, it is seen that optical transmission device is according to the instruction obtained after decoding
Geocoding is updated to destination address coding include: when updating optical signal and meeting default address update condition, can
See that geocoding is updated to destination address according to the instruction obtained after decoding and encodes by optical transmission device.
Further, it is seen that optical transmission device judges that updating the most satisfied address update condition preset of optical signal includes:
Whether transmission of visible light equipment judge to receive the difference of the available machine time of the time and the transmission of visible light equipment that update optical signal
Within the scope of default time difference;Transmission of visible light equipment judges the coded system updating optical signal and the coding preset
Mode is the most consistent;And/or transmission of visible light equipment judges to update whether the decoded instruction of optical signal includes presetting more
New instruction.
Further, updating optical signal is the optical signal that visible ray produces according to prefixed time interval flicker, it is seen that light passes
Transfer device judges that the coded system updating optical signal is the most consistent with the coded system preset and includes: transmission of visible light equipment
Judge whether the multiple time intervals updating optical signal corresponding include that the very first time is spaced;And when multiple time interval bags
When including very first time interval, it is seen that optical transmission device determines the coded system updating optical signal and the coded system one preset
Cause.
Further, when updating multiple time intervals corresponding to optical signal and including that the very first time is spaced, it is seen that optical transport
Equipment is decoded including by updating optical signal: transmission of visible light equipment judges that the time interval updating optical signal corresponding is
No for very first time interval;When updating time interval corresponding to optical signal and being very first time interval, it is seen that optical transport sets
Whether it it is the second time interval or the 3rd time for the time interval updating optical signal corresponding after judging very first time interval
Interval;And when updating time interval corresponding to optical signal and being the second time interval, it is seen that optical transmission device will update
It is 0 that optical signal is decoded as digital signal, when updating time interval corresponding to optical signal and being three time intervals, it is seen that
It is 1 that renewal optical signal is decoded as digital signal by optical transmission device, wherein, and very first time interval, the second time interval
It is different time intervals with the 3rd time interval.
Further, the length at very first time interval is respectively greater than the second time interval and the length of the 3rd time interval.
Further, before receiving renewal optical signal, the method also includes: transmission of visible light equipment sends to update and asks
Asking optical signal to updating device, wherein, more newly requested optical signal is the optical signal corresponding with the geocoding before renewal.
To achieve these goals, according to an aspect of the invention, it is provided the update method of another kind of geocoding.
The update method of the geocoding according to the present invention includes: the updating device of geocoding obtains address to be updated
Coding and destination address encode;Updating device generates according to destination address coding and updates optical signal, wherein, updates light letter
Number decoded instruction includes that destination address encodes;And updating device sends and updates optical signal extremely equipment to be updated, with
Make equipment to be updated, according to updating optical signal, geocoding to be updated be updated to destination address coding, wherein, treat more
New equipment is the transmission of visible light equipment corresponding with geocoding to be updated.
Further, after sending renewal optical signal extremely equipment to be updated, the method also includes: updating device receives
The checking optical signal that equipment to be updated sends, wherein, the checking decoded instruction of optical signal includes renewal of the equipment to be updated
After geocoding;It is the most consistent with destination address coding that updating device compares the geocoding after renewal;Updating device
Renewal result is determined according to comparative result;Updating device generates renewal result optical signal according to updating result, wherein, more
The new decoded instruction of result optical signal includes updating result;And updating device sends and updates result optical signal to treating more
New equipment.
Further, updating device sends and updates optical signal and include to equipment to be updated: the geocoding after updating with
When destination address coding is inconsistent, updating device sends and updates optical signal to equipment to be updated.
Further, updating device acquisition geocoding to be updated includes: updating device receives equipment to be updated and sends
More newly requested optical signal, wherein, the decoded instruction of more newly requested optical signal includes geocoding to be updated;With
And more newly requested optical signal is decoded by updating device, to obtain geocoding to be updated, updating device obtains target ground
Location coding includes: updating device obtains the destination address coding of user's input.
To achieve these goals, according to a further aspect in the invention, it is provided that the updating device of a kind of geocoding.
The updating device of the geocoding according to the present invention includes: acquiring unit, for obtaining geocoding to be updated
Encode with destination address;Control unit, is connected with acquiring unit, updates light for generating according to destination address coding
Signal, wherein, updates the decoded instruction of optical signal and includes that destination address encodes;And transmitter unit, single with control
Unit is connected, and is used for sending renewal optical signal extremely equipment to be updated, so that equipment to be updated will be treated according to updating optical signal
The geocoding updated is updated to destination address coding, and wherein, equipment to be updated is corresponding with geocoding to be updated
Transmission of visible light equipment.
Further, returning apparatus also includes: receives unit, is connected with control unit, for sending at transmitter unit
After updating optical signal extremely equipment to be updated, receive the checking optical signal that equipment to be updated sends, wherein, checking light letter
Number decoded instruction includes the geocoding after renewal of the equipment to be updated;Control unit is additionally operable to address in the updated
When encoding consistent with destination address coding, generate the renewal result being updated successfully, geocoding in the updated and target
When geocoding is inconsistent, generates and update failed renewal result, and generate renewal result according to the renewal result generated
Optical signal, wherein, updates the decoded instruction of result optical signal and includes updating result;Transmitter unit is additionally operable to send more
New result optical signal is to equipment to be updated.
Further, transmitter unit is additionally operable to when the geocoding after updating is inconsistent with destination address coding, again
Send and update optical signal to equipment to be updated.
By the present invention, use the geocoding update method comprised the following steps: transmission of visible light equipment receives address
The renewal optical signal that the updating device of coding sends, wherein, updates the decoded instruction of optical signal and includes that destination address is compiled
Code;Renewal optical signal is decoded by transmission of visible light equipment;And transmission of visible light equipment obtains according to after decoding
Geocoding is updated to destination address coding by instruction, utilizes visible ray conveying optical signal to complete the renewal of geocoding,
Without disassembling equipment to be updated, save the equipment disassembly and assembly time, reserve burning line without equipment to be updated and connect
Mouth is connected with burning line, solves and transmission of visible light equipment carries out the problem that when geocoding updates, operation is complicated,
And then it is convenient to have reached the operation when transmission of visible light equipment carries out geocoding, effect simple to operation.
Detailed description of the invention
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases
Combination mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
First the renewal system of the geocoding that this detailed description of the invention provides is introduced.
Fig. 1 is the block diagram that geocoding according to a first embodiment of the present invention updates system, the renewal system of this embodiment
For to the renewal of geocoding in transmission of visible light equipment (including receptor and emitter).As it is shown in figure 1, should
System includes PC, optical signal transmitter, transmission of visible light equipment to be updated and optical signal receiver.
PC is used for providing destination address coding, sending destination address coding to optical signal transmitter;Optical signal launch
Device updates optical signal for generating according to destination address coding, such as, destination address encoded by predetermined coded system
Be converted to optical signal obtain updating optical signal so that recipient is to obtaining destination address volume after updating optical signal decoding
Code, and send updating optical signal to transmission of visible light equipment to be updated;Transmission of visible light equipment to be updated receives
Update optical signal, renewal optical signal is decoded, after decoding, obtain destination address coding, will by the chip of self
Current geocoding be updated to destination address coding, and will update after geocoding according still further to above-mentioned predetermined coding
Mode is converted to optical signal and is verified optical signal, and then sends checking optical signal to optical signal receiver;Optical signal
The checking optical signal decoding that receptor will receive, geocoding decoding obtained returns to PC, so that PC
Complete the checking of geocoding.
It is as a example by the head lamp used in mine by transmission of visible light equipment to be updated, as in figure 2 it is shown, this system pair
The workflow that in head lamp, geocoding is updated is as follows:
1, user is to computer (PC) input destination address coding, computer provide geocoding;
2, geocoding is sent to emitter by computer;
3, geocoding and default renewal instruction are carried out coding according to default coded system and obtain light letter by emitter
Number, namely coded command, then coded command is sent to head lamp;
4, head lamp is the equipment of address to be updated, the geocoding waiting the form of expression to be received to be optical signal and preset more
Newly instructing, the time in start 30s updates the time as geocoding, if receiving geocoding at this 30s
Time, meet the update condition one of geocoding, the most again optical signal is decoded, it is judged that the coded system of optical signal
Whether it is default coded system, if coded system is default coded system, it is determined that meet geocoding more
Whether New Terms two, finally include updating instruction in judging the decoded instruction obtained, if obtain after Xie Ma
The renewal instruction that instruction includes presetting, it is determined that meet the update condition three of geocoding, determine meet all of
After update condition, head lamp carries out the renewal of geocoding;
5, head lamp generates checking optical return signal further according to the geocoding after updating and passes to receptor;
6, the checking optical signal decoding that receptor will receive, obtains the geocoding that head lamp is current, then by be updated
The current geocoding of equipment (namely head lamp) returns to computer;
7, whether computer according to destination address coding and receives the code verification coding of return and updates correct, if received
New address is identical with destination address coding, updates end of address (EOA), if it is different from destination address coding to receive new address,
Repeat the above steps 1 to step 6, until address has updated or updates the time beyond geocoding.
In the renewal system of this embodiment, visible ray conveying optical signal is utilized to complete the renewal of geocoding, in start
In 30S, geocoding is carried out coding and generates optical signal, complete transmission of visible light equipment (emitter or receptor)
The renewal of geocoding, not device for disassembling, save the equipment disassembly and assembly time, without reserved burning line
Interface is connected with burning line, it is possible to meet such as the waterproof demand of sealing of the equipment such as down-hole mine lamp, accomplish contactless more
New address information, operation is convenient, simple to operation.During additionally, use optical signal to carry out geocoding renewal, also may be used
Update multiple equipment by the way of broadcast simultaneously.
Owing to sending within the specific time with the specific optical signal updating instruction, and this optical signal is by destination address
Coding uses predetermined coded system coding to obtain, thus when geocoding updates, update mode is safe and reliable, energy
Enough avoid updating by mistake.
Function is confirmed, after confirming, by PC, the renewal fed back owing to increasing address information after having updated address
Geocoding and destination address coding the most consistent, make address renewal the most accurate.
Fig. 3 is the block diagram that geocoding according to a second embodiment of the present invention updates system, the renewal system of this embodiment
For to the renewal of geocoding in transmission of visible light equipment (including receptor and emitter).As it is shown on figure 3, should
System includes transmission of visible light equipment to be updated and the updating device of geocoding.
Updating device in this embodiment is moveable handheld device, and renewal personnel carry this device to equipment to be updated
In neighbouring certain limit, can be completed the renewal of geocoding in equipment to be updated by operation updating device.
As a example by the light fixture as optical signal transmitter is carried out address device renewal, as shown in Figure 4, light fixture to be updated
With the renewal that can complete light fixture geocoding alternately by 7 steps of the more new equipment, the tool of the workflow of this system
Body step is as it is shown in figure 5, specific as follows:
1. in the preset time period, after light fixture is opened, it is optical signal by current address code conversion, after conversion
Optical signal work, when updating device is positioned at adjacent lamp, it is possible to receive the optical signal that light fixture sends, namely lamp
Have and send light fixture address to mobile update device;
2., mobile update device receive optical signal being decoded, obtain corresponding light fixture address, and will be after decoding
To light fixture address show on screen;
3. the personnel light fixture address according to display, is updated, it would be desirable to the target address information of renewal is input to display screen;
4., updating device will need the target address information updated to be encoded to optical signal, and is sent to light fixture;
5., light fixture receive optical signal and decode, the MCU of light fixture analyzes and judges whether decoded geocoding expires
Foot update condition (for example whether the update condition one, two, three met in embodiment illustrated in fig. 2), if it is satisfied, then
Update geocoding;
6., after light fixture updated geocoding, the geocoding after updating is converted to optical signal, with by light fixture to
Mobile update device sends the new geocoding of light fixture;
7., updating device is received the new address of light fixture and is shown by display screen, and judges whether and target address information one
Causing, if unanimously, update end of address (EOA), if inconsistent, repeat the above steps 4 to step 6, until address is more
Newly complete or update the time beyond geocoding.
The renewal system that this embodiment is provided can reach the effect of Fig. 1 and embodiment illustrated in fig. 2, additionally, will more
New equipment is set to independent mobile device, and during renewal, motility is strong, and facility is more shown in operation.
Next introduces the updating device of the geocoding that this detailed description of the invention provides, any one following updating device
All can be applicable to the renewal system shown in Fig. 3.
Fig. 6 is the block diagram of geocoding updating device according to embodiments of the present invention, and this updating device can be believed by light
Number the renewal being transmitted geocoding to transmission of visible light equipment.As shown in Figure 6, this updating device includes control
Device MCU processed, input block, reception unit, display unit and transmitter unit.
Input block, as the acquiring unit for obtaining destination address coding, receives the destination address coding of user's input,
Also the geocoding to be updated of user's input can be received as the acquiring unit for obtaining geocoding to be updated.
The destination address coding of the original address that can prestore in controller MCU coding and correspondence and corresponding relation, controller
MCU can analyze the relation of geocoding that input block receives and the coding of storage, when the geocoding received with
When the original address coding that prestores is consistent, determine that user inputs is geocoding to be updated, and according to corresponding relation
Get destination address coding simultaneously, when the geocoding received is consistent with destination address coding, determine that user is defeated
Enter is destination address coding.
When getting destination address coding by input block, geocoding to be updated can be obtained by receiving unit,
Alternatively, receive unit and receive the more newly requested optical signal that equipment to be updated sends, after the decoding of this more newly requested optical signal
Instruction include the geocoding before renewal of the equipment to be updated, the geocoding before equipment the most to be updated will update is carried out
The more newly requested optical signal that coding obtains, it is also possible to including updating request instruction, controller MCU is by more newly requested light
Signal is decoded as destination address coding.
Updating device gets geocoding to be updated and destination address coding, destination address is compiled by transmitter unit
Code sends the transmission of visible light equipment that geocoding the most to be updated is corresponding.Specifically, control unit is according to destination address
Coding generates and updates optical signal, and the instruction obtained after the decoding of this renewal optical signal includes that destination address encodes, and needs explanation
, the optical signal that updates at this can be that after only being encoded by destination address, the optical signal that obtains forms, it is also possible to by mesh
The optical signal composition obtained after mark geocoding and renewal instruction encoding, transmitter unit can include controlling part and light fixture portion
Point, control part control light fixture part luminous according to updating optical signal, thus renewal optical signal is sent and sets to be updated
Standby, and then make equipment to be updated, according to updating optical signal, geocoding to be updated be updated to destination address coding, complete
Become the renewal of geocoding.
By the updating device of this embodiment, visible ray conveying optical signal is utilized to complete the renewal of geocoding, it is not necessary to tear open
Solve equipment to be updated, save the equipment disassembly and assembly time, reserve burning line interface and burning without equipment to be updated
Record line is connected, it is possible to meets such as the waterproof demand of sealing of the equipment such as down-hole mine lamp, accomplishes that contactless renewal address is believed
Breath, operation is convenient, simple to operation.
Preferably, equipment to be updated, after completing address and updating, generates checking light letter according to the geocoding after updating
Number, the instruction obtained after the decoding of this checking optical signal includes the geocoding after updating, it is possible to include that the checking preset refers to
Order, is back to updating device by checking optical signal.The unit that receives of updating device receives the checking that equipment to be updated sends
Optical signal, control unit be additionally operable to by checking optical signal decode, the geocoding after being updated, and judge renewal after
Geocoding and destination address coding the most consistent, when geocoding in the updated encodes consistent with destination address,
Generate the renewal result being updated successfully, when geocoding in the updated is inconsistent with destination address coding, generates and update
Failed renewal result, and generate renewal result optical signal according to updating result, after the decoding of this renewal result optical signal
To instruction include updating result, transmitter unit is additionally operable to send and updates result optical signal to equipment to be updated.
After equipment to be updated receives renewal result optical signal, decoding obtains updating result, when decoded renewal result
When updating unsuccessfully, it is made whether to meet the analysis of geocoding update condition when again receiving new optical signal, works as solution
When being updated successfully of renewal result after Ma, then directly decode when receiving new optical signal as instructing, perform corresponding
Operation.
Use this preferred embodiment, confirm function owing to increasing address information after having updated address, after updating
Geocoding feeds back, and makes address update the most accurate.
It is further preferred that when updating unsuccessfully, control unit controls light fixture and continues to send renewal optical signal to the most to be updated
Equipment, until the geocoding after the renewal of feedback is consistent with destination address coding.
Display unit therein, for the display of geocoding, encodes and to be updated including to the destination address got
The display of geocoding, also includes the display to the geocoding after the renewal fed back.
By arranging display unit, geocoding is shown, be beneficial to update human users and update so that geocoding
Renewal process more directly perceived.
Finally introduce the update method of the geocoding that this detailed description of the invention provides, below the embodiment of the present invention is carried
The update method of the geocoding of confession is introduced.It should be noted that the embodiment of the present invention geocoding more
New method can be performed by the updating device of the geocoding that the embodiment of the present invention is provided, the embodiment of the present invention
The updating device of geocoding can be used for performing the update method of the geocoding that the embodiment of the present invention is provided.
Fig. 7 is the flow chart of geocoding update method according to a first embodiment of the present invention, as it is shown in fig. 7, the party
Method includes that steps S102 is to step S106.
Step S102: the renewal optical signal that the updating device of transmission of visible light equipment reception geocoding sends, wherein,
Update the decoded instruction of optical signal and include that destination address encodes.
After the updating device of geocoding gets geocoding to be updated and destination address coding, generate and target ground
The optical signal (renewal optical signal) that location coding is corresponding, such as by destination address coding according to default coded system coding
For optical signal, this optical signal is the visible light signal according to prefixed time interval flicker, and is sent to treat by this optical signal
Transmission of visible light equipment corresponding to geocoding updated.
Step S104: renewal optical signal is decoded by transmission of visible light equipment.
Step S106: geocoding is updated to destination address according to the instruction obtained after decoding and compiles by transmission of visible light equipment
Code.
After transmission of visible light equipment receives renewal optical signal, optical signal is decoded, is instructed (bag accordingly
Include destination address coding), and according to this instruction, geocoding to be updated is updated to destination address coding, complete over the ground
The renewal of matter coding.
By the update method of this embodiment, visible ray conveying optical signal is utilized to complete the renewal of geocoding, it is not necessary to tear open
Solve equipment to be updated, save the equipment disassembly and assembly time, reserve burning line interface and burning without equipment to be updated
Record line is connected, it is possible to meets such as the waterproof demand of sealing of the equipment such as down-hole mine lamp, accomplishes that contactless renewal address is believed
Breath, operation is convenient, simple to operation.
Fig. 8 is the flow chart of geocoding update method according to a second embodiment of the present invention, as shown in Figure 8, the party
Method includes that steps S202 is to step S222.
Step S202: launch the optical signal that current address coding is corresponding during transmission of visible light device power-up.
Step S204: optical signal, when receiving this optical signal, is decoded by updating device, and judge decoding after
To coding whether be up-to-date geocoding, when decoding after obtain be encoded to up-to-date geocoding, updating device
It is left intact, when the coding obtained after decoding is not up-to-date geocoding, then performs step S206.
Step S206: updating device obtains and solves the up-to-date geocoding that decoding post-encoding is corresponding, and is pressed by up-to-date geocoding
It is encoded to optical signal according to default coded system and is sent to transmission of visible light equipment.
When after decoding, the coding that obtains is not up-to-date geocoding, updating device using the optical signal that receives as more
Newly requested optical signal, responds this more newly requested optical signal by updating optical signal, transmission of visible light equipment is carried out address
The renewal of coding, wherein, updates optical signal namely up-to-date geocoding and encodes the light obtained according to default coded system
Signal, namely the optical signal that destination address coding is corresponding.
Step S208: after transmission of visible light equipment receives renewal optical signal, is decoded updating optical signal, and sentences
The disconnected condition whether meeting address renewal.
Specifically can be judged by such a way:
Mode one: when being only to perform to update in special time period by the condition setting updated, it is seen that optical transmission device is sentenced
Whether disconnecting receives the time of renewal optical signal and the difference of the available machine time of transmission of visible light equipment at default time difference model
Within enclosing, such as, Preset Time difference scope is set to 30s, when receiving the time and available machine time updating optical signal
Difference within 30s time, it is seen that geocoding is updated to target ground according to the instruction that obtains after decoding by optical transmission device
Location encodes, and is not updated.
Mode two: when being only to perform when meeting predetermined coded system to update by the condition setting of renewal, it is seen that light passes
Transfer device judges that the coded system updating optical signal is the most consistent with the coded system preset, when the coding updating optical signal
When mode is consistent with the coded system preset, it is seen that optical transmission device is according to the instruction obtained after decoding by geocoding more
Newly encode for destination address.
Preferably, updating optical signal is the optical signal that visible ray produces according to prefixed time interval flicker, long by difference
The time interval of degree completes the coding of geocoding, and predetermined coded system can use such as Fig. 9 (a) to Fig. 9 (c) institute
The coded system shown, wherein, Fig. 9 (a) is to update the instructional waveform schematic diagram that in optical signal, guidance code is corresponding, should
Guidance code is set to update the identification information of optical signal, when the time interval of twice flicker of optical signal is 102us, really
This optical signal fixed is for updating optical signal.Fig. 9 (b) is for updating the instructional waveform that in optical signal, digital signal " 0 " is corresponding
Schematic diagram, when the time interval of twice flicker of optical signal is 22us, determines the digital signal that the optical signal at this is corresponding
It is 0.Fig. 9 (c) is for updating the instructional waveform schematic diagram that digital signal " 1 " is corresponding in optical signal, when optical signal twice
When the time interval of flicker is 32us, determine that the digital signal that the optical signal at this is corresponding is 1.
Use the instructional waveform signal updating optical signal that above-mentioned coded system obtains after encoding destination address
Figure is as shown in Figure 10, it is seen that optical transmission device, after receiving renewal optical signal, uses aforesaid way two to carry out address more
During the judgement of New Terms, use following judgement step: transmission of visible light equipment judges to update corresponding multiple of optical signal
Whether time interval includes that the very first time is spaced, namely the MCU of visible ray equipment by calculate every 2 trailing edges it
Between time interval obtain multiple time interval, it is judged that whether each time interval is spaced equal to the very first time, at this
Very first time interval may be configured as 102us, when existence is spaced apart 92us-112us sometime, it is seen that optical transport sets
Consistent with the coded system preset for the coded system determining optical signal, namely meet the condition that address receives, and will
This very first time is spaced as guidance code, is decoded the signal after guidance code, obtains updating the text of optical signal,
Namely geocoding.
Mode three: updating optical signal is to obtain after the renewal instruction being encoded by destination address and presetting is separately encoded conversion
Optical signal, namely update the decoded instruction of optical signal and include that destination address encode, also include that the renewal preset instructs.
It is only when the decoded instruction of optical signal includes that the renewal instruction preset performs to update by the condition setting of renewal, can
See optical transmission device to judge in the decoded instruction of optical signal received and whether include that the renewal preset instructs, when light is believed
When number including the renewal instruction preset, it is seen that geocoding is updated by optical transmission device according to the instruction obtained after decoding
Encode for destination address.
Such as, renewal instruction is set to " 5A ", it is seen that after optical transmission device decoding is instructed, it is judged that Fun position is
No it is " 5A ", when the Fun position received is " and 5A " time, perform to update the operation of address, the most do not do address more
New operation.
Step S210: when this renewal optical signal meets the condition that address updates, it is seen that after optical transmission device is according to decoding
Current geocoding is updated to destination address coding by the instruction obtained.
When signal after guidance code is decoded, following decoding process can be used:
After receiving guidance code, enter the reception state updating optical signal text, it is seen that the MCU of optical transmission device
Whether the time interval updating optical signal corresponding after judging guidance code is the second time interval or the 3rd time interval, should
Second time interval is set to 22us by place, is that momentary intervals is set to 32us, namely transmission of visible light equipment by the 3rd
MCU judge that the digital signal that optical signal represents is " 0 " or " 1 " by calculating the time between 2 trailing edges,
When updating time interval corresponding to optical signal and being 22us, it is seen that renewal optical signal is decoded as numeral letter by optical transmission device
Number it is 0, when updating time interval corresponding to optical signal and being 32us, it is seen that optical transmission device will update optical signal decoding
It is 1 for digital signal.
First, second, and third above-mentioned time interval is theoretical value, for the fault-tolerant energy during guarantee actual transmissions
Power, is a time range rather than a time value by the definition of each time interval, such as, will be spaced the very first time
It is defined as 92us~112us, as long as then updating multiple time intervals corresponding to optical signal to include appointing in 92us~112us
Anticipate a time interval, just can be identified as meeting address update condition;Second time interval is defined as 15us~27us,
Then updating in the time interval that optical signal is corresponding is any one time interval in 15us~27us, and just decodable code is number
Word signal is 0;3rd time interval is defined as 27us~40us, then the time interval that renewal optical signal is corresponding is
Any one time interval in 27us~40us, just decodable code be digital signal be 1.
Obtain destination address by the instruction of decoded digital signal to encode, thus the MCU root of transmission of visible light equipment
It is updated according to destination address coding.
Step S212: after transmission of visible light equipment carries out geocoding renewal, raw according to the geocoding after updating
Becoming checking optical signal, this decoded instruction of checking optical signal includes the geocoding after updating, it is possible to include that checking refers to
Order.
Step S214: transmission of visible light equipment sends checking optical signal to updating device.
Step S216: checking optical signal is decoded by updating device, the geocoding after being updated.
Step S218: updating device determines renewal result according to the geocoding after destination address coding and renewal.
When geocoding in the updated is consistent with destination address coding, generate the renewal result being updated successfully, updating
After geocoding and destination address coding inconsistent time, generate and update failed renewal result.
Step S220: renewal result is converted to update result optical signal and sends to visible ray equipment by updating device, wherein,
When geocoding in the updated is inconsistent with destination address coding, returns step S206 and re-execute.
Step S222: transmission of visible light equipment is decoded as updating result after receiving renewal result optical signal.
When the renewal failure of decoded renewal result, then when receiving new optical signal, it is made whether that meeting address compiles
The analysis of code update condition, when when being updated successfully of decoded renewal result, then receives during new optical signal direct
It is decoded as instruction, performs corresponding operation.
As can be seen from the above description, present invention achieves following technique effect: utilize visible ray conveying light letter
Number complete the renewal of geocoding, it is not necessary to disassemble equipment to be updated, save the equipment disassembly and assembly time, without
Equipment to be updated is reserved burning line interface and is connected with burning line, it is possible to meet the sealing such as equipment such as down-hole mine lamps waterproof
Demand, accomplishes contactless renewal address information, and operation is convenient, simple to operation.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made
Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.