CN108132401A - Charging abnormity detection method and device, storage medium and mobile terminal - Google Patents
Charging abnormity detection method and device, storage medium and mobile terminal Download PDFInfo
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements 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 embodiments of the present application disclose a method, device, storage medium and mobile terminal for detecting charging anomalies. The method includes: when the mobile terminal is in a charging state, detecting that a charging anomaly detection event is triggered; obtaining the charging current value of the battery charged in the mobile terminal; judging whether the charging current value obtained within a preset time period meets the preset charging anomaly condition, and if so, determining that a charging anomaly occurs. By adopting the above technical solution, the embodiments of the present application can judge whether a charging anomaly occurs according to the charging current charged in the battery during the charging process of the mobile terminal, so as to facilitate the subsequent taking of corresponding measures and reduce the impact of the charging anomaly on the user's use.
Description
技术领域technical field
本申请实施例涉及充电技术领域,尤其涉及充电异常的检测方法、装置、存储介质及移动终端。The embodiments of the present application relate to the technical field of charging, and in particular, to a method, a device, a storage medium, and a mobile terminal for detecting abnormal charging.
背景技术Background technique
随着移动终端的快速普及,手机及平板电脑等移动终端已成为人们工作和生活的必备工具。With the rapid popularization of mobile terminals, mobile terminals such as mobile phones and tablet computers have become necessary tools for people's work and life.
便携性是移动终端的最大特点之一,而便携的属性也决定了移动终端需要使用电池来供电。目前用户使用移动终端的频率以及时长都在增加,而电池的容量比较有限,一般1天到2天就需要对移动终端充一次电。Portability is one of the biggest features of a mobile terminal, and the portability also determines that the mobile terminal needs to be powered by a battery. At present, the frequency and duration of users using mobile terminals are increasing, and the battery capacity is relatively limited. Generally, the mobile terminal needs to be charged once every 1 to 2 days.
在充电过程中,可能存在各种因素导致充电发生异常,若发生异常就会对用户的使用带来影响,甚至存在安全隐患。因此,亟需一种检测充电异常的技术方案。During the charging process, there may be various factors that lead to abnormal charging. If an abnormality occurs, it will affect the user's use and even pose a safety hazard. Therefore, there is an urgent need for a technical solution for detecting abnormal charging.
发明内容Contents of the invention
本申请实施例提供一种充电异常的检测方法、装置、存储介质及移动终端,可以提供一种检测移动终端中电池充电发生异常情况的方案。Embodiments of the present application provide a method, device, storage medium, and mobile terminal for detecting abnormal charging, which can provide a solution for detecting abnormal charging of a battery in a mobile terminal.
第一方面,本申请实施例提供了一种充电异常的检测方法,包括:In the first aspect, the embodiment of the present application provides a method for detecting abnormal charging, including:
在移动终端处于充电状态时,检测到充电异常检测事件被触发;When the mobile terminal is in the charging state, it is detected that the abnormal charging detection event is triggered;
获取充入所述移动终端的电池中的充电电流值;Acquiring the charging current value charged into the battery of the mobile terminal;
判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。It is judged whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition, and if so, it is determined that abnormal charging occurs.
第二方面,本申请实施例提供了一种充电异常的检测装置,包括:In the second aspect, the embodiment of the present application provides a device for detecting abnormal charging, including:
事件触发检测模块,用于在移动终端处于充电状态时,检测充电异常检测事件是否被触发;The event trigger detection module is used to detect whether the abnormal charging detection event is triggered when the mobile terminal is in the charging state;
充电电流获取模块,用于在检测到充电异常检测事件被触发时,获取充入所述移动终端的电池中的充电电流值;A charging current acquisition module, configured to acquire the charging current value charged into the battery of the mobile terminal when it is detected that the abnormal charging detection event is triggered;
充电异常判定模块,用于判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。The abnormal charging judging module is used for judging whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition, and if so, determines that abnormal charging occurs.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的充电异常的检测方法。In a third aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for detecting abnormal charging as described in the embodiment of the present application is implemented.
第四方面,本申请实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的充电异常的检测方法。In the fourth aspect, the embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, and when the processor executes the computer program, the implementation of the present application is implemented. The detection method of charging abnormality described in the example.
本申请实施例中提供的充电异常的检测方案,在移动终端处于充电状态时,检测到充电异常检测事件被触发,获取充入移动终端的电池中的充电电流值,判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。通过采用上述技术方案,可以在移动终端的充电过程中,根据充入电池中的充电电流判断出是否出现充电异常,方便后续采取相应的措施,减少充电异常给用户使用造成的影响。In the abnormal charging detection scheme provided in the embodiment of the present application, when the mobile terminal is in the charging state, it is detected that the abnormal charging detection event is triggered, and the charging current value charged into the battery of the mobile terminal is obtained, and it is judged that the charging current value is obtained within the preset time period. Whether the charging current value meets the preset abnormal charging condition, and if so, it is determined that the abnormal charging occurs. By adopting the above technical solution, during the charging process of the mobile terminal, it is possible to determine whether charging abnormality occurs according to the charging current charged into the battery, so as to facilitate subsequent corresponding measures to reduce the impact of abnormal charging on the user.
附图说明Description of drawings
图1为本申请实施例提供的一种充电异常的检测方法的流程示意图;FIG. 1 is a schematic flowchart of a method for detecting abnormal charging provided in an embodiment of the present application;
图2为本申请实施例提供的另一种充电异常的检测方法的流程示意图;FIG. 2 is a schematic flowchart of another method for detecting abnormal charging provided in the embodiment of the present application;
图3为本申请实施例提供的又一种充电异常的检测方法的流程示意图;FIG. 3 is a schematic flowchart of another method for detecting abnormal charging provided by the embodiment of the present application;
图4为本申请实施例提供的再一种充电异常的检测方法的流程示意图;FIG. 4 is a schematic flowchart of another method for detecting abnormal charging provided by the embodiment of the present application;
图5为本申请实施例提供的一种充电异常的检测装置的结构框图;Fig. 5 is a structural block diagram of a detection device for abnormal charging provided by an embodiment of the present application;
图6为本申请实施例提供的一种移动终端的结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;
图7为本申请实施例提供的又一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
图1为本申请实施例提供的一种充电异常的检测方法的流程示意图,该方法可以由充电异常的检测装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:Fig. 1 is a schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application. The method can be executed by a device for detecting abnormal charging, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a mobile terminal. As shown in Figure 1, the method includes:
步骤101、在移动终端处于充电状态时,检测到充电异常检测事件被触发。Step 101. When the mobile terminal is in the charging state, it is detected that a charging abnormality detection event is triggered.
示例性的,本申请实施例中的移动终端可包括手机、平板电脑以及媒体播放器等内置有电池的移动设备。Exemplarily, the mobile terminal in the embodiment of the present application may include a mobile device with a built-in battery, such as a mobile phone, a tablet computer, and a media player.
目前,移动终端一般支持多种充电方式,包括有线充电方式和无线充电方式。其中,有线充电方式一般通过通用串行总线(Universal Serial Bus,USB)接口实现,USB连接线一端与移动终端上的USB接口连接,根据USB连接线另外一端连接的能源供应装置的不同,还可分为电源适配器充电方式、移动电源充电方式以及USB充电方式(另一端一般连接电脑)等等。本申请实施例所提供的方案可适用于任意充电方式,对此并不做限定。所述处于充电状态,可以是移动终端刚刚进入充电状态,也可以是已经处于充电状态一段时间,本申请也不做限定。一般的,当移动终端刚进入充电状态时,如当充电器插入时,为电源管理模块提供电压,电源管理模块会产生一个充电中断信号到处理器,对于手机来说,该处理器一般为应用处理器(Application Processor,AP),从而得知移动终端进入充电状态。At present, mobile terminals generally support multiple charging methods, including a wired charging method and a wireless charging method. Among them, the wired charging method is generally realized through a Universal Serial Bus (USB) interface, and one end of the USB connection line is connected to the USB interface on the mobile terminal. Depending on the energy supply device connected to the other end of the USB connection line, it can also It is divided into power adapter charging method, mobile power charging method and USB charging method (the other end is generally connected to a computer) and so on. The solutions provided in the embodiments of the present application may be applicable to any charging method, which is not limited thereto. The charging state may mean that the mobile terminal has just entered the charging state, or may have been in the charging state for a period of time, which is not limited in this application. Generally, when the mobile terminal just enters the charging state, such as when the charger is plugged in, it provides voltage to the power management module, and the power management module will generate a charging interrupt signal to the processor. processor (Application Processor, AP), so as to know that the mobile terminal enters the charging state.
示例性的,充电异常检测事件可以在移动终端刚进入充电状态时自动触发;充电异常检测事件也可在设定条件下触发,例如,设定条件是检测到移动终端进入充电状态的时长达到预设充电时长,如30分钟;充电异常检测事件还可以由用户主动触发,如用户准备离开移动终端去做一些事情,如做饭,可以主动通过打开充电异常检测事件开关等方式主动触发充电异常检测事件。当然,触发充电异常检测事件的方式还可以有很多种,本申请实施例不做限定。Exemplarily, the abnormal charging detection event can be automatically triggered when the mobile terminal just enters the charging state; Set the charging time, such as 30 minutes; the abnormal charging detection event can also be triggered by the user, such as the user is going to leave the mobile terminal to do something, such as cooking, can actively trigger the abnormal charging detection by turning on the abnormal charging detection event switch, etc. event. Of course, there may be many ways to trigger the abnormal charging detection event, which are not limited in this embodiment of the present application.
步骤102、获取充入移动终端的电池中的充电电流值。Step 102, acquiring the charging current value charged into the battery of the mobile terminal.
一般的,不同的能源供应装置输出的电流值可能不同。以智能手机为例,普通的电源适配器能够输出的电流值一般为1000mA,用于快速充电的电源适配器输出的电流值可能达到1500mA甚至更高,电脑通过USB方式输出的电流值可能为500mA。此外,能源供应装置输出的电流还需要经过充电芯片(integrated circuit,IC)等器件才能够最终输入至电池中。在电量输送过程中,可能存在各种因素导致充入电池中的充电电流出现问题,使得电池无法获取正常的电量。例如,充电IC中烧录的固件在运行过程中出现崩溃等异常情况,还有可能由于静电干扰等因素的影响造成充电异常等。本申请实施例中,获取充入电池中的充电电流值,用于后续的充电异常判断,能够快速准确地识别出充电异常。Generally, different energy supply devices may output different current values. Taking smartphones as an example, the output current value of ordinary power adapters is generally 1000mA, the output current value of power adapters used for fast charging may reach 1500mA or even higher, and the current value output by computers through USB may be 500mA. In addition, the current output by the energy supply device needs to pass through components such as a charging chip (integrated circuit, IC) before finally being input into the battery. During the power transmission process, various factors may cause problems with the charging current charged into the battery, so that the battery cannot obtain normal power. For example, the firmware burned in the charging IC may experience abnormalities such as crashes during operation, and charging abnormalities may also be caused by static interference and other factors. In the embodiment of the present application, the charging current value charged into the battery is obtained for subsequent judgment of charging abnormality, so that charging abnormality can be identified quickly and accurately.
示例性的,获取充入电池中的充电电流值的方式有很多,本申请不作具体限定。例如,可以通过读取电流节点来获取充电电流值,以安卓(Android)为例,电流节点为“/sys/class/power_supply/battery/BatteryAverageCurrent”;此外,对于内置有电量计的电池来说,可以从移动终端的电池中的电量计读取充入电池中的充电电流值,这样设置的好处在于能够快速准确地获取充电电流值;另外,还可从预设模数转换模块(Analog-to-Digital Converter,ADC)读取充入移动终端的电池中的充电电流值,其中,预设模数转换模块与电源管理芯片电连接,而电源管理芯片与电池电连接,这样设置的好处在于,无需在电池中设置电量计,节约电池的制造成本,同时又能准确地获取到充入电池中的充电电流值。Exemplarily, there are many manners for obtaining the charging current value charged into the battery, which are not specifically limited in this application. For example, the charging current value can be obtained by reading the current node. Taking Android as an example, the current node is "/sys/class/power_supply/battery/BatteryAverageCurrent"; in addition, for a battery with a built-in fuel gauge, The charging current value charged into the battery can be read from the fuel gauge in the battery of the mobile terminal. The advantage of this setting is that the charging current value can be obtained quickly and accurately; in addition, the preset analog-to-digital conversion module (Analog-to -Digital Converter (ADC) reads the charging current value charged into the battery of the mobile terminal, wherein the preset analog-to-digital conversion module is electrically connected to the power management chip, and the power management chip is electrically connected to the battery. The advantage of this setting is that, There is no need to set a fuel gauge in the battery, which saves the manufacturing cost of the battery, and at the same time can accurately obtain the charging current value charged into the battery.
步骤103、判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。Step 103 , judging whether the charging current value acquired within a preset time period satisfies a preset charging abnormality condition, and if so, determining that charging abnormality occurs.
其中,预设时长可以根据实际需求设定,本申请实施例对其具体取值不做限定,例如,可以是5分钟,或10分钟等等。Wherein, the preset duration may be set according to actual needs, and the embodiment of the present application does not limit its specific value, for example, it may be 5 minutes, or 10 minutes, and so on.
目前,多数移动终端的电池为锂离子电池,简称锂电池,本申请以锂电池为例进行说明。锂电池的充电过程一般可分为四个阶段,涓流充电(低压预充)、恒流充电、恒压充电以及充电终止。典型的充电方式是:先检测待充电电池的电压,如果电压低于3V,需要先进行预充电,充电电流为设定电流的1/10,电压升到3V后,进入标准充电过程;标准充电过程中,以设定电流(一般为1000mA)进行恒流充电,电池电压升到4.2V时(一般电池电量可达75%),改为恒压充电,保持充电电压为4.2V,恒压充电过程中充电电流逐渐下降,当电流下降至设定充电电流的1/10时,充电结束。以上仅提供了一种典型的充电过程,本申请实施例中可根据移动终端的实际情况设置充电策略,并不受上述举例的限制。At present, the batteries of most mobile terminals are lithium ion batteries, referred to as lithium batteries, and this application uses lithium batteries as an example for illustration. The charging process of lithium batteries can generally be divided into four stages, trickle charging (low voltage pre-charging), constant current charging, constant voltage charging and charging termination. The typical charging method is: first detect the voltage of the battery to be charged. If the voltage is lower than 3V, it needs to be pre-charged first. The charging current is 1/10 of the set current. After the voltage rises to 3V, it enters the standard charging process; standard charging During the process, constant current charging is carried out with the set current (generally 1000mA). When the battery voltage rises to 4.2V (generally, the battery power can reach 75%), it is changed to constant voltage charging, and the charging voltage is kept at 4.2V. Constant voltage charging The charging current decreases gradually during the process, and when the current drops to 1/10 of the set charging current, the charging ends. The above only provides a typical charging process. In the embodiment of the present application, a charging policy can be set according to the actual situation of the mobile terminal, and is not limited by the above examples.
由上述举例可知,充电过程中的不同阶段,对充电电流的要求是不同的,本申请实施例中可针对不同的充电阶段设置不同的预设充电异常条件。例如,在低压预充阶段,充电电流正常为100mA,当预设时长内获取到的充电电流值小于10mA时或大于200mA时,可认为满足预设充电异常条件;在恒流充电阶段,充电电流正常为1000mA,当预设时长内获取到的充电电流值小于20mA时或大于1300mA时,可认为满足预设充电异常条件;在恒压充电阶段,充电电流逐渐降低,一般在100到300mA之间,当预设时长内获取到的充电电流值小于10mA时或大于600mA时,可认为满足预设充电异常条件;在充电终止阶段,充电电流值一般很小,当预设时长内获取到的充电电流值大于100mA时,可认为满足预设充电异常条件。It can be known from the above examples that different stages in the charging process have different requirements for charging current. In the embodiments of the present application, different preset abnormal charging conditions can be set for different charging stages. For example, in the low-voltage pre-charging stage, the charging current is normally 100mA. When the charging current value obtained within the preset time is less than 10mA or greater than 200mA, it can be considered to meet the preset abnormal charging conditions; in the constant-current charging stage, the charging current The normal value is 1000mA. When the charging current value obtained within the preset time is less than 20mA or greater than 1300mA, it can be considered to meet the preset abnormal charging conditions; in the constant voltage charging stage, the charging current gradually decreases, generally between 100 and 300mA , when the charging current value obtained within the preset time is less than 10mA or greater than 600mA, it can be considered to meet the preset charging abnormal condition; When the current value is greater than 100mA, it can be considered that the preset abnormal charging condition is met.
当然也可针对不同的充电阶段设置统一的预设充电异常条件,本申请不做限定。例如,在整个充电过程中,当预设时长内获取到的充电电流值小于预设电流阈值(如20mA)时,可认为满足预设充电异常条件;或者,当预设时长内获取到的充电电流值的波动范围超过预设波动范围(如-300mA到300mA)时,说明充电电流非常不稳定,容易对电池造成损害,也可认为满足预设充电异常条件。Of course, unified preset abnormal charging conditions may also be set for different charging stages, which is not limited in this application. For example, during the entire charging process, when the charging current value obtained within the preset time period is less than the preset current threshold (such as 20mA), it can be considered that the preset abnormal charging condition is met; or, when the charging current value obtained within the preset time period When the fluctuation range of the current value exceeds the preset fluctuation range (such as -300mA to 300mA), it indicates that the charging current is very unstable, which is likely to cause damage to the battery, and it can also be considered to meet the preset abnormal charging condition.
本申请实施例提供的充电异常的检测方法,在移动终端处于充电状态时,检测到充电异常检测事件被触发,获取充入移动终端的电池中的充电电流值,判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。通过采用上述技术方案,可以在移动终端的充电过程中,根据充入电池中的充电电流判断出是否出现充电异常,方便后续采取相应的措施,减少充电异常给用户使用造成的影响。In the abnormal charging detection method provided by the embodiment of the present application, when the mobile terminal is in the charging state, it is detected that the abnormal charging detection event is triggered, and the charging current value charged into the battery of the mobile terminal is obtained, and the value obtained within the preset time period is judged. Whether the charging current value satisfies the preset abnormal charging condition, and if so, it is determined that abnormal charging occurs. By adopting the above technical solution, during the charging process of the mobile terminal, it is possible to determine whether charging abnormality occurs according to the charging current charged into the battery, so as to facilitate subsequent corresponding measures to reduce the impact of abnormal charging on the user.
在一些实施例中,所述判断预设时长内获取到的充电电流值是否满足预设充电异常条件,包括:判断预设时长内获取到的充电电流值是否持续小于第一预设电流阈值,若是,则确定满足预设充电异常条件。示例性的,获取充入电池中的充电电流值的过程可以是实时获取,也可以是以预设采集频率(如5秒一次)进行获取。第一预设电流阈值可根据实际情况(如电池容量以及充电方式等)进行确定,例如20mA。若在预设时长(如2分钟)内获取到的充电电流值持续小于第一预设电流阈值,可认为满足预设充电异常条件。以20mA为例,充电电流很小,几乎没有充进去电,所以可确认出现充电异常。In some embodiments, the judging whether the charging current value acquired within the preset time period satisfies the preset abnormal charging condition includes: judging whether the charging current value acquired within the preset time length is continuously smaller than the first preset current threshold, If yes, it is determined that the preset abnormal charging condition is met. Exemplarily, the process of acquiring the charging current value charged into the battery may be acquired in real time, or may be acquired at a preset acquisition frequency (eg, once every 5 seconds). The first preset current threshold can be determined according to actual conditions (such as battery capacity and charging method, etc.), for example, 20mA. If the charging current value obtained within a preset time period (for example, 2 minutes) is continuously smaller than the first preset current threshold, it can be considered that the preset abnormal charging condition is met. Taking 20mA as an example, the charging current is very small, and there is almost no charge, so it can be confirmed that there is an abnormal charging.
在一些实施例中,所述判断预设时长内获取到的充电电流值是否满足预设充电异常条件,包括:判断预设时长内获取到的充电电流值中小于第二预设电流阈值的充电电流值的个数是否达到预设数量阈值,若是,则确定满足预设充电异常条件。其中,第二预设电流阈值可以与第一预设电流阈值相等,也可不等。以获取充电电流值的频率为5秒一次为例,开始获取充电电流值时,初始化异常次数为0,若当前采集到的充电电流值小于20mA,则异常次数加1,如果2分钟内异常次数达到预设数量阈值(如20次),则确定满足预设充电异常条件。这样设置的好处在于,当预设时长内获取到的大多数充电电流值满足异常情况时,便可认为满足异常充电条件,防止漏判情况发生。In some embodiments, the judging whether the charging current value acquired within the preset time period satisfies the preset abnormal charging condition includes: judging whether the charging current value acquired within the preset time period is less than the second preset current threshold Whether the number of current values reaches the preset number threshold, if yes, it is determined that the preset abnormal charging condition is met. Wherein, the second preset current threshold may be equal to or different from the first preset current threshold. Take the frequency of obtaining the charging current value once every 5 seconds as an example. When the charging current value is started to be obtained, the initial abnormal number is 0. If the currently collected charging current value is less than 20mA, the abnormal number will be increased by 1. If the abnormal number is within 2 minutes If the preset quantity threshold (for example, 20 times) is reached, it is determined that the preset abnormal charging condition is met. The advantage of this setting is that when most of the charging current values obtained within the preset time period meet the abnormal conditions, it can be considered that the abnormal charging conditions are met, so as to prevent the occurrence of missed judgments.
进一步的,获取充入所述移动终端的电池中的充电电流值,包括:通过预先设置的心跳检测线程获取充入所述移动终端的电池中的充电电流值,其中,所述心跳检测线程每隔第一预设时间间隔运行一次。这样设置的好处在于,利用心跳检测线程可以精准地控制获取充电电流值的时机,使充电异常的判定更加准确可靠。示例性的,心跳检测线程每5秒运行一次,在运行时获取当前充电的状态,即获取充入电池中的充电电流值。Further, obtaining the charging current value charged into the battery of the mobile terminal includes: obtaining the charging current value charged into the battery of the mobile terminal through a preset heartbeat detection thread, wherein the heartbeat detection thread every Run once at the first preset time interval. The advantage of this setting is that the heartbeat detection thread can precisely control the timing of obtaining the charging current value, making the determination of abnormal charging more accurate and reliable. Exemplarily, the heartbeat detection thread runs once every 5 seconds, and obtains the current charging state during running, that is, obtains the charging current value charged into the battery.
在一些实施例中,在确定出现充电异常之后,包括:进行充电异常提醒操作;和/或,控制充电芯片复位。示例性的,进行充电异常提醒操作的具体方式可以是点亮指示灯、播放提示音、显示文字提示或震动等方式,以提醒用户充电发生异常,促使用户及时采取相应的措施,如更改充电方式等。示例性的,也可由移动终端自动尝试恢复正常充电,例如通过控制充电IC复位的方式。一般的,充电IC中设置有用于初始化的寄存器(可称为初始化寄存器),可通过向初始化寄存器发送复位指令的方式控制初始化寄存器对充电IC进行复位,这样,在复位后充电IC很可能恢复正常工作,使得充电正常。可选的,在确定出现充电异常后,可同时进行充电异常提醒操作以及控制充电芯片复位,提高移动终端恢复正常充电的概率,有效解决充电不成功的问题。当然,也可在复位充电IC后继续检测充电异常情况是否消失,若未消失,则再次复位或进行充电异常提醒操作。In some embodiments, after determining that the charging abnormality occurs, it includes: performing a charging abnormality reminder operation; and/or controlling the charging chip to reset. Exemplarily, the specific method of reminding the abnormal charging operation may be to light up the indicator light, play a prompt sound, display text prompts or vibrate, etc., to remind the user that the abnormal charging occurs, and prompt the user to take corresponding measures in time, such as changing the charging mode Wait. Exemplarily, the mobile terminal may also automatically try to resume normal charging, for example, by controlling the reset of the charging IC. Generally, the charging IC is provided with a register for initialization (which can be called an initialization register), and the initialization register can be controlled to reset the charging IC by sending a reset command to the initialization register. In this way, the charging IC is likely to return to normal after reset. work, making charging normal. Optionally, after it is determined that the charging is abnormal, the operation of reminding the abnormal charging and controlling the reset of the charging chip can be carried out at the same time, so as to improve the probability of the mobile terminal returning to normal charging and effectively solve the problem of unsuccessful charging. Of course, after resetting the charging IC, it is also possible to continue to detect whether the charging abnormality disappears, and if it does not disappear, reset again or perform a charging abnormality reminder operation.
在一些实施例中,所述在移动终端处于充电状态时,还包括:每隔第二预设时间间隔控制充电芯片复位一次,所述第二预设时间间隔大于所述预设时长。这样设置的好处在于,经常对充电IC进行复位操作,可减少充电异常情况的发生。其中,第二预设时间间隔大于预设时长,例如可以是15分钟。In some embodiments, when the mobile terminal is in the charging state, it further includes: controlling the charging chip to reset every second preset time interval, and the second preset time interval is longer than the preset duration. The advantage of this setting is that the charging IC is often reset to reduce the occurrence of abnormal charging. Wherein, the second preset time interval is longer than the preset duration, for example, it may be 15 minutes.
图2为本申请实施例提供的另一种充电异常的检测方法的流程示意图,该方法包括如下步骤:Fig. 2 is a schematic flow chart of another method for detecting abnormal charging provided in the embodiment of the present application, the method includes the following steps:
步骤201、在移动终端处于充电状态时,检测到充电异常检测事件被触发。Step 201. When the mobile terminal is in the charging state, it is detected that a charging abnormality detection event is triggered.
步骤202、获取充入移动终端的电池中的充电电流值。Step 202, acquiring the charging current value charged into the battery of the mobile terminal.
步骤203、判断预设时长内获取到的充电电流值是否持续小于第一预设电流阈值,若是,则执行步骤204;否则,返回执行步骤202。Step 203 , judging whether the charging current value acquired within the preset time period is continuously smaller than the first preset current threshold, if yes, execute step 204 ; otherwise, return to execute step 202 .
可选的,第一预设电流阈值为20mA。Optionally, the first preset current threshold is 20mA.
步骤204、确定出现充电异常。Step 204, determining that abnormal charging occurs.
步骤205、控制充电芯片复位。Step 205, controlling the reset of the charging chip.
本申请实施例提供的充电异常的检测方法,在判断出移动终端充电过程中,预设时长内获取到的充入电池中的充电电流值持续小于一定数值时,可认为电池当前没办法充入电量,出现充电异常,由移动终端自动控制充电芯片进行复位,尝试恢复正常的充电,实验证明,在充电芯片复位后,恢复正常充电的概率非常高,因此,可在检测出发生充电异常时,及时有效地恢复正常充电,避免充电异常对用户正常使用造成影响。In the abnormal charging detection method provided by the embodiment of the present application, when it is judged that the charging current value of the battery charged into the battery obtained within the preset time period is continuously less than a certain value during the charging process of the mobile terminal, it can be considered that the battery cannot be charged at present. If there is a charging abnormality, the mobile terminal automatically controls the charging chip to reset and try to restore normal charging. Experiments have proved that after the charging chip is reset, the probability of returning to normal charging is very high. Therefore, when abnormal charging is detected, Timely and effective recovery of normal charging, to avoid the impact of abnormal charging on the normal use of users.
图3为本申请实施例提供的又一种充电异常的检测方法的流程示意图,该方法包括如下步骤:Fig. 3 is a schematic flowchart of another detection method for charging abnormality provided by the embodiment of the present application, the method includes the following steps:
步骤301、检测到移动终端进入充电状态时,启动预先设置的心跳检测线程。Step 301, when it is detected that the mobile terminal is in the charging state, start a preset heartbeat detection thread.
步骤302、通过所述心跳检测线程获取充入移动终端的电池中的充电电流值。Step 302, acquire the charging current value charged into the battery of the mobile terminal through the heartbeat detection thread.
其中,所述心跳检测线程每隔5秒钟运行一次,运行时获取充入移动终端的电池中的充电电流值。Wherein, the heartbeat detection thread runs once every 5 seconds, and obtains the charging current value charged into the battery of the mobile terminal during running.
可选的,心跳检测线程也可在移动终端进入充电状态前启动,在心跳检测线程运行时,还可利用心跳检测线程检测移动终端是否进入充电状态。Optionally, the heartbeat detection thread can also be started before the mobile terminal enters the charging state. When the heartbeat detection thread is running, the heartbeat detection thread can also be used to detect whether the mobile terminal enters the charging state.
可选的,通过心跳检测线程从移动终端的电池中的电量计读取充入所述电池中的充电电流值;或者,通过心跳检测线程从预设模数转换模块读取充入所述移动终端的电池中的充电电流值,其中,所述预设模数转换模块与电源管理芯片电连接,所述电源管理芯片与所述电池电连接。Optionally, the charging current value charged into the battery is read from the fuel gauge in the battery of the mobile terminal through the heartbeat detection thread; or, the charging current value charged into the mobile terminal is read from the preset analog-to-digital conversion module through the heartbeat detection thread The charging current value in the battery of the terminal, wherein the preset analog-to-digital conversion module is electrically connected to a power management chip, and the power management chip is electrically connected to the battery.
步骤303、判断预设时长内获取到的充电电流值中小于第二预设电流阈值的充电电流值的个数是否达到预设数量阈值,若是,则执行步骤304;否则,返回执行步骤302。Step 303 , judging whether the number of charging current values less than the second preset current threshold among the charging current values obtained within the preset duration reaches the preset number threshold, and if so, go to step 304 ; otherwise, go back to step 302 .
可选的,第二预设电流阈值为20mA,预设时长为2分钟,预设数量阈值为20次。Optionally, the second preset current threshold is 20mA, the preset duration is 2 minutes, and the preset number threshold is 20 times.
步骤304、确定出现充电异常。Step 304, determining that abnormal charging occurs.
步骤305、向充电芯片中的初始化寄存器发送复位指令,以通过初始化寄存器实现充电芯片的复位。Step 305 , sending a reset command to the initialization register in the charging chip, so as to reset the charging chip through the initialization register.
需要说明的是,心跳检测线程在后台运行,充电IC复位的过程也不会反应到屏幕上,不会对用户使用移动终端产生干扰。It should be noted that the heartbeat detection thread runs in the background, and the process of resetting the charging IC will not be reflected on the screen, and will not interfere with the user's use of the mobile terminal.
本申请实施例提供的充电异常的检测方法,在移动终端充电过程中,通过心跳检测线程获取充入电池中的充电电流值,当判断出预设时长内获取到的充入电池中的充电电流值小于一定数值的次数达到一定的次数阈值时,可认为电池当前没办法正常充入电量,由移动终端自动控制充电芯片进行复位,尝试恢复正常的充电,避免充电异常对用户正常使用造成影响。In the abnormal charging detection method provided by the embodiment of the present application, during the charging process of the mobile terminal, the charging current value charged into the battery is obtained through the heartbeat detection thread, and the charging current obtained within the preset time period is determined When the number of times the value is less than a certain value reaches a certain number threshold, it can be considered that the battery cannot be charged normally at present, and the mobile terminal automatically controls the charging chip to reset and try to restore normal charging, so as to avoid the impact of abnormal charging on the normal use of users.
图4为本申请实施例提供的再一种充电异常的检测方法的流程示意图,该方法包括:Fig. 4 is a schematic flowchart of another detection method for charging abnormality provided by the embodiment of the present application, the method includes:
步骤401、检测到移动终端进入充电状态。Step 401, detecting that the mobile terminal enters a charging state.
步骤402、通过心跳检测线程获取充入移动终端的电池中的充电电流值。Step 402, obtain the charging current value charged into the battery of the mobile terminal through the heartbeat detection thread.
步骤403、判断预设时长内获取到的充电电流值中小于第二预设电流阈值的充电电流值的个数是否达到预设数量阈值,若是,则执行步骤404;否则,返回执行步骤402。Step 403 , judging whether the number of charging current values less than the second preset current threshold among the charging current values acquired within the preset duration reaches the preset number threshold, if yes, execute step 404 ; otherwise, return to step 402 .
步骤404、确定出现充电异常。Step 404, determining that abnormal charging occurs.
步骤405、向充电芯片中的初始化寄存器发送复位指令,以通过初始化寄存器实现充电芯片的复位。Step 405 , sending a reset command to the initialization register in the charging chip, so as to reset the charging chip through the initialization register.
步骤406、继续通过心跳检测线程获取充入移动终端的电池中的充电电流值。Step 406, continue to obtain the charging current value charged into the battery of the mobile terminal through the heartbeat detection thread.
步骤407、判断预设时长内获取到的充电电流值中小于第二预设电流阈值的充电电流值的个数是否再次达到预设数量阈值,若是,则执行步骤408;否则,返回执行步骤402。Step 407, judging whether the number of charging current values less than the second preset current threshold among the charging current values obtained within the preset time length reaches the preset number threshold again, if so, go to step 408; otherwise, go back to step 402 .
步骤408、进行充电异常提醒操作。Step 408 , perform an operation of reminding abnormal charging.
本申请实施例提供的充电异常的检测方法,在检测到发生充电异常时,先通过复位充电IC的方式,尝试恢复正常充电,然后继续检测,若发现充电异常情况并未消失,则通过进行充电异常提醒操作的方式提示用户采取相应措施,避免充电异常对用户使用造成的影响。The abnormal charging detection method provided by the embodiment of this application, when abnormal charging is detected, first tries to restore normal charging by resetting the charging IC, and then continues to detect, if it is found that the abnormal charging has not disappeared, then by charging The method of abnormal reminder operation prompts the user to take corresponding measures to avoid the impact of abnormal charging on the user's use.
图5为本申请实施例提供的一种充电异常的检测装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行充电异常的检测方法来对移动终端中电池充电过程是否发生充电异常进行检测。如图5所示,该装置包括:Fig. 5 is a structural block diagram of a device for detecting abnormal charging provided by an embodiment of the present application. The device can be implemented by software and/or hardware, and is generally integrated in a mobile terminal. Detect whether charging abnormality occurs during battery charging. As shown in Figure 5, the device includes:
事件触发检测模块501,用于在移动终端处于充电状态时,检测充电异常检测事件是否被触发;The event trigger detection module 501 is used to detect whether the abnormal charging detection event is triggered when the mobile terminal is in the charging state;
充电电流获取模块502,用于在检测到充电异常检测事件被触发时,获取充入所述移动终端的电池中的充电电流值;The charging current acquisition module 502 is configured to acquire the charging current value charged into the battery of the mobile terminal when it is detected that the abnormal charging detection event is triggered;
充电异常判定模块503,用于判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。The abnormal charging judging module 503 is used to judge whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition, and if so, determine that abnormal charging occurs.
本申请实施例中提供的充电异常的检测装置,在移动终端处于充电状态时,检测到充电异常检测事件被触发,获取充入移动终端的电池中的充电电流值,判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。通过采用上述技术方案,可以在移动终端的充电过程中,根据充入电池中的充电电流判断出是否出现充电异常,方便后续采取相应的措施,减少充电异常给用户使用造成的影响。The abnormal charging detection device provided in the embodiment of the present application detects that the abnormal charging detection event is triggered when the mobile terminal is in the charging state, acquires the charging current value charged into the battery of the mobile terminal, and judges that the charging current value is obtained within the preset time period. Whether the charging current value meets the preset abnormal charging condition, and if so, it is determined that the abnormal charging occurs. By adopting the above technical solution, during the charging process of the mobile terminal, it is possible to determine whether charging abnormality occurs according to the charging current charged into the battery, so as to facilitate subsequent corresponding measures to reduce the impact of abnormal charging on the user.
可选的,所述判断预设时长内获取到的充电电流值是否满足预设充电异常条件,包括:Optionally, the judging whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition includes:
判断预设时长内获取到的充电电流值是否持续小于第一预设电流阈值,若是,则确定满足预设充电异常条件。It is judged whether the charging current value acquired within the preset time period is continuously smaller than the first preset current threshold, and if so, it is determined that the preset abnormal charging condition is met.
可选的,所述判断预设时长内获取到的充电电流值是否满足预设充电异常条件,包括:Optionally, the judging whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition includes:
判断预设时长内获取到的充电电流值中小于第二预设电流阈值的充电电流值的个数是否达到预设数量阈值,若是,则确定满足预设充电异常条件。Judging whether the number of charging current values less than the second preset current threshold among the charging current values obtained within the preset time period reaches the preset number threshold, and if so, determining that the preset abnormal charging condition is met.
可选的,获取充入所述移动终端的电池中的充电电流值,包括:Optionally, acquiring the charging current value charged into the battery of the mobile terminal includes:
通过预先设置的心跳检测线程获取充入所述移动终端的电池中的充电电流值,其中,所述心跳检测线程每隔第一预设时间间隔运行一次。The charging current value charged into the battery of the mobile terminal is acquired through a preset heartbeat detection thread, wherein the heartbeat detection thread runs once every first preset time interval.
可选的,所述获取充入所述移动终端的电池中的充电电流值,包括:Optionally, the acquiring the charging current value charged into the battery of the mobile terminal includes:
从所述移动终端的电池中的电量计读取充入所述电池中的充电电流值;或,reading the value of the charging current charged into the battery of the mobile terminal from a fuel gauge in the battery; or,
从预设模数转换模块读取充入所述移动终端的电池中的充电电流值,其中,所述预设模数转换模块与电源管理芯片电连接,所述电源管理芯片与所述电池电连接。Read the charging current value charged into the battery of the mobile terminal from a preset analog-to-digital conversion module, wherein the preset analog-to-digital conversion module is electrically connected to a power management chip, and the power management chip is electrically connected to the battery connect.
可选的,该装置还包括:异常处理模块,用于在确定出现充电异常之后,进行充电异常提醒操作;和/或,控制充电芯片复位。Optionally, the device further includes: an abnormality processing module, configured to perform a charging abnormality reminder operation after it is determined that the charging abnormality occurs; and/or control the charging chip to reset.
可选的,该装置还包括:复位模块,用于在移动终端处于充电状态时,每隔第二预设时间间隔控制充电芯片复位一次,所述第二预设时间间隔大于所述预设时长。Optionally, the device further includes: a reset module, configured to control the charging chip to reset every second preset time interval when the mobile terminal is in the charging state, and the second preset time interval is greater than the preset duration .
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行充电异常的检测方法,该方法包括:The embodiment of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to perform a method for detecting abnormal charging when executed by a computer processor, the method comprising:
在移动终端处于充电状态时,检测到充电异常检测事件被触发;When the mobile terminal is in the charging state, it is detected that the abnormal charging detection event is triggered;
获取充入所述移动终端的电池中的充电电流值;Acquiring the charging current value charged into the battery of the mobile terminal;
判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。It is judged whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition, and if so, it is determined that abnormal charging occurs.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDORAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape drives; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; Volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的充电异常的检测操作,还可以执行本申请任意实施例所提供的充电异常的检测方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the above-mentioned abnormal charging detection operation, and can also execute the abnormal charging provided in any embodiment of the present application. Related operations in the detection method.
本申请实施例提供了一种移动终端,该移动终端中可集成本申请实施例提供的充电异常的检测装置。图6为本申请实施例提供的一种移动终端的结构示意图。移动终端600可以包括:存储器601,处理器602及存储在存储器601上并可在处理器602运行的计算机程序,所述处理器602执行所述计算机程序时实现如本申请实施例所述的充电异常的检测方法。An embodiment of the present application provides a mobile terminal, in which the device for detecting abnormal charging provided in the embodiment of the present application can be integrated. FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application. The mobile terminal 600 may include: a memory 601, a processor 602, and a computer program stored on the memory 601 and capable of running on the processor 602. When the processor 602 executes the computer program, it realizes charging as described in the embodiment of the present application Anomaly detection method.
本申请实施例提供的移动终端,可以在移动终端的充电过程中,根据充入电池中的充电电流判断出是否出现充电异常,方便后续采取相应的措施,减少充电异常给用户使用造成的影响。The mobile terminal provided by the embodiment of the present application can judge whether charging abnormality occurs according to the charging current charged into the battery during the charging process of the mobile terminal, so as to facilitate subsequent corresponding measures to reduce the impact of charging abnormality on the user's use.
图7为本申请实施例提供的另一种移动终端的结构示意图,该移动终端可以包括:壳体(图中未示出)、存储器701、中央处理器(central processing unit,CPU)702(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 7 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present application. The mobile terminal may include: a casing (not shown in the figure), a memory 701, and a central processing unit (central processing unit, CPU) 702 (also Said processor, hereinafter referred to as CPU), circuit board (not shown in the figure) and power supply circuit (not shown in the figure). The circuit board is placed inside the space enclosed by the housing; the CPU702 and the memory 701 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal The memory 701 is used to store executable program codes; the CPU702 executes a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 701, to achieve the following steps:
在移动终端处于充电状态时,检测到充电异常检测事件被触发;When the mobile terminal is in the charging state, it is detected that the abnormal charging detection event is triggered;
获取充入所述移动终端的电池中的充电电流值;Acquiring the charging current value charged into the battery of the mobile terminal;
判断预设时长内获取到的充电电流值是否满足预设充电异常条件,若满足,则确定出现充电异常。It is judged whether the charging current value obtained within the preset time period satisfies the preset abnormal charging condition, and if so, it is determined that abnormal charging occurs.
所述移动终端还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、其他输入/控制设备710、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The mobile terminal also includes: peripheral interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio circuit 706, speaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control device 710 , touch screen 712 , other input/control devices 710 , and external ports 704 , these components communicate via one or more communication buses or signal lines 707 .
应该理解的是,图示移动终端700仅仅是移动终端的一个范例,并且移动终端700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 700 is only an example of a mobile terminal, and the mobile terminal 700 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于充电异常检测的移动终端进行详细的描述,该移动终端以手机为例。The mobile terminal used for abnormal charging detection provided by this embodiment will be described in detail below, and a mobile phone is used as an example of the mobile terminal.
存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 701, the memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc., the memory 701 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。Peripheral interface 703 , which can connect the input and output peripherals of the device to CPU 702 and memory 701 .
I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 709 , the I/O subsystem 709 can connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710 , to the peripheral interface 703 . I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710 . Among them, one or more input controllers 7092 receive electrical signals from or send electrical signals to other input/control devices 710, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏712,所述触摸屏712是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 712, the touch screen 712 is an input interface and an output interface between the user's mobile terminal and the user, and displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or sends electrical signals to the touch screen 712 . The touch screen 712 detects the contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 712, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 712 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.
RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 705 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 705 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.
音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703 , convert the audio data into electrical signals, and send the electrical signals to the speaker 711 .
扬声器711,用于将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 into sound and play the sound to the user.
电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used for power supply and power management for the hardware connected to the CPU 702 , the I/O subsystem and the peripheral interface.
上述实施例中提供的充电异常的检测装置、存储介质及移动终端可执行本申请任意实施例所提供的充电异常的检测方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的充电异常的检测方法。The abnormal charging detection device, storage medium, and mobile terminal provided in the above embodiments can execute the abnormal charging detection method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the detection method for abnormal charging provided in any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711464854.5A CN108132401A (en) | 2017-12-28 | 2017-12-28 | Charging abnormity detection method and 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 | Charging abnormity detection method and 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 | Charging abnormity detection method and device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132401A (en) |
Cited By (18)
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 | 珠海格力电器股份有限公司 | Charging 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 | 北京金风科创风电设备有限公司 | Supercapacitor state detection method, pitch system and wind turbine |
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 |
CN114629210A (en) * | 2022-04-08 | 2022-06-14 | 深圳市普渡科技有限公司 | Method, apparatus, computer equipment and storage medium for safe charging |
US11394212B2 (en) | 2018-10-12 | 2022-07-19 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Charging method, terminal, and computer storage medium |
CN114844472A (en) * | 2022-04-21 | 2022-08-02 | Oppo广东移动通信有限公司 | Power supply control method and system and electronic equipment |
CN115372831A (en) * | 2022-09-16 | 2022-11-22 | 湖南华美兴泰科技有限责任公司 | Lithium battery abnormity prediction method and device, electronic equipment and readable storage medium |
CN115958977A (en) * | 2022-12-30 | 2023-04-14 | 南京懂玫驱动技术有限公司 | Battery device charging processing method and battery device |
CN116203307A (en) * | 2023-02-28 | 2023-06-02 | 无锡宇宁智能科技有限公司 | Terminal Type-C interface foreign matter detection method, device and storage medium |
CN118801543A (en) * | 2024-09-12 | 2024-10-18 | 荣耀终端有限公司 | Method for identifying the cause of abnormal charging, electronic device, chip system, storage medium and program product |
Citations (7)
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 | 广东欧珀移动通信有限公司 | Method, device, power adapter and mobile terminal for controlling charging |
CN106849244A (en) * | 2017-02-28 | 2017-06-13 | 维沃移动通信有限公司 | A kind of voltage control method of charging inlet, charger and mobile terminal |
-
2017
- 2017-12-28 CN CN201711464854.5A patent/CN108132401A/en active Pending
Patent Citations (7)
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 | 广东欧珀移动通信有限公司 | Method, device, power adapter and mobile terminal for controlling charging |
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)
Title |
---|
张俊: "《匠人手记 一个单片机工作者的实践与思考 第2版》", 31 January 2014, 北京:北京航空航天大学出版社 * |
Cited By (25)
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 |
CN109830062A (en) * | 2019-01-08 | 2019-05-31 | 恒大智慧科技有限公司 | Charging management method, computer equipment and storage medium |
CN109830062B (en) * | 2019-01-08 | 2021-02-26 | 恒大智慧充电科技有限公司 | Charging management method, computer device, 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 | 珠海格力电器股份有限公司 | Charging control method and device |
CN114062975A (en) * | 2020-07-30 | 2022-02-18 | 北京金风科创风电设备有限公司 | Supercapacitor state detection method, pitch system and wind turbine |
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 |
CN114629210A (en) * | 2022-04-08 | 2022-06-14 | 深圳市普渡科技有限公司 | Method, apparatus, computer equipment and storage medium for safe charging |
CN114844472A (en) * | 2022-04-21 | 2022-08-02 | Oppo广东移动通信有限公司 | Power supply control method and system and electronic equipment |
CN115372831A (en) * | 2022-09-16 | 2022-11-22 | 湖南华美兴泰科技有限责任公司 | Lithium battery abnormity prediction method and device, electronic equipment and readable storage medium |
CN115958977A (en) * | 2022-12-30 | 2023-04-14 | 南京懂玫驱动技术有限公司 | Battery device charging processing method and battery device |
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 |
CN118801543A (en) * | 2024-09-12 | 2024-10-18 | 荣耀终端有限公司 | Method for identifying the cause of abnormal charging, electronic device, chip system, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132401A (en) | Charging abnormity detection method and device, storage medium and mobile terminal | |
CN110121812B (en) | Method for charging battery, charging device and terminal equipment | |
US10263439B2 (en) | Method and apparatus for protecting battery | |
JP7121865B2 (en) | Reverse charging device, method and device for adjusting reverse charging current | |
CN106549464A (en) | A charging control method, device and computer equipment | |
US9965086B2 (en) | Method for enabling function module of terminal, and terminal device | |
EP3349325B1 (en) | Charging method, charging device and terminal | |
CN109040467A (en) | Interface electric quantity determination method and device, storage medium and mobile terminal | |
US11476684B2 (en) | Charging protection method, terminal, and charger | |
JP2013531822A5 (en) | ||
CN106356918A (en) | Quick charge recognition method and terminal equipment | |
CN106786960A (en) | Charge control method, device and terminal | |
CN104505551A (en) | Charging method and charging circuit of wearable device | |
CN103685730B (en) | The communication control method of a kind of mobile terminal and mobile terminal thereof | |
CN103197258B (en) | A battery type detection method and mobile terminal | |
CN106981696B (en) | Charging method for battery, electronic equipment and charger | |
CN108054794A (en) | Charging and discharging method and device for intelligent terminal, terminal and storage medium | |
CN106532876A (en) | Power supply control method and device and computer equipment | |
WO2020088388A1 (en) | Charging control circuit, charging circuit and charging control method | |
CN108155693B (en) | Charging control method and device of mobile terminal, storage medium and mobile terminal | |
CN108287605A (en) | Charging control method and device, terminal equipment and storage medium | |
CN107277906B (en) | Mode selection method, device, terminal and computer readable storage medium | |
CN106973138A (en) | Method and device for controlling mobile terminal, and mobile terminal | |
CN109148986B (en) | A charging method and device | |
CN105844179A (en) | Terminal protection method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180608 |