Charging pile billing method and device and storage medium
By curve fitting and integrating the power changes of the charging pile, the problem of insufficient accuracy of charging cost calculation is solved, more efficient cost calculation and segmented accumulation is achieved, and the accuracy and efficiency of the charging pile management system is improved.
Patent Information
- Application Number
- CN202411153335.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-20
AI Technical Summary
The charging pile management system calculates charging costs based on fixed power, and does not consider changes in charging power, resulting in insufficient accuracy in charging costs calculation.
By obtaining the time period power sequence within the power detection time period of the charging pile, performing curve fitting to generate a charging power curve, and determining the power consumption and expenses based on the integral results, and calculating the accumulated power consumption in segments to improve calculation accuracy and efficiency.
It improves the accuracy and efficiency of charging fee calculations and ensures the accuracy and timeliness of user payments.
Smart Images

Figure CN119169739A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a charging pile billing method, device and storage medium. Background Art
[0002] While the charging pile provides charging services to users, the charging pile management system can calculate the user's charging amount, thereby calculating the user's charging fee based on the charging amount.
[0003] During the charging process, the charging power of the charging pile will change dynamically based on time due to power distribution between charging piles or the decrease in the battery's power absorption capacity as the power increases. However, in related technologies, the charging pile management system usually calculates the user's charging amount and charging fee based on fixed power and the user's charging time, without considering the power change process of the charging pile. This results in insufficient accuracy in the charging pile's calculation of the user's charging fee.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a charging pile billing method, device and storage medium, aiming to solve the technical problem of insufficient accuracy in calculating the charging fees of users by charging piles.
[0006] To achieve the above object, the present application provides a charging pile billing method, the method comprising the following steps:
[0007] Obtain a time period power sequence of the charging pile based on the power detection time within the target time period, and perform curve fitting on the time period power sequence to generate a charging power curve;
[0008] Based on the target time period, integrating the charging power curve, and determining the power consumption in the target time period according to the integration result;
[0009] The power consumption is updated to the user's cumulative power consumption, and the charging fee of the user is determined according to the electricity price and the cumulative power consumption.
[0010] In one embodiment, after the step of updating the power consumption to the user's cumulative power consumption, the method further includes:
[0011] Obtaining a preset charging rule and the user's cumulative charging time, and calculating the service fee of the charging pile according to the charging rule and the cumulative charging time;
[0012] The charging fee and the service fee are summed to generate and output the fee to be paid.
[0013] In one embodiment, the step of obtaining a preset charging rule and a user's accumulated charging time, and calculating the service fee of the charging pile according to the charging rule and the accumulated charging time includes:
[0014] According to the identification information of the charging pile, obtaining the charging rules of the charging pile in the database;
[0015] caching the billing rules into a rules engine;
[0016] The service fee is determined according to the charging duration through the rule engine.
[0017] In one embodiment, after the step of summing the charging fee and the service fee to generate and output the fee to be paid, the method further includes:
[0018] Generating a fee bill for the fee to be paid according to the charging rules and the fee to be paid;
[0019] Obtaining the account splitting rules of the charging pile, and determining the account splitting share of the to-be-paid fee according to the account splitting rules and the fee bill;
[0020] After receiving the payment from the user, the payment is split according to the split share.
[0021] In one embodiment, before the step of obtaining a time period power sequence of the charging pile based on the power detection time within the target time period and performing curve fitting on the time period power sequence to generate a charging power curve, the step further includes:
[0022] Based on a preset power monitoring period, determining the power detection time of the charging pile;
[0023] At the power detection time, obtaining the charging power of the charging pile;
[0024] A charging power sequence is generated according to the power detection time and the charging power, wherein the charging powers in the charging power sequence are sorted based on the power detection time.
[0025] In one embodiment, the step of obtaining a time period power sequence of the charging pile based on the power detection time within the target time period, and performing curve fitting on the time period power sequence to generate a charging power curve includes:
[0026] In the charging power sequence, obtaining the time period power sequence within the target time period;
[0027] Performing curve fitting on the time period power sequence according to the power detection time of the charging power in the time period power sequence and a curve fitting formula;
[0028] A residual sum of squares of the fitting curve is calculated, and the charging power curve is selected from the fitting curve according to the residual sum of squares.
[0029] In one embodiment, before the step of obtaining a time period power sequence of the charging pile based on the power detection time within the target time period and performing curve fitting on the time period power sequence to generate a charging power curve, the step further includes:
[0030] Obtaining a preset time interval, and determining an update time of the accumulated power consumption according to the preset time interval;
[0031] Determine the last target update time in the historical update time;
[0032] At the update time, the target time period is determined based on the target update time and the update time.
[0033] In one embodiment, the step of determining the target time period based on the target update time and the update time at the update time includes:
[0034] When detecting that the charging pile has finished charging, determining the charging end time;
[0035] The charging end time is used as the update time, and the target time period is determined according to the charging end time and the target update time.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a charging pile billing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the charging pile billing method as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the charging pile billing method as described above are implemented.
[0038] One or more technical solutions proposed in this application have at least the following technical effects:
[0039] The present application obtains the time period power sequence of the charging pile based on the power detection time in the target time period, performs curve fitting on the time period power sequence, generates a charging power curve, and integrates the charging power curve based on the target time period, determines the user's power consumption in the target time period according to the integration result, updates the power consumption to the user's cumulative power consumption, determines the user's charging fee according to the electricity price and the cumulative power consumption, and improves the accuracy of the power consumption calculation in the target time period through curve fitting and integration, thereby improving the accuracy of the charging fee calculation. At the same time, based on a preset time interval, the present application obtains the time period power sequence of the charging pile in the target time period and calculates the charging fee, thereby calculating the user's cumulative power consumption in segments and improving the efficiency of the charging fee calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 This is a flow chart of the first embodiment of the charging pile billing method of the present application;
[0043] Figure 2 This is a flow chart of the second embodiment of the charging pile billing method of this application;
[0044] Figure 3 This is a flow chart of the third embodiment of the charging pile billing method of this application;
[0045] Figure 4 This is a flowchart of the fourth embodiment of the charging pile billing method of the present application;
[0046] Figure 5 This is a flowchart of the fifth embodiment of the charging pile billing method of the present application;
[0047] Figure 6 It is a structural diagram of a charging pile billing device in the hardware operating environment involved in the embodiment of the present application.
[0048] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the embodiment of the present application is: obtain the time period power sequence of the charging pile based on the power detection time within the target time period, and perform curve fitting on the time period power sequence to generate a charging power curve; based on the target time period, integrate the charging power curve, and determine the power consumption of the target time period according to the integration result; update the power consumption to the user's cumulative power consumption, and determine the user's charging fee according to the electricity price and the cumulative power consumption.
[0052] During the charging process, the charging power of the charging pile will change dynamically based on time due to power distribution between charging piles or the decrease in the battery's power absorption capacity as the power increases. However, in related technologies, the charging pile management system usually calculates the user's charging amount and charging fee based on fixed power and the user's charging time, without considering the power change process of the charging pile. This results in insufficient accuracy in the charging pile's calculation of the user's charging fee.
[0053] The present application obtains the time period power sequence of the charging pile based on the power detection time in the target time period, performs curve fitting on the time period power sequence, generates a charging power curve, and integrates the charging power curve based on the target time period, determines the user's power consumption in the target time period according to the integration result, updates the power consumption to the user's cumulative power consumption, determines the user's charging fee according to the electricity price and the cumulative power consumption, and improves the accuracy of the power consumption calculation in the target time period through curve fitting and integration, thereby improving the accuracy of the charging fee calculation. At the same time, based on a preset time interval, the present application obtains the time period power sequence of the charging pile in the target time period and calculates the charging fee, thereby calculating the user's cumulative power consumption in segments and improving the efficiency of the charging fee calculation.
[0054] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0055] It should be noted that the execution subject of this embodiment can be a charging pile management system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions, a charging pile billing device, etc., which is not specifically limited in this embodiment. The following takes the charging pile management system as an example to illustrate this embodiment and the following embodiments.
[0056] Based on this, the present application embodiment provides a charging pile billing method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the charging pile billing method of the present application.
[0057] In this embodiment, the charging pile billing method includes steps S10 to S30:
[0058] Step S10: obtaining a time period power sequence of the charging pile based on the power detection time within the target time period, and performing curve fitting on the time period power sequence to generate a charging power curve;
[0059] In this embodiment, the charging pile can be a car charging pile or an electric bicycle charging pile, and is connected to a charging pile management system. The charging pile management system can monitor the current state of the charging pile and control the charging pile to perform corresponding actions. Among them, the charging pile will collect the current charging power based on the power detection cycle and send it to the charging pile management system. The charging management system will arrange the received charging power into a charging power sequence based on the power detection time.
[0060] Specifically, the charging pile management system stores a preset time interval, and determines the detection time of power consumption according to the preset time interval, that is, the update time of the cumulative power consumption. At the update time, the charging pile management system will use the time period between the last update time in the historical update time and the current update time as the target time period, and intercept the time period power sequence within the target time period in the charging power sequence. The time period power sequence contains all the charging powers detected within the target time period, and is sorted based on the power detection time.
[0061] Furthermore, in the charging power sequence, after obtaining the time period power sequence within the target time period, the charging pile management system can perform curve fitting on the time period power sequence according to the power detection time of the charging power in the time period power sequence and the preset curve fitting formula. Among them, the charging pile management system will select the fitting parameters in the curve fitting formula based on the power detection time and the charging power, and fill the coefficient value into the curve fitting formula to generate a fitting curve. The charging pile management system will calculate the residual based on the charging power at each power detection time and the fitting curve, and determine the residual sum of squares of the charging power at all power detection times. By calculating the residual sum of squares of the fitting curve, the charging trunk management system can adjust the fitting curve according to the residual sum of squares, and select the fitting curve with the smallest residual sum of squares in the fitting curve as the charging power curve.
[0062] For example, the charging pile management system can use the least squares method to fit the charging power. The least squares method determines the curve that best fits the distribution characteristics of all data points by minimizing the sum of squares of errors. The curve fitting formula of the least squares method is:
[0063] P=a0+a1t+a2t 2 +…+a n t n
[0064] In the process of charging power fitting, P can represent the charging power, t can be used to represent the power detection time, and a0 to a n is the fitting parameter to be determined. i , the charging power is P i When , the formula for the residual sum of squares can be constructed as:
[0065]
[0066] Where S represents the residual sum of squares. By minimizing S, the charging pile management system can determine the fitting curve with the smallest residual sum of squares as the charging power curve corresponding to the target time period. Based on the fitted charging power curve, the change process of the charging power in the target time period can be more accurately reflected, so that the charging pile management system can calculate the power consumption in the target time period according to the change process of the charging power.
[0067] Step S20: Integrate the charging power curve based on the target time period, and determine the power consumption in the target time period according to the integration result;
[0068] In this embodiment, the charging power is the electric energy consumed by the charging pile per unit time, and the power consumption is the accumulation of the charging power over time. By means of definite integral, the power consumption of the charging power in a period of time can be calculated according to the charging power at different times. The charging pile management system determines the power consumption in the target time period according to the integral result by integrating the charging power curve.
[0069] Exemplarily, after determining the charging power curve, the charging pile management system may integrate the charging power curve within the target time period by using a definite integral formula:
[0070]
[0071] Where E represents the power consumption, t1 and t2 represent the start time and end time respectively. After generating the charging power curve, the charging pile management system performs a definite integral on the charging power curve based on the start time and end time of the target time period. Based on the integral result of the charging power curve at the start time and end time, the user's power consumption in the target time period can be directly determined.
[0072] Step S30: updating the power consumption to the user's cumulative power consumption, and determining the user's charging fee based on the electricity price and the cumulative power consumption.
[0073] In this embodiment, the charging pile management system stores the user's cumulative power consumption and the electricity price per unit of power consumption. After determining the power consumption in the target time period, the charging pile management system adds the power consumption to the current cumulative power consumption to generate an updated cumulative power consumption, thereby updating the power consumption to the user's cumulative power consumption. Based on the electricity price per unit of power consumption, the charging pile management system can quickly determine the user's charging fee based on the cumulative power consumption.
[0074] It should be noted that in order to avoid the situation where the charging pile management system needs to fit the charging power sequence composed of all charging powers within the charging time when the user finishes charging, which causes the user to wait for a long time due to excessive calculation, the charging pile can adopt a segmented calculation method to divide the user's charging time into several time periods according to the preset time interval to reduce the amount of calculation. Among them, the charging pile management system will use the time period within the preset time interval as the target time period every time the preset time interval passes, intercept the time period power sequence within the target time period from all charging power sequences, and calculate the power consumption within the target time period based on the time period power sequence. By updating the power consumption to the cumulative power consumption, when the user finishes charging, the charging pile management system only needs to calculate the power consumption of the last section to determine the user's final total power consumption, thereby greatly shortening the settlement time after the user finishes charging.
[0075] Optionally, in order to improve the calculation speed and save system resources occupied by cost calculation, the charging pile management system may not adopt curve fitting and integration, but take the charging power at a preset time in the target time period as the charging power of the entire target time period to calculate the power consumption. For example, the charging pile management system can take the charging power at the start time of the target time period as the charging power of all times in the target time period, and calculate the power consumption of the target time period with the duration of the target time period.
[0076] The embodiment of the present application obtains the time period power sequence of the charging pile based on the power detection time in the target time period, performs curve fitting on the time period power sequence, generates a charging power curve, and integrates the charging power curve based on the target time period, determines the user's power consumption in the target time period according to the integration result, updates the power consumption to the user's cumulative power consumption, determines the user's charging fee according to the electricity price and the cumulative power consumption, and improves the accuracy of the power consumption calculation in the target time period through curve fitting and integration, thereby improving the accuracy of the charging fee calculation. At the same time, based on a preset time interval, the present application obtains the time period power sequence of the charging pile in the target time period and calculates the charging fee, thereby calculating the user's cumulative power consumption in segments, thereby improving the efficiency of the charging fee calculation.
[0077] Based on the same inventive concept, the present application also provides a second embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the charging pile billing method of the present application.
[0078] In this embodiment, after the power consumption is updated to the user's cumulative power consumption as described in step S30, and the charging fee of the user is determined according to the electricity price and the cumulative power consumption, steps S40 to S50 are also included:
[0079] Step S40: obtaining a preset charging rule and the user's cumulative charging time, and calculating the service fee of the charging pile according to the charging rule and the cumulative charging time;
[0080] Step S50: summing the charging fee and the service fee to generate and output the fee to be paid.
[0081] In this embodiment, the fees to be paid by the user after using the charging pile include two parts: charging fee and service fee. Among them, the service fee is the fee for the service part charged by the charging pile operation system, and the charging fee is the fee for the electricity consumption part determined based on the standard electricity price and the accumulated electricity consumption. The charging pile management system can obtain the preset billing rules corresponding to the charging pile, calculate the service fee of the charging pile according to the accumulated charging time of the user, and by summing the charging fee and service fee, the sum result can be used as the fee to be paid.
[0082] Optionally, the charging pile management system can generate a QR code based on the fees to be paid and output it on a display screen configured for the charging pile. It can also output the fees to be paid to the user's vehicle-mounted terminal or mobile terminal or other terminal devices for online deduction.
[0083] Further, as described in step S40, obtaining the preset charging rules and the user's cumulative charging time, and calculating the service fee of the charging pile according to the charging rules and the cumulative charging time also includes steps S41 to S43:
[0084] Step S41: acquiring the charging rules of the charging pile from a database according to the identification information of the charging pile;
[0085] Step S42: caching the charging rules to a rule engine;
[0086] Step S43: Determine the service fee according to the charging duration through the rule engine.
[0087] Specifically, each charging pile in the charging pile management system is associated with unique identification information. The identification information may include one or more of the equipment code, model code, operator and / or manufacturer's trademark information of the charging pile. When the user connects to the charging pile and starts charging the charging pile, the charging pile management system can obtain the corresponding identification information from the started charging pile, and determine the corresponding charging rules of the charging pile in the database based on the identification information.
[0088] As an optional implementation method for obtaining the charging rules, the charging pile management system pre-stores the charging rules corresponding to the identification information in the database. After obtaining the identification information of the charging pile, the charging pile management system can obtain the charging rules associated with the identification information in the database. By means of data association, the charging pile management system can quickly obtain the charging rules based on the database, thereby improving the calculation speed.
[0089] As another optional implementation method for obtaining the charging rules, the charging pile management system can also determine the operating system of the operator of the charging pile in the database according to the identification information. The charging pile management system is configured with an interface encapsulation module, which stores the interfaces of various operating systems. The charging rules acquisition request can be sent to the operating system based on the identification information through the target interface of the operating system to be sent in the interface encapsulation module.
[0090] Among them, the operation system can read the model code of the charging pile in the identification information, and feed back the charging rules of the charging pile model corresponding to the model code to the charging pile management system. The optional charging pile models include electric vehicle charging piles, electric bicycle charging piles, new energy charging piles, etc. Obtaining the charging rules through the operation system can further reduce the coupling degree of the charging management system and make it easier to adjust the charging piles in the operation system.
[0091] Furthermore, a rule engine is configured in the charging pile management system. The rule engine can execute the corresponding decision logic based on the rule set of the billing rules. After obtaining the billing rule file in the form of a script file or a rule language file, the charging pile management system will input the rule set of the billing rules in the billing rule file into the rule engine. The rule engine caches the received billing rules into the rule base, and performs reasoning based on the rules in the rule base and the facts in the working memory to determine the service fee.
[0092] Optionally, when the charging pile is detected to be started, the charging pile management system can also obtain the user's identity information through the charging pile. The user's identity information is associated with the corresponding coupon and / or member information. While calculating based on the billing rules, the charging pile can determine the discount information based on the coupon and / or member information, and determine the service fee based on the discount information and the billing rules.
[0093] In an embodiment of the present application, the charging pile management system calculates the service fee of the charging pile by obtaining the preset billing rules and the user's cumulative charging time, sums the charging fee and the service fee, generates and outputs the fees to be paid, and thus determines the user's fees to be paid based on the two dimensions of service fee and charging fee.
[0094] Since the system introduced in the second embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of this application.
[0095] Based on the same inventive concept, the present application also provides a third embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the third embodiment of the charging pile billing method of the present application.
[0096] In this embodiment, after the charging fee and the service fee are summed up to generate and output the fee to be paid as described in step S50, steps S51 to S53 are also included:
[0097] Step S51: generating a fee bill for the fee to be paid according to the charging rules and the fee to be paid;
[0098] Step S52: obtaining the account splitting rules of the charging pile, and determining the account splitting share of the to-be-paid fee according to the account splitting rules and the fee bill;
[0099] Step S53: after receiving the payment from the user, split the payment according to the split share.
[0100] In this embodiment, the charging pile management system, in the process of receiving the user's payment, also involves a process of splitting the payment based on the payment. For example, after obtaining the payment of the electric vehicle charging pile in the parking lot, the charging pile management system needs to split the payment according to the shares of the parking lot, the charging pile operator, the power supplier, and other parties.
[0101] Specifically, the charging pile management system can generate a fee bill for the fees to be paid based on the billing rules and the fees to be paid. The fee bill contains details of each part of the fees to be paid, such as charging fees and service fees. The charging pile management system can obtain the account splitting rules through the database or operation system based on the identification information of the charging pile. According to the account splitting rules, the charging pile management system can determine the account splitting shares of the fees to be paid based on the details of each part of the fee bill. At the same time, after receiving the user's payment, the payment is split according to the account splitting share, and each account splitting share of the payment is transferred to the account corresponding to the account splitting rule.
[0102] Optionally, the account splitting rule may also directly include the account splitting share. The charging pile management system may also directly perform an account splitting action on the payment fee based on the account splitting share.
[0103] The embodiment of the present application realizes automatic account splitting of the payment by splitting the user's payment and determining the share of the payment, promotes the account splitting of the payment through a third party, and improves the processing speed of charging pile billing.
[0104] Since the system introduced in the third embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of the present application.
[0105] Based on the same inventive concept, the present application also provides a fourth embodiment, referring to Figure 4 , Figure 4 This is a flow chart of the fourth embodiment of the charging pile billing method of the present application.
[0106] In this embodiment, as described in step S10, the charging pile obtains a time period power sequence based on the power detection time during the target time period, and performs curve fitting on the time period power sequence. Before generating the charging power curve, steps S11 to S13 are also included:
[0107] Step S11: determining the power detection time of the charging pile based on a preset power monitoring cycle;
[0108] Step S12: acquiring the charging power of the charging pile at the power detection time;
[0109] Step S13: generating a charging power sequence according to the power detection time and the charging power, wherein the charging powers in the charging power sequence are sorted based on the power detection time.
[0110] In this embodiment, the charging pile can determine the current charging power according to the preset power detection cycle, and send the charging power to the charging pile management system. The charging pile management system will associate the charging power with the power detection time according to the power detection time, and update it to the charging power sequence.
[0111] In one embodiment, when a user starts a charging pile for charging, the charging pile management system will establish a charging power sequence according to the charging service, and after receiving the charging power detected by the charging pile, fill the charging power into the charging power sequence.
[0112] The embodiment of the present application presets a power detection cycle, obtains the charging power according to the charging power cycle, and generates a charging power sequence, thereby determining the data distribution of the charging power.
[0113] Since the system introduced in the fourth embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of this application.
[0114] Based on the same inventive concept, the present application also provides a fifth embodiment, referring to Figure 5 , Figure 5 This is a flow chart of the fifth embodiment of the charging pile billing method of the present application.
[0115] In this embodiment, as described in step S10, the charging pile obtains a time period power sequence based on the power detection time during the target time period, and performs curve fitting on the time period power sequence. Before generating the charging power curve, steps S14 to S16 are also included:
[0116] Step S14: obtaining a preset time interval, and determining an update time of the accumulated power consumption according to the preset time interval;
[0117] Step S15: Determine the last target update time in the historical update time;
[0118] Step S16: At the update time, determining the target time period based on the target update time and the update time.
[0119] In this embodiment, the target time period is the time period between the current power consumption update time and the last update time, i.e., the target update time. The charging pile management system calculates the power consumption within the target time period at intervals of the preset time intervals stored in the system, and updates the accumulated power consumption, so that each time the curve fitting and integration are performed, only the power consumption within the target time period needs to be calculated.
[0120] In the first embodiment, when the charging pile is started, the charging pile management system can determine the start time of the charging pile, and determine the update time of the accumulated power consumption according to the preset time interval. At the first update time, the charging pile management system will use the start time of the charging pile as the target update time, and thus determine the target time period according to the time period between the start time of the charging pile and the first update time.
[0121] In the second embodiment, when updating the time, the charging pile management system determines the last update time, that is, the last update time in the historical update time, as the target update time. Based on the target update time and the current update time, the charging pile management system can determine the target time period.
[0122] In the third embodiment, when it is detected that the charging pile has finished charging, the charging end time is determined, and the charging pile management system uses the charging end time as the update time, and determines the target time period based on the charging end time and the target update time.
[0123] The embodiment of the present application determines the target time period according to the update time of the power consumption corresponding to the preset time interval, thereby segmenting the user's charging time, and updates the power consumption of the target time period to the cumulative power consumption. When the user finishes charging, the charging pile management system only needs to calculate the power consumption of the last segment to determine the user's final total power consumption, thereby greatly shortening the settlement time after the user finishes charging.
[0124] Since the system introduced in the fifth embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of the present application.
[0125] The present application provides a charging pile billing device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the charging pile billing method in the above-mentioned embodiment one.
[0126] Reference below Figure 6 , which shows a schematic diagram of the structure of a charging pile billing device suitable for implementing the embodiment of the present application. The charging pile billing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The charging pile billing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0127] like Figure 6As shown, the charging pile billing device may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the charging pile billing device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the charging pile billing device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a charging pile billing device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.
[0128] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0129] The charging pile billing device provided by the present application adopts the charging pile billing method in the above embodiment, which can solve the technical problem that the charging pile calculates the charging fee of the user inaccurately. Compared with the prior art, the beneficial effects of the charging pile billing device provided by the present application are the same as the beneficial effects of the charging pile billing method provided by the above embodiment, and the other technical features in the charging pile billing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0130] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0132] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the charging pile billing method in the above-mentioned embodiment.
[0133] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0134] The above-mentioned computer-readable storage medium may be included in the charging pile billing device; or it may exist independently without being assembled into the charging pile billing device.
[0135] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the charging pile billing device, the charging pile billing device: obtains the time period power sequence of the charging pile based on the power detection time within the target time period, and performs curve fitting on the time period power sequence to generate a charging power curve; based on the target time period, integrates the charging power curve, and determines the power consumption of the target time period according to the integration result; updates the power consumption to the user's cumulative power consumption, and determines the user's charging fee according to the electricity price and the cumulative power consumption.
[0136] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0138] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0139] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned charging pile billing method, and can solve the technical problem that the charging pile calculates the charging fee for the user inaccurately. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the charging pile billing method provided in the above-mentioned embodiment, and will not be repeated here.
[0140] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A charging pile billing method, characterized in that: The method comprises the following steps: Obtain a time period power sequence of the charging pile based on the power detection time within the target time period, and perform curve fitting on the time period power sequence to generate a charging power curve; Based on the target time period, integrating the charging power curve, and determining the power consumption in the target time period according to the integration result; The power consumption is updated to the user's cumulative power consumption, and the charging fee of the user is determined according to the electricity price and the cumulative power consumption.
2. The method according to claim 1, characterized in that After the step of updating the power consumption to the user's cumulative power consumption, the method further includes: Obtaining a preset charging rule and the user's cumulative charging time, and calculating the service fee of the charging pile according to the charging rule and the cumulative charging time; The charging fee and the service fee are summed to generate and output the fee to be paid.
3. The method according to claim 2, characterized in that The step of obtaining a preset charging rule and the user's accumulated charging time, and calculating the service fee of the charging pile according to the charging rule and the accumulated charging time includes: According to the identification information of the charging pile, obtaining the charging rules of the charging pile in the database; caching the billing rules into a rules engine; The service fee is determined according to the charging duration through the rule engine.
4. The method according to claim 3, characterized in that After the step of summing the charging fee and the service fee to generate and output the fee to be paid, the method further includes: Generating a fee bill for the fee to be paid according to the charging rules and the fee to be paid; Obtaining the account splitting rules of the charging pile, and determining the account splitting share of the to-be-paid fee according to the account splitting rules and the fee bill; After receiving the payment from the user, the payment is split according to the split share.
5. The method according to claim 1, characterized in that Before the step of obtaining a time period power sequence of the charging pile based on the power detection time within the target time period and performing curve fitting on the time period power sequence to generate a charging power curve, the step further includes: Based on a preset power monitoring period, determining the power detection time of the charging pile; At the power detection time, obtaining the charging power of the charging pile; A charging power sequence is generated according to the power detection time and the charging power, wherein the charging powers in the charging power sequence are sorted based on the power detection time.
6. The method according to claim 5, characterized in that The step of obtaining a time period power sequence of the charging pile based on the power detection time within the target time period, and performing curve fitting on the time period power sequence to generate a charging power curve includes: In the charging power sequence, obtaining the time period power sequence within the target time period; Performing curve fitting on the time period power sequence according to the power detection time of the charging power in the time period power sequence and a curve fitting formula; A residual sum of squares of the fitting curve is calculated, and the charging power curve is selected from the fitting curve according to the residual sum of squares.
7. The method according to claim 1, characterized in that Before the step of obtaining a time period power sequence of the charging pile based on the power detection time within the target time period and performing curve fitting on the time period power sequence to generate a charging power curve, the step further includes: Obtaining a preset time interval, and determining an update time of the accumulated power consumption according to the preset time interval; Determine the last target update time in the historical update time; At the update time, the target time period is determined based on the target update time and the update time.
8. The method according to claim 7, characterized in that The step of determining the target time period based on the target update time and the update time at the update time includes: When detecting that the charging pile has finished charging, determining the charging end time; The charging end time is used as the update time, and the target time period is determined according to the charging end time and the target update time.
9. A charging pile billing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the charging pile billing method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the charging pile billing method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Charging pile Internet of Things pricing system
CN114559852A
Method and system for acquiring real-time cost of power generation company, computer equipment and readable storage medium
CN114565420A
Charging billing method, model and device for charging pile
CN116029775A
Intelligent charging method of new energy automobile, electronic equipment and storage medium
CN118288838A
