Battery charging and discharging control method and device, computer device and readable storage medium
By setting multiple temperature detection points on electronic devices, the ambient temperature of the battery area is fitted, solving the problem of inaccurate battery temperature detection and improving the accuracy and safety of battery charging and discharging control.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN XINGJI MEIZU TECH CO LTD
- Filing Date
- 2023-04-24
- Publication Date
- 2026-06-09
AI Technical Summary
In the prior art, the battery temperature detection device is affected by the temperature of the battery protection board, resulting in inaccurate temperature detection results, which in turn affects the accuracy of battery charging and discharging control.
Multiple temperature detection points are set on the electronic device. The temperature is detected by the temperature detection points in the non-battery area, and the ambient temperature of the battery area is fitted. The battery area temperature is then combined with the detected temperature of the battery area to make predictions and control the charging and discharging of the battery.
It improves the accuracy of battery charging and discharging control, reduces the impact of battery protection board temperature on temperature detection results, and ensures safe battery operation.
Smart Images

Figure CN116315197B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic technology, and more specifically, to a battery charging and discharging control method and apparatus, a computer device, and a readable storage medium. Background Technology
[0002] Currently, when controlling battery charging and discharging, a temperature detection device is often installed on the battery protection board to monitor the battery's operating temperature, and then the charging and discharging current is adjusted based on the battery's operating temperature. However, in the process of monitoring the battery's operating temperature in this way, the temperature detection device is affected by the temperature of the battery protection board, which reduces the accuracy of the temperature detection results, thereby reducing the accuracy of battery charging and discharging control. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] Therefore, the first aspect of the present invention is to provide a battery charging and discharging control method.
[0005] A second aspect of the present invention is to provide a battery charging and discharging control device.
[0006] The third aspect of the present invention is to provide an electronic device.
[0007] A fourth aspect of the present invention is to provide a computer device.
[0008] The fifth aspect of the present invention is to provide a computer-readable storage medium.
[0009] In view of this, according to one aspect of the present invention, a battery charging and discharging control method is proposed, the method comprising: acquiring a first temperature corresponding to a first detection device and a plurality of second temperatures corresponding to a plurality of second detection devices; determining a third temperature based on the plurality of second temperatures; and controlling the battery to charge and discharge based on the third temperature and the first temperature; wherein the first detection device is located in the battery region of the electronic device and the second detection devices are located in the non-battery region of the electronic device.
[0010] The execution subject of the battery charging and discharging control method provided by this invention can be an electronic device, a battery charging and discharging control device, or something else depending on actual usage requirements; no specific limitation is made here. To more clearly describe the battery charging and discharging control method provided by this invention, the following description uses a battery charging and discharging control device as the execution subject.
[0011] The battery charging and discharging control method provided by this invention is used to control the charging and discharging operation of a battery in an electronic device. Specifically, the aforementioned electronic device may include a battery, a battery protection board, a main board, and smaller boards, etc., without specific limitations.
[0012] Specifically, in the battery charging and discharging control method provided by this invention, a first temperature corresponding to a first detection device disposed in the battery area of the electronic device is obtained, and multiple second temperatures corresponding to multiple second detection devices disposed in the non-battery area of the electronic device are obtained. Based on this, the multiple second temperatures are fitted to obtain a third temperature. Then, based on the comparison result of the first temperature and the third temperature, the battery is controlled to charge and discharge with a corresponding current. In this way, multiple temperature detection points are set on the electronic device. By processing the temperatures detected at the temperature detection points in the non-battery area (i.e., the second temperatures), the ambient temperature of the battery area (i.e., the third temperature) is fitted. Then, based on the detected temperature of the battery area (i.e., the first temperature) and the fitted temperature, the actual operating temperature of the battery is estimated, and the battery is controlled to charge and discharge according to the estimated battery operating temperature. Thus, the estimated battery operating temperature is closer to the actual temperature of the battery body, reducing the influence of the battery protection board temperature on the battery temperature detection results and improving the accuracy of battery charging and discharging control.
[0013] The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device.
[0014] The battery charging and discharging control method according to the present invention may also have the following additional technical features:
[0015] In the above technical solution, determining the third temperature based on multiple second temperatures includes: determining multiple second temperature curves based on multiple second temperatures; performing fitting processing on the multiple second temperature curves to obtain a third temperature curve; and determining the third temperature based on the third temperature curve.
[0016] In this technical solution, during the process of fitting multiple acquired second temperatures to obtain a third temperature, specifically, based on the second temperature corresponding to each second detection device, a second temperature curve corresponding to each second detection device is determined, resulting in multiple second temperature curves. Further, based on an algorithm, the multiple second temperature curves are fitted to obtain a third temperature curve, which is the fitted curve representing the change in ambient temperature of the battery region. Based on this, the corresponding third temperature is determined using the fitted third temperature curve. In this way, by fitting multiple second temperature curves corresponding to multiple second temperatures, the change in ambient temperature of the battery region, i.e., the third temperature curve, is determined, and then the corresponding third temperature is determined, ensuring the accuracy of the third temperature determination and thus ensuring the accuracy of subsequent battery charging and discharging control.
[0017] In any of the above technical solutions, controlling the battery to charge and discharge based on the third temperature and the first temperature includes: obtaining the third temperature and the first temperature at a first frequency, and controlling the battery to charge and discharge according to a target current when both the third temperature and the first temperature are within a safe range; wherein the target current is the maximum charge and discharge current of the battery.
[0018] In this technical solution, during the process of controlling the battery's charging and discharging based on a third temperature and a first temperature, specifically, the actual detected temperature of the battery region (i.e., the first temperature) and the fitted ambient temperature of the battery region (i.e., the third temperature) are obtained at a first frequency. When both the first and third temperatures are within the safe operating temperature range of the battery, the battery is controlled to charge and discharge at a target current, where the target current is the maximum allowable charging and discharging current of the battery. In other words, when both the actual detected temperature of the battery region and the fitted ambient temperature meet the requirements for safe battery operation, the battery is controlled to charge and discharge at the maximum charging and discharging current. This ensures safe battery operation while improving the battery's charging and discharging speed.
[0019] Furthermore, those skilled in the art can set the specific value of the aforementioned first frequency according to the actual situation, and no specific restrictions are imposed here.
[0020] In any of the above technical solutions, controlling the battery to charge and discharge based on the third temperature and the first temperature includes: when either the third temperature or the first temperature is in a critical state, continuously acquiring the first temperature corresponding to the first detection device N times at a second frequency, and multiple second temperatures corresponding to multiple second detection devices, and determining N third temperatures; controlling the battery to charge and discharge based on the N first temperatures and the N third temperatures; wherein N is a positive integer greater than 2, and the second frequency is greater than the first frequency.
[0021] In this technical solution, during the process of controlling the battery charging and discharging based on a third temperature and a first temperature, specifically, during the process of acquiring the actual detected temperature (first temperature) and the fitted ambient temperature (third temperature) of the battery area at a first frequency, if either the first or third temperature is outside the safe range or at a critical value of the battery's operating temperature, the temperature acquisition frequency is increased. The first temperature corresponding to the first detection device is acquired N times at a second frequency, and multiple second temperatures corresponding to multiple second detection devices are acquired N times. A corresponding third temperature is determined based on each acquired second temperature, thus obtaining N new third temperatures. Based on these N new first and N new third temperatures, the actual operating temperature of the battery is estimated, and then the battery is controlled to charge and discharge according to the estimated operating temperature. In other words, if either the actual detected temperature or the fitted ambient temperature of the battery area does not meet the requirements for safe battery operation, the actual detected temperature and the fitted ambient temperature of the battery area are rapidly acquired multiple times at a second frequency, and the battery is controlled to charge and discharge based on the re-acquired temperature values. In this way, while ensuring the safe operation of the battery, the influence of the battery protection board temperature on the battery temperature detection results is reduced, and the accuracy of controlling battery charging and discharging is improved.
[0022] Wherein, N is a positive integer greater than 2. The specific value of N can be determined by those skilled in the art based on the actual situation, and no specific restrictions are imposed here.
[0023] Furthermore, those skilled in the art can set the specific value of the aforementioned second frequency according to the actual situation, and no specific restrictions are imposed here.
[0024] In any of the above technical solutions, controlling the battery to charge and discharge based on N first temperatures and N third temperatures includes: comparing the N first temperatures and N third temperatures to determine N temperature values; determining the average of the N temperature values as the target temperature; and controlling the battery to charge and discharge based on the current value corresponding to the target temperature. The N temperature values are the temperature values located in the first N positions of the sorting queue when the N first temperatures and N third temperatures are sorted from largest to smallest.
[0025] In this technical solution, during the charging and discharging process of the battery based on N new first temperatures and N new third temperatures, specifically, the numerical values of 2N temperature values (N first temperatures and N third temperatures) are compared, and N temperature values are determined based on the comparison results. These N temperature values are the N temperature values that are among the top N values in the sorting queue when the 2N temperature values are sorted from largest to smallest; that is, the N highest temperature values among the 2N temperature values. Based on these N temperature values, a target temperature is determined, for example, the average of the N temperature values is taken as the target temperature. This target temperature is then considered the actual operating temperature of the battery. Based on the battery's operating characteristics or by looking up a table, the charging and discharging current value corresponding to this target temperature is determined, and the battery is controlled to perform charging and discharging operations according to this current value. In this way, the target temperature is determined based on the N highest values among the newly acquired N first temperatures and N third temperatures. The battery is then controlled to charge and discharge. The determined target temperature is closer to the actual temperature of the battery body, which reduces the influence of the battery protection board temperature on the battery temperature detection results and improves the accuracy of battery charging and discharging control.
[0026] According to a second aspect of the present invention, a battery charging and discharging control device is provided, the device comprising: an acquisition unit for acquiring a first temperature corresponding to a first detection device and a plurality of second temperatures corresponding to a plurality of second detection devices; a processing unit for determining a third temperature based on the plurality of second temperatures; the processing unit further comprising controlling the battery to charge and discharge based on the third temperature and the first temperature; wherein the first detection device is located in the battery region of the electronic device and the second detection devices are located in the non-battery region of the electronic device.
[0027] The battery charging and discharging control device provided by this invention is used to control the charging and discharging operation of a battery in an electronic device. Specifically, the aforementioned electronic device may include a battery, a battery protection board, a main board, and a small board, etc., without specific limitations herein.
[0028] Specifically, the battery charging and discharging control device provided by this invention includes an acquisition unit and a processing unit. The acquisition unit acquires a first temperature corresponding to a first detection device located in the battery area of the electronic device, and acquires multiple second temperatures corresponding to multiple second detection devices located in the non-battery area of the electronic device. Based on this, the processing unit performs fitting processing on the acquired multiple second temperatures to obtain a third temperature. Then, based on the comparison result of the first temperature and the third temperature, the battery is controlled to charge and discharge with a corresponding current. In this way, multiple temperature detection points are set on the electronic device. By processing the temperature detected at the temperature detection points in the non-battery area (i.e., the second temperature), the ambient temperature of the battery area (i.e., the third temperature) is fitted. Then, based on the detected temperature of the battery area (i.e., the first temperature) and the fitted temperature, the actual operating temperature of the battery is estimated, and the battery is controlled to charge and discharge according to the estimated battery operating temperature. In this way, the estimated battery operating temperature is closer to the actual temperature of the battery body, reducing the influence of the battery protection board temperature on the battery temperature detection result and improving the accuracy of battery charging and discharging control.
[0029] The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device.
[0030] According to a third aspect of the present invention, an electronic device is provided, comprising: a body; a battery disposed within the body; a first detection device disposed within the battery; a second detection device disposed within a region of the body other than where the battery is disposed; and a battery management device connected to both the battery, the first detection device, and the second detection device, wherein the battery management device, when in operation, implements the steps of the battery charging and discharging control method as described in any of the technical solutions of the first aspect above.
[0031] The electronic device proposed in this invention includes a body, a battery, a first detection device, a second detection device, and a battery management device. The battery is disposed within the body, the first detection device is disposed on the battery (i.e., in the battery area of the electronic device), and is used to detect the battery's operating temperature. The second detection device is disposed in a non-battery area within the body, and is used to detect the operating ambient temperature of components in the non-battery area of the electronic device.
[0032] During the operation of the electronic device, the battery management device can implement the steps of the battery charging and discharging control method in any of the technical solutions of the first aspect described above. Therefore, the electronic device proposed in the third aspect of the present invention possesses all the beneficial effects of the battery charging and discharging control method in the technical solution of the first aspect described above, which will not be repeated here.
[0033] The electronic device according to the present invention may further have the following additional technical features:
[0034] In the above technical solution, the electronic device also includes multiple heat-generating devices, and the battery includes a battery protection board; the first detection device is disposed on the battery protection board, and there are multiple second detection devices, which are respectively disposed on multiple heat-generating devices.
[0035] In this technical solution, the electronic device also includes multiple heat-generating components, such as a motherboard and a small board, and the battery also includes a battery protection board. Based on this, the aforementioned first detection device is disposed on the battery protection board, and there are multiple second detection devices, each disposed on one of the multiple heat-generating components. For example, the multiple second detection devices are disposed on both sides of the motherboard and both sides of the small board.
[0036] In other words, multiple temperature detection points are set up on the electronic device. By processing the temperatures detected at these points in non-battery areas, the ambient temperature of the battery area is fitted. Then, based on the detected and fitted temperatures in the battery area, the actual operating temperature of the battery is estimated, and the battery is controlled to charge and discharge according to the estimated operating temperature. This combination of hardware temperature detection and software algorithm-based temperature fitting ensures the accuracy of battery temperature detection results, thereby improving the accuracy of battery charging and discharging control.
[0037] According to a fourth aspect of the present invention, a computer device is provided, comprising a processor configured to execute a computer program stored in a memory to implement the steps of the battery charge / discharge control method as described in any of the above-described technical solutions. Therefore, the computer device proposed in the fourth aspect of the present invention possesses all the beneficial effects of the battery charge / discharge control method of the first aspect described above, which will not be elaborated further here.
[0038] According to a fifth aspect of the present invention, a computer-readable storage medium is provided, on which a program or instructions are stored, which, when executed by a processor, implement the battery charging and discharging control method as described in any of the above-described technical solutions. Therefore, the computer-readable storage medium proposed in the fifth aspect of the present invention possesses all the beneficial effects of the battery charging and discharging control method in any of the technical solutions of the first aspect, and will not be elaborated further here.
[0039] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description
[0040] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0041] Figure 1 A schematic flowchart of a battery charging and discharging control method according to an embodiment of the present invention is shown;
[0042] Figure 2 This diagram illustrates the installation of the first and second detection devices according to an embodiment of the present invention.
[0043] Figure 3 One of the schematic diagrams of the battery charging and discharging control method according to an embodiment of the present invention is shown;
[0044] Figure 4 The second schematic diagram of the battery charging and discharging control method according to an embodiment of the present invention is shown.
[0045] Figure 5 A structural block diagram of a battery charging and discharging control device according to an embodiment of the present invention is shown;
[0046] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. Detailed Implementation
[0047] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.
[0048] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0049] The following is combined Figures 1 to 6 The present application provides a detailed description of the battery charging and discharging control method and apparatus, computer device and readable storage medium provided in the embodiments of this application through specific implementation methods and application scenarios.
[0050] In one embodiment of the present invention, such as Figure 1 As shown, the battery charging and discharging control method may specifically include the following steps S102 to S106:
[0051] S102, acquire the first temperature corresponding to the first detection device, and the multiple second temperatures corresponding to the multiple second detection devices;
[0052] S104, determining the third temperature based on multiple second temperatures;
[0053] S106 controls the charging and discharging of the battery based on the third temperature and the first temperature.
[0054] The battery charging and discharging control method provided by this invention is used to control the charging and discharging operation of a battery in an electronic device. Specifically, the aforementioned electronic device may include a battery, a battery protection board, a main board, and smaller boards, etc., without specific limitations.
[0055] Specifically, in the battery charging and discharging control method provided by this invention, a first temperature corresponding to a first detection device located in the battery area of the electronic device is obtained, and multiple second temperatures corresponding to multiple second detection devices located in the non-battery area of the electronic device are obtained. Based on this, the multiple second temperatures are fitted to obtain a third temperature. Then, based on the comparison result of the first and third temperatures, the battery is controlled to charge and discharge with a corresponding current. In this way, multiple temperature detection points are set on the electronic device. By processing the temperatures detected at the temperature detection points in the non-battery area (i.e., the second temperatures), the ambient temperature of the battery area (i.e., the third temperature) is fitted. Then, based on the detected temperature of the battery area (i.e., the first temperature) and the fitted temperature, the actual operating temperature of the battery is estimated, and the battery is controlled to charge and discharge according to the estimated battery operating temperature. This method of controlling battery charging and discharging by combining hardware temperature detection and software algorithm temperature fitting makes the estimated battery operating temperature closer to the actual temperature of the battery itself, reduces the influence of the battery protection board temperature on the battery temperature detection results, and improves the accuracy of battery charging and discharging control.
[0056] The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device. In practical applications, such as... Figure 2 As shown, the first detection device can be specifically installed on the battery protection board, while the multiple second detection devices can be installed on both sides of the main board and the sides of the small board of the electronic device, respectively, without specific restrictions.
[0057] Furthermore, in practical applications, the aforementioned first and second detection devices can specifically employ surface-mount, leaded, or through-hole negative temperature coefficient (NTC) resistors. Those skilled in the art can configure the specific types of the first and second detection devices according to actual circumstances, and no specific limitations are imposed here.
[0058] Based on this, in the process of obtaining the first temperature corresponding to the first detection device and the second temperature corresponding to the second detection device, the voltage change at both ends of the first detection device and the second detection device can be detected, and then the corresponding first temperature and second temperature can be determined based on the working characteristics of the NTC or by looking up a table.
[0059] Furthermore, during the process of controlling the battery charging and discharging based on the estimated battery operating temperature, the corresponding battery charging and discharging current value can be determined according to the estimated battery operating temperature. This allows for control of the battery to perform charging and discharging operations with an appropriate current value, dynamically adjusting the battery's charging and discharging power to prevent localized overheating and thus prevent the battery from exceeding its operating temperature, ensuring the safety of the battery's operating environment. In practical applications, the specific charging and discharging current can be determined using Table 1 below.
[0060] Table 1: Lithium Battery Charge / Discharge Temperature and Current Limitations
[0061]
[0062] In this embodiment of the invention, S104 may further include the following S104a to S104c:
[0063] S104a, multiple second temperature curves are determined based on multiple second temperatures;
[0064] S104b, by fitting multiple second temperature curves, a third temperature curve is obtained;
[0065] S104c: Determine the third temperature based on the third temperature curve.
[0066] In this embodiment, during the process of fitting multiple acquired second temperatures to obtain a third temperature, specifically, based on the second temperature corresponding to each second detection device, a second temperature curve corresponding to each second detection device is determined to obtain multiple second temperature curves. Further, based on an algorithm, the multiple second temperature curves are fitted to obtain a third temperature curve, which is the fitted curve representing the change in ambient temperature of the battery region. Based on this, the corresponding third temperature is determined using the fitted third temperature curve. Thus, by fitting multiple second temperature curves corresponding to multiple second temperatures, the change in ambient temperature of the battery region, i.e., the third temperature curve, is determined, and then the corresponding third temperature is determined, ensuring the accuracy of the third temperature determination and consequently ensuring the accuracy of subsequent battery charging and discharging control.
[0067] In the process of fitting multiple second temperature curves to obtain a third temperature curve, the actual ambient temperature and the actual operating conditions of the battery can be considered. This can be achieved by adding or subtracting the multiple second temperature curves to obtain the third temperature curve. Alternatively, the multiple second temperature curves can be weighted and then summed to obtain the third temperature curve.
[0068] Alternatively, multiple temperature values corresponding to the same moment in multiple second temperature curves can be weighted to obtain multiple weighted temperature values, and then a third temperature curve can be determined based on these weighted temperature values. For example, multiple temperature values corresponding to the same moment in multiple second temperature curves can be averaged and then a proportionality constant can be subtracted to obtain multiple weighted temperature values, and then a third temperature curve can be determined based on these weighted temperature values. In this case, the value of the aforementioned proportionality constant is positively correlated with the sum of the multiple temperature values corresponding to the same moment.
[0069] For example, the temperature values of the multiple second temperature curves at the first time point are 35℃, 33℃, 24℃, and 23℃, respectively, and after weighted calculation, a weighted temperature value of 28.05℃ is obtained; the temperature values of the multiple second temperature curves at the second time point are 65℃, 55℃, 30℃, and 25℃, respectively, and after weighted calculation, a weighted temperature value of 41.84℃ is obtained; the temperature values of the multiple second temperature curves at the third time point are 80℃, 65℃, 35℃, and 30℃, respectively, and after weighted calculation, a weighted temperature value of 50.08℃ is obtained; the temperature values of the multiple second temperature curves at the fourth time point are 70℃, 58℃, and 25℃, respectively, and after weighted calculation, a weighted temperature value of 50.08℃ is obtained; The values of 34℃ and 30℃, after weighted calculation, yield a weighted temperature value of 46.02℃. The temperature values of multiple second temperature curves at the fifth time point are 55℃, 45℃, 30℃, and 30℃, respectively, and after weighted calculation, a weighted temperature value of 38.6℃ is obtained. The temperature values of multiple second temperature curves at the sixth time point are 45℃, 40℃, 30℃, and 25℃, respectively, and after weighted calculation, a weighted temperature value of 34.01℃ is obtained. The temperature values of multiple second temperature curves at the seventh time point are 38℃, 35℃, 25℃, and 25℃, respectively, and after weighted calculation, a weighted temperature value of 29.96℃ is obtained. And so on. Based on this, a third temperature curve is determined using multiple weighted temperature values, including 28.05℃, 41.84℃, 50.08℃, 46.02℃, 38.60℃, 34.01℃, and 29.96℃.
[0070] The specific formulas for weighted calculation of multiple second temperature curves and for weighted calculation of multiple temperature values can be adjusted according to the actual situation, and no specific restrictions are imposed here.
[0071] Furthermore, in practical applications, data analysis tools can be used to perform regression calculations on the coordinates of multiple second temperature curves to obtain a third temperature curve. The specific method for obtaining the third temperature curve through fitting can be set by those skilled in the art according to the actual situation, and no specific restrictions are imposed here.
[0072] In addition, in practical applications, after obtaining the third temperature through fitting, the obtained third temperature curve can be analyzed and compensated according to the actual ambient temperature and the actual working conditions of the battery to ensure the accuracy of the obtained third temperature.
[0073] For example, such as Figure 3 As shown, by processing and analyzing the second temperatures and detection times corresponding to the four second detection devices, namely NTC2, NTC3, NTC4, and NTC5, second temperature curves corresponding to NTC2, NTC3, NTC4, and NTC5 are obtained respectively. Based on this, by fitting the four second temperature curves corresponding to NTC2, NTC3, NTC4, and NTC5, a third temperature curve is obtained. Figure 3 The NTC6 value indicates the temperature change curve, which is the fitted curve showing the change in the ambient temperature (third temperature) of the battery region. Additionally, as... Figure 3 As shown, in practical applications, the first temperature and detection time corresponding to the first detection device NTC1 can be processed and analyzed to obtain the first temperature curve corresponding to NTC1, so as to control the charging and discharging operation of the battery based on the first temperature curve.
[0074] In this embodiment of the invention, S106 may further include the following S106a:
[0075] S106a: Obtain the third temperature and the first temperature according to the first frequency; and control the battery to charge and discharge according to the target current when both the third temperature and the first temperature are within the safe range.
[0076] The target current is the battery's maximum charge and discharge current.
[0077] In this embodiment, during the process of controlling the battery's charging and discharging based on a third temperature and a first temperature, specifically, the actual detected temperature of the battery region (i.e., the first temperature) and the fitted ambient temperature of the battery region (i.e., the third temperature) are obtained at a first frequency. When both the obtained third temperature and the first temperature are within the safe range of the battery's operating temperature, the battery is controlled to charge and discharge according to a target current, where the target current is the maximum allowable charging and discharging current of the battery. In other words, when both the actual detected temperature of the battery region and the fitted ambient temperature meet the requirements for safe battery operation, the battery is controlled to charge and discharge according to the maximum charging and discharging current. This ensures safe battery operation while improving the battery's charging and discharging speed.
[0078] Furthermore, those skilled in the art can set the specific value of the aforementioned first frequency according to the actual situation, and no specific restrictions are imposed here.
[0079] In this embodiment of the invention, S106 may further include S106b and S106c as follows:
[0080] S106b, when either the third temperature or the first temperature is in a critical state, the first temperature corresponding to the first detection device and the multiple second temperatures corresponding to the multiple second detection devices are continuously acquired N times at the second frequency, and N third temperatures are determined.
[0081] S106c controls the battery to charge and discharge based on N first temperatures and N third temperatures;
[0082] Where N is a positive integer greater than 2, and the second frequency is greater than the first frequency.
[0083] In this embodiment, during the process of controlling the battery charging and discharging based on the third temperature and the first temperature, specifically, during the process of collecting the actual detected temperature of the battery area (i.e., the first temperature) and the fitted ambient temperature of the battery area (i.e., the third temperature) at a first frequency, if either the first temperature or the third temperature is outside the safe range or at a critical value of the battery's operating temperature, the temperature collection frequency is increased. The first temperature corresponding to the first detection device is reacquired N times at a second frequency, and multiple second temperatures corresponding to multiple second detection devices are reacquired N times. A corresponding third temperature is determined based on each reacquired second temperature, thus obtaining N new third temperatures. Based on these N new first temperatures and N new third temperatures, the actual operating temperature of the battery is estimated, and then the battery is controlled to charge and discharge according to the estimated battery operating temperature. In other words, if either the actual detected temperature of the battery area or the fitted ambient temperature does not meet the requirements for safe battery operation, the actual detected temperature of the battery area and the fitted ambient temperature are rapidly reacquired multiple times at the second frequency, and the battery is controlled to charge and discharge based on the reacquired temperature values. In this way, while ensuring the safe operation of the battery, the influence of the battery protection board temperature on the battery temperature detection results is reduced, and the accuracy of controlling battery charging and discharging is improved.
[0084] Wherein, N is a positive integer greater than 2. The specific value of N can be determined by those skilled in the art based on the actual situation, and no specific restrictions are imposed here.
[0085] Furthermore, those skilled in the art can set the specific value of the aforementioned second frequency according to the actual situation, and no specific restrictions are imposed here.
[0086] Furthermore, the aforementioned critical values can specifically be the critical values of each temperature range in Table 1 above. For example, the aforementioned critical values can specifically be values such as -20℃, 0℃, 15℃, 40℃, 45℃, and 60℃ in Table 1, without any specific restrictions.
[0087] In this embodiment of the invention, S106c may further include the following S106c1 to S106c3:
[0088] S106c1, compare N first temperatures and N third temperatures to determine N temperature values;
[0089] S106c2, the average of N temperature values is determined as the target temperature;
[0090] S106c3 controls the battery to charge and discharge according to the current value corresponding to the target temperature;
[0091] Among them, the N temperature values are the temperature values that are located in the first N positions of the sorting queue when the N first temperatures and N third temperatures are sorted in descending order of temperature value.
[0092] In this embodiment, during the charging and discharging process of the battery based on the acquired N new first temperatures and N new third temperatures, specifically, the numerical values of the 2N temperature values (N first temperatures and N third temperatures) are compared, and N temperature values are determined based on the comparison results. These N temperature values are the N temperature values that are located in the top N positions of the sorting queue when the 2N temperature values are sorted from largest to smallest; that is, the N highest-valued temperature values among the 2N temperature values. Based on these N temperature values, a target temperature is determined, for example, the average value of the N temperature values is determined as the target temperature. This target temperature is then considered the actual operating temperature of the battery. Based on the battery's operating characteristics or by looking up a table, the charging and discharging current value corresponding to the target temperature is determined, and the battery is controlled to perform charging and discharging operations according to this current value. In this way, the target temperature is determined based on the N highest values among the newly acquired N first temperatures and N third temperatures. The battery is then controlled to charge and discharge. The determined target temperature is closer to the actual temperature of the battery body, which reduces the influence of the battery protection board temperature on the battery temperature detection results and improves the accuracy of battery charging and discharging control.
[0093] For example, such as Figure 4As shown, curve NTC1 is the first temperature curve obtained by processing and analyzing the first temperature and detection time corresponding to the first detection device, and curve NTC6 is the variation curve of the ambient temperature of the battery area, i.e., the third temperature, obtained by fitting. Based on this, the third temperature and the first temperature are obtained according to a first frequency. If both the currently obtained first and third temperatures are within the safe range of the battery's operating temperature, for example... Figure 4 T7, T8, T9, T 10 T 11 T 12 T 13 And T 14 The battery is charged and discharged according to its maximum charge and discharge current. If either the first or third temperature is outside the safe operating temperature range or at a critical value, the temperature sampling frequency is increased. The first temperature curve NTC1 and the third temperature curve NTC6 are sampled three times at a second frequency, resulting in three new first temperatures (T1, T2, and T3) and three new third temperatures (T4, T5, and T6). Based on these, the values of T1, T2, T3, T4, T5, and T6 are compared, and the three larger temperature values (T1, T2, and T3) are determined. The average of T1, T2, and T3 is taken as the actual operating temperature of the battery, and the battery is then controlled to charge and discharge accordingly.
[0094] In one embodiment of the present invention, a battery charge / discharge control device is also provided. For example... Figure 5 As shown, Figure 5 A structural block diagram of a battery charge / discharge control device 500 according to an embodiment of the present invention is shown. Specifically, the battery charge / discharge control device 500 may include an acquisition unit 502 and a processing unit 504.
[0095] The acquisition unit 502 is used to acquire a first temperature corresponding to the first detection device and a plurality of second temperatures corresponding to a plurality of second detection devices;
[0096] Processing unit 504 is used to determine a third temperature based on a plurality of second temperatures;
[0097] The processing unit 504 is also used to control the charging and discharging of the battery based on the third temperature and the first temperature;
[0098] The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device.
[0099] The battery charging and discharging control device 500 provided in this embodiment of the invention is used to control the charging and discharging operation of a battery in an electronic device. The electronic device may specifically include a battery, a battery protection board, a main board, and a small board, etc., and is not specifically limited herein.
[0100] Specifically, the battery charging and discharging control device 500 provided by the present invention includes an acquisition unit 502 and a processing unit 504. The acquisition unit 502 acquires a first temperature corresponding to a first detection device disposed in the battery area of the electronic device, and acquires multiple second temperatures corresponding to multiple second detection devices disposed in the non-battery area of the electronic device. Based on this, the processing unit 504 performs fitting processing on the acquired multiple second temperatures to obtain a third temperature. Then, based on the comparison result of the first temperature and the third temperature, the battery is controlled to charge and discharge at a corresponding current. In this way, multiple temperature detection points are set on the electronic device. By processing the temperature detected at the temperature detection points in the non-battery area (i.e., the second temperature), the ambient temperature of the battery area (i.e., the third temperature) is fitted. Then, based on the detected temperature of the battery area (i.e., the first temperature) and the fitted temperature, the actual operating temperature of the battery is estimated, and the battery is controlled to charge and discharge according to the estimated battery operating temperature. In this way, the estimated battery operating temperature is closer to the actual temperature of the battery body, reducing the influence of the battery protection board temperature on the battery temperature detection result and improving the accuracy of battery charging and discharging control.
[0101] The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device. In practical applications, the first detection device can be specifically installed on the battery protection board, while the multiple second detection devices can be respectively installed on both sides of the main board and both sides of the sub-board of the electronic device, without specific limitations.
[0102] Furthermore, in practical applications, the aforementioned first and second detection devices can specifically employ surface-mount, leaded, or through-hole NTCs. Those skilled in the art can configure the specific types of the first and second detection devices according to actual circumstances, and no specific limitations are imposed here.
[0103] Based on this, in the process of obtaining the first temperature corresponding to the first detection device and the second temperature corresponding to the second detection device, the voltage change at both ends of the first detection device and the second detection device can be detected, and then the corresponding first temperature and second temperature can be determined based on the working characteristics of the NTC or by looking up a table.
[0104] Furthermore, during the process of controlling the battery charging and discharging based on the estimated battery operating temperature, the corresponding battery charging and discharging current value can be determined according to the estimated battery operating temperature. This allows for control of the battery to perform charging and discharging operations with an appropriate current value, dynamically adjusting the battery's charging and discharging power to prevent localized overheating and thus prevent the battery from exceeding its operating temperature, ensuring the safety of the battery's operating environment. In practical applications, the specific charging and discharging current can be determined using Table 1 above.
[0105] In one embodiment of the present invention, the processing unit 504 is further configured to: determine multiple second temperature curves based on multiple second temperatures; perform fitting processing on the multiple second temperature curves to obtain a third temperature curve; and determine a third temperature based on the third temperature curve.
[0106] In this embodiment, during the process of the processing unit 504 fitting multiple acquired second temperatures to obtain a third temperature, specifically, the processing unit 504 determines a second temperature curve corresponding to each second detection device based on the second temperature corresponding to each second detection device, thereby obtaining multiple second temperature curves. Further, the processing unit 504 performs fitting processing on the multiple obtained second temperature curves based on an algorithm to obtain a third temperature curve, which is the fitted curve representing the change in ambient temperature of the battery region. Based on this, the corresponding third temperature is determined using the fitted third temperature curve. In this way, by fitting multiple second temperature curves corresponding to multiple second temperatures, the change in ambient temperature of the battery region, i.e., the third temperature curve, is determined, and then the corresponding third temperature is determined, ensuring the accuracy of the third temperature determination and thus ensuring the accuracy of subsequent battery charging and discharging control.
[0107] In one embodiment of the present invention, the processing unit 504 is further configured to: acquire a third temperature and a first temperature at a first frequency, and control the battery to charge and discharge according to a target current when both the third temperature and the first temperature are within a safe range; wherein the target current is the maximum charge and discharge current of the battery.
[0108] In this embodiment, during the process of the processing unit 504 controlling the battery to charge and discharge based on the third temperature and the first temperature, specifically, the actual detected temperature of the battery region (i.e., the first temperature) and the fitted ambient temperature of the battery region (i.e., the third temperature) are obtained at a first frequency. When both the first and third temperatures are within the safe operating temperature range of the battery, the processing unit 504 controls the battery to charge and discharge according to a target current, where the target current is the maximum allowable charging and discharging current of the battery. In other words, when both the actual detected temperature of the battery region and the fitted ambient temperature meet the requirements for safe battery operation, the processing unit 504 controls the battery to charge and discharge according to the maximum charging and discharging current. This ensures safe battery operation while improving the charging and discharging speed.
[0109] In one embodiment of the present invention, the processing unit 504 is further configured to: when either the third temperature or the first temperature is in a critical state, continuously acquire the first temperature corresponding to the first detection device N times at a second frequency, and the multiple second temperatures corresponding to multiple second detection devices, and determine N third temperatures; control the battery to charge and discharge according to the N first temperatures and the N third temperatures; wherein N is a positive integer greater than 2, and the second frequency is greater than the first frequency.
[0110] In this embodiment, during the process of the processing unit 504 controlling the battery to charge and discharge based on the third temperature and the first temperature, specifically, when the processing unit 504 collects the actual detected temperature of the battery area (i.e., the first temperature) and the fitted ambient temperature of the battery area (i.e., the third temperature) at a first frequency, if either the first temperature or the third temperature is outside the safe range or at a critical value of the battery's operating temperature, the processing unit 504 increases the temperature collection frequency, re-acquires the first temperature corresponding to the first detection device N times at a second frequency, and re-acquires multiple second temperatures corresponding to multiple second detection devices N times, and determines a corresponding third temperature based on each re-acquired second temperature, thereby obtaining N new third temperatures. Based on this, the processing unit 504 then estimates the actual operating temperature of the battery based on the N new first temperatures and N new third temperatures, and then controls the battery to charge and discharge based on the estimated battery operating temperature. In other words, if either the actual detected temperature of the battery area or the fitted ambient temperature fails to meet the requirements for safe battery operation, the processing unit 504 will rapidly acquire the actual detected temperature of the battery area and the fitted ambient temperature multiple times at a second frequency, and control the battery to charge and discharge based on the re-acquired temperature values. This ensures safe battery operation while reducing the impact of the battery protection board temperature on the battery temperature detection results, thus improving the accuracy of battery charging and discharging control.
[0111] Wherein, N is a positive integer greater than 2. The specific value of N can be determined by those skilled in the art based on the actual situation, and no specific restrictions are imposed here.
[0112] Furthermore, those skilled in the art can set the specific value of the aforementioned second frequency according to the actual situation, and no specific restrictions are imposed here.
[0113] In one embodiment of the present invention, the processing unit 504 is further configured to: compare N first temperatures and N third temperatures to determine N temperature values; determine the average value of the N temperature values as the target temperature; and control the battery to charge and discharge according to the current value corresponding to the target temperature; wherein the N temperature values are the temperature values located in the first N positions of the sorting queue when the N first temperatures and N third temperatures are sorted in descending order of temperature value.
[0114] In this embodiment, during the process of the processing unit 504 controlling the battery to charge and discharge based on the acquired N new first temperatures and N new third temperatures, specifically, the processing unit 504 compares the numerical values of the N first temperatures and N third temperatures (a total of 2N temperature values), and determines N temperature values based on the comparison results. These N temperature values are the N temperature values located in the top N positions of the sorting queue when the N first temperatures and N third temperatures are sorted from largest to smallest; that is, the N highest-valued temperature values among the 2N temperature values. Based on this, the processing unit 504 determines a target temperature based on the determined N temperature values, for example, by determining the average of the N temperature values as the target temperature. This target temperature is then considered as the actual operating temperature of the battery. Based on the battery's operating characteristics or by looking up a table, the processing unit 504 determines the charging and discharging current value corresponding to the target temperature and controls the battery to perform charging and discharging operations according to this charging and discharging current value. In this way, the target temperature is determined based on the N highest values among the newly acquired N first temperatures and N third temperatures. The battery is then controlled to charge and discharge. The determined target temperature is closer to the actual temperature of the battery body, which reduces the influence of the battery protection board temperature on the battery temperature detection results and improves the accuracy of battery charging and discharging control.
[0115] In one embodiment of the invention, an electronic device is also provided. For example... Figure 6 As shown, Figure 6 A structural block diagram of an electronic device 600 according to an embodiment of the present invention is shown. Specifically, the electronic device 600 includes a body 601, a battery 602, a first detection device 604, a second detection device 606, and a battery management device 608.
[0116] The battery 602 is disposed within the body 601, and the first detection device 604 is disposed on the battery 602, that is, the first detection device 604 is disposed in the battery area of the electronic device 600, and is used to detect the operating temperature of the battery 602. The second detection device 606 is disposed in an area within the body 601 where the battery 602 is not disposed, that is, the second detection device 606 is disposed in the non-battery area of the electronic device 600, and is used to detect the operating ambient temperature of the components in the non-battery area of the electronic device 600.
[0117] Furthermore, the battery management device 608 is connected to the battery 602, the first detection device 604, and the second detection device 606. During the operation of the electronic device 600, the battery management device 608 can implement the steps of the battery charge-discharge control method in any embodiment of the first aspect described above. Therefore, the electronic device proposed in the third aspect of the present invention possesses all the beneficial effects of the battery charge-discharge control method in any embodiment of the first aspect described above, which will not be repeated here.
[0118] Furthermore, in practical applications, the first detection device 604 and the second detection device 606 can specifically adopt surface-mount, leaded, or through-hole NTC types. Those skilled in the art can configure the specific types of the first detection device 604 and the second detection device 606 according to actual circumstances, and no specific limitations are imposed here.
[0119] Based on this, during the process of the battery management device 608 acquiring the first temperature corresponding to the first detection device 604 and the second temperature corresponding to the second detection device 606, the battery management device 608 can specifically detect the voltage changes at both ends of the first detection device 604 and the second detection device 606, and then determine the corresponding first temperature and second temperature based on the working characteristics of the NTC or by looking up a table.
[0120] In one embodiment of the present invention, further, as Figure 6 As shown, the electronic device 600 also includes multiple heat-generating devices 610, such as motherboards and small boards, and the battery 602 also includes a battery protection board 612.
[0121] Based on this, the first detection device 604 is disposed on the battery protection board 612, and there are multiple second detection devices 606, which are respectively disposed on multiple heat-generating devices 610. For example, the multiple second detection devices 606 are respectively disposed on both sides of the main board and both sides of the sub-board. During the operation of the electronic device 600, the battery management device 608 controls the charging and discharging operation of the battery 602 based on the first temperature corresponding to the first detection device 604 and the multiple second temperatures corresponding to the multiple second detection devices 606.
[0122] In other words, multiple temperature detection points are set on the electronic device 600. By processing the temperatures detected at these points in non-battery areas, the ambient temperature of the battery area is fitted. Then, based on the detected temperature and the fitted temperature in the battery area, the actual operating temperature of the battery 602 is estimated, and the battery 602 is controlled to charge and discharge according to the estimated operating temperature. This combination of hardware temperature detection and software algorithm-based temperature fitting ensures the accuracy of battery temperature detection results, thereby improving the accuracy of battery charging and discharging control.
[0123] An embodiment of the fourth aspect of the present invention provides a computer device including a processor, which executes a computer program stored in a memory to implement the steps of the battery charge-discharge control method as described in any of the above embodiments. Therefore, the computer device proposed in the fourth aspect of the present invention possesses all the beneficial effects of the battery charge-discharge control method in any of the embodiments of the first aspect, which will not be elaborated further here.
[0124] An embodiment of the fifth aspect of the present invention provides a computer-readable storage medium having a program or instructions stored thereon, which, when executed by a processor, implement the battery charging and discharging control method as described in any of the above embodiments. Therefore, the computer-readable storage medium proposed in the fifth aspect of the present invention possesses all the beneficial effects of the battery charging and discharging control method in any of the embodiments of the first aspect, and will not be elaborated further here.
[0125] Specifically, the aforementioned computer-readable storage media can include any medium capable of storing or transmitting information. Examples of computer-readable storage media include electronic circuits, semiconductor memory devices, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), flash memory, erasable ROM (EROM), magnetic tape, floppy disk, optical disk, hard disk, fiber optic media, radio frequency (RF) links, optical data storage devices, etc. Code segments can be downloaded via computer networks such as the Internet and intranets.
[0126] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, unless otherwise expressly specified and limited. The terms "connection," "installation," and "fixing," etc., should be interpreted broadly. For example, "connection" can mean a fixed connection, a detachable connection, or an integral connection; it can mean a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0127] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0128] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0129] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A battery charging and discharging control method, characterized in that, The method includes: Acquire a first temperature corresponding to the first detection device, and multiple second temperatures corresponding to multiple second detection devices; The third temperature is determined based on the plurality of second temperatures; The battery is controlled to charge and discharge based on the third temperature and the first temperature. The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device. Determining the third temperature based on the plurality of second temperatures includes: Multiple second temperature curves are determined based on the multiple second temperatures; The multiple second temperature curves are fitted to obtain a third temperature curve; the third temperature curve is the ambient temperature change curve of the battery region obtained by the fitting process. The third temperature is determined based on the third temperature curve.
2. The battery charging and discharging control method according to claim 1, characterized in that, The step of controlling the battery to charge and discharge based on the third temperature and the first temperature includes: The third temperature and the first temperature are obtained at a first frequency. When both the third temperature and the first temperature are within a safe range, the battery is charged and discharged according to the target current. The target current is the maximum charge and discharge current of the battery.
3. The battery charging and discharging control method according to claim 2, characterized in that, The step of controlling the battery to charge and discharge based on the third temperature and the first temperature further includes: When either the third temperature or the first temperature is in a critical state, the first temperature corresponding to the first detection device and the multiple second temperatures corresponding to the multiple second detection devices are continuously acquired N times at a second frequency, and N third temperatures are determined. The battery is controlled to charge and discharge based on N first temperatures and N third temperatures; Where N is a positive integer greater than 2, and the second frequency is greater than the first frequency.
4. The battery charging and discharging control method according to claim 3, characterized in that, The step of controlling the battery to charge and discharge based on N first temperatures and N third temperatures includes: Compare the N first temperatures and the N third temperatures to determine N temperature values; The average of the N temperature values is determined as the target temperature; The battery is controlled to charge and discharge based on the current value corresponding to the target temperature. Wherein, the N temperature values are the temperature values that are located in the first N positions of the sorting queue when the N first temperatures and the N third temperatures are sorted in descending order of temperature value.
5. A battery charging and discharging control device, characterized in that, The device includes: The acquisition unit is used to acquire a first temperature corresponding to the first detection device and a plurality of second temperatures corresponding to a plurality of second detection devices; A processing unit is configured to determine a third temperature based on the plurality of second temperatures; The processing unit is also configured to control the battery to charge and discharge based on the third temperature and the first temperature; Determining the third temperature based on the plurality of second temperatures includes: Multiple second temperature curves are determined based on the multiple second temperatures; The multiple second temperature curves are fitted to obtain a third temperature curve; the third temperature curve is the ambient temperature change curve of the battery region obtained by the fitting process. The third temperature is determined based on the third temperature curve. The first detection device is located in the battery area of the electronic device, and the second detection device is located in the non-battery area of the electronic device.
6. An electronic device, characterized in that, The electronic device includes: Organism; The battery is located inside the body of the device; A first detection device is installed on the battery; The second detection device is located in an area of the machine body other than where the battery is located; A battery management device is connected to the battery, the first detection device, and the second detection device. When the battery management device is in operation, it implements the steps of the method as described in any one of claims 1 to 4.
7. The electronic device according to claim 6, characterized in that, The electronic device also includes multiple heat-generating devices, and the battery includes a battery protection board; The first detection device is disposed on the battery protection board, and there are multiple second detection devices, which are respectively disposed on the multiple heating devices.
8. A computer device, characterized in that, The computer device includes a processor that executes a computer program stored in a memory to implement the steps of the method as claimed in any one of claims 1 to 4.
9. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method as described in any one of claims 1 to 4.