WO2017020592A1 - Discharging method, terminal equipment, and computer storage medium - Google Patents

Discharging method, terminal equipment, and computer storage medium Download PDF

Info

Publication number
WO2017020592A1
WO2017020592A1 PCT/CN2016/076931 CN2016076931W WO2017020592A1 WO 2017020592 A1 WO2017020592 A1 WO 2017020592A1 CN 2016076931 W CN2016076931 W CN 2016076931W WO 2017020592 A1 WO2017020592 A1 WO 2017020592A1
Authority
WO
WIPO (PCT)
Prior art keywords
current value
voltage
discharge current
battery
discharge
Prior art date
Application number
PCT/CN2016/076931
Other languages
French (fr)
Chinese (zh)
Inventor
齐红芳
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2017020592A1 publication Critical patent/WO2017020592A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present invention relates to the field of mobile communication control technologies, and in particular, to a discharge method, a terminal device, and a computer storage medium.
  • the terminal device having both the modem function and the charging function generally has three working modes: the first working mode is only used as a common function device, for example, data service, audio and video service, and communication service.
  • the display function does not use the charging function; the second working mode is that only the charging function is used, and the modem function is not used; the third working mode is that the modem function of the communication, data service, etc. of the terminal device is also used.
  • the battery is only used by one party.
  • the dotted arrow points to the direction of current flow, where I A is the power consumption of other functional modules of the terminal device, relatively stable, without much fluctuations and changes;
  • the power consumption of I B is determined by the load, and the values of different loads I B will be relatively different; as shown in Fig. 2, the solid line indicates the change of the battery voltage during the discharge process of the terminal device with the discharge function in the prior art. From the moment when the working mode is switched to the third working mode, I B will suddenly increase from 0A to 500mA, 1A or even 2A. This change may cause a sudden change in the voltage of the battery, as shown in point B in Figure 2. The change of point D, and this sudden voltage drop is likely to cause the battery to power the other functional modules of the terminal device to support its normal operation, causing other functional modules to suddenly lose power, thereby affecting the user's use.
  • embodiments of the present invention are expected to provide a discharge method and a terminal device, which solves the problem that other functions of the terminal device cannot be caused due to a sudden decrease in battery voltage during discharge of the battery of the terminal device. .
  • Embodiments of the present invention provide a discharging method, and the method includes:
  • the determining, by the first voltage, the minimum operating voltage, and the internal resistance of the battery, the first discharge current value including:
  • the maximum value of the pre-stored current values is selected as a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  • the determining, by the first voltage, the minimum operating voltage, and the internal resistance of the battery, the first discharge current value including:
  • the second maximum discharge current value being the first discharge current value.
  • the determining, by the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery, the second discharge current value including:
  • the maximum value of the pre-stored current values is selected as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
  • determining whether to continue discharging according to a user indication including:
  • the user is prompted to be under-powered, and determining whether to continue discharging according to the user indication.
  • the determining, by the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery, the second discharge current value including:
  • determining whether to continue discharging according to a user indication including:
  • the user is prompted to be under-powered, and determining whether to continue discharging according to the user indication.
  • the embodiment of the present invention further provides a terminal device, where the terminal device includes: a charging and discharging unit, and a control unit;
  • the control unit is configured to acquire a first voltage of the current battery, a minimum operating voltage of the terminal device, and a battery internal resistance when the load is detected, and configured to be according to the first voltage, the minimum operating voltage, and the The internal resistance of the battery determines a first discharge current value; and is further configured to acquire a second voltage of the battery every first preset time; when a voltage difference between the first voltage and the second voltage is greater than a preset voltage value Determining, according to the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery, a second discharge current value; further configured to: when the second discharge current value satisfies a preset rule When it is determined according to the user's instruction whether to continue discharging;
  • the charge and discharge unit is configured to discharge according to the first discharge current value.
  • the control unit is configured to determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; and further configured to select a maximum value of the pre-stored current value as the first a current value, when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  • the control unit is configured to determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is the first discharge current value.
  • the control unit is configured to determine a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance; and further configured to select the preset The maximum value of the stored current values is a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
  • the control unit is configured to prompt the user that the power is too low when the second discharge current value is less than or equal to a minimum value of the pre-stored current value, and determine whether to continue discharging according to the user indication.
  • the control unit is configured to determine a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, the fourth maximum discharge current The value is the second discharge current value.
  • the control unit is configured to prompt the user that the power is too low when the second discharge current value is less than the preset current value, and determine whether to continue discharging according to the user indication.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing discharging method.
  • Embodiments of the present invention provide a discharge method, a terminal device, and a computer storage medium.
  • a first voltage of a current battery, a minimum operating voltage of the terminal device, and an internal resistance of the battery are acquired; according to the first voltage, Determining, by the minimum operating voltage and the internal resistance of the battery, a first discharge current value, and discharging according to the first discharge current value; acquiring a second voltage of the battery every first preset time; Determining a second discharge current according to the second voltage, the lowest operating voltage, the first discharge current value, and the internal resistance of the battery when a voltage difference between the voltage and the second voltage is greater than a preset voltage value a value; when the second discharge current value satisfies a preset rule, determining whether to continue discharging according to the user indication.
  • the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can work normally, and the internal resistance of the battery, and when the battery is turned on and discharged. After that, it will not affect the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
  • FIG. 1 is a schematic diagram of a terminal device according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of battery voltage variation according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart 1 of a discharge method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart 2 of a discharge method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart 3 of a discharge method according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a discharging method. As shown in FIG. 3, the method includes:
  • Step 101 When the load is detected, obtain the first voltage of the current battery, the minimum operating voltage of the terminal device itself, and the internal resistance of the battery.
  • the execution body of the discharge method provided by the embodiment of the present invention is a terminal device.
  • the terminal device is a device that has both a charging function and other functions, wherein the charging function can be understood as discharging.
  • Function other functions can be understood as: for example, dial-up Internet access, routers, network cards, mobile phones and other modem functions.
  • the modem function included in the terminal device may include a data service, an audio and video service, a communication service, or other keys, a display function, and the like, which are not specifically limited in this embodiment of the present invention.
  • the terminal device detects that a load is inserted, the first voltage of the current battery, the lowest working voltage of the terminal device, and the internal resistance of the battery are acquired.
  • the minimum operating voltage of the terminal device itself can be understood as the minimum operating voltage required by the terminal device when using the modem function, for example, the minimum operating voltage required for the terminal device to play audio and video.
  • the load refers to the electronic components connected at both ends of the power supply in the circuit. Commonly used loads are components that consume power, such as resistors, engines, and light bulbs.
  • the load for communication power is the communication device.
  • the load in the embodiment of the present invention can be understood as a charged electronic device, such as a mobile phone, a tablet computer, or the like.
  • Step 102 Determine a first discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and perform discharging according to the first discharge current value.
  • the terminal device may determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; and selecting a pre-stored The maximum value of the current values is a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  • the pre-stored current value is a set of current values preset in the charging chip of the terminal device, for example, ⁇ 30 mV, 35 mV, 40 mV, . . . , In ⁇ , and the current value is obtained experimentally.
  • the terminal device calculates the first maximum discharge current value Imax1 according to the current battery voltage Vbat1, the lowest voltage Vmin that the terminal device can operate normally, and the battery internal resistance R.
  • the specific calculation method is as follows:
  • the terminal device may further determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is the first A discharge current value.
  • the terminal device acquires the first voltage Vbat1 of the current battery, and writes the first voltage Vbat1 of the current battery, the minimum operating voltage Vmin of the terminal device itself, and the internal resistance R of the battery into the discharge chip registers Reg_Vcurrent, Reg_Vmin, Reg_R, respectively, and the discharge chip According to the values of the three registers, the second maximum discharge current value Imax1 is calculated, and the specific calculation method is as follows:
  • Imax1 is the first discharge current value.
  • the register is a high-speed storage component of limited storage capacity, which can be used to temporarily store instructions, Data and address.
  • the discharge switch is turned on to start external discharge, that is, the terminal device charges the load.
  • Step 103 Acquire a second voltage of the battery every first preset time.
  • the terminal device acquires the second voltage of the battery every first preset time, where the first preset time may be 1 second, 2 seconds, or other values, and the first preset time is less than the discharge time of the terminal device. .
  • the terminal device detects the voltage of the battery once a second, which is the second voltage of the battery.
  • step 103 is continued.
  • Step 104 When the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery The internal resistance determines the second discharge current value.
  • the terminal device compares the second voltage of the battery and the first voltage after the first preset time, and when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, the terminal device needs to be re- The discharge current is determined, and then the terminal device discharges by redetermining the discharge current, that is, the second discharge current value.
  • the terminal device determines a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance. Secondly, selecting a maximum of the pre-stored current values as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
  • the preset voltage value is preferably 200 mV, and may be a value between 100 mV and 250 mV, and may be other values, which is not limited in the embodiment of the present invention.
  • the terminal device determines the voltage that the second voltage Vbat2 is lower than the first voltage Vbat1.
  • Imax2 (Vbat2-Vmin)/R+Iout1
  • the terminal device determines a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, and the fourth maximum discharge The current value is the second discharge current value.
  • the terminal device determines a voltage value of the second voltage Vbat2 that is lower than the first voltage Vbat1.
  • the current second voltage Vbat2 is written into the register Reg_Vcurrent, according to the second voltage Vbat2, the lowest value.
  • the working voltage Vmin, the internal resistance R of the battery, and the first discharge current value Iout1 calculate the fourth maximum discharge current value Imax2, and the specific calculation method is as follows:
  • Imax2 (Vbat2-Vmin)/R+Iout1
  • Imax2 is the second discharge current value Iout2.
  • Step 105 When the second discharge current value satisfies a preset rule, determine whether to continue discharging according to a user instruction.
  • the preset rule may be to compare the second discharge current value with a minimum value of the pre-stored current value or a preset current value, when the second discharge current value is less than or equal to the pre-stored current The minimum value of the value, or when the second discharge current value is less than the preset current value, is to satisfy the preset rule.
  • the second discharge current value Iout2 ⁇ min(I1, I2, I3, ..., In), where min(I1, I2, I3, ..., In) is in the set (I1, I2, I3) , ..., In) takes the minimum value, prompts the user, the battery is low, and stops charging; if the user chooses to select "Yes", the terminal device turns off the discharging function, that is, stops charging the load; if the user selects " No, the terminal device keeps the discharge current value unchanged, and reminds the user to save the resources and data of other current functional modules of the terminal device, and prepares to close other functional modules of the terminal device at any time.
  • the user when the second discharge current value is less than the preset current value, the user is prompted to be too low, and determining whether to continue discharging according to the user indication.
  • the second discharge current value Iout2 is smaller than the discharge chip preset current value Imin, prompting the user that the battery power is low, and whether the charging function is stopped; if the user selects “Yes”, the terminal device turns off the discharging function, that is, stops the load. Charging function; if the user selects “No”, the terminal device keeps the discharge current value unchanged, and reminds the user to save the resources and data of other current functional modules of the terminal device, and prepares to close other functional modules of the terminal device at any time.
  • the preset current value is a minimum current value required for charging according to experience and experiment, and the preset current value may range from 40 mA to 60 mA.
  • step 103 when the second discharge current value does not satisfy the preset rule, step 103 is performed.
  • Step 103 when the second discharge current value is greater than a minimum value of the pre-stored current value, or when the second discharge current value is greater than or equal to a preset current value, the preset rule is not satisfied, and needs to be performed. Step 103.
  • the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. Affect other functions of the terminal device itself The normal operation, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
  • An embodiment of the present invention provides a discharging method. As shown in FIG. 4, the method includes:
  • Step 201 When the load is detected, obtain the first voltage of the current battery, the minimum working voltage of the terminal device itself, and the internal resistance of the battery.
  • the execution body of the discharge method provided by the embodiment of the present invention is a terminal device.
  • the terminal device is a device that has both a charging function and other functions, wherein the charging function can be understood as discharging.
  • Function other functions can be understood as: for example, dial-up Internet access, routers, network cards, mobile phones and other modem functions.
  • the modem function included in the terminal device may include a data service, an audio and video service, a communication service, or other keys, a display function, and the like, which are not specifically limited in this embodiment of the present invention.
  • the terminal device detects that a load is inserted, the first voltage of the current battery, the lowest working voltage of the terminal device, and the internal resistance of the battery are acquired.
  • the minimum operating voltage of the terminal device itself can be understood as the minimum operating voltage required by the terminal device when using the modem function, for example, the minimum operating voltage required for the terminal device to play audio and video.
  • the load in the embodiment of the present invention can be understood as a charged electronic device, such as a mobile phone, a tablet computer, or the like.
  • Step 202 Determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery.
  • the terminal device calculates the first maximum discharge current value Imax1 according to the current battery voltage Vbat1, the lowest voltage Vmin that the terminal device can operate normally, and the battery internal resistance R.
  • the specific calculation method is as follows:
  • Step 203 Select a maximum value of the pre-stored current values as the first current value, when the first power When the flow value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  • the pre-stored current value is a set of current values preset in the charging chip of the terminal device, for example, ⁇ 30 mV, 35 mV, 40 mV, . . . , In ⁇ , and the current value is obtained experimentally.
  • max(I1, I2, I3, ..., In) takes the maximum value in the set (I1, I2, I3, ..., In).
  • Step 204 Perform discharging according to the first discharge current value.
  • the discharge switch is turned on to start external discharge, that is, the terminal device charges the load.
  • Step 205 Acquire a second voltage of the battery every first preset time.
  • the terminal device acquires the second voltage of the battery every first preset time, where the first preset time may be 1 second, 2 seconds, or other values, and the first preset time is less than the discharge time of the terminal device. .
  • the terminal device detects the voltage of the battery once a second, which is the second voltage of the battery.
  • step 205 is continued.
  • Step 206 when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery The internal resistance determines the third maximum discharge current value.
  • the terminal device performs the second voltage and the first voltage of the battery after the first preset time
  • the comparison judges that when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, it is necessary to re-determine the discharge current.
  • the terminal device determines a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance.
  • the preset voltage value is preferably 200 mV, and may be a value between 100 mV and 250 mV, and may be other values, which is not limited in the embodiment of the present invention.
  • the terminal device determines a voltage value of the second voltage Vbat2 that is lower than the first voltage Vbat1, and when the decreased voltage value is greater than 200mV, according to the second voltage Vbat2, the minimum operating voltage Vmin, the battery internal resistance R, and the first discharge
  • the current value Iout1 calculates the third maximum discharge current value Imax2, and the specific calculation method is as follows:
  • Imax2 (Vbat2-Vmin)/R+Iout1
  • Step 207 Select a maximum value of the pre-stored current values as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge Current value.
  • discharging is performed at the second discharge current value.
  • step 205 is performed.
  • the second discharge current value is greater than a minimum value of the pre-stored current value, it may be understood that discharging the terminal device with the second discharge current value does not affect the operation of other functional modules of the terminal device. Can continue to discharge with the second discharge current value, and perform steps 205, that is, acquiring a second voltage of the battery every first preset time.
  • Step 208 When the second discharge current value is less than or equal to a minimum value of the pre-stored current values, prompting the user that the power is too low, and determining whether to continue discharging according to the user indication.
  • the terminal device turns off the discharging function.
  • the voltage variation in the discharge method provided by the embodiment of the present invention is described.
  • the solid line indicates the change of the battery voltage during the discharge process of the terminal device with the discharge function in the prior art
  • the broken line indicates the present invention.
  • the battery full-charge voltage is Vfull
  • the battery power is continuously consumed during the discharge process.
  • Vin that is, the load is inserted at point B
  • the terminal device is externally discharged, that is, the terminal device is charged in the embodiment of the present invention.
  • the battery voltage will be pulled down instantaneously; in the prior art, the battery voltage is pulled to point D, if the point D is lower than other functional modules of the terminal device
  • the minimum operating voltage Vmin causes the other functional modules of the terminal device to stop working, and the modem services such as the data service, the audio and video, and the communication service are not saved and processed, and are lost as shown in FIG. 1.
  • the discharging method provided by the embodiment of the present invention can Ensure that the battery voltage is pulled above Vmin, that is, point C. Then, as the discharge process continues, the battery power continues to decrease.
  • the battery voltage is close to Vmin, other functional modules of the terminal device have sufficient time to process unsaved data in the embodiment of the present invention. And prompt the user whether to continue to discharge, thereby improving the stability of the operation of the terminal device.
  • the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. It affects the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
  • the embodiment of the invention provides a discharging method. As shown in FIG. 5, the method includes:
  • Step 301 When the load is detected, obtain the first voltage of the current battery, the minimum operating voltage of the terminal device itself, and the internal resistance of the battery.
  • the execution body of the discharge method provided by the embodiment of the present invention is a terminal device.
  • the terminal device may be a device that has both a charging function and other functions, wherein the charging function can be understood as Discharge function, other functions can be understood as: for example, dial-up Internet access, routers, network cards, mobile phones and other modem functions.
  • the modem function included in the terminal device may include a data service, an audio and video service, a communication service, or other keys, a display function, and the like, which are not specifically limited in this embodiment of the present invention.
  • the terminal device detects that a load is inserted, the first voltage of the current battery, the lowest working voltage of the terminal device, and the internal resistance of the battery are acquired.
  • the minimum operating voltage of the terminal device itself can be understood as the minimum operating voltage required by the terminal device when using the modem function, for example, the minimum operating voltage required for the terminal device to play audio and video.
  • the load in the embodiment of the present invention can be understood as a charged electronic device, such as a mobile phone, a tablet computer, or the like.
  • Step 302 Determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is a first discharge current value.
  • the terminal device acquires the first voltage Vbat1 of the current battery, and writes the current battery voltage Vbat1, the terminal device's own minimum operating voltage Vmin, and the battery internal resistance R to the discharge chip.
  • the registers Reg_Vcurrent, Reg_Vmin, Reg_R, the discharge chip calculates the second maximum discharge current value Imax1 according to the values of the three registers, and the specific calculation method is as follows:
  • Imax1 is the first discharge current value.
  • Step 303 Perform discharging according to the first discharge current value.
  • the discharge switch is turned on to start external discharge, that is, the terminal device charges the load.
  • Step 304 Acquire a second voltage of the battery after the first preset time.
  • the terminal device acquires the second voltage of the battery every first preset time, where the first preset time may be 1 second, 2 seconds, or other values, and the first preset time is less than the discharge time of the terminal device. .
  • the terminal device detects the voltage of the battery once a second, which is the second voltage of the battery.
  • step 304 is continued.
  • Step 305 when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery The internal resistance determines a fourth maximum discharge current value, and the fourth maximum discharge current value is the second discharge current value.
  • the terminal device compares the second voltage of the battery and the first voltage after the first preset time, and when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, the terminal device needs to be re- Determine the discharge current.
  • the terminal device determines a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, and the fourth maximum discharge current value is the second discharge The current value is determined by the terminal device after determining the second discharge current value.
  • the terminal device determines a voltage value of the second voltage Vbat2 that is lower than the first voltage Vbat1.
  • the current voltage Vbat2 is written into the register Reg_Vcurrent according to the second voltage Vbat2 and the minimum operating voltage.
  • Vmin, battery internal resistance R, first discharge current value Iout1 calculate the fourth maximum discharge current value Imax2, the specific calculation method is as follows:
  • Imax2 (Vbat2-Vmin)/R+Iout1
  • Imax2 is the second discharge current value Iout2.
  • step 304 is performed.
  • the second discharge current value is greater than or equal to the preset current value
  • discharging the terminal device with the second discharge current value does not affect the operation of other functional modules of the terminal device, and may continue to
  • the second discharge current value is discharged, and step 304 is performed, that is, the second voltage of the battery is acquired every first preset time.
  • Step 306 When the second discharge current value is less than the preset current value, prompting the user that the power is too low, and determining whether to continue discharging according to the user indication.
  • the second discharge current value Iout2 is smaller than the discharge chip preset current value Imin, prompting the user that the battery power is low, and whether the charging function is stopped; if the user selects “Yes”, the terminal device turns off the discharging function, that is, stops the load. Charging function; if the user selects “No”, the terminal device keeps the discharge current value unchanged, and reminds the user to save the resources and data of other current functional modules of the terminal device, and prepares to close other functional modules of the terminal device at any time.
  • the preset current value is a minimum current value required for charging according to experience and experiment, and the preset current value may range from 40 mA to 60 mA.
  • the terminal device turns off the discharging function.
  • the voltage variation in the discharge method provided by the embodiment of the present invention is described.
  • the solid line indicates the change of the battery voltage during the discharge process of the terminal device with the discharge function in the prior art
  • the broken line indicates the present invention.
  • the terminal device with discharge function provided by the embodiment discharges The change in battery voltage during the process.
  • the battery full-charge voltage is Vfull
  • the battery power is continuously consumed during the discharge process.
  • the terminal device is externally discharged, that is, the terminal device is charged in the embodiment of the present invention.
  • the battery voltage will be pulled down instantaneously; in the prior art, the battery voltage is pulled to point D, if the point D is lower than other functional modules of the terminal device
  • the minimum operating voltage Vmin causes the other functional modules of the terminal device to stop working, and the modem services such as the data service, the audio and video, and the communication service are not saved and processed, and are lost as shown in FIG. 1.
  • the discharging method provided by the embodiment of the present invention can Ensure that the battery voltage is pulled above Vmin, that is, point C. Then, as the discharge process continues, the battery power continues to decrease.
  • the battery voltage is close to Vmin, other functional modules of the terminal device have sufficient time to process unsaved data in the embodiment of the present invention. And prompt the user whether to continue to discharge, thereby improving the stability of the operation of the terminal device.
  • the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. It affects the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing discharging method.
  • the embodiment of the present invention provides a terminal device 1.
  • the terminal device 1 includes: a control unit 10, and a charging and discharging unit 11;
  • the control unit 10 is configured to acquire a first voltage of the current battery, a minimum operating voltage of the battery, and an internal resistance of the battery when the load is detected; and configured to determine, according to the first voltage, the minimum operating voltage, and the battery
  • the internal resistance determines a first discharge current value; and is further configured to acquire a second voltage of the battery every first preset time; when the voltage difference between the first voltage and the second voltage When the value is greater than the preset voltage value, determining a second discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery; further configured to be when the second discharge When the current value satisfies the preset rule, it is determined according to the user's instruction whether to continue discharging.
  • the charge and discharge unit 11 is configured to discharge according to the first discharge current value.
  • control unit 10 is configured to determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; and further configured to select a pre-stored current value The maximum value is a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  • control unit 10 is configured to determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is The first discharge current value is described.
  • control unit 10 is configured to determine a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance; In order to select the maximum value of the pre-stored current values as the second current value, when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value .
  • control unit 10 is configured to prompt the user to be too low when the second discharge current value is less than or equal to a minimum value of the pre-stored current value, and determine whether the user is instructed according to the user indication. Continue to discharge.
  • control unit 10 is configured to determine a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, The fourth maximum discharge current value is the second discharge current value.
  • control unit 10 is configured to prompt the user to be too low when the second discharge current value is less than the preset current value, and determine whether to continue discharging according to the user indication.
  • the charge and discharge unit 11 is configured to charge and discharge the battery, monitor the charge and discharge state, and the like, and can be specifically implemented by a discharge circuit or a discharge chip in combination with software programming.
  • the control unit is an added module of the invention, configured to assist the charging and discharging unit to control charging and discharging, to ensure more accurate control of discharge, and to maintain normal and stable operation of the basic function module, which can be realized by software programming or by software algorithm.
  • the register is integrated with the discharge chip to achieve.
  • control unit 10 and the charge and discharge unit 11 may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array located on the terminal device ( FPGA) and other implementations.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the terminal device determines the initial discharge current according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery after the terminal device detects the load insertion. It affects the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery.
  • the battery When the battery is turned on and discharged, it will not affect the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring stable operation of the terminal device. Sex.

Abstract

A discharging method, terminal equipment, and a computer storage medium. The discharging method comprises: upon detecting a load, obtaining a first voltage of a present battery, a minimal working voltage of terminal equipment, and battery internal resistance; determining, according to the first voltage, the minimal working voltage, and the battery internal resistance, a first discharging current, and discharging based on the first discharging current; obtaining a second voltage of the battery every first predefined period; when a voltage difference between the first and second voltages exceeds a predefined voltage, determining, according to the second voltage, the minimal working voltage, the first discharging current, and the battery internal resistance, a second discharging current; and when the second discharging current satisfies a predefined rule, determining, according to a user instruction, whether to continue discharging.

Description

一种放电方法、终端设备和计算机存储介质Discharge method, terminal device and computer storage medium 技术领域Technical field
本发明涉及移动通信领域控制技术,尤其涉及一种放电方法、终端设备和计算机存储介质。The present invention relates to the field of mobile communication control technologies, and in particular, to a discharge method, a terminal device, and a computer storage medium.
背景技术Background technique
随着互联网和移动通信技术的发展,具有上网和通信功能的电子设备也普遍出现,随着人们对网络和移动通信的依赖和需求越来越多,电子设备在使用过程中经常出现电池电量不足、待机时间不够等问题。因此,出现了各种各样的充电设备,例如,带有手机拨号功能的充电宝、带有wifi功能的充电宝等,这种兼有其它功能的充电设备可以统称为带有调制解调器(modem)功能的充电设备。With the development of the Internet and mobile communication technologies, electronic devices with Internet access and communication functions are also common. With the increasing reliance and demand for network and mobile communication, electronic devices often have insufficient battery power during use. Problems such as insufficient standby time. Therefore, various charging devices have appeared, for example, a charging treasure with a mobile phone dialing function, a charging treasure with a wifi function, etc., and such a charging device having other functions can be collectively referred to as a modem. Functional charging device.
如图1所示,这种兼有modem功能和充电功能的终端设备一般具有三种工作模式:第一种工作模式为,只作为普通功能设备使用,例如,数据业务、音视频业务、通讯业务、显示功能等,即不使用充电功能;第二种工作模式为,只使用充电功能,不使用modem功能;第三种工作模式为,使用该终端设备的通讯、数据业务等modem功能的同时也使用充电功能。在第一种工作模式与第二种工作模式中,电池只供给一方使用。As shown in FIG. 1 , the terminal device having both the modem function and the charging function generally has three working modes: the first working mode is only used as a common function device, for example, data service, audio and video service, and communication service. The display function does not use the charging function; the second working mode is that only the charging function is used, and the modem function is not used; the third working mode is that the modem function of the communication, data service, etc. of the terminal device is also used. Use the charging function. In the first mode of operation and the second mode of operation, the battery is only used by one party.
在第三种工作模式中,如图1所示,虚线箭头指向为电流的流向,其中IA是终端设备其它功能模块的耗电,相对比较稳定,不会有太大的波动和变化;而IB的耗电由负载决定,不同负载IB的值会相差比较大;如图2所示,实线表示现有技术中带有放电功能的终端设备放电过程中电池电压的变化,在第一种工作模式到第三种工作模式切换的瞬间,IB会从0A突然增加到500mA、1A甚至2A,这个变化就可能导致电池的电压会有个突然 的变化,如图2中B点到D点的变化,而这个突然电压降低很可能导致电池对终端设备其它功能模块的供电不能支持其正常工作,导致其它功能模块突然掉电,从而影响用户使用。In the third mode of operation, as shown in Figure 1, the dotted arrow points to the direction of current flow, where I A is the power consumption of other functional modules of the terminal device, relatively stable, without much fluctuations and changes; The power consumption of I B is determined by the load, and the values of different loads I B will be relatively different; as shown in Fig. 2, the solid line indicates the change of the battery voltage during the discharge process of the terminal device with the discharge function in the prior art. From the moment when the working mode is switched to the third working mode, I B will suddenly increase from 0A to 500mA, 1A or even 2A. This change may cause a sudden change in the voltage of the battery, as shown in point B in Figure 2. The change of point D, and this sudden voltage drop is likely to cause the battery to power the other functional modules of the terminal device to support its normal operation, causing other functional modules to suddenly lose power, thereby affecting the user's use.
发明内容Summary of the invention
为解决现有技术存在的技术问题,本发明实施例期望提供一种放电方法和终端设备,解决了终端设备的电池在放电过程中,电池电压突然降低而引起的终端设备其它功能无法工作的问题。In order to solve the technical problems existing in the prior art, embodiments of the present invention are expected to provide a discharge method and a terminal device, which solves the problem that other functions of the terminal device cannot be caused due to a sudden decrease in battery voltage during discharge of the battery of the terminal device. .
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种放电方法,所述方法包括:Embodiments of the present invention provide a discharging method, and the method includes:
当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻;When the load is detected, obtaining the first voltage of the current battery, the minimum operating voltage of the terminal device itself, and the internal resistance of the battery;
根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,并根据所述第一放电电流值进行放电;Determining a first discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and discharging according to the first discharge current value;
每隔第一预设时间获取所述电池的第二电压;Acquiring a second voltage of the battery every first preset time;
当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值;Determining, according to the second voltage, the minimum operating voltage, the first discharging current value, and the internal resistance of the battery, when a voltage difference between the first voltage and the second voltage is greater than a preset voltage value Second discharge current value;
当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电。When the second discharge current value satisfies a preset rule, it is determined according to a user instruction whether to continue discharging.
其中,所述根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,包括:The determining, by the first voltage, the minimum operating voltage, and the internal resistance of the battery, the first discharge current value, including:
根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值;Determining a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery;
选取预存储的电流值中最大值为第一电流值,当所述第一电流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。 The maximum value of the pre-stored current values is selected as a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
其中,所述根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,包括:The determining, by the first voltage, the minimum operating voltage, and the internal resistance of the battery, the first discharge current value, including:
根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为所述第一放电电流值。Determining a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, the second maximum discharge current value being the first discharge current value.
其中,所述根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值,包括:The determining, by the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery, the second discharge current value, including:
根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值;Determining a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery;
选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。The maximum value of the pre-stored current values is selected as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
其中,所述当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电,包括:Wherein, when the second discharge current value satisfies a preset rule, determining whether to continue discharging according to a user indication, including:
当所述第二放电电流值小于等于所述预存储的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。When the second discharge current value is less than or equal to a minimum value of the pre-stored current values, the user is prompted to be under-powered, and determining whether to continue discharging according to the user indication.
其中,所述根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值,包括:The determining, by the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery, the second discharge current value, including:
根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。Determining a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, and the fourth maximum discharge current value is the second discharge current value .
其中,所述当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电,包括:Wherein, when the second discharge current value satisfies a preset rule, determining whether to continue discharging according to a user indication, including:
当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。When the second discharge current value is less than the preset current value, the user is prompted to be under-powered, and determining whether to continue discharging according to the user indication.
本发明实施例还提供一种终端设备,所述终端设备包括:充放电单元,控制单元;其中, The embodiment of the present invention further provides a terminal device, where the terminal device includes: a charging and discharging unit, and a control unit;
所述控制单元,配置为当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻;还配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值;还配置为每隔第一预设时间获取所述电池的第二电压;当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值;还配置为当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电;The control unit is configured to acquire a first voltage of the current battery, a minimum operating voltage of the terminal device, and a battery internal resistance when the load is detected, and configured to be according to the first voltage, the minimum operating voltage, and the The internal resistance of the battery determines a first discharge current value; and is further configured to acquire a second voltage of the battery every first preset time; when a voltage difference between the first voltage and the second voltage is greater than a preset voltage value Determining, according to the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery, a second discharge current value; further configured to: when the second discharge current value satisfies a preset rule When it is determined according to the user's instruction whether to continue discharging;
所述充放电单元,配置为根据所述第一放电电流值进行放电。The charge and discharge unit is configured to discharge according to the first discharge current value.
其中,所述控制单元,配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值;还配置为选取预存储的电流值中最大值为第一电流值,当所述第一电流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。The control unit is configured to determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; and further configured to select a maximum value of the pre-stored current value as the first a current value, when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
其中,所述控制单元,配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为所述第一放电电流值。The control unit is configured to determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is the first discharge current value.
其中,所述控制单元,配置为根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值;还配置为选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。The control unit is configured to determine a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance; and further configured to select the preset The maximum value of the stored current values is a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
其中,所述控制单元,配置为当所述第二放电电流值小于等于所述预存储的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。The control unit is configured to prompt the user that the power is too low when the second discharge current value is less than or equal to a minimum value of the pre-stored current value, and determine whether to continue discharging according to the user indication.
其中,所述控制单元,配置为根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。 The control unit is configured to determine a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, the fourth maximum discharge current The value is the second discharge current value.
其中,所述控制单元,配置为当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。The control unit is configured to prompt the user that the power is too low when the second discharge current value is less than the preset current value, and determine whether to continue discharging according to the user indication.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的放电方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing discharging method.
本发明实施例提供了一种放电方法、终端设备和计算机存储介质,当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻;根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,并根据所述第一放电电流值进行放电;每隔第一预设时间获取所述电池的第二电压;当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值;当所述第二放电电流值满足预设规则时,根据所述用户指示确定是否继续放电。采用本发明实施例提供的放电方法和终端设备,当终端设备检测到负载插入后,根据当前电池电压、终端设备自身能够正常工作的最低电压以及电池内阻来确定初始放电电流,当电池开启放电后,不会影响该终端设备自身其它功能的正常工作,并能够在放电过程中不断修正放电电流来保证该终端设备自身其它功能的工作稳定,从而保证了终端设备工作的稳定性。Embodiments of the present invention provide a discharge method, a terminal device, and a computer storage medium. When a load is detected, a first voltage of a current battery, a minimum operating voltage of the terminal device, and an internal resistance of the battery are acquired; according to the first voltage, Determining, by the minimum operating voltage and the internal resistance of the battery, a first discharge current value, and discharging according to the first discharge current value; acquiring a second voltage of the battery every first preset time; Determining a second discharge current according to the second voltage, the lowest operating voltage, the first discharge current value, and the internal resistance of the battery when a voltage difference between the voltage and the second voltage is greater than a preset voltage value a value; when the second discharge current value satisfies a preset rule, determining whether to continue discharging according to the user indication. According to the discharge method and the terminal device provided by the embodiment of the present invention, when the terminal device detects the load insertion, the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can work normally, and the internal resistance of the battery, and when the battery is turned on and discharged. After that, it will not affect the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
附图说明DRAWINGS
图1为本发明实施例提供的终端设备示意图;FIG. 1 is a schematic diagram of a terminal device according to an embodiment of the present disclosure;
图2为本发明实施例提供的电池电压变化示意图;2 is a schematic diagram of battery voltage variation according to an embodiment of the present invention;
图3为本发明实施例提供的放电方法流程示意图一;3 is a schematic flowchart 1 of a discharge method according to an embodiment of the present invention;
图4为本发明实施例提供的放电方法流程示意图二;4 is a schematic flowchart 2 of a discharge method according to an embodiment of the present invention;
图5为本发明实施例提供的放电方法流程示意图三;FIG. 5 is a schematic flowchart 3 of a discharge method according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的终端设备结构示意图。 FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
实施例一Embodiment 1
本发明实施例提供一种放电方法,如图3所示,该方法包括:An embodiment of the present invention provides a discharging method. As shown in FIG. 3, the method includes:
步骤101、当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻。Step 101: When the load is detected, obtain the first voltage of the current battery, the minimum operating voltage of the terminal device itself, and the internal resistance of the battery.
需要说明的是,本发明实施例提供的放电方法的执行主体为终端设备,如图1所示,该终端设备是一个同时兼具充电功能和其它功能的设备,其中,充电功能可以理解为放电功能,其它功能可以理解为:例如,拨号上网、路由器、网卡、手机等调制解调器(modem)功能。该终端设备包含的modem功能可以包含数据业务、音视频业务、通讯业务、或者其它按键、显示功能等,本发明实施例对此不作具体限定。It should be noted that the execution body of the discharge method provided by the embodiment of the present invention is a terminal device. As shown in FIG. 1 , the terminal device is a device that has both a charging function and other functions, wherein the charging function can be understood as discharging. Function, other functions can be understood as: for example, dial-up Internet access, routers, network cards, mobile phones and other modem functions. The modem function included in the terminal device may include a data service, an audio and video service, a communication service, or other keys, a display function, and the like, which are not specifically limited in this embodiment of the present invention.
具体的,当终端设备检测到有负载插入时,获取当前电池的第一电压、该终端设备自身最低工作电压以及电池内阻。其中,该终端设备自身最低工作电压可以理解为该终端设备在使用modem功能时所需要的最低工作电压,例如,终端设备播放音视频时需要的最低工作电压。Specifically, when the terminal device detects that a load is inserted, the first voltage of the current battery, the lowest working voltage of the terminal device, and the internal resistance of the battery are acquired. The minimum operating voltage of the terminal device itself can be understood as the minimum operating voltage required by the terminal device when using the modem function, for example, the minimum operating voltage required for the terminal device to play audio and video.
其中,负载是指连接在电路中的电源两端的电子元件。常用的负载有电阻、引擎和灯泡等可消耗功率的元件。对于通信电源而言的负载就是通讯设备。本发明实施例中的负载可以理解为被充电的电子设备,例如,手机、平板电脑等。Wherein, the load refers to the electronic components connected at both ends of the power supply in the circuit. Commonly used loads are components that consume power, such as resistors, engines, and light bulbs. The load for communication power is the communication device. The load in the embodiment of the present invention can be understood as a charged electronic device, such as a mobile phone, a tablet computer, or the like.
步骤102、根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,并根据所述第一放电电流值进行放电。Step 102: Determine a first discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and perform discharging according to the first discharge current value.
这里,一种可能的实现方式,终端设备可以根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值;选取预存储的 电流值中最大值为第一电流值,当所述第一电流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。Here, in a possible implementation manner, the terminal device may determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; and selecting a pre-stored The maximum value of the current values is a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
其中,预存储的电流值为预先设置在终端设备的充电芯片中的一组电流值,例如,{30mV,35mV,40mV,……,In},该电流值是根据实验得到的。The pre-stored current value is a set of current values preset in the charging chip of the terminal device, for example, {30 mV, 35 mV, 40 mV, . . . , In}, and the current value is obtained experimentally.
示例性的,终端设备根据当前电池电压Vbat1、终端设备自身能够正常工作的最低电压Vmin、电池内阻R计算第一最大放电电流值Imax1,具体计算方法如下:Exemplarily, the terminal device calculates the first maximum discharge current value Imax1 according to the current battery voltage Vbat1, the lowest voltage Vmin that the terminal device can operate normally, and the battery internal resistance R. The specific calculation method is as follows:
Imax1=(Vbat1-Vmin)/RImax1=(Vbat1-Vmin)/R
终端设备的充电芯片中预先设置了一组电流值:{I1,I2,I3,……,In},在预先设置的一组放电流值中选取一个电流值为Iout1,当Iout1同时满足:Iout1<Imax1,且Iout1=max(I1,I2,I3,……,In)时,确定Iout1为第一放电电流值。其中,max(I1,I2,I3,……,In)为在集合(I1,I2,I3,……,In)中取最大值。即Iout1为集合(I1,I2,I3,……,In)中小于Imax2的最大电流值。A set of current values are preset in the charging chip of the terminal device: {I1, I2, I3, ..., In}, and a current value of Iout1 is selected among a preset set of discharge current values, and when Iout1 is satisfied at the same time: Iout1 When <Imax1, and Iout1=max(I1, I2, I3, ..., In), it is determined that Iout1 is the first discharge current value. Where max(I1, I2, I3, ..., In) takes the maximum value in the set (I1, I2, I3, ..., In). That is, Iout1 is the maximum current value smaller than Imax2 in the set (I1, I2, I3, ..., In).
另一种可能的实现方式,终端设备还可以根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为所述第一放电电流值。In another possible implementation, the terminal device may further determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is the first A discharge current value.
示例性的,终端设备获取当前电池的第一电压Vbat1,将当前电池的第一电压Vbat1、终端设备自身最低工作电压Vmin,电池内阻R分别写入放电芯片寄存器Reg_Vcurrent、Reg_Vmin、Reg_R,放电芯片根据3个寄存器的值,计算第二最大放电电流值Imax1,具体计算方法如下:Exemplarily, the terminal device acquires the first voltage Vbat1 of the current battery, and writes the first voltage Vbat1 of the current battery, the minimum operating voltage Vmin of the terminal device itself, and the internal resistance R of the battery into the discharge chip registers Reg_Vcurrent, Reg_Vmin, Reg_R, respectively, and the discharge chip According to the values of the three registers, the second maximum discharge current value Imax1 is calculated, and the specific calculation method is as follows:
Imax1=(Vbat1-Vmin)/RImax1=(Vbat1-Vmin)/R
其中,Imax1为第一放电电流值。Where Imax1 is the first discharge current value.
其中,寄存器是有限存贮容量的高速存贮部件,它可用来暂存指令、 数据和地址。Wherein, the register is a high-speed storage component of limited storage capacity, which can be used to temporarily store instructions, Data and address.
具体的,当终端设备确定了第一放电电流值后,打开放电开关,开始对外放电,即终端设备对负载进行充电。Specifically, after the terminal device determines the first discharge current value, the discharge switch is turned on to start external discharge, that is, the terminal device charges the load.
步骤103、每隔第一预设时间获取所述电池的第二电压。Step 103: Acquire a second voltage of the battery every first preset time.
具体的,终端设备每隔第一预设时间获取电池的第二电压,其中,第一预设时间可以为1秒、2秒或者其它值,所述第一预设时间小于终端设备的放电时间。Specifically, the terminal device acquires the second voltage of the battery every first preset time, where the first preset time may be 1 second, 2 seconds, or other values, and the first preset time is less than the discharge time of the terminal device. .
示例性的,终端设备定时1秒检测一次电池的电压,该电压为电池的第二电压。Illustratively, the terminal device detects the voltage of the battery once a second, which is the second voltage of the battery.
其中,当所述第一电压与所述第二电压的电压差值小于等于预设电压值时,则继续执行步骤103。Wherein, when the voltage difference between the first voltage and the second voltage is less than or equal to the preset voltage value, step 103 is continued.
步骤104、当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值。Step 104: When the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery The internal resistance determines the second discharge current value.
具体的,终端设备对第一预设时间后电池的第二电压和第一电压进行比较判断,当所述第一电压与所述第二电压的电压差值大于预设电压值时,需要重新确定放电电流,然后,终端设备以重新确定放电电流,即第二放电电流值进行放电。Specifically, the terminal device compares the second voltage of the battery and the first voltage after the first preset time, and when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, the terminal device needs to be re- The discharge current is determined, and then the terminal device discharges by redetermining the discharge current, that is, the second discharge current value.
一种可能的实现方式,终端设备根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值。其次,选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。In a possible implementation manner, the terminal device determines a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance. Secondly, selecting a maximum of the pre-stored current values as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
其中,预设电压值优选的可以为200mV,也可以在100mV~250mV之间取值,还可以为其它的值,本发明实施例对此不作限定。The preset voltage value is preferably 200 mV, and may be a value between 100 mV and 250 mV, and may be other values, which is not limited in the embodiment of the present invention.
示例性的,终端设备判断第二电压Vbat2比第一电压Vbat1下降的电压 值,当该下降的电压值大于200mV,根据该第二电压Vbat2、最低工作电压Vmin、电池内阻R、第一放电电流值Iout1计算第三最大放电电流值Imax2,具体计算方法如下:Exemplarily, the terminal device determines the voltage that the second voltage Vbat2 is lower than the first voltage Vbat1. The value, when the voltage value of the drop is greater than 200 mV, the third maximum discharge current value Imax2 is calculated according to the second voltage Vbat2, the lowest operating voltage Vmin, the battery internal resistance R, and the first discharge current value Iout1, and the specific calculation method is as follows:
Imax2=(Vbat2-Vmin)/R+Iout1Imax2=(Vbat2-Vmin)/R+Iout1
示例性的,终端设备的充电芯片中预先设置了一组电流值:{I1,I2,I3,……,In},在预先设置的一组放电流值中选取一个电流值为Iout2,当Iout2同时满足:Iout2<Imax2,且Iout2=max(I1,I2,I3,……,In),其中,max(I1,I2,I3,……,In)为在集合(I1,I2,I3,……,In)中取最大值,即Iout2为集合(I1,I2,I3,……,In)中小于Imax2的最大电流值。Exemplarily, a set of current values are preset in the charging chip of the terminal device: {I1, I2, I3, ..., In}, and a current value of Iout2 is selected among a preset set of discharge current values, when Iout2 At the same time, it satisfies: Iout2<Imax2, and Iout2=max(I1, I2, I3, ..., In), where max(I1, I2, I3, ..., In) is in the set (I1, I2, I3,... The maximum value is taken in ..., In), that is, Iout2 is the maximum current value smaller than Imax2 in the set (I1, I2, I3, ..., In).
另一种可能的实现方式,终端设备根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。In another possible implementation manner, the terminal device determines a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, and the fourth maximum discharge The current value is the second discharge current value.
示例性的,终端设备判断第二电压Vbat2比第一电压Vbat1下降的电压值,当该下降的电压值大于200mV,将当前第二电压Vbat2,写入寄存器Reg_Vcurrent,根据该第二电压Vbat2、最低工作电压Vmin、电池内阻R、第一放电电流值Iout1计算第四最大放电电流值Imax2,具体计算方法如下:Exemplarily, the terminal device determines a voltage value of the second voltage Vbat2 that is lower than the first voltage Vbat1. When the decreased voltage value is greater than 200mV, the current second voltage Vbat2 is written into the register Reg_Vcurrent, according to the second voltage Vbat2, the lowest value. The working voltage Vmin, the internal resistance R of the battery, and the first discharge current value Iout1 calculate the fourth maximum discharge current value Imax2, and the specific calculation method is as follows:
Imax2=(Vbat2-Vmin)/R+Iout1Imax2=(Vbat2-Vmin)/R+Iout1
其中,Imax2为所述第二放电电流值Iout2。Wherein Imax2 is the second discharge current value Iout2.
步骤105、当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电。Step 105: When the second discharge current value satisfies a preset rule, determine whether to continue discharging according to a user instruction.
其中,预设规则可以为将所述第二放电电流值与所述预存储的电流值中最小值或者预设电流值进行比较,当所述第二放电电流值小于等于所述预存储的电流值中最小值,或者,当所述第二放电电流值小于预设电流值时,为满足预设规则。The preset rule may be to compare the second discharge current value with a minimum value of the pre-stored current value or a preset current value, when the second discharge current value is less than or equal to the pre-stored current The minimum value of the value, or when the second discharge current value is less than the preset current value, is to satisfy the preset rule.
一种可能的实现方式中,当所述第二放电电流值小于等于所述预存储 的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。In a possible implementation manner, when the second discharge current value is less than or equal to the pre-storage When the current value is the minimum value, the user is prompted to be too low, and according to the user indication, it is determined whether to continue discharging.
示例性的,第二放电电流值Iout2<=min(I1,I2,I3,……,In),其中,min(I1,I2,I3,……,In)为在集合(I1,I2,I3,……,In)中取最小值,提示用户,电池电量低,是否停止充电功能;如果用户选择选择“是”,则终端设备关闭放电功能,即停止对负载的充电功能;如果用户选择“否”,则终端设备保持放电电流值不变,同时提醒用户保存终端设备当前其它功能模块的资源、数据,并准备随时关闭终端设备其它功能模块的工作。Illustratively, the second discharge current value Iout2 <=min(I1, I2, I3, ..., In), where min(I1, I2, I3, ..., In) is in the set (I1, I2, I3) , ..., In) takes the minimum value, prompts the user, the battery is low, and stops charging; if the user chooses to select "Yes", the terminal device turns off the discharging function, that is, stops charging the load; if the user selects " No, the terminal device keeps the discharge current value unchanged, and reminds the user to save the resources and data of other current functional modules of the terminal device, and prepares to close other functional modules of the terminal device at any time.
另一种可能的实现方式中,当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。In another possible implementation manner, when the second discharge current value is less than the preset current value, the user is prompted to be too low, and determining whether to continue discharging according to the user indication.
示例性的,第二放电电流值Iout2小于放电芯片预设电流值Imin,提示用户电池电量低,是否停止充电功能;如果用户选择选择“是”,则终端设备关闭放电功能,即停止对负载的充电功能;如果用户选择“否”,则终端设备保持放电电流值不变,同时提醒用户保存终端设备当前其它功能模块的资源、数据,并准备随时关闭终端设备其它功能模块的工作。Exemplarily, the second discharge current value Iout2 is smaller than the discharge chip preset current value Imin, prompting the user that the battery power is low, and whether the charging function is stopped; if the user selects “Yes”, the terminal device turns off the discharging function, that is, stops the load. Charging function; if the user selects “No”, the terminal device keeps the discharge current value unchanged, and reminds the user to save the resources and data of other current functional modules of the terminal device, and prepares to close other functional modules of the terminal device at any time.
其中,预设电流值为根据经验和实验得到的负载充电所需要的最小电流值,预设电流值的取值范围可以为40mA~60mA。The preset current value is a minimum current value required for charging according to experience and experiment, and the preset current value may range from 40 mA to 60 mA.
在一个实施例中,当所述第二放电电流值不满足预设规则时,执行步骤103。In one embodiment, when the second discharge current value does not satisfy the preset rule, step 103 is performed.
具体的,当所述第二放电电流值大于所述预存储的电流值中最小值,或者,当所述第二放电电流值大于等于预设电流值时,为不满足预设规则,需要执行步骤103。Specifically, when the second discharge current value is greater than a minimum value of the pre-stored current value, or when the second discharge current value is greater than or equal to a preset current value, the preset rule is not satisfied, and needs to be performed. Step 103.
本发明实施例提供的放电方法,当终端设备检测到负载插入后,根据当前电池电压、终端设备自身能够正常工作的最低电压以及电池内阻来确定初始放电电流,当电池开启放电后,不会影响该终端设备自身其它功能 的正常工作,并能够在放电过程中不断修正放电电流来保证该终端设备自身其它功能的工作稳定,从而保证了终端设备工作的稳定性。According to the discharge method provided by the embodiment of the present invention, after the terminal device detects the load insertion, the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. Affect other functions of the terminal device itself The normal operation, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
实施例二Embodiment 2
本发明实施例提供一种放电方法,如图4所示,该方法包括:An embodiment of the present invention provides a discharging method. As shown in FIG. 4, the method includes:
步骤201、当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻。Step 201: When the load is detected, obtain the first voltage of the current battery, the minimum working voltage of the terminal device itself, and the internal resistance of the battery.
需要说明的是,本发明实施例提供的放电方法的执行主体为终端设备,如图1所示,该终端设备是一个同时兼具充电功能和其它功能的设备,其中,充电功能可以理解为放电功能,其它功能可以理解为:例如,拨号上网、路由器、网卡、手机等调制解调器(modem)功能。该终端设备包含的modem功能可以包含数据业务、音视频业务、通讯业务、或者其它按键、显示功能等,本发明实施例对此不作具体限定。It should be noted that the execution body of the discharge method provided by the embodiment of the present invention is a terminal device. As shown in FIG. 1 , the terminal device is a device that has both a charging function and other functions, wherein the charging function can be understood as discharging. Function, other functions can be understood as: for example, dial-up Internet access, routers, network cards, mobile phones and other modem functions. The modem function included in the terminal device may include a data service, an audio and video service, a communication service, or other keys, a display function, and the like, which are not specifically limited in this embodiment of the present invention.
具体的,当终端设备检测到有负载插入时,获取当前电池的第一电压、该终端设备自身最低工作电压以及电池内阻。其中,该终端设备自身最低工作电压可以理解为该终端设备在使用modem功能时所需要的最低工作电压,例如,终端设备播放音视频时需要的最低工作电压。Specifically, when the terminal device detects that a load is inserted, the first voltage of the current battery, the lowest working voltage of the terminal device, and the internal resistance of the battery are acquired. The minimum operating voltage of the terminal device itself can be understood as the minimum operating voltage required by the terminal device when using the modem function, for example, the minimum operating voltage required for the terminal device to play audio and video.
其中,本发明实施例中的负载可以理解为被充电的电子设备,例如,手机、平板电脑等。The load in the embodiment of the present invention can be understood as a charged electronic device, such as a mobile phone, a tablet computer, or the like.
步骤202、根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值。Step 202: Determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery.
示例性的,终端设备根据当前电池电压Vbat1、终端设备自身能够正常工作的最低电压Vmin、电池内阻R计算第一最大放电电流值Imax1,具体计算方法如下:Exemplarily, the terminal device calculates the first maximum discharge current value Imax1 according to the current battery voltage Vbat1, the lowest voltage Vmin that the terminal device can operate normally, and the battery internal resistance R. The specific calculation method is as follows:
Imax1=(Vbat1-Vmin)/RImax1=(Vbat1-Vmin)/R
步骤203、选取预存储的电流值中最大值为第一电流值,当所述第一电 流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。Step 203: Select a maximum value of the pre-stored current values as the first current value, when the first power When the flow value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
其中,预存储的电流值为预先设置在终端设备的充电芯片中的一组电流值,例如,{30mV,35mV,40mV,……,In},该电流值是根据实验得到的。The pre-stored current value is a set of current values preset in the charging chip of the terminal device, for example, {30 mV, 35 mV, 40 mV, . . . , In}, and the current value is obtained experimentally.
示例性的,终端设备的充电芯片中预先设置了一组电流值:{I1,I2,I3,……,In},在预先设置的一组放电流值中选取一个电流值为Iout1,当Iout1同时满足:Iout1<Imax1,且Iout1=max(I1,I2,I3,……,In)时,确定Iout1为第一放电电流值。其中,max(I1,I2,I3,……,In)为在集合(I1,I2,I3,……,In)中取最大值。Exemplarily, a set of current values are preset in the charging chip of the terminal device: {I1, I2, I3, ..., In}, and a current value of Iout1 is selected among a preset set of discharge current values, when Iout1 While satisfying: Iout1 < Imax1, and Iout1 = max (I1, I2, I3, ..., In), it is determined that Iout1 is the first discharge current value. Where max(I1, I2, I3, ..., In) takes the maximum value in the set (I1, I2, I3, ..., In).
步骤204、根据所述第一放电电流值进行放电。Step 204: Perform discharging according to the first discharge current value.
具体的,当终端设备确定了第一放电电流值后,打开放电开关,开始对外放电,即终端设备对负载进行充电。Specifically, after the terminal device determines the first discharge current value, the discharge switch is turned on to start external discharge, that is, the terminal device charges the load.
步骤205、每隔第一预设时间获取所述电池的第二电压。Step 205: Acquire a second voltage of the battery every first preset time.
具体的,终端设备每隔第一预设时间获取电池的第二电压,其中,第一预设时间可以为1秒、2秒或者其它值,所述第一预设时间小于终端设备的放电时间。Specifically, the terminal device acquires the second voltage of the battery every first preset time, where the first preset time may be 1 second, 2 seconds, or other values, and the first preset time is less than the discharge time of the terminal device. .
示例性的,终端设备定时1秒检测一次电池的电压,该电压为电池的第二电压。Illustratively, the terminal device detects the voltage of the battery once a second, which is the second voltage of the battery.
其中,当所述第一电压与所述第二电压的电压差值小于等于预设电压值时,则继续执行步骤205。Wherein, when the voltage difference between the first voltage and the second voltage is less than or equal to the preset voltage value, step 205 is continued.
步骤206、当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值。 Step 206, when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery The internal resistance determines the third maximum discharge current value.
具体的,终端设备对第一预设时间后电池的第二电压和第一电压进行 比较判断,当所述第一电压与所述第二电压的电压差值大于预设电压值时,需要重新确定放电电流。首先,终端设备根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值。Specifically, the terminal device performs the second voltage and the first voltage of the battery after the first preset time The comparison judges that when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, it is necessary to re-determine the discharge current. First, the terminal device determines a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance.
其中,预设电压值优选的可以为200mV,也可以在100mV~250mV之间取值,还可以为其它的值,本发明实施例对此不作限定。The preset voltage value is preferably 200 mV, and may be a value between 100 mV and 250 mV, and may be other values, which is not limited in the embodiment of the present invention.
示例性的,终端设备判断第二电压Vbat2比第一电压Vbat1下降的电压值,当该下降的电压值大于200mV,根据该第二电压Vbat2、最低工作电压Vmin、电池内阻R、第一放电电流值Iout1计算第三最大放电电流值Imax2,具体计算方法如下:Exemplarily, the terminal device determines a voltage value of the second voltage Vbat2 that is lower than the first voltage Vbat1, and when the decreased voltage value is greater than 200mV, according to the second voltage Vbat2, the minimum operating voltage Vmin, the battery internal resistance R, and the first discharge The current value Iout1 calculates the third maximum discharge current value Imax2, and the specific calculation method is as follows:
Imax2=(Vbat2-Vmin)/R+Iout1Imax2=(Vbat2-Vmin)/R+Iout1
步骤207、选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。Step 207: Select a maximum value of the pre-stored current values as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge Current value.
示例性的,终端设备的充电芯片中预先设置了一组电流值:{I1,I2,I3,……,In},在预先设置的一组放电流值中选取一个电流值为Iout2,当Iout2同时满足:Iout2<Imax2,且Iout2=max(I1,I2,I3,……,In),其中,max(I1,I2,I3,……,In)为在集合(I1,I2,I3,……,In)中取最大值,即Iout2为集合(I1,I2,I3,……,In)中小于Imax2的最大电流值。Exemplarily, a set of current values are preset in the charging chip of the terminal device: {I1, I2, I3, ..., In}, and a current value of Iout2 is selected among a preset set of discharge current values, when Iout2 At the same time, it satisfies: Iout2<Imax2, and Iout2=max(I1, I2, I3, ..., In), where max(I1, I2, I3, ..., In) is in the set (I1, I2, I3,... The maximum value is taken in ..., In), that is, Iout2 is the maximum current value smaller than Imax2 in the set (I1, I2, I3, ..., In).
具体的,终端设备确定第二放电电流值后,以所述第二放电电流值进行放电。Specifically, after the terminal device determines the second discharge current value, discharging is performed at the second discharge current value.
其中,当所述第二放电电流值大于所述预存储的电流值中最小值时,执行步骤205。Wherein, when the second discharge current value is greater than a minimum value of the pre-stored current values, step 205 is performed.
具体的,当所述第二放电电流值大于所述预存储的电流值中最小值时,可以理解为终端设备以所述第二放电电流值进行放电不会影响终端设备其它功能模块的工作,可以继续以所述第二放电电流值进行放电,执行步骤 205,即每隔第一预设时间获取所述电池的第二电压。Specifically, when the second discharge current value is greater than a minimum value of the pre-stored current value, it may be understood that discharging the terminal device with the second discharge current value does not affect the operation of other functional modules of the terminal device. Can continue to discharge with the second discharge current value, and perform steps 205, that is, acquiring a second voltage of the battery every first preset time.
步骤208、当所述第二放电电流值小于等于所述预存储的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。Step 208: When the second discharge current value is less than or equal to a minimum value of the pre-stored current values, prompting the user that the power is too low, and determining whether to continue discharging according to the user indication.
示例性的,当第二放电电流值Iout2<=min(I1,I2,I3,……,In),其中,min(I1,I2,I3,……,In)为在集合(I1,I2,I3,……,In)中取最小值,提示用户电池电量低,是否停止充电功能。如果用户选择选择“是”,则终端设备关闭放电功能,即停止对负载的充电功能;如果用户选择“否”,则终端设备保持放电电流值不变,同时提醒用户保存终端设备当前其它功能模块的资源、数据,并准备随时关闭终端设备其它功能模块的工作。Illustratively, when the second discharge current value Iout2 <= min (I1, I2, I3, ..., In), where min(I1, I2, I3, ..., In) is in the set (I1, I2, The minimum value is taken in I3, ..., In), prompting the user that the battery is low and whether to stop the charging function. If the user selects "Yes", the terminal device turns off the discharging function, that is, stops the charging function of the load; if the user selects "No", the terminal device keeps the discharge current value unchanged, and reminds the user to save the current other functional modules of the terminal device. Resources, data, and ready to shut down other functional modules of the terminal device at any time.
另外,如果用户在充电过程中拔出负载,即被充电设备,终端设备关闭放电功能。In addition, if the user pulls out the load during the charging process, that is, the device is charged, the terminal device turns off the discharging function.
具体的,对本发明实施例提供的放电方法中的电压变化进行说明,如图2所示,实线表示现有技术中带有放电功能的终端设备放电过程中电池电压的变化,虚线表示本发明实施例提供的带有放电功能的终端设备放电过程中电池电压的变化。在A点电池满电电压为Vfull,在放电过程中电池电量不断消耗,假设在电池电压为Vin时,也就是在B点插入负载,终端设备对外放电,即本发明实施例中终端设备的充电/放电功能,此时,由于电池本身内阻和放电电流的存在,电池电压会被瞬间拉低;现有技术中,电池电压被拉到D点,如果D点低于终端设备其它功能模块的最低工作电压Vmin,会导致终端设备其它功能模块停止工作,如图1中所描述的数据业务、音视频、通讯业务等modem业务来不及保存和处理而丢失;而本发明实施例提供的放电方法能确保电池电压被拉到Vmin以上,即C点,之后随着放电过程的继续,电池电量继续减少,当电池电压接近Vmin,本发明实施例中终端设备其它功能模块有足够时间处理尚未保存的数据,并提示用户是否继续放电,从而提高了终端设备工作的稳定性。 Specifically, the voltage variation in the discharge method provided by the embodiment of the present invention is described. As shown in FIG. 2, the solid line indicates the change of the battery voltage during the discharge process of the terminal device with the discharge function in the prior art, and the broken line indicates the present invention. The variation of the battery voltage during discharge of the terminal device with a discharge function provided by the embodiment. At the point A, the battery full-charge voltage is Vfull, and the battery power is continuously consumed during the discharge process. It is assumed that when the battery voltage is Vin, that is, the load is inserted at point B, the terminal device is externally discharged, that is, the terminal device is charged in the embodiment of the present invention. / discharge function, at this time, due to the internal resistance and discharge current of the battery itself, the battery voltage will be pulled down instantaneously; in the prior art, the battery voltage is pulled to point D, if the point D is lower than other functional modules of the terminal device The minimum operating voltage Vmin causes the other functional modules of the terminal device to stop working, and the modem services such as the data service, the audio and video, and the communication service are not saved and processed, and are lost as shown in FIG. 1. The discharging method provided by the embodiment of the present invention can Ensure that the battery voltage is pulled above Vmin, that is, point C. Then, as the discharge process continues, the battery power continues to decrease. When the battery voltage is close to Vmin, other functional modules of the terminal device have sufficient time to process unsaved data in the embodiment of the present invention. And prompt the user whether to continue to discharge, thereby improving the stability of the operation of the terminal device.
本发明实施例提供的放电方法,当终端设备检测到负载插入后,根据当前电池电压、终端设备自身能够正常工作的最低电压以及电池内阻来确定初始放电电流,当电池开启放电后,不会影响该终端设备自身其它功能的正常工作,并能够在放电过程中不断修正放电电流来保证该终端设备自身其它功能的工作稳定,从而保证了终端设备工作的稳定性。According to the discharge method provided by the embodiment of the present invention, after the terminal device detects the load insertion, the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. It affects the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
实施例三Embodiment 3
本发明实施例提供一种放电方法,如图5所示,该方法包括:The embodiment of the invention provides a discharging method. As shown in FIG. 5, the method includes:
步骤301、当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻。Step 301: When the load is detected, obtain the first voltage of the current battery, the minimum operating voltage of the terminal device itself, and the internal resistance of the battery.
需要说明的是,本发明实施例提供的放电方法的执行主体为终端设备,如图1所示,该终端设备可以是一个同时兼具充电功能和其它功能的设备,其中,充电功能可以理解为放电功能,其它功能可以理解为:例如,拨号上网、路由器、网卡、手机等调制解调器(modem)功能。该终端设备包含的modem功能可以包含数据业务、音视频业务、通讯业务、或者其它按键、显示功能等,本发明实施例对此不作具体限定。It should be noted that the execution body of the discharge method provided by the embodiment of the present invention is a terminal device. As shown in FIG. 1 , the terminal device may be a device that has both a charging function and other functions, wherein the charging function can be understood as Discharge function, other functions can be understood as: for example, dial-up Internet access, routers, network cards, mobile phones and other modem functions. The modem function included in the terminal device may include a data service, an audio and video service, a communication service, or other keys, a display function, and the like, which are not specifically limited in this embodiment of the present invention.
具体的,当终端设备检测到有负载插入时,获取当前电池的第一电压、该终端设备自身最低工作电压以及电池内阻。其中,该终端设备自身最低工作电压可以理解为该终端设备在使用modem功能时所需要的最低工作电压,例如,终端设备播放音视频时需要的最低工作电压。Specifically, when the terminal device detects that a load is inserted, the first voltage of the current battery, the lowest working voltage of the terminal device, and the internal resistance of the battery are acquired. The minimum operating voltage of the terminal device itself can be understood as the minimum operating voltage required by the terminal device when using the modem function, for example, the minimum operating voltage required for the terminal device to play audio and video.
其中,本发明实施例中的负载可以理解为被充电的电子设备,例如,手机、平板电脑等。The load in the embodiment of the present invention can be understood as a charged electronic device, such as a mobile phone, a tablet computer, or the like.
步骤302、根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为第一放电电流值。Step 302: Determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is a first discharge current value.
示例性的,终端设备获取当前电池的第一电压Vbat1,将当前电池电压Vbat1、终端设备自身最低工作电压Vmin,电池内阻R分别写入放电芯片 寄存器Reg_Vcurrent、Reg_Vmin、Reg_R,放电芯片根据3个寄存器的值,计算第二最大放电电流值Imax1,具体计算方法如下:Exemplarily, the terminal device acquires the first voltage Vbat1 of the current battery, and writes the current battery voltage Vbat1, the terminal device's own minimum operating voltage Vmin, and the battery internal resistance R to the discharge chip. The registers Reg_Vcurrent, Reg_Vmin, Reg_R, the discharge chip calculates the second maximum discharge current value Imax1 according to the values of the three registers, and the specific calculation method is as follows:
Imax1=(Vbat1-Vmin)/RImax1=(Vbat1-Vmin)/R
其中,Imax1为第一放电电流值。Where Imax1 is the first discharge current value.
步骤303、根据所述第一放电电流值进行放电。Step 303: Perform discharging according to the first discharge current value.
具体的,当终端设备确定了第一放电电流值后,打开放电开关,开始对外放电,即终端设备对负载进行充电。Specifically, after the terminal device determines the first discharge current value, the discharge switch is turned on to start external discharge, that is, the terminal device charges the load.
步骤304、获取第一预设时间后所述电池的第二电压。Step 304: Acquire a second voltage of the battery after the first preset time.
具体的,终端设备每隔第一预设时间获取电池的第二电压,其中,第一预设时间可以为1秒、2秒或者其它值,所述第一预设时间小于终端设备的放电时间。Specifically, the terminal device acquires the second voltage of the battery every first preset time, where the first preset time may be 1 second, 2 seconds, or other values, and the first preset time is less than the discharge time of the terminal device. .
示例性的,终端设备定时1秒检测一次电池的电压,该电压为电池的第二电压。Illustratively, the terminal device detects the voltage of the battery once a second, which is the second voltage of the battery.
其中,当所述第一电压与所述第二电压的电压差值小于等于预设电压值时,则继续执行步骤304。Wherein, when the voltage difference between the first voltage and the second voltage is less than or equal to the preset voltage value, step 304 is continued.
步骤305、当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。 Step 305, when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery The internal resistance determines a fourth maximum discharge current value, and the fourth maximum discharge current value is the second discharge current value.
具体的,终端设备对第一预设时间后电池的第二电压和第一电压进行比较判断,当所述第一电压与所述第二电压的电压差值大于预设电压值时,需要重新确定放电电流。终端设备根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值,终端设备确定第二放电电流值后,以所述第二放电电流值进行放电。 Specifically, the terminal device compares the second voltage of the battery and the first voltage after the first preset time, and when the voltage difference between the first voltage and the second voltage is greater than a preset voltage value, the terminal device needs to be re- Determine the discharge current. The terminal device determines a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, and the fourth maximum discharge current value is the second discharge The current value is determined by the terminal device after determining the second discharge current value.
示例性的,终端设备判断第二电压Vbat2比第一电压Vbat1下降的电压值,当该下降的电压值大于200mV,将当前电压Vbat2,写入寄存器Reg_Vcurrent,根据该第二电压Vbat2、最低工作电压Vmin、电池内阻R、第一放电电流值Iout1计算第四最大放电电流值Imax2,具体计算方法如下:Exemplarily, the terminal device determines a voltage value of the second voltage Vbat2 that is lower than the first voltage Vbat1. When the falling voltage value is greater than 200mV, the current voltage Vbat2 is written into the register Reg_Vcurrent according to the second voltage Vbat2 and the minimum operating voltage. Vmin, battery internal resistance R, first discharge current value Iout1 calculate the fourth maximum discharge current value Imax2, the specific calculation method is as follows:
Imax2=(Vbat2-Vmin)/R+Iout1Imax2=(Vbat2-Vmin)/R+Iout1
其中,Imax2为所述第二放电电流值Iout2。Wherein Imax2 is the second discharge current value Iout2.
其中,当所述第二放电电流值大于等于预设电流值时,执行步骤304。Wherein, when the second discharge current value is greater than or equal to the preset current value, step 304 is performed.
具体的,当所述第二放电电流值大于等于预设电流值时,可以理解为终端设备以所述第二放电电流值进行放电不会影响终端设备其它功能模块的工作,可以继续以所述第二放电电流值进行放电,执行步骤304,即每隔第一预设时间获取所述电池的第二电压。Specifically, when the second discharge current value is greater than or equal to the preset current value, it can be understood that discharging the terminal device with the second discharge current value does not affect the operation of other functional modules of the terminal device, and may continue to The second discharge current value is discharged, and step 304 is performed, that is, the second voltage of the battery is acquired every first preset time.
步骤306、当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。Step 306: When the second discharge current value is less than the preset current value, prompting the user that the power is too low, and determining whether to continue discharging according to the user indication.
示例性的,第二放电电流值Iout2小于放电芯片预设电流值Imin,提示用户电池电量低,是否停止充电功能;如果用户选择选择“是”,则终端设备关闭放电功能,即停止对负载的充电功能;如果用户选择“否”,则终端设备保持放电电流值不变,同时提醒用户保存终端设备当前其它功能模块的资源、数据,并准备随时关闭终端设备其它功能模块的工作。Exemplarily, the second discharge current value Iout2 is smaller than the discharge chip preset current value Imin, prompting the user that the battery power is low, and whether the charging function is stopped; if the user selects “Yes”, the terminal device turns off the discharging function, that is, stops the load. Charging function; if the user selects “No”, the terminal device keeps the discharge current value unchanged, and reminds the user to save the resources and data of other current functional modules of the terminal device, and prepares to close other functional modules of the terminal device at any time.
其中,预设电流值为根据经验和实验得到的负载充电所需要的最小电流值,预设电流值的取值范围可以为40mA~60mA。The preset current value is a minimum current value required for charging according to experience and experiment, and the preset current value may range from 40 mA to 60 mA.
另外,如果用户在充电过程中拔出负载,即被充电设备,终端设备关闭放电功能。In addition, if the user pulls out the load during the charging process, that is, the device is charged, the terminal device turns off the discharging function.
具体的,对本发明实施例提供的放电方法中的电压变化进行说明,如图2所示,实线表示现有技术中带有放电功能的终端设备放电过程中电池电压的变化,虚线表示本发明实施例提供的带有放电功能的终端设备放电 过程中电池电压的变化。在A点电池满电电压为Vfull,在放电过程中电池电量不断消耗,假设在电池电压为Vin时,也就是在B点插入负载,终端设备对外放电,即本发明实施例中终端设备的充电/放电功能,此时,由于电池本身内阻和放电电流的存在,电池电压会被瞬间拉低;现有技术中,电池电压被拉到D点,如果D点低于终端设备其它功能模块的最低工作电压Vmin,会导致终端设备其它功能模块停止工作,如图1中所描述的数据业务、音视频、通讯业务等modem业务来不及保存和处理而丢失;而本发明实施例提供的放电方法能确保电池电压被拉到Vmin以上,即C点,之后随着放电过程的继续,电池电量继续减少,当电池电压接近Vmin,本发明实施例中终端设备其它功能模块有足够时间处理尚未保存的数据,并提示用户是否继续放电,从而提高了终端设备工作的稳定性。Specifically, the voltage variation in the discharge method provided by the embodiment of the present invention is described. As shown in FIG. 2, the solid line indicates the change of the battery voltage during the discharge process of the terminal device with the discharge function in the prior art, and the broken line indicates the present invention. The terminal device with discharge function provided by the embodiment discharges The change in battery voltage during the process. At the point A, the battery full-charge voltage is Vfull, and the battery power is continuously consumed during the discharge process. It is assumed that when the battery voltage is Vin, that is, the load is inserted at point B, the terminal device is externally discharged, that is, the terminal device is charged in the embodiment of the present invention. / discharge function, at this time, due to the internal resistance and discharge current of the battery itself, the battery voltage will be pulled down instantaneously; in the prior art, the battery voltage is pulled to point D, if the point D is lower than other functional modules of the terminal device The minimum operating voltage Vmin causes the other functional modules of the terminal device to stop working, and the modem services such as the data service, the audio and video, and the communication service are not saved and processed, and are lost as shown in FIG. 1. The discharging method provided by the embodiment of the present invention can Ensure that the battery voltage is pulled above Vmin, that is, point C. Then, as the discharge process continues, the battery power continues to decrease. When the battery voltage is close to Vmin, other functional modules of the terminal device have sufficient time to process unsaved data in the embodiment of the present invention. And prompt the user whether to continue to discharge, thereby improving the stability of the operation of the terminal device.
本发明实施例提供的放电方法,当终端设备检测到负载插入后,根据当前电池电压、终端设备自身能够正常工作的最低电压以及电池内阻来确定初始放电电流,当电池开启放电后,不会影响该终端设备自身其它功能的正常工作,并能够在放电过程中不断修正放电电流来保证该终端设备自身其它功能的工作稳定,从而保证了终端设备工作的稳定性。According to the discharge method provided by the embodiment of the present invention, after the terminal device detects the load insertion, the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. It affects the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的放电方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing discharging method.
实施例四Embodiment 4
本发明实施例提供一种终端设备1,如图6所示,所述终端设备1包括:控制单元10,充放电单元11;其中,The embodiment of the present invention provides a terminal device 1. As shown in FIG. 6, the terminal device 1 includes: a control unit 10, and a charging and discharging unit 11;
所述控制单元10,配置为当检测到负载时,获取当前电池的第一电压、自身最低工作电压以及电池内阻;还配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值;还配置为每隔第一预设时间获取所述电池的第二电压;当所述第一电压与所述第二电压的电压差 值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值;还配置为当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电。The control unit 10 is configured to acquire a first voltage of the current battery, a minimum operating voltage of the battery, and an internal resistance of the battery when the load is detected; and configured to determine, according to the first voltage, the minimum operating voltage, and the battery The internal resistance determines a first discharge current value; and is further configured to acquire a second voltage of the battery every first preset time; when the voltage difference between the first voltage and the second voltage When the value is greater than the preset voltage value, determining a second discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery; further configured to be when the second discharge When the current value satisfies the preset rule, it is determined according to the user's instruction whether to continue discharging.
所述充放电单元11,配置为根据所述第一放电电流值进行放电。The charge and discharge unit 11 is configured to discharge according to the first discharge current value.
在一个实施例中,所述控制单元10,配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值;还配置为选取预存储的电流值中最大值为第一电流值,当所述第一电流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。In one embodiment, the control unit 10 is configured to determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; and further configured to select a pre-stored current value The maximum value is a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
在一个实施例中,所述控制单元10,配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为所述第一放电电流值。In one embodiment, the control unit 10 is configured to determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and the second maximum discharge current value is The first discharge current value is described.
在一个实施例中,所述控制单元10,配置为根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值;还配置为选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。In an embodiment, the control unit 10 is configured to determine a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance; In order to select the maximum value of the pre-stored current values as the second current value, when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value .
在一个实施例中,所述控制单元10,配置为当所述第二放电电流值小于等于所述预存储的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。In an embodiment, the control unit 10 is configured to prompt the user to be too low when the second discharge current value is less than or equal to a minimum value of the pre-stored current value, and determine whether the user is instructed according to the user indication. Continue to discharge.
在一个实施例中,所述控制单元10,配置为根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。In one embodiment, the control unit 10 is configured to determine a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, The fourth maximum discharge current value is the second discharge current value.
在一个实施例中,所述控制单元10,配置为当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。 In an embodiment, the control unit 10 is configured to prompt the user to be too low when the second discharge current value is less than the preset current value, and determine whether to continue discharging according to the user indication.
这里,充放电单元11,配置为对电池充放电管理和充放电状态监控等,具体可以通过放电电路或者放电芯片结合软件编程来实现。控制单元是本发明增加的模块,配置为辅助充放电单元控制充放电,保证对放电的控制更准确,维持基本功能模块工作正常、稳定,具体可以通过软件编程来实现,也可以将软件算法写入寄存器,将寄存器与放电芯片集成在一起来实现。Here, the charge and discharge unit 11 is configured to charge and discharge the battery, monitor the charge and discharge state, and the like, and can be specifically implemented by a discharge circuit or a discharge chip in combination with software programming. The control unit is an added module of the invention, configured to assist the charging and discharging unit to control charging and discharging, to ensure more accurate control of discharge, and to maintain normal and stable operation of the basic function module, which can be realized by software programming or by software algorithm. Into the register, the register is integrated with the discharge chip to achieve.
在实际应用中,所述控制单元10和充放电单元11可由位于终端设备上的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)等实现。In practical applications, the control unit 10 and the charge and discharge unit 11 may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array located on the terminal device ( FPGA) and other implementations.
具体的,本发明实施例提供的终端设备的理解可以参考实施例一至实施三的放电方法的说明,本实施例在此不再赘述。For the understanding of the terminal device provided by the embodiment of the present invention, reference may be made to the description of the discharge method of the first embodiment to the third embodiment, and details are not described herein again.
本发明实施例提供的终端设备,当终端设备检测到负载插入后,根据当前电池电压、终端设备自身能够正常工作的最低电压以及电池内阻来确定初始放电电流,当电池开启放电后,不会影响该终端设备自身其它功能的正常工作,并能够在放电过程中不断修正放电电流来保证该终端设备自身其它功能的工作稳定,从而保证了终端设备工作的稳定性。The terminal device provided by the embodiment of the present invention determines the initial discharge current according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery after the terminal device detects the load insertion. It affects the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring the stability of the operation of the terminal device.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a general purpose computer, a special purpose computer, An processor of an embedded processor or other programmable data processing device to generate a machine such that instructions executed by a processor of a computer or other programmable data processing device are generated for implementation in a flow or a flow of flowcharts and/or Or a block diagram of a device in a box or a function specified in a plurality of boxes.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
在本发明实施例提供的放电方法、终端设备和计算机存储介质中,当终端设备检测到负载插入后,根据当前电池电压、终端设备自身能够正常工作的最低电压以及电池内阻来确定初始放电电流,当电池开启放电后,不会影响该终端设备自身其它功能的正常工作,并能够在放电过程中不断修正放电电流来保证该终端设备自身其它功能的工作稳定,从而保证了终端设备工作的稳定性。 In the discharge method, the terminal device and the computer storage medium provided by the embodiments of the present invention, after the terminal device detects the load insertion, the initial discharge current is determined according to the current battery voltage, the lowest voltage at which the terminal device can operate normally, and the internal resistance of the battery. When the battery is turned on and discharged, it will not affect the normal operation of other functions of the terminal device itself, and can continuously correct the discharge current during the discharge process to ensure the stability of other functions of the terminal device itself, thereby ensuring stable operation of the terminal device. Sex.

Claims (15)

  1. 一种放电方法,所述方法包括:A discharge method, the method comprising:
    当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻;When the load is detected, obtaining the first voltage of the current battery, the minimum operating voltage of the terminal device itself, and the internal resistance of the battery;
    根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,并根据所述第一放电电流值进行放电;Determining a first discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, and discharging according to the first discharge current value;
    每隔第一预设时间获取所述电池的第二电压;Acquiring a second voltage of the battery every first preset time;
    当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值;Determining, according to the second voltage, the minimum operating voltage, the first discharging current value, and the internal resistance of the battery, when a voltage difference between the first voltage and the second voltage is greater than a preset voltage value Second discharge current value;
    当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电。When the second discharge current value satisfies a preset rule, it is determined according to a user instruction whether to continue discharging.
  2. 根据权利要求1所述的放电方法,其中,所述根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,包括:The discharge method according to claim 1, wherein the determining the first discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery comprises:
    根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值;Determining a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery;
    选取预存储的电流值中最大值为第一电流值,当所述第一电流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。The maximum value of the pre-stored current values is selected as a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  3. 根据权利要求1所述的放电方法,其中,所述根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值,包括:The discharge method according to claim 1, wherein the determining the first discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery comprises:
    根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为所述第一放电电流值。Determining a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery, the second maximum discharge current value being the first discharge current value.
  4. 根据权利要求2所述的放电方法,其中,所述根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电 流值,包括:The discharge method according to claim 2, wherein said determining said second discharge electric power according to said second voltage, said minimum operating voltage, said first discharge current value, and said battery internal resistance Stream values, including:
    根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值;Determining a third maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the internal resistance of the battery;
    选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。The maximum value of the pre-stored current values is selected as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is the second discharge current value.
  5. 根据权利要求4所述的放电方法,其中,所述当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电,包括:The discharging method according to claim 4, wherein, when the second discharge current value satisfies a preset rule, determining whether to continue discharging according to a user instruction comprises:
    当所述第二放电电流值小于等于所述预存储的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。When the second discharge current value is less than or equal to a minimum value of the pre-stored current values, the user is prompted to be under-powered, and determining whether to continue discharging according to the user indication.
  6. 根据权利要求1或3所述的放电方法,其中,所述根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第二放电电流值,包括:The discharge method according to claim 1 or 3, wherein said determining a second discharge current value based on said second voltage, said minimum operating voltage, said first discharge current value, and said battery internal resistance, including :
    根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。Determining a fourth maximum discharge current value according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance, and the fourth maximum discharge current value is the second discharge current value .
  7. 根据权利要求6所述的放电方法,其中,所述当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电,包括:The discharging method according to claim 6, wherein when the second discharge current value satisfies a preset rule, determining whether to continue discharging according to a user instruction comprises:
    当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。When the second discharge current value is less than the preset current value, the user is prompted to be under-powered, and determining whether to continue discharging according to the user indication.
  8. 一种终端设备,所述终端设备包括:充放电单元,控制单元;其中,A terminal device, comprising: a charging and discharging unit, a control unit; wherein
    所述控制单元,配置为当检测到负载时,获取当前电池的第一电压、终端设备自身最低工作电压以及电池内阻;还配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一放电电流值;还配置为每隔第一预设时间获取所述电池的第二电压;当所述第一电压与所述第二电压的电压差值大于预设电压值时,根据所述第二电压、所述最低工作电压、 所述第一放电电流值和所述电池内阻确定第二放电电流值;还配置为当所述第二放电电流值满足预设规则时,根据用户指示确定是否继续放电;The control unit is configured to acquire a first voltage of the current battery, a minimum operating voltage of the terminal device, and a battery internal resistance when the load is detected, and configured to be according to the first voltage, the minimum operating voltage, and the The internal resistance of the battery determines a first discharge current value; and is further configured to acquire a second voltage of the battery every first preset time; when a voltage difference between the first voltage and the second voltage is greater than a preset voltage value According to the second voltage, the minimum operating voltage, The first discharge current value and the internal resistance of the battery determine a second discharge current value; and is further configured to determine whether to continue discharging according to a user indication when the second discharge current value satisfies a preset rule;
    所述充放电单元,配置为根据所述第一放电电流值进行放电。The charge and discharge unit is configured to discharge according to the first discharge current value.
  9. 根据权利要求8所述的终端设备,其中,所述控制单元,配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第一最大放电电流值;还配置为选取预存储的电流值中最大值为第一电流值,当所述第一电流值小于所述第一最大放电电流值时,确定所述第一电流值为所述第一放电电流值。The terminal device according to claim 8, wherein the control unit is configured to determine a first maximum discharge current value according to the first voltage, the minimum operating voltage, and the internal resistance of the battery; The maximum value of the stored current values is a first current value, and when the first current value is less than the first maximum discharge current value, determining that the first current value is the first discharge current value.
  10. 根据权利要求8所述的终端设备,其中,所述控制单元,配置为根据所述第一电压、所述最低工作电压以及所述电池内阻确定第二最大放电电流值,所述第二最大放电电流值为所述第一放电电流值。The terminal device according to claim 8, wherein the control unit is configured to determine a second maximum discharge current value according to the first voltage, the minimum operating voltage, and the battery internal resistance, the second maximum The discharge current value is the first discharge current value.
  11. 根据权利要求9所述的终端设备,其中,所述控制单元,配置为根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第三最大放电电流值;还配置为选取所述预存储的电流值中最大值为第二电流值,当所述第二电流值小于所述第三最大放电电流值时,所述第二电流值为所述第二放电电流值。The terminal device according to claim 9, wherein the control unit is configured to determine a third maximum discharge according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance a current value; configured to select a maximum of the pre-stored current values as a second current value, and when the second current value is less than the third maximum discharge current value, the second current value is The second discharge current value.
  12. 根据权利要求11所述的终端设备,其中,所述控制单元,配置为当所述第二放电电流值小于等于所述预存储的电流值中最小值时,提示用户电量过低,并根据所述用户指示确定是否继续放电。The terminal device according to claim 11, wherein the control unit is configured to prompt the user that the power is too low when the second discharge current value is less than or equal to a minimum value of the pre-stored current value, and according to the The user indicates to determine whether to continue discharging.
  13. 根据权利要求8或10所述的终端设备,其中,所述控制单元,配置为根据所述第二电压、所述最低工作电压、所述第一放电电流值和所述电池内阻确定第四最大放电电流值,所述第四最大放电电流值为所述第二放电电流值。The terminal device according to claim 8 or 10, wherein the control unit is configured to determine a fourth according to the second voltage, the minimum operating voltage, the first discharge current value, and the battery internal resistance a maximum discharge current value, the fourth maximum discharge current value being the second discharge current value.
  14. 根据权利要求13所述的终端设备,其中,所述控制单元,配置为当所述第二放电电流值小于预设电流值时,提示用户电量过低,并根据所 述用户指示确定是否继续放电。The terminal device according to claim 13, wherein the control unit is configured to prompt the user that the power is too low when the second discharge current value is less than the preset current value, and according to the The user indicates to determine whether to continue discharging.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7任一项所述的放电方法。 A computer storage medium having stored therein computer executable instructions for performing the discharge method of any one of claims 1 to 7.
PCT/CN2016/076931 2015-08-06 2016-03-21 Discharging method, terminal equipment, and computer storage medium WO2017020592A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510475693.4A CN106451580A (en) 2015-08-06 2015-08-06 Discharging method and terminal equipment
CN201510475693.4 2015-08-06

Publications (1)

Publication Number Publication Date
WO2017020592A1 true WO2017020592A1 (en) 2017-02-09

Family

ID=57942399

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076931 WO2017020592A1 (en) 2015-08-06 2016-03-21 Discharging method, terminal equipment, and computer storage medium

Country Status (2)

Country Link
CN (1) CN106451580A (en)
WO (1) WO2017020592A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017205592A1 (en) * 2017-04-03 2018-10-04 Robert Bosch Gmbh Method for determining a maximum electric current of an electrochemical energy storage system
CN110752413B (en) * 2019-09-11 2022-03-29 武汉瑞杰特材料有限责任公司 Method, circuit and system for discharging battery

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003004825A (en) * 2001-06-21 2003-01-08 Japan Storage Battery Co Ltd Method for estimating residual life of storage battery group
CN101013822A (en) * 2005-12-21 2007-08-08 三星Sdi株式会社 Method for compensating state of charge of battery and battery management system using the same
CN203251129U (en) * 2013-05-29 2013-10-23 尚师 Multifunctional charger
CN104821630A (en) * 2015-05-21 2015-08-05 苏州海博智能系统有限公司 Charger baby low power alerting method and charging system equipped with Bluetooth device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100254776B1 (en) * 1997-08-25 2000-05-01 윤종용 The charging and discharging methods of electric apparatus with a smart battery
CN104765396B (en) * 2015-03-09 2016-07-13 惠州Tcl移动通信有限公司 Shutdown voltage dynamic adjusting method and the system of adjustment based on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003004825A (en) * 2001-06-21 2003-01-08 Japan Storage Battery Co Ltd Method for estimating residual life of storage battery group
CN101013822A (en) * 2005-12-21 2007-08-08 三星Sdi株式会社 Method for compensating state of charge of battery and battery management system using the same
CN203251129U (en) * 2013-05-29 2013-10-23 尚师 Multifunctional charger
CN104821630A (en) * 2015-05-21 2015-08-05 苏州海博智能系统有限公司 Charger baby low power alerting method and charging system equipped with Bluetooth device

Also Published As

Publication number Publication date
CN106451580A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
TWI660555B (en) Method, electronic device, and computer readable medium for intelligent context based battery charging
US10404082B2 (en) Battery pack, control circuit, and electronic device
US8533509B2 (en) Device and method for controlling secondary battery
US10557890B2 (en) Battery capacity monitor
US10963033B2 (en) Variable-frequency sampling of battery voltage to determine fuel gauge power mode
US10132873B2 (en) Scheme applied into electronic device and capable of measuring resistance parameter(s) associated with battery cell
JP2011169817A (en) Battery state detection device
WO2015058410A1 (en) Adjustment method and boot method for power-off threshold voltage and electronic device thereof
JP2011082158A (en) Charge control method of battery pack
JP6041040B2 (en) Storage battery, storage battery control method, control device, and control method
US10237830B1 (en) Dynamic battery power management
WO2017020592A1 (en) Discharging method, terminal equipment, and computer storage medium
WO2020024981A1 (en) Charging method and apparatus, charging terminal, and computer readable storage medium
CN106303096B (en) Electronic equipment and method for adjusting power management strategy thereof
TWI511409B (en) Power management method, apparatus and chip and non-transitory computer readable recording medium
JP2006148997A (en) Charging apparatus and charging method
JP6860172B2 (en) Charge control device, equipment, charge control method, charge control program
JP6261970B2 (en) Battery deterioration determination device, battery deterioration determination method, and battery deterioration determination program
JP6376860B2 (en) Mobile terminal device
JP2019162010A (en) Electronic device, charge control method, and computer program
JP2016208649A (en) Battery device
JP2024002687A (en) Charging control device, charger, charging control method, and charging control program
JP2022144635A (en) Charge capacity determination method and charge capacity determination device
JP2010258680A (en) Portable terminal, portable terminal system, and method and program for warning battery remaining capacity
JP2005354900A (en) Electronic apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16832081

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16832081

Country of ref document: EP

Kind code of ref document: A1