CN108132401A - Charge abnormal detection method, device, storage medium and mobile terminal - Google Patents

Charge abnormal detection method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108132401A
CN108132401A CN201711464854.5A CN201711464854A CN108132401A CN 108132401 A CN108132401 A CN 108132401A CN 201711464854 A CN201711464854 A CN 201711464854A CN 108132401 A CN108132401 A CN 108132401A
Authority
CN
China
Prior art keywords
charging
mobile terminal
current value
battery
charging current
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.)
Pending
Application number
CN201711464854.5A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711464854.5A priority Critical patent/CN108132401A/en
Publication of CN108132401A publication Critical patent/CN108132401A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the present application discloses abnormal detection method, device, storage medium and the mobile terminal of charging.This method includes:When mobile terminal is in charged state, detect that charging abnormality detection event is triggered;Obtain the charging current value being filled in the battery of the mobile terminal;Judge whether the charging current value got in preset duration meets preset charged exceptional condition, if satisfied, then determining charging exception occur.The embodiment of the present application is by using above-mentioned technical proposal, it can be in the charging process of mobile terminal, charging current according to being filled in battery judges charging exception whether occur, convenient subsequently to take appropriate measures, and reduction charging is abnormal to be influenced to caused by user's use.

Description

Charge abnormal detection method, device, storage medium and mobile terminal
Technical field
The invention relates to the abnormal detection method in charging technique field more particularly to charging, device, storage mediums And mobile terminal.
Background technology
Quick with mobile terminal is popularized, and the mobile terminals such as mobile phone and tablet computer have become what is worked and live for people Indispensable tool.
Portability is one of maximum feature of mobile terminal, and portable attribute also determines that mobile terminal is needed using electricity Pond powers.User is being increased using the frequency and duration of mobile terminal at present, and the capacity of battery is than relatively limited, generally It just needs to fill mobile terminal primary electricity within 1 day to 2 days.
In charging process, it is understood that there may be various factors causes charging to be abnormal, will be to user's if being abnormal Using affecting or even there are security risks.Therefore, the abnormal technical solution of charging is detected there is an urgent need for a kind of.
Invention content
The embodiment of the present application provides a kind of charge abnormal detection method, device, storage medium and mobile terminal, Ke Yiti For a kind of scheme for detecting battery charging in mobile terminal and being abnormal situation.
In a first aspect, the embodiment of the present application provides a kind of abnormal detection method that charges, including:
When mobile terminal is in charged state, detect that charging abnormality detection event is triggered;
Obtain the charging current value being filled in the battery of the mobile terminal;
Judge whether the charging current value got in preset duration meets preset charged exceptional condition, if satisfied, then really It is abnormal to make existing charging.
Second aspect, the embodiment of the present application provide a kind of abnormal detection device that charges, including:
Event detection trigger module, for when mobile terminal is in charged state, detection charging abnormality detection event is It is no to be triggered;
Charging current acquisition module, for when detecting that charging abnormality detection event is triggered, acquisition to be filled with the shifting Charging current value in the battery of dynamic terminal;
Charge abnormal determination module, for judging whether the charging current value got in preset duration meets preset charged Exceptional condition, if satisfied, then determining charging exception occur.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the detection method of the charging exception as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, processor and are stored in storage And can be in the computer program of processor operation on device, the processor is realized when performing the computer program as the application is real Apply the detection method of the charging exception described in example.
The detection scheme of charging exception provided in the embodiment of the present application, when mobile terminal is in charged state, detection It is triggered to charging abnormality detection event, obtains the charging current value being filled in the battery of mobile terminal, judge in preset duration Whether the charging current value got meets preset charged exceptional condition, if satisfied, then determining charging exception occur.By using Above-mentioned technical proposal can judge whether go out in the charging process of mobile terminal according to the charging current being filled in battery Now charging is abnormal, convenient subsequently to take appropriate measures, and it is abnormal to influence caused by user's use to reduce charging.
Description of the drawings
Fig. 1 is a kind of flow diagram of abnormal detection method that charges provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the abnormal detection method of another charging provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the abnormal detection method of another charging provided by the embodiments of the present application;
Fig. 4 is the flow diagram of the abnormal detection method of another charging provided by the embodiments of the present application;
Fig. 5 is a kind of structure diagram of abnormal detection device that charges provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another mobile terminal provided by the embodiments of the present application.
Specific embodiment
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the application rather than the restriction to the application.It further needs exist for illustrating , part relevant with the application rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of flow diagram of abnormal detection method that charges provided by the embodiments of the present application, and this method can be with It is performed by the abnormal detection device of charging, wherein the device can generally be integrated in mobile terminal by software and or hardware realization In.As shown in Figure 1, this method includes:
Step 101, when mobile terminal is in charged state, detect charging abnormality detection event be triggered.
Illustratively, the mobile terminal in the embodiment of the present application may include mobile phone, tablet computer and media player etc. It is built-in with the mobile equipment of battery.
At present, mobile terminal generally supports charging in many ways, including wired charging method and wireless charging mode.Its In, wired charging method is generally realized by universal serial bus (Universal Serial Bus, USB) interface, USB connections Line one end is connect with the USB interface on mobile terminal, according to the energy supply device of USB connecting lines other end connection not Together, it can also be divided into power supply adaptor charging modes, mobile power charging modes and USB charging modes (other end generally connects Computer) etc..The scheme that the embodiment of the present application is provided is applicable to arbitrary charging modes, this is not limited.The place Can be that mobile terminal has just entered charged state or has been in charged state for a period of time in charged state, this Application does not also limit.It is power management such as when charger is inserted into generally, when mobile terminal has just enter into charged state Module provides voltage, and power management module can generate a charging interrupt signal to processor, for mobile phone, the processor Generally application processor (Application Processor, AP), so as to learn that mobile terminal enters charged state.
Illustratively, charging abnormality detection event can when mobile terminal has just enter into charged state automatic trigger;Charging Abnormality detection event can also trigger under setting condition, for example, imposing a condition detects that mobile terminal enters charged state Duration reaches preset charged duration, such as 30 minutes;The abnormality detection that charges event can also actively be triggered by user, as user prepares It leaves mobile terminal and does some things, such as cook, can be charged master in a manner of abnormality detection Event switch etc. by opening by active Dynamic triggering charging abnormality detection event.Certainly, the mode of triggering charging abnormality detection event can also there are many kinds of, the application is real Example is applied not limit.
Step 102, acquisition are filled with the charging current value in the battery of mobile terminal.
Generally, the current value of different energy supply device output may be different.By taking smart mobile phone as an example, common electricity The current value that source adapter can export is generally 1000mA, and the current value for the power supply adaptor output of quick charge may Reach that 1500mA is even higher, the current value that computer is exported by USB modes may be 500mA.In addition, energy supply device is defeated The electric current gone out also needs to that by devices such as charging chips (integrated circuit, IC) battery can be finally-transmitted to In.In electricity transmission process, it is understood that there may be the charging current that various factors leads to be filled in battery goes wrong so that battery Normal electricity can not be obtained.For example, such as there are collapsing in the process of running at the abnormal conditions in the firmware of burning in charging IC, also May cause charging abnormal due to the influence of the factors such as electrostatic interference etc..In the embodiment of the present application, acquisition is filled with filling in battery Electric current value judges for subsequent charging to be abnormal, can rapidly and accurately identify that charging is abnormal.
Illustratively, obtaining the mode of charging current value being filled in battery has very much, and the application is not especially limited.Example Such as, charging current value can be obtained by reading current node, by taking Android (Android) as an example, current node is "/sys/ class/power_supply/battery/BatteryAverageCurrent”;In addition, the battery for being built-in with voltameter For, the charging current value being filled in battery, the benefit set in this way can be read from the voltameter in the battery of mobile terminal It is rapidly and accurately obtain charging current value;It in addition, can also be from default analog-to-digital conversion module (Analog-to- Digital Converter, ADC) charging current value being filled in the battery of mobile terminal is read, wherein, preset analog-to-digital conversion Module is electrically connected with power management chip, and power management chip is electrically connected with battery, the advantages of this arrangement are as follows, without Voltameter in battery is set, saves the manufacture cost of battery, while the charging current being filled in battery can be accurately obtained again Value.
Step 103 judges whether the charging current value got in preset duration meets preset charged exceptional condition, if full Foot, it is determined that it is abnormal charging occur.
Wherein, preset duration can be set according to actual demand, and the embodiment of the present application does not limit its specific value, example Such as, it can be 5 minutes or 10 minutes etc..
At present, the battery of most mobile terminals is lithium ion battery, and abbreviation lithium battery, the application carries out by taking lithium battery as an example Explanation.The charging process of lithium battery generally can be divided into four-stage, trickle charge (low pressure preliminary filling), constant-current charge, constant-voltage charge And charging termination.Typically charging modes are:The voltage of battery to be charged is first detected, if voltage is less than 3V, is needed advanced Line precharge, charging current is the 1/10 of setting electric current, after voltage is raised to 3V, into standard charging process;Standard charging process In, constant-current charge is carried out with setting electric current (generally 1000mA), (general battery capacity is reachable when cell voltage is raised to 4.2V 75%), it is changed to constant-voltage charge, holding charging voltage is 4.2V, and charging current is gradually reduced during constant-voltage charge, when under electric current When being down to the 1/10 of setting charging current, charging terminates.A kind of typical charging process, the embodiment of the present application are provided only above In can according to the actual conditions of mobile terminal set charging strategy, do not limited by the example above.
By the example above it is found that different phase in charging process, the requirement to charging current are different, the application is real The different preset charged exceptional condition of different charging stage settings can be directed to by applying in example.For example, in low pressure charging stage, charging Electric current is normally for 100mA, when the charging current value got in preset duration is less than 10mA or during more than 200mA, it is believed that Meet preset charged exceptional condition;In constant-current charging phase, charging current is normally 1000mA, when what is got in preset duration When charging current value is less than 20mA or more than 1300mA, it is believed that meet preset charged exceptional condition;In constant voltage charging phase, Charging current continuously decreases, generally 100 between 300mA, when the charging current value got in preset duration is less than 10mA When or during more than 600mA, it is believed that meet preset charged exceptional condition;In the charging termination stage, the general very little of charging current value, When the charging current value got in preset duration is more than 100mA, it is believed that meet preset charged exceptional condition.
Certainly the unified preset charged exceptional condition of different charging stage settings can be also directed to, the application does not limit. For example, in entire charging process, when the charging current value got in preset duration is less than predetermined current threshold (such as 20mA) When, it is believed that meet preset charged exceptional condition;Alternatively, when the fluctuation range of the charging current value got in preset duration surpasses When crossing default fluctuation range (as -300mA arrives 300mA), illustrate that charging current is highly unstable, easily battery damaged, It is also contemplated that meet preset charged exceptional condition.
The abnormal detection method of charging provided by the embodiments of the present application, when mobile terminal is in charged state, detects Charging abnormality detection event is triggered, and obtains the charging current value being filled in the battery of mobile terminal, judges to obtain in preset duration Whether the charging current value got meets preset charged exceptional condition, if satisfied, then determining charging exception occur.By using upper Technical solution is stated, can judge whether occur according to the charging current being filled in battery in the charging process of mobile terminal Charging is abnormal, convenient subsequently to take appropriate measures, and it is abnormal to influence caused by user's use to reduce charging.
In some embodiments, whether the charging current value for judging to get in preset duration it is different meet preset charged Normal condition, including:Whether the charging current value got in preset duration is judged continuously less than the first predetermined current threshold, if It is, it is determined that meet preset charged exceptional condition.Illustratively, obtaining the process of charging current value being filled in battery can be It obtains or is obtained with default frequency acquisition (such as 5 seconds primary) in real time.First predetermined current threshold can be according to reality Situation (such as battery capacity and charging modes) is determined, such as 20mA.If it is got in preset duration (such as 2 minutes) Charging current value continuously less than the first predetermined current threshold, it is believed that meet preset charged exceptional condition.By taking 20mA as an example, fill Electric current very little, almost without electricity is charged into, so can confirm that appearance charging is abnormal.
In some embodiments, whether the charging current value for judging to get in preset duration it is different meet preset charged Normal condition, including:Judge the charging current for being less than the second predetermined current threshold in the charging current value got in preset duration Whether the number of value reaches preset quantity threshold value, if so, determining to meet preset charged exceptional condition.Wherein, the second default electricity Flowing threshold value can be equal with the first predetermined current threshold, can not also wait.It was once as 5 seconds using the frequency for obtaining charging current value Example, when starting to obtain charging current value, initialization exception number is 0, if current collected charging current value is less than 20mA, Frequency of abnormity adds 1, if frequency of abnormity reaches preset quantity threshold value (such as 20 times) in 2 minutes, it is determined that it is different to meet preset charged Normal condition.The advantages of this arrangement are as follows when the most of charging current values got in preset duration meet abnormal conditions, It can think to meet abnormal charge condition, preventing from failing to judge happens.
Further, the charging current value being filled in the battery of the mobile terminal is obtained, including:By pre-set The acquisition of heartbeat detection thread is filled with the charging current value in the battery of the mobile terminal, wherein, the heartbeat detection thread is every It is primary every the operation of the first prefixed time interval.The advantages of this arrangement are as follows it can be accurately controlled using heartbeat detection thread The opportunity of charging current value is obtained, makes the judgement of charging exception more accurately and reliably.Illustratively, heartbeat detection thread every five seconds for example Operation is primary, obtains the state currently to charge at runtime, that is, obtains the charging current value being filled in battery.
In some embodiments, after determining charging exception occur, including:Carry out charging abnormity prompt operation;With/ Or, control charging chip resets.Illustratively, carry out charging abnormity prompt operation concrete mode can be light indicator light, Playing alert tones, the display modes such as text prompt or vibrations to remind user that charging is abnormal, promote user to take phase in time The measure answered, such as change charging modes.Illustratively, it can also be automatically attempted to restore to charge normal, such as logical by mobile terminal Cross the mode that control charging IC resets.It (can be described as initialization to post for the register of initialization generally, being provided in charging IC Storage), initialization register can be controlled to reset charging IC by way of sending reset instruction to initialization register, In this way, charging IC is likely to restore normal work after the reset so that charging is normal.Optionally, determining charging exception occur Afterwards, the operation of charging abnormity prompt can be carried out at the same time and control charging chip resets, improve what mobile terminal recovery charged normal Probability effectively solves the problems, such as that charging is unsuccessful.Certainly, also whether can continue detection charging abnormal conditions after the IC that charges is resetted It disappears, if not disappearing, resets again or carry out charging abnormity prompt operation.
In some embodiments, it is described when mobile terminal is in charged state, it further includes:Every between the second preset time It is resetted once every control charging chip, second prefixed time interval is more than the preset duration.The benefit set in this way exists In, often to charging IC carry out reset operation, can reduce charging abnormal conditions generation.Wherein, the second prefixed time interval is big In preset duration, such as it can be 15 minutes.
The flow diagram of detection method abnormal for another charging provided by the embodiments of the present application Fig. 2, this method packet Include following steps:
Step 201, when mobile terminal is in charged state, detect charging abnormality detection event be triggered.
Step 202, acquisition are filled with the charging current value in the battery of mobile terminal.
Whether step 203 judges the charging current value got in preset duration continuously less than the first predetermined current threshold, If so, perform step 204;Otherwise, it returns and performs step 202.
Optionally, the first predetermined current threshold is 20mA.
Step 204 determines charging exception occur.
Step 205, control charging chip reset.
The abnormal detection method of charging provided by the embodiments of the present application, in mobile terminal charging process is judged, presets When the charging current value being filled in battery got in duration is continuously less than certain numerical value, it is believed that battery can not currently fill Enter electricity, charging exception occur, charging chip is automatically controlled by mobile terminal and is resetted, attempt to restore normal charging, in fact Verify bright, after charging chip reset, the probability for restoring to charge normal is very high, therefore, can detect charging occurs it is abnormal When, timely and effectively restore to charge normal, avoid charging is abnormal from being impacted to user's normal use.
The flow diagram of detection method abnormal for another charging provided by the embodiments of the present application Fig. 3, this method packet Include following steps:
Step 301 when detecting that mobile terminal enters charged state, starts pre-set heartbeat detection thread.
Step 302, the charging current value being filled with by heartbeat detection thread acquisition in the battery of mobile terminal.
Wherein, the heartbeat detection thread is primary every operation in 5 seconds, and when operation, which obtains, to be filled in the battery of mobile terminal Charging current value.
Optionally, heartbeat detection thread can also start before mobile terminal enters charged state, be transported in heartbeat detection thread During row, also whether enter charged state using heartbeat detection thread detection mobile terminal.
Optionally, it is filled in the battery from the voltameter reading in the battery of mobile terminal by heartbeat detection thread Charging current value;Alternatively, the battery of the mobile terminal is filled with from the reading of default analog-to-digital conversion module by heartbeat detection thread In charging current value, wherein, the default analog-to-digital conversion module is electrically connected with power management chip, the power management chip It is electrically connected with the battery.
Step 303 judges the charging for being less than the second predetermined current threshold in the charging current value got in preset duration Whether the number of current value reaches preset quantity threshold value, if so, performing step 304;Otherwise, it returns and performs step 302.
Optionally, the second predetermined current threshold is 20mA, and preset duration is 2 minutes, and preset quantity threshold value is 20 times.
Step 304 determines charging exception occur.
Step 305, the initialization register into charging chip send reset instruction, to be realized by initialization register The reset of charging chip.
It should be noted that heartbeat detection thread, in running background, the process that charging IC resets will not be reacted to screen On, interference will not be generated using mobile terminal to user.
The abnormal detection method of charging provided by the embodiments of the present application, in mobile terminal charging process, is examined by heartbeat The acquisition of survey line journey is filled with the charging current value in battery, when the charging being filled in the battery electricity for judging to get in preset duration When the number that flow valuve is less than certain numerical value reaches certain frequency threshold value, it is believed that battery currently can not normally be filled with electricity, Charging chip is automatically controlled by mobile terminal to be resetted, attempts to restore normal charging, avoids charging abnormal normal to user Using impacting.
The flow diagram of detection method abnormal for another charging provided by the embodiments of the present application Fig. 4, this method packet It includes:
Step 401 detects that mobile terminal enters charged state.
Step 402, the charging current value being filled with by the acquisition of heartbeat detection thread in the battery of mobile terminal.
Step 403 judges the charging for being less than the second predetermined current threshold in the charging current value got in preset duration Whether the number of current value reaches preset quantity threshold value, if so, performing step 404;Otherwise, it returns and performs step 402.
Step 404 determines charging exception occur.
Step 405, the initialization register into charging chip send reset instruction, to be realized by initialization register The reset of charging chip.
Step 406 continues through the charging current value that the acquisition of heartbeat detection thread is filled in the battery of mobile terminal.
Step 407 judges the charging for being less than the second predetermined current threshold in the charging current value got in preset duration Whether the number of current value reaches preset quantity threshold value again, if so, performing step 408;Otherwise, it returns and performs step 402.
Step 408 carries out charging abnormity prompt operation.
The abnormal detection method of charging provided by the embodiments of the present application when detecting that generation charging is abnormal, first passes through multiple The mode of position charging IC is attempted to restore to charge normal, then proceedes to detect, if finding, charging abnormal conditions do not disappear, and lead to Crossing the mode for charge abnormity prompt operation prompts user to take corresponding measure, avoids charging abnormal caused by user's use It influences.
Fig. 5 is a kind of structure diagram of abnormal detection device that charges provided by the embodiments of the present application, which can be by soft Part and/or hardware realization, are typically integrated in mobile terminal, can be by performing the abnormal detection method of charging come to mobile terminal Whether middle battery charging process, which occurs charging exception, is detected.As shown in figure 5, the device includes:
Event detection trigger module 501, for when mobile terminal is in charged state, detecting charging abnormality detection event Whether it is triggered;
Charging current acquisition module 502, for when detecting that charging abnormality detection event is triggered, acquisition to be filled with described Charging current value in the battery of mobile terminal;
Charge abnormal determination module 503, for judging it is default whether the charging current value got in preset duration meets Charge exceptional condition, if satisfied, then determining charging exception occur.
The detection device of charging exception provided in the embodiment of the present application, when mobile terminal is in charged state, detection It is triggered to charging abnormality detection event, obtains the charging current value being filled in the battery of mobile terminal, judge in preset duration Whether the charging current value got meets preset charged exceptional condition, if satisfied, then determining charging exception occur.By using Above-mentioned technical proposal can judge whether go out in the charging process of mobile terminal according to the charging current being filled in battery Now charging is abnormal, convenient subsequently to take appropriate measures, and it is abnormal to influence caused by user's use to reduce charging.
Optionally, whether the charging current value for judging to get in preset duration meets preset charged exceptional condition, Including:
Whether the charging current value got in preset duration is judged continuously less than the first predetermined current threshold, if so, It determines to meet preset charged exceptional condition.
Optionally, whether the charging current value for judging to get in preset duration meets preset charged exceptional condition, Including:
Judge in the charging current value got in preset duration less than the charging current value of the second predetermined current threshold Whether number reaches preset quantity threshold value, if so, determining to meet preset charged exceptional condition.
Optionally, the charging current value being filled in the battery of the mobile terminal is obtained, including:
The charging current value being filled with by the acquisition of pre-set heartbeat detection thread in the battery of the mobile terminal, In, the heartbeat detection thread is primary every the operation of the first prefixed time interval.
Optionally, the acquisition is filled with the charging current value in the battery of the mobile terminal, including:
The charging current value being filled with from the voltameter reading in the battery of the mobile terminal in the battery;Or,
The charging current value being filled with from the reading of default analog-to-digital conversion module in the battery of the mobile terminal, wherein, it is described Default analog-to-digital conversion module is electrically connected with power management chip, and the power management chip is electrically connected with the battery.
Optionally, which further includes:Exception processing module, for after determining charging exception occur, charging Abnormity prompt operates;And/or control charging chip resets.
Optionally, which further includes:Reseting module, it is pre- every second for when mobile terminal is in charged state If time interval controls charging chip resets once, second prefixed time interval is more than the preset duration.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform It instructs when being performed by computer processor for performing the abnormal detection method of charging, this method includes:
When mobile terminal is in charged state, detect that charging abnormality detection event is triggered;
Obtain the charging current value being filled in the battery of the mobile terminal;
Judge whether the charging current value got in preset duration meets preset charged exceptional condition, if satisfied, then really It is abnormal to make existing charging.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (example Such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other types Memory or combination.In addition, storage medium can be located at program in the first computer system being wherein performed or It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet) Calculation machine system.Second computer system can provide program instruction and be used to perform to the first computer.Term " storage medium " can With include may reside in different location (such as in different computer systems by network connection) two or more Storage medium.Storage medium can store the program instruction that can be performed by one or more processors and (such as be implemented as counting Calculation machine program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, computer The detection operation for the charging exception that executable instruction is not limited to the described above, can also be performed the application any embodiment and is provided The abnormal detection method of charging in relevant operation.
The embodiment of the present application provides a kind of mobile terminal, and provided by the embodiments of the present application fill can be integrated in the mobile terminal The detection device of electrical anomaly.Fig. 6 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application.Mobile terminal 600 It can include:Memory 601, processor 602 and is stored in the computer journey that can be run on memory 601 and in processor 602 Sequence, the processor 602 realize the abnormal detection side of the charging as described in the embodiment of the present application when performing the computer program Method.
Mobile terminal provided by the embodiments of the present application, can be in the charging process of mobile terminal, according to being filled in battery Charging current to judge whether to occur charging abnormal, it is convenient subsequently to take appropriate measures, reduce that charging is abnormal to be made to user The influence caused by.
Fig. 7 is the structure diagram of another mobile terminal provided by the embodiments of the present application, which can include: Housing (not shown), memory 701, central processing unit (central processing unit, CPU) 702 (are also known as located Manage device, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in institute State the space interior that housing surrounds;The CPU702 and the memory 701 are arranged on the circuit board;The power supply electricity Road, for powering for each circuit or device of the mobile terminal;The memory 701, for storing executable program generation Code;The CPU702 is run and the executable journey by reading the executable program code stored in the memory 701 The corresponding computer program of sequence code, to realize following steps:
When mobile terminal is in charged state, detect that charging abnormality detection event is triggered;
Obtain the charging current value being filled in the battery of the mobile terminal;
Judge whether the charging current value got in preset duration meets preset charged exceptional condition, if satisfied, then really It is abnormal to make existing charging.
The mobile terminal further includes:Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio-frequency electric Road 706, loud speaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control devicess 710, Touch screen 712, other input/control devicess 710 and outside port 704, these components pass through one or more communication bus Or signal wire 707 communicates.
It should be understood that diagram mobile terminal 700 is only an example of mobile terminal, and mobile terminal 700 Can have than more or less components shown in figure, two or more components can be combined or can be with It is configured with different components.Various parts shown in figure can be including one or more signal processings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
Just the mobile terminal provided in this embodiment for the abnormality detection that charges is described in detail below, and the movement is whole End is by taking mobile phone as an example.
Memory 701, the memory 701 can be by access such as CPU702, Peripheral Interfaces 703, and the memory 701 can To include high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU702 and deposited by Peripheral Interface 703, the Peripheral Interface 703 Reservoir 701.
I/O subsystems 709, the I/O subsystems 709 can be by the input/output peripherals in equipment, such as touch screen 712 With other input/control devicess 710, it is connected to Peripheral Interface 703.I/O subsystems 709 can include 7091 He of display controller For controlling one or more input controllers 7092 of other input/control devicess 710.Wherein, one or more input controls Device 7092 processed receives electric signal from other input/control devicess 710 or sends electric signal to other input/control devicess 710, Other input/control devicess 710 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.What deserves to be explained is input controller 7092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 712, the touch screen 712 are the input interface and output interface between customer mobile terminal and user, Visual output is shown to user, visual output can include figure, text, icon, video etc..
Display controller 7091 in I/O subsystems 709 receives electric signal from touch screen 712 or is sent out to touch screen 712 Electric signals.Touch screen 712 detects the contact on touch screen, and the contact detected is converted to and shown by display controller 7091 The interaction of user interface object on touch screen 712, that is, realize human-computer interaction, the user interface being shown on touch screen 712 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse are the extensions for not showing the touch sensitive surface visually exported or the touch sensitive surface formed by touch screen.
RF circuits 705 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 705 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 705 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 705 can include performing The known circuit of these functions includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 706 is mainly used for receiving audio data from Peripheral Interface 703, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 711.
Loud speaker 711 for the voice signal for receiving mobile phone from wireless network by RF circuits 705, is reduced to sound And play the sound to user.
Power management chip 708, the hardware for being connected by CPU702, I/O subsystem and Peripheral Interface are powered And power management.
Detection device, storage medium and the mobile terminal of charging exception provided in above-described embodiment can perform the application and appoint The detection method of charging exception that meaning embodiment is provided, has and performs the corresponding function module of this method and advantageous effect.Not The technical detail of detailed description in the above-described embodiments, reference can be made to the detection of charging exception that the application any embodiment is provided Method.
Note that it above are only the preferred embodiment of the application and institute's application technology principle.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also It can include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.

Claims (10)

1. a kind of abnormal detection method that charges, which is characterized in that including:
When mobile terminal is in charged state, detect that charging abnormality detection event is triggered;
Obtain the charging current value being filled in the battery of the mobile terminal;
Judge whether the charging current value got in preset duration meets preset charged exceptional condition, if satisfied, then determining Now charging is abnormal.
2. the according to the method described in claim 1, it is characterized in that, charging current value for judging to get in preset duration Whether preset charged exceptional condition is met, including:
Whether the charging current value got in preset duration is judged continuously less than the first predetermined current threshold, if so, determining Meet preset charged exceptional condition.
3. the according to the method described in claim 1, it is characterized in that, charging current value for judging to get in preset duration Whether preset charged exceptional condition is met, including:
Judge in the charging current value got in preset duration less than the number of the charging current value of the second predetermined current threshold Whether preset quantity threshold value is reached, if so, determining to meet preset charged exceptional condition.
4. according to the method described in claim 3, it is characterized in that, acquisition is filled with the charging electricity in the battery of the mobile terminal Flow valuve, including:
The charging current value being filled with by the acquisition of pre-set heartbeat detection thread in the battery of the mobile terminal, wherein, The heartbeat detection thread is primary every the operation of the first prefixed time interval.
5. according to the method described in claim 1, it is characterized in that, the acquisition is filled with filling in the battery of the mobile terminal Electric current value, including:
The charging current value being filled with from the voltameter reading in the battery of the mobile terminal in the battery;Or,
The charging current value being filled with from the reading of default analog-to-digital conversion module in the battery of the mobile terminal, wherein, it is described default Analog-to-digital conversion module is electrically connected with power management chip, and the power management chip is electrically connected with the battery.
6. according to the method described in claim 1, it is characterized in that, determine occur charging exception after, including:
Carry out charging abnormity prompt operation;And/or
Charging chip is controlled to reset.
7. according to the method described in claim 1, it is characterized in that, described when mobile terminal is in charged state, further include:
It is resetted once every the second prefixed time interval control charging chip, second prefixed time interval is more than described default Duration.
8. a kind of abnormal detection device that charges, which is characterized in that including:
Event detection trigger module, for when mobile terminal is in charged state, detection charging abnormality detection event whether by Triggering;
Charging current acquisition module, for when detecting that charging abnormality detection event is triggered, acquisition to be filled with described mobile whole Charging current value in the battery at end;
Charge abnormal determination module, for judging whether the charging current value got in preset duration meets preset charged exception Condition, if satisfied, then determining charging exception occur.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The detection method of the charging exception as described in any in claim 1-7 is realized during row.
10. a kind of mobile terminal, which is characterized in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, the processor realize filling as described in claim 1-7 is any when performing the computer program The detection method of electrical anomaly.
CN201711464854.5A 2017-12-28 2017-12-28 Charge abnormal detection method, device, storage medium and mobile terminal Pending CN108132401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711464854.5A CN108132401A (en) 2017-12-28 2017-12-28 Charge abnormal detection method, device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711464854.5A CN108132401A (en) 2017-12-28 2017-12-28 Charge abnormal detection method, device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN108132401A true CN108132401A (en) 2018-06-08

Family

ID=62393843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711464854.5A Pending CN108132401A (en) 2017-12-28 2017-12-28 Charge abnormal detection method, device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108132401A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254894A (en) * 2018-08-20 2019-01-22 曙光信息产业(北京)有限公司 The heartbeat inspecting device and method of chip
CN109408293A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of method of real-time monitoring RACK cabinet power supply
CN109830062A (en) * 2019-01-08 2019-05-31 恒大智慧科技有限公司 Charging management method, computer equipment and storage medium
CN110103764A (en) * 2019-04-19 2019-08-09 恒大智慧充电科技有限公司 Charging unit, charging method, computer equipment and storage medium
CN110143136A (en) * 2019-04-12 2019-08-20 恒大智慧充电科技有限公司 Charging unit, charging method, computer equipment and storage medium
CN110336359A (en) * 2019-07-16 2019-10-15 珠海格力电器股份有限公司 A kind of charge control method and device
CN111984107A (en) * 2020-08-10 2020-11-24 Tcl通讯(宁波)有限公司 Method and device for processing power supply abnormity of terminal equipment
CN112701759A (en) * 2021-01-13 2021-04-23 惠州Tcl移动通信有限公司 Terminal device control method, storage medium and terminal device
CN114062975A (en) * 2020-07-30 2022-02-18 北京金风科创风电设备有限公司 State detection method of super capacitor, variable pitch system and wind generating set
CN114301140A (en) * 2021-12-31 2022-04-08 福建新大陆支付技术有限公司 POS-based battery charging management method
CN114325195A (en) * 2021-12-31 2022-04-12 珠海视熙科技有限公司 Wired charging detection method and device and computer readable storage medium
US11394212B2 (en) 2018-10-12 2022-07-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging method, terminal, and computer storage medium
CN116203307A (en) * 2023-02-28 2023-06-02 无锡宇宁智能科技有限公司 Terminal Type-C interface foreign matter detection method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540079A (en) * 2010-12-27 2012-07-04 联芯科技有限公司 Detection method and terminal for terminal charging
CN103219556A (en) * 2013-04-01 2013-07-24 广东欧珀移动通信有限公司 Method and system for charging mobile terminal
JP2014180109A (en) * 2013-03-14 2014-09-25 Sumitomo Heavy Ind Ltd Charge and discharge inspection system
CN105653421A (en) * 2015-12-21 2016-06-08 北京金山安全软件有限公司 Information detection method and device
CN106129969A (en) * 2016-07-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 Battery protecting circuit, battery and mobile terminal
CN106471697A (en) * 2015-12-16 2017-03-01 广东欧珀移动通信有限公司 Control the method charging, device, power supply adaptor and mobile terminal
CN106849244A (en) * 2017-02-28 2017-06-13 维沃移动通信有限公司 A kind of voltage control method of charging inlet, charger and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540079A (en) * 2010-12-27 2012-07-04 联芯科技有限公司 Detection method and terminal for terminal charging
JP2014180109A (en) * 2013-03-14 2014-09-25 Sumitomo Heavy Ind Ltd Charge and discharge inspection system
CN103219556A (en) * 2013-04-01 2013-07-24 广东欧珀移动通信有限公司 Method and system for charging mobile terminal
CN106471697A (en) * 2015-12-16 2017-03-01 广东欧珀移动通信有限公司 Control the method charging, device, power supply adaptor and mobile terminal
CN105653421A (en) * 2015-12-21 2016-06-08 北京金山安全软件有限公司 Information detection method and device
CN106129969A (en) * 2016-07-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 Battery protecting circuit, battery and mobile terminal
CN106849244A (en) * 2017-02-28 2017-06-13 维沃移动通信有限公司 A kind of voltage control method of charging inlet, charger and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张俊: "《匠人手记 一个单片机工作者的实践与思考 第2版》", 31 January 2014, 北京:北京航空航天大学出版社 *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254894A (en) * 2018-08-20 2019-01-22 曙光信息产业(北京)有限公司 The heartbeat inspecting device and method of chip
CN109254894B (en) * 2018-08-20 2022-03-11 中科曙光信息产业成都有限公司 Device and method for monitoring heartbeat of chip
US11394212B2 (en) 2018-10-12 2022-07-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging method, terminal, and computer storage medium
CN109408293B (en) * 2018-11-02 2022-02-18 郑州云海信息技术有限公司 Method for monitoring RACK cabinet power supply in real time
CN109408293A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of method of real-time monitoring RACK cabinet power supply
CN109830062B (en) * 2019-01-08 2021-02-26 恒大智慧充电科技有限公司 Charging management method, computer device, and storage medium
CN109830062A (en) * 2019-01-08 2019-05-31 恒大智慧科技有限公司 Charging management method, computer equipment and storage medium
CN110143136A (en) * 2019-04-12 2019-08-20 恒大智慧充电科技有限公司 Charging unit, charging method, computer equipment and storage medium
CN110103764A (en) * 2019-04-19 2019-08-09 恒大智慧充电科技有限公司 Charging unit, charging method, computer equipment and storage medium
CN110336359A (en) * 2019-07-16 2019-10-15 珠海格力电器股份有限公司 A kind of charge control method and device
CN114062975A (en) * 2020-07-30 2022-02-18 北京金风科创风电设备有限公司 State detection method of super capacitor, variable pitch system and wind generating set
CN111984107B (en) * 2020-08-10 2022-05-06 Tcl通讯(宁波)有限公司 Method and device for processing power supply abnormity of terminal equipment
CN111984107A (en) * 2020-08-10 2020-11-24 Tcl通讯(宁波)有限公司 Method and device for processing power supply abnormity of terminal equipment
CN112701759A (en) * 2021-01-13 2021-04-23 惠州Tcl移动通信有限公司 Terminal device control method, storage medium and terminal device
CN114301140A (en) * 2021-12-31 2022-04-08 福建新大陆支付技术有限公司 POS-based battery charging management method
CN114325195A (en) * 2021-12-31 2022-04-12 珠海视熙科技有限公司 Wired charging detection method and device and computer readable storage medium
CN114325195B (en) * 2021-12-31 2022-09-23 珠海视熙科技有限公司 Wired charging detection method and device and computer readable storage medium
CN114301140B (en) * 2021-12-31 2023-12-01 福建新大陆支付技术有限公司 POS-based battery charging management method
CN116203307A (en) * 2023-02-28 2023-06-02 无锡宇宁智能科技有限公司 Terminal Type-C interface foreign matter detection method, device and storage medium
CN116203307B (en) * 2023-02-28 2024-03-12 无锡宇宁智能科技有限公司 Terminal Type-C interface foreign matter detection method, device and storage medium

Similar Documents

Publication Publication Date Title
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
US11368039B2 (en) Battery charging method and electronic device
EP3349325B1 (en) Charging method, charging device and terminal
CN107843802A (en) Internal short-circuit detection method and device
CN104716750B (en) A kind of low power consuming wireless power method and relevant apparatus, system
CN103327159A (en) Low-battery prompting method and electronic equipment
CN110650400A (en) Wireless earphone and low-power-consumption method, device and system thereof
CN108808765A (en) A kind of charge prompting method and apparatus
US20150141081A1 (en) Method of detection and display of charging information of power bank
KR20130083116A (en) Recharging control system and method for battery of electronic device
CN109413532A (en) A kind of charging bluetooth earphone circuit and bluetooth headset
CN108054794A (en) It is a kind of for the charging/discharging thereof of intelligent terminal, device, terminal and storage medium
CN107404753A (en) Volume adjusting method, device, terminal and storage medium
CN113725951A (en) Charging management method and device, terminal device and storage medium
CN108196659A (en) charging management method, device, storage medium and terminal device
CN108287605A (en) charge control method, device, terminal device and storage medium
CN112311029B (en) Charging method, electronic device and storage medium
CN107277906B (en) Mode selecting method, device, terminal and computer readable storage medium
KR101979786B1 (en) Processing Method of a battery state and Electronic Device supporting the same
CN108155693B (en) Charging control method and device of mobile terminal, storage medium and mobile terminal
CN113038327B (en) Detection method, detection device, charging box and storage medium
US20200220371A1 (en) Method and device for controlling charging on basis of state of battery
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN108683236A (en) A kind of mobile terminal OTG charging methods and device
CN101854427A (en) Method for reminding operation start and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180608

RJ01 Rejection of invention patent application after publication