A DC charging controller based on SPI dual-machine communication

By introducing SPI dual-machine communication into electric vehicle chargers, CAN communication resources are expanded, the problem of insufficient resources of existing charge controllers is solved, and complex charger function support and performance optimization are achieved.

CN114475473BActive Publication Date: 2024-10-11XJ POWER CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011165223.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2024-10-11
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

The CAN communication resources of the existing electric vehicle charger charging controller are insufficient and cannot meet the increasingly complex and complete functional requirements of electric vehicle chargers.

Method used

Design a DC charging controller based on SPI dual-machine communication. Through the SPI communication module between the main control chip and the secondary control chip, information is exchanged, CAN communication resources are expanded, and the interaction between the main and secondary control chips and peripheral control devices is realized. Multi-channel CAN communication.

Benefits of technology

This solution reduces system costs, optimizes resource utilization, meets the complex and complete communication requirements of electric vehicle chargers, and improves system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114475473B_ABST
    Figure CN114475473B_ABST
Patent Text Reader

Abstract

A DC charging controller based on SPI dual-machine communication includes a main control chip, a sub-control chip, a CAN communication module, an SPI communication module and a peripheral interactive control device; the main control chip communicates with the peripheral interactive control device through the CAN communication module; the sub-control chip communicates with the peripheral interactive control device through the CAN communication module; the main control chip and the sub-control chip communicate through the SPI communication module. The DC charging controller can meet the communication requirements of increasingly complex and sophisticated electric vehicle chargers, reduce system costs, and improve system performance requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electric vehicle charging, and in particular to a direct current charging controller based on SPI dual-machine communication. Background Art

[0002] With the development of new energy, the application of electric vehicles is becoming more and more popular. The construction scale of electric vehicle chargers in my country is also getting larger and larger. The types and functions of electric vehicle chargers are becoming more and more perfect. The realization of the functions of electric vehicle chargers is inseparable from the external interaction of the controller CAN communication.

[0003] CAN communication has the characteristics of fast transmission rate, high real-time performance, high stability and simple structure. The charging controller of the electric vehicle charger also transmits and controls data with the battery management system BMS and power control unit TCU of the electric vehicle through CAN communication.

[0004] At present, the embedded chips used in charging controllers on the market generally have only two-way CAN communication. As the functions of electric vehicle chargers become increasingly complex and complete, the objects that the charger controller needs to communicate and control are no longer just the battery management system and the billing control unit. It also needs to communicate and control the DC charging module and the matrix switch module. The two-way CAN communication can no longer meet the communication and control needs of the charging controller.

[0005] In view of the above situation, a DC charging controller based on SPI dual-machine communication is designed to meet the increasingly complex and sophisticated communication needs of electric vehicle chargers, reduce system costs, and improve system performance requirements. Summary of the invention

[0006] The present invention innovatively proposes a DC charging controller based on SPI dual-machine communication for existing electric vehicle chargers. This DC charging controller based on SPI dual-machine communication is used to solve the problem that the existing charger controller has insufficient CAN communication resources and cannot meet the increasingly complex and improved functional requirements of electric vehicle chargers, reduces the manufacturing cost of electric vehicle chargers, optimizes the resource utilization of charger controller chips, and plays a positive role in reducing costs and increasing efficiency for electric vehicle charger manufacturers and promoting the vigorous development of the electric vehicle industry.

[0007] The present invention is implemented by the following technical solutions:

[0008] A DC charging controller based on SPI dual-machine communication, comprising a main control chip, a sub-control chip, a CAN communication module, an SPI communication module and a peripheral interactive control device;

[0009] The main control chip communicates with the peripheral interactive control device via a CAN communication module;

[0010] The secondary control chip communicates with the peripheral interactive control device via a CAN communication module;

[0011] The main control chip communicates with the auxiliary control chip via an SPI communication module.

[0012] Furthermore, the peripheral interactive control device includes a battery management system BMS, a charging control unit TCU, a charging module and a switch module.

[0013] Furthermore, the main control chip is responsible for the main charging process, and exchanges battery charging information with the battery management system BMS during the entire charging process through its own CAN communication module, and exchanges information on charger telemetry and background control commands with the billing control unit TCU through its own other CAN communication module.

[0014] Furthermore, the main control chip transmits the command for controlling the charging module to start charging and the command for controlling the switch module to close and open to the auxiliary control chip through the SPI communication module.

[0015] Furthermore, the secondary control chip of the DC charging controller receives the charging control command transmitted by the main control chip and the closing and disconnecting command of the switch module through the SPI communication module, and sends the relevant commands to the charging module and the switch module through its own two CAN communication modules.

[0016] Furthermore, the secondary control chip of the DC charging controller exchanges charging information with the DC charging module and the matrix control module through its own two-way CAN communication modules, and transmits the module operation information sent by the charging module and the contactor closing and opening status information sent by the matrix switch module to the main control chip through the SPI communication module.

[0017] Furthermore, the main control chip and the sub-control chip are connected by hardware via a chip selection pin, a clock pin, and two information transmission pins.

[0018] Furthermore, the SPI dual-machine communication of the DC charging controller obtains a complete message frame by pulling down the signal NSS of the chip select pin.

[0019] Furthermore, a complete message frame transmitted by SPI is checked by CRC check to ensure that erroneous messages transmitted by SPI can be shielded.

[0020] Furthermore, when the main control chip and the sub-control chip of the DC charging controller exchange information through SPI, the read pointer is shifted after the CRC check succeeds.

[0021] In summary, the present invention provides a DC charging controller based on SPI dual-machine communication, including a main control chip, a sub-control chip, a CAN communication module, an SPI communication module and a peripheral interactive control device; the main control chip communicates with the peripheral interactive control device through the CAN communication module; the sub-control chip communicates with the peripheral interactive control device through the CAN communication module; the main control chip and the sub-control chip communicate through the SPI communication module. The DC charging controller can meet the communication requirements of increasingly complex and sophisticated electric vehicle chargers, reduce system costs, and improve system performance requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a system block diagram of a DC charging controller based on SPI dual-machine communication of the present invention;

[0023] Figure 2 It is a schematic diagram of SPI two-machine communication of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0025] In order to solve the problem of insufficient CAN communication resources of existing electric vehicle charger charging controllers, the present invention proposes a DC charging controller based on SPI dual-machine communication. The system block diagram is as follows: Figure 1 As shown, CAN communication is mainly expanded through SPI dual-machine communication between chips. The DC charging controller includes a main control chip, a sub-control chip, a CAN communication module, an SPI communication module and a peripheral interactive control device; the main control chip communicates with the peripheral interactive control device through the CAN communication module; the sub-control chip communicates with the peripheral interactive control device through the CAN communication module; the main control chip and the sub-control chip communicate through the SPI communication module.

[0026] The charging controller mainly includes two ARM chips with two CAN communication modules and one SPI communication module. The peripheral interactive control devices mainly include a battery management system BMS, a charging control unit TCU, a DC charging module, and a matrix switch module. The main control chip communicates with the external battery management system and the charging control unit through its own two CAN communication modules, and realizes the control of the charging process. The sub-control chip communicates with the external DC charging module and the matrix switch module through its own two CAN communication modules. The main and sub-control chips realize the transmission of control commands and telemetering status through SPI dual-machine communication. The main control chip is responsible for the main charging process and communicates directly with the outside. The sub-control chip is mainly responsible for receiving the control commands of the main control chip, communicating and controlling the external modules, and transmitting the received telemetering information of the external modules to the main control chip.

[0027] The main control chip of the DC charging controller is mainly responsible for the main charging process. It exchanges battery charging information with the battery management system BMS during the entire charging process through its own CAN communication module, and transmits the command to control the DC charging module to start charging and the closing and disconnecting commands of the control matrix switch module to the sub-control chip through SPI; it exchanges information on charger telemetry and background control commands with the billing control unit through its own other CAN communication module.

[0028] The auxiliary control chip is mainly responsible for receiving the charging control commands and matrix switch module closing and disconnecting commands transmitted by the main control chip, and sending the relevant commands to the DC charging module and the matrix switch module through its own two-way CAN communication module. The auxiliary control chip exchanges charging information with the DC charging module and the matrix control module through its own two-way CAN communication module, and transmits the module operation information sent by the DC charging module and the contactor closing and disconnecting status information sent by the matrix switch module to the main control chip through SPI.

[0029] The main control chip and the sub-control chip are connected by SPI transmission hardware through a chip select pin, a clock pin, and two information transmission pins. The SPI dual-machine communication of the DC charging controller obtains a complete message frame by pulling down the chip select signal NSS. The DC charging controller verifies a complete message frame transmitted by SPI by CRC verification to ensure that the error message transmitted by SPI can be shielded. When the main control chip and the sub-control chip SPI exchange information, only after the CRC verification is successful, the read pointer is shifted to ensure that a correct message frame can be accurately received. The DC charging controller reasonably utilizes the chip select resources of the main and sub-control chips, has a simple structure, and can realize the function of multi-channel CAN communication expansion at a very low cost.

[0030] The main control chip of the charging controller exchanges information with the electric vehicle battery management system BMS through its own CAN communication, and controls and manages the six stages of the charging process: physical connection completion, low-voltage auxiliary power-on, charging handshake stage, charging parameter configuration stage, charging stage and charging end stage.

[0031] The main control chip of the charging controller exchanges information with the billing control unit TCU through its own other CAN communication, sends the battery management system information, current and voltage information, and telemetry information of the DC charging module and matrix control module during the charging process to the billing control unit, and receives the control command message from the billing control unit at the same time.

[0032] The main control chip of the charging controller will receive the charging control command, and the required voltage, required current, battery voltage and closing and opening commands of the matrix switch module sent by the battery management system will be transmitted to the sub-control chip through the SPI communication module.

[0033] The secondary control chip of the charging controller converts the control commands and voltage and current requirements transmitted by the main control chip via SPI into CAN communication message format.

[0034] The sub-control chip of the charging controller sends the control commands in the CAN communication message format to the DC charging module and the matrix switch module through its own two CAN communications. At the same time, the sub-control chip receives the operating status, fault alarm, real-time voltage and current information sent by the DC charging module and the contactor disconnection and closing status and fault information sent by the matrix switch module through these two CAN communications. The sub-control chip converts the received telemetering information of the DC charging module and the matrix control module from the CAN communication message format to the SPI message format, and sends it to the main control chip through the SPI communication module.

[0035] The DC charging controller based on SPI dual-machine communication described in the present invention relies on the SPI dual-machine communication between the main and auxiliary control chips. Figure 2 As shown, this communication conversion and transmission process will be introduced in detail below.

[0036] First, the main control chip receives the CAN message sent by the battery management system and the billing control unit. The CAN message format is an extended frame using a 29-bit identifier, including a 32-bit extended frame ID and an 8-byte data field, a total of 12 bytes. The main control chip converts the received CAN message in this format into an array and calculates its CRC check value.

[0037] Secondly, the main control chip places the array containing the data pointer, CAN message data, and CRC check value in the SPI transmit buffer, pulls down the NSS chip select signal when sending data, and sends a complete frame of the message to the sub-control chip.

[0038] Then, after receiving a complete SPI message, the secondary control chip first performs a CRC check on the received data. When the SPI data checksum calculated by the secondary control chip is consistent with the CRC checksum sent by the SPI main control chip, it is considered that the current frame of data is a complete and valid data, and the data pointer is moved at the same time to prepare to receive the next frame of data. If the SPI data checksum calculated by the secondary control chip is inconsistent with the CRC checksum sent by the SPI main control chip, the data received this time is discarded, and the data pointer is not moved at the same time. The continuous transmission mechanism of SPI is used to continue to receive the current frame of data until the complete and valid current frame of data or the next frame of data sent by the main control chip is received.

[0039] Finally, the sub-control chip parses the complete and valid data received according to the relevant CAN transmission protocol, and converts the data according to the CAN transmission protocol of the DC charging module and the matrix switch module to make it conform to the CAN extended frame transmission format, and places it in the CAN module transmission buffer, waiting for CAN module data transmission.

[0040] In this way, a complete CAN message conversion SPI data transmission is completed. In the process of converting to CAN message, the original two-way CAN communication is expanded to four-way. At the same time, the CAN message conversion and transmission process of the auxiliary control chip receiving the DC charging module and the matrix switch module is basically the same as that of the main control chip.

[0041] In summary, the present invention provides a DC charging controller based on SPI dual-machine communication, including a main control chip, a sub-control chip, a CAN communication module, an SPI communication module and a peripheral interactive control device; the main control chip communicates with the peripheral interactive control device through the CAN communication module; the sub-control chip communicates with the peripheral interactive control device through the CAN communication module; the main control chip and the sub-control chip communicate through the SPI communication module. The DC charging controller can meet the communication requirements of increasingly complex and sophisticated electric vehicle chargers, reduce system costs, and improve system performance requirements.

[0042] The above gives the specific implementation methods of the present invention, but the present invention is not limited to the described implementation methods. Under the idea given by the present invention, the technical means in the above-mentioned embodiments are transformed, replaced, and modified in a way that is easy for a person skilled in the art to think of, and the effect is basically the same as the corresponding technical means in the present invention, and the purpose of the invention is basically the same. The technical solution formed in this way is formed by fine-tuning the above-mentioned embodiments, and this technical solution still falls within the protection scope of the present invention.

Claims

1. A DC charging controller based on SPI dual-machine communication, It is characterized in that It includes a main control chip, a sub-control chip, a CAN communication module, an SPI communication module and peripheral interactive control equipment; The main control chip communicates with the peripheral interactive control device through a CAN communication module. The peripheral interactive control device includes a battery management system BMS, a charging control unit TCU, a DC charging module and a matrix switch module. The main control chip is responsible for the main charging process. It interacts with the battery management system BMS for battery charging information during the entire charging process through one CAN communication module of the main control chip, and interacts with the charging control unit TCU for information on charger telemetry and background control commands through another CAN communication module of the main control chip; The secondary control chip communicates with the peripheral interactive control device via the CAN communication module. The secondary control chip receives the charging control command transmitted by the main control chip and the closing and disconnecting command of the matrix switch module via the SPI communication module, and sends the relevant commands to the DC charging module and the matrix switch module via its own two CAN communication modules; The main control chip communicates with the auxiliary control chip through the SPI communication module. The main control chip transmits the command of controlling the DC charging module to start charging and the closing and disconnecting command of the matrix switch module to the auxiliary control chip through the SPI communication module. The auxiliary control chip transmits the module operation information sent by the DC charging module and the contactor closing and disconnecting status information sent by the matrix switch module to the main control chip through the SPI communication module.

2. A DC charging controller based on SPI dual-machine communication according to claim 1, It is characterized in that The auxiliary control chip of the DC charging controller exchanges charging information with the DC charging module and the matrix control module through its own two-way CAN communication module.

3. A DC charging controller based on SPI dual-machine communication according to claim 1, It is characterized in that The main control chip and the auxiliary control chip are connected by hardware via a chip selection pin, a clock pin, and two information transmission pins.

4. A DC charging controller based on SPI dual-machine communication according to claim 3, It is characterized in that The SPI dual-machine communication of the DC charging controller obtains a complete message frame by pulling down the signal NSS of the chip select pin.

5. A DC charging controller based on SPI dual-machine communication according to claim 4, It is characterized in that A complete message frame transmitted by SPI is checked by CRC check to ensure that the error message of SPI transmission can be shielded.

6. A DC charging controller based on SPI dual-machine communication according to claim 5, It is characterized in that When the main control chip and the sub-control chip of the DC charging controller exchange information through SPI, the read pointer is shifted after the CRC check succeeds.