Blockchain-based methods, equipment, networks, and media for shared charging station transactions.
By introducing a pre-estimated credential and reputation value calibration mechanism in the V2G network using blockchain technology, the problems of low user transaction willingness and privacy leakage are solved, thus enabling the stable operation and large-scale application of the V2G network.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- YANTAI POWER SUPPLY COMPANY OF STATE GRID SHANDONG ELECTRIC POWER
- Filing Date
- 2023-03-09
- Publication Date
- 2026-07-17
AI Technical Summary
In existing V2G networks, users have a low willingness to transact, and excessive centralization of data storage leads to privacy leaks and complex transactions, affecting large-scale applications.
The shared charging pile transaction method based on blockchain is adopted. Through the periodic processing of estimated discharge data, transaction clearing data and power transmission data between blockchain nodes, the billing is settled using estimated vouchers and accounts receivable and payable vouchers, and calibration is performed based on credit value to guide users to charge in an orderly manner.
It effectively solves the problems of user privacy leakage and transaction complexity, improves the application effect of V2G network, and enhances the orderliness of user charging and discharging and the stability of power grid.
Smart Images

Figure CN116308787B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of blockchain technology, and in particular relates to a blockchain-based method, device, network, and medium for trading shared charging piles. Background Technology
[0002] Vehicle-to-Grid (V2G) networks are an emerging network environment. With the rapid development of electric vehicles in recent years, research on V2G networks has become increasingly popular. V2G makes a significant contribution to peak shaving and valley filling to alleviate grid load. Since most vehicles spend an average of 95% of their time parked, their batteries can be used to transmit electricity to the grid. We call these plug-in electric vehicles electric vehicles (EVs). In this system, plug-in electric or hybrid vehicles communicate with the grid. The grid attracts EVs to provide services by issuing peak and off-peak electricity prices. EVs can sell electricity when prices are high and buy electricity when prices are low to generate revenue. In this process, the grid also achieves the goal of peak shaving and valley filling, improving grid efficiency and mitigating fluctuations caused by renewable energy entering the grid.
[0003] The key to V2G technology lies in guiding users to charge and discharge in an orderly manner, enabling electric vehicles to be used as energy storage devices in the power grid. However, in the current process of vehicle-to-grid data transactions, the overly centralized data storage method is prone to privacy leaks and there are complex payment and transaction difficulties between electric vehicle users and charging operators and public power companies of different entities, resulting in low user willingness to transact and preventing the large-scale application of V2G networks. Summary of the Invention
[0004] In view of this, the present invention provides a blockchain-based method, device, network and medium for shared charging pile transactions, aiming to solve the problems of low user willingness to trade and the inability of V2G networks to be widely used in the prior art.
[0005] A first aspect of this invention provides a blockchain-based method for trading shared charging stations. The blockchain nodes include electric vehicle nodes, charging station nodes, and power grid nodes, with each node corresponding to an account. Each account stores a corresponding reputation value. The method includes:
[0006] At each first preset time interval, the estimated discharge data of each electric vehicle node is obtained, and the estimated voucher corresponding to the estimated discharge data is sent to each account.
[0007] At each second preset time interval, the transaction clearing data of each account within the second preset time interval is obtained, and accounts receivable vouchers and / or accounts payable vouchers corresponding to the transaction clearing data are issued to each account respectively.
[0008] Every third preset time interval, the power transmission data of each account within the third preset time interval is obtained, and the bill settlement is performed based on the power transmission data to generate the bill settlement data of each account.
[0009] The credit value of each account is calibrated based on the billing settlement data of each account, the accounts receivable and / or accounts payable vouchers in each account, and the estimated vouchers in each account; wherein, the second preset duration is less than the first preset duration and the third preset duration.
[0010] A second aspect of this invention provides a blockchain-based shared charging pile trading device. The blockchain nodes include electric vehicle nodes, charging pile nodes, and power grid nodes, with each node corresponding to an account. Each account stores a corresponding reputation value. The device includes:
[0011] The estimation module is used to obtain the estimated discharge data of each electric vehicle node at a first preset time interval, and send the estimated voucher corresponding to the estimated discharge data to each account.
[0012] The clearing module is used to obtain the transaction clearing data of each account within the second preset time interval at each second preset time interval, and to issue the corresponding number of accounts receivable vouchers and / or accounts payable vouchers to each account.
[0013] The settlement module is used to acquire the power transmission data of each account within the third preset time interval every third preset time interval, and to perform bill settlement based on the power transmission data to generate bill settlement data for each account.
[0014] The calibration module is used to calibrate the credit value of each account based on the billing settlement data of each account, the accounts receivable and / or accounts payable vouchers in each account, and the estimated vouchers in each account; wherein, the second preset duration is less than the first preset duration and the third preset duration.
[0015] A third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the blockchain-based shared charging pile transaction method of the first aspect above.
[0016] A fourth aspect of the present invention provides a transaction system including multiple electronic devices as described in the third aspect above.
[0017] A fifth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the blockchain-based shared charging pile transaction method of the first aspect above.
[0018] The blockchain-based shared charging pile transaction method, device, network, and medium provided in this invention, at first preset time intervals, acquires estimated discharge data for each electric vehicle node and sends estimated vouchers corresponding to the estimated discharge data to each account; at second preset time intervals, acquires transaction clearing data for each account within the second preset time interval and issues accounts receivable vouchers and / or accounts payable vouchers corresponding to the transaction clearing data to each account; at third preset time intervals, acquires power transmission data for each account within the third preset time interval and performs bill settlement based on the power transmission data to generate bill settlement data for each account; and calibrates the credit value of each account based on the bill settlement data, accounts receivable and / or accounts payable vouchers, and estimated vouchers in each account; wherein the second preset time interval is shorter than the first and third preset time intervals. By effectively solving the problems of user privacy leakage and transaction complexity through blockchain, and by setting corresponding vouchers and settlement verification methods to calculate the credit value of different users, users are guided to charge in an orderly manner, thereby improving the application effect of the V2G network. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is an application scenario diagram of the blockchain-based shared charging pile transaction method provided in the embodiments of the present invention;
[0021] Figure 2 This is a flowchart illustrating the implementation of the blockchain-based shared charging pile transaction method provided in this embodiment of the invention.
[0022] Figure 3 This is a schematic diagram of the structure of a blockchain-based shared charging pile trading device provided in an embodiment of the present invention;
[0023] Figure 4 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0024] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0025] Figure 1 This is an application scenario diagram of the blockchain-based shared charging pile transaction method provided in an embodiment of the present invention. For example... Figure 1 As shown, in some embodiments, the blockchain-based shared charging pile transaction method provided by the present invention can be applied to, but is not limited to, this application scenario. In this embodiment of the invention, the system includes: an electric vehicle 11, a charging pile 12, a power grid 13, and a blockchain network 14.
[0026] In this invention, electric vehicle 11 is connected to charging pile 12. Electric vehicle 11 can be a pure electric vehicle or a hybrid vehicle; this is not limited. Each charging pile 12 has one or more charging ports, and each charging port can connect to one electric vehicle 11. The power grid 13 can be a separate distribution network or a distributed power grid composed of multiple power generators; this is not limited. Electronic devices such as the electric vehicle owner's mobile terminal, the charging pile monitoring terminal, and the power grid management terminal act as nodes, collectively forming the blockchain network 14. Therefore, the nodes in the blockchain of this invention include electric vehicle nodes, charging pile nodes, and power grid nodes. Each node in the blockchain corresponds to an account; each account stores a corresponding reputation value. When electric vehicle 11 is charging / discharging, the accounts of each node in the blockchain transact with each other, and the reputation value of the transaction process is calculated in real time. Users with low reputation values are penalized for charging, while users with high reputation values are rewarded, thereby encouraging users to charge in an orderly manner according to the corresponding plan, ensuring the stable operation of the power grid, and improving the application effect of the V2G network.
[0027] Figure 2 This is a flowchart illustrating the implementation of a blockchain-based shared charging pile transaction method provided in an embodiment of the present invention. Figure 2 As shown, in some embodiments, the blockchain-based shared charging station transaction method is applied to... Figure 1 The electronic device 14 shown herein includes the method comprising:
[0028] S210, at each first preset time interval, obtain the estimated discharge data of each electric vehicle node, and send the estimated voucher corresponding to the estimated discharge data to each account.
[0029] In this embodiment of the invention, the first preset duration can be one hour, half an hour, etc., and is not limited thereto. The first preset duration can be a fixed value or a variable value. For example, a smaller first preset duration can be used during peak electricity consumption periods, and a larger preset duration can be used during off-peak electricity consumption periods.
[0030] S220, at every second preset time interval, acquire the transaction clearing data of each account within the second preset time interval, and issue the corresponding number of accounts receivable vouchers and / or accounts payable vouchers to each account.
[0031] In this embodiment of the invention, the second preset duration can be five minutes, ten minutes, etc., and is not limited thereto. When a transaction is initiated between two accounts, accounts receivable vouchers and / or accounts payable vouchers are sent to the accounts of both parties based on the transaction settlement data corresponding to the transaction request. For example, if an electric vehicle user intends to charge 5 yuan worth of electricity at a charging station, the user terminal and the charging station will record the corresponding transaction settlement data, and then issue the corresponding number of accounts payable vouchers to the user and the corresponding number of accounts receivable vouchers to the charging station.
[0032] S230: Every third preset time interval, acquire the power transmission data of each account within the third preset time interval, and perform bill settlement based on the power transmission data to generate bill settlement data for each account.
[0033] In this embodiment of the invention, the third preset duration can be one hour, half an hour, etc., and is not limited thereto. After the device corresponding to a certain account completes charging or discharging, that is, after the transaction process between two accounts is completed, the power transmission data of these two accounts is obtained, thereby completing the bill settlement. For example, if an electric vehicle completes a 5 kWh charging process at a charging station, the settlement is made according to the corresponding electricity price, and the transaction data is broadcast in the blockchain.
[0034] S240, calibrate the credit value of each account based on the billing settlement data of each account, the accounts receivable and / or accounts payable vouchers in each account, and the estimated vouchers in each account; wherein, the second preset duration is less than the first preset duration and the third preset duration.
[0035] In this embodiment of the invention, blockchain effectively solves the problems of user privacy leakage and transaction complexity. By setting up corresponding credentials and settlement verification methods to calculate the credit value of different users, users are guided to charge in an orderly manner, thereby improving the application effect of V2G network.
[0036] In some embodiments, billing settlement data may include actual payment data and actual receipt data. S240 may include: determining the estimated deviation for each account based on the estimated vouchers, accounts receivable vouchers and / or accounts payable vouchers in each account; determining the payment deviation for each account based on the actual payment data and accounts payable vouchers in each account and deducting accounts payable vouchers corresponding to the payment deviation; determining the receipt deviation for each account based on the actual receipt data and accounts receivable vouchers in each account and deducting accounts receivable vouchers corresponding to the receipt deviation; determining the credit value calibration amount for each account based on the estimated deviation, payment deviation and receipt deviation of each account; and calibrating the credit value in each account based on the credit value calibration amount.
[0037] In this embodiment of the invention, the power grid calculates its own capacity margin in real time. During peak electricity consumption periods, the capacity margin may not be able to meet the electricity demand. At this time, the V2G network will generally adjust the electricity price to meet the demand. Specifically, in order to maintain stability, the power grid charges higher fees to charging piles. The corresponding charging piles will prompt users to charge at different times or use the higher-cost charging. The extra fees can be used by users to purchase electricity from idle electric vehicles, thereby meeting the electricity demand.
[0038] For electric vehicles, their charging and discharging needs are highly uncertain, which makes it very easy for V2G technology to misjudge the charging and discharging needs of each node when performing demand response calculations, resulting in economic losses for the electric vehicles being powered.
[0039] In this embodiment of the invention, by verifying the payment deviation between actual payment data and payable vouchers, and verifying the collection deviation between actual receipt data and receivable vouchers, users can have their credit deducted when they fail to charge and discharge according to plan. This provides economic incentives for high-credit users and economic penalties for low-credit users, thereby improving the orderliness of user charging and discharging, reducing the peak-valley difference of the power grid, and improving the application effect of V2G technology.
[0040] In addition, users' failure to charge and discharge according to plan may also be due to the additional energy requisition caused by the grid's own miscalculation. Therefore, each time the grid instructs the electric vehicle at the corresponding charging station to discharge, the corresponding number of estimated vouchers are issued to the account at each node through which the indicated energy is to be delivered. Then, when the energy is actually delivered, transactions are conducted between the accounts, generating accounts receivable and / or accounts payable vouchers. By comparing the estimated vouchers with the actual accounts receivable and / or accounts payable vouchers generated, the estimation deviation is determined. The impact of this deviation should be removed when calculating the credit score. That is, the collection deviation and payment deviation should be compensated based on the estimation deviation to avoid credit deductions caused by estimation errors.
[0041] In this embodiment of the invention, each time an account receives a receivable voucher or payable voucher, the voucher will be locked. After calibration, all vouchers in the account will be unlocked, and then additional vouchers will be deducted to ensure that the receivable vouchers or payable vouchers in the account correspond one-to-one with the actual billing settlement data. Finally, the transaction data will be broadcast to each node of the blockchain.
[0042] In some embodiments, determining the credit score calibration amount for each account based on the estimated deviation, payment deviation, and collection deviation for each account includes:
[0043]
[0044] Where α is the credit value calibration amount, n1 is the payment deviation, n2 is the collection deviation, n3 is the estimated deviation, ε1 is the deviation penalty coefficient, ε2 is the estimated compensation coefficient, and C is the preset threshold.
[0045] In this embodiment of the invention, when the sum of the payment deviation and the receipt deviation exceeds a threshold, the calculated credit calibration amount is negative, meaning points are deducted from the credit score of the corresponding account. For example, if the maximum credit score is 100 points, and a charge / discharge operation is not performed as planned, the credit calibration amount calculated based on the deviation will deduct 1-10 points from the credit score of the corresponding account. When the sum of the payment deviation and the receipt deviation is not greater than the threshold, it is considered that each account has basically completed the electricity transaction as planned, and the credit score of the corresponding account is increased by 1 until the maximum credit score is reached, at which point no further increases are made.
[0046] In some embodiments, S210 may include: when an electric vehicle node logs into the blockchain, obtaining historical charging and discharging data and date data of the electric vehicle node; drawing a user charging and discharging profile based on the historical charging and discharging data; determining the expected parking time of the electric vehicle based on the user profile and date data; and determining the estimated discharge data of the electric vehicle node within each second preset time period based on the expected parking time and the real-time power of the electric vehicle node.
[0047] In this embodiment of the invention, the charging and discharging of most electric vehicle users exhibits a certain regularity. Therefore, a user profile for each electric vehicle user can be created daily based on this regularity to estimate the charging and stopping times at different times each day, as well as the real-time battery level at each moment during those times. This allows for the estimation of the discharge capacity of each electric vehicle at each moment. Furthermore, user profiles change over time, so corresponding date data must also be considered. For example, the estimation accuracy of user profiles is higher on weekdays, but the regularity of user activity on rest days may not conform to the user profile. Therefore, a corresponding estimation confidence level can be output based on date data, and combined with the estimated discharge capacity, the estimated discharge data can be obtained. When the power grid requisitions electricity, it needs to requisition an additional portion of electricity as a reserve based on the confidence level corresponding to each electric vehicle providing power, to avoid estimation errors caused by the randomness of electric vehicles and to ensure the stable operation of the power grid.
[0048] In some embodiments, determining the estimated discharge data of electric vehicle nodes within each second preset time period based on the expected parking time and the real-time power of the electric vehicle nodes includes: determining the estimated discharge data of electric vehicle nodes within each second preset time period based on the expected parking time, the real-time power of the electric vehicle nodes, and a pre-established random offline model; wherein the random offline model represents the probability of electric vehicle nodes going offline at each time point within the expected parking time.
[0049] In this embodiment of the invention, the random offline model can be a Monte Carlo model, a maximum likelihood estimation model, etc., and is not limited thereto.
[0050] In this embodiment of the invention, the random offline model calculates the offline probability of electric vehicle nodes at each charging pile node at each time moment, thereby simulating the random offline process of electric vehicles in the region. It takes into account the random characteristics of electric vehicle charging, avoids erroneous predictions caused by sudden offline of electric vehicle nodes, and ensures the stable operation of the power grid.
[0051] In some embodiments, the random offline model is a maximum likelihood estimation model. Correspondingly, the method may further include: selecting deviation data from the historical charging and discharging data of electric vehicle nodes that deviate from the drawn user charging and discharging profile by more than a preset deviation, and recording the time of each deviation data; forming a training set based on the deviation data and the time of each deviation data to train the maximum likelihood estimation model.
[0052] In some embodiments, after S240, the method may further include: determining the charge / discharge penalty coefficient for each account based on the credit value in each account; and determining the transaction price for each account based on the charge / discharge penalty coefficient for each account and the current margin of the power grid.
[0053] In some embodiments, the power grid responds to transaction reporting requests from each account and, based on the transaction reporting requests, causes smart contracts on the blockchain to execute corresponding transaction processes. These smart contracts include a prediction smart contract, a clearing smart contract, and a settlement smart contract, corresponding to processes S210-S230 described above, respectively.
[0054] The charging pile transaction application also includes: signature information of each account;
[0055] In some embodiments, the method further includes: determining whether the identity of each account is legitimate based on the signature information; if at least one of the accounts is illegitimate, then outputting an error warning.
[0056] In summary, the beneficial effects of the present invention are as follows:
[0057] By effectively solving the problems of user privacy leakage and transaction complexity through blockchain, and by setting up corresponding credentials and settlement verification methods to calculate the credit value of different users, users can be guided to charge in an orderly manner, thereby improving the application effect of V2G network.
[0058] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0059] Figure 3This is a schematic diagram of the structure of a blockchain-based shared charging pile trading device provided in an embodiment of the present invention. Figure 3 As shown, in some embodiments, the blockchain-based shared charging station transaction device 3 includes:
[0060] The estimation module 310 is used to obtain the estimated discharge data of each electric vehicle node at each first preset time interval, and send the estimated voucher corresponding to the estimated discharge data to each account.
[0061] The clearing module 320 is used to acquire the transaction clearing data of each account within the second preset time interval at each second preset time interval, and to issue the corresponding number of accounts receivable vouchers and / or accounts payable vouchers to each account.
[0062] The settlement module 330 is used to acquire the power transmission data of each account within the third preset time interval every third preset time interval, and to perform bill settlement based on the power transmission data to generate bill settlement data for each account.
[0063] The calibration module 340 is used to calibrate the credit value of each account based on the billing settlement data of each account, the accounts receivable and / or accounts payable vouchers in each account, and the estimated vouchers in each account; wherein, the second preset duration is less than the first preset duration and the third preset duration.
[0064] Optionally, the billing settlement data includes actual payment data and actual receipt data; correspondingly, the calibration module 340 is specifically used to determine the estimated deviation of each account based on the estimated vouchers, accounts receivable vouchers and / or accounts payable vouchers in each account; to determine the payment deviation of each account based on the actual payment data and accounts payable vouchers in each account and deduct the accounts payable vouchers corresponding to the payment deviation; to determine the receipt deviation of each account based on the actual receipt data and accounts receivable vouchers in each account and deduct the accounts receivable vouchers corresponding to the receipt deviation; to determine the credit value calibration amount of each account based on the estimated deviation, payment deviation and receipt deviation of each account; and to calibrate the credit value in each account based on the credit value calibration amount.
[0065] Optional, calibration module 340, specifically used for
[0066]
[0067] Where α is the credit value calibration amount, n1 is the payment deviation, n2 is the collection deviation, n3 is the estimated deviation, ε1 is the deviation penalty coefficient, ε2 is the estimated compensation coefficient, and C is the preset threshold.
[0068] Optionally, the estimation module 310 is specifically used to obtain the historical charging and discharging data and date data of the electric vehicle node when the electric vehicle node logs into the blockchain; draw a user charging and discharging profile based on the historical charging and discharging data; determine the expected parking time of the electric vehicle based on the user profile and date data; and determine the estimated discharge data of the electric vehicle node in each second preset time period based on the expected parking time and the real-time power of the electric vehicle node.
[0069] Optional, the prediction module 310, specifically used for
[0070] Based on the expected parking time, the real-time power of the electric vehicle node, and the pre-established stochastic offline model, the estimated discharge data of the electric vehicle node in each second preset time period is determined.
[0071] The random offline model represents the probability of an electric vehicle node going offline at each time point within the expected parking time.
[0072] Optionally, the random offline model is a maximum likelihood estimation model. Correspondingly, the blockchain-based shared charging pile transaction device 3 also includes: a training module, used to select deviation data from the historical charging and discharging data of electric vehicle nodes that deviate from the drawn user charging and discharging profile by more than a preset deviation and record the time of each deviation data; and to form a training set based on the deviation data and the time of each deviation data to train the maximum likelihood estimation model.
[0073] Optionally, the blockchain-based shared charging pile trading device 3 also includes: an electricity price calculation module. This module is used to determine the charging and discharging penalty coefficient for each account based on its credit score; and to determine the transaction electricity price for each account based on the charging and discharging penalty coefficient and the current margin of the power grid.
[0074] The blockchain-based shared charging pile trading device provided in this embodiment can be used to execute the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.
[0075] Figure 4 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. For example... Figure 4 As shown, an embodiment of the present invention provides an electronic device 4, which includes a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, it implements the steps in the various embodiments of the blockchain-based shared charging pile transaction method described above, for example... Figure 2 Steps 210 to 240 are shown. Alternatively, when processor 40 executes computer program 42, it implements the functions of each module / unit in the above system embodiments, for example... Figure 3 The functions of modules 310 to 340 are shown.
[0076] For example, computer program 42 may be divided into one or more modules / units, one or more of which are stored in memory 41 and executed by processor 40 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 42 in electronic device 4.
[0077] Electronic device 4 can be a terminal or a server. The terminal can be a mobile phone, MCU, ECU, etc., without limitation. The server can be a physical server, cloud server, etc., without limitation. Electronic device 4 may include, but is not limited to, processor 40 and memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of electronic device 4 and does not constitute a limitation on electronic device 4. It may include more or fewer components than shown, or combine certain components, or different components. For example, the terminal may also include input / output devices, network access devices, buses, etc.
[0078] The processor 40 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0079] The memory 41 can be an internal storage unit of the electronic device 4, such as a hard disk or RAM. The memory 41 can also be an external storage device of the electronic device 4, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 41 can include both internal and external storage units of the electronic device 4. The memory 41 is used to store computer programs and other programs and data required by the terminal. The memory 41 can also be used to temporarily store data that has been output or will be output.
[0080] This invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps described in the above-described blockchain-based shared charging pile transaction method embodiment.
[0081] A computer-readable storage medium stores a computer program 42. The computer program 42 includes program instructions. When executed by the processor 40, the program instructions implement all or part of the processes in the methods described in the above embodiments. The computer program 42 can also instruct related hardware to complete the process. The computer program 42 can be stored in a computer-readable storage medium. When executed by the processor 40, the computer program 42 can implement the steps of the various method embodiments described above. The computer program 42 includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0082] The computer-readable storage medium can be an internal storage unit of the terminal in any of the foregoing embodiments, such as the terminal's hard disk or memory. The computer-readable storage medium can also be an external storage device of the terminal, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the terminal. Furthermore, the computer-readable storage medium can include both internal storage units and external storage devices of the terminal. The computer-readable storage medium is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0083] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0084] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0085] In the embodiments provided by this invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0086] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0087] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0088] If an integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0089] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A blockchain-based method for trading shared charging stations, characterized in that, The blockchain nodes include electric vehicle nodes, charging pile nodes, and power grid nodes; each node in the blockchain corresponds to an account; each account stores a corresponding reputation value; the method includes: At each first preset time interval, the estimated discharge data of each electric vehicle node is obtained, and the estimated voucher corresponding to the estimated discharge data is sent to each account. At each second preset time interval, the transaction clearing data of each account within the second preset time interval is obtained, and the accounts receivable vouchers and / or accounts payable vouchers corresponding to the transaction clearing data are issued to each account respectively. Every third preset time interval, acquire the power transmission data of each account within the third preset time interval, and perform bill settlement based on the power transmission data to generate bill settlement data for each account; The credit value of each account is calibrated based on the billing settlement data of each account, the accounts receivable and / or accounts payable vouchers in each account, and the estimated vouchers in each account; wherein, the second preset duration is less than the first preset duration and the third preset duration; The billing settlement data includes actual payment data and actual receipt data; the credit score of each account is calibrated based on the billing settlement data of each account, the accounts receivable and / or accounts payable vouchers in each account, and the estimated vouchers in each account, including: Based on the aforementioned forecast documents, accounts receivable documents, and / or accounts payable documents in each account, determine the forecast deviation for each account; Based on the actual payment data and payable vouchers in each account, determine the payment deviation for each account and deduct the payable vouchers corresponding to the payment deviation; Based on the actual receipt data and accounts receivable vouchers in each account, determine the receipt deviation for each account and deduct the corresponding number of accounts receivable vouchers for the receipt deviation; Based on the estimated deviation, payment deviation, and collection deviation of each account, determine the credit value calibration amount for each account; The credit score in each account is calibrated according to the aforementioned credit score calibration amount; Based on the estimated deviations, payment deviations, and collection deviations for each account, determine the credit score calibration amount for each account, including: ; in, α The calibration amount for the reputation value. n 1 represents the payment deviation. n 2 represents the aforementioned payment deviation. n 3 represents the predicted deviation. ε 1 represents the deviation penalty coefficient. ε 2 represents the estimated compensation coefficient, and C represents the preset threshold. The acquisition of estimated discharge data for each electric vehicle node includes: When an electric vehicle node logs into the blockchain, its historical charging and discharging data and date data are obtained. A user's charging and discharging profile is created based on the historical charging and discharging data. Based on the user charging / discharging profile and the date data, the estimated parking time of the electric vehicle is determined; Based on the expected stopping time and the real-time power of the electric vehicle node, the estimated discharge data of the electric vehicle node in each second preset time period is determined; Based on the estimated stopping time and the real-time battery level of the electric vehicle node, the estimated discharge data of the electric vehicle node within each second preset time period is determined, including: Based on the estimated stopping time, the real-time battery level of the electric vehicle node, and a pre-established random offline model, the estimated discharge data of the electric vehicle node within each second preset time period is determined. The random offline model represents the probability of an electric vehicle node going offline at each time point during the expected parking time. The random offline model is a maximum likelihood estimation model; the method further includes: Select deviation data from the historical charging and discharging data of the electric vehicle node that deviate from the drawn user charging and discharging profile by a preset deviation, and record the time of each deviation data. The maximum likelihood estimation model is trained by forming a training set based on the bias data and the time of each bias data point. After calibrating the credit scores in each account, the method further includes: The charging and discharging penalty coefficient for each account is determined based on the credit score of each account. The transaction price for each account is determined based on the charging and discharging penalty coefficients for each account and the current margin of the power grid.
2. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the blockchain-based shared charging pile transaction method as described in claim 1 above.
3. A blockchain network, characterized in that, Including the electronic device as described in claim 2 above.
4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the blockchain-based shared charging pile transaction method as described in claim 1.