CN110571887B - Battery selection method and device, storage medium and electronic equipment - Google Patents

Battery selection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110571887B
CN110571887B CN201910900254.1A CN201910900254A CN110571887B CN 110571887 B CN110571887 B CN 110571887B CN 201910900254 A CN201910900254 A CN 201910900254A CN 110571887 B CN110571887 B CN 110571887B
Authority
CN
China
Prior art keywords
battery
batteries
target
determining
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910900254.1A
Other languages
Chinese (zh)
Other versions
CN110571887A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910900254.1A priority Critical patent/CN110571887B/en
Publication of CN110571887A publication Critical patent/CN110571887A/en
Application granted granted Critical
Publication of CN110571887B publication Critical patent/CN110571887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/396Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The application discloses a battery selection method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring parameter information of each battery; acquiring environment information of an environment where the electronic equipment is located; determining a target battery from the plurality of batteries according to the parameter information, or determining a target battery from the plurality of batteries according to the parameter information and the environment information; and utilizing the target battery to supply power to the electronic equipment or charge the target battery. The service life difference between the batteries can be reduced, so that the phenomenon that the plurality of batteries cannot supply power for the electronic equipment cannot occur too early.

Description

Battery selection method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for selecting a battery, a storage medium, and an electronic device.
Background
With the continuous development of electronic technology, electronic devices such as smart phones or tablet computers gradually replace traditional fixed phones. These electronic devices typically use batteries as their power supply. In order to smoothly supply power to the electronic device, a plurality of batteries may be provided in the electronic device.
At present, when an electronic device is powered by a plurality of batteries, because the plurality of batteries are usually arranged in the electronic device in a series connection manner, when the service life of a certain battery is zero, the plurality of batteries cannot supply power to the electronic device. However, due to the electronic device itself, the life difference between the batteries is usually increased, that is, the life of a certain battery is shortened, so that the phenomenon that a plurality of batteries cannot supply power to the electronic device is caused to occur too early.
Disclosure of Invention
The embodiment of the application provides a battery selection method and device, a storage medium and electronic equipment, which can reduce the service life difference between batteries, so that the phenomenon that a plurality of batteries cannot supply power to the electronic equipment cannot occur too early.
The embodiment of the application provides a battery selection method, which is applied to electronic equipment, wherein the electronic equipment comprises a plurality of batteries and comprises the following steps:
acquiring parameter information of each battery;
acquiring environment information of an environment where the electronic equipment is located;
determining a target battery from the plurality of batteries according to the parameter information, or determining a target battery from the plurality of batteries according to the parameter information and the environment information;
and utilizing the target battery to supply power to the electronic equipment or charge the target battery.
The embodiment of the application provides a selection device of battery, is applied to electronic equipment, electronic equipment includes a plurality of batteries, includes:
the first acquisition module is used for acquiring parameter information of each battery;
the second acquisition module is used for acquiring the environmental information of the environment where the electronic equipment is located;
a determining module, configured to determine a target battery from the multiple batteries according to the parameter information, or determine a target battery from the multiple batteries according to the parameter information and the environment information;
and the charge-discharge module is used for supplying power to the electronic equipment or charging the target battery by utilizing the target battery.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the battery selection method provided in the embodiment of the present application.
The embodiment of the present application further provides an electronic device, which includes a plurality of batteries, a memory, and a processor, where the processor is configured to execute the procedure in the battery selection method provided in the embodiment of the present application by calling the computer program stored in the memory.
In the embodiment of the application, the electronic device may determine the target battery from the plurality of batteries according to the parameter information of each battery; or determining a target battery from the plurality of batteries according to the parameter information of each battery and the environment information of the environment where the electronic equipment is located, and supplying power to the electronic equipment or charging the target battery by using the target battery. In the embodiment of the application, when the target battery is determined, one battery is not randomly determined from the multiple batteries as the target battery, but the target battery is determined according to the parameter information of each battery or by combining the parameter information of each battery and the environment information of the environment where the electronic device is located, so that the situations that the electronic device is powered by the same battery or the same battery is charged are less likely to occur, the service life difference between the batteries can be reduced, and the phenomenon that the multiple batteries cannot supply power to the electronic device is prevented from occurring too early.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flow chart of a battery selection method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of a battery selecting method according to an embodiment of the present disclosure.
Fig. 3 is a third flowchart illustrating a battery selecting method according to an embodiment of the present disclosure.
Fig. 4 is a fourth flowchart illustrating a battery selecting method according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a selection device for a battery according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a method for selecting a battery according to an embodiment of the present disclosure, where the method for selecting a battery is applicable to an electronic device, the electronic device may include a plurality of batteries, and the process may include:
101. and acquiring parameter information of each battery.
For example, the electronic device may obtain parameter information of each battery. Wherein the parameter information may include: historical charge and discharge times, maximum charge and discharge times, heat resistance grade, residual capacity or discharge depth and the like. The battery can be a lithium battery, a nickel-metal hydride battery or a graphene battery and the like.
Where it is assumed that the battery charge is expressed in percentage. When the battery capacity goes through the process from 0% to 100% and from 100% to 0% at a time, it is considered to be charged and discharged at a time.
In other embodiments, when the battery is charged 100% and discharged 100% in total, it can be regarded as one charge and discharge. For example, assuming that the current charge of the battery is 30%, the battery is charged so that the battery charge reaches 70%. The cell was then discharged, reducing the cell charge to 30%. The battery is then recharged such that the battery charge rises to 90%. And discharging the battery to reduce the electric quantity of the battery to 30%, wherein the whole process can be regarded as one-time charging and discharging.
In the embodiment of the present application, in practical applications, the historical charge and discharge times are increased once every time the battery undergoes the charge and discharge process described above. The maximum charge and discharge times can be written into a management chip of the battery by a tester after testing in the production and manufacturing process of the battery.
The heat resistance grade is an index for evaluating the heat resistance of a battery. The higher the heat resistance grade of the battery, the stronger the heat resistance of the battery. Namely, the battery with higher heat resistance grade can adapt to high temperature environment.
The depth of discharge is an indication of the remaining capacity of the battery. The lower the discharge depth is, the higher the battery residual capacity is; the higher the depth of discharge, the lower the battery remaining capacity.
102. The method includes acquiring environment information of an environment where the electronic device is located.
For example, the electronic device may obtain environmental information of an environment in which the electronic device is located. Wherein, the environment information may include: temperature or humidity, etc.
For example, a temperature sensor and a humidity sensor may be provided in the electronic device in advance, so that the electronic device may acquire the temperature of the environment where the electronic device is located by using the temperature sensor; or the electronic device can acquire the humidity of the environment in which the electronic device is located by using the humidity sensor.
103. And determining the target battery from the plurality of batteries according to the parameter information, or determining the target battery from the plurality of batteries according to the parameter information and the environment information.
For example, after acquiring the parameter information, the electronic device may determine the target battery from the plurality of batteries according to the parameter information.
For example, the parameter information may include a remaining power amount. The electronic device may determine, as the target battery, a battery having a largest remaining capacity among the plurality of batteries according to the remaining capacities of the plurality of batteries.
For another example, after acquiring the parameter information and the environment information, the electronic device may further determine the target battery from the plurality of batteries according to the parameter information and the environment information.
For example, the parameter information may include a heat resistance level. The environmental information may include temperature. When the temperature is greater than the preset temperature, the electronic device may determine a battery having the highest heat resistance level among the plurality of batteries as the target battery. The preset temperature can also be set according to actual conditions. For example, the preset temperature may be 30 ℃, 35 ℃, and the like.
104. And utilizing the target battery to supply power to the electronic equipment or charge the target battery.
For example, after determining the target battery from the plurality of batteries, the electronic device may use the target battery to power the electronic device or charge the target battery.
For example, after determining the target battery, the electronic device may detect whether an adapter is inserted. When the adapter is plugged in, the electronic equipment can charge the target battery. When no adapter is inserted, the electronic device can utilize the target battery to power the electronic device.
In the embodiment of the application, the electronic device may determine the target battery from the plurality of batteries according to the parameter information of the plurality of batteries; or determining a target battery from the multiple batteries according to the parameter information of the multiple batteries and the environment information of the environment where the electronic equipment is located, and supplying power to the electronic equipment or charging the target battery by using the target battery. In the embodiment of the application, when the target battery is determined, one battery is not randomly determined from the multiple batteries as the target battery, but the target battery is determined by combining the parameter information of each battery and the environment information of the environment where the electronic equipment is located, so that the situation that the electronic equipment is frequently powered by the same battery or the same battery is charged is less, the service life difference between the batteries can be reduced, and the phenomenon that the multiple batteries cannot supply power to the electronic equipment cannot occur too early.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a second flow of a battery selection method according to an embodiment of the present application, where the battery selection method is applicable to an electronic device, the electronic device may include a plurality of batteries, and the flow may include:
201. the electronic equipment acquires the maximum charging and discharging times and the historical charging and discharging times of each battery.
In the embodiment of the application, when a target battery needs to be selected from a plurality of batteries, the electronic device may obtain the maximum charge and discharge times and the historical charge and discharge times of each battery. The maximum charge and discharge times and the historical charge and discharge times of the battery belong to parameter information of the battery.
When a battery is manufactured, the maximum charge and discharge times of the battery are usually calculated in real time, that is, the maximum number of times that the battery can be charged and discharged is calculated in real time. After the maximum charge and discharge times of the battery are obtained through calculation, the input maximum charge and discharge times can be directly set in a management chip of the battery. When the maximum charging and discharging times of the battery need to be acquired, the electronic device can acquire the maximum charging and discharging times of the battery from a management chip of the battery.
In some embodiments, the maximum number of charge and discharge times of the battery may be calculated in real time in the following manner.
Experiments show that the service life of the battery is 5 years at 0 ℃, 10 years at 20 ℃, 5 years at 40 ℃, and the optimal service temperature of the mobile phone battery is 20 degrees. For each electronic device, it can be assumed that the real-time lifetime of the mobile phone is calculated to be 6.25 years and the decay lifetime is 0.6 years within one year when 40% of the days of the electronic device are at 0 ℃, 40% of the days are at 20 ℃, and 20% of the days are at 40 ℃ in one year. Wherein, the service life can be changed into the maximum charge and discharge times. In some embodiments, the maximum number of charge and discharge times is 6.25 x 365 x 2.
Where it is assumed that the battery charge is expressed in percentage. When the battery capacity goes through the process from 0% to 100% and from 100% to 0% at a time, it is considered to be charged and discharged at a time.
In some embodiments, when the battery is charged 100% and discharged 100% in total, it is considered to be charged and discharged once. For example, assuming that the current charge of the battery is 30%, the battery is charged so that the battery charge reaches 70%. The cell was then discharged, reducing the cell charge to 30%. The battery is then recharged such that the battery charge rises to 90%. And discharging the battery to reduce the electric quantity of the battery to 30%, wherein the whole process can be regarded as one-time charging and discharging.
In the embodiment of the present application, in practical applications, the historical charge and discharge times are increased once every time the battery undergoes the charge and discharge process described above.
202. The electronic device determines a target battery from the plurality of batteries according to the maximum charge and discharge frequency and the historical charge and discharge frequency.
For example, after obtaining the maximum charge/discharge frequency and the historical charge/discharge frequency of each battery, the electronic device may determine the target battery from the plurality of batteries according to the maximum charge/discharge frequency and the historical charge/discharge frequency of each battery.
In some embodiments, the electronic device may determine, as the target battery, a battery corresponding to a battery of the plurality of batteries whose historical charge/discharge frequency is least close to the maximum charge/discharge frequency. For example, the electronic device may determine a difference between the historical charge and discharge frequency and the maximum charge and discharge frequency of each battery, and determine the battery corresponding to the maximum difference as the target battery.
For example, assume that there are batteries C1, C2, C3, and C4. The maximum charge and discharge frequency of the battery C1 is 2100, and the historical charge and discharge frequency is 1000; the maximum charge-discharge frequency of the battery C2 is 2000, and the historical charge-discharge frequency is 980; the maximum charge-discharge frequency of the battery C3 is 2300, and the historical charge-discharge frequency is 1201; the maximum number of charge/discharge times of battery C4 was 1900, and the historical number of charge/discharge times was 900. Then, the difference between the maximum charge-discharge number of the battery C1 and the historical charge-discharge number is 1100; the difference between the maximum charge-discharge frequency of the battery C2 and the historical charge-discharge frequency is 1020; the difference between the maximum charge-discharge frequency of the battery C3 and the historical charge-discharge frequency is 1099; the difference between the maximum charge and discharge number of the battery C4 and the historical charge and discharge number was 1000, and thus it was found that the electronic device could determine the battery C1 as the target battery.
203. The electronic device utilizes the target battery to power the electronic device or to charge the target battery.
For example, after the target battery is determined from the plurality of batteries, the electronic device may use the target battery to power the electronic device or charge the target battery.
For example, after determining the target battery, the electronic device detects whether an adapter is inserted. When the adapter is plugged in, the electronic equipment can charge the target battery. When no adapter is inserted, the electronic device can be charged with the target battery.
In some embodiments, after determining the target battery, the electronic device may further obtain a remaining capacity of the target battery. Then, the electronic device detects whether the remaining power is greater than a preset power. If the residual electric quantity is larger than the preset electric quantity, whether a power supply battery which supplies power for the electronic equipment at present and the target battery are the same battery or not is detected. If the power supply battery for supplying power to the electronic equipment and the target battery are the same battery, no processing is performed. And if the power supply battery for supplying power to the electronic equipment currently is not the same as the target battery, switching the battery for supplying power to the electronic equipment currently to the target battery. If the remaining capacity is less than or equal to the predetermined capacity, the target battery may be charged. Wherein, predetermine the electric quantity and can set up according to actual conditions. For example, the preset amount of power may be 20%, 40%, 60%, or the like.
In some embodiments, flow 202 may include:
the electronic equipment multiplies the maximum charging and discharging times of each battery by a preset value to obtain the target charging and discharging times of each battery;
when the target charging and discharging times of only one battery in the batteries are larger than the historical charging and discharging times, the electronic equipment determines the battery corresponding to the target charging and discharging times larger than the historical charging and discharging times as the target battery.
The preset value can be set according to actual conditions. For example, the preset value may be 0.7, 0.75, or 0.8, etc.
Assume, for example, that the preset value is 0.7, the batteries C1, C2, C3 and C4. The maximum charge and discharge frequency of the battery C1 is 2100, and the historical charge and discharge frequency is 1700; the maximum charge-discharge frequency of the battery C2 is 2000, and the historical charge-discharge frequency is 1300; the maximum charge and discharge frequency of the battery C3 is 2300, and the historical charge and discharge frequency is 1800; the maximum number of charge/discharge times of battery C4 was 1900, and the historical number of charge/discharge times was 1400. The electronic device may obtain a target charge/discharge frequency of 1470 for battery C1 from maximum charge/discharge frequency 2100 × 0.7 of battery C1; the electronic device may obtain the target charge-discharge frequency of battery C2 as 1400 from the maximum charge-discharge frequency of battery C2 of 2000 × 0.7; the electronic device may obtain a target charge/discharge frequency of 1610 for battery C3 from maximum charge/discharge frequency 2300 × 0.7 of battery C3; the electronic device may obtain a target number of charge and discharge of 1330 for the battery C4 from the maximum number of charge and discharge of 1900 × 0.7 for the battery C4.
As can be seen from the above, the target charge-discharge frequency of the battery C1 was smaller than the historical charge-discharge frequency; the target charge-discharge number of times of the battery C2 is greater than the historical charge-discharge number of times; the target number of charge and discharge of battery C3 is smaller than the historical number of playback charges; the target charge-discharge number of times of battery C4 is smaller than the historical charge-discharge number of times. Thus, it is known that the target charge and discharge number of only the battery C2 out of the batteries C1, C2, C3, and C4 is larger than the historical charge and discharge number, and therefore, the electronic apparatus can determine the battery C2 as the target battery.
In some embodiments, the parameter information may include remaining power, and when the target charge and discharge times of at least two batteries in each battery are greater than the historical charge and discharge times, the method for selecting the battery may further include:
when the residual electric quantity of only one battery in the at least two batteries is larger than the preset electric quantity, the electronic equipment determines the battery corresponding to the residual electric quantity larger than the preset electric quantity as a target battery;
when the residual electric quantity of at least two batteries in the at least two batteries is larger than the preset electric quantity, the electronic equipment determines the battery with the maximum residual electric quantity in the at least two batteries as a target battery;
the electronic device utilizes the target battery to power the electronic device.
Assume, for example, that the preset value is 0.7, the batteries C1, C2, C3 and C4. The maximum charge-discharge frequency of the battery C1 is 2100, and the historical charge-discharge frequency is 1400; the maximum charge-discharge frequency of the battery C2 is 2000, and the historical charge-discharge frequency is 1300; the maximum charge and discharge frequency of the battery C3 is 2300, and the historical charge and discharge frequency is 1800; the maximum number of charge/discharge times of the battery C4 was 1900, and the historical number of charge/discharge times was 1300. The electronic device may obtain a target charge/discharge frequency of 1470 for battery C1 from maximum charge/discharge frequency 2100 × 0.7 of battery C1; the electronic device may obtain the target charge-discharge frequency of battery C2 as 1400 from the maximum charge-discharge frequency of battery C2 of 2000 × 0.7; the electronic device may obtain a target charge/discharge frequency of 1610 for battery C3 from maximum charge/discharge frequency 2300 × 0.7 of battery C3; the electronic device may obtain a target number of charge and discharge of 1330 for the battery C4 from the maximum number of charge and discharge of 1900 × 0.7 for the battery C4.
As can be seen from the above, the target charge-discharge frequency of the battery C1 is greater than the historical charge-discharge frequency; the target charge-discharge number of times of the battery C2 is greater than the historical charge-discharge number of times; the target number of charge and discharge of battery C3 is smaller than the historical number of playback charges; the target number of charge and discharge of battery C4 is greater than the historical number of charge and discharge. Thus, it is known that the target charge and discharge number of the cells C1, C2, and C4 among the cells C1, C2, C3, and C4 is larger than the history charge and discharge number.
For the batteries C1, C2, and C4, the electronic device may further acquire the remaining capacity of the battery C1, the remaining capacity of the battery C2, and the remaining capacity of the battery C4. Then, the electronic device may determine whether the remaining capacity of the battery C1 is greater than a preset capacity, determine whether the remaining capacity of the battery C2 is greater than a preset capacity, and determine whether the remaining capacity of the battery C4 is greater than a preset capacity. Wherein, predetermine the electric quantity and can set up according to actual conditions. For example, the preset amount of power may be 20%, 30%, or 50%, etc. Assuming that the remaining capacity of the battery C1 is 80%, the remaining capacity of the battery C2 is 30%, the remaining capacity of the battery C4 is 20%, and the preset capacity is 30%. It is noted that the remaining capacity of only the battery C1 among the batteries C1, C2, and C4 is greater than the preset capacity, and thus the electronic device may determine the battery C1 as the target battery.
In the embodiment of the present application, it is assumed that the remaining capacity of the battery C1 is 80%, the remaining capacity of the battery C2 is 50%, the remaining capacity of the battery C4 is 30%, and the preset capacity is 30%. It is noted that the remaining capacities of the battery C1 and the battery C2 are both greater than the preset capacity, and therefore, the electronic device can determine the battery with the largest remaining capacity, i.e., the battery C1, as the target battery.
After the target battery is determined, the electronic device may use the target battery to power the electronic device.
In some embodiments, the method for selecting the battery may further include:
when the residual electric quantity of only one battery is less than or equal to the preset electric quantity, the electronic equipment determines the battery corresponding to the residual electric quantity less than or equal to the preset electric quantity as a target battery;
and charging the target battery.
For example, it is assumed that the remaining capacity of the battery C1 is 50%, the remaining capacity of the battery C2 is 30%, and the preset capacity is 30%. It is noted that the remaining capacity of only the battery C2 out of the battery C1 and the battery C2 is equal to the preset capacity, and thus, the electronic apparatus may determine the battery C2 as the target battery.
After determining the target battery, the electronic device may charge the target battery.
In some embodiments, when the remaining capacity of at least two batteries of the at least two batteries is less than or equal to the preset capacity, the electronic device may determine a battery with the least remaining capacity of the at least two batteries as the target battery. The electronic device may then charge the target battery.
For example, it is assumed that the remaining capacity of the battery C1 is 20%, the remaining capacity of the battery C2 is 30%, and the preset capacity is 30%. It is noted that the remaining capacity of the battery C1 is less than the preset capacity, and the remaining capacity of the battery C2 is equal to the preset capacity, so that the electronic device can determine the battery with the least remaining capacity, i.e., the battery C1, as the target battery.
Referring to fig. 3, fig. 3 is a third flowchart illustrating a method for selecting a battery according to an embodiment of the present application, where the method for selecting a battery is applicable to an electronic device, the electronic device may include a plurality of batteries, and the process may include:
301. the electronic equipment acquires parameter information of each battery.
For example, the electronic device may obtain parameter information of each battery. Wherein the parameter information may include: historical charge and discharge times, maximum charge and discharge times, heat resistance grade, cold resistance grade, moisture resistance grade, residual capacity or discharge depth and the like. The battery can be a lithium battery, a nickel-metal hydride battery or a graphene battery and the like.
Where it is assumed that the battery charge is expressed in percentage. When the battery capacity goes through the process from 0% to 100% and from 100% to 0% at a time, it is considered to be charged and discharged at a time.
In some embodiments, when the battery is charged 100% and discharged 100% in total, it is considered to be charged and discharged once. For example, assuming that the current charge of the battery is 30%, the battery is charged so that the battery charge reaches 70%. The cell was then discharged, reducing the cell charge to 30%. The battery is then recharged such that the battery charge rises to 90%. And discharging the battery to reduce the electric quantity of the battery to 30%, wherein the whole process can be regarded as one-time charging and discharging.
In the embodiment of the present application, in practical applications, the historical charge and discharge times are increased once every time the battery undergoes the charge and discharge process described above. The maximum charge and discharge times can be written into a management chip of the battery by a tester after testing in the production and manufacturing process of the battery.
The heat resistance grade is an index for evaluating the heat resistance of a battery. The higher the heat resistance grade of the battery, the stronger the heat resistance of the battery. Namely, the battery with higher heat resistance grade can adapt to high temperature environment. That is, the high temperature environment has less influence on the life of the battery having a higher heat resistance level.
The cold resistance rating is an evaluation index of the cold resistance of the battery. The higher the grade of the cold resistance of the battery, the stronger the cold resistance of the battery. Namely, the battery with higher cold resistance grade can adapt to low-temperature environment better. That is, the low temperature environment has less influence on the life of the battery having a higher level of cold resistance.
The moisture resistance rating is an evaluation index for the moisture resistance of the battery. The higher the moisture resistance rating of the battery, the more moisture resistant the battery. I.e., a cell with a higher moisture resistance rating is more adaptable to higher humidity environments. That is, the higher humidity environment has less impact on the life of a battery with a higher moisture resistance rating.
The depth of discharge is an indication of the remaining capacity of the battery. The lower the discharge depth is, the higher the battery residual capacity is; the higher the depth of discharge, the lower the battery remaining capacity.
302. The electronic device acquires the temperature and/or humidity of the environment in which the electronic device is located.
For example, the electronic device may obtain a temperature and/or humidity of an environment in which the electronic device is located. For example, a temperature sensor and a humidity sensor may be provided in the electronic device in advance, so that the electronic device may acquire the temperature of the environment where the electronic device is located by using the temperature sensor; or the electronic device can acquire the humidity of the environment in which the electronic device is located by using the humidity sensor.
303. The electronic device determines a target battery from the plurality of batteries according to the parameter information and the temperature, or determines the target battery from the plurality of batteries according to the parameter information and the humidity, or determines the target battery from the plurality of batteries according to the parameter information, the temperature and the humidity.
304. The electronic device utilizes the target battery to power the electronic device or to charge the target battery.
For example, the electronic device may determine the target battery from among the respective batteries according to the heat resistance level and the temperature. Or the electronic device may determine the target battery from among the respective batteries based on the moisture resistance level and humidity. Or the electronic device may determine the target battery from among the respective batteries according to the heat resistance level, the moisture resistance level, humidity, and temperature. The electronic device may then utilize the target battery to power the electronic device or to charge the target battery.
In some embodiments, the process 301 may include:
the electronic device acquires the heat resistance grade of each battery, wherein the higher the heat resistance grade is, the stronger the heat resistance is.
The process 303 may include:
the electronic equipment judges whether the temperature is greater than a preset temperature or not;
and if the temperature is higher than the preset temperature, the electronic equipment determines the battery with the highest heat resistance grade in the plurality of batteries as the target battery.
For example, assume that there are batteries C1, C2, C3, and C4. Battery C1 has a first grade heat resistance; battery C2 has a heat resistance rating of two levels; battery C3 has a heat resistance rating of three grades; battery C4 has a heat resistance rating of four. When the temperature is greater than the preset temperature, the electronic device may determine the battery C4 as the target battery. That is, the electronic device may determine the battery with the strongest heat resistance as the target battery when the temperature is high. Compared with other batteries with weak heat resistance, the electronic equipment supplies power to the electronic equipment by using the battery with the strongest heat resistance or charges the battery with the strongest heat resistance, so that the influence of high temperature on the battery is minimized, and the service life of the battery is prolonged. Wherein, the preset temperature can be set according to the actual situation. For example, the preset temperature may be 35 ℃.
In other embodiments, the process 301 may include:
the electronic device acquires a cold resistance level of each battery, wherein the higher the cold resistance level, the stronger the cold resistance.
The process 303 may include:
the electronic equipment judges whether the temperature is lower than a preset temperature or not;
and if the temperature is lower than the preset temperature, the electronic equipment determines the battery with the highest cold resistance grade in the plurality of batteries as the target battery.
For example, assume that there are batteries C1, C2, C3, and C4. Battery C1 has a first grade cold resistance; battery C2 has a cold resistance rating of two levels; the cold resistance rating of cell C3 was three-stage; the cold resistance rating of cell C4 was four. Among them, the higher the grade of cold resistance, the less the battery is affected by low temperature. When the temperature is less than the preset temperature, the electronic device may determine the battery C4 as the target battery. That is, the electronic device may determine the battery with the strongest cold resistance as the target battery when the temperature is low. Compared with other batteries with weak cold resistance, the electronic equipment supplies power to the electronic equipment by using the battery with the strongest cold resistance or charges the battery with the strongest cold resistance, so that the influence of low temperature on the battery is minimized, and the service life of the battery is prolonged. The preset temperature may be set according to actual conditions, for example, the preset temperature may be 10 ℃.
In some embodiments, the process 301 may include:
the electronic device acquires a moisture resistance rating of each battery, wherein the higher the moisture resistance rating, the stronger the moisture resistance.
The process 303 may include:
the electronic equipment judges whether the humidity is greater than the preset humidity or not;
if the humidity is higher than the preset humidity, the electronic device determines the battery with the highest moisture resistance level in the plurality of batteries as the target battery.
For example, assume that there are batteries C1, C2, C3, and C4. Battery C1 has a first grade moisture resistance rating; battery C2 has a moisture resistance rating of two levels; the moisture resistance rating of cell C3 was three-grade; the moisture resistance rating of cell C4 was four-grade. The higher the moisture resistance level, the higher the battery capacity to ambient humidity, i.e., the higher the moisture resistance level, the higher the ambient humidity can be tolerated. When the humidity is greater than the preset humidity, the electronic apparatus may determine the battery C4 as the target battery. That is, the electronic apparatus can determine the battery with the strongest moisture resistance as the target battery when the humidity is high. Compared with other batteries with weak moisture resistance, the electronic equipment utilizes the battery with the strongest moisture resistance to supply power to the electronic equipment or charge the battery with the strongest moisture resistance, so that the influence of high humidity on the battery is minimized, and the service life of the battery is prolonged. Wherein, the preset humidity can be set according to actual conditions. For example, the preset humidity may be 75% RH.
In other embodiments, the process 301 may include:
the electronic device acquires a heat resistance grade and a moisture resistance grade of each battery, wherein the higher the heat resistance grade is, the stronger the heat resistance is, and the higher the moisture resistance grade is, the stronger the moisture resistance is.
The process 303 may include:
the electronic equipment judges whether the temperature is higher than a preset temperature and the humidity is higher than a preset humidity;
if the temperature is higher than the preset temperature and the humidity is higher than the preset humidity, the electronic device determines the battery with the highest heat resistance level and the highest humidity resistance level in the plurality of batteries as the target battery.
For example, assume that there are batteries C1, C2, C3, and C4. The battery C1 was rated one grade for heat resistance and one grade for moisture resistance; battery C2 has a second grade heat resistance rating and a second grade moisture resistance rating; the heat resistance grade of the battery C3 is three grades, and the moisture resistance grade is three grades; the battery C4 was rated four degrees in heat resistance and four degrees in moisture resistance. When the temperature is greater than a preset temperature (e.g., 35 deg.c) and the humidity is greater than a preset humidity (e.g., 75% RH), the electronic device may determine the battery C4 as the target battery. That is, the electronic apparatus can determine the battery having the strongest heat resistance and moisture resistance as the target battery when both the temperature and the humidity are high. Compared with other batteries with weak heat resistance and moisture resistance, the electronic equipment supplies power to the electronic equipment by using the battery with the strongest heat resistance and moisture resistance or charges the battery with the strongest heat resistance and moisture resistance, so that the influence of high temperature and high humidity on the battery is minimized, and the service life of the battery is prolonged.
Referring to fig. 4, fig. 4 is a fourth flowchart illustrating a method for selecting a battery according to an embodiment of the present disclosure, where the method for selecting a battery is applicable to an electronic device, the electronic device may include a plurality of batteries, and the process may include:
401. the electronic equipment acquires parameter information of each battery.
For example, the electronic device may obtain parameter information of each battery. Wherein the parameter information may include: historical charge and discharge times, maximum charge and discharge times, heat resistance grade, residual capacity or discharge depth and the like. The battery can be a lithium battery, a nickel-metal hydride battery or a graphene battery and the like.
402. The electronic equipment acquires environment information of the environment where the electronic equipment is located.
For example, the electronic device may obtain environmental information of an environment in which the electronic device is located. Wherein, the environment information may include: temperature or humidity, etc.
For example, a temperature sensor and a humidity sensor may be provided in the electronic device in advance, so that the electronic device may acquire the temperature of the environment where the electronic device is located by using the temperature sensor; or the electronic device can acquire the humidity of the environment in which the electronic device is located by using the humidity sensor.
403. The electronic equipment acquires a first position where the electronic equipment is located currently.
For example, the electronic device may use GPS, WIFI, or a base station to perform positioning to obtain the current location.
404. When the first location matches a second location in a set of locations, the electronic device determines a dwell time corresponding to the first location, the set of locations including a plurality of different locations and their corresponding dwell times.
In embodiments of the present application, an electronic device may predetermine a set of locations. For example, when the temperature of the environment currently located is detected to be greater than a first preset temperature, the electronic device may start timing, and when the temperature of the environment currently located is detected to be less than or equal to the first preset temperature, the electronic device may stop timing, so as to obtain the timing time. The electronic device may determine the timing time as a dwell time. Meanwhile, when the temperature of the current environment is detected to be higher than the first preset temperature, the electronic device can be positioned by adopting WIFI and the like so as to obtain the approximate geographical position of the electronic device in the environment with the temperature higher than the first preset temperature. The electronic device may then bind and store the dwell time with the location. Wherein, the first preset temperature can be 30 ℃, 37 ℃ or 40 ℃ and the like.
Or, when the temperature of the current environment is detected to be lower than the second preset temperature, the electronic device may start timing, and when the temperature of the current environment is detected to be higher than or equal to the second preset temperature, the electronic device may stop timing, so as to obtain the timing time. The electronic device may determine the timing time as a dwell time. Meanwhile, when the temperature of the current environment is detected to be lower than the second preset temperature, the electronic device can be positioned by adopting WIFI and the like so as to obtain the approximate geographical position of the electronic device in the environment with the temperature lower than the second preset temperature. The electronic device may then bind and store the dwell time with the location. Wherein the first predetermined temperature may be 7 ℃, 0 ℃ or-10 ℃, etc.
Or, when the humidity of the current environment is detected to be greater than the preset humidity, the electronic device may start timing, and when the humidity of the current environment is detected to be less than or equal to the preset humidity, the electronic device may stop timing, so as to obtain the timing time. The electronic device may determine the timing time as a dwell time. Meanwhile, when the humidity of the current environment is detected to be higher than the preset humidity, the electronic equipment can be positioned by adopting WIFI and the like so as to acquire the approximate geographical position of the electronic equipment in the environment with the humidity higher than the preset humidity. The electronic device may then bind and store the dwell time with the location. Wherein the preset humidity can be 75% RH or 80% RH, etc.
Subsequently, the electronic device may determine a location set according to the locations acquired by the above process and the corresponding stay time. That is, the location set may include a plurality of different locations and their corresponding dwell times, where the location is at least one of a location in an environment having a temperature greater than a first preset temperature (i.e., a high temperature environment), a location in an environment having a temperature less than a second preset temperature (i.e., a low temperature environment), and a location in an environment having a humidity greater than a preset humidity (i.e., a high humidity environment).
In other embodiments, the electronic device may also obtain the locations stored by the electronic device over a past period of time, such as over the past three months. As apparent from the above description, the location where the electronic device is stored may be at least one of a location in a high-temperature environment, a location in a low-temperature environment, and a location in a high-humidity environment. The electronic device may then aggregate the same locations to determine the number of same locations. Then, the electronic device may determine the number of positions exceeding the preset number as the target position. When a certain position is the same as another position and the difference value between the stay time corresponding to the certain position and the stay time corresponding to the another position is smaller than a preset value, the position and the another position are the same. The preset value may be 30 seconds, 1 minute, or 5 minutes, etc. The preset number can be determined according to actual conditions, for example, the preset number can be 4, 5 or 6, and the like. For example, assuming that the preset number is 4, the electronic device determines that there are 5 positions a and 10 positions B. The electronic device may determine location a and location B as the target locations. The electronic device may then determine a set of locations from location a and its corresponding dwell time and location B and its corresponding dwell time. The dwell time corresponding to the position a in the position set may be the dwell time corresponding to any one of the 5 identical positions a. The dwell time for position B in the set of positions may be the dwell time for any one of 10 identical positions B. That is, the location set may include a plurality of different locations, location a and location B, and their corresponding dwell times.
After acquiring the current first location, the electronic device may detect whether a second location matching the first location exists in the location set. If there is a second location in the set of locations that matches the first location, it indicates that the electronic device may currently be in a high temperature environment, a low temperature environment, or a high humidity environment. The electronic device may obtain the dwell time corresponding to the second location, and determine the dwell time as the dwell time corresponding to the first location.
405. And when the retention time is longer than the preset time, the electronic equipment determines a target battery from the plurality of batteries according to the parameter information and the environment information.
It can be understood that, if the stay time is longer than the preset time, it indicates that the electronic device will stay in a high-temperature environment, a low-temperature environment, or a high-humidity environment for a longer time, and in order to reduce the influence of the high-temperature environment, the low-temperature environment, or the high-humidity environment on the battery, the electronic device may comprehensively consider the parameter information and the environment information when determining the target battery. When the staying time is longer than the preset time, the electronic equipment determines the target battery from the plurality of batteries according to the parameter information and the environment information. Wherein, the preset time can be set according to the actual situation. For example, the preset time may be 10 minutes, 15 minutes, or the like.
406. And when the retention time is less than or equal to the preset time, the electronic equipment determines a target battery from the plurality of batteries according to the parameter information.
It is understood that the stay time is less than or equal to the preset time, which means that the stay time of the electronic device in the high temperature environment, the low temperature environment or the high humidity environment is short, and thus the influence on the battery is not great. At this time, in order to quickly determine the target battery. The electronic device may determine the target battery from the plurality of batteries based only on the parameter information.
407. The electronic device utilizes the target battery to power the electronic device or to charge the target battery.
For example, after the target battery is determined from the plurality of batteries, the electronic device may use the target battery to power the electronic device or charge the target battery.
For example, after determining the target battery, the electronic device detects whether an adapter is inserted. When the adapter is plugged in, the electronic equipment can charge the target battery. When no adapter is inserted, the electronic device can be charged with the target battery.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a device for selecting a battery according to an embodiment of the present disclosure. The battery selecting device can be applied to electronic equipment, the electronic equipment can comprise a plurality of batteries, and the battery selecting device comprises: the charging and discharging system comprises a first obtaining module 501, a second obtaining module 502, a determining module 503 and a charging and discharging module 504.
A first obtaining module 501, configured to obtain parameter information of each battery.
A second obtaining module 502, configured to obtain environment information of an environment where the electronic device is located.
A determining module 503, configured to determine a target battery from the multiple batteries according to the parameter information, or determine a target battery from the multiple batteries according to the parameter information and the environment information.
A charge-discharge module 504, configured to supply power to the electronic device or charge the target battery by using the target battery.
In some embodiments, the first obtaining module 501 may be configured to: acquiring the maximum charging and discharging times and the historical charging and discharging times of each battery;
the determining module 503 may be configured to: and determining a target battery from the plurality of batteries according to the maximum charging and discharging times and the historical charging and discharging times.
In some embodiments, the determining module 503 may be configured to: multiplying the maximum charge-discharge times of each battery by a preset value to obtain target charge-discharge times of each battery; and when the target charging and discharging times of only one battery in the plurality of batteries are greater than the historical charging and discharging times, determining the battery corresponding to the target charging and discharging times greater than the historical charging and discharging times as the target battery.
In some embodiments, the parameter information includes a remaining power, and when the target charge/discharge times of at least two of the plurality of batteries is greater than the historical charge/discharge times, the determining module 503 may be configured to: when the residual electric quantity of only one battery in the at least two batteries is larger than the preset electric quantity, determining the battery corresponding to the residual electric quantity larger than the preset electric quantity as a target battery; when the residual electric quantity of at least two batteries in the at least two batteries is larger than the preset electric quantity, determining the battery with the maximum residual electric quantity in the at least two batteries as a target battery; and utilizing the target battery to supply power to the electronic equipment.
In some embodiments, the determining module 503 may be configured to: when the residual electric quantity of only one battery in the at least two batteries is smaller than or equal to the preset electric quantity, determining the battery corresponding to the residual electric quantity smaller than or equal to the preset electric quantity as a target battery; and charging the target battery.
In some embodiments, the second obtaining module 502 may be configured to: acquiring the temperature and/or humidity of the environment where the electronic equipment is located;
the determining module 503 may be configured to: determining a target battery from the plurality of batteries according to the parameter information and the temperature, or determining a target battery from the plurality of batteries according to the parameter information and the humidity, or determining a target battery from the plurality of batteries according to the parameter information, the temperature and the humidity.
In some embodiments, the first obtaining module 501 may be configured to: acquiring the heat resistance grade of each battery, wherein the higher the heat resistance grade is, the stronger the heat resistance is;
the determining module 503 may be configured to: judging whether the temperature is greater than a preset temperature or not; and if the temperature is higher than the preset temperature, determining the battery with the highest heat resistance grade in the plurality of batteries as the target battery.
In some embodiments, the determining module 503 may be configured to: acquiring a current first position; when the first position is matched with a second position in a position set, determining the dwell time corresponding to the first position, wherein the position set comprises a plurality of different positions and the dwell times corresponding to the different positions; when the staying time is longer than the preset time, determining a target battery from the plurality of batteries according to the parameter information and the environment information; and when the retention time is less than or equal to the preset time, determining a target battery from the plurality of batteries according to the parameter information.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the procedures in the battery selection method provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a plurality of batteries, a memory, and a processor, where the processor is configured to execute the procedure in the battery selection method provided in this embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 600 may include components such as a memory 601, a processor 602, a battery 603, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 601 may be used to store applications and data. The memory 601 stores applications containing executable code. The application programs may constitute various functional modules. The processor 602 executes various functional applications and data processing by running application programs stored in the memory 601.
The processor 602 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 601 and calling the data stored in the memory 601, thereby performing overall monitoring of the electronic device.
Battery 603 may be used to power the electronic device.
In this embodiment, the processor 602 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 601 according to the following instructions, and the processor 602 runs the application programs stored in the memory 601, thereby implementing the following processes:
acquiring parameter information of each battery;
acquiring environment information of an environment where the electronic equipment is located;
determining a target battery from the plurality of batteries according to the parameter information, or determining a target battery from the plurality of batteries according to the parameter information and the environment information;
and utilizing the target battery to supply power to the electronic equipment or charge the target battery.
Referring to fig. 7, an electronic device 700 may include a memory 701, a processor 702, a battery 703, an input unit 704, an output unit 705, a display screen 706, and the like.
Memory 701 may be used for storing applications and data. The memory 701 stores an application program containing executable code. The application programs may constitute various functional modules. The processor 702 executes various functional applications and data processing by running an application program stored in the memory 701.
The processor 702 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 701 and calling data stored in the memory 701, thereby integrally monitoring the electronic device.
The battery 703 may be used to power the electronic device.
The input unit 704 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The output unit 705 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
The display screen 706 may be used to display text, pictures, etc.
In this embodiment, the processor 702 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 701 according to the following instructions, and the processor 702 runs the application programs stored in the memory 701, thereby implementing the following processes:
acquiring parameter information of each battery;
acquiring environment information of an environment where the electronic equipment is located;
determining a target battery from the plurality of batteries according to the parameter information, or determining a target battery from the plurality of batteries according to the parameter information and the environment information;
and utilizing the target battery to supply power to the electronic equipment or charge the target battery.
In some embodiments, the processor 702, when executing the acquiring of the parameter information of each battery, may execute: acquiring the maximum charging and discharging times and the historical charging and discharging times of each battery; the processor 702, when executing the determining of the target battery from the plurality of batteries according to the parameter information, may execute: and determining a target battery from the plurality of batteries according to the maximum charging and discharging times and the historical charging and discharging times.
In some embodiments, when the processor 702 executes the determining of the target battery from the plurality of batteries according to the maximum charge and discharge number and the historical charge and discharge number, the following steps may be executed: multiplying the maximum charge-discharge times of each battery by a preset value to obtain target charge-discharge times of each battery; and when the target charging and discharging times of only one battery in the plurality of batteries are greater than the historical charging and discharging times, determining the battery corresponding to the target charging and discharging times greater than the historical charging and discharging times as the target battery.
In some embodiments, the parameter information includes remaining power, and when the target charge/discharge number of at least two of the plurality of batteries is greater than the historical charge/discharge number, the processor 702 may further perform: when the residual electric quantity of only one battery in the at least two batteries is larger than the preset electric quantity, determining the battery corresponding to the residual electric quantity larger than the preset electric quantity as a target battery; when the residual electric quantity of at least two batteries in the at least two batteries is larger than the preset electric quantity, determining the battery with the maximum residual electric quantity in the at least two batteries as a target battery; and utilizing the target battery to supply power to the electronic equipment.
In some implementations, the processor 702 can also perform: when the residual electric quantity of only one battery in the at least two batteries is smaller than or equal to the preset electric quantity, determining the battery corresponding to the residual electric quantity smaller than or equal to the preset electric quantity as a target battery; and charging the target battery.
In some embodiments, the processor 702, when executing the acquiring of the environment information of the environment where the electronic device is located, may execute: acquiring the temperature and/or humidity of the environment where the electronic equipment is located; the processor 702 may execute, when determining the target battery from the plurality of batteries according to the parameter information and the environment information, the following steps: determining a target battery from the plurality of batteries according to the parameter information and the temperature, or determining a target battery from the plurality of batteries according to the parameter information and the humidity, or determining a target battery from the plurality of batteries according to the parameter information, the temperature and the humidity.
In some embodiments, the processor 702, when executing the acquiring of the parameter information of each battery, may execute: acquiring the heat resistance grade of each battery, wherein the higher the heat resistance grade is, the stronger the heat resistance is; the processor 702 may perform the following when determining the target battery from the plurality of batteries according to the parameter information and the temperature: judging whether the temperature is greater than a preset temperature or not; and if the temperature is higher than the preset temperature, determining the battery with the highest heat resistance grade in the plurality of batteries as the target battery.
In some implementations, the processor 702 can also perform: acquiring a current first position; when the first position is matched with a second position in a position set, determining the dwell time corresponding to the first position, wherein the position set comprises a plurality of different positions and the dwell times corresponding to the different positions; when the staying time is longer than the preset time, determining a target battery from the plurality of batteries according to the parameter information and the environment information; and when the retention time is less than or equal to the preset time, determining a target battery from the plurality of batteries according to the parameter information.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and a part which is not described in detail in a certain embodiment may refer to the above detailed description of the selection method for the battery, and is not described herein again.
The battery selection device provided in the embodiment of the present application and the battery selection method in the above embodiments belong to the same concept, and any one of the methods provided in the battery selection method embodiments may be operated on the battery selection device, and the specific implementation process thereof is described in detail in the battery selection method embodiment, and is not described herein again.
It should be noted that, for the method for selecting a battery described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the method for selecting a battery described in the embodiment of the present application may be implemented by controlling the relevant hardware through a computer program, where the computer program may be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution, the process may include the process of the embodiment of the method for selecting a battery described in the embodiment of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the selection device of the battery in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a form of hardware or a form of a software functional module. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a method, an apparatus, a storage medium, and an electronic device for selecting a battery provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for selecting batteries is applied to electronic equipment, the electronic equipment comprises a plurality of batteries, and the method is characterized by comprising the following steps:
acquiring parameter information of each battery;
acquiring environment information of an environment where the electronic equipment is located;
acquiring a current first position;
when the first position is matched with a second position in a position set, determining the residence time corresponding to the first position, wherein the position set comprises a plurality of different positions and the residence times corresponding to the different positions, and the position is at least one of a position in an environment with a temperature greater than a first preset temperature, a position in an environment with a temperature less than a second preset temperature and a position in an environment with a humidity greater than a preset humidity, which are counted in a historical time period;
when the staying time is less than or equal to the preset time, determining a target battery from the plurality of batteries according to the parameter information;
when the staying time is longer than the preset time, determining a target battery from the plurality of batteries according to the parameter information and the environment information;
and utilizing the target battery to supply power to the electronic equipment or charge the target battery.
2. The method for selecting batteries according to claim 1, wherein the obtaining parameter information of each battery comprises:
acquiring the maximum charging and discharging times and the historical charging and discharging times of each battery;
the determining a target battery from the plurality of batteries according to the parameter information includes:
and determining a target battery from the plurality of batteries according to the maximum charging and discharging times and the historical charging and discharging times.
3. The method for selecting the battery according to claim 2, wherein the determining the target battery from the plurality of batteries according to the maximum charge and discharge number and the historical charge and discharge number comprises:
multiplying the maximum charge-discharge times of each battery by a preset value to obtain target charge-discharge times of each battery;
and when the target charging and discharging times of only one battery in the plurality of batteries are greater than the historical charging and discharging times, determining the battery corresponding to the target charging and discharging times greater than the historical charging and discharging times as the target battery.
4. The method for selecting a battery according to claim 3, wherein the parameter information includes a remaining capacity, and when the target charge/discharge number of at least two of the plurality of batteries is greater than the historical charge/discharge number, the method further includes:
when the residual electric quantity of only one battery in the at least two batteries is larger than the preset electric quantity, determining the battery corresponding to the residual electric quantity larger than the preset electric quantity as a target battery;
when the residual electric quantity of at least two batteries in the at least two batteries is larger than the preset electric quantity, determining the battery with the maximum residual electric quantity in the at least two batteries as a target battery;
and utilizing the target battery to supply power to the electronic equipment.
5. The method for selecting the battery according to claim 4, wherein the method further comprises:
when the residual electric quantity of only one battery in the at least two batteries is smaller than or equal to the preset electric quantity, determining the battery corresponding to the residual electric quantity smaller than or equal to the preset electric quantity as a target battery;
and charging the target battery.
6. The method for selecting the battery according to claim 1, wherein the obtaining environmental information of an environment in which the electronic device is located includes:
acquiring the temperature and/or humidity of the environment where the electronic equipment is located;
the determining a target battery from the plurality of batteries according to the parameter information and the environment information includes:
determining a target battery from the plurality of batteries according to the parameter information and the temperature, or determining a target battery from the plurality of batteries according to the parameter information and the humidity, or determining a target battery from the plurality of batteries according to the parameter information, the temperature and the humidity.
7. The method for selecting batteries according to claim 6, wherein the obtaining parameter information of each battery comprises:
acquiring the heat resistance grade of each battery, wherein the higher the heat resistance grade is, the stronger the heat resistance is;
the determining a target battery from the plurality of batteries according to the parameter information and the temperature includes:
judging whether the temperature is greater than a preset temperature or not;
and if the temperature is higher than the preset temperature, determining the battery with the highest heat resistance grade in the plurality of batteries as the target battery.
8. A battery selection device is applied to electronic equipment, wherein the electronic equipment comprises a plurality of batteries, and the battery selection device comprises:
the first acquisition module is used for acquiring parameter information of each battery;
the second acquisition module is used for acquiring the environmental information of the environment where the electronic equipment is located;
the determining module is used for acquiring a current first position; when the first position is matched with a second position in a position set, determining the residence time corresponding to the first position, wherein the position set comprises a plurality of different positions and the residence times corresponding to the different positions, and the position is at least one of a position in an environment with a temperature greater than a first preset temperature, a position in an environment with a temperature less than a second preset temperature and a position in an environment with a humidity greater than a preset humidity, which are counted in a historical time period; when the staying time is less than or equal to the preset time, determining a target battery from the plurality of batteries according to the parameter information; when the staying time is longer than the preset time, determining a target battery from the plurality of batteries according to the parameter information and the environment information;
and the charge-discharge module is used for supplying power to the electronic equipment or charging the target battery by utilizing the target battery.
9. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the method of selecting a battery according to any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises a plurality of batteries, a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the battery selection method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
CN201910900254.1A 2019-09-23 2019-09-23 Battery selection method and device, storage medium and electronic equipment Active CN110571887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910900254.1A CN110571887B (en) 2019-09-23 2019-09-23 Battery selection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910900254.1A CN110571887B (en) 2019-09-23 2019-09-23 Battery selection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110571887A CN110571887A (en) 2019-12-13
CN110571887B true CN110571887B (en) 2021-03-02

Family

ID=68781887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910900254.1A Active CN110571887B (en) 2019-09-23 2019-09-23 Battery selection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110571887B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111987764B (en) * 2020-08-10 2022-03-25 Tcl通讯(宁波)有限公司 Discharge control method and device, storage medium and mobile terminal
CN111993953B (en) * 2020-08-27 2021-10-29 安徽江淮汽车集团股份有限公司 Battery control method, power automobile and readable storage medium
CN113219355B (en) * 2021-03-29 2022-04-08 安徽江淮汽车集团股份有限公司 Battery type selection method, device, equipment and storage medium
CN116131400B (en) * 2023-01-11 2023-10-20 广州锐速智能科技股份有限公司 Battery management method, device, equipment and medium for energy storage system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107342616A (en) * 2017-08-28 2017-11-10 上海传英信息技术有限公司 A kind of method, apparatus and its terminal of intelligent control charging
CN108076218A (en) * 2017-11-24 2018-05-25 维沃移动通信有限公司 A kind of charging reminding method and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255352A (en) * 2011-05-26 2011-11-23 南昌大学 Distributed intelligent power battery pack management system
KR101477272B1 (en) * 2012-11-09 2015-01-06 주식회사 엘지화학 Apparatus and method for balancing work of secondary battery cell's changing capacity
WO2014144637A2 (en) * 2013-03-15 2014-09-18 Leeo, Inc. Environmental measurement display system and method
CN105207307B (en) * 2015-10-23 2018-07-20 小米科技有限责任公司 Battery intelligent control method, device and terminal
CN110212607B (en) * 2019-06-14 2023-03-14 Oppo广东移动通信有限公司 Charging control method and related product
CN110138052B (en) * 2019-06-18 2023-04-07 Oppo广东移动通信有限公司 Charging control method and related product

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107342616A (en) * 2017-08-28 2017-11-10 上海传英信息技术有限公司 A kind of method, apparatus and its terminal of intelligent control charging
CN108076218A (en) * 2017-11-24 2018-05-25 维沃移动通信有限公司 A kind of charging reminding method and mobile terminal

Also Published As

Publication number Publication date
CN110571887A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN110571887B (en) Battery selection method and device, storage medium and electronic equipment
CN106772091B (en) Method and device for updating battery capacity value and terminal
KR20180103575A (en) Electronic device and method for controlling based on leakage state of battery in electronic device
CN111060835A (en) Method and system for predicting remaining life of lithium battery and readable storage medium
CN111679206B (en) Electric quantity detection method and device, and storage medium
CN102868001B (en) Lithium ion cell electric quantity displaying method and lithium ion cell electric quanity displaying device
CN109001636B (en) Method and device for determining battery health degree of battery pack, vehicle and computing equipment
CN110244233A (en) A kind of detection method of battery, electronic equipment and computer storage medium
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
CN104635164A (en) Battery charging and discharging stability testing method of intelligent terminal and intelligent terminal
CN115902641A (en) Method and device for predicting battery capacity diving and storage medium
CN110365084B (en) Charging control method, device, terminal and storage medium
CN115166532A (en) Method and device for predicting capacity of nickel-metal hydride battery, electronic device and storage medium
CN111487543A (en) DCR test method, system, device and medium in lithium ion battery cycle
CN110907838B (en) Battery working condition simulation test method, electronic equipment and computer readable storage medium
CN114384436A (en) Screening method, device, equipment and storage medium for retired lithium ion power battery
CN112378331B (en) Electronic device, battery deformation detection method, and readable storage medium
CN113595174A (en) Battery management method, device, equipment and server
CN117110916A (en) Battery fault cause determining method and device, electronic equipment and readable storage medium
CN116014268A (en) Battery gradient utilization method, device, equipment and medium
CN112240952A (en) Power testing method, system, computer device and storage medium
CN106131342A (en) A kind of method and system controlling mobile terminal shutdown
CN116068432A (en) Aging test method, device and system for energy storage equipment and storage medium
CN115939549A (en) Impedance monitoring method and device for battery, electronic equipment and readable storage medium
CN115395621A (en) Emergency energy storage battery electric energy management method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant