Movatterモバイル変換


[0]ホーム

URL:


CN107706969A - Abnormal charging detection method, charging data cable and charging system - Google Patents

Abnormal charging detection method, charging data cable and charging system
Download PDF

Info

Publication number
CN107706969A
CN107706969ACN201710892897.7ACN201710892897ACN107706969ACN 107706969 ACN107706969 ACN 107706969ACN 201710892897 ACN201710892897 ACN 201710892897ACN 107706969 ACN107706969 ACN 107706969A
Authority
CN
China
Prior art keywords
charging
curve
usb interface
data line
abnormal
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
CN201710892897.7A
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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710892897.7ApriorityCriticalpatent/CN107706969A/en
Publication of CN107706969ApublicationCriticalpatent/CN107706969A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application discloses a charging abnormity detection method, a charging data line and a charging system. The charging abnormality detection method includes: the charging method comprises the steps of acquiring a charging curve of a charging USB interface when the electronic equipment is charged, wherein the charging curve comprises a curve corresponding to the current flowing through the charging USB interface and the charging time, comparing the charging curve of the charging USB interface with a preset normal charging curve, and detecting whether the charging process is abnormal or not according to a comparison result. According to the embodiment of the application, the current monitoring is carried out on the charging USB interface, so that whether abnormity exists in the charging process can be effectively monitored, and the charging safety is improved.

Description

Translated fromChinese
充电异常检测方法、充电数据线及充电系统Abnormal charging detection method, charging data cable and charging system

技术领域technical field

本申请涉及移动通信技术领域,尤其涉及移动设备技术领域,具体涉及一种充电异常检测方法、充电数据线及充电系统。The present application relates to the technical field of mobile communication, in particular to the technical field of mobile devices, and in particular to a charging abnormality detection method, a charging data line and a charging system.

背景技术Background technique

随着通信技术的发展,移动电子设备成为日常生活中必不可少的工具。随着移动电子设备使用频率的增加,电子设备需要经常充电以满足用户的需求,通常利用充电适配器与充电数据线搭配电子设备进行充电来补充电子设备的电量。但是在充电过程中难免会出现充电异常的情形,如何监测充电过程是否异常已经越来越受到业界的关注。With the development of communication technology, mobile electronic devices have become an indispensable tool in daily life. With the increase in the frequency of use of mobile electronic devices, electronic devices need to be charged frequently to meet the needs of users. Usually, charging adapters and charging data cables are used to charge electronic devices to supplement the power of electronic devices. However, abnormal charging will inevitably occur during the charging process, and how to monitor whether the charging process is abnormal has attracted more and more attention from the industry.

发明内容Contents of the invention

本申请实施例提供一种充电异常检测方法、充电数据线及充电系统,可以有效监控充电过程中的异常情况,以提高充电安全性。Embodiments of the present application provide a charging abnormality detection method, a charging data line and a charging system, which can effectively monitor abnormalities in a charging process to improve charging safety.

本申请实施例提供一种充电异常检测方法,所述方法包括:An embodiment of the present application provides a method for detecting abnormal charging, the method comprising:

在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线;When charging the electronic device, obtain a charging curve of the charging USB interface, wherein the charging curve includes a curve corresponding to the current flowing through the charging USB interface and the charging time;

将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较;Comparing the charging curve of the charging USB interface with a preset normal charging curve;

根据比较结果,检测所述充电过程是否异常。According to the comparison result, it is detected whether the charging process is abnormal.

本申请实施例还提供一种充电数据线,所述充电数据线内设置有控制器,所述控制器用于检测充电时流过所述充电数据线的电流变化以确定充电过程是否异常。The embodiment of the present application also provides a charging data line, the charging data line is provided with a controller, and the controller is used to detect the change of the current flowing through the charging data line during charging to determine whether the charging process is abnormal.

本申请实施例还提供一种充电系统,包括:The embodiment of the present application also provides a charging system, including:

电子设备;Electronic equipment;

充电装置,用于对所述电子设备充电;a charging device for charging the electronic device;

充电数据线,所述充电数据线用于将所述电子设备与所述充电装置连接,其中,所述充电数据线内设置有控制器;A charging data line, the charging data line is used to connect the electronic device with the charging device, wherein a controller is arranged in the charging data line;

其中,所述充电数据线中的控制器通过检测流经所述电子设备的充电接口、或者流经所述充电数据线、或者流经所述充电装置的充电接口的电流以确定充电过程是否异常。Wherein, the controller in the charging data line determines whether the charging process is abnormal by detecting the current flowing through the charging interface of the electronic device, or flowing through the charging data line, or flowing through the charging interface of the charging device .

本申请实施例提供的充电异常检测方法,通过在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较,根据比较结果,检测所述充电过程是否异常。本申请实施例通过对充电USB接口进行电流监测,可以有效监控充电过程中是否存在异常,提高充电安全性。The charging abnormality detection method provided in the embodiment of the present application obtains the charging curve of the charging USB interface when charging the electronic device, wherein the charging curve includes a curve corresponding to the current flowing through the charging USB interface and the charging time. The charging curve of the charging USB interface is compared with a preset normal charging curve, and according to the comparison result, it is detected whether the charging process is abnormal. In the embodiments of the present application, by monitoring the current of the charging USB interface, it is possible to effectively monitor whether there is an abnormality in the charging process, and improve charging safety.

附图说明Description of drawings

下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present application will be apparent through the detailed description of the specific embodiments of the present application below in conjunction with the accompanying drawings.

图1为本申请实施例提供的一种充电系统的系统架构图。Fig. 1 is a system architecture diagram of a charging system provided by an embodiment of the present application.

图2为本申请实施例提供的一种充电异常检测方法的流程示意图。FIG. 2 is a schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application.

图3为本申请实施例提供的一种充电异常检测方法的另一流程示意图。FIG. 3 is another schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application.

图4为本申请实施例提供的一种充电异常检测方法的又一流程示意图。FIG. 4 is another schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application.

图5为本申请实施例提供的一种充电异常检测方法的再一流程示意图。FIG. 5 is another schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application.

图6为本申请实施例提供的一种充电数据线的应用场景示意图。FIG. 6 is a schematic diagram of an application scenario of a charging data line provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. 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. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first" and "second" in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but optionally also includes steps or modules that are not listed, or optionally includes For other steps or modules inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例提供的一种充电异常检测方法的执行主体,可以为本申请实施例提供的一种充电数据线或充电系统,或者与所述充电数据线搭配使用的电子设备(譬如掌上电脑、平板电脑、智能手机等)。The executor of a charging abnormality detection method provided in the embodiment of the present application may be a charging data line or a charging system provided in the embodiment of the present application, or an electronic device used in conjunction with the charging data line (such as a handheld computer, tablet, smartphone, etc.).

如图1所示,图1为本申请实施例提供的一种充电系统的系统架构图。所述充电系统包括电子设备10,充电装置20和充电数据线30。所述充电数据线30用于将所述电子设备10与所述充电装置20连接,其中,所述充电数据线30内设置有控制器33。在对电子设备10充电时,所述充电数据线30中的控制器33通过检测流经所述电子设备10的充电接口11、或者流经所述充电数据线30两端的USB接口、或者流经所述充电装置20的充电接口21的电流以确定充电过程是否异常。本申请实施例通过对充电接口进行电流监测,可以有效监控所述电子设备10在充电过程中是否存在异常,提高整个充电系统的充电安全性。相比于现有技术中仅监控电子设备的电池部分充电是否异常的情形,本申请通过监测从充电USB接口流入的电流,能有效监测到充电过程中电子设备整机部分电源消耗是否正常,以此能更好的保护电子设备。As shown in FIG. 1 , FIG. 1 is a system architecture diagram of a charging system provided by an embodiment of the present application. The charging system includes an electronic device 10 , a charging device 20 and a charging data cable 30 . The charging data line 30 is used to connect the electronic device 10 with the charging device 20 , wherein a controller 33 is disposed in the charging data line 30 . When charging the electronic device 10, the controller 33 in the charging data line 30 detects the charging interface 11 flowing through the electronic device 10, or the USB interface flowing through the two ends of the charging data line 30, or flowing through The current of the charging interface 21 of the charging device 20 is used to determine whether the charging process is abnormal. In the embodiment of the present application, by monitoring the current of the charging interface, it is possible to effectively monitor whether the electronic device 10 is abnormal during the charging process, and improve the charging safety of the entire charging system. Compared with the situation in the prior art that only monitors whether the charging of the battery part of the electronic device is abnormal, this application can effectively monitor whether the power consumption of the whole part of the electronic device is normal during the charging process by monitoring the current flowing in from the charging USB interface, so as to This can better protect electronic equipment.

请参阅图2,图2均为本申请实施例提供的一种充电异常检测方法的流程示意图。所述方法包括:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application. The methods include:

步骤101,在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线。Step 101 , when the electronic device is being charged, a charging curve of a charging USB interface is acquired, wherein the charging curve includes a curve corresponding to a current flowing through the charging USB interface and charging time.

其中,在对电子设备充电时,通常利用充电数据线将电子设备与所述充电装置连接,通过充电时间内监测流经充电USB接口的电流大小,来获取充电USB接口的充电曲线。其中所述充电USB接口包括电子设备的充电接口、或者充电数据线两端的USB接口、或者所述充电装置的充电接口。其中,所述USB接口为通用串行总线(Universal Serial Bus,USB)接口。Wherein, when charging an electronic device, the electronic device is usually connected to the charging device with a charging data cable, and the charging curve of the charging USB interface is obtained by monitoring the magnitude of the current flowing through the charging USB interface during the charging time. Wherein the charging USB interface includes a charging interface of an electronic device, or a USB interface at both ends of a charging data line, or a charging interface of the charging device. Wherein, the USB interface is a Universal Serial Bus (Universal Serial Bus, USB) interface.

其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,即电流-充电时间曲线(I-T曲线),用于描述在实际充电时间内不同的时间点对应电流值的电流曲线。Wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, that is, the current-charging time curve (I-T curve), which is used to describe the current corresponding to the current value at different time points within the actual charging time curve.

例如,以手机为例,当手机将其电量消耗至一定比例时,比如0%,则手机自动关机。此时需要对手机进行充电,则可以利用充电数据线将手机与提供充电电源的充电装置相连接,比如将手机插入一个充电USB接口,然后通过对所述充电USB接口进行电流监测,如监测充电时间内流过所述充电USB接口的电流大小,以获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线。For example, taking a mobile phone as an example, when the power consumption of the mobile phone reaches a certain percentage, such as 0%, the mobile phone will automatically shut down. At this time, the mobile phone needs to be charged, and the charging data cable can be used to connect the mobile phone to a charging device that provides charging power, such as inserting the mobile phone into a charging USB interface, and then monitoring the current through the charging USB interface, such as monitoring charging The magnitude of the current flowing through the charging USB interface within a certain period of time to obtain the charging curve of the charging USB interface, wherein the charging curve includes a curve corresponding to the current flowing through the charging USB interface and charging time.

步骤102,将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较。Step 102, comparing the charging curve of the charging USB interface with a preset normal charging curve.

其中,所述预设的正常充电曲线表示通过实验测试得到的电子设备正常充电时的正常电流-时间曲线。比如,所述预设的正常充电曲线可以包括在正常充电时间内不同的时间点对应电流上限值的电流上限曲线和在正常充电时间内不同的时间点对应电流下限值的电流下限曲线。比如,将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较,即比较所述充电曲线是否处于所述电流上限曲线与所述电流下限曲线之间。若是则确定所述充电过程正常,若否则确定所述充电过程异常。Wherein, the preset normal charging curve represents a normal current-time curve obtained through experimental testing when the electronic device is normally charged. For example, the preset normal charging curve may include a current upper limit curve corresponding to the upper current limit at different time points within the normal charging time and a lower current limit curve corresponding to the lower current limit at different time points within the normal charging time. For example, comparing the charging curve of the charging USB interface with a preset normal charging curve, that is, comparing whether the charging curve is between the current upper limit curve and the current lower limit curve. If yes, it is determined that the charging process is normal; otherwise, it is determined that the charging process is abnormal.

比如,所述预设的正常充电曲线也可以包括在正常充电时间内不同的时间点对应电流平均值的电流平均值曲线。比如,将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较,即比较所述充电曲线是否与所述电流平均值曲线存在偏差,比如在相同的时间点,两者的电流差值是否达到预设电流差值。若是则确定所述充电过程异常,若否则确定所述充电过程正常。For example, the preset normal charging curve may also include current average curves corresponding to current average values at different time points within the normal charging time. For example, comparing the charging curve of the charging USB interface with the preset normal charging curve, that is, comparing whether the charging curve deviates from the current average value curve, for example, at the same time point, the current difference between the two Whether the value reaches the preset current difference. If yes, it is determined that the charging process is abnormal; otherwise, it is determined that the charging process is normal.

步骤103,根据比较结果,检测所述充电过程是否异常。Step 103, according to the comparison result, detect whether the charging process is abnormal.

比如,通过比较所述充电曲线是否处于所述电流上限曲线与所述电流下限曲线之间来获取比较结果。若比较结果为所述充电曲线处于所述电流上限曲线与所述电流下限曲线之间,则确定所述充电过程正常;若比较结果为所述充电曲线未处于所述电流上限曲线与所述电流下限曲线之间,则确定所述充电过程异常。For example, the comparison result is obtained by comparing whether the charging curve is between the current upper limit curve and the current lower limit curve. If the comparison result is that the charging curve is between the current upper limit curve and the current lower limit curve, it is determined that the charging process is normal; if the comparison result is that the charging curve is not between the current upper limit curve and the current If it is between the lower limit curves, it is determined that the charging process is abnormal.

比如,通过比较所述充电曲线是否与所述电流平均值曲线存在偏差来获取比较结果。若比较结果为所述充电曲线与所述电流平均值曲线存在偏差,则确定所述充电过程异常;若比较结果为所述充电曲线与所述电流平均值曲线不存在偏差,则确定所述充电过程正常。For example, the comparison result is obtained by comparing whether there is a deviation between the charging curve and the current average value curve. If the comparison result shows that there is a deviation between the charging curve and the current average curve, it is determined that the charging process is abnormal; if the comparison result is that there is no deviation between the charging curve and the current average curve, then it is determined that the charging The process is normal.

在一些实施例中,在所述获取充电USB接口的充电曲线之后,包括:根据所述充电USB接口的充电曲线生成充电电量变化曲线;In some embodiments, after the acquiring the charging curve of the charging USB interface, it includes: generating a charging power variation curve according to the charging curve of the charging USB interface;

所述将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较,包括:将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较。The comparing the charging curve of the charging USB interface with a preset normal charging curve includes: comparing the charging power variation curve with the preset normal charging power variation curve.

在一些实施例中,所述在对电子设备充电时,获取充电USB接口的充电曲线,包括:In some embodiments, when the electronic device is charged, obtaining the charging curve of the charging USB interface includes:

在对电子设备充电时,获取流经充电数据线上的USB接口的电流与充电时间对应的充电曲线。When charging the electronic device, a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time is obtained.

在一些实施例中,所述方法还包括:In some embodiments, the method also includes:

当检测到所述充电过程异常时,进行预警提示。When an abnormality in the charging process is detected, an early warning prompt is given.

在一些实施例中,所述方法还包括:In some embodiments, the method also includes:

当检测到所述充电过程异常时,向充电装置发出第一消息,所述第一消息用于指示所述充电装置停止充电。When it is detected that the charging process is abnormal, a first message is sent to the charging device, and the first message is used to instruct the charging device to stop charging.

上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.

本申请实施例提供的充电异常检测方法,通过在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,将所述充电USB接口的充电曲线与预设的正常充电曲线进行比较,根据比较结果,检测所述充电过程是否异常。本申请实施例通过对充电USB接口进行电流监测,可以有效监控充电过程中电子设备整机是否存在异常,提高充电安全性。The charging abnormality detection method provided in the embodiment of the present application obtains the charging curve of the charging USB interface when charging the electronic device, wherein the charging curve includes a curve corresponding to the current flowing through the charging USB interface and the charging time. The charging curve of the charging USB interface is compared with a preset normal charging curve, and according to the comparison result, it is detected whether the charging process is abnormal. In the embodiments of the present application, by monitoring the current of the charging USB interface, it is possible to effectively monitor whether the electronic device is abnormal during the charging process, thereby improving charging safety.

请参阅图3,图3为本申请实施例提供的一种充电异常检测方法的另一流程示意图。所述方法包括:Please refer to FIG. 3 . FIG. 3 is another schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application. The methods include:

步骤201,在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线。Step 201 , when the electronic device is being charged, a charging curve of a charging USB interface is obtained, wherein the charging curve includes a curve corresponding to a current flowing through the charging USB interface and charging time.

其中,在对电子设备充电时,通常利用充电数据线将电子设备与所述充电装置连接,通过充电时间内监测流经充电USB接口的电流大小,来获取充电USB接口的充电曲线。其中所述充电USB接口包括电子设备的充电接口、或者充电数据线两端的USB接口、或者所述充电装置的充电接口。Wherein, when charging an electronic device, the electronic device is usually connected to the charging device with a charging data cable, and the charging curve of the charging USB interface is obtained by monitoring the magnitude of the current flowing through the charging USB interface during the charging time. Wherein the charging USB interface includes a charging interface of an electronic device, or a USB interface at both ends of a charging data line, or a charging interface of the charging device.

其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,即电流-充电时间曲线(I-T曲线),用于描述在实际充电时间内不同的时间点对应电流值的电流曲线。Wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, that is, the current-charging time curve (I-T curve), which is used to describe the current corresponding to the current value at different time points within the actual charging time curve.

在一些实施例中,所述在对电子设备充电时,获取充电USB接口的充电曲线,包括:In some embodiments, when the electronic device is charged, obtaining the charging curve of the charging USB interface includes:

在对电子设备充电时,获取流经充电数据线上的USB接口的电流与充电时间对应的充电曲线。When charging the electronic device, a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time is obtained.

例如,以手机为例,当手机将其电量消耗至一定比例时,比如0%,则手机自动关机。此时需要对手机进行充电,则可以利用充电数据线将手机与提供充电电源的充电装置相连接,比如将手机插入一个充电数据线上的USB接口,然后通过对所述充电数据线上的USB接口进行电流监测,如监测充电时间内流过所述充电数据线上的USB接口的电流大小,以获取流经所述充电数据线上的USB接口的电流与充电时间对应的充电曲线。For example, taking a mobile phone as an example, when the power consumption of the mobile phone reaches a certain percentage, such as 0%, the mobile phone will automatically shut down. At this time, the mobile phone needs to be charged, and then the mobile phone can be connected with a charging device that provides charging power by using a charging data cable, such as inserting the mobile phone into a USB interface on the charging data line, and then charging the USB port on the charging data line. The interface performs current monitoring, such as monitoring the magnitude of the current flowing through the USB interface on the charging data line within the charging time, so as to obtain a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time.

步骤202,根据所述充电USB接口的充电曲线生成充电电量变化曲线。Step 202, generating a charging power variation curve according to the charging curve of the charging USB interface.

比如,当电子设备充电值一定的电量比例时,如80%或者100%,对流过所述充电USB接口的电流相对于充电时间进行积分以算出电量。例如,所述电量Q等于电流i对充电时间i进行积分,积分公式如下:For example, when the electronic device is charged with a certain percentage of power, such as 80% or 100%, the current flowing through the charging USB interface is integrated relative to the charging time to calculate the power. For example, the electric quantity Q is equal to the integration of the charging time i by the current i, and the integral formula is as follows:

Q=∫i(t)*dt。Q=∫i(t)*dt.

其中,通过对所述充电USB接口的充电曲线中不同时间点的电流值进行积分以生成充电电量变化曲线。Wherein, the charging power variation curve is generated by integrating the current values at different time points in the charging curve of the charging USB interface.

步骤203,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较。Step 203 , comparing the charging power variation curve with a preset normal charging power variation curve.

其中,当所述预设的正常充电曲线包括在正常充电时间内不同的时间点对应电流上限值的电流上限曲线和在正常充电时间内不同的时间点对应电流下限值的电流下限曲线时,所述预设的正常充电电量变化曲线为通过对所述电流上限曲线和所示电流下限曲线中不同时间点的电流上限值及电流下限值进行积分以生成对应的电量上限变化曲线和电量下限变化曲线。比如,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,即比较所述充电电量变化曲线是否处于所述电量上限变化曲线与所述电量下限变化曲线之间。若是则确定所述充电过程正常,若否则确定所述充电过程异常。Wherein, when the preset normal charging curve includes the current upper limit curve corresponding to the current upper limit value at different time points within the normal charging time and the current lower limit curve corresponding to the current lower limit value at different time points within the normal charging time , the preset normal charging electric quantity change curve is to generate a corresponding electric quantity upper limit change curve and Power lower limit change curve. For example, comparing the charging power change curve with a preset normal charging power change curve, that is, comparing whether the charging power change curve is between the power upper limit change curve and the power lower limit change curve. If yes, it is determined that the charging process is normal; otherwise, it is determined that the charging process is abnormal.

其中,当所述预设的正常充电曲线包括在正常充电时间内不同的时间点对应电流平均值的电流平均值曲线时,所述预设的正常充电电量变化曲线为通过对所述电流平均值曲线中不同时间点的电流平均值进行积分以生成对应的电量平均变化曲线。比如,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,即比较所述充电电量变化曲线是否与所述电量平均变化曲线存在偏差,比如在相同的时间点,两者的电量差值是否达到预设电量差值。若是则确定所述充电过程异常,若否则确定所述充电过程正常。Wherein, when the preset normal charging curve includes the current average value curve corresponding to the current average value at different time points within the normal charging time, the preset normal charging electric quantity change curve is calculated by comparing the current average value The average value of current at different time points in the curve is integrated to generate the corresponding average change curve of electricity. For example, comparing the charging power change curve with the preset normal charging power change curve, that is, comparing whether the charging power change curve deviates from the average power change curve, for example, at the same time point, the two Whether the power difference reaches a preset power difference. If yes, it is determined that the charging process is abnormal; otherwise, it is determined that the charging process is normal.

步骤204,根据比较结果,检测所述充电过程是否异常。Step 204, according to the comparison result, detect whether the charging process is abnormal.

比如,通过比较所述充电电量变化曲线是否处于所述电量上限变化曲线与所述电量下限变化曲线之间来获取比较结果。若比较结果为所述充电电量变化曲线处于所述电量上限变化曲线与所述电量下限变化曲线之间,则确定所述充电过程正常,若所述充电电量变化曲线未处于所述电量上限变化曲线与所述电量下限变化曲线之间,则确定所述充电过程异常。For example, the comparison result is obtained by comparing whether the change curve of the charging electric quantity is between the change curve of the upper limit of electric quantity and the change curve of the lower limit of electric quantity. If the comparison result is that the charging power change curve is between the power upper limit change curve and the power lower limit change curve, it is determined that the charging process is normal; if the charging power change curve is not in the power upper limit change curve If it is between the change curve of the lower limit of the electric quantity, it is determined that the charging process is abnormal.

比如,通过比较所述充电电量变化曲线是否与所述电量平均变化曲线存在偏差来获取比较结果。若所述充电电量变化曲线与所述电量平均变化曲线存在偏差,则确定所述充电过程异常,若所述充电电量变化曲线与所述电量平均变化曲线不存在偏差,则确定所述充电过程正常。For example, the comparison result is obtained by comparing whether there is a deviation between the change curve of the charging electric quantity and the average change curve of electric quantity. If there is a deviation between the charging electric quantity change curve and the electric quantity average change curve, it is determined that the charging process is abnormal; if there is no deviation between the charging electric quantity change curve and the electric quantity average change curve, then it is determined that the charging process is normal .

本申请实施例提供的充电异常检测方法,通过在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,根据所述充电USB接口的充电曲线生成充电电量变化曲线,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,根据比较结果,检测所述充电过程是否异常。本申请实施例通过对充电USB接口进行电流监测以获取对应的充电电量变化曲线,并与预设的正常充电电量变化曲线进行比较,可以有效监控充电过程中电子设备整机是否存在异常,提高充电安全性。The abnormal charging detection method provided in the embodiment of the present application obtains the charging curve of the charging USB interface when charging the electronic device, wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, according to The charging curve of the charging USB interface generates a charging power variation curve, compares the charging power variation curve with a preset normal charging power variation curve, and detects whether the charging process is abnormal according to the comparison result. In the embodiment of the present application, by monitoring the current of the charging USB interface to obtain the corresponding charging power change curve, and comparing it with the preset normal charging power change curve, it is possible to effectively monitor whether the electronic device is abnormal during the charging process, and improve charging performance. safety.

请参阅图4,图4为本申请实施例提供的一种充电异常检测方法的又一流程示意图。所述方法包括:Please refer to FIG. 4 . FIG. 4 is another schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application. The methods include:

步骤301,在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线。Step 301 , when the electronic device is being charged, a charging curve of a charging USB interface is obtained, wherein the charging curve includes a curve corresponding to a current flowing through the charging USB interface and charging time.

其中,在对电子设备充电时,通常利用充电数据线将电子设备与所述充电装置连接,通过充电时间内监测流经充电USB接口的电流大小,来获取充电USB接口的充电曲线。其中所述充电USB接口包括电子设备的充电接口、或者充电数据线两端的USB接口、或者所述充电装置的充电接口。Wherein, when charging an electronic device, the electronic device is usually connected to the charging device with a charging data cable, and the charging curve of the charging USB interface is obtained by monitoring the magnitude of the current flowing through the charging USB interface during the charging time. Wherein the charging USB interface includes a charging interface of an electronic device, or a USB interface at both ends of a charging data line, or a charging interface of the charging device.

其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,即电流-充电时间曲线(I-T曲线),用于描述在实际充电时间内不同的时间点对应电流值的电流曲线。Wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, that is, the current-charging time curve (I-T curve), which is used to describe the current corresponding to the current value at different time points within the actual charging time curve.

在一些实施例中,所述在对电子设备充电时,获取充电USB接口的充电曲线,包括:In some embodiments, when the electronic device is charged, obtaining the charging curve of the charging USB interface includes:

在对电子设备充电时,获取流经充电数据线上的USB接口的电流与充电时间对应的充电曲线。When charging the electronic device, a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time is obtained.

例如,以手机为例,当手机将其电量消耗至一定比例时,比如0%,则手机自动关机。此时需要对手机进行充电,则可以利用充电数据线将手机与提供充电电源的充电装置相连接,比如将手机插入一个充电数据线上的USB接口,然后通过对所述充电数据线上的USB接口进行电流监测,如监测充电时间内流过所述充电数据线上的USB接口的电流大小,以获取流经所述充电数据线上的USB接口的电流与充电时间对应的充电曲线。For example, taking a mobile phone as an example, when the power consumption of the mobile phone reaches a certain percentage, such as 0%, the mobile phone will automatically shut down. At this time, the mobile phone needs to be charged, and then the mobile phone can be connected with a charging device that provides charging power by using a charging data cable, such as inserting the mobile phone into a USB interface on the charging data line, and then charging the USB port on the charging data line. The interface performs current monitoring, such as monitoring the magnitude of the current flowing through the USB interface on the charging data line within the charging time, so as to obtain a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time.

步骤302,根据所述充电USB接口的充电曲线生成充电电量变化曲线。Step 302, generating a charging power variation curve according to the charging curve of the charging USB interface.

比如,当电子设备充电值一定的电量比例时,如80%或者100%,对流过所述充电USB接口的电流相对于充电时间进行积分以算出电量。例如,所述电量Q等于电流i对充电时间i进行积分,积分公式如下:For example, when the electronic device is charged with a certain percentage of power, such as 80% or 100%, the current flowing through the charging USB interface is integrated relative to the charging time to calculate the power. For example, the electric quantity Q is equal to the integration of the charging time i by the current i, and the integral formula is as follows:

Q=∫i(t)*dt。Q=∫i(t)*dt.

其中,通过对所述充电USB接口的充电曲线中不同时间点的电流值进行积分以生成充电电量变化曲线。Wherein, the charging power variation curve is generated by integrating the current values at different time points in the charging curve of the charging USB interface.

步骤303,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较。Step 303 , comparing the charging power variation curve with a preset normal charging power variation curve.

其中,当所述预设的正常充电曲线包括在正常充电时间内不同的时间点对应电流上限值的电流上限曲线和在正常充电时间内不同的时间点对应电流下限值的电流下限曲线时,所述预设的正常充电电量变化曲线为通过对所述电流上限曲线和所示电流下限曲线中不同时间点的电流上限值及电流下限值进行积分以生成对应的电量上限变化曲线和电量下限变化曲线。比如,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,即比较所述充电电量变化曲线是否处于所述电量上限变化曲线与所述电量下限变化曲线之间。若是则确定所述充电过程正常,若否则确定所述充电过程异常。Wherein, when the preset normal charging curve includes the current upper limit curve corresponding to the current upper limit value at different time points within the normal charging time and the current lower limit curve corresponding to the current lower limit value at different time points within the normal charging time , the preset normal charging electric quantity change curve is to generate a corresponding electric quantity upper limit change curve and Power lower limit change curve. For example, comparing the charging power change curve with a preset normal charging power change curve, that is, comparing whether the charging power change curve is between the power upper limit change curve and the power lower limit change curve. If yes, it is determined that the charging process is normal; otherwise, it is determined that the charging process is abnormal.

其中,当所述预设的正常充电曲线包括在正常充电时间内不同的时间点对应电流平均值的电流平均值曲线时,所述预设的正常充电电量变化曲线为通过对所述电流平均值曲线中不同时间点的电流平均值进行积分以生成对应的电量平均变化曲线。比如,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,即比较所述充电电量变化曲线是否与所述电量平均变化曲线存在偏差,比如在相同的时间点,两者的电量差值是否达到预设电量差值。若是则确定所述充电过程异常,若否则确定所述充电过程正常。Wherein, when the preset normal charging curve includes the current average value curve corresponding to the current average value at different time points within the normal charging time, the preset normal charging electric quantity change curve is calculated by comparing the current average value The average value of current at different time points in the curve is integrated to generate the corresponding average change curve of electricity. For example, comparing the charging power change curve with the preset normal charging power change curve, that is, comparing whether the charging power change curve deviates from the average power change curve, for example, at the same time point, the two Whether the power difference reaches a preset power difference. If yes, it is determined that the charging process is abnormal; otherwise, it is determined that the charging process is normal.

步骤304,根据比较结果,检测所述充电过程是否异常。Step 304, according to the comparison result, detect whether the charging process is abnormal.

比如,通过比较所述充电电量变化曲线是否处于所述电量上限变化曲线与所述电量下限变化曲线之间来获取比较结果。若比较结果为所述充电电量变化曲线处于所述电量上限变化曲线与所述电量下限变化曲线之间,则确定所述充电过程正常,若所述充电电量变化曲线未处于所述电量上限变化曲线与所述电量下限变化曲线之间,则确定所述充电过程异常。For example, the comparison result is obtained by comparing whether the change curve of the charging electric quantity is between the change curve of the upper limit of electric quantity and the change curve of the lower limit of electric quantity. If the comparison result is that the charging power change curve is between the power upper limit change curve and the power lower limit change curve, it is determined that the charging process is normal; if the charging power change curve is not in the power upper limit change curve If it is between the change curve of the lower limit of the electric quantity, it is determined that the charging process is abnormal.

比如,通过比较所述充电电量变化曲线是否与所述电量平均变化曲线存在偏差来获取比较结果。若所述充电电量变化曲线与所述电量平均变化曲线存在偏差,则确定所述充电过程异常,若所述充电电量变化曲线与所述电量平均变化曲线不存在偏差,则确定所述充电过程正常。For example, the comparison result is obtained by comparing whether there is a deviation between the change curve of the charging electric quantity and the average change curve of electric quantity. If there is a deviation between the charging electric quantity change curve and the electric quantity average change curve, it is determined that the charging process is abnormal; if there is no deviation between the charging electric quantity change curve and the electric quantity average change curve, then it is determined that the charging process is normal .

步骤305,当检测到所述充电过程异常时,进行预警提示。Step 305, when it is detected that the charging process is abnormal, an early warning prompt is given.

比如,以手机为例,手机充电到一定比例(如80%、或100%)时,检测到所述充电过程出现异常,则手机发出预警信号进行提示,比如所述预警信号为预设预警铃声,或者预设闪烁灯光,或者预设提示语音。上述例举不作为对本申请的限定,所述预警提示以达到提醒用户的目的。当用户接到预警提示时,用户可以立时将充电数据线拔掉或者关闭充电插座的开关,以停止对手机的充电。For example, taking a mobile phone as an example, when the mobile phone is charged to a certain percentage (such as 80% or 100%), it is detected that the charging process is abnormal, and the mobile phone sends out an early warning signal to prompt, such as the preset early warning ringtone , or preset flashing lights, or preset voice prompts. The above examples are not intended to limit the present application, and the warning prompt is for the purpose of reminding the user. When the user receives the warning prompt, the user can immediately unplug the charging data cable or turn off the switch of the charging socket to stop charging the mobile phone.

本申请实施例提供的充电异常检测方法,通过在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,根据所述充电USB接口的充电曲线生成充电电量变化曲线,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,根据比较结果,检测所述充电过程是否异常,当检测到所述充电过程异常时,进行预警提示。本申请实施例通过对充电USB接口进行电流监测以获取对应的充电电量变化曲线,并与预设的正常充电电量变化曲线进行比较,可以有效监控充电过程中是否存在异常,当出现异常时进行预警提示,以提高充电安全性。The abnormal charging detection method provided in the embodiment of the present application obtains the charging curve of the charging USB interface when charging the electronic device, wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, according to The charging curve of the charging USB interface generates a charging power change curve, compares the charging power change curve with a preset normal charging power change curve, and detects whether the charging process is abnormal according to the comparison result. When the charging process is abnormal, an early warning prompt will be given. In the embodiment of the present application, by monitoring the current of the charging USB interface to obtain the corresponding charging power change curve, and comparing it with the preset normal charging power change curve, it can effectively monitor whether there is an abnormality in the charging process, and give an early warning when an abnormality occurs Tips to improve charging safety.

请参阅图5,图5为本申请实施例提供的一种充电异常检测方法的再一流程示意图。所述方法包括:Please refer to FIG. 5 . FIG. 5 is another schematic flowchart of a method for detecting abnormal charging provided by an embodiment of the present application. The methods include:

步骤401,在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线。Step 401 , when the electronic device is being charged, a charging curve of a charging USB interface is obtained, wherein the charging curve includes a curve corresponding to a current flowing through the charging USB interface and charging time.

其中,在对电子设备充电时,通常利用充电数据线将电子设备与所述充电装置连接,通过充电时间内监测流经充电USB接口的电流大小,来获取充电USB接口的充电曲线。其中所述充电USB接口包括电子设备的充电接口、或者充电数据线两端的USB接口、或者所述充电装置的充电接口。Wherein, when charging an electronic device, the electronic device is usually connected to the charging device with a charging data cable, and the charging curve of the charging USB interface is obtained by monitoring the magnitude of the current flowing through the charging USB interface during the charging time. Wherein the charging USB interface includes a charging interface of an electronic device, or a USB interface at both ends of a charging data line, or a charging interface of the charging device.

其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,即电流-充电时间曲线(I-T曲线),用于描述在实际充电时间内不同的时间点对应电流值的电流曲线。Wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, that is, the current-charging time curve (I-T curve), which is used to describe the current corresponding to the current value at different time points within the actual charging time curve.

在一些实施例中,所述在对电子设备充电时,获取充电USB接口的充电曲线,包括:In some embodiments, when the electronic device is charged, obtaining the charging curve of the charging USB interface includes:

在对电子设备充电时,获取流经充电数据线上的USB接口的电流与充电时间对应的充电曲线。When charging the electronic device, a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time is obtained.

例如,以手机为例,当手机将其电量消耗至一定比例时,比如0%,则手机自动关机。此时需要对手机进行充电,则可以利用充电数据线将手机与提供充电电源的充电装置相连接,比如将手机插入一个充电数据线上的USB接口,然后通过对所述充电数据线上的USB接口进行电流监测,如监测充电时间内流过所述充电数据线上的USB接口的电流大小,以获取流经所述充电数据线上的USB接口的电流与充电时间对应的充电曲线。For example, taking a mobile phone as an example, when the power consumption of the mobile phone reaches a certain percentage, such as 0%, the mobile phone will automatically shut down. At this time, the mobile phone needs to be charged, and then the mobile phone can be connected with a charging device that provides charging power by using a charging data cable, such as inserting the mobile phone into a USB interface on the charging data line, and then charging the USB port on the charging data line. The interface performs current monitoring, such as monitoring the magnitude of the current flowing through the USB interface on the charging data line within the charging time, so as to obtain a charging curve corresponding to the current flowing through the USB interface on the charging data line and the charging time.

步骤402,根据所述充电USB接口的充电曲线生成充电电量变化曲线。Step 402, generating a charging power variation curve according to the charging curve of the charging USB interface.

比如,当电子设备充电值一定的电量比例时,如80%或者100%,对流过所述充电USB接口的电流相对于充电时间进行积分以算出电量。例如,所述电量Q等于电流i对充电时间i进行积分,积分公式如下:For example, when the electronic device is charged with a certain percentage of power, such as 80% or 100%, the current flowing through the charging USB interface is integrated relative to the charging time to calculate the power. For example, the electric quantity Q is equal to the integration of the charging time i by the current i, and the integral formula is as follows:

Q=∫i(t)*dt。Q=∫i(t)*dt.

其中,通过对所述充电USB接口的充电曲线中不同时间点的电流值进行积分以生成充电电量变化曲线。Wherein, the charging power variation curve is generated by integrating the current values at different time points in the charging curve of the charging USB interface.

步骤403,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较。Step 403 , comparing the charging power variation curve with a preset normal charging power variation curve.

其中,当所述预设的正常充电曲线包括在正常充电时间内不同的时间点对应电流上限值的电流上限曲线和在正常充电时间内不同的时间点对应电流下限值的电流下限曲线时,所述预设的正常充电电量变化曲线为通过对所述电流上限曲线和所示电流下限曲线中不同时间点的电流上限值及电流下限值进行积分以生成对应的电量上限变化曲线和电量下限变化曲线。比如,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,即比较所述充电电量变化曲线是否处于所述电量上限变化曲线与所述电量下限变化曲线之间。若是则确定所述充电过程正常,若否则确定所述充电过程异常。Wherein, when the preset normal charging curve includes the current upper limit curve corresponding to the current upper limit value at different time points within the normal charging time and the current lower limit curve corresponding to the current lower limit value at different time points within the normal charging time , the preset normal charging electric quantity change curve is to generate a corresponding electric quantity upper limit change curve and Power lower limit change curve. For example, comparing the charging power change curve with a preset normal charging power change curve, that is, comparing whether the charging power change curve is between the power upper limit change curve and the power lower limit change curve. If yes, it is determined that the charging process is normal; otherwise, it is determined that the charging process is abnormal.

其中,当所述预设的正常充电曲线包括在正常充电时间内不同的时间点对应电流平均值的电流平均值曲线时,所述预设的正常充电电量变化曲线为通过对所述电流平均值曲线中不同时间点的电流平均值进行积分以生成对应的电量平均变化曲线。比如,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,即比较所述充电电量变化曲线是否与所述电量平均变化曲线存在偏差,比如在相同的时间点,两者的电量差值是否达到预设电量差值。若是则确定所述充电过程异常,若否则确定所述充电过程正常。Wherein, when the preset normal charging curve includes the current average value curve corresponding to the current average value at different time points within the normal charging time, the preset normal charging electric quantity change curve is calculated by comparing the current average value The average value of current at different time points in the curve is integrated to generate the corresponding average change curve of electricity. For example, comparing the charging power variation curve with a preset normal charging power variation curve, that is, comparing whether there is a deviation between the charging power variation curve and the average power variation curve, for example, at the same time point, both Whether the power difference reaches a preset power difference. If yes, it is determined that the charging process is abnormal; otherwise, it is determined that the charging process is normal.

步骤404,根据比较结果,检测所述充电过程是否异常。Step 404, according to the comparison result, detect whether the charging process is abnormal.

比如,通过比较所述充电电量变化曲线是否处于所述电量上限变化曲线与所述电量下限变化曲线之间来获取比较结果。若比较结果为所述充电电量变化曲线处于所述电量上限变化曲线与所述电量下限变化曲线之间,则确定所述充电过程正常,若所述充电电量变化曲线未处于所述电量上限变化曲线与所述电量下限变化曲线之间,则确定所述充电过程异常。For example, the comparison result is obtained by comparing whether the change curve of the charging electric quantity is between the change curve of the upper limit of electric quantity and the change curve of the lower limit of electric quantity. If the comparison result is that the charging power change curve is between the power upper limit change curve and the power lower limit change curve, it is determined that the charging process is normal; if the charging power change curve is not in the power upper limit change curve If it is between the change curve of the lower limit of the electric quantity, it is determined that the charging process is abnormal.

比如,通过比较所述充电电量变化曲线是否与所述电量平均变化曲线存在偏差来获取比较结果。若所述充电电量变化曲线与所述电量平均变化曲线存在偏差,则确定所述充电过程异常,若所述充电电量变化曲线与所述电量平均变化曲线不存在偏差,则确定所述充电过程正常。For example, the comparison result is obtained by comparing whether there is a deviation between the change curve of the charging electric quantity and the average change curve of electric quantity. If there is a deviation between the charging electric quantity change curve and the electric quantity average change curve, it is determined that the charging process is abnormal; if there is no deviation between the charging electric quantity change curve and the electric quantity average change curve, then it is determined that the charging process is normal .

步骤405,当检测到所述充电过程异常时,向充电装置发出第一消息,所述第一消息用于指示所述充电装置停止充电。Step 405, when it is detected that the charging process is abnormal, send a first message to the charging device, where the first message is used to instruct the charging device to stop charging.

比如,以手机为例,手机充电到一定比例(如80%、或100%)时,检测到所述充电过程出现异常,手机通过充电数据线给充电装置发出一个信号消息,所述信号消息用于指示所述充电装置停止充电,以使得所述充电装置根据所述信号消息自动停止充电。For example, taking a mobile phone as an example, when the mobile phone is charged to a certain percentage (such as 80% or 100%), it is detected that the charging process is abnormal, and the mobile phone sends a signal message to the charging device through the charging data line, and the signal message is used Instructing the charging device to stop charging, so that the charging device automatically stops charging according to the signal message.

本申请实施例提供的充电异常检测方法,通过在对电子设备充电时,获取充电USB接口的充电曲线,其中所述充电曲线包括流经所述充电USB接口的电流与充电时间对应的曲线,根据所述充电USB接口的充电曲线生成充电电量变化曲线,将所述充电电量变化曲线与预设的正常充电电量变化曲线进行比较,根据比较结果,检测所述充电过程是否异常,向充电装置发出第一消息,所述第一消息用于指示所述充电装置停止充电。本申请实施例通过对充电USB接口进行电流监测以获取对应的充电电量变化曲线,并与预设的正常充电电量变化曲线进行比较,可以有效监控充电过程中是否存在异常,当出现异常时发送消息指示充电装置停止充电,以提高充电安全性。The abnormal charging detection method provided in the embodiment of the present application obtains the charging curve of the charging USB interface when charging the electronic device, wherein the charging curve includes the curve corresponding to the current flowing through the charging USB interface and the charging time, according to The charging curve of the charging USB interface generates a charging power change curve, compares the charging power changing curve with a preset normal charging power changing curve, detects whether the charging process is abnormal according to the comparison result, and sends a first message to the charging device A message, the first message is used to instruct the charging device to stop charging. In the embodiment of the present application, by monitoring the current of the charging USB interface to obtain the corresponding charging power change curve, and comparing it with the preset normal charging power change curve, it can effectively monitor whether there is an abnormality in the charging process, and send a message when an abnormality occurs Instruct the charging device to stop charging to improve charging safety.

本申请实施例还提供一种充电数据线,如图6所示,图6为本申请实施例提供的一种充电数据线的应用场景示意图。所述充电数据线30用于将所述电子设备10与所述充电装置20连接,所述充电数据线30内设置有控制器33,所述控制器33用于检测充电时流过所述充电数据线30的电流变化以确定充电过程是否异常。The embodiment of the present application further provides a charging data line, as shown in FIG. 6 , which is a schematic diagram of an application scenario of the charging data line provided in the embodiment of the present application. The charging data line 30 is used to connect the electronic device 10 with the charging device 20, and the charging data line 30 is provided with a controller 33, and the controller 33 is used to detect the charging current flowing through the charging device 20. The current of the data line 30 changes to determine whether the charging process is abnormal.

在一些实施例中,所述充电数据线30包括线缆34,以及设置在线缆34两端的USB接口31和USB接口32,其中,所述控制器33设置在所述线缆34内。In some embodiments, the charging data cable 30 includes a cable 34 , and a USB interface 31 and a USB interface 32 arranged at both ends of the cable 34 , wherein the controller 33 is arranged in the cable 34 .

在一些实施例中,所述充电数据线30包括线缆34,以及设置在线缆34两端的USB接口31和USB接口32,其中,所述控制器33设置在所述任一USB接口内。如图1所示,所述控制器33设置在连接充电装置20一侧的USB接口32内。In some embodiments, the charging data cable 30 includes a cable 34 , and a USB interface 31 and a USB interface 32 arranged at both ends of the cable 34 , wherein the controller 33 is arranged in any one of the USB interfaces. As shown in FIG. 1 , the controller 33 is disposed in the USB interface 32 connected to the side of the charging device 20 .

本申请实施例还提供一种充电系统,如图1所示,所述充电系统包括电子设备10,充电装置20和充电数据线30。所述充电数据线30用于将所述电子设备10与所述充电装置20连接,其中,所述充电数据线30内设置有控制器33。在对电子设备10充电时,所述充电数据线30中的控制器33通过检测流经所述电子设备10的充电接口11、或者流经所述充电数据线30两端的USB接口、或者流经所述充电装置20的充电接口21的电流以确定充电过程是否异常。The embodiment of the present application also provides a charging system. As shown in FIG. 1 , the charging system includes an electronic device 10 , a charging device 20 and a charging data line 30 . The charging data line 30 is used to connect the electronic device 10 with the charging device 20 , wherein a controller 33 is disposed in the charging data line 30 . When charging the electronic device 10, the controller 33 in the charging data line 30 detects the charging interface 11 flowing through the electronic device 10, or the USB interface flowing through the two ends of the charging data line 30, or flowing through The current of the charging interface 21 of the charging device 20 is used to determine whether the charging process is abnormal.

在一些实施例中,所述控制器33为微处理器芯片,所述电子设备10或所述充电装置20的充电接口为USB接口,所述充电装置20为充电适配器。In some embodiments, the controller 33 is a microprocessor chip, the charging interface of the electronic device 10 or the charging device 20 is a USB interface, and the charging device 20 is a charging adapter.

,在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。, In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for the parts that are not described in detail in a certain embodiment, refer to the relevant descriptions of other embodiments.

需要说明的是,对本申请所述充电异常检测方法而言,本领域普通测试人员可以理解实现本申请实施例所述充电异常检测方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读存储介质中,如存储在电子设备或者充电数据线的存储器中,并被该电子设备或者充电数据线内的至少一个处理器执行,在执行过程中可包括如所述充电异常检测方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)等。It should be noted that, for the abnormal charging detection method described in this application, ordinary testers in the field can understand that all or part of the flow of the abnormal charging detection method described in the embodiment of this application can be controlled by computer programs. To complete, the computer program can be stored in a computer-readable storage medium, such as stored in the memory of the electronic device or the charging data line, and executed by at least one processor in the electronic device or the charging data line. The process may include the flow of the embodiments of the abnormal charging detection method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.

以上对本申请实施例所提供的一种充电异常检测方法、充电数据线及充电系统进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的技术方案及其核心思想;本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。The above is a detailed introduction of a charging abnormality detection method, charging data line and charging system provided by the embodiment of the present application. In this paper, specific examples are used to illustrate the principle and implementation of the present application. The description of the above embodiment is only It is used to help understand the technical solution and its core idea of the present application; those skilled in the art should understand that it can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and These modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

CN201710892897.7A2017-09-272017-09-27 Abnormal charging detection method, charging data cable and charging systemPendingCN107706969A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710892897.7ACN107706969A (en)2017-09-272017-09-27 Abnormal charging detection method, charging data cable and charging system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710892897.7ACN107706969A (en)2017-09-272017-09-27 Abnormal charging detection method, charging data cable and charging system

Publications (1)

Publication NumberPublication Date
CN107706969Atrue CN107706969A (en)2018-02-16

Family

ID=61175205

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710892897.7APendingCN107706969A (en)2017-09-272017-09-27 Abnormal charging detection method, charging data cable and charging system

Country Status (1)

CountryLink
CN (1)CN107706969A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108879862A (en)*2018-07-262018-11-23浙江慧众智能装备科技有限公司A kind of control method of power battery charging monitoring system
CN108896911A (en)*2018-04-262018-11-27广东小天才科技有限公司Charging abnormity detection method and device for electronic equipment
CN110098651A (en)*2019-05-272019-08-06努比亚技术有限公司A kind of charging method, device, electronic equipment and readable storage medium storing program for executing
CN111591154A (en)*2020-06-102020-08-28湖南文理学院 Dynamic Magnetically Coupled Resonant Array Method and System for Wireless Charging of Electric Vehicles
CN111984107A (en)*2020-08-102020-11-24Tcl通讯(宁波)有限公司Method and device for processing power supply abnormity of terminal equipment
CN114069799A (en)*2021-11-292022-02-18惠州Tcl移动通信有限公司 Charging control method, device and computer readable storage medium
CN114301110A (en)*2021-11-262022-04-08苏州光格科技股份有限公司Robot battery power calibration method and device, electronic equipment and storage medium
CN118763784A (en)*2024-09-062024-10-11衡阳瑞达电源有限公司 A charging device for a solid-state lead battery energy storage power station

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN206272290U (en)*2016-12-162017-06-20深圳市方格子电子有限公司Intelligent protection data wire
CN107121639A (en)*2017-05-022017-09-01广东电网有限责任公司揭阳供电局Multidimensional parameter direct current system storage battery management method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN206272290U (en)*2016-12-162017-06-20深圳市方格子电子有限公司Intelligent protection data wire
CN107121639A (en)*2017-05-022017-09-01广东电网有限责任公司揭阳供电局Multidimensional parameter direct current system storage battery management method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108896911A (en)*2018-04-262018-11-27广东小天才科技有限公司Charging abnormity detection method and device for electronic equipment
CN108879862A (en)*2018-07-262018-11-23浙江慧众智能装备科技有限公司A kind of control method of power battery charging monitoring system
CN108879862B (en)*2018-07-262021-08-27浙江慧众智能装备科技有限公司Control method of power battery charging monitoring system
CN110098651A (en)*2019-05-272019-08-06努比亚技术有限公司A kind of charging method, device, electronic equipment and readable storage medium storing program for executing
CN111591154A (en)*2020-06-102020-08-28湖南文理学院 Dynamic Magnetically Coupled Resonant Array Method and System for Wireless Charging of Electric Vehicles
CN111984107A (en)*2020-08-102020-11-24Tcl通讯(宁波)有限公司Method and device for processing power supply abnormity of terminal equipment
CN111984107B (en)*2020-08-102022-05-06Tcl通讯(宁波)有限公司 Method and device for handling abnormal power supply of terminal equipment
CN114301110A (en)*2021-11-262022-04-08苏州光格科技股份有限公司Robot battery power calibration method and device, electronic equipment and storage medium
CN114069799A (en)*2021-11-292022-02-18惠州Tcl移动通信有限公司 Charging control method, device and computer readable storage medium
CN118763784A (en)*2024-09-062024-10-11衡阳瑞达电源有限公司 A charging device for a solid-state lead battery energy storage power station
CN118763784B (en)*2024-09-062024-11-22衡阳瑞达电源有限公司 A charging device for a solid-state lead battery energy storage power station

Similar Documents

PublicationPublication DateTitle
CN107706969A (en) Abnormal charging detection method, charging data cable and charging system
CN106030961B (en)The method of power supply adaptor, terminal and processing charge circuit impedance exception
CN108448667B (en) Terminals, power adapters and handling methods for abnormal charging
CN108599290A (en)A kind of charge protection method, device, terminal device and storage medium
CN104253458B (en)Performance Test System, test method and the electronic device of USB charge cables
CN106169783A (en)Electronic device, charger, integrated circuit, and method for detecting connector of electronic device
WO2018076623A1 (en)Method and device for detecting charging abnormality and power adapter
CN107112743A (en) A charging protection method and device
JP2009011153A (en)Device and method for detecting power supply
CN104865477B (en) A power adapter detection method and a power adapter detection device
CN106199731A (en)A kind of detection method, device and charger
WO2016183802A1 (en)Charging method, charging device and terminal
CN107706952B (en)Charging method and device
CN105071484B (en)A kind of charging method and device of the terminal with data exchanging function
TW201907302A (en)Error processing method for connector and system thereof
CN106786904A (en) Charging selection method, device and charging equipment
TW201521322A (en)Method for charging a power device of a portable device using a current-adaptive process
CN102998590B (en)Connector detecting device and connector detecting method
CN105896639B (en)Charging control method and electronic equipment
TWI544717B (en)Method of setting charging current and charging module
CN105493381B (en) Method and apparatus for charging a battery
CN108736527A (en)A kind of charge control method, power supply adaptor and mobile terminal
CN107994650B (en)Charging control method, device and equipment
CN206697953U (en)Charging inlet short-circuit detecting device and mobile terminal
CN106233568B (en)A kind of charging equipment is from ring detection method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after:OPPO Guangdong Mobile Communications Co., Ltd.

Address before:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before:Guangdong OPPO Mobile Communications Co., Ltd.

CB02Change of applicant information
RJ01Rejection of invention patent application after publication

Application publication date:20180216

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp