A method and system for processing a charging message according to the european standard, and a charging system

By acquiring and parsing European and American standard charging messages, determining the charging type flag and message type, the problem of parsing and encapsulating European and American standard charging messages is solved, thus achieving accuracy and reliability in the charging process.

CN119906766BActive Publication Date: 2026-05-12XIAN LINCHR NEW ENERGY TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAN LINCHR NEW ENERGY TECH CO LTD
Filing Date
2025-01-07
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

现有技术无法有效解析和封装欧美标充电报文,导致充电异常时无法及时排查故障,影响充电桩的可靠性。

Method used

By acquiring the charging messages between the charging pile and the electric vehicle, the charging type flag and message type are determined, and the corresponding parsing method is used for parsing. The parsed charging messages are then statistically analyzed and encapsulated to provide the encapsulated messages.

Benefits of technology

It improves the accuracy of charging message parsing, enabling timely detection of abnormalities during the charging process, and enhancing the reliability of charging piles and the efficiency of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906766B_ABST
    Figure CN119906766B_ABST
Patent Text Reader

Abstract

The application discloses a Europe-America standard charging message processing method and system and a charging system, relates to the technical field of data processing, and aims to solve the problem of how to realize the analysis and packaging of Europe-America standard charging messages. The method comprises the following steps: acquiring charging messages between a charging pile and an electric vehicle; the charging pile is a Europe standard charging pile or an America standard charging pile; determining charging type flag bits and message types in original data based on the charging messages; obtaining analyzed charging messages by using an analysis mode corresponding to the message types; performing statistics on the analyzed charging messages, and recording statistical information of each frame of message; and packaging the analyzed charging messages and the statistical information to obtain packaged messages. The method realizes the analysis and packaging of Europe-America standard charging messages through classified processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and provides a method and system for processing European and American standard charging messages, as well as a charging system. Background Technology

[0002] In recent years, with the increasing global demand for environmental protection, continuous innovation in electrification technology, and growing consumer interest in low-carbon travel, electric vehicles meeting European and American standards have continued to develop rapidly and are gradually entering the Chinese market.

[0003] The charging and discharging process of electric vehicles conforming to European and American standards is complex. Most existing technologies have only implemented the charging process of electric vehicles conforming to European and American standards in different ways. When charging abnormalities occur, due to geographical limitations abroad, the original charging data cannot be parsed and encapsulated.

[0004] Therefore, how to parse and encapsulate charging messages according to European and American standards is an urgent problem to be solved. Summary of the Invention

[0005] The main purpose of this application is to provide a method and system for processing European and American standard charging messages, as well as a charging system, which aims to solve the problem of how to parse and encapsulate European and American standard charging messages.

[0006] Firstly, this application provides a method for processing European and American standard charging messages, applied in a European and American standard charging message processing system, the method comprising:

[0007] Obtain charging messages between the charging pile and the electric vehicle; the charging pile is a European standard charging pile or an American standard charging pile.

[0008] Based on the charging message, determine the charging type flag and message type in the original data;

[0009] The parsed charging message is obtained by using the parsing method corresponding to the message type;

[0010] The parsed charging messages are statistically analyzed, and the statistical information for each frame is recorded:

[0011] The parsed charging message and the statistical information are encapsulated to obtain the encapsulated message.

[0012] Optionally, obtaining the charging message between the charging pile and the electric vehicle includes:

[0013] Collect all messages between the charging station and the electric vehicle;

[0014] According to preset filtering conditions, all messages are filtered to obtain the charging message; the filtering conditions include Internet protocol as IPv6 and transport layer protocol as TCP.

[0015] Optionally, determining the charging type flag and message type in the original data based on the charging message includes:

[0016] Based on the charging message, determine the charging type flag bit in the original data;

[0017] If the charging type flag is less than 2, then the message type is determined to be a charging protocol message;

[0018] If the charging type flag is greater than or equal to 2, then the message type is determined to be a V2G message.

[0019] Optionally, obtaining the parsed charging message using the parsing method corresponding to the message type includes:

[0020] If the message type is a charging protocol message, then the parsed charging message is obtained based on the fields in the original data; the parsed charging message includes the charging protocol type, version information, and priority information.

[0021] Optionally, obtaining the parsed charging message using the parsing method corresponding to the message type includes:

[0022] If the message type is a V2G message, then the protocol type used by the charging message is determined according to the protocol identifier field in the original data; the protocol type is either DIN protocol or ISO protocol.

[0023] According to the protocol specification corresponding to the protocol type, the original data is parsed to obtain the parsed charging message.

[0024] Optionally, if the charging message is a communication session request message, then the parsed charging message includes a session identifier and the controller identifier of the electric vehicle;

[0025] If the charging message is a communication session response message, then the parsed charging message includes the TCP session establishment result, session identifier, system time, and identifier of the charging pile.

[0026] Optionally, after statistically analyzing and recording the parsed charging messages, the method further includes:

[0027] Based on the search information input by the user, at least one target message that meets the search information is selected from the parsed charging messages;

[0028] The at least one target message is sorted and displayed according to a preset rule; the preset rule is a time sequence rule or a character encoding rule.

[0029] Optionally, after encapsulating the parsed charging message and the statistical information to obtain the encapsulated message, the method further includes:

[0030] The interface for sending and receiving encapsulated messages;

[0031] Call the sending function interface corresponding to the encapsulated message to forward the encapsulated message;

[0032] When any message is received, the receiving function interface corresponding to that message is automatically triggered.

[0033] Secondly, this application also provides a European and American standard charging message processing system, including:

[0034] The acquisition module is used to acquire charging messages between the charging pile and the electric vehicle; the charging pile is a European standard charging pile or an American standard charging pile.

[0035] The parsing module is used to determine the charging type flag and message type in the original data based on the charging message; and to obtain the parsed charging message using the parsing method corresponding to the message type.

[0036] An integration module is used to perform statistics on the parsed charging messages, record the statistical information of each frame of the message, and encapsulate the parsed charging messages and the statistical information to obtain the encapsulated messages.

[0037] Thirdly, this application also provides a charging system, comprising:

[0038] Charging stations;

[0039] As described in the second aspect, the European and American standard charging message processing system;

[0040] The charging pile is connected to the electric vehicle to charge the electric vehicle, and the European and American standard charging message processing system is connected between the charging pile and the electric vehicle.

[0041] Compared with the prior art, the beneficial effects of this application are as follows:

[0042] In this application, charging messages between a charging pile and an electric vehicle are obtained; the charging pile is a European standard charging pile or an American standard charging pile; the charging type flag and message type in the original data are determined based on the charging message; the parsed charging message is obtained by using the parsing method corresponding to the message type; the parsed charging message is statistically analyzed and the statistical information of each frame of the message is recorded; the parsed charging message and the statistical information are encapsulated to obtain the encapsulated message.

[0043] This application employs a classification process to parse and encapsulate charging messages according to European and American standards. The message type is determined based on a charging type flag, ensuring that different message types are parsed using the correct method. This avoids parsing errors and improves parsing accuracy. The parsed charging messages and statistical information are then encapsulated. Based on these parsed messages and accurate statistical information, anomalies during the charging process of electric vehicles (such as message loss or protocol incompatibility) can be analyzed, enabling timely troubleshooting and maintenance, and improving the reliability of charging stations. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0045] Figure 1 A flowchart illustrating a European and American standard charging message processing method provided in an embodiment of this application;

[0046] Figure 2 A schematic diagram of the data parsing process provided for embodiments of this application;

[0047] Figure 3 A schematic diagram of the message retrieval process provided for embodiments of this application;

[0048] Figure 4 A flowchart illustrating the online mode European and American standard charging message processing method provided in this application embodiment. Figure 1 ;

[0049] Figure 5 A flowchart illustrating the offline mode European and American standard charging message processing method provided in this application embodiment. Figure 2 ;

[0050] Figure 6 This is a schematic diagram of the European and American standard charging message processing system according to an embodiment of this application.

[0051] The diagram is labeled as follows: 600 - European and American standard charging message processing device, 610 - acquisition module, 620 - parsing module, 630 - integration module, 640 - retrieval module. Detailed Implementation

[0052] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0053] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.

[0054] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0055] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0056] This application provides a method for processing European and American standard charging messages, which can be executed by a European and American standard charging message processing system. Figure 1 A flowchart illustrating a European and American standard charging message processing method provided in this application embodiment is shown below. Figure 1 As shown, the European and American standard charging message processing method may include the following steps:

[0057] S110, Obtain charging messages between the charging pile and the electric vehicle;

[0058] When an electric vehicle connects to a charging station and begins charging, the charging station and the electric vehicle exchange message data through a specific communication protocol, transmitting charging status, parameters, and control commands. The charging station can be a European standard charging station, an American standard charging station, or a charging station compatible with both European and American standards. European and American standards represent the mainstream standards for electric vehicle charging in Europe and North America, respectively, and they differ in terms of interface, voltage, power, and communication protocols.

[0059] Specifically, it can collect charging messages between charging piles and electric vehicles in real time, or it can collect and store charging messages between charging piles and electric vehicles in advance, and obtain the charging messages between charging piles and electric vehicles by opening the corresponding file.

[0060] S120. Determine the charging type flag and message type in the original data based on the charging message.

[0061] Specifically, a complete charging message consists of four parts: the data link layer, the IP layer, the TCP layer, and the data layer. The raw data of the data layer is extracted from the charging message, and then the charging type flag and message type in the raw data are determined.

[0062] S130. Obtain the parsed charging message using the parsing method corresponding to the message type.

[0063] Specifically, the original data is parsed using the parsing method corresponding to the message type, and each frame of original data is parsed into a specific message signal. The specific parsing process can be found in the description of the subsequent embodiments, which will not be elaborated here.

[0064] S140. Perform statistics on the parsed charging messages and record the statistical information of each frame.

[0065] Specifically, the parsed charging messages are statistically analyzed, and the statistical information for each frame is recorded. This information includes the transmission period, start time, and end time of each frame. Since the transmission period for each frame may be different, the maximum, minimum, and average values ​​of the transmission period can also be calculated.

[0066] S150. Encapsulate the parsed charging message and statistical information to obtain the encapsulated message.

[0067] Specifically, the parsed charging message and statistical information are packaged into a complete message structure to obtain the encapsulated message.

[0068] In one possible embodiment, the specific steps of S110 include:

[0069] Collect all messages between the charging station and the electric vehicle;

[0070] All messages are filtered according to preset filtering conditions to obtain charging messages; the filtering conditions include Internet protocol as IPv6 and transport layer protocol as TCP.

[0071] In practical implementation, this European and American standard charging message processing method can be applied to a European and American standard charging message processing system. This system includes a data acquisition unit and other functional components. The data acquisition unit, connected between the charging pile and the electric vehicle, collects messages between them in real time. It obtains a list of local network devices by searching the device interface, selects the network interface card (NIC) adapter connected to the data acquisition unit, and uses Wireshark to capture all messages passing through that NIC adapter, such as IPv4 and IPv6 TCP, IPv4 and IPv6 UDP, and HomePlug messages for PLCs. All messages are in pcap format. By pre-setting filtering conditions—specifically, the Internet protocol being IPv6 and the transport layer protocol being TCP (e.g., "ip6proto\\tcp")—the data acquisition unit can only receive IPv6 TCP messages, i.e., charging messages between the charging pile and the electric vehicle, and then send these messages to other functional components of the European and American standard charging message processing system for further processing.

[0072] In this embodiment, filtering conditions are used to quickly filter out charging packets between charging piles and electric vehicles from a large amount of network traffic by selecting IPv6 TCP packets. This can greatly reduce irrelevant communication data, focus on the actual charging process between charging piles and electric vehicles, narrow the scope of analysis, and thus improve data processing efficiency and accuracy.

[0073] In one possible embodiment, the specific steps of S120 include:

[0074] Determine the charging type flag bit in the original data based on the charging message;

[0075] If the charging type flag is less than 2, the message type is determined to be a charging protocol message;

[0076] If the charging type flag is greater than or equal to 2, the message type is determined to be a V2G message.

[0077] In practice, the raw data of the data layer can be extracted from the charging message. This raw data includes a charging type flag, which can be used to determine whether the charging message is a charging protocol message or a V2G message. A charging protocol message refers to protocol data between the electric vehicle and the charging station, while a V2G message refers to communication data between the electric vehicle and the charging station. When the charging type flag is less than 2, the message type is a charging protocol message; otherwise, it is a V2G message.

[0078] In this embodiment of the application, by analyzing whether the charging type flag bit is less than 2, the message type can be accurately identified as a charging protocol message or a V2G message, which helps to adopt the correct parsing method in the future and further improve the accuracy of data parsing.

[0079] In one possible embodiment, the specific steps of S130 include:

[0080] If the message type is a charging protocol message, the parsed charging message is obtained based on the fields in the original data; the parsed charging message includes the charging protocol type, version information, and priority information.

[0081] In the specific implementation process, if the message type is a charging protocol message, the charging protocol type field can be directly extracted from the original data to determine whether the charging protocol type is the German Institute for Standardization (DIN) protocol or the International Organization for Standardization (ISO) protocol.

[0082] Then, the version field can be extracted from the raw data to obtain version information, including major and minor versions. The major version indicates that the software has undergone a major update or refactoring, while the minor version indicates that new features have been added to the software, which may be extensions compatible with existing features. For example, the major version is 2 and the minor version is 0.

[0083] Finally, priority fields can be extracted from the raw data to obtain priority information. When a vehicle requests a charging protocol, if the vehicle supports both DIN and ISO standards, the charging station determines which standard to use for this charging based on the priority of the requested protocol. If the priority of the DIN standard is 1 and the priority of the ISO standard is 2, then the ISO standard will be used for this charging.

[0084] In this embodiment of the application, the parsed charging message contains clear message field information, making the operating status of the charging system more transparent. Maintenance personnel or operation and maintenance systems can clearly understand the specific content of each message, thereby better performing fault diagnosis and system optimization.

[0085] In one possible embodiment, the specific steps of S130 include:

[0086] If the message type is V2G, the protocol type used in the charging message is determined based on the protocol identifier field in the original data; the protocol type is either DIN protocol or ISO protocol.

[0087] Based on the protocol specifications corresponding to the protocol type, the raw data is parsed to obtain the parsed charging message.

[0088] In the specific implementation process, if the message type is a V2G message, the protocol identifier field is extracted from the raw data to determine whether the charging message uses the DIN or ISO protocol. If the charging message uses the DIN protocol, the raw data is parsed according to the corresponding DIN protocol specification to obtain the parsed charging message. If the charging message uses the ISO protocol, the raw data is parsed according to the corresponding ISO protocol specification to obtain the parsed charging message.

[0089] In this embodiment, V2G communication involves complex data exchange between electric vehicles and charging stations. Different protocols (DIN and ISO protocols) employ different field formats and encoding rules. When the message type is a V2G message, the protocol type is determined by the protocol identifier field, and then the message is parsed according to the corresponding protocol specification. This ensures that each data field in the message is correctly understood and processed. Otherwise, if an incompatible parsing rule is used incorrectly, it may lead to data loss, misunderstanding, or message parsing failure.

[0090] It should be noted that V2G messages include stages such as session setup, service discovery, authorization and authentication, parameter matching, insulation detection, pre-charging and energy transfer, adhesion check, and session termination. Each message group consists of a data pair of request (Req) and response (Res) messages. The electric vehicle initiates the request message, and the charging station replies with a response message until the current charging process is completed. The data identifier in the raw data can determine whether the current charging message is a request or response message from a specific message group.

[0091] In one possible embodiment, if the charging message is a communication session request message, the parsed charging message includes a session identifier and the controller identifier of the electric vehicle; if the charging message is a communication session response message, the parsed charging message includes the TCP session establishment result, session identifier, system time, and the identifier of the charging pile.

[0092] The communication session request message is a communication request initiated by the electric vehicle to the charging station. The communication session request message includes the following fields:

[0093] 1. Session ID

[0094] The session identifier is a field used to uniquely identify a single V2G communication session. This identifier helps the charging station and the electric vehicle maintain the same session state across multiple communications, ensuring the correctness and consistency of data exchange. Each request message carries the session identifier so that the charging station can recognize and process subsequent requests from the same electric vehicle.

[0095] 2. Electric vehicle controller identifier (EVCCID)

[0096] EVCCID is used to identify the controller in an electric vehicle. It is transmitted in the request message to identify the specific model of the electric vehicle or the control device, ensuring that the charging station can interact correctly with the specific electric vehicle. Each electric vehicle may have a unique controller identifier to distinguish different vehicles.

[0097] The communication session response message is the charging station's reply to the electric vehicle's request. The communication session response message includes the following fields:

[0098] 1. Session ID

[0099] The communication session response message also carries a session identifier to ensure that it corresponds to the communication session request message.

[0100] 2. TCP session establishment result

[0101] The TCP session establishment result includes success and failure indicators, showing whether the TCP session was successfully established. This field allows electric vehicles and charging stations to understand whether the communication connection was successful, providing a basis for subsequent data transmission.

[0102] 3. System Time

[0103] System time refers to the current system time of the charging station. This helps the electric vehicle synchronize with the charging station, especially when timestamp verification or battery management is required, ensuring that charging and discharging operations proceed as planned.

[0104] 4. Charging station signage

[0105] The identifier for a charging station, known as the Electric Vehicle Equipment Identifier (EVSEID), is used to uniquely identify a charging station and help an electric vehicle determine which charging station it is connected to.

[0106] For example, when an electric vehicle sends a request message to establish a communication session, the specific message information, including the session ID and EVCCID, is parsed from the raw data. After the charging pile establishes a communication session, it replies with a TCP communication session response message, which is parsed from the raw data to extract the specific message information, including the TCP session establishment result, session ID, system time, and EVSEID.

[0107] Please refer to Figure 2 This is a schematic diagram illustrating the data parsing process provided in this application embodiment. The charging message is parsed layer by layer to extract data from the data link layer, IP layer, TCP layer, and data layer. The data layer refers to the data portion of the application layer protocol, containing the specific charging message data content. The data length and content are extracted from the raw data of the data layer and then parsed to obtain the parsed charging message.

[0108] In one possible embodiment, after performing S140, the method further includes:

[0109] Based on the search information entered by the user, at least one target message that meets the search information is selected from the parsed charging messages.

[0110] At least one target message is sorted and displayed according to a preset rule; the preset rule is either a time sequence rule or a character encoding rule.

[0111] Please refer to Figure 3 This is a flowchart of message retrieval provided in an embodiment of this application.

[0112] S310, Data Retrieval.

[0113] Specifically, the message display page provides a search box where users can enter search information, such as message name and time.

[0114] S320, Fuzzy Matching.

[0115] Specifically, based on the user-input search information, the parsed charging messages are subjected to fuzzy matching to filter out target messages similar to the search information. Fuzzy matching algorithms are used to address situations where strings or text data may contain spelling errors, different formats, or incomplete matches. Many common fuzzy matching algorithms exist, such as Levenshtein distance, Jaro-Winkler distance, and Jaccard similarity.

[0116] For example, if you enter any character from the message name in the search box, all messages containing that character will be retrieved.

[0117] S330, Message Sequencing.

[0118] Specifically, the S320 may filter one or more target messages. When there are multiple target messages, they can be sorted according to preset rules. If the preset rule is a time sequence rule, the multiple target messages are sorted in order from earliest to latest or from latest to earliest. If the preset rule is a character encoding rule, the multiple target messages are sorted in alphabetical or numerical order.

[0119] S340, Message Display.

[0120] Specifically, when S320 selects only one target message, it directly displays that one target message; when S320 selects multiple target messages, it displays the sorted target messages.

[0121] In this embodiment of the application, messages are filtered based on the search information input by the user, irrelevant messages are filtered out, and only messages related to the user's needs are displayed. This can greatly reduce the amount of data processed. Furthermore, sorting and displaying the filtered messages according to preset sorting rules can help users quickly locate the most important information. For example, sorting by time can help users understand the time sequence of messages, and sorting by dictionary order can make it convenient for users to view messages in alphabetical order of content.

[0122] In one possible embodiment, after performing S150, the method further includes:

[0123] The interface for sending and receiving encapsulated messages;

[0124] Call the corresponding send function interface of the encapsulated message to forward the encapsulated message;

[0125] When any message is received, the receiving function interface corresponding to that message is automatically triggered.

[0126] In the actual implementation process, each message has a corresponding sending function interface and receiving function interface. When a message needs to be sent, the sending function interface corresponding to the message is called to forward the message. When a message is received, the receiving function interface corresponding to the message is automatically triggered, and the flag bit is used to determine whether the message has been successfully received.

[0127] In this embodiment, the message sending function interface supports different message sending methods, making the message sending function flexible and scalable. The message receiving function interface can confirm whether the corresponding message has been received. This encapsulated interface facilitates system integration and debugging. Other modules or systems only need to call this interface without needing to concern themselves with the specific implementation details, thus improving code reusability and maintainability.

[0128] To more clearly illustrate the European and American standard charging message processing method provided in this application embodiment, the overall process of the European and American standard charging message processing method provided in this application embodiment is described below.

[0129] Please refer to Figure 4 This is a flowchart illustrating the online mode European and American standard charging message processing method provided in this application embodiment. Figure 1 .like Figure 4 As shown, the process for processing charging messages between charging piles and electric vehicles in online mode can include the following steps:

[0130] S410, Get the list of network devices.

[0131] Obtain a list of local network devices by searching for device interfaces. This list contains all network interfaces of local devices, such as wired network cards and wireless network cards.

[0132] S420, Select network equipment.

[0133] Select the network card adapter connected to the data acquisition device from the list of local network devices.

[0134] S430, Set filter conditions.

[0135] Pre-set the filter conditions on the data acquisition device, such as "ip6 proto\\tcp".

[0136] S440, Data Acquisition.

[0137] The data acquisition device uses the Wireshark packet capture tool to capture IPv6 TCP packets passing through the network card adapter, i.e., charging packets.

[0138] S450, Data Analysis.

[0139] The charging message is parsed. For the specific data parsing process, please refer to the previous discussion. It will not be repeated here.

[0140] S460, data encapsulation.

[0141] The parsed message and statistical information are encapsulated, and a message sending function interface is encapsulated for forwarding the encapsulated message.

[0142] S470, Data Retrieval.

[0143] Based on the search information entered by the user, target messages that meet the search criteria are filtered out. For the specific message retrieval process, please refer to the content discussed above, which will not be repeated here.

[0144] S480, Data storage.

[0145] Save the selected target messages separately.

[0146] In the embodiments of this application, in online mode, charging messages between charging piles and electric vehicles can be collected in real time by a data acquisition device, and then parsed, encapsulated, retrieved and stored. This can effectively detect and eliminate potential safety risks during the charging process, promptly identify abnormalities in the messages, and prevent charging safety hazards caused by data errors or communication problems of the charging pile.

[0147] Please refer to Figure 5 This is a flowchart illustrating the offline mode European and American standard charging message processing method provided in this application embodiment. Figure 2 .like Figure 5 As shown, the process of processing charging messages between charging piles and electric vehicles in offline mode may include the following steps:

[0148] S510, Select File.

[0149] Since charging messages have been collected in advance and saved as pcap files, the corresponding pcap file can be selected.

[0150] S520, Open the file.

[0151] Use the open_offline function to open the pcap file, and use the pcap_next function to read the contents of the pcap file in a loop.

[0152] S530, Data Analysis.

[0153] The charging message is parsed. For the specific data parsing process, please refer to the previous discussion. It will not be repeated here.

[0154] S540, data encapsulation.

[0155] The parsed message and statistical information are encapsulated, and the message sending function interface is encapsulated for forwarding the encapsulated message.

[0156] S550, Data Retrieval.

[0157] Based on the search information entered by the user, target messages that meet the search criteria are filtered out. For the specific message retrieval process, please refer to the content discussed above, which will not be repeated here.

[0158] S560, data storage.

[0159] Save the selected target messages separately.

[0160] In this embodiment of the application, in the abnormal situation of charging failure, the charging messages between the charging pile and the electric vehicle are directly acquired in offline mode without the need for a data acquisition device. These messages are then parsed, encapsulated, retrieved, and stored to help analyze the specific reasons for the charging failure, thereby providing a basis for subsequent troubleshooting and system optimization.

[0161] In summary, this application provides a method for processing charging messages conforming to European and American standards. This method enables data filtering, data acquisition, data parsing, and supports online and offline playback. It effectively encapsulates and retrieves charging messages and provides interfaces for sending and receiving them. It effectively solves problems such as difficulty in data acquisition, inconvenient system setup, high road testing costs, incomplete data, and low security associated with existing European and American standard electric vehicles and charging piles during the charging process. The aim is to help companies collect, parse, and play back charging data under various operating conditions during R&D and after-sales stages, addressing key pain points and improving the compatibility of European and American standard charging piles with commercially available electric vehicle charging systems.

[0162] In addition, in one embodiment, this application provides a European and American standard charging message processing system. The software design of the European and American standard charging message processing system adopts a modular design and follows the principles of data coupling and functional independence. Figure 6 This is a schematic diagram of the European and American standard charging message processing system according to an embodiment of this application.

[0163] like Figure 6 As shown, the European and American standard charging message processing system 600 includes a data acquisition module 610, a parsing module 620, and an integration module 630. The data acquisition module 610 acquires charging messages between the charging pile and the electric vehicle; the charging pile is either a European standard charging pile or an American standard charging pile. The parsing module 620 determines the charging type flag and message type in the original data based on the charging message; it then uses the parsing method corresponding to the message type to obtain the parsed charging message. The integration module 630 performs statistical analysis on the parsed charging message, recording the statistical information for each frame of the message; and it encapsulates the parsed charging message and the statistical information to obtain the encapsulated message.

[0164] Optionally, the acquisition module 610 is specifically used to: acquire all messages between the charging pile and the electric vehicle; filter all messages according to preset filtering conditions to obtain charging messages; the filtering conditions include that the Internet protocol is IPv6 and the transport layer protocol is TCP.

[0165] Optionally, the parsing module 620 is specifically used to: determine the charging type flag bit in the original data based on the charging message; if the charging type flag bit is less than 2, determine that the message type is a charging protocol message; if the charging type flag bit is greater than or equal to 2, determine that the message type is a V2G message.

[0166] Optionally, the parsing module 620 is specifically used to: if the message type is a charging protocol message, obtain the parsed charging message based on the fields in the original data; the parsed charging message includes the charging protocol type, version information, and priority information.

[0167] Optionally, the parsing module 620 is specifically used to: if the message type is a V2G message, determine the protocol type used by the charging message based on the protocol identifier field in the original data; the protocol type is either DIN protocol or ISO protocol; and parse the original data according to the protocol specification corresponding to the protocol type to obtain the parsed charging message.

[0168] Optionally, if the charging message is a communication session request message, the parsed charging message includes a session identifier and the controller identifier of the electric vehicle; if the charging message is a communication session response message, the parsed charging message includes the TCP session establishment result, session identifier, system time, and the identifier of the charging pile.

[0169] Optionally, the European and American standard charging message processing system 600 also includes a retrieval module 640, which is used to: after statistically analyzing the parsed charging messages and recording the statistical information, filter out at least one target message that meets the retrieval information from the parsed charging messages according to the retrieval information input by the user; and sort and display the at least one target message according to a preset rule; the preset rule is a time sequence rule or a character encoding rule.

[0170] Optionally, the integration module 630 is also used to: after performing statistics on the parsed charging messages and recording the statistical information, encapsulate the message's sending and receiving function interfaces; call the sending function interface corresponding to the encapsulated message to forward the encapsulated message; and automatically trigger the receiving function interface corresponding to any message when any message is received.

[0171] It should be noted that for details not disclosed in the European and American standard charging message processing system of this embodiment, please refer to the details disclosed in the embodiments of the European and American standard charging message processing method in this specification, which will not be repeated here.

[0172] Furthermore, this application also provides a charging system, which may include: a charging pile and the European and American standard charging message processing system described in any of the above embodiments, wherein the charging pile is connected to an electric vehicle to charge the electric vehicle; the European and American standard charging message processing system is connected between the charging pile and the electric vehicle. It should be understood that the charging system described in this embodiment includes the European and American standard charging message processing system described in any of the above embodiments, and accordingly has the beneficial effects described in any of the above embodiments, which will not be repeated here.

[0173] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0174] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0175] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions to cause a multimedia terminal device to execute the methods described in the various embodiments of this application.

[0176] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for processing charging messages according to European and American standards, characterized in that, The method, applied to European and American standard charging message processing systems, includes: Obtain charging messages between the charging pile and the electric vehicle; the charging pile is a European standard charging pile or an American standard charging pile. Determining the charging type flag and message type in the original data based on the charging message includes: determining the charging type flag in the original data based on the charging message; if the charging type flag is less than 2, then determining the message type as a charging protocol message; if the charging type flag is greater than or equal to 2, then determining the message type as a V2G message, wherein the original data is extracted from the data layer of the charging message, and the charging protocol message refers to the protocol data between the electric vehicle and the charging pile, and the V2G message refers to the communication data between the electric vehicle and the charging pile; The parsed charging message is obtained by using the parsing method corresponding to the message type; The parsed charging messages are statistically analyzed, and the statistical information of each frame of the message is recorded. The statistical information includes the maximum value of the transmission period, the minimum value of the transmission period, the average value of the transmission period, the start time, and the end time of each frame of the message. The parsed charging message and the statistical information are encapsulated to obtain an encapsulated message; In the case of charging failure and being in offline mode, the pre-collected charging messages are obtained, and the pre-collected charging messages are parsed. The parsed charging messages and corresponding statistical information are encapsulated to obtain the encapsulated messages. The pre-collected charging messages are saved in the form of pcap files.

2. The European and American standard charging message processing method according to claim 1, characterized in that, The acquisition of charging messages between the charging pile and the electric vehicle includes: Collect all messages between the charging station and the electric vehicle; According to preset filtering conditions, all messages are filtered to obtain the charging message; the filtering conditions include Internet protocol as IPv6 and transport layer protocol as TCP.

3. The European and American standard charging message processing method according to claim 1, characterized in that, The step of obtaining the parsed charging message using the parsing method corresponding to the message type includes: If the message type is a charging protocol message, then the parsed charging message is obtained based on the fields in the original data; the parsed charging message includes the charging protocol type, version information, and priority information.

4. The European and American standard charging message processing method according to claim 1, characterized in that, The step of obtaining the parsed charging message using the parsing method corresponding to the message type includes: If the message type is a V2G message, then the protocol type used by the charging message is determined according to the protocol identifier field in the original data; the protocol type is either DIN protocol or ISO protocol. According to the protocol specification corresponding to the protocol type, the original data is parsed to obtain the parsed charging message.

5. The European and American standard charging message processing method according to claim 4, characterized in that, If the charging message is a communication session request message, then the parsed charging message includes a session identifier and the controller identifier of the electric vehicle; If the charging message is a communication session response message, then the parsed charging message includes the TCP session establishment result, session identifier, system time, and identifier of the charging pile.

6. The European and American standard charging message processing method according to claim 1, characterized in that, After statistically analyzing and recording the parsed charging messages, the method further includes: Based on the search information input by the user, at least one target message that meets the search information is selected from the parsed charging messages; The at least one target message is sorted and displayed according to a preset rule; the preset rule is a time sequence rule or a character encoding rule.

7. The European and American standard charging message processing method according to claim 1, characterized in that, After encapsulating the parsed charging message and the statistical information to obtain the encapsulated message, the method further includes: The interface for sending and receiving encapsulated messages; Call the sending function interface corresponding to the encapsulated message to forward the encapsulated message; When any message is received, the receiving function interface corresponding to that message is automatically triggered.

8. A European and American standard charging message processing system, characterized in that, include: The acquisition module is used to acquire charging messages between the charging pile and the electric vehicle; The charging pile is a European standard charging pile or an American standard charging pile. The parsing module is used to determine the charging type flag and message type in the original data based on the charging message; The parsed charging message is obtained using the parsing method corresponding to the message type, including: determining the charging type flag bit in the original data based on the charging message; if the charging type flag bit is less than 2, then the message type is determined to be a charging protocol message; if the charging type flag bit is greater than or equal to 2, then the message type is determined to be a V2G message, wherein the original data is extracted from the data layer of the charging message, and the charging protocol message refers to the protocol data between the electric vehicle and the charging pile, and the V2G message refers to the communication data between the electric vehicle and the charging pile; An integration module is used to perform statistics on the parsed charging messages, record the statistical information of each frame of messages, including the maximum value of the transmission period, the minimum value of the transmission period, the average value of the transmission period, the start time, and the end time of each frame of messages; and encapsulate the parsed charging messages and the statistical information to obtain encapsulated messages. The parsing module is also used to acquire pre-collected charging messages in the case of charging failure and offline mode, and to parse the pre-collected charging messages. The pre-collected charging messages are saved in the form of pcap files. The integration module is also used to encapsulate the parsed charging messages and corresponding statistical information to obtain encapsulated messages.

9. A charging system, characterized in that, include: Charging stations; The European and American standard charging message processing system as described in claim 8; The charging pile is connected to the electric vehicle to charge it; the European and American standard charging message processing system is connected between the charging pile and the electric vehicle.