CN111313500B - Charge management method and apparatus, electronic device, computer-readable storage medium - Google Patents
Charge management method and apparatus, electronic device, computer-readable storage medium Download PDFInfo
- Publication number
- CN111313500B CN111313500B CN202010180540.8A CN202010180540A CN111313500B CN 111313500 B CN111313500 B CN 111313500B CN 202010180540 A CN202010180540 A CN 202010180540A CN 111313500 B CN111313500 B CN 111313500B
- Authority
- CN
- China
- Prior art keywords
- charging
- electronic device
- node information
- indication
- request indication
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
- H01M10/446—Initial charging measures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Chemical & Material Sciences (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- General Chemical & Material Sciences (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请涉及一种充电管理方法和装置、电子设备、计算机可读存储介质。上述方法包括:接收充电请求指示,根据充电请求指示获取充电节点信息;根据充电节点信息确定是否满足充电请求指示对应的充电类型;充电类型为有线充电、无线充电或反向充电;当确定满足充电请求指示对应的充电类型时,获取电子设备的剩余电量值;根据剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作。可以避免直接根据接收的充电请求进行充电操作导致的充电切换异常、稳定性差的问题,可以提高充电管理的稳定性。
The present application relates to a charging management method and apparatus, an electronic device, and a computer-readable storage medium. The above method includes: receiving a charging request indication, and obtaining charging node information according to the charging request indication; determining whether the charging type corresponding to the charging request indication is satisfied according to the charging node information; the charging type is wired charging, wireless charging or reverse charging; When the corresponding charging type is requested to be indicated, the remaining power value of the electronic device is obtained; according to the remaining power value and the preset power threshold, the charging operation corresponding to the charging request instruction is performed. The problem of abnormal charging switching and poor stability caused by the charging operation directly performed according to the received charging request can be avoided, and the stability of charging management can be improved.
Description
技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种充电管理方法和装置、电子设备、计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a charging management method and apparatus, an electronic device, and a computer-readable storage medium.
背景技术Background technique
随着计算机技术的发展,智能手机、个人电脑、智能手表等电子设备的应用越来越广泛。为进一步提高电子设备充电的便利性,出现了包含多种充电方式的电子设备。例如,电子设备可以集成有无线充电技术和有线充电技术,还可以包含有反向充电技术等。在实际应用中,电子设备通常直接根据接收的充电请求进行充电操作,存在稳定性较低的问题。With the development of computer technology, the application of electronic devices such as smart phones, personal computers, and smart watches has become more and more extensive. In order to further improve the convenience of charging electronic devices, electronic devices including various charging methods have appeared. For example, the electronic device may integrate wireless charging technology and wired charging technology, and may also include reverse charging technology and the like. In practical applications, electronic devices usually perform charging operations directly according to the received charging request, which has a problem of low stability.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种充电管理方法和装置、电子设备、计算机可读存储介质,可以提高充电管理的稳定性。Embodiments of the present application provide a charging management method and apparatus, an electronic device, and a computer-readable storage medium, which can improve the stability of charging management.
一种充电管理方法,应用于电子设备,包括:A charging management method, applied to electronic equipment, includes:
接收充电请求指示,根据所述充电请求指示获取充电节点信息;receiving a charging request indication, and acquiring charging node information according to the charging request indication;
根据所述充电节点信息确定是否满足所述充电请求指示对应的充电类型;所述充电类型为有线充电、无线充电或反向充电;Determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information; the charging type is wired charging, wireless charging or reverse charging;
当确定满足所述充电请求指示对应的充电类型时,获取所述电子设备的剩余电量值;When it is determined that the charging type corresponding to the charging request indication is satisfied, acquiring the remaining power value of the electronic device;
根据所述剩余电量值与预设的电量阈值,执行所述充电请求指示对应的充电操作。According to the remaining power value and the preset power threshold, the charging operation corresponding to the charging request instruction is performed.
一种充电管理装置,包括:A charging management device, comprising:
信息获取模块,用于接收充电请求指示,根据所述充电请求指示获取充电节点信息;an information acquisition module, configured to receive a charging request indication, and acquire charging node information according to the charging request indication;
确定模块,用于根据所述充电节点信息确定是否满足所述充电请求指示对应的充电类型;所述充电类型为有线充电、无线充电或反向充电;a determining module, configured to determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information; the charging type is wired charging, wireless charging or reverse charging;
电量获取模块,用于当确定满足所述充电请求指示对应的充电类型时,获取电子设备的剩余电量值;a power acquisition module, configured to acquire the remaining power value of the electronic device when it is determined that the charging type corresponding to the charging request indication is satisfied;
充电操作模块,用于根据所述剩余电量值与预设的电量阈值,执行所述充电请求指示对应的充电操作。A charging operation module, configured to perform a charging operation corresponding to the charging request instruction according to the remaining power value and a preset power threshold.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:An electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the following steps:
接收充电请求指示,根据所述充电请求指示获取充电节点信息;receiving a charging request indication, and acquiring charging node information according to the charging request indication;
根据所述充电节点信息确定是否满足所述充电请求指示对应的充电类型;所述充电类型为有线充电、无线充电或反向充电;Determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information; the charging type is wired charging, wireless charging or reverse charging;
当确定满足所述充电请求指示对应的充电类型时,获取所述电子设备的剩余电量值;When it is determined that the charging type corresponding to the charging request indication is satisfied, acquiring the remaining power value of the electronic device;
根据所述剩余电量值与预设的电量阈值,执行所述充电请求指示对应的充电操作。According to the remaining power value and the preset power threshold, the charging operation corresponding to the charging request instruction is performed.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
接收充电请求指示,根据所述充电请求指示获取充电节点信息;receiving a charging request indication, and acquiring charging node information according to the charging request indication;
根据所述充电节点信息确定是否满足所述充电请求指示对应的充电类型;所述充电类型为有线充电、无线充电或反向充电;Determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information; the charging type is wired charging, wireless charging or reverse charging;
当确定满足所述充电请求指示对应的充电类型时,获取所述电子设备的剩余电量值;When it is determined that the charging type corresponding to the charging request indication is satisfied, acquiring the remaining power value of the electronic device;
根据所述剩余电量值与预设的电量阈值,执行所述充电请求指示对应的充电操作。According to the remaining power value and the preset power threshold, the charging operation corresponding to the charging request instruction is performed.
上述充电管理方法和装置、电子设备、计算机可读存储介质,可以根据接收的充电请求指示获取充电节点信息,根据充电节点信息确定是否满足充电请求指示对应的充电类型,当确定满足充电请求指示对应的充电类型时,则根据电子设备的剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作。即可以在确定电子设备的充电节点信息满足充电请求的类型时,再根据电子设备的剩余电量值进行充电,可以避免直接根据接收的充电请求进行充电操作导致的充电切换异常、稳定性差的问题,可以提高充电管理的稳定性。The above-mentioned charging management method and device, electronic device, and computer-readable storage medium can obtain charging node information according to the received charging request indication, and determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information. When the charging type is specified, the charging operation corresponding to the charging request instruction is performed according to the remaining power value of the electronic device and the preset power threshold. That is, when it is determined that the charging node information of the electronic device satisfies the type of the charging request, charging is performed according to the remaining power value of the electronic device, which can avoid the problem of abnormal charging switching and poor stability caused by the charging operation directly according to the received charging request. The stability of charging management can be improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中电子设备的框架示意图;1 is a schematic diagram of a frame of an electronic device in one embodiment;
图2为一个实施例中充电管理方法的流程图;2 is a flowchart of a charging management method in one embodiment;
图3为一个实施例中执行充电操作的流程图;3 is a flow chart of performing a charging operation in one embodiment;
图4为一个实施例提供的电池充电温度控制的示意图;4 is a schematic diagram of battery charging temperature control provided by one embodiment;
图5为一个实施例中充电管理方法的流程图;5 is a flowchart of a charging management method in one embodiment;
图6为一个实施例的充电管理装置的结构框图;6 is a structural block diagram of a charging management apparatus according to an embodiment;
图7为一个实施例中电子设备的内部结构示意图;7 is a schematic diagram of the internal structure of an electronic device in one embodiment;
图8为与本申请实施例提供的电子设备相关的手机的部分结构的框图。FIG. 8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件和参数,但这些元件和参数不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分、或者将第一个参数与另一个参数区分。举例来说,在不脱离本申请的范围的情况下,可以将第一电量阈值称为第二电量阈值,且类似地,可将第二电量阈值称为第一电量阈值。第一电量阈值和第二电量阈值两者都是电量阈值,但其不是同一电量阈值。It will be understood that the terms "first", "second", etc., as used herein, may be used herein to describe various elements and parameters, but these elements and parameters are not limited by these terms. These terms are only used to distinguish a first element from another element, or a first parameter from another parameter. For example, a first power threshold may be referred to as a second power threshold, and similarly, a second power threshold may be referred to as a first power threshold, without departing from the scope of this application. Both the first power threshold and the second power threshold are power thresholds, but they are not the same power threshold.
图1为一个实施例中电子设备的框架示意图。如图1所示,该电子设备可以硬件层110、内核层120、框架层130和应用层140。其中:FIG. 1 is a schematic diagram of a frame of an electronic device in one embodiment. As shown in FIG. 1 , the electronic device may have a
硬件层110包括线圈122和有线接口124。其中,有线接口124可以是USB(UniversalSerial Bus,通用串行总线接口)。线圈122用于接收无线充电底座发送的无线充电指示。
内核层120为电子设备提供的核心系统服务。内核层120包括注册的充电节点。充电节点可以包括无线开关节点、无线充电节点、有线充电节点、有线开关节点等。其中,无线开关节点可以接收通过应用层110输入的反向充电指示。无线充电节点可以获取通过线圈122接收的无线充电指示、有线开关节点可用于接收通过有线接口124接收的优先充电指示。The
框架层130用于管理应用层140提供的应用程序。框架层130包括充电广播模块132。充电广播模块132用于根据内核层120提供的充电节点信息将更新的充电状态信息进行广播处理,从而通过电子设备的显示屏、指示灯、扬声器等输出装置输出充电状态信息。The
应用层140用于提供各种应用程序。电子设备可以通过应用层140提供的应用程序接收用户输入的反向充电请求指示。The
图2为一个实施例中充电管理方法的流程图。本实施例中的充电管理方法,以运行于图1中的电子设备上为例进行描述。如图2所示,充电管理方法包括步骤202至步骤208。FIG. 2 is a flowchart of a charging management method in one embodiment. The charging management method in this embodiment is described by taking the operation on the electronic device in FIG. 1 as an example. As shown in FIG. 2 , the charging management method includes
步骤202,接收充电请求指示,根据充电请求指示获取充电节点信息。Step 202: Receive a charging request indication, and acquire charging node information according to the charging request indication.
充电请求指示是指示电子设备进行充电操作的指示。充电请求指示可以是有线充电指示、无线充电指示、或者反向充电指示。其中,有线充电指示还可以包括有线快充指示和有线普充指示;无线充电指示可以包括无线快充指示和无线普充指示。充电节点信息是指电子设备在内核层注册的充点节点包含的充电信息。充电节点信息可以包括充电状态信息、当前充电类型、充电参数等信息。The charging request instruction is an instruction instructing the electronic device to perform a charging operation. The charging request indication may be a wired charging indication, a wireless charging indication, or a reverse charging indication. Wherein, the wired charging indication may further include wired fast charging indication and wired general charging indication; and the wireless charging indication may include wireless fast charging indication and wireless general charging indication. The charging node information refers to the charging information contained in the charging node registered by the electronic device at the kernel layer. The charging node information may include charging status information, current charging type, charging parameters and other information.
电子设备接收充电请求指示,根据充电请求指示获取充电节点信息。具体地,电子设备可以根据接收的充电请求指示更新充电节点的充电信息,从而得到充电节点信息。The electronic device receives the charging request instruction, and obtains charging node information according to the charging request instruction. Specifically, the electronic device can update the charging information of the charging node according to the received charging request instruction, so as to obtain the charging node information.
步骤204,根据充电节点信息确定是否满足充电请求指示对应的充电类型;充电类型为有线充电、无线充电或反向充电。Step 204: Determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information; the charging type is wired charging, wireless charging or reverse charging.
根据电子设备所能够支持的充电类型,电子设备的充电类型可以包括有线充电、无线充电或反向充电等中的至少一种。而充电请求指示对应的充电类型可以是有线充电、无线充电或反向充电。According to the charging type that the electronic device can support, the charging type of the electronic device may include at least one of wired charging, wireless charging, and reverse charging. The charging request indicates that the corresponding charging type may be wired charging, wireless charging or reverse charging.
电子设备可以根据充电节点信息确定是否满足充电请求指示对应的充电类型,即根据充电节点信息包含的充电状态信息、当前充电类型、充电参数等信息确定是否满足充电请求指示对应的充电类型对应的充电条件。具体地,电子设备可以预先设定不同充电类型对应的充电条件,当获取到充电请求指示,获取充电请求指示对应的充电类型的充电条件,当充电节点信息满足该充电类型的充电条件,则确定充电节点信息满足充电请求指示对应的充电类型。The electronic device can determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information, that is, whether the charging corresponding to the charging type corresponding to the charging request indication is satisfied according to the charging status information, current charging type, charging parameters and other information contained in the charging node information. condition. Specifically, the electronic device can preset charging conditions corresponding to different charging types. When the charging request indication is obtained, the charging condition of the charging type corresponding to the charging request indication is obtained. The charging node information satisfies the charging request indicating the corresponding charging type.
具体地,电子设备通过充电节点信息可以确定电子设备是否处于充电状态,当电子设备不处于充电状态时,则确定充电节点信息满足充电请求指示对应的充电类型;当电子设备处于充电状态时,则电子设备可以从充电节点信息获取当前充电类型,根据当前充电类型确定是否满足充电请求指示对应的充电类型。Specifically, the electronic device can determine whether the electronic device is in the charging state through the charging node information. When the electronic device is not in the charging state, it is determined that the charging node information satisfies the charging type indicated by the charging request; when the electronic device is in the charging state, then The electronic device may acquire the current charging type from the charging node information, and determine whether the charging type corresponding to the charging request indication is satisfied according to the current charging type.
在一些实施例中,电子设备根据设定不同充电类型对应的优先等级,根据充电节点信息获取当前充电类型与充电请求指示对应的充电类型的优先等级确定是否满足充电请求指示对应的充电类型。In some embodiments, the electronic device determines whether the charging type corresponding to the charging request indication is satisfied according to the priority levels corresponding to different charging types, and according to the charging node information to obtain the current charging type and the priority level of the charging type corresponding to the charging request indication.
步骤206,当确定满足充电请求指示对应的充电类型时,获取电子设备的剩余电量值。
剩余电量值是指电子设备的电池内可用电量占标称容量的比例。电子设备可以实时获取剩余电量值。The remaining power value refers to the ratio of the available power in the battery of the electronic device to the nominal capacity. The electronic device can obtain the remaining power value in real time.
当电子设备确定满足充电请求指示对应的充电类型时,可以获取电子设备的剩余电量值,根据剩余电量值与预设的电量阈值执行充电请求指示对应的充电操作。When the electronic device determines that the charging type corresponding to the charging request instruction is satisfied, the remaining power value of the electronic device can be obtained, and the charging operation corresponding to the charging request instruction is performed according to the remaining power value and the preset power threshold.
步骤208,根据剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作。Step 208: Execute a charging operation corresponding to the charging request instruction according to the remaining power value and the preset power threshold.
电量阈值可以根据实际应用需求来确定,在此不做限定。例如,电量阈值可以为10%、15%、20%、30%等不限于此。可选地,电子设备可以预先设定不同充电类型对应的电量阈值,并根据充电请求指示对应的充电类型的电量阈值,结合实时获取的剩余电量值执行充电请求指示对应的充电操作。The power threshold can be determined according to actual application requirements, which is not limited here. For example, the power threshold may be 10%, 15%, 20%, 30%, etc. without limitation. Optionally, the electronic device may preset power thresholds corresponding to different charging types, and indicate the corresponding charging type thresholds according to the charging request, and execute the charging operation corresponding to the charging request indication in combination with the remaining power value obtained in real time.
具体地,当充电请求指示为反向充电指示时,剩余电量值大于电量阈值时电子设备执行充电请求指示对应的充电操作的充电功率,大于剩余电量值小于或等于电量阈值时电子设备执行充电请求指示对应的充电操作的充电功率。可选地,在一个实施例中,电子设备也可以在剩余电量值小于或等于电量阈值,则停止执行充电请求指示对应的充电操作。Specifically, when the charging request instruction is a reverse charging instruction, when the remaining power value is greater than the power threshold, the electronic device executes the charging power of the charging operation corresponding to the charging request instruction, and when the remaining power value is less than or equal to the power threshold, the electronic device executes the charging request Indicates the charging power for the corresponding charging operation. Optionally, in one embodiment, the electronic device may also stop executing the charging operation corresponding to the charging request instruction when the remaining power value is less than or equal to the power threshold.
当充电请求指示为正向充电指示时,剩余电量值大于电量阈值时电子设备执行充电请求指示对应的充电操作的充电功率,小于剩余电量值小于或等于电量阈值时电子设备执行充电请求指示对应的充电操作的充电功率。可选地,在一些实施例中,电子设备可以根据充电请求指示确定充电适配器类型,若充电适配器类型不支持不同的充电功率,则电子设备可以根据充电适配器类型所提供的充电功率进行充电操作。可选地,电子设备可以根据剩余电量值确定充电请求指示对应的充电操作的充电功率;根据该充电功率进行充电操作;当剩余电量值大于预设的电量阈值,则采用电量阈值对应的充电功率进行充电操作。其中,剩余电量值与充电功率呈负相关。也就是说,剩余电量值越大,则充电功率越小,可以提高电池的稳定性。When the charging request indication is a forward charging indication, when the remaining power value is greater than the power threshold, the electronic device executes the charging power corresponding to the charging request instruction, and when the remaining power value is less than or equal to the power threshold, the electronic device executes the charging power corresponding to the charging request instruction. The charging power for the charging operation. Optionally, in some embodiments, the electronic device may determine the charging adapter type according to the charging request indication, and if the charging adapter type does not support different charging powers, the electronic device may perform charging operation according to the charging power provided by the charging adapter type. Optionally, the electronic device may determine the charging power of the corresponding charging operation indicated by the charging request according to the remaining power value; perform the charging operation according to the charging power; when the remaining power value is greater than the preset power threshold, use the charging power corresponding to the power threshold. Perform the charging operation. Among them, the remaining power value is negatively correlated with the charging power. That is to say, the larger the remaining power value, the smaller the charging power, which can improve the stability of the battery.
本申请实施例中提供的充电管理方法,可以根据接收的充电请求指示获取充电节点信息,根据充电节点信息确定是否满足充电请求指示对应的充电类型,当确定满足充电请求指示对应的充电类型时,则根据电子设备的剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作。即可以在确定电子设备的充电节点信息满足充电请求的类型时,再根据电子设备的剩余电量值进行充电操作,可以避免直接根据接收的充电请求进行充电操作导致的充电切换异常、稳定性差的问题,可以提高充电管理的稳定性。The charging management method provided in the embodiment of the present application may acquire charging node information according to the received charging request indication, determine whether the charging type corresponding to the charging request indication is satisfied according to the charging node information, and when it is determined that the charging type corresponding to the charging request indication is satisfied, Then, according to the remaining power value of the electronic device and the preset power threshold value, the charging operation corresponding to the charging request instruction is performed. That is, when it is determined that the charging node information of the electronic device satisfies the type of the charging request, the charging operation can be performed according to the remaining power value of the electronic device, and the problem of abnormal charging switching and poor stability caused by the charging operation directly according to the received charging request can be avoided. , which can improve the stability of charging management.
在一个实施例中,提供的充电管理方法中,根据充电节点信息确定是否满足充电请求指示对应的充电类型的过程,包括:当根据充电节点信息确定电子设备不处于充电状态时,则确定满足充电请求指示对应的充电类型;当根据充电节点信息确定电子设备处于充电状态时,获取当前充电类型;当充电请求指示对应的充电类型的优先等级高于当前充电类型的优先等级时,则确定满足充电请求指示对应的充电类型;其中,当前充电类型是根据充电节点信息确定的。In an embodiment, in the provided charging management method, the process of determining whether the charging type corresponding to the charging request indication is satisfied according to the charging node information includes: when it is determined according to the charging node information that the electronic device is not in the charging state, determining whether the charging is satisfied The request indicates the corresponding charging type; when it is determined that the electronic device is in the charging state according to the charging node information, the current charging type is obtained; when the charging request indicates that the priority level of the corresponding charging type is higher than that of the current charging type, it is determined that the charging is satisfied. The request indicates the corresponding charging type; wherein, the current charging type is determined according to the charging node information.
充电节点信息包含充电状态信息。充电状态信息是电子设备的当前充电状态相关的信息。例如,充电节点信息中通过wireless_mode字节表示无线充电状态,charge_type字节表示有线充电状态;当电子设备处于无线充电状态时,wireless_mode=2;当电子设备处于反向充电状态时,wireless_mode=1;当电子设备不处于反向充电和无线充电状态时,wireless_mode=0;当电子设备处于有线充电状态时,charge_type=0。电子设备通过解析充电节点信息中包含的各个字节的字节值即可以确定电子设备是否处于充电状态。The charging node information includes charging status information. The charge state information is information related to the current charge state of the electronic device. For example, in the charging node information, the wireless_mode byte indicates the wireless charging state, and the charge_type byte indicates the wired charging state; when the electronic device is in the wireless charging state, wireless_mode=2; when the electronic device is in the reverse charging state, wireless_mode=1; When the electronic device is not in the reverse charging and wireless charging states, wireless_mode=0; when the electronic device is in the wired charging state, charge_type=0. The electronic device can determine whether the electronic device is in a charging state by parsing the byte value of each byte contained in the charging node information.
当电子设备不处于充电状态时,则确定满足充电请求指示对应的充电类型,即电子设备可以接收任一充电类型的充电请求指示。When the electronic device is not in the charging state, it is determined that the charging type corresponding to the charging request indication is satisfied, that is, the electronic device can receive the charging request indication of any charging type.
当电子设备处于充电状态时,电子设备可以根据充电节点信息确定当前的充电类型;当充电请求指示对应的充电类型的优先等级高于当前充电类型的优先等级时,则确定满足充电请求指示对应的充电类型。例如,当根据充电节点信息确定电子设备的当前充电类型为无线充电,充电请求指示对应的充电类型为有线充电时,若有线充电的优先等级高于无线充电的优先等级,则充电节点信息满足有线充电,电子设备可以根据剩余电量值和电量阈值进行有线充电操作。When the electronic device is in the charging state, the electronic device can determine the current charging type according to the charging node information; when the priority level of the corresponding charging type indicated by the charging request is higher than that of the current charging type, it is determined that the corresponding charging request indication is satisfied. Type of charge. For example, when it is determined according to the charging node information that the current charging type of the electronic device is wireless charging, and the charging request indicates that the corresponding charging type is wired charging, if the priority level of wired charging is higher than that of wireless charging, the charging node information satisfies wired charging. For charging, the electronic device can perform wired charging operation according to the remaining power value and the power threshold.
其中,充电类型的优先等级为电子设备预先设定的。可选地,根据各充电类型的充电速率和对电子设备的损耗程度,电子设备预先设定的优先等级从高到低的顺序可以是有线充电、无线充电、反向充电。当然,上述充电类型的优先等级并不是固定,根据实际需求可以设定不同的充电类型的优先等级。The priority of the charging type is preset by the electronic device. Optionally, according to the charging rate of each charging type and the degree of wear and tear to the electronic device, the priority level preset by the electronic device may be wired charging, wireless charging, and reverse charging in descending order. Of course, the priority levels of the above charging types are not fixed, and the priority levels of different charging types can be set according to actual needs.
进一步地,当确定充电节点信息不满足充电请求指示对应的充电类型时,电子设备可以不执行该充电请求指示对应的充电操作。可选地,电子设备可以根据充电节点信息输出电子设备的充电状态信息,并输出未进行执行该充电请求指示的提示信息。Further, when it is determined that the charging node information does not satisfy the charging type corresponding to the charging request indication, the electronic device may not perform the charging operation corresponding to the charging request indication. Optionally, the electronic device may output charging status information of the electronic device according to the charging node information, and output prompt information indicating that the charging request instruction has not been executed.
通过在电子设备不处于充电状态时,则确定满足充电请求指示对应的充电类型;当电子设备处于充电状态时,则根据充电请求指示的充电类型的优先等级及当前充电类型的优先等级确定是否满足充电请求指示对应的充电类型,即可以优先支持优先等级高的充电类型,可以提高充电管理的准确性。When the electronic device is not in the charging state, it is determined whether the charging type corresponding to the charging request instruction is satisfied; when the electronic device is in the charging state, it is determined whether the charging type is satisfied according to the priority level of the charging type indicated by the charging request and the priority level of the current charging type. The charging request indicates a corresponding charging type, that is, a charging type with a high priority level can be preferentially supported, which can improve the accuracy of charging management.
在一个实施例中,提供的充电管理方法中,根据剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作,包括:当充电请求指示为反向充电指示时,检测是否存在反向充电设备;当确定存在反向充电设备、且剩余电量值大于第一电量阈值时,则对反向充电设备执行反向充电指示对应的反向充电操作。In one embodiment, in the provided charging management method, according to the remaining power value and the preset power threshold, performing a charging operation corresponding to the charging request indication, including: when the charging request indication is a reverse charging indication, detecting whether there is a reverse charging indication to the charging device; when it is determined that there is a reverse charging device and the remaining power value is greater than the first power threshold, perform a reverse charging operation corresponding to the reverse charging instruction on the reverse charging device.
反向充电设备是接收电子设备作为电源提供的电能的设备。在进行反向充电时,电子设备与反向充电设备需要保持在可充电距离范围。当充电请求指示为反向充电指示时,电子设备可以检测是否存在反向充电设备,具体地,电子设备在接收到反向充电设备发送的充电请求时,则确定存在反向充电设备;电子设备也可以通过线圈发出反向充电使能信号,当接收反向充电设备基于反向充电使能信号的连接请求时,则确定存在反向充电设备。A reverse charging device is a device that receives electrical energy provided by an electronic device as a power source. During reverse charging, the electronic device and the reverse charging device need to be kept within a chargeable distance range. When the charging request indication is a reverse charging indication, the electronic device can detect whether there is a reverse charging device. Specifically, when the electronic device receives a charging request sent by a reverse charging device, it determines that a reverse charging device exists; the electronic device A reverse charging enable signal may also be sent through the coil, and when a connection request from a reverse charging device based on the reverse charging enable signal is received, it is determined that a reverse charging device exists.
第一电量阈值为电子设备预设的反向充电对应的电量阈值。具体地,电子设备可以在确定满足反向请求指示之后,实时检测是否存在反向充电设备,当检测到存在反向充电设备时,则获取电子设备的剩余电量值,当存在反向充电设备、且剩余电量值大于第一电量阈值时,则对反向充电设备执行反向充电操作。可选地,当剩余电量值小于或等于第一电量阈值时,则电子设备则不进行反向充电操作。The first power threshold is a power threshold corresponding to reverse charging preset by the electronic device. Specifically, after determining that the reverse request instruction is satisfied, the electronic device can detect in real time whether there is a reverse charging device, and when detecting the existence of a reverse charging device, obtain the remaining power value of the electronic device, and when there is a reverse charging device, And when the remaining power value is greater than the first power threshold, the reverse charging operation is performed on the reverse charging device. Optionally, when the remaining power value is less than or equal to the first power threshold value, the electronic device does not perform a reverse charging operation.
通过在充电请求指示为反向充电指示时,检测是否存在反向充电设备,当存在反向充电设备、且剩余电量值大于第一电量阈值时,则对反向充电设备执行反向充电指示对应的反向充电操作,可以避免在电子设备剩余电量值较低时仍进行反向充电,导致电池负担过大,充电不稳定的问题,可以提高充电稳定性。By detecting whether there is a reverse charging device when the charging request instruction is a reverse charging instruction, when there is a reverse charging device and the remaining power value is greater than the first power threshold, the reverse charging device is performed corresponding to the reverse charging instruction The reverse charging operation can avoid the problem of reverse charging when the remaining power value of the electronic device is low, resulting in excessive battery burden and unstable charging, and can improve the charging stability.
在一个实施例中,提供的充电管理方法中根据剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作的过程,包括:In one embodiment, in the provided charging management method, according to the remaining power value and the preset power threshold, the process of executing the charging operation corresponding to the charging request indication includes:
当充电请求指示为正向充电指示、且剩余电量值大于第二电量阈值时,根据充电类型对应的第一充电模式执行充电操作;当充电请求指示为正向充电指示、且剩余电量值小于或等于第二电量阈值时,根据充电类型对应的第二充电模式执行充电操作;其中,正向充电指示包括有线充电指示和无线充电指示中的至少一种;第一充电模式的充电功率低于第二充电模式的充电功率。When the charging request indication is a forward charging indication and the remaining power value is greater than the second power threshold, the charging operation is performed according to the first charging mode corresponding to the charging type; when the charging request indication is a forward charging indication and the remaining power value is less than or When it is equal to the second power threshold, the charging operation is performed according to the second charging mode corresponding to the charging type; wherein, the forward charging indication includes at least one of a wired charging indication and a wireless charging indication; the charging power of the first charging mode is lower than the first charging power. The charging power of the second charging mode.
正向充电指示包括有线充电指示和无线充电指示中的至少一种。有线充电指示是电子设备的有线接口被连接时生成的指示;无线充电指示是电子设备通过线圈接收的无线充电器发送的无线充电指示。第一充电模式的充电功率低于第二充电模式的充电功率。相当于,第一充电模式为普充充电模式;第二充电模式为快充充电模式。The forward charging indication includes at least one of a wired charging indication and a wireless charging indication. The wired charging instruction is an instruction generated when the wired interface of the electronic device is connected; the wireless charging instruction is a wireless charging instruction sent by the wireless charger received by the electronic device through the coil. The charging power of the first charging mode is lower than the charging power of the second charging mode. Equivalently, the first charging mode is a general charging mode; the second charging mode is a fast charging mode.
第二电量阈值为电子设备预设的正向充电对应的电量阈值。在一个实施例中,有线充电和无线充电可以对应不同的电量阈值。第二电量阈值可以根据应用需求设定,在此不做设定。例如,第二电量阈值可以是20%、30%、40%、50%等。The second power threshold is a preset power threshold corresponding to forward charging of the electronic device. In one embodiment, wired charging and wireless charging may correspond to different power thresholds. The second power threshold can be set according to application requirements, and is not set here. For example, the second charge threshold may be 20%, 30%, 40%, 50%, or the like.
电子设备可以在确定剩余电量值大于第二电量阈值时,则根据充电类型对应的第一充电模式执行充电操作;当剩余电量值小于或等于第二电量阈值时,则根据充电类型对应的第二充电模式执行充电操作,可选地,电子设备在充电过程中实时检测剩余电量值,当实时检测到剩余电量值大于第二电量阈值时,则可以切换至第一充电模式以执行充电操作。例如,当充电请求指示为无线充电指示时,若剩余电量值大于第二电量阈值,则电子设备可以采用无线普充模式进行充电操作;若剩余电量值小于或等于第二电量阈值,则电子设备可以采用无线快充模式进行充电操作,当充电过程中剩余电量值大于第二电量阈值时,则切换至无线普充模式进行充电操作。When the electronic device determines that the remaining power value is greater than the second power threshold, the charging operation is performed according to the first charging mode corresponding to the charging type; when the remaining power value is less than or equal to the second power threshold, the second charging mode corresponding to the charging type is performed. The charging mode performs the charging operation. Optionally, the electronic device detects the remaining power value in real time during the charging process. When the real-time detection that the remaining power value is greater than the second power threshold value, it can switch to the first charging mode to perform the charging operation. For example, when the charging request indication is a wireless charging indication, if the remaining power value is greater than the second power threshold, the electronic device can use the wireless general charging mode to perform the charging operation; if the remaining power value is less than or equal to the second power threshold, the electronic device The wireless fast charging mode can be used for the charging operation, and when the remaining power value during the charging process is greater than the second power threshold value, the charging operation is switched to the wireless general charging mode.
在一个实施例中,若充电请求指示无法支持多种充电模式,则电子设备可以根据充电请求指示对应的充电功率执行充电操作。In one embodiment, if the charging request indicates that multiple charging modes cannot be supported, the electronic device may perform the charging operation according to the charging request indicating the corresponding charging power.
通过在充电请求指示为正向充电指示,若剩余电量值大于第二电量阈值,则根据第一充电模式进行充电操作;若剩余电量值小于或等于第二电量阈值,则根据第二充电模式进行充电操作,第一充电模式的充电功率低于第二充电模式的充电功率,可以避免电子设备一直采用较高的功率进行充电对电池造成负担,容易缩短电池寿命的问题,可以提高充电的稳定性。When the charging request indication is a forward charging indication, if the remaining power value is greater than the second power threshold, the charging operation is performed according to the first charging mode; if the remaining power value is less than or equal to the second power threshold, the charging operation is performed according to the second charging mode In the charging operation, the charging power of the first charging mode is lower than the charging power of the second charging mode, which can avoid the burden on the battery caused by the high power charging of the electronic device, which is easy to shorten the battery life, and can improve the charging stability. .
图3为一个实施例中执行充电操作的流程图。如图3所示,在一个实施例中,提供的充电管理方法还包括:FIG. 3 is a flow chart of performing a charging operation in one embodiment. As shown in FIG. 3, in one embodiment, the provided charging management method further includes:
步骤302,获取充电过程中电池的测量温度及对应的初始充电参数,及根据预设的控制函数及初始充电参数得到预测温度。Step 302: Obtain the measured temperature of the battery during the charging process and the corresponding initial charging parameters, and obtain the predicted temperature according to the preset control function and the initial charging parameters.
测量温度为充电过程中电子设备实时检测的电池温度。初始充电参数为检测该测量温度时电子设备所采用的充电参数。其中,充电参数可以是充电电压、充电电流等。The measured temperature is the battery temperature detected by the electronic device in real time during the charging process. The initial charging parameter is the charging parameter used by the electronic device when the measured temperature is detected. The charging parameters may be charging voltage, charging current, and the like.
控制函数用于表示充电参数与理想温度之间的函数关系。电子设备可以预先设定该控制函数,将初始充电参数代入控制函数,即可以得到对应的预测温度。以充电参数为充电电压为例,在充电过程中,充电电压与电池温度通常分布在正弦函数的周围,电子设备可以采用正弦函数作为预设的控制函数。The control function is used to express the functional relationship between the charging parameters and the ideal temperature. The electronic device can preset the control function, and substitute the initial charging parameters into the control function, that is, the corresponding predicted temperature can be obtained. Taking the charging parameter as the charging voltage as an example, during the charging process, the charging voltage and the battery temperature are usually distributed around the sine function, and the electronic device can use the sine function as the preset control function.
步骤304,获取测量温度与预测温度之间的温度误差及误差变化率。Step 304: Obtain the temperature error and the error change rate between the measured temperature and the predicted temperature.
温度误差即为测量温度与预测温度之间的差值。误差变化率可以表示为上一次的温度误差与当前的温度误差之间的差值。The temperature error is the difference between the measured temperature and the predicted temperature. The error rate of change can be expressed as the difference between the last temperature error and the current temperature error.
步骤306,通过误差反向模型,解析测量温度与温度误差对应的预测温度偏差。
误差反向模型可以是(back propagation)神经网络模型。误差反向模型是通过梯度下降法、利用梯度搜索技术,使得模式的实际输出值和期望输出值的误差均方差最小的神经网络模型。电子设备可以根据充电过程中测量温度与温度误差输入误差反向模型,误差反向模型通过测量温度与温度误差进行自学习,可以得到测量温度与温度误差对应的预测温度偏差。其中,预测温度偏差可以包括偏差比例、偏差积分、偏差微分中的至少一种。The error back model may be a (back propagation) neural network model. The error inverse model is a neural network model that uses the gradient descent method and gradient search technology to minimize the error mean square error between the actual output value and the expected output value of the model. The electronic device can input the error inverse model according to the measured temperature and temperature error during the charging process, and the error inverse model can learn from the measured temperature and the temperature error, and can obtain the predicted temperature deviation corresponding to the measured temperature and the temperature error. The predicted temperature deviation may include at least one of deviation proportion, deviation integral, and deviation differential.
步骤308,通过偏差控制算法根据温度误差、误差变化率和预测温度偏差得到目标充电参数,并通过电源控制器根据目标充电参数进行充电操作。
偏差控制算法是通过闭环控制,根据控制对象输出的反馈的偏差进行校正的控制算法。可选地,偏差控制算法可以包括PID(Proportion Integral Differential,比例、积分和微分)算法。电子设备可以通过偏差控制算法根据温度误差、误差变化率和预测温度偏差得到目标充电参数,并通过电源控制器根据目标充电参数进行充电操作。The deviation control algorithm is a control algorithm that corrects the deviation of the feedback output by the control object through closed-loop control. Optionally, the deviation control algorithm may include a PID (Proportion Integral Differential, proportional, integral and differential) algorithm. The electronic device can obtain the target charging parameter according to the temperature error, the error rate of change and the predicted temperature deviation through the deviation control algorithm, and perform the charging operation according to the target charging parameter through the power supply controller.
在电子设备的充电过程中,电子设备可以循环执行图3所提供的充电操作流程,以实现对电池温度的闭环控制,避免充电过程中电池发热严重,可以提高充电温度控制的准确性和电池的稳定性。During the charging process of the electronic device, the electronic device can cyclically execute the charging operation process provided in Figure 3 to achieve closed-loop control of the battery temperature, avoid serious battery heating during the charging process, and improve the accuracy of charging temperature control and battery stability.
图4为一个实施例提供的电池充电温度控制的示意图。如图4所示,整个电池充电温度控制流程为闭环控制流程。电子设备实时检测电池的测量温度Y,将测量温度Y代入控制函数X=T0sin(ωt)中即可以得到预测温度X,从而得到测量温度Y和预测温度X之间的温度误差e,及误差变化率de/dt,其中,de/dt=e(t)-e(t-1);接着,误差反向模型可以对控制函数得到的预测温度X、温度误差e之间的状态进行自学习,得到预测温度偏差Kp,Ki,Kd;偏差控制算法根据预测温度偏差Kp,Ki,Kd、温度误差e及误差变化率de/dt即可以确定目标充电电压,通过电源控制器根据目标充电电压对电池进行充电操作。FIG. 4 is a schematic diagram of battery charging temperature control provided by an embodiment. As shown in Figure 4, the entire battery charging temperature control process is a closed-loop control process. The electronic device detects the measured temperature Y of the battery in real time, and the predicted temperature X can be obtained by substituting the measured temperature Y into the control function X=T0sin(ωt), thereby obtaining the temperature error e between the measured temperature Y and the predicted temperature X, and the error change rate de/dt, where de/dt=e(t)-e(t-1); then, the error inverse model can perform self-learning on the state between the predicted temperature X and the temperature error e obtained by the control function, Obtain the predicted temperature deviation Kp, Ki, Kd; the deviation control algorithm can determine the target charging voltage according to the predicted temperature deviation Kp, Ki, Kd, the temperature error e and the error rate of change de/dt, and the battery is charged by the power controller according to the target charging voltage. Carry out the charging operation.
通过引入误差反向模式对控制函数与误差之间的状态进行自学习,可以得到调整的预测温度偏差以进行目标充电参数的计算,可以避免偏差控制算法存在较大的超调整量造成充电稳定性低的问题,可以提高充电的稳定性,并且引入误差变化率可以加快温度控制的动态响应速度,减少调整时间,提高性能。By introducing the error reverse mode to self-learn the state between the control function and the error, the adjusted predicted temperature deviation can be obtained to calculate the target charging parameter, which can avoid the large over-adjustment of the deviation control algorithm and cause the charging stability. The low problem can improve the charging stability, and the introduction of the error rate of change can speed up the dynamic response speed of the temperature control, reduce the adjustment time, and improve the performance.
在一个实施例中,提供的充电管理方法中根据充电请求指示获取充电节点信息的过程,包括:根据充电请求指示更新充电节点对应的充电信息,得到充电节点信息;其中,充电请求指示为通过线圈接收的无线充电指示、通过有线接口接收的有线充电指示、或者在电子设备不处于充电状态时通过应用程序接收的反向充电指示。In one embodiment, the process of obtaining the charging node information according to the charging request instruction in the provided charging management method includes: updating the charging information corresponding to the charging node according to the charging request instruction to obtain the charging node information; wherein the charging request instruction is to pass the coil Received wireless charging instructions, wired charging instructions received through a wired interface, or reverse charging instructions received through an application when the electronic device is not in a charging state.
充电节点为电子设备在内核层注册节点,用于表征与充电相关的信息。电子设备在接收到充电请求指示时即可以更新充电节点对应的充电信息,以得到充电节点信息。The charging node is a registration node at the kernel layer for electronic devices to represent charging-related information. When receiving the charging request instruction, the electronic device can update the charging information corresponding to the charging node to obtain the charging node information.
如表1为一个实施例中充电节点包括的无线开关节点的节点名称及对应的意义。在一个实施例中,电子设备可以在不处于充电状态下通过应用程序接收反向充电指示,根据反向充电指示可以更新节点enable_tx,即将enable_tx置1;并根据得到充电节点信息确定能否进行反向充电操作。当确定节点信息满足反向充电时,电子设备可以enable_tx的读出值设为enable;以通过PowerManagerService进行反向充电设备的识别。Table 1 shows the node names and corresponding meanings of the wireless switch nodes included in the charging node in one embodiment. In one embodiment, the electronic device can receive a reverse charging instruction through an application program when it is not in a charging state, and can update the node enable_tx according to the reverse charging instruction, that is, set enable_tx to 1; and determine whether the reverse charging can be performed according to the obtained charging node information. To charge operation. When it is determined that the node information satisfies reverse charging, the electronic device can set the readout value of enable_tx to enable; to identify the reverse charging device through PowerManagerService.
表1Table 1
表2为一个实施例中充电节点包括的无线充电节点的节点名称及对应的意义。如表2所示,在一个实施例中,电子设备可以通过线圈接收无线充电适配器发送的充电信号,无线充电底座通常与有线充电适配器连接,当无线充电底座连接普充适配器时,则无线充电底座可以向电子设备发送包含普充适配器类型的无线充电指示;当无线充电底座连接快充适配器时,则无线充电底座可以向电子设备发送包含快充适配器类型的无线充电指示,电子设备可以通过batteryService服务识别无线充电指示对应的适配器类型,从而电子设备可以更新节点real_type的值,得到更新的充电节点信息。Table 2 shows the node names and corresponding meanings of the wireless charging nodes included in the charging node in an embodiment. As shown in Table 2, in one embodiment, the electronic device can receive the charging signal sent by the wireless charging adapter through the coil, and the wireless charging base is usually connected with the wired charging adapter. The wireless charging instruction including the general charging adapter type can be sent to the electronic device; when the wireless charging base is connected to the fast charging adapter, the wireless charging base can send the wireless charging instruction including the fast charging adapter type to the electronic device, and the electronic device can be serviced through batteryService Identify the adapter type corresponding to the wireless charging indication, so that the electronic device can update the value of the node real_type to obtain updated charging node information.
表2Table 2
通过注册的充电节点,在接收到充电请求指示时,则根据充电请求指示更新充电节点的节点信息,得到充电节点信息,可以确保充电节点信息的安全性。Through the registered charging node, when the charging request instruction is received, the node information of the charging node is updated according to the charging request instruction to obtain the charging node information, which can ensure the security of the charging node information.
在一个实施例中,提供的充电管理方法中,执行充电请求指示对应的充电操作之后,还包括:获取执行充电请求指示对应的充电操作,更新的充电节点信息;将更新的充电节点信息包含的充电状态信息进行广播处理,以输出充电状态信息。In one embodiment, in the provided charging management method, after executing the charging operation corresponding to the charging request indication, the method further includes: acquiring the charging operation corresponding to the charging request indication and updating the charging node information; The state-of-charge information is broadcast-processed to output state-of-charge information.
在执行充电请求对应的充电操作之后,充电节点的节点信息会进行更新。例如,以上述表1和表2为例,当执行反向充电指示对应的充电操作之后,若反向充电使能且连接有反向充电设备,则enable_x的读出值为charging、online=1;wireless_mode=1。电子设备可以获取执行充电请求指示对应的充电操作之后,更新的充电节点信息。After the charging operation corresponding to the charging request is performed, the node information of the charging node will be updated. For example, taking the above Table 1 and Table 2 as examples, after the charging operation corresponding to the reverse charging instruction is performed, if reverse charging is enabled and a reverse charging device is connected, the readout value of enable_x is charging, ;wireless_mode=1. The electronic device may acquire the updated charging node information after the charging operation corresponding to the charging request instruction is performed.
进一步地,电子设备将更新的充电节点信息包含的充电状态信息进行广播处理,以输出充电状态信息。充电状态信息是指与电子设备的当前充电状态相关的信息。具体地,充电状态信息可以包括当前充电类型、反向充电设备连接状态、当前充电模式等。电子设备可以读取更新的充电节点信息,将更新的充电节信息包含充电状态信息进行广播处理,以通过输出装置输出充电状态信息。其中,输出装置可以包括电子设备的显示屏、指示灯、音频输出装置等。例如,电子设备可以将当前充电类型进行广播处理,以使电子设备的指示灯根据不同的当前充电类型展示不同的颜色;电子设备也可以在显示屏展示反向充电设备的连接状态、或者反向充电设备的电量值等信息。Further, the electronic device performs broadcast processing on the charging state information included in the updated charging node information to output the charging state information. The charging state information refers to information related to the current charging state of the electronic device. Specifically, the charging status information may include current charging type, reverse charging device connection status, current charging mode, and the like. The electronic device can read the updated charging node information, and perform broadcast processing on the updated charging node information including the charging state information, so as to output the charging state information through the output device. Wherein, the output device may include a display screen, an indicator light, an audio output device, etc. of the electronic device. For example, the electronic device can broadcast the current charging type, so that the indicator lights of the electronic device display different colors according to different current charging types; the electronic device can also display the connection status of the reverse charging device on the display screen, or the reverse charging Information such as the power value of the charging device.
如下为一个实施例中,提供的广播机制的内容:The following is the content of the broadcast mechanism provided in one embodiment:
IntentIntent
wirelesschargechg=new Intent(Intent.ACTION_BATTERY_CHANGED);wirelesschargechg=new Intent(Intent.ACTION_BATTERY_CHANGED);
wirelesschargechg.putExtra(BatteryManager.EXTRA_CHARGE_PLUGGED,mPlugType);//无线充电设备类型识别连接wirelesschargechg.putExtra(BatteryManager.EXTRA_CHARGE_PLUGGED,mPlugType); //Wireless charging device type identification connection
wirelesschargechg.putExtra(BatteryManager.EXTRA_WIRELESS_CHG_TYP E,mWirelessFastChgType);//无线快充设备类型识别wirelesschargechg.putExtra(BatteryManager.EXTRA_WIRELESS_CHG_TYP E, mWirelessFastChgType); // Wireless fast charging device type identification
wirelesschargechg.putExtra(BatteryManager.EXTRA_WIRELESS_REVERSE_CHG_TYPE,mKey);//反向充电设备类型开关连接识别wirelesschargechg.putExtra(BatteryManager.EXTRA_WIRELESS_REVERSE_CHG_TYPE,mKey);//Reverse charging device type switch connection identification
mContext.sendBroadcast(wirelesschargechg);mContext.sendBroadcast(wirelesschargechg);
在上述广播机制中,可以对无线充电设备连接、无线充电设备的连接、反向充电设备的连接等充电状态信息进行广播处理,以输出充电状态信息。电子设备可以在BatteryManager(电池管理器)中注册该intent广播,当充电状态发送改变时,则batteryservice服务可以检测到充电节点信息的更新,从而触发BATTERY_CHANGED以进行广播处理。In the above broadcast mechanism, the charging state information such as the connection of the wireless charging device, the connection of the wireless charging device, and the connection of the reverse charging device can be broadcasted to output the charging state information. The electronic device can register the intent broadcast in the BatteryManager (battery manager), and when the charging status is changed, the batteryservice service can detect the update of the charging node information, thereby triggering BATTERY_CHANGED for broadcast processing.
通过将执行充电请求指示对应的充电操作更新的充电节点信息包含的充电状态信息进行广播处理,可以输出充电状态信息,及时展示电子设备的充电状态。并且,本申请提供的充电管理方法中,通过充电节点的方式,将充电节点信息通过广播方式进行输出,充电节点和广播输出相互独立,可以提高充电节点的信息安全性。By performing broadcast processing on the charging status information included in the charging node information updated by the charging request instruction corresponding to the charging operation update, the charging status information can be output, and the charging status of the electronic device can be displayed in time. In addition, in the charging management method provided by the present application, the charging node information is output by broadcasting, and the charging node and broadcast output are independent of each other, which can improve the information security of the charging node.
图5为一个实施例中充电管理方法的流程图。如图5所示,在一个实施例中,提供的充电管理方法包括:FIG. 5 is a flowchart of a charging management method in one embodiment. As shown in FIG. 5, in one embodiment, the provided charging management method includes:
首先,电子设备接收充电请求指示。其中,反向充电指示是电子设备接收的用户在应用层输入的指示;无线充电指示是电子设备通过线圈接收的无线充电指示;有线充电指示为通过有线接口接收的有线充电指示。First, the electronic device receives a charging request indication. The reverse charging instruction is an instruction input by the user at the application layer received by the electronic device; the wireless charging instruction is a wireless charging instruction received by the electronic device through a coil; the wired charging instruction is a wired charging instruction received through a wired interface.
接着,按照有线充电、无线充电、反向充电从高到低的优先等级确定是否满足充电请求指示对应的充电类型。Next, it is determined whether the charging type corresponding to the charging request instruction is satisfied according to the priority levels of wired charging, wireless charging, and reverse charging from high to low.
可选地,当充电请求指示为有线快充指示时,则电子设备可以先进行有线快充操作,当充电过程中剩余电量值大于对应的有线充电阈值时,则切换到有线普充操作。当充电请求指示为有线普充指示时,则电子设备可以进行有线普充操作。Optionally, when the charging request indication is a wired fast charging indication, the electronic device may perform a wired fast charging operation first, and switch to a wired general charging operation when the remaining power value during the charging process is greater than the corresponding wired charging threshold. When the charging request indication is a wired general charging indication, the electronic device can perform a wired general charging operation.
可选地,当充电请求指示为无线快充指示时,则电子设备不处于有线充电状态,电子设备可以先进行无线快充操作;当充电过程中剩余电量值大于对应的无线充电阈值时,则切换到无线普充操作。当充电请求指示为无线普充指示时,则电子设备可以进行无线普充操作。Optionally, when the charging request indication is a wireless fast charging indication, the electronic device is not in a wired charging state, and the electronic device can perform a wireless fast charging operation first; when the remaining power value during the charging process is greater than the corresponding wireless charging threshold, then Switch to wireless general charging operation. When the charging request indication is a wireless general charging indication, the electronic device can perform a wireless general charging operation.
可选地,当充电请求指示为反向充电时,则电子设备不处于有线充电和状态和无线充电状态,电子设备可以检测是否存在反向充电设备,当确定存在反向充电设备时,则获取电子设备的剩余电量值,并根据剩余电量值大于第一电量阈值时,对反向充电设备进行反向充电操作。Optionally, when the charging request indicates reverse charging, the electronic device is not in the wired charging state and the wireless charging state, the electronic device can detect whether there is a reverse charging device, and when it is determined that there is a reverse charging device, obtain the The remaining power value of the electronic device, and according to when the remaining power value is greater than the first power threshold value, the reverse charging operation is performed on the reverse charging device.
应该理解的是,虽然图2、3、5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2、3、5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2 , 3 and 5 are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIGS. 2 , 3 and 5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps are not necessarily completed at the same time. Alternatively, the order of execution of the stages is not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a stage.
图6为一个实施例的充电管理装置的结构框图。如图6所示,该充电管理装置包括:信息获取模块602、确定模块604、电量获取模块606和充电操作模块608,其中:FIG. 6 is a structural block diagram of a charging management apparatus according to an embodiment. As shown in FIG. 6 , the charging management device includes: an
信息获取模块602,用于接收充电请求指示,根据充电请求指示获取充电节点信息。The
确定模块604,用于根据充电节点信息确定是否满足充电请求指示对应的充电类型;充电类型为有线充电、无线充电或反向充电。The determining
电量获取模块606,用于当确定满足充电请求指示对应的充电类型时,获取电子设备的剩余电量值。The
充电操作模块608,用于根据剩余电量值与预设的电量阈值,执行充电请求指示对应的充电操作。The charging
本申请实施例提供的充电管理装置,可以在确定电子设备的充电节点信息满足充电请求的类型时,再根据电子设备的剩余电量值进行充电,可以避免直接根据接收的充电请求进行充电操作导致的充电切换异常、稳定性差的问题,可以提高充电管理的稳定性。The charging management device provided by the embodiment of the present application can perform charging according to the remaining power value of the electronic device when it is determined that the charging node information of the electronic device satisfies the type of the charging request, so as to avoid the charging operation directly according to the received charging request. The problem of abnormal charging switching and poor stability can improve the stability of charging management.
在一个实施例中,确定模块604还可以用于当根据充电节点信息确定电子设备不处于充电状态时,则确定满足充电请求指示对应的充电类型;当根据充电节点信息确定电子设备处于充电状态时,获取当前充电类型;当充电请求指示对应的充电类型的优先等级高于当前充电类型的优先等级时,则确定满足充电请求指示对应的充电类型;其中,当前充电类型是根据充电节点信息确定的。In one embodiment, the determining
在一个实施例中,充电操作模块608还可以用于当充电请求指示为反向充电指示时,检测是否存在反向充电设备;当确定存在反向充电设备、且剩余电量值大于第一电量阈值时,则对反向充电设备执行反向充电指示对应的反向充电操作。In one embodiment, the charging
在一个实施例中,充电操作模块608还可以用于当充电请求指示为正向充电指示、且剩余电量值大于第二电量阈值时,根据充电类型对应的第一充电模式执行充电操作;当充电请求指示为正向充电指示、且剩余电量值小于或等于第二电量阈值时,根据充电类型对应的第二充电模式执行充电操作;其中,正向充电指示包括有线充电指示和无线充电指示中的至少一种;第一充电模式的充电功率低于第二充电模式的充电功率。In one embodiment, the charging
在一个实施例中,提供的充电管理装置还包括温度控制模块610,温度控制模块610用于获取充电过程中电池的测量温度及对应的初始充电参数,及根据预设的控制函数及初始充电参数得到预测温度;获取测量温度与预测温度之间的温度误差及误差变化率;通过误差反向模型解析测量温度与温度误差对应的预测温度偏差;通过偏差控制算法根据温度误差、误差变化率和预测温度偏差得到目标充电参数,并通过电源控制器根据目标充电参数进行充电操作。In one embodiment, the provided charging management device further includes a
在一个实施例中,信息获取模块602还可以用于根据充电请求指示更新充电节点对应的充电信息,得到充电节点信息;其中,充电请求指示为通过线圈接收的无线充电指示、通过有线接口接收的有线充电指示、或者在电子设备不处于充电状态时通过应用程序接收的反向充电指示。In one embodiment, the
在一个实施例中,提供的充电管理装置还包括信息输出模块612,信息输出模块612用于获取执行充电请求指示对应的充电操作,更新的充电节点信息;将更新的充电节点信息包含的充电状态信息进行广播处理,以输出充电状态信息。In one embodiment, the provided charging management device further includes an
上述充电管理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将充电管理装置按照需要划分为不同的模块,以完成上述充电管理装置的全部或部分功能。The division of each module in the above-mentioned charging management apparatus is only for illustration. In other embodiments, the charging management apparatus may be divided into different modules as required to complete all or part of the functions of the above-mentioned charging management apparatus.
关于充电管理装置的具体限定可以参见上文中对于充电管理方法的限定,在此不再赘述。上述充电管理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the charging management device, reference may be made to the above limitation on the charging management method, which will not be repeated here. Each module in the above-mentioned charging management device may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
图7为一个实施例中电子设备的内部结构示意图。如图7所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种充电管理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。FIG. 7 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in FIG. 7, the electronic device includes a processor and a memory connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a charging management method provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device, and the like.
本申请实施例中提供的充电管理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the charging management apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种电子设备。如图8所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:The embodiments of the present application also provide an electronic device. As shown in FIG. 8 , for the convenience of description, only the parts related to the embodiments of the present application are shown, and the specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, etc. The electronic device is a mobile phone as an example :
图8为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(wireless fidelity,WiFi)模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图8所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 8 , the mobile phone includes: a radio frequency (RF)
其中,RF电路810可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器880处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元830可用于接收输入的数字或字符信息,以及产生与手机800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The
显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示面板841。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。在一个实施例中,触控面板831可覆盖显示面板841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图8中,触控面板831与显示面板841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示面板841集成而实现手机的输入和输出功能。The
手机800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在手机移动到耳边时,关闭显示面板841和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路860、扬声器861和传声器862可提供用户与手机之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器860处理后,经RF电路810可以发送给另一手机,或者将音频数据输出至存储器820以便后续处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块870,但是可以理解的是,其并不属于手机800的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器880是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器880可包括一个或多个处理单元。在一个实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The
手机800还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
在本申请实施例中,该电子设备所包括的处理器880执行存储在存储器上的计算机程序时实现充电管理方法的步骤。具体地,手机800可以通过处理器880接收充电请求指示,根据充电请求指示获取充电节点信息;根据充电节点信息确定是否满足充电请求指示对应的充电类型;充电类型为有线充电、无线充电或反向充电;当确定满足充电请求指示对应的充电类型时,获取电子设备的剩余电量值;根据剩余电量值与预设的电量阈值,对电源890执行充电请求指示对应的充电操作。其中,充电操作可以是对电源890进行充电,也可以是通过电源890对反向充电设备进行充电。In this embodiment of the present application, when the
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行充电管理方法的步骤。The embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when executed by one or more processors, cause the processors to perform the steps of the charge management method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行充电管理方法。A computer program product containing instructions, when executed on a computer, causes the computer to perform a charging management method.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010180540.8A CN111313500B (en) | 2020-03-16 | 2020-03-16 | Charge management method and apparatus, electronic device, computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010180540.8A CN111313500B (en) | 2020-03-16 | 2020-03-16 | Charge management method and apparatus, electronic device, computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111313500A CN111313500A (en) | 2020-06-19 |
| CN111313500B true CN111313500B (en) | 2022-06-14 |
Family
ID=71147952
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010180540.8A Expired - Fee Related CN111313500B (en) | 2020-03-16 | 2020-03-16 | Charge management method and apparatus, electronic device, computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111313500B (en) |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113972728B (en) * | 2020-07-21 | 2025-03-11 | 北京小米移动软件有限公司 | A wireless charging method, device, terminal and storage medium |
| CN114363997B (en) * | 2020-09-29 | 2024-08-09 | 华为技术有限公司 | A charging method and device |
| CN112165139A (en) * | 2020-09-30 | 2021-01-01 | 北京小米移动软件有限公司 | Charging circuit, charging control method, charging control device, terminal and storage medium |
| CN113258154B (en) * | 2021-07-16 | 2021-10-15 | 苏州浪潮智能科技有限公司 | A battery charging method, device, equipment and medium |
| CN114243819B (en) * | 2021-12-03 | 2024-03-26 | 深圳市华美兴泰科技股份有限公司 | A combined charging method and system for household mobile power supply |
| CN114243879B (en) * | 2021-12-23 | 2022-10-21 | 深圳市鑫嘉恒科技有限公司 | Charging control method and system for solar outdoor power system and computer readable storage medium |
| WO2023206503A1 (en) * | 2022-04-29 | 2023-11-02 | 时代电服科技有限公司 | Wireless connection method for battery management device, apparatus, and battery management device |
| CN115051440B (en) * | 2022-06-24 | 2025-07-01 | Oppo广东移动通信有限公司 | A charging information detection method, device, electronic device and storage medium |
| CN115001112B (en) * | 2022-07-19 | 2022-10-21 | 深圳市深创高科电子有限公司 | Intelligent charging method and system |
| CN115001165A (en) * | 2022-07-21 | 2022-09-02 | Oppo广东移动通信有限公司 | Charging method, device, electronic device and readable storage medium |
| CN116111693A (en) * | 2023-03-07 | 2023-05-12 | 深圳市千分一智能技术有限公司 | Charging control circuit and method of active capacitive pen and active capacitive pen |
| CN116207828B (en) * | 2023-04-25 | 2023-10-03 | 荣耀终端有限公司 | Charging method and electronic equipment |
| CN119298410B (en) * | 2024-10-31 | 2025-11-18 | 深圳市美仕奇科技有限公司 | A method and system for dynamic temperature and power adjustment of an in-vehicle wireless charger |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104426186A (en) * | 2013-09-02 | 2015-03-18 | 联想(北京)有限公司 | Charging control method and electronic equipment |
| CN106385077A (en) * | 2016-10-28 | 2017-02-08 | 努比亚技术有限公司 | Charging control method and charging control device |
| CN108482168A (en) * | 2018-04-28 | 2018-09-04 | 北京新能源汽车股份有限公司 | Method and device for adjusting internal temperature of battery pack and automobile |
| CN108767913A (en) * | 2018-04-29 | 2018-11-06 | 郑州易通众联电子科技有限公司 | The charge control method and battery charge controller of electronic equipment |
| CN108808765A (en) * | 2018-05-02 | 2018-11-13 | 青岛海信移动通信技术股份有限公司 | A kind of charge prompting method and apparatus |
| CN208738925U (en) * | 2018-08-14 | 2019-04-12 | Oppo广东移动通信有限公司 | Charging circuit and electronic equipment |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102588076B1 (en) * | 2018-07-16 | 2023-10-12 | 삼성전자 주식회사 | Electronic device for receiving wireless power and method for wireless charging thereof |
| CN110350626B (en) * | 2019-07-29 | 2021-04-23 | Oppo广东移动通信有限公司 | Charging control method and apparatus, electronic device, computer-readable storage medium |
-
2020
- 2020-03-16 CN CN202010180540.8A patent/CN111313500B/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104426186A (en) * | 2013-09-02 | 2015-03-18 | 联想(北京)有限公司 | Charging control method and electronic equipment |
| CN106385077A (en) * | 2016-10-28 | 2017-02-08 | 努比亚技术有限公司 | Charging control method and charging control device |
| CN108482168A (en) * | 2018-04-28 | 2018-09-04 | 北京新能源汽车股份有限公司 | Method and device for adjusting internal temperature of battery pack and automobile |
| CN108767913A (en) * | 2018-04-29 | 2018-11-06 | 郑州易通众联电子科技有限公司 | The charge control method and battery charge controller of electronic equipment |
| CN108808765A (en) * | 2018-05-02 | 2018-11-13 | 青岛海信移动通信技术股份有限公司 | A kind of charge prompting method and apparatus |
| CN208738925U (en) * | 2018-08-14 | 2019-04-12 | Oppo广东移动通信有限公司 | Charging circuit and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111313500A (en) | 2020-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111313500B (en) | Charge management method and apparatus, electronic device, computer-readable storage medium | |
| WO2020051808A1 (en) | Charging control method and apparatus, electronic device and computer-readable storage medium | |
| CN106549464A (en) | A charging control method, device and computer equipment | |
| CN112152275B (en) | Battery charging method and apparatus, electronic device, computer-readable storage medium | |
| CN107786424B (en) | Audio and video communication method, terminal and server | |
| CN106340925A (en) | A charging control method, device and terminal | |
| CN109217411B (en) | Charging method and device and electronic equipment | |
| CN109445917B (en) | Application processing method and apparatus, electronic device, computer-readable storage medium | |
| CN104166646A (en) | Method and device for inputting uniform resource locator | |
| CN106453597A (en) | Method, device and system for adjusting data synchronization period | |
| EP2869604B1 (en) | Method, apparatus and device for processing a mobile terminal resource | |
| CN106532876A (en) | Power supply control method and device and computer equipment | |
| CN109149690B (en) | Charging control device and method and electronic equipment | |
| CN109217409B (en) | Charging method and device and electronic equipment | |
| CN105227598A (en) | A kind of resource sharing method, device and system stored based on cloud | |
| CN110427305B (en) | Battery leakage processing method and device, electronic equipment and readable storage medium | |
| CN111478378B (en) | Protection circuit, charging control device and method, and electronic device | |
| CN105577712B (en) | A kind of file uploading method, device and system | |
| CN110994052B (en) | Method and device for prolonging battery endurance, storage medium and terminal equipment | |
| CN108802619A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN112542867A (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
| CN106227337A (en) | Method, device and terminal for adjusting screen brightness | |
| CN106454953A (en) | Flow control method, device and terminal | |
| CN107894958B (en) | Junk information cleaning method, terminal, server and computer readable storage medium | |
| CN106658615B (en) | Method and device for switching communication network |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220614 |