Method and device for displaying electric quantity of battery, storage medium and electronic equipment
By combining the actual residual power and status of the electric vehicle, different value methods are used to determine the display power value, which solves the problem of poor stability of the display SOC, and realizes the stability and accuracy of the display power value, which enhances the user's sense of use.
Patent Information
- Application Number
- CN202310948363.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-18
AI Technical Summary
In electric vehicles, the fluctuations in actual SOCs lead to poor stability of display SOCs, which reduces the user's sense of use.
By combining the actual residual power and status of the electric vehicle, different value methods are used to determine the display power value to avoid frequent fluctuations and improve the stability and accuracy of the display.
It realizes the stability and accuracy of the display power value, and improves the user's sense of use.
Smart Images

Figure CN119459448A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric vehicle power display, and in particular to a method, device, storage medium and electronic device for displaying battery power. Background Art
[0002] At present, the battery state of charge SOC (State Of Charge, remaining power) is an important parameter of electric vehicles. It indicates the percentage of the remaining battery power to the total battery power. In practice, electric vehicles generally distinguish between the actual SOC and the displayed SOC. Since the actual SOC is mostly estimated using the ampere-hour integration method, when there is a large pulse (such as slamming on the accelerator pedal or slamming on the brake pedal), the actual SOC will fluctuate. If the actual SOC is displayed as the displayed SOC, the displayed SOC will also fluctuate frequently, with poor stability, which reduces the user's experience. Summary of the invention
[0003] In view of this, the purpose of the embodiments of the present application is to provide a method, device, storage medium and electronic device for displaying battery power, so as to achieve the effect of not frequently fluctuating the displayed power value and improving the display stability.
[0004] In a first aspect, an embodiment of the present application provides a method for displaying battery power, comprising:
[0005] Obtain the actual remaining power of the electric vehicle;
[0006] According to the actual remaining power and the state of the electric vehicle, the actual remaining power is taken to obtain a displayed power value of the electric vehicle, wherein the state is a charging state or a non-charging state.
[0007] In the above implementation process, by combining the acquired actual remaining power with the state of the electric vehicle, determining the method of taking the value of the actual remaining power to obtain the displayed power value, the displayed power value can be made to truly reflect the actual remaining power of the electric vehicle as much as possible by taking the value of the actual remaining power in different states. This avoids fluctuations in the displayed power value, improves the stability and accuracy of the display, and enhances the user experience.
[0008] In one implementation, the actual remaining power is determined according to the actual remaining power and the state of the electric vehicle to obtain the displayed power value of the electric vehicle, including:
[0009] When the state is the charging state, if the actual remaining power is gradually increased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the first preset condition, or if the actual remaining power is gradually decreased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the second preset condition, the actual remaining power is rounded down to obtain the displayed power value;
[0010] Among them, the first preset situation is: the difference between the integer digits of the actual remaining power and the integer digits of the initial power value is equal to a first value; the second preset situation is: the first decimal place of the actual remaining power is less than a first threshold.
[0011] In one implementation, the first value is obtained by:
[0012] The first value is obtained by confirming a method for obtaining an initial display value by valuing the initial power value.
[0013] In one embodiment, the obtaining of the first value by confirming a method of obtaining an initial display value by valuing the initial power value includes:
[0014] If the initial power value is rounded up to obtain the initial display value, then it is confirmed that the first value is 2;
[0015] If the initial power value is rounded down to obtain the initial display value, the first value is one.
[0016] In one implementation, the confirming the method of obtaining the initial display value by obtaining the initial power value includes:
[0017] The decimal places of the initial power value are analyzed according to the first operating condition rule to confirm the value-taking method.
[0018] In one implementation, the actual remaining power is determined according to the actual remaining power and the state of the electric vehicle to obtain the displayed power value of the electric vehicle, including:
[0019] When the state is a non-charging state, if the actual remaining power is gradually reduced compared with the end power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the third preset condition, or if the actual remaining power is gradually increased compared with the end power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the fourth preset condition, the actual remaining power is rounded down to obtain the displayed power value;
[0020] The third preset condition is that the difference between the integer digit of the actual remaining power and the integer digit of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is less than the first threshold value;
[0021] The fourth preset situation is that the difference between the integer digits of the actual remaining power and the integer digits of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is greater than or equal to the second threshold.
[0022] In one embodiment, the method further comprises:
[0023] After the time corresponding to the third preset situation, or after the time corresponding to the fourth preset situation, the decimal places of the subsequent remaining power of the electric vehicle are analyzed according to the first operating condition rule to obtain a displayed power value.
[0024] In one embodiment, the first operating condition rule includes:
[0025] When it is confirmed that the power value is gradually increasing, if the decimal place of the power value does not exceed the first threshold, the power value is rounded down; if the decimal place of the power value exceeds the first threshold, the power value is rounded up;
[0026] When it is confirmed that the power value is gradually decreasing, if the decimal place of the power value exceeds the second threshold, the power value is rounded up; if the decimal place of the power value does not exceed the second threshold, the power value is rounded down;
[0027] The first threshold is smaller than the second threshold, and the power value is the initial power value when the electric vehicle enters the charging state this time, or the subsequent remaining power.
[0028] In one implementation, the actual remaining power is determined according to the actual remaining power and the state of the electric vehicle to obtain the displayed power value of the electric vehicle, including:
[0029] When the actual remaining power is not a null value and the state is the awake state, if the first decimal place of the actual remaining power is not less than a third value, the actual remaining power is rounded up to obtain the displayed power value;
[0030] If the first decimal place of the actual remaining power is smaller than the third value, the actual remaining power is rounded down to obtain the displayed power value.
[0031] In one implementation, the actual remaining power is determined according to the actual remaining power and the state of the electric vehicle to obtain the displayed power value of the electric vehicle, including:
[0032] When the actual remaining power is lower than the power threshold and the state is a non-charging state, the decimal point of the actual remaining power is analyzed according to the second operating condition rule to obtain the displayed power value.
[0033] In one embodiment, the second operating condition rule includes:
[0034] When it is confirmed that the actual remaining power is gradually decreasing, if the second decimal place of the actual remaining power exceeds a third threshold, the actual remaining power is rounded up;
[0035] If the second decimal place of the actual remaining power does not exceed the third threshold, the actual remaining power is rounded down.
[0036] In a second aspect, an embodiment of the present application provides a device for displaying battery power, including:
[0037] A power acquisition module is used to obtain the actual remaining power of the electric vehicle;
[0038] The power value obtaining module is used to obtain the actual remaining power value according to the actual remaining power and the state of the electric vehicle to obtain the displayed power value of the electric vehicle, wherein the state is a charging state or a non-charging state.
[0039] In one implementation, the power value acquisition module is used to:
[0040] When the state is the charging state, if the actual remaining power is gradually increased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the first preset condition, or if the actual remaining power is gradually decreased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the second preset condition, the actual remaining power is rounded down to obtain the displayed power value;
[0041] Among them, the first preset situation is: the difference between the integer digits of the actual remaining power and the integer digits of the initial power value is equal to a first value; the second preset situation is: the first decimal place of the actual remaining power is less than a first threshold.
[0042] In one implementation, the power value acquisition module is used to:
[0043] The first value is obtained by confirming a method for obtaining an initial display value by valuing the initial power value.
[0044] In one implementation, the power value acquisition module is used to:
[0045] If the initial power value is rounded up to obtain the initial display value, then it is confirmed that the first value is 2;
[0046] If the initial power value is rounded down to obtain the initial display value, the first value is one.
[0047] In one implementation, the power value acquisition module is used to:
[0048] The decimal places of the initial power value are analyzed according to the first operating condition rule to confirm the value-taking method.
[0049] In one implementation, the power value acquisition module is used to:
[0050] When the state is a non-charging state, if the actual remaining power is gradually reduced compared with the end power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the third preset condition, or if the actual remaining power is gradually increased compared with the end power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the fourth preset condition, the actual remaining power is rounded down to obtain the displayed power value;
[0051] The third preset condition is that the difference between the integer digit of the actual remaining power and the integer digit of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is less than the first threshold value;
[0052] The fourth preset situation is that the difference between the integer digits of the actual remaining power and the integer digits of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is greater than or equal to the second threshold.
[0053] In one implementation, the power value acquisition module is used to:
[0054] After the time corresponding to the third preset situation, or after the time corresponding to the fourth preset situation, the decimal places of the subsequent remaining power of the electric vehicle are analyzed according to the first operating condition rule to obtain a displayed power value.
[0055] In one embodiment, the first operating condition rule includes:
[0056] When it is confirmed that the power value is gradually increasing, if the decimal place of the power value does not exceed the first threshold, the power value is rounded down; if the decimal place of the power value exceeds the first threshold, the power value is rounded up;
[0057] When it is confirmed that the power value is gradually decreasing, if the decimal place of the power value exceeds the second threshold, the power value is rounded up; if the decimal place of the power value does not exceed the second threshold, the power value is rounded down;
[0058] The first threshold is smaller than the second threshold, and the power value is the initial power value when the electric vehicle enters the charging state this time, or the subsequent remaining power.
[0059] In one implementation, the power value acquisition module is used to:
[0060] When the actual remaining power is not a null value and the state is the awake state, if the first decimal place of the actual remaining power is not less than a third value, the actual remaining power is rounded up to obtain the displayed power value;
[0061] If the first decimal place of the actual remaining power is smaller than the third value, the actual remaining power is rounded down to obtain the displayed power value.
[0062] In one implementation, the power value acquisition module is used to:
[0063] When the actual remaining power is lower than the power threshold and the state is a non-charging state, the decimal point of the actual remaining power is analyzed according to the second operating condition rule to obtain the displayed power value.
[0064] In one embodiment, the second operating condition rule includes:
[0065] When it is confirmed that the actual remaining power is gradually decreasing, if the second decimal place of the actual remaining power exceeds a third threshold, the actual remaining power is rounded up;
[0066] If the second decimal place of the actual remaining power does not exceed the third threshold, the actual remaining power is rounded down.
[0067] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute an embodiment of the method for displaying battery power as described in any one of the first aspects.
[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, an embodiment of the method for displaying battery power as described in any one of the first aspects is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 One of the system diagrams for displaying battery power provided by an embodiment of the present application is shown;
[0071] Figure 2 The second system diagram for displaying battery power provided by an embodiment of the present application is shown;
[0072] Figure 3 A schematic diagram of a first operating condition rule provided in an embodiment of the present application is shown;
[0073] Figure 4 A flow chart of a method for displaying battery power provided by an embodiment of the present application is shown;
[0074] Figure 5 One of the schematic diagrams of the state of the electric vehicle provided in the embodiment of the present application is shown;
[0075] Figure 6 The second schematic diagram of the state of the electric vehicle provided in the embodiment of the present application is shown;
[0076] Figure 7 The third schematic diagram of the state of the electric vehicle provided in the embodiment of the present application is shown;
[0077] Figure 8 A schematic diagram of the structure of a device for displaying battery power provided in an embodiment of the present application is shown;
[0078] Fig. 9A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0079] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0080] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0081] In order to enable those skilled in the art to use the contents of this application, the following implementation is given in conjunction with the specific application scenario "electric vehicle". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around electric vehicles, it should be understood that this is only an exemplary embodiment. This application can be applied to any other type of transportation. For example, this application can be applied to different transportation system environments, including land, sea, or aviation, etc., or any combination thereof. The means of transportation of the transportation system may include battery-powered taxis, private cars, ride-sharing, buses, trains, bullet trains, high-speed railways, subways, ships, airplanes, spacecraft, hot air balloons, or unmanned vehicles, etc., or any combination thereof.
[0082] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0083] In the related art, when displaying the actual SOC of an electric vehicle, the actual SOC is usually rounded down. However, due to the large number of states of electric vehicles, the solution of rounding down to display SOC calculation cannot accurately reflect the real power of the battery when the electric vehicle is in a special state, resulting in a large deviation between the displayed SOC and the actual SOC. At the same time, if the actual SOC fluctuates frequently around an integer, the displayed SOC may also fluctuate, thereby reducing the user's experience.
[0084] In view of this, an embodiment of the present application provides a method for displaying battery power. After obtaining the actual SOC of the electric vehicle, the method can determine the value of the actual SOC in combination with the state of the electric vehicle, obtain the displayed power value and display it to the user. The state of the electric vehicle is a charging state or a non-charging state, and the electric vehicle is in a state of just starting up in the non-charging state, which is called a just-awakened state. The embodiment of the present application can more accurately reflect the actual SOC of the battery by displaying the SOC, while avoiding the frequent fluctuations of the SOC displayed in different states.
[0085] The following is combined with Figure 1 The overall structure of the system for displaying battery power provided by the embodiment of the present application is exemplified.
[0086] like Figure 1 As shown, an embodiment of the present application provides a system for displaying battery power, which includes: a DC charging pile 110, a battery management unit 120, and a display terminal 130. The DC charging pile 110 and the display terminal 130 include a SOC display module, and the battery management unit 120 includes an actual SOC estimation module and a display SOC estimation module. The actual SOC estimation module can estimate the power of the electric vehicle to obtain the actual SOC, and then the display SOC estimation module can analyze the actual SOC and the state of the electric vehicle to obtain the display SOC, and send the display SOC to the DC charging pile 110 and the display terminal 130 for display.
[0087] In another embodiment of the present application, a system for displaying battery power is also provided. Figure 2 , Figure 2 Another system for displaying battery power provided in an embodiment of the present application includes: a DC charging pile 110, a battery management unit 120, a vehicle controller 140, and a display terminal 130. The battery management unit 120 includes an actual SOC estimation module, and the vehicle controller 140 includes a display SOC estimation module. The actual SOC estimation module and the display SOC estimation module are connected. Figure 1The function is the same as in. After obtaining the display SOC, the vehicle controller 140 can send the display SOC to the display terminal 130 for display, and can also send the display SOC to the DC charging pile 110 for display through the battery management unit 120.
[0088] It can be understood that the display SOC estimation module can be controlled by the battery management unit 120, or by other controllers on the vehicle (such as the vehicle controller 140). The specific SOC calculation function architecture can be selected according to actual conditions, and the embodiments of the present application are not limited to this.
[0089] It should be noted that the display terminal 130 can be displayed on a large screen in the electric vehicle, can be displayed on a web page or a browser through the background system of the electric vehicle, or can be displayed through an APP of a terminal connected to the electric vehicle, where the terminal can be a mobile phone or an IPAD, etc. It should be understood that the embodiments of the present application are not limited thereto.
[0090] Before introducing the implementation process of displaying the battery power provided by the embodiment of the present application, the first operating condition rule provided by the embodiment of the present application is first exemplarily described.
[0091] In the embodiment of the present application, the first operating condition rule includes:
[0092] When it is confirmed that the power value is gradually increasing, if the decimal place of the power value does not exceed the first threshold, the power value is rounded down; if the decimal place of the power value exceeds the first threshold, the power value is rounded up;
[0093] When it is confirmed that the power value is gradually decreasing, if the decimal place of the power value exceeds the second threshold, the power value is rounded up; if the decimal place of the power value does not exceed the second threshold, the power value is rounded down; wherein the first threshold is less than the second threshold.
[0094] Specifically, Figure 3 The schematic diagram of the first working condition rule is shown in FIG. Figure 3 The horizontal axis includes the first threshold value X and the second threshold value Y, and the vertical axis is the change of SOC. Figure 3 From the arrow direction, we can see that the SOC of the black arrow is gradually increasing (that is, Figure 3 The gray arrow shows a gradually decreasing SOC trend (i.e. Figure 3From top to bottom). For example, taking the first decimal place as a reference, when the SOC is going from bottom to top, if the value of the first decimal place of the SOC does not exceed Y, it is rounded down; if it exceeds Y, it is rounded up. When the SOC is going from top to bottom, if the value of the first decimal place of the SOC is higher than or equal to X, it is rounded up; if it is lower than X, it is rounded down. It should be noted that the values of X and Y are fixed values obtained through experiments or specified by the industry, and the specific values can be determined according to actual conditions, and the embodiments of the present application are not specifically limited herein.
[0095] The following is combined with Figure 4 Exemplary description of the embodiment of the present application provided by Figure 1 The battery management unit 120 in the embodiment of the present invention performs the implementation process of displaying the battery power.
[0096] See also Figure 4 , Figure 4 This is a flow chart of a method for displaying battery power provided by an embodiment of the present application. Figure 4 As shown in , the method for displaying battery power provided by the embodiment of the present application includes:
[0097] S410: Obtain the actual remaining power of the electric vehicle.
[0098] In this step, the actual SOC estimation module of the battery management unit 120 can estimate the power of the battery of the electric vehicle (for example, using the ampere-hour integration method) to obtain the actual SOC.
[0099] S420: According to the actual remaining power and the state of the electric vehicle, the actual remaining power is determined to obtain a displayed power value of the electric vehicle.
[0100] In this step, different value-taking methods can be used for the actual SOC to obtain the displayed power value according to the scenarios in which the electric vehicle is in a charging state, a non-charging state or a wake-up state.
[0101] The implementation process of S420 is exemplified below with reference to different implementation scenarios.
[0102] Example 1
[0103] In one embodiment, S420 may include: when the state is the charging state, if the actual remaining power gradually increases compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power satisfies a first preset condition, the actual remaining power is rounded down to obtain the displayed power value. Wherein, the first preset condition is: the difference between the integer digit of the actual remaining power and the integer digit of the initial power value is equal to a first value.
[0104] In an application scenario, when an electric vehicle enters a charging state from a non-charging state, during the charging process, when the actual SOC gradually increases, and when the change in the actual SOC meets the first preset condition, the power value is displayed by rounding down.
[0105] The first value here is obtained by the following steps:
[0106] S421. Analyze the decimal places of the initial power value according to the first working condition rule and confirm the value-taking method.
[0107] S422: Obtain a first value by confirming a method for obtaining an initial display value by obtaining an initial power value.
[0108] Specifically, if the initial power value is rounded up to obtain the initial display value, it is confirmed that the first value is two; if the initial power value is rounded down to obtain the initial display value, the first value is one.
[0109] For example, according to Figure 3 The first operating condition rule provided determines the first decimal place of the initial power value and confirms the method of obtaining the initial power value. If the electric vehicle adopts the method of rounding down when entering the charging state this time, the first value is 1, and if it adopts the method of rounding up, the first value is 2.
[0110] by Figure 5 For example, the initial power value of the electric vehicle when it enters the charging state from the non-charging state is 10.8%, and the initial display value is 11%. The battery management unit 120 can confirm that the rounding up method is used at this moment, and the first value is 2. During the charging process, the actual SOC gradually increases. When the integer digit of the actual SOC (that is, the real SOC in the figure) is increased by 2 compared with the integer digit of the initial power value at the non-charging moment (the moment of entering the charging state) (as a specific example of the first preset situation), the rounding down method is adopted, such as Figure 5 The 12.00% in the figure is rounded down to 12%. Moreover, in the subsequent charging process, whether the actual SOC gradually increases or decreases, the displayed SOC is obtained by rounding down the actual SOC, such as Figure 5 When the actual SOC is 20.8%, the rounding down method is still adopted, and the displayed SOC is 20%.
[0111] Example 2
[0112] In one embodiment, S420 may include: when the state is the charging state, if the actual remaining power gradually decreases compared to the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the second preset condition, the actual remaining power is rounded down to obtain the displayed power value. Wherein, the second preset condition is: the first decimal place of the actual remaining power is less than the first threshold value.
[0113] In an application scenario, when an electric vehicle enters a charging state from a non-charging state, and during the charging process, the actual SOC gradually decreases, and when the change in the actual SOC meets the second preset condition, the power value is displayed by rounding down.
[0114] For example, Figure 6 For example, the initial power value of the electric vehicle when it enters the charging state from the non-charging state is 10.8%, and the initial display value is 11%. During the charging process, the real SOC gradually decreases. When the decimal point of the real SOC is less than or equal to X (as a specific example of the second preset situation), the rounding down method is adopted, such as Figure 6 When the actual SOC in is 10.X, the displayed SOC is 10%. Moreover, in the subsequent charging process, whether the actual SOC gradually increases or decreases, the displayed SOC is obtained by rounding down the actual SOC, such as Figure 6 When the actual SOC is 10.99%, it is still rounded down to display the SOC as 10%.
[0115] Example 3
[0116] In one embodiment, S420 may include: when the state is a non-charging state, if the actual remaining power gradually decreases compared to the ending power value at the moment when the electric vehicle exits the charging state, and the actual remaining power meets a third preset condition, the actual remaining power is rounded down to obtain the displayed power value; wherein, the third preset condition is: the difference between the integer digits of the actual remaining power and the integer digits of the ending power value is equal to a second value, and the first decimal place of the actual remaining power is less than a first threshold.
[0117] In an application scenario, when an electric vehicle enters a non-charging state from a charging state, and in the non-charging state, the actual SOC gradually decreases, and the change in the actual SOC meets the third preset condition, the power value is displayed by rounding down.
[0118] For example, Figure 5For example, when the electric vehicle enters the non-charging state from the charging state, the displayed SOC is the same as the value at the last moment when charging is completed, that is, Figure 5 At the end of charging, the displayed SOC is 20%, and the real SOC is 20.8%. As the real SOC gradually decreases after charging, when the integer digit of the real SOC changes to a value lower than the integer digit of the real SOC at the time of exiting charging -1 (that is, the second value is 1) and the decimal point of the real SOC at this time (that is, the first decimal place) is less than X, the real SOC is rounded down. Figure 5 As shown in , when the actual SOC changes to 19.X%, which is 1 less than the integer of 20.8% and the decimal place is less than X (as a specific example of the third preset situation), 19.X% is rounded down to display the SOC as 19%.
[0119] In one implementation, S420 may further include: after the moment corresponding to the third preset situation, analyzing the decimal places of the subsequent remaining power of the electric vehicle according to the first operating condition rule to obtain a displayed power value.
[0120] Specifically, when the electric vehicle is in a non-charging state, the real SOC changes to an integer lower than the real SOC at the time of exiting charging -1, and the decimal point of the real SOC is less than X. Figure 3 The first operating condition rule shown in the figure is used to obtain the displayed SOC. Figure 5 In the time after the actual SOC changes to 19.X%, the subsequent actual SOC (that is, the subsequent remaining power) is taken using the first operating condition rule to obtain the displayed SOC.
[0121] Example 4
[0122] In one implementation, S420 may include: when the state is a non-charging state,
[0123] If the actual remaining power gradually increases compared with the ending power value at the moment when the electric vehicle exits the charging state, and the actual remaining power meets the fourth preset condition, the actual remaining power is rounded down to obtain the displayed power value; the fourth preset condition is: the difference between the integer digits of the actual remaining power and the integer digits of the ending power value is equal to the second value, and the first decimal place of the actual remaining power is greater than or equal to the second threshold.
[0124] In an application scenario, when an electric vehicle enters a non-charging state from a charging state, and in the non-charging state, the actual SOC gradually increases, and when the change in the actual SOC meets the fourth preset condition, the power value is displayed by rounding down.
[0125] For example, Figure 6 For example, when the electric vehicle enters the non-charging state from the charging state, the displayed SOC is the same as the value at the last moment when charging is completed, that is, Figure 6 At the end of charging, the displayed SOC is 20%, and the actual SOC is 20.8%. As the actual SOC gradually increases after charging, when the integer digit of the actual SOC changes to 1 higher than the integer digit of the actual SOC at the time of exiting charging and the decimal point of the actual SOC is greater than Y, the actual SOC is rounded down. Figure 6 As shown in , when the actual SOC changes to 21.Y%, which integer is 1 more than the integer of 20.8% and the decimal place is greater than Y (as a specific example of the fourth preset case), 21.Y% is rounded down to display the SOC as 21%.
[0126] In one implementation, S420 may further include: after the moment corresponding to the fourth preset situation, analyzing the decimal places of the subsequent remaining power of the electric vehicle according to the first operating condition rule to obtain a displayed power value.
[0127] Specifically, when the electric vehicle is in a non-charging state, the real SOC changes to an integer digit higher than the real SOC at the time of quitting charging, and the decimal point of the real SOC is greater than or equal to Y. Figure 3 The first operating condition rule shown in the figure is used to obtain the displayed SOC. Figure 6 In the time after the actual SOC changes to 21.Y%, the first operating condition rule is used to take the subsequent actual SOC value to obtain the displayed SOC.
[0128] Example 5
[0129] In one embodiment, S420 may include: when the actual remaining power is not a null value and the state is a wake-up state, if the first decimal place of the actual remaining power is not less than the third value, rounding up the actual remaining power to obtain the displayed power value; if the first decimal place of the actual remaining power is less than the third value, rounding down the actual remaining power to obtain the displayed power value.
[0130] In an application scenario, when the electric vehicle is in a just-awakened state, that is, when the electric vehicle is in the process of starting, the battery management unit 120 obtains the actual SOC value of the electric vehicle at this time, and compares the first decimal place of the actual SOC with the third value m. If the first decimal place is greater than or equal to m, the actual SOC is rounded up to obtain the displayed SOC, otherwise, the actual SOC is rounded down to obtain the displayed SOC. It should be noted that the value of m can be determined according to actual conditions, and the embodiment of the present application is not specifically limited here.
[0131] In another scenario, when the electric vehicle is in the wake-up state, the battery management unit 120 cannot determine the actual SOC value. At this time, it is treated as an invalid value and the SOC is not displayed or displayed as - / -, or a text prompt is given to the user that the vehicle is turned on.
[0132] Example 6
[0133] In one implementation, S420 may include: when the actual remaining power is lower than a power threshold and the state is a non-charging state, analyzing the decimal point of the actual remaining power according to a second operating condition rule to obtain the displayed power value.
[0134] In an application scenario, when the electric vehicle is in a non-charging state and the actual SOC is lower than the power threshold, different second operating condition rules are used to analyze the second decimal place of the actual SOC (as a specific example of the decimal place), determine the value-taking method, and obtain the displayed power value.
[0135] In one embodiment, the second operating condition rule includes: when it is confirmed that the actual remaining power is gradually decreasing, if the second decimal place of the actual remaining power exceeds the third threshold value, the actual remaining power is rounded up; if the second decimal place of the actual remaining power does not exceed the third threshold value, the actual remaining power is rounded down.
[0136] For example, Figure 7 Taking the shown power change timing diagram as an example, the power threshold can be 1%, and the third threshold is Z (for example, Z=50). When the electric vehicle is in a non-charging state, the actual SOC changes from 1.01% to 0.99%. At this time, 0.99% is less than 1%, and it is necessary to take the value according to the second operating condition rule. The second decimal place of 0.99 is greater than Z. At this time, rounding up is adopted to obtain a displayed SOC of 1%. When the actual SOC changes to 0.0Z%, the second decimal place is less than or equal to Z. At this time, rounding down is adopted to obtain a displayed SOC of 0%. It should be noted that the value of Z can be determined according to the actual situation, and the embodiment of the present application is not specifically limited here.
[0137] The method for displaying the battery power provided in the embodiment of the present application obtains the processing logic of the displayed SOC by distinguishing between charging and non-charging conditions and adopting different strategies to process the actual SOC. When switching between the charging and non-charging states, it can ensure that the displayed SOC does not jump and perform different processing according to the changing trend of the actual SOC during the charging process, thereby truly displaying the SOC of the electric vehicle, improving the stability and accuracy of the displayed SOC, and enhancing the user experience.
[0138] Based on a method for displaying battery power described in any of the above embodiments, the present application also provides a device for displaying battery power. Figure 8 A block diagram of a device for displaying battery power in some embodiments of the present application is shown, and the functions implemented by the device for displaying battery power correspond to the steps performed by the above method. The device can be understood as the above server, or the processor of the server, or can be understood as a component that implements the functions of the present application under the control of the server independent of the above server or processor. As shown in the figure, the device 800 for displaying battery power may include a power acquisition module 810 and a power value module 820. Among them, the power acquisition module 810 is used to obtain the actual remaining power of the electric vehicle; the power value module 820 is used to value the actual remaining power according to the actual remaining power and the state of the electric vehicle, and obtain the displayed power value of the electric vehicle, wherein the state is a charging state or a non-charging state.
[0139] In some embodiments, the power value acquisition module 820 is used to:
[0140] When the state is a charging state,
[0141] If the actual remaining power is gradually increased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the first preset condition, or if the actual remaining power is gradually decreased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the second preset condition, the actual remaining power is rounded down to obtain the displayed power value;
[0142] Among them, the first preset situation is: the difference between the integer digits of the actual remaining power and the integer digits of the initial power value is equal to a first value; the second preset situation is: the first decimal place of the actual remaining power is less than a first threshold.
[0143] In some embodiments, the power value acquisition module 820 is used to:
[0144] The first value is obtained by confirming a method for obtaining an initial display value by valuing the initial power value.
[0145] In some embodiments, the power value acquisition module 820 is used to:
[0146] If the initial power value is rounded up to obtain the initial display value, then it is confirmed that the first value is 2;
[0147] If the initial power value is rounded down to obtain the initial display value, the first value is one.
[0148] In some embodiments, the power value acquisition module 820 is used to:
[0149] The decimal places of the initial power value are analyzed according to the first operating condition rule to confirm the value-taking method.
[0150] In some embodiments, the power value acquisition module 820 is used to:
[0151] When the state is a non-charging state,
[0152] If the actual remaining power gradually decreases compared with the ending power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the third preset condition, or if the actual remaining power gradually increases compared with the ending power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the fourth preset condition, the actual remaining power is rounded down to obtain the displayed power value;
[0153] The third preset condition is that the difference between the integer digit of the actual remaining power and the integer digit of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is less than the first threshold value;
[0154] The fourth preset situation is that the difference between the integer digits of the actual remaining power and the integer digits of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is greater than or equal to the second threshold.
[0155] In some embodiments, the power value acquisition module 820 is used to:
[0156] After the time corresponding to the third preset situation, or after the time corresponding to the fourth preset situation, the decimal places of the subsequent remaining power of the electric vehicle are analyzed according to the first operating condition rule to obtain a displayed power value.
[0157] In some embodiments, the first operating condition rule includes:
[0158] When the power value is confirmed to be gradually increasing,
[0159] If the decimal place of the power value does not exceed the first threshold, the power value is rounded down; if the decimal place of the power value exceeds the first threshold, the power value is rounded up;
[0160] When it is confirmed that the power value is gradually decreasing,
[0161] If the decimal place of the power value exceeds the second threshold, the power value is rounded up; if the decimal place of the power value does not exceed the second threshold, the power value is rounded down;
[0162] The first threshold is smaller than the second threshold, and the power value is the initial power value when the electric vehicle enters the charging state this time, or the subsequent remaining power.
[0163] In some embodiments, the power value acquisition module 820 is used to:
[0164] When the actual remaining power is not a null value and the state is a wake-up state,
[0165] If the first decimal place of the actual remaining power is not less than the third value, rounding up the actual remaining power to obtain the displayed power value;
[0166] If the first decimal place of the actual remaining power is smaller than the third value, the actual remaining power is rounded down to obtain the displayed power value.
[0167] In some embodiments, the power value acquisition module 820 is used to:
[0168] When the actual remaining power is lower than the power threshold and the state is a non-charging state, the decimal point of the actual remaining power is analyzed according to the second operating condition rule to obtain the displayed power value.
[0169] In some embodiments, the second operating condition rule includes:
[0170] When it is confirmed that the actual remaining power is gradually decreasing,
[0171] If the second decimal place of the actual remaining power exceeds the third threshold, the actual remaining power is rounded up;
[0172] If the second decimal place of the actual remaining power does not exceed the third threshold, the actual remaining power is rounded down.
[0173] See also Fig. 9 , Fig. 9This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown in , the electronic device 900 includes a processor 910 , a memory 920 and a bus 930 .
[0174] The memory 920 stores machine-readable instructions executable by the processor 910. When the electronic device 900 is running, the processor 910 communicates with the memory 920 through the bus 930. When the machine-readable instructions are executed by the processor 910, the steps of the method for displaying the battery power in the method embodiment shown above can be executed. The specific implementation method can be found in the method embodiment, which will not be repeated here.
[0175] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for displaying the battery power in the method embodiment shown above can be executed. The specific implementation method can be found in the method embodiment, which will not be repeated here.
[0176] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0177] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0179] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0180] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the 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.
Claims
1. A method for displaying battery power, characterized in that: include: Obtain the actual remaining power of the electric vehicle; According to the actual remaining power and the state of the electric vehicle, the actual remaining power is taken to obtain a displayed power value of the electric vehicle, wherein the state is a charging state or a non-charging state.
2. The method according to claim 1, characterized in that The method of obtaining a value of the actual remaining power according to the actual remaining power and the state of the electric vehicle to obtain a displayed power value of the electric vehicle includes: When the state is a charging state, If the actual remaining power is gradually increased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the first preset condition, or if the actual remaining power is gradually decreased compared with the initial power value when the electric vehicle enters the charging state this time, and the actual remaining power meets the second preset condition, the actual remaining power is rounded down to obtain the displayed power value; Among them, the first preset situation is: the difference between the integer digits of the actual remaining power and the integer digits of the initial power value is equal to a first value; the second preset situation is: the first decimal place of the actual remaining power is less than a first threshold.
3. The method according to claim 2, characterized in that The first value is obtained in the following manner: The first value is obtained by confirming a method for obtaining an initial display value by valuing the initial power value.
4. The method according to claim 3, characterized in that The obtaining of the first value by confirming a method of obtaining an initial display value by obtaining a value of the initial power value includes: If the initial power value is rounded up to obtain the initial display value, then it is confirmed that the first value is 2; If the initial power value is rounded down to obtain the initial display value, the first value is one.
5. The method according to claim 3, characterized in that The method of determining the initial display value obtained by valuing the initial power value includes: The decimal places of the initial power value are analyzed according to the first operating condition rule to confirm the value-taking method.
6. The method according to claim 1, characterized in that The method of obtaining a value of the actual remaining power according to the actual remaining power and the state of the electric vehicle to obtain a displayed power value of the electric vehicle includes: When the state is a non-charging state, If the actual remaining power gradually decreases compared with the ending power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the third preset condition, or if the actual remaining power gradually increases compared with the ending power value at the time when the electric vehicle exits the charging state, and the actual remaining power meets the fourth preset condition, the actual remaining power is rounded down to obtain the displayed power value; The third preset condition is that the difference between the integer digit of the actual remaining power and the integer digit of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is less than the first threshold value; The fourth preset situation is that the difference between the integer digits of the actual remaining power and the integer digits of the end power value is equal to the second value, and the first decimal digit of the actual remaining power is greater than or equal to the second threshold.
7. The method according to claim 6, characterized in that The method further comprises: After the time corresponding to the third preset situation, or after the time corresponding to the fourth preset situation, the decimal places of the subsequent remaining power of the electric vehicle are analyzed according to the first operating condition rule to obtain a displayed power value.
8. The method according to claim 5 or 7, characterized in that The first operating condition rule includes: When the power value is confirmed to be gradually increasing, If the decimal place of the power value does not exceed the first threshold, the power value is rounded down; if the decimal place of the power value exceeds the first threshold, the power value is rounded up; When it is confirmed that the power value is gradually decreasing, If the decimal place of the power value exceeds the second threshold, the power value is rounded up; if the decimal place of the power value does not exceed the second threshold, the power value is rounded down; The first threshold is smaller than the second threshold, and the power value is the initial power value when the electric vehicle enters the charging state, or the subsequent remaining power.
9. The method according to claim 1, characterized in that The method of obtaining a value of the actual remaining power according to the actual remaining power and the state of the electric vehicle to obtain a displayed power value of the electric vehicle includes: When the actual remaining power is not a null value and the state is a wake-up state, If the first decimal place of the actual remaining power is not less than the third value, rounding up the actual remaining power to obtain the displayed power value; If the first decimal place of the actual remaining power is smaller than the third value, the actual remaining power is rounded down to obtain the displayed power value.
10. The method according to claim 1, characterized in that The method of obtaining a value of the actual remaining power according to the actual remaining power and the state of the electric vehicle to obtain a displayed power value of the electric vehicle includes: When the actual remaining power is lower than the power threshold and the state is a non-charging state, the decimal point of the actual remaining power is analyzed according to the second operating condition rule to obtain the displayed power value.
11. The method according to claim 10, characterized in that The second operating condition rules include: When it is confirmed that the actual remaining power is gradually decreasing, If the second decimal place of the actual remaining power exceeds the third threshold, the actual remaining power is rounded up; If the second decimal place of the actual remaining power does not exceed the third threshold, the actual remaining power is rounded down.
12. A device for displaying battery power, characterized in that: include: A power acquisition module is used to obtain the actual remaining power of the electric vehicle; The power value obtaining module is used to obtain the actual remaining power value according to the actual remaining power and the state of the electric vehicle to obtain the displayed power value of the electric vehicle, wherein the state is a charging state or a non-charging state.
13. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to execute the steps of the method for displaying battery power as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for displaying battery power as claimed in any one of claims 1 to 11 are executed.