A charging pile intranet message capturing and analyzing method

By combining RS232 and CAN conversion devices with a portable computer, the problem of real-time storage and rapid analysis of charging pile intranet messages was solved, enabling flexible protocol conversion and historical data playback, thus improving the operation and maintenance efficiency of charging piles.

CN119788553BActive Publication Date: 2025-11-07ZHUHAI TITANS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510000533.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-11-07
Estimated Expiration
2045-01-02

AI Technical Summary

Technical Problem

In existing technologies, the high frequency of internal module interaction and small storage capacity of charging piles result in the inability to store and synchronize massive amounts of interactive message data in real time, leading to low efficiency in on-site troubleshooting and insufficient analytical capabilities of engineers, making it difficult to reproduce intermittent faults.

Method used

It adopts an RS232 interface and a CAN to Ethernet converter, and performs data conversion and storage through a portable computer or PC to realize real-time acquisition, parsing and display of charging pile intranet messages. It uses an SQLite database for large-capacity storage and supports flexible protocol expansion and historical data playback.

Benefits of technology

It enables real-time storage and rapid analysis of charging pile intranet messages, lowers the barrier to entry for engineers, improves fault analysis efficiency, and supports protocol conversion and historical data retrieval for equipment from different manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788553B_ABST
    Figure CN119788553B_ABST
Patent Text Reader

Abstract

The application discloses and provides a charging pile internal network message capturing and analyzing method which can reproduce on-site faults and flexibly embed conversion protocols, and comprises the following steps: step 1, one end of an RS232 interface line is connected with a charging control unit, and the other end is connected with a data conversion interface; step 2, one end of a CAN-to-Ethernet conversion device is connected with CAN interfaces of a monitoring unit and an execution unit through two CAN channels; step 3, the other end of the CAN-to-Ethernet conversion device is connected with a portable computer or a PC through a TCP / IP protocol as a server Socket listening connection; step 4, a collecting unit of the portable computer or the PC opens a COM port to enable a collecting module to establish a connection; step 5, a storage module in the collecting unit stores messages in real time; step 6, an analyzing engine in the collecting unit analyzes different types of messages; and step 7, a display module in the collecting unit displays real-time results after conversion. The application is applied to the technical field of charging pile operation.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to an internal network message capturing and analyzing method, in particular to a charging pile internal network message capturing and analyzing method. BACKGROUND

[0002] The internal structure of the charging pile integrates a large number of hardware devices and protocols of different manufacturers, different brands and different types. When the pre-factory charging program debugging, verification and on-site fault problem troubleshooting are needed, the interaction messages between the internal modules of the charging pile are often intercepted, analyzed and positioned.

[0003] The charging pile operation manufacturer technical personnel need to go to the scene to analyze and solve the charging fault problem. However, for the positioning analysis of the charging fault problem, the technical personnel usually need to take a computer and a large number of packet capturing tools, and can only capture the post-fault messages. Through manual retrieval of original messages or collection of messages to the R&D personnel, the fault node is analyzed, and for the occasional faults, it is difficult to reproduce the on-site fault. This troubleshooting method leads to extremely low work efficiency of fault analysis.

[0004] The above-mentioned method has the following problems:

[0005] 1. The interaction frequency between the internal modules of the charging pile is millisecond level, and the single-chip microcomputer of the charging pile has small storage capacity and cannot store a large amount of data. The massive interaction message data cannot be sent to the operation platform for storage.

[0006] 2. On-site troubleshooting usually requires technical personnel to take a computer and a large number of packet capturing tools, and can only capture real-time messages after the fault. It does not have real-time data synchronization analysis, real-time data storage and historical data playback functions.

[0007] 3. On-site troubleshooting is usually performed by after-sales service personnel (non-R&D personnel), who generally do not have professional message analysis capabilities. Even if they have analysis capabilities, they also need to manually search from a large number of messages, so the work efficiency of fault analysis is low.

[0008] 4. Occasional faults need to be reproduced for a long time, and it is difficult to reproduce the on-site fault. SUMMARY

[0009] The present application solves the technical problems of the prior art and provides a charging pile internal network message capturing and analyzing method which can reproduce the on-site fault, flexibly embed the conversion protocol, reduce the use threshold of engineering service personnel, and improve the operation and maintenance efficiency of the charging pile.

[0010] The technical scheme adopted by the present application is as follows: the charging pile internal network message grabbing and analyzing method of the present application, wherein the charging pile comprises a billing control unit, a monitoring unit and an execution unit; the charging pile internal network message grabbing and analyzing method comprises the following steps:

[0011] Step 1: one end of the RS232 interface line is connected to the billing control unit, and the other end of the RS232 interface line is connected to the data conversion interface of the portable computer or PC; the connection COM parameter, serial number and baud rate are set;

[0012] Step 2: one end of the CAN-to-Ethernet conversion device is connected to the CAN interface of the monitoring unit and the execution unit through two CAN channels; the conversion device is configured as an Ethernet Socket client through the pin positions of the CAN interface, and the CAN high line (CAN_H) and the CAN low line (CAN_L) are connected respectively;

[0013] Step 3: the other end of the CAN-to-Ethernet conversion device is connected to the portable computer or PC to establish a TCP / IP protocol as a server Socket listening connection, so as to realize the acquisition of the interactive message data of the monitoring unit, the charging module, the switch board, the load board, the execution unit and the vehicle-mounted BMS;

[0014] Step 4: the acquisition unit of the portable computer or PC opens the COM port to enable the acquisition module to establish a connection, and simultaneously opens the Socket listening connection;

[0015] Step 5: the storage module in the acquisition unit stores the sent message in real time; the local message persistence duration is determined according to the hard disk of the portable computer or PC, so as to solve the problem that the single-chip microcomputer of the charging pile cannot store a large amount of exchanged message data, and the device can be used to realize real-time, massive acquisition and long-time continuous persistence of complete internal network interactive messages;

[0016] Step 6: the analysis engine in the acquisition unit converts and analyzes different types of messages; the engine can be flexibly extended and prefabricated according to the protocols corresponding to different manufacturers, different brands and different types of hardware devices, and the received messages can be converted into fault codes, state data and fault names in real time;

[0017] Step 7: the display module in the acquisition unit displays the real-time display results, and can view historical messages, real-time conversion results of messages, scrolling display, start and pause in real time, so as to more quickly analyze and locate problems and greatly reduce the use threshold of engineering service personnel.

[0018] Further, the RS232 interface line and the CAN to Ethernet conversion device form a conversion device unit, and the conversion device unit is used for realizing the interaction of messages among the collection charging control unit, the monitoring unit and the execution unit, and the interaction of messages between the charging control unit and the upper docking operation platform.

[0019] Further, the storage module uses SQLite as the storage message database in step 5, and the maximum database size is limited by the size of the file system, the size of a single database is 140 TB, the large-capacity collection is realized, and the local storage message file is realized, so that the problem of long-time on-site endpoint message capture due to occasional faults is solved.

[0020] Further, in steps 6 and 7, the analysis engine provides a flexible expansion mechanism, the protocol is configurable, the protocol can be flexibly reorganized and adjusted according to the change of the business function, the real-time data synchronization analysis and the historical data playback function are solved, the quick retrieval according to the device type, the time period and the fault point is provided, and the fault analysis work efficiency is improved.

[0021] Further, the data conversion interface is a network interface or a USB interface of a microcomputer host or a PC. BRIEF DESCRIPTION OF DRAWINGS

[0022] Figure 1 is a general structure schematic diagram of the charging pile internal network message capture and analysis method according to the embodiment of the present application;

[0023] Figure 2 is a data line conversion schematic diagram provided by the embodiment of the present application;

[0024] Figure 3 is a principle flow chart of the charging pile internal network message capture and analysis method according to the embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below with reference to the drawings. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0026] I. General structure introduction

[0027] Figure 1 is a general structure schematic diagram of the charging pile internal network message capture and analysis method according to the embodiment of the present application, as shown in Figure 1 , comprising:

[0028] 101-107, for indicating the internal structure components of the charging pile to be collected;

[0029] 201-203, for the conversion device for collecting the internal structure of the charging machine;

[0030] 301, interface for microcomputer host or PC;

[0031] 401~412, software programs for receiving messages, storage, conversion and display;

[0032] Specifically, steps 101~107 represent one or more charging internal collection components; including the charging control unit TCU, the monitoring unit, the execution unit. The monitoring unit is connected to the charging module, the switch board, the load board, etc. below, and the execution unit is directly connected to the vehicle-mounted BMS. The components are described in detail below.

[0033] The charging control unit TCU is the core component of the charging pile management charging process, data provision, display and interaction, remote management, etc. In this case, the internal interaction between the charging control unit TCU and the monitoring unit, and the charging control unit TCU and the monitoring unit execution unit is mainly collected.

[0034] The monitoring unit is mainly collected from the charging module, switch board, load board, etc. connected to the monitoring unit.

[0035] The execution unit is mainly collected from the vehicle-mounted BMS information connected to the execution unit.

[0036] II. Data line conversion line and conversion equipment

[0037] Figure 2 The data line conversion line and conversion equipment provided by the embodiment of the application comprises:

[0038] 201, RS232 is converted into USB data line, and there are ready-made products on the market;

[0039] 202, CAN is converted into Ethernet conversion equipment, and there are ready-made products on the market;

[0040] 301, portable computer or pc hardware interface, referred to as USB port or Ethernet port;

[0041] Specifically, step 201, the RS232 end is connected to the charging control unit TCU, and the other end is connected to the portable computer or pc, which is connected by setting the COM parameters, serial number and baud rate;

[0042] Step 202, CAN is converted into Ethernet conversion equipment, and two-way CAN channel is connected to the monitoring unit and the execution unit can port respectively; through the pin position of the CAN interface, the two pins of CAN_H (CAN high line) and CAN_L (CAN low line) are connected, the parameters are configured, and they are used as Ethernet SOCKET (TCP SERVER) client. The other end is connected with the portable computer or pc of step 301 to establish connection and obtain the interaction message data of each module component.

[0043] III. Introduction to the principle flow chart

[0044] Figure 3 is the principle flow chart of the charging pile intranet message capturing and analyzing method provided by the embodiment of the application, comprising:

[0045] 401, RS232 to USB harness access billing control unit TCU RS232 port;

[0046] 402, RS232 to USB harness, the other end access microcomputer host or PC USB port;

[0047] 403, set COM parameters;

[0048] 404, open COM port, establish link;

[0049] 405, CAN to Ethernet access monitoring unit, execution unit CAN port;

[0050] 406, access microcomputer host or PC Ethernet port;

[0051] 407, set parameters with TCP Server as Socket;

[0052] 408, open Socket for listening;

[0053] 409, open the collection module to receive messages in real time;

[0054] 410, the storage module stores the sent messages in real time;

[0055] 411, the analysis engine converts and analyzes according to different types of messages;

[0056] 412, the display module displays the results in real time according to the conversion;

[0057] Specifically, in steps 401 and 402, the RS232 to USB harness RS232 port accesses the billing control unit TCU corresponding RS232 port, and the other end USB accesses the microcomputer host or PC USB port;

[0058] In steps 403 and 404, open the case invention software, set the connection COM parameters: serial number (default COM1), baud rate (default 9600), open the COM port, establish the link, after successful connection, open the collection module to receive messages in real time at 409, and the billing control unit TCU message and the interactive message between the billing control unit TCU and the upper docking operation platform can be obtained in real time;

[0059] In steps 405 and 406, the CAN-to-Ethernet conversion device uses two CAN channels to access the monitoring unit and the execution unit, respectively, wherein one channel accesses the monitoring unit through two CAN_H (CAN high line) and CAN_L (CAN low line) pins of the CAN port.

[0060] The other channel accesses the execution unit through two CAN_H (CAN high line) and CAN_L (CAN low line) pins of the CAN port.

[0061] The CAN-to-Ethernet conversion device parameters are configured and used as an Ethernet SOCKET (TCP SERVER) client. Then, one end of a network cable is connected to the Ethernet port of the CAN-to-Ethernet conversion device, and the other end is connected to the Ethernet port of a microcomputer host or PC.

[0062] In steps 407 and 408, the parameters of the TCP Server are set as a Socket, and the Socket is opened for listening.

[0063] In step 409, the collection module is opened to receive real-time messages. The COM port message comes from the billing control unit TCU, and the SOCKET port receives messages from the monitoring unit and the execution unit. The messages are classified and stored according to the message header.

[0064] In step 410, the storage module stores the uploaded messages in real time. The storage capacity is determined by the hard disk space of the microcomputer host or PC. The storage module uses SQLite as the storage message database. SQLite is installation-free, and the maximum database size is limited by the size of the file system. The size of a single database is 140 TB, realizing large-capacity storage.

[0065] In step 411, the analysis engine converts and analyzes different types of messages. According to different manufacturers, different brands, and different types of hardware devices, the protocol is flexibly expanded and prefabricated. The received messages can be converted into fault codes, state data, and fault names in real time.

[0066] In step 412, the display module displays the real-time results after conversion. According to the conversion results in step 411, the messages are converted into JSON format text, and the messages and conversion results are displayed in real time. The start and pause buttons can control the display mode of the messages and the historical data playback function.

[0067] The beneficial effects of the present application are as follows:

[0068] 1. The device can be used to collect and persist the complete internal network interaction message in real time, mass and long time, especially for the occasional failure, which solves the problem of long time on-site endpoint and the difficulty of reproducing the on-site failure, and provides important data support for troubleshooting and analysis.

[0069] 2. The built-in and flexible protocol analysis engine solves the problem of different manufacturers, different brands, different types of hardware devices and protocols, so that technical personnel can flexibly build-in conversion protocols.

[0070] 3. The device can real-time or view historical message, message real-time conversion result, scroll display, start, pause, more quickly analyze and locate the problem, and greatly reduce the use threshold of engineering service personnel.

[0071] 4. The device can quickly and automatically complete the fault analysis work without carrying other tools, find the fault reason, and improve the operation and maintenance efficiency of the charging pile.

[0072] Although the embodiments of the present application are described in actual schemes, but do not constitute a limitation on the meaning of the present application, and for those skilled in the art, the modification of the embodiments according to the present application and the combination with other schemes are obvious.

Claims

1. A method for charging pile internal network message capturing and analyzing, wherein the charging pile comprises a billing control unit, a monitoring unit and an execution unit; characterized in that: The charging pile intranet message grabbing and analyzing method comprises the following steps: Step 1: One end of the RS232 interface line is connected to the billing control unit, and the other end of the RS232 interface line is connected to the data conversion interface of the portable computer or PC, and the connection COM parameter, serial number and baud rate are set; Step 2: One end of the CAN-to-Ethernet conversion device uses two CAN channels to access the CAN interface of the monitoring unit and the execution unit, respectively, through the pin positions of the CAN interface, connects the CAN high line (CAN_H) and the CAN low line (CAN_L) two pins, configures the parameters on the CAN-to-Ethernet conversion device, and takes the CAN-to-Ethernet conversion device as a Socket client; Step 3: The other end of the CAN-to-Ethernet conversion device is connected to the portable computer or PC through the network cable, and a Socket server listener is established, and the interactive message data of the monitoring unit, the charging module, the switch board, the load board, the execution unit and the vehicle-mounted BMS is obtained; Step 4: Open the acquisition module to receive the interactive message data in real time; Step 5: The storage module in the acquisition unit stores the sent message in real time; the local message persistence duration is determined according to the hard disk of the portable computer or PC; Step 6: The analysis engine in the acquisition unit analyzes the interactive message data; the analysis engine flexibly extends the protocols corresponding to different manufacturers, different brands and different types of hardware devices, and converts the received interactive message data into fault codes, state data and fault names in real time; Step 7: The display module in the acquisition unit is used to display the conversion results in real time, and the historical messages and real-time conversion results can be viewed in real time or in different time periods according to the selected different device types, and scrolling viewing is supported, and starting scrolling or pausing scrolling is also supported.

2. The charging pile internal network message capturing and analyzing method according to claim 1, characterized in that: The RS232 interface line and the CAN-to-Ethernet conversion device form a conversion device unit, which collects the interactive messages between the billing control unit, the monitoring unit and the execution unit, and the interactive messages between the billing control unit and the upper-level docking operation platform.

3. The charging pile internal network message capturing and analyzing method according to claim 1, characterized in that: In step 5, the storage module uses SQLite as a storage message database, and the maximum database size is limited by the size of the file system, and the size of a single database is 140 TB, which realizes local large-capacity storage of message files and solves the problem of long-term on-site endpoint message grabbing for occasional faults.

4. The charging pile internal network message capturing and analyzing method according to claim 1, characterized in that: In steps 6 and 7, the analysis engine provides a flexible expansion mechanism, which can flexibly reorganize and adjust the protocol according to the changes of business functions, realize real-time data synchronization analysis and historical data playback function, and improve the work efficiency of fault analysis.

5. The charging pile internal network message capturing and analyzing method according to claim 1, characterized in that: The data conversion interface is the network interface or USB interface of the microcomputer host or PC.

Citation Information

Patent Citations

  • System and method for connecting DC charging piles to charging facility operation management platform

    CN106920033A

  • Charging process monitoring and analyzing system and method for electric vehicle charging pile

    CN114125585A