A non-contact programming method and programmer

By employing a non-contact programming method that combines optical signal communication and electro-optical-electro-electrical signal conversion, the problem of software upgrades for rugged devices has been solved, enabling non-destructive and low-cost device upgrades and supporting programming upgrades for a variety of devices.

CN114371854BActive Publication Date: 2025-11-14SHENZHEN YIRI TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111645829.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-11-14
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

Existing technologies make it difficult to perform software upgrades without damaging the structure of rugged devices, and wireless upgrade methods are costly and highly susceptible to the effects of the radio frequency environment.

Method used

It adopts a contactless programming method, communicates with the device through optical signals, uses a programmer for address matching and data transmission, and combines electro-optical-electrical signal conversion to achieve contactless programming, supporting both normal and offline programming modes.

Benefits of technology

It enables software upgrades without damaging the equipment structure, reducing workload, extending equipment life, and lowering costs, while also supporting programming upgrades for multiple devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114371854B_ABST
    Figure CN114371854B_ABST
Patent Text Reader

Abstract

This invention provides a non-contact programming method and programmer, belonging to the field of programming technology. The non-contact programming method of this invention includes the following steps: S1: The programmer communicates with the device to be programmed via optical signals and performs address matching with the device; S2: After successful matching, the programmer converts the programming information into a format and then sends it to the device to be programmed via optical signals; S3: When a successful programming completion code is received, programming is complete. This invention also provides a programmer for implementing the aforementioned non-contact programming method. The beneficial effect of this invention is that it enables non-destructive, non-contact programming without damaging the overall structure of the rugged device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a programming technology, and more particularly to a non-contact programming method and the programmer used therein. Background Technology

[0002] Currently, most devices undergo software upgrades via contact, which generally meets the requirements for devices with low ruggedness requirements. However, some products are strictly rugged devices and cannot be upgraded by opening the device itself.

[0003] Currently, the main wireless upgrade methods on the market are through various specific wireless transmission protocols, such as WIFI, Bluetooth, LoRa, and ZigBee. However, in addition to the device itself having relevant functional modules, these upgrade methods also require the installation of various base stations, which increases the cost significantly. Furthermore, they are greatly affected by the external radio frequency environment. Summary of the Invention

[0004] To address the problems in the prior art, this invention provides a non-contact programming method and a programmer for implementing the non-contact programming method, enabling mine-use fire protection equipment to undergo software updates without damaging its fire protection structure.

[0005] The non-contact programming method of the present invention includes the following steps:

[0006] S1: The programmer communicates with the device to be programmed via optical signals and performs address matching with the device;

[0007] S2: After a successful match, the programmer converts the programming information into a new format and then sends it to the device that needs to be programmed via an optical signal.

[0008] S3: When the end code indicating successful burning is received, the burning process is complete.

[0009] The present invention is further improved in that the programmer includes a normal working mode and an offline programming mode. In the normal working mode, the host computer sends commands to the programmer to control the data transmission of programming information and the programming process. In the offline programming mode, the data transmission of programming information and the programming process are controlled by buttons.

[0010] In a further improvement to this invention, the method for non-contact programming of the device to be programmed via a host computer and programmer in normal working mode is as follows:

[0011] A1: The programmer receives commands from the host computer through the interface. At the same time, it converts the address confirmation data into an optical signal through the electro-optical conversion module and transmits it to the device that needs to be programmed.

[0012] A2: After receiving the optical signal, the device converts the optical signal into an electrical signal. After confirming that the data format is correct, it sends an acknowledgment code back to the programmer via the optical signal.

[0013] A3: After receiving the confirmation code, the programmer compares the data. If there is no error, it sends a matching success command back to the host computer connected through the interface, indicating that the address match is correct.

[0014] A4: After the address is confirmed, a download command is sent through the host computer, and the data stream is transmitted to the programmer via the USB interface;

[0015] A5: The programmer converts the programming information into a corresponding optical signal and sends it out, then waits for the device to receive the data;

[0016] A6: After successful burning, the device will return an end code to confirm that burning has been completed and the process is finished. If burning is unsuccessful, it will return an incomplete command code and return to step A4 to download again on the PC.

[0017] In a further improvement to this invention, in step A2, the confirmation code includes the device FLASH address, frequency, and memory size. In step A4, if the address confirmation fails, the programmer will send a confirmation failure instruction back to the host computer, and the host computer will display the compiler connection failure information.

[0018] The present invention makes another improvement: in offline programming mode, the method for performing non-contact programming on the device to be programmed using a programmer is as follows:

[0019] A short press of the compiler button sends a confirmation code. If the device returns the correct confirmation code, the LED on the programmer will light up and turn off in a set rhythm, indicating a successful connection. Then, a short press of the button sends data via optical signal for programming. After programming is complete, the LED on the programmer will light up and turn off in a set rhythm, confirming that programming is complete. The entire process is indicated by buttons and LEDs, and programming is completed without relying on a host computer.

[0020] The present invention also provides a programmer for implementing the aforementioned contactless programming method, comprising a housing, a circuit board disposed within the housing, the circuit board having an MCU, a wired interface connected to a host computer for receiving programming information from the host computer or supplying power to the programmer; a memory connected to the MCU for storing programming information; buttons for operating the programmer; a photoelectric conversion module for enabling communication between the programmer and the device to be programmed, for converting optical signals into electrical signals and outputting them to the MCU, and / or converting the electrical signals output by the MCU into optical signals and sending them to the communication device to be programmed; the housing having an optical chamber corresponding to the input or output terminal of the photoelectric conversion module.

[0021] The invention is further improved by including a battery and a power module disposed within the housing. The power module includes a boost unit and a voltage regulator unit. The boost unit is used to boost the battery voltage to a 5V output. The voltage regulator unit is disposed at the output end of the boost unit and is used to output a stable voltage. The wired interface is a USB interface. The power module also includes a charging unit. The input end of the charging unit is connected to the USB interface, and the output end is connected to the battery input end. It also includes a battery power detection module for detecting the battery power.

[0022] The present invention is further improved in that the photoelectric conversion module includes a separately configured photoelectric signal conversion unit and an electro-optic signal conversion unit. The photoelectric signal conversion unit is used to convert the received optical signal into an electrical signal and then output it to the MCU. The electro-optic signal conversion unit is used to convert the electrical signal output by the MCU into an optical signal and output it to the device that needs to be programmed. The optical chamber on the housing includes a mutually isolated receiving optical chamber and a transmitting optical chamber. The receiving optical chamber is configured corresponding to the photoelectric signal conversion unit, and the transmitting optical chamber is configured corresponding to the electro-optic signal conversion unit.

[0023] The present invention is further improved in that the electro-optic signal conversion unit includes three identical conversion and transmission circuits, which are used to convert and transmit reset signals, clock signals, and data signals, respectively. The conversion and transmission circuit includes a level conversion circuit, a push-pull circuit, and a MOS switch. The level conversion circuit realizes the conversion of 3V3 to 5V0 level, and its input terminal is connected to the output terminal of the MCU. The output terminal of the level conversion circuit is connected to the input terminal of the push-pull circuit, and the output terminal of the push-pull circuit is connected to the input terminal of the MOS switch circuit. The MOS switch circuit controls the on and off of the light-emitting diode, which is a laser and is connected in series with the source of the MOS switch.

[0024] The present invention is further improved in that the electro-optic signal conversion unit includes three identical receiving and conversion circuits, which are used to receive reset signals, clock signals and data signals respectively. The receiving and conversion circuit includes a photodiode, a transistor and a resistor. One end of the photodiode D5 is connected to the power supply and the other end is connected to the base of the transistor. The emitter of the transistor is grounded and the collector is connected to the output terminal and the power supply through the resistor.

[0025] Compared with existing technologies, the advantages of this invention are: by using a relatively simple method of converting between electrical signals and optical signals, it enables non-destructive and contactless programming, without damaging the overall structure of the equipment. It eliminates the disassembly and assembly steps required for contact programming, reducing the workload of relevant personnel and extending the service life of the equipment, which is expected to bring considerable economic benefits. Furthermore, this invention retains traditional programming upgrade methods, enabling multiple functions on a single machine, and allowing one programmer to program and upgrade various types of equipment. Attached Figure Description

[0026] Figure 1 This is a flowchart of the programming method of the present invention;

[0027] Figure 2 This is a schematic diagram of the programmer's structure;

[0028] Figure 3 This is a block diagram of the circuit board structure of the present invention;

[0029] Figure 4 This is a schematic diagram of the structure of an MCU, button, and LED indicator module in one embodiment;

[0030] Figure 5 This is the circuit schematic of the power module;

[0031] Figure 6 This is the circuit schematic for the battery power detection module;

[0032] Figure 7 This is the circuit schematic of the FLASH module;

[0033] Figure 8 This is the circuit schematic of the electro-optic signal conversion unit;

[0034] Figure 9 This is a schematic diagram of the optical-to-electrical signal conversion unit circuit. Detailed Implementation

[0035] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.

[0036] like Figure 1 As shown, this invention primarily addresses the challenge of software updates for mining equipment without compromising its protective structure, while also considering traditional programming methods. This invention abandons traditional microwaves and instead uses light to transmit digital signals. Through a relatively simple electrical signal-optical signal-electrical signal conversion process, it achieves a more reliable, non-destructive, and contactless programming upgrade.

[0037] This example of a contactless programming method includes the following steps:

[0038] S1: The programmer communicates with the device to be programmed via optical signals and performs address matching with the device;

[0039] S2: After a successful match, the programmer converts the programming information into a new format and then sends it to the device that needs to be programmed via an optical signal.

[0040] S3: When the end code indicating successful burning is received, the burning process is complete.

[0041] like Figure 2 As shown, the programmer implementing the contactless programming method in this example includes a housing 1, inside which is a circuit board. One end of the housing has a USB interface connected to the circuit board, and the other end has six isolated optical chambers 2 and 3. In this example, the upper three optical chambers serve as receiving chambers for three photodiodes, while the lower three optical chambers serve as emitting chambers for light-emitting diodes. This contactless programmer connects to a host computer via the USB interface to receive programming commands and information. It can also connect to other devices via the USB interface, achieving compatibility with traditional upgrade methods.

[0042] Structurally, the transmitting and receiving units are separated, with each transmitter and receiver corresponding to an independent optical chamber, eliminating physical mutual interference and greatly increasing anti-interference capability.

[0043] In this example, the upper three optical chambers and corresponding photodiodes receive the optical signals sent by the ruggedized equipment, and the lower three optical chambers send the programming information to the ruggedized equipment that needs to be programmed.

[0044] like Figure 3 As shown, the circuit board of this programmer (in the left box) includes an MCU, buttons, LED indicators, a photoelectric conversion module, and a FLASH memory, all connected to the MCU. The photoelectric conversion module converts light signals into electrical signals for output to the MCU, or converts the electrical signals output by the MCU into light signals for transmission to rugged devices.

[0045] Correspondingly, the tri-proof device on the right is equipped with a second photoelectric conversion module and a processor. The second photoelectric conversion module is configured to correspond with the photoelectric conversion module of the contactless programmer and is used for communication between the contactless programmer and the device. The processor is connected to the second photoelectric conversion module, receives the programming information from the contactless programmer, and performs upgrade operations.

[0046] like Figure 4 As shown, the MCU chip used in this example is ST's STM32F205, which is responsible for receiving programming commands sent from the PC and for the operation and scheduling of the entire programmer's functions.

[0047] In this example, the casing is equipped with a button S1 and indicator lights D7 and D8, which are connected to the MCU. The button S1 is used to operate the programmer, and the indicator lights D7 and D8 can be used to know the working status of the programmer. For example, when the programmer's power is low, one of the indicator lights will flash continuously, and when data is being transmitted, the other indicator light will remain on, etc.

[0048] The functions of the buttons can be edited. Pressing and holding the button for 5 seconds will power on the device. After powering on, the buttons will be used for offline programming, namely address confirmation and download start. The program can be set to have a two-second interval between two short presses, which will be considered as the same time and become the burning process.

[0049] like Figure 5 As shown, the casing 1 in this example also houses a battery and a power module. The programmer has two power supply methods: USB power and built-in battery power. When using the offline programming function, the programmer is powered by the battery, and the circuit board has a built-in boost circuit that boosts the battery voltage to the required voltage through the boost chip U3. When the USB is plugged in, it is powered by the USB. The programmer circuit board also includes a voltage regulator circuit with an LDO linear regulator chip U2, which converts the voltage levels to the MCU operating level and the peripheral device level.

[0050] This example also includes a charging module, and the power module further includes a charging unit. The input end of the charging unit is connected to the USB interface, and the output end is connected to the battery input end.

[0051] like Figure 6 As shown, the programmer in this example also has a built-in power detection module, which has a built-in battery power detection function. When the battery power is low, it can remind the user to charge the battery or use the online programming function by flashing an LED light.

[0052] In this example, to save energy, the MCU enable pin ADC_EN sends a level signal at set intervals, turning on transistor Q15. The gate of the MOSFET is at a low level, and the MOSFET is turned on, thus enabling the BAT_ADC pin to collect battery power information. It is turned on once at set intervals and sleeps at other times, thereby saving battery power.

[0053] like Figure 7 As shown, this example has an external FLASH memory, which can store the program in the FLASH memory in advance via a PC. When there is no PC, it can be programmed offline by being powered by the programmer's own battery.

[0054] like Figure 8 and Figure 9As shown, the photoelectric conversion module in this example includes a separately configured photoelectric signal conversion unit and an electro-optic signal conversion unit. The photoelectric signal conversion unit is used to convert the received optical signal into an electrical signal and then output it to the MCU. The electro-optic signal conversion unit is used to convert the electrical signal output by the MCU into an optical signal and output it to the device that needs to be programmed. The optical chamber on the housing includes a mutually isolated receiving optical chamber and a transmitting optical chamber. The receiving optical chamber is configured corresponding to the photoelectric signal conversion unit, and the transmitting optical chamber is configured corresponding to the electro-optic signal conversion unit.

[0055] This example of an electro-optical signal conversion unit includes three identical conversion and transmission circuits, used to convert and transmit reset signals, clock signals, and data signals, respectively. Each conversion and transmission circuit includes a level conversion circuit, a push-pull circuit, and a MOS switch. The level conversion circuit uses an NPN transistor to convert the 3V3 to 5V0 level, primarily to ensure the MOS transistor operates in its fully conductive region. Operating the MOS transistor in its variable resistance region would increase the bit error rate and reduce the communication success rate. Its input is connected to the MCU output. The output of the level conversion circuit is connected to the input of the push-pull circuit, and the output of the push-pull circuit is connected to the input of the MOS switch circuit, which controls the on / off state of the LED.

[0056] The light-emitting diode is a laser, connected in series with the source of the MOS switch.

[0057] The present invention is further improved in that the push-pull circuit includes an NPN transistor Q12 and a PNP transistor Q14 connected in series. The bases of the NPN transistor Q12 and the PNP transistor Q14 are connected to each other and connected to the output terminal of the level conversion circuit. The collector of the NPN transistor Q12 is connected to the power supply, the emitter of the PNP transistor Q14 is grounded, and the gate of the MOS switch is connected between the NPN transistor Q12 and the PNP transistor Q14 connected in series.

[0058] A push-pull circuit composed of NPN and PNP transistors is used to accelerate the switching speed of MOSFETs, increase the driving capability of the circuit, allow MOSFETs to turn on and off more quickly, and improve data transmission rates. MOSFETs have strong overcurrent capability and are used as switches in circuits to control the on / off state of lasers; they are key components for electro-optical conversion.

[0059] The electro-optic signal conversion unit in this example includes three identical receiving and conversion circuits, which are used to receive reset signals, clock signals, and data signals, respectively. The receiving and conversion circuit includes a photodiode, a transistor, and a resistor. One end of the photodiode D5 is connected to the power supply, and the other end is connected to the base of the transistor. The emitter of the transistor is grounded, and the collector is connected to the output terminal and the power supply through the resistor.

[0060] This example uses light to transmit digital signals, requiring consideration of factors such as anti-interference capability, response speed, conversion speed and efficiency, and linearity. Addressing the issues of insufficient conversion speed, inadequate emission power, and insufficient linearity in traditional photoelectric conversion, this invention optimizes the circuit design and component selection. Firstly, in component selection, infrared light emitters with poor performance are avoided. The light-emitting diode in this example is preferably a laser emitter with good directionality, monochromaticity, excellent coherence, and high emission power. Traditional small lasers operate at 3.3V, barely reaching the saturation current of the laser emitter. The laser used in this example operates at 5.0V, maximizing the laser intensity (i.e., increasing the emission power) while still achieving the saturation current. By improving and adjusting the driving circuit, using a push-pull circuit to drive the laser emitter, the switching speed of the MOSFET is significantly improved, thereby increasing the speed and efficiency of converting electrical signals into optical signals. Simultaneously, corresponding optimizations were made to linearity. Laser transmission has excellent coherence and is less susceptible to interference from other lights, resulting in excellent linearity for signal transmission.

[0061] Each transmitter and receiver corresponds to an independent optical chamber, eliminating physical interference. To address the receiver's response speed, this invention selects a highly sensitive photodiode, significantly improving the speed of optical signal to electrical signal conversion. Simultaneously, the receiving amplification section employs a collector-output circuit, ideally suited for pulsed incident light conversion, enhancing programming success rates. Given the limitations of contactless upgrades, full-duplex communication is not possible; both the programmer and the rugged device require separate transmitting and receiving modules for confirmation and handshaking during the programming process. The transmitting module, i.e., the laser driver, converts electrical signals into optical signals; the receiving module, i.e., the photodiode receiving amplification circuit, converts optical signals back into electrical signals.

[0062] Of course, in this example, besides laser light, other light sources such as ultraviolet light and visible light can also be used. Laser light has the best effect and strong anti-interference ability.

[0063] In this example, after the programming command is issued on the PC, the data stream is transmitted to the programmer via the USB port. Then, the STM32F205 chip converts the data into the corresponding format for output, such as pulse signals of different intensities and durations. After passing through an electro-optical conversion circuit, the pulse signal is converted into an optical signal, which is used to replace the electrical signal of the traditional programming cable to transmit data.

[0064] The programmed rugged device also uses three ultra-high sensitivity photodiodes to receive laser signals. The receiving principle is as follows:

[0065] Three photodiodes receive the reset signal RST, the clock signal CLK, and the data signal TMS, respectively. After receiving the laser signal, the photodiodes convert the optical signal into an electrical signal, which is then amplified before being input to the processor for further processing and programming. The device also includes a built-in laser driver circuit to send a confirmation signal back to the programmer.

[0066] The detailed working process of this invention is as follows:

[0067] The programmer converts the upgrade data received via USB into a specific data format. An electrical signal to optical signal conversion is performed in the photoelectric conversion circuit. Then, the optical signal carrying the upgrade data is converted back into an electrical signal by the device's photoelectric conversion circuit, and the device uses this data for upgrades. The programmer includes a normal working mode and an offline programming mode. In normal working mode, the host computer sends commands to the programmer to control the data transmission of programming information and the programming process. In offline programming mode, the data transmission of programming information and the programming process are controlled via buttons.

[0068] Standard work process:

[0069] After clicking "Connect" in the PC compiler, the programmer receives commands from the USB port and simultaneously converts the address confirmation data into a laser signal via the photoelectric conversion TRA module and transmits it. The device's receiving end REC module receives the laser signal, converts it into an electrical signal, and inputs it into the MCU. After the MCU confirms the data format is correct, it sends an confirmation code back to the programmer via the TRA module. This confirmation code contains the device's FLASH address, frequency, and memory size. Upon receiving the confirmation code, the programmer compares the data. If the data is correct, it sends a "match successful" command back to the PC, indicating a correct address match. If the address confirmation fails, the programmer sends a "confirmation unsuccessful" command back to the PC, and the PC compiler displays "disconnect." After address confirmation, clicking the "download" command on the PC transmits the data stream to the programmer via USB. The programmer then sends the data out via the TRA module using its own data format, waiting for the device to receive the data. Upon successful programming, the device returns an end code to confirm completion. If programming fails, it returns an "incomplete" command code, requiring a re-download on the PC.

[0070] Offline programming mode process:

[0071] Press and hold the button to power on. After powering on, press the button briefly to send a confirmation code. If the device returns the correct confirmation code, the LED on the programmer will light up and turn off according to the program's set rhythm, indicating a successful connection. Then, press the button again briefly to send data for programming. After programming is complete, the programmer's LED will light up and turn off according to the set rhythm, confirming that programming is complete. The entire process is indicated by buttons and LEDs, and programming is completed without relying on a PC.

[0072] Compared to traditional contact programming, the biggest advantage of this invention is that it enables non-destructive, contactless programming without damaging the overall structure of the equipment. It eliminates the disassembly and assembly steps required for contact programming, reducing the workload of relevant personnel and extending the equipment's lifespan, which is expected to bring significant economic benefits. Furthermore, this invention retains traditional programming upgrade methods, enabling multiple functions on a single machine, and allowing one programmer to program and upgrade various types of equipment.

[0073] The specific embodiments described above are preferred embodiments of the present invention and are not intended to limit the specific scope of the present invention. The scope of the present invention includes, but is not limited to, these specific embodiments. All equivalent changes made in accordance with the present invention are within the protection scope of the present invention.

Claims

1. A non-contact programming method, characterized in that, Includes the following steps: S1: The programmer communicates with the device to be programmed via optical signals and performs address matching with the device; S2: After a successful match, the programmer converts the programming information into a new format and then sends it to the device that needs to be programmed via an optical signal for communication. S3: The programmer receives the completion code indicating successful programming via optical signal communication, indicating programming is complete. The programmer is equipped with a receiving optical chamber and a transmitting optical chamber for communication with the device to be programmed. The programmer and the device to be programmed communicate non-contactly via optical signals, enabling non-contact programming of the device. The receiving optical chamber is correspondingly set with the optical-to-electrical signal conversion unit, and the transmitting optical chamber is correspondingly set with the electro-optical signal conversion unit. The optical-to-electrical signal conversion unit is used to convert the received optical signal into an electrical signal and then output it to the MCU. The electro-optical signal conversion unit is used to convert the electrical signal output by the MCU into an optical signal and output it to the device that needs to be programmed.

2. The non-contact programming method according to claim 1, characterized in that: The programmer includes a normal working mode and an offline programming mode. In the normal working mode, the host computer sends commands to the programmer to control the data transmission of programming information and the programming process. In the offline programming mode, the data transmission of programming information and the programming process are controlled by buttons.

3. The non-contact programming method according to claim 2, characterized in that: In normal working mode, the method for non-contact programming of the device to be programmed via a host computer and programmer is as follows: A1: The programmer receives commands from the host computer through the interface. At the same time, it converts the address confirmation data into an optical signal through the electro-optical conversion module and transmits it to the device that needs to be programmed. A2: After receiving the optical signal, the device converts the optical signal into an electrical signal. After confirming that the data format is correct, it sends an acknowledgment code back to the programmer via the optical signal. A3: After receiving the confirmation code, the programmer compares the data. If there is no error, it sends a matching success command back to the host computer connected through the interface, indicating that the address match is correct. A4: After the address is confirmed, a download command is sent through the host computer, and the data stream is transmitted to the programmer via the USB interface; A5: The programmer converts the programming information into a corresponding optical signal and sends it out, then waits for the device to receive the data; A6: After successful burning, the device will return an end code to confirm that burning has been completed and the process is finished. If burning is unsuccessful, it will return an incomplete command code and return to step A4 to download again on the PC.

4. The non-contact programming method according to claim 3, characterized in that: In step A2, the confirmation code includes the device FLASH address, frequency, and memory size. In step A4, if the address confirmation fails, the programmer will send a confirmation failure instruction back to the host computer, and the host computer will display the compiler connection failure information.

5. The non-contact programming method according to claim 2, characterized in that: In offline programming mode, the method for contactless programming of the device using a programmer is as follows: A short press of the compiler button sends a confirmation code. If the device returns the correct confirmation code, the LED on the programmer will light up and turn off in a set rhythm, indicating a successful connection. Then, a short press of the button sends data via optical signal for programming. After programming is complete, the LED on the programmer will light up and turn off in a set rhythm, confirming that programming is complete. The entire process is indicated by buttons and LEDs, and programming is completed without relying on a host computer.

6. A contactless programmer for implementing the contactless programming method according to any one of claims 1-5, characterized in that: The device includes a housing, a circuit board disposed inside the housing, the circuit board having an MCU, a wired interface for connecting to a host computer for receiving programming information from the host computer or supplying power to the programmer, and a memory connected to the MCU for storing programming information. Buttons: used to operate the programmer; photoelectric conversion module: enables communication between the programmer and the device to be programmed, used to convert optical signals into electrical signals and output them to the MCU, or / and convert the electrical signals output by the MCU into optical signals and send them to the communication device to be programmed; the housing is provided with an optical chamber corresponding to the input or output end of the photoelectric conversion module.

7. The contactless programmer according to claim 6, characterized in that: It also includes a battery and power module housed within the casing. The power module includes a boost unit and a voltage regulator unit. The boost unit is used to boost the battery voltage to 5V output. The voltage regulator unit is located at the output end of the boost unit and is used to output a stable voltage. The wired interface is a USB interface. The power module also includes a charging unit. The input end of the charging unit is connected to the USB interface, and the output end is connected to the battery input end. It also includes a battery power detection module for detecting battery power.

8. The contactless programmer according to claim 6, characterized in that: The photoelectric conversion module includes a separately configured photoelectric signal conversion unit and an electro-optic signal conversion unit, and the optical chamber on the housing includes a mutually isolated receiving optical chamber and a transmitting optical chamber.

9. The contactless programmer according to claim 8, characterized in that: The electro-optic signal conversion unit includes three identical conversion and transmission circuits, used to convert and transmit reset signals, clock signals, and data signals, respectively. Each conversion and transmission circuit includes a level conversion circuit, a push-pull circuit, and a MOS switch. The level conversion circuit converts 3V3 to 5V0 levels, and its input is connected to the MCU output. The output of the level conversion circuit is connected to the input of the push-pull circuit, and the output of the push-pull circuit is connected to the input of the MOS switch circuit. The MOS switch circuit controls the on and off of the light-emitting diode (LED), which is a laser connected in series with the source of the MOS switch.

10. The contactless programmer according to claim 8, characterized in that: The electro-optic signal conversion unit includes three identical receiving and conversion circuits, which are used to receive reset signals, clock signals, and data signals, respectively. The receiving and conversion circuit includes a photodiode, a transistor, and a resistor. One end of the photodiode D5 is connected to the power supply, and the other end is connected to the base of the transistor. The emitter of the transistor is grounded, and the collector is connected to the output terminal and the power supply through the resistor.

Citation Information

Patent Citations

  • On-line programming device, system and method supplying no power to target end

    CN103677859A

  • Burner with controllable burning voltage and communication level and control method

    CN110569045A