[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105100440B - A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity - Google Patents

A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity Download PDF

Info

Publication number
CN105100440B
CN105100440B CN201510354488.2A CN201510354488A CN105100440B CN 105100440 B CN105100440 B CN 105100440B CN 201510354488 A CN201510354488 A CN 201510354488A CN 105100440 B CN105100440 B CN 105100440B
Authority
CN
China
Prior art keywords
electricity
mobile terminal
value
case
charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510354488.2A
Other languages
Chinese (zh)
Other versions
CN105100440A (en
Inventor
赵廷法
俞茂学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510354488.2A priority Critical patent/CN105100440B/en
Publication of CN105100440A publication Critical patent/CN105100440A/en
Application granted granted Critical
Publication of CN105100440B publication Critical patent/CN105100440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

An embodiment of the present invention provides a kind of methods and mobile terminal of determining mobile terminal initial quantity of electricity, are related to field of mobile terminals, to reduce the error of initial quantity of electricity.This method includes:In the operational process before starting this operation, in the case where the charging duration of mobile terminal is more than the first preset duration, it sets floating charging mark to the first value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, it sets floating charging mark to second value;Floating charging mark ignores influence of the float charge voltage to detecting electricity for indicating whether;When last time before this brings into operation is out of service, electricity out of service is preserved;When starting this operation, determine that floating charging identifies whether as the first value;In the case where floating charging is identified as the first value, electricity out of service is determined as initial quantity of electricity;In the case where floating charging is identified as second value, initial quantity of electricity is determined according to detection electricity.

Description

A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity
Technical field
The present invention relates to the methods and movement of field of mobile terminals more particularly to a kind of determining mobile terminal initial quantity of electricity eventually End.
Background technology
With the continuous promotion of mobile terminal display effect and processing speed, the battery durable ability of mobile terminal gradually at To weigh the important indicator of a properties of product quality.And user grasp in use mobile terminal can cruising ability the most Direct method is just to look at the battery capacity instruction of mobile terminal.The inaccuracy of battery capacity instruction directly affects user's Use feeling.For example, if battery self electric quantity is insufficient, but battery capacity indication is still higher, then user may will continue to On mobile terminal operation take pictures, contour power consumption application of playing, at this moment mobile terminal be likely to will unexpected power down, finally give user Cause prodigious puzzlement.
In order to ensure that the accuracy of battery capacity of mobile terminal instruction, many mobile terminals are integrated with coulomb in inside Meter calculates the electricity of mobile terminal using coulometer.For Coulomb meter, when mobile terminal brings into operation, detection is initial Then electricity in use integrates electric current by Coulomb meter, charge volume or power consumption are obtained, and then uses initial electricity Amount plus charge volume subtract power consumption, obtain current electric quantity.
The method of existing acquisition for mobile terminal initial quantity of electricity is as shown in Figure 1.It relies primarily on software for calculation detection electricity With hardware detection electricity, electricity is detected according to software for calculation and hardware detection electricity determines initial quantity of electricity.
But before this brings into operation, the state of mobile terminal can influence the initial electricity determined when this brings into operation Amount, and the method for initial quantity of electricity is determined in the prior art it is not intended that state before mobile terminal, has in turn resulted in and determined Initial quantity of electricity error it is very big.
Invention content
The embodiment of the present invention provides a kind of method and mobile terminal of determining mobile terminal initial quantity of electricity, floating by considering The influence for the split electromechanical amount that charges, the method for using different determination initial quantity of electricity in varied situations, and then reduce initial electricity The error of amount.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, an embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity, including:Starting In operational process before this operation, in the case where the charging duration of mobile terminal is more than the first preset duration, by floating charge Electricity mark is set as the first value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, floating charging is identified It is set as second value;Floating charging mark ignores influence of the float charge voltage to detecting electricity for indicating whether;Start to transport at this When last time before row is out of service, electricity out of service is preserved;When starting this operation, determine that floating charging mark is No is the first value;In the case where floating charging is identified as the first value, electricity out of service is determined as initial quantity of electricity;In floating charging In the case of being identified as second value, initial quantity of electricity is determined according to detection electricity.
Second aspect, an embodiment of the present invention provides a kind of mobile terminals, including:Setting unit, determines list at storage unit Member and processing unit;Setting unit is used in the case where the charging duration of mobile terminal is more than the first preset duration, by floating charge Electricity mark is set as the first value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, floating charging is identified It is set as second value;Floating charging mark ignores influence of the float charge voltage to detecting electricity for indicating whether;Storage unit is used for When out of service, electricity out of service is preserved;Determination unit, for when bringing into operation, determine floating charging identify whether for First value;Processing unit, it is in the case where determination unit determines that floating charging is identified as the first value, electricity out of service is true It is set to initial quantity of electricity;In the case where determination unit determines that floating charging is identified as second value, initial electricity is determined according to detection electricity Amount.
An embodiment of the present invention provides a kind of methods and mobile terminal of determining mobile terminal initial quantity of electricity, are starting this In operational process before operation, in the case where the charging duration of mobile terminal is more than the first preset duration, by floating charging mark Knowledge is set as the first value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, floating charging is identified and is arranged For second value;When last time before this brings into operation is out of service, electricity out of service is preserved;Starting this fortune When row, determine that floating charging identifies whether as the first value;It is in the case where floating charging is identified as the first value, electricity out of service is true It is set to initial quantity of electricity;In the case where floating charging is identified as second value, initial quantity of electricity is determined according to detection electricity.In this way, passing through Consider influence of the floating charging in charging process before this operation to detection initial quantity of electricity when, there is the case where floating charging influence Under, determine initial quantity of electricity without using the detection electricity after being influenced by floating charging, but after utilizing mobile terminal out of service, The very small feature of power consumption when this brings into operation using electricity out of service as initial quantity of electricity, and then reduces just The error of beginning electricity.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the present invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the method for determining initial quantity of electricity that the prior art provides;
Fig. 2 is a kind of flow diagram of the method for determining mobile terminal initial quantity of electricity provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another method for determining mobile terminal initial quantity of electricity provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another method for determining mobile terminal initial quantity of electricity provided in an embodiment of the present invention;
Fig. 5 is a kind of functional schematic of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
It should be noted that running of mobile terminal signified in all embodiments of the invention refers to having program in mobile terminal Operation.The state of running of mobile terminal generally comprises booting operating status and shutdown charge operation state.Mobile terminal stops fortune Row refers to not having program operation in mobile terminal.Mobile terminal state out of service is generally the shape for shutting down and not charging State.
Embodiment one
An embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity, as shown in Fig. 2, including:
201, in the operational process before starting this operation, when the charging duration of mobile terminal is default more than first In the case of length, it sets floating charging mark to the first value;It is more than the feelings of the second preset duration in the electric discharge duration of mobile terminal Under condition, it sets floating charging mark to second value.
Wherein, floating charging mark ignores influence of the float charge voltage to detecting electricity for indicating whether.
It should be noted that during running of mobile terminal, whether detection charging equipment is inserted into;Detecting that charging sets In the case of standby insertion, determine that mobile terminal is in charged state;In the case where not detecting that charging equipment is inserted into, determine Mobile terminal is in discharge condition.During mobile terminal is out of service, there is no program operation in mobile terminal, disappear at this time The electricity of consumption can be ignored.
It should be noted that the mobile terminal described in all embodiments of the application is in charged state or discharge condition, It is in charge or discharge to refer specifically to the battery in mobile terminal.
It should be noted that detection electricity is the electricity determined according to software detection electricity and hardware detection electricity.No By the detection electricity that under which kind of situation, can be determined according to software detection electricity and hardware detection electricity.Wherein, software Detection electricity is to read cell voltage by software, then according to the correspondence between cell voltage and electricity determine with it is current The corresponding electricity of cell voltage.Hardware detection electricity is that current electricity is obtained in the transient hardware to bring into operation according to mobile terminal What cell voltage obtained.
It should be noted that in mobile terminal charging process, due to the floating charge power mode of mobile terminal, it can make battery The virtual voltage that voltage is higher than battery is detected, so in the case where there is floating charging influence, is determined according to detection electricity first The actual initial quantity of electricity of beginning electricity ratio is high.And since the characteristic of battery itself determined after a period of time of charging until just having filled Electricity can manifest influence of the floating charging to battery capacity when completing.So further, can will after charging a period of time until The period for just having completed charging is determined as floating charging to the battery capacity detected the influential stage, so needing according to charging Duration and electric discharge duration determine whether floating charging has an impact electricity.
It should be noted that floating charging, which is identified as the first value, indicates that floating charging has an impact electricity;Floating charging is identified as Two-value indicates that floating charging does not influence electricity.
It should be noted that due within initial a period of time that mobile terminal charges, float charge voltage also very little is floated at this time Charging, it is little to be influenced on the battery capacity detected;And after a period of time of charging, float charge voltage increases, at this time floating charging pair The battery capacity detected is affected, and when calculating initial quantity of electricity, needs the influence for avoiding floating charging to initial quantity of electricity.So Setting judges whether charging duration reaches preset first preset duration, to determine whether there are the influences of floating charging.Due to Mobile terminal stopped in initial a period of time of charging, and influence of the floating charging to battery capacity is not eliminated;And with the time Extend, influence of the floating charging to battery capacity fades away.So setting judges whether electric discharge duration reaches preset second in advance If duration, come judge floating charging when last charging influence whether there is also.
Specifically, mobile terminal can record an initial time when establishing the connection with charger, it needs to be determined that moving When whether the charging duration of dynamic terminal is more than the first preset duration, a current time is obtained, by current time and initial time Between duration be determined as the first preset duration.Mobile terminal is when disconnecting the connection with charger, when can record a starting Between, when it needs to be determined that whether the stopping charging duration of mobile terminal is more than the second preset duration, a current time is obtained, it will Duration between current time and initial time is determined as the second preset duration.
It should be noted that the first preset duration and the second preset duration are floating chargings to according to mode in the prior art The battery capacity detected the whether influential judgement time.First preset duration and the second preset duration are all an experiences Value.
It should be noted that influence of the floating charging to battery capacity is to be continued until to stop after starting to charge up a period of time Only after charging a period of time, and stops the duration being influenced after charging and do not have influential duration more than after starting to charge up, so Under normal circumstances, the second preset duration is more than the first preset duration.For example, the first preset duration is 5 minutes.Second preset duration It is 20 minutes.
It should be noted that in the case where the duration that charges is not more than the first preset duration, floating charging mark is not changed. In the case that the duration of stopping charging being not more than the second preset duration, floating charging mark is not changed yet.Stop transporting in mobile terminal In the case of row, floating charging mark does not change.
It should be noted that in the operational process before this operation, mobile terminal, which may pass through, repeatedly to be charged or puts Electricity, each charge or discharge are likely to change floating charging mark, so when in mobile terminal, this brings into operation, floating charging mark Knowledge may be the first value, it is also possible to second value.But when mobile terminal dispatches from the factory, the initial value of floating charging mark is first Value.
It should be noted that since floating charging identifies during running of mobile terminal with the change of mobile terminal state Change is likely to change at any time, so even if after setting floating charging mark to the first value or second value, it is also necessary to after It is continuous that whether floating charging mark is reset according to the charging and discharging state cycle criterion of mobile terminal.
202, when the last time before this brings into operation is out of service, electricity out of service is preserved.
It should be noted that when mobile terminal is out of service, the power consumption of mobile terminal is very small, can ignore not Meter, so in the case where there is floating charging influence, when higher according to the initial quantity of electricity determined of detection electricity, can will it is preceding once Initial quantity of electricity when electricity when out of service brings into operation directly as this.
It should be noted that after electricity out of service must be stored in mobile terminal shutdown, storage that data will not lose In device.
It should be noted that when out of service each time, current electricity can be all preserved, so as in back to back beginning When operation, in the case where there is floating charging influence, initial electricity when electricity that can be when will be out of service is determined as bringing into operation Amount.Since the present embodiment is described in the angle to bring into operation from this, so being only referred to this brings into operation it Before, last time needs to preserve electricity when out of service.
It should be noted that triggering mobile terminal situation out of service includes:Charging is removed under charged state of shutting down Equipment either long-press power key triggering shutdown either alarm clock triggering shutdown either timing shutdown triggering shutdown or The shutdown of low battery triggering.
Wherein, when mobile terminal does not charge, the shutdown of user's long-press power key is the one of long-press power key triggering shutdown Kind situation.When mobile terminal is in shutdown charging, during user's long-press power key enters booting charging, mobile terminal needs First to stop charged state of shutting down, then can just be again started up operation and enter booting charged state, mobile terminal during this Stop a kind of situation that shutdown charged state is the triggering shutdown of long-press power key.When mobile terminal is in booting charging, user During long-press power key enters shutdown charging, mobile terminal needs first to stop the charged state that is switched on, and then can just open again Dynamic operation enters shutdown charged state, and it is the triggering shutdown of long-press power key that mobile terminal, which stops booting charged state, during this Another situation.
Wherein, the shutdown that alarm clock triggers refers to mobile terminal automatic shutdown after reaching the time set by alarm clock, or User triggers mobile terminal shutdown by way of extending alarm clock calling.
203, when starting this operation, determine that floating charging identifies whether as the first value;It is identified as the first value in floating charging In the case of, electricity out of service is determined as initial quantity of electricity;In the case where floating charging is identified as second value, according to detection electricity Amount determines initial quantity of electricity.
Specifically, acquisition for mobile terminal floating charging identifies, and whether it is the first value by judge floating charging mark, judges Whether floating charging has an impact the initial quantity of electricity of mobile terminal.In the case where determining that floating charging is identified as the first value, illustrate floating Charging has an impact initial quantity of electricity, the electricity out of service stored when reading last out of service at this time, and reading is stopped Only operation electricity is determined as initial quantity of electricity.In floating charging mark for the first value but in the case of second value, illustrate floating charging Initial quantity of electricity is not influenced, can be determined at this time according to the method that detection electricity determines initial quantity of electricity according in the prior art first Beginning electricity.
It should be noted that the method due to determining initial quantity of electricity according to detection electricity, although the initial quantity of electricity got There is error, but can ensure to get initial quantity of electricity under any circumstance.And using the electricity out of service of preservation as just The mode of beginning electricity can not determine initial quantity of electricity in the case where replacing battery or without storing electricity out of service, so In the case of the influence of not floating charging, preferential selection determines initial quantity of electricity according to detection electricity.
It should be noted that since floating charging mark only has the first value and second value, floating charging to identify without being the first value It is second value, so " determining that floating charging identifies whether as the first value " could alternatively be, " it is second to determine that floating charging identifies whether Value ", although Rule of judgment is different at this time, under same case, execution step is identical, i.e., is identified as the first value in floating charging When, electricity out of service is determined as initial quantity of electricity;When floating charging is identified as second value, initial electricity is determined according to detection electricity Amount.
Triggering the case where mobile terminal starts this operation includes:It is inserted into charging equipment or long-press in the power-offstate The booting of the power key triggering either booting of the booting of alarm clock triggering or timing start-up triggering.
Wherein, when mobile terminal does not charge, the booting of user's long-press power key is the one of long-press power key triggering booting Kind situation.When mobile terminal is in shutdown charging, during user's long-press power key enters booting charging, mobile terminal needs First to stop charged state of shutting down, then can just be again started up operation and enter booting charged state, mobile terminal during this Start operation and enters a kind of situation that booting charged state is the triggering booting of long-press power key.Booting is in mobile terminal to charge When, during user's long-press power key enters shutdown charging, mobile terminal needs first to stop the charged state that is switched on, and then just can It is again started up operation and enters shutdown charged state, it is long-press that mobile terminal, which starts operation to enter shutdown charged state, during this Another situation of power key triggering booting.
Wherein, the booting that alarm clock triggers refers to mobile terminal Auto Power On after reaching the time set by alarm clock.
An embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity, before starting this operation In operational process, in the case where the charging duration of mobile terminal is more than the first preset duration, floating charging mark is set as the One value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, it sets floating charging mark to second value; When this last time before bringing into operation is out of service, electricity out of service is preserved;When starting this operation, determine floating Charging identifies whether as the first value;In the case where floating charging is identified as the first value, electricity out of service is determined as initial electricity Amount;In the case where floating charging is identified as second value, initial quantity of electricity is determined according to detection electricity.In this way, by considering at this Floating charging before operation in charging process, in the case where there is floating charging influence, is not used to detecting influence when initial quantity of electricity Detection electricity after being influenced by floating charging determines initial quantity of electricity, but after utilizing mobile terminal out of service, power consumption is non- The characteristics of Chang Wei little, when this brings into operation using electricity out of service as initial quantity of electricity, and then reduces initial quantity of electricity Error.
Embodiment two
An embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity.As shown in figure 3, including:
301, in the operational process before starting this operation, when the charging duration of mobile terminal is default more than first In the case of length, it sets floating charging mark to the first value;It is more than the feelings of the second preset duration in the electric discharge duration of mobile terminal Under condition, it sets floating charging mark to second value;Floating charging mark is for indicating whether to ignore float charge voltage to detection electricity It influences.
Specifically, can refer to step 201, details are not described herein.
302, when the last time before this brings into operation is out of service, electricity out of service is preserved.
Specifically, can refer to step 202, details are not described herein.
303, it when starting this operation, determines that floating charging identifies whether as the first value, and determines that electricity out of service is It is no to be less than default electricity;In the case where floating charging is identified as the first value and electricity out of service is less than default electricity, will stop Operation electricity is determined as initial quantity of electricity;The case where floating charging is identified as second value or electricity out of service is not less than default electricity Under, initial quantity of electricity is determined according to detection electricity.
It should be noted that due to floating charging it is relatively low to battery capacity in the case of detect according to method in the prior art Initial quantity of electricity influence it is very big, and to battery capacity it is higher in the case of according to method in the prior art detect initial quantity of electricity when Influence can ignore, so in step 303, it is also necessary to judge mobile terminal whether be in the lower state of electricity.
Wherein, default electricity is to be influenced the standard electric magnitude of size for judging the detection of battery capacity by floating charging.If Electricity out of service is less than default electricity, then illustrates to be influenced by floating charging according to the initial quantity of electricity that detected in the prior art It is larger, then differing larger with practical electricity according to the initial quantity of electricity determined in the prior art;If electricity out of service is not small In default electricity, then illustrate to be influenced by floating charging according to the initial quantity of electricity that detected in the prior art smaller, can ignore, Practical electricity so can be represented according to the initial quantity of electricity determined in the prior art.
It should be noted that default electricity is the empirical value obtained according to experiment.Optionally, it is 40% to preset electricity.Its In 40% expression electricity when being full of for battery electricity 40 percent.
Specifically, when starting this operation, floating charging mark and electricity out of service are read, and determines floating charging mark Whether it is whether the first value and electricity out of service are less than default electricity;It, will be out of service in the case where two conditions all meet Electricity is determined as initial quantity of electricity;Otherwise, initial quantity of electricity is determined according to detection electricity.
It should be noted that about " determining that floating charging identifies whether as the first value ", " electricity out of service is determined as just The description of beginning electricity " and " determining initial quantity of electricity according to detection electricity ", can refer to step 203, details are not described herein.
An embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity, before starting this operation In operational process, in the case where the charging duration of mobile terminal is more than the first preset duration, floating charging mark is set as the One value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, it sets floating charging mark to second value; When this last time before bringing into operation is out of service, electricity out of service is preserved.When starting this operation, determine floating Charging identifies whether as the first value, and determines whether electricity out of service is less than default electricity;It is identified as the first value in floating charging And in the case that whether electricity out of service is less than default electricity, electricity out of service is determined as initial quantity of electricity;In floating charging In the case of second value or electricity out of service are identified as not less than default electricity, initial quantity of electricity is determined according to detection electricity.This Sample is having floating charge film by considering influence of the floating charging in charging process before this operation to detection initial quantity of electricity when In the case of sound, determines initial quantity of electricity without using the detection electricity after being influenced by floating charging, but stopped using mobile terminal After only running, the very small feature of power consumption, when this brings into operation using electricity out of service as initial quantity of electricity, into And reduce the error of initial quantity of electricity.Simultaneously as floating charging is affected when relatively low to battery capacity, and to battery capacity compared with Influence very little when high, so the coverage using floating charging is further reduced, it is preferential to select in the influence of not floating charging The higher method that initial quantity of electricity is determined according to detection electricity of reliability is selected, the reliability for the initial quantity of electricity determined is increased.
Embodiment three
An embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity.As shown in figure 4, including:
401, in the operational process before starting this operation, when the charging duration of mobile terminal is default more than first In the case of length, determine whether the current electric quantity of mobile terminal is less than default electricity;It is less than in the current electric quantity of mobile terminal pre- If in the case of electricity, setting floating charging mark to the first value;It is not less than default electricity in the current electric quantity of mobile terminal In the case of, set floating charging mark to second value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, Set floating charging mark to second value.
It should be noted that the scheme described in above-described embodiment two is to determine that the charging time is more than the first preset duration When, it just sets floating charging mark to the first value, when then judging whether floating charging has an impact again, considers electricity out of service Size.
And the present embodiment is to continue to judge current in the case where the charging duration of mobile terminal is more than the first preset duration Whether electricity is less than default electricity, in the case where battery capacity is less than default electricity, sets floating charging mark to the first value; Otherwise, floating charging mark is set to second value.And the case where the electric discharge duration of mobile terminal is more than the second preset duration Under, set floating charging mark to second value.Finally only it is more than the first preset duration and electricity in the mobile terminal charging time In the case that pond electricity is less than default electricity, that is to say, that started to charge up in the case where battery capacity is very low, in one section of charging After time and in the case that battery capacity is again without default electricity is reached, can just charge flag be set to the first value, this When stop running immediately, can just judge that floating charging is identified as the first value when then starting this operation.
It should be noted that about " determine mobile terminal charging duration be more than the first preset duration ", " by floating charging mark Know be set as the first value ", " determine mobile terminal electric discharge duration be more than the second preset duration " and " by floating charging identify be arranged For second value " description, can refer to step 201, details are not described herein.
402, when the last time before this brings into operation is out of service, electricity out of service is preserved.
Specifically, can refer to step 202, details are not described herein.
403, when starting this operation, determine that floating charging identifies whether as the first value;It is identified as the first value in floating charging In the case of, electricity out of service is determined as initial quantity of electricity;In the case where floating charging is identified as second value, according to detection electricity Amount determines initial quantity of electricity.
Specifically, can refer to step 203, details are not described herein.
An embodiment of the present invention provides a kind of methods of determining mobile terminal initial quantity of electricity, before starting this operation In operational process, in the case where the charging duration of mobile terminal is more than the first preset duration, the current electricity of mobile terminal is determined Whether amount is less than default electricity;In the case where the current electric quantity of mobile terminal is less than default electricity, floating charging is identified and is arranged For the first value;In the case where the current electric quantity of mobile terminal is not less than default electricity, it sets floating charging mark to second value; In the case where the electric discharge duration of mobile terminal is more than the second preset duration, it sets floating charging mark to second value;At this When last time before bringing into operation is out of service, electricity out of service is preserved;When starting this operation, floating charging is determined It identifies whether as the first value;In the case where floating charging is identified as the first value, electricity out of service is determined as initial quantity of electricity; In the case that floating charging is identified as second value, initial quantity of electricity is determined according to detection electricity.In this way, by considering before this operation Influence when floating charging in charging process is to detection initial quantity of electricity, in the case where there is floating charging influence, without using by Detection electricity after floating charging influences determines initial quantity of electricity, but after utilizing mobile terminal out of service, power consumption is very small The characteristics of, when this brings into operation using electricity out of service as initial quantity of electricity, and then reduce the error of initial quantity of electricity.Together When, due to being affected when floating charging is relatively low to battery capacity, and the influence very little to battery capacity when higher, so into one Step reduces the coverage using floating charging, preferential to select reliability higher according to detection in the influence of not floating charging The method that electricity determines initial quantity of electricity increases the reliability for the initial quantity of electricity determined.
Example IV
Fig. 5 is a kind of functional schematic of mobile terminal provided in an embodiment of the present invention.The mobile terminal as shown in figure 5, Including:Setting unit 501, storage unit 502, determination unit 503 and processing unit 504.
Setting unit 501 is used in the case where the charging duration of mobile terminal is more than the first preset duration, by floating charging Mark is set as the first value;In the case where the electric discharge duration of mobile terminal is more than the second preset duration, floating charging mark is set It is set to second value;Floating charging mark ignores influence of the float charge voltage to detecting electricity for indicating whether.
Optionally, the second preset duration is more than the first preset duration.
Storage unit 502, for when out of service, preserving electricity out of service.
Determination unit 503, for when bringing into operation, determining that floating charging identifies whether as the first value.
Processing unit 504 is transported in the case where determination unit 503 determines that floating charging is identified as the first value, will stop Row electricity is determined as initial quantity of electricity;In the case where determination unit 503 determines that floating charging is identified as second value, according to detection electricity Determine initial quantity of electricity.
Further, determination unit 503 are additionally operable to when bringing into operation, and it is default to determine whether electricity out of service is less than Electricity;
Correspondingly, processing unit 504, specifically for determining that floating charging is identified as the first value and stopping in determination unit 503 In the case of electricity is run whether less than default electricity, electricity out of service is determined as initial quantity of electricity;It is true in determination unit 503 Determine floating charging to be identified as in the case that second value or electricity out of service be not less than default electricity, be determined according to detection electricity initial Electricity.
Further, setting unit 501 are specifically used for being more than the feelings of the first preset duration in the charging duration of mobile terminal Under condition, determine whether the current electric quantity of mobile terminal is less than default electricity;It is less than default electricity in the current electric quantity of mobile terminal In the case of, set floating charging mark to the first value;
Correspondingly, setting unit 501, is additionally operable in the case where the current electric quantity of mobile terminal is not less than default electricity, Set floating charging mark to second value.
Triggering mobile terminal situation out of service includes:Charging equipment or long-press are removed under charged state of shutting down The shutdown of the power key triggering shutdown that either alarm clock the triggers pass that either shutdown of timing shutdown triggering or low battery trigger Machine;
Triggering the case where mobile terminal starts this operation includes:It is inserted into charging equipment or long-press in the power-offstate The booting of the power key triggering either booting of the booting of alarm clock triggering or timing start-up triggering.
An embodiment of the present invention provides a kind of mobile terminal, setting unit is more than for the charging duration in mobile terminal In the case of first preset duration, it sets floating charging mark to the first value;It is pre- to be more than second in the electric discharge duration of mobile terminal If in the case of duration, setting floating charging mark to second value;Storage unit, for when out of service, preserving and stopping fortune Row electricity;Determination unit, for when bringing into operation, determining that floating charging identifies whether as the first value;Processing unit, for true In the case that order member determines that floating charging is identified as the first value, electricity out of service is determined as initial quantity of electricity;In determination unit In the case of determining that floating charging is identified as second value, initial quantity of electricity is determined according to detection electricity.In this way, by considering charging Floating charging in journey is to detecting influence when initial quantity of electricity, in the case where there is floating charging influence, without using by floating charging Detection electricity after influence determines initial quantity of electricity, but after utilizing mobile terminal out of service, the very small feature of power consumption, When bringing into operation using electricity out of service as initial quantity of electricity, and then reduce the error of initial quantity of electricity.Simultaneously as floating charge Electricity is affected when relatively low to battery capacity, and the influence very little to battery capacity when higher, so further reducing utilization The coverage of floating charging, in the influence of not floating charging, preferential selection reliability is higher to be determined just according to detection electricity The method of beginning electricity increases the reliability for the initial quantity of electricity determined.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that the independent physics of each unit includes, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read) Only Memory, referred to as ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to store The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of method of determining mobile terminal initial quantity of electricity, which is characterized in that including:
In the operational process before starting this operation, it is more than the first preset duration in the charging duration of the mobile terminal In the case of, set floating charging mark to the first value;It is more than the feelings of the second preset duration in the electric discharge duration of the mobile terminal Under condition, it sets floating charging mark to second value;The floating charging mark is for indicating whether to ignore float charge voltage to detection electricity The influence of amount;
When last time before this brings into operation is out of service, electricity out of service is preserved;
When starting this operation, determine that the floating charging identifies whether as the first value;It is identified as the first value in the floating charging In the case of, the electricity out of service is determined as initial quantity of electricity;In the case where the floating charging is identified as second value, root The initial quantity of electricity is determined according to the detection electricity.
2. according to the method described in claim 1, it is characterized in that, when second preset duration is default more than described first It is long.
3. method according to claim 1 or 2, which is characterized in that when starting this operation, further include:It determines and stops Run whether electricity is less than default electricity;
It is described in the case where the floating charging is identified as the first value, electricity out of service, which is determined as initial quantity of electricity, includes:
In the case where the floating charging is identified as the first value and the electricity out of service is less than the default electricity, will stop Operation electricity is determined as initial quantity of electricity;
It is described in the case where the floating charging is identified as second value, the initial quantity of electricity packet is determined according to the detection electricity It includes:
In the case where the floating charging is identified as second value or the electricity out of service is not less than the default electricity, according to The detection electricity determines the initial quantity of electricity.
4. method according to claim 1 or 2, which is characterized in that be more than in the charging duration of the mobile terminal described In the case of first preset duration, setting floating charging mark to the first value includes:
In the case where the charging duration of the mobile terminal is more than first preset duration, working as the mobile terminal is determined Whether preceding electricity is less than default electricity;In the case where the current electric quantity of the mobile terminal is less than default electricity, by floating charging Mark is set as the first value;
After whether the current electric quantity of the determination mobile terminal is less than default electricity, further include:Described mobile whole In the case that the current electric quantity at end is not less than default electricity, it sets floating charging mark to second value.
5. according to the method described in claim 1, it is characterized in that,
Triggering mobile terminal situation out of service includes:Charging equipment or long-press are removed under charged state of shutting down The shutdown of the power key triggering shutdown that either alarm clock the triggers pass that either shutdown of timing shutdown triggering or low battery trigger Machine;
Triggering the case where mobile terminal starts this operation includes:It is inserted into charging equipment or long-press in the power-offstate The booting of the power key triggering either booting of the booting of alarm clock triggering or timing start-up triggering.
6. a kind of mobile terminal, which is characterized in that including:Setting unit, storage unit, determination unit and processing unit;
The setting unit is used in the case where the charging duration of the mobile terminal is more than the first preset duration, by floating charge Electricity mark is set as the first value;In the case where the electric discharge duration of the mobile terminal is more than the second preset duration, by floating charging Mark is set as second value;The floating charging mark ignores influence of the float charge voltage to detecting electricity for indicating whether;
The storage unit, for when out of service, preserving electricity out of service;
The determination unit, for when bringing into operation, determining that the floating charging identifies whether as the first value;
The processing unit will be described in the case where the determination unit determines that the floating charging is identified as the first value Electricity out of service is determined as initial quantity of electricity;In the case where the determination unit determines that the floating charging is identified as second value, The initial quantity of electricity is determined according to the detection electricity.
7. mobile terminal according to claim 6, which is characterized in that it is default that second preset duration is more than described first Duration.
8. the mobile terminal described according to claim 6 or 7, which is characterized in that
The determination unit is additionally operable to when bringing into operation, and determines whether electricity out of service is less than default electricity;
The processing unit, specifically for determining that the floating charging is identified as the first value and the stopping is transported in the determination unit In the case that whether row electricity is less than the default electricity, electricity out of service is determined as initial quantity of electricity;Described determining single Member determines that the floating charging is identified as second value or the electricity out of service not less than in the case of the default electricity, according to The detection electricity determines the initial quantity of electricity.
9. the mobile terminal described according to claim 6 or 7, which is characterized in that
The setting unit is specifically used for the case where the charging duration of the mobile terminal is more than first preset duration Under, determine whether the current electric quantity of the mobile terminal is less than default electricity;It is less than in the current electric quantity of the mobile terminal pre- If in the case of electricity, setting floating charging mark to the first value;
The setting unit is additionally operable in the case where the current electric quantity of the mobile terminal is not less than default electricity, by floating charge Electricity mark is set as second value.
10. mobile terminal according to claim 6, which is characterized in that
Triggering mobile terminal situation out of service includes:Charging equipment or long-press are removed under charged state of shutting down The shutdown of the power key triggering shutdown that either alarm clock the triggers pass that either shutdown of timing shutdown triggering or low battery trigger Machine;
Triggering the case where mobile terminal starts this operation includes:It is inserted into charging equipment or long-press in the power-offstate The booting of the power key triggering either booting of the booting of alarm clock triggering or timing start-up triggering.
CN201510354488.2A 2015-06-24 2015-06-24 A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity Active CN105100440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510354488.2A CN105100440B (en) 2015-06-24 2015-06-24 A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510354488.2A CN105100440B (en) 2015-06-24 2015-06-24 A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity

Publications (2)

Publication Number Publication Date
CN105100440A CN105100440A (en) 2015-11-25
CN105100440B true CN105100440B (en) 2018-08-07

Family

ID=54579935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510354488.2A Active CN105100440B (en) 2015-06-24 2015-06-24 A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity

Country Status (1)

Country Link
CN (1) CN105100440B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109888885B (en) * 2019-04-02 2021-08-03 惠州Tcl移动通信有限公司 Charging control method, charging control device, storage medium and electronic equipment
CN113438362B (en) * 2020-03-04 2022-12-09 京东方科技集团股份有限公司 Method for starting terminal at fixed time, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860060A (en) * 2010-05-31 2010-10-13 中兴通讯股份有限公司 Method and device for indicating electric quantity of rechargeable battery
CN102104259A (en) * 2009-12-16 2011-06-22 比亚迪股份有限公司 Electric quantity detecting and controlling method and device for rechargeable battery
CN102508169A (en) * 2011-11-07 2012-06-20 浙江绿源电动车有限公司 Device and method for obtaining battery capacity

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006208103A (en) * 2005-01-26 2006-08-10 Brother Ind Ltd Battery residual capacity display device and radio telephone device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104259A (en) * 2009-12-16 2011-06-22 比亚迪股份有限公司 Electric quantity detecting and controlling method and device for rechargeable battery
CN101860060A (en) * 2010-05-31 2010-10-13 中兴通讯股份有限公司 Method and device for indicating electric quantity of rechargeable battery
CN102508169A (en) * 2011-11-07 2012-06-20 浙江绿源电动车有限公司 Device and method for obtaining battery capacity

Also Published As

Publication number Publication date
CN105100440A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN107870301B (en) Method and device for detecting micro short circuit of battery
CN102868001B (en) Lithium ion cell electric quantity displaying method and lithium ion cell electric quanity displaying device
CN104281513B (en) Application power consumption detection method and system
CN106125009B (en) Battery performance detection method and battery performance detection device
CN107024665B (en) Method for calibrating residual capacity of battery
CN103901347A (en) Method for display of battery level and terminal
CN110568366B (en) Insulation circuit, battery pack leakage detection method and hardware detection method
CN108061863A (en) Method and device for detecting battery, computer readable storage medium and battery management system
CN105721687B (en) A kind of battery method for detecting abnormality and system based on mobile terminal
CN106154173A (en) Quick, cheap and convenient self-discharge screening method for secondary battery
CN104749528B (en) Dynamic lithium battery capacity determining methods
CN107643493A (en) A kind of battery electric quantity predictor method and device, unmanned plane
CN108051755A (en) Battery internal resistance acquisition method and device, battery management system and computer storage readable medium
CN105100440B (en) A kind of method and mobile terminal of determining mobile terminal initial quantity of electricity
CN103823184B (en) The battery nominal capacity presumption method that intelligent battery sensor and utilization are calculated repeatedly
CN114156971A (en) Energy storage charging and discharging control method, device and equipment and energy storage system
CN109596989A (en) Display methods, device and the electronic equipment of electric quantity for electronic equipment
CN102306941A (en) Battery pack capacity coupling method and battery pack capacity coupling apparatus
CN103837835B (en) A kind of mobile equipment cell container decline degree detecting method and device thereof
CN105301512B (en) A kind of method and system of accumulator failure early warning
CN113030760B (en) Battery life prediction method, device and storage medium
CN111837290A (en) Control device for lithium ion secondary battery and control method thereof
CN201174607Y (en) On-line detection and activation apparatus for accumulator
JP5633476B2 (en) Unauthorized replacement detection system and method for secondary battery
CN107507373B (en) Intelligent POS machine charging acceleration method based on Android system

Legal Events

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