Utility model content
In order to overcome above-mentioned defect, the utility model aims to provide a kind of system that can carry out to visible ray receiving terminal the off line burning of lastest imformation without line.
According to one side of the present utility model, a kind of off line programming system for visible ray receiving terminal is provided, this off line programming system comprises: lastest imformation burning terminal and visible ray receiving terminal.This lastest imformation burning terminal comprises: the first micro-control unit MCU; The the first VISIBLE LIGHT EMISSION unit being coupled with a MCU, for visible ray form transmitting lastest imformation; And the first visible ray receiving element being coupled with a MCU, for receiving the communications status feedback of visible ray form.This visible ray receiving terminal comprises: the 2nd MCU; The the second visible ray receiving element being coupled with the 2nd MCU, for receiving the lastest imformation of visible ray form; And the second VISIBLE LIGHT EMISSION unit being coupled with the 2nd MCU, for visible ray form transmitting communications status feedback information.
In one example, this burning program terminal also comprises the interface being coupled with a MCU, and this interface is for down loading updating information.
In one example, this lastest imformation burning terminal also comprises that the first lastest imformation storage unit being coupled with a MCU is for storing the lastest imformation of downloading.
In one example, this burning program terminal also comprises state indication unit, is used to indicate the communications status of this visible ray receiving terminal to this lastest imformation burning terminal feedback.
In one example, this visible ray receiving terminal also comprises that the second program storage unit (PSU) being coupled with the 2nd MCU is for storing received program.
In one example, this first VISIBLE LIGHT EMISSION unit comprises: the first driver element being coupled with a MCU; And the first luminescence unit being coupled with this first driver element, this first luminescence unit is for visible ray form transmitting lastest imformation, and described the first driver element is used to described the first luminescence unit that drive current is provided.
In one example, this second VISIBLE LIGHT EMISSION unit comprises: the second driver element being coupled with the 2nd MCU; And the second luminescence unit being coupled with this second driver element, this second luminescence unit is for visible ray form transmitting communications status feedback information, and described the first driver element is used to described the first luminescence unit that drive current is provided.
In one example, this first luminescence unit and this second luminescence unit are light emitting diode.
In one example, this second visible ray receiving element comprises: the second photodetector unit, for receiving the program of visible ray form and the visible ray of receiving being carried out to opto-electronic conversion; And secondary signal amplifier, for amplifying the electric signal that obtains of opto-electronic conversion and the electric signal after amplifying being input to the 2nd MCU, with decoding, obtain this program.
In one example, this visible ray feedback receiving element comprises: the first photodetector unit, for receiving the communications status feedback of visible ray form and the visible ray of receiving being carried out to opto-electronic conversion; And first signal amplifier, for amplifying the electric signal that obtains of opto-electronic conversion and the electric signal after amplifying being input to a MCU, with decoding, obtain the communications status being fed back.
The utility model provides a kind of off line programming system, wherein visible ray receiving terminal has been provided VISIBLE LIGHT EMISSION function, and burning program terminal has been provided visible ray receiving function, thereby visible ray receiving terminal can be carried out two-way communication to complete off line (that is, the wireless) burning of program with burning program terminal.Than traditional wired upgrading mode with data line connection visible ray receiving terminal and host computer, scheme of the present utility model has been simplified the upgrading for visible ray receiving terminal greatly.
Embodiment
Below in conjunction with the drawings and specific embodiments, the utility model 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 domain of the present utility model to carry out any restriction.
In communication system, each terminal is that MCU runs software program is carried out corresponding function by micro-control unit.Conventionally, the process that the program that MCU will be moved is downloaded to the program storage unit (PSU) of MCU of target terminal from host computer is called as burning program.Target terminal moves stored program by MCU can complete upgrading.Depend on the concrete model of MCU and the host-host protocol being associated, complete the burning program from host computer toward target terminal MCU, need feedback of the shaking hands of host computer and target receiving terminal, status information etc. action, thereby need two-way communication.At present, in visible light communication system, adopt wired connection to carry out this two-way communication of visible ray receiving terminal and host computer, complete burning program.Obviously, this wired burning program mode bothers very much.Given this, the utility model provides a kind of off line programming system, wherein visible ray receiving terminal has been provided VISIBLE LIGHT EMISSION function, and lastest imformation burning terminal has been provided visible ray receiving function, thereby visible ray receiving terminal can be carried out two-way communication to complete off line (that is, the wireless) burning of program with lastest imformation burning terminal.Be understandable that, lastest imformation burning terminal of the present utility model can also be used for other the required lastest imformation of visible ray receiving terminal of burning, as various parameters etc., with embodiment of the present utility model, is not limited.In following embodiment, lastest imformation burning terminal and lastest imformation storage unit be respectively take burning program terminal 100 and program storage unit (PSU) 104 as example, take burning program, describes as example as ROMPaq.
Fig. 1 shows according to the block diagram of the burning program terminal 100 of one side of the present utility model.Burning program terminal 100 is used to as visible ray receiving terminal carries out off line program burning, As described in detail below.Burning program terminal 100 comprises micro-control unit (MCU) 102 and program storage unit (PSU) 104 associated with it.MCU102 also can be called as single-chip microcomputer, is the chip-scale computing machine that processor, RAM, ROM, timer conter and multiple I/O Interface integration are formed on a slice chip, for different application scenarios, does various combination control.In burning program terminal, MCU102 is responsible for the operation of control program burning terminal 100.Program storage unit (PSU) 104 is for storing the program that will be burnt to target terminal, and this program storage unit (PSU) 104 can be any suitable storer.Burning program terminal 100 can comprise external interface 114, thereby can communicate by letter to download through a cable data with host computer by this external interface 114.The program of downloading can be stored in program storage unit (PSU) 104, in order to it being carried out to off line burning in the time will upgrading visible ray receiving terminal.External interface 114 can be any suitable interfaces such as USB interface, jtag interface.Certainly, also can from host computer, obtain routine data by wireless form, as passed through the data transfer modes such as wifi, bluetooth.The host computer of present embodiment refers to the computing machine that can directly send manipulation order, and it can be the equipment such as computing machine, server, and can have state indication unit, to indicate transmission state as transmitted, transmit that time-out, interruption transmit, are transmitted etc.
Burning program terminal 100 can comprise with MCU102 be coupled for the VISIBLE LIGHT EMISSION unit with visible ray form launching procedure.In one example, VISIBLE LIGHT EMISSION unit can comprise driver element 106 and luminescence unit 108, as shown in Figure 1.When needs carry out burning to target terminal, MCU102 can take out routine data and encode from program storage unit (PSU) 104, and the routine data after coding is delivered to driver element 106.Driver element 106 connects MCU102 and luminescence unit 108, is used to luminescence unit 108 to provide sufficiently high drive current to launch the routine data of visible light signal form in the mode that drives luminescence unit 108 to launch by high frequency flicker.Luminescence unit 108 can be light emitting diode (LED).
Burning program terminal 100 also can comprise the visible ray feedback receiving element feeding back for receiving the communications status of visible ray form being coupled with MCU102.In one example, visible ray feedback receiving element can comprise photodetector unit 112 and signal amplifier 110, as shown in Figure 1.Photodetector unit 112 can consist of optical device such as photodiode or photoresistance.Photodetector unit 112 can receive visible light signal and the light signal of receiving is carried out to opto-electronic conversion, to obtain electric signal.This electric signal is imported into signal amplifier 110 and carries out voltage transitions and amplification.Signal after amplification is imported into MCU102 to carry out demodulation and obtains Transistor-Transistor Logic level signal, and makes corresponding decoding to obtain the communications status data of target terminal feedback.Although signal demodulation code function is described to be completed by MCU102 in this article, those skilled in the art understand, also can comprise that independently detuner and demoder are carried out above-mentioned demodulation code function.Burning program terminal 100 also can comprise the state indication unit 124 that is used to indicate the communications status that visible ray receiving terminal feeds back to burning program terminal 100.State indication unit 124 can be LED, hummer, display screen etc.
Burning program terminal 100 also can comprise the power supply 116 that is used to its all component that electric power is provided.Power supply 116 can comprise battery, is used to the charging module of battery charging and is used to battery that the battery protection module of overvoltage protection and Cross prevention is provided.In addition, power supply 116 also can comprise voltage transformation module, to can be converted to the required various operating voltage of each assembly, and Voltage stabilizing module is to arrive a certain magnitude of voltage by the voltage stabilization of battery output.In addition, burning program terminal 100 also can comprise that switch 118 is using the power supply breaking device as burning program terminal.When pressing switch 118, power supply 116 is communicated with, and burning program terminal 100 is started working, and trip switch 118 connects and disconnects.
More preferably, burning program terminal 100 also can comprise the security that fingerprint sensor 122 and finger prints processing unit 120 are used to strengthen burning program terminal 100, guarantees to only have typing fingerprint person could use this burning program terminal 100 to carry out target receiving terminal program to download or program upgrade.Particularly, fingerprint sensor 122, for identifying user's fingerprint, is identified fingerprint while comprising typing fingerprint and normal use.Finger prints processing unit 120 is for reading user's fingerprint image, and carry out the processing of image, if the typing in advance of user's fingerprint is in finger prints processing unit 120, when this user uses, finger prints processing unit 120 sends correct finger prints processing instruction to MCU102, otherwise sends the instruction of wrong identification.
Fig. 2 shows according to the block diagram of the visible ray receiving terminal 200 of one side of the present utility model.Visible ray receiving terminal 200 can comprise MCU202 and program storage unit (PSU) 204 associated with it.MCU202 moves the program being stored in program storage unit (PSU) 204 to carry out corresponding function, for example photon lock function in photon gate control system.For visible ray receiving terminal 200 is upgraded, need to upgrade to burning in program storage unit (PSU) 204 program software of version.
Visible ray receiving terminal 200 can comprise with MCU202 be coupled for receiving the visible ray program receiving element of ROMPaq of visible ray form.In one example, this visible ray program receiving element can comprise photodetector unit 212 and signal amplifier 210, as shown in Figure 2.Photodetector unit 212 can receive the routine data of visible light signal form, and the light signal of receiving is carried out to opto-electronic conversion, to obtain electric signal.This electric signal is imported into signal amplifier 210 and carries out voltage transitions and amplification.Signal after amplification is imported into MCU202 to carry out demodulation and obtains Transistor-Transistor Logic level signal, and makes the ROMPaq data that corresponding decoding is sent to obtain burning program terminal.Although signal demodulation code function is described to be completed by MCU202 in this article, those skilled in the art understand, also can comprise that independently detuner and demoder are carried out above-mentioned demodulation code function.
For can two-way communication to carry out burning program, visible ray receiving terminal 200 also can comprise with MCU202 be coupled for the visible ray feedback transmitter unit with visible ray form transmitting communications status feedback.In one example, this visible ray feedback transmitter unit can comprise luminescence unit 208 and driver element 206.MCU202 can encode to the data that will feed back in communication process, and the data after coding are delivered to driver element 206.Driver element 206 connects MCU202 and luminescence unit 208, is used to luminescence unit 208 to provide sufficiently high drive current in the mode that drives luminescence unit 208 to launch by high frequency flicker, to launch the feedback data of visible light signal form.Luminescence unit 208 can be light emitting diode (LED).
Visible ray receiving terminal 200 can comprise the power supply 216 that is used to its all component that electric power is provided.Similarly, power supply 216 also can comprise battery, charging module, battery protection module, voltage transformation module, Voltage stabilizing module etc.Visible ray receiving terminal 200 also can comprise that external interface 214 reports for data.External interface 214 also can provide charging inlet function.
Fig. 3 shows the off line programming system 300 for visible ray receiving terminal according to one side of the present utility model.This off line programming system 300 can comprise as the burning program terminal 100 described in Fig. 1 with as the visible ray receiving terminal 200 described in Fig. 2.Below in conjunction with the concise and to the point process of utilizing burning program terminal 100 to carry out off line burning to visible ray receiving terminal 200 of describing of Fig. 3.
First, open the switch 118 of burning program terminal 100, power supply 116 powers on, for whole burning program terminal 100 provides electric power.Burning program terminal 100 can connect host computer 124 by external interface 114, thereby downloads the target program that will be burnt to visible ray receiving terminal 200 from host computer 124.Here, host computer 124 can be the equipment that computer etc. provides ROMPaq.The program of downloading from host computer 124 is stored in program storage unit (PSU) 104 to treat burning.Then, user's off line burning to visible ray receiving terminal 200 with start program of can giving an order.As those skilled in the clear, this to start burning order can be to send by the burning program switch (not shown) in burning program terminal 100.And, more preferably, can send after this order, need user to input fingerprint to verify that it is just when identity.
Receiving after burning program order, MCU102 takes out the ROMPaq for the treatment of burning from program storage unit (PSU) 104, these ROMPaq data is encoded, and encoded ROMPaq data are delivered to driver element 106.Driver element 106 drives luminescence unit 108 with visible ray form, to launch encoded ROMPaq data in the mode by high frequency flicker.This visible light signal is detected by the photodetector unit 212 of visible ray receiving terminal 200, and this light signal is carried out to opto-electronic conversion to obtain electric signal.This electric signal is imported into signal amplifier 210 and carries out voltage transitions and amplification.Signal after amplification is imported into MCU202 and carries out demodulation code, the ROMPaq of launching to obtain burning program terminal 100, and the ROMPaq obtaining is stored in program storage unit (PSU) 204.In the process of reception ROMPaq, visible ray receiving terminal 200 is constantly launched communications status feedback to burning program terminal 100.Particularly, the communications status data that MCU202 will feed back are encoded, and encoded communications status data are delivered to driver element 206, by the latter, drive luminescence unit 208 to feed back with the form transmitting communications status of visible light signal.This visible light signal is detected by the photodetector unit 112 of burning program terminal 100, and this light signal is carried out to opto-electronic conversion to obtain electric signal.This electric signal is sent to signal amplifier 110 and amplifies to carry out voltage transitions and signal.Signal after amplification is sent to MCU102 and carries out the communications status that demodulation code is fed back to obtain visible ray receiving terminal 200.
In addition, although do not describe in detail, according to relevant burning agreement, before program transmits, burning program terminal 100 and visible ray receiving terminal 200 need to carry out handshake procedure, for example, first transmit and receive a frame test data, test baud rate etc.Complete after test, starting formal program transmission.In this whole process, the state indication unit 124 of burning program terminal 100 can be indicated the communications status feeding back from visible ray receiving terminal 200, for example by LED, LCDs etc., show connect, receive the first frame test data, download in, the feedback information such as download successfully.
As from the foregoing, in burning program process, burning program terminal 100 and visible ray receiving terminal 200 need to carry out two-way communication to complete burning.In the utility model, visible ray receiving terminal has been provided VISIBLE LIGHT EMISSION function, and burning program terminal has been provided visible ray receiving function, thereby visible ray receiving terminal can be carried out two-way communication to complete off line (that is, the wireless) burning of ROMPaq with burning program terminal.
Those skilled in the art will understand, and various illustrative logic plates, module, circuit and the algorithm steps in conjunction with embodiment disclosed herein, described 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 utility model.
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.
Description before providing is in order to make any technician in this area all can put into practice various aspects described herein.But should be appreciated that, protection domain of the present utility model should be as the criterion with claims, and should not be defined to concrete structure and the assembly of above explained orally embodiment.Those skilled in the art, in spirit and scope of the present utility model, can carry out various variations and modification to each embodiment, within these variations and modification also drop on protection domain of the present utility model.