Charging pile fee payment method and device based on block chain, and storage medium

By adopting blockchain technology and smart contracts in the charging pile payment system, the problem of charging payment relying on third-party platforms is solved, a more stable, secure and real-time payment process is achieved, and the security of user funds is improved.

CN119809630APending Publication Date: 2025-04-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Patent Information

Application Number
CN202411873625.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The charging pile payment system relies on third-party payment platforms, resulting in insufficient stability and service continuity of payment services. The lack of strict data security and encryption measures in the transmission of user payment information, which is prone to becoming the target of hackers, and the delay and inconsistency of information transmission affect the real-time and accuracy of payment.

Method used

The charging pile fee payment method based on blockchain is adopted. After the charging pile detects that the user's charging is completed, it obtains the charging bill and saves it to the blockchain, generates payment instructions and sends them to financial institutions, and checks and pays the charging bill through smart contracts in the blockchain.

Benefits of technology

It improves the stability and real-time nature of charging payments, enhances the security of user payment data, reduces the problems of payment delays and data inconsistencies, and ensures the security of user funds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119809630A_ABST
    Figure CN119809630A_ABST
Patent Text Reader

Abstract

The invention discloses a charging pile fee payment method and device based on a block chain, and a storage medium. The method relates to the technical field of block chains, and comprises the steps of obtaining a charging bill of a target user after detecting that the target user completes charging on a charging pile; the charging bill is stored in the block chain, and a payment instruction is generated according to the charging bill; the payment instruction is sent to a financial institution, so that the financial institution checks the charging bill through a smart contract in the block chain, and the smart contract is created according to a payment protocol and a charging protocol signed by the target user; and if the verification is passed, payment of the charging bill is completed through a target account of the target user in the financial institution. Through the charging pile payment method and device, the problem that the payment process of the charging pile depends on a third-party operator, the charging process is disordered, and the customer fund security is low in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and more specifically, to a charging pile fee payment method, device and storage medium based on blockchain. Background Art

[0002] As a key link in the new energy vehicle ecosystem, the popularization and optimization of charging piles are crucial to promoting my country's green transportation transformation. Modern charging piles not only undertake the task of providing power supply for electric vehicles, but also integrate intelligent user authentication, billing and payment functions, interacting with the back-end platform through wired (such as Ethernet, CAN bus) and wireless communication technologies (such as CDMA) to achieve remote management and real-time data transmission. Users usually use mobile phone APP or mini-programs for identity authentication, and complete electricity metering and fee payment through built-in smart meters and card swiping devices. With the support of the cloud platform, the entire operation process can be efficiently executed and data integrated.

[0003] However, the bottleneck of the current charging pile payment system lies in its reliance on third-party payment platforms. Although these platforms provide convenient payment methods, their stability and service continuity are directly related to whether the payment function of the charging pile is smooth. Once the third-party platform encounters system failure, network interruption or planned maintenance, the payment service of the charging pile will be immediately affected, and users may face the dilemma of being unable to complete payment immediately, which will significantly reduce charging efficiency and destroy user experience. More importantly, in the traditional payment process, the transmission and processing of user payment information must go through multiple links and different service providers, including charging pile operators, third-party payment platforms, etc. In the process of information circulation among multiple parties, if there is a lack of strict data security and encryption measures, it is easy to become a target of hacker attacks, resulting in the leakage of user payment data, which seriously threatens the security of user funds. In addition, the transmission of information in multiple links may also introduce delays and data inconsistencies, affecting the real-time and accuracy of payment.

[0004] In the related technology, the payment process of charging piles depends on third-party operators, the billing process is chaotic, and the customer funds are insecure. No effective solution has been proposed yet. Summary of the invention

[0005] The main purpose of this application is to provide a charging pile fee payment method, device and storage medium based on blockchain, so as to solve the problem in the related technology that the payment process of the charging pile depends on the third-party operator, the billing process is chaotic, and the customer funds security is low.

[0006] In order to achieve the above purpose, according to one aspect of the present application, a charging pile fee payment method based on blockchain is provided. The method includes: after detecting that the target user has completed charging on the charging pile, obtaining the charging bill of the target user; saving the charging bill in the blockchain, and generating a payment instruction based on the charging bill; sending the payment instruction to the financial institution, so that the financial institution verifies the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; if the verification is passed, the charging bill is paid through the target account of the target user in the financial institution.

[0007] Furthermore, before the charging pile detects that the target user has completed charging, the method includes: after the charging pile detects that the target user is using the charging pile for the first time, sending a request to the target user to register a new user and sign a billing agreement; after detecting that the target user has completed registering a new user and signing a billing agreement, collecting user information of the target user; encrypting the user information, and transmitting the encrypted user information and the billing agreement to the charging cloud platform; after receiving the encrypted user information and the billing agreement, the charging cloud platform establishes an information file for the target user in the database, decrypts the encrypted user information and stores it in the information file together with the billing agreement; after detecting that the information file of the target user exists in the database of the charging cloud platform, controlling the charging pile to start charging.

[0008] Furthermore, before the charging pile detects that the target user has completed charging, the method includes: after the charging pile detects that the user information of the target user is not bound to the customer information of the financial institution, the charging cloud platform calls the account opening service through the interface provided by the financial institution; the charging cloud platform sends the information file of the target user in the database to the financial institution; when it is detected that the financial institution has passed the review of the user information in the information file of the target user, the financial institution opens a target account for the target user and assigns a unique target account number to the target account; after the charging cloud platform receives the information that the target user's target account has been successfully opened, the charging cloud platform submits a request for signing a payment agreement to the target user; after detecting that the target user has completed signing the payment agreement, the charging pile is controlled to start charging.

[0009] Furthermore, after detecting that the target user has completed signing the payment agreement and controlling the charging pile to start charging, the method includes: creating a smart contract based on the payment agreement and billing agreement signed by the target user; submitting the smart contract to the financial institution for review, and after detecting that the financial institution has approved the smart contract, encapsulating the smart contract into a smart contract transaction; submitting the smart contract transaction to the blockchain, and the consensus nodes in the blockchain network will verify the smart contract transaction according to a preset consensus algorithm, and after the verification is passed, the smart contract corresponding to the smart contract transaction will be deployed to the blockchain.

[0010] Furthermore, the charging bill is saved in the blockchain, and a payment instruction is generated based on the charging bill, including: calling the billing agreement in the charging cloud platform through the charging pile, and generating a charging bill based on the billing agreement and charging information; formatting and encrypting the charging bill through the charging pile to obtain an encrypted charging bill; encapsulating the encrypted charging bill into a charging bill transaction, and broadcasting the charging bill transaction to the blockchain network; verifying the charging bill transaction through the nodes of the blockchain network according to the consensus mechanism, and after the verification is passed, packaging the charging bill transaction into a block of the blockchain to form a charging bill record in the blockchain; after detecting that the charging bill is successfully saved to the blockchain, synchronizing the charging bill to the information file of the target user in the database of the charging cloud platform through the charging pile; after the charging cloud platform receives the charging bill, a payment instruction is generated based on the payment agreement.

[0011] Furthermore, if the verification is passed, before the target user completes the payment of the charging bill through the target account of the financial institution, the method includes: sending a payment instruction to the financial institution; calling the smart contract in the blockchain through the financial institution, and using the smart contract to verify whether the charging bill complies with the preset billing rules in the billing agreement; if the charging bill complies with the preset billing rules, using the smart contract to verify whether the target user meets the payment conditions in the payment agreement; if the target user meets the payment conditions, the charging bill is paid through the target user's target account in the financial institution.

[0012] Furthermore, if the target user meets the payment conditions, the charging bill is paid through the target user's contracted account in the financial institution, including: when the financial institution detects that the target user meets the payment conditions, the financial institution sends a deduction instruction to the agent business system; after the agent business system receives the deduction instruction, the amount on the charging bill is deducted from the target account of the target user; after detecting that the agent business system has completed the deduction, the payment information is recorded in the financial institution, and a payment confirmation signal is sent to the charging cloud platform through the blockchain; after the charging cloud platform receives the payment confirmation signal, it confirms that the payment is completed.

[0013] In order to achieve the above purpose, according to another aspect of the present application, a charging pile fee payment device based on blockchain is provided. The device includes: an acquisition unit, which is used to acquire the charging bill of the target user after detecting that the target user has completed charging on the charging pile; a generation unit, which is used to save the charging bill in the blockchain and generate a payment instruction based on the charging bill; a first sending unit, which is used to send the payment instruction to the financial institution, so that the financial institution can verify the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; a first payment unit, which is used to complete the payment of the charging bill through the target account of the target user in the financial institution if the verification is passed.

[0014] Furthermore, the device also includes: a second sending unit, used to send a request to the target user to register a new user and sign a billing agreement before the charging pile detects that the target user has completed charging and after the charging pile detects that the target user is using the charging pile for the first time; a collection unit, used to collect user information of the target user after detecting that the target user has completed registering a new user and signing a billing agreement; an encryption unit, used to encrypt the user information and transmit the encrypted user information and the billing agreement to the charging cloud platform; a storage unit, used for the charging cloud platform to establish an information file for the target user in the database after receiving the encrypted user information and the billing agreement, and decrypt the encrypted user information and store it in the information file together with the billing agreement; a first control unit, used to control the charging pile to start charging after detecting that the information file of the target user exists in the database of the charging cloud platform.

[0015] Furthermore, the device also includes: a calling unit, which is used for the charging cloud platform to call the account opening service through the interface provided by the financial institution before the charging pile detects that the target user has completed charging and after the charging pile detects that the user information of the target user is not bound to the customer information of the financial institution; a third sending unit, which is used for the charging cloud platform to send the information file of the target user in the database to the financial institution; an allocation unit, which is used for the financial institution to open a target account for the target user and allocate a unique target account number to the target account when it is detected that the financial institution has passed the review of the user information in the information file of the target user; a submission unit, which is used for the charging cloud platform to submit a request for signing a payment agreement to the target user after the charging cloud platform receives the information that the target user's target account has been successfully opened; a second control unit, which is used to control the charging pile to start charging after detecting that the target user has completed signing the payment agreement.

[0016] Furthermore, the device also includes: a creation unit, which is used to create a smart contract based on the payment agreement and billing agreement signed by the target user after detecting that the target user has completed the signing of the payment agreement and controlling the charging pile to start charging; an encapsulation unit, which is used to submit the smart contract to the financial institution for review, and after detecting that the financial institution has passed the review of the smart contract, encapsulate the smart contract into a smart contract transaction; a deployment unit, which is used to submit the smart contract transaction to the blockchain, and the consensus node in the blockchain network will verify the smart contract transaction according to a preset consensus algorithm. After the verification is passed, the smart contract corresponding to the smart contract transaction will be deployed to the blockchain.

[0017] Furthermore, the generation unit includes: a first generation module, which is used to retrieve the billing agreement in the charging cloud platform through the charging pile, and generate a charging bill based on the billing agreement and charging information; an encryption module, which is used to format and encrypt the charging bill through the charging pile to obtain an encrypted charging bill; an encapsulation module, which is used to encapsulate the encrypted charging bill into a charging bill transaction and broadcast the charging bill transaction to the blockchain network; a verification module, which is used to verify the charging bill transaction according to the consensus mechanism through the nodes of the blockchain network, and after the verification is passed, the charging bill transaction is packaged into a block of the blockchain to form a charging bill record in the blockchain; a synchronization module, which is used to synchronize the charging bill to the information file of the target user in the database of the charging cloud platform through the charging pile after detecting that the charging bill is successfully saved to the blockchain; a second generation module, which is used to generate a payment instruction according to the payment agreement after the charging cloud platform receives the charging bill.

[0018] Furthermore, the device also includes: a fourth sending unit, which is used to send a payment instruction to the financial institution before the target user completes the payment of the charging bill through the target account of the financial institution if the verification is passed; a checking unit, which is used to call the smart contract in the blockchain through the financial institution, and use the smart contract to check whether the charging bill complies with the preset billing rules in the billing agreement; a verification unit, which is used to use the smart contract to verify whether the target user meets the payment conditions in the payment agreement if the charging bill complies with the preset billing rules; a second payment unit, which is used to complete the payment of the charging bill through the target user's target account in the financial institution if the target user meets the payment conditions.

[0019] Furthermore, the second payment unit includes: a first sending module, which is used to send a deduction instruction to the agency business system through the financial institution when the financial institution detects that the target user meets the payment conditions; a deduction module, which is used to deduct the amount on the charging bill from the target account of the target user after the agency business system receives the deduction instruction; a second sending module, which is used to record the payment information in the financial institution after detecting that the agency business system has completed the deduction, and send a payment confirmation signal to the charging cloud platform through the blockchain; a receiving module, which is used to confirm the completion of payment after the charging cloud platform receives the payment confirmation signal.

[0020] According to another aspect of the present application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the charging pile fee payment methods based on blockchain.

[0021] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the charging pile fee payment methods based on blockchain.

[0022] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the steps of any one of the above-mentioned blockchain-based charging pile fee payment methods.

[0023] In the embodiment of the present application, after detecting that the target user has completed charging on the charging pile, the charging bill of the target user is obtained; the charging bill is saved in the blockchain, and a payment instruction is generated based on the charging bill; the payment instruction is sent to the financial institution, so that the financial institution verifies the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; if the verification is passed, the charging bill is paid through the target account of the target user in the financial institution, which solves the problem that the payment process of the charging pile in the related technology depends on the third-party operator, the billing process is chaotic, and the customer's funds are low in security. In the present application, after detecting that the target user has completed charging on the charging pile, the charging bill of the target user will be obtained, the charging bill will be saved in the blockchain, and the payment instruction corresponding to the charging bill will be generated, and the generated payment instruction will be sent to the financial institution, and the financial institution verifies the charging bill through the smart contract in the blockchain. After the verification is passed, the amount corresponding to the charging bill is deducted from the target account of the target user in the financial institution to complete the payment, ensuring the safety of the payment process, thereby achieving the technical effect of improving the security of customer funds. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 A hardware structure block diagram of a computer terminal for implementing a charging pile fee payment method based on blockchain is shown;

[0026] Figure 2 It is a flowchart of a charging pile fee payment method based on blockchain provided in an embodiment of the present application;

[0027] Figure 3 It is a flow chart of generating a charging bill based on a billing agreement and charging information provided in an embodiment of the present application;

[0028] Figure 4 This is a flowchart of creating a smart contract according to an embodiment of the present application;

[0029] Figure 5 It is a flowchart of deploying a smart contract according to an embodiment of the present application;

[0030] Figure 6 is a flow chart for completing payment of a charging bill according to an embodiment of the present application;

[0031] Figure 7 It is a flowchart of user registration and signing of a billing agreement provided according to an embodiment of the present application;

[0032] Figure 8 This is a flowchart of opening an account according to an embodiment of the present application;

[0033] Fig. 9 It is a flow chart of completing payment of a charging bill through a target user's contracted account at a financial institution according to an embodiment of the present application;

[0034] Fig.10 It is a structural diagram of a charging pile fee payment transaction system based on blockchain provided in an embodiment of the present application;

[0035] Fig.11 This is a schematic diagram of charging charges for a charging pile provided in accordance with an embodiment of the present application;

[0036] Fig.12 It is a schematic diagram of a charging pile fee payment device based on blockchain provided according to an embodiment of the present application;

[0037] Fig.13 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0041] Example 1

[0042] According to an embodiment of the present application, a method embodiment of a charging pile fee payment based on blockchain is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0043] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a charging pile fee payment method based on blockchain is shown. Figure 1As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0044] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0045] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the charging pile fee payment method based on blockchain in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned charging pile fee payment method based on blockchain. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0046] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0047] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0048] Under the above operating environment, this application provides Figure 2 The blockchain-based charging pile fee payment method shown. Figure 2 This is a flowchart of the blockchain-based charging pile fee payment method according to Example 1 of the present application.

[0049] Step S201, after detecting that the target user has completed charging on the charging pile, obtaining the charging bill of the target user.

[0050] Optionally, when the electric car is fully charged at the charging pile, the billing module on the charging pile can calculate the total cost based on the charging power, time and possible time-based electricity prices, and generate a detailed charging bill. For example, Mr. Zhang charged his electric car for 2 hours at a charging pile and used 10kWh of electricity. According to the operator's billing rules, the charge for off-peak hours is 0.8 yuan per kilowatt-hour and the service fee is 0.5 yuan per hour. Therefore, Mr. Zhang's charging fee is 8 yuan (10kWh*0.8 yuan / kWh), the service fee is 1 yuan (2 hours*0.5 yuan / hour), and the total cost is 9 yuan. The charging pile will encrypt this bill information and upload it to the charging cloud platform to prepare for the next payment process.

[0051] Step S202: Save the charging bill in the blockchain and generate a payment instruction based on the charging bill.

[0052] Optionally, after uploading the charging bill to the charging cloud platform, the charging cloud platform can save the charging bill content to the blockchain to ensure the immutability and transparency of the charging bill data. At the same time, the charging cloud platform can construct a payment instruction based on the generated charging bill information, and the payment instruction can include key information such as user ID, charging pile ID, and amount payable. For example, after the charging is completed in step S201 above, Mr. Zhang's charging bill is obtained. The charging cloud platform can create a payment instruction, including Mr. Zhang's user ID, charging pile ID, and a payment amount of 9 yuan, and then save this payment instruction to the blockchain, ready to send to the financial institution.

[0053] Step S203, sending the payment instruction to the financial institution so that the financial institution can verify the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user.

[0054] Optionally, after the payment instruction is sent to the financial institution, the financial institution will call the smart contract on the blockchain for verification. The smart contract is a code converted from the payment agreement and billing agreement signed in advance between the user and the financial institution, which is stored in the blockchain to ensure the automatic execution and consistency of the payment logic. The smart contract can check whether the user ID, charging pile ID, amount payable and other information in the payment instruction meet the conditions of the agreement signed by the user. For example, the smart contract can verify whether Mr. Zhang has signed a payment agreement with the financial institution, whether the agreement allows automatic deductions, and whether the deduction amount is within the range specified in the agreement.

[0055] Step S204: If the verification is passed, the charging bill is paid through the target user's target account in the financial institution.

[0056] For example, if the smart contract verification is passed, the financial institution will automatically deduct 9 yuan from Mr. Zhang’s reserved payment account to complete the payment of the charging bill. After the payment is completed, the transaction record will be updated to the blockchain again to ensure the transparency of the payment process and the integrity of the record.

[0057] The charging pile fee payment method based on blockchain provided in the embodiment of the present application obtains the charging bill of the target user after detecting that the target user has completed charging on the charging pile; saves the charging bill in the blockchain, and generates a payment instruction based on the charging bill; sends the payment instruction to the financial institution, so that the financial institution verifies the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; if the verification is passed, the charging bill is paid through the target account of the target user in the financial institution, which solves the problem that the payment process of the charging pile in the related technology depends on the third-party operator, the billing process is chaotic, and the customer's funds are low in security. In this application, after detecting that the target user has completed charging on the charging pile, the charging bill of the target user will be obtained, the charging bill will be saved in the blockchain, and the payment instruction corresponding to the charging bill will be generated, and the generated payment instruction will be sent to the financial institution, and the financial institution verifies the charging bill through the smart contract in the blockchain. After the verification is passed, the amount corresponding to the charging bill is deducted from the target account of the target user in the financial institution to complete the payment, ensuring the safety of the payment process, thereby achieving the technical effect of improving the security of customer funds.

[0058] In an optional embodiment, if Figure 3 As shown, the charging bill is saved in the blockchain, and the payment instructions generated based on the charging bill include:

[0059] Step S301, retrieve the billing agreement in the charging cloud platform through the charging pile, and generate a charging bill based on the billing agreement and charging information.

[0060] Optionally, after the charging process is completed, the charging pile will call the charging cloud platform's billing agreement, which can include the charging pile operator's charging rules, such as time-based electricity prices, service fees, etc. The charging pile can calculate the total cost based on the charging rules and specific charging information (such as charging power and charging time) to generate a detailed charging bill. For example, Ms. Li charges on a charging pile with a charging power of 20kWh, and the charging period is off-peak. According to the charging pile operator's billing agreement, the off-peak electricity fee is 0.8 yuan / kWh, and the total electricity fee for this charging is 16 yuan.

[0061] Step S302: Format and encrypt the charging bill through the charging pile to obtain an encrypted charging bill.

[0062] Optionally, the charging pile can format the generated charging bill to ensure that it meets the blockchain storage requirements. In order to protect user privacy and the security of charging bill information, the charging pile can use encryption technology to encrypt the charging bill and generate an encrypted charging bill. The encryption process can use symmetric encryption or asymmetric encryption to ensure the security of information during transmission and storage.

[0063] Step S303, encapsulating the encrypted charging bill into a charging bill transaction, and broadcasting the charging bill transaction to the blockchain network.

[0064] Optionally, the encrypted charging bill can be encapsulated into a bill transaction, which can contain the encrypted data of the charging bill, the charging pile ID, the user ID and other information. The charging pile can broadcast the bill transaction to the blockchain network through the P2P network, so that all network nodes can receive the bill transaction and prepare for the next step of verification and storage.

[0065] Step S304, the charging bill transaction is verified by the nodes of the blockchain network according to the consensus mechanism. After the verification is passed, the charging bill transaction is packaged into a block of the blockchain to form a charging bill record in the blockchain.

[0066] Optionally, after receiving the bill transaction, the node in the blockchain network can verify the bill transaction according to the preset consensus algorithm (such as POW proof of work, POS proof of equity, etc.) to ensure the validity and legality of the bill transaction. Once the bill transaction is verified, the node can package it into a block of the blockchain, and together with other transactions in the block, form a new bill record, which is permanently stored on the blockchain.

[0067] Optionally, a node in the blockchain network may include a contract release control unit, a contract key generation unit, a contract information query unit, and a contract transaction consensus unit. The contract release control unit is responsible for controlling the release of contracts on the chain, and supports the release of single contracts and batch contracts to ensure the consistency of contract code and contract text. The contract trusted storage unit is responsible for storing the encrypted contract code and contract code identifier to complete the entire set of smart contract registration functions. The contract information query unit is responsible for querying the contract content and status according to the conditions and controlling the query scope. The contract transaction consensus unit is responsible for business logic verification of the smart contract execution results to ensure contract consistency, and adopts, through sorting nodes, generating blocks, broadcasting to all nodes, reaching consensus on the chain.

[0068] Step S305, after detecting that the charging bill is successfully saved in the blockchain, the charging bill is synchronized to the information file of the target user in the database of the charging cloud platform through the charging pile.

[0069] For example, after the charging bill is successfully saved to the blockchain, the charging pile can synchronize the charging bill information to the database of the charging cloud platform and associate it with Ms. Li’s user profile so that the charging cloud platform can perform bill management, query and subsequent payment processing.

[0070] Step S306: After the charging cloud platform receives the charging bill, it generates a payment instruction according to the payment agreement.

[0071] For example, when the charging cloud platform receives Ms. Li's charging bill, it can construct a payment instruction based on the payment agreement signed between Ms. Li and the financial institution (such as automatic deduction agreement, small amount password-free payment agreement, etc.). The payment instruction can include Ms. Li's user ID, the merchant number of the charging pile operator, the smart contract ID of the billing agreement, and the payment amount of 16 yuan. This payment instruction will be sent to the financial institution to trigger the payment process.

[0072] In summary, through the above technical solutions, a transparent, safe and automated charging pile billing process is realized, which enhances users' trust in charging payment and also improves the service quality and operational efficiency of charging pile operators.

[0073] In an optional embodiment, if Figure 4 As shown, after detecting that the target user has completed signing the payment agreement and controlling the charging pile to start charging, the method includes:

[0074] Step S401, creating a smart contract based on the payment agreement and billing agreement signed by the target user.

[0075] Optionally, after the user uses the charging pile for the first time and completes the payment agreement, the charging cloud platform can create a smart contract based on the terms of the payment agreement and the billing agreement. The above smart contract can be an executable code that can automatically execute the conditions and terms agreed in the agreement. The smart contract can include payment mechanisms, billing rules, user and merchant account information, payment limits, charging time divisions, etc. Take Mr. Zhao as an example. He completed the user registration on the charging pile APP and signed a payment agreement with a financial institution, allowing the financial institution to automatically deduct fees after each charging. At this time, the charging cloud platform will create a smart contract based on the payment agreement signed by Mr. Zhao and the billing agreement of the charging pile, including Mr. Zhao’s user ID, his associated financial institution account, billing method (such as time-sharing billing), and the payment limit of the financial institution.

[0076] Step S402: Submit the smart contract to the financial institution for review. After detecting that the financial institution has approved the smart contract, the smart contract is packaged into a smart contract transaction.

[0077] Optionally, the created smart contract needs to be submitted to a financial institution for review. The financial institution will check the legality and compliance of the smart contract to ensure that its content is consistent with the agreement signed by the user and there are no risks or loopholes. After the financial institution passes the review, the smart contract can be packaged into a smart contract transaction, which contains the smart contract code, contract parameters, user and merchant identification and other information. If the financial institution fails the review, it will not be deployed to the blockchain network, which can avoid wasting resources by deploying unqualified smart contract content, and even avoid situations such as capital loss caused by executing unqualified contracts. Therefore, before the contract is deployed, it can be reviewed by the financial institution to improve the consistency and legality of the smart contract content and strengthen the supervision of funds.

[0078] Step S403, submit the smart contract transaction to the blockchain, and the consensus node in the blockchain network will verify the smart contract transaction according to the preset consensus algorithm. After the verification is passed, the smart contract corresponding to the smart contract transaction will be deployed to the blockchain.

[0079] Optionally, after a smart contract transaction is submitted to the blockchain network, the consensus nodes in the network will verify it based on a preset consensus algorithm (such as POW proof of work, POS proof of equity, etc.). The consensus algorithm ensures the legitimacy and validity of the transaction and avoids the deployment of invalid contracts. Once the smart contract transaction passes the verification, the smart contract transaction will be added to the block of the blockchain, and the smart contract will be officially deployed on the blockchain, becoming an unalterable part of the network.

[0080] For example, Figure 5 As shown, deploying N smart contracts to the blockchain network includes: initiating a smart contract deployment transaction, broadcasting the N smart contracts to the blockchain network. The blockchain network includes M consensus nodes, M is an integer greater than or equal to 1, and the blockchain network is configured to: when the verification results of the M consensus nodes meet the deployment consensus conditions, the N smart contracts are stored in the blockchain.

[0081] In summary, through the above technical solutions, the charging pile billing and payment system based on blockchain and smart contracts ensures the security, transparency and automated execution of transactions, improves the operational efficiency and user experience of charging piles, and also strengthens the protection of user funds.

[0082] In an optional embodiment, if Figure 6 As shown, if the verification is passed, before the target user completes the payment of the charging bill through the target account of the financial institution, the method includes:

[0083] Step S601, sending the payment instruction to the financial institution.

[0084] For example, after Ms. Liu finished charging, the charging pile generated a bill of 20 yuan. The charging cloud platform generated a payment instruction based on this, which included Ms. Liu's user ID, merchant number, smart contract ID and payment amount of 20 yuan, and sent it to the financial institution.

[0085] Step S602: The financial institution calls the smart contract in the blockchain and uses the smart contract to check whether the charging bill complies with the preset billing rules in the billing agreement.

[0086] Optionally, after receiving the payment instruction, the financial institution will call the smart contract on the blockchain to verify the charging bill and check whether the bill complies with the preset billing rules in the billing agreement. The above preset billing rules can be time-of-day billing: different electricity prices are set according to different time periods of the day (such as peak, non-peak, super peak, etc.). It can be customer group billing: different billing standards are set for different user groups (such as ordinary users, member users, VIP users, etc.). It can be a service fee: in addition to the basic electricity fee, the smart contract may also contain billing rules for service fees, such as charging service fees based on the percentage of charging time or charging power. It can be a payment limit: a payment limit may be set between the user and the financial institution, and the smart contract will check whether the payment exceeds this limit. It can also be a small amount of password-free payment rule: if the user chooses a small amount of password-free payment, the smart contract will verify whether the payment amount is within the range of password-free payment and whether the user meets the conditions for password-free payment.

[0087] For example, the smart contract can check whether Ms. Liu’s 20 yuan charging bill meets the billing standards for off-peak hours and whether it exceeds Ms. Liu’s payment limit.

[0088] Step S603: If the charging bill complies with the preset billing rules, a smart contract is used to verify whether the target user meets the payment conditions in the payment agreement.

[0089] Optionally, if the billing rule verification passes, the smart contract will further check the payment conditions to ensure that the user meets the payment conditions agreed in the payment agreement, such as account balance, single payment limit, etc. For example, the smart contract will verify whether Ms. Liu's account has enough balance to pay 20 yuan, and whether the payment exceeds the single payment limit.

[0090] Step S604: If the target user meets the payment conditions, the charging bill is paid through the target user's target account in the financial institution.

[0091] For example, if Ms. Liu's account balance is sufficient and the payment amount complies with the agreement, the smart contract will automatically deduct 20 yuan from Ms. Liu's financial institution account and pay it to the charging pile operator. The entire payment process does not require any additional operations from Ms. Liu, realizing automated payment.

[0092] In summary, through the above technical solution, before the target user completes the payment of the charging bill in the target account of the financial institution, the charging bill is verified based on the billing rules of the smart contract, which can ensure that each transaction in the charging pile transaction strictly follows the agreement between the user and the operator, which not only improves the degree of automation of the transaction, but also enhances security and user trust.

[0093] In an optional embodiment, if Figure 7 As shown, before the charging pile detects that the target user has completed charging, the method includes:

[0094] Step S701: After the charging pile detects that the target user is using the charging pile for the first time, a request for registering a new user and signing a billing agreement is sent to the target user.

[0095] Optionally, when the charging pile detects a target user who is using the charging pile for the first time, the charging pile will send a request to the target user to register a new user and sign a billing agreement. The target user needs to complete the registration process and sign the billing agreement through the charging pile or the APP operated by the charging pile. For example, if it is detected that Mr. Wang is using a charging pile for the first time, the charging pile will send a registration request and a billing agreement signing prompt to Mr. Wang through its APP.

[0096] Step S702: after detecting that the target user has completed the registration of a new user and the signing of a billing agreement, user information of the target user is collected.

[0097] Optionally, the user information of the above-mentioned target user is a very critical part of the charging pile billing transaction system. This information is used to establish the user's personal information file to ensure that subsequent charging transactions can proceed smoothly, and is associated with financial institutions and smart contracts in the blockchain network. The target user information may include but is not limited to basic personal information: including the user's name, date of birth, ID number or passport information, contact information (such as telephone number, email address), residential address, etc. Financial information: the user's financial institution account information, including the name of the financial institution, account type (such as savings account, credit card account), account number, payment password, etc. Electric vehicle information: including the brand, model, license plate number, vehicle identification number (VIN), battery type, charging requirements, etc. of the electric vehicle. The billing agreement signed between the user and the charging pile operator may include billing methods (such as by electricity, by time), electricity prices, service fees, preferential policies (such as member discounts, points usage), payment conditions (such as small-amount password-free payment, monthly bill payment), etc. The billing agreement information is the basis for the execution of smart contracts, ensuring that transactions are carried out in accordance with the rules agreed upon in advance by the user and the charging pile operator. By collecting these detailed target user information, better customer management and data security can be provided for charging pile operators.

[0098] Step S703, encrypt the user information, and transmit the encrypted user information and the billing agreement to the charging cloud platform.

[0099] Optionally, in order to protect user privacy and data security, the charging pile can use encryption technology to encrypt the collected user information, and then transmit the encrypted user information and the billing agreement to the charging cloud platform. For example, the charging pile uses encryption algorithms such as AES (Advanced Encryption Standard) or RSA (Rivest-Shamir-Adleman) to encrypt Mr. Wang's user information to ensure that the information is not leaked during the transmission process.

[0100] Step S704, after receiving the encrypted user information and the billing agreement, the charging cloud platform creates an information file for the target user in the database, decrypts the encrypted user information and stores it in the information file together with the billing agreement.

[0101] For example, the charging cloud platform can use the same encryption technology as the charging pile to decrypt the encrypted user information, and then store the decrypted user information and billing agreement in Mr. Wang’s information file for subsequent use and management.

[0102] Step S705, after detecting that the target user's information file exists in the database of the charging cloud platform, control the charging pile to start charging.

[0103] For example, after the charging cloud platform confirms that the target user's information file exists in the database, the charging cloud platform will send a charging instruction to the charging pile, allowing the charging pile to start charging Mr. Wang's electric car. After receiving the instruction, the charging pile starts the charging process and provides power for Mr. Wang's vehicle.

[0104] In summary, the above technical solutions have achieved efficient registration of new users and automated control of charging piles, improving user experience and efficiency of charging pile operations. Target users complete registration and agreement signing when using for the first time, and subsequent charging only requires automatic identification and billing of charging piles, thus achieving a plug-and-play charging experience without the need to repeatedly enter user information or sign an agreement each time, simplifying the charging process and enhancing the convenience and safety of the system.

[0105] In an optional embodiment, if Figure 8 As shown, before the charging pile detects that the target user has completed charging, the method includes:

[0106] Step S801, after the charging pile detects that the user information of the target user is not bound to the customer information of the financial institution, the charging cloud platform calls the account opening service through the interface provided by the financial institution.

[0107] For example, when Mr. Chen uses a charging pile to charge his electric car for the first time, his user information has not yet been bound to the financial institution that cooperates with the charging pile operator. The charging cloud platform will call the financial institution's interface and request to open an account for Mr. Chen.

[0108] Step S802, the charging cloud platform sends the target user's information file in the database to the financial institution;

[0109] For example, the charging cloud platform will send Mr. Chen's information file in the database to the financial institution. The information file contains Mr. Chen's user information, such as name, ID number, contact information, and basic information required for opening an account at a financial institution. This user information is used in the review and creation process of the financial institution opening an account.

[0110] Step S803: When it is detected that the financial institution has passed the review of the user information in the information file of the target user, the financial institution opens a target account for the target user and allocates a unique target account number to the target account.

[0111] Optionally, the financial institution reviews the user information in the target user's information file, and can ensure the compliance and security of account opening through identity verification, address verification, financial status review, etc. Identity verification: The financial institution verifies the identity information provided by the user, such as ID number, passport information, name, date of birth, etc., to ensure the accuracy of the information and the authenticity of the user's identity. Address verification: Confirm the user's residential address or billing address to ensure the accuracy of the contact information. Financial status review: Check the financial information provided by the user, including financial institution account history, credit record, income status, etc., to assess the user's risk level and payment ability. This helps the financial institution decide whether to open an account and the type and function of the account.

[0112] For example, after receiving Mr. Chen's information file and completing the review, if the user information passes the review, the financial institution will open a target account for Mr. Chen and assign a unique account number to the account. The financial institution will use this number to bind Mr. Chen's user information to facilitate the processing of subsequent transactions.

[0113] Step S804, after the charging cloud platform receives the information that the target account of the target user has been successfully opened, the charging cloud platform submits a request for signing a payment agreement to the target user.

[0114] For example, after the charging cloud platform receives confirmation from the financial institution that Mr. Chen's account has been successfully opened, it will submit a request to Mr. Chen to sign a payment agreement. The payment agreement can include details such as the user's consent to automatic deductions, payment conditions (such as payment limits, payment time, etc.), and billing rules. The charging cloud platform reminds Mr. Chen to complete the signing of the payment agreement through the APP or other channels. The charging cloud platform notifies Mr. Chen via SMS or APP to remind him to complete the signing of the payment agreement so that the money can be automatically deducted from his financial institution account after the charging is completed.

[0115] Step S805: After detecting that the target user has completed signing the payment agreement, control the charging pile to start charging.

[0116] Optionally, the charging cloud platform detects that the target user has completed the payment agreement, and the charging pile will start to provide charging services to the target user. The charging pile charges according to the charging rules preset in the smart contract through the instructions of the charging cloud platform, and generates a bill after charging is completed, and the payment is automatically deducted without the target user having to operate again.

[0117] In summary, through the above technical solutions, convenient account opening services and payment agreement signing mechanisms are provided for new users, so that target users can quickly complete account binding and payment method settings when using charging piles for the first time, and the subsequent charging experience is smoother, safer and more automated.

[0118] In an optional embodiment, if Fig. 9 As shown, if the target user meets the payment conditions, the charging bill is paid through the target user's contracted account at the financial institution, including:

[0119] Step S901: When the financial institution detects that the target user meets the payment conditions, a deduction instruction is sent to the agent business system through the financial institution.

[0120] Optionally, when the charging pile completes charging and generates a bill, the charging cloud platform sends the bill information (including charging volume, electricity price, service fee, etc.) to the blockchain network to trigger the execution of the smart contract. The smart contract will check whether the target user meets the payment conditions (such as payment limit, payment time, account balance, etc.). Once it is confirmed that the payment conditions are met, the smart contract will send a deduction instruction to the agent business system through the financial institution, instructing the deduction of the corresponding charging fee from the target user's contracted account in the financial institution. For example, the total amount of the charging bill is 20 yuan. The smart contract will verify whether Mr. Chen's contracted account balance is sufficient and whether the payment limit is met. If all payment conditions are met, the smart contract will instruct the financial institution to deduct 20 yuan from Mr. Chen's contracted account.

[0121] Step S902: After the agent service system receives the deduction instruction, the amount on the charging bill is deducted from the target account of the target user.

[0122] For example, after the agency business system receives the deduction instruction from the financial institution, 20 yuan will be deducted from Mr. Chen’s contracted account, and the transfer operation will be completed through the financial institution and paid to the charging pile operator.

[0123] Step S903, after detecting that the agency business system has completed the deduction, the payment information is recorded in the financial institution, and a payment confirmation signal is sent to the charging cloud platform through the blockchain.

[0124] Optionally, after the agency business system completes the deduction, the financial institution can save the payment information record, which may include payment time, amount, payment account, receiving account, etc. At the same time, the financial institution will send a payment confirmation signal to the charging cloud platform through the blockchain network, indicating that the payment has been successfully completed.

[0125] Step S904: After the charging cloud platform receives the payment confirmation signal, it confirms that the payment is completed.

[0126] Optionally, when the charging cloud platform receives the payment confirmation signal, it will update the user's order status to indicate that the bill has been paid, and can notify the user of the payment completion through the APP or SMS. For example, after receiving the payment confirmation signal sent by the financial institution, the charging cloud platform will update Mr. Chen's order status to "paid" and send him a notification of successful payment.

[0127] In summary, through the above technical solutions, the charging pile billing process eliminates the possibility of human intervention and payment errors, improves payment efficiency and user experience, and also strengthens payment security and the immutability of transactions. Users only need to focus on the charging process without worrying about payment complexity and security issues, making the use of charging piles as convenient as "plug and play".

[0128] Optionally, the charging pile fee payment method based on blockchain provided in this embodiment eliminates the possibility of human intervention and payment errors. Fig.10 The structure diagram of the charging pile fee payment transaction system based on blockchain is shown in the figure. Fig.11 The charging billing diagram of the charging pile is shown.

[0129] When the user selects a charging station and scans the code to charge, the system determines whether the user is registered. Only after registering and opening a second or third type account and binding the user information with the customer information of the financial institution can the next charging operation be initiated;

[0130] After the user submits a charging request online, the charging cloud platform 1005 issues a command and starts charging;

[0131] The charging pile 1001 determines whether charging is completed. If charging is completed, charging is charged according to the charging rules issued by the charging cloud platform 1005, and a charging bill is generated. At the same time, the bill is synchronized to the charging cloud platform 1005 for storage and used to initiate payment;

[0132] The charging station 1001 submits the bill to the blockchain network 1003 for storage, updates the blockchain node information through the transaction broadcast mechanism, and marks the synchronization completion status;

[0133] The charging cloud platform 1005 initiates a payment request to the financial institution 1004, and the financial institution 1004 calls the blockchain network 1003 to trigger the smart contract to verify the payment order, including data such as charging time, charging electricity price, order amount, etc., to ensure that the payment order complies with the prior agreement;

[0134] After the contract verification is passed, a deduction instruction is initiated from the contracted account and the payment is made to the designated merchant account, otherwise the payment is rejected.

[0135] Through the above steps, payment efficiency and user experience are improved, while payment security and the immutability of transactions are also strengthened.

[0136] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0137] Example 2

[0138] The embodiment of the present application also provides a charging pile fee payment device based on blockchain. It should be noted that the charging pile fee payment device based on blockchain in the embodiment of the present application can be used to execute the charging pile fee payment method based on blockchain provided in the embodiment of the present application. The following introduces the charging pile fee payment device based on blockchain provided in the embodiment of the present application.

[0139] According to an embodiment of the present application, a device for implementing the above-mentioned blockchain-based charging pile fee payment method is also provided, such as Fig.12 As shown, the device includes: an acquisition unit 1201, a generation unit 1202, a first sending unit 1203, and a first payment unit 1204.

[0140] Specifically, the acquisition unit 1201 is used to obtain the charging bill of the target user after detecting that the target user has completed charging on the charging pile; the generation unit 1202 is used to save the charging bill in the blockchain and generate a payment instruction based on the charging bill; the first sending unit 1203 is used to send the payment instruction to the financial institution, so that the financial institution can verify the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; the first payment unit 1204 is used to complete the payment of the charging bill through the target account of the target user in the financial institution if the verification is passed.

[0141] The charging pile fee payment device based on blockchain provided in the embodiment of the present application obtains the charging bill of the target user after detecting that the target user has completed charging on the charging pile through the acquisition unit 1201; the generation unit 1202 saves the charging bill in the blockchain, and generates a payment instruction based on the charging bill; the first sending unit 1203 sends the payment instruction to the financial institution, so that the financial institution verifies the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; the first payment unit 1204, if the verification is passed, completes the payment of the charging bill through the target account of the target user in the financial institution, thereby solving the problem in the related technology that the payment process of the charging pile depends on the third-party operator, the billing process is chaotic, and the customer funds security is low, thereby achieving the effect of improving the customer funds security.

[0142] Optionally, in the blockchain-based charging pile fee payment device provided in the embodiment of the present application, the device also includes: a second sending unit, used to send a request to the target user to register a new user and sign a billing agreement before the charging pile detects that the target user has completed charging and after the charging pile detects that the target user is using the charging pile for the first time; a collection unit, used to collect user information of the target user after detecting that the target user has completed registering a new user and signing a billing agreement; an encryption unit, used to encrypt the user information and transmit the encrypted user information and the billing agreement to the charging cloud platform; a storage unit, used for the charging cloud platform to establish an information file for the target user in the database after receiving the encrypted user information and the billing agreement, and decrypt the encrypted user information and store it in the information file together with the billing agreement; a first control unit, used to control the charging pile to start charging after detecting that the information file of the target user exists in the database of the charging cloud platform.

[0143] Optionally, in the blockchain-based charging pile fee payment device provided in the embodiment of the present application, the device also includes: a calling unit, which is used for the charging cloud platform to call the account opening service through the interface provided by the financial institution before the charging pile detects that the target user has completed charging and after the charging pile detects that the user information of the target user is not bound to the customer information of the financial institution; a third sending unit, which is used for the charging cloud platform to send the information file of the target user in the database to the financial institution; an allocation unit, which is used for the financial institution to open a target account for the target user and assign a unique target account number to the target account when it is detected that the financial institution has passed the review of the user information in the information file of the target user; a submission unit, which is used for the charging cloud platform to submit a request for signing a payment agreement to the target user after the charging cloud platform receives the information that the target user's target account has been successfully opened; a second control unit, which is used to control the charging pile to start charging after detecting that the target user has completed signing the payment agreement.

[0144] Optionally, in the blockchain-based charging pile fee payment device provided in the embodiment of the present application, the device also includes: a creation unit, which is used to create a smart contract based on the payment agreement and billing agreement signed by the target user after detecting that the target user has completed signing the payment agreement and controlling the charging pile to start charging; an encapsulation unit, which is used to submit the smart contract to the financial institution for review, and after detecting that the financial institution has approved the smart contract, encapsulate the smart contract into a smart contract transaction; a deployment unit, which is used to submit the smart contract transaction to the blockchain, and the consensus nodes in the blockchain network will verify the smart contract transaction according to a preset consensus algorithm. After the verification is passed, the smart contract corresponding to the smart contract transaction will be deployed to the blockchain.

[0145] Optionally, in the blockchain-based charging pile fee payment device provided in the embodiment of the present application, the generation unit 1202 includes: a first generation module, which is used to call the billing agreement in the charging cloud platform through the charging pile, and generate a charging bill based on the billing agreement and charging information; an encryption module, which is used to format and encrypt the charging bill through the charging pile to obtain an encrypted charging bill; an encapsulation module, which is used to encapsulate the encrypted charging bill into a charging bill transaction and broadcast the charging bill transaction to the blockchain network; a verification module, which is used to verify the charging bill transaction according to the consensus mechanism through the nodes of the blockchain network, and after the verification is passed, the charging bill transaction is packaged into a block of the blockchain to form a charging bill record in the blockchain; a synchronization module, which is used to synchronize the charging bill to the information file of the target user in the database of the charging cloud platform through the charging pile after detecting that the charging bill is successfully saved to the blockchain; a second generation module, which is used to generate a payment instruction according to the payment agreement after the charging cloud platform receives the charging bill.

[0146] Optionally, in the blockchain-based charging pile fee payment device provided in the embodiment of the present application, the device also includes: a fourth sending unit, which is used to send a payment instruction to the financial institution before the target user completes the payment of the charging bill through the target account of the financial institution if the verification is passed; a verification unit, which is used to call the smart contract in the blockchain through the financial institution, and use the smart contract to verify whether the charging bill complies with the billing rules preset in the billing agreement; a verification unit, which is used to use the smart contract to verify whether the target user meets the payment conditions in the payment agreement if the charging bill complies with the preset billing rules; a second payment unit, which is used to complete the payment of the charging bill through the target user's target account in the financial institution if the target user meets the payment conditions.

[0147] Optionally, in the blockchain-based charging pile fee payment device provided in the embodiment of the present application, the second payment unit includes: a first sending module, which is used to send a deduction instruction to the agency business system through the financial institution when the financial institution detects that the target user meets the payment conditions; a deduction module, which is used to deduct the amount on the charging bill from the target account of the target user after the agency business system receives the deduction instruction; a second sending module, which is used to record the payment information in the financial institution after detecting that the agency business system has completed the deduction, and send a payment confirmation signal to the charging cloud platform through the blockchain; a receiving module, which is used to confirm the completion of payment after the charging cloud platform receives the payment confirmation signal.

[0148] It should be noted that the acquisition unit 1201, the generation unit 1202, the first sending unit 1203, and the first payment unit 1204 correspond to steps S201 to S204 in Example 1, and the two modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above-mentioned modules may also be part of the device and may be run in the computer terminal 10 provided in Example 1.

[0149] Example 3

[0150] The embodiment of the present application may provide a computer terminal, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal or an electronic device.

[0151] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.

[0152] In this embodiment, the above-mentioned computer terminal can execute the program code in the blockchain-based charging pile fee payment method.

[0153] Optionally, Fig.13 is a structural block diagram of an electronic device according to an embodiment of the present application. Fig.13 As shown, the electronic device may include: one or more ( Fig.13 (only one is shown) processor 1302, memory 1304, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0154] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the charging pile fee payment method and device based on blockchain in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned charging pile fee payment method based on blockchain. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0155] The processor can call the information and application programs stored in the memory through the transmission device to execute the above steps in the above blockchain-based charging pile fee payment method.

[0156] By adopting the embodiment of the present application, a scheme for charging pile fee payment based on blockchain is provided. After detecting that the target user has completed charging on the charging pile, the charging bill of the target user is obtained; the charging bill is saved in the blockchain, and a payment instruction is generated according to the charging bill; the payment instruction is sent to the financial institution, so that the financial institution verifies the charging bill through the smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and the billing agreement signed by the target user; if the verification is passed, the charging bill is paid through the target account of the target user in the financial institution, which solves the problem that the payment process of the charging pile in the related technology depends on the third-party operator, the billing process is chaotic, and the customer's funds are low in security. In this application, after detecting that the target user has completed charging on the charging pile, the charging bill of the target user will be obtained, the charging bill will be saved in the blockchain, and the payment instruction corresponding to the charging bill will be generated, and the generated payment instruction will be sent to the financial institution, and the financial institution verifies the charging bill through the smart contract in the blockchain. After the verification is passed, the amount corresponding to the charging bill is deducted from the target account of the target user in the financial institution to complete the payment, ensuring the safety of the payment process, thereby achieving the technical effect of improving the security of customer funds.

[0157] It can be understood by those skilled in the art that Fig.13 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.13 Different configurations are shown.

[0158] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0159] Example 4

[0160] The embodiment of the present application also provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the blockchain-based charging pile fee payment method provided in the first embodiment.

[0161] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0162] Optionally, in this embodiment, the storage medium is configured to store program code for executing a blockchain-based charging pile fee payment method.

[0163] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of a blockchain-based charging pile fee payment method.

[0164] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0165] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0169] If the integrated unit is implemented in the form of 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, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0170] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A charging pile fee payment method based on blockchain, characterized in that: include: After detecting that the target user has completed charging on the charging pile, obtaining the charging bill of the target user; The charging bill is saved in the blockchain, and a payment instruction is generated according to the charging bill; Sending the payment instruction to a financial institution so that the financial institution verifies the charging bill through a smart contract in the blockchain, wherein the smart contract is created based on the payment agreement and billing agreement signed by the target user; If the verification is successful, the charging bill is paid through the target user's target account in the financial institution.

2. The method according to claim 1, characterized in that Before the charging pile detects that the target user has completed charging, the method further includes: After the charging pile detects that the target user is using the charging pile for the first time, a request to register a new user and sign a billing agreement is sent to the target user; After detecting that the target user has completed the registration of a new user and signed a billing agreement, collecting user information of the target user; Encrypting the user information, and transmitting the encrypted user information and the billing agreement to the charging cloud platform; After receiving the encrypted user information and the billing agreement, the charging cloud platform creates an information file for the target user in a database, decrypts the encrypted user information and stores it in the information file together with the billing agreement; After detecting that the information file of the target user exists in the database of the charging cloud platform, the charging pile is controlled to start charging.

3. The method according to claim 2, characterized in that Before the charging pile detects that the target user has completed charging, the method includes: After the charging pile detects that the user information of the target user is not bound to the customer information of the financial institution, the charging cloud platform calls the account opening service through the interface provided by the financial institution; Sending the information file of the target user in the database to the financial institution through the charging cloud platform; When it is detected that the financial institution has passed the review of the user information in the information file of the target user, the financial institution opens a target account for the target user and allocates a unique target account number to the target account; After the charging cloud platform receives the information that the target account of the target user has been successfully opened, the charging cloud platform submits a request for signing a payment agreement to the target user; After detecting that the target user has completed signing the payment agreement, the charging pile is controlled to start charging.

4. The method according to claim 3, characterized in that After detecting that the target user has completed signing the payment agreement and controlling the charging pile to start charging, the method includes: Creating a smart contract based on the payment agreement and the billing agreement signed by the target user; Submit the smart contract to the financial institution for review, and after detecting that the financial institution has approved the smart contract, encapsulate the smart contract into a smart contract transaction; The smart contract transaction is submitted to the blockchain, and the consensus nodes in the blockchain network will verify the smart contract transaction according to a preset consensus algorithm. After the verification is passed, the smart contract corresponding to the smart contract transaction will be deployed to the blockchain.

5. The method according to claim 4, characterized in that Saving the charging bill in the blockchain and generating a payment instruction based on the charging bill include: Retrieving the billing agreement in the charging cloud platform through the charging pile, and generating the charging bill according to the billing agreement and charging information; The charging bill is formatted and encrypted by the charging pile to obtain an encrypted charging bill; By packaging the encrypted charging bill into a charging bill transaction, broadcasting the charging bill transaction to the blockchain network; The charging bill transaction is verified by the nodes of the blockchain network according to a consensus mechanism. After the verification is passed, the charging bill transaction is packaged into a block in the blockchain to form a charging bill record in the blockchain; After detecting that the charging bill is successfully saved in the blockchain, the charging bill is synchronized to the information file of the target user in the database of the charging cloud platform through the charging pile; After the charging cloud platform receives the charging bill, a payment instruction is generated according to the payment agreement.

6. The method according to claim 5, characterized in that If the verification is successful, before the target user completes payment of the charging bill in the target account of the financial institution, the method includes: sending the payment instruction to the financial institution; The financial institution calls the smart contract in the blockchain and uses the smart contract to check whether the charging bill complies with the charging rules preset in the charging agreement; If the charging bill complies with the preset charging rules, the smart contract is used to verify whether the target user meets the payment conditions in the payment agreement; If the target user meets the payment condition, the charging bill is paid through the target user's target account in the financial institution.

7. The method according to claim 6, characterized in that If the target user meets the payment conditions, the charging bill is paid through the target user's contracted account at the financial institution, including: When the financial institution detects that the target user meets the payment conditions, a deduction instruction is sent to the agent business system through the financial institution; After the agent service system receives the deduction instruction, the amount on the charging bill is deducted from the target account of the target user; After detecting that the agency business system has completed the deduction, the payment information is recorded in the financial institution, and a payment confirmation signal is sent to the charging cloud platform through the blockchain; After the charging cloud platform receives the payment confirmation signal, it confirms that the payment is completed.

8. A charging pile fee payment device based on blockchain, characterized in that: include: An acquisition unit, configured to acquire a charging bill of the target user after detecting that the target user has completed charging on the charging pile; A generating unit, configured to save the charging bill into a blockchain and generate a payment instruction according to the charging bill; A first sending unit, configured to send the payment instruction to a financial institution, so that the financial institution verifies the charging bill through a smart contract in the blockchain, wherein the smart contract is created based on a payment agreement and a billing agreement signed by the target user; The first payment unit is configured to complete payment of the charging bill through the target account of the target user in the financial institution if the verification is passed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the blockchain-based charging pile fee payment method described in any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor for running the program, wherein the program, when running, executes the blockchain-based charging pile fee payment method described in any one of claims 1 to 7.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by the processor, the steps of the blockchain-based charging pile fee payment method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Charging pile billing method and device based on blockchain

    CN108537969A

  • Charging pile charging system based on block chain

    CN108932617A

  • Automobile intelligent management method and system based on block chain

    CN110020842A

  • Vehicle charging fee collection method and device

    CN110349347A

  • Charging pile operation method, device and system based on block chain

    CN111768189A

Cited By

  • Charging pile data management method and system

    CN121146602A