A charging order charging fee generation method, electronic device and storage medium

Through the integration of real-time power data of charging orders with data back-passed by infrastructure operators and time period adjustment, the problem of mismatch in power segments in charging systems is solved, accurate charging cost calculation and bill processing is achieved, and the system is improved stability and user experience.

CN114663082BActive Publication Date: 2024-12-13BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210299518.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-01
Publication Date
2024-12-13
Estimated Expiration
2040-04-01

AI Technical Summary

Technical Problem

In the existing charging system, the power data returned by the infrastructure operator platform cannot adapt to the requirements of the customer's accession operator based on time segmentation, resulting in difficulty in calculating charging fees, and the bill cannot be accurately calculated when the unit price of both parties is inconsistent, which affects the user's bill processing. .

Method used

By obtaining the real-time charging power of the charging order and the power data returned by the infrastructure operator, the power is fused, and the time period is adjusted to match the time segments to generate accurate charging cost data.

Benefits of technology

The accuracy of charging capacity data based on time segments is achieved, which meets the needs of customers' attributable operators, ensures the accuracy and consistency of charging fee calculations, and improves the success rate of bill processing, especially in abnormal scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114663082B_ABST
    Figure CN114663082B_ABST
Patent Text Reader

Abstract

The embodiments of the present specification disclose a method for generating charging fees for a charging order, an electronic device, and a storage medium, including: generating a charging order in response to a charging request, obtaining real-time charging power of the charging order during the charging process of the charging order, and forming first power data based on time segments; using the feedback power data about the charging order sent back by the infrastructure operator as the second power data; using the time period included in two adjacent archiving moments as the archiving time period; adjusting the previous feedback moment and the subsequent feedback moment of each feedback time period to be consistent with the previous archiving moment or the subsequent archiving moment of at least one archiving time period; obtaining third power data based on the archiving segment charging power corresponding to the archiving time period and the feedback segment charging power corresponding to the adjusted feedback time period; and generating the charging fee for the charging order based on the third power data.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description of the case

[0002] This application is a divisional application filed for the Chinese application with an application date of April 1, 2020, application number 202010251970.4, and invention name “A method for generating charging fees for charging orders, an electronic device and a storage medium”. Technical Field

[0003] The present invention relates to the technical field of automobiles, and in particular to a method for generating charging fees for a charging order, an electronic device, and a storage medium. Background Art

[0004] At present, mainstream charging mainly involves the system interaction of charging piles, infrastructure operator platforms, and customer-owned operator platforms. The relationship between the three is that users complete operations on the customer-owned operator platform, the customer-owned operator platform interacts with the infrastructure operator platform, and the infrastructure operator platform interacts with the piles. After the final charging is completed, the infrastructure operator platform will call back the bill to the customer-owned operator platform. Among them, users refer to users who use electric vehicle infrastructure for energy replenishment services. Infrastructure operators refer to operators that provide electric vehicle infrastructure services. Customer-owned operators refer to operators where users register and join the network, providing users with account management, information management, and customer service support. Bill callback refers to the process in which the infrastructure operator sends charging bill information (including fees, power consumption, charging time, etc.) to the customer-owned operator after the user has finished charging.

[0005] The most important aspect of a charging bill is the segmented energy consumption from the start to the end of charging, divided by the hour or half-hour. Segmented energy refers to the amount of energy consumed in each segment, divided by the half-hour or full-hour, from the start to the end of a single charge. Segmented energy breaks down the total charge into its smallest granularity and plays a key role in subsequent bill calculation. For example, if a charging order starts charging from 2019-11-16 14:41:40 to 2019-11-16 16:05:40, it needs to be clearly divided into: (1) 2019-11-16 14:41:40 to 2019-11-16 15:00:00, (2) 2019-11-16 15:00:00 to 2019-11-16 15:30:00, (3) 2019-11-16 15:30:00 to 2019-11-16 16:00:00, and (4) 2019-11-16 16:00:00 to 2019-11-16 16:05:40. What is the power consumption of each of the four segments?

[0006] However, in actual production, due to factors such as charging piles being offline or reporting delays, the infrastructure operator platform may not necessarily have segmented power. On the other hand, in order to meet operational needs, the customer-owned operator will set different charging fees for different charging time periods. Therefore, the charging fees may be inconsistent in different time periods. For example, the charging fees may be inconsistent before and after half past midnight. Therefore, the customer-owned operator needs to obtain accurate segmented power based on time segments, which is the basis for calculating charging fees.

[0007] Currently, the solution to this problem is usually to use the infrastructure operator platform as the basis for billing and the fees are also based on the calculation results of the infrastructure operator platform. However, this solution has the following problems:

[0008] 1. Because the power data transmitted by infrastructure operators is segmented based on charging power, it cannot meet the time segmentation requirements of the customer-owned operator, making it difficult for the customer-owned operator to adjust charging fees based on time segmentation;

[0009] 2. If the unit prices of both parties are different, the customer's carrier platform cannot calculate the bill;

[0010] 3. When the infrastructure operator platform fails to calculate bills due to abnormalities, it will directly affect users. Summary of the Invention

[0011] One or more embodiments of the present specification provide a method for generating charging fees for a charging order, the method comprising: generating a charging order in response to a charging request, obtaining real-time charging power of the charging order during the charging process of the charging order, and forming first power data based on time segments, wherein the first power data includes each archived charging power and the corresponding archiving time; if the feedback power data about the charging order sent back by the infrastructure operator can be obtained, the feedback power data is used as second power data, wherein the second power data includes one or more feedback segmented charging powers and a feedback time period corresponding to each feedback segmented charging power; the time period included in two adjacent archiving moments is used as the archiving time period; adjusting the previous feedback time and the subsequent feedback time of each feedback time period to be consistent with the previous archiving time or the subsequent archiving time of at least one archiving time period; obtaining third power data based on the archived segment charging power corresponding to the archiving time period and the feedback segment charging power corresponding to the adjusted feedback time period; and generating the charging fee for the charging order based on the third power data.

[0012] One or more embodiments of the present specification provide an electronic device for generating charging fees for a charging order, the device comprising: at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: generate a charging order in response to a charging request, obtain the real-time charging power of the charging order during the charging process of the charging order, and form first power data based on time segments, wherein the first power data includes each archived charging power and the corresponding archiving time; if the information about the charging order sent back by the infrastructure operator can be obtained, The returned electricity data of the electricity order is used as the second electricity data, wherein the second electricity data includes one or more returned segmented charging electricity and a return time period corresponding to each of the returned segmented charging electricity; the time period included in two adjacent archiving moments is used as the archiving time period; the previous return time and the subsequent return time of each of the return time periods are adjusted to be consistent with the previous archiving time or the subsequent archiving time of at least one of the archiving time periods; the third electricity data is obtained based on the archiving segmented charging electricity corresponding to the archiving time period and the returned segmented charging electricity corresponding to the adjusted return time period; and the charging fee of the charging order is generated based on the third electricity data.

[0013] One or more embodiments of this specification provide a storage medium that stores computer instructions. When a computer executes the computer instructions, it is used to execute a method for generating charging fees for a charging order as described in any one of the above embodiments.

[0014] The present invention fuses first power data generated from the real-time charging power of charging orders with second power data transmitted back from infrastructure operators to obtain third power data based on time segments. Because the present invention fuses real-time charging power and data transmitted back from infrastructure operators, it can obtain accurate charging power data based on time segments. This ensures that the generated charging fees meet the time segmentation requirements of the customer's operator for charging power while ensuring data accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] This specification will be further described in the form of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not limiting, and in these embodiments, like numbers represent like structures, wherein:

[0016] Figure 1 This is a workflow diagram of a method for generating charging fees for a charging order according to the present invention;

[0017] Figure 2This is a flowchart of a method for generating charging fees for a charging order according to a second embodiment of the present invention;

[0018] Figure 3 This is a schematic diagram showing a comparison between a return time period and an archiving time period in a method for generating charging fees for charging orders according to a second embodiment of the present invention;

[0019] Figure 4 This is a hardware structure diagram of an electronic device for generating charging fees for charging orders according to the present invention. DETAILED DESCRIPTION

[0020] To more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly describes the drawings required for describing the embodiments. Obviously, the drawings described below are merely examples or embodiments of this specification. Those skilled in the art can apply this specification to other similar scenarios based on these drawings without inventive effort. Unless otherwise apparent from the context or otherwise noted, the same reference numerals in the figures represent the same structure or operation.

[0021] It should be understood that the terms "system," "device," "unit," and / or "module" used herein are a method for distinguishing different components, elements, parts, portions, or assemblies at different levels. However, if other terms can achieve the same purpose, the terms may be replaced by other expressions.

[0022] As used in this specification and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not refer to the singular but also include the plural. Generally speaking, the terms "comprises" and "include" only indicate the inclusion of the steps and elements specifically identified, and these steps and elements do not constitute an exclusive list. A method or apparatus may also include other steps or elements.

[0023] Flowcharts are used throughout this specification to illustrate the operations performed by systems according to embodiments of this specification. It should be understood that preceding or following operations do not necessarily need to be performed in exact order. Instead, the steps may be processed in reverse order or simultaneously. Furthermore, other operations may be added to these processes, or one or more operations may be removed from these processes.

[0024] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0025] Example 1

[0026] like Figure 1 The figure shows a workflow diagram of a method for generating charging fees for a charging order according to the present invention, including:

[0027] Step S101: generating a charging order in response to a charging request, and obtaining real-time charging power of the charging order during the charging process of the charging order to form first power data based on time segments;

[0028] Step S102: If the returned power data regarding the charging order from the infrastructure operator can be obtained, the returned power data is used as the second power data, and the first power data and the second power data are merged to obtain third power data based on time segments, where the second power data is based on the charging power segments;

[0029] Step S103: Generate the charging fee for the charging order based on the third power data.

[0030] Specifically, the present invention is primarily used in a client-owned operator platform server. When a user executes a charging request on the client-owned operator platform, step S101 is triggered. During the charging process, the real-time charge amount of the charging order is obtained in real time, and based on this real-time charge amount, first energy data based on time segments is generated. The time segments can be half-hour or hourly.

[0031] After the user completes charging, the infrastructure operator sends the returned power data of the charging order to the customer's home operator platform server, triggering step S102. The returned power data is used as the second power data, and the first power data and the second power data are merged to obtain the third power data. The third power data is based on time segments, which can be half-hour or hour segments. The second power data is based on power segments, which can be 5-degree or 10-degree segments.

[0032] Then, step S103 is executed. Since the third power data is time-segmented, the final charging fee can be determined based on the time-segmented power data. For example, the first unit price is used to calculate the charging fee for the first time period, and the second unit price is used to calculate the charging fee for the second time period. The sum of the charging fee for the first time period and the charging fee for the second time period is then calculated as the final charging fee for the charging order.

[0033] The present invention fuses first power data generated from the real-time charging power of charging orders with second power data transmitted back from infrastructure operators to obtain third power data based on time segments. Because the present invention fuses real-time charging power and data transmitted back from infrastructure operators, it can obtain accurate charging power data based on time segments. This ensures that the generated charging fees meet the time segmentation requirements of the customer's operator for charging power while ensuring data accuracy.

[0034] Example 2

[0035] like Figure 2 The flowchart of the second embodiment of the present invention is a method for generating charging fees for a charging order, including:

[0036] Step S201: generating a charging order in response to a charging request, and querying the real-time charging power of the charging order at a preset query time interval during the charging process of the charging order;

[0037] Step 202: If the current moment is an archiving moment, all real-time charging power before the current moment is aggregated as the archived charging power at the archiving moment;

[0038] Step S203: associate each archived charging power with the corresponding archiving time and save it as first power data;

[0039] Step S204: If the returned power data regarding the charging order from the infrastructure operator can be obtained, the returned power data is used as the second power data. The second power data is segmented based on the charging power. The second power data includes one or more returned charging power segments and a return time period corresponding to each returned charging power segment.

[0040] Step S205: taking the time period between two adjacent archiving moments as the archiving time period, and taking the difference between the archiving charging power corresponding to the later archiving moment and the archiving charging power corresponding to the earlier archiving moment in each archiving time period as the archiving segmented charging power corresponding to the archiving time period;

[0041] Step S206, adjusting the previous return time and the next return time of each return time period to be consistent with the previous filing time or the next filing time of at least one filing time period;

[0042] Step S207, calculating the backhaul segmented charging power corresponding to the adjusted backhaul time period;

[0043] Step S208, determining the archiving time period between the previous return time and the next return time in the return time period as the archiving time period included in the return time period;

[0044] Step S209: Based on the charging power of the archived segments corresponding to each of the archived time periods, determine the power ratio of each of the archived time periods as follows: the ratio of the charging power of the archived segments corresponding to the archived time period to the total charging power of the archived segments corresponding to all the archived time periods included in the return time period;

[0045] Step S210, determining the final segmented charging power of each archiving time period based on the power proportion of the archiving time period and the return segmented charging power of the corresponding return time period;

[0046] Step S211, associating each of the archived time periods with the corresponding final charging power and saving them as third power data;

[0047] Step S212: generating a charging fee for the charging order based on the third power data;

[0048] Step S213: If the second power data regarding the charging order transmitted back by the infrastructure operator is abnormal, the charging fee for the charging order is generated based on the first power data.

[0049] Specifically, steps S201 to S203 enable real-time querying of charging power. During the charging process, the customer's carrier can query the real-time power consumption of the order at preset intervals, for example, every minute. This can be achieved by using a scheduled task mechanism to save the power consumption of the order every minute, and then archive the real-time power consumption at half-hour or hourly intervals to generate the real-time power consumption at half-hour.

[0050] For example, if a charging order starts at 2019-11-16 14:41:40 and ends at 2019-11-16 16:05:40, it should be filed as:

[0051] 2019-11-16 14:41:40 0 degrees,

[0052] 2019-11-16 15:00:00 10 degrees,

[0053] 2019-11-16 15:30:00 20 degrees,

[0054] 2019-11-16 6:00:00 25 degrees,

[0055] 2019-11-16 16:05:40 28 degrees,

[0056] The number of degrees is the cumulative number of degrees charged at the current moment, which is recorded as the first power data. Each moment is a filing moment, and the time period between two adjacent filing moments is a filing time period.

[0057] Steps S204 to S212 perform power integration. During the bill callback phase, the bill sent back by the infrastructure operator is usually as follows:

[0058] 2019-11-16 4:41:40-2019-11-16 15:00:00 15 degrees,

[0059] 2019-11-16 15:00:00-2019-11-16 16:05:40 20 degrees,

[0060] The meter readings are segmented and recorded as the second power data. Each time period of the second power data is a return period, which includes the previous return time and the next return time. For example, in the return period 2019-11-16 14:41:40-2019-11-16, the previous return time is 2019-11-16 14:41:40 and the next return time is 2019-11-16.

[0061] The first and second power data have the following characteristics: the first power data is segmented by half a point, and the power may not be accurate; the second power data is accurate, but not strictly segmented by half a point. Taking the above two power data as an example, we can perform a proportional power segmentation operation on the first and second power data, with the goal of making the result as follows:

[0062] 2019-11-16 14:41:40-2019-11-16 15:00:00 15 degrees,

[0063] 2019-11-16 15:00:00-2019-11-16 15:30:00 11.11 degrees,

[0064] 2019-11-16 15:30:00-2019-11-16 16:00:00 5.56 degrees,

[0065] 2019-11-16 16:00:00-2019-11-16 16:05:40 3.33 degrees,

[0066] The degree is a segmented degree, recorded as the third power data. In the specific calculation process, the calculation process is detailed using 11.11 degrees from 2019-11-16 15:00:00 to 2019-11-16 15:30:00. According to the time matching, the power consumption from 15:00:00 to 16:05:40 in the first power data is 28-10 degrees, while the power consumption in the second power data is 20 degrees. Therefore, the allocation ratio for this period is 20 / (28-10). The power consumption in the first power data from 2019-11-16 15:00:00 to 2019-11-16 15:30:00 is (20-10), so the allocated degree is 20 / (28-10)*(20-10)=11.11.

[0067] like Figure 3As shown, since the second power data is based on the charging power segmentation, the previous return moments 311 and 312 of its corresponding return time period 31 may not be guaranteed to be consistent with the previous archiving moment 321 and the subsequent archiving moment 322 of the archiving time period 32 in the first power data based on time segmentation.

[0068] Therefore, steps S206 to S208 adjust the inconsistent return time periods to ensure that the previous return time and the subsequent return time of each adjusted return time period are consistent with the previous archiving time or the subsequent archiving time of at least one archiving time period.

[0069] As an example, the first power data is:

[0070] 2019-11-16 14:41:00 0 degrees,

[0071] 2019-11-16 15:00:00 10 degrees,

[0072] 2019-11-16 15:30:00 20 degrees,

[0073] 2019-11-16 16:00:00 25 degrees,

[0074] 2019-11-16 16:05:00 28 degrees.

[0075] The second power data is:

[0076] 2019-11-16 14:41:00-2019-11-16 15:05:00 15 degrees,

[0077] 2019-11-16 15:05:00-2019-11-16 16:05:00 20 degrees,

[0078] For the first return time period, 2019-11-16 14:41:00-2019-11-16 15:05:00, its subsequent return time, 2019-11-16 15:05:00, differs from any previous or subsequent filing time. Therefore, it is adjusted to the closest previous or subsequent filing time. For example, 2019-11-16 15:05:00 is adjusted to 2019-11-16 15:00:00. Similarly, for the second return time period, 2019-11-16 15:05:00-2019-11-16 16:05:00, its previous return time, 2019-11-16 15:05:00, differs from any previous or subsequent filing time. Therefore, it is adjusted to the closest previous or subsequent filing time. For example, adjust 2019-11-16 15:05:00 to 2019-11-16 15:00:00.

[0079] The adjusted return segment charging power corresponding to each return time period can be calculated by interpolation. For example, the total return time period and the total return segment charging power are calculated, and the change in return segment charging power corresponding to the adjusted return time period is calculated as:

[0080]

[0081] Then, the change is added to the return segment charging power corresponding to the return time period before adjustment to obtain the return segment charging power corresponding to the adjusted return time period.

[0082] As an example, the second power data is:

[0083] 2019-11-16 14:41:00-2019-11-16 15:05:00 15 degrees,

[0084] 2019-11-16 15:05:00-2019-11-16 16:05:00 20 degrees.

[0085] The change in the return segment charging capacity after the 15-kWh adjustment from 2019-11-16 14:41:00 to 2019-11-16 15:05:00 is calculated as: (0-5)×(15+20) / ((65-41)+(65-05))=-2.08 kWh. The adjusted return segment charging capacity from 2019-11-16 14:41:00 to 2019-11-16 15:00:00 is 15+(-2.08)=12.92 kWh.

[0086] The change in the return segment charging capacity after adjusting the 20-kWh charge time from 2019-11-16 15:05:00 to 2019-11-16 16:05:00 is: (5-0)×(15+20) / ((65-41)+(65-05))=2.08 kWh. The adjusted return segment charging capacity from 2019-11-16 15:00:00 to 2019-11-16 16:05:00 is 20+2.08=22.08 kWh.

[0087] Then, the adjusted feedback time period and the corresponding feedback segmented charging power are used to execute steps S208 to S211 to perform power fusion to obtain third power data.

[0088] In the above description, in order to simplify the calculation, minutes are used as the minimum unit. In fact, for more accurate calculation, seconds can be used as the minimum unit.

[0089] Finally, step S212 is executed to generate charging fees based on the third power data.

[0090] At the same time, for the processing flow of abnormal scenarios such as bill callback timeout, bill processing exception, and bill without callback segmented electricity, this embodiment designs a fallback solution in step S213, which takes the first electricity data queried in real time as the basis. This ensures that even if the infrastructure operator has no billing data, the customer's home operator can still generate bills. For example, in the above electricity data, when an abnormal scenario occurs, the final segmented electricity is directly generated based on the first electricity data, such as:

[0091] 2019-11-16 14:41:40-2019-11-16 15:00:00 10 degrees,

[0092] 2019-11-16 15:00:00-2019-11-16 15:30:00 10 degrees,

[0093] 2019-11-16 15:30:00-2019-11-16 16:00:00 5 degrees,

[0094] 2019-11-16 16:00:00-2019-11-16 16:05:40 3 degrees,

[0095] The number of degrees is the cumulative number of degrees charged at the current moment, which is recorded as the fourth power data. This greatly improves the success rate of successfully completing orders in abnormal scenarios.

[0096] This embodiment achieves the integration of power consumption between the infrastructure operator and the customer operator during the charging process, employing a proportional power allocation method suitable for the charging process. Furthermore, for abnormal processes, the power consumption queried during real-time charging is used as a backup for bill calculation, significantly improving the success rate of successfully completing orders in abnormal scenarios.

[0097] Example 3

[0098] like Figure 4 The figure shows a hardware structure diagram of an electronic device for generating charging fees for charging orders according to the present invention, including:

[0099] at least one processor 401; and,

[0100] A memory 402 in communication with the at least one processor 401; wherein,

[0101] The memory 402 stores instructions that can be executed by the one processor. The instructions are executed by the at least one processor to enable the at least one processor to:

[0102] In response to the charging request, a charging order is generated, and during the charging process of the charging order, real-time charging power of the charging order is obtained to form first power data based on time segments;

[0103] If it is possible to obtain the returned power data regarding the charging order sent back by the infrastructure operator, use the returned power data as the second power data, fuse the first power data and the second power data to obtain third power data based on time segments, and the second power data is based on the charging power segments;

[0104] The charging fee of the charging order is generated based on the third power data.

[0105] The electronic device is preferably a server of the customer's home operator platform. Figure 4 A processor 401 is taken as an example.

[0106] The electronic device may further include an input device 403 and a display device 404 .

[0107] The processor 401 , the memory 402 , the input device 403 and the display device 404 may be connected via a bus or other means, with the bus connection being used as an example in the figure.

[0108] The memory 402 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as the program instructions / modules corresponding to the charging order charging fee generation method in the embodiment of the present application, for example, Figure 1The processor 401 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, the method for generating charging fees for charging orders in the above embodiment is implemented.

[0109] Memory 402 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function; the data storage area may store data generated based on the use of the charging order and charging fee generation method. Furthermore, memory 402 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some embodiments, memory 402 may optionally include a memory remotely located relative to processor 401. These remote memories may be connected to the apparatus for executing the charging order and charging fee generation method via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0110] The input device 403 can receive user clicks and generate signal input related to user settings and function control of the charging order charging fee generation method. The display device 404 can include a display device such as a display screen.

[0111] The one or more modules are stored in the memory 402 and, when executed by the one or more processors 401 , execute the charging order charging fee generation method in any of the above method embodiments.

[0112] The present invention fuses first power data generated from the real-time charging power of charging orders with second power data transmitted back from infrastructure operators to obtain third power data based on time segments. Because the present invention fuses real-time charging power and data transmitted back from infrastructure operators, it can obtain accurate charging power data based on time segments. This ensures that the generated charging fees meet the time segmentation requirements of the customer's operator for charging power while ensuring data accuracy.

[0113] Example 4

[0114] A fourth embodiment of the present invention provides an electronic device for generating charging fees for charging orders, including:

[0115] at least one processor;

[0116] a memory communicatively connected to the at least one processor; wherein,

[0117] The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0118] In response to a charging request, a charging order is generated, and during the charging process of the charging order, a real-time charging power of the charging order is queried at intervals of a preset query time;

[0119] If the current moment is the archiving moment, all real-time charging power before the current moment is summarized as the archived charging power at the archiving moment;

[0120] Associating each archived charging power with the corresponding archiving time and saving it as first power data;

[0121] If the returned power data regarding the charging order sent back by the infrastructure operator can be obtained, the returned power data is used as the second power data, where the second power data is segmented based on the charging power, and the second power data includes one or more returned charging power segments and a returned time period corresponding to each of the returned charging power segments;

[0122] The time period included in two adjacent archiving moments is used as the archiving time period, and the difference between the archiving charging power corresponding to the later archiving moment and the archiving charging power corresponding to the earlier archiving moment in each archiving time period is used as the archiving segmented charging power corresponding to the archiving time period;

[0123] Adjusting the previous return time and the next return time of each return time period to be consistent with the previous filing time or the next filing time of at least one filing time period;

[0124] Calculate the backhaul segment charging power corresponding to the adjusted backhaul time period;

[0125] Determine the archiving time period between the previous return time and the next return time in the return time period as the archiving time period included in the return time period;

[0126] Based on the charging power of the archiving segment corresponding to each archiving time period, determining the power proportion of each archiving time period as: the ratio of the charging power of the archiving segment corresponding to the archiving time period to the total charging power of the archiving segments corresponding to all archiving time periods included in the return time period;

[0127] Determine the final segmented charging power for each archiving time period based on the power proportion of the archiving time period and the return segmented charging power of the corresponding return time period;

[0128] Associating each of the archiving time periods with the corresponding final charging power and saving them as third power data;

[0129] generating a charging fee for the charging order based on the third power data;

[0130] If the second power data regarding the charging order transmitted back by the infrastructure operator is abnormal, the charging fee for the charging order is generated based on the first power data.

[0131] This embodiment achieves the integration of power consumption between the infrastructure operator and the customer operator during the charging process, employing a proportional power allocation method suitable for the charging process. Furthermore, for abnormal processes, the power consumption queried during real-time charging is used as a backup for bill calculation, significantly improving the success rate of successfully completing orders in abnormal scenarios.

[0132] Example 5

[0133] A fifth embodiment of the present invention provides a storage medium storing computer instructions. When a computer executes the computer instructions, the storage medium is used to execute all steps of the method for generating charging fees for charging orders as described above.

[0134] The above-described embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A method for generating charging fees for a charging order, characterized in that: include: In response to the charging request, a charging order is generated, and during the charging process of the charging order, the real-time charging power of the charging order is obtained to form first power data based on time segments, wherein the first power data includes each archived charging power and the corresponding archiving time; If the returned power data about the charging order sent back by the infrastructure operator can be obtained, the returned power data is used as the second power data, wherein the second power data includes one or more returned segmented charging power and a returned time period corresponding to each returned segmented charging power; The time period included in two adjacent archiving moments is used as the archiving time period; Adjusting the previous return time and the subsequent return time of each of the return time periods to be consistent with the previous filing time or the subsequent filing time of at least one of the filing time periods; Obtain third power data based on the archived segmented charging power corresponding to the archived time period and the returned segmented charging power corresponding to the adjusted returned time period; The charging fee of the charging order is generated based on the third power data.

2. The method for generating charging fees for charging orders according to claim 1, characterized in that: The generating of a charging order in response to a charging request, and obtaining a real-time charging power of the charging order during the charging process of the charging order to form first power data based on time segments specifically includes: In response to a charging request, a charging order is generated, and during the charging process of the charging order, a real-time charging power of the charging order is queried at a preset query time interval; If the current moment is the archiving moment, all real-time charging power before the current moment is summarized as the archived charging power at the archiving moment; Each archived charging power is associated with the corresponding archiving time and saved as the first power data.

3. The charging order charging fee generation method according to claim 2, characterized in that: The obtaining of the third power data based on the archived segmented charging power corresponding to the archived time period and the returned segmented charging power corresponding to the adjusted returned time period specifically includes: The difference between the filing charging power corresponding to the later filing time and the filing charging power corresponding to the earlier filing time in each filing time period is used as the filing segment charging power corresponding to the filing time period; Based on the charging power of the archived segment corresponding to each of the archived time periods, the power proportion of each of the archived time periods is determined as: the ratio of the charging power of the archived segment corresponding to the archived time period to the total charging power of the archived segments corresponding to all the archived time periods included in the return time period; Determine the final segmented charging power of each archiving time period based on the power proportion of the archiving time period and the return segmented charging power of the return time period; Each of the archiving time periods is associated with the corresponding final segmented charging power and saved as the third power data.

4. The charging order charging fee generation method according to claim 3, characterized in that: All archiving time periods included in the return time period include: the archiving time period between the previous return time and the subsequent return time of the return time period.

5. The method for generating charging fees for a charging order according to any one of claims 1 to 4, characterized in that: The method further comprises: If the second electricity quantity data regarding the charging order transmitted back by the infrastructure operator is abnormal, the charging fee for the charging order is generated based on the first electricity quantity data.

6. An electronic device for generating charging fees for charging orders, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: In response to the charging request, a charging order is generated, and during the charging process of the charging order, the real-time charging power of the charging order is obtained to form first power data based on time segments, wherein the first power data includes each archived charging power and the corresponding archiving time; If the returned power data about the charging order sent back by the infrastructure operator can be obtained, the returned power data is used as the second power data, wherein the second power data includes one or more returned segmented charging powers and a returned time period corresponding to each of the returned segmented charging powers; The time period included in two adjacent archiving moments is used as the archiving time period; Adjusting the previous return time and the subsequent return time of each of the return time periods to be consistent with the previous filing time or the subsequent filing time of at least one of the filing time periods; Obtain third power data based on the archived segmented charging power corresponding to the archived time period and the returned segmented charging power corresponding to the adjusted returned time period; The charging fee of the charging order is generated based on the third power data.

7. The electronic device for generating charging order and charging fee according to claim 6, characterized in that: The generating of a charging order in response to a charging request, and obtaining a real-time charging power of the charging order during the charging process of the charging order to form first power data based on time segments specifically includes: In response to a charging request, a charging order is generated, and during the charging process of the charging order, a real-time charging power of the charging order is queried at a preset query time interval; If the current moment is the archiving moment, all real-time charging power before the current moment is summarized as the archived charging power at the archiving moment; Each archived charging power is associated with the corresponding archiving time and saved as the first power data.

8. The electronic device for generating charging order and charging fee according to claim 7, characterized in that: The obtaining of the third power data based on the archived segmented charging power corresponding to the archived time period and the returned segmented charging power corresponding to the adjusted returned time period specifically includes: The difference between the filing charging power corresponding to the later filing time and the filing charging power corresponding to the earlier filing time in each filing time period is used as the filing segment charging power corresponding to the filing time period; Based on the charging power of the archived segment corresponding to each of the archived time periods, the power proportion of each of the archived time periods is determined as: the ratio of the charging power of the archived segment corresponding to the archived time period to the total charging power of the archived segments corresponding to all the archived time periods included in the return time period; Determine the final segmented charging power of each archiving time period based on the power proportion of the archiving time period and the return segmented charging power of the corresponding return time period; Each of the archived time periods is associated with the corresponding final segmented charging power and saved as the third power data.

9. The electronic device for generating charging order and charging fee according to claim 8, characterized in that: All archived time periods included in the return time period include: The archiving time period is between the previous return time and the next return time of the return time period.

10. The electronic device for generating charging charges for charging orders according to any one of claims 6 to 9, characterized in that: The processor is also capable of: If the second electricity quantity data regarding the charging order transmitted back by the infrastructure operator is abnormal, the charging fee for the charging order is generated based on the first electricity quantity data.

11. A storage medium, characterized in that: The storage medium stores computer instructions, which, when executed by a computer, are used to execute all steps of the method for generating charging fees for a charging order as described in any one of claims 1 to 5.