CN107565643B - Method for starting battery charging based on power consumption detection, storage device and terminal - Google Patents
Method for starting battery charging based on power consumption detection, storage device and terminal Download PDFInfo
- Publication number
- CN107565643B CN107565643B CN201710863842.3A CN201710863842A CN107565643B CN 107565643 B CN107565643 B CN 107565643B CN 201710863842 A CN201710863842 A CN 201710863842A CN 107565643 B CN107565643 B CN 107565643B
- Authority
- CN
- China
- Prior art keywords
- power consumption
- curve
- battery
- electric quantity
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention provides a method for starting battery charging based on power consumption detection, a storage device and a terminal, wherein the method comprises the following steps: acquiring a consumed electric quantity curve of a battery in a preset time period; comparing the power consumption curve with a stored battery power consumption curve graph, and finding out a curve segment which is matched with the power consumption curve in the battery power consumption curve graph; and acquiring the range of the consumed electric quantity corresponding to the curve segment, comparing the upper limit value of the consumed electric quantity value with a pre-stored charging threshold value, and controlling the battery to enter a charging state if the difference value of the upper limit value of the consumed electric quantity value and the charging threshold value is within a preset range. According to the method, the storage device and the terminal disclosed by the invention, the electric quantity consumed by the battery is detected, and when the battery consumption reaches the requirement of charging, the battery is controlled to automatically enter the charging state, so that the guarantee is provided for the normal use of the terminal by a user.
Description
Technical Field
The invention relates to the technical field of mobile communication, in particular to a method for starting battery charging based on electric quantity consumption detection, a storage device and a terminal.
Background
Along with the popularization of mobile terminals, the mobile terminals become essential products of most users in daily life, and due to the communication function of the mobile terminals, when the users need to ask for help urgently, the mobile terminals serve as an optimal help-seeking tool, but the mobile terminals can normally operate only when the batteries are in a power-on state when being used, so that when the batteries are low in power, the batteries are charged in time, the power is maintained within a certain range, the situation that the users cannot normally use the batteries due to low power can be avoided, and therefore how to remind the users of charging the batteries of the terminals as soon as possible is a technical problem for technicians in the field.
Therefore, the prior art is subject to further improvement.
Disclosure of Invention
In view of the above disadvantages in the prior art, an object of the present invention is to provide a method, a storage device, and a terminal for starting battery charging based on power consumption detection for a user, so as to overcome the defect that a mobile terminal in the prior art cannot automatically start charging in time according to power consumption.
A method for initiating battery charging based on power consumption detection, comprising the steps of:
acquiring a consumed electric quantity curve of a battery in a preset time period;
comparing the power consumption curve with a stored battery power consumption curve graph, and finding out a curve segment which is matched with the power consumption curve in the battery power consumption curve graph;
acquiring the range of the consumed electric quantity corresponding to the curve segment, comparing the upper limit value of the consumed electric quantity value with a pre-stored charging threshold value, and if the difference value of the upper limit value of the consumed electric quantity value and the charging threshold value is in a preset range, determining that the consumed electric quantity is in a preset range
And controlling the battery to enter a charging state.
The method for starting battery charging based on the consumed electric quantity detection is characterized in that the step of acquiring the consumed electric quantity curve of the battery in a preset time period further comprises the following steps:
storing a power consumption curve graph in advance; the power consumption curve chart comprises: the battery consumption time is plotted against the battery consumption electric quantity value.
The method for starting battery charging based on the power consumption detection is characterized in that a relation curve of the battery consumption time and the battery consumption power value satisfies a function formula:
wherein the content of the first and second substances,in order to consume the amount of electric power,is a natural constant, and t is the power consumption time.
The method for starting battery charging based on power consumption detection, wherein the step of comparing the power consumption curve with a stored battery power consumption curve graph and finding out a curve segment in the battery power consumption curve graph, which is matched with the power consumption curve, further comprises the following steps:
acquiring curve segments of the battery power consumption curve diagram at preset time intervals;
and calculating the matching degree of each curve segment and the power consumption curve through a plane curve matching algorithm, and identifying the curve segment with the highest matching degree as the curve segment matched with the power consumption curve.
The method for starting battery charging based on the consumed electric quantity detection, wherein the step of acquiring the consumed electric quantity curve of the battery in a preset time period further comprises:
outputting an electric quantity consumption trigger signal to a central processing unit;
the central processing unit calls a power consumption calling instruction to obtain a power consumption value in a preset time period of the current terminal;
and generating a consumed electric quantity curve in a preset time period according to the consumed electric quantity value.
The method for starting battery charging based on the power consumption detection is characterized in that the power consumption curve of the preset time period is a power consumption range of the terminal which continuously works in a preset time under the non-charging state.
The method for starting battery charging based on consumed electric quantity detection is characterized in that the charging threshold is as follows: the lowest electric quantity value when the terminal is started up and normally operates; the predetermined range is: less than 0.01 watts.
The method for starting battery charging based on the detection of the consumed electric quantity, wherein the step of controlling the battery to enter the charging state comprises the following steps:
the CPU calls a charging control instruction to control the battery to enter a charging state
A storage device, wherein the storage device stores a computer program executable to implement the method of initiating battery charging based on charge consumption detection.
A mobile terminal, comprising: a processor and a storage device communicatively coupled to the processor;
the storage device stores a computer program that, when executed by a processor, initiates a method of charging a battery based on a charge consumption detection;
the processor is configured to invoke a computer program in the storage device to perform the method for initiating battery charging based on the power consumption detection.
The method, the storage device and the terminal for starting the battery charging based on the power consumption detection have the advantages that the power consumption curve of the battery in a preset time period is obtained; comparing the power consumption curve with a stored battery power consumption curve graph, and finding out a curve segment which is matched with the power consumption curve in the battery power consumption curve graph; and acquiring the range of the consumed electric quantity corresponding to the curve segment, comparing the upper limit value of the consumed electric quantity value with a pre-stored charging threshold value, and controlling the battery to enter a charging state if the difference value of the upper limit value of the consumed electric quantity value and the charging threshold value is within a preset range. According to the method, the storage device and the terminal disclosed by the invention, the electric quantity consumed by the battery is detected, and when the battery consumption reaches the requirement of charging, the battery is controlled to automatically enter the charging state, so that the guarantee is provided for the normal use of the terminal by a user.
Drawings
FIG. 1 is a flow chart of the method steps for initiating battery charging based on charge consumption detection in accordance with the present invention.
Fig. 2 is a flow chart of principle steps of a specific application embodiment of the method of the present invention.
Fig. 3 is a flow chart of steps of an embodiment of the method of the present invention.
Fig. 4 is a schematic structural diagram of the terminal according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention discloses a method for starting battery charging based on power consumption detection, which comprises the following steps as shown in figure 1:
and step S1, acquiring a consumption electric quantity curve of the battery in a preset time period.
The method comprises the steps of obtaining a power consumption curve of a battery within a period of time, specifically, the power consumption curve within the preset time period is a power consumption range of the terminal which continuously works within the preset time under the non-charging state, and errors in power consumption detection of the battery caused by charging are avoided.
In order to better judge the current electric quantity state of the battery, the method also comprises the following steps:
step S0, storing a power consumption curve graph in advance; the power consumption curve chart comprises: the battery consumption time is plotted against the battery consumption electric quantity value.
Specifically, firstly, a fixed time period is taken as a standard, the battery power consumption is divided into different equal parts, and a curve section corresponding to each equal part is respectively established, and each curve section forms a curve graph between time and power consumption, so that the power consumption curve and the power consumption curve in each time period are matched, and the battery power storage state corresponding to the current power consumption curve can be obtained.
Specifically, in order to analyze the battery power and simplify the relationship between the battery power consumption and the time, a relationship curve between the battery power consumption and the battery power consumption is defined to satisfy a functional formula:
wherein the content of the first and second substances,in order to consume the amount of electric power,is a natural constant, and t is the power consumption time. In practical implementation, the curve of the battery consumption electric quantity value and the time is in the curveThe line floats up and down, but the normalized overall curve shape can be reduced to the curve presented by the functional relationship described above.
In order to accurately acquire the current battery power consumption, the method further comprises the following steps:
step S11, outputting an electric quantity consumption trigger signal to a central processing unit;
step S12, the central processing unit calls a power consumption calling instruction to obtain a power consumption value in a preset time period of the current terminal;
and step S13, generating a consumed electric quantity curve in a preset time period according to the consumed electric quantity value.
Step S2, comparing the power consumption curve with a stored battery power consumption curve, and finding out a curve segment in the battery power consumption curve that matches the power consumption curve.
The current power consumption curve of the battery is matched with the curve in the power consumption image map, so that the power discharge state of the current battery can be obtained, namely the quantity of the charged electricity of the battery in the preset time is related to the current discharge quantity, the power consumption curve in the current time period is compared, and the matched curve section can be obtained, so that the current power state of the battery can be indirectly obtained.
Specifically, the step S2 further includes:
step S21, obtaining curve segments of the battery power consumption curve graph at preset time intervals;
and step S22, calculating the matching degree of each curve segment and the power consumption curve through a plane curve matching algorithm, and identifying the curve segment with the highest matching degree as the curve segment matched with the power consumption curve.
Step S3, obtaining the consumed electric quantity range corresponding to the curve segment, comparing the upper limit value of the consumed electric quantity value with a pre-stored charging threshold value, and if the difference value between the upper limit value of the consumed electric quantity value and the charging threshold value is within a predetermined range, executing step S4.
When the battery power is 0 in the power consumption curve corresponding to the matched power consumption curve, the central processing unit is triggered to control the battery to perform step S4.
Specifically, the charging threshold is: the lowest electric quantity value when the terminal is started up and normally operates; the predetermined range is: less than 0.01 watts.
And step S4, controlling the battery to enter a charging state.
The battery is connected with the power supply, or the battery is controlled to be connected with the reserve electric quantity storage. Specifically, the charging control instruction is called by the central processing unit to control the battery to enter a charging state.
In step S2, the current power consumption curve of the battery is matched with the curve in the power consumption image map, so as to obtain the power discharge state of the current battery, and therefore, the time to be charged of the battery can be estimated according to the obtained current power discharge state of the battery, thereby providing convenience for the user.
The method of the present invention is described in detail below with reference to specific embodiments thereof, and as shown in fig. 2, the method of the present invention identifies a power consumption curve output by a battery to determine a current power state of the battery.
Specifically, as shown in fig. 3, the method includes the following steps:
the terminal is provided with an electric quantity consumption detection unit which is used for acquiring an electric quantity consumption value in a preset time period through a central processing unit and generating an electric quantity consumption curve according to the electric quantity consumption value.
After the central processing unit receives the electric quantity consumption acquisition signal sent by the electric quantity consumption detection unit, the electric quantity consumption signal is called to the electric quantity consumption registering unit, and the electric quantity consumption value stored in the electric quantity consumption registering unit within the preset time period is acquired from the electric quantity consumption registering unit.
The electric quantity consumption detection unit matches the obtained electric quantity consumption curve with a pre-stored electric quantity consumption curve graph, judges whether the difference value of the upper limit value of the electric quantity consumption curve and a preset electric quantity threshold value is close to 0, and if the difference value is close to 0, the charging state needs to be entered.
The central processing unit sends a charging starting signal to the mobile terminal charging starting module, and the charging starting module starts the lithium battery charging.
On the basis of the method, the invention also discloses a storage device, wherein the storage device stores a computer program which can be executed to realize the method for starting the battery charging based on the power consumption detection.
On the basis of disclosing the above storage device, the present invention also discloses a mobile terminal 10, as shown in fig. 4, the mobile terminal 10 includes: a processor 110 and a storage device 120 communicatively coupled to the processor 110;
the storage device 120 stores a computer program that, when executed by the processor 110, implements the method of initiating battery charging based on charge consumption detection;
the processor 110 is configured to call a computer program in the storage device to execute the method for starting battery charging based on the power consumption detection.
The invention provides a method for starting battery charging based on power consumption detection, a storage device and a terminal, and the power consumption curve of a battery in a preset time period is obtained; comparing the power consumption curve with a stored battery power consumption curve graph, and finding out a curve segment which is matched with the power consumption curve in the battery power consumption curve graph; and acquiring the range of the consumed electric quantity corresponding to the curve segment, comparing the upper limit value of the consumed electric quantity value with a pre-stored charging threshold value, and controlling the battery to enter a charging state if the difference value of the upper limit value of the consumed electric quantity value and the charging threshold value is within a preset range. According to the method, the storage device and the terminal disclosed by the invention, the electric quantity consumed by the battery is detected, and when the battery consumption reaches the requirement of charging, the battery is controlled to automatically enter the charging state, so that the guarantee is provided for the normal use of the terminal by a user.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.
Claims (8)
1. A method for initiating battery charging based on power consumption detection, comprising the steps of:
acquiring a consumed electric quantity curve of a battery in a preset time period;
comparing the power consumption curve with a stored battery power consumption curve graph, and finding out a curve segment which is matched with the power consumption curve in the battery power consumption curve graph;
acquiring the electric quantity consumption range corresponding to the curve segment, comparing the upper limit value of the electric quantity consumption value with a pre-stored charging threshold value, and controlling the battery to enter a charging state if the difference value of the upper limit value of the electric quantity consumption value and the charging threshold value is within a preset range;
the step of comparing the power consumption curve with a stored battery power consumption curve graph and finding out a curve segment in the battery power consumption curve graph, which is matched with the power consumption curve, further comprises:
acquiring curve segments of the battery power consumption curve diagram at preset time intervals;
calculating the matching degree of each curve segment and the power consumption curve through a plane curve matching algorithm, and identifying the curve segment with the highest matching degree as the curve segment matched with the power consumption curve;
dividing the battery power consumption into different equal parts by taking a fixed time period as a standard, and respectively establishing a curve section corresponding to each equal part, wherein each curve section forms a curve graph between time and power consumption, and the curve graph is a battery power consumption curve graph;
the step of obtaining the consumption electric quantity curve of the battery in the preset time period further comprises:
outputting an electric quantity consumption trigger signal to a central processing unit;
the central processing unit calls a power consumption calling instruction to obtain a power consumption value in a preset time period of the current terminal;
generating a consumed electric quantity curve in a preset time period according to the consumed electric quantity value;
and the power consumption curve of the preset time period is a power consumption range of the terminal which continuously works in a preset time under the uncharged state.
2. The method of claim 1, wherein the step of obtaining a profile of the amount of power consumed by the battery over a predetermined period of time is preceded by the step of:
storing a power consumption curve graph in advance; the power consumption curve chart comprises: the battery consumption time is plotted against the battery consumption electric quantity value.
3. The method of claim 2, wherein the relationship between the battery consumption time and the battery consumption electric quantity satisfies the functional formula:
f(t)=1/et;
wherein f (t) is the consumed electric quantity value, e is the natural constant, and t is the consumed time.
4. The method of claim 1, wherein the power consumption curve for the predetermined period of time is a power consumption range in which the terminal is in an uncharged state and continuously operates for a predetermined time.
5. The method of claim 4, wherein the charging threshold is: the lowest electric quantity value when the terminal is started up and normally operates; the predetermined range is: less than 0.01 watts.
6. The method of claim 4, wherein the step of controlling the battery to enter the charging state comprises:
and the central processing unit calls the charging control instruction to control the battery to enter a charging state.
7. A storage device storing a computer program executable to implement the method of initiating battery charging based on charge consumption detection according to any one of claims 1 to 6.
8. A mobile terminal, comprising: a processor and a storage device communicatively coupled to the processor;
the storage device stores a computer program that when executed by a processor implements the method of initiating battery charging based on charge consumption detection of any of claims 1 to 6;
the processor, configured to invoke a computer program in the storage device to perform the method of initiating battery charging based on power consumption detection of any of the preceding claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710863842.3A CN107565643B (en) | 2017-09-22 | 2017-09-22 | Method for starting battery charging based on power consumption detection, storage device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710863842.3A CN107565643B (en) | 2017-09-22 | 2017-09-22 | Method for starting battery charging based on power consumption detection, storage device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107565643A CN107565643A (en) | 2018-01-09 |
CN107565643B true CN107565643B (en) | 2022-03-01 |
Family
ID=60981698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710863842.3A Active CN107565643B (en) | 2017-09-22 | 2017-09-22 | Method for starting battery charging based on power consumption detection, storage device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107565643B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324295A (en) * | 2018-10-11 | 2019-02-12 | 杭州临安合星智能科技有限公司 | Electricity shows correction module and method |
CN109546238B (en) * | 2018-11-01 | 2021-07-13 | 东软睿驰汽车技术(沈阳)有限公司 | Method and device for controlling battery power |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103872398A (en) * | 2012-12-13 | 2014-06-18 | 财团法人工业技术研究院 | Charging method of rechargeable battery and related charging structure |
CN104991196A (en) * | 2015-06-30 | 2015-10-21 | 上海斐讯数据通信技术有限公司 | Battery power measurement method |
CN105071480A (en) * | 2015-08-20 | 2015-11-18 | 安宝永 | Charging control method for mobile power supply and mobile power supply capable of automatic charging |
CN105785271A (en) * | 2015-11-26 | 2016-07-20 | 南京莱斯信息技术股份有限公司 | Method for detecting storage battery capacity based on discharge power curve comparison method |
CN106772060A (en) * | 2016-11-09 | 2017-05-31 | 深圳天珑无线科技有限公司 | Electric quantity display method and device based on energy |
CN106896330A (en) * | 2017-03-24 | 2017-06-27 | 东软集团股份有限公司 | A kind of data processing method and device on battery dump energy |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5834832B2 (en) * | 2011-11-29 | 2015-12-24 | 富士通株式会社 | Power control support program, power control support device, and power control support method |
CN103175547A (en) * | 2011-12-21 | 2013-06-26 | 北京普源精电科技有限公司 | Parameter fitting method of data acquisition device |
CN106707183A (en) * | 2016-12-09 | 2017-05-24 | 国网北京市电力公司 | Method and device for discharge test of storage battery |
-
2017
- 2017-09-22 CN CN201710863842.3A patent/CN107565643B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103872398A (en) * | 2012-12-13 | 2014-06-18 | 财团法人工业技术研究院 | Charging method of rechargeable battery and related charging structure |
CN104991196A (en) * | 2015-06-30 | 2015-10-21 | 上海斐讯数据通信技术有限公司 | Battery power measurement method |
CN105071480A (en) * | 2015-08-20 | 2015-11-18 | 安宝永 | Charging control method for mobile power supply and mobile power supply capable of automatic charging |
CN105785271A (en) * | 2015-11-26 | 2016-07-20 | 南京莱斯信息技术股份有限公司 | Method for detecting storage battery capacity based on discharge power curve comparison method |
CN106772060A (en) * | 2016-11-09 | 2017-05-31 | 深圳天珑无线科技有限公司 | Electric quantity display method and device based on energy |
CN106896330A (en) * | 2017-03-24 | 2017-06-27 | 东软集团股份有限公司 | A kind of data processing method and device on battery dump energy |
Also Published As
Publication number | Publication date |
---|---|
CN107565643A (en) | 2018-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106655396B (en) | Charge control method, device and terminal | |
TWI523298B (en) | Method to estimate the charging time of lithium-ion batteries and charging monitor | |
US9502917B2 (en) | Charging method of electronic cigarettes and electronic cigarette box | |
US10295605B2 (en) | State detecting method and state detecting device of secondary battery | |
US20180048163A1 (en) | Charging method and mobile terminal | |
JP4661904B2 (en) | Portable device and portable device system | |
CN103440029A (en) | Method for prolonging service life of mobile terminal in low battery mode and mobile terminal | |
EP3709464A1 (en) | Emergency starting power supply and emergency start method | |
JP5690698B2 (en) | Battery pack for electric tools | |
CN107565643B (en) | Method for starting battery charging based on power consumption detection, storage device and terminal | |
US20190391210A1 (en) | Method and device for acquiring battery power level and electronic device | |
US9759782B2 (en) | Impedance-based battery state estimation method | |
WO2019096108A1 (en) | Charging protection method and apparatus, and charging device | |
KR20160011448A (en) | Apparatus and method for calculating full charge capacity information of battery | |
US10608455B2 (en) | Quick battery charging with protection based on regulation relative state of charge | |
US10298039B2 (en) | Power supply apparatus | |
TWI585429B (en) | Method of estimating battery capacity | |
CN107422194B (en) | Screen static detection control method, storage device and mobile terminal | |
CN111164851A (en) | Charge control device, charge control method, program, control circuit, and power storage system | |
CN113156319B (en) | Residual electric quantity determining method, device, vehicle, medium and program product | |
EP3425762A1 (en) | Method and electronic device for managing charging | |
WO2017020592A1 (en) | Discharging method, terminal equipment, and computer storage medium | |
CN112636400A (en) | Charging reminding method for rechargeable equipment and memory | |
JP6631172B2 (en) | Internal resistance calculation device, computer program, and internal resistance calculation method | |
JP2015053747A (en) | Battery degradation-determining application program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |