Charging pile intranet message capturing and analyzing method

By using the RS232 interface and CAN to Ethernet conversion equipment in the charging pile, combined with a portable computer or PC for real-time data acquisition and analysis, the problem of low efficiency in charging pile failure analysis is solved, real-time message collection and historical data playback are realized, and fault location and resolution efficiency is improved.

CN119788553AActive Publication Date: 2025-04-08ZHUHAI TITANS TECH
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently analyze faults in charging piles, especially occasional faults are difficult to reproduce, and technicians need to carry a large number of tools for on-site inspection, which is inefficient.

Method used

Through the RS232 interface and CAN to Ethernet conversion device, the charging control unit, monitoring unit and execution unit of the charging pile are connected, and real-time data collection, storage and analysis are used for real-time data acquisition, storage and analysis, real-time capture of intranet messages and playback of historical data.

Benefits of technology

Real-time collection and long-term persistence of intranet messages of charging piles are realized, which reduces the threshold for use by technicians, improves the efficiency of fault analysis, and can quickly locate and solve the fault problems of charging piles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788553A_ABST
    Figure CN119788553A_ABST
Patent Text Reader

Abstract

The invention discloses and provides a charging pile intranet message capturing and analyzing method which can reproduce field faults and flexibly build-in a conversion protocol and the like. The method comprises the following steps: step 1, one end of an RS232 interface line is connected with a charging control unit, and the other end of the RS232 interface line is connected with a data conversion interface; step 2, one end of the CAN-to-Ethernet conversion equipment uses two CAN channels to access CAN interfaces of the monitoring unit and the execution unit respectively; step 3, the other end of the CAN-to-Ethernet conversion equipment establishes Socket monitoring connection with a portable computer or a PC (Personal Computer) by taking a TCP / IP (Transmission Control Protocol / Internet Protocol) as a server; step 4, an acquisition unit of the portable computer or the PC opens a COM port to enable the acquisition module to establish connection; step 5, a storage module in the acquisition unit stores the reported message in real time; step 6, an analysis engine in the acquisition unit performs conversion analysis according to different types of messages; and 7, a display module in the acquisition unit displays a result in real time according to the converted result. The method 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 invention relates to a method for capturing and parsing intranet messages, and in particular to a method for capturing and parsing intranet messages of a charging pile. Background Art

[0002] The internal structure of the charging pile integrates a large number of hardware devices and protocol docking from different manufacturers, brands and types. When debugging and verifying the charging program before leaving the factory and troubleshooting on-site faults, it is often necessary to intercept, analyze and locate the interactive messages between the modules inside the charging pile.

[0003] The charging pile operator's technicians are required to go to the site to locate, analyze and solve the charging fault problem. However, for the location analysis of the charging fault problem, the technicians usually need to bring a computer and a lot of packet capture tools, and can only capture the message after the fault, manually retrieve the original message or collect the message and give it to the R&D personnel to analyze the fault node. For occasional faults, it takes a long time to be on site, and it is difficult to reproduce the on-site fault. This troubleshooting method leads to extremely low efficiency of fault analysis.

[0004] The above method has the following problems: 1. The interaction frequency between the internal modules of the charging pile is at the millisecond level. The storage capacity of the charging pile microcontroller is small and cannot store a large amount of data. The massive interactive message data cannot be sent to the operation platform for storage.

[0005] 2. On-site troubleshooting usually requires technicians to bring computers and a large number of packet capture tools, which can only capture real-time messages after the failure. It does not have the function of real-time data synchronization analysis, real-time data storage, and historical data playback.

[0006] 3. On-site troubleshooting is usually done by after-sales service personnel (not R&D personnel), who generally do not have the ability to professionally analyze messages. Even if they have the ability to analyze, they still need to manually search through a large number of messages, which makes the fault analysis work inefficient.

[0007] 4. Occasional failures require long-term on-site monitoring, and it is difficult to reproduce the on-site failure. Summary of the invention

[0008] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a charging pile intranet message capture and analysis method that can reproduce on-site faults, has flexible built-in conversion protocols, can lower the usage threshold for engineering service personnel, and can improve the operation and maintenance efficiency of charging piles.

[0009] The technical solution adopted by the present invention is: the charging pile intranet message capture and analysis method of the present invention, wherein the charging pile includes a billing control unit, a monitoring unit and an execution unit; the charging pile intranet message capture and analysis method includes the following steps: Step 1: Connect one end of the RS232 interface line to the billing control unit, and the other end of the RS232 interface line to the data conversion interface of the portable computer or PC, and set the connection COM parameters, serial port number, and baud rate; Step 2: One end of the CAN to Ethernet conversion device uses two CAN channels to connect to the CAN interfaces of the monitoring unit and the execution unit respectively. Through the pin position of the CAN interface, connect the CAN high line (CAN_H) and the CAN low line (CAN_L) pins respectively, convert the device configuration parameters, and act as an Ethernet Socket client; Step 3: The other end of the CAN to Ethernet conversion device establishes a Socket listening connection with a portable computer or PC using the TCP / IP protocol as the server to obtain the interactive message data between the monitoring unit, charging module, switch board, load board, execution unit and the vehicle-mounted BMS; Step 4: The acquisition unit of the portable computer or PC opens the COM port to establish a connection with the acquisition module, and opens the Socket to monitor the connection; Step 5: The storage module in the acquisition unit stores the sent messages in real time; the local message persistence duration is determined according to the hard disk of the portable computer or PC, which solves the problem that the charging pile microcontroller cannot store a large amount of exchange message data locally. The device can be used to collect and persist complete intranet interaction messages in real time and in large quantities for a long time; Step 6: The parsing engine in the acquisition unit converts and parses messages of different types; the engine can be flexibly expanded and prefabricated according to the protocols corresponding to different manufacturers, brands, and types of hardware devices, and the received messages can be converted into fault codes, status data, and fault names in real time; Step 7: The display module in the acquisition unit displays the results in real time after conversion. Historical messages can be viewed in real time, by device type or time period. The message conversion results are displayed in real time, and scrolling, starting and pausing can be performed to analyze and locate problems more quickly, greatly reducing the threshold for use by engineering service personnel.

[0010] Furthermore, the RS232 interface line and the CAN to Ethernet conversion device form a conversion device unit, through which 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 superior docking operation platform are collected.

[0011] Furthermore, in step 5, the storage module uses SQLite as the message database. The maximum database size is limited by the size of the file system. The size of a single database is 140 TB. This enables local storage of message files after large-capacity collection, solving the problem of occasional failures requiring long-term endpoint capture of messages on site.

[0012] Furthermore, in steps 6 and 7, the parsing engine provides a flexible expansion mechanism and a configurable protocol, which can be flexibly reorganized and adjusted as business functions change, solving the functions of real-time data synchronization parsing and historical data playback, and providing rapid retrieval based on device type, time period, fault point, etc., thereby improving the efficiency of fault analysis work.

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

[0014] Figure 1 It is a schematic diagram of the overall structure of the method for capturing and parsing messages in the charging pile intranet implemented by the present invention; Figure 2 The present invention provides a schematic diagram of data line conversion; Figure 3 It is a principle flow chart of the method for capturing and parsing charging pile intranet messages implemented by the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation methods described herein are only used to explain the present invention and are not used to limit the present invention.

[0016] 1. Introduction to the overall structure Figure 1 FIG. 1 is a schematic diagram of the overall structure of the method for capturing and parsing messages in the charging pile intranet implemented by the present invention. Figure 1 As shown, including: 101 to 107 represent the internal structural components of the charging pile to be collected; 201~203 are conversion devices for collecting information of the internal structure of the charger; 301, an interface for a microcomputer host or a PC; 401~412 are software programs for receiving messages, storing, converting and displaying; Specifically, steps 101 to 107 represent one or more charging internal data collection components, including a charging control unit TCU, a monitoring unit, and an execution unit. The monitoring unit is connected to the charging module, switch board, load board, etc., and the execution unit is directly connected to the vehicle-mounted BMS. The components are described in detail below.

[0017] The charging control unit TCU is the core component of the charging pile for managing the charging process, providing data, displaying and interacting, and remote management. In this case, the main data collected are the internal interactions between the charging control unit TCU and the monitoring unit, and between the charging control unit TCU and the execution unit of the monitoring unit.

[0018] The data collection and monitoring unit mainly collects data from the charging module, switch board, load board, etc. connected to the monitoring unit.

[0019] The collection execution unit mainly collects the vehicle BMS information connected to the execution unit.

[0020] 2. Data line conversion cable and conversion equipment Figure 2 The data line conversion line and conversion device provided by the present invention include: 201, for converting RS232 to USB data cable, there are ready-made products on the market; 202, a CAN to Ethernet conversion device, which is available on the market; 301, a general term for the hardware interface of a portable computer or PC, refers to a USB port or an Ethernet port; Specifically, in 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 by setting the connection COM parameters, serial port number, and baud rate; Step 202, CAN to Ethernet conversion equipment, use two CAN channels to access the monitoring unit and the execution unit CAN port respectively; through the pin position of the CAN interface, CAN_H (CAN high line) and CAN_L (CAN low line) two pins are wired, parameters are configured, and it acts as an Ethernet SOCKET (TCP SERVER) client. The other end establishes a connection with the portable computer or PC in step 301 to obtain the interactive message data of each module component.

[0021] 3. Principle Flowchart Introduction Figure 3 The present invention provides a principle flow chart of a method for capturing and parsing messages in a charging pile intranet, including: 401, RS232 to USB harness connected to TCURS232 port of charging control unit; 402, RS232 to USB harness, the other end is connected to the USB port of microcomputer host or PC; 403, set COM parameters; 404, open the COM port and establish a link; 405, CAN to Ethernet access monitoring unit, execution unit CAN port; 406, access to the Ethernet port of the microcomputer host or PC; 407, use TCP Server as the socket setting parameter; 408, open the socket for listening; 409, open the collection module to receive messages in real time; 410, the storage module stores the sent message in real time; 411, the parsing engine converts and parses messages according to different types; 412, the display module displays the result in real time according to the conversion; Specifically, in steps 401 and 402, the RS232 port of the RS232 to USB harness is connected to the corresponding RS232 port of the charging control unit TCU, and the other end of the USB is connected to the USB port of the microcomputer host or PC; In steps 403 and 404, the software of the present invention is opened, and the connection COM parameters are set: serial port number (COM1 by default), baud rate (9600 by default), the COM port is opened, and a link is established. After the connection is successful, the acquisition module is opened in 409 to receive messages in real time, so that the TCU messages of the charging control unit and the interactive messages between the TCU and the upper-level docking operation platform can be obtained in real time; In steps 405 and 406, the CAN to Ethernet conversion device uses two CAN channels to access the monitoring unit and the execution unit CAN ports respectively, one of which is through two pins CAN_H (CAN high line) and CAN_L of the CAN port.

[0022] (CAN low line) is connected to the monitoring unit, and the other way is also through the two pins CAN_H (CAN high line) of the CAN port Connect the CAN_L (CAN low line) to the execution unit. Configure the CAN to Ethernet conversion device parameters and act as an Ethernet SOCKET (TCP SERVER) client. Then, through the network cable, connect one end to the Ethernet port of the CAN to Ethernet device and the other end to the Ethernet port of the microcomputer host or PC; In steps 407 and 408, TCP Server is used as the socket setting parameter and the socket is opened for monitoring; In step 409, the collection module is turned on to receive messages in real time. The COM port messages come from the charging control unit TCU, and the SOCKET port receives messages from the monitoring unit and the execution unit, and the messages are classified and stored according to the message headers sent up. In step 410, the storage module stores the sent messages in real time. The number of days that can be stored is determined according to the hard disk space size of the microcomputer host or PC. The storage module uses SQLite as a message storage database. SQLite is free to install. The maximum database size is limited by the size of the file system. The size of a single database is 140 TB, which realizes large-capacity storage. In step 411, the parsing engine converts and parses different types of messages, and flexibly expands and prefabricates the protocols corresponding to different manufacturers, different brands, and different types of hardware devices. The received messages can be converted into fault codes, status data, fault names, etc. in real time; In step 412, the display module displays the result in real time according to the conversion; according to the result after the conversion in step 411, it is converted into JSON format text, and the message and the conversion result are scrolled and displayed in real time. The start and pause buttons can control the display mode of the message and the historical data playback function; Beneficial effects of the present invention: 1. It solves the problem that the charging pile microcontroller cannot store a large amount of exchanged message data locally. This device can be used to collect and store complete intranet interactive messages in real time and in large quantities for a long time, especially occasional failures. It can solve the problem that requires long-term on-site endpoints and is difficult to reproduce on-site failures, providing important data support for troubleshooting, analyzing and locating problems.

[0023] 2. Built-in and flexibly expandable protocol parsing engine solves the problems of hardware devices and protocols from different manufacturers, brands and types, allowing technicians to flexibly convert protocols.

[0024] 3. You can view real-time or historical messages, real-time message conversion results, scrolling display, start, and pause, which makes it easier to analyze and locate problems, greatly reducing the threshold for engineering service personnel to use it.

[0025] 4. It solves the problem that technicians can quickly and automatically complete fault analysis without carrying other tools, find the cause of the fault, and improve the efficiency of charging pile operation and maintenance.

[0026] Although the embodiments of the present invention are described with practical solutions, they do not constitute limitations on the meaning of the present invention. For those skilled in the art, it is obvious to modify the implementation scheme and combine it with other solutions based on this description.

Claims

1. A method for capturing and parsing messages in an intranet of a charging pile, wherein the charging pile comprises a charging control unit, a monitoring unit and an execution unit; characterized in that: The charging pile intranet message capture and analysis method comprises the following steps: Step 1: Connect one end of the RS232 interface line to the billing control unit, and the other end of the RS232 interface line to the data conversion interface of the portable computer or PC, and set the connection COM parameters, serial port number, and baud rate; Step 2: One end of the CAN to Ethernet conversion device uses two CAN channels to connect to the CAN interfaces of the monitoring unit and the execution unit respectively. Through the pin position of the CAN interface, connect the CAN high line (CAN_H) and the CAN low line (CAN_L) pins respectively, convert the device configuration parameters, and act as an Ethernet Socket client; Step 3: The other end of the CAN to Ethernet conversion device establishes a Socket listening connection with a portable computer or PC using the TCP / IP protocol as the server to obtain the interactive message data between the monitoring unit, charging module, switch board, load board, execution unit and the vehicle-mounted BMS; Step 4: The acquisition unit of the portable computer or PC opens the COM port to establish a connection with the acquisition module, and opens the Socket to monitor the connection; Step 5: The storage module in the acquisition unit stores the sent messages in real time; the local message persistence duration is determined according to the hard disk of the portable computer or PC, which solves the problem that the charging pile microcontroller cannot store a large amount of exchange message data locally. The device can be used to collect and persist complete intranet interaction messages in real time and in large quantities for a long time; Step 6: The parsing engine in the acquisition unit converts and parses messages of different types; the engine can be flexibly expanded and prefabricated according to the protocols corresponding to different manufacturers, brands, and types of hardware devices, and the received messages can be converted into fault codes, status data, and fault names in real time; Step 7: The display module in the acquisition unit displays the results in real time after conversion. Historical messages can be viewed in real time, by device type or time period. The message conversion results can be scrolled, started, and paused in real time, allowing for faster analysis and positioning of problems, greatly reducing the threshold for use by engineering service personnel.

2. A charging pile intranet message capture and analysis method according to claim 1, characterized in that: The RS232 interface line and the CAN to Ethernet conversion device form a conversion device unit, through which the interactive messages between the billing control unit, the monitoring unit, and the execution unit, as well as the interactive messages between the billing control unit and the superior docking operation platform are collected.

3. A charging pile intranet message capture and analysis method according to claim 1, characterized in that: In step 5, the storage module uses SQLite as the message database. The maximum database size is limited by the size of the file system. The size of a single database is 140 TB. This enables local storage of message files after large-capacity collection, solving the problem of occasional failures requiring long-term on-site endpoint capture of messages.

4. A charging pile intranet message capture and analysis method according to claim 1, characterized in that: In steps 6 and 7, the parsing engine provides a flexible expansion mechanism and a configurable protocol. It can flexibly reorganize and adjust the protocol as business functions change, solve the real-time data synchronization parsing and historical data playback functions, and provide fast retrieval based on device type, time period, fault point, etc., thereby improving the efficiency of fault analysis work.

5. A charging pile intranet message capture and analysis method according to claim 1, characterized in that: The data conversion interface is a network interface or a USB interface of a microcomputer host or a 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

  • Charging pile safety monitoring module

    CN114360191A