A method for implementing a DC charging protocol test device based on Raspberry Pi
By developing a DC charging protocol test device on the Raspberry Pi platform, using socketCAN API and modular programming, the complexity and high cost of DC charging test of power battery vehicles are solved, and an efficient testing and development process is achieved.
Patent Information
- Application Number
- CN202210879419.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2042-07-25
AI Technical Summary
During the development of power battery vehicles, the development and testing of DC charging are complex, and the lack of effective testing devices leads to testing problems and high costs.
The DC charging protocol test device based on Raspberry Pi uses the socketCAN API of the Linux system kernel to realize the relevant content of the GB/T 27930 standard, including CAN message reception and filtering, transmission, data flow analysis and message interaction logic. Through modular programming and GCC compilation technology, executable files are generated for functional verification.
It provides convenient testing methods, reduces the testing cost of on-board DC charging modules, improves development and testing efficiency, and shortens the development cycle of the entire vehicle DC charging module.
Abstract
Description
Technical Field
[0001] The present invention relates to the field of charging technology, and in particular to a method for implementing a direct current charging protocol testing device based on Raspberry Pi. Background Art
[0002] In today's world of energy shortage and increasingly serious environmental pollution, new energy vehicles have become the future development trend of the automotive industry. Among all new energy vehicles, pure electric vehicles are the most likely to be widely promoted and applied. Electric vehicles are mainly powered by electricity. In the development of power battery vehicles, the development and testing of power DC charging has always been a complicated task. Summary of the invention
[0003] The purpose of the present invention is to provide a method for implementing a DC charging protocol testing device based on Raspberry Pi to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A method for implementing a DC charging protocol test device based on Raspberry Pi, the specific method is as follows:
[0006] Step 1: Based on the socketCAN API of the Linux system kernel, implement the relevant contents of the GB / T 27930 standard;
[0007] Step 2: Based on the idea of modular programming in C language under Linux system, the functions of step 1 are divided, and the interfaces and data of each module in the relevant content are encapsulated to make each functional module independent and non-interfering with each other;
[0008] Step 3: Use GCC compilation technology to compile the functions of each module and link them into executable files;
[0009] Step 4: During the test, the R&D and testing personnel of the vehicle charging control module connect the CAN line of the Raspberry Pi to the CAN line of the vehicle charging control module, power the Raspberry Pi, and then start the executable file to perform functional verification of the vehicle charging control module.
[0010] As a further technical solution of the present invention: the related content includes receiving and filtering CAN messages of the vehicle charging controller, sending CAN messages, parsing of data streams, implementation of message interaction logic with the vehicle charging controller, message reception timeout determination, and message reception timeout processing strategy.
[0011] As a further technical solution of the present invention: the implementation method is expanded on the basis of the hardware platform of Raspberry Pi and the product of Linux operating system.
[0012] Compared with the prior art, the present invention has the following beneficial effects:
[0013] The present invention solves the testing difficulties in the development process of the vehicle-mounted DC charging control module, provides convenience for the testing of the vehicle-mounted DC charging control module, saves the testing cost of the vehicle-mounted DC charging module, improves the development and testing efficiency, and shortens the development cycle of the vehicle DC charging module. DETAILED DESCRIPTION
[0014] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0015] A method for implementing a DC charging protocol test device based on Raspberry Pi. This design is extended on the basis of the hardware platform of Raspberry Pi and the product of Linux operating system. Based on the socketCAN API of the Linux system kernel, the relevant contents involved in the GB / T 27930 standard are implemented. The relevant contents include but are not limited to the reception and filtering of CAN messages of the vehicle charging controller, the sending of CAN messages, the parsing of data streams, the implementation of the message interaction logic with the vehicle charging controller, the judgment of message reception timeout, and the processing strategy of message reception timeout. Based on the idea of C language modular programming under the Linux system, the functions of step 1 are divided, and the interfaces and data of each module are encapsulated to make each functional module independent and non-interfering. Using GCC compilation technology, the functions of each module are compiled and linked into executable files. The R&D and testing personnel of the vehicle charging control module only need to connect the CAN line of the Raspberry Pi with the CAN line of the vehicle charging control module during the test, power the Raspberry Pi, and then start the executable file to verify the function of the vehicle charging control module.
[0016] The test device involved in the present invention provides convenience for testing during the development process of a whole vehicle DC charging module.
[0017] The test device involved in the present invention improves the test efficiency in the development process of a whole vehicle DC charging module.
[0018] The testing device involved in the present invention saves the testing cost in the development process of the whole vehicle DC charging module.
[0019] The test device involved in the present invention fills the gap of the whole vehicle DC charging module test device which is not available in the current market.
[0020] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. In addition, it should be understood that although this specification is described in accordance with the implementation methods, not each implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
Claims
1. A method for implementing a DC charging protocol test device based on Raspberry Pi, characterized in that: The specific method is as follows: Step 1: Based on the socketCAN API of the Linux system kernel, implement the relevant contents of the GB / T 27930 standard; Step 2: Based on the idea of modular programming in C language under Linux system, the functions of step 1 are divided, and the interfaces and data of each module in the relevant content are encapsulated to make each functional module independent and non-interfering with each other; Step 3: Use GCC compilation technology to compile the functions of each module and link them into executable files; Step 4: The R&D and testing personnel of the vehicle charging control module connect the CAN line of the Raspberry Pi to the CAN line of the vehicle charging control module during the test, power the Raspberry Pi, and then start the executable file to perform functional verification of the vehicle charging control module; The related content includes the reception and filtering of CAN messages of the vehicle charging controller, the sending of CAN messages, the analysis of data streams, the implementation of message interaction logic with the vehicle charging controller, the determination of message reception timeout, and the handling strategy of message reception timeout.
Citation Information
Patent Citations
Method for generating configuration for middleware protocol conversion of Internet of vehicles
CN104331292A
Interactive simulation charging test system and test method
CN111055685A