A V2G charging and discharging cooperative control method for electric vehicles based on ISO 15118
By generating a protocol shutdown risk value R and a session freeze time window F, and combining it with an equivalent electrical influence coefficient K, a V2G collaborative control model M is established, which solves the problem of synchronous shutdown of multiple electric vehicles and improves the power supply stability and critical load continuity in electric vehicle charging and discharging scenarios.
Patent Information
- Application Number
- CN202611257677.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-17
AI Technical Summary
Existing V2G methods fail to effectively handle certificate verification, contract switching, and charge/discharge parameter renegotiation in ISO 15118 sessions, causing multiple electric vehicles to simultaneously stop working during grid disturbances, resulting in the activation of critical load protection devices, especially in scenarios with high requirements for power supply continuity, such as old hospitals, where drug temperature control is interrupted.
By acquiring vehicle parameters, state of charge, and ISO 15118 session parameters of electric vehicles, a protocol shutdown risk value R and a session freeze time window F are generated. The equivalent electrical influence coefficient K is determined using small-amplitude bidirectional probe power, and a V2G cooperative control model M is established. Vehicles with high K and low R are given priority for compensation to avoid synchronous shutdown.
It effectively avoids the sudden drop in reverse power caused by the simultaneous shutdown of multiple electric vehicles, improves the power supply stability in V2G charging and discharging scenarios, reduces voltage drops and compensation power steps at critical load nodes, and ensures the continuity of power supply in critical scenarios.
Smart Images

Figure CN123104432A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electric vehicle charging and discharging control technology, specifically to a V2G charging and discharging cooperative control method for electric vehicles based on ISO 15118, which is particularly applicable to plug-and-play charging and discharging scenarios conforming to the ISO 15118-20 standard, and also applicable to ISO 15118-2 session scenarios. Background Technology
[0002] Existing V2G methods mostly allocate power based on vehicle state of charge, electricity price, or substation load, assuming the communication link between the vehicle and the charging station is stable and available. They do not treat certificate verification, contract switching, charging / discharging parameter renegotiation, and message round-trip latency in ISO 15118 sessions as electrical control variables. In scenarios such as home garages, apartment underground parking lots, commercial parking lots, and fleet depots, multiple plug-and-charge (Plug & Charge) electric vehicles are often connected to the same end branch, feeding back power to critical loads such as air conditioners, lighting, and refrigerators during grid disturbances, local photovoltaic power fluctuations, or short-term drops in mains power. If multiple vehicles use the same vehicle firmware, their ISO 15118 sessions may simultaneously enter a short-term power pause state during certificate chain updates or contract reselection, causing the backfeed power to collapse simultaneously within hundreds of milliseconds. This leads to a drop in end-branch voltage, triggering critical load protection devices, and even causing interruptions in medication temperature control in scenarios with extremely high power continuity requirements, such as emergency parking spaces on the basement level of old hospitals. Since this problem is caused by both the protocol session state and the electrical inertia of the low-voltage branch, simply increasing the energy storage capacity or improving the SOC margin is not enough to identify and avoid it in a timely manner. Summary of the Invention
[0003] The purpose of this invention is to provide a V2G charging and discharging cooperative control method for electric vehicles based on ISO 15118, in order to address the shortcomings in the prior art.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a V2G charging and discharging coordinated control method for electric vehicles based on ISO 15118, comprising: Obtain vehicle parameters, state of charge, departure time, and ISO15118 session parameters of several electric vehicles connected to the same end branch. The session parameters include the remaining validity time of the certificate chain, contract identifier, message round-trip time, and session persistence count. Based on the message round-trip delay and session hold count, generate a protocol shutdown risk value R for each electric vehicle, and determine the corresponding session freeze time window F based on the remaining validity time of the certificate chain and the contract identifier; A small bidirectional sensing power is applied to each electric vehicle outside of F to obtain the voltage response of the terminal branch, and the equivalent electrical influence coefficient K of each electric vehicle to the critical load node is determined based on the voltage response. Based on R, F, K, state of charge and departure time, a V2G cooperative control model M is established that couples the protocol state with the branch voltage. Based on M, the main power supply sequence and compensation power sequence of each electric vehicle are generated so that the power reduction process of the vehicle in the session freeze time window F is compensated in advance by the vehicle with high K and low R. V2G charging and discharging are performed according to the main power supply sequence and the compensation power sequence, and the compensation power sequence is regenerated after updating R and F when the ISO15118 session parameters of any vehicle change.
[0005] Preferably, the protocol shutdown risk value R for each electric vehicle includes: Sort the round-trip delays of the most recent m messages of the i-th electric vehicle according to the session hold count to form a delay-hold trajectory Li, and extract the latent power stop segment in Li where the session hold count increases continuously and the message round-trip delay increases synchronously. The session inertia loss value Gi is calculated based on the round-trip delay difference between the first and last messages of the latent power stop segment and the session hold count increment. By inversely weighting Gi with the current session hold count Hi, we obtain the protocol shutdown risk value Ri for the i-th electric vehicle.
[0006] Preferably, the corresponding session freeze time window F is determined based on the remaining validity time of the certificate chain and the contract identifier, including: The certificate critical time Ti is determined based on the remaining validity time Ci of the certificate chain, and electric vehicles with the same contract identifier IDi are grouped into the same contract session group. A contract reselection queue is generated according to the order of the certificate critical times Ti of each electric vehicle in the contract session group, and vehicles with adjacent certificate critical times less than 2 power execution cycles Tp are assigned to the same critical cluster. The contract reselection time periods of vehicles within the critical cluster are staggered to ensure that the session freeze time windows F of vehicles under the same contract identifier do not overlap.
[0007] Preferably, applying a small bidirectional sensing power to each electric vehicle outside of F and determining the equivalent electrical influence factor K includes: Outside the session freeze window Fi of the i-th electric vehicle, a detection period that does not intersect with the session freeze windows of other electric vehicles is selected. During the detection period, based on the original charging and discharging power P0i of the i-th electric vehicle, charging detection power and discharging detection power with equal amplitude and opposite direction are sequentially superimposed. The net voltage response is obtained by performing inverse differential analysis on the voltage response of the critical load node during charging and discharging detection, and the equivalent electrical influence coefficient Ki is determined by the ratio of the net voltage response to the detection power amplitude.
[0008] Preferably, a V2G cooperative control model M coupling protocol state and branch voltage is established, including: The power execution period is divided into power execution periods using the power execution cycle Tp as the time scale, and electric vehicles are marked as frozen vehicles or adjustable vehicles based on whether each power execution period intersects with the session freeze time window F. Based on the adjustable vehicle's protocol shutdown risk value R, state of charge, departure time, maximum allowable charging power, and maximum allowable discharging power, generate the available charging and discharging power envelope for the corresponding power execution period; Based on the power gap of frozen vehicles and the equivalent electrical influence coefficient K of each electric vehicle, the voltage compensation requirement of critical load nodes is determined, and the voltage compensation requirement is coupled with the available charging and discharging power envelope to form a V2G collaborative control model M.
[0009] Preferably, the construction of the V2G cooperative control model M includes: The compensation power of each adjustable vehicle during the corresponding power execution period is used as the decision quantity, and the compensation power is restricted to be within the corresponding available charging and discharging power envelope; The sum of voltage compensation error and protocol shutdown risk penalty at critical load nodes is used as the objective function, wherein the protocol shutdown risk penalty is positively correlated with the protocol shutdown risk value R and negatively correlated with the equivalent electrical influence coefficient K. The adjustable vehicles are ranked according to the product of the equivalent electrical influence coefficient K and the 1 minus the agreement power outage risk value R, so that vehicles with high K and low R participate in power gap compensation first.
[0010] Preferably, the main power supply sequence and compensation power sequence for each electric vehicle are generated based on M, including: Read the difference in main power supply of the frozen vehicle before and after the start of the session freeze time window F, obtain the power reduction gap, and generate a power reduction gap curve with the start of F as the end point; The compensation priority is calculated based on the available charging and discharging power envelope of the adjustable vehicle, the agreed power outage risk value R, and the equivalent electrical influence coefficient K. The power reduction gap curve is allocated to the adjustable vehicles with higher compensation priority by one power execution cycle in advance, forming a compensation power sequence with the opposite direction to the power reduction direction of the frozen vehicles.
[0011] Preferably, superimposing the compensated power sequence onto the main power sequence includes: The compensation power of the j-th adjustable vehicle is added to its main power supply to obtain the execution power; Determine whether the execution power is within the available charging and discharging power envelope of the adjustable vehicle; When the executed power exceeds the available charging and discharging power envelope, the excess portion will be deducted from the compensation power of the currently adjustable vehicle and then allocated to the next adjustable vehicle with the next compensation priority.
[0012] Preferably, when the ISO 15118 session parameters of any vehicle change, the compensated power sequence is regenerated after updating R and F, including: Within each power execution cycle, the remaining validity time of the current certificate chain, contract identifier, message round-trip latency, and session persistence count are compared with the corresponding data of the previous power execution cycle to determine the moment when the session parameters change. Starting from the moment of session disturbance, only update the protocol power outage risk value R and session freeze time window F of the corresponding vehicle, and retain the compensation power that has been issued before the moment of session disturbance; The compensation power sequence after the session disturbance time is regenerated based on the updated R and F, and the compensation power is continuously connected by using the minimum difference between the compensation power between adjacent power execution cycles as the allocation condition.
[0013] The present invention also provides a V2G charging and discharging cooperative control system for electric vehicles based on ISO 15118, comprising: a data acquisition module, a protocol shutdown risk assessment module, a session freeze time window determination module, an equivalent electrical influence coefficient detection module, a V2G cooperative control module, and an execution and update module. This system is used to implement the above-mentioned V2G charging and discharging cooperative control method for electric vehicles based on ISO 15118.
[0014] The present invention also provides a computer-readable storage medium, wherein the computer program, when executed by a processor, implements a V2G charging and discharging coordinated control method for electric vehicles based on ISO 15118.
[0015] The technical effects and advantages provided by the present invention in the above technical solution are as follows: This invention does not merely use ISO 15118 as a communication protocol between vehicles and charging stations. Instead, it transforms the remaining validity time of the certificate chain, contract identifier, message round-trip delay, and session hold count into protocol state characteristics that can participate in electrical dispatching. By extracting latent power outage segments through delay-hold trajectories, a protocol power outage risk value R is generated. Then, based on the certificate critical moment and contract identifier, the session freeze time window F of vehicles with similar contracts is staggered, allowing potential synchronous contract reselection, certificate updates, or session power outages to be identified and dispersed in advance. This invention directly solves the problem of existing V2G dispatching defaulting to stable communication sessions and being unable to predict short-term power outages on the protocol side. It is particularly suitable for scenarios with low electrical inertia and sensitive critical loads, such as old hospital emergency parking spaces and underground terminal branches, and can prevent a sudden drop in reverse power caused by multiple vehicles synchronously reducing power due to the same protocol state.
[0016] Furthermore, this invention does not simply allocate compensation power based on vehicle capacity or SOC average. Instead, it applies small-amplitude, opposite-direction bidirectional probe power to each vehicle outside the session freeze time window. The equivalent electrical influence coefficient K is determined using the reverse differential voltage response of critical load nodes, thereby identifying which vehicle is more effective at supporting the voltage of critical load nodes. Subsequently, K, R, state of charge, and off-time are coupled into a V2G cooperative control model M. This allows adjustable vehicles with high K and low R to take over the power reduction shortfall of frozen vehicles one power execution cycle earlier, and to be allocated to the next priority vehicle when the power envelope is exceeded. Compensation power is completed before the power reduction of frozen vehicles and is executed by the most effective and least prone to power failure vehicle, reducing the voltage drop amplitude and compensation power step of critical load nodes, and improving the continuous power supply stability of V2G under protocol disturbance scenarios. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0018] Figure 1 This is a flowchart of the V2G charging and discharging cooperative control method for electric vehicles based on ISO 15118 of the present invention.
[0019] Figure 2 This is a flowchart of the method for generating protocol shutdown risk values according to the present invention.
[0020] Figure 3 This is a flowchart of the method for determining the session freeze time window according to the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] Example 1, please refer to Figure 1 and Figure 2 and Figure 3 As shown in this embodiment, the V2G charging and discharging coordinated control method for electric vehicles based on ISO 15118 includes: S100: Obtain vehicle parameters, state of charge, departure time, and ISO 15118 session parameters of several electric vehicles connected to the same end branch. The session parameters include the remaining validity time of the certificate chain, contract identifier, message round-trip time, and session persistence count.
[0023] In one possible embodiment of the present invention, a branch identifier is pre-configured in the distribution box or charging pile group controller of the terminal branch, and the branch identifier is associated with a plurality of charging piles under the branch. When an electric vehicle connects to any charging pile through the charging interface, the communication control unit on the charging pile side obtains the branch identifier corresponding to the charging pile and identifies electric vehicles with the same branch identifier as a set of vehicles connected to the same terminal branch.
[0024] Specifically, for the i-th electric vehicle in the vehicle set, the charging pile-side communication control unit establishes a session with the vehicle-side communication control unit through the ISO 15118 communication link and obtains vehicle parameters, including the vehicle's maximum allowable charging power, maximum allowable discharging power, battery rated capacity, current allowable charging and discharging current range, and vehicle identification information; at the same time, the state of charge (SOCi) of the electric vehicle is obtained through information reported by the vehicle side.
[0025] Furthermore, the charging pile group controller obtains the departure time ti of the i-th electric vehicle through user reservation information, vehicle input information, or parking management system; when no clear departure time is obtained, it generates an estimated departure time based on the vehicle's historical parking time, current time, and preset minimum departure SOC, and sets a low confidence flag for the estimated departure time.
[0026] During the ISO 15118 session establishment and authorization process, the charging pile-side communication control unit reads the certificate chain validity information corresponding to the i-th electric vehicle and uses the difference between the current system time and the expiration time of the earliest expiring certificate in the certificate chain as the remaining validity time Ci of the certificate chain; at the same time, it extracts the contract identifier selected in this session and records the contract identifier as IDi, which is used to distinguish the current power service contract used by the vehicle.
[0027] During the communication between the vehicle and the charging pile, the communication control unit on the charging pile side adds a sending timestamp and a receiving timestamp to several consecutive request messages and response messages, respectively. The round-trip time Di is calculated based on the difference between the receiving time of the response message and the sending time of the corresponding request message. Di can be the average or weighted average of the most recent N round-trip times to reduce the impact of occasional communication jitter on subsequent control.
[0028] Meanwhile, the communication control unit on the charging pile side counts the number of times the vehicle successfully completes the session keep-alive interaction in the current session, and uses this number as the session keep-alive count Hi; when a response timeout, session reconnection, or authorization re-trigger occurs, Hi is cleared or reduced to a preset value, and the corresponding vehicle's session abnormality flag is recorded.
[0029] Therefore, a data set Ei = {Pi, SOCi, ti, Ci, IDi, Di, Hi} is formed for the i-th electric vehicle, where Pi represents the set of vehicle parameters. The charging pile group controller aggregates the data sets of all electric vehicles under the same terminal branch to form a vehicle status list E = {E1, E2, ..., Ei, ..., En}, and uses this vehicle status list as input data for subsequent determination of protocol shutdown risk value, session freeze time window, and V2G cooperative control model.
[0030] S200, based on the message round-trip delay and session hold count, generate a protocol shutdown risk value R for each electric vehicle, and determine the corresponding session freeze time window F based on the remaining validity time of the certificate chain and the contract identifier.
[0031] In one possible implementation, for the i-th electric vehicle, the most recent m valid session hold-up interaction records are first obtained. Each record includes the message round-trip time dij and the session hold-up count hij, where j is the record number, dij is in milliseconds, and hij is the cumulative number of consecutive successful session hold-up interactions within the same ISO 15118 session. m is determined according to the session hold-up interaction period Tk and the V2G power update period Tp, taking m = ceil(3Tp / Tk), and taking 6 when m is less than 6 and 20 when m is greater than 20, so that the sampling length covers no less than 3 power update periods, while avoiding weakening the precursors of sudden power outages with premature historical data.
[0032] The m records are arranged in ascending order of hij. When there are records with the same hij, they are arranged in ascending order of their generation time to obtain the delay-hold trajectory Li = {(hi1, di1), (hi2, di2), ..., (him, dim)}. If the difference between the hold counts of two adjacent sessions after sorting is greater than 1, the data on both sides of the breakpoint are retained but not used as a continuous trajectory. If the session hold count reaches zero, the record after reaching zero is used as the starting point of the current session, and the records before reaching zero do not participate in the formation of this Li, thus ensuring that Li only represents the delay changes within the same session.
[0033] In this embodiment, the delay increment Δdik=di,k+1-dik and the hold count increment Δhik=hi,k+1-hik of adjacent records are calculated point by point in Li. The criterion for synchronous rise is: Δhik=1 and Δdik≥εi; where εi=max(2δ, 0.1Dbi), δ is the minimum resolution of the timestamp, and Dbi is the median of the round-trip delay of all messages in Li. 2δ is used to eliminate timing quantization error, and 0.1Dbi is used to exclude normal communication jitter. The trajectory segment that continuously meets the above criteria and contains no less than 3 record points is extracted as a latent stop segment; if there are multiple latent stop segments, the segment with the largest cumulative delay increment is selected and denoted as Ai={(hia, dia), ..., (hib, dib)}.
[0034] Further, the session inertia loss value Gi for the i-th electric vehicle is calculated based on the latent stop segment Ai. First, the round-trip delay difference between the first and last messages ΔDi = dib - dia is calculated, and then the corresponding session hold count increment ΔHi = hib - hia is calculated; when ΔHi = 0, Gi is 0. The unit hold count delay growth rate Vi = ΔDi / ΔHi is further calculated and normalized with the reference delay Dbi to obtain Gi = min(1, Vi / Dbi). Gi is a dimensionless value between 0 and 1. The closer Gi is to 1, the more pronounced the communication lag before the vehicle enters the stop segment, as the session hold count continues to increase.
[0035] In this embodiment, the current session hold count Hi of the i-th electric vehicle is obtained, and the hold reverse weight Wi = Hs / (Hs+Hi) is calculated, where Hs is the median of the session hold counts in Li; when Hs is less than 1, it is 1. This method of value determination ensures that the weight comes from the most recent session performance of the same vehicle, does not depend on a fixed constant for the vehicle model, and gives higher weight to low hold counts when the session has just resumed or when there are frequent reconnections. Finally, the protocol stop risk value Ri = Gi × Wi is calculated. The larger Ri is, the more likely the electric vehicle is to experience a protocol stop under the current ISO 15118 session; when no latent stop segment is extracted, Gi is 0, and Ri is 0 accordingly.
[0036] In one possible implementation, for the i-th electric vehicle, the remaining validity time Ci of the certificate chain and the contract identifier IDi are read. Starting from the current unified time t0, the remaining validity time Ci of the certificate chain is converted into the certificate expiration time Ei, calculated as: Ei = t0 + Ci. To avoid triggering contract reselection only when the certificate is close to expiration, the certificate critical time Ti is determined as: Ti = Ei - Tp, where Tp is a single execution cycle of the subsequent charging and discharging power sequence, and Tp is determined by the difference in the sending time of two adjacent power commands. Using Tp as a lead time ensures that the vehicle retains at least one power adjustment cycle before the certificate expires, which is used to complete the power reduction or compensation power continuity.
[0037] After calculating the certificate critical time Ti, electric vehicles with the same contract identifier IDi are grouped into the same contract session group Gq, where q represents the contract identifier number. For the nq electric vehicles within the contract session group Gq, they are arranged from earliest to latest according to their respective certificate critical times Ti, resulting in a contract reselection queue Qq. If two or more electric vehicles have the same Ti, they are arranged from smallest to largest according to the vehicle identifier information in the vehicle parameters, ensuring that the contract reselection queue Qq has a unique order under the same input conditions and avoiding inconsistent sorting during subsequent staggered expansion.
[0038] Specifically, adjacent comparisons are performed on the contract reselection queue Qq, and the difference in the critical time of certificates for adjacent vehicles is calculated as ΔTr = Ti,r+1 - Ti,r, where r is the queue number. When ΔTr is less than the preset interval ΔF, the corresponding vehicles are grouped into the same critical cluster.
[0039] It should be noted that the preset interval ΔF is 2Tp. The reason is that one Tp is used for the current vehicle to transition from the original charging and discharging power to the power before freezing, and the other Tp is used for the power compensation of the adjacent vehicle. When the critical moment of the adjacent certificate is less than 2Tp, if the staggered deployment is not performed, the power reduction and contract reselection of the two vehicles will fall into the same power execution interval, thus forming a power synchronization gap.
[0040] For each critical cluster, staggered deployment is performed according to the order in the contract reselection queue Qq. Let the critical cluster contain s electric vehicles, with its earliest certificate critical time being Tmin. Then, the staggered reselection center time Zi of the p-th electric vehicle is calculated as: Zi = Tmin - (s - p) × ΔF, where p = 1, 2, ..., s. Thus, vehicles earlier in the queue execute contract reselection earlier, and the Zi interval between two adjacent vehicles is equal to ΔF. Subsequently, the contract reselection period for each vehicle is determined as [Zi - Tp / 2, Zi + Tp / 2], and this contract reselection period is superimposed on its certificate critical time Ti to obtain the session freeze time window Fi = [Zi - Tp / 2, min(Zi + Tp / 2, Ti)]. Through the above processing, the session freeze time windows Fi of vehicles under the same contract identifier do not overlap, and the subsequent compensation power sequence can be sequentially continued according to Fi, reducing the risk of synchronous drop in reverse power transmission from the same end branch.
[0041] S300 applies a small bidirectional sensing power to each electric vehicle outside of F to obtain the voltage response of the terminal branch, and determines the equivalent electrical influence coefficient K of each electric vehicle to the critical load node based on the voltage response.
[0042] Specifically, for the i-th electric vehicle, its session freeze time window Fi and the session freeze time windows Fj of other electric vehicles in the same end branch are obtained. Detection time periods Bi = [tb, tb + 4Tp] are selected sequentially from smallest to largest based on vehicle identification information. When Bi does not intersect with Fi, does not intersect with any Fj, and does not intersect with any selected detection time periods, Bi is determined as the detection time period for the i-th electric vehicle. 4Tp is used sequentially for reference sampling, charging detection, recovery sampling, and discharging detection.
[0043] During the detection period Bi, the original charging and discharging power of the i-th electric vehicle is denoted as P0i, with the charging power direction being positive and the discharging power direction being negative. The superimposed power margin Pmi is calculated as min{Pch,max-P0i,Pdis,max+P0i}, where Pch,max is the maximum allowable charging power and Pdis,max is the maximum allowable discharging power. The detection power amplitude Pti is min{0.05Pmi,0.1Pload}, where Pload is the average load power of the critical load node within the first 3 Tp periods before the start of the detection period. 0.05Pmi is used to avoid vehicle power exceeding limits, and 0.1Pload is used to limit the disturbance of the detection to the voltage of the critical load node.
[0044] The process involves: maintaining P0i within the first Tp and recording the average reference voltage U0i of the critical load nodes in the second half of the Tp; executing P0i+Pti within the second Tp and recording the average voltage Uci in the second half of the Tp; restoring P0i within the third Tp and recording the average restored voltage Uri in the second half of the Tp; and executing P0i-Pti within the fourth Tp and recording the average voltage Udi in the second half of the Tp. The charging voltage response ΔUci = Uci - U0i and the discharging voltage response ΔUdi = Udi - Uri are calculated. The two voltage responses are then differentially analyzed to obtain the net voltage response ΔUi = (ΔUdi - ΔUci) / 2, and the equivalent electrical influence coefficient Ki = |ΔUi| / Pti is calculated in V / kW. When Pti = 0, Ki is not updated; if there is no historical Ki, Ki is set to 0. The larger Ki is, the stronger the impact of the unit power change of the i-th electric vehicle on the voltage of the critical load node. Subsequently, during the session freeze time window, vehicles with larger Ki and lower Ri can be selected first to undertake the compensation power.
[0045] S400 establishes a V2G cooperative control model M that couples the protocol state with the branch voltage based on R, F, K, state of charge and departure time. Based on M, it generates the main power supply sequence and compensation power sequence for each electric vehicle, so that the power reduction process of the vehicle within the session freeze time window F is compensated in advance by the vehicle with high K and low R.
[0046] In one implementation, the power execution cycle Tp is used as the time scale, and the time from the current time t0 to the latest departure time tmax is divided into N power execution periods, denoted as T1, T2, ..., TN. For the i-th electric vehicle, if a certain power execution period Ta intersects with its session freeze time window Fi, then the i-th electric vehicle is marked as a frozen vehicle within Ta; if Ta and Fi do not intersect, then the i-th electric vehicle is marked as an adjustable vehicle within Ta. Thus, the same electric vehicle can have the attributes of a frozen vehicle or an adjustable vehicle in different time periods, and subsequent power allocation is updated according to the time period, avoiding the long-term exclusion of the entire vehicle from V2G cooperative control.
[0047] For adjustable vehicles within time period Ta, an available charging and discharging power envelope is generated based on their agreed-upon power outage risk value Ri, state of charge (SOCi), and departure time ti. Let the rated battery capacity of the i-th electric vehicle be Ci,b, the current SOCi, the minimum SOCi for departure be SOCi,min, the target SOCi for departure be SOCi,out, the maximum allowable charging power be Pch,i, and the maximum allowable discharging power be Pdis,i. The positive direction of power represents the charging direction, and the negative direction represents the discharging direction. First, calculate the energy to be retained before departure: Ei,res = Ci,b × SOCi,min, and the energy required for the departure target: Ei,out = Ci,b × SOCi,out. SOCi,min is determined by the larger of the minimum allowable SOCi reported by the vehicle and the minimum departure requirement input by the user; SOCi,out is determined by the departure target input by the user, and SOCi,min is used if no target is input. This method ensures that the vehicle will not fall below its basic power requirement for departure due to the compensation power required.
[0048] Within the a-th power execution period, the upper limit of the discharge power available for the adjustable vehicle is determined by the formula Pout,i,a=min{Pdis,i,max[0,(Ci,b×SOCi-Ei,res) / (ti-Ta,end)]}, where Ta,end is the end time of period Ta; when ti≤Ta,end, Pout,i,a is 0. The upper limit of the charging power available for the adjustable vehicle is determined by the formula Pin,i,a=min{Pch,i,max[0,(Ei,out-Ci,b×SOCi) / (ti-Ta,end)]}; when Ei,out≤Ci,b×SOCi, Pin,i,a can be Pch,i. Further introducing the protocol power outage risk value Ri, the available charging and discharging power envelope of the i-th electric vehicle within Ta is obtained as [-Pout,i,a×(1-Ri), Pin,i,a×(1-Ri)]. Since Ri is a value between 0 and 1, the larger Ri is, the narrower the range of power that can be allocated, thereby reducing the participation of vehicles with high risk of power failure in compensation tasks.
[0049] In this embodiment, for frozen vehicles within time period Ta, the original main power Pi,a-1 of the vehicle in the power execution cycle one power execution cycle before entering the session freeze time window Fi is read, and the power allowed to be maintained during the freeze period is recorded as Pi,freeze. Pi,freeze is the smaller absolute value between Pi,a-1 and the vehicle's allowed power within the session freeze time window; when the vehicle is not allowed to update its power within Fi, Pi,freeze is 0. The power gap of frozen vehicles within Ta is ΔPi,a = Pi,a-1 - Pi,freeze. If ΔPi,a is negative, it indicates a reduction in discharge support; if ΔPi,a is positive, it indicates a reduction in charge absorption. The power gaps of all frozen vehicles in the same time period are summed to obtain the total power gap ΔPa = ΣΔPi,a.
[0050] Furthermore, the voltage compensation requirement for critical load nodes is determined based on the equivalent electrical influence coefficient Ki of each adjustable vehicle. First, the expected voltage offset ΔUa = Σ(Ki × ΔPi,a) caused by the power shortfall of the frozen vehicles is calculated, where Ki for the frozen vehicles uses the equivalent electrical influence coefficient obtained from the aforementioned detection. Then, the voltage offset Uc,a = -ΔUa that the adjustable vehicles need to compensate is calculated. For each adjustable vehicle, assuming the allocated compensation power is Pc,i,a, the resulting voltage compensation is Ki × Pc,i,a. To ensure that the voltage offset of the critical load node is close to 0, Σ(Ki × Pc,i,a) must be close to Uc,a; simultaneously, Pc,i,a must be within the corresponding available charging and discharging power envelope.
[0051] In this embodiment, the V2G cooperative control model M is constructed according to each power execution period Ta. The inputs of model M include Ri, Fi, Ki, SOCi, ti, the maximum allowable charging power of the vehicle, the maximum allowable discharging power of the vehicle, and the power gap ΔPi,a of the frozen vehicle; the decision quantity of model M is the compensation power Pc,i,a of each adjustable vehicle in Ta; the constraints of model M are Pc,i,a∈[-Pout,i,a×(1-Ri), Pin,i,a×(1-Ri)], and the frozen vehicle does not participate in the compensation power allocation in Fi. The objective function of model M is: Ja = |Uc,a-Σ(Ki×Pc,i,a)| / Uref,a + β1Σ[Ri×|Pc,i,a| / Ai,a×Kref / (Ki+κ)]; where Uref,a is the allowable voltage deviation value of the critical load node, in V; Ai,a is the available power margin of the i-th adjustable vehicle along the compensation direction during the a-th power execution period, in kW; Kref is the average value of the equivalent electrical influence coefficient K of each adjustable vehicle in the same end branch, in V / kW; κ is taken as 0.01Kref to avoid the denominator being 0; β1 is a dimensionless weighting coefficient.
[0052] It should be noted that in this expression, the first term characterizes the voltage compensation error of critical load nodes, and the second term characterizes the suppressive effect of protocol outage risk on compensation power allocation. The larger the protocol outage risk value Ri of a vehicle, the higher the cost of bearing the compensation power; conversely, the larger the equivalent electrical influence coefficient Ki of a vehicle, the stronger its ability to support the voltage of critical load nodes per unit of compensation power, and the lower the corresponding cost. This objective function, under the premise of dimensional consistency, prioritizes vehicles with higher K and lower R for power gap compensation of vehicles experiencing session freezes.
[0053] In practice, adjustable vehicles are first sorted according to their compensation score Wi = Ki × (1 - Ri), with larger Wi scores ranking higher. Then, Pc,i,a are allocated sequentially according to the ranking, gradually approaching Uc,a, and each allocation must not exceed the available charging and discharging power envelope of the vehicle. If the voltage compensation requirement is still not met after the current vehicle reaches the envelope boundary, the remaining requirement is allocated to the next adjustable vehicle. After allocation, the M output result corresponding to time period Ta is obtained. The output results of N consecutive time periods form the basis for the calculation of the subsequent main power supply sequence and compensation power sequence.
[0054] Taking a multi-vehicle terminal branch in an underground parking lot as an example (also applicable to scenarios with high power supply continuity requirements, such as emergency parking spaces on the first basement level of an old hospital), three electric vehicles are connected to the same terminal branch. The first vehicle enters the session freeze window from 10:05 to 10:06, with an original discharge power of -6kW. The allowable power during the freeze period is 0kW, resulting in a power shortfall of -6kW. The second vehicle has Ki=0.9V / kW and Ri=0.1, while the third vehicle has Ki=0.4V / kW and Ri=0.2. Therefore, the compensation score for the second vehicle is 0.81, and the compensation score for the third vehicle is 0.32. Model M prioritizes allocating reverse compensation power to the second vehicle. If the second vehicle's envelope allows for an additional -4kW discharge, it can compensate for approximately -3.6V equivalent voltage. The remaining voltage compensation requirement is then borne by the third vehicle. Compared to the average power sharing, this method concentrates the voltage compensation of critical load nodes on vehicles with higher electrical influence coefficients and lower protocol outage risks, reducing the voltage drop in the terminal branch caused by session freeze.
[0055] In one possible implementation, the main power supply sequence and compensation power sequence for each electric vehicle are generated based on the aforementioned V2G cooperative control model M. The positive power direction represents the charging direction, and the negative power direction represents the discharging direction. For the i-th frozen vehicle within the session freeze time window Fi, the main power supply Pi,pre of the power execution cycle one period before the start of Fi is read, and the allowed frozen power Pi,freeze after the start of Fi is read. Pi,freeze is determined according to the power that the vehicle is allowed to maintain during the session freeze according to ISO 15118; when power updates are not allowed during the session freeze, Pi,freeze is set to 0.
[0056] Specifically, the power reduction change ΔPdown,i = Pi,freeze - Pi,pre at the starting point Fi of the i-th frozen vehicle is calculated, and the power reduction gap G_i = -ΔPdown,i = Pi,pre - Pi,freeze that needs to be borne by other adjustable vehicles is calculated. If Pi,pre = -6kW and Pi,freeze = 0kW, then ΔPdown,i = 6kW and G_i = -6kW, indicating that other adjustable vehicles need to increase their discharge capacity by 6kW in advance to offset the branch voltage drop caused by the discharge exit of the frozen vehicle.
[0057] A power reduction gap curve Ci(t) is generated with tF as the termination point. This power reduction gap curve is 0 at time tF-Tp and G_i at time tF, and linearly increases between them according to the power execution period Tp. When only one power command is allowed to be sent within Tp, Ci(tF-Tp) = G_i and Ci(tF) = G_i. tF-Tp is used as the starting time because one Tp equals the transmission interval between two adjacent power commands. Sending the compensation power one Tp in advance allows for connection completion before the frozen vehicle enters Fi, avoiding compensation lagging behind the power gap.
[0058] In this embodiment, compensation priority is calculated for adjustable vehicles outside of Fi. For the j-th adjustable vehicle, its available charging and discharging power envelope [Bj,low, Bj,high], protocol power outage risk value Rj, and equivalent electrical influence coefficient Kj are read. First, the power margin Aj available for compensation in the gap direction of this vehicle is calculated: when G_i<0, it indicates that discharge compensation needs to be increased, Aj=max{0, Pj,main-Bj,low}; when G_i>0, it indicates that charging compensation needs to be increased, Aj=max{0, Bj,high-Pj,main}. Where Pj,main is the main power supplied by the adjustable vehicle in the corresponding time period.
[0059] Furthermore, the compensation priority Sj is calculated based on Aj, Rj, and Kj, using the formula Sj = Kj × (1 - Rj) × Aj. A higher Kj indicates stronger voltage support per unit power for critical load nodes; a lower Rj indicates a lower risk of power outage during ISO 15118 sessions; and a larger Aj indicates a greater amount of compensation the vehicle can handle without exceeding the available charging and discharging power envelope. Therefore, adjustable vehicles with a larger Sj participate in compensation power allocation first.
[0060] In this embodiment, the adjustable vehicles are arranged in descending order of Sj to obtain the compensation allocation order. The power reduction gap curve Ci(t) is allocated to the adjustable vehicles one power execution cycle in advance. Specifically, within the power execution period corresponding to tF-Tp, compensation power Pc,j is allocated to the sorted adjustable vehicles in sequence, so that ΣPc,j gradually approaches G_i, and Pc,j must not exceed the power margin Aj of the vehicle in the gap direction. If G_i<0, then Pc,j is negative; if G_i>0, then Pc,j is positive, thereby ensuring that the compensation power sequence is opposite in direction to the power reduction change ΔPdown,i of the frozen vehicles.
[0061] The compensation power Pc,j of the j-th adjustable vehicle is added to its main power Pj,main to obtain the execution power Pj,exe = Pj,main + Pc,j. When Pj,exe is within [Bj,low, Bj,high], the compensation allocation is confirmed to be valid; when Pj,exe is lower than Bj,low, the excess portion corresponding to Bj,low - Pj,exe is deducted from Pc,j and allocated to the next adjustable vehicle with the next compensation priority; when Pj,exe is higher than Bj,high, the excess portion corresponding to Pj,exe - Bj,high is deducted from Pc,j and allocated to the next adjustable vehicle with the next compensation priority.
[0062] After the above processing, each electric vehicle forms a main power supply sequence Pmain and a compensation power sequence Pc. Pmain is used to meet the original charging and discharging needs of the vehicles, while Pc is used to compensate for the power gap of frozen vehicles before the session freeze time window Fi arrives. Since the compensation allocation is simultaneously constrained by the available charging and discharging power envelope, the protocol power outage risk value R, and the equivalent electrical influence coefficient K, adjustable vehicles with higher K and lower R can take priority in undertaking the compensation task. This ensures that the voltage support of critical load nodes is completed before the power reduction of frozen vehicles occurs, reducing the instantaneous voltage drop of the end branch.
[0063] In one possible embodiment of the present invention, the method is executed by the communication control unit on the charging pile side. When the charging pile is equipped with a bidirectional power module, or has reserved installation positions and wiring for a bidirectional power module, discharge power compensation can be performed; when the connected vehicle only supports unidirectional charging, only charging power compensation is performed. In this case, the equivalent electrical influence coefficient K only characterizes the impact of charging power changes on the voltage of key load nodes, that is, it provides a unified control interface for the bidirectional charging and discharging capability reserved for future vehicle-to-grid (V2G) interaction.
[0064] In one possible implementation of the present invention, the method supports two operating modes: single-pile autonomy and multi-pile collaboration. In the single-pile autonomy mode, the communication control unit of a single charging pile independently obtains the ISO 15118 session parameters of the vehicle connected to the pile and generates a protocol power outage risk value R, a session freeze time window F, and an equivalent electrical influence coefficient K. It only coordinates the main power supply and compensation power within its own available charging and discharging power envelope. In the multi-pile collaboration mode, the charging pile group controller or local energy management gateway under the terminal branch collects the data of each pile and uniformly allocates the main power supply sequence and compensation power sequence at the branch level according to the V2G collaborative control model M.
[0065] S500 performs V2G charging and discharging according to the main power supply sequence and the compensation power sequence, and updates R and F and regenerates the compensation power sequence when the ISO 15118 session parameters of any vehicle change.
[0066] In one possible implementation, V2G charging and discharging are performed according to the main power supply sequence and the compensation power sequence. For the main power Pmain,i,a and compensation power Pc,i,a of the i-th electric vehicle in the a-th power execution cycle Ta, the execution power Pexe,i,a = Pmain,i,a + Pc,i,a is calculated. If Pexe,i,a is within the corresponding available charging and discharging power envelope [B i,low, Bi,high], then Pexe,i,a is issued at the starting point of Ta; if Pexe,i,a is lower than Bi,low, then Pexe,i,a is set to Bi,low; if Pexe,i,a is higher than Bi,high, then Pexe,i,a is set to Bi,high, and the truncated compensation power is recorded as the uncompleted compensation amount in this cycle, which is used for continued allocation to the next compensation priority vehicle.
[0067] Within each power execution cycle Ta, the remaining validity time Ci,a of the certificate chain, the contract identifier IDi,a, the message round-trip time Di,a, and the session persistence count Hi,a of the i-th electric vehicle are read and compared with the corresponding data from the previous power execution cycle Ta-1. Since the remaining validity time of the certificate chain naturally decreases over time, the change in the remaining validity time is calculated as ΔCi = |Ci,a-Ci,a-1+Tp|. When ΔCi is greater than 2δt, an abnormal change in the remaining validity time of the certificate chain is considered, where δt is the timestamp resolution, and 2δt is used to exclude errors caused by rounding. Changes in the contract identifier are determined by IDi,a≠IDi,a-1; changes in the message round-trip time are determined by |Di,a-Di,a-1|≥εi, where εi is calculated using the aforementioned εi = max{2δt, 0.1Dbi}; changes in the session persistence count are determined by Hi,a≠Hi,a-1+1. When any of the judgment conditions are met, the starting point of Ta is determined as the session disturbance time td,i of the i-th electric vehicle.
[0068] In this embodiment, starting from the session disturbance time td,i, the protocol shutdown risk value Ri and session freeze time window Fi of the i-th electric vehicle are recalculated. Ri is regenerated according to the interaction records of the most recent m valid sessions; Fi is re-determined according to the remaining validity time Ci,a of the updated certificate chain and the contract identifier IDi,a. For electric vehicles that have not experienced session disturbances, their executed main power supply sequence Pmain remains unchanged; the main power supply sequence that has not yet been executed only participates in the superposition calculation when its available charging and discharging power envelope is touched due to compensation allocation. If the updated Fi overlaps with the session freeze time windows of other vehicles under the same contract identifier that have not yet been executed, the Fi of the i-th electric vehicle is moved first, with a movement step size of Tp, and the movement direction is away from the side of the most recent certificate critical time. When the movement would cause the certificate critical time to be exceeded, Fi remains within the last Tp before the certificate critical time, thereby avoiding changing the freeze order already formed by the undisturbed vehicles.
[0069] The compensation priority score Sj is calculated based on Aj, Rj, and Kj, using the formula: Sj = (Kj / Kref) × (1 - Rj) × (Aj / Aref). Here, Kref is the average of the equivalent electrical influence coefficient K of each adjustable vehicle within the same power execution period, and Aref is the average power margin of each adjustable vehicle in the gap direction within the same power execution period. When Kref or Aref is 0, the corresponding vehicle does not participate in the compensation ranking. The higher Kj, the lower Rj, and the larger Aj, the larger Sj, the higher the priority of the adjustable vehicle in undertaking compensation power allocation. For the same adjustable vehicle, the difference in compensation power between two adjacent power execution cycles is calculated using the formula Ej,a = |Pc,j,a - Pc,j,a - 1|, and the allocation result with the smallest ΣEj,a is selected from the feasible allocations that meet the voltage compensation requirements. This allocation condition ensures that the updated compensation power is as close as possible to the power trajectory already executed before the update, avoiding excessive power jumps in the compensation vehicle due to sudden changes in session parameters, thereby achieving continuous connection within adjacent power execution cycles.
[0070] This embodiment also provides a charging pile communication data interaction system that supports a network communication interface, including: a data acquisition module, used to acquire vehicle parameters, state of charge, departure time, and ISO of several electric vehicles connected to the same terminal branch. 15118 Session parameters, including certificate chain remaining validity time, contract identifier, message round-trip time delay, and session hold count; Protocol shutdown risk assessment module, used to generate a protocol shutdown risk value R for each electric vehicle based on the message round-trip time delay and session hold count; Session freeze time window determination module, used to determine the corresponding session freeze time window F based on the certificate chain remaining validity time and contract identifier; Equivalent electrical influence coefficient detection module, used to apply a small bidirectional detection power to each electric vehicle outside of F, obtain the terminal branch voltage response, and determine the equivalent electrical influence coefficient K of each electric vehicle to the critical load node based on the voltage response; V2G cooperative control module, used to establish a V2G cooperative control model M coupling protocol state and branch voltage based on R, F, K, state of charge, and departure time, and generate the main power supply sequence and compensation power sequence for each electric vehicle based on M, so that the power reduction process of vehicles within the session freeze time window F is compensated in advance by vehicles with high K and low R; Execution and update module, used to execute V2G charging and discharging according to the main power supply sequence and compensation power sequence, and update the ISO of any vehicle. When session parameters change (15118), update R and F and then regenerate the compensation power sequence.
[0071] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A V2G charging and discharging coordinated control method for electric vehicles based on ISO 15118, characterized in that, include: Obtain vehicle parameters, state of charge, departure time, and ISO 15118 session parameters of several electric vehicles connected to the same end branch. The session parameters include the remaining validity time of the certificate chain, contract identifier, message round-trip time, and session persistence count. Based on the message round-trip delay and session hold count, generate a protocol shutdown risk value R for each electric vehicle, and determine the corresponding session freeze time window F based on the remaining validity time of the certificate chain and the contract identifier; A small bidirectional sensing power is applied to each electric vehicle outside of F to obtain the voltage response of the terminal branch, and the equivalent electrical influence coefficient K of each electric vehicle to the critical load node is determined based on the voltage response. Based on R, F, K, state of charge and departure time, a V2G cooperative control model M is established that couples the protocol state with the branch voltage. Based on M, the main power supply sequence and compensation power sequence of each electric vehicle are generated so that the power reduction process of the vehicle in the session freeze time window F is compensated in advance by the vehicle with high K and low R. V2G charging and discharging are performed according to the main power supply sequence and the compensation power sequence, and the compensation power sequence is regenerated after updating R and F when the ISO 15118 session parameters of any vehicle change.
2. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 1, characterized in that, Generate a protocol shutdown risk value R for each electric vehicle, including: Sort the round-trip delays of the most recent m messages of the i-th electric vehicle according to the session hold count to form a delay-hold trajectory Li, and extract the latent power stop segment in Li where the session hold count increases continuously and the message round-trip delay increases synchronously. The session inertia loss value Gi is calculated based on the round-trip delay difference between the first and last messages of the latent power stop segment and the session hold count increment. By inversely weighting Gi with the current session hold count Hi, we obtain the protocol shutdown risk value Ri for the i-th electric vehicle.
3. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 1, characterized in that, The corresponding session freeze time window F is determined based on the remaining validity time of the certificate chain and the contract identifier, including: The certificate critical time Ti is determined based on the remaining validity time Ci of the certificate chain, and electric vehicles with the same contract identifier IDi are grouped into the same contract session group. A contract reselection queue is generated according to the order of the certificate critical times Ti of each electric vehicle in the contract session group, and vehicles with adjacent certificate critical times less than 2 power execution cycles Tp are assigned to the same critical cluster. The contract reselection time periods of vehicles within the critical cluster are staggered to ensure that the session freeze time windows F of vehicles under the same contract identifier do not overlap.
4. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 3, characterized in that, Apply a small bidirectional sensing power to each electric vehicle outside of F and determine the equivalent electrical influence factor K, including: Outside the session freeze window Fi of the i-th electric vehicle, a detection period that does not intersect with the session freeze windows of other electric vehicles is selected. During the detection period, based on the original charging and discharging power P0i of the i-th electric vehicle, charging detection power and discharging detection power with equal amplitude and opposite direction are sequentially superimposed. The net voltage response is obtained by performing inverse differential analysis on the voltage response of the critical load node during charging and discharging detection, and the equivalent electrical influence coefficient Ki is determined by the ratio of the net voltage response to the detection power amplitude.
5. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 4, characterized in that, Establish a V2G cooperative control model M that couples protocol states with branch voltages, including: The power execution period is divided into power execution periods using the power execution cycle Tp as the time scale, and electric vehicles are marked as frozen vehicles or adjustable vehicles based on whether each power execution period intersects with the session freeze time window F. Based on the adjustable vehicle's protocol shutdown risk value R, state of charge, departure time, maximum allowable charging power, and maximum allowable discharging power, generate the available charging and discharging power envelope for the corresponding power execution period; Based on the power gap of frozen vehicles and the equivalent electrical influence coefficient K of each electric vehicle, the voltage compensation requirement of critical load nodes is determined, and the voltage compensation requirement is coupled with the available charging and discharging power envelope to form a V2G collaborative control model M.
6. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 5, characterized in that, The construction of the V2G cooperative control model M includes: The compensation power of each adjustable vehicle during the corresponding power execution period is used as the decision quantity, and the compensation power is restricted to be within the corresponding available charging and discharging power envelope; The sum of voltage compensation error and protocol shutdown risk penalty at critical load nodes is used as the objective function, wherein the protocol shutdown risk penalty is positively correlated with the protocol shutdown risk value R and negatively correlated with the equivalent electrical influence coefficient K. The adjustable vehicles are ranked according to the product of the equivalent electrical influence coefficient K and the 1 minus the agreement power outage risk value R, so that vehicles with high K and low R participate in power gap compensation first.
7. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 6, characterized in that, Based on M, the main power supply sequence and compensation power sequence for each electric vehicle are generated, including: Read the difference in main power supply of the frozen vehicle before and after the start of the session freeze time window F, obtain the power reduction gap, and generate a power reduction gap curve with the start of F as the end point; The compensation priority is calculated based on the available charging and discharging power envelope of the adjustable vehicle, the agreed power outage risk value R, and the equivalent electrical influence coefficient K. The power reduction gap curve is allocated to the adjustable vehicles with higher compensation priority by one power execution cycle in advance, forming a compensation power sequence with the opposite direction to the power reduction direction of the frozen vehicles.
8. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 7, characterized in that, The compensation power sequence is superimposed onto the main power sequence, including: The compensation power of the j-th adjustable vehicle is added to its main power supply to obtain the execution power; Determine whether the execution power is within the available charging and discharging power envelope of the adjustable vehicle; When the executed power exceeds the available charging and discharging power envelope, the excess portion will be deducted from the compensation power of the currently adjustable vehicle and then allocated to the next adjustable vehicle with the next compensation priority.
9. The electric vehicle V2G charging and discharging coordinated control method based on ISO 15118 according to claim 1, characterized in that, When the ISO 15118 session parameters for any vehicle change, the compensated power sequence is updated and regenerated, including: Within each power execution cycle, the remaining validity time of the current certificate chain, contract identifier, message round-trip latency, and session persistence count are compared with the corresponding data of the previous power execution cycle to determine the moment when the session parameters change. Starting from the moment of session disturbance, only update the protocol power outage risk value R and session freeze time window F of the corresponding vehicle, and retain the compensation power that has been issued before the moment of session disturbance; The compensation power sequence after the session disturbance time is regenerated based on the updated R and F, and the compensation power is continuously connected by using the minimum difference between the compensation power between adjacent power execution cycles as the allocation condition.
10. A V2G charging and discharging coordinated control system for electric vehicles based on ISO 15118, used to implement the V2G charging and discharging coordinated control method for electric vehicles based on ISO 15118 as described in any one of claims 1-9, characterized in that, include: The data acquisition module is used to acquire vehicle parameters, state of charge, departure time, and ISO15118 session parameters of several electric vehicles connected to the same end branch. The session parameters include the remaining validity time of the certificate chain, contract identifier, message round-trip time, and session hold count. The protocol shutdown risk assessment module is used to generate a protocol shutdown risk value R for each electric vehicle based on the message round-trip time and session hold count. The session freeze time window determination module is used to determine the corresponding session freeze time window F based on the remaining validity time of the certificate chain and the contract identifier. The equivalent electrical influence coefficient detection module is used to apply an equivalent electrical influence coefficient to each electric vehicle beyond F. The system detects power in two directions, acquires the voltage response of the terminal branch, and determines the equivalent electrical influence coefficient K of each electric vehicle to the critical load node based on the voltage response; the V2G cooperative control module is used to establish a V2G cooperative control model M that couples the protocol state with the branch voltage based on R, F, K, state of charge and departure time, and generates the main power supply sequence and compensation power sequence for each electric vehicle based on M, so that the power reduction process of vehicles within the session freeze time window F is compensated in advance by vehicles with high K and low R; the execution and update module is used to execute V2G charging and discharging according to the main power supply sequence and compensation power sequence, and update R and F and regenerate the compensation power sequence when the ISO 15118 session parameters of any vehicle change.
