An electric vehicle power supply device and a programmable device for upgrading its program via a CP signal.

By utilizing the CP signal of the electric vehicle power supply equipment and the level conversion circuit of the programming equipment, the problem of needing to disassemble the casing for power supply equipment program upgrades has been solved. This enables program upgrades and data transmission error detection without disassembling the casing, improving ease of operation and communication reliability.

CN119806579BActive Publication Date: 2025-10-28CHINA AVIATION OPTICAL ELECTRICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411862290.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-10-28
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

Upgrading existing electric vehicle power supply equipment requires disassembling the casing, which is cumbersome and reduces product safety performance.

Method used

By utilizing the CP signal present in the electric vehicle power supply equipment, a programming device is connected to the power supply equipment. A level conversion circuit is used to convert the data packet level in the main control chip MCU into a level that can be recognized by the CP signal. The program is upgraded through the CP bus, and a CP detection circuit is used to detect and process data transmission errors.

Benefits of technology

This allows for program upgrades without disassembling the power supply equipment casing, simplifying the operation process and enhancing communication reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806579B_ABST
    Figure CN119806579B_ABST
Patent Text Reader

Abstract

This invention relates to an electric vehicle power supply device and a programming device for upgrading its program via a CP signal, belonging to the technical field of power supply devices. The programming device includes a first main control chip (MCU); the MCU includes a data transmission serial port for sending data packets for power supply device program upgrades, and the serial port is connected to a level conversion circuit for converting data from the MCU level to the CP level; the output of the level conversion circuit is connected to the CP port of the power supply device to send data packets to the main control chip via the CP bus. When a program upgrade is required, it is not necessary to disassemble the power supply device. The programming device is connected to the CP signal of the power supply device, and the level conversion circuit converts the level of the data packets used for program upgrades in the MCU to a level recognizable by the CP signal. The data packets are then sent to the main control chip via the CP bus to complete the program upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a power supply device for electric vehicles and a program-burning device for upgrading its program via a CP signal, belonging to the technical field of power supply devices. Background Technology

[0002] The CP signal serves as a communication bridge between the charging station and the vehicle's OBC (On-Board Charger). This is achieved through methods such as... Figure 5 The charging station's CP generation circuit allows it to exchange information with the charging vehicle, enabling monitoring and control of the charging process. By monitoring the interaction between the charging station and the new energy vehicle, including each stage such as unplugging, plugging in, charging preparation, charging start, and charging stop, the charging station can understand the vehicle's charging needs and status in real time, ensuring a smooth charging process.

[0003] When upgrading the program of an electric vehicle power supply device, since there is no reserved external programming interface on the device, it is impossible to directly program the device. The casing of the power supply device must be disassembled. As shown in Figures 1(a) and 1(b), the traditional programming interface is used. The programmer is used to program the MCU through the SWD or JTAG interface on the internal circuit board of the device. The whole process is cumbersome, and the sealing is not good after disassembly and reassembly, which reduces the safety performance of the product. Summary of the Invention

[0004] The purpose of this invention is to provide an electric vehicle power supply device and a programmable device for upgrading its program via a CP signal, thereby solving the problem that upgrading the power supply device program requires disassembling the casing.

[0005] To achieve the above objectives, the present invention includes:

[0006] The present invention discloses a programming device for upgrading the program of an electric vehicle power supply equipment via a CP signal, comprising a first main control chip MCU; the main control chip MCU includes a data transmission serial port for sending data packets for upgrading the power supply equipment program, the data transmission serial port being connected to a level conversion circuit for converting data from the main control chip MCU level to the CP level; the output of the level conversion circuit is used to connect to the CP port of the power supply equipment to send data packets to the main control chip of the power supply equipment via the CP bus.

[0007] Furthermore, the level conversion circuit includes a first operational amplifier, one input terminal of which is connected to the data transmission serial port, the other input terminal is connected to a voltage divider circuit, and the output terminal serves as the output terminal of the level conversion circuit. The voltage divider circuit is composed of a pull-up resistor connected at one end to a high level corresponding to the main control chip MCU and a pull-down resistor grounded at the other end, connected in series. The first operational amplifier is connected between the pull-up resistor and the pull-down resistor.

[0008] Furthermore, it also includes a CP detection circuit for converting the CP level into a level that the main control chip MCU can recognize; the main control chip MCU also includes a logic receiving serial port for receiving the output signal of the CP detection circuit; the input terminal of the CP detection circuit is used to connect to the CP port of the power supply device; the CP detection circuit is used to determine whether the data packet received by the power supply device has an error based on the first preset signal and the second preset signal output by the power supply device through its CP port.

[0009] Furthermore, the CP detection circuit includes a third operational amplifier for signal conversion; one input terminal of the third operational amplifier serves as the input terminal of the CP detection circuit, the other input terminal is connected to a voltage divider circuit, and the output terminal serves as the output terminal of the CP detection circuit; the voltage divider circuit is composed of a pull-up resistor connected at one end to a high level corresponding to the main control chip MCU and a pull-down resistor grounded at the other end, and the third operational amplifier is connected between the pull-up resistor and the pull-down resistor.

[0010] The beneficial effects of this invention are as follows: when it is necessary to upgrade the program of the power supply equipment, it is not necessary to disassemble the casing of the power supply equipment. The CP signal of the power supply equipment is connected through the programming device, and the level conversion circuit is used to convert the level of the data packet used in the main control chip MCU for upgrading the program of the power supply equipment into a level that the CP signal can recognize. The data packet is sent to the main control chip of the power supply equipment through the CP bus to complete the program upgrade of the power supply equipment.

[0011] The present invention provides an electric vehicle power supply device, including a main control chip MCU; the main control chip MCU includes a data receiving serial port for receiving data packets for power supply device program upgrades, the data receiving serial port being connected to a CP sampling circuit for converting CP level signals into level signals recognizable by the first main control chip MCU; the receiving end of the CP sampling circuit is used to connect to the CP port of the power supply device to receive data packets from the main control chip of the power supply device via the CP bus.

[0012] Furthermore, the CP sampling circuit includes a second operational amplifier for signal conversion; one input terminal of the second operational amplifier serves as the receiving terminal of the CP sampling circuit, the other input terminal is connected to a voltage divider circuit, and the output terminal is connected to the data receiving serial port; the voltage divider circuit is composed of a pull-up resistor connected at one end to a high level corresponding to the main control chip MCU and a pull-down resistor grounded at the other end, and the second operational amplifier is connected between the pull-up resistor and the pull-down resistor.

[0013] Furthermore, the CP generation circuit of the power supply equipment also outputs a first preset signal when the main control chip MCU detects an error in the data packet and requests to resend the previous data packet, and outputs a second preset signal when it detects that the data packet is correct and requests to send the next data packet.

[0014] The beneficial effects of this invention are: it can detect whether errors have occurred during data transmission, enhance communication reliability, and simplify the error handling process. Attached Figure Description

[0015] Figure 1(a) is a circuit diagram of the JTAG programming interface in the prior art;

[0016] Figure 1(b) is a circuit diagram of the SWD programming interface in the prior art;

[0017] Figure 2 This is a circuit diagram of a programmable device for upgrading electric vehicle power supply equipment via CP signal when connected to an electric vehicle power supply equipment of the present invention.

[0018] Figure 3 This is the circuit diagram of a level conversion circuit;

[0019] Figure 4 This is the circuit schematic of the CP sampling circuit;

[0020] Figure 5 This is the circuit diagram of the CP generator circuit;

[0021] Figure 6 This is the circuit schematic of the CP detection circuit. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be described in detail below with reference to the accompanying drawings and embodiments.

[0023] The concept of this invention is to utilize the CP signal inherent in the power supply equipment for interaction with new energy vehicles, in conjunction with a programming device. By connecting the programming device to the CP signal of the power supply equipment, a level conversion circuit is used to convert the level of the data packets used in the main control chip MCU for program upgrades of the power supply equipment into a level that the CP signal can recognize. Data packets are then sent to the main control chip MCU of the power supply equipment via the CP bus, enabling program upgrades of the power supply equipment without disassembling the power supply equipment casing.

[0024] Example of a programming device:

[0025] like Figure 2As shown, a power supply device (e.g., a charging pile) of the present invention is connected to the programming device of this embodiment through a charging gun. The CP signal terminal and PE ground terminal in the charging gun are connected to the CP interface and ground interface on the corresponding interface of the programming device. The programming device is connected to the electric vehicle power supply device through the CP signal line in the charging gun. The data packets used for upgrading the power supply device system in the programming device are transmitted to the power supply device through the CP signal to complete the program upgrade of the electric vehicle power supply device.

[0026] Specifically, such as Figure 2 As shown, the programming device includes a first main control chip (MCU), a level conversion circuit, and a data output interface.

[0027] In the main control chip MCU, USART_TXD is the data transmission serial port.

[0028] like Figure 3 As shown, the level conversion circuit includes a first operational amplifier U2. The positive input terminal of operational amplifier U2 is connected to the USART_TXD serial port of the first main control chip MCU via resistor R12. The inverting input terminal is connected to the first voltage divider circuit via resistor R11. The output terminal outputs the converted signal at the data output interface via resistor R13, and the data output interface is connected to the CP signal line. The first voltage divider circuit consists of a first pull-up resistor R14 connected at one end to the high level VCC3 corresponding to the main control chip MCU and a first pull-down resistor R15 grounded at the other end, connected in series. The first pull-up resistor R14 and the first pull-down resistor R15 are connected to the inverting input terminal of the first operational amplifier. The power supply for the first operational amplifier U2 is a voltage level with high level VCC1 and low level VCC2.

[0029] Specifically, the upgrade program is stored in the internal Flash of the first main control chip MCU of the programming device. The programming device reads the upgrade program from the internal Flash of the first main control chip MCU and sends the upgrade program data in packets through the USART_TXD data transmission serial port. USART_TXD is the data to be transmitted. USART_TXD is carried by a first level signal with a high level of VCC3 and a low level of GND. Since there is a first high level signal of VCC1 and a first low level signal of VCC2 at the CP signal after the charging gun is powered on, if data packets are to be transmitted through the CP signal, the first level signal with a high level of VCC3 and a low level of GND carrying the data packets needs to be converted into a square wave signal with a high level of VCC1 and a low level of VCC2 in the CP signal. (Similarly, if data packets are to be received at the data receiving end, the square wave signal carrying the data packets in the CP signal, with a high level of VCC1 and a low level of VCC2, needs to be converted into a first-level signal with a high level of VCC3 and a low level of GND.) This level signal is connected to the positive input of the first operational amplifier U2. After processing by the first operational amplifier U2, a square wave signal with a high level of VCC1 and a low level of VCC2 corresponding to the CP signal is generated.

[0030] like Figure 2 As shown, the electric vehicle power supply equipment includes a second main control chip (MCU) and a CP sampling circuit.

[0031] In the second main control chip MCU, USART_RXD is the data receiving serial port.

[0032] like Figure 4 As shown, the CP sampling circuit includes a second operational amplifier U4. The positive input of the second operational amplifier U4 is connected to the CP signal via resistor R3, and the inverting input is connected to a second voltage divider circuit. One end of the second pull-up resistor R1 is connected to the first high-level signal VCC3, and the other end is connected to it. The output is connected to the USART_RXD data receiving serial port of the second main control chip MCU via resistor R10. A resistor R20 is connected between resistor R10 and the USART_RXD data receiving serial port, with the other end of R20 grounded. The second voltage divider circuit consists of a second pull-up resistor R1 connected at one end to the high-level signal VCC3 corresponding to the main control chip MCU, and a second pull-down resistor R2 connected to ground at the other end, connected in series. The inverting input of the second operational amplifier is connected between the second pull-up resistor R1 and the second pull-down resistor R2. The power supply for the second operational amplifier U4 is a voltage level with VCC1 as the high level and GND as the low level.

[0033] Specifically, the positive input terminal of the second operational amplifier U4 receives a square wave signal with a high level of VCC1 and a low level of VCC2 from the CP signal. This signal is converted by the second operational amplifier U4 into a signal with a high level of VCC3 and a low level of GND that can be recognized by the second main control chip MCU. In other words, the square wave signal with a high level of VCC1 and a low level of VCC2 from the CP signal is converted into received data USART_RXD corresponding to the USART_TXD data sent by the first main control chip MCU. The USART_RXD received data is input to the second main control chip MCU through the data receiving serial port and stored in the update area of ​​Flash.

[0034] Repeat the above steps until the data packet transmission of the upgrade program is complete. The power supply equipment restarts and executes the BOOT program, which copies the program data in the update area to the running area, overwriting the original program and completing the program update and upgrade.

[0035] To detect errors during data transmission, enhance communication reliability, and simplify error handling, one feasible approach is to add a checksum byte to the end of the data packet and incorporate a CP detection module into the programming device. Data verification is performed using a second main control chip (MCU). Different verification results generate different preset signals at the CP_PWM logic output serial port of the MCU. These preset signals are output and converted using the module (CP generation circuit) originally used for data exchange with the charging vehicle in the charging pile. The signals are then transmitted to the CP detection circuit of the programming device via the CP signal line, and the second main control chip (MCU) provides feedback on the preset signals.

[0036] like Figure 6As shown, the CP detection circuit includes a third operational amplifier U3. The inverting input of the third operational amplifier U3 is connected to the CP signal via resistor R19, the non-inverting input is connected to a voltage divider circuit, and the output is connected to a preset signal receiving point GPIO in the second main control chip MCU via resistor R21. A resistor R22 is connected between resistor R21 and the preset signal receiving point GPIO, with the other end of resistor R22 grounded. The third voltage divider circuit consists of a third pull-up resistor R16 connected at one end to the high level VCC3 corresponding to the main control chip MCU, and a second pull-down resistor R17 grounded at the other end, connected in series. The inverting input of the third operational amplifier is connected between the third pull-up resistor R16 and the third pull-down resistor R17. The power supply for the third operational amplifier U3 is a voltage level with a high level of VCC1 and a low level of GND. Specifically, after receiving the data packet, the second main control chip MCU of the power supply equipment verifies the bytes at the end of the data packet message. If the verification fails, the second main control chip MCU's logic output serial port CP_PWM outputs a logic 1 state, i.e., the first preset signal; if the verification succeeds, the second main control chip MCU's logic output serial port CP_PWM outputs a logic 0 state, i.e., the second preset signal. In the case of successful verification, a request is made to send the next data packet. At this time, the second main control chip MCU's logic output serial port CP_PWM outputs a logic 0 state. In this logic state, the logic output serial port CP_PWM outputs a 100ms pulse signal with voltage VCC3. This 100ms pulse signal with voltage VCC3 is processed by the third operational amplifier U1 of the CP generation circuit and becomes a 100ms pulse with voltage VCC1 that can be recognized by the CP signal line. This pulse signal flows out from the CP signal line for error feedback. After processing by the fourth operational amplifier U3 of the CP detection circuit of the programming device, it is converted into a 100ms pulse signal with voltage VCC3 that can be recognized by the first main control chip MCU. When the 100ms pulse signal with voltage VCC3 is detected by the first main control chip MCU, the programming device will send the next set of data packets. If the verification fails, it requests to resend the previous set of data packets. At this time, the logic output serial port CP_PWM of the second main control chip MCU outputs logic 1. In this logic state, the logic output serial port CP_PWM continuously outputs a high-level signal with voltage VCC3. The high-level signal with voltage VCC3 is processed by the third operational amplifier U1 of the CP generation circuit and becomes a high-level signal with voltage VCC1 that can be recognized by the CP signal line. After this high-level signal flows out from the CP signal line, it is processed by the fourth operational amplifier U3 of the CP detection circuit of the programming device and converted into a high-level signal with voltage VCC3 that can be recognized by the first main control chip MCU. When the high-level signal with voltage VCC3 is detected by the first main control chip MCU, the programming device will send the previous set of data packets.

[0037] Repeat the above steps until the data packet transmission of the upgrade program is complete. The power supply equipment restarts and executes the BOOT program, which copies the program data in the update area to the running area, overwriting the original program and completing the program update and upgrade.

[0038] Example of power supply equipment:

[0039] The power supply device embodiment provided by this invention can achieve the same beneficial effects as those described in the burning device embodiment, and will not be repeated here.

Claims

1. A programming device for upgrading the program of electric vehicle power supply equipment via CP signal, characterized in that, The system includes a first main control chip (MCU); the MCU includes a data transmission serial port for sending data packets for power supply equipment program upgrades, and the data transmission serial port is connected to a level conversion circuit for converting data from the MCU level to the CP level; the output of the level conversion circuit is connected to the CP port of the power supply equipment to send data packets to the main control chip of the power supply equipment via the CP bus; the level conversion circuit includes a first operational amplifier, one input of which is connected to the data transmission serial port, the other input is connected to a voltage divider circuit, and the output is the output of the level conversion circuit; the voltage divider circuit is composed of a pull-up resistor connected at one end to a high level corresponding to the MCU and a pull-down resistor grounded at the other end, connected in series, with the first operational amplifier connected between the pull-up resistor and the pull-down resistor.

2. The programming device for upgrading the electric vehicle power supply equipment program via CP signal according to claim 1, characterized in that, It also includes a CP detection circuit for converting the CP level into a level that the main control chip MCU can recognize; the main control chip MCU also includes a logic receiving serial port for receiving the output signal of the CP detection circuit; The input terminal of the CP detection circuit is used to connect to the CP port of the power supply device; the CP detection circuit is used to determine whether the data packet received by the power supply device has an error based on the first preset signal and the second preset signal output by the power supply device through its CP port.

3. The programming device for upgrading the electric vehicle power supply equipment program via CP signal according to claim 2, characterized in that, The CP detection circuit includes a third operational amplifier for signal conversion; one input terminal of the third operational amplifier serves as the input terminal of the CP detection circuit, the other input terminal is connected to a voltage divider circuit, and the output terminal serves as the output terminal of the CP detection circuit; the voltage divider circuit is composed of a pull-up resistor connected at one end to a high level corresponding to the main control chip MCU and a pull-down resistor grounded at the other end, and the third operational amplifier is connected between the pull-up resistor and the pull-down resistor.

4. A power supply device for electric vehicles, characterized in that, The system includes a main control chip (MCU); the MCU includes a data receiving serial port for receiving data packets used for power supply equipment program upgrades, and the data receiving serial port is connected to a CP sampling circuit for converting CP level signals into level signals recognizable by the first main control chip MCU; the receiving end of the CP sampling circuit is connected to the CP port of the power supply equipment to receive data packets from the main control chip of the power supply equipment via the CP bus; the CP sampling circuit includes a second operational amplifier for signal conversion; one input of the second operational amplifier serves as the receiving end of the CP sampling circuit, the other input is connected to a voltage divider circuit, and the output is connected to the data receiving serial port; the voltage divider circuit is composed of a pull-up resistor connected at one end to a high level corresponding to the main control chip MCU and a pull-down resistor grounded at the other end, connected in series, with the second operational amplifier connected between the pull-up resistor and the pull-down resistor.

5. The electric vehicle power supply equipment according to claim 4, characterized in that, The CP generation circuit of the power supply equipment also outputs a first preset signal when the main control chip MCU detects an error in the data packet and requests to resend the previous data packet, and outputs a second preset signal when it detects that the data packet is correct and requests to send the next data packet.

Citation Information

Patent Citations

  • Burning debugging circuit and burning debugger

    CN110806879A

  • Equipment upgrading circuit based on USB interface and electronic equipment

    CN213182717U