European and American standard charging message processing method, European and American standard charging message processing system and charging system
By obtaining and analyzing the charging messages during the charging process of European and American standard electric vehicles, the problem that the existing technology cannot effectively deal with charging abnormalities is solved, and the accurate analysis and packaging of European and American standard charging messages is achieved, which improves the reliability of the charging system.
Patent Information
- Application Number
- CN202510022347.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-01-07
AI Technical Summary
The existing technology is difficult to analyze and package the charging messages of European and American standard electric vehicles during charging, resulting in the inability to effectively handle charging abnormalities in foreign regions.
By obtaining the charging message between the charging pile and the electric vehicle, determining the charging type flag bit and message type in the original data, using the corresponding analysis method for analysis, counting and packaging the parsed message.
It realizes effective analysis and packaging of European and American standard charging messages, improves the accuracy of charging messages, and can promptly analyze abnormal situations of electric vehicles during charging, and improves the reliability of charging piles.
Smart Images

Figure CN119906766A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and provides a method and system for processing charging messages in accordance with European and American standards, and a charging system. Background Art
[0002] In recent years, with the increase in global environmental protection needs, continuous innovation in electrification technology and growing consumer interest in low-carbon travel, European and American standard electric vehicles have continued to develop rapidly and gradually entered the Chinese market.
[0003] The charging and discharging process of European and American standard electric vehicles is complicated. Most existing technologies only implement the charging process of European and American standard electric vehicles in different ways. When abnormal charging occurs, due to foreign geographical factors, the original charging data cannot be analyzed and packaged.
[0004] Therefore, how to parse and encapsulate charging messages that meet 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, and a charging system, aiming to solve the problem of how to parse and encapsulate European and American standard charging messages.
[0006] In a first aspect, the present application provides a method for processing European and American standard charging messages, which is applied to a European and American standard charging message processing system, and the method includes:
[0007] Acquire charging messages between a charging pile and an electric vehicle; the charging pile is a European standard charging pile or an American standard charging pile;
[0008] Determine the charging type flag and the message type in the original data based on the charging message;
[0009] Obtaining a parsed charging message using a parsing method corresponding to the message type;
[0010] The parsed charging message is counted, and the statistical information of each frame of the message is recorded:
[0011] The parsed charging message and the statistical information are encapsulated to obtain an encapsulated message.
[0012] Optionally, the acquiring of charging messages between the charging pile and the electric vehicle includes:
[0013] Collect all messages between charging piles and electric vehicles;
[0014] According to preset filtering conditions, all the messages are filtered to obtain the charging message; the filtering conditions include that the Internet protocol is IPV6 and the transport layer protocol is TCP.
[0015] Optionally, the determining, based on the charging message, a charging type flag and a message type in the original data includes:
[0016] Determine a charging type flag in the original data based on the charging message;
[0017] If the charging type flag is less than 2, it is determined that the message type is a charging protocol message;
[0018] If the charging type flag is greater than or equal to 2, it is determined that the message type is a V2G message.
[0019] Optionally, the adopting a parsing method corresponding to the message type to obtain a parsed charging message includes:
[0020] If the message type is a charging protocol message, a parsed charging message is obtained according to the fields in the original data; the parsed charging message includes a charging protocol type, version information, and priority information.
[0021] Optionally, the adopting a parsing method corresponding to the message type to obtain a parsed charging message includes:
[0022] If the message type is a V2G message, determining the protocol type used by the charging message according to the protocol identification field in the original data; the protocol type is a DIN protocol or an ISO protocol;
[0023] The original data is parsed according to a protocol specification corresponding to the protocol type to obtain a parsed charging message.
[0024] Optionally, if the charging message is a communication session request message, the parsed charging message includes a session identifier and a controller identifier of the electric vehicle;
[0025] If the charging message is a communication session response message, the parsed charging message includes a TCP session establishment result, a session identifier, a system time, and an identifier of the charging pile.
[0026] Optionally, after collecting statistics on the parsed charging messages and recording the statistical information, the method further includes:
[0027] According to the search information input by the user, at least one target message satisfying the search information is screened out 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] Encapsulate the message sending and receiving function interfaces;
[0031] Calling 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 the message is automatically triggered.
[0033] In a second aspect, the present application also provides a European and American standard charging message processing system, including:
[0034] A collection module, used to obtain charging messages between a charging pile and an electric vehicle; the charging pile is a European standard charging pile or an American standard charging pile;
[0035] A parsing module, used to determine the charging type flag and the message type in the original data based on the charging message; and obtain the parsed charging message using a parsing method corresponding to the message type;
[0036] The integration module is used to perform statistics on the parsed charging message and record the statistical information of each frame of the message; and encapsulate the parsed charging message and the statistical information to obtain an encapsulated message.
[0037] In a third aspect, the present application also provides a charging system, comprising:
[0038] Charging stations;
[0039] The European and American standard charging message processing system as described in the second aspect;
[0040] The charging pile is connected to an 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:
[0042] In the present application, a charging message between a charging pile and an electric vehicle is obtained; the charging pile is a European standard charging pile or an American standard charging pile; the charging type flag and the message type in the original data are determined based on the charging message; the parsing method corresponding to the message type is used to obtain the parsed charging message; the parsed charging message is counted, 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] In this application, classification processing is used to achieve parsing and encapsulation of European and American standard charging messages, determine the message type according to the charging type flag, ensure that different types of messages use the correct parsing method, avoid message parsing errors, and improve the accuracy of message parsing. The parsed charging message and statistical information are encapsulated, and then based on the parsed charging message and accurate message statistical information, abnormal situations in the charging process of electric vehicles (such as message loss, protocol mismatch, etc.) can be analyzed, so as to conduct timely troubleshooting and maintenance and improve the reliability of charging piles. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 A flow chart of a method for processing European and American standard charging messages provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of the data analysis process provided in the embodiment of the present application;
[0047] Figure 3 A schematic diagram of the message retrieval process provided in the embodiment of the present application;
[0048] Figure 4 Schematic diagram of the process of processing European and American standard charging messages in online mode provided by the embodiment of the present application Figure 1 ;
[0049] Figure 5 Schematic diagram of the process of processing European and American standard charging messages in offline mode provided in the embodiment of the present application Figure 2 ;
[0050] Figure 6 This is a structural diagram of the European and American standard charging message processing system of an embodiment of the present application.
[0051] Markings in the figure: 600-European and American standard charging message processing device, 610-acquisition module, 620-analysis module, 630-integration module, 640-retrieval module. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0054] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0055] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0056] The embodiment of the present application provides a method for processing charging messages in accordance with European and American standards. The method can be executed by a charging message processing system in accordance with European and American standards. Figure 1 A flow chart of a method for processing European and American standard charging messages provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the European and American standard charging message processing method may include the following steps:
[0057] S110, obtaining a charging message between the charging pile and the electric vehicle;
[0058] When an electric vehicle is connected to a charging pile and starts charging, the charging pile and the electric vehicle will exchange message data through a certain communication protocol to transmit charging status, parameters, and control instructions, etc. Among them, the charging pile can be a European standard charging pile, an American standard charging pile, or a charging pile compatible with both European and American standards. The European standard and the American standard represent the mainstream standards for electric vehicle charging in Europe and North America, respectively, and they differ in terms of interface, voltage, power, communication protocol, etc.
[0059] Specifically, the charging messages between the charging pile and the electric vehicle can be collected in real time, or the charging messages between the charging pile and the electric vehicle can be collected and stored in advance, and the charging messages between the charging pile and the electric vehicle can be obtained by opening the corresponding files.
[0060] S120: Determine the charging type flag and the message type in the original data based on the charging message.
[0061] Specifically, a complete charging message consists of four parts, namely the data link layer, IP layer, TCP layer and data layer. The original data of the data layer is extracted from the charging message, and then the charging type flag and message type in the original data are determined.
[0062] S130: Obtain a parsed charging message using a parsing method corresponding to the message type.
[0063] Specifically, the original data is parsed using a 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 introduction of subsequent embodiments, which will not be expanded here.
[0064] S140: Count the parsed charging messages and record the statistical information of each frame of the message.
[0065] Specifically, statistics are collected on the parsed charging messages, and statistical information of each frame of messages is recorded, including the sending cycle, start time and end time of each frame of messages. Since the sending cycle of each frame of messages may be different, the maximum value, minimum value, average value, etc. of the sending cycle can also be counted.
[0066] S150: Encapsulate the parsed charging message and statistical information to obtain an encapsulated message.
[0067] Specifically, the parsed charging message and statistical information are packaged into a complete message structure to obtain an encapsulated message.
[0068] In a possible embodiment, the specific steps of S110 include:
[0069] Collect all messages between charging piles and electric vehicles;
[0070] According to the preset filtering conditions, all messages are filtered to obtain charging messages; the filtering conditions include that the Internet protocol is IPV6 and the transport layer protocol is TCP.
[0071] In the specific implementation process, the European and American standard charging message processing method can be applied to the European and American standard charging message processing system. The European and American standard charging message processing system includes a data acquisition instrument and other functional components. The data acquisition instrument collects messages between the charging pile and the electric vehicle in real time. The data acquisition instrument is connected between the charging pile and the electric vehicle. The local network device list is obtained by searching the device interface. The network card adapter connected to the data acquisition instrument is selected in the local network device list. All messages passing through the network card adapter are captured by the wireshark packet capture tool, such as: TCP of IPV4 and IPV6, UDP of IPV4 and IPV6, HomePlug corresponding to PLC, etc. The data format of all messages is pcap format. By pre-setting the filtering conditions, that is, the Internet protocol is IPV6 and the transport layer protocol is TCP, such as "ip6proto\\tcp", the data acquisition instrument can only receive TCP messages of IPV6, that is, charging messages between the charging pile and the electric vehicle, and send the charging messages to other functional components of the European and American standard charging message processing system for subsequent processing.
[0072] In an embodiment of the present application, by using filtering conditions and selecting IPv6 TCP messages, charging messages between charging piles and electric vehicles can be quickly filtered out from a large amount of network traffic, which can greatly reduce irrelevant communication data, focus on the actual charging process between the charging piles and electric vehicles, narrow the scope of analysis, and thus improve data processing efficiency and accuracy.
[0073] In a possible embodiment, the specific steps of S120 include:
[0074] Determine the charging type flag 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 the specific implementation process, the original data of the data layer can be extracted from the charging message. The original data contains a charging type flag. According to the charging type flag, it can be determined whether the message type of the charging message is a charging protocol message or a V2G message. Among them, 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. When the charging type flag is less than 2, it means that the message type of the charging message is a charging protocol message, otherwise it means that the message type of the charging message is a V2G message.
[0078] In the embodiment of the present application, by analyzing whether the charging type flag 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 later and further improve the accuracy of data parsing.
[0079] In a possible embodiment, the specific steps of S130 include:
[0080] If the message type is a charging protocol message, a parsed charging message is obtained according to 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, first, 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 (Deutsches Institut fürNormung, DIN) protocol or the International Organization for Standardization (International Organization for Standardization, ISO) protocol.
[0082] Then, the version field can be extracted from the original data to obtain version information, including major version and minor version. The major version indicates that the software has been significantly updated or refactored, and the minor version indicates that the software has added new functions, which may be extensions compatible with the original functions. For example, the major version is 2 and the minor version is 0.
[0083] Finally, the priority field can be extracted from the original data to obtain priority information. When the vehicle makes a charging protocol request, if the vehicle supports both the DIN standard and the ISO standard, the charging pile determines which standard to use for this charging based on the priority of the vehicle's request protocol. If the priority of the DIN standard is 1 and the priority of the ISO standard is 2, the ISO standard is used for this charging.
[0084] In an embodiment of the present application, the parsed charging message contains clear message field information, which makes the operating status of the charging system more transparent, and the maintenance personnel or operation and maintenance system can clearly understand the specific content of each message, thereby better performing troubleshooting and system optimization.
[0085] In a possible embodiment, the specific steps of S130 include:
[0086] If the message type is a V2G message, the protocol type used by the charging message is determined according to the protocol identification field in the original data; the protocol type is the DIN protocol or the ISO protocol;
[0087] According to the protocol specification corresponding to the protocol type, the original 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 identification field is extracted from the original data to determine whether the protocol type used by the charging message is the DIN protocol or the ISO protocol. If the protocol type used by the charging message is the DIN protocol, the original data is parsed according to the protocol specification corresponding to the DIN protocol to obtain the parsed charging message. If the protocol type used by the charging message is the ISO protocol, the original data is parsed according to the protocol specification corresponding to the ISO protocol to obtain the parsed charging message.
[0089] In the embodiment of the present application, V2G communication involves complex data exchange between electric vehicles and charging piles, and different protocols (DIN protocol and ISO protocol) use different field formats and encoding rules. When the message type is a V2G message, the protocol type used is determined by the protocol identification field, and then the message is parsed according to the corresponding protocol specification to ensure that each data field in the message is correctly understood and processed. Otherwise, if the mismatched parsing rules are used incorrectly, data loss, misunderstanding, or message parsing failure may occur.
[0090] It should be noted that V2G messages include session setup, service discovery, authorization authentication, parameter matching, insulation detection, pre-charging and energy transmission, adhesion check, session stop and other stages. Each group of messages is composed of a data pair of a request (Req) message and a response (Res) message. The electric vehicle initiates the request message, and the charging pile replies with a response message until the current charging process is completed. According to the data identifier in the original data, it can be determined whether the current charging message is a request message or a response message in which group of messages.
[0091] In a possible embodiment, if the charging message is a communication session request message, the parsed charging message includes a session identifier and an electric vehicle controller identifier; if the charging message is a communication session response message, the parsed charging message includes a TCP session establishment result, a session identifier, a system time, and an identifier of a charging pile.
[0092] The communication session request message is a communication request initiated by the electric vehicle to the charging pile. 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 V2G communication session. This identifier helps the charging pile and the electric vehicle maintain the same session state during multiple communication processes, ensuring the correctness and consistency of data exchange. Each request message carries the session identifier so that the charging pile can identify and process subsequent requests from the same electric vehicle.
[0095] 2. Electric vehicle controller identification (EVCCID)
[0096] EVCCID is used to identify the controller in an electric vehicle. It is passed in the request message to identify the specific model or control device of the electric vehicle to ensure that the charging pile 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 pile's response 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 will also carry 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 results include success and failure, which are used to indicate whether the TCP session is successfully established. Through this field, electric vehicles and charging piles can understand whether the communication connection is successful, providing a basis for subsequent data transmission.
[0102] 3. System time
[0103] System time refers to the current system time of the charging pile. This helps the electric vehicle to synchronize with the charging pile, especially when timestamp verification or battery management is required to ensure that charging and discharging operations proceed as planned.
[0104] 4. Charging pile logo
[0105] The identification of the charging pile is the Electric Vehicle Supply Equipment Identifier (EVSEID), which is used to uniquely identify the charging pile and help the electric vehicle confirm which charging pile to connect to.
[0106] For example: the electric vehicle sends a request message to establish a communication session, and the specific message information, including the session ID and EVCCID, is parsed through the original data. After the charging pile establishes the communication session, it replies with a TCP communication session response message, and the specific message information, including the TCP session establishment result, session ID, system time and EVSEID, is parsed according to the original data.
[0107] Please refer to Figure 2 , which is a flow chart of data parsing provided in an embodiment of the present application. The charging message is parsed, and the data of the data link layer, IP layer, TCP layer and data layer are parsed layer by layer. The data layer refers to the data part of the application layer protocol, which contains the specific charging message data content. The data length and data content are extracted from the original data of the data layer for parsing, so as to obtain the parsed charging message.
[0108] In a possible embodiment, after executing S140, the method further includes:
[0109] According to the search information input by the user, at least one target message satisfying the search information is screened out from the parsed charging messages;
[0110] 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.
[0111] Please refer to Figure 3 , which is a flowchart of message retrieval provided in an embodiment of the present application.
[0112] S310, data retrieval.
[0113] Specifically, the message display page provides a search box, and the user can enter search information in the search box, such as message name, time, etc.
[0114] S320, fuzzy matching.
[0115] Specifically, according to the search information input by the user, the parsed charging message is fuzzy matched to screen out the target message similar to the search information. The fuzzy matching algorithm is used to solve the situation in which the string or text data may contain spelling errors, different formats or incomplete matches. There are many common fuzzy matching algorithms, such as Levenshtein distance, Jaro-Winkler distance, Jaccard similarity, etc.
[0116] For example: if you enter any character in the message name in the search box, all messages containing this character will be retrieved.
[0117] S330, sorting messages.
[0118] Specifically, the target message screened out in S320 may be one or more. When there are multiple target messages, they can be sorted according to a preset rule. If the preset rule is a time sequence rule, the multiple target messages are sorted in the order from early to late or from late to early. If the preset rule is a character encoding rule, the multiple target messages are sorted in alphabetical order or numerical order.
[0119] S340, message display.
[0120] Specifically, when there is only one target message screened out in S320, the target message is directly displayed; when there are multiple target messages screened out in S320, the multiple target messages are displayed after being sorted.
[0121] In an embodiment of the present application, messages are filtered according to the search information input by the user, irrelevant messages are filtered out, and only messages related to the user's needs are displayed, which can greatly reduce the amount of data processed, and the filtered messages are sorted and displayed according to preset sorting rules, which can help users quickly locate the most important information. For example, sorting by time can help users understand the timing of the messages, and sorting in dictionary order can facilitate users to view the messages in alphabetical order of content.
[0122] In a possible embodiment, after executing S150, the method further includes:
[0123] Encapsulate the message sending and receiving function interfaces;
[0124] Call the sending function interface corresponding to the encapsulated message to forward the encapsulated message;
[0125] When any message is received, the receiving function interface corresponding to any message is automatically triggered.
[0126] During the specific 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 whether the message is successfully received is determined based on the flag bit.
[0127] In the embodiment of the present application, different message sending modes can be supported through the message sending function interface, making the message sending function flexible and extensible, and whether the corresponding message is received can be confirmed through the message receiving function interface. This encapsulation interface method facilitates system integration and debugging. Other modules or systems only need to call the interface without paying attention to the specific implementation details, which improves the reusability and maintainability of the code.
[0128] In order to more clearly introduce the European and American standard charging message processing method provided in the embodiment of the present application, the overall process of the European and American standard charging message processing method provided in the embodiment of the present application is introduced below.
[0129] Please refer to Figure 4 , which is a flow chart of the method for processing European and American standard charging messages in the online mode provided by the embodiment of the present application Figure 1 .like Figure 4 As shown, the process of processing the charging message between the charging pile and the electric vehicle in the online mode may include the following steps:
[0130] S410: Obtain a list of network devices.
[0131] Get the local network device list by searching for device interfaces. The local network device list contains all network interfaces of local devices, such as wired network cards, wireless network cards, etc.
[0132] S420. Select a network device.
[0133] Select the network card adapter connected to the data logger in the local network device list.
[0134] S430: Set filtering conditions.
[0135] Pre-set the filtering conditions on the data logger, such as "ip6 proto\\tcp".
[0136] S440, data collection.
[0137] The data acquisition instrument captures the IPV6 TCP message passing through the network card adapter through the wireshark packet capture tool, that is, the charging message.
[0138] S450: data analysis.
[0139] The charging message is parsed. For the specific data parsing process, please refer to the content discussed above and 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 to forward the encapsulated message.
[0142] S470, data retrieval.
[0143] According to the search information input by the user, the target messages that meet the search information are screened out. For the specific message search process, please refer to the content discussed in the previous article, which will not be repeated here.
[0144] S480, data storage.
[0145] The filtered target messages are saved separately.
[0146] In an embodiment of the present application, in online mode, the charging messages between the charging pile and the electric vehicle can be collected in real time by a data acquisition instrument, and parsed, packaged, retrieved and stored, which can effectively detect and eliminate potential safety risks in the charging process, promptly discover abnormal situations in the messages, and prevent charging safety hazards caused by data errors or communication problems in the charging pile.
[0147] Please refer to Figure 5 , which is a flow chart of the method for processing European and American standard charging messages in offline mode provided in an embodiment of the present application Figure 2 .like Figure 5 As shown, the process of processing the charging message between the charging pile and the electric vehicle in offline mode may include the following steps:
[0148] S510: Select a file.
[0149] Since the charging messages are collected in advance and saved in the form of a pcap file, 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 loop and read the contents of the pcap file.
[0152] S530: data analysis.
[0153] The charging message is parsed. For the specific data parsing process, please refer to the content discussed above and 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 to forward the encapsulated message.
[0156] S550, data retrieval.
[0157] According to the search information input by the user, the target messages that meet the search information are screened out. For the specific message search process, please refer to the content discussed in the previous article, which will not be repeated here.
[0158] S560, data storage.
[0159] The filtered target messages are saved separately.
[0160] In an embodiment of the present application, in the abnormal case of charging failure, through offline mode, without the need for a data acquisition instrument, the pre-collected charging messages between the charging pile and the electric vehicle are directly obtained, parsed, packaged, retrieved and stored to help analyze the specific cause of the charging failure, thereby providing a basis for subsequent troubleshooting and system optimization.
[0161] In summary, the embodiment of the present application provides a method for processing charging messages in accordance with European and American standards, which can realize data filtering, data collection, data analysis, support online and offline playback, effectively encapsulate and retrieve charging messages, and provide a sending and receiving interface for charging messages. It can effectively solve the problems of existing European and American standard electric vehicles and charging piles in the charging process, such as difficulty in data capture, inconvenient system construction, high road test costs, incomplete data, and low security. It aims to help enterprises collect, analyze and playback charging data of various working conditions in the research and development, after-sales and other stages, solve the pain points of enterprises, and improve the compatibility of European and American standard charging piles and electric vehicles on the market.
[0162] In addition, in one embodiment, the present 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 It is a structural diagram of the European and American standard charging message processing system of an embodiment of the present application.
[0163] like Figure 6 As shown, the European and American standard charging message processing system 600 includes an acquisition module 610, a parsing module 620 and an integration module 630, wherein: the acquisition module 610 is used to obtain charging messages between charging piles and electric vehicles; the charging piles are European standard charging piles or American standard charging piles; the parsing module 620 is used to determine the charging type flag and message type in the original data based on the charging message; the parsing method corresponding to the message type is used to obtain the parsed charging message; the integration module 630 is used to count the parsed charging message and record the statistical information of each frame of the message; the parsed charging message and the statistical information are encapsulated to obtain the encapsulated message.
[0164] Optionally, the collection module 610 is specifically used to: collect 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 in the original data based on the charging message; if the charging type flag is less than 2, determine that the message type is a charging protocol message; if the charging type flag 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 a parsed charging message according to 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 for: if the message type is a V2G message, determining the protocol type adopted by the charging message according to the protocol identification field in the original data; the protocol type is the DIN protocol or the ISO protocol; parsing 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 the session identifier and the electric vehicle controller identifier; 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 charging pile identifier.
[0169] Optionally, the European and American standard charging message processing system 600 also includes a retrieval module 640, which is used to: after counting 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; sort and display at least one target message according to preset rules; the preset rules are time sequence rules or character encoding rules.
[0170] Optionally, the integration module 630 is also used to: after performing statistics on the parsed charging message and recording the statistical information, encapsulate the sending function interface and receiving function interface of the message; call the sending function interface corresponding to the encapsulated message to forward the encapsulated message; when any message is received, automatically trigger the receiving function interface corresponding to any message.
[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 embodiment of the European and American standard charging message processing method in the embodiment of this specification, which will not be repeated here.
[0172] In addition, the present application also provides a charging system, which may include: a charging pile and a 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 article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0174] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a multimedia terminal device to execute the methods described in each embodiment of the present application.
[0176] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for processing charging messages in accordance with European and American standards, characterized in that: Applied to the European and American standard charging message processing system, the method includes: Acquire charging messages between a charging pile and an electric vehicle; the charging pile is a European standard charging pile or an American standard charging pile; Determine the charging type flag and the message type in the original data based on the charging message; Obtaining a parsed charging message using a parsing method corresponding to the message type; Performing statistics on the parsed charging messages, and recording statistical information of each frame of the message; The parsed charging message and the statistical information are encapsulated to obtain an encapsulated message.
2. The method for processing charging messages in accordance with European and American standards according to claim 1, characterized in that: The step of acquiring the charging message between the charging pile and the electric vehicle includes: Collect all messages between charging piles and electric vehicles; According to preset filtering conditions, all the messages are filtered to obtain the charging message; the filtering conditions include that the Internet protocol is IPV6 and the transport layer protocol is TCP.
3. The method for processing charging messages in accordance with European and American standards according to claim 1, characterized in that: The determining, based on the charging message, a charging type flag bit and a message type in the original data includes: Determine a charging type flag in the original data based on the charging message; If the charging type flag is less than 2, it is determined that the message type is a charging protocol message; If the charging type flag is greater than or equal to 2, it is determined that the message type is a V2G message.
4. The method for processing charging messages in accordance with European and American standards according to claim 3, characterized in that: The adopting the parsing method corresponding to the message type to obtain the parsed charging message includes: If the message type is a charging protocol message, a parsed charging message is obtained according to the fields in the original data; the parsed charging message includes a charging protocol type, version information, and priority information.
5. The method for processing charging messages in accordance with European and American standards according to claim 3, characterized in that: The adopting the parsing method corresponding to the message type to obtain the parsed charging message includes: If the message type is a V2G message, determining the protocol type used by the charging message according to the protocol identification field in the original data; the protocol type is a DIN protocol or an ISO protocol; The original data is parsed according to a protocol specification corresponding to the protocol type to obtain a parsed charging message.
6. The method for processing charging messages in accordance with European and American standards according to claim 5, characterized in that: If the charging message is a communication session request message, the parsed charging message includes a session identifier and a controller identifier of the electric vehicle; If the charging message is a communication session response message, the parsed charging message includes a TCP session establishment result, a session identifier, a system time, and an identifier of the charging pile.
7. The method for processing charging messages in accordance with European and American standards according to claim 1, characterized in that: After collecting statistics on the parsed charging messages and recording the statistical information, the method further includes: According to the search information input by the user, at least one target message satisfying the search information is screened out 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.
8. The method for processing charging messages in accordance with European and American standards 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: Encapsulate the message sending and receiving function interfaces; Calling 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 the message is automatically triggered.
9. A charging message processing system according to European and American standards, characterized in that: include: The acquisition module is used to 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; A parsing module, used to determine a charging type flag and a message type in the original data based on the charging message; Obtaining a parsed charging message using a parsing method corresponding to the message type; The integration module is used to perform statistics on the parsed charging message and record the statistical information of each frame of the message; and encapsulate the parsed charging message and the statistical information to obtain an encapsulated message.
10. A charging system, characterized in that: include: Charging stations; The European and American standard charging message processing system as claimed in claim 9; Among them, the charging pile is connected to the 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.
Citation Information
Patent Citations
Charging conversion method, device, system, computer equipment and storage medium
CN109466365A
Method and device for adapting to charging pile communication protocol
CN111917772A
Method and device for transmitting CAN (Controller Area Network) message of electric vehicle
CN114422289A
Electric vehicle charging fault diagnosis method and charging test data acquisition system
CN117949758A