Disclosure of Invention
The disclosure provides a V2G energy trading method, a device, electronic equipment and a storage medium, which at least overcome the problem that the calculation force of an electric automobile and the calculation force of a power grid cannot be combined to perform distributed calculation in the related technology to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a V2G energy trading method applied to a gateway side, including: acquiring an unloading calculation force, a vehicle management platform calculation force and an edge calculation force, wherein the unloading calculation force represents calculation force required by V2G energy transaction by using a blockchain, the vehicle management platform calculation force represents total calculation force of a plurality of new energy automobiles providing calculation force in a vehicle management platform, and the edge calculation force represents total calculation force of a plurality of edge servers providing calculation force in an edge calculation platform; when the sum of the calculated force of the vehicle management platform and the edge calculation capability is larger than a first threshold value and smaller than a second threshold value, determining a first unloading calculated force according to the calculated force of the vehicle management platform and the calculated force to be unloaded, wherein the first threshold value comprises one calculated force value information, and the second threshold value comprises another calculated force value information and is larger than the first threshold value; transmitting the first unloading computing power to the vehicle management platform, so that the vehicle management platform transmits the first unloading computing power to each new energy automobile providing computing power; determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform, so that the edge computing platform sends the second unloading computing force to each edge server providing computing force; and respectively sending first rewarding information and second rewarding information to corresponding vehicle management platforms and edge computing platforms according to the duty ratio of the first unloading computing force and the second unloading computing force in the computing force to be unloaded.
In one embodiment of the present disclosure, after obtaining the calculated force to be offloaded, the vehicle total calculated force, and the edge calculated force, the method further comprises: when the calculated force of the vehicle management platform is smaller than a first threshold, the calculated force to be unloaded is sent to the vehicle management platform, so that the vehicle management platform sends the calculated force to be unloaded to each new energy automobile providing calculated force, wherein the first threshold comprises calculated force numerical information; and sending rewarding information to the corresponding vehicle management platform according to the to-be-offloaded computing power.
In one embodiment of the present disclosure, after obtaining the calculated force to be offloaded, the vehicle total calculated force, and the edge calculated force, the method further comprises: when the edge computing capability is greater than a second threshold, sending the computing force to be offloaded to the edge computing platform, wherein the second threshold comprises another computing force value information; and sending rewarding information to the corresponding edge computing platform according to the computing power to be offloaded.
According to another aspect of the present disclosure, there is provided a V2G energy trading method applied to a vehicle management platform side, including: acquiring calculation forces of a plurality of new energy automobiles, and determining calculation forces of a vehicle management platform, wherein the calculation forces of the vehicle management platform represent the total calculation forces of the plurality of new energy automobiles providing calculation forces in the vehicle management platform; the vehicle management platform computing power is sent to a gateway side, so that the gateway side determines a first unloading computing power according to the vehicle management platform computing power, the computing power to be unloaded and the edge computing power when the sum of the vehicle management platform computing power and the edge computing power is larger than a first threshold value and smaller than a second threshold value, the first unloading computing power is sent to the vehicle management platform, and first rewarding information is sent to the corresponding vehicle management platform according to the ratio of the first unloading computing power to be unloaded, wherein the computing power to be unloaded represents the computing power required by V2G energy transaction by using a blockchain, the edge computing power represents the total computing power of a plurality of edge servers providing computing power in the edge computing platform, the first threshold value comprises one computing power numerical value information, and the second threshold value comprises another computing power numerical value information and is larger than the first threshold value; acquiring a first unloading computing force, and transmitting the first unloading computing force to each new energy automobile providing computing force; and acquiring first rewarding information, and sending the rewarding information to the corresponding new energy automobiles according to the proportion of the first rewarding information according to the calculated power ratio provided by each new energy automobile on the vehicle management platform.
According to another aspect of the present disclosure, there is provided a V2G energy trading method applied to an edge computing platform side, including: acquiring computing forces of a plurality of edge servers, and determining computing forces of an edge computing platform, wherein the computing forces of the edge computing platform represent total computing forces of the plurality of edge servers providing computing forces in the edge computing platform; the edge computing platform computing force is sent to a gateway side, so that the gateway side obtains computing force to be offloaded, computing force of a vehicle management platform and edge computing force, when the sum of the computing force of the vehicle management platform and the edge computing force is larger than a first threshold value and smaller than a second threshold value, determining first offloading computing force according to the computing force of the vehicle management platform and the computing force to be offloaded, determining second offloading computing force according to the first offloading computing force and the computing force to be offloaded, sending the second offloading computing force to the edge computing platform, and sending second rewarding information to the corresponding edge computing platform according to the ratio of the second offloading computing force to the computing force to be offloaded, wherein the computing force of the vehicle management platform represents computing force required by V2G energy transaction by using a block chain, the computing force of the vehicle management platform represents total computing force of a plurality of new energy automobiles providing computing force in the vehicle management platform, the first threshold value comprises one piece of force value information, and the second threshold value comprises another computing force value information and is larger than the first threshold value; acquiring a second unloading computing force, and transmitting the second unloading computing force to each new energy automobile providing computing force; and acquiring second rewarding information, and sending the rewarding information to the corresponding edge server according to the computing power duty ratio provided by each edge server on the edge computing platform.
According to another aspect of the present disclosure, there is provided a V2G energy trading system, comprising: the system comprises a gateway side, a vehicle management platform side and an edge computing platform side, wherein the vehicle management platform side is used for acquiring the computing power of a plurality of new energy automobiles, determining the computing power of the vehicle management platform and sending the computing power of the vehicle management platform to the gateway side; the edge computing platform side is used for acquiring computing forces of a plurality of edge servers, determining computing forces of the edge computing platform and sending the computing forces of the edge computing platform to the gateway side; the gateway is used for acquiring the calculated force to be unloaded, the calculated force of the vehicle management platform and the calculated force of the edge; when the sum of the calculated force of the vehicle management platform and the edge calculation capability is larger than a first threshold value and smaller than a second threshold value, determining a first unloading calculated force according to the calculated force of the vehicle management platform and the calculated force to be unloaded; transmitting the first unloading computing force to the vehicle management platform; determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform; according to the duty ratio of the first unloading computing force and the second unloading computing force in the computing force to be unloaded, respectively, first rewarding information and second rewarding information are respectively sent to a corresponding vehicle management platform and an edge computing platform; the vehicle management platform side obtains a first unloading calculation force and sends the first unloading calculation force to each new energy automobile providing calculation force; acquiring first rewarding information, and sending the rewarding information to the corresponding new energy automobiles according to the proportion of the first rewarding information according to the calculated power ratio provided by each new energy automobile on the vehicle management platform; the edge computing platform side obtains a second unloading computing force and sends the second unloading computing force to each new energy automobile providing computing force; acquiring second rewarding information, and transmitting rewarding information to the corresponding edge servers according to the computing power duty ratio provided by each edge server on the edge computing platform; the to-be-offloaded computing power characterizes computing power required by V2G energy transaction by using a blockchain, the vehicle management platform computing power characterizes total computing power of a plurality of new energy automobiles providing computing power in a vehicle management platform, the edge computing power characterizes total computing power of a plurality of edge servers providing computing power in an edge computing platform, the first threshold comprises computing power numerical information, and the second threshold comprises other computing power numerical information and is larger than the first threshold.
According to another aspect of the present disclosure, there is also provided a V2G energy trading device applied to a gateway side, including: the system comprises a calculation force acquisition module, a calculation force calculation module and a calculation force calculation module, wherein the calculation force to be unloaded represents calculation force required by V2G energy transaction by using a blockchain, the calculation force of a vehicle management platform represents total calculation force of a plurality of new energy automobiles providing calculation force in the vehicle management platform, and the calculation force of the edge represents total calculation force of a plurality of edge servers providing calculation force in the edge calculation platform; the computing power judging module is used for determining a first unloading computing power according to the computing power of the vehicle management platform and the computing power to be unloaded when the sum of the computing power of the vehicle management platform and the computing power of the edge is larger than a first threshold value and smaller than a second threshold value, wherein the first threshold value comprises computing power numerical value information, and the second threshold value comprises other computing power numerical value information and is larger than the first threshold value; a first sending module for sending the first unloading computing power to the vehicle management platform, so that the vehicle management platform sends the first unloading computing power to each new energy automobile providing computing power; the second sending module is used for determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform so that the edge computing platform sends the second unloading computing force to each edge server for providing computing force; and the rewarding information sending module is used for respectively sending first rewarding information and second rewarding information to the corresponding vehicle management platform and the edge computing platform according to the duty ratio of the first unloading computing force and the second unloading computing force to the computing force to be unloaded.
According to another aspect of the present disclosure, there is also provided a V2G energy trading device applied to a vehicle management platform side, including: the vehicle computing power acquisition module is used for acquiring computing power of a plurality of new energy vehicles and determining computing power of a vehicle management platform, wherein the computing power of the vehicle management platform represents total computing power of the plurality of new energy vehicles providing computing power in the vehicle management platform; a vehicle management platform computing power sending module, configured to send the vehicle management platform computing power to a gateway side, so that the gateway side characterizes computing power required by V2G energy transactions using a blockchain according to the vehicle management platform computing power, computing power to be offloaded, and edge computing power, when a sum of the vehicle management platform computing power and the edge computing power is greater than a first threshold and less than a second threshold, determining a first offloaded computing power according to the vehicle management platform computing power and the computing power to be offloaded, sending the first offloaded computing power to the vehicle management platform, and sending first rewarding information to a corresponding vehicle management platform according to a ratio of the first offloaded computing power to the computing power to be offloaded, wherein the edge computing power characterizes a total computing power of a plurality of edge servers providing computing power in the edge computing platform, the first threshold includes computing power value information, and the second threshold includes other computing power value information and is greater than the first threshold; the first unloading computing force acquisition module is used for acquiring first unloading computing force and transmitting the first unloading computing force to each new energy automobile for providing computing force; the first rewarding information acquisition module is used for acquiring first rewarding information, and sending the rewarding information to the corresponding new energy automobiles according to the proportion of the first rewarding information according to the calculated power ratio provided by each new energy automobile on the vehicle management platform.
According to another aspect of the present disclosure, there is also provided a V2G energy trading device applied to an edge computing platform side, including: the edge server computing power acquisition module is used for acquiring computing power of a plurality of edge servers and determining computing power of an edge computing platform, wherein the computing power of the edge computing platform represents total computing power of the plurality of edge servers providing computing power in the edge computing platform; the edge computing platform computing power transmitting module is used for transmitting the edge computing platform computing power to a gateway side, so that the gateway side can acquire computing power to be offloaded, vehicle management platform computing power and edge computing power, when the sum of the vehicle management platform computing power and the edge computing power is larger than a first threshold and smaller than a second threshold, determining first offloaded computing power according to the vehicle management platform computing power and the computing power to be offloaded, determining second offloaded computing power according to the first offloaded computing power and the computing power to be offloaded, transmitting the second offloaded computing power to the edge computing platform, and transmitting second rewarding information to the corresponding edge computing platform according to the ratio of the second offloaded computing power to be offloaded computing power, wherein the computing power to be offloaded represents computing power required by V2G energy transaction by using a block chain, the computing power of the vehicle management platform represents total computing power of a plurality of new energy automobiles with computing power, the computing power comprises one computing power value information, and the second computing power comprises the second computing power value information larger than the first threshold; the second unloading computing force acquisition module is used for acquiring second unloading computing force and sending the second unloading computing force to each new energy automobile for providing computing force; and the second rewarding information acquisition module is used for acquiring the second rewarding information and sending the rewarding information to the corresponding edge servers according to the computing power duty ratio provided by each edge server on the edge computing platform.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the V2G energy transaction method described above via execution of the executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the V2G energy trading method described above.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer instructions stored in a computer readable storage medium, which when executed by a processor, implement the operating instructions of the V2G energy transaction method of any one of the above.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer instructions stored in a computer readable storage medium, which when executed by a processor, implement the operating instructions of the V2G energy transaction method of any one of the above.
The V2G energy trading method, the device, the electronic equipment and the storage medium provided by the embodiment of the disclosure acquire the calculated force to be offloaded, the calculated force of a vehicle management platform and the calculated force of an edge, wherein the calculated force to be offloaded represents the calculated force required by carrying out V2G energy trading by using a blockchain, the calculated force of the vehicle management platform represents the total calculated force of a plurality of new energy automobiles providing calculated force in the vehicle management platform, and the calculated force of the edge represents the total calculated force of a plurality of edge servers providing calculated force in the edge calculation platform; when the sum of the calculated force of the vehicle management platform and the edge calculation capability is larger than a first threshold value and smaller than a second threshold value, determining a first unloading calculated force according to the calculated force of the vehicle management platform and the calculated force to be unloaded, wherein the first threshold value comprises one calculated force value information, and the second threshold value comprises another calculated force value information and is larger than the first threshold value; transmitting the first unloading computing power to the vehicle management platform, so that the vehicle management platform transmits the first unloading computing power to each new energy automobile providing computing power; determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform, so that the edge computing platform sends the second unloading computing force to each edge server providing computing force; and respectively sending first rewarding information and second rewarding information to corresponding vehicle management platforms and edge computing platforms according to the duty ratio of the first unloading computing force and the second unloading computing force in the computing force to be unloaded. According to the method and the device, the electric automobile computing force is combined with the edge server computing force, and the V2G computing force requirement can be calculated in a distributed mode, so that the support for the V2G computing force is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 shows a schematic diagram of an exemplary system architecture of a V2G energy transaction method or V2G energy transaction device that may be applied to embodiments of the present disclosure.
As shown in fig. 1, the system architecture 100 may include a vehicle management platform 101, an electric field 102.
The vehicle management platform 101 includes a registration module 1011, a power service module 1012, and a transaction module 1013. The electric field 102 includes a blockchain 1021, an energy aggregator 1022, and an edge computing platform 1023.
When the system is running, the registration module registers the collection address of the vehicle and the structural information (such as color, vehicle type, vehicle owner and the like) of the vehicle; the power calculation service module evaluates the power demand according to the power calculation unloading of the energy aggregator and then sends the required power calculation demand to the vehicle management platform. The vehicle management platform sends a calculation power collection message to the managed vehicles, a user provides residual calculation power according to own needs, and a charging discount service and encryption currency (the encryption currency can also be used for purchasing electric energy) can be provided for the corresponding vehicles according to the provided calculation power and the final calculation summary; transaction modules fall into two categories: vehicles are normally charged and the vehicles provide electric power resources to the electric field during peak periods of electricity consumption, namely reverse power supply of the vehicles.
In one example, a benefit model is built for a user, which is divided into four parts: charge expense, off-peak discharge benefit, calculation power benefit, psychological depreciation price, namely:
Wv=W1+W2+W3+W4(1)
Wherein, W v represents user benefit, W 1 represents charging expense, W 2 represents off-peak discharge benefit, W 3 represents calculation power benefit, and W 4 represents psychological depreciation price.
In a specific example, the user benefit of equation (1) is calculated in detail by:
Wherein W v represents user benefit, alpha represents a charging discount coefficient for providing V2G service, beta represents a charging discount coefficient for providing power service, delta represents a psychological depreciation coefficient for discharging an electric field by a user in electricity utilization peak period, H v represents power of a current vehicle, The sum of forces of other vehicles than the current vehicle is represented,Represents the charging power of the electric car,The discharge power at the moment of peak is indicated,The charging unit price is represented by the number of charging units,Represents a discharge unit price, t 1 represents a charge unit time length, t 2 represents a discharge unit time length, m 1 represents the number of contributing calculation force creation blocks of vehicles under jurisdiction in a vehicle management platform,Indicating the corresponding number of charges per unit,Representing the corresponding unit discharge quantity, W EC represents the current vehicle management platform profit sum, and i represents the ith.
The edge computing platform 1023 is composed of a computing power service providing module 10231 and corresponding communication resource module 10232, computing resource module 10233, storage resource module 10234 and registration module 10235, and when the federation blockchain 1021 needs a computing block, it sends a demand to the energy aggregator 1022, which evaluates the computing power demand, and if the edge computing platform is needed to provide a service, the computing power service providing module provides the required computing power and obtains a reward, which is divided into two parts (incentive to pay the computing power and create a block successfully).
In one example, a benefit model is built for an edge computing platform, which is divided into three parts: calculating power service benefits, electric energy consumption expenditure, and cryptocurrency benefits, namely:
WES=W5+W6+W7(2)
Where W ES represents edge computing platform benefits, W 5 represents computational power service benefits, W 6 represents electrical energy consumption expenditures, and W 7 represents cryptocurrency benefits.
In a specific example, the edge computing platform benefit of equation (2) is computed in detail as:
Where W ES represents edge computing platform benefit, H (i, j, k) represents computing power of a node, p ES represents power consumption of a node, m 2 represents the number of blocks created by multiple edge computing platforms, H ES represents the sum of computing power of the current edge computing platform, The computing force sum of other edge computing platforms which are not the current edge computing platform is represented by q, the number of edge server nodes of the current edge computing platform is represented by T 3, the unit time for providing computing force is represented by T, the using time of the unit computing force is represented by θ, the number of edge computing platforms is represented by i, j represents the j, and k represents the k.
The system shown in fig. 1 can be operated in practice according to the following steps:
Step 1, an edge server in an edge computing platform for providing computing power service for an electric field and a new energy automobile in a vehicle management platform finish identity registration through a corresponding registration module to obtain a public key, a private key and a certificate, and download the latest version code while an electric field energy aggregator designs an intelligent contract: the proportion of rewards obtained by supplying electric quantity to an electric field by the registered new energy automobile is regulated.
Step 2, the rewards are in the form of digital currency, the authenticity of payment needs to be verified by checking the last block of the blockchain, the blockchain needs different energy aggregators in an electric field to authorize transaction records collected by the electric field energy aggregators by creating the blocks, and the process of creating the blocks often needs a great deal of calculation support, so the electric field energy aggregators need to carry out calculation unloading through an edge gateway according to the calculation, and the calculation unloading mode is divided into the following three cases:
Case one: the computing power is provided by the vehicle management platform, namely:
Where v denotes a vehicle that provides a computing power, H denotes a computing power, n denotes a total number of vehicles that provide a computing power, i denotes an ith, and Th1 denotes a preset first threshold.
And a second case: the computing power is provided by the vehicle management platform and the edge computing platform, i.e
Where v denotes a vehicle providing a computing power, H denotes a computing power, n denotes a total number of vehicles providing a computing power, m denotes a number of edge servers, i denotes an ith, th1 denotes a preset first threshold (a value representing a computing power), th2 denotes a preset second threshold (a value representing a computing power), and ES denotes an edge server inside an edge computing platform.
And a third case: when the computational power demand is great, the computational power provided by the edge computing platform is far greater than the computational power support provided by the vehicle management platform, namely:
Wherein m denotes the number of edge servers, i denotes the ith, H denotes the computing power, ES denotes the edge servers in the edge computing platform, and Th2 denotes a preset second threshold (a value representing the computing power).
And step 3, a vehicle management platform and an edge computing platform for providing computing power acquire corresponding digital currency rewards according to the calculated quantity of the blocks, and broadcast the updated blocks.
And 4, returning the electric energy to the electric field in the electricity peak period of the new energy automobile, and judging whether the new energy automobile provides discharging service and power supply service by the electric field, wherein the electric field corresponds to a discount provided for a certain coefficient of the new energy automobile in the electricity off-peak period.
The present disclosure is based on moving edge computing (MEC, mobile Edge Computing) and blockchain BlockChain, which can significantly improve system availability, customer enthusiasm, and control grid fluctuations.
Fig. 2 shows a V2G energy trading system, as shown in fig. 2, the V2G energy trading system comprising: gateway side 201, vehicle management platform side 202, edge computing platform side 203 and network 204.
The network 204 may be a wired network or a wireless network, and is used as a medium for providing a communication link between the gateway side 201, the vehicle management platform side 202, and the edge computing platform side 203.
Alternatively, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over the network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible MarkupLanguage, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure sockets layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet ProtocolSecurity, IPsec), etc. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
The vehicle management platform side is used for acquiring the calculation forces of a plurality of new energy automobiles, determining the calculation forces of the vehicle management platform and sending the calculation forces of the vehicle management platform to the gateway side; the edge computing platform side is used for acquiring computing forces of a plurality of edge servers, determining computing forces of the edge computing platform and sending the computing forces of the edge computing platform to the gateway side; the gateway is used for acquiring the calculated force to be unloaded, the calculated force of the vehicle management platform and the calculated force of the edge; when the sum of the calculated force of the vehicle management platform and the edge calculation capability is larger than a first threshold value and smaller than a second threshold value, determining a first unloading calculated force according to the calculated force of the vehicle management platform and the calculated force to be unloaded; transmitting the first unloading computing force to the vehicle management platform; determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform; according to the duty ratio of the first unloading computing force and the second unloading computing force in the computing force to be unloaded, respectively sending first rewarding information and second rewarding information to a corresponding vehicle management platform and an edge computing platform; the vehicle management platform side obtains a first unloading calculation force and sends the first unloading calculation force to each new energy automobile providing calculation force; acquiring first rewarding information, and sending the rewarding information to the corresponding new energy automobiles according to the proportion of the first rewarding information according to the calculated power ratio provided by each new energy automobile on the vehicle management platform; the edge computing platform side obtains a second unloading computing force and sends the second unloading computing force to each new energy automobile providing computing force; acquiring second rewarding information, and transmitting rewarding information to the corresponding edge servers according to the computing power duty ratio provided by each edge server on the edge computing platform; the computing power to be offloaded represents computing power required by V2G energy transaction by using a blockchain, the computing power of the vehicle management platform represents total computing power of a plurality of new energy automobiles providing computing power in the vehicle management platform, the computing power of the edge represents total computing power of a plurality of edge servers providing computing power in the edge computing platform, the first threshold comprises computing power numerical information, and the second threshold comprises computing power numerical information and is larger than the first threshold.
Those skilled in the art will appreciate that the numbers of gateway sides, vehicle management platform sides, edge computing platform sides and networks in fig. 2 are merely illustrative, and that any number of gateway sides, vehicle management platform sides, edge computing platform sides may be provided as desired. The embodiments of the present disclosure are not limited in this regard.
The present exemplary embodiment will be described in detail below with reference to the accompanying drawings and examples.
Fig. 3 shows a flow chart of a V2G energy trading method applied to a gateway side in an embodiment of the present disclosure, as shown in fig. 3, the V2G energy trading method provided in the embodiment of the present disclosure includes the following steps:
S302, obtaining an calculating force to be offloaded, a calculating force of a vehicle management platform and an edge calculating force, wherein the calculating force to be offloaded represents the calculating force required by V2G energy transaction by using a blockchain, the calculating force of the vehicle management platform represents the total calculating force of a plurality of new energy automobiles providing the calculating force in the vehicle management platform, and the edge calculating force represents the total calculating force of a plurality of edge servers providing the calculating force in the edge calculating platform;
S304, when the sum of the computing power of the vehicle management platform and the computing power of the edge is larger than a first threshold value and smaller than a second threshold value, determining a first unloading computing power according to the computing power of the vehicle management platform and the computing power to be unloaded, wherein the first threshold value comprises computing power numerical value information, and the second threshold value comprises other computing power numerical value information and is larger than the first threshold value;
S306, sending the first unloading computing power to a vehicle management platform, so that the vehicle management platform sends the first unloading computing power to each new energy automobile providing computing power;
S308, determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform, so that the edge computing platform sends the second unloading computing force to each edge server providing the computing force;
s310, according to the duty ratio of the first unloading computing force and the second unloading computing force in the computing force to be unloaded, respectively, first rewarding information and second rewarding information are respectively sent to the corresponding vehicle management platform and the edge computing platform.
According to the method and the device, the electric automobile computing force is combined with the edge server computing force, and the V2G computing force requirement can be calculated in a distributed mode, so that the support for the V2G computing force is improved.
In one embodiment, after acquiring the calculated force to be offloaded, the vehicle total calculated force and the edge calculated force, the V2G energy trading method further comprises: when the calculated force of the vehicle management platform is smaller than a first threshold, transmitting the calculated force to be unloaded to the vehicle management platform, so that the vehicle management platform transmits the calculated force to be unloaded to each new energy automobile providing the calculated force, wherein the first threshold comprises calculated force numerical information; and sending rewarding information to the corresponding vehicle management platform according to the calculated power to be unloaded.
In one embodiment, after acquiring the calculated force to be offloaded, the vehicle total calculated force and the edge calculated force, the V2G energy trading method further comprises: when the edge computing capability is greater than a second threshold, sending the computing force to be offloaded to the edge computing platform, wherein the second threshold comprises another computing force value information; and sending rewarding information to the corresponding edge computing platform according to the computing power to be offloaded.
Fig. 4 shows a flowchart of a V2G energy trading method applied to a vehicle management platform side in an embodiment of the present disclosure, and as shown in fig. 4, the V2G energy trading method provided in the embodiment of the present disclosure includes the following steps:
S402, acquiring calculation forces of a plurality of new energy automobiles, and determining calculation forces of a vehicle management platform, wherein the calculation forces of the vehicle management platform represent total calculation forces of the plurality of new energy automobiles providing calculation forces in the vehicle management platform;
S404, sending the calculation force of the vehicle management platform to the gateway side, so that the gateway side determines a first unloading calculation force according to the calculation force of the vehicle management platform and the calculation force to be unloaded when the sum of the calculation force of the vehicle management platform and the calculation force of the edge is larger than a first threshold value and smaller than a second threshold value, and sends the first unloading calculation force to the vehicle management platform, and sends first rewarding information to the corresponding vehicle management platform according to the ratio of the first unloading calculation force to the calculation force to be unloaded, wherein the calculation force to be unloaded represents the calculation force required by V2G energy transaction by using a block chain, the edge calculation force represents the total calculation force of a plurality of edge servers providing calculation force in the edge calculation platform, the first threshold value comprises calculation force numerical information, and the second threshold value comprises other calculation force numerical information and is larger than the first threshold value;
s406, acquiring a first unloading computing force, and transmitting the first unloading computing force to each new energy automobile providing computing force;
And S408, acquiring first rewarding information, and sending the rewarding information to the corresponding new energy automobiles according to the proportion of the first rewarding information according to the calculated power duty ratio provided by each new energy automobile on the vehicle management platform.
According to the method and the device, the electric automobile computing force is combined with the edge server computing force, and the V2G computing force requirement can be calculated in a distributed mode, so that the support for the V2G computing force is improved.
Fig. 5 shows a flowchart of a V2G energy trading method applied to an edge computing platform side in an embodiment of the present disclosure, and as shown in fig. 5, the V2G energy trading method provided in the embodiment of the present disclosure includes the following steps:
S502, acquiring computing forces of a plurality of edge servers, and determining computing forces of an edge computing platform, wherein the computing forces of the edge computing platform represent total computing forces of the plurality of edge servers providing computing forces in the edge computing platform;
S504, sending the computing force of the edge computing platform to a gateway side, so that the gateway side obtains the computing force to be offloaded, the computing force of the vehicle management platform and the computing force of the edge computing force, when the sum of the computing force of the vehicle management platform and the computing force of the edge computing force is larger than a first threshold value and smaller than a second threshold value, determining a first offloading computing force according to the computing force of the vehicle management platform and the computing force to be offloaded, determining a second offloading computing force according to the first offloading computing force and the computing force to be offloaded, sending second rewarding information to the corresponding edge computing platform according to the ratio of the second offloading computing force to the computing force to be offloaded, wherein the computing force to be offloaded represents the computing force required by V2G energy transaction by using a blockchain, the computing force of the vehicle management platform represents the total computing force of a plurality of new energy automobiles providing computing force in the vehicle management platform, the first threshold value comprises one computing force value information, and the second threshold value comprises the other computing force value information and is larger than the first threshold value;
S506, acquiring a second unloading calculation force, and transmitting the second unloading calculation force to each new energy automobile providing calculation force;
and S508, acquiring second rewarding information, and transmitting the rewarding information to the corresponding edge servers according to the computing power duty ratio provided by each edge server on the edge computing platform.
According to the method and the device, the electric automobile computing force is combined with the edge server computing force, and the V2G computing force requirement can be calculated in a distributed mode, so that the support for the V2G computing force is improved.
Based on the same inventive concept, a V2G energy trading device is also provided in the embodiments of the present disclosure, as described in the following embodiments. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
Fig. 6 shows a schematic diagram of a V2G energy transaction device applied to a gateway side in an embodiment of the disclosure, as shown in fig. 6, the device includes:
the computing power obtaining module 61 is configured to obtain a computing power to be offloaded, a computing power of a vehicle management platform, and an edge computing power, where the computing power to be offloaded represents a computing power required for V2G energy transaction using a blockchain, the computing power of the vehicle management platform represents a total computing power of a plurality of new energy vehicles providing the computing power in the vehicle management platform, and the edge computing power represents a total computing power of a plurality of edge servers providing the computing power in the edge computing platform; the computing power judging module 62 is configured to determine a first unloading computing power according to the computing power of the vehicle management platform and the computing power to be unloaded when the sum of the computing power of the vehicle management platform and the computing power of the edge is greater than a first threshold and less than a second threshold, where the first threshold includes one computing power value information, and the second threshold includes another computing power value information and is greater than the first threshold; a first transmitting module 63 for transmitting the first unloading computing power to the vehicle management platform, so that the vehicle management platform transmits the first unloading computing power to each new energy automobile providing computing power; a second sending module 64, configured to determine a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and send the second unloading computing force to the edge computing platform, so that the edge computing platform sends the second unloading computing force to each edge server that provides the computing force; and the rewarding information sending module 65 is configured to send the first rewarding information and the second rewarding information to the corresponding vehicle management platform and the edge computing platform according to the duty ratio of the first unloading computing power and the second unloading computing power to the computing power to be unloaded respectively.
In one embodiment of the present disclosure, the aforementioned calculation force determination module 62 is further configured to: when the calculated force of the vehicle management platform is smaller than a first threshold, transmitting the calculated force to be unloaded to the vehicle management platform, so that the vehicle management platform transmits the calculated force to be unloaded to each new energy automobile providing the calculated force, wherein the first threshold comprises calculated force numerical information; and sending rewarding information to the corresponding vehicle management platform according to the calculated power to be unloaded.
In one embodiment of the present disclosure, the aforementioned calculation force determination module 62 is further configured to: when the edge computing capability is greater than a second threshold, sending the computing force to be offloaded to the edge computing platform, wherein the second threshold comprises another computing force value information; and sending rewarding information to the corresponding edge computing platform according to the computing power to be offloaded.
Fig. 7 shows a schematic diagram of a V2G energy transaction device applied to a vehicle management platform side according to an embodiment of the disclosure, as shown in fig. 7, the device includes:
The vehicle computing power acquisition module 71 is configured to acquire computing power of a plurality of new energy vehicles, and determine a vehicle management platform computing power, where the vehicle management platform computing power characterizes a total computing power of the plurality of new energy vehicles that provide computing power in the vehicle management platform; the vehicle management platform computing power transmitting module 72 is configured to transmit the vehicle management platform computing power to the gateway side, so that the gateway side determines a first unloading computing power according to the vehicle management platform computing power and the computing power to be unloaded when the sum of the vehicle management platform computing power and the computing power to be unloaded is greater than a first threshold and less than a second threshold according to the vehicle management platform computing power and the computing power to be unloaded, and transmits first rewarding information to the corresponding vehicle management platform according to the ratio of the first unloading computing power to the computing power to be unloaded, wherein the computing power to be unloaded represents computing power required for V2G energy transaction using a blockchain, and the computing power to be unloaded represents total computing power of a plurality of edge servers providing computing power in the edge computing platform, and the first threshold includes computing power value information and the second threshold includes other computing power value information and is greater than the first threshold; a first unloading computing force obtaining module 73, configured to obtain a first unloading computing force, and send the first unloading computing force to each new energy automobile that provides computing force; the first rewarding information obtaining module 74 is configured to obtain first rewarding information, and send the first rewarding information to the corresponding new energy vehicles according to the proportion of the calculated power of each new energy vehicle provided by the vehicle management platform.
Fig. 8 shows a schematic diagram of a V2G energy transaction device applied to an edge computing platform side according to an embodiment of the disclosure, as shown in fig. 8, the device includes:
An edge server computing power acquisition module 81, configured to acquire computing power of a plurality of edge servers, and determine an edge computing platform computing power, where the edge computing platform computing power characterizes a total computing power of the plurality of edge servers providing computing power in the edge computing platform; the edge computing platform computing power transmitting module 82 is configured to transmit an edge computing platform computing power to the gateway side, so that the gateway side obtains a computing power to be offloaded, a vehicle management platform computing power and the edge computing power, when a sum of the vehicle management platform computing power and the edge computing power is greater than a first threshold and less than a second threshold, determining a first offloaded computing power according to the vehicle management platform computing power and the computing power to be offloaded, determining a second offloaded computing power according to the first offloaded computing power and the computing power to be offloaded, transmitting the second offloaded computing power to the edge computing platform, and transmitting second rewarding information to the corresponding edge computing platform according to a ratio of the second offloaded computing power to the computing power to be offloaded, wherein the computing power to be offloaded represents a computing power required for performing V2G energy transaction using a blockchain, the vehicle management platform computing power represents a total computing power of a plurality of new energy automobiles in the vehicle management platform, the first threshold comprises one computing power value information, and the second threshold comprises another computing power value information and is greater than the first threshold; a second unloading computing force obtaining module 83, configured to obtain a second unloading computing force, and send the second unloading computing force to each new energy automobile that provides computing force; the second rewarding information obtaining module 84 is configured to obtain the second rewarding information, and send the rewarding information to the corresponding edge servers according to the computing power duty ratio provided by each edge server on the edge computing platform.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to such an embodiment of the present disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, and a bus 930 connecting the different system components (including the storage unit 920 and the processing unit 910).
Wherein the storage unit stores program code that is executable by the processing unit 910 such that the processing unit 910 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification.
For example, the processing unit 910 may perform the following steps of the method embodiment described above: acquiring an unloading calculation force, a vehicle management platform calculation force and an edge calculation force, wherein the unloading calculation force represents the calculation force required by V2G energy transaction by using a blockchain, the vehicle management platform calculation force represents the total calculation force of a plurality of new energy automobiles providing the calculation force in a vehicle management platform, and the edge calculation force represents the total calculation force of a plurality of edge servers providing the calculation force in an edge calculation platform; when the sum of the calculated force of the vehicle management platform and the edge calculation capability is larger than a first threshold value and smaller than a second threshold value, determining a first unloading calculated force according to the calculated force of the vehicle management platform and the calculated force to be unloaded, wherein the first threshold value comprises calculated force numerical value information, and the second threshold value comprises other calculated force numerical value information and is larger than the first threshold value; transmitting the first unloading computing power to a vehicle management platform, so that the vehicle management platform transmits the first unloading computing power to each new energy automobile providing computing power; determining a second unloading computing force according to the first unloading computing force and the computing force to be unloaded, and sending the second unloading computing force to the edge computing platform, so that the edge computing platform sends the second unloading computing force to each edge server providing the computing force; and respectively sending first rewarding information and second rewarding information to the corresponding vehicle management platform and the edge computing platform according to the duty ratio of the first unloading computing force and the second unloading computing force to be unloaded.
The storage unit 920 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 9201 and/or cache memory 9202, and may further include Read Only Memory (ROM) 9203.
The storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 930 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 900, and/or any devices (e.g., routers, modems, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 950. Also, electronic device 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 over the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium, which may be a readable signal medium or a readable storage medium, is also provided. On which a program product is stored which enables the implementation of the method described above of the present disclosure. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, the program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the description of the above embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.