Energy consumption calculation method and electronic equipment for pure electric vehicles
By processing the battery SOC in segments and calculating the charging, discharge and self-discharge efficiency, the existing electric vehicle energy consumption algorithms are solved, and accurate estimation of battery energy consumption and efficient prediction of battery management systems are achieved.
Patent Information
- Application Number
- CN202411259724.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The existing electric vehicle energy consumption algorithms are insufficient in accuracy, especially in the charging, discharging and self-discharge process, the differences in the charging efficiency, discharge efficiency and self-discharge rate of the battery under different SOCs are not fully considered.
A pure electric vehicle energy consumption calculation method is proposed. By obtaining the historical data of the vehicle and charging pile data, the SOC of the battery is processed in segments, the battery capacity, charging efficiency, self-discharge rate and discharge efficiency in each SOC segment is calculated, and the data is completed by linear interpolation, and the energy consumption calculation is iteratively updated.
Accurate estimation of battery energy consumption and parameters is achieved, and the energy loss of on-board batteries in different working processes can be quantitatively analyzed and compared, which significantly improves the prediction accuracy and efficiency of the battery management system.
Smart Images

Figure CN118916576B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a method for calculating energy consumption of a pure electric vehicle and an electronic device. Background Art
[0002] There are two basic calculation methods for electric vehicle energy consumption algorithms on the market. The first is to detect the total current and total voltage data of the battery pack, integrate the product of current and voltage, and calculate the energy obtained / output during the battery charging and discharging process. This method can obtain high accuracy when the sampling interval is short enough. The other is to estimate the energy contained in the battery by detecting the remaining power of the battery based on the cumulative change of the battery state of charge (SOC), but the accuracy is lower. Among the above two algorithms, some schemes will further consider the efficiency factor of the charging and discharging process, but only roughly estimate an overall value, and then use this estimated value when calculating the energy consumption, so the accuracy of the energy consumption result is limited. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, the purpose of the present invention is to propose a method and electronic device for calculating the energy consumption of a pure electric vehicle, which combines the charging, discharging, self-discharging of the battery and the capacity decay caused by battery aging into the energy consumption algorithm to calculate the energy consumption of the pure electric vehicle in a refined manner.
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] A method for calculating energy consumption of a pure electric vehicle, the method comprising:
[0006] Obtain historical data of the vehicle and charging pile data, including current and voltage data of the vehicle battery at different SOCs;
[0007] Segment the SOC of the vehicle battery according to the above-obtained data, and classify the segments according to different states of the battery;
[0008] Get valid data in each SOC segment and calculate the battery power in that segment , Charging efficiency , self-discharge rate And the discharge efficiency , and complete the data by linear interpolation;
[0009] The data results obtained through the above calculations are assigned to the vehicle, and the initial values of the current vehicle's battery power, charging efficiency, self-discharge efficiency, and discharge efficiency are substituted;
[0010] The energy consumption of the entire vehicle is calculated based on the voltage and current data obtained when the vehicle is running according to the above data, and the above data is iteratively updated during the operation of the vehicle.
[0011] Furthermore, the historical data of the vehicle and the charging pile data are obtained, wherein the historical data includes vehicle speed, mileage, and ambient temperature; and the charging pile data includes charging power and charging time.
[0012] Furthermore, when the vehicle battery is in a charging state:
[0013] The energy input from the charging pile to the vehicle battery is :
[0014]
[0015] in, is the voltage, is the current, For charging efficiency;
[0016] After the vehicle is fully charged, the idle time After that, the remaining power for:
[0017]
[0018] in, is the nominal capacity of the battery, is the self-discharge rate.
[0019] When the vehicle battery is discharged, the output power and output energy They are:
[0020]
[0021]
[0022] in, is the discharge efficiency.
[0023] Furthermore, the SOC of the vehicle battery is segmented, and the segments are classified according to different states of the battery, including:
[0024] Divide SOC into 100 uniform intervals ,in, An integer from 0 to 99;
[0025] The 100 uniform intervals are classified according to the battery being in the state of charging, shelving and discharging. These three states of the battery correspond to the three processes of the battery being in the state of charging, self-discharging and discharging respectively.
[0026] Integrate the total voltage and total current of the battery to calculate the energy input or energy output of the battery when the SOC changes. ;
[0027] When the battery is charging, is a negative value, SOC rises, Positive, indicating that the battery is charged with energy ; When the battery is in a standby state, , SOC decreases, , at this time the battery self-discharge loss cannot be directly detected; when the battery is in the discharge state, is positive, SOC decreases, Positive, indicating the battery outputs energy .
[0028] Furthermore, the energy input or energy output when the SOC interval changes is calculated The specific steps include: calculating the battery SOC from Change to The current-voltage integral ;
[0029] in, correspond moment, correspond moment.
[0030] Further, valid data in the above 100 uniform intervals are obtained, and the valid data are grouped into three categories: charging data, storage data, and discharging data, and energy consumption parameters are calculated for each interval respectively;
[0031]
[0032]
[0033]
[0034]
[0035] in, Indicates the amount of electricity contained in the current interval. They respectively represent the charging efficiency, self-discharge rate, and discharge efficiency in the current range.
[0036] Furthermore, the step of determining whether the data in the interval is valid data is as follows:
[0037] When the SOC interval changes, the battery has two or more battery states, then the data in this interval is marked as invalid data, and the rest is valid data.
[0038] Furthermore, the iterative update of data during the operation of the vehicle relies on the following iterative formula:
[0039] ;
[0040] in, To pass the The data in the interval is calculated value; is a real-time estimate; if The initial value is not set, take the initial measurement value for The initial value of is the default parameter, 0 1.
[0041] Furthermore, the following piecewise function is added to the above iterative formula to limit change:
[0042]
[0043] in, , the piecewise function will The scope is limited to between.
[0044] The present solution also proposes an electronic device, comprising a memory, a processor and a computer program stored in the memory. When the computer program is executed by the processor, the above-mentioned pure electric vehicle energy consumption calculation method is implemented.
[0045] Beneficial effects of the present invention:
[0046] The pure electric vehicle energy consumption calculation method and electronic device of the embodiment of the present invention can accurately estimate the battery energy consumption and parameters by monitoring the charging, discharging and self-discharging processes of the battery and taking into account the changes in parameters during the battery aging process, so that the energy loss of the vehicle battery in different working processes can be quantitatively analyzed and compared, thereby significantly improving the prediction accuracy and efficiency of the battery management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a flow chart of a method for calculating energy consumption of a pure electric vehicle according to an embodiment of the present invention;
[0048] Figure 2 It is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0050] The energy consumption calculation method and electronic device for a pure electric vehicle according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
[0051] like Figure 1 A method for calculating energy consumption of a pure electric vehicle in the present invention is shown, and the method includes:
[0052] S1. Obtain historical data of the vehicle and charging pile data, including current and voltage data of the vehicle battery at different SOCs.
[0053] As an example, historical data includes vehicle speed, mileage, and ambient temperature; charging pile data includes charging power and charging time, which provide the basis for subsequent analysis.
[0054] S2. Segment the SOC of the vehicle battery according to the above-obtained data, and classify the segments according to different states of the battery. SOC segmentation helps to obtain more detailed energy consumption data and facilitates calculation efficiency.
[0055] As an example, the SOC of a vehicle battery is segmented and the segments are classified according to different states of the battery, including the following steps:
[0056] Divide SOC into 100 uniform intervals ,in, An integer from 0 to 99;
[0057] The 100 average intervals are classified according to the battery's charging, storage and discharging states;
[0058] Integrate the total voltage and total current of the battery to calculate the energy input or energy output of the battery when the SOC changes. ;
[0059] When the battery is charging, is a negative value, SOC rises, Positive, indicating that the battery is charged with energy ; When the battery is in a standby state, , SOC decreases, , at this time the battery self-discharge loss cannot be directly detected; when the battery is in the discharge state, is positive, SOC decreases, Positive, indicating the battery outputs energy .
[0060] Theoretically, the energy value in each interval It should fluctuate around a constant value, which corresponds to the energy contained in a single interval of the battery.
[0061] It should be noted that since the energy loss of the battery mainly comes from the three processes of charging, self-discharging and discharging, we divide the battery state into three states: charging, shelving and discharging, which correspond to the above three energy loss processes. The existing energy consumption algorithm fails to fully consider the differences in the charging efficiency, discharging efficiency and self-discharge rate of the battery at different SOCs. This practice of not distinguishing the SOC state leads to an overly rough calculation of the energy efficiency of the whole vehicle. If the charging, discharging efficiency and self-discharge rate can be calculated and utilized for different SOC intervals, the working efficiency of the battery can be improved and the overall energy consumption can be reduced.
[0062] Since existing energy consumption algorithms usually only give a single overall estimate for charging and discharging efficiency, this means that the same efficiency estimate is used regardless of the battery's operating conditions. This simplified method cannot provide sufficiently accurate efficiency calculations, which in turn affects the battery's refined energy management. In addition, some existing energy consumption algorithms do not take into account the battery energy loss caused by the battery's self-discharge rate, lack quantitative calculations in this regard, and thus ignore the self-discharge phenomenon of the battery during storage. Even if some algorithms take the self-discharge factor into account, they simply treat it as part of the total efficiency factor, rather than treating it as an independent process. This treatment method will lead to large errors in the calculation of self-discharge energy loss.
[0063] S3. Obtain valid data in each SOC segment and calculate the battery power in the segment , Charging efficiency , self-discharge rate And the discharge efficiency , and complete the data by linear interpolation.
[0064] The above scheme is further refined. When the SOC is not segmented, the vehicle battery is charged, and energy is charged into the vehicle battery at a stable voltage and current; when it is idle, the battery is open-circuited and there is no current in the circuit, so the current value and voltage value are invalid. At this time, the battery self-discharges and generates energy loss; when discharging, the battery outputs energy, and the current and voltage fluctuate greatly.
[0065] When the vehicle battery is in the charging state, the energy input from the charging pile to the vehicle battery is :
[0066]
[0067] in, is the voltage, is the current, For charging efficiency;
[0068] After the vehicle is fully charged, the idle time After that, the remaining power for:
[0069]
[0070] in, is the nominal capacity of the battery, is the self-discharge rate.
[0071] When the vehicle battery is discharged, the output power and output energy They are:
[0072]
[0073]
[0074] in, is the discharge efficiency.
[0075] After the SOC is segmented in the above step S2, valid data in 100 uniform intervals are obtained and grouped into three categories: charging data, standby data, and discharging data, and energy consumption parameters are calculated for each interval respectively;
[0076]
[0077]
[0078]
[0079]
[0080] in, Indicates the amount of electricity contained in the current interval. They respectively represent the charging efficiency, self-discharge rate, and discharge efficiency in the current range.
[0081] S4. Assign the data results obtained through the above calculation to the vehicle, and substitute the initial values of the current battery power, charging efficiency, self-discharge efficiency and discharge efficiency of the vehicle;
[0082] It should be noted that the self-discharge and discharge of a battery are two different concepts. Self-discharge is the phenomenon that when a battery is placed in an open circuit, the chemical reaction inside the battery causes the gradual loss of electrical energy; discharge is the process by which a battery provides power to the outside by converting chemical energy into electrical energy when connected to an external load. Batteries will also self-discharge during charging and discharging. In the method of the present invention, the self-discharge loss during the battery charging and discharging process will be regarded as part of the charging and discharging loss and calculated in the efficiency coefficient.
[0083] S5. Calculate the energy consumption of the entire vehicle based on the voltage and current data obtained when the vehicle is running according to the above data, and iteratively update the above data during the operation of the vehicle.
[0084] As an example, as the battery ages, the capacity of the battery will gradually decrease, so it is necessary to estimate the value after the battery capacity decays. In addition, the battery charging efficiency , discharge efficiency and self-discharge rate They also change as the battery ages, so these parameters also need to be estimated.
[0085] The method of the present invention continuously updates the gradually changing battery aging process through an adaptive iterative algorithm. The estimated value of .
[0086] The following iterative formula is used to iterate and update data during vehicle operation:
[0087] ;
[0088] in, To pass the The data in the interval is calculated value; is a real-time estimate; if The initial value is not set, take the initial measurement value for The initial value of is the default parameter, 0 1.
[0089] As an example, the steps of integrating the total voltage and total current of the battery in step S2 are further refined, and the specific steps include:
[0090] Calculate battery SOC from Change to The current-voltage integral ;
[0091] in, correspond moment, correspond moment.
[0092] As an example, in the above step S3, the step of determining whether the acquired data in the SOC segment interval is valid data is as follows:
[0093] When the SOC interval changes, the battery has two or more battery states, then the data in this interval is marked as invalid data, and the rest is valid data, that is, the valid data is the data when the battery is always in a certain battery state when the battery changes in a certain interval.
[0094] As an example, in the iteration process of the above step S5, the following piecewise function is added to the iteration formula to limit change:
[0095]
[0096] in, , the piecewise function will The scope is limited to between.
[0097] Corresponding to the above method, the present invention also provides an electronic device.
[0098] like Figure 2 The figure shows a schematic diagram of the structure of an electronic device in the present invention, where the electronic device 200 includes: a processor 201 and a memory 203. The processor 201 and the memory 203 are connected, such as through a bus 202. Optionally, the electronic device 200 may further include a transceiver 204. It should be noted that in actual applications, the transceiver 204 is not limited to one, and the structure of the electronic device 200 does not constitute a limitation on the embodiments of the present invention.
[0099] The processor 201 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor 201 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0100] The bus 202 may include a path to transmit information between the above components. The bus 202 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 202 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0101] The memory 203 is used to store a computer program corresponding to the pure electric vehicle energy consumption calculation method of the above embodiment of the present invention, and the computer program is controlled and executed by the processor 201. The processor 201 is used to execute the computer program stored in the memory 203 to implement the content shown in the above method embodiment.
[0102] The electronic device 200 includes, but is not limited to, mobile terminals such as laptop computers, PADs (tablet computers), and fixed terminals such as desktop computers. Figure 2 The electronic device 200 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0103] The electronic device 200 of the embodiment of the present invention can accurately estimate the battery energy consumption and parameters by monitoring the charging, discharging and self-discharging processes of the battery and taking into account the changes in parameters during the battery aging process, so that the energy loss of the vehicle battery in different working processes can be quantitatively analyzed and compared, thereby significantly improving the prediction accuracy and efficiency of the battery management system.
[0104] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0105] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0106] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0107] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0108] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for calculating energy consumption of a pure electric vehicle, characterized in that: The method comprises: Obtain historical data of the vehicle and charging pile data, including current and voltage data of the vehicle battery at different SOCs; When the vehicle battery is charging: The energy input from the charging pile to the vehicle battery is : in, is the voltage, is the current, For charging efficiency; After the vehicle is fully charged, the idle time After that, the remaining power for: in, is the nominal capacity of the battery, is the self-discharge rate; When the vehicle battery is discharged, the output power and output energy They are: in, is the discharge efficiency; Segment the SOC of the vehicle battery according to the above-obtained data, and classify the segments according to different states of the battery; The SOC of the vehicle battery is segmented and the segments are classified according to different states of the battery, including: Divide SOC into 100 uniform intervals ,in, An integer from 0 to 99; The 100 uniform intervals are classified according to the battery being in the state of charging, shelving and discharging. These three states of the battery correspond to the three processes of the battery being in the state of charging, self-discharging and discharging respectively. Integrate the total voltage and total current of the battery to calculate the energy input or energy output of the battery when the SOC changes. ; When the battery is charging, is a negative value, SOC rises, Positive, indicating that the battery is charged with energy ; When the battery is in a standby state, , SOC decreases, , at this time the battery self-discharge loss cannot be directly detected; when the battery is in the discharge state, is positive, SOC decreases, Positive, indicating the battery outputs energy ; Get valid data in each SOC segment and calculate the battery power in that segment , Charging efficiency , self-discharge rate And the discharge efficiency , and complete the data by linear interpolation, including the following: Obtain valid data in the above 100 uniform intervals, and group them into three categories: charging data, storage data, and discharging data, and calculate energy consumption parameters for each interval respectively; in, Indicates the amount of electricity contained in the current interval. Respectively represent the charging efficiency, self-discharge rate, and discharge efficiency in the current range; The data results obtained through the above calculations are assigned to the vehicle, and the initial values of the current vehicle's battery power, charging efficiency, self-discharge efficiency, and discharge efficiency are substituted; The energy consumption of the entire vehicle is calculated based on the voltage and current data obtained when the vehicle is running according to the above data, and the above data is iteratively updated during the operation of the vehicle.
2. The method for calculating energy consumption of a pure electric vehicle according to claim 1, characterized in that: The historical data of the vehicle and the charging pile data are obtained, wherein the historical data includes vehicle speed, mileage, and ambient temperature; the charging pile data includes charging power and charging time.
3. The method for calculating energy consumption of a pure electric vehicle according to claim 1, characterized in that: The energy input or energy output when calculating the SOC interval change The specific steps include: calculating the battery SOC from Change to The current-voltage integral ; in, correspond moment, correspond moment.
4. The method for calculating energy consumption of a pure electric vehicle according to claim 1, characterized in that: The steps to determine whether the data in the interval is valid data are: When the SOC interval changes, the battery has two or more battery states, then the data in this interval is marked as invalid data, and the rest is valid data.
5. The method for calculating energy consumption of a pure electric vehicle according to claim 1, characterized in that: The iterative update of data during vehicle operation relies on the following iterative formula: ; in, To pass the The data in the interval is calculated value; is a real-time estimate; if The initial value is not set, take the initial measurement value for The initial value of is the default parameter, 0 1.
6. The method for calculating energy consumption of a pure electric vehicle according to claim 5, characterized in that: Add the following piecewise function to the above iterative formula to limit change: in, , the piecewise function will The scope is limited to between.
7. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory. When the computer program is executed by the processor, the method for calculating the energy consumption of a pure electric vehicle as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method for estimating endurance mileage of pure electric vehicle
CN111376792A
Method and device for determining remaining mileage of vehicle, storage medium and electronic equipment
CN116788052A