A method, device, system, equipment and medium for determining battery power information

By establishing a connection relationship between low-power devices, using the first device to obtain the battery voltage of the second device and determine its life cycle stage, the problem of inaccurate battery power monitoring in the prior art is solved, and faster and more reliable power management is achieved.

CN119596169BActive Publication Date: 2025-06-06ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510136706.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-06-06
Estimated Expiration
2045-02-07

AI Technical Summary

Technical Problem

The prior art is difficult to quickly and accurately monitor and manage the battery status of low-power devices, resulting in unstable equipment operation and insufficient safety.

Method used

By establishing a connection relationship between the first device and the second device, the first device obtains the battery voltage of the second device, and determines the current life cycle phase of the battery based on the voltage, thereby determining the state of charge of the battery in a corresponding manner and feeding it back to the second device.

Benefits of technology

It realizes rapid and accurate monitoring and management of the battery status of the equipment, and improves the reliability and user experience of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119596169B_ABST
    Figure CN119596169B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, system, equipment and medium for determining battery power information, which is used to achieve faster and more accurate monitoring and management of the battery power status of the device, thereby ensuring that the device system operates more stably and safely. The method provided by the present application includes: obtaining the battery voltage of the second device through a second device that has established a connection relationship with a local first device in advance; determining the current battery life cycle of the battery of the second device based on the battery voltage of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge and a final discharge period; according to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery management technology, and in particular to a method, device, system, equipment and medium for determining battery power information. Background Art

[0002] With the rapid development of Internet of Things technology, smart security systems are widely used in homes, enterprises, shopping malls and other scenarios. Low-power power management technology is one of the key technologies to achieve higher integration, lower energy consumption, longer battery life and lower cost. Wireless low-power systems are usually powered by batteries, which can achieve wiring-free and easy installation, making smart security deployment more flexible, not restricted by the site, and without the need for pre-buried lines. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, system, device and medium for determining battery power information, so as to achieve faster and more accurate monitoring and management of the battery power status of the device, thereby ensuring more stable and safe operation of the device system.

[0004] On the first device side, an embodiment of the present application provides a method for determining battery power information, including:

[0005] Acquiring a battery voltage of the second device through a second device that has established a connection relationship with the local first device in advance;

[0006] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0007] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0008] Through this method, the determination of the charge state of the battery of the second device can be achieved through the first device. The first device obtains the battery voltage of the second device through the second device that has established a connection relationship with the local first device in advance, and can then determine the current battery life cycle of the battery of the second device based on the battery voltage of the second device; wherein, by pre-dividing the battery life cycle into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge, the first device can determine the charge state of the battery of the second device according to the current battery life cycle of the battery of the second device, using a preset method corresponding to the current battery life cycle of the battery of the second device, and feed it back to the second device. Therefore, the computing requirements of some second devices with lower hardware performance are met through the first device, and the charge state of the battery of the second device with lower hardware performance can be determined more quickly and accurately through the first device with higher performance, thereby more accurately managing the battery power of the device, which not only improves the reliability of the system, but also improves the user experience.

[0009] In some embodiments, determining a current battery life cycle of a battery of the second device based on a battery voltage of the second device includes:

[0010] If the battery voltage of the second device is greater than the preset threshold, it is determined that the battery of the second device is currently in the early stage of discharge; otherwise,

[0011] If the change value of the battery voltage of the second device within the preset time period is less than the first preset change threshold, it is determined that the battery of the second device is currently in the plateau period of the middle of discharge; otherwise,

[0012] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to the first preset change threshold and less than the second preset change threshold, it is determined that the battery of the second device is currently in the slope period of the middle of discharge; otherwise,

[0013] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to a second preset change threshold, it is determined that the battery of the second device is currently at the end of discharge.

[0014] In some embodiments, according to the current battery life cycle of the battery of the second device, determining the state of charge of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes:

[0015] When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%;

[0016] When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output;

[0017] When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value;

[0018] When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

[0019] In some embodiments, the method further comprises:

[0020] When it is determined that the state of charge of the battery of the second device is in a low voltage state, an alarm message is output.

[0021] Accordingly, on the second device side, an embodiment of the present application provides a method for determining battery power information, including:

[0022] Sending a battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance;

[0023] Obtaining the state of charge of the battery of the second device determined and fed back by the first device in the following manner:

[0024] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0025] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0026] In some embodiments, the method further comprises:

[0027] If it is determined that the battery voltage of the second device has recovered, when the following conditions are met, the state of charge of the battery of the second device fed back by the first device is used to update the state of charge of the local battery of the second device, and output it for display to the user:

[0028] The second device has not had its battery replaced;

[0029] the stability lock of the second device is unlocked;

[0030] The temperature rise of the battery of the second device within a preset time period is less than a preset value.

[0031] In some embodiments, the conditions further include:

[0032] The battery voltage of the second device is greater than a threshold determined based on a full voltage value and a low voltage value, wherein the full voltage value is a preset value and the low voltage value is a minimum voltage value of the battery of the second device from the beginning of use to the present time.

[0033] On the first device side, an embodiment of the present application provides a battery power information determination device, including:

[0034] A battery voltage acquisition unit, configured to acquire a battery voltage of a local first device through a second device that has established a connection relationship with the second device in advance;

[0035] A battery life cycle determination unit, configured to determine the current battery life cycle of the battery of the second device based on the battery voltage of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0036] A state of charge determination unit is used to determine the state of charge of the battery of the second device according to the current battery life cycle of the battery of the second device, using a preset method corresponding to the current battery life cycle of the battery of the second device, and feed back the state of charge to the second device.

[0037] Accordingly, on the second device side, an embodiment of the present application provides a battery power information determination device, including:

[0038] A battery voltage reporting unit, configured to send the battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance;

[0039] A state of charge acquisition unit is used to acquire the state of charge of the battery of the second device determined and fed back by the first device in the following manner:

[0040] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0041] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0042] A system provided in an embodiment of the present application includes: a first device and at least one second device connected thereto; wherein:

[0043] The first device is used for:

[0044] obtaining a battery voltage of the second device;

[0045] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0046] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device, and feed back the state of charge to the second device;

[0047] The second device is used for:

[0048] sending a battery voltage of a local second device to the first device;

[0049] Acquire a state of charge of a battery of the local second device determined based on a battery voltage of the local second device and fed back by the first device.

[0050] Another embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory and execute any of the above methods according to the obtained program.

[0051] Another embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A schematic diagram of wireless data synchronization between a host (first device) and each sub-device (second device) provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of a flow chart of a power management method on a first device side provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of a battery discharge life cycle curve provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of a flow chart of a method for obtaining battery power information on a second device side provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of a battery life cycle management process of a system provided in an embodiment of the present application;

[0058] Figure 6 A schematic diagram of the SOC calculation process provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of discharge curve data provided for an embodiment of the present application;

[0060] Figure 8 A schematic diagram of a power consumption recovery determination process provided in an embodiment of the present application;

[0061] Fig. 9 A schematic diagram of the system architecture provided for an embodiment of the present application;

[0062] Fig.10 A schematic diagram of the structure of an electronic device (first device) provided in an embodiment of the present application;

[0063] Fig.11 A schematic diagram of the structure of another electronic device (second device) provided in an embodiment of the present application;

[0064] Fig.12 A schematic diagram of the structure of a battery power information determination device on a first device side provided in an embodiment of the present application;

[0065] Fig.13 A schematic diagram of the structure of a battery power information determination device on the second device side provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0067] The embodiments of the present application provide a method, apparatus, system, device and medium for determining battery power information, so as to achieve faster and more accurate monitoring and management of the battery power status of the device, thereby ensuring more stable and safe operation of the device system.

[0068] Among them, the method and the device, system, equipment, and medium are based on the same application concept. Since the principles of solving problems by the method and the device, equipment, and medium are similar, the implementation of the device, equipment, medium, and method can refer to each other, and the repeated parts will not be repeated.

[0069] The terms "first", "second", etc. (if any) in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in a sequence other than the content illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0070] The following examples and embodiments are to be understood as illustrative examples only. Although this specification may refer to "one", "an" or "some" examples or embodiments in several places, this does not mean that each such reference relates to the same example or embodiment, nor does it mean that the feature applies only to a single example or embodiment. Individual features of different embodiments may also be combined to provide other embodiments. In addition, terms such as "including" and "comprising" should be understood as not limiting the described embodiments to consist only of those features that have been mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.

[0071] The following is a detailed description of each embodiment of the present application in conjunction with the accompanying drawings. It should be noted that the display order of the embodiments of the present application only represents the order of the embodiments, and does not represent the advantages and disadvantages of the technical solutions provided by the embodiments.

[0072] The embodiment of the present application provides a management method for determining battery power information based on the battery life cycle. The method is applicable to all battery-powered devices, including disposable batteries, and can perform power calibration under long-term battery life and without power outages. In addition, by adopting different monitoring strategies and analyzing battery status, combined with the advantages of wireless networks, the method can transfer the computing requirements of the second device with lower hardware performance to the first device with higher hardware performance (which can be a server or cloud on the network side), thereby managing the battery power more accurately, which not only improves the reliability of the system, but also improves the user experience.

[0073] The first device may also be referred to as a host, and the second device may also be referred to as a sub-device. Figure 1 As shown in the figure, a host can connect to multiple sub-devices and provide the service of calculating the battery state of charge (SOC) for multiple sub-devices. The SOC refers to the ratio of the remaining capacity of the battery to the capacity of the battery in the fully charged state, usually expressed as a percentage. Its calculation formula is, for example: SOC=(current capacity / rated capacity)×100%, where the current capacity refers to the actual power of the battery in the current state, and the rated capacity is the maximum power of the battery when it is designed.

[0074] The method provided in the embodiments of the present application is described below from different aspects.

[0075] See also Figure 2 On the first device side, a method for determining battery power information provided by an embodiment of the present application includes:

[0076] S101, obtaining a battery voltage of a local first device through a second device that has established a connection relationship with the second device in advance;

[0077] S102, determining the current battery life cycle of the battery of the second device based on the battery voltage of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0078] S103: According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device, and feed back the state of charge to the second device.

[0079] In some embodiments, determining a current battery life cycle of a battery of the second device based on a battery voltage of the second device includes:

[0080] If the battery voltage of the second device is greater than a preset threshold (the specific value can be set according to actual needs), it is determined that the battery of the second device is currently in the early stage of discharge; otherwise,

[0081] If the change value of the battery voltage of the second device within the preset time period is less than the first preset change threshold (the specific value can be set according to actual needs), it is determined that the battery of the second device is currently in the plateau period of mid-discharge; otherwise,

[0082] If the change value of the battery voltage of the second device within the preset time is greater than or equal to the first preset change threshold and less than the second preset change threshold (the specific value can be set according to actual needs), it is determined that the battery of the second device is currently in the slope period of mid-discharge; otherwise,

[0083] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to a second preset change threshold, it is determined that the battery of the second device is currently at the end of discharge.

[0084] For example Figure 3 The battery life cycle shown in the figure, the ordinate represents voltage (unit V), the abscissa represents discharge capacity (unit mAh), and the exhaustion of battery capacity indicates the end of its life cycle. Figure 3 visible:

[0085] The characteristics of the initial discharge period include: during the discharge process, the voltage drops significantly, but the voltage remains high;

[0086] The characteristics of the plateau phase in the middle of discharge include: during the discharge process, the voltage does not change significantly and the curve is in a plateau state;

[0087] The characteristics of the slope period in the middle of discharge include: as the voltage gradually decreases during the discharge process, the curve is in a slope state;

[0088] The characteristics of the end of discharge include: the battery has little remaining power, the voltage will drop significantly during discharge, and there is a cliff-like downward trend, which generally cannot be used for stable operation of the product. In practical applications, the critical point for dividing the slope period between the end of discharge and the middle of discharge is based on the voltage value that meets the normal operation of the product, that is, it is determined according to actual needs.

[0089] In some embodiments, according to the current battery life cycle of the battery of the second device, determining the state of charge of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes:

[0090] When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%;

[0091] When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output; that is, the embodiment of the present application can comprehensively calibrate the SOC value calculation result based on the collected battery information of the second device and the SOC value recorded in the database, so that the calculation result is more accurate and reasonable;

[0092] When the battery of the second device is currently in a mid-discharge slope period, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a correspondence between a preset battery voltage and an SOC value (for example, using a voltage anchor point method);

[0093] When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

[0094] The low voltage state may be, for example, a specific value of 20%. Alternatively, it may be a text reminder message such as low power. The specific form of the low voltage state may be determined according to actual needs.

[0095] In some embodiments, the method further comprises:

[0096] When it is determined that the state of charge of the battery of the second device is in a low voltage state, an alarm message is output.

[0097] The output alarm information, for example, through cloud alarm and local area network device linkage alarm, prompts the user to replace the battery of the low-power device to avoid device failure and enhance device reliability.

[0098] Accordingly, on the second device side, see Figure 4 , a method for determining battery power information provided by an embodiment of the present application includes:

[0099] S201, sending a battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance;

[0100] S202: Obtain the state of charge of the battery of the second device determined and fed back by the first device in the following manner:

[0101] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0102] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0103] In some embodiments, the method further comprises:

[0104] If it is determined that the battery voltage of the second device has recovered, then when the following conditions are met, the state of charge of the battery of the second device fed back by the first device is used to update the local state of charge of the battery of the second device (including updating the record information such as the database), and output it for display to the user:

[0105] The second device has not had its battery replaced;

[0106] the stability lock of the second device is unlocked;

[0107] The temperature rise of the battery of the second device within a preset time period is less than a preset value (eg, 10° C.).

[0108] In some embodiments, the conditions further include:

[0109] The battery voltage of the second device is greater than a threshold determined based on a full voltage value and a low voltage value, wherein the full voltage value is a preset value and the low voltage value is a minimum voltage value of the battery of the second device from the beginning of use to the present time.

[0110] The threshold value determined based on the full voltage value and the low voltage value is, for example, a threshold value K determined by the following formula:

[0111] K = ((Vmax-Vmin) / N+Vmin) / 2;

[0112] Among them, Vmax and N are both preset values; Vmax represents the full voltage value, N represents the number of batteries, and is a fixed parameter of the second device; Vmin represents the low voltage value.

[0113] In summary, see Figure 5 , wherein the entire system consisting of the first device and the second device, the battery life cycle management method provided by the embodiment of the present application includes:

[0114] First, on the second device side, the following steps S301 to S303 are performed:

[0115] S301, initialization configuration;

[0116] For example, it includes the pre-setting of the thresholds involved.

[0117] S302, identifying the battery model;

[0118] The battery model type includes, for example, CR123A cylindrical battery, CR2032 button battery, and alkaline 5 / 7 dry battery.

[0119] S303, measuring the battery voltage;

[0120] For example, the current voltage of the battery can be collected through an ADC (Analog-to-Digital Converter) module.

[0121] The ADC module can be integrated into a microcontroller unit (MCU) of the second device, for example. The second device refers to the second device of the product itself. Relative to the first device, multiple second devices are managed by the first device, and each second device is powered by a battery module.

[0122] On the first device side, after receiving the battery voltage, model and other information sent by the second device, the following steps are performed to calculate the battery SOC of the second device:

[0123] S304: Calculate the battery power percentage based on the currently measured battery voltage for different battery life cycles. For example:

[0124] Initial discharge: After the system is powered on, the battery model type is initialized and the battery voltage status is monitored. If the battery voltage value collected by the ADC module of the second device is greater than the threshold, the full charge result is output, that is, the battery power percentage is 100%.

[0125] Mid-discharge period: divided into plateau period and slope period.

[0126] Plateau period: There is no obvious change in voltage. The power consumption status is calculated by the current integration method and the business status statistical data using the pre-buried formula to obtain the power percentage result.

[0127] Among them, the current integration method is also called the ampere-hour method, which is a method of power statistics. The monitored current value I is multiplied by time, and the integral is used to obtain the power consumed by the battery within a period of time dt, that is, ∫(I×dt), and then divided by the total battery power Q, that is, the percentage of power consumed ∫(I×dt) / Q.

[0128] Then, based on the last SOC, the current SOC can be determined, that is: SOC' = SOC - ∫(I × dt) / Q.

[0129] The SOC (State of Charge) indicates the current state of charge or charge and discharge status of the battery. For example, in the initial state of the battery, the SOC is 100%, and after a period of time dt of power consumption, the SOC becomes 80%.

[0130] The power consumption corresponding to the service state of the second device is data obtained by instrument measurement. For example, when the second device performs a service action, the current and time of the second device's wake-up work are i and t respectively, then its power consumption C=i×t. These data will be stored in the database in advance and accumulated into the power consumption of the second device. The remaining power is obtained by subtracting the initial power from the power consumption C, thereby obtaining the power percentage result. Different services have different characteristics. Therefore, when calculating the power consumption, it can also be calculated multiple times and the average of the multiple results can be taken as the final result. When calculating the average of multiple results, the weighted average calculation method can also be used. The specific method is not limited in the embodiments of this application.

[0131] Slope period: The voltage has an obvious downward trend. The power result is obtained by combining the battery model and the voltage anchor point method.

[0132] Different battery models have different discharge life cycle curves. These data will be stored in the database according to the battery model. The corresponding model is selected and the data is obtained according to the needs of the second device.

[0133] The voltage anchor point method refers to finding the corresponding point of the data curve through the voltage value of the ordinate, thereby obtaining the discharge capacity value of the abscissa, that is, obtaining the discharge capacity value through the voltage anchor point. The second device ADC module can detect the required ordinate voltage value to obtain the power result.

[0134] At the end of discharge: the battery chemical reaction state is obvious, and the working voltage has a tendency to drop sharply. According to the relationship between current and voltage, the output is in a low voltage state.

[0135] The larger the working current of the second device, the more obvious its voltage steep drop trend is. Voltage drop coefficient k = Δv / Δc, where Δv is the voltage drop value and Δc is the discharge capacity change. Δv and Δc are taken out from the database according to the working current of the second device. When the voltage drop coefficient k meets the preset value K of the second device (i.e. exceeds the preset value K), it is determined to be a low voltage state. The second device gives a low battery reminder feedback based on this state, thereby reminding the user to replace the battery.

[0136] In some embodiments, rationality judgment can also be performed for the battery power status at different stages, for example:

[0137] Initial stage of discharge: In the initial stage of discharge, the battery loss is small and can be monitored by the open circuit voltage method. The error of the determined battery power state is small, so there is no need for additional rationality judgment.

[0138] Mid-discharge: In the mid-discharge, the battery loss gradually increases. In the plateau period, the battery power state is calculated by the current integration method, and the calculated battery power state can be further judged for rationality in combination with the business status statistical data (i.e., by searching the database); in the slope period, the battery power state is calculated by the voltage anchor point method, and the corresponding discharge life cycle curve can be found in combination with the battery model, and rationality can be judged through the curve (i.e., the voltage anchor point method). Specifically:

[0139] Plateau period: According to the current integration formula ∫(I×dt) / Q, where I represents current, Q represents battery power, and dt represents time interval, the power consumption Q1 generated over time can be calculated. The power consumption Q2 of the business can be obtained by searching the database, so as to obtain the difference between Q1 and Q2, that is, the error value Δ. If the error is less than the preset error threshold, Q1 can be output. Otherwise, Q1 can be recalculated, or Q1 can be compensated by Δ.

[0140] Slope period: The ADC module of the second device can detect the current voltage value, and find the corresponding relationship between the preset battery voltage and SOC value, such as the curve chart of the discharge life cycle (the vertical axis is voltage, and the horizontal axis is SOC value). Through the voltage value anchor point of the vertical axis, find the curve chart of the discharge life cycle corresponding to the current battery model, and obtain the SOC value of the horizontal axis by finding the corresponding point of the graph. Since this value is determined by searching the record, there is no need to make a rationality judgment.

[0141] Discharge end: At the discharge end, the battery loss is the largest, and the low battery state is determined by the relationship between current and voltage. Further, the low battery state can be rationally judged in combination with battery temperature and other data to ensure the accuracy of the low battery state. Specifically:

[0142] The battery at the end of discharge has the following characteristics:

[0143] Characteristic 1: The larger the working current of the second device is, the more obvious the voltage drop trend is.

[0144] Characteristic 2: The lower the temperature, the more obvious the voltage drop trend is.

[0145] The second device can confirm the current value according to the service status, and obtain the battery temperature value through the NTC temperature sensor integrated in the MCU. The voltage drop value Δv and the discharge capacity change Δc within the preset time are retrieved from the database through the current value and the temperature value.

[0146] The voltage drop coefficient k = Δv / Δc is calculated. When the voltage drop coefficient k is greater than the preset value K, it is determined to be a low voltage state. The second device gives a low battery reminder feedback based on this state to remind the user to replace the battery.

[0147] S305: Output the battery power percentage of the second device.

[0148] In step S305, the battery power percentage of the second device finally determined by the first device can be output to the second device, and can also be output to the APP of the cloud platform for display.

[0149] In some embodiments, the data transmission between the second device and the first device provided in the embodiments of the present application can be achieved through wireless communication. In other words, the second device and the first device achieve data synchronization through wireless communication; the battery power status and other information of the second device can be periodically reported to the first device, and with the help of the networked database and strong performance advantages of the first device, SOC calculation is achieved and more accurate calculation results are returned to the second device. When the second device is in an abnormal state such as low power, the first device can implement cloud alarms and linkage alarms through the second device in the local area network, prompting the user to replace the battery of the second device in a low power state in time.

[0150] The second device can periodically send battery voltage, temperature and other status information to the first device via a wireless network. The first device stores the received data in a local database, and in some embodiments, can also synchronize with a cloud database to ensure data integrity and reliability.

[0151] In some embodiments, the second device may perform the following data processing:

[0152] Initial processing: preliminary processing of the collected data, including data cleaning and formatting, is used to delete unreasonable data. For example, the low-battery status data that the second device has had. After preliminary data processing, if it is determined that the battery level is not within the battery threshold range, the data will be cleared.

[0153] Feature extraction: Extract key features, such as voltage change trends, temperature changes, etc. The second device can obtain battery voltage and temperature data through the ADC module and temperature sensor, extract the change per unit time for voltage and temperature respectively, and obtain the voltage change trend and temperature change trend, so as to predict the subsequent power state of the second device based on this, and calibrate the power information more accurately.

[0154] In some embodiments, see Figure 6 , the process of calculating the SOC by the first device through the current integration method includes:

[0155] S501, initialization configuration;

[0156] For example, it includes the pre-setting of the thresholds involved.

[0157] S502, obtaining the current SOC of the battery and the rated capacity Q of the battery (i.e., the total capacity of the battery);

[0158] S503, recording the discharge current I of the battery within the time interval dt from the current moment;

[0159] S504, integrating the discharge current I of the battery in the time interval dt by ∫(I×dt) to obtain the percentage of power consumed by the battery in the time interval dt by ∫(I×dt) / Q;

[0160] S505, update the current battery SOC'= SOC -∫(I×dt) / Q;

[0161] For example, for the screen display of the second device, its operating current is 60mA, and for the speaker of the second device to play sound, its operating current is 300mA. Then, when the second device performs a business action of lighting up the screen and playing sound, its current I is 360mA. The working time can be recorded by the microcontroller, for example, the time dt. The current business action is integrated to obtain the total power consumption of the business of lighting up the screen and playing sound, which is ∫(I×dt). The difference is calculated by combining the initial battery power Q (or Q can also represent the battery power before executing the business of lighting up the screen and playing sound), and the current remaining power Q -∫(I×dt) is obtained. After comparing it with Q, the current power state SOC = 1- ∫(I×dt) / Q can be output.

[0162] S506: Determine whether to output the result. If yes, execute step S507; otherwise, execute step S503.

[0163] Among them, the judgment whether to output the result, that is, whether to output the latest SOC calculated in step S505, can be performed by comparing the calculation result with the value recorded in the database (which can be regarded as the standard value) to determine whether the calculation error exceeds the preset threshold. If the error is small and does not exceed the threshold, the result can be output, otherwise, the current SOC of the second device is recalculated.

[0164] That is to say, in some embodiments, it is further necessary to make a reasonable judgment on the result data calculated in step S505, for example, by combining information such as battery voltage, battery temperature, and battery model, searching different life cycle stages in the database, and confirming its reasonable range at the anchor point, for example Figure 7 In the discharge curve database shown, the ordinate of the discharge curve represents the battery voltage, in V, and the abscissa represents the discharge capacity, in mAh. The state influencing factors of the data curve graph include: battery model, discharge current, and temperature. Figure 7 The three curves shown represent the data of the same model of battery discharged at a current of 5mA. The battery temperatures corresponding to the curves increase from left to right. Therefore, the corresponding curve can be found in combination with the battery temperature and model, and the voltage can be used as an anchor point to determine the reasonable SOC value recorded in the database.

[0165] If the SOC result calculated in step S505 deviates greatly from the SOC value determined by searching the database, that is, the difference is greater than the preset error threshold, it is determined to be abnormal data, triggering recalculation of the SOC, or fine-tuning and correction of the SOC, or discarding it. After recalculating and correcting a reasonable result or correction, it can be used as the final result for external output.

[0166] In some embodiments, an abnormality detection step may also be included, for example, when it is determined that a voltage drop, temperature abnormality, or other events occur, an alarm mechanism is triggered in time. Specifically, the second device can retrieve the corresponding voltage drop value Δv and discharge capacity change Δc from the database through the current value and temperature value, and obtain the voltage drop coefficient k = Δv / Δc. When the voltage drop coefficient k is greater than the preset value K, it is determined to be a low voltage state, and the alarm reminder mechanism is triggered. S507, determine that a task is completed, and output the currently calculated SOC.

[0167] For example, the first device can feed back the result calculated in the above step S505 to the second device, and the second device can output and display the above-mentioned state of charge SOC (State of Charge), the ratio of the current remaining battery power to the power in the fully charged state, for example, the second device has 65% power remaining.

[0168] The first device may also send the result calculated in the above step S505 to the cloud, and output it to the user through the cloud APP.

[0169] In some embodiments, after the second device receives the result data (SOC) sent by the first device, it also includes the second device's determination process of power consumption recovery, because in the case of voltage recovery, it is not necessary to directly output the SOC fed back by the first device to the user, and further verification is required, for example Figure 8 As shown, including:

[0170] S701, initialization configuration;

[0171] For example, it includes the setting of some preset thresholds, etc.

[0172] S702, monitoring battery temperature and voltage;

[0173] For example, the second device collects temperature and voltage data of the second device through a temperature sensor and an ADC module.

[0174] S703, determine whether the voltage rises, if yes, execute step S704; otherwise, execute step S702;

[0175] When the second device recognizes that the voltage has recovered, a stability lock is applied.

[0176] The voltage of the battery has a tendency to fluctuate and gradually decrease during the use of the battery. A voltage change threshold Δv needs to be set. If the voltage changes from low to high and is greater than Δv, it means that the voltage has rebounded.

[0177] There are three scenarios for voltage recovery:

[0178] Scenario 1: Replace the battery. Generally, when a low-power battery is replaced with a new one, there is a significant voltage rise and change, and the change is instantaneous. The battery replacement action is identified based on this feature.

[0179] Scenario 2: In the working state of the second device, high-current business will cause large fluctuations in the battery voltage. After the continuous high-current work task is completed, the voltage value will gradually increase.

[0180] Scenario 3: Temperature changes will cause battery voltage changes. When the temperature rises, the chemical components inside the battery become more active and its voltage will rise.

[0181] Among them, for scenarios 2 and 3, after the voltage recovers, the battery power status cannot be updated immediately, which will introduce erroneous and confusing status information and mislead the user to make a judgment on the status of the second device.

[0182] S704, determine whether the battery is replaced, if yes, execute step S708; otherwise, execute step S705;

[0183] For example, it is determined whether the current battery voltage value V is greater than a preset value Vmax. If so, it means that the battery has been replaced; otherwise, it means that the battery has not been replaced.

[0184] In some embodiments, when it is determined that the battery has been replaced, the relevant data of the original battery may be cleared.

[0185] S705, determining whether the stability lock is unlocked, if yes, executing step S706; otherwise, executing step S705;

[0186] When the second device recognizes that the voltage has risen, the stability lock is turned on, and the stability lock is unlocked according to the temperature data of the second device and the result of the new battery replacement. Only when the stability lock is unlocked can the battery power be updated and the current integration result be calibrated.

[0187] The stability lock mentioned above means locking the current power state of the battery. Even if a change in the power state is identified, no update output is made, so that it is in a stable state in the short term.

[0188] During the lock period, the microcontroller needs to read the working status of the second device, determine the source of its voltage change, and continuously read the voltage value information, calculate the voltage change per unit time Δv`, and compare it with the initialization voltage V0 before lock. After eliminating abnormal conditions and the state is stable, release the lock (abnormal conditions include high current work tasks, external interference, etc.).

[0189] After the lock state is released, the temperature state obtained by the temperature sensor is subtracted from the initial temperature to obtain Δt, and the effect of temperature increase on the voltage is confirmed.

[0190] During the lock period, there are many unstable states and the voltage fluctuates greatly. At this time, calibrating the power state of the second device will introduce abnormal factors, resulting in inaccurate results. Therefore, the battery power can only be updated and the current integration result can be calibrated in the unlocked state.

[0191] S706, determining whether the battery temperature rise is less than a preset value (e.g., 10 degrees Celsius), if yes, executing step S707; otherwise, executing step S702;

[0192] S707, updating the battery power;

[0193] The updating of the battery power, for example, includes:

[0194] Step 1: Calculate the threshold value K = ((Vmax-Vmin) / N+Vmin) / 2;

[0195] Among them, Vmax and N are both preset values; Vmax represents the full voltage value, N represents the number of batteries, and is a fixed parameter of the second device; Vmin represents the low voltage value.

[0196] The full voltage value Vmax is not the open circuit voltage of a new battery. In some embodiments, an appropriate margin can be subtracted and set during the initialization configuration process; for example, the open circuit voltage of a CR123A cylindrical battery in a brand new state is 3.3V. Combined with the battery life cycle information in the database, the initial discharge has a cliff-like drop characteristic and has material batch differences. The range of 3.3V~2.95V is considered as a margin, and the full voltage value Vmax is preset to 2.95V and written into the initialization configuration information of the second device.

[0197] The low voltage value Vmin is the minimum voltage value from the beginning of battery use to the current time, and the rebound voltage is not included. In other words, the lowest voltage normally used by the second device is Vmin. For example, after the second device has been used for a period of time, the battery voltage drops to 2 V, and this voltage value is Vmin. If the voltage rises to 2.3V due to temperature or replacement of a new battery, Vmin remains at 2V and is not affected by the rebound voltage.

[0198] Step 2: When it is determined that the current voltage value V is greater than the threshold value K, the battery power is updated.

[0199] In some embodiments, the battery SOC calculation result sent by the first device may also be recorded in a database;

[0200] If the current voltage value V does not exceed the threshold value K, the current voltage state continues to be detected to determine whether a voltage boost event occurs.

[0201] S708: Determine whether the battery power level has recovered.

[0202] In some embodiments, after the second device determines that the power consumption has recovered, it also includes a power status update operation, that is, updating the current power status of the battery and outputting it to the user.

[0203] The processing result is compared with the database to confirm the factors of voltage recovery, so as to obtain the result of power value recovery, and determine whether it is a battery replacement operation or abnormal power recovery. According to the judgment result, the power status is updated.

[0204] The factors that may cause the voltage to rise include: fluctuations in the operation of the second device, shutdown of the high current service state of the second device, temperature rise, and battery replacement. The above factors can be used to confirm the situation where the power value has risen.

[0205] Among them, the voltage value fluctuation caused by work business is handled by the stability lock mechanism, and the power status update operation is not performed.

[0206] After the high-current service state is turned off, the battery voltage recovers to a value that is determined by the threshold value K. If the threshold value K is met, the power state update operation is performed.

[0207] The voltage increase caused by the temperature increase is detected by the second device temperature sensor, and the microcontroller calculates the difference to determine whether to perform a power status update operation.

[0208] After the battery is replaced, the integral data is cleared, the operating time, life cycle status and other data recorded in the memory are cleared, and a new discharge life cycle begins.

[0209] The following is an introduction to the system, device or apparatus provided in the embodiments of the present application, in which explanations or examples of technical features that are the same as or corresponding to those described in the above method are not repeated hereafter.

[0210] See also Fig. 9 , the system provided in the embodiment of the present application includes: a first device 01 and at least one second device 02 connected thereto; wherein:

[0211] The first device 01 is used for:

[0212] Acquire the battery voltage of the second device 02;

[0213] Based on the battery voltage of the second device 02, determine the current battery life cycle of the battery of the second device 02; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0214] According to the current battery life cycle of the battery of the second device 02, a preset method corresponding to the current battery life cycle of the battery of the second device 02 is used to determine the charge state of the battery of the second device 02, and feed it back to the second device 02;

[0215] The second device 02 is used for:

[0216] Sending the battery voltage of the local second device 02 to the first device 01;

[0217] The state of charge of the battery of the local second device 02 determined based on the battery voltage of the local second device 02 and fed back by the first device 01 is acquired.

[0218] In some embodiments, the first device 01 determines the current battery life cycle of the battery of the second device 02 based on the battery voltage of the second device 02, including:

[0219] If the battery voltage of the second device 02 is greater than the preset threshold, it is determined that the battery of the second device 02 is currently in the early stage of discharge; otherwise,

[0220] If the change value of the battery voltage of the second device 02 within the preset time period is less than the first preset change threshold, it is determined that the battery of the second device 02 is currently in the plateau period of the middle of discharge; otherwise,

[0221] If the change value of the battery voltage of the second device 02 within the preset time is greater than or equal to the first preset change threshold and less than the second preset change threshold, it is determined that the battery of the second device 02 is currently in the slope period of the middle of discharge; otherwise,

[0222] If the change value of the battery voltage of the second device 02 within the preset time period is greater than or equal to the second preset change threshold, it is determined that the battery of the second device 02 is currently at the end of discharge.

[0223] In some embodiments, the first device 01 determines the state of charge of the battery of the second device 02 according to the current battery life cycle of the battery of the second device 02, using a preset method corresponding to the current battery life cycle of the battery of the second device 02, including:

[0224] When the battery of the second device 02 is currently in the early stage of discharge, it is determined that the state of charge SOC value of the battery of the second device 02 is 100%;

[0225] When the battery of the second device 02 is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device 02 is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device 02, a second SOC value of the battery of the second device 02 is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device 02 that needs to be output;

[0226] When the battery of the second device 02 is currently in the slope period of the middle of discharge, the SOC value of the battery of the second device 02 is determined by searching a preset correspondence between the battery voltage and the SOC value based on the battery voltage of the second device 02;

[0227] When the battery of the second device 02 is currently at the end of discharge, it is determined that the state of charge of the battery of the second device 02 is a low voltage state.

[0228] In some embodiments, the first device 01 is further configured to:

[0229] When it is determined that the state of charge of the battery of the second device 02 is in a low voltage state, an alarm message is output.

[0230] In some embodiments, the second device 02 is further configured to:

[0231] If it is determined that the battery voltage of the second device 02 recovers, then when the following conditions are met, the state of charge of the battery of the second device 02 fed back by the first device 01 is used to update the state of charge of the local battery of the second device 02, and output it for display to the user:

[0232] The battery of the second device 02 has not been replaced;

[0233] The stable lock of the second device 02 is unlocked;

[0234] The temperature rise of the battery of the second device 02 within a preset time period is less than a preset value.

[0235] In some embodiments, the second device 02 is further configured to:

[0236] The battery voltage of the second device 02 is greater than a threshold value determined based on a full voltage value and a low voltage value, wherein the full voltage value is a preset value and the low voltage value is a minimum voltage value of the battery of the second device 02 from the beginning of use to the present time.

[0237] An electronic device (first device) provided in an embodiment of the present application, see Fig.10 , for example:

[0238] The processor 500 is used to read the program in the memory 520 and execute the following process:

[0239] Acquiring a battery voltage of the second device through a second device that has established a connection relationship with the local first device in advance;

[0240] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0241] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0242] In some embodiments, determining a current battery life cycle of a battery of the second device based on a battery voltage of the second device includes:

[0243] If the battery voltage of the second device is greater than the preset threshold, it is determined that the battery of the second device is currently in the early stage of discharge; otherwise,

[0244] If the change value of the battery voltage of the second device within the preset time period is less than the first preset change threshold, it is determined that the battery of the second device is currently in the plateau period of the middle of discharge; otherwise,

[0245] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to the first preset change threshold and less than the second preset change threshold, it is determined that the battery of the second device is currently in the slope period of the middle of discharge; otherwise,

[0246] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to a second preset change threshold, it is determined that the battery of the second device is currently at the end of discharge.

[0247] In some embodiments, according to the current battery life cycle of the battery of the second device, determining the state of charge of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes:

[0248] When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%;

[0249] When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output;

[0250] When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value;

[0251] When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

[0252] In some embodiments, the processor 500 is further configured to read a program in the memory 520 and execute the following process:

[0253] When it is determined that the state of charge of the battery of the second device is in a low voltage state, an alarm message is output.

[0254] The transceiver 510 is configured to receive and send data under the control of the processor 500 .

[0255] Among them, Fig.10In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 500 and memory represented by memory 520. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 510 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 500 is responsible for managing the bus architecture and general processing, and the memory 520 may store data used by the processor 500 when performing operations.

[0256] The processor 500 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0257] Another electronic device (second device) provided in the embodiment of the present application is Fig.11 , for example:

[0258] The processor 600 is used to read the program in the memory 620 and execute the following process:

[0259] Sending a battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance;

[0260] Obtaining the state of charge of the battery of the second device determined and fed back by the first device in the following manner:

[0261] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0262] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0263] In some embodiments, the processor 600 is further configured to read a program in the memory 620 and execute the following process:

[0264] If it is determined that the battery voltage of the second device has recovered, when the following conditions are met, the state of charge of the battery of the second device fed back by the first device is used to update the state of charge of the local battery of the second device, and output it for display to the user:

[0265] The second device has not had its battery replaced;

[0266] the stability lock of the second device is unlocked;

[0267] The temperature rise of the battery of the second device within a preset time period is less than a preset value.

[0268] In some embodiments, the conditions further include:

[0269] The battery voltage of the second device is greater than a threshold determined based on a full voltage value and a low voltage value, wherein the full voltage value is a preset value and the low voltage value is a minimum voltage value of the battery of the second device from the beginning of use to the present time.

[0270] The transceiver 610 is configured to receive and send data under the control of the processor 600 .

[0271] Among them, Fig.11 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 600 and various circuits of memory represented by memory 620 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 610 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including wireless channels, wired channels, optical cables, and other transmission media. For different user devices, the user interface 630 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.

[0272] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 600 when performing operations.

[0273] In some embodiments, the processor 600 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.

[0274] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.

[0275] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.

[0276] On the first device side, see Fig.12 , a battery power information determination device provided in an embodiment of the present application includes:

[0277] A battery voltage acquisition unit 11 is used to acquire a battery voltage of a local first device through a second device that has established a connection relationship with the second device in advance;

[0278] A battery life cycle determination unit 12 is used to determine the current battery life cycle of the battery of the second device based on the battery voltage of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0279] The state of charge determination unit 13 is used to determine the state of charge of the battery of the second device according to the current battery life cycle of the battery of the second device, using a preset method corresponding to the current battery life cycle of the battery of the second device, and feed it back to the second device.

[0280] In some embodiments, determining a current battery life cycle of a battery of the second device based on a battery voltage of the second device includes:

[0281] If the battery voltage of the second device is greater than the preset threshold, it is determined that the battery of the second device is currently in the early stage of discharge; otherwise,

[0282] If the change value of the battery voltage of the second device within the preset time period is less than the first preset change threshold, it is determined that the battery of the second device is currently in the plateau period of the middle of discharge; otherwise,

[0283] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to the first preset change threshold and less than the second preset change threshold, it is determined that the battery of the second device is currently in the slope period of the middle of discharge; otherwise,

[0284] If the change value of the battery voltage of the second device within the preset time period is greater than or equal to a second preset change threshold, it is determined that the battery of the second device is currently at the end of discharge.

[0285] In some embodiments, according to the current battery life cycle of the battery of the second device, determining the state of charge of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes:

[0286] When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%;

[0287] When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output;

[0288] When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value;

[0289] When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

[0290] In some embodiments, the state of charge determination unit 13 is further configured to:

[0291] When it is determined that the state of charge of the battery of the second device is in a low voltage state, an alarm message is output.

[0292] Accordingly, on the second device side, see Fig.13 , a battery power information determination device provided in an embodiment of the present application includes:

[0293] A battery voltage reporting unit 21, configured to send the battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance;

[0294] The state of charge acquisition unit 22 is used to acquire the state of charge of the battery of the second device determined and fed back by the first device in the following manner:

[0295] Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge;

[0296] According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device and feed it back to the second device.

[0297] In some embodiments, the state of charge acquisition unit 22 is further used to:

[0298] If it is determined that the battery voltage of the second device has recovered, when the following conditions are met, the state of charge of the battery of the second device fed back by the first device is used to update the state of charge of the local battery of the second device, and output it for display to the user:

[0299] The second device has not had its battery replaced;

[0300] the stability lock of the second device is unlocked;

[0301] The temperature rise of the battery of the second device within a preset time period is less than a preset value.

[0302] In some embodiments, the conditions further include:

[0303] The battery voltage of the second device is greater than a threshold determined based on a full voltage value and a low voltage value, wherein the full voltage value is a preset value and the low voltage value is a minimum voltage value of the battery of the second device from the beginning of use to the present time.

[0304] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0305] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or partly contribute to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.

[0306] Any of the devices or apparatuses provided in the embodiments of the present application may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. It may include a central processing unit (CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.

[0307] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In the embodiment of the present application, the memory may be used to store the program of any of the methods provided in the embodiment of the present application.

[0308] The processor calls the program instructions stored in the memory, and the processor is used to execute any of the methods provided in the embodiments of the present application according to the obtained program instructions.

[0309] The present application embodiment also provides a computer program product or computer program, which includes a computer instruction, which is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction so that the computer device performs any of the methods described in the above embodiments. The program product can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0310] The embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the apparatus provided in the embodiment of the present application, which includes a program for executing any of the methods provided in the embodiment of the present application. The computer-readable storage medium may be a non-transitory computer-readable medium.

[0311] The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0312] It should be understood that:

[0313] The access technology through which entities in the communication network transmit traffic can be any suitable current or future technology, such as WLAN (Wireless Local Access Network), WiMAX (Worldwide Interoperability for Microwave Access), LTE, LTE-A, 5G, Bluetooth, infrared, etc.; in addition, the embodiments can also apply wired technology, for example, IP-based access technology, such as a wired network or a fixed line.

[0314] Embodiments suitable for being implemented as software code or a portion thereof and running using a processor or processing functionality are independent of the software code and may be specified using any known or future developed programming language, such as a high-level programming language such as objective-C, C, C++, C#, Java, Python, Javascript, other scripting languages, etc., or a low-level programming language such as machine language or assembler.

[0315] The implementation of the embodiments is hardware independent and may be implemented using any known or future developed hardware technology or any mixture thereof, such as a microprocessor or CPU (central processing unit), MOS (metal oxide semiconductor), CMOS (complementary MOS), BiMOS (bipolar MOS), BiCMOS (bipolar CMOS), ECL (emitter coupled logic) and / or TTL (transistor-transistor logic).

[0316] Embodiments may be implemented as separate devices, apparatuses, units, components, or functions, or in a distributed manner, for example, one or more processors or processing functions may be used or shared in a process, or one or more processing segments or processing portions may be used and shared in a process, wherein one physical processor or more than one physical processor may be used to implement one or more processing portions dedicated to a specific process as described.

[0317] The device may be implemented by a semiconductor chip, a chipset, or a (hardware) module including such a chip or chipset.

[0318] The embodiments may also be implemented as any combination of hardware and software, such as ASIC (Application Specific IC (Integrated Circuit)) components, FPGA (Field Programmable Gate Array) or CPLD (Complex Programmable Logic Device) components or DSP (Digital Signal Processor) components.

[0319] The embodiments may also be implemented as a computer program product including a computer usable medium having computer readable program code embodied therein, the computer readable program code being adapted to perform the processes as described in the embodiments, wherein the computer usable medium may be a non-transitory medium.

[0320] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.

[0321] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0322] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0323] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0324] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for determining battery power information, characterized in that: The method comprises: Acquiring a battery voltage of the second device through a second device that has established a connection relationship with the local first device in advance; Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge; According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device, and feed back the state of charge to the second device; Wherein, according to the current battery life cycle of the battery of the second device, determining the charge state of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes: When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%; When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output; When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value; When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

2. The method according to claim 1, characterized in that Determining a current battery life cycle of a battery of the second device based on a battery voltage of the second device includes: If the battery voltage of the second device is greater than the preset threshold, it is determined that the battery of the second device is currently in the early stage of discharge; otherwise, If the change value of the battery voltage of the second device within the preset time period is less than the first preset change threshold, it is determined that the battery of the second device is currently in the plateau period of the middle of discharge; otherwise, If the change value of the battery voltage of the second device within the preset time period is greater than or equal to the first preset change threshold and less than the second preset change threshold, it is determined that the battery of the second device is currently in the slope period of the middle of discharge; otherwise, If the change value of the battery voltage of the second device within the preset time period is greater than or equal to a second preset change threshold, it is determined that the battery of the second device is currently at the end of discharge.

3. The method according to claim 1, characterized in that The method further comprises: When it is determined that the state of charge of the battery of the second device is in a low voltage state, an alarm message is output.

4. A method for determining battery power information, characterized in that: The method comprises: Sending a battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance; Obtaining the state of charge of the battery of the second device determined and fed back by the first device in the following manner: Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge; According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device, and feed back the state of charge to the second device; Wherein, according to the current battery life cycle of the battery of the second device, determining the charge state of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes: When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%; When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output; When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value; When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

5. The method according to claim 4, characterized in that The method further comprises: If it is determined that the battery voltage of the second device has recovered, then when the following conditions are met, the state of charge of the battery of the second device fed back by the first device is used to update the state of charge of the local battery of the second device, and output it for display to the user: The second device has not had its battery replaced; the stability lock of the second device is unlocked; The temperature rise of the battery of the second device within a preset time period is less than a preset value.

6. The method according to claim 5, characterized in that The conditions also include: The battery voltage of the second device is greater than a threshold determined based on a full voltage value and a low voltage value, wherein the full voltage value is a preset value and the low voltage value is a minimum voltage value of the battery of the second device from the beginning of use to the present time.

7. A device for determining battery power information, characterized in that: The device comprises: A battery voltage acquisition unit, configured to acquire a battery voltage of a local first device through a second device that has established a connection relationship with the second device in advance; A battery life cycle determination unit, configured to determine the current battery life cycle of the battery of the second device based on the battery voltage of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge; a state of charge determination unit, configured to determine the state of charge of the battery of the second device according to the current battery life cycle of the battery of the second device, using a preset method corresponding to the current battery life cycle of the battery of the second device, and feed back the state of charge to the second device; Wherein, according to the current battery life cycle of the battery of the second device, determining the charge state of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes: When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%; When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output; When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value; When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

8. A device for determining battery power information, characterized in that: The device comprises: A battery voltage reporting unit, configured to send the battery voltage of a local second device to a first device that has established a connection relationship with the second device in advance; A state of charge acquisition unit is used to acquire the state of charge of the battery of the second device determined and fed back by the first device in the following manner: Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge; According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device, and feed back the state of charge to the second device; Wherein, according to the current battery life cycle of the battery of the second device, determining the charge state of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes: When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%; When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output; When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value; When the battery of the second device is currently in the final stage of discharge, it is determined that the state of charge of the battery of the second device is in a low voltage state.

9. A system, characterized in that: include: A first device and at least one second device connected thereto; wherein, The first device is used for: obtaining a battery voltage of the second device; Based on the battery voltage of the second device, determining the current battery life cycle of the battery of the second device; wherein the battery life cycle is pre-divided into: an initial discharge period, a plateau period in the middle of discharge, a slope period in the middle of discharge, and an end of discharge; According to the current battery life cycle of the battery of the second device, a preset method corresponding to the current battery life cycle of the battery of the second device is used to determine the charge state of the battery of the second device, and feed back the state of charge to the second device; Wherein, according to the current battery life cycle of the battery of the second device, determining the charge state of the battery of the second device in a preset manner corresponding to the current battery life cycle of the battery of the second device includes: When the battery of the second device is currently in an early stage of discharge, determining that the state of charge (SOC) value of the battery of the second device is 100%; When the battery of the second device is currently in a plateau period in the middle of discharge, a first SOC value of the battery of the second device is determined by a current integration method, and based on the battery voltage, battery temperature, and battery model of the second device, a second SOC value of the battery of the second device is determined by searching a database, and when the difference between the first SOC value and the second SOC value is less than a preset error threshold, the first SOC value is determined as the SOC value of the battery of the second device that needs to be output; When the battery of the second device is currently in a slope period of mid-discharge, based on the battery voltage of the second device, the SOC value of the battery of the second device is determined by searching for a preset correspondence between the battery voltage and the SOC value; When the battery of the second device is currently at the end of discharge, determining that the state of charge of the battery of the second device is a low voltage state; The second device is used for: sending a battery voltage of a local second device to the first device; Acquire a state of charge of a battery of the local second device determined based on a battery voltage of the local second device and fed back by the first device.

10. An electronic device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 6 according to the obtained program.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Lithium iron phosphate battery SOC estimation system

    CN110895310A

  • Method and system for predicting state of health of battery and electronic equipment

    CN115825749A