A power dynamic allocation method of charging pile

By deploying blockchain and V2G authorized smart contracts on bidirectional charging piles, combined with hash algorithms and multi-node verification mechanisms, the problem of insufficient data security and transparency in V2G transactions has been solved, achieving efficient and transparent power allocation and settlement, and improving grid operation efficiency and user trust.

CN121043689BActive Publication Date: 2026-02-03MIANYANG HIGH-TECH ZONE HENGAO ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511596733.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-04
Publication Date
2026-02-03
Estimated Expiration
2045-11-04

AI Technical Summary

Technical Problem

In existing V2G transactions, data interaction is frequent and sensitive. Traditional centralized platforms are inadequate in terms of data security, privacy protection, and transaction transparency, leading to a crisis of trust. Power allocation strategies lack dynamic optimization capabilities, resulting in low resource utilization, slow response speed, opaque settlement mechanisms, and a tendency to cause disputes. Furthermore, the lack of a full lifecycle data recording and traceability mechanism makes troubleshooting and regulatory auditing difficult.

Method used

Deploying blockchain on bidirectional charging piles generates user digital identities and deploys V2G authorization smart contracts. Combining real-time load signals and vehicle battery data, power allocation is performed through the blockchain distributed ledger, and identity identifiers are generated using hash algorithms. Asymmetric encryption technology is used to protect user identities, and a multi-node verification mechanism ensures the security and transparency of authorized content. The smart contract automatically calculates compensation amounts and records data.

Benefits of technology

It significantly improves the efficiency and stability of power grid operation, enables real-time response to power grid load gaps, accurately selects vehicles for discharge, ensures data security and user privacy, builds a multi-party trust system, optimizes resource allocation, simplifies settlement processes, enhances user participation, and achieves efficient, transparent, and safe dynamic allocation of charging pile power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121043689B_ABST
    Figure CN121043689B_ABST
Patent Text Reader

Abstract

The application discloses a power dynamic allocation method of charging pile, and relates to the technical field of electric vehicle charging, which comprises the following steps: deploying a blockchain on a bidirectional charging pile, deploying a V2G authorization smart contract on the blockchain network, uploading real-time load signals and vehicle battery operation data to the blockchain distributed ledger, screening discharging vehicles in combination with the V2G authorization smart contract, generating hierarchical power allocation instructions, executing the hierarchical power allocation instructions by the discharging vehicles, automatically calculating compensation amounts according to the V2G authorization smart contract, and carrying out settlement transactions.The application records V2G whole-process data in the distributed ledger by deploying the blockchain on the bidirectional charging pile, combining the V2G authorization smart contract with a dynamic hierarchical power allocation strategy, divides discharging grade groups based on battery states, optimizes resource allocation, automatically calculates compensation amounts and completes digital currency transfer, and thus an efficient, transparent and safe power dynamic allocation method of charging pile is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electric vehicle charging technology, and in particular to a method for dynamic power allocation of charging piles. Background Technology

[0002] In recent years, with the popularization of new energy vehicles, the demand for charging infrastructure has continued to grow. Especially driven by vehicle-to-grid (V2G) technology, electric vehicles are not only energy consumers but also gradually becoming dispatchable distributed energy storage units. V2G technology can utilize the power batteries of electric vehicles to discharge back to the grid during peak grid load periods, thereby smoothing load fluctuations and improving grid operation stability, and bringing economic benefits to users. How to provide a safe, efficient, and intelligent dynamic load allocation method to achieve precise regulation of grid load and effective protection of user rights has become a key issue that urgently needs to be addressed in the field of electric vehicle and grid integration.

[0003] In existing technologies, V2G transactions involve multiple parties, including power grid companies, charging pile operators, and vehicle users. Data interaction is frequent and sensitive. Traditional centralized platforms are inadequate in terms of data security, privacy protection, and transaction transparency, which can easily lead to trust crises. Power allocation strategies often rely on manual methods or simple fixed rules, lacking the ability to dynamically optimize based on real-time grid load and vehicle battery status. This results in low resource utilization, slow response speed, opaque settlement mechanisms, inconsistent compensation standards, and a high risk of disputes, which can affect user participation. Furthermore, the lack of a full lifecycle data recording and traceability mechanism for the entire V2G process makes fault diagnosis, liability determination, and regulatory auditing difficult. Summary of the Invention

[0004] The technical problem addressed by this invention is that existing V2G transactions involve multiple parties, including power grid companies, charging pile operators, and vehicle users, with frequent and sensitive data interactions. Traditional centralized platforms are inadequate in terms of data security, privacy protection, and transaction transparency, which can easily lead to trust crises. Power allocation strategies often rely on manual methods or simple fixed rules, lacking the ability to dynamically optimize based on real-time grid load and vehicle battery status, resulting in low resource utilization, slow response speed, opaque settlement mechanisms, inconsistent compensation standards, and a high risk of disputes, which can negatively impact user participation. Furthermore, the lack of a full lifecycle data recording and traceability mechanism for the entire V2G process makes fault diagnosis, liability determination, and regulatory auditing difficult.

[0005] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a method for dynamic power allocation of a charging pile, comprising the following steps:

[0006] Step S1: Deploy blockchain on the bidirectional charging pile;

[0007] Step S2: Generate a user's digital identity and simultaneously deploy a V2G authorized smart contract on the blockchain network. The V2G authorized smart contract is used for charge / discharge execution, discharge calculation, and fee settlement.

[0008] Step S3: Upload the real-time load signal and vehicle battery operation data to the blockchain distributed ledger, and at the same time, use the V2G authorized smart contract to screen the discharge vehicles.

[0009] Step S4: Generate a graded power allocation command based on the grid load gap value and the discharge vehicle, and simultaneously execute the graded power allocation command through the discharge vehicle to allocate power, and record the process data.

[0010] Step S5: The compensation amount is automatically calculated according to the V2G authorized smart contract, the settlement transaction is carried out, and a data report is generated and uploaded to the blockchain distributed ledger.

[0011] As a preferred embodiment of the power dynamic allocation method for charging piles according to the present invention, step S1 specifically includes:

[0012] Step S101: Deploy a blockchain on the bidirectional charging pile. The blockchain includes a distributed ledger real-time writing function. The bidirectional charging pile is used to charge the vehicle when the grid load is low and to discharge the vehicle back to the grid when the grid load is high.

[0013] Step S102: Develop the V2G protocol, which includes blockchain communication standards;

[0014] Step S103: Collect relevant data by deploying hardware modules, generate hash values ​​of the relevant data using a hash algorithm, obtain the identity identifier of the bidirectional charging pile in the blockchain network, bind the hash value with the identity identifier to obtain the digital identity of the bidirectional charging pile, and the relevant data includes vehicle status, grid load and charging / discharging amount of the bidirectional charging pile.

[0015] In a preferred embodiment of the power dynamic allocation method for the charging pile described in this invention, step S2 specifically includes:

[0016] Step S201: Use blockchain asymmetric encryption technology to generate a unique digital certificate for the user, bind the unique digital certificate to the user's real identity information to generate the user's digital identity, and upload the user's digital identity to the blockchain distributed ledger.

[0017] The real identity information includes ID card information and vehicle registration certificate information;

[0018] Step S202: Deploy a V2G authorized smart contract on the blockchain network. The V2G authorized smart contract has built-in core terms, which include charging and discharging execution rules, discharging amount calculation rules, and fee settlement rules.

[0019] Step S203: When the user selects the V2G mode through the user APP, the core terms are retrieved. After the user authorizes the core terms by entering their private key, the user's digital wallet address is automatically associated, and the authorization signature, the user's digital wallet address, and the core terms are packaged into authorization content. The authorization content is verified by multiple authorization nodes, including power grid enterprise nodes, regulatory nodes, charging pile operation nodes, and V2G platform operation nodes. When the number of nodes that have passed node verification is greater than a preset first threshold, the authorization content that has passed node verification is uploaded to the blockchain distributed ledger.

[0020] As a preferred embodiment of the power dynamic allocation method for charging piles described in this invention, the core clauses specifically include:

[0021] The charging and discharging execution rules include V2G discharge triggering conditions and discharge vehicle judgment criteria;

[0022] The V2G discharge triggering condition includes V2G discharge when the grid load gap value is greater than the first preset grid load gap value;

[0023] The criteria for determining a vehicle to be discharged include classifying a vehicle whose SOC value is greater than or equal to a preset second threshold and which has no charging requirement as a vehicle to be discharged.

[0024] The discharge calculation rules include filtering data on the blockchain according to the user's digital identity, the discharge task period, and the bidirectional charging pile's digital identity; reading process data related to this discharge; removing invalid information from the process data through data cleaning to obtain valid process data; dividing the valid discharge period in the valid process into continuous time periods according to the time interval recorded in the process data; obtaining the real-time discharge power corresponding to each time period; multiplying the real-time discharge power of each time period by the time length of the time period to obtain the discharge amount corresponding to each time period; and summing the discharge amounts corresponding to the time periods to obtain the actual discharge amount of this discharge.

[0025] The fee settlement rules include obtaining the compensation amount by multiplying the actual discharge amount by the scenario compensation coefficient;

[0026] The scenario compensation coefficient includes the following steps: the power grid dispatch center retrieves the current regional total power, power supply side reserve capacity, and historical load fluctuation coefficient from the blockchain; calculates the sum of the power supply rated capacity and power supply side reserve capacity to obtain first calculation data; multiplies the first calculation data by the historical load fluctuation coefficient to obtain second calculation data; and subtracts the second calculation data from the current regional total power to obtain the power grid load gap value. When the power grid load gap value is greater than or equal to a second preset power grid load gap value, the scenario compensation coefficient is set as the first coefficient; when the power grid load gap value is less than the second preset power grid load gap value but greater than a third preset power grid load gap value, the scenario compensation coefficient is set as the second coefficient. The first preset power grid load gap value is less than the third preset power grid load gap value, which is less than the second preset power grid load gap value.

[0027] As a preferred embodiment of the power dynamic allocation method for charging piles according to the present invention, the node verification of the authorized content by multiple authorized nodes specifically includes:

[0028] The node verification includes signature verification, address verification, and terms verification;

[0029] The signature verification includes extracting the user's authorization signature from the authorization content, decrypting the authorization signature using the user's public key to obtain the original signature text of the authorization signature, and comparing the authorization signature with the original signature text;

[0030] If the authorized signature and the original signature are consistent, the signature verification is deemed to have passed; if the authorized signature and the original signature are inconsistent, the signature verification is deemed to have failed.

[0031] The address verification includes obtaining the on-chain registration information of the digital wallet address from the blockchain ledger, determining the digital identity of the registered user of the digital wallet address through the on-chain registration information, comparing the digital identity of the registered user with the current user's digital identity in the authorization content, and verifying whether the digital wallet address is in a normal state.

[0032] If the digital wallet address is not in a normal state and the registered user's digital identity does not match the current user's digital identity, the address verification is deemed to have failed. If the digital wallet address is in a normal state and the registered user's digital identity matches the current user's digital identity, the address verification is deemed to have passed.

[0033] The normal state includes that the digital wallet address has no record of being frozen, no record of violations, and no user being bound to it;

[0034] The clause verification includes extracting the clause information of the core clauses in the authorized content and calculating the hash value of the clause information as the first hash value. At the same time, it retrieves the clause information of the core clauses of the V2G authorized smart contract on the blockchain network, calculates the hash value of the core clauses as the second hash value, and compares the first hash value and the second hash value.

[0035] If the first hash value matches the second hash value, the clause verification is deemed successful; if the first hash value does not match the second hash value, the clause verification is deemed unsuccessful.

[0036] In a preferred embodiment of the power dynamic allocation method for the charging pile described in this invention, step S3 specifically includes:

[0037] Step S301: Obtain the digital identity of the power grid dispatch center in the blockchain network, obtain the real-time load signal through the power grid dispatch center, bind the real-time load signal with the digital identity of the power grid dispatch center, and upload it to the blockchain distributed ledger after binding.

[0038] Simultaneously, digital identifiers of participating V2G vehicles are obtained in the blockchain network, vehicle battery operation data of participating V2G vehicles are collected through bidirectional charging piles, the vehicle battery operation data is bound with the digital identifiers of participating V2G vehicles, and then uploaded to the blockchain distributed ledger.

[0039] The real-time load signal includes the total regional power, the power supply side reserve capacity, and the load rate; the vehicle battery operating data includes the vehicle SOC value, available discharge capacity, and battery health.

[0040] Step S302: The PBFT consensus algorithm is used to cross-validate the real-time load signal and the vehicle battery operation data respectively. The real-time load signal and the vehicle battery operation data that have passed the cross-validation are used as consensus data and uploaded to the blockchain distributed ledger.

[0041] Step S303: Use the charging and discharging execution rules of the V2G authorized smart contract and the consensus data to screen the vehicles to be discharged.

[0042] In a preferred embodiment of the power dynamic allocation method for the charging pile described in this invention, step S4 specifically includes:

[0043] Step S401: According to the charging and discharging execution rules of the V2G authorized smart contract, when the V2G discharge triggering condition is met, the power grid dispatch center generates a graded power allocation instruction based on the power grid load gap value and the discharge vehicle, uploads the graded power allocation instruction to the blockchain distributed ledger, and synchronizes it to the bidirectional charging pile, and executes the graded power allocation instruction through the bidirectional charging pile.

[0044] Step S402: When the bidirectional charging pile starts to execute the graded power allocation instruction, process data is recorded in real time. The process data includes start time, real-time discharge power, interruption record and end time. The hash value of the process data is calculated at a preset frequency and uploaded to the blockchain distributed ledger.

[0045] Step S403: After the tiered power allocation instruction is executed, the actual discharge amount is obtained through the discharge amount calculation rules of the V2G authorized smart contract. The actual discharge amount is compared with the target discharge amount. If the deviation between the actual discharge amount and the target discharge amount is less than or equal to a preset third threshold, the fee settlement preparation is triggered. If the deviation between the actual discharge amount and the target discharge amount is greater than the preset third threshold, the traceability chain is retrieved to analyze the cause and processed according to the preset rules.

[0046] As a preferred embodiment of the power dynamic allocation method for charging piles described in this invention, the generation of tiered power allocation instructions by the power grid dispatch center based on the power grid load gap value and the discharging vehicle specifically includes:

[0047] Based on the aforementioned discharge vehicles, discharge level groups are further divided according to battery status;

[0048] The discharge level group includes a primary discharge group and a secondary discharge group;

[0049] The first-level discharge group includes discharge vehicles whose vehicle SOC value is greater than or equal to a preset fourth threshold and whose battery health is greater than or equal to a preset fifth threshold.

[0050] The secondary discharge group includes vehicles whose SOC value is greater than a preset second threshold and less than a preset fourth threshold and whose battery health is greater than or equal to a preset sixth threshold.

[0051] Among them, the fourth preset threshold is greater than the second preset threshold, and the fifth preset threshold is greater than the sixth preset threshold;

[0052] Based on the power grid load gap value, generate a first-level power allocation instruction and a second-level power allocation instruction;

[0053] The first-level graded power allocation instruction includes calling the first-level discharge group to allocate power according to a preset discharge power, obtaining the number of discharge vehicles in the first-level discharge group, and subtracting the number of discharge vehicles from the grid load gap value and multiplying by the preset discharge power to obtain the first remaining grid load gap value.

[0054] The secondary-level power allocation instruction includes calling the secondary discharge group to allocate power according to a preset discharge power, calculating the first remaining grid load gap value divided by the preset discharge power, obtaining the number of discharge vehicles to be called by the secondary discharge group, and allocating power according to the preset discharge power.

[0055] In a preferred embodiment of the power dynamic allocation method for the charging pile described in this invention, step S5 specifically includes:

[0056] Step S501: Retrieve the actual discharge amount of the vehicle from the blockchain, calculate the compensation amount for the user according to the fee settlement rules of the V2G authorized smart contract, and transfer the equivalent amount of digital currency to the user's digital wallet through the blockchain network for settlement transaction.

[0057] Step S502: After the settlement transaction is completed, the transaction hash value of the settlement transaction is synchronized to the user's APP in real time. The user can query the transaction details through the blockchain explorer. The transaction details include the transfer amount, transfer time, and transfer block location.

[0058] In a preferred embodiment of the power dynamic allocation method for the charging pile described in this invention, step S5 further includes:

[0059] Step S503: Generate a data report containing discharge data, compensation amount calculation process and compensation amount calculation result, calculate the hash value of the data report, and upload the hash value of the data report to the blockchain distributed ledger;

[0060] Step S504: When the grid load rate uploaded to the blockchain by the grid dispatch center is less than the target grid load rate, the bidirectional charging pile retrieves the user's process data on the blockchain and prioritizes charging V2G vehicles with process data.

[0061] The beneficial effects of this invention are as follows: By deploying blockchain on bidirectional charging piles, combined with V2G authorized smart contracts and dynamic hierarchical power allocation strategies, this invention significantly improves the efficiency and stability of power grid operation, responds to grid load gaps in real time, accurately selects discharging vehicles and allocates power to smooth out peak-valley differences. Leveraging the decentralized and immutable characteristics of blockchain, the entire V2G process data is recorded in a distributed ledger. Coupled with unique digital identities generated by asymmetric encryption and a multi-node verification mechanism, this ensures data security and user privacy while building a multi-party trust system. Based on battery status, discharge level groups are divided to optimize resource allocation, protecting battery health. Furthermore, the smart contract automatically calculates compensation amounts based on actual discharge volume and scenario compensation coefficients and completes digital currency transfers, simplifying the settlement process, avoiding disputes, and significantly increasing user participation in V2G. This invention achieves an efficient, transparent, and secure method for dynamic power allocation of charging piles. Attached Figure Description

[0062] Figure 1 This is a basic flowchart illustrating a power dynamic allocation method for a charging pile according to an embodiment of the present invention. Detailed Implementation

[0063] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0064] Example, refer to Figure 1 As an embodiment of the present invention, a method for dynamic power allocation of a charging pile is provided, comprising the following steps:

[0065] Step S1: Deploy blockchain on the bidirectional charging station.

[0066] Step S2: Generate the user's digital identity and deploy a V2G authorized smart contract on the blockchain network. The V2G authorized smart contract is used for charge and discharge execution, discharge calculation and fee settlement.

[0067] Step S3: Upload the real-time load signal and vehicle battery operation data to the blockchain distributed ledger, and simultaneously filter the discharge vehicles in conjunction with the V2G authorized smart contract.

[0068] Step S4: Generate a graded power allocation command based on the grid load gap value and the discharge vehicle, and simultaneously perform power allocation by executing the graded power allocation command through the discharge vehicle, and record the process data.

[0069] Step S5: The compensation amount is automatically calculated according to the V2G authorized smart contract, the settlement transaction is carried out, and a data report is generated and uploaded to the blockchain distributed ledger.

[0070] Step S1 specifically includes:

[0071] Step S101: Deploy a blockchain on the bidirectional charging pile. The blockchain includes a distributed ledger real-time writing function. The bidirectional charging pile is used to charge the vehicle when the grid load is low and to discharge the vehicle back to the grid when the grid load is high.

[0072] Step S102: Develop a V2G protocol that includes blockchain communication standards.

[0073] Step S103: Collect relevant data by deploying hardware modules, generate hash values ​​of the relevant data through a hash algorithm, obtain the identity identifier of the bidirectional charging pile in the blockchain network, bind the hash value with the identity identifier to obtain the digital identity of the bidirectional charging pile, and the relevant data includes vehicle status, grid load and charging and discharging amount of the bidirectional charging pile.

[0074] Two-way charging piles are used to break through the limitations of traditional one-way charging and realize the bidirectional flow of energy between vehicles and the power grid. They can obtain power from the grid when the vehicle is low on power (such as charging a car with 20% SOC to 80% overnight), and can also allow vehicles to discharge in reverse to replenish energy when the grid is under heavy load (such as when the grid is short of 20MW during the morning rush hour, 100 cars with 70% SOC can fill the gap by discharging at 200kW / vehicle for 1 hour). This makes electric vehicle batteries a flexible energy storage resource.

[0075] By upgrading hardware and deploying technology, a solid foundation was laid for the entire dynamic power allocation method. One-way charging piles were transformed into two-way charging piles, realizing bidirectional energy transmission between vehicles and the power grid. This provided hardware support for the implementation of the V2G model. Simultaneously, a blockchain with distributed ledger real-time writing function was deployed to ensure the real-time nature and immutability of subsequent data records. A V2G protocol with blockchain communication standards was developed to unify communication specifications between devices and platforms, avoid "information silos," and improve compatibility. By collecting relevant data such as vehicle status and power grid load through hardware modules and generating hash values, which are then bound to the blockchain identity of the two-way charging pile to form a digital identity, this not only ensures the traceability of the data source but also provides a unique device identifier for data interaction and verification in the subsequent blockchain network.

[0076] Step S2 specifically includes:

[0077] Step S201: Use blockchain asymmetric encryption technology to generate a unique digital certificate for the user, bind the unique digital certificate to the user's real identity information to generate the user's digital identity, and upload the user's digital identity to the blockchain distributed ledger.

[0078] Real identity information includes ID card information and vehicle registration information.

[0079] This approach ensures the uniqueness and security of user identities while also making identity information traceable and tamper-proof. For example, if a user's information was previously misused during traditional identity authentication, resulting in someone else using their name to participate in V2G charging while the user bore the battery damage, this new method strongly binds the user's digital identity to their ID card and vehicle registration certificate. Furthermore, the asymmetric encryption technology requires the user's private key to operate, effectively preventing identity misuse. After the identity information is uploaded to the blockchain, participating parties such as the power grid and charging pile operators do not need to repeatedly verify the user's real identity. They only need to retrieve the user's digital identity on the blockchain to confirm permissions, significantly improving the efficiency of the V2G participation process.

[0080] Step S202: Deploy the V2G authorized smart contract on the blockchain network. The V2G authorized smart contract has built-in core terms, including charging and discharging execution rules, discharging quantity calculation rules, and fee settlement rules.

[0081] It achieves automation, standardization, and immutability of V2G transactions. For example, when the grid load gap exceeds the first preset value, the smart contract can automatically trigger discharge without human intervention, avoiding human delay or operational errors. All participants use the same set of calculation standards, such as calculating the discharge amount based on real-time discharge power and time, and multiplying the actual discharge amount by the scenario compensation coefficient to obtain the compensation amount, ensuring fair and transparent settlement and reducing disputes.

[0082] Step S203: When a user selects the V2G mode through the user APP, the core terms are retrieved. After the user authorizes the core terms by entering their private key to sign, the user's digital wallet address is automatically associated. The authorization signature, the user's digital wallet address, and the core terms are packaged into authorization content. The authorization content is verified by multiple authorization nodes, including power grid enterprise nodes, regulatory nodes, charging pile operation nodes, and V2G platform operation nodes. When the number of nodes that have passed node verification exceeds a preset first threshold, the authorization content that has passed node verification is uploaded to the blockchain distributed ledger.

[0083] The preset first threshold is used to ensure the authenticity and security of V2G authorization through multi-party consensus, and to prevent single-point manipulation or misjudgment. When setting it, it is determined according to the principle of "more than half" of the total number of authorized nodes (e.g., set to 3 for 4 nodes, set to 3 for 5 nodes). It is dynamically adjusted according to business risks, increasing when security requirements are high and decreasing when efficiency is prioritized.

[0084] To build a secure, compliant, and multi-party recognized V2G authorization mechanism—for example, when user Zhang selects the V2G mode, the APP retrieves the core terms, he enters his private key to complete the signature, and it is automatically linked to his digital wallet address. Subsequently, the authorized content needs to be verified by four nodes: the power grid, the regulator, the charging pile operator, and the V2G platform. If the first threshold is preset to 3 (i.e., at least 3 nodes pass), when the power grid, regulator, and platform nodes all pass the verification, the authorized content can be uploaded to the blockchain. This avoids the risk caused by a single node controlling the authorization authority and also ensures that the user's authorization is a genuine intention and complies with the rules.

[0085] The core terms specifically include:

[0086] The charging and discharging execution rules include V2G discharge triggering conditions and discharge vehicle judgment criteria.

[0087] The V2G discharge triggering condition includes V2G discharge when the grid load gap value is greater than the first preset grid load gap value.

[0088] The criteria for determining a vehicle to be discharged include classifying a vehicle whose SOC value is greater than or equal to a preset second threshold and which has no charging requirement as a vehicle to be discharged.

[0089] The first preset grid load gap value serves as the start switch for V2G discharge, ensuring that vehicle resources are only mobilized when the grid truly needs them, thus achieving peak shaving and valley filling and stable grid operation. The setting is determined comprehensively based on data such as regional grid capacity, historical load curves, and the total discharge capacity of available V2G vehicles. It is usually a certain percentage (e.g., 5%~10%) of the maximum peak load in the region, and is dynamically adjusted according to seasons and time periods to balance grid security and user participation.

[0090] A preset second threshold is set to ensure battery health and user travel, avoiding excessive discharge (e.g., setting it to 30% can reserve enough power for temporary vehicle use). When setting it, the battery type (30% for lithium iron phosphate, 25% for ternary lithium) and user travel habits should be taken into account, and then fine-tuned according to the grid gap. Users should be informed at the same time.

[0091] By setting V2G discharge triggering conditions and discharge vehicle judgment criteria, intelligent interaction between the power grid and vehicles is realized. When the power grid load gap exceeds the first preset value, discharge is automatically triggered. Discharge can be quickly called upon to smooth out peak periods (e.g., if the gap reaches 20MW, it will be started immediately). Only vehicles with SOC not lower than the preset second threshold and no charging needs are selected to participate, which not only ensures battery health and user travel is not affected, but also improves response efficiency and reliability.

[0092] The discharge calculation rules include filtering data on the blockchain according to the user's digital identity, the discharge task period, and the digital identity of the bidirectional charging pile; reading process data related to this discharge; removing invalid information from the process data through data cleaning to obtain valid process data; dividing the valid discharge period in the valid process into continuous time periods according to the time interval recorded in the process data; obtaining the real-time discharge power corresponding to each time period; multiplying the real-time discharge power of each time period by the time length of the time period to obtain the discharge amount corresponding to each time period; and summing the discharge amounts corresponding to the time periods to obtain the actual discharge amount of this discharge.

[0093] By cleaning and processing data to remove invalid information, valid process data is obtained. First, the criteria for judging invalid information are clarified. From the perspective of numerical rationality, negative discharge power, extreme values ​​exceeding 10 times the rated power of the charging pile, or related parameters such as voltage and current deviating from the normal operating range (e.g., a charging pile with a rated voltage of 220V displaying 1000V) are all considered invalid data. From the perspective of time, data with duplicate sampling timestamps, reverse order (e.g., the later record is earlier than the previous one), or non-standard format (not using standard UTC time) need to be removed because they disrupt the continuity of time. Duplicate records caused by communication retransmission and invalid values ​​continuously generated during device failure are also included in the cleaning scope.

[0094] Data gaps after cleaning need to be handled according to their size. If 1-2 consecutive points are missing, linear interpolation or mean should be used to fill the gaps to ensure completeness. If more than 5 points are missing or there are long gaps caused by equipment failure, they should be directly removed to prevent errors.

[0095] The time interval division must be strictly matched with the hardware acquisition frequency. For example, the bidirectional charging pile collects the discharge power once every 1 minute by default. When calculating, the effective discharge period is divided into continuous time intervals in 1-minute units. If it is arbitrarily changed to 5-minute intervals, the calculation results will be biased due to the omission of intermediate power fluctuations, and the accuracy of discharge measurement cannot be guaranteed.

[0096] By calculating power independently over discrete time periods and then summing the results, combined with data cleaning to remove invalid information, the system ensures high precision and accuracy of discharge measurement from the source. The entire process is executed automatically by smart contracts, avoiding human intervention errors and achieving automated and standardized measurement. Relying on the immutability of blockchain, the entire process of data screening, calculation logic, and results is recorded, ensuring that the "actual discharge" is transparent and traceable. This provides a reliable basis for settlement between users, power grids, and operators, significantly reducing measurement disputes. The data cleaning process proactively filters abnormal data, strengthening the metering system's ability to resist data errors and malicious attacks, and ensuring data integrity and validity.

[0097] The fee settlement rules include obtaining the compensation amount by multiplying the actual discharge amount by the scenario compensation coefficient.

[0098] The scenario compensation coefficient includes the following: the power grid dispatch center retrieves the current regional total power, power supply side reserve capacity, and historical load fluctuation coefficient from the blockchain; calculates the sum of the power supply rated capacity and power supply side reserve capacity to obtain the first calculation data; multiplies the first calculation data by the historical load fluctuation coefficient to obtain the second calculation data; and subtracts the second calculation data from the current regional total power to obtain the power grid load gap value. When the power grid load gap value is greater than or equal to the second preset power grid load gap value, the scenario compensation coefficient is set as the first coefficient; when the power grid load gap value is less than the second preset power grid load gap value but greater than the third preset power grid load gap value, the scenario compensation coefficient is set as the second coefficient. The first preset power grid load gap value is less than the third preset power grid load gap value, which is less than the second preset power grid load gap value.

[0099] It achieves fairness in V2G compensation and guidance in grid dispatch, which not only strongly links user benefits with actual grid demand (the larger the load gap, the higher the compensation coefficient), incentivizing more vehicles to participate in discharge when the grid is under pressure, but also reasonably controls grid compensation costs through differentiated coefficients to avoid resource waste. The scenario compensation coefficient is calculated based on real data such as regional total power and power supply reserve capacity on the blockchain, ensuring that the coefficient determination process is transparent and traceable, and reducing settlement disputes.

[0100] On the one hand, smart contracts can automatically execute the entire process of authorization verification, discharge triggering, metering calculation, and fee settlement without human intervention. This significantly reduces errors and efficiency losses caused by human operation and avoids disputes arising from inconsistent understanding of the rules among the parties. On the other hand, core terms (such as threshold settings, compensation coefficient calculation logic, and data cleaning standards) are solidified on the blockchain, possessing the characteristics of immutability and full traceability. This ensures that all participants, including power grid companies, users, and charging pile operators, follow unified rules, achieving "equality before the rules" and significantly enhancing trust among all parties. Smart contracts automatically record authorization information, metering data, and settlement vouchers for each transaction, forming a complete on-chain evidence chain. This not only facilitates real-time auditing by regulatory authorities but also enables rapid tracing of responsibility in case of disputes, further guaranteeing the compliance and security of V2G transactions and laying a solid foundation for the large-scale promotion of the V2G model.

[0101] Node verification of authorized content across multiple authorization nodes specifically includes:

[0102] Node verification includes signature verification, address verification, and terms verification.

[0103] Signature verification involves extracting the user's authorization signature from the authorized content, decrypting the authorization signature using the user's public key to obtain the original signature text, and comparing the authorization signature with the original signature text.

[0104] If the authorized signature and the original signature text are consistent, the signature verification is deemed successful; if the authorized signature and the original signature text are inconsistent, the signature verification is deemed unsuccessful.

[0105] Address verification involves obtaining the on-chain registration information of the digital wallet address from the blockchain ledger, determining the digital identity of the registered user of the digital wallet address through the on-chain registration information, comparing the digital identity of the registered user with the current user's digital identity in the authorization content, and verifying whether the digital wallet address is in a normal state.

[0106] If the digital wallet address is not in a normal state and the registered user's digital identity does not match the current user's digital identity, the address verification is deemed to have failed. If the digital wallet address is in a normal state and the registered user's digital identity matches the current user's digital identity, the address verification is deemed to have passed.

[0107] A normal status includes a digital wallet address with no record of freezing, no record of violations, and no linked users.

[0108] The terms verification process includes extracting the core terms information from the authorized content and calculating the hash value of the terms information as the first hash value. At the same time, it retrieves the core terms information from the V2G authorized smart contract on the blockchain network, calculates the hash value of the core terms as the second hash value, and compares the first hash value and the second hash value.

[0109] If the first hash value matches the second hash value, the clause verification is deemed successful; if the first hash value does not match the second hash value, the clause verification is deemed unsuccessful.

[0110] The core of the terms verification is to calculate and compare hash values ​​through a unified process to ensure that the authorized terms are consistent with the on-chain standard. First, the core terms information is extracted from the user's authorization content, and non-essential formatting such as spaces and line breaks is removed. The text is then uniformly converted to UTF-8 encoded text. At the same time, the core terms of the V2G authorization smart contract on the blockchain are retrieved and processed according to the same format rules. The unified hash algorithm preset by the contract (such as SHA-256) is used to calculate the hash values ​​of the two processed terms texts. Finally, the two hash values ​​are directly compared. If they are completely consistent, it means that the authorized terms have not been tampered with and are consistent with the on-chain standard terms. The terms verification passes. If there are differences, the terms verification fails.

[0111] Signature verification, through decryption using the user's public key and comparison with the original text, can accurately identify forged signatures or tampered authorization content, preventing false authorizations initiated by individuals other than the user. Address verification verifies identity and wallet status (no freezing, violations, and user-bound status) through on-chain registration information, eliminating the risk of identity theft and abnormal wallets participating in authorization, ensuring the legitimacy and compliance of the authorizing entity. Terms verification compares the authorization content with the core terms of the on-chain smart contract using hash values, avoiding discrepancies between the user-signed terms and official standard terms, and preventing subsequent rights disputes caused by term tampering. These three interconnected verifications not only guarantee the authenticity of the authorization content and the legitimacy of the authorizing entity but also ensure the consistency of the authorization rules, laying a solid foundation of trust for subsequent V2G discharge, metering, and settlement processes. At the same time, the multi-node synchronous verification mode further enhances the credibility of the results, effectively reducing the risk of misjudgment or malicious manipulation that may occur with single-point verification.

[0112] Step S3 specifically includes:

[0113] Step S301: Obtain the digital identity of the power grid dispatch center in the blockchain network, obtain the real-time load signal through the power grid dispatch center, bind the real-time load signal with the digital identity of the power grid dispatch center, and upload it to the blockchain distributed ledger after binding.

[0114] Simultaneously, digital identifiers of participating V2G vehicles are obtained from the blockchain network, and vehicle battery operation data of participating V2G vehicles are collected through bidirectional charging piles. The vehicle battery operation data is then bound to the digital identifiers of participating V2G vehicles and uploaded to the blockchain distributed ledger.

[0115] Real-time load signals include total regional power, power supply-side reserve capacity, and load rate. Vehicle battery operation data includes vehicle SOC value, available discharge capacity, and battery health.

[0116] Step S302: The PBFT consensus algorithm is used to cross-validate the real-time load signal and the vehicle battery operation data respectively. The real-time load signal and the vehicle battery operation data that have passed the cross-validation are used as consensus data and uploaded to the blockchain distributed ledger.

[0117] Step S303: Use the charging and discharging execution rules of the V2G authorized smart contract combined with consensus data to screen the vehicles to be discharged.

[0118] The PBFT consensus algorithm is used to cross-validate real-time load signals and vehicle battery operation data on the blockchain. The real-time load signals uploaded by the power grid dispatch center are considered as one group, and the battery operation data uploaded by each vehicle through the charging pile is considered as another group. The PBFT consensus nodes first perform independent cross-validation on the real-time load signal group to confirm its authenticity and validity. Then, they perform the same cross-validation on each piece of the vehicle battery operation data group. During the verification process of each group of data, steps such as proposal by the master node and confirmation by voting by other nodes are required. When more than two-thirds of the nodes reach a consensus, the group of data passes the verification and becomes the consensus data of that category. The consensus data of the real-time load signals that have passed the verification are merged and packaged with the consensus results of all the vehicle battery operation data that have passed the verification to form a complete consensus data block, which is then uploaded to the blockchain distributed ledger to ensure the overall authenticity, integrity and immutability of the data on the chain.

[0119] By binding real-time grid load signals and vehicle battery operation data to their respective digital identities and uploading them to the blockchain, and then using the PBFT consensus algorithm for cross-verification, the data entering the V2G scheduling decision-making process can be guaranteed to have extremely high authenticity, integrity, and immutability. This effectively resists the risk of single-point data forgery or transmission interference. The V2G authorized smart contract automatically selects discharging vehicles according to the charging and discharging execution rules, realizing the automation and standardization of the scheduling process. This not only improves the response speed but also ensures the fairness and transparency of the selection results, thus providing solid data support and an efficient execution mechanism for peak shaving and valley filling and ensuring the stable operation of the power grid.

[0120] Step S4 specifically includes:

[0121] Step S401: According to the charging and discharging execution rules of the V2G authorized smart contract, when the V2G discharge triggering condition is met, the power grid dispatch center generates a graded power allocation instruction based on the power grid load gap value and the discharging vehicle, uploads the graded power allocation instruction to the blockchain distributed ledger, and synchronizes it to the bidirectional charging pile, and executes the graded power allocation instruction through the bidirectional charging pile.

[0122] Step S402: When the bidirectional charging pile starts to execute the graded power allocation instruction, process data is recorded in real time. The process data includes start time, real-time discharge power, interruption record and end time. The hash value of the process data is calculated at a preset frequency and uploaded to the blockchain distributed ledger.

[0123] Step S403: After the tiered power allocation instruction is executed, the actual discharge amount is obtained through the discharge amount calculation rules of the V2G authorized smart contract. The actual discharge amount is compared with the target discharge amount. If the deviation between the actual discharge amount and the target discharge amount is less than or equal to the preset third threshold, the fee settlement preparation is triggered. If the deviation between the actual discharge amount and the target discharge amount is greater than the preset third threshold, the traceability chain is retrieved to analyze the cause and the process is carried out according to the preset rules.

[0124] The hash value of the process data is calculated at a preset frequency and uploaded to the blockchain distributed ledger. This not only locks the real data at each time point (such as real-time power) through high-frequency recording to prevent subsequent tampering, but also allows for quick verification of data integrity through hash value, providing a reliable basis for subsequent measurement, anomaly tracing and settlement, and strengthening trust among multiple parties.

[0125] The setting of deviation thresholds strikes a balance between measurement accuracy and user acceptance. For example, the third threshold can be set at 5%, meaning that when the deviation between the actual discharge amount and the target discharge amount does not exceed 5%, settlement is made directly, and if it exceeds, abnormal handling is triggered. This can avoid frequent disturbances to users due to small fluctuations, and can also intervene in a timely manner when there is a significant deviation, thus protecting the rights and interests of all parties.

[0126] The preset third threshold is the standard for judging whether the discharge deviation is reasonable. If the deviation is within the threshold, the calculation is performed directly. If it exceeds the threshold, the abnormal handling is triggered. When setting it, the hardware accuracy, network latency and battery characteristics are taken into account. Generally, it is 3%~10%. 3% is used in high-precision scenarios, 5% is used in ordinary scenarios, and 8%~10% can be relaxed for older devices.

[0127] The system retrieves the traceability chain to analyze the cause and processes it according to preset rules. If it is a power grid or network problem, the system settles and compensates the user based on the actual discharge amount. If it is a vehicle or pile failure, the system automatically generates a report and traces the responsibility, while compensating the user according to the contract. If it is a data error, the system initiates a calibration mechanism.

[0128] When the grid load reaches the triggering condition, the smart contract automatically drives the hierarchical power allocation to quickly respond to the grid demand. During the execution process, key data is hashed and uploaded to the blockchain at a preset frequency to ensure that the data is real-time, complete and tamper-proof. After the end, the deviation between the actual and target discharge is verified to ensure fair settlement. If the deviation exceeds the limit, the source analysis and rule-based processing are automatically triggered to protect the rights and interests of users and maintain the seriousness of grid dispatch.

[0129] The power grid dispatch center generates tiered power allocation instructions based on the power grid load gap value and the discharge vehicles, specifically including:

[0130] Based on the battery status, the discharge vehicles are further divided into discharge level groups.

[0131] The discharge level group includes the first-level discharge group and the second-level discharge group.

[0132] The first-level discharge group includes vehicles whose SOC value is greater than or equal to the preset fourth threshold and whose battery health is greater than or equal to the preset fifth threshold.

[0133] The secondary discharge group includes vehicles whose SOC value is greater than the preset second threshold and less than the preset fourth threshold, and whose battery health is greater than or equal to the preset sixth threshold.

[0134] The fourth preset threshold is greater than the second preset threshold, and the fifth preset threshold is greater than the sixth preset threshold.

[0135] Based on the grid load gap value, generate first-level and second-level power allocation instructions.

[0136] The first-level power allocation instruction includes calling the first-level discharge group to allocate power according to the preset discharge power, obtaining the number of discharge vehicles in the first-level discharge group, and subtracting the number of discharge vehicles from the grid load gap value and multiplying by the preset discharge power to obtain the first remaining grid load gap value.

[0137] The secondary-level power allocation instruction includes calling the secondary discharge group to allocate power according to the preset discharge power, calculating the first remaining grid load gap value and dividing it by the preset discharge power to obtain the number of discharge vehicles that the secondary discharge group needs to call and allocating power according to the preset discharge power.

[0138] The fourth preset threshold defines the SOC boundary between the first and second-level discharge groups, ensuring that vehicles in the first-level group have sufficient charge to participate in discharge. When setting this threshold, it takes into account the user's reserved charge for travel and battery safety, and is generally set to 60%-70% SOC (e.g., 65%). The fifth preset threshold filters the battery health of vehicles in the first-level discharge group, ensuring that batteries with high health are discharged first to reduce losses. When setting this threshold, it refers to battery degradation safety standards and is usually set to 90%-95% health (e.g., 92%). The sixth preset threshold sets the minimum battery health requirements for vehicles in the second-level discharge group, balancing discharge demand and battery protection. When setting this threshold, it is lower than the fifth threshold and is generally set to 80%-85% health (e.g., 83%).

[0139] The preset discharge power needs to be set in combination with the vehicle battery’s maximum discharge capacity and the grid’s acceptance capacity (e.g., 2kW preset per vehicle).

[0140] When the total power of the vehicles in the first-level discharge group cannot cover the load gap, the uncovered gap is calculated first, and then the number of vehicles to be supplemented is calculated based on the single vehicle power of the second-level group. Priority is given to calling vehicles in the second-level group with high battery health and SOC close to the fourth threshold. If there is still a gap, the lower limit of SOC of the second-level group can be relaxed within the contract allowance, and vehicles can be called to fill the gap.

[0141] By classifying vehicles by battery status and dynamically allocating power based on load gaps, V2G dispatch can prioritize vehicles with better battery status to ensure battery safety and lifespan, while also efficiently matching grid demand through precise calculation of gaps and the required number of vehicles, avoiding resource waste or insufficient power supply, thus achieving a balance between the safety and economy of V2G dispatch.

[0142] Step S5 specifically includes:

[0143] Step S501: Retrieve the actual discharge amount of the vehicle from the blockchain, calculate the user's compensation amount according to the fee settlement rules of the V2G authorized smart contract, and transfer the equivalent amount of digital currency to the user's digital wallet through the blockchain network for settlement transaction.

[0144] Step S502: After the settlement transaction is completed, the transaction hash value of the settlement transaction is synchronized to the user's APP in real time. The user can query the transaction details through the blockchain explorer. The transaction details include the transfer amount, transfer time, and transfer block location.

[0145] The settlement process relies on smart contracts to automatically calculate compensation amounts and complete digital currency transfers, achieving automation and immediacy in V2G revenue settlement. This avoids delays or errors caused by manual intervention. Transaction hashes are synchronized to the user's app and can be queried via a blockchain explorer, allowing users to track settlement details in real time and greatly improving revenue transparency and user trust.

[0146] Step S5 also includes:

[0147] Step S503: Generate a data report containing discharge data, compensation amount calculation process and compensation amount calculation result, calculate the hash value of the data report, and upload the hash value of the data report to the blockchain distributed ledger.

[0148] Step S504: When the grid load rate uploaded to the blockchain by the grid dispatch center is less than the target grid load rate, the bidirectional charging pile retrieves the user's process data on the blockchain and prioritizes charging V2G vehicles with process data.

[0149] Generate data reports containing key information and hash them on the blockchain to provide complete and tamper-proof credentials for settlement, further ensuring the traceability and fairness of compensation amounts. When the grid load rate is low, priority is given to replenishing power for V2G vehicles with discharge records, which not only incentivizes users to continue participating in V2G services, but also makes efficient use of idle grid capacity, achieving a win-win situation for user rights and grid resource optimization.

[0150] The charging rules include prioritizing users based on their historical cumulative discharge volume from highest to lowest, and prioritizing users with the same discharge volume based on the time of their most recent discharge. The charging power is set to no more than 3kW per vehicle, and the charging time for a single charge is set to no more than 2 hours to avoid a single vehicle occupying too many resources. The charging price is clearly marked (e.g., based on the residential electricity price of 0.56 yuan / kWh), and the charging cost and discharge compensation deduction details are displayed simultaneously at the time of settlement, forming a closed-loop rule of "compensation for discharge and preferential treatment for charging", ensuring users' right to know and the rational allocation of grid resources.

[0151] This invention significantly improves the efficiency and stability of the power grid by deploying blockchain on bidirectional charging piles, combined with V2G authorized smart contracts and a dynamic hierarchical power allocation strategy. It responds to grid load gaps in real time, accurately selects discharging vehicles and allocates power to smooth out peak-valley differences. Leveraging the decentralized and immutable characteristics of blockchain, the entire V2G process data is recorded in a distributed ledger. Coupled with unique digital identities generated by asymmetric encryption and a multi-node verification mechanism, it not only ensures data security and user privacy but also builds a multi-party trust system. Based on battery status, it divides discharge level groups to optimize resource allocation, protects battery health, and the smart contract automatically calculates compensation amounts based on actual discharge and scenario compensation coefficients and completes digital currency transfers, simplifying the settlement process, avoiding disputes, and greatly increasing user participation in V2G. This invention achieves an efficient, transparent, and secure method for dynamic power allocation of charging piles.

[0152] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. 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.

[0153] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for dynamic power allocation of a charging pile, characterized in that, Includes the following steps: Step S1: Deploy blockchain on the bidirectional charging pile; Step S2: Generate a user's digital identity and simultaneously deploy a V2G authorized smart contract on the blockchain network. The V2G authorized smart contract is used for charge / discharge execution, discharge calculation, and fee settlement. Step S3: Upload the real-time load signal and vehicle battery operation data to the blockchain distributed ledger, and at the same time, use the V2G authorized smart contract to screen the discharge vehicles. Step S4: Generate a graded power allocation command based on the grid load gap value and the discharge vehicle, and simultaneously execute the graded power allocation command through the discharge vehicle to allocate power, and record the process data. Step S5: Automatically calculate the compensation amount according to the V2G authorized smart contract, conduct settlement transactions, and simultaneously generate a data report and upload it to the blockchain distributed ledger; Step S4 specifically includes: Step S401: According to the charging and discharging execution rules of the V2G authorized smart contract, when the V2G discharge triggering condition is met, the power grid dispatch center generates a graded power allocation instruction based on the power grid load gap value and the discharge vehicle, uploads the graded power allocation instruction to the blockchain distributed ledger, and synchronizes it to the bidirectional charging pile, and executes the graded power allocation instruction through the bidirectional charging pile. Step S402: When the bidirectional charging pile starts to execute the graded power allocation instruction, process data is recorded in real time. The process data includes start time, real-time discharge power, interruption record and end time. The hash value of the process data is calculated at a preset frequency and uploaded to the blockchain distributed ledger. Step S403: After the tiered power allocation instruction is executed, the actual discharge amount is obtained through the discharge amount calculation rules of the V2G authorized smart contract. The actual discharge amount is compared with the target discharge amount. If the deviation between the actual discharge amount and the target discharge amount is less than or equal to a preset third threshold, the fee settlement preparation is triggered. If the deviation between the actual discharge amount and the target discharge amount is greater than the preset third threshold, the traceability chain is retrieved to analyze the cause and the process is carried out according to the preset rules. The power grid dispatch center generates tiered power allocation instructions based on the power grid load gap value and the discharge vehicles, specifically including: Based on the aforementioned discharge vehicles, discharge level groups are further divided according to battery status; The discharge level group includes a primary discharge group and a secondary discharge group; The first-level discharge group includes discharge vehicles whose vehicle SOC value is greater than or equal to a preset fourth threshold and whose battery health is greater than or equal to a preset fifth threshold. The secondary discharge group includes vehicles whose SOC value is greater than a preset second threshold and less than a preset fourth threshold and whose battery health is greater than or equal to a preset sixth threshold. Among them, the fourth preset threshold is greater than the second preset threshold, and the fifth preset threshold is greater than the sixth preset threshold; Based on the power grid load gap value, generate a first-level power allocation instruction and a second-level power allocation instruction; The first-level graded power allocation instruction includes calling the first-level discharge group to allocate power according to a preset discharge power, obtaining the number of discharge vehicles in the first-level discharge group, and subtracting the number of discharge vehicles from the grid load gap value and multiplying by the preset discharge power to obtain the first remaining grid load gap value. The secondary-level power allocation instruction includes calling the secondary discharge group to allocate power according to a preset discharge power, calculating the first remaining grid load gap value divided by the preset discharge power, obtaining the number of discharge vehicles to be called by the secondary discharge group, and allocating power according to the preset discharge power.

2. The power dynamic allocation method for charging piles as described in claim 1, characterized in that, Step S1 specifically includes: Step S101: Deploy a blockchain on the bidirectional charging pile. The blockchain includes a distributed ledger real-time writing function. The bidirectional charging pile is used to charge the vehicle when the grid load is low and to discharge the vehicle back to the grid when the grid load is high. Step S102: Develop the V2G protocol, which includes blockchain communication standards; Step S103: Collect relevant data by deploying hardware modules, generate hash values ​​of the relevant data using a hash algorithm, obtain the identity identifier of the bidirectional charging pile in the blockchain network, bind the hash value with the identity identifier to obtain the digital identity of the bidirectional charging pile, and the relevant data includes vehicle status, grid load and charging / discharging amount of the bidirectional charging pile.

3. The power dynamic allocation method for charging piles as described in claim 2, characterized in that, Step S2 specifically includes: Step S201: Use blockchain asymmetric encryption technology to generate a unique digital certificate for the user, bind the unique digital certificate to the user's real identity information to generate the user's digital identity, and upload the user's digital identity to the blockchain distributed ledger. The real identity information includes ID card information and vehicle registration certificate information; Step S202: Deploy a V2G authorized smart contract on the blockchain network. The V2G authorized smart contract has built-in core terms, which include charging and discharging execution rules, discharging amount calculation rules, and fee settlement rules. Step S203: When the user selects the V2G mode through the user APP, the core terms are retrieved. After the user authorizes the core terms by entering their private key, the user's digital wallet address is automatically associated, and the authorization signature, the user's digital wallet address, and the core terms are packaged into authorization content. The authorization content is verified by multiple authorization nodes, including power grid enterprise nodes, regulatory nodes, charging pile operation nodes, and V2G platform operation nodes. When the number of nodes that have passed node verification is greater than a preset first threshold, the authorization content that has passed node verification is uploaded to the blockchain distributed ledger.

4. The power dynamic allocation method for charging piles as described in claim 3, characterized in that, The core terms specifically include: The charging and discharging execution rules include V2G discharge triggering conditions and discharge vehicle judgment criteria; The V2G discharge triggering condition includes V2G discharge when the grid load gap value is greater than the first preset grid load gap value; The criteria for determining a vehicle to be discharged include classifying a vehicle whose SOC value is greater than or equal to a preset second threshold and which has no charging requirement as a vehicle to be discharged. The discharge calculation rules include filtering data on the blockchain according to the user's digital identity, the discharge task period, and the bidirectional charging pile's digital identity; reading process data related to this discharge; removing invalid information from the process data through data cleaning to obtain valid process data; dividing the valid discharge period in the valid process into continuous time periods according to the time interval recorded in the process data; obtaining the real-time discharge power corresponding to each time period; multiplying the real-time discharge power of each time period by the time length of the time period to obtain the discharge amount corresponding to each time period; and summing the discharge amounts corresponding to the time periods to obtain the actual discharge amount of this discharge. The fee settlement rules include obtaining the compensation amount by multiplying the actual discharge amount by the scenario compensation coefficient; The scenario compensation coefficient includes the following steps: the power grid dispatch center retrieves the current regional total power, power supply side reserve capacity, and historical load fluctuation coefficient from the blockchain; calculates the sum of the power supply rated capacity and power supply side reserve capacity to obtain first calculation data; multiplies the first calculation data by the historical load fluctuation coefficient to obtain second calculation data; and subtracts the second calculation data from the current regional total power to obtain the power grid load gap value. When the power grid load gap value is greater than or equal to a second preset power grid load gap value, the scenario compensation coefficient is set as the first coefficient; when the power grid load gap value is less than the second preset power grid load gap value but greater than a third preset power grid load gap value, the scenario compensation coefficient is set as the second coefficient. The first preset power grid load gap value is less than the third preset power grid load gap value, which is less than the second preset power grid load gap value.

5. The power dynamic allocation method for charging piles as described in claim 4, characterized in that, The node verification of the authorized content by multiple authorization nodes specifically includes: The node verification includes signature verification, address verification, and terms verification; The signature verification includes extracting the user's authorization signature from the authorization content, decrypting the authorization signature using the user's public key to obtain the original signature text of the authorization signature, and comparing the authorization signature with the original signature text; If the authorized signature and the original signature are consistent, the signature verification is deemed to have passed; if the authorized signature and the original signature are inconsistent, the signature verification is deemed to have failed. The address verification includes obtaining the on-chain registration information of the digital wallet address from the blockchain ledger, determining the digital identity of the registered user of the digital wallet address through the on-chain registration information, comparing the digital identity of the registered user with the current user's digital identity in the authorization content, and verifying whether the digital wallet address is in a normal state. If the digital wallet address is not in a normal state and the registered user's digital identity does not match the current user's digital identity, the address verification is deemed to have failed. If the digital wallet address is in a normal state and the registered user's digital identity matches the current user's digital identity, the address verification is deemed to have passed. The normal state includes that the digital wallet address has no record of being frozen, no record of violations, and no user being bound to it; The clause verification includes extracting the clause information of the core clauses in the authorized content and calculating the hash value of the clause information as the first hash value. At the same time, it retrieves the clause information of the core clauses of the V2G authorized smart contract on the blockchain network, calculates the hash value of the core clauses as the second hash value, and compares the first hash value and the second hash value. If the first hash value matches the second hash value, the clause verification is deemed successful; if the first hash value does not match the second hash value, the clause verification is deemed unsuccessful.

6. The power dynamic allocation method for charging piles as described in claim 5, characterized in that, Step S3 specifically includes: Step S301: Obtain the digital identity of the power grid dispatch center in the blockchain network, obtain the real-time load signal through the power grid dispatch center, bind the real-time load signal with the digital identity of the power grid dispatch center, and upload it to the blockchain distributed ledger after binding. Simultaneously, digital identifiers of participating V2G vehicles are obtained in the blockchain network, vehicle battery operation data of participating V2G vehicles are collected through bidirectional charging piles, the vehicle battery operation data is bound with the digital identifiers of participating V2G vehicles, and then uploaded to the blockchain distributed ledger. The real-time load signal includes the total regional power, the power supply side reserve capacity, and the load rate; the vehicle battery operating data includes the vehicle SOC value, available discharge capacity, and battery health. Step S302: The PBFT consensus algorithm is used to cross-validate the real-time load signal and the vehicle battery operation data respectively. The real-time load signal and the vehicle battery operation data that have passed the cross-validation are used as consensus data and uploaded to the blockchain distributed ledger. Step S303: Use the charging and discharging execution rules of the V2G authorized smart contract and the consensus data to screen the vehicles to be discharged.

7. The power dynamic allocation method for charging piles as described in claim 6, characterized in that, Step S5 specifically includes: Step S501: Retrieve the actual discharge amount of the vehicle from the blockchain, calculate the compensation amount for the user according to the fee settlement rules of the V2G authorized smart contract, and transfer the equivalent amount of digital currency to the user's digital wallet through the blockchain network for settlement transaction. Step S502: After the settlement transaction is completed, the transaction hash value of the settlement transaction is synchronized to the user's APP in real time. The user can query the transaction details through the blockchain explorer. The transaction details include the transfer amount, transfer time, and transfer block location.

8. The power dynamic allocation method for charging piles as described in claim 7, characterized in that, Step S5 further includes: Step S503: Generate a data report containing discharge data, compensation amount calculation process and compensation amount calculation result, calculate the hash value of the data report, and upload the hash value of the data report to the blockchain distributed ledger; Step S504: When the grid load rate uploaded to the blockchain by the grid dispatch center is less than the target grid load rate, the bidirectional charging pile retrieves the user's process data on the blockchain and prioritizes charging V2G vehicles with process data.

Citation Information

Patent Citations

  • Intelligent charging and discharging control method for cooperative operation of energy storage charging pile and bus

    CN120588846A

  • Systems and methods for dynamic travel planning

    US11164269B1