A charging pile communication method and system based on multi-protocol adaptation

By identifying and matching the communication protocols between charging piles and vehicles, constructing adaptation solutions and optimizing protocol converter parameters, the problem of incompatibility between charging piles and electric vehicle communication protocols was solved, improving charging efficiency and stability, and enhancing intelligent management capabilities.

CN120956816BActive Publication Date: 2026-04-03SHENZHEN GIVAT TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

The existing communication protocols between charging piles and electric vehicles are diverse and lack a unified standard, resulting in poor compatibility, affecting charging efficiency and user experience. Furthermore, traditional protocol conversion methods cannot be monitored and optimized in real time, affecting the stability and safety of the charging process.

Method used

By acquiring charging request data from charging piles and vehicles, identifying communication protocols, performing compatibility comparisons, and using a protocol converter to match transcoding strategies, an adaptation scheme is constructed. The charging status is monitored in real time, the conversion performance is evaluated, and the parameter configuration of the protocol converter is optimized.

Benefits of technology

It achieves dynamic adaptation and optimization between multiple protocols, improves the compatibility and efficiency of charging communication, enhances the intelligence level of charging management, and improves the charging experience and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120956816B_ABST
    Figure CN120956816B_ABST
Patent Text Reader

Abstract

This invention discloses a charging pile communication method and system based on multi-protocol adaptation, solving the compatibility problem between charging piles and vehicles with different communication protocols. The method acquires charging request data from the charging pile and the vehicle, identifies the vehicle's communication protocol, and compares it with the charging pile's protocol for compatibility. If the protocols do not match, a protocol converter is used to perform transcoding strategy matching, constructing a protocol adaptation scheme to establish a communication link between the charging pile and the vehicle. The system monitors the vehicle's charging status in real time and evaluates the conversion performance of the protocol adaptation scheme based on the charging status, acquiring performance data. Finally, the protocol converter parameters are optimized based on the performance data. This method achieves dynamic adaptation and optimization between multiple protocols, improving the compatibility and efficiency of charging communication, enhancing the intelligence level of charging management, and is applicable to various charging environments, improving the charging experience and system stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of charging pile control technology, and in particular to a charging pile communication method and system based on multi-protocol adaptation. Background Technology

[0002] With the rapid development of new energy vehicles, charging piles, as a crucial infrastructure for electric vehicles, are constantly expanding in number and application scope. However, the communication protocols used by charging piles and electric vehicles on the market are diverse and complex, mainly including protocols from different manufacturers, using different standards, and with different versions. Due to the lack of a unified communication standard, protocol compatibility between charging piles and vehicles has become a key issue restricting charging efficiency and user experience.

[0003] In existing technologies, charging piles mostly adopt a single communication protocol design, which cannot flexibly support multiple protocols. This results in some vehicle models being unable to charge normally or requiring additional dedicated adapter equipment, increasing system complexity and cost. In addition, traditional protocol conversion methods are mostly static mapping, lacking real-time monitoring and optimization of protocol conversion performance. This makes it impossible to effectively cope with communication anomalies caused by protocol version updates and function code differences, affecting the stability and safety of the charging process.

[0004] Therefore, there is an urgent need for a charging pile communication method and system that can dynamically adapt to multiple communication protocols and has the ability to evaluate and optimize protocol conversion performance in real time, so as to improve the compatibility, communication efficiency and intelligent management level of charging piles and meet the increasingly diverse charging needs of new energy vehicles. Summary of the Invention

[0005] To address at least one of the aforementioned technical problems, this invention proposes a charging pile communication method and system based on multi-protocol adaptation.

[0006] The first aspect of this invention provides a charging pile communication method based on multi-protocol adaptation, comprising:

[0007] Obtain charging request data of charging piles and charging vehicles in the target charging station, identify the vehicle communication protocol based on the charging request data, and obtain the vehicle communication protocol identification result.

[0008] The vehicle communication protocol identification result is compared with the charging pile communication protocol for compatibility. If the communication protocols do not match, the communication protocol of the charging pile is matched with the transcoding strategy according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle.

[0009] According to the protocol adaptation scheme, a charging communication link is established between the charging pile and the charging vehicle to monitor the charging status of the vehicle in real time. Based on the charging status, the protocol conversion performance of the protocol adaptation scheme is evaluated to obtain protocol conversion performance data.

[0010] The protocol converter's parameters are optimized based on the protocol conversion performance data.

[0011] In this solution, the step of acquiring charging request data between charging piles and charging vehicles within the target charging station, identifying the vehicle communication protocol based on the charging request data, and obtaining the vehicle communication protocol identification result specifically involves:

[0012] Obtain the physical connection status data of the charging piles and charging vehicles at the target charging station, and generate a protocol adaptation unit for the charging piles and charging vehicles with the physical connection status.

[0013] Obtain charging request data for each protocol adaptation unit, extract handshake request messages between the charging pile and the charging vehicle based on the charging request data, parse the protocol fields of the handshake request messages, and extract the protocol identifier field of the charging vehicle's communication request to the charging pile, including the protocol version number, protocol preamble, and function code sequence.

[0014] Obtain the communication protocol type data between different vehicles and charging piles, extract the communication protocol identifier field of each communication protocol type, and construct a communication protocol type database using the communication protocol identifier field of each communication protocol type;

[0015] A protocol feature vector is constructed from the protocol identifier field of the communication request between the charging vehicle and the charging pile. The protocol feature vector is then matched with the communication protocol type database to identify the vehicle communication protocol of the charging vehicle and obtain the vehicle communication protocol identification result.

[0016] In this solution, the compatibility comparison between the vehicle communication protocol identification result and the charging pile communication protocol is performed. If the communication protocols do not match, a transcoding strategy matching is performed on the charging pile's communication protocol according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle. Specifically:

[0017] Acquire protocol conversion data for different communication protocol types, determine protocol mapping rules for different communication protocol types based on the protocol conversion data, construct a protocol mapping rule library, and construct a charging pile protocol converter based on the protocol mapping rule library;

[0018] Based on the vehicle communication protocol identification result, the target protocol version number and vehicle-side protocol preamble of the charging vehicle are extracted, and the current communication protocol version number, charging pile preamble data, and charging pile function code sequence of the protocol adaptation unit where the charging vehicle is located are obtained.

[0019] The target protocol version number and the current communication protocol version number are mapped and analyzed according to the preamble of the vehicle-side and charging pile-side protocols to determine whether the charging pile supports the protocol frame structure of the vehicle communication protocol.

[0020] If not supported, it is determined that the communication protocol between the charging pile and the charging vehicle of the current protocol adaptation unit is mismatched. The vehicle-side function code sequence and the charging pile-side function code sequence are compared bit by bit to calculate the difference in protocol fields.

[0021] If the difference is greater than the preset difference threshold, it is determined to be a complex protocol structure mismatch scenario. The function code sequence of the vehicle communication protocol is split into the main function code segment and the extended function code segment. According to the available range of function codes of the charging pile protocol, the basic transcoding template corresponding to the main function code segment is matched in the protocol mapping rule base to generate the main function code transcoding mapping table.

[0022] For extended function code segments, by logically splitting the function codes not defined in the charging pile protocol, a single extended function code is converted into a combination of multiple sub-function codes supported by the charging pile, generating extended function code splitting rules, and constructing a first protocol matching strategy by combining the main function code transcoding mapping table and the extended function code splitting rules.

[0023] If the difference is less than or equal to the difference threshold, it is determined to be a simple protocol field offset scenario. Based on the difference in the data frame length field between the vehicle communication protocol and the charging pile communication protocol, the data packets of the charging pile communication protocol are padded or truncated. At the same time, the function code arrangement order of the charging pile protocol is adjusted according to the offset of the function code sequence to generate a second protocol matching strategy.

[0024] A protocol adaptation scheme for charging piles and charging vehicles is constructed based on the first protocol matching strategy and the second protocol matching strategy.

[0025] In this solution, the charging pile and the charging vehicle are connected via a charging communication link according to the protocol adaptation scheme, the charging status of the vehicle is monitored in real time, and the protocol conversion performance of the protocol adaptation scheme is evaluated based on the charging status to obtain protocol conversion performance data. Specifically:

[0026] A communication link is established between the charging pile and the charging vehicle according to the protocol adaptation scheme. After the communication link is established, the charging status information of the charging vehicle is obtained. The charging status information includes the current battery operating voltage, charging current, battery SOC percentage, and the protocol response frame and status bytes within the frame returned by the BMS control unit.

[0027] Based on the charging status information, calculate the stability parameters of the communication response between the vehicle and the charging pile during the protocol handshake phase, and construct the stability parameters into communication stability status information, including handshake response delay time, voltage fluctuation amplitude, current change rate, and SOC response deviation.

[0028] Based on the communication stability status information, determine whether there is an abnormal status such as handshake response interruption, voltage fluctuation change, or BMS returning abnormal status bytes. If there is an abnormality, record the voltage, current, SOC and status bytes in the corresponding time period as protocol communication abnormality samples to construct a protocol communication abnormal event dataset.

[0029] The protocol adaptation scheme is evaluated for protocol conversion performance based on the protocol communication anomaly event dataset to obtain protocol conversion performance data.

[0030] In this solution, the step of optimizing the protocol converter parameters based on the protocol conversion performance data specifically involves:

[0031] Based on the protocol conversion performance data, if the protocol conversion performance is lower than the preset performance value, the items affecting the protocol conversion performance are identified. The handshake response delay time is compared with the preset delay time threshold. If the handshake response delay time is greater than the delay time threshold, it is determined to be a protocol conversion timing mismatch scenario, and the first conversion performance affecting item is obtained.

[0032] If the voltage fluctuation amplitude is greater than the preset fluctuation threshold and the current change rate exceeds the change rate threshold, it is determined that the data packet integrity is damaged during the protocol conversion process, and the second conversion performance impact item is obtained.

[0033] If the SOC response deviation exceeds the deviation threshold, it is determined to be the accumulation of numerical quantization error in the protocol conversion process, and the third conversion performance impact item is obtained.

[0034] Based on the first, second, and third performance impact factors, the parameter configuration of the protocol converter was optimized.

[0035] In this solution, the parameter configuration optimization of the protocol converter based on the first, second, and third conversion performance impact items specifically includes:

[0036] For the first conversion performance impact item, obtain the abnormal status bytes in the protocol communication abnormal event dataset, and parse the protocol fields that are lost or incorrectly transcoded during the protocol conversion process based on the abnormal status bytes to obtain the protocol field transcoding error data;

[0037] Based on the transcoding error data of the protocol fields, the main function code transcoding mapping table and extended function code splitting rules in the protocol adaptation scheme are corrected;

[0038] For the second conversion performance impact item, obtain the protocol response frames corresponding to the voltage and current sudden change time points in the protocol communication abnormal event dataset, perform reverse parsing of the frame structure of the protocol response frames, locate the charging control command lost fields caused by data packet truncation or padding during the protocol conversion process, and obtain the command lost field data.

[0039] Adjust the packet filling or truncation rules in the second protocol matching strategy according to the missing field data in the instruction;

[0040] For the third conversion performance impact item, obtain the status bytes returned by the BMS control unit in the protocol communication abnormal event dataset, and parse the numerical conversion error caused by protocol field offset during SOC calculation based on the status bytes to obtain the numerical conversion error data;

[0041] Correct the function code arrangement order offset in the second protocol matching strategy based on the numerical conversion error data;

[0042] An optimized protocol adaptation scheme is constructed by using the revised main function code transcoding mapping table, extended function code splitting rules, packet padding or truncation rules, and function code arrangement order offset. The parameter configuration of the protocol converter is then updated according to the optimized protocol adaptation scheme.

[0043] A second aspect of the present invention also provides a charging pile communication system based on multi-protocol adaptation. The system includes a memory and a processor. The memory includes a charging pile communication method program based on multi-protocol adaptation. When the processor executes the charging pile communication method program based on multi-protocol adaptation, it performs the following steps:

[0044] Obtain charging request data of charging piles and charging vehicles in the target charging station, identify the vehicle communication protocol based on the charging request data, and obtain the vehicle communication protocol identification result.

[0045] The vehicle communication protocol identification result is compared with the charging pile communication protocol for compatibility. If the communication protocols do not match, the communication protocol of the charging pile is matched with the transcoding strategy according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle.

[0046] According to the protocol adaptation scheme, a charging communication link is established between the charging pile and the charging vehicle to monitor the charging status of the vehicle in real time. Based on the charging status, the protocol conversion performance of the protocol adaptation scheme is evaluated to obtain protocol conversion performance data.

[0047] The protocol converter's parameters are optimized based on the protocol conversion performance data.

[0048] This invention discloses a charging pile communication method and system based on multi-protocol adaptation, solving the compatibility problem between charging piles and vehicles with different communication protocols. The method acquires charging request data from the charging pile and the vehicle, identifies the vehicle's communication protocol, and compares it with the charging pile's protocol for compatibility. If the protocols do not match, a protocol converter is used to perform transcoding strategy matching, constructing a protocol adaptation scheme to establish a communication link between the charging pile and the vehicle. The system monitors the vehicle's charging status in real time and evaluates the conversion performance of the protocol adaptation scheme based on the charging status, acquiring performance data. Finally, the protocol converter parameters are optimized based on the performance data. This method achieves dynamic adaptation and optimization between multiple protocols, improving the compatibility and efficiency of charging communication, enhancing the intelligence level of charging management, and is applicable to various charging environments, improving the charging experience and system stability. Attached Figure Description

[0049] Figure 1 A flowchart of a charging pile communication method based on multi-protocol adaptation according to the present invention is shown;

[0050] Figure 2 The flowchart illustrating the vehicle communication protocol identification result obtained by the present invention is shown.

[0051] Figure 3 The flowchart illustrating the protocol conversion performance data obtained by this invention is shown.

[0052] Figure 4 A block diagram of a charging pile communication system based on multi-protocol adaptation according to the present invention is shown. Detailed Implementation

[0053] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0054] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0055] Figure 1 A flowchart of a charging pile communication method based on multi-protocol adaptation according to the present invention is shown.

[0056] like Figure 1 As shown, the first aspect of the present invention provides a charging pile communication method based on multi-protocol adaptation, comprising:

[0057] S102, acquire charging request data of charging piles and charging vehicles in the target charging station, identify vehicle communication protocols based on the charging request data, and obtain vehicle communication protocol identification results.

[0058] S104. Based on the vehicle communication protocol identification result, a compatibility comparison is performed with the charging pile communication protocol. If the communication protocols do not match, the communication protocol of the charging pile is matched with a transcoding strategy according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle.

[0059] S106, Connect the charging pile and the charging vehicle through a charging communication link according to the protocol adaptation scheme, monitor the charging status of the vehicle in real time, evaluate the protocol conversion performance of the protocol adaptation scheme based on the charging status, and obtain protocol conversion performance data.

[0060] S108, Optimize the parameter configuration of the protocol converter based on the protocol conversion performance data.

[0061] It should be noted that by acquiring charging request data from charging piles and charging vehicles within the target charging station, the communication protocol used by the vehicle can be accurately identified, ensuring the charging system's effective identification and differentiation of protocols for different vehicle models. Subsequently, a compatibility comparison is performed between the identified vehicle communication protocol and the charging pile's own communication protocol to quickly determine if the two protocols match. If a mismatch exists, a targeted transcoding strategy is implemented through a protocol converter to dynamically construct a protocol adaptation scheme suitable for the communication needs of both parties, effectively resolving communication barriers caused by protocol differences. Guided by the protocol adaptation scheme, a stable and efficient charging communication link is established between the charging pile and the charging vehicle, enabling real-time monitoring of the vehicle's charging status and ensuring transparency and data accuracy during the charging process. Simultaneously, through continuous analysis of charging status information, the conversion performance of the protocol adaptation scheme is dynamically evaluated, enabling timely detection and location of potential performance bottlenecks and anomalies during the protocol conversion process, and obtaining detailed protocol conversion performance data. Finally, based on the performance evaluation results, the parameter configuration of the protocol converter is intelligently optimized to improve the efficiency and stability of protocol conversion.

[0062] Figure 2 A flowchart illustrating the vehicle communication protocol identification results obtained by the present invention is shown.

[0063] According to an embodiment of the present invention, the step of acquiring charging request data of charging piles and charging vehicles within the target charging station, identifying vehicle communication protocols based on the charging request data, and obtaining vehicle communication protocol identification results specifically includes:

[0064] S202, Obtain the physical connection status data between the charging pile and the charging vehicle at the target charging station, and generate a protocol adaptation unit for the charging pile and the charging vehicle with the physical connection status.

[0065] S204, obtain the charging request data of each protocol adaptation unit, extract the handshake request message between the charging pile and the charging vehicle based on the charging request data, parse the protocol fields of the handshake request message, and extract the protocol identifier field of the charging vehicle's communication request to the charging pile, including the protocol version number, protocol preamble, and function code sequence.

[0066] S206, obtain the communication protocol type data between different vehicles and charging piles, extract the communication protocol identifier field of each communication protocol type, and construct a communication protocol type database using the communication protocol identifier field of each communication protocol type;

[0067] S208, construct a protocol feature vector from the protocol identifier field of the communication request between the charging vehicle and the charging pile, match the protocol feature vector with the communication protocol type database to identify the vehicle communication protocol of the charging vehicle, and obtain the vehicle communication protocol identification result.

[0068] It should be noted that the protocol adaptation unit binds the independent charging pile and the charging vehicle into a whole. For example, when charging pile A detects that the connected vehicle is an electric vehicle using the CHAdeMO protocol, the protocol adaptation unit A-1 is created and bound to the communication session of the pile. During the communication, it is responsible for handling all identification and conversion operations from CHAdeMO to the local pile protocol.

[0069] Meanwhile, another vehicle connects to pile B using the GB / T protocol. The corresponding protocol adaptation unit B-1 is generated and runs independently to avoid communication interference.

[0070] According to an embodiment of the present invention, the step of performing a compatibility comparison between the vehicle communication protocol identification result and the charging pile communication protocol, and if the communication protocols do not match, performing a transcoding strategy matching of the charging pile's communication protocol according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle, specifically includes:

[0071] Acquire protocol conversion data for different communication protocol types, determine protocol mapping rules for different communication protocol types based on the protocol conversion data, construct a protocol mapping rule library, and construct a charging pile protocol converter based on the protocol mapping rule library;

[0072] It should be noted that the charging pile protocol converter's protocol mapping rules for different communication protocol types include data format conversion, message type correspondence, command and response mapping, unified conversion of status codes and error codes, adaptation of communication frame structures, synchronization processing of timestamps and identifiers, and semantic matching and verification mechanisms for field meanings. This ensures accurate transmission of control commands, status information, and billing data between protocols, achieving information compatibility and seamless interaction between different protocols. The charging pile protocol converter is a software system used to achieve interconnection and interoperability between different charging pile communication protocols. By converting and mapping the data formats, command structures, and communication rules of various protocols, it enables charging piles using different communication standards or manufacturer-specific protocols to communicate compatiblely with a unified management platform, billing system, or vehicle. The charging pile protocol converter includes a protocol parsing module, a protocol mapping rule base, and a dynamic transcoding engine. The protocol mapping rule base generates multi-level transcoding rule templates by loading historical mapping relationship datasets of different vehicle communication protocols and charging pile protocols.

[0073] Based on the vehicle communication protocol identification result, the target protocol version number and vehicle-side protocol preamble of the charging vehicle are extracted, and the current communication protocol version number, charging pile preamble data, and charging pile function code sequence of the protocol adaptation unit where the charging vehicle is located are obtained.

[0074] The target protocol version number and the current communication protocol version number are mapped and analyzed according to the preamble of the vehicle-side and charging pile-side protocols to determine whether the charging pile supports the protocol frame structure of the vehicle communication protocol.

[0075] If not supported, it is determined that the communication protocol between the charging pile and the charging vehicle of the current protocol adaptation unit is mismatched. The vehicle-side function code sequence and the charging pile-side function code sequence are compared bit by bit to calculate the difference in protocol fields.

[0076] If the difference is greater than the preset difference threshold, it is determined to be a complex protocol structure mismatch scenario. The function code sequence of the vehicle communication protocol is split into the main function code segment and the extended function code segment. According to the available range of function codes of the charging pile protocol, the basic transcoding template corresponding to the main function code segment is matched in the protocol mapping rule base to generate the main function code transcoding mapping table.

[0077] It should be noted that the basic transcoding template includes a function code mapping template, a data format conversion template, a timing control template, and an error handling template. The function code mapping template, built based on historical protocol adaptation cases, is used to bind the main function codes of the target protocol (such as charging start commands and status query commands) to the function code fields of the charging pile protocol in a one-to-one or many-to-one static mapping relationship, ensuring lossless conversion of core commands. The data format conversion template defines data length alignment rules (such as converting 32-bit floating-point power data of the target protocol to 16-bit integer data supported by the charging pile protocol) and byte order adjustment rules between different protocols. The system incorporates big-endian / little-endian conversion and encoding format conversion logic (ASCII and hexadecimal encoding conversion) to resolve data structure incompatibility issues between protocols. The timing control template coordinates the execution order of the main function code and its sub-function codes through preset instruction execution priorities and response timeout mechanisms, preventing instruction conflicts or deadlocks caused by differences in protocol interaction timing. The error handling template includes built-in protocol field verification algorithms (such as CRC checksum completion) and an exception instruction rollback mechanism. When data overflow or function code mismatch is detected during transcoding, it automatically triggers error code replacement or default value filling to ensure the stability of the communication link. Through multi-template collaboration, the basic transcoding template can achieve accurate adaptation and reliable execution of the target protocol's core functions without modifying the original charging pile protocol.

[0078] For extended function code segments, by logically splitting the function codes not defined in the charging pile protocol, a single extended function code is converted into a combination of multiple sub-function codes supported by the charging pile, generating extended function code splitting rules, and constructing a first protocol matching strategy by combining the main function code transcoding mapping table and the extended function code splitting rules.

[0079] It should be noted that the extended function code splitting rules include logical decomposition rules, sub-function code generation rules, timing control rules, data flow mapping rules, and exception handling rules. The logical decomposition rules, based on the business logic of the target protocol's extended function code (e.g., dynamic power adjustment requires power request, parameter verification, and execution feedback), decompose it into multiple atomic operation steps. The sub-function code generation rules, according to the available function codes of the charging pile protocol, map each atomic step to an independent sub-function code supported by the charging pile (e.g., splitting "dynamic power adjustment" into "current power read (function code 0x03)", "target power write (function code 0x06)", and "operation confirmation (function code 0x10)"). The execution order of sub-function codes is defined according to business logic dependencies; timing control rules ensure that the combination of split sub-function codes can simulate the complete execution flow of the original extended function codes by setting the minimum execution interval and timeout retry mechanism between sub-function codes; data flow mapping rules assign values ​​and aggregate results to the input and output parameters (such as adjustment range and voltage threshold) of the target protocol extended function codes according to the data format requirements of the sub-function codes to achieve the continuity of data flow before and after splitting; exception handling rules define automatic rollback or compensation execution logic for sub-function code combination to ensure transactional consistency in the operation of splitting extended function codes for some failure scenarios that may occur during the execution of sub-function codes (such as power write timeout).

[0080] It's important to note that when the difference exceeds a preset threshold, it's considered a complex protocol structure mismatch scenario. This is because the two protocols exhibit significant differences in data structure, field content, interaction flow, and command logic, exceeding the compatibility capabilities of a protocol converter through conventional mapping methods. High differences typically mean that some fields cannot be matched, semantics are inconsistent, or there are fundamental conflicts in the communication flow. Forced conversion may lead to data parsing errors, control logic anomalies, or even system security risks. In complex protocol structure mismatch scenarios, by splitting the target protocol's function code sequence into main function code segments and extended function code segments, the core and extended functions of the protocol can be selectively separated, thereby adapting to the function code coverage of the charging pile protocol. The main function code segment typically corresponds to the basic operation commands (such as start charging and stop charging) defined in the charging pile protocol. By generating a basic transcoding template by matching historical mapping relationships from the protocol mapping rule base, the main function code of the target protocol can be directly mapped to the function code field of the charging pile protocol, ensuring the compatibility and execution of core commands. Extended function code segments (such as dynamic power adjustment and fault diagnosis) exceed the function code definition range of the charging pile protocol. Therefore, the dynamic transcoding engine splits them into multiple sub-function code combinations supported by the charging pile (e.g., decomposing "dynamic power adjustment" into "power query + power threshold setting + feedback confirmation"). A time-sequential sub-function code execution sequence is generated based on the logical dependencies of the function codes. By combining the main function code transcoding mapping table with the extended function code splitting rules, the core functional semantic integrity of the target protocol is preserved, and the collaborative operation of the sub-function codes enables indirect support of extended functions by the charging pile. This solves the problem of unparsable commands caused by complex protocol structure differences without modifying the original charging pile protocol, significantly improving the coverage and execution reliability of protocol conversion.

[0081] If the difference is less than or equal to the difference threshold, it is determined to be a simple protocol field offset scenario. Based on the difference in the data frame length field between the vehicle communication protocol and the charging pile communication protocol, the data packets of the charging pile communication protocol are padded or truncated. At the same time, the function code arrangement order of the charging pile protocol is adjusted according to the offset of the function code sequence to generate a second protocol matching strategy.

[0082] A protocol adaptation scheme for charging piles and charging vehicles is constructed based on the first protocol matching strategy and the second protocol matching strategy.

[0083] It should be noted that the padding or truncation operation refers to adding redundant bytes (such as 0x00) or deleting bytes exceeding the target length at the end of the data packet of the charging pile protocol according to the difference in the data frame length field between the vehicle communication protocol and the charging pile communication protocol, so as to achieve data frame length alignment. At the same time, the arrangement order of the function codes of the charging pile protocol is adjusted according to the offset of the function code sequence to ensure the semantic consistency of the protocol fields.

[0084] Figure 3 A flowchart illustrating the protocol conversion performance data obtained by this invention is shown.

[0085] According to an embodiment of the present invention, the step of establishing a charging communication link between the charging pile and the charging vehicle according to the protocol adaptation scheme, monitoring the charging status of the vehicle in real time, and evaluating the protocol conversion performance of the protocol adaptation scheme based on the charging status to obtain protocol conversion performance data, specifically includes:

[0086] S302, establish a communication link between the charging pile and the charging vehicle according to the protocol adaptation scheme, and obtain the charging status information of the charging vehicle after the communication link is established. The charging status information includes the current battery operating voltage, charging current, battery SOC percentage, and the protocol response frame and status bytes within the frame returned by the BMS control unit.

[0087] S304, calculate the stability parameters of the communication response between the vehicle and the charging pile during the protocol handshake phase based on the charging status information, and construct the stability parameters into communication stability status information, including handshake response delay time, voltage fluctuation amplitude, current change rate and SOC response deviation.

[0088] S306, Based on the communication stability status information, determine whether there is an abnormal status such as handshake response interruption, voltage fluctuation change, or BMS returning abnormal status bytes. If there is an abnormality, record the voltage, current, SOC, and status bytes within the corresponding time period as protocol communication abnormality samples and construct a protocol communication abnormal event dataset.

[0089] S308, Evaluate the protocol conversion performance of the protocol adaptation scheme based on the protocol communication abnormal event dataset to obtain protocol conversion performance data.

[0090] It should be noted that by real-time monitoring of the charging vehicle's battery operating voltage, charging current, SOC percentage, and protocol response frames returned by the BMS, communication stability parameters are dynamically constructed. This accurately identifies communication interruption issues caused by protocol conversion timing misalignment or function code mapping errors, transforming abstract protocol mismatch defects into quantifiable physical layer anomaly indicators. By correlating abnormal status bytes with protocol communication anomaly samples, defects in data truncation or function code offset settings in the protocol adaptation scheme are traced back to pinpoint the transcoding rule fields that need optimization. Simultaneously, based on the distribution patterns of voltage fluctuations and current change rates, the impact of protocol field filling or floating-point data conversion defects on charging stability is analyzed, forming a closed-loop optimization mechanism of anomaly monitoring, defect location, and rule iteration. This overcomes the limitations of traditional protocol conversion technologies that rely solely on communication layer indicators, achieving deep coupling between the protocol adaptation scheme and the stability of charging electrical parameters. The protocol response frame is a structured data unit returned by the charging vehicle or charging pile during communication based on the protocol format, containing instruction execution status, real-time parameters, or error codes. The intra-frame status byte is a specific data segment in the protocol response frame used to indicate the current instruction execution status or error type, and is usually identified by a preset encoding format to indicate success, failure, or exception type. The BMS returned exception status byte refers to the battery or charging process exception type, identified by a preset encoding format, returned by the battery management system through data bytes at a specific position in the protocol response frame, such as error codes for overvoltage, overtemperature, or communication timeout.

[0091] According to an embodiment of the present invention, the step of optimizing the parameter configuration of the protocol converter based on the protocol conversion performance data specifically includes:

[0092] Based on the protocol conversion performance data, if the protocol conversion performance is lower than the preset performance value, the items affecting the protocol conversion performance are identified. The handshake response delay time is compared with the preset delay time threshold. If the handshake response delay time is greater than the delay time threshold, it is determined to be a protocol conversion timing mismatch scenario, and the first conversion performance affecting item is obtained.

[0093] If the voltage fluctuation amplitude is greater than the preset fluctuation threshold and the current change rate exceeds the change rate threshold, it is determined that the data packet integrity is damaged during the protocol conversion process, and the second conversion performance impact item is obtained.

[0094] If the SOC response deviation exceeds the deviation threshold, it is determined to be the accumulation of numerical quantization error in the protocol conversion process, and the third conversion performance impact item is obtained.

[0095] Based on the first, second, and third performance impact factors, the parameter configuration of the protocol converter was optimized.

[0096] It should be noted that the protocol conversion timing mismatch scenario refers to an abnormal situation where, during the conversion of communication protocols between the charging pile and the vehicle, the protocol converter experiences significant time delays or out-of-order sequences between the instruction requests and responses during the handshake phase due to inconsistencies in the protocol interaction timing logic or unreasonable execution order of transcoding rules. Data packet integrity corruption refers to the loss of data bits or numerical distortion of key parameters such as vehicle battery voltage and charging current during transmission due to improper field truncation or padding of data frames by transcoding rules or errors in encoding format conversion. This leads to a mismatch between the charging pile's execution instructions and the vehicle's actual needs, manifesting as abnormal states where voltage fluctuations and current change rates exceed system safety thresholds. Numerical quantization error accumulation refers to a systemic technical problem caused by the difference in precision between the vehicle and charging pile protocol data formats during protocol conversion (e.g., the vehicle protocol uses high-precision floating-point numbers while the charging pile protocol uses low-order integer data). Repeated rounding or truncation operations during multiple data transcoding processes cause small errors in continuous parameters such as SOC to gradually accumulate with the number of communication interactions, ultimately causing the transmitted SOC value to deviate from the actual battery state and exceed the allowable error range.

[0097] According to an embodiment of the present invention, the parameter configuration optimization of the protocol converter based on the first, second, and third conversion performance impact items specifically includes:

[0098] For the first conversion performance impact item, obtain the abnormal status bytes in the protocol communication abnormal event dataset, and parse the protocol fields that are lost or incorrectly transcoded during the protocol conversion process based on the abnormal status bytes to obtain the protocol field transcoding error data;

[0099] Based on the transcoding error data of the protocol fields, the main function code transcoding mapping table and extended function code splitting rules in the protocol adaptation scheme are corrected;

[0100] It should be noted that when modifying the main function code transcoding mapping table and extended function code splitting rules in the protocol adaptation scheme, the modifications include: identifying protocol fields that are lost or incorrectly transcoded during the protocol conversion process based on the abnormal status bytes in the protocol communication abnormal event dataset, and redefining the function code correspondence in the main function code transcoding mapping table for these fields to ensure accurate mapping of core instructions; secondly, for the extended function code splitting rules, by analyzing the logical execution errors reflected by the abnormal status bytes, adjusting the sub-function code generation rules and timing control rules, optimizing the splitting logic of atomic operation steps, and redefining the execution order and minimum interval time between sub-function codes; and simultaneously, for the data stream mapping rules, modifying the segmented assignment and result aggregation methods of the extended function code input and output parameters.

[0101] For the second conversion performance impact item, obtain the protocol response frames corresponding to the voltage and current sudden change time points in the protocol communication abnormal event dataset, perform reverse parsing of the frame structure of the protocol response frames, locate the charging control command lost fields caused by data packet truncation or padding during the protocol conversion process, and obtain the command lost field data.

[0102] Adjust the packet filling or truncation rules in the second protocol matching strategy according to the missing field data in the instruction;

[0103] It should be noted that when adjusting the packet padding or truncation rules in the second protocol matching strategy, the adjustments include: redefining the specific operation rules for packet padding or truncation based on the missing field data of the instruction, including determining the type of redundant bytes to be padded (such as 0x00 or a specific check value) and their insertion position, or clarifying the range of data segments to be truncated and the alignment method of the length after truncation. At the same time, the triggering conditions and execution priority of the padding or truncation operation are optimized to ensure that the converted data packet is completely matched with the target protocol requirements in terms of length and structure, and to avoid the loss of charging control instructions or execution abnormalities due to missing or redundant fields.

[0104] For the third conversion performance impact item, obtain the status bytes returned by the BMS control unit in the protocol communication abnormal event dataset, and parse the numerical conversion error caused by protocol field offset during SOC calculation based on the status bytes to obtain the numerical conversion error data;

[0105] Correct the function code arrangement order offset in the second protocol matching strategy based on the numerical conversion error data;

[0106] An optimized protocol adaptation scheme is constructed by using the revised main function code transcoding mapping table, extended function code splitting rules, packet padding or truncation rules, and function code arrangement order offset. The parameter configuration of the protocol converter is then updated according to the optimized protocol adaptation scheme.

[0107] It should be noted that by constructing an optimized protocol adaptation scheme using the revised main function code transcoding mapping table, extended function code splitting rules, data packet padding or truncation rules, and function code arrangement order offset, and updating the parameter configuration of the protocol converter accordingly, the communication quality and charging stability between charging piles and vehicles using different protocols can be significantly improved. The optimized main function code transcoding mapping table ensures accurate conversion and reliable execution of core control commands, enabling the charging pile to correctly respond to the vehicle's basic charging needs. The improved extended function code splitting rules, through more refined function decomposition and timing control, enable the charging pile to support the vehicle's advanced charging function requirements. The adjusted data packet padding or truncation rules effectively solve the integrity problem during data transmission, avoiding charging anomalies caused by data loss or format errors. The calibrated function code arrangement order offset eliminates numerical errors caused by differences in protocol field positions, ensuring the accurate transmission of key parameters such as battery status. These optimization measures work together to enable the protocol converter to more intelligently adapt to different communication protocols, significantly improving the reliability, safety, and compatibility of the charging process.

[0108] According to an embodiment of the present invention, it further includes:

[0109] Obtain charging request data for all vehicles waiting to be charged in the current charging station, and analyze the communication protocol type and protocol adaptation priority tag contained in the charging request.

[0110] All pending protocol adaptation requests are clustered and grouped according to protocol type and priority label to build a multi-protocol adaptation task queue.

[0111] Obtain the processing capacity status information of each protocol converter under the current operating status of the charging station, including conversion task processing rate, current load status, communication link usage, etc.

[0112] Based on the status information of the protocol converter and the protocol adaptation task queue, a dynamic scheduling algorithm based on load threshold is used to load balance the protocol adaptation requests and construct a dynamic load mapping table for multi-protocol adaptation.

[0113] According to the load mapping table, the communication requests between the charging pile and the charging vehicle are respectively assigned to the corresponding protocol converters for adaptation.

[0114] According to an embodiment of the present invention, the dynamic scheduling algorithm based on load threshold specifically comprises:

[0115] Obtain historical task processing data for each protocol converter currently in an active state, and construct a protocol converter resource consumption feature vector based on the historical data;

[0116] Construct a resource estimation vector for protocol adaptation requests based on metrics such as protocol complexity label, estimated duration, and protocol adaptation priority in the protocol adaptation task queue.

[0117] The protocol adaptation request is mapped to the protocol converter with the best current load by feature vector matching. If there are multiple protocol converters that meet the mapping conditions, they are sorted and scheduled according to the protocol adaptation priority.

[0118] During the protocol adaptation process, the resource utilization of the protocol converter is monitored in real time. When the resource consumption of a protocol converter exceeds the dynamic load threshold, the migration judgment mechanism of the protocol adaptation task is triggered, and the unfinished protocol adaptation requests are transferred to idle protocol converters for further processing.

[0119] It's important to note that in large charging stations, especially in high-density vehicle areas such as logistics parks and bus terminals, the charging system needs to handle a large number of charging vehicle access requests simultaneously. These vehicles may use multiple different communication protocols, leading to high concurrency of protocol adaptation requests and a surge in conversion pressure. This can easily cause problems such as uneven load on protocol converters, communication link congestion, and charging response delays. To address this, the system acquires real-time charging requests and communication protocol information from vehicles waiting to access the charging station, and clusters tasks based on protocol complexity and priority tags to construct a multi-protocol adaptation task queue. Simultaneously, it acquires the processing capacity and link usage status of each protocol converter, and uses a dynamic scheduling algorithm based on load thresholds to allocate protocol adaptation requests according to the optimal resource matching strategy, effectively achieving balanced resource scheduling for multi-protocol conversion tasks. During protocol adaptation, the system continuously monitors the resource usage status of the converters, dynamically adjusts and migrates tasks, avoids single-point overload, and ensures the stability and timeliness of protocol adaptation. This significantly improves the processing efficiency and overall stability of communication links for large-scale concurrent vehicle access in a multi-protocol environment, achieving intelligent management and efficient operation of the protocol conversion system in high-concurrency charging scenarios.

[0120] Figure 4 A block diagram of a charging pile communication system based on multi-protocol adaptation according to the present invention is shown.

[0121] A second aspect of the present invention also provides a charging pile communication system 4 based on multi-protocol adaptation. The system includes a memory 41 and a processor 42. The memory includes a charging pile communication method program based on multi-protocol adaptation. When the processor executes the charging pile communication method program based on multi-protocol adaptation, it performs the following steps:

[0122] Obtain charging request data of charging piles and charging vehicles in the target charging station, identify the vehicle communication protocol based on the charging request data, and obtain the vehicle communication protocol identification result.

[0123] The vehicle communication protocol identification result is compared with the charging pile communication protocol for compatibility. If the communication protocols do not match, the communication protocol of the charging pile is matched with the transcoding strategy according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle.

[0124] According to the protocol adaptation scheme, a charging communication link is established between the charging pile and the charging vehicle to monitor the charging status of the vehicle in real time. Based on the charging status, the protocol conversion performance of the protocol adaptation scheme is evaluated to obtain protocol conversion performance data.

[0125] The protocol converter's parameters are optimized based on the protocol conversion performance data.

[0126] This invention discloses a charging pile communication method and system based on multi-protocol adaptation, solving the compatibility problem between charging piles and vehicles with different communication protocols. The method acquires charging request data from the charging pile and the vehicle, identifies the vehicle's communication protocol, and compares it with the charging pile's protocol for compatibility. If the protocols do not match, a protocol converter is used to perform transcoding strategy matching, constructing a protocol adaptation scheme to establish a communication link between the charging pile and the vehicle. The system monitors the vehicle's charging status in real time and evaluates the conversion performance of the protocol adaptation scheme based on the charging status, acquiring performance data. Finally, the protocol converter parameters are optimized based on the performance data. This method achieves dynamic adaptation and optimization between multiple protocols, improving the compatibility and efficiency of charging communication, enhancing the intelligence level of charging management, and is applicable to various charging environments, improving the charging experience and system stability.

[0127] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0128] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0129] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0130] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0131] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.

[0132] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A charging pile communication method based on multi-protocol adaptation, characterized in that, Includes the following steps: Obtain charging request data of charging piles and charging vehicles in the target charging station, identify the vehicle communication protocol based on the charging request data, and obtain the vehicle communication protocol identification result. The vehicle communication protocol identification result is compared with the charging pile communication protocol for compatibility. If the communication protocols do not match, the communication protocol of the charging pile is matched with the transcoding strategy according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle. According to the protocol adaptation scheme, a charging communication link is established between the charging pile and the charging vehicle to monitor the charging status of the vehicle in real time. Based on the charging status, the protocol conversion performance of the protocol adaptation scheme is evaluated to obtain protocol conversion performance data. Based on the protocol conversion performance data, the parameter configuration of the protocol converter is optimized, specifically as follows: Identify the first, second, and third conversion performance impact items based on the aforementioned protocol conversion performance data; For the first conversion performance impact item, obtain the abnormal status bytes in the protocol communication abnormal event dataset, and parse the protocol fields that are lost or incorrectly transcoded during the protocol conversion process based on the abnormal status bytes to obtain the protocol field transcoding error data; Based on the transcoding error data of the protocol fields, the main function code transcoding mapping table and extended function code splitting rules in the protocol adaptation scheme are corrected; For the second conversion performance impact item, obtain the protocol response frames corresponding to the voltage and current sudden change time points in the protocol communication abnormal event dataset, perform reverse parsing of the frame structure of the protocol response frames, locate the charging control command lost fields caused by data packet truncation or padding during the protocol conversion process, and obtain the command lost field data. Adjust the packet filling or truncation rules in the second protocol matching strategy according to the missing field data in the instruction; For the third conversion performance impact item, obtain the status bytes returned by the BMS control unit in the protocol communication abnormal event dataset, and parse the numerical conversion error caused by protocol field offset during SOC calculation based on the status bytes to obtain the numerical conversion error data; Correct the function code arrangement order offset in the second protocol matching strategy based on the numerical conversion error data; An optimized protocol adaptation scheme is constructed by using the revised main function code transcoding mapping table, extended function code splitting rules, packet padding or truncation rules, and function code arrangement order offset. The parameter configuration of the protocol converter is then updated according to the optimized protocol adaptation scheme.

2. The charging pile communication method based on multi-protocol adaptation according to claim 1, characterized in that, The process of acquiring charging request data from charging piles and charging vehicles within the target charging station, identifying vehicle communication protocols based on the charging request data, and obtaining vehicle communication protocol identification results specifically involves: Obtain the physical connection status data of the charging piles and charging vehicles at the target charging station, and generate a protocol adaptation unit for the charging piles and charging vehicles with the physical connection status. Obtain charging request data for each protocol adaptation unit, extract handshake request messages between the charging pile and the charging vehicle based on the charging request data, parse the protocol fields of the handshake request messages, and extract the protocol identifier field of the charging vehicle's communication request to the charging pile, including the protocol version number, protocol preamble, and function code sequence. Obtain the communication protocol type data between different vehicles and charging piles, extract the communication protocol identifier field of each communication protocol type, and construct a communication protocol type database using the communication protocol identifier field of each communication protocol type; A protocol feature vector is constructed from the protocol identifier field of the communication request between the charging vehicle and the charging pile. The protocol feature vector is then matched with the communication protocol type database to identify the vehicle communication protocol of the charging vehicle and obtain the vehicle communication protocol identification result.

3. The charging pile communication method based on multi-protocol adaptation according to claim 1, characterized in that, The process involves comparing the vehicle communication protocol identification result with the charging pile communication protocol for compatibility. If the communication protocols do not match, a transcoding strategy is used to match the charging pile's communication protocol according to the protocol converter, thus constructing a protocol adaptation scheme between the charging pile and the charging vehicle. Specifically: Acquire protocol conversion data for different communication protocol types, determine protocol mapping rules for different communication protocol types based on the protocol conversion data, construct a protocol mapping rule library, and construct a charging pile protocol converter based on the protocol mapping rule library; Based on the vehicle communication protocol identification result, the target protocol version number and vehicle-side protocol preamble of the charging vehicle are extracted, and the current communication protocol version number, charging pile preamble data, and charging pile function code sequence of the protocol adaptation unit where the charging vehicle is located are obtained. The target protocol version number and the current communication protocol version number are mapped and analyzed according to the preamble of the vehicle-side and charging pile-side protocols to determine whether the charging pile supports the protocol frame structure of the vehicle communication protocol. If not supported, it is determined that the communication protocol between the charging pile and the charging vehicle of the current protocol adaptation unit is mismatched. The vehicle-side function code sequence and the charging pile-side function code sequence are compared bit by bit to calculate the difference in protocol fields. If the difference is greater than the preset difference threshold, it is determined to be a complex protocol structure mismatch scenario. The function code sequence of the vehicle communication protocol is split into the main function code segment and the extended function code segment. According to the available range of function codes of the charging pile protocol, the basic transcoding template corresponding to the main function code segment is matched in the protocol mapping rule base to generate the main function code transcoding mapping table. For extended function code segments, by logically splitting the function codes not defined in the charging pile protocol, a single extended function code is converted into a combination of multiple sub-function codes supported by the charging pile, generating extended function code splitting rules, and constructing a first protocol matching strategy by combining the main function code transcoding mapping table and the extended function code splitting rules. If the difference is less than or equal to the difference threshold, it is determined to be a simple protocol field offset scenario. Based on the difference in the data frame length field between the vehicle communication protocol and the charging pile communication protocol, the data packets of the charging pile communication protocol are padded or truncated. At the same time, the function code arrangement order of the charging pile protocol is adjusted according to the offset of the function code sequence to generate a second protocol matching strategy. A protocol adaptation scheme for charging piles and charging vehicles is constructed based on the first protocol matching strategy and the second protocol matching strategy.

4. The charging pile communication method based on multi-protocol adaptation according to claim 1, characterized in that, The process involves establishing a charging communication link between the charging pile and the charging vehicle according to the protocol adaptation scheme, monitoring the vehicle's charging status in real time, and evaluating the protocol conversion performance of the protocol adaptation scheme based on the charging status to obtain protocol conversion performance data. Specifically: A communication link is established between the charging pile and the charging vehicle according to the protocol adaptation scheme. After the communication link is established, the charging status information of the charging vehicle is obtained. The charging status information includes the current battery operating voltage, charging current, battery SOC percentage, and the protocol response frame and status bytes within the frame returned by the BMS control unit. Based on the charging status information, calculate the stability parameters of the communication response between the vehicle and the charging pile during the protocol handshake phase, and construct the stability parameters into communication stability status information, including handshake response delay time, voltage fluctuation amplitude, current change rate, and SOC response deviation. Based on the communication stability status information, determine whether there is an abnormal status such as handshake response interruption, voltage fluctuation change, or BMS returning abnormal status bytes. If there is an abnormality, record the voltage, current, SOC and status bytes in the corresponding time period as protocol communication abnormality samples to construct a protocol communication abnormal event dataset. The protocol adaptation scheme is evaluated for protocol conversion performance based on the protocol communication anomaly event dataset to obtain protocol conversion performance data.

5. A charging pile communication method based on multi-protocol adaptation according to claim 1, characterized in that, The step of optimizing the parameter configuration of the protocol converter based on the protocol conversion performance data further includes: Based on the protocol conversion performance data, if the protocol conversion performance is lower than the preset performance value, the items affecting the protocol conversion performance are identified. The handshake response delay time is compared with the preset delay time threshold. If the handshake response delay time is greater than the delay time threshold, it is determined to be a protocol conversion timing mismatch scenario, and the first conversion performance affecting item is obtained. If the voltage fluctuation amplitude is greater than the preset fluctuation threshold and the current change rate exceeds the change rate threshold, it is determined that the data packet integrity is damaged during the protocol conversion process, and the second conversion performance impact item is obtained. If the SOC response deviation exceeds the deviation threshold, it is determined to be the accumulation of numerical quantization error in the protocol conversion process, resulting in the third conversion performance impact item.

6. A charging pile communication system based on multi-protocol adaptation, characterized in that, The charging pile communication system based on multi-protocol adaptation includes a storage device and a processor. The storage device includes a charging pile communication method program based on multi-protocol adaptation. When the processor executes the charging pile communication method program based on multi-protocol adaptation, it performs the following steps: Obtain charging request data of charging piles and charging vehicles in the target charging station, identify the vehicle communication protocol based on the charging request data, and obtain the vehicle communication protocol identification result. The vehicle communication protocol identification result is compared with the charging pile communication protocol for compatibility. If the communication protocols do not match, the communication protocol of the charging pile is matched with the transcoding strategy according to the protocol converter to construct a protocol adaptation scheme between the charging pile and the charging vehicle. According to the protocol adaptation scheme, a charging communication link is established between the charging pile and the charging vehicle to monitor the charging status of the vehicle in real time. Based on the charging status, the protocol conversion performance of the protocol adaptation scheme is evaluated to obtain protocol conversion performance data. Based on the protocol conversion performance data, the parameter configuration of the protocol converter is optimized, specifically as follows: Identify the first, second, and third conversion performance impact items based on the aforementioned protocol conversion performance data; For the first conversion performance impact item, obtain the abnormal status bytes in the protocol communication abnormal event dataset, and parse the protocol fields that are lost or incorrectly transcoded during the protocol conversion process based on the abnormal status bytes to obtain the protocol field transcoding error data; Based on the transcoding error data of the protocol fields, the main function code transcoding mapping table and extended function code splitting rules in the protocol adaptation scheme are corrected; For the second conversion performance impact item, obtain the protocol response frames corresponding to the voltage and current sudden change time points in the protocol communication abnormal event dataset, perform reverse parsing of the frame structure of the protocol response frames, locate the charging control command lost fields caused by data packet truncation or padding during the protocol conversion process, and obtain the command lost field data. Adjust the packet filling or truncation rules in the second protocol matching strategy according to the missing field data in the instruction; For the third conversion performance impact item, obtain the status bytes returned by the BMS control unit in the protocol communication abnormal event dataset, and parse the numerical conversion error caused by protocol field offset during SOC calculation based on the status bytes to obtain the numerical conversion error data; Correct the function code arrangement order offset in the second protocol matching strategy based on the numerical conversion error data; An optimized protocol adaptation scheme is constructed by using the revised main function code transcoding mapping table, extended function code splitting rules, packet padding or truncation rules, and function code arrangement order offset. The parameter configuration of the protocol converter is then updated according to the optimized protocol adaptation scheme.

Citation Information

Patent Citations

  • Multi-protocol adaptation method and system for charging pile

    CN119232809A