A charging pile charging CAN data recording method and system
By building in parallel charging CAN and recording CAN in the charging gun, and combining the server to set the recording period and rolling storage, the problems of high cost and poor flexibility in recording charging CAN data of charging piles are solved, achieving cost reduction and improved recording efficiency.
Patent Information
- Application Number
- CN202310901588.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-21
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2043-07-21
AI Technical Summary
The existing charging pile charging CAN data recording method has the problems of high hardware cost, high operation and maintenance cost, and the recording time period cannot be flexibly configured, resulting in waste of data storage space and increased costs.
By building parallel charging CAN and recording CAN into the charging gun, a connection is established with the BMS of the new energy vehicle. The recording period is set using the server to perform flexible recording data collection and rolling storage, reducing hardware equipment. Combined with the rolling storage of recording data packets, it reduces costs and improves recording flexibility.
The hardware and operation and maintenance costs of charging pile charging CAN data recording are reduced, the flexibility and storage efficiency of recording are improved, invalid data storage is avoided, and storage space is saved.
Smart Images

Figure CN117087484B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging piles, and in particular to a method and system for recording charging CAN data of a charging pile. Background Art
[0002] With the rapid development of new energy vehicles, more and more people are choosing to buy more energy-efficient and environmentally friendly new energy vehicles. As an important tool for replenishing the power of new energy vehicles, the charging performance of charging piles will directly affect the user experience of new energy vehicles.
[0003] Given the differences in charging communication protocols across different vehicle models, data exchange between charging piles and new energy vehicles can easily fail, potentially preventing charging from starting or terminating due to abnormal charging behavior. Reducing the incidence of failures and shortening troubleshooting time are crucial. To quickly locate faults related to the charging communication protocol, it's necessary to record the interaction data (charging CAN data) between the new energy vehicle and the charging pile during charging. The accuracy and completeness of this recorded data impact the efficiency of fault location.
[0004] For recording charging CAN data, an independent data collector is traditionally used, which has the following disadvantages: the independent data collector brings additional hardware costs and operation and maintenance costs, and the traditional data collector can only perform continuous and uninterrupted recording and cannot flexibly configure the recording time period, resulting in a waste of data storage space and an increase in storage costs.
[0005] Therefore, how to provide a charging pile charging CAN data recording method and system to reduce the charging pile charging CAN data recording cost and improve the recording flexibility has become a technical problem that needs to be solved urgently. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to provide a method and system for recording charging pile charging CAN data, so as to reduce the cost of recording charging pile charging CAN data and improve the recording flexibility.
[0007] In a first aspect, the present invention provides a method for recording CAN data of a charging pile, comprising the following steps:
[0008] Step S10: The server enables the wave recording function of the charger controller;
[0009] Step S20: The charger controller establishes a connection with the BMS of the new energy vehicle through the charging gun;
[0010] Step S30: During the process of charging the new energy vehicle through the charging pile, the charger controller communicates with the BMS through the charging CAN;
[0011] Step S40: The charger controller records the communication data of the charging CAN through the recording CAN to obtain recorded data;
[0012] Step S50: The charger controller packages the recorded data into a recorded data packet, stores the recorded data packet locally, and uploads the recorded data packet to a server.
[0013] Furthermore, the step S10 is specifically as follows:
[0014] The server sets a wave recording period, and enables or disables the wave recording function of the charger controller based on the wave recording period.
[0015] Furthermore, the step S20 is specifically as follows:
[0016] The charger controller establishes a connection with the BMS of the new energy vehicle through the charging CAN and recording CAN built into the charging gun and connected in parallel.
[0017] Furthermore, the step S40 is specifically as follows:
[0018] During the recording period, the charger controller records the communication data of the charging CAN through the recording CAN to obtain recorded data.
[0019] Furthermore, the step S50 is specifically as follows:
[0020] The charger controller packages the recorded data into a recorded data packet based on a preset recorded data structure, performs rolling local storage of the recorded data packet based on a preset storage space, and uploads the recorded data packet to the server in real time when there is a network;
[0021] The recording data structure is specifically: gun channel number + timestamp + frame sequence number + CANID + CAN data segment.
[0022] In a second aspect, the present invention provides a charging pile charging CAN data recording system, comprising the following modules:
[0023] Wave recording enabling module, used by the server to enable the wave recording function of the charger controller;
[0024] BMS connection module, used for the charger controller to establish a connection with the BMS of the new energy vehicle through the charging gun;
[0025] CAN communication module, used for the charger controller to communicate with the BMS via charging CAN when charging new energy vehicles through charging piles;
[0026] A wave recording module is used for the charger controller to record the communication data of the charging CAN through the wave recording CAN to obtain the recorded data;
[0027] The recording data packet storage module is used for the charger controller to package the recording data into a recording data packet, store the recording data packet locally and upload it to the server.
[0028] Furthermore, the wave recording enabling module is specifically used to:
[0029] The server sets a wave recording period, and enables or disables the wave recording function of the charger controller based on the wave recording period.
[0030] Furthermore, the BMS connection module is specifically used to:
[0031] The charger controller establishes a connection with the BMS of the new energy vehicle through the charging CAN and recording CAN built into the charging gun and connected in parallel.
[0032] Furthermore, the wave recording module is specifically used for:
[0033] During the recording period, the charger controller records the communication data of the charging CAN through the recording CAN to obtain recorded data.
[0034] Furthermore, the recording data packet storage module is specifically used for:
[0035] The charger controller packages the recorded data into a recorded data packet based on a preset recorded data structure, performs rolling local storage of the recorded data packet based on a preset storage space, and uploads the recorded data packet to the server in real time when there is a network;
[0036] The recording data structure is specifically: gun channel number + timestamp + frame sequence number + CANID + CAN data segment.
[0037] The advantages of the present invention are:
[0038] By setting a recording period on the server, the recording function of the charger controller is enabled or disabled based on the recording period, and the charger controller establishes a connection with the BMS of the new energy vehicle through the built-in, parallel charging CAN and recording CAN of the charging gun. In the process of charging the new energy vehicle through the charging pile, the charger controller communicates with the BMS through the charging CAN, and records the communication data of the charging CAN through the recording CAN to obtain recording data, which is packaged into a recording data packet for local storage and uploaded to the server; because the charging gun is connected to the BMS through the built-in, parallel charging CAN and recording CAN, there is no need to purchase an additional data collector as traditionally, which reduces hardware costs and operation and maintenance costs. The recording period is flexibly configured through the server to avoid storing invalid recording data packets. Combined with the rolling storage of recording data packets, storage space is effectively saved, thereby greatly reducing the cost of recording charging CAN data of the charging pile and greatly improving the recording flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0040] Figure 1 The present invention is a flowchart of a charging pile charging CAN data recording method.
[0041] Figure 2 It is a structural schematic diagram of a charging pile charging CAN data recording system of the present invention.
[0042] Figure 3 It is a hardware architecture diagram of the present invention. DETAILED DESCRIPTION
[0043] The overall idea of the technical solution in the embodiments of the present application is as follows: through the built-in, parallel charging CAN and recording CAN of the charging gun, the charging gun is connected to the BMS, without the need to purchase an additional data collector, and the recording time period is flexibly configured through the server. Combined with the rolling storage of the recording data packets, storage space is effectively saved to reduce the cost of recording the charging CAN data of the charging pile and improve the flexibility of recording.
[0044] Please refer to Figures 1 to 3 As shown, a preferred embodiment of a charging pile charging CAN data recording method of the present invention includes the following steps:
[0045] Step S10: The server enables the wave recording function of the charger controller;
[0046] Step S20: The charger controller establishes a connection with the BMS of the new energy vehicle through the charging gun;
[0047] Step S30: During the process of charging the new energy vehicle through the charging pile, the charger controller communicates with the BMS through the charging CAN;
[0048] Step S40: The charger controller records the communication data of the charging CAN through the recording CAN to obtain recorded data;
[0049] Step S50: The charger controller packages the recorded data into a recorded data packet, stores the recorded data packet locally, and uploads the recorded data packet to a server.
[0050] The step S10 is specifically as follows:
[0051] The server sets a wave recording period, and enables or disables the wave recording function of the charger controller based on the wave recording period.
[0052] The step S20 is specifically as follows:
[0053] The charger controller connects to the new energy vehicle's BMS via the parallel charging CAN and wave recording CAN built into the charging gun. That is, each charging gun is equipped with two CAN channels, which are connected in parallel on the same CAN network.
[0054] The step S40 is specifically as follows:
[0055] The charger controller records the communication data of the charging CAN through the recording CAN during the recording period to obtain the recording data. When the time exceeds the recording period, the recording operation is stopped.
[0056] The step S50 is specifically as follows:
[0057] The charger controller packages the recorded data into a recorded data packet based on a preset recorded data structure, performs rolling local storage of the recorded data packet based on a preset storage space, and uploads the recorded data packet to the server in real time when a network connection is available; local storage supports a storage chip or an SD card; in specific implementations, the recorded data packet can also be rolled based on the storage time; in specific implementations, the server can also periodically retrieve the recorded data packet from the charger controller;
[0058] The recording data structure is specifically: gun channel number + timestamp + frame sequence number + CANID + CAN data segment;
[0059] The gun channel number corresponds one-to-one to the gun channel number of the charging CAN; the timestamp consists of an s timestamp (standard timestamp) and an ms value. The standard timestamp adopts a Unix timestamp. The recording data structure improves the accuracy of the recording information by adding an ms value. The ms time timing is implemented by the chip of the charger controller. The standard timestamp is obtained by periodically synchronizing with the server, and the ms time is counted from 0; the frame sequence number is obtained by self-incrementing according to the frame sequence of the recording collection. Taking into account the timing requirements of the charging communication protocol, that is, taking into account the information loss caused by the same, misplaced or inaccurate timestamps, the frame sequence number is added for redundant design.
[0060] A preferred embodiment of a charging pile charging CAN data recording system of the present invention includes the following modules:
[0061] Wave recording enabling module, used by the server to enable the wave recording function of the charger controller;
[0062] BMS connection module, used for the charger controller to establish a connection with the BMS of the new energy vehicle through the charging gun;
[0063] CAN communication module, used for the charger controller to communicate with the BMS via charging CAN when charging new energy vehicles through charging piles;
[0064] A wave recording module is used for the charger controller to record the communication data of the charging CAN through the wave recording CAN to obtain the recorded data;
[0065] The recording data packet storage module is used for the charger controller to package the recording data into a recording data packet, store the recording data packet locally and upload it to the server.
[0066] The wave recording enabling module is specifically used for:
[0067] The server sets a wave recording period, and enables or disables the wave recording function of the charger controller based on the wave recording period.
[0068] The BMS connection module is specifically used for:
[0069] The charger controller connects to the new energy vehicle's BMS via the parallel charging CAN and wave recording CAN built into the charging gun. That is, each charging gun is equipped with two CAN channels, which are connected in parallel on the same CAN network.
[0070] The wave recording module is specifically used for:
[0071] The charger controller records the communication data of the charging CAN through the recording CAN during the recording period to obtain the recording data. When the time exceeds the recording period, the recording operation is stopped.
[0072] The recording data packet storage module is specifically used for:
[0073] The charger controller packages the recorded data into a recorded data packet based on a preset recorded data structure, performs rolling local storage of the recorded data packet based on a preset storage space, and uploads the recorded data packet to the server in real time when a network connection is available; local storage supports a storage chip or an SD card; in specific implementations, the recorded data packet can also be rolled based on the storage time; in specific implementations, the server can also periodically retrieve the recorded data packet from the charger controller;
[0074] The recording data structure is specifically: gun channel number + timestamp + frame sequence number + CANID + CAN data segment;
[0075] The gun channel number corresponds one-to-one to the gun channel number of the charging CAN; the timestamp consists of an s timestamp (standard timestamp) and an ms value. The standard timestamp adopts a Unix timestamp. The recording data structure improves the accuracy of the recording information by adding an ms value. The ms time timing is implemented by the chip of the charger controller. The standard timestamp is obtained by periodically synchronizing with the server, and the ms time is counted from 0; the frame sequence number is obtained by self-incrementing according to the frame sequence of the recording collection. Taking into account the timing requirements of the charging communication protocol, that is, taking into account the information loss caused by the same, misplaced or inaccurate timestamps, the frame sequence number is added for redundant design.
[0076] In summary, the advantages of the present invention are:
[0077] By setting a recording period on the server, the recording function of the charger controller is enabled or disabled based on the recording period, and the charger controller establishes a connection with the BMS of the new energy vehicle through the built-in, parallel charging CAN and recording CAN of the charging gun. In the process of charging the new energy vehicle through the charging pile, the charger controller communicates with the BMS through the charging CAN, and records the communication data of the charging CAN through the recording CAN to obtain recording data, which is packaged into a recording data packet for local storage and uploaded to the server; because the charging gun is connected to the BMS through the built-in, parallel charging CAN and recording CAN, there is no need to purchase an additional data collector as traditionally, which reduces hardware costs and operation and maintenance costs. The recording period is flexibly configured through the server to avoid storing invalid recording data packets. Combined with the rolling storage of recording data packets, storage space is effectively saved, thereby greatly reducing the cost of recording charging CAN data of the charging pile and greatly improving the recording flexibility.
[0078] Although the specific embodiments of the present invention are described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A charging pile charging CAN data recording method, characterized by: The steps include: Step S10: The server sets a wave recording period, and enables or disables the wave recording function of the charger controller based on the wave recording period; Step S20: The charger controller establishes a connection with the BMS of the new energy vehicle through the parallel charging CAN and recording CAN built into the charging gun; Step S30: During the process of charging the new energy vehicle through the charging pile, the charger controller communicates with the BMS through the charging CAN; Step S40: The charger controller records the communication data of the charging CAN through the recording CAN during the recording period to obtain recorded data; Step S50: The charger controller packages the recorded data into a recorded data packet based on a preset recorded data structure, locally stores the recorded data packet in a rolling manner based on a preset storage space, and uploads the recorded data packet to a server in real time when a network connection is available. The recording data structure is specifically: gun channel number + timestamp + frame sequence number + CANID + CAN data segment.
2. A charging pile charging CAN data recording system, characterized by: Includes the following modules: A wave recording enabling module is used for setting a wave recording period on the server and enabling or disabling the wave recording function of the charger controller based on the wave recording period; BMS connection module, used for the charger controller to establish a connection with the BMS of the new energy vehicle through the charging CAN and recording CAN built into the charging gun in parallel; CAN communication module, used for the charger controller to communicate with the BMS via charging CAN when charging new energy vehicles through charging piles; A wave recording module is used for the charger controller to record the communication data of the charging CAN through the wave recording CAN during the wave recording period to obtain the wave recording data; A recording data packet storage module is used for the charger controller to package the recording data into a recording data packet based on a preset recording data structure, to perform rolling local storage of the recording data packet based on a preset storage space, and to upload the recording data packet to the server in real time when there is a network; The recording data structure is specifically: gun channel number + timestamp + frame sequence number + CANID + CAN data segment.
Citation Information
Patent Citations
Car battery charging message collection system and usage method thereof
CN106302775A
Electric automobile fills electric pile and fills electrographic recording system
CN206250809U