Vehicle-grid interactive distributed control chain on-chain and off-chain multi-data interaction system and interaction method

By building a multi-data interaction system on and off-chain for the vehicle network interactive distributed control chain, the problem that blockchain cannot quickly obtain large-scale time-sharing electricity price data from the chain is solved, and efficient and safe distributed control of electric vehicles and the power grid is achieved.

CN115344642BActive Publication Date: 2025-07-29HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210964024.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-11
Publication Date
2025-07-29
Estimated Expiration
2042-08-11

AI Technical Summary

Technical Problem

In the prior art, blockchain cannot quickly obtain large-scale off-chain time-sharing electricity price data, resulting in low distributed control efficiency for electric vehicles and trust and security issues.

Method used

Build a multi-data interaction system on and off-chain for the vehicle network interactive distributed control chain, including the electric vehicle control contract module, the oracle service module, the oracle node and the external data interface, and obtain the time-sharing electricity price data through the oracle node and return it to the electric vehicle control contract module for decision-making.

Benefits of technology

It realizes rapid acquisition of large-scale off-chain data, improves the real-time and security of smart contracts, meets the usage needs of electric vehicle users, and provides power grid auxiliary services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344642B_ABST
    Figure CN115344642B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle-grid interactive distributed control chain on-chain and off-chain multi-data interaction system and an interaction method. The system consists of an on-chain part and an off-chain part of the blockchain. The on-chain part of the blockchain includes an electric vehicle control contract module and an oracle service module. The electric vehicle control contract module contains a data request module and an electric vehicle control module. The oracle service module processes the data requests of the data request module and authorizes the oracle nodes to connect the on-chain and off-chain environments and return the data obtained by the oracle nodes. The off-chain part includes oracle nodes and external data interfaces. The oracle nodes define job specifications with multi-data acquisition functions and access the external data interfaces after receiving data request instructions. The external data interfaces provide the data required for the distributed control of electric vehicles. The present invention solves the problem of the on-chain smart contract quickly obtaining large-scale off-chain data and provides an efficient distributed control method for electric vehicles to participate in grid auxiliary services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distributed control of electric vehicles, and more specifically relates to a vehicle-grid interaction distributed control chain on-chain and off-chain multi-data interaction system and interaction method, which is applied to the blockchain multi-data on-chain in the participation of electric vehicles in grid auxiliary services. Background Art

[0002] When charging, an electric vehicle acts as a load, and when idle, it can be regarded as a mobile energy storage device. Through the vehicle-to-grid (V2G) technology, electric energy can be reversely transmitted to the grid. Therefore, a reasonable charging and discharging strategy can not only suppress the adverse effects of electric vehicles accessing the grid, but also participate in auxiliary services such as peak shaving and valley filling, frequency modulation and voltage regulation, and spinning reserve, enabling the coordinated development of electric vehicles and the grid. However, in the current centralized control mode, first, the participation of a large number of electric vehicles will lead to problems such as high operating costs and low operating efficiency of the control center; second, there is a trust problem between the control center and electric vehicle users, making it difficult to ensure the fairness, security, and transparency of electric vehicle distributed control. As a distributed database with smart contracts, public transparency, and high security, the application of blockchain in the field of electric vehicle distributed control can solve a series of problems in the above traditional control mode. And the characteristic that each node of the blockchain technology has equal status can restore the commodity attribute of electric power through a market-oriented method. Electric vehicle users can formulate an optimal charging and discharging plan based on the time-of-use electricity price provided by the grid, and provide corresponding auxiliary services for the grid while meeting their own usage needs.

[0003] On the other hand, due to the limitation of its own special consensus mechanism, the blockchain cannot directly obtain off-chain data, and most valuable smart contract applications need to obtain off-chain data from key data sources, especially real-time data. Therefore, the oracle technology has emerged.

[0004] At present, the problem of the blockchain obtaining a single off-chain data has been solved through oracle technology. However, the frequent on-chain of single data obviously does not meet the requirements of smart contracts for large-scale data acquisition, and there has been no relevant public report on the multi-data on-chain method for electric vehicle distributed control so far. Summary of the Invention

[0005] The present invention aims to avoid the deficiencies of the above-mentioned prior art, and provides a vehicle-grid interaction distributed control chain on-chain and off-chain multi-data interaction system and interaction method, which solves the problem that the on-chain smart contract cannot obtain large-scale time-of-use electricity price data off-chain at present, reduces the time for the smart contract to obtain time-of-use electricity price data, and provides an efficient on-chain and off-chain data interaction system for realizing the blockchain distributed control method of large-scale electric vehicle and grid interaction.

[0006] The present invention adopts the following technical solutions to solve the technical problems:

[0007] The on-chain and off-chain multi-data interaction system of the vehicle-network interaction distributed control chain of the present invention is characterized in that: the on-chain and off-chain multi-data interaction system is composed of two parts, namely, on-chain and off-chain. The on-chain refers to the on-chain of the blockchain, and the off-chain refers to the off-chain of the blockchain; the on-chain part includes an electric vehicle control contract module and an oracle service module, and the off-chain part includes an oracle node and an external data interface;

[0008] The electric vehicle control contract module controls the charging and discharging of the electric vehicle according to the information of the capacity and charging period of the electric vehicle provided by the vehicle owner, in combination with the time-of-use electricity price data; the electric vehicle control contract module includes a data request module and an electric vehicle control module. The data request module is used to determine the API of the off-chain data source, the operation specifications of the multi-data acquisition function in the oracle node, and initiate a data request instruction; the data request module includes a construction sub-module, a request sub-module, and a callback sub-module. The construction sub-module determines the operation specifications of the multi-data acquisition function in the oracle node and the address of the oracle service module on the blockchain. The request sub-module contains several request functions, which are used to determine the API of the off-chain data source and the Json path of the required data and issue a data request instruction. The oracle node returns the acquired data to the data request module by calling the callback sub-module;

[0009] The oracle service module is used to authorize the oracle node to connect the on-chain and off-chain environments and return the data acquired by the oracle node; the oracle service module includes an authentication sub-module and a request execution sub-module. The authentication sub-module authenticates the off-chain oracle node through the address information of the oracle node, so that the oracle node can listen to the request instructions of the data request module, thereby establishing a connection between the on-chain and off-chain environments. After the oracle node obtains the off-chain data result, it calls the callback sub-module through the request execution sub-module to return the result to the data request module;

[0010] The oracle node is used to define the operation specifications of the multi-data acquisition function, access the external API to obtain data, and listen to the data request instructions issued by the data request module; the oracle node includes address information and the operation specifications of the multi-data acquisition function. The address information is an address composed of forty hexadecimal numbers, which is used when the authentication sub-module in the oracle service module executes its function. After the oracle node listens to the data request command, it accesses the external API to obtain data according to the operation specifications of the multi-data acquisition function;

[0011] The external data interface is used to provide the data required for the distributed control of the electric vehicle. The external data interface includes a user DApp interface, a database, and a sensor data interface.

[0012] The characteristics of the on-chain and off-chain multi-data interaction system for vehicle-grid interaction distributed control chain of the present invention also lie in that: the external data interface is further used to provide power load prediction data; the role of the user DApp in the user DApp interface is to provide a user interface for users to use smart contracts; the user DApp interface is used to provide the electric vehicle capacity data and charging period information of electric vehicle users.

[0013] The characteristics of the on-chain and off-chain multi-data interaction method for vehicle-grid interaction distributed control chain of the present invention are as follows: constructing an on-chain and off-chain multi-data interaction system for vehicle-grid interaction distributed control chain, and performing on-chain and off-chain multi-data interaction according to the following method:

[0014] Step 1: The electric vehicle control center provides the time-of-use electricity price data required for the distributed control of electric vehicles and provides the corresponding external data interface.

[0015] Step 2: Authorize the oracle node and initiate a data request instruction through the data request module.

[0016] Step 3: After the oracle node monitors the data request instruction, it accesses the external data interface according to the multi-data acquisition function operation specification to obtain the time-of-use electricity price data.

[0017] Step 4: The oracle node returns the obtained time-of-use electricity price data to the data request module.

[0018] Step 5: The electric vehicle control contract module makes decisions on the charging and discharging behaviors of electric vehicles through the electric vehicle control module.

[0019] The characteristics of the on-chain and off-chain multi-data interaction method for vehicle-grid interaction distributed control chain of the present invention also lie in that:

[0020] The authorization of the oracle node in Step 2 means: authorizing the oracle node through the authentication sub-module in the oracle service module, so as to establish the connection between the on-chain and off-chain environments.

[0021] The initiation of the data request instruction through the data request module in Step 2 means: the construction sub-module in the data request module determines the multi-data acquisition function operation specification in the oracle node and the address of the oracle service module on the blockchain, and issues a data request instruction through the request sub-module in the data request module.

[0022] The characteristics of the on-chain and off-chain multi-data interaction method for vehicle-grid interaction distributed control chain of the present invention also lie in that: after the oracle node in Step 3 monitors the data request instruction, it accesses the API of the database according to the operation specification with multi-data acquisition function determined by the data request module to obtain the time-of-use electricity price data.

[0023] The feature of the method for multi-data interaction between the on-chain and off-chain of the vehicle-network interaction distributed control chain of the present invention also lies in that: in step 4, the oracle node calls the callback sub-module through the request execution sub-module in the oracle service module, and returns the obtained time-of-use electricity price data to the data request module.

[0024] The feature of the method for multi-data interaction between the on-chain and off-chain of the vehicle-network interaction distributed control chain of the present invention also lies in that: in step 5, the electric vehicle control contract module controls the charging and discharging of the electric vehicle by the electric vehicle control module according to the information of the capacity and charging period of the electric vehicle provided by the vehicle owner, in combination with the time-of-use electricity price data.

[0025] The feature of the method for multi-data interaction between the on-chain and off-chain of the vehicle-network interaction distributed control chain of the present invention also lies in that: the data generated during or after the distributed control of the electric vehicle is saved from the on-chain to the off-chain database through the on-chain and off-chain multi-data interaction system.

[0026] Compared with the prior art, the beneficial effects of the present invention are reflected in:

[0027] 1. The present invention effectively solves the problem that the oracle cannot quickly obtain a large amount of off-chain data at present, greatly reduces the time for the smart contract to obtain the off-chain electricity price data, and improves the real-time performance of the smart contract; it provides a safe and efficient distributed control method for a large number of electric vehicles to participate in the distribution network and regional power grid ancillary services.

[0028] 2. The present invention applies the integrated blockchain technology and oracle technology to the distributed control of electric vehicles, realizes that the electric vehicle can dynamically obtain the time-of-use electricity price data published by the electric vehicle control center in real time, and makes decisions on the charging and discharging behaviors of the electric vehicle, which not only meets the self-use needs of electric vehicle users, but also can provide power ancillary services such as frequency modulation, voltage regulation, peak shaving and valley filling required by the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is the system block diagram of the present invention;

[0030] Figure 2 It is the schematic diagram of the composition of the electric vehicle control contract module in the present invention;

[0031] Figure 3 It is the schematic diagram of the composition of the oracle service module in the present invention;

[0032] Figure 4 It is the schematic diagram of the composition of the external data interface in the present invention;

[0033] Figure 5 It is the partial pseudo-code of the data request module in the present invention;

[0034] Figure 6This is the flowchart of the multi-data interaction method for the vehicle-network interaction distributed control chain in the present invention, both on-chain and off-chain. Specific embodiments

[0035] The function of the oracle is to write the information generated by the actual system related to the blockchain into the blockchain, completing the secure data interconnection between the blockchain and the real world. Ethereum is an open-source blockchain platform that provides functions for smart contract development and deployment. Its consensus mechanism is the Proof-of-Work (PoW). It provides a decentralized virtual machine through its dedicated cryptocurrency to process peer-to-peer contracts. In this embodiment, the Ethereum smart contract platform and Chainlink oracle technology are used to implement the function of uploading multiple data required for the distributed control of electric vehicles.

[0036] See Figure 1 , in this embodiment, the multi-data interaction system for the vehicle-network interaction distributed control chain consists of two parts: an on-chain module and an off-chain module; the on-chain module includes an electric vehicle control contract module 1 and an oracle service module 2, and the off-chain module includes an oracle node 3 and an external data interface 4.

[0037] Build an electric vehicle control contract module 1 in the Ethereum environment. The electric vehicle control contract module is a hybrid smart contract on the blockchain platform, with the Chainlink client contract as the parent contract. The electric vehicle control contract module 1 controls the charging and discharging power of the electric vehicle according to the information of the capacity and charging period of the electric vehicle provided by the vehicle owner, combined with the time-of-use electricity price data. The internal structure of the electric vehicle control contract module is as Figure 2 shown. The electric vehicle control contract module 1 includes a data request module 11 and an electric vehicle control module 12. The data request module 11 is used to determine the API of the off-chain data source, the job specification for the multi-data acquisition function in the oracle node, and initiate a data request instruction; the data request module 11 includes a constructor sub-module 111, a request sub-module 112, and a callback sub-module 113. The constructor sub-module 111 determines the job specification for the multi-data acquisition function in the oracle node 3 and the address of the oracle service module 2 on the blockchain. The request sub-module 112 contains several request functions, which are used to determine the API of the off-chain data source and the Json path of the required data and issue a data request instruction. The oracle node 3 returns the acquired data to the data request module 11 by calling the callback sub-module 113.

[0038] Build an oracle service module 2 in the Ethereum environment. The oracle service module 2 is also essentially a smart contract on the blockchain platform, with the Chainlink client contract as the parent contract, used to authorize the oracle node 3 to connect the on-chain and off-chain environments and return the data acquired by the oracle node 3; the internal structure of the oracle service module 2 is as Figure 3As shown in the figure, the oracle service module 2 includes an authentication sub-module 21 and a request execution sub-module 22. The authentication sub-module 21 authenticates the off-chain oracle node 3 through the address information of the oracle node 3, enabling the oracle node 3 to listen for the request instructions of the data request module 11, thereby establishing a connection between the on-chain and off-chain data environments. After obtaining the off-chain data result, the oracle node 3 calls the callback sub-module 113 through the request execution sub-module 22 to return the result to the data request module 11.

[0039] The oracle node 3 is used to define the multi-data acquisition function job specification, access external APIs to obtain data, and listen for data request instructions issued by the data request module 11; the oracle node 3 includes address information and a multi-data acquisition function job specification. The address information is an address composed of forty hexadecimal numbers and is used when the authentication sub-module 21 in the oracle service module 2 executes its function. After the oracle node 3 listens for a data request command, it accesses external APIs to obtain data according to the multi-data acquisition function job specification.

[0040] The external data interface 4 is used to provide the data required for the distributed control of electric vehicles. The external data interface 4 includes a user DApp interface 41, a database 42, and a sensor data interface 43, as Figure 4 shown; the external data interface (4) is also used to provide power load forecasting data; the role of the user DApp in the user DApp interface 41 is to provide a user interface for users to use smart contracts; the user DApp interface 41 is used to provide the electric vehicle capacity data and charging period information of electric vehicle users; the data generated during or after the distributed control of electric vehicles is saved from the on-chain to the off-chain database 42 through the on-chain and off-chain multi-data interaction system, and the database 42 is maintained by the electric vehicle control center to ensure the authenticity and reliability of the data.

[0041] See Figure 6 , in this embodiment, the on-chain and off-chain multi-data interaction method for the vehicle-grid interaction distributed control is carried out based on the on-chain and off-chain multi-data interaction system for the vehicle-grid interaction distributed control as follows:

[0042] Step 1: The electric vehicle control center provides the time-of-use electricity price data required for the distributed control of electric vehicles and provides the corresponding external data interface 4.

[0043] In this embodiment, the external data interface 4 takes the database 42 as an example to elaborate on the on-chain and off-chain multi-data interaction method for the vehicle-grid interaction distributed control.

[0044] Apply the NSGA-II algorithm through Matlab, and optimize and solve according to the historical charging data of the electric vehicle cluster while considering the role of electric vehicles in grid auxiliary services after connecting to the charging pile to obtain the optimal time-of-use electricity price; connect Matlab to the database 42 through the JDBC driver, and send the optimal time-of-use electricity price to the database 42. Finally, use the springboot framework of Java to obtain the optimal time-of-use electricity price data from the database 42 to provide an API for data interaction for the oracle node 3.

[0045] The data sources in the database are not limited to the above optimization data, and can also come from the data input of the sensor data interface and the data input of the user input interface in the user DApp;

[0046] Step 2: Authorize the oracle node 3 and initiate a data request instruction through the data request module 11.

[0047] Authorizing the oracle node 3 means: Deploy the oracle service module 2 on the blockchain, and authorize the oracle node 3 according to the address information of the oracle node 3 through the authentication sub-module 21 in the oracle service module 2, so as to establish the connection between the on-chain and off-chain environments, so that the oracle node 3 can monitor the data request instructions sent by the data request module 11 on the blockchain in real time;

[0048] Initiating a data request instruction through the data request module 11 means: First, write the electric vehicle control contract module 1 on the blockchain using the solidity language. The main function of the data request module 11 is to determine the location of the off-chain data source, initiate a data request instruction, and store the obtained data on the blockchain. Some of its pseudocode is as Figure 5 shown; Due to the unique nature of the blockchain, once external data is uploaded to the blockchain and the oracle system, it cannot be changed, so the data stability and reliability are extremely high; then deploy the electric vehicle control contract module 1 on the blockchain. The constructor sub-module 111 in the data request module 11 determines the job specifications of the multi-data acquisition function in the oracle node 3 and the address of the oracle service module 2 on the blockchain. The request sub-module 112 in the data request module 11 issues a data request instruction, and determines the API of the off-chain data source and the Json path of the required data. Since the job specifications with multi-data acquisition functions defined in the oracle currently only support the acquisition of three groups of data at a time, 8 request functions are defined in the request sub-module 112 and these 8 request functions are encapsulated, so as to complete the operation of obtaining the time-of-use electricity price data for 24 hours off-chain at one time.

[0049] Step 3: After the oracle node 3 monitors the data request instruction, access the API of the database 42 to obtain the time-of-use electricity price data according to the job specifications with multi-data acquisition functions determined by the data request module 11.

[0050] In this embodiment, first, in the oracle node 3, a job specification for multi-data acquisition is defined in the configuration file format of TOML. This job specification can complete the acquisition of three groups of data at one time. Then, after the oracle node 3 monitors a data request instruction, it sends a GET request to the API of the database 42 according to the job specification with the multi-data acquisition function specified in the constructor module 111, retrieves the required time-of-use electricity price data, parses the response, and converts the result into blockchain-compatible data. Since the blockchain does not support the floating-point data type for the time being, and the time-of-use electricity price data often appears with decimals, the time-of-use electricity price data is multiplied by a corresponding multiple to be converted into integer data before being uploaded to the chain.

[0051] Step 4: The oracle node 3 calls the callback sub-module 113 through the request execution sub-module 22 in the oracle service module 2, and returns the acquired time-of-use electricity price data to the data request module 11.

[0052] In this embodiment, the oracle node 3 calls the callback sub-module 113 through the request execution sub-module 22 in the oracle service module 2 to return the parsed data to the data request module 11.

[0053] Step 5: The electric vehicle control contract module 1 makes a decision on the charging and discharging behavior of the electric vehicle through the electric vehicle control module 12 by combining the information of the capacity of the electric vehicle provided by the vehicle owner and the charging period with the time-of-use electricity price data.

[0054] In this embodiment, the electric vehicle owner can provide information such as the capacity of the electric vehicle and the charging period through the electric vehicle control contract module 1. The electric vehicle control module 12 combines the time-of-use electricity price data to control the charging and discharging of the electric vehicle, so as to meet the power auxiliary services required by the distribution network.

[0055] In this embodiment, the time ΔT reduced by the on-chain and off-chain multi-data interaction method of the vehicle-to-grid interactive distributed control chain for the smart contract to obtain off-chain electricity price data is: ΔT = T1 - T2; where:

[0056] T1 is the time required for the time-of-use electricity price to be uploaded to the chain in the way of uploading single-group data multiple times;

[0057] T2 is the time spent by the on-chain and off-chain multi-data interaction method of the vehicle-to-grid interactive distributed control chain in this embodiment, and there is:

[0058] T2 = Δt, T1 = n×Δt,

[0059] n is the number of data to be uploaded to the chain, Δt is the average block generation time of Ethereum, and the value of Δt is generally 12 - 14 seconds.

[0060] If the value of the block generation time Δt is 12 seconds, then in theory, the data uploading time of this embodiment can be reduced by 276 seconds. The present invention applies blockchain and oracle technologies in the field of distributed control of electric vehicles, effectively solving the problem that smart contracts on the chain cannot quickly obtain large-scale off-chain data, reducing the time for smart contracts to obtain off-chain data, and providing an efficient on-chain and off-chain data interaction system for the blockchain distributed control method for realizing large-scale interaction between electric vehicles and the power grid.

Claims

1. A vehicle-network interaction distributed control chain upper and lower chain multi-data interaction system, characterized in that: The on-chain and off-chain multi-data interaction system consists of two parts: on-chain and off-chain. "On-chain" refers to the blockchain on-chain, and "off-chain" refers to the blockchain off-chain. The on-chain part includes an electric vehicle control contract module (1) and an oracle service module (2), and the off-chain part includes an oracle node (3) and an external data interface (4). The electric vehicle control contract module (1) controls the charging and discharging of the electric vehicle according to the information on the capacity of the electric vehicle and the charging period provided by the vehicle owner, in combination with the time-of-use electricity price data. The electric vehicle control contract module (1) includes a data request module (11) and an electric vehicle control module (12). The data request module (11) is used to determine the API of the off-chain data source, the operation specifications of the multi-data acquisition function in the oracle node, and initiate a data request instruction. The data request module (11) includes a construction sub-module (111), a request sub-module (112), and a callback sub-module (113). The construction sub-module (111) determines the operation specifications of the multi-data acquisition function in the oracle node (3) and the address of the oracle service module (2) on the blockchain. The request sub-module (112) contains several request functions, which are used to determine the API of the off-chain data source and the Json path of the required data and issue a data request instruction. The oracle node (3) returns the acquired data to the data request module (11) by calling the callback sub-module (113). The oracle service module (2) is used to authorize the oracle node (3) to connect the on-chain and off-chain environments and return the data acquired by the oracle node (3). The oracle service module (2) includes an authentication sub-module (21) and a request execution sub-module (22). The authentication sub-module (21) authenticates the off-chain oracle node (3) through the address information of the oracle node (3), enabling the oracle node (3) to listen to the request instructions of the data request module (11), thereby establishing a connection between the on-chain and off-chain environments. After the oracle node (3) obtains the off-chain data result, it calls the callback sub-module (113) through the request execution sub-module (22) to return the result to the data request module (11). The oracle node (3) is used to define the operation specifications of the multi-data acquisition function, access the external API to obtain data, and listen to the data request instructions issued by the data request module (11). The oracle node (3) includes address information and operation specifications of the multi-data acquisition function. The address information is an address composed of forty hexadecimal numbers, which is used when the authentication sub-module (21) in the oracle service module (2) executes its function. After the oracle node (3) listens to the data request command, it accesses the external API to obtain data according to the operation specifications of the multi-data acquisition function. The external data interface (4) is used to provide the data required for the distributed control of electric vehicles. The external data interface (4) includes a user DApp interface (41), a database (42), and a sensor data interface (43).

2. The vehicle-network interaction distributed control chain upper and lower chain multi-data interaction system according to claim 1, characterized in that: The external data interface (4) is also used to provide power load forecasting data; the function of the user DApp in the user DApp interface (41) is to provide a user interface for the user to use smart contracts; the user DApp interface (41) is used to provide the electric vehicle capacity data and charging period information of electric vehicle users.

3. A method for multi-data interaction between the upper and lower chains of a vehicle-network interaction distributed control chain, characterized in that: Construct the on-chain and off-chain multi-data interaction system for vehicle-grid interactive distributed control as described in Claim 1, and perform on-chain and off-chain multi-data interaction according to the following method: Step 1: The electric vehicle control center provides the time-of-use electricity price data required for the distributed control of electric vehicles and provides the corresponding external data interface (4); Step 2: Authorize the oracle node (3) and initiate a data request instruction through the data request module (11); Step 3: After the oracle node (3) monitors the data request instruction, it accesses the external data interface (4) to obtain the time-of-use electricity price data according to the multi-data acquisition function operation specification; Step 4: The oracle node (3) returns the obtained time-of-use electricity price data to the data request module (11); Step 5: The electric vehicle control contract module (1) makes decisions on the charging and discharging behaviors of electric vehicles through the electric vehicle control module (12).

4. The on-chain and off-chain multi-data interaction method for vehicle-grid interactive distributed control according to Claim 3, characterized in that: The authorization of the oracle node (3) in Step 2 means: authorizing the oracle node (3) through the authentication sub-module (21) in the oracle service module (2) to establish the connection between the on-chain and off-chain environments; The initiation of the data request instruction through the data request module (11) in Step 2 means: the construction sub-module (111) in the data request module (11) determines the multi-data acquisition function operation specification in the oracle node (3) and the address of the oracle service module (2) on the blockchain, and issues a data request instruction through the request sub-module (112) in the data request module (11).

5. The on-chain and off-chain multi-data interaction method for vehicle-grid interactive distributed control according to Claim 3, characterized in that: After the oracle node (3) in Step 3 monitors the data request instruction, it accesses the API of the database (42) to obtain the time-of-use electricity price data according to the operation specification with multi-data acquisition function determined by the data request module (11).

6. The on-chain and off-chain multi-data interaction method for vehicle-grid interactive distributed control according to Claim 3, characterized in that: In Step 4, the oracle node (3) calls the callback sub-module (113) through the request execution sub-module (22) in the oracle service module (2) to return the obtained time-of-use electricity price data to the data request module (11).

7. The on-chain and off-chain multi-data interaction method for vehicle-grid interactive distributed control according to Claim 3, characterized in that: In Step 5, the electric vehicle control contract module (1) controls the charging and discharging of the electric vehicle by the electric vehicle control module (12) according to the information on the capacity and charging period of the electric vehicle provided by the vehicle owner, in combination with the time-of-use electricity price data.

8. The vehicle-network interaction distributed control chain on-chain and off-chain multi-data interaction method according to claim 3, characterized in that: During or after the distributed control process of the electric vehicle, the generated data is saved from the on-chain to the off-chain database (42) through the on-chain and off-chain multi-data interaction system.