Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
First embodiment
Referring to Fig. 1, the first embodiment of the present invention provides a kind of creepage detection method, applied to mobile terminal, bag
Include:
Step 101, when receiving power-off operation instruction, the first control instruction is sent to the voltameter of mobile terminal, makes electricity
The current value of the battery circuit of gauge collection mobile terminal in the power-offstate.
Wherein, battery circuit is the circuit where battery.Leakage current refers to the electricity that the internal components electric leakage of mobile terminal is produced
Stream, it is generally the case that under mobile terminal off-mode, internal components answer no current or minimum electric current, typically all uA numbers
Magnitude, if there have larger electric current to produce i.e. leakage current to be larger.After situations such as mobile terminal occurs mechanical failure or made moist,
Some device portions fails, it is possible to which producing leakage current causes abnormal power consumption, and so possible macro manifestations are abnormal heating, electricity
Pond is not durable.And in the state of mobile terminal shutdown, it is impossible to the current conditions of automatic detection battery circuit, and then can not be true
It is fixed whether to have leakage current generation;Therefore, in the above-mentioned steps of embodiments of the invention, receive power-off operation in mobile terminal and refer to
When making, the first control instruction is sent to voltameter, indicates that voltameter after mobile terminal shutdown, gathers the electric current of battery circuit
Value.
Step 102, the current value gathered according to voltameter, calculates the shutdown current value of battery circuit.
Wherein, voltameter gathers the current value under off-mode according to the first control instruction, because current value is probably individual
Variable, so the data that voltameter is gathered potentially include multiple different pieces of informations, therefore, after mobile terminal-opening, according to
The current value that voltameter is gathered, according to default rule, calculates the shutdown current value of mobile terminal.
Step 103, judge whether shutdown current value is more than default leakage current threshold.
Wherein, shutdown current value is compared with default leakage current threshold, judges whether shutdown current value is more than pre-
If leakage current threshold.
Step 104, when shutdown current value is more than default leakage current threshold, reminder message is sent.
Wherein, when the current value that shuts down is more than default leakage current threshold, reminder message is issued the user with, reminds user to close
Electromechanical throat floater.Mobile terminal collects shutdown current value simultaneously, is easy to statistical analysis.
In the above embodiment of the present invention, when receiving shutdown command, send first to the voltameter of mobile terminal and control
System instruction, indicates that voltameter after mobile terminal shutdown, gathers the current value of battery circuit, and then determine the pass of mobile terminal
Electromechanical flow valuve;When the current value that shuts down exceedes default leakage current threshold, user is reminded, is easy to user to be detected or tieed up in time
Repair, it is to avoid abnormal power consumption influence battery is normally used;The present invention realizes the current acquisition under off-mode, solves in shutdown
State, the problem of mobile terminal can not detect the leakage current under off-mode.
Second embodiment
Referring to Fig. 2, the second embodiment of the present invention provides a kind of creepage detection method, applied to mobile terminal, bag
Include:
Step 201, when receiving power-off operation instruction, the first control instruction is sent to the voltameter of mobile terminal, makes electricity
The current value of the battery circuit of gauge collection mobile terminal in the power-offstate.
Wherein, in the state of mobile terminal shutdown, it is impossible to the current conditions of automatic detection battery circuit, and then can not be true
It is fixed whether to have leakage current generation;Therefore, in the above-mentioned steps of embodiments of the invention, receive power-off operation in mobile terminal and refer to
When making, the first control instruction is sent to voltameter, indicates that voltameter after mobile terminal shutdown, gathers the electric current of battery circuit
Value.
Preferably, in the step of sending the first control instruction to the voltameter of mobile terminal, the first control instruction includes using
Message is indicated in the first of the electric current for indicating voltameter collection battery circuit, and including being controlled for indicating that voltameter receives first
Postpone to perform the first the second instruction message for indicating message after the first preset time after system instruction;
First preset time is more than the time that mobile terminal completes power-off operation.
Specifically, the first control instruction includes the first instruction message, for indicating that voltameter is adopted after mobile terminal shutdown
The current value of set battery circuit, and the second instruction message, for indicating that voltameter gathers electric current after postponing the first preset time;
Wherein, the first preset time could be arranged to a larger value, such as 2 minutes, it is ensured that mobile terminal completes battery after shutdown
After circuit recovers stable, voltameter collection electric current.
Step 202, the current value gathered according to voltameter, calculates and records battery circuit in the second preset time period
Electric current average.
Wherein, voltameter gathers the current value under off-mode according to the first control instruction, because current value is probably individual
Variable, so the data that voltameter is gathered potentially include multiple different pieces of informations, accordingly, it would be desirable to which it is default second to record voltameter
Multiple current values of collection in time, to determine the electric current average in the second preset time.
Wherein, it is default numerical value in the second preset time, for limiting the duration of collection electric current, it is to avoid voltameter does not stop
Ground collection electric current expends battery electric quantity.
Step 203, according to preset rules, judge whether electric current average of the battery circuit in the second preset time period has
Effect.
Wherein, step 203 includes:
Detect after mobile terminal-opening, obtain the last shutdown duration of mobile terminal;
If shutdown duration is more than the duration sum of the first preset time and the second preset time, it is determined that battery circuit is the
Electric current average in two preset time periods is effective.
Wherein, after mobile terminal-opening, the last shutdown duration of mobile terminal is determined, is obtained when shutting down with many
The mode of kind, can be calculated by unused time last time described in mobile terminal and the difference of this available machine time.If shutting down duration
It is shorter, the duration sum of no more than the first preset time and the second preset time, then the time of explanation collection electric current is shorter, therefore
Electric current average is invalid;If conversely, shutdown duration is more than the duration sum of the first preset time and the second preset time, illustrating to adopt
The duration for collecting data meets and required, the current data of collection effectively, it is thus determined that electric current average effectively, with reference value.
Step 204, if effectively, it is determined that electric current average of the battery circuit in the second preset time period is closed for mobile terminal
The shutdown current value of battery circuit under machine state.
Wherein, if electric current average is effective, the electric current average is the shutdown electric current of a shutdown period on mobile terminal
Value.
Step 205, judge whether shutdown current value is more than default leakage current threshold.
Wherein, shutdown current value is compared with default leakage current threshold, judges whether shutdown current value is more than pre-
If leakage current threshold.
Step 206, when shutdown current value is more than default leakage current threshold, reminder message is sent.
Wherein, when the current value that shuts down is more than default leakage current threshold, reminder message is issued the user with, reminds user to close
Electromechanical throat floater.Mobile terminal collects shutdown current value simultaneously, is easy to statistical analysis.
As a specific example, referring to Fig. 3, mobile terminal detection leakage current mainly includes below scheme;
Step 301, shutdown leakage current is obtained to start.
Step 302, judge user whether about motor-driven work.
Step 303, send and read shutdown current value instruction B to voltameter, then shut down.
Referring to Figure 10, Figure 10 is the circuit connection diagram of voltameter, wherein, voltameter is connected in parallel on battery supply output end
B+ and B- two ends.
When cpu will obtain postboost vbat current values, if detecting user has the action of shutdown, cpu starts
An instruction B for reading shutdown current value first is sent to voltameter before power off flows, is then shut down.
Step 304, the electric current average I2 in voltameter delay t3 post-sampling t4, and write register reg1.
Voltameter IC starts the ibat that samples after the delay t3 times, take the average value in time t4 to write register reg1, open
Hair personnel can read shutdown current value I2 to be started shooting again after elapsed time t5 into engineering mode.
Step 305, user's start is waited.
Step 306, judge whether user starts shooting.
Step 307, last time shutdown and the time difference △ t1 of this start are read.
Step 308, judge whether △ t1 > t3+t4 set up.
Wherein, t3 is maximum time of the mobile terminal under normal circumstances required for electricity, it is ensured that voltameter IC is complete in cpu
Sampled in the state of power off, t5 requirements are more than t3+t4, it is ensured that started shooting again after the completion of sampling, confirm the accuracy of data;
If last time shuts down and the time difference △ t1 of this start is less than t3+t4, the current data this time read is abandoned, is continued waiting for
User reacquires next time again after shutdown.
Step 309, if △ t1 > t3+t4, shutdown current value I2 is read.
Step 310, judge whether I2 is more than Is.
Step 311, user is reminded.
Is is shutdown current threshold.Under normal circumstances, mobile terminal is very little in power off state leakage,
Typically all uA ranks, if I2 ≈ 0, it is possible to exclude the situation of element leakage;If I2 is very big, than if any 100mA, saying
It is bright to have element leakage;One thresholding Is can be set, if I2 is more than Is, remind user to go to handle after sale;
The leakage current I2 that mobile terminal is sampled by this mode, can also upload to clothes by way of big data is buried a little
It is engaged in device, developer can analyze the distribution situation of electric leakage by collecting I2 big data, confirm the ratio of electric leakage, to improve
System design and parts selection provide reference.
For example, if the distribution that big data collects I2 finds that the ratio more than Is is very high, such as 0.1% it is necessary to analyzing which
Device has an electric leakage, or reliability is problematic;Big data can collect I2 Area distribution information simultaneously, confirm electric leakage device
Whether working condition is influenceed by terms of this regional weather, temperature, humidity, so as to improve requirements of type selecting.
In the above embodiment of the present invention, when receiving shutdown command, send first to the voltameter of mobile terminal and control
System instruction, indicates that voltameter postpones the first preset time after mobile terminal shutdown, gathers the current value of battery circuit, moving
After dynamic starting up of terminal, determine whether the current data of collection is effective according to shutdown duration, and then determine the shutdown of mobile terminal
Current value;When the current value that shuts down exceedes default leakage current threshold, user is reminded, is easy to user to be detected or tieed up in time
Repair, it is to avoid abnormal power consumption influence battery is normally used;The present invention realizes the current acquisition under off-mode, solves in shutdown
State, the problem of mobile terminal can not detect the leakage current under off-mode.
3rd embodiment
Referring to Fig. 4, the third embodiment of the present invention provides a kind of creepage detection method, applied to mobile terminal, bag
Include:
Step 401, when the display screen for detecting mobile terminal into holding state and mobile terminal is closed, obtain and move
Dynamic terminal is in standby current value during holding state.
Wherein, when mobile terminal enters holding state and display screen is closed, the running background of mobile terminal is cleared up
Program, makes the central processing unit of mobile terminal enter resting state, standby when now obtaining mobile terminal in holding state
Current value.
Step 402, when detecting standby current value more than default standby current threshold value, send first to voltameter and control
System instruction, makes voltameter gather the electric current of battery circuit.
Under normal circumstances, the standby current of mobile terminal is not over some value, such as 10 milliamperes;If standby current value compared with
When greatly, more than default standby current threshold value, such as to 100 milliamperes, then illustrate that standby current is abnormal, then need by shutdown
Current value determines whether the throat floater that leaks electricity, and the first control instruction is sent to voltameter, voltameter is gathered the electric current of battery circuit.
Step 403, the current value gathered according to voltameter, calculates the shutdown current value of battery circuit.
Wherein, voltameter gathers the current value under off-mode according to the first control instruction, because current value is probably individual
Variable, so the data that voltameter is gathered potentially include multiple different pieces of informations, therefore, after mobile terminal-opening, according to
The current value that voltameter is gathered, according to default rule, determines the shutdown current value of mobile terminal.
Step 404, judge whether shutdown current value is more than default leakage current threshold.
Wherein, shutdown current value is compared with default leakage current threshold, judges whether shutdown current value is more than pre-
If leakage current threshold.
Step 405, when shutdown current value is more than default leakage current threshold, reminder message is sent.
Wherein, when the current value that shuts down is more than default leakage current threshold, reminder message is issued the user with, reminds user to close
Electromechanical throat floater.Mobile terminal collects shutdown current value simultaneously, is easy to statistical analysis.
Preferably, step 401 includes:
The first step, sends the second control instruction to the voltameter of mobile terminal, makes voltameter in the centre of mobile terminal
Manage device to enter after the 3rd preset time after resting state, in fourth preset time period adjacent with, the 3rd preset time
Gather the current value of battery circuit;3rd preset time is more than mobile terminal into holding state and central processing unit enters dormancy
Time required for state.3rd preset time is fixed value, may be set to a longer value of time span, such as 1 minute,
Ensure that being more than mobile terminal enters the time that holding state and central processing unit enter required for resting state.
Wherein, when the display screen for detecting mobile terminal into holding state and mobile terminal is closed, cleaning movement
The running background program of terminal, makes the central processing unit of mobile terminal enter resting state, is sent to the voltameter of mobile terminal
Second control instruction, makes voltameter after the 3rd preset time after the central processing unit of mobile terminal enters resting state,
Ensure that mobile terminal enters after resting state, battery is gathered in fourth preset time period adjacent with the 3rd preset time
The current value of circuit, it is ensured that the data of collection are effective.
Second step, according to the current value gathered in the 4th preset time, determines and records that battery circuit is pre- the 4th
If the electric current average in the electric current average in the period, the 4th preset time period is the standby current value of mobile terminal.
Wherein, holding state is kept in mobile terminal, central processing unit was kept in the 4th period of resting state, collection
Electric current, and when the central processing unit of mobile terminal recovers normal operating condition, determine that the 4th is pre- according to the current value gathered
If the standby current value of the electric current average in the period, as mobile terminal.
Wherein, the 4th preset time is preset value, for limiting the duration of collection electric current, it is to avoid voltameter is ceaselessly gathered
Electric current expends battery electric quantity.
Preferably, before above-mentioned second step, this method also includes:
Detect central processing unit into resting state duration more than five preset durations when, wake up central processing unit;
5th preset duration is more than the duration sum of the 3rd preset time and the 4th preset time.
Wherein, the requirement that the duration of central processing unit in a dormant state has met collection electric current is detected, i.e., more than the
The duration sum of three preset times and the 4th preset time, actively wakes up central processing unit, it is to avoid user wakes up central processing unit
When it is time-consuming longer, influence the use of user.
As a specific example, referring to Fig. 5, mobile terminal detection leakage current mainly includes below scheme:
Step 501, standby current is obtained to start.
Mobile terminal can do a preliminary judgement by detecting standby current, if it exceeds certain threshold value, restarts
The detection of shutdown electric leakage, carries out secondary detection.
Step 502, judge whether user goes out screen.
Step 503, CPU sends instruction A and gives voltameter IC, and clears up backstage and enter dormancy.
Step 504, sampled current value is started after voltameter delay t0.
Step 505, sampling time t1 electric current average I1 write-in registers reg0.
When cpu will obtain standby current value, the instruction A for reading standby current value is sent to voltameter and clears up backstage and enters
Enter dormancy;Voltameter is received after instruction, the time for the t0 that is delayed, and starts the current value sampled on vbat, and take in the t1 times
Ibat average values, write-in register reg0.
Step 506, judge user whether bright screen, if bright screen, terminate flow.
Step 507, after t2, CPU reads current value I1.
Cpu automatically woke up after entering time t2, read the current value I1 in voltameter IC reg0.
Wherein t0 is under normal circumstances, the maximum time that cpu enters required for resting state, voltameter IC will ensure cpu
Start sampled current value again after into dormancy;T2 requirements are more than t0+t1, and cpu will ensure after voltameter IC data acquisitions
Start to read data again.
Step 508, judge that I1 is more than and whether be more than Ia.
Step 509, remind user's standby current abnormal, and initiate current detecting flow of shutting down.
Ia is standby current threshold value.Under normal circumstances, the standby current of mobile terminal is not over some value, such as
10mA;If the read out the I1 come than larger, such as 100mA is arrived, then it is assumed that have abnormal current, this electric current is probably device
Leakage current, it is also possible to be the abnormal power consumption that some of mobile terminal module does not have dormancy to occur, be to further confirm that
It is not leakage current, then enables shutdown current detecting.
In the above embodiment of the present invention, when mobile terminal enters holding state and display screen and is closed, cleaning movement
The running background program of terminal, makes the central processing unit of mobile terminal enter resting state, voltameter is actively gathered mobile whole
The standby current at end;If standby current exceedes default standby current threshold value, send first to the voltameter of mobile terminal and control
Instruction, indicates that voltameter after mobile terminal shutdown, gathers the current value of battery circuit, and then determine the shutdown of mobile terminal
Current value;When the current value that shuts down exceedes default leakage current threshold, user is reminded, is easy to user to be detected or tieed up in time
Repair, it is to avoid abnormal power consumption influence battery is normally used;The present invention realizes the active current collection under holding state, if treating electromechanics
Flow valuve is abnormal, arouses shutdown current acquisition flow, and the present invention is solved in off-mode, and mobile terminal can not detect off-mode
Under leakage current the problem of.
Fourth embodiment
Referring to Fig. 6, the fourth embodiment of the present invention provides a kind of mobile terminal 600, including:
First sending module 601, for receiving during power-off operation instruction, the is sent to the voltameter of mobile terminal 600
One control instruction, makes voltameter gather the current value of the battery circuit of mobile terminal 600 in the power-offstate.
Wherein, leakage current refers to the electric current that the internal components electric leakage of mobile terminal 600 is produced, it is generally the case that mobile terminal
Under 600 off-modes, internal components answer no current or minimum electric current, typically all the uA orders of magnitude, if there is larger electricity
Life of miscarrying is that leakage current is larger.After situations such as mobile terminal 600 occurs mechanical failure or made moist, some device portions is lost
Effect, it is possible to which producing leakage current causes abnormal power consumption, so possible macro manifestations are abnormal heating, battery is not durable.And
In the state of the shutdown of mobile terminal 600, it is impossible to the current conditions of automatic detection battery circuit, and then it can not determine whether Lou
Electric current is produced;Therefore, in the above-mentioned steps of embodiments of the invention, when mobile terminal 600 receives power-off operation instruction, to
Voltameter sends the first control instruction, indicates that voltameter after the shutdown of mobile terminal 600, gathers the current value of battery circuit.
First acquisition module 602, for the current value gathered according to voltameter, calculates the shutdown electric current of battery circuit
Value.
Wherein, voltameter gathers the current value under off-mode according to the first control instruction, because current value is probably individual
Variable, so the data that voltameter is gathered potentially include multiple different pieces of informations, therefore, after the start of mobile terminal 600, root
The current value gathered according to voltameter, according to default rule, determines the shutdown current value of mobile terminal 600.
Judge module 603, for judging whether shutdown current value is more than default leakage current threshold.
Wherein, shutdown current value is compared with default leakage current threshold, judges whether shutdown current value is more than pre-
If leakage current threshold.
Prompting module 604, for being more than default leakage current threshold when shutdown current value, sends reminder message.
Wherein, when the current value that shuts down is more than default leakage current threshold, reminder message is issued the user with, reminds user to close
Electromechanical throat floater.Mobile terminal 600 collects shutdown current value simultaneously, is easy to statistical analysis.
Alternatively, the first control instruction includes being used to indicate that the first of the electric current of voltameter collection battery circuit to indicate to disappear
Breath, and including postponing to perform the first instruction message after the first preset time after the first control instruction for indicating that voltameter is received
Second indicate message;
First preset time is more than the time that mobile terminal 600 completes power-off operation.
Alternatively, referring to Fig. 7, the first acquisition module 602 includes:
First determination sub-module 6021, for the current value gathered according to voltameter, calculates and records battery circuit and exist
Electric current average in second preset time period;
Judging submodule 6022, for according to preset rules, judging electric current of the battery circuit in the second preset time period
Whether average is effective:
Second determination sub-module 6023, if for effectively, it is determined that electric current of the battery circuit in the second preset time period
Average is the shutdown current value of battery circuit under the off-mode of mobile terminal 600.
Alternatively, judging submodule 6022 is used for:
Detect after the start of mobile terminal 600, obtain the last shutdown duration of mobile terminal 600;
If shutdown duration is more than the duration sum of the first preset time and the second preset time, it is determined that battery circuit is the
Electric current average in two preset time periods is effective.
Alternatively, referring to Fig. 7, mobile terminal 600 also includes:
Second acquisition module 605, for entering the aobvious of holding state and mobile terminal 600 when detecting mobile terminal 600
When display screen curtain is closed, standby current value when mobile terminal 600 is in holding state is obtained;
When detecting standby current value more than default standby current threshold value, the first control instruction is sent to voltameter,
Voltameter is set to gather the electric current of battery circuit.
Alternatively, referring to Fig. 7, the second acquisition module 605 includes:
Sending submodule 6051, for sending the second control instruction to the voltameter of mobile terminal 600, makes voltameter in shifting
The central processing unit of dynamic terminal enters after the 3rd preset time after resting state, the adjacent with the 3rd preset time the 4th
The current value of collection battery circuit in preset time period;3rd preset time be more than mobile terminal 600 enter holding state and in
The time that central processor enters required for resting state;
Record sub module 6052, for according to the current value gathered in the 4th preset time, determining and recording battery
Electric current average treating for mobile terminal 600 in electric current average of the circuit in the 4th preset time period, the 4th preset time period
Electromechanical flow valuve.
Alternatively, referring to Fig. 7, mobile terminal 600 also includes:
Wake module 606, when entering the duration of resting state more than five preset durations for detecting central processing unit,
Wake up central processing unit;5th preset duration is more than the duration sum of the 3rd preset time and the 4th preset time.
In the above embodiment of the present invention, when receiving shutdown command, first is sent to the voltameter of mobile terminal 600
Control instruction, indicates voltameter after the shutdown of mobile terminal 600, gathers the current value of battery circuit, and then determine movement eventually
The shutdown current value at end 600;When the current value that shuts down exceedes default leakage current threshold, user is reminded, is easy to user to enter in time
Row detection is repaired, it is to avoid abnormal power consumption influence battery is normally used;The present invention realizes the current acquisition under off-mode, solution
Determine in off-mode, the problem of mobile terminal 600 can not detect the leakage current under off-mode.
5th embodiment
Fig. 8 is the block diagram of the mobile terminal of fifth embodiment of the invention.Mobile terminal 800 shown in Fig. 8 includes:At least one
Individual processor 801, memory 802, at least one network interface 804 and other users interface 803.In mobile terminal 800
Each component is coupled by bus system 805.It is understood that bus system 805 is used to realize the company between these components
Connect letter.Bus system 805 is in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But
It is that for the sake of clear explanation, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double DataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and
The memory of any other suitable type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for
Realize various basic businesses and handle hardware based task.Application program 8022, includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business, realize the embodiment of the present invention
The program of method may be embodied in application program 8022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 802, specifically, can be application
The program stored in program 8022 or instruction, processor 801 are used for:When receiving power-off operation instruction, to the electricity of mobile terminal
Gauge sends the first control instruction, voltameter is gathered the current value of the battery circuit of mobile terminal in the power-offstate;According to
The current value that voltameter is gathered, calculates the shutdown current value of battery circuit;Judge whether shutdown current value is more than default leakage
Current threshold;When shutdown current value is more than default leakage current threshold, reminder message is sent.
The method that the embodiments of the present invention are disclosed can apply in processor 801, or be realized by processor 801.
Processor 801 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 802, processor 801 reads the information in memory 802, the step of completing the above method with reference to its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application
Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
LogicDevice, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), general place
Manage in device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized by performing the module (such as process, function) of function described herein herein for software
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realized outside processor.
Alternatively, as another embodiment, processor 801 is additionally operable to:First is sent to the voltameter of mobile terminal to control
In the step of system instruction, the first control instruction includes being used to indicate that the first of the electric current of voltameter collection battery circuit to indicate to disappear
Breath, and including postponing to perform the first instruction message after the first preset time after the first control instruction for indicating that voltameter is received
Second indicate message;
First preset time is more than the time that mobile terminal completes power-off operation.
Alternatively, as another embodiment, processor 801 is additionally operable to:The current value gathered according to voltameter, is calculated
And record electric current average of the battery circuit in the second preset time period;
According to preset rules, judge whether electric current average of the battery circuit in the second preset time period be effective:
If effectively, it is determined that electric current average of the battery circuit in the second preset time period is under mobile terminal off-mode
The shutdown current value of battery circuit.
Alternatively, as another embodiment, processor 801 is additionally operable to:Detect after mobile terminal-opening, obtain and move
The last shutdown duration of dynamic terminal;
If shutdown duration is more than the duration sum of the first preset time and the second preset time, it is determined that battery circuit is the
Electric current average in two preset time periods is effective.
Alternatively, as another embodiment, processor 801 is additionally operable to:Enter holding state when detecting mobile terminal
And during the display screen closing of mobile terminal, obtain standby current value when mobile terminal is in holding state;
When detecting standby current value more than default standby current threshold value, the first control instruction is sent to voltameter,
Voltameter is set to gather the electric current of battery circuit.
Alternatively, as another embodiment, processor 801 is additionally operable to:Second is sent to the voltameter of mobile terminal to control
System instruction, makes voltameter after the 3rd preset time after the central processing unit of mobile terminal enters resting state, with the
The current value of collection battery circuit in the 4th adjacent preset time period of three preset times;3rd preset time is more than mobile terminal
Time required for entering resting state into holding state and central processing unit;
According to the current value gathered in the 4th preset time, determine and record battery circuit in the 4th preset time period
Electric current average in interior electric current average, the 4th preset time period is the standby current value of mobile terminal.
Alternatively, as another embodiment, processor 801 is additionally operable to:Detect central processing unit and enter resting state
Duration more than five preset durations when, wake up central processing unit;5th preset duration is pre- more than the 3rd preset time and the 4th
If the duration sum of time.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 800 of the embodiment of the present invention, by processor 801 when receiving shutdown command, to mobile terminal
Voltameter send the first control instruction, indicate voltameter mobile terminal shutdown after, gather battery circuit current value, enter
And determine the shutdown current value of mobile terminal;When the current value that shuts down exceedes default leakage current threshold, user is reminded, is easy to use
Detected or repaired in time in family, it is to avoid abnormal power consumption influence battery is normally used;The present invention realizes the electricity under off-mode
Stream collection, is solved in off-mode, the problem of mobile terminal can not detect the leakage current under off-mode.
Sixth embodiment
Fig. 9 is the structure chart for the mobile terminal that sixth embodiment of the invention is provided.Specifically, the mobile terminal 900 in Fig. 9
Can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer
Deng.
Mobile terminal 900 in Fig. 9 includes radio frequency (RadioFrequency, RF) circuit 910, memory 920, input list
Member 930, display unit 940, processor 950, WiFi (Wireless Fidelity) module 960, voicefrequency circuit 970, power supply
980。
Wherein, input block 930 can be used for the numeral or character information for receiving user input, and produce and mobile terminal
The signal input that 900 user is set and function control is relevant.
Specifically, in the embodiment of the present invention, the input block 930 can include contact panel 931.Contact panel 931,
Referred to as touch-screen, collecting touch operation of the user on or near it, (such as user is any suitable using finger, stylus etc.
The operation of object or annex on contact panel 931), and corresponding attachment means are driven according to formula set in advance.It is optional
, contact panel 931 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection means, and is converted into contact coordinate, then gives the processor 950, and can receiving processor
950 orders sent simultaneously are performed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Type realizes contact panel 931.Except contact panel 931, input block 930 can also include other input equipments 932, and other are defeated
Enter equipment 932 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball,
One or more in mouse, action bars etc..
Wherein, display unit 940 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when touch display screen inspection
Measure after the touch operation on or near it, processor 950 is sent to determine the type of touch event, with preprocessor
950 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, processor 950 is used for:When receiving power-off operation instruction, to the electricity of mobile terminal
Meter sends the first control instruction, voltameter is gathered the current value of the battery circuit of mobile terminal in the power-offstate;According to electricity
The current value that gauge is gathered, calculates the shutdown current value of battery circuit;Judge whether shutdown current value is more than default electric leakage
Flow threshold value;When shutdown current value is more than default leakage current threshold, reminder message is sent.
Alternatively, as another embodiment, processor 950 is additionally operable to:First is sent to the voltameter of mobile terminal to control
In the step of system instruction, the first control instruction includes being used to indicate that the first of the electric current of voltameter collection battery circuit to indicate to disappear
Breath, and including postponing to perform the first instruction message after the first preset time after the first control instruction for indicating that voltameter is received
Second indicate message;
First preset time is more than the time that mobile terminal completes power-off operation.
Alternatively, as another embodiment, processor 950 is additionally operable to:The current value gathered according to voltameter, is calculated
And record electric current average of the battery circuit in the second preset time period;
According to preset rules, judge whether electric current average of the battery circuit in the second preset time period be effective:
If effectively, it is determined that electric current average of the battery circuit in the second preset time period is under mobile terminal off-mode
The shutdown current value of battery circuit.
Alternatively, as another embodiment, processor 950 is additionally operable to:Detect after mobile terminal-opening, obtain and move
The last shutdown duration of dynamic terminal;
If shutdown duration is more than the duration sum of the first preset time and the second preset time, it is determined that battery circuit is the
Electric current average in two preset time periods is effective.
Alternatively, as another embodiment, processor 950 is additionally operable to:Enter holding state when detecting mobile terminal
And during the display screen closing of mobile terminal, obtain standby current value when mobile terminal is in holding state;
When detecting standby current value more than default standby current threshold value, the first control instruction is sent to voltameter,
Voltameter is set to gather the electric current of battery circuit.
Alternatively, as another embodiment, processor 950 is additionally operable to:Second is sent to the voltameter of mobile terminal to control
System instruction, makes voltameter after the 3rd preset time after the central processing unit of mobile terminal enters resting state, with the
The current value of collection battery circuit in the 4th adjacent preset time period of three preset times;3rd preset time is more than mobile terminal
Time required for entering resting state into holding state and central processing unit;
According to the current value gathered in the 4th preset time, determine and record battery circuit in the 4th preset time period
Electric current average in interior electric current average, the 4th preset time period is the standby current value of mobile terminal.
Alternatively, as another embodiment, processor 950 is additionally operable to:Detect central processing unit and enter resting state
Duration more than five preset durations when, wake up central processing unit;5th preset duration is pre- more than the 3rd preset time and the 4th
If the duration sum of time.
Mobile terminal 900 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 900 of the embodiment of the present invention, by processor 950 when receiving shutdown command, to mobile terminal
Voltameter send the first control instruction, indicate voltameter mobile terminal shutdown after, gather battery circuit current value, enter
And determine the shutdown current value of mobile terminal;When the current value that shuts down exceedes default leakage current threshold, user is reminded, is easy to use
Detected or repaired in time in family, it is to avoid abnormal power consumption influence battery is normally used;The present invention realizes the electricity under off-mode
Stream collection, is solved in off-mode, the problem of mobile terminal can not detect the leakage current under off-mode.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc, CD etc. are various can be with Jie of store program codes
Matter.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.