Charging pile non-inductive payment method, device and equipment, storage medium and program product
Patent Information
- Application Number
- CN202610646180.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-11
- Publication Date
- 2026-09-29
AI Technical Summary
[0004]但是,发明人发现相关技术至少存在如下技术问题:由于支付数据存储于运营商的中心化数据库中,跨平台结算需人工对账,耗时数小时甚至数天,因此支付效率较低
[0024]本申请实施例提供的充电桩无感支付方法、装置、设备、存储介质及程序产品,该方法包括:在充电桩对目标车辆进行充电的过程中,通过充电桩按预设周期读取目标车辆的充电参数;对充电参数进行哈希处理,得到固定长度的哈希值,将哈希值添加时间戳后写入区块链;响应于目标车辆充电结束,从区块链中调取各个时间戳的哈希值,对各个时间戳的哈希值进行完整性验证;若各个时间戳的哈希值的完整性验证成功,则根据充电参数生成支付信息,并根据支付信息完成支付。在本申请实施例中,由于通过充电桩实时读取目标车辆的充电参数并上链存证,确保充电数据的不可篡改性,确保生成的支付信息的可靠性,并且,本申请可以实现充电参数的采集、上传、验证以及支付信息的生成的自动化处理,因此提高了车辆充电的支付效率和支付安全性。
Smart Images

Figure CN122840938A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging pile technology, and in particular to a method, device, equipment, storage medium and program product for contactless payment of charging piles. Background Technology
[0002] With the increasing popularity of new energy vehicles, charging stations, as core infrastructure for energy replenishment, directly impact user experience and operating costs due to their payment and settlement efficiency. In shared charging station operation scenarios, users complete charging reservations, activation, and payment through applications or mini-programs.
[0003] In related technologies, charging pile payments mainly rely on centralized systems. Users need to manually complete the payment operation through an application or mini-program. The process includes: binding vehicle information when charging starts, and manually confirming the fee and selecting the payment method after charging ends.
[0004] However, the inventors discovered that the relevant technology has at least the following technical problems: since payment data is stored in the operator's centralized database, cross-platform settlement requires manual reconciliation, which takes several hours or even days, resulting in low payment efficiency. Summary of the Invention
[0005] This application provides a method, apparatus, device, storage medium, and program product for contactless payment of charging piles, in order to improve the payment efficiency of vehicle charging.
[0006] In a first aspect, embodiments of this application provide a contactless payment method for charging piles, including:
[0007] During the charging process of the charging pile to charge the target vehicle, the charging parameters of the target vehicle are read by the charging pile at a preset cycle.
[0008] The charging parameters are hashed to obtain a hash value of fixed length. The hash value is then added with a timestamp and written to the blockchain.
[0009] In response to the completion of charging of the target vehicle, the hash values of each timestamp are retrieved from the blockchain, and the integrity of each timestamp's hash value is verified.
[0010] If the integrity verification of the hash values of each timestamp is successful, payment information is generated based on the charging parameters, and payment is completed based on the payment information.
[0011] In one possible implementation, the charging parameters include charging power, charging voltage, charging current, and battery level information. The charging parameters of the target vehicle are read from the charging pile at preset intervals, including: reading the charging power of the target vehicle at preset intervals using the charging pile's power sensor, the charging voltage of the target vehicle at preset intervals using the charging pile's voltage sensor, the charging current of the target vehicle at preset intervals using the charging pile's current sensor, and the battery level information of the target vehicle at preset intervals using the charging pile's battery level sensor. Correspondingly, the charging parameters are hashed to obtain a fixed-length hash value. Before adding a timestamp to the hash value and writing it to the blockchain, the method further includes: performing consistency verification on the charging power, charging voltage, charging current, and battery level information in the charging parameters using a cross-validation algorithm.
[0012] In one possible implementation, a cross-validation algorithm is used to verify the consistency of charging power, charging voltage, charging current, and battery charge information in the charging parameters. This includes: determining the first charging power corresponding to the target vehicle based on the product of the charging voltage and the charging current; determining the second charging power corresponding to the target vehicle based on the battery charge information, the battery rated capacity, and the charging time; and determining that the consistency verification passes if the first difference between the charging power in the charging parameters and the first charging power is less than a preset difference and the difference between the charging power in the charging parameters and the second charging power is less than a preset difference.
[0013] In one possible implementation, before the charging station charges the target vehicle, the method further includes: in response to a charging command for the target vehicle, obtaining vehicle identification information, first network address information, and first payment account information corresponding to the target vehicle through the communication contact of the charging station; obtaining second network address information and second payment account information corresponding to the target vehicle from the blockchain based on the vehicle identification information; verifying the first network address information and first payment account information based on the second network address information and second payment account information; if the verification is successful, making a prepayment based on the payment account information, obtaining vehicle battery information corresponding to the target vehicle from the blockchain based on the vehicle identification information, and configuring the charging parameters of the charging station based on the vehicle battery information.
[0014] In one possible implementation, the integrity of the hash value of each timestamp is verified, including: for each timestamp's hash value, obtaining the charging parameter corresponding to the timestamp; re-hashing the charging parameter to obtain a verification hash value of fixed length; if the verification hash value is the same as the timestamp's hash value, then the integrity verification of the hash parameter corresponding to the timestamp is determined to be successful.
[0015] In one possible implementation, generating payment information based on charging parameters includes: obtaining charging load information and / or charging time period information of the power grid; determining electricity price information based on the charging load information and / or charging time period information of the power grid; generating payment information based on the electricity price information and charging parameters; and after completing payment based on the payment information, the method further includes: allocating payment resources in the payment information according to preset revenue sharing rules.
[0016] Secondly, embodiments of this application provide a contactless payment device for charging piles, comprising:
[0017] The acquisition module is used to read the charging parameters of the target vehicle through the charging pile at a preset cycle during the charging process of the charging pile charging the target vehicle;
[0018] The writing module is used to perform hash processing on the charging parameters to obtain a hash value of fixed length, and then write the hash value into the blockchain after adding a timestamp.
[0019] The verification module is used to retrieve the hash values of each timestamp from the blockchain in response to the completion of charging of the target vehicle, and to perform integrity verification on the hash values of each timestamp.
[0020] The payment module is used to generate payment information based on the charging parameters and complete the payment based on the payment information if the integrity verification of the hash values of each timestamp is successful.
[0021] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0022] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0023] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0024] This application provides a method, apparatus, device, storage medium, and program product for contactless payment of charging piles. The method includes: during the charging process of a target vehicle by a charging pile, reading the charging parameters of the target vehicle at a preset cycle through the charging pile; hashing the charging parameters to obtain a hash value of fixed length, adding a timestamp to the hash value, and writing it to the blockchain; in response to the end of charging of the target vehicle, retrieving the hash values of each timestamp from the blockchain, and verifying the integrity of the hash values of each timestamp; if the integrity verification of the hash values of each timestamp is successful, generating payment information based on the charging parameters, and completing the payment based on the payment information. In this application embodiment, because the charging parameters of the target vehicle are read in real time by the charging pile and stored on the blockchain, the immutability of the charging data is ensured, and the reliability of the generated payment information is ensured. Furthermore, this application can automate the collection, uploading, verification of charging parameters, and generation of payment information, thus improving the payment efficiency and security of vehicle charging. Attached Figure Description
[0025] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0026] Figure 1 A flowchart illustrating a contactless payment method for charging piles provided in this application embodiment;
[0027] Figure 2 A flowchart illustrating another contactless payment method for charging piles provided in this application embodiment;
[0028] Figure 3 This is a schematic diagram of the structure of a contactless payment device for a charging pile provided in an embodiment of this application;
[0029] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0030] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0031] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0032] With the increasing popularity of new energy vehicles, charging stations, as core infrastructure for energy replenishment, directly impact user experience and operating costs due to their payment and settlement efficiency. In shared charging station operation scenarios, users complete charging reservations, activation, and payment through applications or mini-programs.
[0033] In related technologies, charging station payments mainly rely on centralized systems. Users need to manually complete the payment process through applications or mini-programs. The process includes: binding vehicle information when charging begins, and manually confirming the cost and selecting a payment method after charging ends. However, because payment data is stored in the operator's centralized database, cross-platform settlement requires manual reconciliation, which can take several hours or even days, resulting in low payment efficiency.
[0034] To address the aforementioned technical issues, the inventors propose the following technical concept: A smart contract-based contactless payment and multi-party dynamic revenue sharing system for charging stations is constructed using blockchain technology. This system utilizes the Internet of Things to collect charging data in real time and store it on the blockchain for verification. Combined with the automatic execution capabilities of smart contracts, the entire process from user identification and fee calculation to revenue sharing and settlement is automated, thereby solving problems such as cumbersome payment processes, low efficiency in cross-platform settlement, and data tampering risks in existing technologies.
[0035] The charging pile's contactless payment and multi-party dynamic revenue sharing system can include: a perception layer, a contract layer, and an application layer.
[0036] The system comprises several layers: The perception layer includes an IoT module integrated into the charging pile. This module collects charging parameters in real-time, such as vehicle identification information (e.g., VIN code), charging power, and battery level, and hashes these parameters onto the blockchain. The contract layer deploys revenue-sharing smart contracts that calculate charging fees based on preset electricity prices and implement cross-platform automatic settlement through preset revenue-sharing rules (e.g., 60% for the charging pile provider, 30% for the operator, and 10% for the power grid). The application layer allows clients to bind their vehicle's VIN code to their digital wallets for automatic payment.
[0037] Accordingly, the specific steps may include: First, during the charging process of the target vehicle at the charging station, the charging parameters of the target vehicle are read from the charging station at preset intervals; the charging parameters are hashed to obtain a hash value of fixed length, and a timestamp is added to the hash value before it is written to the blockchain. Then, in response to the completion of charging of the target vehicle, the hash values of each timestamp are retrieved from the blockchain, and the integrity of each timestamp's hash value is verified. Finally, if the integrity verification of each timestamp's hash value is successful, payment information is generated based on the charging parameters, and payment is completed based on the payment information.
[0038] In this embodiment, by reading the charging parameters of the target vehicle in real time through the charging pile and storing them on the blockchain, the immutability of the charging data is ensured, and the reliability of the generated payment information is ensured. Furthermore, this application can automate the collection, uploading, verification of charging parameters, and generation of payment information, thereby improving the payment efficiency and security of vehicle charging.
[0039] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0040] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0041] Figure 1 This is a flowchart illustrating a contactless payment method for charging piles provided in an embodiment of this application. Figure 1 As shown, the method includes:
[0042] S101. During the charging process of the charging pile to the target vehicle, the charging parameters of the target vehicle are read by the charging pile at a preset cycle.
[0043] In this embodiment, the charging pile can be a shared charging pile used to charge vehicles. The target vehicle can be an electric vehicle, an electric bicycle, or other electric vehicle.
[0044] In some embodiments, the charging parameters of the target vehicle include charging power, charging voltage, charging current, and battery power information. Accordingly, reading the charging parameters of the target vehicle through the charging pile at a preset cycle includes: reading the charging power of the target vehicle through the power sensor of the charging pile at a preset cycle, reading the charging voltage of the target vehicle through the voltage sensor of the charging pile at a preset cycle, reading the charging current of the target vehicle through the current sensor of the charging pile at a preset cycle, and reading the battery power information of the target vehicle through the battery power sensor of the charging pile at a preset cycle.
[0045] It should be noted that the duration of the preset period is not specifically limited in this embodiment. Optionally, the duration of the preset period can be 15 seconds, 30 seconds, or 1 minute.
[0046] Optionally, the battery power information includes the battery power level read last time, the battery power level read this time, and the battery capacity of the target vehicle.
[0047] For example, the charging power of the target vehicle is read as 280 kW by the power sensor of the charging pile, the charging voltage of the target vehicle is read as 400V by the voltage sensor of the charging pile, the charging current of the target vehicle is read as 700A by the current sensor of the charging pile, and the battery power information of the target vehicle is read by the battery power sensor of the charging pile, including the battery power of the previously read battery power of 24.8% and the battery power of the current read battery power of 25.8%.
[0048] It should be noted that, in order to ensure the accuracy of the read charging parameters, a consistency check can be performed on the charging parameters before hashing them and writing them into the blockchain.
[0049] In some embodiments, a cross-validation algorithm is used to verify the consistency of charging power, charging voltage, charging current, and battery power information in the charging parameters.
[0050] Optionally, a cross-validation algorithm is used to verify the consistency of charging power, charging voltage, charging current, and battery capacity information in the charging parameters. This includes: determining a first charging power corresponding to the target vehicle based on the product of the charging voltage and charging current; determining a second charging power corresponding to the target vehicle based on the battery capacity information, battery rated capacity, and charging time; and determining that the consistency verification passes if a first difference between the charging power in the charging parameters and the first charging power is less than a preset difference, and the difference between the charging power in the charging parameters and the second charging power is less than a preset difference. In this embodiment, the value of the preset difference is not specifically limited. Optionally, the preset difference can be 10, 20, or 30 kilowatts, etc.
[0051] Optionally, based on battery power information, battery rated capacity, and charging time, the second charging power corresponding to the target vehicle is determined as (change in battery power × battery rated capacity) / charging time.
[0052] In this embodiment, the value of the preset difference is not specifically limited. Optionally, the preset difference may be 10% of the charging power in the charging parameters.
[0053] For example, the charging pile reads the target vehicle's charging power as 245 kW, charging voltage as 400V, charging current as 600A, and battery capacity information including: the previously read battery capacity of 24.8% and the currently read battery capacity of 25.8%. The preset difference can be 10% of the charging power in the charging parameters, i.e., 24.5 kW. Specifically, based on the product of the charging voltage and charging current, the first charging power corresponding to the target vehicle is determined to be 240 kW. At this time, the first difference (5 kW) between the charging power in the charging parameters and the first charging power is less than the preset difference. Specifically, based on the battery capacity information, the battery rated capacity of 100 kWh, and the charging time t of 15 seconds, the second charging power corresponding to the target vehicle is determined to be: (Battery capacity change × Battery rated capacity) / Charging time = 240 kW. At this time, the difference (5 kW) between the charging power in the charging parameters and the second charging power is less than the preset difference. At this point, if the first difference between the charging power in the charging parameters and the first charging power is less than a preset difference, and the difference between the charging power in the charging parameters and the second charging power is less than a preset difference, then the consistency check is considered to have passed.
[0054] It should be noted that if the first difference between the charging power in the charging parameters and the first charging power is greater than or equal to the preset difference, the consistency check is determined to fail; or, if the difference between the charging power in the charging parameters and the second charging power is greater than or equal to the preset difference, the consistency check is determined to fail. In this case, the charging parameters of the target vehicle can be read again and a second verification can be performed. If the consistency check still fails, check whether the sensors of the charging pile are abnormal.
[0055] In some embodiments, prepayment is made before the charging station charges the target vehicle using a prepaid model. After charging is completed, revenue is automatically distributed among the operator, charging station provider, power grid provider, and vehicle owner (refund) according to preset revenue-sharing rules. Optionally, such as Figure 2 As shown, before the charging station charges the target vehicle, the method further includes:
[0056] S1011. In response to a charging command for the target vehicle, obtain the vehicle identification information, first network address information, and first payment account information corresponding to the target vehicle through the communication contact of the charging pile.
[0057] Optionally, the vehicle identification information may be the vehicle VIN code, the first network address information may be the MAC address of the target vehicle, and the first payment account information may be the payment account information entered by the user, such as the digital wallet account or bank card account entered by the user.
[0058] S1012. Based on the vehicle identification information, obtain the second network address information and the second payment account information corresponding to the target vehicle from the blockchain, and verify the first network address information and the first payment account information based on the second network address information and the second payment account information.
[0059] Optionally, when a vehicle is first linked to a payment account, the vehicle identification information, network address information, payment account information, and vehicle battery information can be stored in the blockchain. During vehicle charging, the second network address information and second payment account information of the target vehicle can be retrieved from the blockchain based on the vehicle identification information. These are then compared with the first network address information and first payment account information obtained through the communication contact point of the charging station. If they match, the verification passes; otherwise, the verification fails.
[0060] In this embodiment of the application, the security of charging payment is improved by performing multiple verifications based on vehicle identification information, vehicle network address information, and payment account before charging the target vehicle.
[0061] S1013. If the verification is successful, prepayment will be made based on the payment account information, and the vehicle battery information corresponding to the target vehicle will be obtained from the blockchain based on the vehicle identification information. The charging parameters of the charging pile will be configured based on the vehicle battery information.
[0062] Optionally, the vehicle battery information includes one or more of the following: battery capacity, rated battery power, maximum charging power, rated battery voltage, maximum charging voltage, rated battery current, and maximum charging current. Optionally, if verification fails, a charging failure message is displayed.
[0063] In some embodiments, configuring the charging parameters of the charging pile according to the vehicle battery information includes: configuring the charging current of the charging pile to charge the target vehicle according to the battery rated current, and configuring the charging voltage of the charging pile to charge the target vehicle according to the battery rated voltage.
[0064] S102. Perform hash processing on the charging parameters to obtain a hash value of fixed length, add a timestamp to the hash value and write it into the blockchain.
[0065] In this embodiment of the application, the charging parameters can be hashed using a hash algorithm to obtain a hash value of fixed length.
[0066] Optionally, this step includes: converting the charging parameters into a standardized JSON string, converting the standardized JSON string into a fixed-length hash value using a hash algorithm, and writing the hash value to the blockchain after adding a timestamp and index information. The index information can be either a charging order number or vehicle identification information.
[0067] S103. In response to the completion of charging of the target vehicle, retrieve the hash values of each timestamp from the blockchain and perform integrity verification on the hash values of each timestamp.
[0068] In this embodiment of the application, the hash value of each timestamp can be retrieved from the blockchain using index information.
[0069] In some embodiments, the hash values of each timestamp are retrieved from the blockchain and are consistent with the verification hash values regenerated from the retrieved original data. Accordingly, integrity verification is performed on the hash values of each timestamp, including: obtaining the charging parameters corresponding to each timestamp for the hash value; rehashing the charging parameters to obtain a verification hash value of fixed length; if the verification hash value is the same as the hash value of the timestamp, then the integrity verification of the hash parameters corresponding to the timestamp is determined to be successful.
[0070] In this embodiment of the application, if the hash value of each timestamp passes the integrity verification, it means that the charging parameters have not been modified. This can ensure the authenticity of the charging parameters and thus improve the security of the generated payment information.
[0071] S104. If the integrity verification of the hash value of each timestamp is successful, then generate payment information according to the charging parameters and complete the payment according to the payment information.
[0072] Optionally, payment information is generated based on charging parameters, including: obtaining charging load information and / or charging time period information of the power grid; determining electricity price information based on the charging load information and / or charging time period information of the power grid; and generating payment information based on the electricity price information and charging parameters.
[0073] Optionally, the payment information may include one or more of the following: total charging amount, electricity price information, payment account identifier, and payment completion status.
[0074] Optionally, the charging load information of the power grid includes a first load state and a second load state; wherein the charging load in the first load state is greater than the charging load in the second load state. The electricity price information corresponding to the first load state is higher than the electricity price information corresponding to the second load state.
[0075] In some embodiments, after payment is completed through a payment account linked to vehicle identification information, the method further includes: allocating payment resources in the payment information according to preset revenue sharing rules.
[0076] Optionally, the preset revenue sharing rules include one or more of the following: the revenue sharing ratio for each participant, the revenue sharing priority for each participant, the fund transfer path for each participant, and the revenue sharing triggering condition. The fund transfer path includes: revenue sharing funds are instantly transferred to the designated accounts of each participant via a cross-chain bridge. The revenue sharing triggering condition can be the completion of vehicle charging.
[0077] For example, the preset revenue sharing rules include the revenue sharing ratios for each participating party: 60% for the charging pile provider, 30% for the operator, and 10% for the power grid provider. At this time, according to the preset revenue sharing rules, the payment resources in the payment information are allocated to achieve automatic settlement across platforms.
[0078] It should be noted that the payment account linked to the vehicle identification information can be a digital account or a bank card account. Payment can then be completed through the payment account linked to the vehicle identification information, following a preset payment sequence.
[0079] For example, you can pay through your digital account first, and if the balance is insufficient, it will automatically switch to your linked bank card account to complete the payment.
[0080] In some embodiments, after allocating payment resources in the payment information according to preset revenue sharing rules, revenue sharing record information can also be generated. This revenue sharing record information includes one or more of the following: total revenue sharing amount, revenue sharing ratio of each participant, revenue sharing amount of each participant, revenue sharing time of each participant, and revenue sharing completion status of each participant.
[0081] The contactless payment method for charging piles provided in this application embodiment involves reading the charging parameters of the target vehicle at preset intervals during the charging process. The charging parameters are hashed to obtain a fixed-length hash value, which is then timestamped and written to the blockchain. Upon completion of charging, the hash values of each timestamp are retrieved from the blockchain, and their integrity is verified. If the integrity verification of each timestamp's hash value is successful, payment information is generated based on the charging parameters, and payment is completed accordingly. In this application embodiment, by reading the target vehicle's charging parameters in real time and storing them on the blockchain, the immutability of the charging data and the reliability of the generated payment information are ensured. Furthermore, this application automates the collection, uploading, verification, and generation of charging parameters and payment information, thus improving the efficiency and security of vehicle charging payments.
[0082] Figure 3 This is a schematic diagram of the structure of a contactless payment device for a charging pile, provided as an embodiment of this application. Figure 3 As shown, the evaluation device includes:
[0083] The acquisition module 301 is used to read the charging parameters of the target vehicle through the charging pile at a preset cycle during the charging process of the charging pile charging the target vehicle.
[0084] The writing module 302 is used to perform hash processing on the charging parameters to obtain a hash value of fixed length, and then write the hash value to the blockchain after adding a timestamp.
[0085] The verification module 303 is used to retrieve the hash values of each timestamp from the blockchain in response to the end of charging of the target vehicle, and to perform integrity verification on the hash values of each timestamp.
[0086] The payment module 304 is used to generate payment information based on the charging parameters and complete the payment based on the payment information if the integrity verification of the hash values of each timestamp is successful.
[0087] In one possible implementation, the charging parameters include charging power, charging voltage, charging current, and battery power information. The acquisition module 301 reads the charging parameters of the target vehicle through the charging pile at a preset cycle, including: reading the charging power of the target vehicle through the power sensor of the charging pile at a preset cycle, reading the charging voltage of the target vehicle through the voltage sensor of the charging pile at a preset cycle, reading the charging current of the target vehicle through the current sensor of the charging pile at a preset cycle, and reading the battery power information of the target vehicle through the battery power sensor of the charging pile at a preset cycle.
[0088] Accordingly, the device also includes a consistency verification module, which is used to perform consistency verification on the charging power, charging voltage, charging current and battery power information in the charging parameters through a cross-validation algorithm.
[0089] In one possible implementation, the consistency verification module performs consistency verification on the charging power, charging voltage, charging current, and battery power information in the charging parameters using a cross-validation algorithm. This includes: determining the first charging power corresponding to the target vehicle based on the product of the charging voltage and the charging current; determining the second charging power corresponding to the target vehicle based on the battery power information, the battery rated capacity, and the charging time; and determining that the consistency verification passes if the first difference between the charging power in the charging parameters and the first charging power is less than a preset difference and the difference between the charging power in the charging parameters and the second charging power is less than a preset difference.
[0090] In one possible implementation, the device further includes: a configuration module, configured to, in response to a charging command for a target vehicle, obtain vehicle identification information, a first network address, and a first payment account information corresponding to the target vehicle through a communication contact of the charging pile; obtain second network address information and second payment account information corresponding to the target vehicle from the blockchain based on the vehicle identification information; verify the first network address information and the first payment account information based on the second network address information and the second payment account information; if the verification is successful, make a prepayment based on the payment account information; and obtain vehicle battery information corresponding to the target vehicle from the blockchain based on the vehicle identification information, and configure the charging parameters of the charging pile based on the vehicle battery information.
[0091] In one possible implementation, the verification module 303 performs integrity verification on the hash values of each timestamp, including: obtaining the charging parameters corresponding to each timestamp for the hash value of each timestamp; re-hashing the charging parameters to obtain a verification hash value of fixed length; if the verification hash value is the same as the hash value of the timestamp, then the integrity verification of the hash parameter corresponding to the timestamp is determined to be successful.
[0092] In one possible implementation, the payment module 304 generates payment information based on charging parameters, including: obtaining charging load information and / or charging time period information of the power grid; determining electricity price information based on the charging load information and / or charging time period information of the power grid; and generating payment information based on the electricity price information and charging parameters. The payment module 304 is also used to allocate payment resources in the payment information according to preset revenue sharing rules.
[0093] The contactless payment device for charging piles provided in this application ensures the immutability of charging data and the reliability of generated payment information by reading the charging parameters of the target vehicle in real time through the charging pile and storing them on the blockchain. Furthermore, this application can automate the collection, uploading, verification of charging parameters, and generation of payment information, thereby improving the payment efficiency and security of vehicle charging.
[0094] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0095] To implement the above embodiments, this application also provides an electronic device.
[0096] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device 40 may include at least one processor 401 and a memory 402, and in one possible implementation, it may also include a communication interface 403.
[0097] The memory 402 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions.
[0098] Memory 402 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0099] The processor 401 is used to execute computer execution instructions stored in the memory 402 to implement the method described in the foregoing method embodiments. The processor 401 may be a CPU, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0100] Optionally, the processor 401 can communicate and interact with external devices via the communication interface 403. When the electronic device is a device or cloud platform used to provide operating instructions to intelligent operating devices, the external device mentioned here may be, for example, the intelligent operating device.
[0101] In practical implementation, if the communication interface 403, memory 402, and processor 401 are implemented independently, they can be interconnected via a bus to complete communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc., but this does not imply that there is only one bus or one type of bus.
[0102] Optionally, in a specific implementation, if the communication interface 403, memory 402 and processor 401 are integrated on a single chip, then the communication interface 403, memory 402 and processor 401 can communicate through an internal interface.
[0103] This application also provides a computer-readable storage medium, which may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a disk, or an optical disk. Specifically, the computer-readable storage medium stores program instructions, which are used to implement the contactless payment method for charging piles in the above embodiments.
[0104] This application also provides a computer program product, which includes a computer program that, when executed by a processor, is used to implement the contactless payment method for charging piles in the above embodiments.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A contactless payment method for charging stations, characterized in that, include: During the charging process of the charging pile to charge the target vehicle, the charging parameters of the target vehicle are read by the charging pile at a preset cycle; The charging parameters are hashed to obtain a hash value of fixed length, and the hash value is then written into the blockchain after being timestamped. In response to the completion of charging of the target vehicle, the hash values of each timestamp are retrieved from the blockchain, and the integrity of each timestamp's hash value is verified. If the integrity verification of the hash values of each timestamp is successful, payment information is generated based on the charging parameters, and payment is completed based on the payment information.
2. The method according to claim 1, characterized in that, The charging parameters include charging power, charging voltage, charging current, and battery capacity information. The step of reading the charging parameters of the target vehicle through the charging pile at preset intervals includes: The charging power of the target vehicle is read by the power sensor of the charging pile at a preset period, the charging voltage of the target vehicle is read by the voltage sensor of the charging pile at a preset period, the charging current of the target vehicle is read by the current sensor of the charging pile at a preset period, and the battery power information of the target vehicle is read by the battery power sensor of the charging pile at a preset period. Accordingly, before hashing the charging parameters to obtain a fixed-length hash value, and before adding a timestamp to the hash value and writing it into the blockchain, the method further includes: The charging power, charging voltage, charging current, and battery power information in the charging parameters are verified for consistency using a cross-validation algorithm.
3. The method according to claim 2, characterized in that, The consistency verification of the charging power, charging voltage, charging current, and battery capacity information in the charging parameters using a cross-validation algorithm includes: The first charging power corresponding to the target vehicle is determined based on the product of the charging voltage and the charging current. Based on the battery power information, battery rated capacity, and charging time, determine the second charging power corresponding to the target vehicle; If the first difference between the charging power in the charging parameters and the first charging power is less than a preset difference, and the difference between the charging power in the charging parameters and the second charging power is less than a preset difference, then the consistency check is determined to be successful.
4. The method according to claim 1, characterized in that, Before the charging station charges the target vehicle, the method further includes: In response to a charging command for a target vehicle, the vehicle identification information, first network address information, and first payment account information corresponding to the target vehicle are obtained through the communication contacts of the charging pile. Based on the vehicle identification information, the second network address information and the second payment account information corresponding to the target vehicle are obtained from the blockchain. Based on the second network address information and the second payment account information, the first network address information and the first payment account information are verified. If the verification is successful, a prepayment is made based on the payment account information, and the vehicle battery information corresponding to the target vehicle is obtained from the blockchain based on the vehicle identification information. The charging parameters of the charging pile are then configured based on the vehicle battery information.
5. The method according to claim 1, characterized in that, The integrity verification of the hash values of each timestamp includes: For each timestamp's hash value, obtain the charging parameters corresponding to that timestamp; The charging parameters are re-hashed to obtain a verification hash value of fixed length; If the verification hash value is the same as the hash value of the timestamp, then the integrity verification of the hash parameter corresponding to the timestamp is determined to be successful.
6. The method according to claim 1, characterized in that, The step of generating payment information based on the charging parameters includes: Obtain charging load information and / or charging time period information from the power grid; Electricity price information is determined based on the charging load information and / or charging time period information of the power grid; Payment information is generated based on the electricity price information and the charging parameters; After completing the payment based on the payment information, the method further includes: allocating the payment resources in the payment information according to preset revenue sharing rules.
7. A contactless payment device for charging piles, characterized in that, include: The acquisition module is used to read the charging parameters of the target vehicle through the charging pile at a preset cycle during the charging process of the charging pile charging the target vehicle; The writing module is used to perform hash processing on the charging parameters to obtain a hash value of fixed length, and then write the hash value into the blockchain after adding a timestamp. The verification module is used to retrieve the hash values of each timestamp from the blockchain in response to the completion of charging of the target vehicle, and to perform integrity verification on the hash values of each timestamp. The payment module is used to generate payment information based on the charging parameters and complete the payment based on the payment information if the integrity verification of the hash values of each timestamp is successful.
8. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the contactless payment method for charging piles as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the contactless payment method for charging piles as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the contactless payment method for charging piles as described in any one of claims 1 to 6.