Battery power detection method, device, storage medium and electronic equipment
By obtaining the initial battery power and sampling period, and using the power detection device to determine the battery power status, the problem of excessive power detection computing resources in the existing technology is solved, and efficient power monitoring and prompting are achieved.
Patent Information
- Application Number
- CN202011035891.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-27
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2040-09-27
AI Technical Summary
In the prior art, the battery charge detection method uses an ADC to collect current in real time and performs integral and summation operations in a single-chip microcomputer, resulting in excessive use of single-chip microcomputer computing resources, limited function development, and insufficient performance utilization efficiency.
By obtaining the initial battery power and sampling period, the difference between the first electrical data and the second electrical data is determined to determine the battery power status at the target sampling time, avoiding complex multiplication and division operations when the power indication device is not working.
The computational complexity of power detection is simplified, computing resources are saved, and the efficiency of power monitoring is improved. Complex calculations are performed only when the power prompt device is in working state to provide specific power prompts.
Smart Images

Figure CN114325416B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic technology, and in particular to a battery power detection method, device, storage medium, and electronic device. Background Art
[0002] At present, the typical current integration method is generally used to detect battery power. In the current integration method, an ADC (Analog-to-Digital Converter) is generally used to collect battery current in real time, and a single-chip microcomputer is used to integrate and sum the current to calculate the current cumulative consumption. At the same time, the remaining power is displayed in real time on the corresponding display interface for relevant personnel to view. In this way, after the battery current is collected in real time by the ADC, the integral summation operation is performed in the single-chip microcomputer. Frequent multiplication and addition operations are required to obtain the remaining power in real time, resulting in the occupation of the single-chip microcomputer's computing resources, limited function development, and insufficient performance utilization efficiency. Summary of the Invention
[0003] The present invention aims to provide a battery charge detection method, device, storage medium and electronic device to improve the performance of battery charge detection.
[0004] In order to achieve the above object, according to a first aspect of the present disclosure, a battery power detection method is provided, the method comprising:
[0005] Obtaining the initial battery charge and the sampling period for sampling the target electrical parameters;
[0006] Determining first electrical data based on the initial electrical charge and the sampling period, where the first electrical data represents a sum of data that should be collected from each sampling of the target electrical parameter during a process in which the battery power changes from the initial electrical charge to zero according to the sampling period;
[0007] Acquire second electrical data at a target sampling time, where the second electrical data is used to represent the sum of data actually collected from each sampling of the target electrical parameter up to the target sampling time;
[0008] If the power indication device is not in a working state, the power status of the battery at the target sampling time is determined according to the difference between the first electrical data and the second electrical data.
[0009] Optionally, determining the first electrical data according to the initial electrical quantity and the sampling period includes:
[0010] The ratio of the initial electrical quantity to the sampling period is determined as the first electrical data.
[0011] Optionally, if the power indication device is not in a working state, determining the power status of the battery at the target sampling time according to the difference between the first electrical data and the second electrical data includes:
[0012] determining a difference value obtained by subtracting the second electrical data from the first electrical data;
[0013] If the difference is greater than a preset threshold, it is determined that the battery power is sufficient;
[0014] If the difference is less than or equal to the preset threshold, it is determined that the battery power condition is insufficient.
[0015] Optionally, the method further includes:
[0016] If it is determined that the battery power is insufficient, a prompt message indicating that the battery power is insufficient is generated and output.
[0017] Optionally, the method further includes:
[0018] If the power indication device is in the working state, determining the state of charge (SOC) value and / or the remaining power of the battery at the target sampling time according to the first power data and the second power data;
[0019] The SOC value and / or the remaining power are outputted via the power prompt device.
[0020] Optionally, the state of charge (SOC) value of the battery at the target sampling time is determined by the following formula (1):
[0021]
[0022] Among them, C is the first electrical data, and D is the second electrical data.
[0023] Optionally, the remaining power E of the battery at the target sampling time is determined by the following formula (2):
[0024] E=(CD)*B (2)
[0025] Among them, C is the first electrical data, D is the second electrical data, and B is the sampling period.
[0026] According to a second aspect of the present disclosure, a battery power detection device is provided, the device comprising:
[0027] A first acquisition module is used to obtain the initial power of the battery and a sampling period for sampling the target electrical parameters;
[0028] a first determining module, configured to determine first electrical data based on the initial electrical charge and the sampling period, the first electrical data being used to represent the sum of data that should be collected from each sampling of the target electrical parameter during a process in which the battery power changes from the initial electrical charge to zero according to the sampling period;
[0029] a second acquisition module, configured to acquire second electrical data at a target sampling moment, wherein the second electrical data is used to represent the sum of data actually acquired from each sampling of the target electrical parameter up to the target sampling moment;
[0030] The second determining module is configured to determine the battery charge status of the battery at the target sampling time according to the difference between the first electrical data and the second electrical data if the battery charge prompt device is not in a working state.
[0031] Optionally, the first determining module is used to determine a ratio of the initial electrical quantity to the sampling period as the first electrical data.
[0032] Optionally, the second determining module includes:
[0033] a first determining submodule, configured to determine a difference value obtained by subtracting the second electrical data from the first electrical data;
[0034] A second determining submodule is configured to determine that the battery power is sufficient if the difference is greater than a preset threshold;
[0035] The third determining submodule is configured to determine that the battery power condition is insufficient if the difference is less than or equal to the preset threshold.
[0036] Optionally, the device further comprises:
[0037] The first prompt module is used to generate and output prompt information indicating that the battery power is low if it is determined that the battery power is low.
[0038] Optionally, the device further comprises:
[0039] a third determining module, configured to determine, if the power prompt device is in the working state, the state of charge (SOC) value and / or the remaining power of the battery at the target sampling time based on the first power data and the second power data;
[0040] The second prompt module is used to output the SOC value and / or the remaining power through the power prompt device.
[0041] Optionally, the state of charge (SOC) value of the battery at the target sampling time is determined by the following formula (1):
[0042]
[0043] Among them, C is the first electrical data, and D is the second electrical data.
[0044] Optionally, the remaining power E of the battery at the target sampling time is determined by the following formula (2):
[0045] E=(CD)*B (2)
[0046] Among them, C is the first electrical data, D is the second electrical data, and B is the sampling period.
[0047] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method described in the first aspect of the present disclosure are implemented.
[0048] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0049] a memory having a computer program stored thereon;
[0050] A processor is used to execute the computer program in the memory to implement the steps of the method described in the first aspect of the present disclosure.
[0051] Through the above technical solution, the initial battery charge and the sampling period for sampling the target electrical parameter are obtained. Based on the initial battery charge and the sampling period, first electrical data representing the sum of the data that should be collected for each sampling of the target electrical parameter during the sampling period and when the battery charge changes from the initial charge to zero is determined. Second electrical data representing the sum of the data actually collected for each sampling of the target electrical parameter up to the target sampling time is obtained. If the battery charge indication device is not in an operating state, the battery charge status at the target sampling time is determined based on the difference between the first electrical data and the second electrical data. In this way, by calculating the first electrical data and the second electrical data, the time parameter in the battery charge calculation process is eliminated, so that the difference between the first electrical data and the second electrical data can simply reflect the battery charge status, thereby realizing the function of power monitoring with low computational complexity. Furthermore, when the battery charge indication device is not in an operating state, the SOC value or remaining charge value is not calculated, and the power monitoring is performed only based on the difference between the first electrical data and the second electrical data. Complex multiplication and division operations are not required, thus saving computing resources and device performance.
[0052] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following detailed description, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0054] Figure 1 is a flow chart of a battery power detection method provided according to an embodiment of the present disclosure;
[0055] Figure 2 This is an exemplary flow chart of the step of determining the battery charge status at a target sampling time based on the difference between the first electrical data and the second electrical data in the battery charge detection method provided by the present disclosure;
[0056] Figure 3 is a flow chart of a battery power detection method provided according to another embodiment of the present disclosure;
[0057] Figure 4 is a block diagram of a battery capacity detection device provided according to an embodiment of the present disclosure;
[0058] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0059] The following describes the specific embodiments of the present disclosure in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure.
[0060] Figure 1 FIG. 1 is a flow chart of a battery charge detection method according to an embodiment of the present disclosure. Figure 1 As shown, the method may include the following steps.
[0061] In step 11, the initial battery capacity and the sampling period for sampling the target electrical parameters are obtained.
[0062] Here, the initial power of the battery refers to the power of the battery in the initial stage of sampling. For example, if the battery power detection starts at time T, then the initial power of the battery is the actual power of the battery at time T. There are many ways to determine the initial power of the battery. For example, when determining the initial power of this sampling, since the battery is usually not used during the two sampling processes, the battery power at the end of the previous sampling can be used as the above-mentioned initial power. For another example, the above-mentioned initial power can be predicted by the changes in the battery power during the historical sampling process (such as prediction through a trained model, prediction by drawing a chart, etc.). For another example, the existing method of calculating battery power can be used to calculate the initial power of the battery in real time.
[0063] Therefore, based on the above content, when performing power detection on the battery, it is easy to obtain the initial power of the battery.
[0064] The sampling period for sampling the target electrical parameter can be directly obtained from the sampling device. For example, if the target electrical parameter is sampled by a sampling device ADC during battery charge detection, the sampling period can be directly obtained from the ADC's sampling settings. The sampling period reflects the sampling interval. For example, the target electrical parameter can be current.
[0065] In step 12, first electrical data is determined according to the initial electrical quantity and the sampling period.
[0066] The first electrical data represents the sum of the data collected from each sampling of the target electrical parameter during the sampling period, as the battery's charge level decreases from an initial level to zero. Physically, the first electrical data represents the battery's discharge rate, specifically the discharge efficiency based on the sampling period. The calculation of the first electrical data eliminates the influence of time parameters and serves as a reference.
[0067] For example, the ratio of the initial power level to the sampling period can be determined as the first power data. The initial power level can represent the total power that the battery can supply externally, and the sampling period represents time. The ratio of the two can represent the data that the total power level can be distributed to each sampling moment, eliminating the influence of the time parameter. Furthermore, in general, the total power divided by time is equivalent to efficiency. Therefore, by calculating the ratio of the initial power level to the sampling period, the discharge efficiency of the battery during use can be reflected.
[0068] In step 13, second electrical data at the target sampling moment is acquired.
[0069] The second electrical data is used to represent the sum of data actually collected from each sampling of the target electrical parameter up to the target sampling moment.
[0070] The second electrical data is the data actually collected by the sampling device before the target sampling time. It is actual data and also does not contain time parameters. It is used for comparison with the first electrical data as reference data.
[0071] The target sampling time can be any sampling time. If you need to detect the power level at a certain sampling time, you can use that sampling time as the target sampling time. In actual applications, each sampling time can be used as the target sampling time in turn, thereby achieving the effect of real-time detection of battery power.
[0072] In step 14, if the power indication device is not in the working state, the power status of the battery at the target sampling time is determined according to the difference between the first power data and the second power data.
[0073] The power prompt device is used to provide a more specific reminder of the battery power level, and is used to prompt the battery's SOC value (State Of Charge) and / or remaining power. The prompt methods of the power prompt device include but are not limited to the following: text display, image display, light prompt, and audio playback. For example, if the power prompt device is a display device and prompts are provided by text display, then when the power prompt device is in working state, the battery's SOC value and / or remaining power will be displayed in text on the display screen of the power prompt device.
[0074] Furthermore, when the power reminder device is in working state (for example, the device is awake), it will remind the battery power status, but when it is not in working state (for example, the device is asleep), it will not remind the battery power status.
[0075] Therefore, if the power prompt device is not in working condition, the battery power status cannot be displayed. Therefore, even if the SOC value and the remaining power are calculated, these contents will not be output through the power prompt device. Therefore, in order to save computing resources, it is not necessary to calculate the SOC value and / or the remaining power, but only determine the battery power status at the target sampling time based on the difference between the first electrical data and the second electrical data.
[0076] In a possible implementation, step 14 may include the following steps: Figure 2 As shown:
[0077] In step 21, a difference value obtained by subtracting the second electrical data from the first electrical data is determined;
[0078] In step 22, if the difference is greater than a preset threshold, it is determined that the battery power is sufficient;
[0079] In step 23 , if the difference is less than or equal to the preset threshold, it is determined that the battery power condition is insufficient.
[0080] If the difference between the first and second electrical data is greater than a preset threshold, it indicates that the actual amount of power used by the battery is less than the reference data. Therefore, it can be determined that the battery has sufficient power at the target sampling time. If the difference between the first and second electrical data is less than or equal to the preset threshold, it indicates that the actual amount of power used by the battery exceeds the reference data. Therefore, it can be determined that the battery has insufficient power at the target sampling time. The preset threshold can be set based on actual needs or empirical values. For example, the preset threshold can be set to zero.
[0081] Through the above technical solution, the initial battery charge and the sampling period for sampling the target electrical parameter are obtained. Based on the initial battery charge and the sampling period, first electrical data representing the sum of the data that should be collected for each sampling of the target electrical parameter during the sampling period and when the battery charge changes from the initial charge to zero is determined. Second electrical data representing the sum of the data actually collected for each sampling of the target electrical parameter up to the target sampling time is obtained. If the battery charge indication device is not in an operating state, the battery charge status at the target sampling time is determined based on the difference between the first electrical data and the second electrical data. In this way, by calculating the first electrical data and the second electrical data, the time parameter in the battery charge calculation process is eliminated, so that the difference between the first electrical data and the second electrical data can simply reflect the battery charge status, thereby realizing the function of power monitoring with low computational complexity. Furthermore, when the battery charge indication device is not in an operating state, the SOC value or remaining charge value is not calculated, and the power monitoring is performed only based on the difference between the first electrical data and the second electrical data. Complex multiplication and division operations are not required, thus saving computing resources and device performance.
[0082] Optionally, in Figure 1 Based on the steps shown, the method provided by the present disclosure may further include the following steps:
[0083] If it is determined that the battery power is insufficient, a prompt message indicating that the battery power is insufficient is generated and output.
[0084] That is, if the battery is determined to be low, continued use of the battery may cause problems, so a prompt indicating the low battery status is required. Therefore, a prompt indicating low battery status can be generated and output via a designated device. For example, the designated device can output the prompt via a visual display, an audio prompt, or the like.
[0085] By adopting the above solution, when it is determined that there is a risk of low battery, a certain degree of prompting can be given so that relevant personnel can take certain measures.
[0086] Optionally, the method provided by the present disclosure may further include the following steps: Figure 3 As shown:
[0087] In step 31, if the power indication device is in the working state, the state of charge (SOC) value and / or the remaining power of the battery at the target sampling time are determined based on the first power data and the second power data;
[0088] In step 32 , the SOC value and / or the remaining power is outputted via a power prompt device.
[0089] If the battery level indicator is in working state, it indicates that a more specific battery level indicator can be provided by the battery level indicator. Therefore, the SOC value and / or remaining battery level of the battery at the target sampling time can be determined based on the first and second electrical data.
[0090] For example, the state of charge (SOC) of the battery at the target sampling time can be determined by the following formula (1):
[0091]
[0092] Among them, C is the first electrical data, and D is the second electrical data.
[0093] For example, the remaining battery capacity E at the target sampling time can be determined by the following formula (2):
[0094] E=(CD)*B (2)
[0095] Among them, C is the first electrical data, D is the second electrical data, and B is the sampling period.
[0096] After the SOC value and / or the remaining power are calculated, the SOC value and / or the remaining power can be output through the power prompt device to provide a detailed prompt of the battery power.
[0097] Using the above method, the SOC value and / or remaining power will be calculated only when the power prompt device is in working condition. Only in this case will the battery power detection include complex multiplication and division operations. At the same time, after calculating the SOC value and / or remaining power, a more specific prompt can be given through the power prompt device to facilitate relevant personnel to know the battery power.
[0098] The process of the disclosed solution will be described below through a specific example. Assume that during this battery power detection, the initial battery power is 1000mAh and is sampled by ADC (sampling period is 10ms).
[0099] It can be obtained that the first electrical data = 1000mAh / 10ms = (1000mA*3600s) / 0.01s = 360000A, that is, when the battery power is 0, the sum of the instantaneous sampling current data of all ADCs is 360000A.
[0100] When the detection starts, at sampling time t1, t1 is taken as the target sampling time, and the ADC instantaneously collects data X(t1)=1000A. Then, at this time, the second electrical data=1000A, and the remaining single sampling point electrical data=CD=359000A.
[0101] If the power indication device is in sleep state (not in working state) at this time, the SOC and / or remaining power calculation will not be performed. Only the remaining single sampling point power data will be monitored to see if it approaches 0 (the preset threshold is 0). No multiplication or division operations are involved at this time.
[0102] If the power indication device is in the awake state (in the working state) at this time, the remaining power is calculated as (CD)*B=359000A*10ms=359000A*0.01h / 3600=997.222mAh, and the SOC value is calculated as (CD) / C*100%=99.722%.
[0103] If detection continues, at sampling time t2, t2 is used as the target sampling time, and the ADC instantaneously collects data X(t2) = 19000A. Then the second electrical data = 1000A + 19000A = 20000A, and the remaining single sampling point electrical data = CD = 340000A.
[0104] If the power indication device is in sleep state (not in working state) at this time, the SOC and / or remaining power calculation will not be performed. Only the remaining single sampling point power data will be monitored to see if it approaches 0 (the preset threshold is 0). No multiplication or division operations are involved at this time.
[0105] If the power indication device is in the awake state (in the working state) at this time, the remaining power is calculated as (CD)*B=340000A*10ms=340000A*0.01h / 3600=944.444mAh, and the SOC value is calculated as (CD) / C*100%=94.444%.
[0106] If detection continues, at sampling time t3, t3 is taken as the target sampling time, and the ADC instantaneously collects data X(t3) = 5000A, then the second electrical data = 1000A + 19000A + 5000A = 25000A, and the remaining single sampling point electrical data = CD = 335000A.
[0107] If the power indication device is in sleep state (not in working state) at this time, the SOC and / or remaining power calculation will not be performed. Only the remaining single sampling point power data will be monitored to see if it approaches 0 (the preset threshold is 0). No multiplication or division operations are involved at this time.
[0108] If the power indication device is in the awake state (in working state) at this time, the remaining power is calculated as (CD)*B=335000A*10ms=335000A*0.01h / 3600=930.556mAh, and the SOC value is calculated as (CD) / C*100%=93.056%.
[0109] The subsequent process is analogous. In this way, when there is no need to prompt the specific remaining power and SOC value (that is, the power prompt device is not in a working state), there is no need to perform discrete integral multiplication and division operations. Only the addition and subtraction operations of the first electrical data and the second electrical data proposed in the scheme (that is, the single sampling point related data) can be used to identify the change in power. When the remaining power and SOC value need to be prompted (that is, the power prompt device is in a working state), complex calculations will be performed to provide the power prompt function.
[0110] It should be noted that in the above calculation process, the units of each physical quantity are not limited to the units given in the above examples. The present disclosure does not limit this. It is sufficient to ensure the relative consistency of the units of the physical quantities during calculation. For example, the first electrical data is in A, and the second electrical data should also be in A.
[0111] Figure 4 FIG. 1 is a block diagram of a battery capacity detection device according to an embodiment of the present disclosure. Figure 4 As shown, the device 40 includes:
[0112] A first acquisition module 41 is used to obtain the initial power level of the battery and a sampling period for sampling the target electrical parameter;
[0113] a first determining module 42 for determining first electrical data based on the initial electrical charge and the sampling period, wherein the first electrical data represents the sum of data that should be collected from each sampling of the target electrical parameter during a process in which the battery power changes from the initial electrical charge to zero according to the sampling period;
[0114] A second acquisition module 43 is configured to acquire second electrical data at a target sampling moment, wherein the second electrical data is used to represent the sum of data actually acquired from each sampling of the target electrical parameter up to the target sampling moment;
[0115] The second determining module 44 is configured to determine the battery charge status of the battery at the target sampling time according to the difference between the first electrical data and the second electrical data if the battery charge indication device is not in the working state.
[0116] Optionally, the first determining module 42 is configured to determine a ratio of the initial electrical quantity to the sampling period as the first electrical data.
[0117] Optionally, the second determining module 44 includes:
[0118] a first determining submodule, configured to determine a difference value obtained by subtracting the second electrical data from the first electrical data;
[0119] A second determining submodule is configured to determine that the battery power is sufficient if the difference is greater than a preset threshold;
[0120] The third determining submodule is configured to determine that the battery power condition is insufficient if the difference is less than or equal to the preset threshold.
[0121] Optionally, the device 40 further includes:
[0122] The first prompt module is used to generate and output prompt information indicating that the battery power is low if it is determined that the battery power is low.
[0123] Optionally, the device 40 further includes:
[0124] a third determining module, configured to determine, if the power prompt device is in the working state, the state of charge (SOC) value and / or the remaining power of the battery at the target sampling time based on the first power data and the second power data;
[0125] The second prompt module is used to output the SOC value and / or the remaining power through the power prompt device.
[0126] Optionally, the state of charge (SOC) value of the battery at the target sampling time is determined by the following formula (1):
[0127]
[0128] Among them, C is the first electrical data, and D is the second electrical data.
[0129] Optionally, the remaining power E of the battery at the target sampling time is determined by the following formula (2):
[0130] E=(CD)*B (2)
[0131] Among them, C is the first electrical data, D is the second electrical data, and B is the sampling period.
[0132] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0133] Figure 5 FIG1 is a block diagram of an electronic device 1900 according to an exemplary embodiment. Figure 5The electronic device 1900 includes a processor 1922, which may be one or more, and a memory 1932 for storing a computer program executable by the processor 1922. The computer program stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 1922 may be configured to execute the computer program to perform the above-mentioned battery power detection method.
[0134] In addition, the electronic device 1900 may further include a power supply component 1926 and a communication component 1950. The power supply component 1926 may be configured to perform power management of the electronic device 1900, and the communication component 1950 may be configured to implement communication of the electronic device 1900, for example, wired or wireless communication. In addition, the electronic device 1900 may further include an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2003. TM , Mac OSX TM , Unix TM , Linux TM etc.
[0135] In another exemplary embodiment, a computer-readable storage medium including program instructions is further provided. When the program instructions are executed by a processor, the steps of the above-described battery power detection method are implemented. For example, the computer-readable storage medium may be the aforementioned memory 1932 including the program instructions. The program instructions may be executed by the processor 1922 of the electronic device 1900 to perform the above-described battery power detection method.
[0136] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned battery capacity detection method when executed by the programmable device.
[0137] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the scope of protection of the present disclosure.
[0138] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0139] In addition, the various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A battery power detection method, characterized in that: The method comprises: Obtaining the initial battery charge and the sampling period for sampling the target electrical parameters; determining first electrical data according to the initial electrical charge and the sampling period, the first electrical data being used to represent a sum of data that should be collected from each sampling of the target electrical parameter during a process in which the battery power changes from the initial electrical charge to zero according to the sampling period; Acquire second electrical data at a target sampling time, where the second electrical data is used to represent the sum of data actually collected from each sampling of the target electrical parameter up to the target sampling time; If the power indication device is not in a working state, determining the power status of the battery at the target sampling time according to the difference between the first electrical data and the second electrical data, the power indication device being used to indicate the state of charge (SOC) value and / or remaining power of the battery, the power status being used to indicate whether the power is sufficient or insufficient; The determining of the first electrical data according to the initial electrical quantity and the sampling period includes: The ratio of the initial electrical quantity to the sampling period is determined as the first electrical data.
2. The method according to claim 1, characterized in that If the power prompt device is not in the working state, determining the power status of the battery at the target sampling time according to the difference between the first power data and the second power data includes: determining a difference value obtained by subtracting the second electrical data from the first electrical data; If the difference is greater than a preset threshold, it is determined that the battery power is sufficient; If the difference is less than or equal to the preset threshold, it is determined that the battery power condition is insufficient.
3. The method according to claim 2, characterized in that The method further comprises: If it is determined that the battery power is insufficient, a prompt message indicating that the battery power is insufficient is generated and output.
4. The method according to claim 1, wherein The method further comprises: If the power indication device is in the working state, determining the state of charge (SOC) value and / or the remaining power of the battery at the target sampling time according to the first power data and the second power data; The SOC value and / or the remaining power are outputted via the power prompt device.
5. The method according to claim 4, characterized in that The state of charge (SOC) of the battery at the target sampling time is determined by the following formula (1): (1) Among them, C is the first electrical data, and D is the second electrical data.
6. The method according to claim 4, characterized in that The remaining capacity E of the battery at the target sampling time is determined by the following formula (2): (2) Among them, C is the first electrical data, D is the second electrical data, and B is the sampling period.
7. A battery capacity detection device, characterized in that: The device comprises: A first acquisition module is used to obtain the initial power of the battery and a sampling period for sampling the target electrical parameters; a first determining module, configured to determine first electrical data based on the initial electrical power and the sampling period, the first electrical data being used to represent the sum of data that should be collected from each sampling of the target electrical parameter during a process in which the battery power changes from the initial electrical power to zero according to the sampling period; a second acquisition module, configured to acquire second electrical data at a target sampling moment, wherein the second electrical data is used to represent the sum of data actually acquired from each sampling of the target electrical parameter up to the target sampling moment; a second determining module, configured to determine, if the power prompt device is not in an operating state, a power status of the battery at the target sampling time based on a difference between the first electrical data and the second electrical data, wherein the power prompt device is configured to prompt a state of charge (SOC) value and / or remaining power of the battery, and the power status is configured to indicate whether the power is sufficient or insufficient; The first determining module is configured to determine a ratio of the initial electrical quantity to the sampling period as the first electrical data.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Battery pack remaining power monitoring method and system
CN108931741A
Method, device, system and equipment for detecting service life of filter screen of air purification equipment
CN110529976A