Residual electric quantity determination method and device, electronic equipment, medium and product

By combining the data during charging and driving, the remaining battery power is calculated, which solves the problem of inaccurate battery energy calculation in electric vehicles and improves the accuracy of power calculation.

CN118618018APending Publication Date: 2024-09-10ZHEJIANG LUYUAN ELECTRIC VEHICLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410858945.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The actual usable energy of the battery in an electric vehicle is affected by ambient temperature, etc., resulting in inaccurate calculation of the remaining available power displayed on the instrument, affecting the normal use of the vehicle by users.

Method used

The current total charge is calculated by calculating the current full charge capacity and historical full charge capacity during the charging process, and the accumulated consumed capacity is calculated based on the controller current during driving to accurately calculate the remaining battery charge.

Benefits of technology

It reduces the error between the actual charged capacity of the battery and the actual dischargeable capacity, and improves the accuracy of the remaining capacity calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118618018A
    Figure CN118618018A
Patent Text Reader

Abstract

The invention discloses a remaining power determination method and device, electronic equipment, a medium and a product. The residual electric quantity determination method comprises the following steps: calculating the current total charging electric quantity according to the current full capacitance and the historical full capacitance in the charging process; calculating the accumulated consumption capacity according to the current of the controller in the driving process; and subtracting the accumulative consumed capacity from the current total charged electric quantity to obtain the current remaining electric quantity of the battery. According to the technical scheme, the current total charged electric quantity is comprehensively calculated by considering the current full capacity and the historical full capacity, and the current remaining electric quantity of the battery is calculated by combining the accumulated consumption capacity, so that the error between the actual charged electric quantity and the actual dischargeable electric quantity of the battery is reduced, and the accuracy of calculating the remaining electric quantity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of battery management technology, and in particular to a method, device, electronic device, medium and product for determining remaining power. Background Art

[0002] The energy consumption index of electric vehicles is an important consideration for users to use the vehicle. Accurate calculation of the remaining power has an important impact on the user's timely charging and travel arrangements. However, there are many uncertain factors in the vehicle's energy consumption, which leads to inaccurate calculation of the remaining available power actually displayed by the instrument. In addition, due to the influence of ambient temperature, the actual available energy of the battery will also change. The error between the actual amount of power charged into the battery and the actual amount of power that can be discharged is also relatively large, affecting the user's normal use of the vehicle. Summary of the invention

[0003] The present application provides a method, device, electronic device, medium and product for determining remaining power to accurately calculate the remaining power.

[0004] In a first aspect, an embodiment of the present application provides a method for determining remaining power, including:

[0005] Calculate the current total power charged based on the current full-charge capacity and the historical full-charge capacity during the charging process;

[0006] Calculate the accumulated consumption capacity based on the controller current during driving;

[0007] The current remaining battery power is obtained by subtracting the accumulated consumption capacity from the current total charged power.

[0008] In a second aspect, an embodiment of the present application further provides a device for determining a remaining power, including:

[0009] A charging capacity calculation module is used to calculate the current total charging capacity based on the current full-charge capacity and the historical full-charge capacity during the charging process;

[0010] A consumption capacity calculation module is used to calculate the accumulated consumption capacity according to the controller current during driving;

[0011] The remaining power calculation module is used to obtain the current remaining power of the battery by subtracting the accumulated consumption capacity from the current total charged power.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0013] one or more processors;

[0014] A storage device for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the remaining power determination method as described in the first aspect.

[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the remaining power determination method as described in the first aspect.

[0017] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the remaining power determination method as described in the first aspect.

[0018] The embodiments of the present application provide a method, device, electronic device, medium and product for determining the remaining power. The remaining power determination method includes: calculating the current total power charged according to the current full-charge capacity and the historical full-charge capacity during the charging process; calculating the cumulative consumption capacity according to the controller current during driving; subtracting the cumulative consumption capacity from the current total power charged to obtain the current remaining battery power. The above technical solution considers the current full-charge capacity and the historical full-charge capacity to comprehensively calculate the current total power charged, and calculates the current remaining battery power in combination with the cumulative consumption capacity, thereby reducing the error between the actual charge power of the battery and the actual dischargeable power, and improving the accuracy of calculating the remaining power. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0020] Figure 1 A flowchart of a method for determining remaining power provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of the structure of a device for determining remaining power provided in an embodiment of the present application;

[0022] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0024] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0025] It should be noted that the concepts of "first", "second", etc. mentioned in the embodiments of the present application are only used to distinguish different devices, modules, units or other objects, and are not used to limit the order or interdependence of the functions performed by these devices, modules, units or other objects.

[0026] In addition, the embodiments in the present application and the features in the embodiments may be combined with each other if there is no conflict.

[0027] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0028] It should be noted that in the embodiments of the present application, some existing solutions in the industry such as certain software, components, models, etc. may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the relevant content of the solution.

[0029] Figure 1 A flowchart of a method for determining remaining power provided in an embodiment of the present application. This embodiment is applicable to the case of calculating remaining power. Specifically, the method for determining remaining power can be performed by a remaining power determination device, which can be implemented by software and / or hardware and integrated in an electronic device. Electronic devices include but are not limited to computers, smart phones, electronic controllers (Electronic Control Unit, ECU), vehicle-mounted chips or servers and other devices with computing functions.

[0030] like Figure 1 As shown, the method specifically comprises the following steps:

[0031] S110, calculating the total amount of electricity currently charged according to the current full-charge capacity and the historical full-charge capacity during the charging process.

[0032] Specifically, the current full-charge capacity (denoted as Qb1) and the current state of charge (State of Charge, SOC) (denoted as Soc) can be obtained based on the charger's one-line data, and the historical number of power grids (denoted as N0) and the historical full-charge capacity (denoted as Qb0) can be obtained by retrieving historical data. Among them, the charging process includes different stages, such as the constant current stage, the constant voltage stage, and the floating charge stage, and the SOC is calculated differently in different stages. In addition, if the accessory power-on gear (ACC) is turned on, the battery remaining energy state (State of Energy, SOE) indicator light can be turned on, marked as SOE mode.

[0033] The current total amount of electricity charged can be determined based on the current full-charge capacity and the historical full-charge capacity. For example, when the current full-charge capacity is greater than the set ratio of the historical full-charge capacity, the current total amount of electricity charged can be the historical full-charge capacity multiplied by Soc, that is, Qc=Qb0*Soc; when the current full-charge capacity is less than the set ratio of the historical full-charge capacity, the current total amount of electricity charged can be determined by combining the current full-charge capacity and the historical full-charge capacity, for example: Qb=a*Qb1+b*Qb0, where a and b are the weights corresponding to the current full-charge capacity and the historical full-charge capacity, respectively, and can be flexibly set according to actual needs.

[0034] Optionally, if the conditions are not met for the first charging and the historical full-charge capacity is not obtained, the default battery capacity can be obtained according to the nominal current of the charger as the current full-charge capacity; for non-first charging, the maximum discharge capacity Q100 (one-line data content byte19+byte20) when the battery is fully charged (SOC=100%) in the charger data can be obtained, and if Q100=0, the full-charge capacity obtained last time is used as the current full-charge capacity; if Q100≠0, when Q100 is greater than 20% of the full-charge capacity obtained last time, Q100 is judged as valid data, that is, as the current full-charge capacity.

[0035] Optionally, during the charging process, the charger sends data at a set frequency, such as sending 3 packets of data every 5 minutes, and the last packet of correctly received data in every 5 minutes can be used for calculation. There may be a certain delay in obtaining the one-line data, such as a 20-minute delay for full charge and a 5-minute delay for incomplete charge.

[0036] S120, calculating the accumulated consumption capacity according to the controller current during driving.

[0037] Specifically, during the driving process, the vehicle collects the controller current and calculates the accumulated consumption capacity of the driving process in an integral manner.

[0038] S130: Subtract the accumulated consumption capacity from the current total amount of power charged to obtain the current remaining battery power.

[0039] The current remaining battery power can be converted into the current power grid and displayed. For example, taking the total grid number as 5, when Soc is lower than 80%, the current power grid number drops from 5 to 4, when Soc is lower than 60%, the current power grid number drops from 4 to 3, and so on. When Soc is lower than 20%, the current power grid number drops to the last grid.

[0040] In addition, the discharge energy value of each grid can be corrected by sliding average to ensure that the error of the discharge energy of each grid is less than 5%. When the battery reaches the end of the driving, the error is corrected according to the sampled voltage. The sliding average method is to correct the discharge capacity error of each grid. The average of the current capacity of the battery to the current number of display grids is the discharge capacity of a single grid. In the process of calculating the cumulative consumption capacity through the current integration of the controller, taking a total of 5 grids as an example, the discharge capacity of the first 4 grids can be balanced, and the discharge capacity of each grid is 20%. It is related to the battery undervoltage. When the voltage is 11.4V, it will be forced to display as the last grid. When it is discharged to 10.8V, the last grid starts to flash, indicating that the power is discharged. There will be deviations in the actual discharge capacity of the last grid. At this time, the average value of the actual discharge capacity of the first four grids can be used for smooth correction, so that the last grid starts to flash when the average value of the smooth correction is met.

[0041] A method for determining the remaining power provided in an embodiment of the present application considers the current full-charge capacity and the historical full-charge capacity to comprehensively calculate the current total power charged, and calculates the current remaining battery power in combination with the cumulative consumption capacity, thereby reducing the error between the actual charged power of the battery and the actual dischargeable power, and improving the accuracy of calculating the remaining power.

[0042] In one embodiment, the current total amount of electricity charged is calculated based on the current full-charge capacity and the historical full-charge capacity during the charging process, including: if the current full-charge capacity (Qb1) is greater than a set ratio of the historical full-charge capacity (Qb0), then the weighted sum of the current full-charge capacity and the historical full-charge capacity is calculated, and the weighted sum is multiplied by the current state of charge (Soc) to obtain the current total amount of electricity charged (Qc); otherwise, the historical full-charge capacity is multiplied by the current state of charge to obtain the current total amount of electricity charged.

[0043] Exemplarily, the set ratio may be 0.5.

[0044] In the case of Qb1>0.5Qb0, Qc=(0.7*Qb1+0.3*Qb0)*Soc;

[0045] When Qb1≤0.5Qb0, Qc=Qb0*Soc.

[0046] In one embodiment, the method further comprises:

[0047] S140, calculating the current number of power bars (denoted as N1) according to the current state of charge (denoted as Soc);

[0048] When the current state of charge is in different ranges, the corresponding current battery level grid number is different. The following takes the total number of grids of 5 and 10 as examples to explain the total number of grids / current battery level grid number corresponding to different current charge states:

[0049] Soc=100%, the corresponding total grid number / current power grid number is: 5 grids / 5 grids 10 grids / 10 grids;

[0050] Soc = 90-99%, the corresponding total grid number / current power grid number is: 5 grids / 4 grids 10 grids / 9 grids;

[0051] Soc=80-89%, the corresponding total grid number / current power grid number is: 5 grids / 5 grids 10 grids / 8 grids;

[0052] Soc=70-79%, the corresponding total grid number / current power grid number is: 5 grids / 4 grids 10 grids / 7 grids;

[0053] Soc=60-69%, the corresponding total grid number / current power grid number is: 5 grids / 4 grids 10 grids / 6 grids;

[0054] Soc=50-59%, the corresponding total grid number / current power grid number is: 5 grids / 3 grids 10 grids / 5 grids;

[0055] Soc=40-49%, the corresponding total grid number / current power grid number is: 5 grids / 3 grids 10 grids / 4 grids;

[0056] Soc=30-39%, the corresponding total grid number / current power grid number is: 5 grids / 2 grids 10 grids / 3 grids;

[0057] Soc=20-29%, the corresponding total grid number / current power grid number is: 5 grids / 2 grids 10 grids / 2 grids;

[0058] Soc = 10-19%, the corresponding total grid number / current power grid number is: 5 grids / 1 grid 10 grids / 1 grid;

[0059] Soc=0-9%, the corresponding total grid number / current power grid number is: 5 grids / 1 grid flashing 10 grids / 1 grid flashing.

[0060] S150: If the current number of power grids is greater than or equal to the historical number of power grids (N0), calculate the current remaining capacity (Qc) and the allocated capacity (Qd) of each grid of the current number of power grids.

[0061] S160: If the current number of power grids is less than the historical number of power grids, calculate the apportioned capacity of each grid of the historical number of power grids based on the average current remaining capacity.

[0062] In this embodiment, an energy balancing algorithm is used to average the actual energy consumption of each driving segment to the number of power grids displayed in each segment. Specifically, if N1≥N0, then Qd=Qc / N1; otherwise, Qd=Qc / N.

[0063] Optionally, if the battery one-line data cannot be obtained for a set time (such as 10s), it can be considered that the communication is abnormal and marked as battery voltage state (SOV) mode; if ACC is turned on, the SOE indicator light can be turned off. In addition, if the communication with the charger is disconnected and the voltage drops, the data of this charging (including the number of power grids and full charge capacity) will be stored as historical data.

[0064] In one embodiment, the method further includes: determining a current state of charge according to the current charging stage during the charging process; wherein,

[0065] In the first constant current stage, the current state of charge is: (Ui-U0) / (U1max-U0)*SOC1;

[0066] In the first constant voltage stage, the current state of charge is: (Imax-Ii) / (Imax-Imin)*SOC2+SOC1;

[0067] In the second constant current stage, the current state of charge is: SOC = (Ui-U1max) / (U3max-U1max)*SOC3+SOC2+SOC1;

[0068] In the second constant voltage stage, the current state of charge is: SOC = 99%;

[0069] In the floating charge stage, the current state of charge is: SOC = 100%;

[0070] Among them, U0 is the single-cell voltage value when SOC=0%, Ui is the single-cell voltage value sampled by the charger in real time, Ii is the current value sampled by the charger in real time, Imax is the maximum current in the first constant voltage stage, Imin is the minimum current in the first constant voltage stage, Umax is the rated maximum voltage value after temperature compensation of the charger, Imax is the maximum current of the charger, U1max is the first constant current stage, and U3max is the maximum voltage in the second constant current stage.

[0071] In one embodiment, the cumulative consumption capacity is calculated according to the controller current during driving, including:

[0072] The controller current is sampled during driving, and the accumulated consumption capacity is calculated according to the following formula:

[0073] Wherein, I(i) is the controller current obtained by the i-th sampling.

[0074] The method also includes: if the accumulated consumption capacity is equal to the allocated capacity of each grid, the number of grids currently displayed for power is reduced by one grid, and the accumulated consumption capacity value is reset to zero.

[0075] Specifically, during driving, the current number of displayed power grids is recorded as Nd, and the initial state Nd is the historical power grid number N0. The controller current during driving is sampled and the cumulative consumption capacity Qh is calculated according to the above formula. Whenever Qh=Qd, the current number of displayed power grids is reduced by one grid and updated to Nd-1, and the cumulative consumption capacity value Qh=0 is cleared, and then the next grid power consumption process is entered.

[0076] Optionally, if the accumulated low battery time is greater than or equal to the first threshold, such as the single cell voltage is less than the first voltage value (such as 11.4V), it is low battery, and the accumulated low battery time is greater than or equal to 1 minute, it is forced to enter the "low battery indication". If the total number of grids is 5 or 10, the corresponding low battery means that the current displayed power is 1 grid or 2 grids, and the charging reminder light can be lit at the same time.

[0077] Optionally, if the accumulated low battery time is greater than or equal to the second threshold, such as the single cell voltage is less than the second voltage value (such as 10.8V), it is low battery, and the accumulated low battery time is greater than or equal to 1 minute, it is forced to switch to "low battery indication". If the total number of grids is 5 or 10, the corresponding low battery means that the current displayed power is 1 grid flashing or 1 grid flashing, and the charging reminder light can be lit at the same time.

[0078] In one embodiment, the method further comprises:

[0079] S170: Enter the parking state when the conditions are met.

[0080] Specifically, the parking state is entered when ACC is turned off, or the parking state is entered when ACC is turned on but the vehicle speed is 0. In addition, it can be marked as SOV mode, the SOE indicator light is turned off, and the power is displayed in SOV mode.

[0081] S180. In the parking state, the accumulated consumption capacity (Qh) is updated in real time, wherein if the accessory power-on position is closed, the constant current integral is calculated according to the first set current, and if the accessory power-on position is opened, the constant current integral is calculated according to the second set current, and the second set current is greater than the first set current.

[0082] Specifically, when ACC is turned off, it can be integrated at a constant current of 10mA, consuming 0.24Ah for 24 hours and 0.12Ah for 12 hours. If the parking time is less than 12 hours, no consumption accumulation is required. When ACC is turned on, it can be integrated at a constant current of 300mA, consuming 0.3Ah per hour. If the parking time is less than 10 minutes, no consumption accumulation is required.

[0083] S1070. If the accumulated consumption capacity is equal to the allocated capacity per grid (Qd), the number of grids currently displaying the power level is reduced by one, and the accumulated consumption capacity value is reset to zero.

[0084] Specifically, whenever Qh=Qd, the number of grids currently displayed for power is reduced by one, updated to Nd-1, and the accumulated consumption capacity value Qh=0 is cleared, and then the next grid power consumption process is entered.

[0085] Optionally, when fully charged, the full grid can be displayed, otherwise, at most one grid less than the full grid can be displayed. A special case is that when the SOE is in the full grid state, the charging must follow the principle of only increasing and not decreasing. For example, after the charging reaches the full grid, the vehicle has a short driving distance, and the full grid is not reduced before charging again; for example, after the battery is fully charged, the charger is immediately powered on to continue charging; for example, after the battery is fully charged, it is parked for a period of time and then charged again.

[0086] A method for determining the remaining power provided in an embodiment of the present application can adjust the undervoltage protection value of a single battery, the total undervoltage protection value of multiple batteries, and the current output according to the battery temperature; and when the battery is undervoltage, the vehicle speed can be controlled to allow the battery to fully discharge; in addition, the user can set whether to enable the speed-up function through the APP, and the electronic device can also set whether to perform undervoltage control according to the battery temperature through the switch state, which improves the flexibility of undervoltage control and can meet different actual needs.

[0087] Figure 2 A schematic diagram of the structure of a remaining power determination device provided in an embodiment of the present application. The remaining power determination device provided in this embodiment includes:

[0088] A charging power calculation module 210 is used for calculating the current total charging power according to the current full-charge capacity and the historical full-charge capacity during the charging process;

[0089] The consumption capacity calculation module 220 is used to calculate the accumulated consumption capacity according to the controller current during driving;

[0090] The remaining power calculation module 230 is used to obtain the current remaining power of the battery by subtracting the accumulated consumption capacity from the current total charged power.

[0091] Optionally, the control module 220 is further configured to: control a total under-voltage protection value of the multiple batteries according to the battery temperature, wherein the battery temperature is positively correlated with the total under-voltage protection value of the multiple batteries.

[0092] Optionally, the charged power calculation module 210 is used to:

[0093] If the current full-charge capacity is greater than the set ratio of the historical full-charge capacity, a weighted sum of the current full-charge capacity and the historical full-charge capacity is calculated, and the weighted sum is multiplied by the current state of charge to obtain the current total amount of electricity charged;

[0094] Otherwise, the historical full-charge capacity is multiplied by the current state of charge to obtain the current total charged capacity.

[0095] Optionally, the device further comprises:

[0096] The cell number calculation module is used to calculate the current battery cell number according to the current state of charge;

[0097] The first averaging module is used to calculate the apportioned capacity of each grid of the current remaining capacity if the current number of power grids is greater than or equal to the historical number of power grids;

[0098] The second averaging module is used to calculate the apportioned capacity of each grid of the current remaining capacity averaged to the historical power grid number if the current power grid number is less than the historical power grid number.

[0099] Optionally, the device further comprises:

[0100] The state of charge determination module is used to determine the current state of charge according to the current charging stage during the charging process; wherein,

[0101] In the first constant current stage, the current state of charge is: (Ui-U0) / (U1max-U0)*SOC1;

[0102] In the first constant voltage stage, the current state of charge is: (Imax-Ii) / (Imax-Imin)*SOC2+SOC1;

[0103] In the second constant current stage, the current state of charge is: SOC = (Ui-U1max) / (U3max-U1max)*SOC3+SOC2+SOC1;

[0104] In the second constant voltage stage, the current state of charge is: SOC = 99%;

[0105] In the floating charge stage, the current state of charge is: SOC = 100%;

[0106] Among them, U0 is the single-cell voltage value when SOC=0%, Ui is the single-cell voltage value sampled by the charger in real time, Ii is the current value sampled by the charger in real time, Imax is the maximum current in the first constant voltage stage, Imin is the minimum current in the first constant voltage stage, Umax is the rated maximum voltage value after temperature compensation of the charger, Imax is the maximum current of the charger, U1max is the first constant current stage, and U3max is the maximum voltage in the second constant current stage.

[0107] Optionally, the consumption capacity calculation module 220 is used to sample the controller current during driving and calculate the accumulated consumption capacity according to the following formula:

[0108] Where I(i) is the controller current obtained by the i-th sampling;

[0109] The device also includes:

[0110] The grid number control module is used to reduce the current displayed power grid number by one grid and reset the accumulated consumption capacity value to zero if the accumulated consumption capacity is equal to the allocated capacity of each grid.

[0111] Optionally, the device further comprises:

[0112] A state transition module, used for entering a parking state when a condition is met;

[0113] An accumulation module, used for updating the accumulated consumption capacity in real time in the parking state, wherein if the accessory power-on gear is closed, the constant current integration is performed according to the first set current, and if the accessory power-on gear is opened, the constant current integration is performed according to the second set current, and the second set current is greater than the first set current;

[0114] The grid number control module is used to reduce the current displayed power grid number by one grid and reset the accumulated consumption capacity value to zero if the accumulated consumption capacity is equal to the allocated capacity of each grid.

[0115] The remaining power determination device provided in the embodiments of the present application can be used to execute the remaining power determination method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0116] Figure 3A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 10 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, user equipment, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0117] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0118] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, wireless networks.

[0119] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above.

[0120] In some embodiments, the method of the above embodiment may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform any of the above embodiment methods in any other appropriate manner (e.g., by means of firmware).

[0121] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0122] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0123] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0124] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 10 having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device 10. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0125] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0126] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0127] An embodiment of the present application also provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the remaining power determination method as described in any of the above embodiments.

[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.

[0129] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for determining remaining power, characterized in that: include: Calculate the current total power charged based on the current full-charge capacity and the historical full-charge capacity during the charging process; Calculate the accumulated consumption capacity based on the controller current during driving; The current remaining battery power is obtained by subtracting the accumulated consumption capacity from the current total charged power.

2. The method according to claim 1, characterized in that The total amount of electricity currently charged is calculated based on the current full-charge capacity and the historical full-charge capacity during the charging process, including: If the current full-charge capacity is greater than the set ratio of the historical full-charge capacity, a weighted sum of the current full-charge capacity and the historical full-charge capacity is calculated, and the weighted sum is multiplied by the current state of charge to obtain the current total amount of electricity charged; Otherwise, the historical full-charge capacity is multiplied by the current state of charge to obtain the current total charged capacity.

3. The method according to claim 1, characterized in that Also includes: Calculate the current battery level according to the current state of charge; If the current number of power grids is greater than or equal to the historical number of power grids, calculate the current remaining capacity to average the capacity of each grid of the current number of power grids; If the current power grid number is less than the historical power grid number, calculate the current remaining capacity to average the capacity of each grid of the historical power grid number.

4. The method according to claim 2 or 3, characterized in that: Also includes: The current state of charge is determined according to the current charging stage during the charging process; wherein, In the first constant current stage, the current state of charge is: (Ui-U0) / (U1max-U0)*SOC1; In the first constant voltage stage, the current state of charge is: (Imax-Ii) / (Imax-Imin)*SOC2+SOC1; In the second constant current stage, the current state of charge is: SOC = (Ui-U1max) / (U3max-U1max)*SOC3+SOC2+SOC1; In the second constant voltage stage, the current state of charge is: SOC = 99%; In the floating charge stage, the current state of charge is: SOC = 100%; Among them, U0 is the single-cell voltage value when SOC=0%, Ui is the single-cell voltage value sampled by the charger in real time, Ii is the current value sampled by the charger in real time, Imax is the maximum current in the first constant voltage stage, Imin is the minimum current in the first constant voltage stage, Umax is the rated maximum voltage value after temperature compensation of the charger, Imax is the maximum current of the charger, U1max is the first constant current stage, and U3max is the maximum voltage in the second constant current stage.

5. The method according to claim 1, characterized in that The accumulated consumption capacity is calculated based on the controller current during driving, including: The controller current is sampled during driving, and the accumulated consumption capacity is calculated according to the following formula: Where I(i) is the controller current obtained by the i-th sampling; The method further comprises: If the cumulative consumption capacity is equal to the allocated capacity of each grid, the current displayed power grid number will be reduced by one grid and the cumulative consumption capacity value will be reset to zero.

6. The method according to claim 1, characterized in that Also includes: Entering the parking state when the conditions are met; In the parking state, the accumulated consumption capacity is updated in real time, wherein if the accessory power-on gear is closed, the constant current integral is calculated according to the first set current, and if the accessory power-on gear is opened, the constant current integral is calculated according to the second set current, and the second set current is greater than the first set current; If the cumulative consumption capacity is equal to the allocated capacity of each grid, the current displayed power grid number will be reduced by one grid and the cumulative consumption capacity value will be reset to zero.

7. A device for determining remaining power, characterized in that: include: A charging capacity calculation module is used to calculate the current total charging capacity based on the current full-charge capacity and the historical full-charge capacity during the charging process; A consumption capacity calculation module is used to calculate the accumulated consumption capacity according to the controller current during driving; The remaining power calculation module is used to obtain the current remaining power of the battery by subtracting the accumulated consumption capacity from the current total charged power.

8. An electronic device, 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 a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the remaining power determination method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the remaining power determination method as described in any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program and / or instructions, characterized in that: When the computer program and / or instructions are executed by a processor, the remaining power determination method as described in any one of claims 1 to 6 is implemented.