Vehicle charging method, device and vehicle

CN122539948APending Publication Date: 2026-08-11CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-25
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0006]本申请的主要目的在于提供一种车辆充电方法、装置及车辆,以解决相关技术中由于充电桩的电压双判机制导致车辆充电故障的问题

Benefits of technology

[0017] This application employs the following steps: sending a first message and a second message to a target charging pile, wherein the first message contains the vehicle's maximum charging voltage, and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state; upon receiving a first response message from the target charging pile in response to the second message, and if the target charging pile's response duration is greater than or equal to a response duration threshold, determining the type of charging anomaly, wherein the first response message is used to characterize the termination of charging; if the anomaly type is a protocol parsing defect of the target charging pile, calculating the difference between the target charging voltage and the maximum charging voltage; if the difference is less than or equal to a safety tolerance threshold, modifying the target charging voltage in the second message to the maximum charging voltage, and sending the updated second message to the target charging pile; upon receiving a second response message from the target charging pile in response to the updated second message, charging the vehicle through the target charging pile, wherein the second response message is used to characterize the target charging pile's charging preparation completion, thus solving the problem of vehicle charging failure caused by the charging pile's voltage dual-judgment mechanism in related technologies. This is achieved by actively detecting whether the charging pile has a protocol parsing defect that forcibly compares the voltages of the first and second messages. The second message is only executed to align the voltage with the first message when a protocol parsing defect is confirmed and the difference is less than or equal to the safety tolerance threshold. This eliminates the problem of charging piles refusing to charge due to normal fluctuations in battery status, ensuring that vehicles can successfully start charging even on charging piles with protocol parsing defects. This reduces the vehicle-charging pile compatibility failure rate and thus reduces the failure rate of vehicle charging failures caused by protocol parsing defects in charging piles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122539948A_ABST
    Figure CN122539948A_ABST
Patent Text Reader

Abstract

This application discloses a vehicle charging method, apparatus, and vehicle. Relating to the field of battery management, the method includes: sending a first message and a second message to a target charging station; upon receiving a first response message from the target charging station in response to the second message, if the response duration of the target charging station is greater than or equal to a response duration threshold, determining the type of charging anomaly; if the anomaly type is a protocol parsing defect of the target charging station, calculating the difference between the target charging voltage and the maximum charging voltage; if the difference is less than or equal to a safety tolerance threshold, modifying the target charging voltage in the second message to the maximum charging voltage, and sending the updated second message to the target charging station; upon receiving a second response message from the target charging station in response to the updated second message, charging the vehicle through the target charging station. This application solves the problem of vehicle charging failures caused by the dual voltage determination mechanism of the charging station in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery management, and more specifically, to a vehicle charging method, apparatus, and vehicle. Background Technology

[0002] With the rapid development of the new energy vehicle industry, DC charging facilities have been widely deployed in highway service areas, public parking lots, and community charging stations, becoming one of the main ways for electric vehicle users to replenish their energy. The DC charging process follows the standard GB / T 27930-2015, "Communication Protocol between Off-board Conductive Chargers and Battery Management Systems for Electric Vehicles." This standard specifies the communication process and message exchange mechanism between the charger (charging pile) and the vehicle's BMS (Battery Management System), aiming to ensure the safety and compatibility of the charging process. In the short period between the vehicle sending the BHM message (BMS Handshake Message) and before sending the BCP message (BMS Charge Parameter Message), if high-voltage accessories such as air conditioning cause battery discharge, or if there are slight changes in battery temperature or remaining charge percentage, the BCP voltage calculated by the BMS will differ slightly from the BHM voltage during the handshake phase. This difference is a normal dynamic adjustment of battery management, but it appears as parameter inconsistency to a defective charging pile. Different vehicle manufacturers have slight differences in the definition of BMS algorithms and message fields. For example, the BHM voltage of some models may include a certain safety margin, while the BCP voltage is a measured or target value; or different brands may handle the accuracy of the voltage field differently. Some charging stations lack compatibility handling for these differences, leading to misjudgments.

[0003] Due to differences in the understanding of communication protocols among different charging pile manufacturers and limitations in software logic design, some charging piles have non-standard protocol parsing defects. The software logic of some charging piles treats the voltage value in the BHM message and the voltage value in the BCP message (BMS Charge Parameter Message) as two independent variables to be verified, and establishes an internal dual voltage comparison mechanism. That is, after receiving the BCP message, the charging pile not only checks whether the BCP voltage matches its own output capability, but also forcibly compares the BCP voltage with the BHM voltage recorded during the previous handshake phase. If there is a difference, even if the difference is within the standard allowable error range, such as being caused by minor fluctuations in battery status, the charging pile determines that there is a capability inconsistency or parameter conflict on the vehicle side, and thus directly refuses to enter the charging process or stops charging midway. In related technologies, when the vehicle's BMS sends the BCP message, it actively forces the voltage value to be completely consistent with the BHM to bypass the charging pile's comparison mechanism.

[0004] However, if the battery needs to be derated before actual charging due to a sudden temperature rise or abnormal cell voltage, the BMS must lower the allowable charging voltage. If the vehicle still forcibly aligns the BCP voltage to a higher initial BHM value at this time, the charging station will charge at a voltage higher than the battery's safe tolerance, which may lead to overcharging, overheating, or even fire and explosion. Using a consistent value strategy for all charging stations deprives the BMS of its ability to flexibly adjust charging parameters based on real-time battery status, reducing charging efficiency and safety margin. Even if charging is successfully achieved through forced alignment during startup, as the charging process progresses, the remaining battery charge percentage increases, causing the actual voltage to rise naturally. If the charging station compares the current voltage with the initial BHM / BCP value again, it may still trigger a secondary verification anomaly, leading to charging interruption.

[0005] There is currently no effective solution to the problem of vehicle charging failure caused by the dual voltage judgment mechanism of charging piles in related technologies. Summary of the Invention

[0006] The main objective of this application is to provide a vehicle charging method, device, and vehicle to solve the problem of vehicle charging failure caused by the voltage dual-judgment mechanism of charging piles in related technologies.

[0007] To achieve the above objectives, according to one aspect of this application, a vehicle charging method is provided. The method includes: sending a first message and a second message to a target charging station, wherein the first message contains the vehicle's maximum charging voltage, and the second message contains a target charging voltage currently allowed for the vehicle calculated based on the vehicle's battery state; upon receiving a first response message from the target charging station in response to the second message, and if the response duration of the target charging station is greater than or equal to a response duration threshold, determining an anomaly type of the charging anomaly, wherein the first response message is used to characterize termination of charging; if the anomaly type is a protocol parsing defect of the target charging station, calculating the difference between the target charging voltage and the maximum charging voltage; if the difference is less than or equal to a safety tolerance threshold, modifying the target charging voltage in the second message to the maximum charging voltage, and sending the updated second message to the target charging station; and upon receiving a second response message from the target charging station in response to the updated second message, charging the vehicle through the target charging station, wherein the second response message is used to characterize that the target charging station is ready to charge.

[0008] Optionally, determining the type of charging anomaly includes: detecting whether there is a hardware anomaly between the vehicle and the target charging station, wherein the hardware anomaly includes at least one of the following: physical connection failure, insulation detection anomaly, and connector temperature anomaly; if a hardware anomaly is detected between the vehicle and the target charging station, the anomaly type of the charging anomaly is determined to be a hardware anomaly; if no hardware anomaly is detected between the vehicle and the target charging station, detecting whether there is a protocol parsing defect in the target charging station; if a protocol parsing defect is detected in the target charging station, the anomaly type of the charging anomaly is determined to be a protocol parsing defect in the target charging station; if no protocol parsing defect is detected in the target charging station, the anomaly type of the charging anomaly is determined to be another type.

[0009] Optionally, detecting whether the target charging pile has a protocol parsing defect includes: modifying the target charging voltage in the second message to the maximum charging voltage to obtain a first detection message, and sending the first detection message to the target charging pile; if a second response message is received from the target charging pile, determining that the target charging pile has a protocol parsing defect; if a second response message is not received from the target charging pile, determining that the target charging pile does not have a protocol parsing defect.

[0010] Optionally, after determining that the target charging pile has a protocol parsing defect, the method further includes: calculating the sum of the maximum charging voltage and the preset voltage to obtain a first detection voltage; calculating the difference between the maximum charging voltage and the preset voltage to obtain a second detection voltage; modifying the target charging voltage in the second message to the first detection voltage to obtain a second detection message; modifying the target charging voltage in the second message to the second detection voltage to obtain a third detection message; sending the second detection message and the third detection message to the target charging pile; and, upon receiving a second response message from the target charging pile to the second detection message and the third detection message, determining that the defect type of the protocol parsing defect of the target charging pile is a tolerance-tolerant type, and determining the allowable tolerance value corresponding to the tolerance-tolerant defect of the target charging pile through multiple detection messages, wherein the number of multiple detection messages is less than or equal to a preset number threshold.

[0011] Optionally, after sending the second probe message and the third probe message to the target charging pile, the method further includes: if only a second response message from the target charging pile to one of the second probe message and the third probe message is received, determining that the defect type of the protocol parsing defect of the target charging pile is one-way sensitive; if no second response message from the target charging pile to either the second probe message or the third probe message is received, determining that the defect type of the protocol parsing defect of the target charging pile is consistent.

[0012] Optionally, after calculating the difference between the target charging voltage and the maximum charging voltage, the method further includes: calculating the product of the maximum charging voltage and a preset ratio to obtain a first error voltage; determining a preset second error voltage, and determining the minimum value between the first error voltage and the second error voltage as a safety tolerance threshold; and sending a first prompt message to the vehicle when the difference is greater than the safety tolerance threshold, wherein the first prompt message is used to indicate that the target charging station is unavailable.

[0013] Optionally, after charging the vehicle through the target charging station, the method further includes: sending the real-time voltage of the vehicle's battery to the target charging station at preset intervals; upon receiving a first response message, determining that the defect type of the protocol parsing defect of the target charging station is dynamic judgment type; and sending a second prompt message to the vehicle, wherein the second prompt message is used to indicate abnormal termination of charging and suggest replacing the charging station.

[0014] Optionally, after determining the anomaly type of the charging anomaly, the method further includes: if the anomaly type is a protocol parsing defect of the target charging pile, obtaining the identifier of the target charging pile; uploading the identifier and the defect type of the protocol parsing defect to a cloud server, wherein the cloud server is used to receive uploaded data from multiple vehicles, verify the uploaded data, and store the verified uploaded data in the charging pile defect database.

[0015] To achieve the above objectives, according to another aspect of this application, a vehicle charging device is provided. The device includes: a first transmitting unit, configured to transmit a first message and a second message to a target charging pile, wherein the first message contains the vehicle's maximum charging voltage, and the second message contains a target charging voltage currently allowed for the vehicle calculated based on the vehicle's battery state; a first receiving unit, configured to determine an anomaly type of charging anomaly when receiving a first response message returned by the target charging pile to the second message, and the response duration of the target charging pile is greater than or equal to a response duration threshold, wherein the first response message is used to characterize termination of charging; a calculation unit, configured to calculate the difference between the target charging voltage and the maximum charging voltage when the anomaly type is a protocol parsing defect of the target charging pile; a second transmitting unit, configured to modify the target charging voltage in the second message to the maximum charging voltage and send the updated second message to the target charging pile when the difference is less than or equal to a safety tolerance threshold; and a second receiving unit, configured to charge the vehicle through the target charging pile when receiving a second response message returned by the target charging pile to the updated second message, wherein the second response message is used to characterize the completion of charging preparation at the target charging pile.

[0016] To achieve the above objectives, according to another aspect of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the vehicle charging method described in various embodiments of this application.

[0017] This application employs the following steps: sending a first message and a second message to a target charging pile, wherein the first message contains the vehicle's maximum charging voltage, and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state; upon receiving a first response message from the target charging pile in response to the second message, and if the target charging pile's response duration is greater than or equal to a response duration threshold, determining the type of charging anomaly, wherein the first response message is used to characterize the termination of charging; if the anomaly type is a protocol parsing defect of the target charging pile, calculating the difference between the target charging voltage and the maximum charging voltage; if the difference is less than or equal to a safety tolerance threshold, modifying the target charging voltage in the second message to the maximum charging voltage, and sending the updated second message to the target charging pile; upon receiving a second response message from the target charging pile in response to the updated second message, charging the vehicle through the target charging pile, wherein the second response message is used to characterize the target charging pile's charging preparation completion, thus solving the problem of vehicle charging failure caused by the charging pile's voltage dual-judgment mechanism in related technologies. This is achieved by actively detecting whether the charging pile has a protocol parsing defect that forcibly compares the voltages of the first and second messages. The second message is only executed to align the voltage with the first message when a protocol parsing defect is confirmed and the difference is less than or equal to the safety tolerance threshold. This eliminates the problem of charging piles refusing to charge due to normal fluctuations in battery status, ensuring that vehicles can successfully start charging even on charging piles with protocol parsing defects. This reduces the vehicle-charging pile compatibility failure rate and thus reduces the failure rate of vehicle charging failures caused by protocol parsing defects in charging piles. Attached Figure Description

[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 This is a flowchart of a vehicle charging method provided according to an embodiment of this application;

[0020] Figure 2 This is a flowchart of an optional vehicle charging method provided according to an embodiment of this application;

[0021] Figure 3 This is a timing diagram of active defect detection provided according to the embodiments of this application;

[0022] Figure 4This is a flowchart of a security alignment strategy provided according to an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of the dynamic consistency maintenance mechanism provided according to the embodiments of this application;

[0024] Figure 6 This is a schematic diagram of a charging pile defect data sharing architecture provided according to an embodiment of this application;

[0025] Figure 7 This is a schematic diagram of a vehicle charging device provided according to an embodiment of this application;

[0026] Figure 8 This is a schematic diagram of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0027] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0028] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] The present invention will now be described in conjunction with preferred implementation steps. Figure 1 This is a flowchart of a vehicle charging method provided according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0031] Step S101: Send a first message and a second message to the target charging pile, wherein the first message contains the vehicle's maximum charging voltage and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state.

[0032] In step S101, the first message can be a BHM message, and the second message can be a BCP message. According to the GB / T27930-2015 standard, the DC charging interaction process mainly includes two core stages: the charging handshake stage and the charging parameter configuration stage. During the charging handshake stage, the vehicle's BMS sends a BHM message (BMS Handshake Message) to the charging pile, which includes the maximum allowable total charging voltage of the BMS. This message is mainly used for preliminary capability confirmation between the vehicle and the charging pile, as well as parameter exchange before insulation testing. Subsequently, in the charging parameter configuration stage, the vehicle's BMS sends a BCP message to the charging pile, which includes more detailed battery status parameters such as the maximum allowable charging voltage, maximum allowable charging current, total battery capacity, current capacity, and current total voltage. The BCP message performs a more comprehensive capability matching verification of the vehicle's charging capability before the charging pile closes K1 / K2 (main circuit contactor).

[0033] The vehicle charging method in this embodiment is executed by the vehicle's BMS system and includes four core technology modules: a defect active detection module, a safety alignment decision module, a dynamic consistency maintenance module, and a charging pile data storage and reuse module. The vehicle sends a first message to the target charging pile according to the standard GB / T 27930 procedure, containing the maximum charging voltage U_bhm. The BMS calculates the real-time allowable charging voltage U_bcp_real based on the current battery state and sends a second message containing the target charging voltage U_bcp = U_bcp_real. If the charging pile responds normally with a CRO (Charging Ready Output), it indicates that the target charging pile does not have a voltage double-judgment defect, the process ends, and normal charging begins.

[0034] Step S102: If a first response message is received from the target charging pile in response to the second message, and the response duration of the target charging pile is greater than or equal to the response duration threshold, the abnormality type of the charging abnormality is determined, wherein the first response message is used to characterize the termination of charging.

[0035] In step S102, if the target charging pile returns a first response message such as CST (ChargingStop) during the parameter configuration phase and the response times out, and it is confirmed by testing that there are no physical connection faults, insulation detection anomalies, or other hardware problems, then it is determined that the problem may be caused by a protocol parsing defect. The vehicle initiates an active detection process: resetting the voltage value in the BCP message to be exactly equal to U_bhm, and resending the BCP message. If the charging pile responds normally to CRO at this time, it is confirmed that the target charging pile has a voltage double-judgment defect, and the defect type is recorded according to the target charging pile's response to different values ​​of U_bcp.

[0036] For example, an electric vehicle (battery nominal voltage platform 400V, actual maximum allowable charging voltage 420V) connects to a DC charging station at a highway service area. This charging station has a strict voltage consistency double-judgment defect, requiring the voltage values ​​in the BHM and BCP messages to be precisely equal before charging is permitted. Handshake phase: The vehicle's BMS sends a BHM message, U_bhm=410V (the maximum allowable total charging voltage set by the BMS based on the initial battery state). Parameter configuration phase: The BMS calculates the optimal charging voltage as 412V based on real-time battery data (the voltage naturally increases by 2V as the remaining charge percentage rises from 30% to 31%), and sends a BCP message, U_bcp=412V. The charging station detects the inconsistency between the BHM voltage (410V) and the BCP voltage (412V), a difference of 2V, and returns a CST abort message. The vehicle detects no physical connection fault and normal insulation detection, determining that the problem may be caused by a protocol parsing defect, and initiates an active detection process. The vehicle resets the BCP message voltage to U_bcp=410V (exactly equal to U_bhm) and retransmits it.

[0037] Step S103: If the anomaly type is a protocol parsing defect of the target charging pile, calculate the difference between the target charging voltage and the maximum charging voltage.

[0038] In step S103, after confirming that the anomaly type is a protocol parsing defect of the target charging pile, the difference ΔU= is calculated. .

[0039] Step S104: If the difference is less than or equal to the safety tolerance threshold, modify the target charging voltage in the second message to the maximum charging voltage, and send the updated second message to the target charging pile.

[0040] In step S104, if ΔU ≤ ΔU_safe (preset safety tolerance threshold), the alignment strategy is allowed, and U_bcp in the second message is set to U_bhm to start charging; if ΔU > ΔU_safe, forced alignment is prohibited, the user is prompted that the current charging pile is incompatible with the vehicle battery status, the pile is recorded as unsafe and unavailable and uploaded to the cloud, and the charging process is terminated.

[0041] Step S105: Upon receiving a second response message from the target charging pile in response to the updated second message, the vehicle is charged via the target charging pile, wherein the second response message indicates that the target charging pile is ready to charge.

[0042] For example, after receiving a retransmitted BCP message, the charging pile detects that U_bcp (410V) and BHM (410V) are completely consistent, and responds normally with the CRO ready message. The vehicle confirms that the charging pile has a voltage double-judgment defect, and calculates the difference ΔU = |412V - 410V| = 2V. The safety tolerance threshold ΔU_safe = min(5V, 410V × 2% = 8.2V) = 5V. Since ΔU = 2V ≤ 5V, the difference is within the safety tolerance range, and the vehicle executes the alignment strategy to start charging with U_bcp = 410V. The vehicle charging method in this embodiment is implemented through the software logic of the vehicle-side BMS, without requiring any hardware modification or protocol upgrade of the charging pile. It can be compatible with all existing DC charging piles that comply with the GB / T 27930 standard and has promotional value.

[0043] Figure 2 This is a flowchart of an optional vehicle charging method provided according to an embodiment of this application, such as... Figure 2 As shown, the method includes: starting from the establishment of the charging connection, sending a BHM message, where U_bhm = the maximum allowable battery voltage; sending a BCP message, where U_bcp = U_bcp_real, and receiving a response from the charging pile; if the charging pile returns a CRO normal message, the normal charging process begins. If the charging pile returns a CST termination message and the response times out, it is determined whether there is a hardware fault in the vehicle. If a hardware fault exists, an error is reported, and charging is stopped and reported to the cloud. If there is no hardware fault, active detection is performed, and the BCP is repeated, where U_bcp = U_bhm. If the charging pile response times out and sends a CST, it is determined that there is another fault in the vehicle, and charging is stopped and reported to the cloud. If the charging pile responds and sends a CRO... If the charging pile has a voltage double-judgment defect and the defect type is recorded, calculate ΔU=|U_bcp_real-U_bhm|, determine if ΔU≤ΔU_safe, if ΔU>ΔU_safe, then prohibit forced alignment, stop charging and report to the cloud, if ΔU≤ΔU_safe, execute the alignment strategy U_bcp_final=U_bhm, start charging, maintain dynamic consistency, and synchronize the real-time voltage every 10 seconds.

[0044] By adaptively adjusting the BHM / BCP voltage strategy, the system ensures that the voltage information sent by the vehicle remains consistent in both stages, thus completely eliminating charging rejection issues caused by normal differences between BHM and BCP. In scenarios with limited charging resources, such as service areas and highways, this avoids incorrect charging pile rejections, effectively improving the actual utilization rate of charging facilities and alleviating user charging anxiety. Ordinary users no longer need to visit service centers for unnecessary troubleshooting due to charging failures. The vehicle's BMS automatically executes the adaptive strategy, restoring normal charging operation and ensuring a seamless charging experience for the user.

[0045] The vehicle charging method provided in this application embodiment sends a first message and a second message to a target charging pile. The first message contains the vehicle's maximum charging voltage, and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state. Upon receiving a first response message from the target charging pile in response to the second message, and if the target charging pile's response duration is greater than or equal to a response duration threshold, the method determines the type of charging anomaly. The first response message indicates termination of charging. If the anomaly type is a protocol parsing defect in the target charging pile, the method calculates the difference between the target charging voltage and the maximum charging voltage. If the difference is less than or equal to a safety tolerance threshold, the target charging voltage in the second message is modified to the maximum charging voltage, and the updated second message is sent to the target charging pile. Upon receiving a second response message from the target charging pile in response to the updated second message, the method charges the vehicle through the target charging pile. The second response message indicates that the target charging pile is ready to charge. This method solves the problem of vehicle charging failure caused by the dual-voltage judgment mechanism of the charging pile in related technologies. It actively detects whether the charging pile has a protocol parsing defect that forcibly compares the voltages of the first and second messages. The second message is only executed to align the voltage with the first message when a protocol parsing defect is confirmed and the difference is less than or equal to the safety tolerance threshold. This eliminates the problem of charging piles refusing to charge due to normal fluctuations in battery status, ensuring that vehicles can successfully start charging even on charging piles with protocol parsing defects. This reduces the vehicle-charging pile compatibility failure rate and thus reduces the failure rate of vehicle charging failures caused by protocol parsing defects in charging piles.

[0046] Before detecting whether the target charging pile has a protocol parsing defect, it is necessary to detect other causes of vehicle malfunctions. Optionally, in the vehicle charging method provided in this application embodiment, determining the abnormal type of charging anomaly includes: detecting whether there is a hardware anomaly between the vehicle and the target charging pile, wherein the hardware anomaly includes at least one of the following: physical connection failure, insulation detection anomaly, and connector temperature anomaly; if a hardware anomaly is detected between the vehicle and the target charging pile, the abnormal type of charging anomaly is determined to be a hardware anomaly; if no hardware anomaly is detected between the vehicle and the target charging pile, detecting whether the target charging pile has a protocol parsing defect; if a protocol parsing defect is detected in the target charging pile, the abnormal type of charging anomaly is determined to be a protocol parsing defect in the target charging pile; if no protocol parsing defect is detected in the target charging pile, the abnormal type of charging anomaly is determined to be another type.

[0047] In some embodiments, the triggering conditions for the active defect detection mechanism include: Condition A: After the vehicle sends a standard BCP message, the charging pile returns a CST abort message, and the abort reason code is a non-physical fault code without a specified reason; Condition B: The charging pile does not return a CRO message within the response timeout window (preferably 5 seconds); Condition C: The insulation test has been completed and passed (insulation resistance ≥ specified value), there are no abnormal alarms for K1 / K2 contactors, and no abnormal alarms for connector temperatures. Active detection is triggered only when all of the above conditions are met.

[0048] For example, Figure 3 This is a timing diagram of active defect detection provided according to the embodiments of this application, such as... Figure 3 As shown, during the charging handshake phase, the vehicle's BMS sends a BHM (U_bhm=410V) to the charging pile, and the charging pile returns a BHM confirmation to the vehicle's BMS. During the parameter configuration phase, the vehicle's BMS sends a BCP (U_bcp=412V, real-time value) to the charging pile, and the charging pile returns a CST (invalid parameter) to the vehicle's BMS. The system then checks for hardware faults. If a hardware fault exists, the active detection process ends; otherwise, it executes. During the active detection phase, the vehicle's BMS sends a BCP (U_bcp=410V) to the charging pile, and the charging pile returns a CRO (ready) to the vehicle's BMS. Finally, if a protocol parsing defect is confirmed in the charging pile, and ΔU=2V≤5V is determined, an alignment strategy is executed, and charging begins. The real-time voltage is updated synchronously every 10 seconds until charging is complete.

[0049] This embodiment ensures that the vehicle's BMS only performs subsequent voltage adaptive alignment operations when it confirms that there is no real hardware security risk and clearly identifies a defect in the charging pile protocol parsing. This effectively distinguishes between hardware faults and software compatibility issues while ensuring charging safety, improving the accuracy of fault diagnosis and avoiding taking incorrect remedial measures for incompatible issues.

[0050] Detecting whether a target charging pile has a protocol parsing defect by sending a probe message. Optionally, in the vehicle charging method provided in this application embodiment, detecting whether a target charging pile has a protocol parsing defect includes: modifying the target charging voltage in the second message to the maximum charging voltage to obtain a first probe message, and sending the first probe message to the target charging pile; if a second response message is received from the target charging pile, determining that the target charging pile has a protocol parsing defect; if no second response message is received from the target charging pile, determining that the target charging pile does not have a protocol parsing defect.

[0051] In some embodiments, the first verification transmission involves modifying the voltage value of the BCP message to be exactly equal to U_bhm, while keeping other parameters unchanged, and then retransmitting. If the charging pile responds normally with a second response message, the existence of a protocol parsing defect is confirmed. If no second response message is received from the target charging pile, it is determined that the target charging pile does not have a protocol parsing defect.

[0052] This embodiment uses an autonomous detection mechanism on the vehicle side to proactively determine whether the charging pile has a BHM-BCP voltage consistency mandatory verification defect, thereby improving charging compatibility and reducing the occurrence rate of false faults.

[0053] After confirming that the target charging pile has a protocol parsing defect, it is also necessary to confirm the specific defect type. Optionally, in the vehicle charging method provided in this application embodiment, after determining that the target charging pile has a protocol parsing defect, the method further includes: calculating the sum of the maximum charging voltage and the preset voltage to obtain a first detection voltage; calculating the difference between the maximum charging voltage and the preset voltage to obtain a second detection voltage; modifying the target charging voltage in the second message to the first detection voltage to obtain a second detection message; modifying the target charging voltage in the second message to the second detection voltage to obtain a third detection message; sending the second detection message and the third detection message to the target charging pile; and, upon receiving a second response message from the target charging pile to the second detection message and the third detection message, determining that the defect type of the protocol parsing defect of the target charging pile is a tolerance-tolerant type, and determining the allowable tolerance value corresponding to the tolerance-tolerant type defect of the target charging pile through multiple detection messages, wherein the number of multiple detection messages is less than or equal to a preset number threshold.

[0054] In some embodiments, if the first verification is successful, to further detect the tolerance threshold of the charging pile, the vehicle can sequentially send the second detection message and the third detection message at U_bhm + Δ_step (preset voltage) and U_bhm - Δ_step respectively. Δ_step can be set to 1V, and observe whether the charging pile responds to the CRO, and record the actual tolerance value allowed by the charging pile. The defect types can include: 0 = no defect (normal pile), 1 = consistent type (U_bcp must be exactly equal to U_bhm), 2 = tolerance type (record the actual tolerance threshold), 3 = unidirectional sensitivity type (sensitive only to U_bcp < U_bhm or only to U_bcp > U_bhm); the maximum voltage deviation value actually tolerated by the charging pile. Set a maximum detection limit, which can be no more than 3 times, to prevent an infinite loop interaction with the charging pile. The interval between each detection transmission follows the message cycle requirements in the standard parameter configuration stage of GB / T 27930, such as not exceeding 500ms.

[0055] By introducing a step-by-step detection mechanism in this embodiment, it is possible to accurately identify whether the charging pile has a consistent type or tolerance type defect, and quantify the specific tolerance value, enabling the vehicle BMS to intelligently select the charging voltage closest to the real-time battery state (rather than absolutely aligning with the initial voltage) for charging, avoiding the loss of charging efficiency or the loss of BMS dynamic adjustment ability caused by blind alignment, preventing charging interruption caused by excessive voltage deviation, and achieving a balance between maximizing the use of battery performance and ensuring charging stability without modifying the charging pile protocol.

[0056] Optionally, in the vehicle charging method provided in the embodiments of the present application, after sending the second detection message and the third detection message to the target charging pile, the method further includes: in the case of only receiving the second response message of one of the second detection message and the third detection message from the target charging pile, determining that the defect type of the protocol parsing defect of the target charging pile is the unidirectional sensitivity type; in the case of not receiving the second response message of the second detection message or the third detection message from the target charging pile, determining that the defect type of the protocol parsing defect of the target charging pile is the consistent type.

[0057] In some embodiments, identify the directional sensitivity characteristics of the charging pile to voltage deviation. The unidirectional sensitivity type means that the charging pile does not require the voltage to be absolutely consistent, nor is it bidirectionally tolerant, but is only sensitive to the deviation of the voltage in a certain direction and strictly rejects the deviation in the other direction; the consistent type means that the charging pile requires the voltage of the BHM message and the voltage of the BCP message to be exactly equal, and any non-zero deviation (regardless of positive or negative) will result in charging rejection.

[0058] This embodiment, by comparing the differences in the response of charging piles to positive and negative deviation detection messages, can finely distinguish between two types of non-tolerance protocol parsing defects: one-way sensitive and consistent. This allows the vehicle's BMS to formulate differentiated response strategies for different types of defects (e.g., one-way sensitive defects can retain some voltage adjustment space, while consistent defects require forced alignment). Thus, while ensuring successful charging, it preserves as much of the BMS's dynamic management capability of the battery's real-time status as possible, avoiding a blind full alignment strategy for all defective charging piles, thereby improving the intelligence level of charging adaptation and charging efficiency.

[0059] To ensure charging safety, it is necessary to ensure that the difference between the BHM message voltage and the BCP message voltage is within a safety tolerance threshold. Optionally, in the vehicle charging method provided in this application embodiment, after calculating the difference between the target charging voltage and the maximum charging voltage, the method further includes: calculating the product of the maximum charging voltage and a preset ratio to obtain a first error voltage; determining a preset second error voltage, and determining the minimum value between the first error voltage and the second error voltage as the safety tolerance threshold; and sending a first prompt message to the vehicle when the difference is greater than the safety tolerance threshold, wherein the first prompt message is used to indicate that the target charging pile is unavailable.

[0060] In some embodiments, the safety tolerance threshold ΔU_safe is defined based on the following principle: ΔU_safe = min(5V, U_bhm × 2%), taking the smaller of the two. According to standard requirements, the normal error range between the vehicle-side battery voltage and the BCP message voltage is no greater than ±5%. Converting this normal error range to an absolute voltage value, for a 400V platform, 5% corresponds to 20V. However, considering factors such as charging pile equipment aging and measurement errors, the safety tolerance threshold is set to the smaller of 5V or U_bhm × 2%, which covers voltage changes caused by normal fluctuations in the remaining battery percentage while also reserving sufficient safety margin. If ΔU > ΔU_safe (the difference exceeds the safety range, forced alignment is prohibited), the BMS determines to stop charging and pushes the first prompt message to the vehicle terminal: the charging pile is incompatible with the current battery state and is unavailable. It also reports to the cloud: target charging pile number + unavailable.

[0061] U_bcp_real < U_bhm and ΔU > ΔU_safe: This situation indicates that the battery temperature has risen or the monomer voltage is abnormal, and the BMS actively derates. Forced alignment will cause the charging pile to charge at a voltage higher than the battery's safe tolerance, posing an overcharging risk, and alignment must be refused. U_bcp_real > U_bhm and ΔU > ΔU_safe: This indicates that the battery allows a higher charging voltage after preheating. Although the alignment strategy will not cause overcharging, it will charge below the upper limit of the BHM voltage, resulting in a loss of charging efficiency. For this situation, the vehicle's optional solutions include: ① Prompt the user that the charging pile cannot utilize the full charging capacity of the battery; ② Execute the alignment strategy after the user confirms. BMS fault alarm triggers derating: If the BMS detects serious safety alarms such as battery leakage, bulging, or excessive voltage difference, and significant derating or even charging prohibition is required, regardless of the value of ΔU, alignment is prohibited, charging is directly aborted, and the fault is reported.

[0062] Figure 4 is a flowchart of the safety alignment strategy provided according to an embodiment of the present application, as Figure 4 shown. After confirming that the target charging pile is a defective pile, input the parameters U_bcp_real, U_bhm, and ΔU_safe, calculate ΔU and compare it with ΔU_safe, with two branches: the safe alignment branch and the safe rejection branch. The figure shows the decision-making process with specific values of ΔU = 2V and ΔU = 40V as examples. If the difference is within the safe tolerance, execute the alignment strategy U_bcp_final = U_bhm, start charging and enter the dynamic synchronization stage. If the difference exceeds the safe tolerance, refuse forced alignment, and judge U_bcp_real > U_bhm. If U_bcp_real < U_bhm, there is an overcharging risk, the battery may be derated, charging is aborted, reported to the cloud, and it is not safely available. If U_bcp_real > U_bhm, there is a loss of charging efficiency but no safety risk. It is up to the user to confirm whether to downgrade the charging. If the user confirms, the charging voltage is limited to U_bhm for downgraded charging. If the user refuses to downgrade the charging, charging is aborted, reported to the cloud, and it is not safely available.

[0063] For example, the same vehicle travels to another charging station under high summer temperatures. The BMS detects that the battery temperature has risen to 52°C, exceeding the safe operating temperature limit of 45°C. The BMS activates the over-temperature protection strategy, significantly reducing the allowable charging voltage from the nominal 410V to 370V. The charging station has a protocol parsing defect. Handshake phase: The vehicle's BMS sends a BHM message, U_bhm=410V (based on the allowable charging voltage at an initial battery temperature of 38°C). Parameter configuration phase (standard trial): The BMS detects a battery temperature of 52°C (over-temperature) based on real-time data, calculates the real-time allowable charging voltage U_bcp_real=370V (reduced by 40V), and sends a BCP message, U_bcp=370V. Charging station response: The charging station detects the inconsistency between BHM (410V) and BCP (370V), a difference of 40V, and returns a CST abort message. The vehicle detected no hardware fault and initiated an active detection process, retransmitting the BCP message with U_bcp=410V. The charging pile responded normally with CRO, confirming a protocol parsing defect. The vehicle calculated the difference ΔU=|370V-410V|=40V, ΔU_safe=5V. Since 40V>5V, the difference exceeds the safety tolerance range. The vehicle implemented a safety protection strategy: forced alignment is prohibited. The vehicle pushed a prompt to the end user: the current charging pile is incompatible with the vehicle's battery state (battery temperature is too high, over-temperature protection has been activated), please cool down and try again. Simultaneously, the charging pile identifier and its unavailable safety status were recorded and uploaded to the cloud. The charging process was aborted, and no charging operation was performed. If a blind alignment scheme were used, the vehicle would force the BCP to 410V, and the charging pile would charge at 410V, while the battery's safe allowable charging voltage at 52℃ is only 370V, a difference of up to 40V, posing a serious risk of overcharging.

[0064] This embodiment identifies overcharge risks by using a safety tolerance threshold, refuses forced alignment, and stops charging. It prioritizes battery safety over protocol compatibility, avoids potential safety accidents, and prevents battery safety accidents caused by blind alignment.

[0065] After charging begins, dynamic consistency needs to be maintained. Optionally, in the vehicle charging method provided in this application embodiment, after charging the vehicle through the target charging pile, the method further includes: sending the real-time voltage of the vehicle's battery to the target charging pile at preset intervals; determining, upon receiving a first response message, that the defect type of the protocol parsing defect of the target charging pile is dynamic judgment type; and sending a second prompt message to the vehicle, wherein the second prompt message is used to indicate abnormal termination of charging and suggest replacing the charging pile.

[0066] In some embodiments, to address the issue of charging piles potentially needing to re-verify voltage consistency during charging, this embodiment designs a dynamic consistency maintenance mechanism: the vehicle sends real-time battery voltage information to the charging pile at a frequency no less than a preset frequency f_sync, preferably f_sync=0.1Hz, meaning synchronization at least once every 10 seconds. This frequency setting is based on: comprehensively considering the rate of battery voltage change during charging (when the battery is charged at a 1C rate, the voltage rise rate is approximately 0.1~0.3V / s, increasing by approximately 1~3V within 10 seconds), the charging pile's secondary verification timeout tolerance window is typically 5 seconds, and the CAN (Controller Area Network) bus communication load capacity.

[0067] If, during the charging process, the charging station still sends a CST (Critical Stop) message despite the vehicle continuously synchronizing the real-time voltage, the vehicle determines that the charging station has a stricter fixed verification logic (i.e., locking the initial value and never updating). In this case, the vehicle executes the following emergency strategy: immediately records the current charging parameters and the timing information of the abnormal message; updates the defect type of the charging station to dynamic judgment type and uploads it to the cloud; and prompts the user that the charging has been abnormally terminated and suggests replacing the charging station.

[0068] For example, Figure 5 This is a schematic diagram of the dynamic consistency maintenance mechanism provided in the embodiments of this application, such as... Figure 5 As shown, before charging begins, the BHM and BCP voltages are aligned to 410V. After charging starts, as the remaining battery percentage increases, the real-time voltage gradually rises from 412V to 418V. The vehicle synchronizes the real-time voltage value with the charging station every 10 seconds. The charging station updates its recorded voltage reference value accordingly, or learns of voltage changes through synchronization messages, thus avoiding secondary verification triggered by natural voltage increases. The charging station verifies voltage consistency; if the difference between the real-time voltage and the reference value is within the tolerance range, the verification passes and charging continues; otherwise, the verification fails and charging is interrupted.

[0069] For example, after charging begins, the vehicle synchronizes the current real-time battery voltage to the charging station every 10 seconds via the BCL (BMS Charge Limit message). As the remaining battery percentage increases from 30% to 80%, the real-time voltage gradually rises from 412V to 418V. The charging station detects this voltage change through the synchronization message and does not trigger a secondary verification. The charging process continues until completion, with a final charge of 45kWh and a 100% success rate. A slight 2V difference exists between the BHM and BCP, which is within the reasonable range of normal remaining battery percentage fluctuations specified in GB / T 27930. Without a dynamic consistency maintenance mechanism, the charging station will refuse to charge; with a blind alignment scheme, although charging is possible, the ability of the BMS to adjust the voltage (412V) based on real-time status will be lost, and defect types cannot be identified.

[0070] This embodiment solves the problem of secondary verification being triggered again during the charging process by using a dynamic consistency maintenance mechanism that periodically synchronizes real-time voltage information, ensuring that the charging process is continuous and uninterrupted throughout the entire charging cycle, and achieving continuous adaptation to the entire charging cycle.

[0071] Optionally, in the vehicle charging method provided in this application embodiment, after determining the anomaly type of the charging anomaly, the method further includes: if the anomaly type is a protocol parsing defect of the target charging pile, obtaining the identifier of the target charging pile; uploading the identifier and the defect type of the protocol parsing defect to a cloud server, wherein the cloud server is used to receive uploaded data from multiple vehicles, verify the uploaded data, and store the verified uploaded data in the charging pile defect database.

[0072] In some embodiments, the charging pile defect information obtained through active detection is associated with the charging pile's identifier and stored in a local database, and then uploaded to a cloud server. The cloud receives data reported from multiple vehicles, performs cross-validation and confidence assessment, and forms a charging pile defect database. Before connecting to the same charging pile, subsequent vehicles can obtain the pile's defect information from the cloud in advance, directly enabling the adaptation strategy and skipping the active detection step. The unique identifier for the charging pile can be generated from any one or more combinations of the following: the charging pile's pile number and the charging pile's geographical location information. The cloud server receives data reported from multiple vehicles and performs the following fusion processing:

[0073] 1) Cross-validation: Multiple reports of data from the same charging station are checked for consistency, and obvious outliers are removed;

[0074] 2) Confidence score iteration: The confidence score increases with each additional independent report (up to 100%).

[0075] 3) Dynamic update: When the confidence level exceeds the preset threshold (e.g., ≥70%), the cloud automatically marks the defect data of the pile as high confidence and prioritizes its distribution to other vehicles;

[0076] 4) Data correction: If different vehicles have conflicting defect judgments for the same charging pile, the cloud will initiate a dispute arbitration process, mark the charging pile as pending review, and notify the vehicle to increase detection and verification.

[0077] The vehicle maintains its local policy library using the following update mechanism:

[0078] 1) OTA (Over-The-Air) passive update: The cloud periodically pushes the latest charging pile defect profile data to the vehicle;

[0079] 2) Proactive query and update: Before navigating to a charging station, the vehicle can proactively request the latest defect data of the target charging pile from the cloud;

[0080] 3) Expiration policy cleanup: Pile end data that has not been updated for more than the preset time limit (e.g., 180 days) is automatically marked as potentially invalid and will be re-detected and verified during the next charging.

[0081] Figure 6 This is a schematic diagram of a charging pile defect data sharing architecture provided in an embodiment of this application, such as... Figure 6 The diagram illustrates the overall architecture of the cloud-based defect profile sharing system. It comprises three layers: the vehicle side (multiple vehicles acting as the primary agents for detection and querying), the cloud platform (servers and database), and the charging pile side (various types of tagged charging piles). Data flow includes: vehicles reporting defect identification results to the cloud; the cloud aggregating and cross-validating the data before storing it in the database; the cloud distributing data to other vehicles; and the cloud pushing alarm information to charging operators.

[0082] For example, charging pile P100 in the charging station has a tolerance-type voltage double-judgment defect (tolerance threshold is ±3V), meaning it accepts charging when |U_bcp-U_bhm|≤3V and refuses charging when it exceeds 3V. Vehicle V1 identifies this defect through an active detection mechanism and uploads the data to the cloud. Several days later, vehicle V2 prepares to charge at the same charging pile.

[0083] Vehicle V1 connects to charging station P100 and identifies defects through an active detection process, recording: station P100 identifier (station number + geographic coordinates), defect type = tolerance-based, tolerance threshold = ±3V, detection timestamp = May 20, 2026. V1 reports the defective charging station data to the cloud server. After receiving the data, the cloud queries the database to confirm that there is no record for the station (or there is a low-confidence record), and stores this report as the first piece of data in the database, setting the confidence level to 30%. Before V2 connects, vehicles V3 and V4 successively completed charging at the station and reported data. The cloud aggregates three independent reports, all with the defect type being tolerance-based, and the tolerance threshold concentrated in the ±2.5V~±3.5V range. The cloud performs cross-validation, removes those without obvious outliers, and after weighted averaging, determines the defect type as tolerance-based, the tolerance threshold as ±3V, and the confidence level as 85%, marking it as high confidence. Before navigating to charging station P100, vehicle V2 proactively queries the cloud to download the charging station's defect data. V2 then directly adapts to charging: Vehicle V2 connects to charging station P100. The BMS calculates U_bcp_real = 412V based on the battery's real-time status, and the BHM sends U_bhm = 410V, with a difference ΔU = 2V. Since V2 has pre-acquired the charging station's defect data, it skips the proactive detection step. Based on the data, it determines that ΔU = 2V ≤ the tolerance threshold of 3V, classifying the defect as a tolerance-based defect, allowing direct charging. V2 does not need to modify the BCP message, sending U_bcp = 412V and successfully entering the charging process. During charging, V2 uses a dynamic consistency maintenance mechanism, synchronizing the real-time voltage every 10 seconds. Charging is complete.

[0084] This embodiment demonstrates swarm intelligence where a single detection benefits multiple vehicles. V1, V3, and V4 perform active detection (each taking approximately 5-10 seconds additional time), while V2 benefits from the cloud database. As data accumulates, the confidence level gradually increases from 30% to 85%, and the defect database of this charging station can be used to guide all subsequent vehicles. The cloud reuse mechanism saves detection time for subsequent vehicles, accurately identifies the specific type of defect (tolerance-based rather than consistency-based), and allows V2 to charge without forcibly aligning U_bcp=U_bhm, preserving the optimal ability of the BMS to select 412V (instead of 410V) based on real-time status.

[0085] This embodiment stores the detected charging pile defect information in a structured manner and establishes a cloud-based sharing mechanism to continuously optimize charging adaptation strategies. Through cloud-based multi-vehicle data aggregation and cross-validation, a charging pile defect database is constructed, enabling the sharing and reuse of defective pile information. Subsequent vehicles can anticipate defect types before charging and directly activate adaptation strategies, shortening charging preparation time and forming a continuously optimizing collective intelligence.

[0086] It should be noted that the recommended parameter values ​​for the vehicle charging method in this embodiment are shown in Table 1.

[0087] Table 1

[0088]

[0089] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0090] This application also provides a vehicle charging device. It should be noted that the vehicle charging device of this application can be used to execute the vehicle charging method provided in this application. The vehicle charging device provided in this application is described below.

[0091] Figure 7 This is a schematic diagram of a vehicle charging device provided according to an embodiment of this application. Figure 7 As shown, the device includes:

[0092] The first sending unit 701 is used to send a first message and a second message to the target charging pile, wherein the first message contains the maximum charging voltage of the vehicle, and the second message contains the target charging voltage currently allowed for the vehicle calculated based on the battery state of the vehicle.

[0093] The first receiving unit 702 is configured to determine the abnormality type of the charging abnormality when it receives a first response message returned by the target charging pile to the second message and the response duration of the target charging pile is greater than or equal to the response duration threshold, wherein the first response message is used to characterize the termination of charging.

[0094] The calculation unit 703 is used to calculate the difference between the target charging voltage and the maximum charging voltage when the anomaly type is a protocol parsing defect of the target charging pile.

[0095] The second sending unit 704 is used to modify the target charging voltage in the second message to the maximum charging voltage when the difference is less than or equal to the safety tolerance threshold, and send the updated second message to the target charging pile.

[0096] The second receiving unit 705 is used to charge the vehicle through the target charging pile when it receives a second response message returned by the target charging pile in response to the updated second message, wherein the second response message is used to indicate that the target charging pile is ready to charge.

[0097] The vehicle charging device provided in this application embodiment sends a first message and a second message to a target charging pile through a first sending unit 701. The first message contains the vehicle's maximum charging voltage, and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state. A first receiving unit 702, upon receiving a first response message from the target charging pile in response to the second message, and if the response duration of the target charging pile is greater than or equal to a response duration threshold, determines the type of charging anomaly. The first response message is used to characterize the termination of charging. A calculation unit 703, if the anomaly type is a protocol parsing defect of the target charging pile, calculates the target charging voltage and... The second sending unit 704, when the difference is less than or equal to the safety tolerance threshold, modifies the target charging voltage in the second message to the maximum charging voltage and sends the updated second message to the target charging pile; the second receiving unit 705, upon receiving a second response message from the target charging pile in response to the updated second message, charges the vehicle through the target charging pile. The second response message indicates that the target charging pile is ready to charge, thus solving the problem of vehicle charging failure caused by the voltage dual-judgment mechanism of the charging pile in related technologies. It actively detects whether the charging pile has a protocol parsing defect that forcibly compares the voltages of the first and second messages. Voltage alignment between the second and first messages is only performed when a protocol parsing defect is confirmed and the difference is less than or equal to the safety tolerance threshold, eliminating the problem of charging piles refusing to charge due to normal fluctuations in battery status. This ensures that the vehicle can successfully start charging on charging piles with protocol parsing defects, reducing the vehicle-charging pile compatibility failure rate, and thus achieving the effect of reducing the failure rate of vehicle charging failures caused by charging pile protocol parsing defects.

[0098] Optionally, in the vehicle charging device provided in this application embodiment, the first receiving unit 702 includes: a first detection module, used to detect whether there is a hardware abnormality between the vehicle and the target charging pile, wherein the hardware abnormality includes at least one of the following: physical connection failure, insulation detection abnormality, and connector temperature abnormality; a first determination module, used to determine the abnormality type of the charging abnormality as a hardware abnormality when a hardware abnormality is detected between the vehicle and the target charging pile; a second detection module, used to detect whether there is a protocol parsing defect in the target charging pile when no hardware abnormality is detected between the vehicle and the target charging pile; a second determination module, used to determine the abnormality type of the charging abnormality as a protocol parsing defect in the target charging pile when a protocol parsing defect is detected; and a third determination module, used to determine the abnormality type of the charging abnormality as another type when no protocol parsing defect is detected in the target charging pile.

[0099] Optionally, in the vehicle charging device provided in this application embodiment, the second detection module includes: a first modification submodule, used to modify the target charging voltage in the second message to the maximum charging voltage to obtain a first detection message, and send the first detection message to the target charging pile; a first determination submodule, used to determine that the target charging pile has a protocol parsing defect when a second response message is received from the target charging pile; and a second determination submodule, used to determine that the target charging pile does not have a protocol parsing defect when a second response message is not received from the target charging pile.

[0100] Optionally, in the vehicle charging device provided in this application embodiment, the second detection module further includes: a calculation submodule, used to calculate the sum of the maximum charging voltage and the preset voltage to obtain a first detection voltage, and calculate the difference between the maximum charging voltage and the preset voltage to obtain a second detection voltage; a second modification submodule, used to modify the target charging voltage in the second message to the first detection voltage to obtain a second detection message, modify the target charging voltage in the second message to the second detection voltage to obtain a third detection message, and send the second detection message and the third detection message to the target charging pile; and a third determination submodule, used to determine, upon receiving a second response message from the target charging pile to the second detection message and the third detection message, whether the defect type of the protocol parsing defect of the target charging pile is a tolerance-allowable type, and to determine the allowable tolerance value corresponding to the tolerance-allowable defect of the target charging pile through multiple detection messages, wherein the number of multiple detection messages is less than or equal to a preset number threshold.

[0101] Optionally, in the vehicle charging device provided in this application embodiment, the second detection module further includes: a fourth determining submodule, used to determine that the defect type of the protocol parsing defect of the target charging pile is one-way sensitive when only a second response message of the target charging pile to one of the second detection message and the third detection message is received; and a fifth determining submodule, used to determine that the defect type of the protocol parsing defect of the target charging pile is consistent when no second response message of the target charging pile to the second detection message or the third detection message is received.

[0102] Optionally, in the vehicle charging device provided in this application embodiment, the device further includes: a voltage calculation unit, used to calculate the product of the maximum charging voltage and a preset ratio to obtain a first error voltage; a first determination unit, used to determine a preset second error voltage, and determine the minimum value between the first error voltage and the second error voltage as a safety tolerance threshold; and a first prompt unit, used to send a first prompt message to the vehicle when the difference is greater than the safety tolerance threshold, wherein the first prompt message is used to indicate that the target charging pile is unavailable.

[0103] Optionally, in the vehicle charging device provided in this application embodiment, the device further includes: a third sending unit, configured to send the real-time voltage of the vehicle's battery to the target charging pile at preset intervals; a second determining unit, configured to determine, upon receiving a first response message, that the defect type of the protocol parsing defect of the target charging pile is dynamic judgment type; and a second prompting unit, configured to send a second prompting message to the vehicle, wherein the second prompting message is used to indicate abnormal termination of charging and suggest replacing the charging pile.

[0104] Optionally, in the vehicle charging device provided in this application embodiment, the device further includes: an acquisition unit, used to acquire the identifier of the target charging pile when the anomaly type is a protocol parsing defect of the target charging pile; and an upload unit, used to upload the identifier and the defect type of the protocol parsing defect to a cloud server, wherein the cloud server is used to receive uploaded data from multiple vehicles, verify the uploaded data, and store the verified uploaded data in the charging pile defect database.

[0105] The vehicle charging device includes a processor and a memory. The first transmitting unit 701, the first receiving unit 702, the calculation unit 703, the second transmitting unit 704, and the second receiving unit 705 are all stored in the memory as program units. The processor executes the program units stored in the memory to realize the corresponding functions.

[0106] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can reduce the failure rate of vehicle charging malfunctions caused by protocol parsing defects in charging stations.

[0107] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0108] This invention provides a computer-readable storage medium having a program stored thereon that, when executed by a processor, implements a vehicle charging method.

[0109] This invention provides a processor for running a program, wherein the program executes a vehicle charging method during runtime.

[0110] Figure 8 This is a schematic diagram of an electronic device provided according to an embodiment of this application. For example... Figure 8As shown, the electronic device 801 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: sending a first message and a second message to the target charging pile, wherein the first message contains the vehicle's maximum charging voltage, and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state; upon receiving a first response message from the target charging pile in response to the second message, and if the target charging pile's response duration is greater than or equal to a response duration threshold, determining the type of charging anomaly, wherein the first response message indicates termination of charging; if the anomaly type is a protocol parsing defect of the target charging pile, calculating the difference between the target charging voltage and the maximum charging voltage; if the difference is less than or equal to a safety tolerance threshold, modifying the target charging voltage in the second message to the maximum charging voltage, and sending the updated second message to the target charging pile; upon receiving a second response message from the target charging pile in response to the updated second message, charging the vehicle through the target charging pile, wherein the second response message indicates that the target charging pile's charging preparation is complete. The device in this document can be a server, PC, PAD, mobile phone, etc.

[0111] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: sending a first message and a second message to a target charging pile, wherein the first message contains the vehicle's maximum charging voltage, and the second message contains the vehicle's currently allowed target charging voltage calculated based on the vehicle's battery state; upon receiving a first response message returned by the target charging pile to the second message, and if the response duration of the target charging pile is greater than or equal to a response duration threshold, determining the type of charging anomaly, wherein the first response message is used to characterize termination of charging; if the anomaly type is a protocol parsing defect of the target charging pile, calculating the difference between the target charging voltage and the maximum charging voltage; if the difference is less than or equal to a safety tolerance threshold, modifying the target charging voltage in the second message to the maximum charging voltage, and sending the updated second message to the target charging pile; upon receiving a second response message returned by the target charging pile to the updated second message, charging the vehicle through the target charging pile, wherein the second response message is used to characterize the target charging pile's charging preparation completion.

[0112] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0113] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0114] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0115] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0116] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0117] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0118] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

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

[0120] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0121] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A vehicle charging method characterized by, include: Send a first message and a second message to the target charging station, wherein the first message contains the vehicle's maximum charging voltage and the second message contains the target charging voltage currently allowed for the vehicle, calculated based on the vehicle's battery state; If the first response message returned by the target charging pile to the second message is received, and the response duration of the target charging pile is greater than or equal to the response duration threshold, the abnormality type of the charging abnormality is determined, wherein the first response message is used to characterize the termination of charging. If the anomaly type is a protocol parsing defect of the target charging pile, calculate the difference between the target charging voltage and the maximum charging voltage; If the difference is less than or equal to the safety tolerance threshold, the target charging voltage in the second message is modified to the maximum charging voltage, and the updated second message is sent to the target charging pile. Upon receiving a second response message from the target charging pile in response to the updated second message, the vehicle is charged via the target charging pile, wherein the second response message indicates that the target charging pile is ready to charge.

2. The method of claim 1, wherein, The types of abnormalities that can be identified for charging malfunctions include: Detect whether there is a hardware anomaly between the vehicle and the target charging station, wherein the hardware anomaly includes at least one of the following: physical connection failure, insulation detection anomaly, and connector temperature anomaly; If a hardware anomaly is detected between the vehicle and the target charging station, the anomaly type of the charging anomaly is determined to be the hardware anomaly. If no hardware anomaly is detected between the vehicle and the target charging station, check whether the target charging station has a protocol parsing defect; If the target charging pile is found to have a protocol parsing defect, the abnormality type of the charging abnormality is determined to be a protocol parsing defect of the target charging pile. If no protocol parsing defect is detected in the target charging pile, the abnormality type of the charging anomaly is determined to be another type.

3. The method of claim 2, wherein, Detecting whether the target charging pile has a protocol parsing defect includes: The target charging voltage in the second message is modified to the maximum charging voltage to obtain the first detection message, and the first detection message is sent to the target charging pile; Upon receiving the second response message returned by the target charging pile, it is determined that the target charging pile has the aforementioned protocol parsing defect; If the second response message is not received from the target charging pile, it is determined that the target charging pile does not have the protocol parsing defect.

4. The method of claim 3, wherein, After determining that the target charging pile has the aforementioned protocol parsing defect, the method further includes: The sum of the maximum charging voltage and the preset voltage is calculated to obtain the first detection voltage, and the difference between the maximum charging voltage and the preset voltage is calculated to obtain the second detection voltage. The target charging voltage in the second message is modified to the first detection voltage to obtain a second detection message. The target charging voltage in the second message is modified to the second detection voltage to obtain a third detection message. The second detection message and the third detection message are sent to the target charging pile. Upon receiving the second response message from the target charging pile to the second detection message and the third detection message, it is determined that the defect type of the protocol parsing defect of the target charging pile is a tolerance-tolerant type. The allowable tolerance value corresponding to the tolerance-tolerant type defect of the target charging pile is determined through multiple detection messages, wherein the number of the multiple detection messages is less than or equal to a preset number threshold.

5. The method of claim 4, wherein, After sending the second detection message and the third detection message to the target charging pile, the method further includes: If only the second response message of the target charging pile to one of the second probe message and the third probe message is received, the defect type of the protocol parsing defect of the target charging pile is determined to be one-way sensitive. If the second response message of the target charging pile to the second probe message or the third probe message is not received, it is determined that the defect type of the protocol parsing defect of the target charging pile is consistency type.

6. The method according to claim 1, characterized in that, After calculating the difference between the target charging voltage and the maximum charging voltage, the method further includes: The first error voltage is obtained by multiplying the maximum charging voltage by a preset ratio. A preset second error voltage is determined, and the minimum value between the first error voltage and the second error voltage is determined as the safety tolerance threshold. If the difference is greater than the safety tolerance threshold, a first prompt message is sent to the vehicle, wherein the first prompt message is used to indicate that the target charging station is unavailable.

7. The method according to claim 1, characterized in that, After charging the vehicle via the target charging station, the method further includes: The vehicle's battery voltage is sent to the target charging station at preset intervals. Upon receiving the first response message, it is determined that the defect type of the protocol parsing defect of the target charging pile is dynamic judgment type. A second notification message is sent to the vehicle, wherein the second notification message is used to indicate that the charging has been abnormally terminated and to suggest replacing the charging station.

8. The method according to claim 1, characterized in that, After determining the type of charging anomaly, the method further includes: If the anomaly type is a protocol parsing defect of the target charging pile, obtain the identifier of the target charging pile; The identifier and the defect type of the protocol parsing defect are uploaded to the cloud server. The cloud server is used to receive uploaded data from multiple vehicles and verify the uploaded data. Uploaded data that passes verification is stored in the charging pile defect database.

9. A vehicle charging device, characterized in that, include: The first sending unit is configured to send a first message and a second message to the target charging pile, wherein the first message contains the maximum charging voltage of the vehicle, and the second message contains the target charging voltage currently allowed for the vehicle calculated based on the battery state of the vehicle. The first receiving unit is configured to determine the abnormality type of the charging abnormality when it receives a first response message returned by the target charging pile to the second message and the response duration of the target charging pile is greater than or equal to the response duration threshold, wherein the first response message is used to characterize the termination of charging. The calculation unit is used to calculate the difference between the target charging voltage and the maximum charging voltage when the anomaly type is a protocol parsing defect of the target charging pile. The second sending unit is used to modify the target charging voltage in the second message to the maximum charging voltage when the difference is less than or equal to the safety tolerance threshold, and send the updated second message to the target charging pile. The second receiving unit is configured to charge the vehicle through the target charging pile upon receiving a second response message returned by the target charging pile in response to the updated second message, wherein the second response message indicates that the target charging pile is ready to charge.

10. A vehicle, characterized in that, The controller in the vehicle controls the execution of the vehicle charging method according to any one of claims 1 to 8 to charge the vehicle.