CN116667470A - Charging method and electronic equipment - Google Patents
Charging method and electronic equipment Download PDFInfo
- Publication number
- CN116667470A CN116667470A CN202211405870.8A CN202211405870A CN116667470A CN 116667470 A CN116667470 A CN 116667470A CN 202211405870 A CN202211405870 A CN 202211405870A CN 116667470 A CN116667470 A CN 116667470A
- Authority
- CN
- China
- Prior art keywords
- temperature
- battery
- heating
- charging
- electronic device
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/007188—Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
- H02J7/007192—Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- 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)
- Power Engineering (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本申请实施例公开了一种充电方法及电子设备,电子设备设有处理器和电池,包括:在环境温度低于环境阈值温度的情况下,电子设备判断是否满足第一升温充电条件;在满足第一升温充电条件的情况下,电子设备控制处理器运行加热;处理器运行加热的过程中电池的温度随之升高;在电池温度达到可充电范围的情况下,电子设备对电池进行充电。本申请实施例,可以提高电子设备充电安全的同时保证用户使用。
The embodiment of the present application discloses a charging method and an electronic device. The electronic device is provided with a processor and a battery. In the case of the first temperature-raising charging condition, the electronic device controls the processor to run and heat up; the temperature of the battery increases during the process of the processor running and heating; when the temperature of the battery reaches a chargeable range, the electronic device charges the battery. The embodiment of the present application can improve the charging safety of the electronic device while ensuring the use of the user.
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种充电方法及电子设备。The present application relates to the technical field of terminals, and in particular to a charging method and electronic equipment.
背景技术Background technique
手机处于零下的温度环境中,如果对手机进行充电,锂电池会出现鼓包、甚至爆炸的情况,因此电池的充电安全是当前面临的一个问题。若在零下温度环境中,电子设备无法充电,会严重影响用户的使用。The mobile phone is in a sub-zero temperature environment. If the mobile phone is charged, the lithium battery will bulge or even explode. Therefore, the charging safety of the battery is currently a problem. If the electronic device cannot be charged in a sub-zero temperature environment, it will seriously affect the use of the user.
发明内容Contents of the invention
本申请实施例公开了一种充电方法及电子设备,可以提高电子设备充电安全的同时保证用户使用。The embodiment of the present application discloses a charging method and an electronic device, which can improve the charging safety of the electronic device and ensure the use of the user.
第一方面,本申请提供了一种充电方法,所述方法应用于电子设备,所述电子设备设有处理器和电池,包括:在环境温度低于环境阈值温度的情况下,所述电子设备判断是否满足第一升温充电条件;在满足所述第一升温充电条件的情况下,所述电子设备控制所述处理器运行加热;所述处理器运行加热的过程中所述电池的温度随之升高;在电池温度达到可充电范围的情况下,所述电子设备对所述电池进行充电。In a first aspect, the present application provides a charging method, the method is applied to an electronic device, and the electronic device is provided with a processor and a battery, including: when the ambient temperature is lower than the ambient threshold temperature, the electronic device Judging whether the first temperature-rising charging condition is satisfied; if the first temperature-rising charging condition is satisfied, the electronic device controls the processor to run and heat; the temperature of the battery during the process of running and heating the processor increase; when the temperature of the battery reaches a chargeable range, the electronic device charges the battery.
在本申请实施例中,电子设备控制电池执行加热。加热的过程中,处理器的运行可以使得电池快速升温,让电池处于能够充电的温度,即便低温的环境下,电子设备也能够升温处理。这样,不需要具体的加热硬件模块,便能够借用处理器加热电池,保证电池的温度达到能够充电的温度,从而电池可以正常充电,确保充点安全性的同时保证用户的正常使用。In the embodiment of the present application, the electronic device controls the battery to perform heating. During the heating process, the operation of the processor can make the battery heat up quickly, so that the battery can be charged at a temperature, and even in a low temperature environment, the electronic device can also heat up. In this way, without a specific heating hardware module, the processor can be used to heat the battery to ensure that the temperature of the battery reaches the temperature that can be charged, so that the battery can be charged normally, ensuring the safety of the charging point and the normal use of the user.
在一种可能的实现方式中,所述电子设备控制所述处理器运行加热,具体包括:若所述处理器的累计加热次数小于或等于设定轮次,所述电子设备在当前轮次的加热总时长以内控制所述处理器周期性地运行加热。这样,可以保证处理器正常使用运行加热的同时,保证核温和累积加热次数的限制,确保处理器的寿命和使用。此外,在设定次数之内可以停止加热服务,即不加热;已经超过设定次数,可以进行加热。便能够有效地控制处理器满负荷运行的次数,控制器运行次数和老化程度,从而可以延缓卡顿出现的时间,提高用户体验。In a possible implementation manner, the electronic device controls the processor to run heating, which specifically includes: if the cumulative heating times of the processor is less than or equal to the set round, the electronic device The processor is controlled to run heating periodically within the total heating time. In this way, it is possible to ensure that the processor is heated during normal use and at the same time, the limit of the nuclear temperature and the cumulative heating times can be guaranteed, and the life and use of the processor can be ensured. In addition, the heating service can be stopped within the set number of times, that is, no heating; if the set number of times has exceeded, heating can be performed. It can effectively control the number of times the processor runs at full load, the number of times the controller runs, and the aging degree, thereby delaying the occurrence of freezes and improving user experience.
在一种可能的实现方式中,所述处理器运行加热的一个周期由运行时长和等待时长组成;所述运行时长为所述处理器运行加热的时长;所述等待时长为所述处理器不运行加热的时长。这样,处理器在一个轮次内周期性的加热,能够保证处理器的温度能够控制的合适的范围以内,保证电池温度的同时,不会由于处理器的温度过高,而对处理器造成损块,确保处理器的使用安全和使用寿命。In a possible implementation manner, a period during which the processor is running and heating is composed of a running time and a waiting time; the running time is the time during which the processor is running and heating; How long to run heating. In this way, the processor is heated periodically in one round, which can ensure that the temperature of the processor can be controlled within an appropriate range, and while ensuring the temperature of the battery, the processor will not be damaged due to the excessive temperature of the processor. block to ensure the safety and service life of the processor.
在一种可能的实现方式中,在所述环境温度越低的情况下,所述运行时长与所述等待时长之间的比值越高。这样,能够保证在不同的环境温度中,电子设备可以适应性地确定加热时长,保证温度尽可能在特定温度范围,保证充电时间尽可能的长,保证充电的有效性。In a possible implementation manner, the lower the ambient temperature, the higher the ratio between the running time and the waiting time. In this way, it can be ensured that in different ambient temperatures, the electronic device can adaptively determine the heating time, ensure that the temperature is within a specific temperature range as much as possible, ensure that the charging time is as long as possible, and ensure the effectiveness of charging.
在一种可能的实现方式中,所述电子设备控制所述处理器运行加热,具体还包括:所述电子设备获取处理器温度;在加热时长未达到所述加热总时长的情况下,若所述处理器温度高于第一核温值的情况下,所述电子设备控制所述处理器暂停运行第一休眠时长;若所述处理器温度低于第二核温值的情况下,所述电子设备控制所述处理器继续运行加热;其中,所述第一核温值大于或等于所述第二核温值,所述电子设备存储有所述第一核温值和所述第二核温值,所述第一休眠时长小于所述加热总时长。这样,可以保证核温是在一定的温度范围之内进行加热的,既能够保证电池被加热的同时,还能够使得处理器的温度不要过高,而损害处理器,保证加热过程的安全性,以及处理器的安全性。In a possible implementation manner, the electronic device controls the processor to run heating, which specifically further includes: obtaining the temperature of the processor by the electronic device; when the heating time does not reach the total heating time, if the When the temperature of the processor is higher than the first core temperature value, the electronic device controls the processor to suspend the first sleep duration; if the processor temperature is lower than the second core temperature value, the The electronic device controls the processor to continue heating; wherein, the first core temperature value is greater than or equal to the second core temperature value, and the electronic device stores the first core temperature value and the second core temperature value temperature value, the first sleep duration is less than the total heating duration. In this way, it can ensure that the core temperature is heated within a certain temperature range, which can not only ensure that the battery is heated, but also prevent the temperature of the processor from being too high, which will damage the processor and ensure the safety of the heating process. and processor security.
在一种可能的实现方式中,若所述处理器的累计加热次数小于或等于设定轮次,所述电子设备在当前轮次的加热总时长以内控制所述处理器周期性地运行加热之前,所述方法还包括:在每个轮次所述处理器的运行加热的内核数量和执行加热策略的内核数量不变的情况下,所述电子设备基于所述处理器的历史内核分配结果轮流分配当前加热轮次中运行加热的内核以及执行加热策略的内核。这样,可以尽可能的保证每一个处理器的内核耗损程度是差不多的,以延长电子设备的使用寿命,延缓卡顿。In a possible implementation manner, if the cumulative heating times of the processor is less than or equal to the set round, the electronic device controls the processor to periodically run the heating cycle within the total heating time of the current round. , the method further includes: in the case that the number of heated cores of the processor and the number of cores executing the heating strategy are unchanged in each round, the electronic device takes turns based on the historical core allocation results of the processor Allocate the cores that run heating in the current heating round and the cores that execute the heating strategy. In this way, it can be ensured that the core consumption of each processor is similar as much as possible, so as to prolong the service life of electronic equipment and delay stalling.
在一种可能的实现方式中,所述电子设备控制所述处理器运行加热之前,所述方法还包括:所述电子设备获取处理器温度;所述电子设备基于所述处理器温度确定所述处理器运行加热的内核数量;所述处理器温度越高,所述处理器运行加热的内核数量越少。这样,核温越低,处理器内核数量越多,从而可以保证处理器模块升温更快,同时调用处理器内核的资源也是尽可能少,减少处理器的损耗,延长电子设备的使用寿命,减缓卡顿。In a possible implementation manner, before the electronic device controls the processor to run and heat, the method further includes: the electronic device obtains the temperature of the processor; the electronic device determines the processor temperature based on the processor temperature; The number of cores that the processor runs heated; the higher the temperature of the processor, the lower the number of cores that the processor runs heated. In this way, the lower the core temperature, the more the number of processor cores, which can ensure that the processor module heats up faster, and at the same time call the resources of the processor core as little as possible, reduce the loss of the processor, prolong the service life of electronic equipment, and slow down Stuck and stopped.
在一种可能的实现方式中,所述电子设备基于所述处理器温度确定所述处理器运行加热的内核数量,具体包括:在所述处理器温度大于第一温度阈值的情况下,所述运行加热的内核数量为所述处理器内核总数和第一比例的乘积;在所述处理器温度小于或等于所述第一温度阈值且大于第二温度阈值的情况下,所述运行加热的内核数量为所述处理器内核总数和第二比例的乘积;在所述处理器温度小于或等于所述第二温度阈值的情况下,所述运行加热的内核数量为所述处理器内核总数和第三比例的乘积;其中,所述第一温度阈值大于所述第二温度阈值;所述第一比例小于所述第二比例,所述第二比例小于所述第三比例。这样,核温越低,处理器内核数量越多,从而可以保证处理器模块升温更快,同时调用处理器内核的资源也是尽可能少,减少处理器的损耗,延长电子设备的使用寿命,减缓卡顿。In a possible implementation manner, the electronic device determines the number of cores heated by the processor based on the processor temperature, which specifically includes: when the processor temperature is greater than a first temperature threshold, the The number of cores heated during operation is the product of the total number of cores of the processor and a first ratio; when the temperature of the processor is less than or equal to the first temperature threshold and greater than the second temperature threshold, the cores heated during operation The number is the product of the total number of processor cores and a second ratio; when the temperature of the processor is less than or equal to the second temperature threshold, the number of cores heated during operation is the total number of processor cores and the second ratio. The product of three ratios; wherein, the first temperature threshold is greater than the second temperature threshold; the first ratio is smaller than the second ratio, and the second ratio is smaller than the third ratio. In this way, the lower the core temperature, the more the number of processor cores, which can ensure that the processor module heats up faster, and at the same time call the resources of the processor core as little as possible, reduce the loss of the processor, prolong the service life of electronic equipment, and slow down Stuck and stopped.
在一种可能的实现方式中,若所述处理器的累计加热次数小于或等于设定轮次,所述电子设备在当前轮次的加热总时长以内控制所述处理器周期性地运行加热之前,所述方法还包括:所述电子设备获取电池电量,并基于所述电池电量确定加热总时长;所述电池电量越低,所述加热总时长越长。这样,能够保证一轮加热使得电子设备的电量能够或者接近充满,从而可以避免一轮加热没充满电再加热一次,或者过度加热的情况,从而可以节约加热所消耗的处理资源,保证充电时长的准确性。这样,可以保证核温是在一定的温度范围之内进行加热的,既能够保证电池被加热的同时,还能够使得处理器的温度不要过高,而损害处理器,保证加热过程的安全性,以及处理器的安全性。In a possible implementation manner, if the cumulative heating times of the processor is less than or equal to the set round, the electronic device controls the processor to periodically run the heating cycle within the total heating time of the current round. , the method further includes: the electronic device obtains battery power, and determines the total heating time based on the battery power; the lower the battery power is, the longer the total heating time is. In this way, it can be ensured that one round of heating can make the power of the electronic device fully or nearly fully charged, thereby avoiding the situation that one round of heating is not fully charged and then reheated, or overheated, thereby saving the processing resources consumed by heating and ensuring the long charging time. accuracy. In this way, it can ensure that the core temperature is heated within a certain temperature range, which can not only ensure that the battery is heated, but also prevent the temperature of the processor from being too high, which will damage the processor and ensure the safety of the heating process. and processor security.
在一种可能的实现方式中,所述电子设备判断是否满足第一升温充电条件之前,所述方法还包括:所述电子设备获取第一信息;所述第一信息包括环境温度、屏幕状态、电池温度及充电端口温度、电池电量、电池电流和充电类型其中的一种或多种;所述电子设备判断是否满足第一升温充电条件,具体包括:所述电子设备基于所述第一信息判断是否满足第一升温充电条件;其中,在所述第一信息包括所述环境温度的情况下,所述第一升温充电条件包括所述环境温度低于所述环境阈值温度的条件;在所述第一信息包括所述屏幕状态的情况下,所述第一升温充电条件包括所述屏幕状态为灭屏状态的条件;在所述第一信息包括所述电池温度及所述充电端口温度的情况下,所述第一升温充电条件包括所述电池温度与所述充电端口温度之间的差值处于第一预设范围内,且所述电池温度处于第二预设范围内的条件;在所述第一信息包括所述电池电量的情况下,所述第一升温充电条件包括所述电池电量处于预设电量范围内的条件;在所述第一信息包括所述电池电流的情况下,所述第一升温充电条件包括所述电池电流大于充电阈值电流的条件;在所述第一信息包括所述充电类型的情况下,所述第一升温充电条件包括所述充电类型为预设充电类型的条件。这样,充电类型的判断是为了预设充电类型能够保证低温环境中的加热充电,电池电量是增加的,进而可以保证电池总体上是在充电而非耗电。确定电池电量为了能够保证电池电量是增加的,可以通过确定流经电池的电流是大于充电阈值电流的情况下,保证充电电量大于放电电量,从而可以保证加热充电保证电池电量的增加的。判断端口温度和电池温度,能够保证充电端口的温度是正常的温度,当充电端口的温度过高的情况下,意味着端口短路或者漏电,这种情况下存在使用安全和充电安全的问题,这一判断逻辑能够保证充电的安全性。判断灭屏情况,是因为需要在用户使用电子设备的时候,保证处理资源优先为用户使用提供,能够保证用户的使用体验,避免在用户使用的时候出现卡顿的情况。In a possible implementation manner, before the electronic device judges whether the first warming-up charging condition is satisfied, the method further includes: the electronic device acquires first information; the first information includes ambient temperature, screen status, One or more of battery temperature, charging port temperature, battery power, battery current, and charging type; the electronic device judging whether the first temperature-raising charging condition is met, specifically includes: the electronic device judging based on the first information Whether the first warming-up charging condition is satisfied; wherein, when the first information includes the ambient temperature, the first warming-up charging condition includes the condition that the ambient temperature is lower than the ambient threshold temperature; in the When the first information includes the screen state, the first heating charging condition includes the condition that the screen state is an off-screen state; when the first information includes the battery temperature and the charging port temperature In this case, the first warm-up charging condition includes the condition that the difference between the battery temperature and the charging port temperature is within a first preset range, and the battery temperature is within a second preset range; When the first information includes the battery power, the first temperature-raising charging condition includes the condition that the battery power is within a preset power range; when the first information includes the battery current, the The first warming charging condition includes the condition that the battery current is greater than the charging threshold current; when the first information includes the charging type, the first warming charging condition includes that the charging type is a preset charging type conditions of. In this way, the determination of the charging type is to ensure that the preset charging type can ensure heating and charging in a low-temperature environment, and the battery power is increased, thereby ensuring that the battery is generally being charged instead of consuming power. Determining the battery power In order to ensure that the battery power is increased, it can be ensured that the charging power is greater than the discharging power by determining that the current flowing through the battery is greater than the charging threshold current, thereby ensuring heating and charging to ensure that the battery power increases. Judging the port temperature and battery temperature can ensure that the temperature of the charging port is a normal temperature. When the temperature of the charging port is too high, it means that the port is short-circuited or leaking electricity. In this case, there are problems of use safety and charging safety. A judgment logic can ensure the safety of charging. Judging the off-screen situation is because it is necessary to ensure that processing resources are given priority to the user when the user is using the electronic device, so as to ensure the user's experience and avoid freezing when the user is using it.
在一种可能的实现方式中,所述电子设备包括电池升温模块和逻辑控制模块,所述电子设备获取第一信息,具体包括:所述电子设备通过所述逻辑控制模块获取第一信息;所述电子设备基于所述第一信息判断是否满足第一升温充电条件,具体包括:所述电子设备通过所述逻辑控制模块基于所述第一信息判断是否满足第一升温充电条件;在满足所述第一升温充电条件的情况下,所述电子设备通过所述逻辑控制模块向所述电池升温模块发送第一决策信息,所述第一决策信息包括升温指令,所述升温指令用于指示所述电池升温模块进行升温处理;在不满足所述第一升温充电条件的情况下,所述方法还包括:所述电子设备通过所述逻辑控制模块向所述电池升温模块发送第二决策信息,所述第二决策信息包括结束升温指令,所述结束升温指令用于指示所述电池升温模块不进行升温处理。这样,电子设备能够保证电池安全和使用寿命的同时,为电池进行充电,从而能够保证用户能够在低温环境下使用电子设备,对电子设备进行充电,保证用户使用的同时,保证充电安全。In a possible implementation manner, the electronic device includes a battery heating module and a logic control module, and obtaining the first information by the electronic device specifically includes: the electronic device obtains the first information through the logic control module; The electronic device judges whether the first temperature-rising charging condition is met based on the first information, specifically including: the electronic device judges whether the first temperature-rising charging condition is satisfied based on the first information through the logic control module; In the case of the first temperature rise charging condition, the electronic device sends first decision information to the battery temperature rise module through the logic control module, the first decision information includes a temperature rise instruction, and the temperature rise instruction is used to instruct the The battery temperature-raising module performs temperature-raising processing; if the first temperature-raising charging condition is not satisfied, the method further includes: the electronic device sends second decision information to the battery temperature-raising module through the logic control module, so The second decision information includes an instruction to end the temperature increase, and the end temperature increase instruction is used to instruct the battery temperature increase module not to perform the temperature increase process. In this way, the electronic device can charge the battery while ensuring the safety and service life of the battery, thereby ensuring that the user can use the electronic device in a low-temperature environment and charge the electronic device, ensuring the safety of charging while ensuring the user's use.
在一种可能的实现方式中,所述电子设备还包括电池充电模块,在电池温度达到可充电范围的情况下,所述电子设备对所述电池进行充电,具体包括:所述电子设备通过所述逻辑控制模块基于所述电池温度确定充电电流;所述电子设备通过所述逻辑控制模块向所述电池充电模块发送第一充电指令,所述第一充电指令指示对所述电池进行充电,所述第一充电指令包括所述充电电流;所述电子设备通过所述电池充电模块基于所述充电电流对所述电池进行充电。这样,逻辑控制模块可以向保证电池温度对应的充电电流处于安全范围内,保证充电安全性的同时,尽可能加热充电速度,提高充电效率。In a possible implementation manner, the electronic device further includes a battery charging module, and when the temperature of the battery reaches a chargeable range, the electronic device charges the battery, which specifically includes: the electronic device charges the battery through the The logic control module determines the charging current based on the battery temperature; the electronic device sends a first charging instruction to the battery charging module through the logic control module, and the first charging instruction instructs to charge the battery, so The first charging instruction includes the charging current; the electronic device charges the battery based on the charging current through the battery charging module. In this way, the logic control module can ensure that the charging current corresponding to the battery temperature is within a safe range, while ensuring charging safety, the charging speed can be heated as much as possible, and the charging efficiency can be improved.
在一种可能的实现方式中,所述电子设备通过所述逻辑控制模块基于所述电池温度确定充电电流,具体包括:所述电子设备通过所述逻辑控制模块基于第一映射关系确定所述电池温度对应的充电电流;其中,所述逻辑控制模块存储有所述第一映射关系,所述第一映射关系为电池温度与充电电流之间的映射关系。这样,逻辑控制模块可以向保证电池温度对应的充电电流处于安全范围内,保证充电安全性的同时,尽可能加热充电速度,提高充电效率。In a possible implementation manner, the electronic device determines the charging current based on the battery temperature through the logic control module, which specifically includes: the electronic device determines the charging current of the battery based on the first mapping relationship through the logic control module. Charging current corresponding to temperature; wherein, the logic control module stores the first mapping relationship, and the first mapping relationship is a mapping relationship between battery temperature and charging current. In this way, the logic control module can ensure that the charging current corresponding to the battery temperature is within a safe range, while ensuring charging safety, the charging speed can be heated as much as possible, and the charging efficiency can be improved.
第二方面,本申请提供了一种电子设备,包括:电池、一个或多个处理器和一个或多个存储器;所述一个或多个处理器与所述一个或多个存储器耦合,所述一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行:In a second aspect, the present application provides an electronic device, including: a battery, one or more processors, and one or more memories; the one or more processors are coupled to the one or more memories, and the The one or more memories are configured to store computer program code comprising computer instructions which, when executed by the one or more processors, cause the electronic device to perform:
在环境温度低于环境阈值温度的情况下,判断是否满足第一升温充电条件;在满足所述第一升温充电条件的情况下,控制所述处理器运行加热;所述处理器运行加热的过程中所述电池的温度随之升高;在电池温度达到可充电范围的情况下,对所述电池进行充电。When the ambient temperature is lower than the ambient threshold temperature, judging whether the first temperature-raising charging condition is met; if the first temperature-raising charging condition is met, controlling the processor to run heating; the processor runs the heating process The temperature of the battery in the method increases accordingly; when the temperature of the battery reaches a chargeable range, the battery is charged.
在本申请实施例中,电子设备控制电池执行加热。加热的过程中,处理器的运行可以使得电池快速升温,让电池处于能够充电的温度,即便低温的环境下,电子设备也能够升温处理。这样,不需要具体的加热硬件模块,便能够借用处理器加热电池,保证电池的温度达到能够充电的温度,从而电池可以正常充电,确保充点安全性的同时保证用户的正常使用。In the embodiment of the present application, the electronic device controls the battery to perform heating. During the heating process, the operation of the processor can make the battery heat up quickly, so that the battery can be charged at a temperature, and even in a low temperature environment, the electronic device can also heat up. In this way, without a specific heating hardware module, the processor can be used to heat the battery to ensure that the temperature of the battery reaches the temperature that can be charged, so that the battery can be charged normally, ensuring the safety of the charging point and the normal use of the user.
在一种可能的实现方式中,所述电子设备控制所述处理器运行加热,具体执行:若所述处理器的累计加热次数小于或等于设定轮次,在当前轮次的加热总时长以内控制所述处理器周期性地运行加热。这样,可以保证处理器正常使用运行加热的同时,保证核温和累积加热次数的限制,确保处理器的寿命和使用。此外,在设定次数之内可以停止加热服务,即不加热;已经超过设定次数,可以进行加热。便能够有效地控制处理器满负荷运行的次数,控制器运行次数和老化程度,从而可以延缓卡顿出现的时间,提高用户体验。In a possible implementation manner, the electronic device controls the processor to run heating, and specifically executes: if the cumulative heating times of the processor is less than or equal to the set round, within the total heating time of the current round The processor is controlled to run heating periodically. In this way, it is possible to ensure that the processor is heated during normal use and at the same time, the limit of the nuclear temperature and the cumulative heating times can be guaranteed, and the life and use of the processor can be ensured. In addition, the heating service can be stopped within the set number of times, that is, no heating; if the set number of times has exceeded, heating can be performed. It can effectively control the number of times the processor runs at full load, the number of times the controller runs, and the aging degree, thereby delaying the occurrence of freezes and improving user experience.
在一种可能的实现方式中,所述处理器运行加热的一个周期由运行时长和等待时长组成;所述运行时长为所述处理器运行加热的时长;所述等待时长为所述处理器不运行加热的时长。这样,处理器在一个轮次内周期性的加热,能够保证处理器的温度能够控制的合适的范围以内,保证电池温度的同时,不会由于处理器的温度过高,而对处理器造成损块,确保处理器的使用安全和使用寿命。In a possible implementation manner, a period during which the processor is running and heating is composed of a running time and a waiting time; the running time is the time during which the processor is running and heating; How long to run heating. In this way, the processor is heated periodically in one round, which can ensure that the temperature of the processor can be controlled within an appropriate range, and while ensuring the temperature of the battery, the processor will not be damaged due to the excessive temperature of the processor. block to ensure the safety and service life of the processor.
在一种可能的实现方式中,在所述环境温度越低的情况下,所述运行时长与所述等待时长之间的比值越高。这样,能够保证在不同的环境温度中,电子设备可以适应性地确定加热时长,保证温度尽可能在特定温度范围,保证充电时间尽可能的长,保证充电的有效性。In a possible implementation manner, the lower the ambient temperature, the higher the ratio between the running time and the waiting time. In this way, it can be ensured that in different ambient temperatures, the electronic device can adaptively determine the heating time, ensure that the temperature is within a specific temperature range as much as possible, ensure that the charging time is as long as possible, and ensure the effectiveness of charging.
在一种可能的实现方式中,所述电子设备控制所述处理器运行加热,具体还执行:获取处理器温度;在加热时长未达到所述加热总时长的情况下,若所述处理器温度高于第一核温值的情况下,控制所述处理器暂停运行第一休眠时长;若所述处理器温度低于第二核温值的情况下,控制所述处理器继续运行加热;其中,所述第一核温值大于或等于所述第二核温值,所述电子设备存储有所述第一核温值和所述第二核温值,所述第一休眠时长小于所述加热总时长。这样,可以保证核温是在一定的温度范围之内进行加热的,既能够保证电池被加热的同时,还能够使得处理器的温度不要过高,而损害处理器,保证加热过程的安全性,以及处理器的安全性。In a possible implementation manner, the electronic device controls the processor to run heating, and specifically performs: obtaining the temperature of the processor; when the heating time does not reach the total heating time, if the processor temperature When the temperature is higher than the first core temperature value, control the processor to suspend running for the first sleep duration; if the temperature of the processor is lower than the second core temperature value, control the processor to continue running and heating; wherein , the first core temperature value is greater than or equal to the second core temperature value, the electronic device stores the first core temperature value and the second core temperature value, and the first sleep duration is less than the total heating time. In this way, it can ensure that the core temperature is heated within a certain temperature range, which can not only ensure that the battery is heated, but also prevent the temperature of the processor from being too high, which will damage the processor and ensure the safety of the heating process. and processor security.
在一种可能的实现方式中,若所述处理器的累计加热次数小于或等于设定轮次,所述电子设备在当前轮次的加热总时长以内控制所述处理器周期性地运行加热之前,所述电子设备还执行:在每个轮次所述处理器的运行加热的内核数量和执行加热策略的内核数量不变的情况下,基于所述处理器的历史内核分配结果轮流分配当前加热轮次中运行加热的内核以及执行加热策略的内核。这样,可以尽可能的保证每一个处理器的内核耗损程度是差不多的,以延长电子设备的使用寿命,延缓卡顿。In a possible implementation manner, if the cumulative heating times of the processor is less than or equal to the set round, the electronic device controls the processor to periodically run the heating cycle within the total heating time of the current round. , the electronic device further executes: in the case that the number of heated cores of the processor and the number of cores executing the heating strategy remain unchanged in each round, the current heating is allocated in turn based on the historical core allocation results of the processor The kernels that run heating in the round and the kernels that enforce the heating policy. In this way, it can be ensured that the core consumption of each processor is similar as much as possible, so as to prolong the service life of electronic equipment and delay stalling.
在一种可能的实现方式中,所述电子设备控制所述处理器运行加热之前,所述电子设备还执行:获取处理器温度;基于所述处理器温度确定所述处理器运行加热的内核数量;所述处理器温度越高,所述处理器运行加热的内核数量越少。这样,核温越低,处理器内核数量越多,从而可以保证处理器模块升温更快,同时调用处理器内核的资源也是尽可能少,减少处理器的损耗,延长电子设备的使用寿命,减缓卡顿。In a possible implementation manner, before the electronic device controls the processor to run and heat, the electronic device further executes: acquiring the processor temperature; determining the number of cores for the processor to run and heat based on the processor temperature ; the higher the processor temperature, the fewer cores the processor runs heated. In this way, the lower the core temperature, the more the number of processor cores, which can ensure that the processor module heats up faster, and at the same time call the resources of the processor core as little as possible, reduce the loss of the processor, prolong the service life of electronic equipment, and slow down Stuck and stopped.
在一种可能的实现方式中,所述电子设备基于所述处理器温度确定所述处理器运行加热的内核数量,具体包括:在所述处理器温度大于第一温度阈值的情况下,所述运行加热的内核数量为所述处理器内核总数和第一比例的乘积;在所述处理器温度小于或等于所述第一温度阈值且大于第二温度阈值的情况下,所述运行加热的内核数量为所述处理器内核总数和第二比例的乘积;在所述处理器温度小于或等于所述第二温度阈值的情况下,所述运行加热的内核数量为所述处理器内核总数和第三比例的乘积;其中,所述第一温度阈值大于所述第二温度阈值;所述第一比例小于所述第二比例,所述第二比例小于所述第三比例。这样,核温越低,处理器内核数量越多,从而可以保证处理器模块升温更快,同时调用处理器内核的资源也是尽可能少,减少处理器的损耗,延长电子设备的使用寿命,减缓卡顿。In a possible implementation manner, the electronic device determines the number of cores heated by the processor based on the processor temperature, which specifically includes: when the processor temperature is greater than a first temperature threshold, the The number of cores heated during operation is the product of the total number of cores of the processor and a first ratio; when the temperature of the processor is less than or equal to the first temperature threshold and greater than the second temperature threshold, the cores heated during operation The number is the product of the total number of processor cores and a second ratio; when the temperature of the processor is less than or equal to the second temperature threshold, the number of cores heated during operation is the total number of processor cores and the second ratio. The product of three ratios; wherein, the first temperature threshold is greater than the second temperature threshold; the first ratio is smaller than the second ratio, and the second ratio is smaller than the third ratio. In this way, the lower the core temperature, the more the number of processor cores, which can ensure that the processor module heats up faster, and at the same time call the resources of the processor core as little as possible, reduce the loss of the processor, prolong the service life of electronic equipment, and slow down Stuck and stopped.
在一种可能的实现方式中,若所述处理器的累计加热次数小于或等于设定轮次,所述电子设备在当前轮次的加热总时长以内控制所述处理器周期性地运行加热之前,所述电子设备还执行:获取电池电量,并基于所述电池电量确定加热总时长;所述电池电量越低,所述加热总时长越长。这样,能够保证一轮加热使得电子设备的电量能够或者接近充满,从而可以避免一轮加热没充满电再加热一次,或者过度加热的情况,从而可以节约加热所消耗的处理资源,保证充电时长的准确性。这样,可以保证核温是在一定的温度范围之内进行加热的,既能够保证电池被加热的同时,还能够使得处理器的温度不要过高,而损害处理器,保证加热过程的安全性,以及处理器的安全性。In a possible implementation manner, if the cumulative heating times of the processor is less than or equal to the set round, the electronic device controls the processor to periodically run the heating cycle within the total heating time of the current round. , the electronic device further executes: acquiring battery power, and determining a total heating time based on the battery power; the lower the battery power is, the longer the total heating time is. In this way, it can be ensured that one round of heating can make the power of the electronic device fully or nearly fully charged, thereby avoiding the situation that one round of heating is not fully charged and then reheated, or overheated, thereby saving the processing resources consumed by heating and ensuring the long charging time. accuracy. In this way, it can ensure that the core temperature is heated within a certain temperature range, which can not only ensure that the battery is heated, but also prevent the temperature of the processor from being too high, which will damage the processor and ensure the safety of the heating process. and processor security.
在一种可能的实现方式中,所述电子设备判断是否满足第一升温充电条件之前,所述电子设备还执行:获取第一信息;所述第一信息包括环境温度、屏幕状态、电池温度及充电端口温度、电池电量、电池电流和充电类型其中的一种或多种;所述电子设备判断是否满足第一升温充电条件,具体执行:基于所述第一信息判断是否满足第一升温充电条件;其中,在所述第一信息包括所述环境温度的情况下,所述第一升温充电条件包括所述环境温度低于所述环境阈值温度的条件;在所述第一信息包括所述屏幕状态的情况下,所述第一升温充电条件包括所述屏幕状态为灭屏状态的条件;在所述第一信息包括所述电池温度及所述充电端口温度的情况下,所述第一升温充电条件包括所述电池温度与所述充电端口温度之间的差值处于第一预设范围内,且所述电池温度处于第二预设范围内的条件;在所述第一信息包括所述电池电量的情况下,所述第一升温充电条件包括所述电池电量处于预设电量范围内的条件;在所述第一信息包括所述电池电流的情况下,所述第一升温充电条件包括所述电池电流大于充电阈值电流的条件;在所述第一信息包括所述充电类型的情况下,所述第一升温充电条件包括所述充电类型为预设充电类型的条件。这样,充电类型的判断是为了预设充电类型能够保证低温环境中的加热充电,电池电量是增加的,进而可以保证电池总体上是在充电而非耗电。确定电池电量为了能够保证电池电量是增加的,可以通过确定流经电池的电流是大于充电阈值电流的情况下,保证充电电量大于放电电量,从而可以保证加热充电保证电池电量的增加的。判断端口温度和电池温度,能够保证充电端口的温度是正常的温度,当充电端口的温度过高的情况下,意味着端口短路或者漏电,这种情况下存在使用安全和充电安全的问题,这一判断逻辑能够保证充电的安全性。判断灭屏情况,是因为需要在用户使用电子设备的时候,保证处理资源优先为用户使用提供,能够保证用户的使用体验,避免在用户使用的时候出现卡顿的情况。In a possible implementation manner, before the electronic device judges whether the first warming-up charging condition is met, the electronic device further executes: acquiring first information; the first information includes ambient temperature, screen status, battery temperature and One or more of charging port temperature, battery power, battery current, and charging type; the electronic device judges whether the first temperature-rising charging condition is satisfied, and specifically executes: judging whether the first temperature-rising charging condition is satisfied based on the first information ; Wherein, when the first information includes the ambient temperature, the first warming charging condition includes the condition that the ambient temperature is lower than the ambient threshold temperature; when the first information includes the screen state, the first warming-up charging condition includes the condition that the screen state is an off-screen state; when the first information includes the battery temperature and the charging port temperature, the first warming-up charging condition The charging condition includes the condition that the difference between the battery temperature and the charging port temperature is within a first preset range, and the battery temperature is within a second preset range; when the first information includes the In the case of battery power, the first temperature-raising charging condition includes the condition that the battery power is within a preset power range; when the first information includes the battery current, the first temperature-raising charging condition includes The condition that the battery current is greater than the charging threshold current; when the first information includes the charging type, the first warming charging condition includes the condition that the charging type is a preset charging type. In this way, the determination of the charging type is to ensure that the preset charging type can ensure heating and charging in a low-temperature environment, and the battery power is increased, thereby ensuring that the battery is generally being charged instead of consuming power. Determining the battery power In order to ensure that the battery power is increased, it can be ensured that the charging power is greater than the discharging power by determining that the current flowing through the battery is greater than the charging threshold current, thereby ensuring heating and charging to ensure that the battery power increases. Judging the port temperature and battery temperature can ensure that the temperature of the charging port is a normal temperature. When the temperature of the charging port is too high, it means that the port is short-circuited or leaking electricity. In this case, there are problems of use safety and charging safety. A judgment logic can ensure the safety of charging. Judging the off-screen situation is because it is necessary to ensure that processing resources are given priority to the user when the user is using the electronic device, so as to ensure the user's experience and avoid freezing when the user is using it.
在一种可能的实现方式中,所述电子设备包括电池升温模块和逻辑控制模块,所述电子设备获取第一信息,具体执行:通过所述逻辑控制模块获取第一信息;所述电子设备基于所述第一信息判断是否满足第一升温充电条件,具体执行:通过所述逻辑控制模块基于所述第一信息判断是否满足第一升温充电条件;在满足所述第一升温充电条件的情况下,通过所述逻辑控制模块向所述电池升温模块发送第一决策信息,所述第一决策信息包括升温指令,所述升温指令用于指示所述电池升温模块进行升温处理;在不满足所述第一升温充电条件的情况下,所述电子设备还执行:通过所述逻辑控制模块向所述电池升温模块发送第二决策信息,所述第二决策信息包括结束升温指令,所述结束升温指令用于指示所述电池升温模块不进行升温处理。这样,电子设备能够保证电池安全和使用寿命的同时,为电池进行充电,从而能够保证用户能够在低温环境下使用电子设备,对电子设备进行充电,保证用户使用的同时,保证充电安全。In a possible implementation manner, the electronic device includes a battery warming module and a logic control module, and the electronic device obtains the first information, and specifically executes: the first information is obtained through the logic control module; the electronic device is based on The first information judges whether the first temperature-rising charging condition is met, specifically: the logic control module judges whether the first temperature-rising charging condition is satisfied based on the first information; if the first temperature-rising charging condition is satisfied , sending first decision information to the battery heating module through the logic control module, the first decision information includes a temperature raising instruction, and the temperature raising instruction is used to instruct the battery heating module to perform temperature raising processing; In the case of the first temperature rise charging condition, the electronic device further executes: sending second decision information to the battery temperature rise module through the logic control module, the second decision information includes an end temperature rise instruction, and the end temperature rise instruction It is used to instruct the battery temperature raising module not to perform temperature raising treatment. In this way, the electronic device can charge the battery while ensuring the safety and service life of the battery, thereby ensuring that the user can use the electronic device in a low-temperature environment and charge the electronic device, ensuring the safety of charging while ensuring the user's use.
在一种可能的实现方式中,所述电子设备还包括电池充电模块,在电池温度达到可充电范围的情况下,所述电子设备对所述电池进行充电,具体执行:通过所述逻辑控制模块基于所述电池温度确定充电电流;通过所述逻辑控制模块向所述电池充电模块发送第一充电指令,所述第一充电指令指示对所述电池进行充电,所述第一充电指令包括所述充电电流;通过所述电池充电模块基于所述充电电流对所述电池进行充电。这样,逻辑控制模块可以向保证电池温度对应的充电电流处于安全范围内,保证充电安全性的同时,尽可能加热充电速度,提高充电效率。In a possible implementation manner, the electronic device further includes a battery charging module, and when the temperature of the battery reaches a chargeable range, the electronic device charges the battery, and specifically executes: through the logic control module Determine the charging current based on the battery temperature; send a first charging instruction to the battery charging module through the logic control module, the first charging instruction indicates charging the battery, and the first charging instruction includes the Charging current: the battery is charged by the battery charging module based on the charging current. In this way, the logic control module can ensure that the charging current corresponding to the battery temperature is within a safe range, while ensuring charging safety, the charging speed can be heated as much as possible, and the charging efficiency can be improved.
在一种可能的实现方式中,所述电子设备通过所述逻辑控制模块基于所述电池温度确定充电电流,具体执行:通过所述逻辑控制模块基于第一映射关系确定所述电池温度对应的充电电流;其中,所述逻辑控制模块存储有所述第一映射关系,所述第一映射关系为电池温度与充电电流之间的映射关系。这样,逻辑控制模块可以向保证电池温度对应的充电电流处于安全范围内,保证充电安全性的同时,尽可能加热充电速度,提高充电效率。In a possible implementation manner, the electronic device uses the logic control module to determine the charging current based on the battery temperature, and specifically performs: the logic control module determines the charging current corresponding to the battery temperature based on the first mapping relationship. current; wherein, the logic control module stores the first mapping relationship, and the first mapping relationship is a mapping relationship between battery temperature and charging current. In this way, the logic control module can ensure that the charging current corresponding to the battery temperature is within a safe range, while ensuring charging safety, the charging speed can be heated as much as possible, and the charging efficiency can be improved.
第三方面,电池、一个或多个处理器和一个或多个存储器;所述一个或多个处理器与所述一个或多个存储器耦合,所述一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行上述任一方面任一项可能的实现方式中的充电方法。In a third aspect, a battery, one or more processors, and one or more memories; the one or more processors are coupled to the one or more memories, and the one or more memories are used to store computer program codes The computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device is made to execute the charging method in any possible implementation manner of any of the above aspects.
第四方面,本申请提供了一种电子设备,包括:一个或多个功能模块。一个或多个功能模块用于执行上述任一方面任一项可能的实现方式中的充电方法。In a fourth aspect, the present application provides an electronic device, including: one or more functional modules. One or more functional modules are used to execute the charging method in any possible implementation manner of any of the above aspects.
第五方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得通信装置执行上述任一方面任一项可能的实现方式中的充电方法。In a fifth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are run on the electronic device, cause the communication device to execute the charging method in any possible implementation of any one of the above aspects.
第六方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任一项可能的实现方式中的充电方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the charging method in any possible implementation manner of any one of the above aspects.
附图说明Description of drawings
图1是本申请实施例提供的一种电子设备100的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application;
图2是本申请实施例提供的一种电子设备100的软件结构示意图;FIG. 2 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;
图3是本申请实施例提供的一种电子设备100的低温充电系统的结构框架示意图;FIG. 3 is a schematic structural frame diagram of a low-temperature charging system for an electronic device 100 provided in an embodiment of the present application;
图4A和图4B是本申请实施例提供的一组低温充电的方法流程示意图;Figure 4A and Figure 4B are schematic flow charts of a set of low-temperature charging methods provided by the embodiments of the present application;
图5是本申请实施例提供的一种电池升温的方法流程示意图;Fig. 5 is a schematic flowchart of a method for raising the temperature of a battery provided in an embodiment of the present application;
图6是本申请实施例提供的一种加热处理的方法流程示意图。Fig. 6 is a schematic flow chart of a heat treatment method provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in the text is only a description of associated objects The association relationship indicates that there may be three kinds of relationships, for example, A and/or B, which may indicate: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the "multiple" The meaning is two or more.
下面介绍本申请实施例涉及的装置。The devices involved in the embodiments of the present application are introduced below.
图1为本申请实施例提供的一种电子设备100的硬件结构示意图。FIG. 1 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(Universal Serial Bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(Subscriber Identification Module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (Subscriber Identification Module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor,AP),调制解调处理器,图形处理器(Graphics Processingunit,GPU),图像信号处理器(Image Signal Processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing unit, GPU), an image signal processor ( Image Signal Processor, ISP), controller, memory, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
可理解,处理器110中还可以包括AE系统。AE系统可以具体设置在ISP中。AE系统可用于实现曝光参数的自动调整。可选的,AE系统还可以集成在其它处理器芯片中。本申请实施例对此不作限定。Understandably, the processor 110 may also include an AE system. The AE system can be specifically set in the ISP. The AE system can be used to realize automatic adjustment of exposure parameters. Optionally, the AE system may also be integrated in other processor chips. This embodiment of the present application does not limit it.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备100,例如AR设备等。In some embodiments, processor 110 may include one or more interfaces. The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices 100, such as AR devices.
充电管理模块140用于从充电器接收充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。在本申请实施例中,充电管理模块可以包括电池充电模块。The charging management module 140 is configured to receive a charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 . In the embodiment of the present application, the charging management module may include a battery charging module.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (Low Noise Amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(WirelessLocal Area Networks,WLAN)(如无线保真(Wireless Fidelity,Wi-Fi)网络),蓝牙(Bluetooth,BT),全球导航卫星系统(Global Navigation Satellite System,GNSS),调频(Frequency Modulation,FM),近距离无线通信技术(Near Field Communication,NFC),红外技术(Infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area network (WirelessLocal Area Networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (Bluetooth, BT), global navigation satellite system, etc. applied on the electronic device 100. (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field communication technology (Near Field Communication, NFC), infrared technology (Infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD),有机发光二极管(Organic Light-EmittingDiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-MatrixOrganic Light Emitting Diode的,AMOLED),柔性发光二极管(Flex Light-EmittingDiode,FLED),Mini LED,Micro LED,Micro-OLED,量子点发光二极管(Quantum Dot LightEmitting Diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (Active-MatrixOrganic Light-Emitting Diode). , AMOLED), flexible light-emitting diode (Flex Light-EmittingDiode, FLED), Mini LED, Micro LED, Micro-OLED, quantum dot light-emitting diode (Quantum Dot LightEmitting Diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现获取功能。The electronic device 100 may realize the acquisition function through an ISP, a camera 193 , a video codec, a GPU, a display screen 194 , and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像或视频。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image or video visible to the naked eye. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(Charge Coupled Device,CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像或视频信号。ISP将数字图像或视频信号输出到DSP加工处理。DSP将数字图像或视频信号转换成标准的RGB,YUV等格式的图像或视频信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。例如,在一些实施例中,电子设备100可以利用N个摄像头193获取多个曝光系数的图像,进而,在视频后处理中,电子设备100可以根据多个曝光系数的图像,通过HDR技术合成HDR图像。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a Charge Coupled Device (Charge Coupled Device, CCD) or a Complementary Metal-Oxide-Semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image or video signal. ISP outputs digital image or video signal to DSP for processing. DSP converts digital images or video signals into standard RGB, YUV and other formats of images or video signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1. For example, in some embodiments, the electronic device 100 can use N cameras 193 to acquire images with multiple exposure coefficients, and then, in video post-processing, the electronic device 100 can synthesize HDR images using the HDR technology based on the images with multiple exposure coefficients. image.
数字信号处理器用于处理数字信号,除了可以处理数字图像或视频信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image or video signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像视频播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image and video playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
传感器模块180可以包括1个或多个传感器,这些传感器可以为相同类型或不同类型。可理解,图1所示的传感器模块180仅为一种示例性的划分方式,还可能有其他划分方式,本申请对此不作限制。The sensor module 180 may include one or more sensors, which may be of the same type or of different types. It can be understood that the sensor module 180 shown in FIG. 1 is only an exemplary division manner, and there may be other division manners, which are not limited in the present application.
温度传感器180J用于检测温度。The temperature sensor 180J is used to detect temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
图2为本申请实施例提供的一种电子设备100的软件结构示意图。FIG. 2 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将系统分为四层,从上至下分别为应用程序层,应用程序框架层,运行时(Runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the system is divided into four layers, which are application program layer, application program framework layer, runtime (Runtime) and system library, and kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,地图,天气,WLAN,蓝牙,音乐,时钟,通话,短信等应用程序(也可以称为应用)。As shown in FIG. 2, the application package may include application programs (also called applications) such as camera, gallery, calendar, map, weather, WLAN, Bluetooth, music, clock, call, and text message.
应用程序框架层为应用程序层的应用程序提供应用编程接口(ApplicationProgramming Interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (Application Programming Interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器和活动管理器等。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。As shown in Figure 2, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager and activity manager, etc. A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
运行时(Runtime)包括核心库和虚拟机。Runtime负责系统的调度和管理。Runtime (Runtime) includes the core library and virtual machine. Runtime is responsible for the scheduling and management of the system.
系统库包含两部分:一部分是编程语言(例如,java语言)需要调用的功能函数,另一部分是系统的系统库。The system library includes two parts: one part is the function function that the programming language (for example, java language) needs to call, and the other part is the system library of the system.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的编程文件(例如,java文件)执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes programming files (for example, java files) of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
内核层(Kennel层)是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,虚拟卡驱动。Kernel layer (Kennel layer) is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a virtual card driver.
在本申请实施例中,内核层可以包括电池升温模块、逻辑控制模块、电池充电模块、显示驱动、传感器驱动等模块。In the embodiment of the present application, the kernel layer may include modules such as a battery heating module, a logic control module, a battery charging module, a display driver, and a sensor driver.
其中,电池升温模块用于控制温度的提升。具体地,电池升温模块可以获取处理器(CPU)的温度(即,核温),可以基于CPU的温度情况控制处理器进行加热。Among them, the battery heating module is used to control the temperature increase. Specifically, the battery warming module can obtain the temperature (ie, core temperature) of the processor (CPU), and can control the processor to heat based on the temperature of the CPU.
逻辑控制模块用于控制电池升温模块进行温度提升。The logic control module is used to control the battery temperature raising module to raise the temperature.
电池充电模块用于电子设备的电池进行充电。The battery charging module is used for charging the battery of electronic equipment.
显示驱动可以控制显示屏进行显示,本申请实施例中,显示驱动可以确定显示屏的屏幕状态。The display driver can control the display screen to display. In the embodiment of the present application, the display driver can determine the screen state of the display screen.
传感器驱动可以控制传感器采集相关信息,本申请实施例中,可以包括温度传感器的传感器驱动。The sensor driver may control the sensor to collect related information, and in the embodiment of the present application, may include the sensor driver of the temperature sensor.
硬件层可以包括处理器模块、环境温度传感器、显示屏、电池模块等。The hardware layer may include a processor module, an ambient temperature sensor, a display screen, a battery module, and the like.
其中,处理器模块用于控制电池模块的温度,以使得电池温度处于能够充电的温度条件。Wherein, the processor module is used to control the temperature of the battery module, so that the temperature of the battery is in a charging temperature condition.
电池在低温情况下电池无法充电,例如,锂电池的化学特性表明,处于低温环境中的锂电池充电会对电池安全或者电池寿命产生极大影响。例如,低温充电会造成电池电量的衰退或者电池鼓包甚至爆炸等情况。Batteries cannot be charged at low temperatures. For example, the chemical characteristics of lithium batteries show that charging lithium batteries in low temperature environments will have a great impact on battery safety or battery life. For example, charging at low temperature will cause the battery power to decline or the battery will bulge or even explode.
针对上述的问题,本申请实施例公开一种低温充电方法和电子设备。电子设备可以采集环境温度、屏幕状态和充电信息,基于这些信息判断当前能否升温,或者是否结束升温。在进行升温的情况下,电子设备可以基于处理器的核温和加热时长进行加热,热量均衡板可以将热量传导到电池,在电池温度加热到能够充电的情况下,可以开始进行充电。这样,电子设备能够在低温中,通过处理器满负荷运行进行加热,保证电子设备能够处于低温环境中,也可以加热电池,进行充电,以保证低温环境中的电子设备的正常使用,以及电子设备的充电安全。In view of the above problems, the embodiments of the present application disclose a low-temperature charging method and an electronic device. Electronic devices can collect ambient temperature, screen status, and charging information, and based on these information, determine whether the current temperature can be raised, or whether to end the heating. In the case of heating up, the electronic device can be heated based on the core temperature of the processor and the heating time. The heat equalization board can conduct heat to the battery. When the battery temperature is heated enough to be charged, the charging can be started. In this way, the electronic equipment can be heated at low temperature through the full load operation of the processor to ensure that the electronic equipment can be in a low temperature environment, and the battery can also be heated and charged to ensure the normal use of the electronic equipment in the low temperature environment, and the electronic equipment charging safety.
下面结合低温充电场景,图3示例性地公开一种电子设备100的低温充电系统的结构框架示意图,结合图3说明电子设备100进行低温充电的工作流程。Referring to the low-temperature charging scenario, FIG. 3 exemplarily discloses a structural framework diagram of a low-temperature charging system for the electronic device 100 , and describes the workflow of the low-temperature charging of the electronic device 100 with reference to FIG. 3 .
如图3所示,低温充电系统可以包括电池升温模块、逻辑控制模块、硬件模块和电池充电模块。As shown in Fig. 3, the low temperature charging system may include a battery heating module, a logic control module, a hardware module and a battery charging module.
其中,硬件模块可以包括处理器模块、环境温度传感器、显示屏、电池模块等等。Wherein, the hardware module may include a processor module, an ambient temperature sensor, a display screen, a battery module, and the like.
处理器模块可以包括中央处理器(center processing unit,CPU)(未示出)、核温传感器、热量均衡器。The processor module may include a central processing unit (center processing unit, CPU) (not shown), a core temperature sensor, and a heat balancer.
CPU作为计算机系统的运算和控制核心,是信息处理、程序运行的最终执行单元。As the computing and control core of the computer system, the CPU is the final execution unit for information processing and program operation.
热量均衡器,也称均热板或者导热板,具有发热过程中热量传导的功能,可以将处理器的热量散开。The thermal equalizer, also called vapor chamber or heat conduction plate, has the function of heat conduction during the heating process, and can dissipate the heat of the processor.
核温传感器用于测量处理器的温度(即测量核温)。The core temperature sensor is used to measure the temperature of the processor (that is, to measure the core temperature).
在本申请实施例中,电子设备能够通过控制CPU的运行将电池的温度进行调控。例如,当CPU满负荷运行的时候,CPU发热,核温传感器能够检测到CPU的温度在提升,同时,均热板能够将热量传导到电池,使得电池温度提升。In the embodiment of the present application, the electronic device can regulate the temperature of the battery by controlling the operation of the CPU. For example, when the CPU is running at full load, the CPU heats up, and the core temperature sensor can detect that the temperature of the CPU is increasing. At the same time, the vapor chamber can conduct heat to the battery, making the battery temperature increase.
环境温度传感器用于检测环境温度,例如,室内温度或者电子设备所处的环境温度。当环境温度较低时,电子设备可以检测当前低温的具体温度(比如,5℃)。The ambient temperature sensor is used to detect the ambient temperature, for example, the indoor temperature or the ambient temperature where the electronic equipment is located. When the ambient temperature is low, the electronic device can detect the specific temperature of the current low temperature (for example, 5° C.).
显示屏可以处于亮屏或灭屏任意一种屏幕状态,显示驱动能够获取显示屏的屏幕状态。The display screen can be in any screen state of on screen or off screen, and the display driver can obtain the screen state of the display screen.
电池模块可以包括电池(未示出)、传感器1、传感器2、充电端口模块和电量计。The battery module may include a battery (not shown), sensor 1 , sensor 2 , a charging port module, and a fuel gauge.
电池为电子设备各个模块的运行提供电量,例如,电池为显示屏和处理器供电。Batteries provide power to run various modules of electronic equipment, for example, batteries power displays and processors.
充电端口模块是为电池进行充电的端口,充电器可以通过充电端口模块与电池相连进行充电。电池端口模块对于不同的电子设备是不同的接口,例如安卓手机的type-c接口等等。充电器的类型也可以不同,例如功率大的快充充电器和功率较小的慢充充电器等。The charging port module is a port for charging the battery, and the charger can be connected to the battery through the charging port module for charging. The battery port module has different interfaces for different electronic devices, such as the type-c interface of Android mobile phones and so on. The types of chargers can also be different, for example, a high-power fast-charge charger and a low-power slow-charge charger.
传感器1是电池温度传感器,用于测量电池的温度。Sensor 1 is a battery temperature sensor for measuring the temperature of the battery.
传感器2是充电端口温度传感器,用于测量充电端口的温度。Sensor 2 is a charging port temperature sensor that measures the temperature of the charging port.
电量计可以测量电子设备的电池电量。A fuel gauge measures the battery charge of an electronic device.
本申请实施例中,电池模块可以获取到的数据有环境温度、屏幕状态和充电信息。充电信息可以包括电池温度、充电端口温度、电池电量、充电器类型和充电端口类型等其中的一种或多种。In the embodiment of the present application, the data that the battery module can acquire include ambient temperature, screen status, and charging information. The charging information may include one or more of battery temperature, charging port temperature, battery power, charger type, charging port type, and the like.
其中,逻辑控制模块可以包括数据采集模块,升温决策模块和第一消息收发模块。Wherein, the logic control module may include a data collection module, a temperature rise decision module and a first message sending and receiving module.
数据采集模块可以采集来自硬件模块的环境温度、屏幕状态和充电信息等数据。The data acquisition module can collect data such as ambient temperature, screen status and charging information from the hardware module.
升温决策模块能够基于数据采集模块采集的环境温度、屏幕状态和充电信息等数据判断是否提升电池温度或者是否停止升温电池温度,基于判断结果,能够生成决策信息。决策信息表征提升电池温度或者停止提升电池温度,即可以包括升温指令和停止升温指令。The temperature rise decision-making module can judge whether to raise the battery temperature or whether to stop raising the battery temperature based on the data collected by the data acquisition module such as the ambient temperature, screen status, and charging information, and can generate decision information based on the judgment result. The decision information represents raising the battery temperature or stopping raising the battery temperature, that is, it may include a temperature raising instruction and a temperature raising instruction.
第一消息收发模块可以与电池升温模块进行信息的交互。例如,逻辑控制模块可以通过第一消息收发模块向电池升温系统的第二消息收发模块发送决策信息或者接收来自第二消息收发模块的决策信息的回复消息。The first message transceiving module can exchange information with the battery heating module. For example, the logic control module may send decision information to the second message transceiver module of the battery heating system through the first message transceiver module or receive a reply message of the decision information from the second message transceiver module.
其中,电池升温模块可以包括加热控制模块、第二消息收发模块。Wherein, the battery heating module may include a heating control module and a second message sending and receiving module.
加热控制模块可以基于决策信息和核温控制热时长和加热温度,即加热控制模块可以向处理器模块发送运行指令,处理器能够基于运行指令运行CPU,进行加热或者停止加热;The heating control module can control the heating duration and heating temperature based on decision information and core temperature, that is, the heating control module can send operating instructions to the processor module, and the processor can run the CPU based on the operating instructions to perform heating or stop heating;
加热控制模块可以包括累积加热次数监测模块(未示出),累积加热次数监测模块可以用于确定CPU进行加热的次数;加热控制模块可以包括加热时长监测模块(未示出),加热时长监测模块可以用于确定CPU进行加热的时长;The heating control module can include a cumulative heating times monitoring module (not shown), and the cumulative heating times monitoring module can be used to determine the number of times the CPU heats; the heating control module can include a heating duration monitoring module (not shown), and the heating duration monitoring module Can be used to determine the duration of CPU heating;
加热控制模块可以包括核温监测模块(未示出),核温监测模块可以用于获取处理器温度传感器采集的核温。The heating control module may include a core temperature monitoring module (not shown), and the core temperature monitoring module may be used to obtain the core temperature collected by the processor temperature sensor.
第二消息收发模块可以与逻辑控制模块的第一消息收发模块进行信息的交互。例如,电池升温模块可以通过第二消息收发模块接收来自逻辑控制模块的第一消息收发模块的决策信息;基于可以向第二消息收发模块发送决策信息的回复消息。The second message sending and receiving module can exchange information with the first message sending and receiving module of the logic control module. For example, the battery warming module may receive decision information from the first messaging module of the logic control module through the second messaging module; based on a reply message, the decision information may be sent to the second messaging module.
其中,电池充电模块可以对电池进行充电。逻辑控制模块可以向电池充电模块发送充电指令,电池充电模块接收到充电指令之后,可以基于充电指令进行充电。Wherein, the battery charging module can charge the battery. The logic control module can send a charging command to the battery charging module, and the battery charging module can charge based on the charging command after receiving the charging command.
此外,唤醒锁是一种控制主机设备电源状态的软件机制。在增加充电唤醒锁之后,可以阻止电子设备进行睡眠模式,只要系统上有活动的唤醒锁,电子设备无法进行挂起模式,除非释放唤醒锁。在本申请实施中,电子设备进入睡眠状态之后,唤醒锁能够将其唤醒,使得逻辑控制模块继续处理任务;在应用或者软件需要结束任务处理的情况下,电子设备就可以释放已有的唤醒锁,电子设备可以进入睡眠模式。Additionally, a wakelock is a software mechanism that controls the power state of the host device. After adding a charging wake lock, electronic devices can be prevented from going into sleep mode, and as long as there is an active wake lock on the system, electronic devices cannot go into suspend mode unless the wake lock is released. In the implementation of this application, after the electronic device enters the sleep state, the wake lock can wake it up, so that the logic control module continues to process the task; when the application or software needs to end the task processing, the electronic device can release the existing wake lock , the electronic device can enter sleep mode.
结合图3所示的低温充电系统结构,图4A本申请实施例提供一种低温充电的方法流程示意图。如图4A所示,电子设备可以包括电池升温模块、逻辑控制模块和电池充电模块,各个模块可以参考上述的图2和图3的相关描述,不赘述。该低温充电方法可以包括但不限于以下步骤:Combining with the low-temperature charging system structure shown in FIG. 3 , FIG. 4A provides a schematic flowchart of a low-temperature charging method according to an embodiment of the present application. As shown in FIG. 4A , the electronic device may include a battery heating module, a logic control module, and a battery charging module. For each module, reference may be made to the above-mentioned descriptions in FIG. 2 and FIG. 3 , and details will not be repeated. The low temperature charging method may include but not limited to the following steps:
S401:电子设备通过逻辑控制模块获取第一信息。S401: The electronic device acquires first information through a logic control module.
第一信息可以包括环境温度、屏幕状态和充电信息中的一种或多种。逻辑控制模块的数据采集模块可以采集来自环境温度传感器的环境温度、采集(通过显示驱动)显示屏屏幕状态,以及采集电池模块的充电信息。其中,充电信息可以包括电池温度、充电端口温度、电池电量、充电器类型和充电端口类型、电池电流等其中的一种或多种。第一信息的具体获取过程可以参考图3中的相关描述,不赘述。The first information may include one or more of ambient temperature, screen status and charging information. The data acquisition module of the logic control module can collect the ambient temperature from the ambient temperature sensor, collect (via display driver) the display screen status, and collect charging information of the battery module. Wherein, the charging information may include one or more of battery temperature, charging port temperature, battery power, charger type and charging port type, battery current, and the like. For the specific acquisition process of the first information, reference may be made to the relevant description in FIG. 3 , and details are not repeated.
一种可能的实施方式中,第一信息可以包括环境温度、屏幕状态和充电信息。电子设备可以周期性地(例如,每10min)获取环境温度,在环境温度小于(或者小于等于)环境阈值温度的条件下,才获取屏幕状态和充电信息。在环境温度信息大于或等于(或者大于)环境阈值温度的条件下,不需要获取其他第一信息(即屏幕状态和充电信息)。此时,获取屏幕状态和充电信息需要满足小于环境阈值温度的条件,保证获取的信息的必要性,可以节约处理资源,提高处理准确度。此外,周期性地获取环境温度能够保证获取环境温度的及时性。In a possible implementation manner, the first information may include ambient temperature, screen status, and charging information. The electronic device may acquire the ambient temperature periodically (for example, every 10 minutes), and acquire the screen status and charging information only when the ambient temperature is less than (or less than or equal to) the environmental threshold temperature. Under the condition that the ambient temperature information is greater than or equal to (or greater than) the ambient threshold temperature, there is no need to obtain other first information (ie, screen status and charging information). At this time, obtaining the screen status and charging information needs to satisfy the condition that the temperature is lower than the ambient threshold temperature to ensure the necessity of the obtained information, which can save processing resources and improve processing accuracy. In addition, periodically obtaining the ambient temperature can ensure the timeliness of obtaining the ambient temperature.
其中,逻辑控制模块可以存储有环境阈值温度。Wherein, the logic control module may store the ambient threshold temperature.
S402:在尚未进行升温加热的情况下,电子设备通过逻辑控制模块基于第一信息判断是否满足第一升温充电条件。在满足第一升温充电条件下,执行S403;在不满足第一升温充电条件下,不执行。S402: In the case that heating has not been performed, the electronic device judges whether the first temperature-raising charging condition is satisfied based on the first information through the logic control module. If the first temperature-raising charging condition is met, execute S403; if the first temperature-raising charging condition is not satisfied, do not execute.
逻辑控制模块的数据采集模块获取到第一信息之后,可以向其升温决策模块发送第一信息。升温决策模块可以判断第一信息是否满足第一升温充电条件。在满足第一升温充电条件的情况下,逻辑控制模块的升温决策模块确定升温,并生成第一决策信息。在不满足第一升温充电条件的情况下,逻辑控制模块的升温决策模块不做处理,也不生成决策信息。After the data acquisition module of the logic control module acquires the first information, it can send the first information to its temperature increase decision module. The temperature rise decision module can judge whether the first information meets the first temperature rise charging condition. When the first temperature-raising charging condition is met, the temperature-raising decision-making module of the logic control module determines the temperature-raising and generates first decision information. If the first temperature-rising charging condition is not satisfied, the temperature-rising decision-making module of the logic control module does not process and does not generate decision-making information.
一种可能的实施方式中,在第一信息包括环境温度、屏幕状态和充电信息的情况下,第一升温充电条件可以包括充电器接入、屏幕状态处于灭屏、电池电量处于预设电量范围、充电类型处于预设充电类型、环境温度小于环境阈值温度的条件、电池电流小于充电阈值电流的条件、以及电池温度与充电端口温度之间的差值以及电池温度处于预设范围的条件等其中一种或多种条件。In a possible implementation, when the first information includes ambient temperature, screen status, and charging information, the first warm-up charging condition may include charger access, the screen status is off, and the battery power is within a preset power range , the charging type is the preset charging type, the condition that the ambient temperature is less than the ambient threshold temperature, the condition that the battery current is less than the charging threshold current, the difference between the battery temperature and the charging port temperature, and the condition that the battery temperature is in the preset range, etc. one or more conditions.
需要说明的是,第一信息与第一升温充电条件往往是对应的,在存在相应第一信息的时候,才会有第一升温充电条件的判断。例如,若第一信息包括环境温度,第一升温充电条件包括环境温度低于环境阈值温度的条件。若第一信息包括屏幕状态,第一升温充电条件包括屏幕状态为灭屏状态的条件,S402中第一升温充电条件中存在对屏幕状态的判断。若第一信息不存在屏幕状态,第一升温充电条件中不存在对屏幕状态的判断条件。若第一信息包括电池温度及所述充电端口温度,第一升温充电条件包括电池温度与充电端口温度之间的差值处于第一预设范围内,且电池温度处于第二预设范围内的条件。若第一信息包括电池电量,第一升温充电条件包括电池电量处于预设电量范围内的条件。若第一信息包括电池电流,第一升温充电条件包括电池电流大于充电阈值电流的条件。若第一信息包括所述充电类型,第一升温充电条件包括充电类型为预设充电类型的条件。It should be noted that the first information often corresponds to the first temperature-rising charging condition, and the first temperature-rising charging condition will be judged only when there is corresponding first information. For example, if the first information includes ambient temperature, the first warming-up charging condition includes a condition that the ambient temperature is lower than the ambient threshold temperature. If the first information includes the screen state, the first warming-up charging condition includes a condition that the screen state is an off-screen state, and there is a judgment on the screen state in the first warming-up charging condition in S402. If there is no screen state in the first information, there is no condition for judging the screen state in the first heating and charging condition. If the first information includes the battery temperature and the charging port temperature, the first warm-up charging condition includes that the difference between the battery temperature and the charging port temperature is within a first preset range, and the battery temperature is within a second preset range condition. If the first information includes battery power, the first temperature-raising charging condition includes a condition that the battery power is within a preset power range. If the first information includes battery current, the first temperature-raising charging condition includes a condition that the battery current is greater than a charging threshold current. If the first information includes the charging type, the first heating charging condition includes a condition that the charging type is a preset charging type.
S403:电子设备通过逻辑控制模块向电池升温模块发送第一决策信息。S403: The electronic device sends the first decision information to the battery heating module through the logic control module.
在逻辑控制模块生成第一决策信息之后,升温决策模块可以向其第一消息收发模块发送第一决策信息。逻辑控制模块的第一消息收发模块可以向电池升温模块的第二消息收发模块发送第一决策信息。对应地,电池升温模块的第二消息收发模块可以接收来自逻辑控制模块的第一消息收发模块的第一决策信息。After the logic control module generates the first decision information, the temperature increase decision module may send the first decision information to its first message transceiving module. The first messaging module of the logic control module may send the first decision information to the second messaging module of the battery warming module. Correspondingly, the second message transceiving module of the battery warming module may receive the first decision information from the first message transceiving module of the logic control module.
其中,第一决策信息包括升温指令,升温指令用于指示电池升温模块对电池进行升温处理。Wherein, the first decision information includes a temperature raising instruction, and the temperature raising instruction is used to instruct the battery heating module to perform temperature raising processing on the battery.
电池升温模块的第二消息收发模块接收来自逻辑控制模块的第一消息收发模块的第一决策信息。示例性地,第二消息收发模块可以按照第一周期时长检测是否接收到决策信息。在第二消息收发模块接收到决策信息的情况下,可以向其加热控制模块发送决策信息。否则,不发送。其中,加热控制模块可以基于决策信息的相关指令(例如,升温指令或者结束升温指令)进行加热或者停止加热。The second messaging module of the battery warming module receives the first decision information from the first messaging module of the logic control module. Exemplarily, the second message transceiving module may detect whether decision information is received according to the first cycle duration. In case the second messaging module receives the decision information, it may send the decision information to its heating control module. Otherwise, do not send. Wherein, the heating control module may perform heating or stop heating based on relevant instructions of the decision information (for example, a temperature raising instruction or an end temperature raising instruction).
S404:电子设备通过电池升温模块向逻辑控制模块发送第一回复消息。S404: The electronic device sends a first reply message to the logic control module through the battery heating module.
可选地,电池升温模块通过第二消息收发模块接收到来自逻辑控制模块的第一消息收发模块的第一决策信息之后,可以向逻辑控制模块的第一消息收发模块发送第一回复消息。对应地,逻辑控制模块的第一消息收发模块可以接收来自电池升温模块的第二消息收发模块发送的第一回复消息。Optionally, after receiving the first decision information from the first message transceiving module of the logic control module through the second message transceiving module, the battery warming module may send the first reply message to the first message transceiving module of the logic control module. Correspondingly, the first message transceiving module of the logic control module may receive the first reply message sent by the second message transceiving module of the battery warming module.
其中,第一回复消息为针对于第一决策信息的反馈消息,用于确定电池升温模块已经接收到第一决策消息。Wherein, the first reply message is a feedback message for the first decision information, and is used to determine that the battery warming module has received the first decision message.
S405:电子设备通过电池升温模块获取第二信息。S405: The electronic device obtains the second information through the battery heating module.
电子设备的电池升温模块接收到第一决策信息之后,可以开始获取第二信息。第二信息可以包括处理器温度(即核温),处理器的加热时长,以及当前已经执行过的处理器升温次数等一种或多种。其中,核温可以通过处理器模块的核温传感器采集获取,加热时长也可以通过处理器模块获得。电池升温模块可以存储有处理器的升温次数,电池升温模块可以直接获取处理器的升温次数的信息。第二信息的获取过程可以参考图3中的相关描述,不赘述。After receiving the first decision information, the battery warming module of the electronic device may start to acquire the second information. The second information may include one or more of processor temperature (that is, core temperature), processor heating duration, and the number of times the processor has been heated up so far. Among them, the core temperature can be acquired through the core temperature sensor of the processor module, and the heating time can also be obtained through the processor module. The battery heating module can store the temperature raising times of the processor, and the battery heating module can directly obtain the information of the temperature raising times of the processor. For the acquisition process of the second information, reference may be made to the relevant description in FIG. 3 , and details are not repeated here.
S406:电子设备通过电池升温模块基于第一决策信息和第二信息控制处理器运行加热。S406: The electronic device controls the processor to run heating through the battery heating module based on the first decision information and the second information.
电子设备在获取到第一决策信息的情况下,可以基于第二信息控制处理器运行,使得处理器的热量加热电池使得电池升温。When the electronic device acquires the first decision information, it can control the operation of the processor based on the second information, so that the heat of the processor heats the battery to increase the temperature of the battery.
一种可能的实施方式中,若所述处理器的累计加热次数小于或等于设定轮次,电子设备在当前轮次的加热总时长以内控制所述处理器周期性地运行加热。即电子设备需要在运行加热的过程中,电池升温模块可以保证累积加热次数在设定次数之内的情况下,检测加热时长和核温情况。在一轮加热过程中,电池升温模块可以保证核温处于预设核温范围之内,控制处理器按照特定的频次或周期进行运行,在加热时长达到加热总时长的情况下,可以结束一轮加热。这样,可以保证处理器正常使用运行加热的同时,保证核温和累积加热次数的限制,确保处理器的寿命和使用。In a possible implementation manner, if the cumulative heating times of the processor is less than or equal to the set round, the electronic device controls the processor to run heating periodically within the total heating duration of the current round. That is to say, during the heating process of electronic equipment, the battery heating module can detect the heating time and core temperature when the accumulated heating times are within the set times. During one round of heating, the battery heating module can ensure that the core temperature is within the preset core temperature range, and the control processor operates according to a specific frequency or cycle. When the heating time reaches the total heating time, one round can be ended. heating. In this way, it is possible to ensure that the processor is heated during normal use and at the same time, the limit of the nuclear temperature and the cumulative heating times can be guaranteed, and the life and use of the processor can be ensured.
需要说明的是,S405和S406的执行由于存在小的执行周期,因此可以不限定时间上执行的先后顺序,例如,在按照上一周期获取的第二信息进行加热的同时,还需要获取下一周期的第二信息,其中,第二信息获取的次数和间隔时长均不加限定。It should be noted that the execution of S405 and S406 has a small execution cycle, so the order of execution in time may not be limited. For example, while heating according to the second information obtained in the previous cycle, it is also necessary to obtain the next Periodic second information, wherein the number of times and intervals between acquisitions of the second information are not limited.
S407:电子设备通过逻辑控制模块向电池充电模块发送第一充电指令。S407: The electronic device sends a first charging instruction to the battery charging module through the logic control module.
逻辑控制模块确定满足第一升温充电条件的情况下,可以基于第一信息生成第一充电指令,之后可以向电池充电模块发送第一充电指令。对应地,电池充电模块可以接收来自逻辑控制模块的第一充电指令。第一充电指令包括充电电流。在此之前,电子设备的逻辑控制模块可以基于电池温度确定充电电流,其中,逻辑控制模块获取的第一信息中包括电池温度。When the logic control module determines that the first temperature-rising charging condition is met, the first charging instruction can be generated based on the first information, and then the first charging instruction can be sent to the battery charging module. Correspondingly, the battery charging module may receive the first charging instruction from the logic control module. The first charging command includes a charging current. Before this, the logic control module of the electronic device may determine the charging current based on the battery temperature, wherein the first information acquired by the logic control module includes the battery temperature.
电子设备可以通过逻辑控制模块确定当前电池温度在可充电温度范围的情况下,可以向电池升温模块发送第一充电指令。在电池升温模块接收到第一充电指令之后,可以基于当前充电电流进行充电。The electronic device may send a first charging instruction to the battery temperature raising module when it is determined by the logic control module that the current battery temperature is within a chargeable temperature range. After the battery warming module receives the first charging instruction, it can charge based on the current charging current.
具体地,在进行加热的过程中,电子设备可以通过逻辑控制模块确定电池温度,之后可以基于电池温度与充电电流范围的映射关系确定当前电池温度对应的充电电流。表1是本申请实施例示例性地公开的一种电池温度与充电电流之间的映射关系表(即第一映射关系),在确定电池温度之后,电子设备可以通过逻辑控制模块确定电池充电时的充电电流。逻辑控制模块存储有这个表格,确定电流,让充电模块按照这一个电流进行充电。Specifically, during the heating process, the electronic device can determine the battery temperature through the logic control module, and then determine the charging current corresponding to the current battery temperature based on the mapping relationship between the battery temperature and the charging current range. Table 1 is a mapping relationship between battery temperature and charging current disclosed in an exemplary embodiment of the present application (that is, the first mapping relationship). After determining the battery temperature, the electronic device can determine the charging time of the battery through the logic control module. the charging current. The logic control module stores this table, determines the current, and makes the charging module charge according to this current.
表1Table 1
如表1所示,随着电池温度的增加,在电池温度0摄氏度以下,电子设备可以通过逻辑控制模块控制确定充电电流为0,不充电;在电池温度进行0~5摄氏度之后,电子设备可以通过逻辑控制模块确定的充电电流为1200及以下;在电池温度进行5~10摄氏度之后,电子设备可以通过逻辑控制模块确定充电电流为2500及以下;在电池温度进行10~15摄氏度之后,电子设备可以通过逻辑控制模块确定充电电流为4000及以下;在电池温度进行15~50摄氏度之后,电子设备可以通过逻辑控制模块确定电池的不限制充电电流,此时电池可以进入快充;在电池温度进行达到50摄氏度以上,不充电。这样,逻辑控制模块可以向保证电池温度对应的充电电流处于安全范围内,保证充电安全性的同时,尽可能加热充电速度,提高充电效率。As shown in Table 1, as the battery temperature increases, when the battery temperature is below 0 degrees Celsius, the electronic device can be controlled by the logic control module to determine that the charging current is 0 and does not charge; when the battery temperature is 0 to 5 degrees Celsius, the electronic device can The charging current determined by the logic control module is 1200 and below; after the battery temperature is 5-10 degrees Celsius, the electronic device can determine the charging current is 2500 and below through the logic control module; after the battery temperature is 10-15 degrees Celsius, the electronic device The charging current can be determined to be 4000 and below through the logic control module; after the battery temperature is 15-50 degrees Celsius, the electronic device can determine the unlimited charging current of the battery through the logic control module, and the battery can enter fast charging at this time; Reach above 50 degrees Celsius without charging. In this way, the logic control module can ensure that the charging current corresponding to the battery temperature is within a safe range, while ensuring charging safety, the charging speed can be heated as much as possible, and the charging efficiency can be improved.
可选地,在电子设备的逻辑控制模块确定充电电流不为0的情况下,可以向电池充电模块发送第一充电指令;否则,不发送。从而可以保证发送指令的有效性。Optionally, when the logic control module of the electronic device determines that the charging current is not 0, it may send the first charging instruction to the battery charging module; otherwise, it does not send it. Thus, the validity of the sending instruction can be guaranteed.
S408:电子设备通过电池充电模块基于第一充电指令对电池进行充电。S408: The electronic device charges the battery through the battery charging module based on the first charging instruction.
第一充电指令包括充电电流,电子设备通过电池充电模块按照充电电流进行充电。The first charging instruction includes a charging current, and the electronic device is charged according to the charging current through the battery charging module.
其中,S407~S408与S403~S405的执行先后顺序不限定。Wherein, the execution order of S407-S408 and S403-S405 is not limited.
S409:在已经进行升温加热的情况下,在电子设备通过逻辑控制模块基于第一信息判断是否不满足第二升温充电条件;在不满足的条件下,执行S407,结束升温操作;在满足的条件下,不处理。S409: In the case that heating has been carried out, the electronic device judges whether the second temperature-raising charging condition is not satisfied based on the first information through the logic control module; if the condition is not satisfied, execute S407, and end the temperature-raising operation; Next, do not process.
在电池升温模块正处在控制处理器进行加热的情况下,逻辑控制模块可以在此期间一直采集第一信息。并判断第一信息是否不满足第二升温充电条件。在不满足的条件下,执行S407。When the battery heating module is controlling the processor for heating, the logic control module can collect the first information all the time during this period. And it is judged whether the first information does not satisfy the second heating charging condition. If the condition is not met, execute S407.
其中,第二升温充电条件可以为第一升温充电条件,具体可以参考上述S402,以及图5的相关描述,不赘述。Wherein, the second temperature-rising charging condition may be the first temperature-rising charging condition, for details, please refer to the above S402 and related descriptions in FIG. 5 , and details are not repeated here.
S410:电子设备通过逻辑控制模块向电池升温模块发送第二决策信息。S410: The electronic device sends second decision information to the battery heating module through the logic control module.
在逻辑控制模块生成第二决策信息之后,升温决策模块可以向第一消息收发模块发送第二决策信息。逻辑控制模块的第一消息收发模块可以向电池升温模块的第二消息收发模块发送第二决策信息。对应地,电池升温模块的第二消息收发模块可以接收来自逻辑控制模块的第一消息收发模块的第二决策信息。After the logic control module generates the second decision information, the temperature increase decision module may send the second decision information to the first message transceiving module. The first messaging module of the logic control module may send the second decision information to the second messaging module of the battery warming module. Correspondingly, the second message transceiving module of the battery warming module can receive the second decision information from the first message transceiving module of the logic control module.
第二决策信息包括结束升温指令,结束升温指令用于指示电池升温模块结束对电池当前的加热处理(不进行升温处理)。The second decision information includes an end temperature rise instruction, which is used to instruct the battery temperature rise module to end the current heating process on the battery (not to perform the temperature increase process).
S411:电子设备通过电池升温模块向逻辑控制模块发送第二回复消息。S411: The electronic device sends a second reply message to the logic control module through the battery warming module.
可选地,电池升温模块通过第二消息收发模块接收到来自逻辑控制模块的第一消息收发模块的第二决策信息之后,可以向逻辑控制模块的第一消息收发模块发送第二回复消息。对应地,逻辑控制模块的第一消息收发模块可以接收来自电池升温模块的第二消息收发模块发送的第二回复消息。Optionally, after receiving the second decision information from the first message transceiving module of the logic control module through the second message transceiving module, the battery warming module may send a second reply message to the first message transceiving module of the logic control module. Correspondingly, the first message transceiving module of the logic control module may receive the second reply message sent by the second message transceiving module of the battery warming module.
其中,第二回复消息为针对于第二决策信息的反馈消息,用于确定电池升温模块已经接收到第二决策消息。Wherein, the second reply message is a feedback message for the second decision information, and is used to determine that the battery warming module has received the second decision message.
S412:电子设备通过电池升温模块基于第二决策信息控制处理器结束运行加热处理。S412: The electronic device controls the processor through the battery heating module to end the heating process based on the second decision information.
电池升温模块获取到第二决策消息之后,可以控制处理器结束运行当前轮次的加热处理。After the battery warming module acquires the second decision message, it may control the processor to end the current round of heating treatment.
上述实施例中,电子设备能够保证电池安全和使用寿命的同时,为电池进行充电,从而能够保证用户能够在低温环境下使用电子设备,对电子设备进行充电,保证用户使用的同时,保证充电安全。In the above embodiments, the electronic device can charge the battery while ensuring the safety and service life of the battery, thereby ensuring that the user can use the electronic device in a low-temperature environment and charge the electronic device, ensuring the safety of charging while ensuring the user's use. .
S413:电子设备通过逻辑控制模块向电池充电模块发送第二充电指令。S413: The electronic device sends a second charging instruction to the battery charging module through the logic control module.
逻辑控制模块确定不满足第二升温充电条件的情况下,可以生成第二充电指令,第二充电指令指示停止充电。When the logic control module determines that the second temperature-rising charging condition is not met, a second charging instruction may be generated, and the second charging instruction instructs to stop charging.
S414:电子设备通过电池充电模块基于第二充电指令对电池停止充电。S414: The electronic device stops charging the battery through the battery charging module based on the second charging instruction.
电池充电模块接收到第二充电指令之后,可以确定停止对电池的充电。After the battery charging module receives the second charging instruction, it may determine to stop charging the battery.
其中,S413~S414与S410~S412的执行顺序不限定。Wherein, the execution order of S413-S414 and S410-S412 is not limited.
上述的过程中,在尚未进行升温加热的情况下,若不满足第一升温充电条件,逻辑控制模块不需要发送充电指令和决策信息;电池升温模块和电池充电模块维持不加热充电即可。在已经进行升温加热的情况下,若满足第二升温充电条件,逻辑控制模块不需要发送充电指令和决策信息;电池升温模块和电池充电模块维持加热充电即可。一方面能够有效控制加热和充电处理,另一方面,简化步骤,保证低温充电策略执行的高效性和简便性。In the above process, if the first heating and charging condition is not met before the heating and heating are performed, the logic control module does not need to send charging instructions and decision information; the battery heating module and the battery charging module can maintain charging without heating. In the case of heating and heating, if the second heating and charging condition is met, the logic control module does not need to send charging instructions and decision information; the battery heating module and the battery charging module can maintain heating and charging. On the one hand, it can effectively control the heating and charging process, on the other hand, it simplifies the steps to ensure the high efficiency and simplicity of low-temperature charging strategy execution.
上述实施例中,电子设备能够在低温环境中进行充电,保证用户的能正常使用的同时,保证电池和处理器的安全性。In the above embodiments, the electronic device can be charged in a low-temperature environment, ensuring the normal use of the user and at the same time ensuring the safety of the battery and the processor.
结合图3和图4A所示的低温充电系统结构,图4B本申请实施例提供另一种低温充电的方法流程示意图。如图4B所示,电子设备可以包括电池升温模块、逻辑控制模块和电池充电模块,各个模块可以参考上述的图2和图3的相关描述,不赘述。该低温充电方法可以包括但不限于以下步骤:Combining the structure of the low-temperature charging system shown in FIG. 3 and FIG. 4A , FIG. 4B provides a schematic flowchart of another low-temperature charging method according to the embodiment of the present application. As shown in FIG. 4B , the electronic device may include a battery heating module, a logic control module, and a battery charging module. For each module, reference may be made to the above-mentioned descriptions in FIG. 2 and FIG. 3 , and details will not be repeated. The low temperature charging method may include but not limited to the following steps:
S421:电子设备通过逻辑控制模块获取第一信息。S421: The electronic device acquires first information through the logic control module.
S422:在尚未进行升温加热的情况下,电子设备通过逻辑控制模块基于第一信息判断是否满足第一升温充电条件。在满足第一升温充电的条件下,执行S403;在不满足第一升温充电的条件下,不执行。S422: In the case that heating has not been performed, the electronic device judges whether the first heating charging condition is met through the logic control module based on the first information. If the condition of the first temperature-raising charging is met, execute S403; if the condition of the first temperature-raising charging is not satisfied, do not execute.
在满足第一升温充电条件的情况下,执行S423~S428。When the first temperature-raising charging condition is satisfied, S423 to S428 are executed.
S423:电子设备通过逻辑控制模块向电池升温模块发送第一决策信息。S423: The electronic device sends the first decision information to the battery heating module through the logic control module.
S424:电子设备通过电池升温模块向逻辑控制模块发送第一回复消息。S424: The electronic device sends a first reply message to the logic control module through the battery warming module.
S425:电子设备通过电池升温模块获取第二信息。S425: The electronic device obtains the second information through the battery heating module.
S426:电子设备通过电池升温模块基于第一决策信息和第二信息控制处理器运行加热。S426: The electronic device controls the processor to run heating through the battery heating module based on the first decision information and the second information.
电子设备在获取到第一决策信息的情况下,可以基于第二信息控制处理器运行,使得处理器的热量加热电池使得电池升温。When the electronic device acquires the first decision information, it can control the operation of the processor based on the second information, so that the heat of the processor heats the battery to increase the temperature of the battery.
S427:电子设备通过逻辑控制模块向电池充电模块发送第一充电指令。S427: The electronic device sends a first charging instruction to the battery charging module through the logic control module.
S428:电子设备通过电池充电模块基于第一充电指令对电池进行充电。S428: The electronic device charges the battery through the battery charging module based on the first charging instruction.
在不满足第一升温充电条件的情况下,执行S423~S428。If the first temperature-raising charging condition is not satisfied, S423 to S428 are executed.
S429:电子设备通过逻辑控制模块向电池升温模块发送第二决策信息。S429: The electronic device sends second decision information to the battery heating module through the logic control module.
S430:电子设备通过电池升温模块向逻辑控制模块发送第二回复消息。S430: The electronic device sends a second reply message to the logic control module through the battery heating module.
S431:电子设备通过电池升温模块基于第二决策信息控制处理器结束运行加热处理。S431: The electronic device controls the processor to end the heating process through the battery heating module based on the second decision information.
S432:电子设备通过逻辑控制模块向电池充电模块发送第二充电指令。S432: The electronic device sends a second charging instruction to the battery charging module through the logic control module.
S433:电子设备通过电池充电模块基于第二充电指令对电池停止充电。S433: The electronic device stops charging the battery through the battery charging module based on the second charging instruction.
上述的S421~S433的具体操作过程可以参考图4A中的相关描述,不赘述。For the specific operation process of the above S421-S433, reference may be made to the relevant description in FIG. 4A , and details are not repeated here.
其中,图4B的具体步骤可以参考图4A中的相关描述,不赘述。Wherein, for the specific steps in FIG. 4B , reference may be made to the relevant description in FIG. 4A , and details are not repeated here.
在上述实施方式中,电子设备的逻辑控制模块在获取到第一信息的情况下,可以判断是否满足第一升温充电条件。逻辑控制模块不需要判断当前是否处于加热还是不加热的状况,而是在满足第一升温充电条件的情况下,可以直接下发充电指令和决策信息,用于加热;在不满足的情况下,用于不加热即可。In the above embodiments, the logic control module of the electronic device may determine whether the first temperature-raising charging condition is met when the first information is acquired. The logic control module does not need to judge whether it is currently in the state of heating or not, but can directly issue charging instructions and decision information for heating if the first heating charging condition is met; Can be used without heating.
上述的实施方式中,简化了电子设备判断的过程,不需要判断加热情况,可以简化操作,提高处理效率,节约资源。In the above implementation manner, the process of judging the electronic device is simplified, and there is no need to judge the heating condition, which can simplify operations, improve processing efficiency, and save resources.
基于上述的图4A中S402和S407的相关描述,图5是本申请实施例公开的一种电池升温的方法流程示意图。如图5所示,逻辑控制模块确定升温决策的方法可以包括但不限于以下步骤:Based on the relevant description of S402 and S407 in FIG. 4A above, FIG. 5 is a schematic flowchart of a method for raising the temperature of a battery disclosed in an embodiment of the present application. As shown in Figure 5, the method for the logic control module to determine the temperature rise decision may include but not limited to the following steps:
S501:在充电器接入的条件下,逻辑控制模块启动充电决策服务。S501: Under the condition that the charger is connected, the logic control module starts the charging decision service.
逻辑控制模块可以通过数据采集模块采集充电端口模块的充电器状态信息,之后可以通过数据采集模块向升温决策模块发送充电器状态信息。具体可以参考S401中获取第一信息的相关内容,不赘述。The logic control module can collect the charger status information of the charging port module through the data acquisition module, and then can send the charger status information to the temperature rise decision module through the data acquisition module. For details, reference may be made to related content of acquiring the first information in S401, and details are not repeated.
在充电器状态处于接入的情况下,逻辑控制模块的升温决策模块确定当前的启动充电决策服务。When the charger state is connected, the temperature rise decision-making module of the logic control module determines the current start-up charging decision-making service.
在充电器状态处于未接入(拔出)的情况下,逻辑控制模块的升温决策模块确定当前的结束(或者停止启动)充电决策服务。具体地,在充电器从接入状态变为未接入状态的条件下,升温决策模块确定结束当前的充电决策服务。在充电器保持未接入状态的条件下,保持不启动充电决策服务。In the case that the charger state is not connected (unplugged), the temperature rise decision module of the logic control module determines the current end (or stops starting) charging decision service. Specifically, under the condition that the charger changes from the connected state to the non-connected state, the temperature rise decision module determines to end the current charging decision service. Under the condition that the charger remains unconnected, the charging decision service remains disabled.
S502~S504:逻辑控制模块基于第一信息判断是否满足第一启动条件。其中,S502~S504的执行顺序不限定。且第一启动条件可以包括S502~S504步骤的一种或多种。此时,S402中的第一升温充电条件可以包括第一启动条件。其中,第一启动条件可以包括环境温度条件,充电类型条件和电量条件中的一种或多种。环境温度条件为环境温度小于环境阈值温度,充电类型条件为充电类型为预设充电类型,电量条件为电池电量处于预设电量范围。下面通过S502~S504具体说明:S502-S504: The logic control module judges whether the first starting condition is met based on the first information. Wherein, the execution order of S502-S504 is not limited. And the first starting condition may include one or more of steps S502-S504. At this time, the first warming-up charging condition in S402 may include a first start-up condition. Wherein, the first starting condition may include one or more of ambient temperature conditions, charging type conditions, and electric quantity conditions. The ambient temperature condition is that the ambient temperature is lower than the ambient threshold temperature, the charging type condition is that the charging type is a preset charging type, and the power condition is that the battery power is within a preset power range. The following is a specific description through S502-S504:
S502:逻辑控制模块判断环境温度是否低于环境阈值温度。在环境温度低于(或者小于等于)环境阈值温度的情况下,执行S503;在环境温度不低于(或者大于)环境阈值温度的情况下,执行S505。此时,第一信息中包括环境温度。S502: The logic control module judges whether the ambient temperature is lower than the ambient threshold temperature. When the ambient temperature is lower than (or less than or equal to) the ambient threshold temperature, execute S503; when the ambient temperature is not lower than (or greater than) the ambient threshold temperature, execute S505. At this time, the first information includes the ambient temperature.
其中,环境阈值温度是逻辑控制模块预设的一个温度值,电子设备存储有这一温度值。Wherein, the ambient threshold temperature is a temperature value preset by the logic control module, and the electronic device stores this temperature value.
S503:逻辑控制模块判断充电类型是否为预设充电类型。在充电类型为预设充电类型的条件下,执行S504;在充电类型不为预设充电类型的条件下,执行S505。S503: The logic control module determines whether the charging type is a preset charging type. If the charging type is the preset charging type, execute S504; if the charging type is not the preset charging type, execute S505.
其中,预设充电类型可以为快充类型。充电器的快充类型和非快充类型区别为充电功率的大小,例如,快充类型为40W以上的充电器的充电类型;非快充类型为40W以下的充电器的充电类型。此时,第一信息中包括充电类型。一般而言,在处理器运行加热的过程中,电子设备需要消耗电量,电子设备的电池充电电量大于消耗电量的情况下,可以保证电池电量是增加的。而本申请实施例中,预设充电类型能够保证低温环境中的加热充电,电池电量是增加的,进而可以保证电池总体上是在充电而非耗电。Wherein, the preset charging type may be a fast charging type. The difference between the fast charging type and the non-fast charging type of the charger is the size of the charging power, for example, the fast charging type is the charging type of the charger above 40W; the non-fast charging type is the charging type of the charger below 40W. At this time, the first information includes the charging type. Generally speaking, when the processor is running and heating, the electronic device needs to consume power, and when the charging power of the battery of the electronic device is greater than the power consumption, it can be guaranteed that the battery power is increased. However, in the embodiment of the present application, the preset charging type can ensure heating and charging in a low-temperature environment, and the battery power is increased, thereby ensuring that the battery is generally being charged instead of consuming power.
可选地,第一信息还可以包括充电接口类型;逻辑控制模块还需要判断充电接口类型是否为预设接口类型。在充电接口类型为预设接口类型的情况下,可以确定执行S504;否则执行S505。其实,预设接口类型可以是Type-C接口。Optionally, the first information may also include a charging interface type; the logic control module also needs to determine whether the charging interface type is a preset interface type. If the charging interface type is a preset interface type, it may be determined to perform S504; otherwise, perform S505. In fact, the preset interface type may be a Type-C interface.
S504:逻辑控制模块判断电池电量是否处于预设电量范围。在电池电量处于预设电量范围的情况下,执行S507;在电池电量不处于预设电量范围的情况下,执行S505。S504: the logic control module judges whether the battery power is within a preset power range. If the battery power is within the preset power range, execute S507; if the battery power is not within the preset power range, execute S505.
其中,预设电量范围,表示当前充电器的电量是需要充电的电量,而处于预设电量范围之外,表示电池不需要进行充电。例如,预设电量范围为电池电量小于99%的范围,需要充电,执行S507,大于或等于99%,不需要充电,执行S505。此时,第一信息中包括电池电量。Wherein, the preset power range means that the current power of the charger is the power that needs to be charged, and being outside the preset power range means that the battery does not need to be charged. For example, if the preset power range is less than 99%, charging is required, and S507 is executed; if it is greater than or equal to 99%, charging is not required, S505 is executed. At this time, the first information includes battery power.
S505:逻辑控制模块控制电池升温模块停止加热。S505: the logic control module controls the battery heating module to stop heating.
具体地,逻辑控制模块确定在不满足第一启动条件,不执行升温充电(确定不加热)。逻辑控制模块可以向电池升温模块发送第二决策信息。对应地,电池升温模块可以接收来自逻辑控制模块的第二决策信息。第二决策信息可以指示电池升温模块停止当前加热处理,电池升温模块可以基于第二决策信息停止加热(具体可以参考图6)。Specifically, when the logic control module determines that the first start-up condition is not met, the heating charging is not performed (determined not to heat). The logic control module can send the second decision information to the battery warming module. Correspondingly, the battery warming module can receive the second decision information from the logic control module. The second decision information may instruct the battery warming module to stop the current heating process, and the battery warming module may stop heating based on the second decision information (for details, refer to FIG. 6 ).
可选地,电池升温模块可以释放充电加热的唤醒锁。释放唤醒锁后,即不再阻止电子设备进行睡眠状态之后,逻辑控制模块执行上述的充电决策服务。释放唤醒锁之前,电池升温模块可以确定电子设备存在用于加热充电的唤醒锁。Optionally, the battery warming module can release the wake lock of charging heating. After the wake-up lock is released, that is, after the electronic device is no longer prevented from entering the sleep state, the logic control module executes the above charging decision service. Before releasing the wake lock, the battery warming module may determine that the electronic device has a wake lock for heating and charging.
需要说明的是,在逻辑控制模块确定停止加热之后,可以向电池充电模块发送第二充电指令,以给电池进行停止充电。具体可以参考上述S413和S414的描述,不赘述。It should be noted that after the logic control module determines to stop heating, a second charging instruction may be sent to the battery charging module to stop charging the battery. For details, reference may be made to the descriptions of S413 and S414 above, and details are not repeated here.
S506:逻辑控制模块退出充电决策服务。S506: The logic control module exits the charging decision service.
电池升温模块接收来自到逻辑控制模块的第二决策信息之后,可以退出充电决策服务。此时,第二决策信息携带有退出充电决策服务的指示。After the battery warming module receives the second decision information from the logic control module, it can exit the charging decision service. At this time, the second decision information carries an indication of exiting the charging decision service.
通过执行S505和S506的过程来看,如果电子设备不满足第一启动条件的情况下,直接退出当前的充电决策服务,即电子设备没有低温充电的基本条件,不需要等待开启充电决策服务,从而可以减少处理资源的浪费,节约能耗。From the process of executing S505 and S506, if the electronic device does not meet the first start-up condition, it will directly exit the current charging decision-making service, that is, the electronic device does not have the basic conditions for low-temperature charging, and there is no need to wait for the charging decision-making service to be started, thereby It can reduce the waste of processing resources and save energy consumption.
S507~S509:逻辑控制模块基于第一信息判断是否满足第二启动条件。其中,S507~S509的执行顺序不限定,且第二启动条件可以包括S507~S509步骤的一种或多种。此时,S402中的第一升温充电条件可以包括第二启动条件。S507-S509: The logic control module judges whether the second starting condition is met based on the first information. Wherein, the execution order of S507-S509 is not limited, and the second starting condition may include one or more of steps S507-S509. At this time, the first warming-up charging condition in S402 may include the second start-up condition.
其中,第二启动条件可以包括电流条件,电池温度和充电端口的温度条件和屏幕状态条件中的一种或多种。电流条件为电池电流大于充电阈值电流;电池和充电端口的温度条件为电池温度与充电端口温度之间的差值以及电池温度是否处于预设温度范围;屏幕状态条件为屏幕状态处于灭屏状态。下面通过S507~S508具体说明:Wherein, the second starting condition may include one or more of current condition, battery temperature, temperature condition of charging port, and screen state condition. The current condition is that the battery current is greater than the charging threshold current; the temperature condition of the battery and charging port is the difference between the battery temperature and the charging port temperature and whether the battery temperature is within the preset temperature range; the screen status condition is that the screen is off. The following is a specific description through S507-S508:
此时,S402中的第一升温充电条件还可以包括第二启动条件。At this time, the first temperature-raising charging condition in S402 may also include a second start-up condition.
S507:逻辑控制模块判断电池电流是否大于(或大于等于)充电阈值电流。在电池电流大于(或大于等于)充电阈值电流的情况下,执行S508;在电池电流小于或等于(或小于)充电阈值电流的情况下,执行S510。S507: The logic control module judges whether the battery current is greater than (or greater than or equal to) the charging threshold current. When the battery current is greater than (or greater than or equal to) the charging threshold current, execute S508; when the battery current is less than or equal to (or less than) the charging threshold current, execute S510.
其中,充电阈值电流的范围是预设的,具体是通过提前测试得到的。例如,-200mA,本申请实施例对此不限定。电池电流在充电阈值电流的范围内是指对电池充电方向的电流,即电池回路中电流往电池方向走的电流,此时,电池作为电量的消费者,而非提供者。Wherein, the range of the charging threshold current is preset, specifically obtained through a test in advance. For example, -200mA, which is not limited in this embodiment of the present application. The battery current within the range of the charging threshold current refers to the current in the charging direction of the battery, that is, the current in the battery circuit going in the direction of the battery. At this time, the battery is a consumer of electricity, not a provider.
在处理进行加热的过程中,是需要消耗电池电量的,在电子设备充电的过程中,电池电量是增加的,本申请中,为了能够保证电池电量是增加的,可以通过确定流经电池的电流是大于充电阈值电流的情况下,保证充电电量大于放电电量,从而可以保证加热充电保证电池电量的增加的。其中,电池电流是逻辑控制模块需要采集一段时间内的电流,保证所确定的电池电流的准确性。In the process of processing and heating, it is necessary to consume battery power. In the process of charging electronic equipment, the battery power is increased. In this application, in order to ensure that the battery power is increased, it can be determined by determining the current flowing through the battery When the current is greater than the charging threshold, the charging power is guaranteed to be greater than the discharging power, thereby ensuring heating and charging to ensure an increase in battery power. Wherein, the battery current is the current that the logic control module needs to collect for a period of time to ensure the accuracy of the determined battery current.
S508:逻辑控制模块判断电池温度与充电端口温度之间的差值,以及电池温度是否处于预设温度范围。在电池温度与充电端口温度之间的差值处于第一预设范围,且电池温度处于第二预设范围的情况下,执行S509;否则,执行S510。S508: the logic control module judges the difference between the battery temperature and the charging port temperature, and whether the battery temperature is within a preset temperature range. When the difference between the battery temperature and the charging port temperature is in the first preset range, and the battery temperature is in the second preset range, execute S509; otherwise, execute S510.
其中,预设温度范围包括电池温度与充电端口温度之间的差值对应的第一预设范围,以及电池温度对应的第二预设范围。Wherein, the preset temperature range includes a first preset range corresponding to the difference between the battery temperature and the charging port temperature, and a second preset range corresponding to the battery temperature.
具体地,逻辑控制模块已知电池温度T1和充电端口温度T2,二者之间的差值|T1-T2|在预设范围的情况下,可以判断|T1-T2|是否小于(或者小于等于)第一预设差值(处于第一预设范围);且判断电池温度T1是否小于(或者小于等于)电池温度阈值(处于第二预设范围)。在二者均满足的情况下,确定处于预设范围;否则,不处于预设范围。这样,能够保证充电端口的温度是正常的温度,当充电端口的温度过高的情况下,意味着端口短路或者漏电,这种情况下存在使用安全和充电安全的问题,这一判断逻辑能够保证充电的安全性。Specifically, the logic control module knows the battery temperature T1 and the charging port temperature T2, and when the difference |T1-T2| between the two is in the preset range, it can judge whether |T1-T2| ) a first preset difference (in a first preset range); and determine whether the battery temperature T1 is less than (or less than or equal to) a battery temperature threshold (in a second preset range). If both are satisfied, it is determined to be within the preset range; otherwise, it is not within the preset range. In this way, it can ensure that the temperature of the charging port is normal. When the temperature of the charging port is too high, it means that the port is short-circuited or leaking electricity. In this case, there are problems of use safety and charging safety. This judgment logic can ensure Charging safety.
此外,在电池温度T1小于(或者小于等于)电池温度阈值的情况下,才有必要对电池温度进行提升,从而可以保证电池的情况。In addition, it is necessary to increase the battery temperature only when the battery temperature T1 is less than (or less than or equal to) the battery temperature threshold, so as to ensure the condition of the battery.
S509:逻辑控制模块判断屏幕状态是否处于灭屏状态。在处于灭屏状态的情况下,执行S509;在处于亮屏状态的情况下,执行S510。S509: the logic control module judges whether the screen state is in an off-screen state. In the case of the off-screen state, perform S509; in the case of the on-screen state, perform S510.
其中,逻辑控制模块判断屏幕状态是否处于灭屏状态,在灭屏情况下,可以确定执行S509;在亮屏状态的情况下,执行S510。这样,屏幕状态为亮屏状态的条件下,可以确定用户正在使用或者电子设备正在运行用户的相关处理操作。这样,需要在用户使用电子设备的时候,保证处理资源优先为用户使用提供,能够保证用户的使用体验,避免在用户使用的时候出现卡顿的情况。Wherein, the logic control module judges whether the screen state is in the off-screen state, and in the case of the off-screen state, it may be determined to execute S509; in the case of the on-screen state, execute S510. In this way, under the condition that the screen state is the bright screen state, it can be determined that the user is using or the electronic device is running the user's related processing operations. In this way, when the user is using the electronic device, it is necessary to ensure that processing resources are provided to the user first, so as to ensure the user's experience and avoid freezing when the user is using the electronic device.
S510:逻辑控制模块控制电池升温模块暂停加热。S510: the logic control module controls the battery heating module to suspend heating.
一种可能的情况下,逻辑控制模块可以确定不满足第二启动条件或者逻辑控制模块已经执行完一轮加热过程(S511),暂时保持不执行升温加热(确定不加热)。逻辑控制模块可以向电池升温模块发送第二决策信息。对应地,电池升温模块可以接收来自逻辑控制模块的第二决策信息。暂停加热信息可以指示电池升温模块暂停当前加热处理(具体可以参考图6)。之后,逻辑控制模块可以停止加热处理,即执行S512。In a possible situation, the logic control module may determine that the second starting condition is not satisfied or the logic control module has completed a round of heating process (S511), and temporarily keep not performing heating (determined not to heat). The logic control module can send the second decision information to the battery warming module. Correspondingly, the battery warming module can receive the second decision information from the logic control module. The heating suspension information may instruct the battery heating module to suspend the current heating treatment (for details, refer to FIG. 6 ). Afterwards, the logic control module may stop the heat treatment, that is, execute S512.
可选地,逻辑控制模块可以预设有第一睡眠时长,在执行完S510或者S511之后,指示电池升温停止运行预设程序,经过第一睡眠时长,重新执行S501,即开启充电决策服务。Optionally, the logic control module may be preset with a first sleep duration. After executing S510 or S511, instruct the battery to heat up and stop running the preset program. After the first sleep duration, re-execute S501, that is, start the charging decision service.
需要说明的是,在逻辑控制模块确定暂停加热之后,可以向电池充电模块发送第二充电指令,以给电池进行停止充电。具体可以参考上述S413和S414的描述,不赘述。It should be noted that, after the logic control module determines to suspend heating, a second charging instruction may be sent to the battery charging module to stop charging the battery. For details, reference may be made to the descriptions of S413 and S414 above, and details are not repeated here.
S511:逻辑控制模块控制电池升温模块开始加热。S511: the logic control module controls the battery heating module to start heating.
具体地,逻辑控制模块可以确定满足第二启动条件,开始执行升温充电(确定加热充电)。逻辑控制模块可以向电池升温模块发送第一决策信息。对应地,电池升温模块可以接收来自逻辑控制模块的第一决策信息。开启加热信息可以指示电池升温模块开启当前加热处理。在执行完开启加热处理的一轮充电之后,逻辑控制模块可以暂停加热(具体可以参考图6),即执行S510。其中,执行S511的步骤是需要一定时间的,即在执行完加热过程之后,执行S510。Specifically, the logic control module may determine that the second starting condition is met, and start to perform temperature-raising charging (determine heating charging). The logic control module can send the first decision information to the battery warming module. Correspondingly, the battery warming module can receive the first decision information from the logic control module. The heating information may instruct the battery heating module to start the current heating treatment. After performing a round of charging for starting the heating treatment, the logic control module may suspend heating (refer to FIG. 6 for details), that is, execute S510. Wherein, it takes a certain amount of time to perform the step of S511, that is, to perform S510 after the heating process is performed.
可选地,电子设备可以添加充电加热的唤醒锁。添加唤醒锁后,即可以阻止电子设备进行睡眠状态之后,即按照一定时间周期唤醒逻辑控制模块执行上述的充电决策服务。需要说明的是,上述添加唤醒锁的前提是电子设备当前不存在添加的唤醒锁。Optionally, the electronic device can add a charge heated wake lock. After the wake-up lock is added, the electronic device can be prevented from going to the sleep state, that is, the logic control module can be woken up according to a certain period of time to perform the above-mentioned charging decision-making service. It should be noted that the premise of adding the wake lock above is that there is no added wake lock in the electronic device currently.
需要说明的是,在逻辑控制模块确定开始加热之后,可以时时采集电池温度,并向电池充电模块发送第一充电指令,以给电池进行充电。具体可以参考上述S407和S408的描述,不赘述。It should be noted that after the logic control module determines to start heating, the battery temperature can be collected from time to time, and the first charging instruction can be sent to the battery charging module to charge the battery. For details, reference may be made to the above descriptions of S407 and S408, and details are not repeated here.
在本申请实施例中,充电决策服务启动之后,逻辑控制模块可以确定是否满足第一启动条件,不满足第一启动条件的情况下,确定不充电,不升温。在满足第一启动条件和第二启动条件的情况下,可以执行升温充电。在满足第一启动条件,不满足第二启动条件的情况下,可以执行暂停充电和加热。这样可以保证有充电的前提,从而能够提高执行充电决策服务的准确性和有效性,保证电子设备在能够进行升温和充电的条件下,进行升温和充电,保证充电和升温的安全性和可靠性。In the embodiment of the present application, after the charging decision service is started, the logic control module may determine whether the first starting condition is satisfied, and if the first starting condition is not met, it is determined not to charge and not to raise the temperature. In a case where the first activation condition and the second activation condition are satisfied, warm-up charging may be performed. When the first start-up condition is met but the second start-up condition is not met, charging and heating may be suspended. This can ensure the premise of charging, thereby improving the accuracy and effectiveness of charging decision-making services, ensuring that electronic devices can be heated and charged under the conditions that can be heated and charged, and ensure the safety and reliability of charging and heating .
结合图4A、图4B和图5,图6是本申请实施例公开的一种加热处理的方法流程示意图。如图6所示,针对上述电池升温模块基于决策信息进行和处理器升温信息控制处理器运行加热的过程,具体说明如下:Referring to FIG. 4A, FIG. 4B and FIG. 5, FIG. 6 is a schematic flowchart of a heat treatment method disclosed in the embodiment of the present application. As shown in Figure 6, for the process of the above-mentioned battery heating module based on the decision-making information and the processor heating information to control the processor to run and heat, the specific description is as follows:
需要说明是的图4A中,S406和S410的具体过程,可以是图6中的操作过程。It should be noted that in FIG. 4A , the specific process of S406 and S410 may be the operation process in FIG. 6 .
S601:电池升温模块启动加热服务。S601: The battery heating module starts the heating service.
电池升温模块启动加热服务之后,可以开始执行S602以及之后的步骤。After the battery heating module starts the heating service, S602 and subsequent steps may be executed.
S602:电池升温模块按照第一周期时长获取决策信息。S602: The battery warming module acquires decision information according to the length of the first cycle.
在电池升温模块启动加热服务之后,可以通过第二消息收发模块周期性地监测决策信息。即按照第二周期时长检测是否接收到决策信息。在接收到决策信息的情况下,第二消息收发模块可以向加热控制模块发送决策信息。电池升温模块可以通过加热控制模块可以基于决策信息开始加热进程或者结束加热进程。After the battery warming module starts the heating service, the decision information may be periodically monitored by the second messaging module. That is, it is detected whether decision information is received according to the length of the second cycle. In case the decision information is received, the second messaging module may send the decision information to the heating control module. The battery heating module can start the heating process or end the heating process based on the decision information through the heating control module.
其中,决策信息可以是第一决策信息或者第二决策信息。在接收到第一决策信息的情况下,可以确定进行加热,在接收到第二决策信息之后,可以确定进行停止当前加热过程。Wherein, the decision information may be first decision information or second decision information. When the first decision information is received, it may be determined to perform heating, and after the second decision information is received, it may be determined to stop the current heating process.
S603:电池升温模块在获取到决策信息的情况下,判断基于决策信息判断是否进行加热。在判断进行加热的情况下,执行S605;在不执行加热的情况下,执行S604。S603: The battery heating module judges whether to perform heating based on the decision information when the battery heating module obtains the decision information. If it is determined that heating is to be performed, S605 is performed; when heating is not performed, S604 is performed.
电池升温模块可以通过加热升温模块基于决策信息判断是否进行加热。在加热升温模块接收到第一决策信息的情况下,第一决策信息中包括升温指令,加热升温模块可以基于升温指令确定进行加热,即执行S605。在加热升温模块接收到第二决策信息的情况下,第二决策信息中包括结束升温指令,加热升温模块可以基于结束升温指令确定停止加热,即执行S604。The battery warming module can judge whether to perform heating based on the decision information through the heating and warming module. When the heating and temperature raising module receives the first decision information, the first decision information includes a temperature raising instruction, and the heating and temperature raising module may determine to perform heating based on the temperature raising instruction, that is, execute S605. In the case that the heating and warming module receives the second decision information, the second decision information includes an instruction to end the temperature raising, and the heating and warming module may determine to stop heating based on the instruction to end the temperature raising, that is, execute S604.
S604:电池升温模块退出加热服务。S604: The battery heating module exits the heating service.
电池升温模块通过加热升温模块确定停止加热,之后可以退出加热服务,即结束当前的加热软件程序的执行。若当前处于一轮加热进程之中,加热升温模块可以直接停止加热进程,并退出加热服务。具体可以认为是执行S412的过程。The battery heating module determines to stop heating through the heating module, and then exits the heating service, that is, ends the execution of the current heating software program. If it is currently in a heating process, the heating and warming module can directly stop the heating process and exit the heating service. Specifically, it can be regarded as the process of executing S412.
S605~S611是电池升温模块进行一轮加热的具体过程,可以是上述S406的具体流程。S605-S611 are the specific process of one round of heating by the battery heating module, which may be the specific process of the above-mentioned S406.
S605:电池升温模块开启一轮加热进程。S605: The battery heating module starts a round of heating process.
电池升温模块可以通过加热升温模块开启一轮的加热进程。The battery heating module can start a round of heating process by heating the heating module.
其中,具体一轮的加热进程的执行方式不同,具体需要预定义。例如,每一轮加热K次,每次持续加热时长是M,相邻两次加热开始时间的间隔时间为N,N>M。具体在S606~S611的步骤中详细说明。Wherein, the execution mode of a specific round of heating process is different, and needs to be predefined specifically. For example, each round of heating is K times, the duration of each continuous heating is M, and the interval between two adjacent heating start times is N, where N>M. Specifically, the steps of S606 to S611 are described in detail.
S606:电池升温模块确定运行加热的处理器内核。S606: The battery heating module determines the processor core running heating.
电子设备处理器的内核数量可能是不同的,例如,4核或者8核的处理器。其中,有1核需要执行逻辑控制模块的充电决策服务以及电池升温模块的加热服务,其余的一核或者多核处理器可以执行预设程序进行加热。其中,预设程序可以是对电子设备的存储器进行读取的程序,具体的功能不限定。The number of cores of the processor of the electronic device may be different, for example, a processor with 4 cores or 8 cores. Among them, one core needs to execute the charging decision service of the logic control module and the heating service of the battery heating module, and the remaining one-core or multi-core processors can execute preset programs for heating. Wherein, the preset program may be a program for reading the memory of the electronic device, and the specific function is not limited.
可选地,电子设备可以基于核温确定进行加热的处理器内核的数量。一种可能的情况下,在核温大于第一温度阈值的情况下,按照第一比例的处理器的内核数量进行加热(运行加热的处理器内核数量为处理器内核总数与第一比例的乘积)。在核温小于或等于第一温度阈值且大于第二温度阈值的情况下,按照第二比例的处理器的内核数量进行加热。在核温小于或等于第二温度阈值的情况下,按照第三比例的处理器的内核数量进行加热。其中,第一温度阈值大于第二温度阈值,第二温度阈值大于第三温度阈值。第一比例小于第二比例,第二比例小于第三比例。即核温越高,处理器内核数量越少。Optionally, the electronic device may determine the number of processor cores to be heated based on the core temperature. In a possible situation, when the core temperature is greater than the first temperature threshold, heating is performed according to the number of cores of the processor according to the first ratio (the number of processor cores running and heated is the product of the total number of processor cores and the first ratio ). When the core temperature is less than or equal to the first temperature threshold and greater than the second temperature threshold, heating is performed according to the number of cores of the processor in a second proportion. In the case that the core temperature is less than or equal to the second temperature threshold, heating is performed according to a third ratio of the number of cores of the processor. Wherein, the first temperature threshold is greater than the second temperature threshold, and the second temperature threshold is greater than the third temperature threshold. The first ratio is smaller than the second ratio, and the second ratio is smaller than the third ratio. That is, the higher the core temperature, the fewer the number of processor cores.
示例性地,当前处理器内核数量为8,第一温度阈值为5摄氏度,第二温度阈值为-5摄氏度,第三温度阈值为-15摄氏度。第一比例为3/8,第二比例为3/4,第三比例为7/8。若可供加热的处理器内核数量为7。若当前核温为6摄氏度,8*3/8,即处理器内核数量为3;若当前核温为-6摄氏度,8*5/8,即处理器内核数量为5;若当前核温为-16摄氏度,8*7/8,即处理器内核数量为7。这样,核温越低,处理器内核数量越多,从而可以保证处理器模块升温更快,同时调用处理器内核的资源也是尽可能少,减少处理器的损耗,延长电子设备的使用寿命,减缓卡顿。Exemplarily, the number of current processor cores is 8, the first temperature threshold is 5 degrees Celsius, the second temperature threshold is -5 degrees Celsius, and the third temperature threshold is -15 degrees Celsius. The first ratio is 3/8, the second ratio is 3/4, and the third ratio is 7/8. If the number of processor cores available for heating is 7. If the current core temperature is 6 degrees Celsius, 8*3/8 means the number of processor cores is 3; if the current core temperature is -6 degrees Celsius, 8*5/8 means the number of processor cores is 5; if the current core temperature is -16 degrees Celsius, 8*7/8, that is, the number of processor cores is 7. In this way, the lower the core temperature, the more the number of processor cores, which can ensure that the processor module heats up faster, and at the same time call the resources of the processor core as little as possible, reduce the loss of the processor, prolong the service life of electronic equipment, and slow down Stuck and stopped.
可选地,在每个轮次处理器的运行加热的内核数量和执行加热策略的内核数量不变的情况下,电子设备基于处理器的历史内核分配结果轮流分配当前加热轮次中运行加热的内核以及执行加热策略的内核。即电子设备的电池升温模块约定预设数量的处理器内核数量进行加热,并按照加热升温的轮次轮流执行加热,或者处理器内核执行充电决策服务和加热服务的内核按照轮次轮流执行。执行加热策略的需要至少一个处理器内核;执行处理器的运行加热处理的需要至少一个处理器内核。Optionally, when the number of cores running heating and the number of cores executing the heating strategy remain unchanged in each round, the electronic device allocates the cores running heating in the current heating round in turn based on the historical core allocation results of the processor. Kernel and the kernel that implements the heating strategy. That is, the battery heating module of the electronic device agrees on a preset number of processor cores to perform heating, and performs heating in turn according to the heating and heating rounds, or the cores of the processor cores that perform charging decision service and heating service execute in turn. At least one processor core is required to execute the heating strategy; at least one processor core is required to execute the running heating process of the processor.
示例性地,电子设备的处理器内核数量为8,预设数量为7。假设处理器内核分别为n1、n2、n3、n4、n5、n6、n7和n8。第一轮次n1执行逻辑控制模块和电池升温模块,n2~n8执行预设程序;第二轮便n2执行逻辑控制模块和电池升温模块,n1、n3~n8执行预设程序;第三轮便n3执行逻辑控制模块和电池升温模块,n1、n2、n4~n8执行预设程序……这样,可以尽可能的保证每一个处理器的内核耗损程度是差不多的,以延长电子设备的使用寿命,延缓卡顿。Exemplarily, the number of processor cores of the electronic device is 8, and the preset number is 7. Assume that the processor cores are n1, n2, n3, n4, n5, n6, n7, and n8, respectively. In the first round, n1 executes the logic control module and battery heating module, and n2~n8 executes the preset program; in the second round, n2 executes the logic control module and battery heating module, and n1, n3~n8 execute the preset program; in the third round, n3 executes the logic control module and the battery heating module, n1, n2, n4~n8 execute the preset program... In this way, it can ensure that the core consumption of each processor is similar as much as possible, so as to prolong the service life of electronic equipment. Delay lag.
S607:电池升温模块判断累积加热次数是否处于设定次数之内。若处于设定次数之内,执行S608;否则,执行S604。S607: The battery heating module judges whether the accumulated heating times are within the set times. If it is within the set times, execute S608; otherwise, execute S604.
电池升温模块可以通过加热控制模块存储累积加热次数。在当前的累积加热次数处于小于(小于或等于)设定次数的情况下,确定累积加热次数处于设定次数之内,可以确定在升温运行的次数。在判断累积加热次数是否处于设定次数之内。其中,累积加热次数为电池升温模块开启加热轮次的总次数,从电子设备出厂开始到目前加热轮次的累加次数。处理器这样,在设定次数之内可以停止加热服务,即不加热;已经超过设定次数,可以进行加热。便能够有效地控制处理器满负荷运行的次数,控制器运行次数和老化程度,从而可以延缓卡顿出现的时间,提高用户体验。The battery heating module can store the accumulated heating times through the heating control module. In the case that the current accumulated heating times are less than (less than or equal to) the set times, it is determined that the accumulated heating times are within the set times, and the times of the temperature-raising operation can be determined. It is judging whether the cumulative heating times are within the set times. Wherein, the accumulative heating times are the total number of heating rounds activated by the battery heating module, and the accumulated times from the time the electronic equipment leaves the factory to the current heating rounds. In this way, the processor can stop the heating service within the set number of times, that is, no heating; if the set number of times has exceeded, it can be heated. It can effectively control the number of times the processor runs at full load, the number of times the controller runs, and the aging degree, thereby delaying the occurrence of freezes and improving user experience.
其中,S607的执行顺序在S608之前即可,具体不限定。Wherein, the execution sequence of S607 may be before S608, and is not specifically limited.
S608:电池升温模块控制处理器内核满负荷运行加热。S608: the battery heating module controls the processor core to run and heat at full load.
电池升温模块可以通过升温决策模块控制处理器内核满载运行,处理器运行的过程会产生热量,热量通过散热板传递到电池模块,使得电池的温度提高。这样,不需要具体的加热硬件模块,便能够借用处理器加热电池,保证电池的温度达到能够充电的温度。The battery heating module can control the processor core to run at full load through the temperature raising decision-making module. The processor will generate heat during operation, and the heat will be transferred to the battery module through the cooling plate, which will increase the temperature of the battery. In this way, without a specific heating hardware module, the processor can be used to heat the battery to ensure that the temperature of the battery reaches a temperature that can be charged.
具体地,电子设备的电池升温模块可以通过升温决策模块控制处理器内核在一轮加热中,加热总时长为X,在X时间段内,累积加热次数为K,即一轮周期性地加热K次。每次持续运行时长是M,等待时长H,相邻两次加热开始时间的间隔时间为N(加热周期时长N=M+H),X=N*K。可以看出,处理器运行加热的一个周期由运行时长和等待时长组成,运行时长为处理器一个周期内运行加热的时长,等待时长为处理器一个周期内的不运行加热的时长。Specifically, the battery warming module of the electronic device can control the processor core in one round of heating through the temperature raising decision-making module. Second-rate. The duration of each continuous operation is M, the waiting time is H, and the interval between two adjacent heating start times is N (heating cycle duration N=M+H), X=N*K. It can be seen that a heating cycle of the processor is composed of running time and waiting time. The running time is the heating time of the processor in one cycle, and the waiting time is the non-heating time of the processor in one cycle.
示例性地,加热总时长X为150min,累积加热次数K为50次运行时长为2min(M),等待时长(H)为1min,相邻两次加热开始时间的间隔时间N为3min。Exemplarily, the total heating time X is 150 min, the cumulative heating times K is 50, the running time is 2 min (M), the waiting time (H) is 1 min, and the interval N between two adjacent heating start times is 3 min.
可选地,上述一轮加热过程中,加热是周期性的加热,例如上述加热2分钟(M),等待1分钟;再加热2min……如此重复操作,这样的加热过程是为了保证核温是处于预设核温范围之内的,从而可以保证电子设备的安全。对于低温充电环境而言,电子设备的加热时,会维持较高温度,或者核温升高;停止加热时,环境温度越低,核温和电池温度降温越快。电子设备的电池升温模块可以基于环境温度(或者未加热时的核温)确定加热频率或者运行时长与等待时长的比值(周期时长不变)。环境温度(或者未加热时的核温)越低,对应的加热频率或者运行时长与等待时长的比值越高。Optionally, in the above-mentioned round of heating process, the heating is periodic heating, such as the above-mentioned heating for 2 minutes (M), waiting for 1 minute; reheating for 2 minutes... Repeat the operation in this way, such a heating process is to ensure that the nuclear temperature is Within the preset core temperature range, the safety of electronic equipment can be guaranteed. For a low-temperature charging environment, when the electronic device is heated, it will maintain a higher temperature, or the core temperature will rise; when the heating is stopped, the lower the ambient temperature, the faster the core temperature and battery temperature will cool down. The battery warming module of the electronic device can determine the heating frequency or the ratio of the running time to the waiting time based on the ambient temperature (or the core temperature when not heated) (the cycle time is constant). The lower the ambient temperature (or the core temperature when not heated), the higher the corresponding heating frequency or the ratio of the running time to the waiting time.
示例性地,电子设备的电池升温模块可以存储有环境温度与加热时长与等待时长的比值之间的映射关系。电子设备在加热之前获取到环境温度之后,可以基于上述映射关系确定加热时长与等待时长的比值,从而可以确定加热时长与等待时长的比值。例如,环境温度为-5度时,加热2分钟,等待1分钟;环境温度为-15度时,等待3分钟,间隔1分钟。这样,能够保证在不同的环境温度中,电子设备可以适应性地确定加热时长,保证温度尽可能在特定温度范围,保证充电时间尽可能的长,保证充电的有效性。Exemplarily, the battery warming module of the electronic device may store a mapping relationship between the ambient temperature and the ratio of the heating duration to the waiting duration. After the electronic device obtains the ambient temperature before heating, the ratio of the heating time to the waiting time can be determined based on the above mapping relationship, so that the ratio of the heating time to the waiting time can be determined. For example, when the ambient temperature is -5 degrees, heat for 2 minutes and wait for 1 minute; when the ambient temperature is -15 degrees, wait for 3 minutes with an interval of 1 minute. In this way, it can be ensured that in different ambient temperatures, the electronic device can adaptively determine the heating time, ensure that the temperature is within a specific temperature range as much as possible, ensure that the charging time is as long as possible, and ensure the effectiveness of charging.
S609:电池升温模块判断加热时长是否达到加热总时长。在达到预设加热时长的情况下,可以执行S610;在未达到预设加热时长的情况下,可以执行S611。S609: The battery heating module judges whether the heating time reaches the total heating time. If the preset heating duration is reached, S610 may be executed; if the preset heating duration is not reached, S611 may be executed.
电池升温模块从控制处理器内核进行加热的情况下,开始计时,在加热时长达到加热总时长的情况下,结束本轮加热,执行S610;在未达到加热总时长的情况下,继续加热,执行S611。When the battery heating module controls the processor core to heat, it starts timing. When the heating time reaches the total heating time, it ends the current round of heating and executes S610; when the heating time does not reach the total heating time, it continues heating and executes S611.
可选地,不同的电池需要的加热总时长是不同的,电池电量越低,需要充电的时间就越长,加热时间应当越长;电池电量越高,充电时间应当越短。因此,基于电子设备可以提前确定电池电量与加热时长之间的映射关系(或者电池电量与加热时长之间的函数关系),在确定当前的核温之后,可以基于电池电量确定一轮加热所需要的时长(加热总时长)。之后电池升温模块可以基于确定的第一加热总时长(X)进行加热。电池电量越低,第一加热总时长越长。这样,能够保证一轮加热使得电子设备的电量能够或者接近充满,从而可以避免一轮加热没充满电再加热一次,或者过度加热的情况,从而可以节约加热所消耗的处理资源,保证充电时长的准确性。Optionally, the total heating time required by different batteries is different. The lower the battery power is, the longer the charging time needs to be, and the longer the heating time should be; the higher the battery power, the shorter the charging time should be. Therefore, based on the electronic device, the mapping relationship between the battery power and the heating duration (or the functional relationship between the battery power and the heating duration) can be determined in advance. After determining the current core temperature, the battery power can be used to determine the required heating for one round. The length of time (total heating time). Afterwards, the battery warming module may perform heating based on the determined first total heating duration (X). The lower the battery power, the longer the total duration of the first heating. In this way, it can be ensured that one round of heating can make the power of the electronic device fully or nearly fully charged, thereby avoiding the situation that one round of heating is not fully charged and then reheated, or overheated, thereby saving the processing resources consumed by heating and ensuring the long charging time. accuracy.
示例性地,假设电子设备的电池升温模块存储有电池电量与加热时长之间的映射关系,映射关系为,当电池电量为0-5%,加热总时长为150min;当电池电量为5-20%,加热总时长为120min;当电池电量为20-50%,加热总时长为100min;当电池电量为50-70%,加热总时长为60min;当电池电量为70-85%,加热总时长为30min;当电池电量为85-99%,加热总时长为15min。基于上述映射关系,若当前电量为30%,电子设备可以确定第一加热总时长为100min,即一轮加热的总时长按照上述的时长进行加热,100min一到,这一轮加热结束。For example, assume that the battery warming module of the electronic device stores the mapping relationship between the battery power and the heating duration. The mapping relationship is, when the battery power is 0-5%, the total heating time is 150 minutes; when the battery power is 5-20 %, the total heating time is 120min; when the battery power is 20-50%, the total heating time is 100min; when the battery power is 50-70%, the total heating time is 60min; when the battery power is 70-85%, the total heating time 30 minutes; when the battery power is 85-99%, the total heating time is 15 minutes. Based on the above mapping relationship, if the current power is 30%, the electronic device can determine that the total duration of the first heating is 100 minutes, that is, the total duration of one round of heating will be heated according to the above duration, and once 100 minutes arrives, this round of heating will end.
S610:电池升温模块获取核温,在核温超过第一核温值的情况下,休眠第一休眠时长;在核温低于第二核温值的情况下,继续进行加热。S610: The battery warming module acquires the core temperature, and sleeps for the first sleep duration when the core temperature exceeds the first core temperature value; continues heating when the core temperature is lower than the second core temperature value.
电池升温模块可以通过升温决策模块预设核温范围。核温范围包括第一核温值和第二核温值。在核温超过第一核温值的情况下,电子设备可以休眠第一休眠时长,即在本轮加热中暂停第一休眠时长;在低于第二核温值的情况下,保持进行加热,即继续执行S608。其中,第一休眠时长小于预设加热总时长。第一核温值大于或等于第二核温值。这样,可以保证核温是在一定的温度范围之内进行加热的,既能够保证电池被加热的同时,还能够使得处理器的温度不要过高,而损害处理器,保证加热过程的安全性,以及处理器的安全性。The battery temperature raising module can preset the core temperature range through the temperature raising decision module. The core temperature range includes a first core temperature value and a second core temperature value. When the core temperature exceeds the first core temperature value, the electronic device can sleep for the first sleep period, that is, suspend the first sleep period during the current round of heating; when it is lower than the second core temperature value, keep heating, That is, continue to execute S608. Wherein, the first sleep duration is less than the total preset heating duration. The first core temperature value is greater than or equal to the second core temperature value. In this way, it can ensure that the core temperature is heated within a certain temperature range, which can not only ensure that the battery is heated, but also prevent the temperature of the processor from being too high, which will damage the processor and ensure the safety of the heating process. and processor security.
示例性地,第一核温值为50摄氏度,第二核温值为10摄氏度。在当前核温大于50摄氏度时,暂停20min(第一休眠时长);在当前核温低于10摄氏度的时候,继续开始加热。Exemplarily, the first core temperature value is 50 degrees Celsius, and the second core temperature value is 10 degrees Celsius. When the current core temperature is greater than 50 degrees Celsius, pause for 20 minutes (the first sleep duration); when the current core temperature is lower than 10 degrees Celsius, continue to start heating.
示例性地,第一核温值和第二核温值均为30摄氏度。在当前核温大于30摄氏度时,暂停20min(第一休眠时长);在当前核温低于30摄氏度的时候,继续开始加热。Exemplarily, both the first core temperature value and the second core temperature value are 30 degrees Celsius. When the current core temperature is greater than 30 degrees Celsius, pause for 20 minutes (the first sleep duration); when the current core temperature is lower than 30 degrees Celsius, continue to start heating.
需要说明的是,S608~S610可以是并行执行的,不限定其执行的先后顺序。It should be noted that S608-S610 may be executed in parallel, and the sequence of execution is not limited.
S611:电池升温模块更新升温运行次数,并结束本轮加热。S611: The battery warming module updates the number of warming operations, and ends the current round of heating.
电池升温模块可以通过升温决策模块确定结束本轮加热之后,电子设备可以将升温运行次数增加一次(进行更新),并结束本轮加热。这样,可以保证计量的升温运行次数的准确性。在执行S611之后,可以继续进行S602监测决策信息,保证能够及时获取到决策信息,以开始加热。After the battery temperature raising module can determine to end the current round of heating through the temperature raising decision-making module, the electronic device can increase (update) the number of temperature raising operations once, and end the current round of heating. In this way, the accuracy of the measured number of temperature raising operations can be guaranteed. After S611 is executed, S602 can be continued to monitor the decision information to ensure that the decision information can be obtained in time to start heating.
上述实施方式中,电池升温模块可以具体按照决策信息执行加热或者停止加热。加热的过程中,处理器的运行可以使得电池快速升温,让电池处于能够充电的温度。此外,电池充电充满是需要一段时间的,因此,可以将一轮加热中,处理器可以按照温度进行运行和停止运行的控制,保证核温处于一个适合充电,且处理器良好的温度范围之间,从而可以使得电池持续充电,保证处理器的安全性和充电电池的安全性。In the above embodiments, the battery temperature raising module may perform heating or stop heating according to the decision information. During the heating process, the operation of the processor can make the battery heat up rapidly, so that the battery can be charged at a temperature. In addition, it takes a while for the battery to be fully charged. Therefore, during a round of heating, the processor can be controlled to run and stop running according to the temperature, so as to ensure that the core temperature is between a suitable temperature range for charging and a good temperature range for the processor. , so that the battery can be continuously charged to ensure the safety of the processor and the safety of the rechargeable battery.
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, depending on the context, the term "when" may be interpreted to mean "if" or "after" or "in response to determining..." or "in response to detecting...". Similarly, depending on the context, the phrase "in determining" or "if detected (a stated condition or event)" may be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)".
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs to instruct related hardware. The programs can be stored in computer-readable storage media. When the programs are executed , may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211405870.8A CN116667470B (en) | 2022-11-10 | 2022-11-10 | Charging method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211405870.8A CN116667470B (en) | 2022-11-10 | 2022-11-10 | Charging method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116667470A true CN116667470A (en) | 2023-08-29 |
CN116667470B CN116667470B (en) | 2024-05-24 |
Family
ID=87726642
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211405870.8A Active CN116667470B (en) | 2022-11-10 | 2022-11-10 | Charging method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116667470B (en) |
Citations (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102496991A (en) * | 2011-12-28 | 2012-06-13 | 南京双登科技发展研究院有限公司 | Backup lithium ion battery pack management method and management system thereof |
CN106688136A (en) * | 2016-10-31 | 2017-05-17 | 深圳市大疆创新科技有限公司 | Battery heating method, battery control system, battery and unmanned aerial vehicle |
CN206422189U (en) * | 2016-10-31 | 2017-08-18 | 深圳市大疆创新科技有限公司 | Battery and unmanned plane |
CN107317066A (en) * | 2017-06-30 | 2017-11-03 | 北京新能源汽车股份有限公司 | Heating control method and system for power battery |
CN207490078U (en) * | 2017-09-05 | 2018-06-12 | 长安大学 | A kind of Quick pre-heating device for power battery pack |
CN108365297A (en) * | 2018-02-09 | 2018-08-03 | 乾江(北京)信息技术有限公司 | Battery temp control method, device, medium and system |
CN108493517A (en) * | 2018-03-26 | 2018-09-04 | 奇瑞汽车股份有限公司 | Low-temperature protection system and method for battery of electric vehicle |
CN108717986A (en) * | 2018-05-31 | 2018-10-30 | 北京新能源汽车股份有限公司 | Power battery preheating method and system |
CN109286036A (en) * | 2018-07-25 | 2019-01-29 | 国网新疆电力有限公司电力科学研究院 | Self-heating lithium battery at low temperature and preparation method thereof |
CN110459837A (en) * | 2019-08-09 | 2019-11-15 | 华为技术有限公司 | Electronic device and battery heating method |
CN112311055A (en) * | 2020-10-23 | 2021-02-02 | Oppo广东移动通信有限公司 | Terminal and charging control method and device thereof |
CN112467829A (en) * | 2020-11-16 | 2021-03-09 | Oppo广东移动通信有限公司 | Charging method, electronic device and adapter |
CN113178910A (en) * | 2021-04-26 | 2021-07-27 | 深圳市优必选科技股份有限公司 | Battery charging method, device, terminal and computer readable storage medium |
CN113829964A (en) * | 2020-06-24 | 2021-12-24 | 比亚迪股份有限公司 | Self-heating method and system for power battery pack, automobile and storage medium |
CN215340863U (en) * | 2021-02-09 | 2021-12-28 | 杭州小电科技股份有限公司 | Temperature early warning control system of portable power source lease equipment |
CN113879180A (en) * | 2021-11-15 | 2022-01-04 | 合众新能源汽车有限公司 | Appointment heating method and device for electric vehicle battery |
CN113991766A (en) * | 2021-09-23 | 2022-01-28 | 荣耀终端有限公司 | Charging method, readable medium, program product, and electronic device |
CN114069070A (en) * | 2021-11-17 | 2022-02-18 | 蜂巢能源科技有限公司 | Heating method of lithium ion battery, oscillation power supply and battery management system |
CN115139829A (en) * | 2022-07-29 | 2022-10-04 | 潍柴动力股份有限公司 | Charging heating control method and device, electronic equipment and storage medium |
-
2022
- 2022-11-10 CN CN202211405870.8A patent/CN116667470B/en active Active
Patent Citations (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102496991A (en) * | 2011-12-28 | 2012-06-13 | 南京双登科技发展研究院有限公司 | Backup lithium ion battery pack management method and management system thereof |
CN106688136A (en) * | 2016-10-31 | 2017-05-17 | 深圳市大疆创新科技有限公司 | Battery heating method, battery control system, battery and unmanned aerial vehicle |
CN206422189U (en) * | 2016-10-31 | 2017-08-18 | 深圳市大疆创新科技有限公司 | Battery and unmanned plane |
CN107317066A (en) * | 2017-06-30 | 2017-11-03 | 北京新能源汽车股份有限公司 | Heating control method and system for power battery |
CN207490078U (en) * | 2017-09-05 | 2018-06-12 | 长安大学 | A kind of Quick pre-heating device for power battery pack |
CN108365297A (en) * | 2018-02-09 | 2018-08-03 | 乾江(北京)信息技术有限公司 | Battery temp control method, device, medium and system |
CN108493517A (en) * | 2018-03-26 | 2018-09-04 | 奇瑞汽车股份有限公司 | Low-temperature protection system and method for battery of electric vehicle |
CN108717986A (en) * | 2018-05-31 | 2018-10-30 | 北京新能源汽车股份有限公司 | Power battery preheating method and system |
CN109286036A (en) * | 2018-07-25 | 2019-01-29 | 国网新疆电力有限公司电力科学研究院 | Self-heating lithium battery at low temperature and preparation method thereof |
CN110459837A (en) * | 2019-08-09 | 2019-11-15 | 华为技术有限公司 | Electronic device and battery heating method |
CN113829964A (en) * | 2020-06-24 | 2021-12-24 | 比亚迪股份有限公司 | Self-heating method and system for power battery pack, automobile and storage medium |
CN112311055A (en) * | 2020-10-23 | 2021-02-02 | Oppo广东移动通信有限公司 | Terminal and charging control method and device thereof |
CN112467829A (en) * | 2020-11-16 | 2021-03-09 | Oppo广东移动通信有限公司 | Charging method, electronic device and adapter |
CN215340863U (en) * | 2021-02-09 | 2021-12-28 | 杭州小电科技股份有限公司 | Temperature early warning control system of portable power source lease equipment |
CN113178910A (en) * | 2021-04-26 | 2021-07-27 | 深圳市优必选科技股份有限公司 | Battery charging method, device, terminal and computer readable storage medium |
CN113991766A (en) * | 2021-09-23 | 2022-01-28 | 荣耀终端有限公司 | Charging method, readable medium, program product, and electronic device |
CN113879180A (en) * | 2021-11-15 | 2022-01-04 | 合众新能源汽车有限公司 | Appointment heating method and device for electric vehicle battery |
CN114069070A (en) * | 2021-11-17 | 2022-02-18 | 蜂巢能源科技有限公司 | Heating method of lithium ion battery, oscillation power supply and battery management system |
CN115139829A (en) * | 2022-07-29 | 2022-10-04 | 潍柴动力股份有限公司 | Charging heating control method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
李夔宁等: "锂离子电池低温复合加热策略及优化", 《储能科学与技术》, vol. 11, no. 10, 5 October 2022 (2022-10-05), pages 3191 - 3198 * |
Also Published As
Publication number | Publication date |
---|---|
CN116667470B (en) | 2024-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210389973A1 (en) | Electronic device and method for operating the same | |
EP3178146B1 (en) | Power broker module | |
KR101729106B1 (en) | Mobile device | |
KR102208433B1 (en) | Method and apparatus for selecting at least one communication method | |
WO2020132891A1 (en) | Optional terminal charging method, graphical user interface and electronic device | |
WO2021043046A1 (en) | Resource management and control method and device | |
CN112527476B (en) | Resource scheduling method and electronic equipment | |
WO2021223539A1 (en) | Radio frequency resource allocation method and apparatus | |
WO2021052410A1 (en) | Application management method and apparatus | |
EP4130969B1 (en) | Method and device for adjusting memory configuration parameter | |
CN113224804B (en) | Charging control method and electronic device | |
US12333288B2 (en) | Application installation method and electronic device | |
US20240137870A1 (en) | Power Consumption Control Method and Apparatus | |
CN114995625B (en) | System power consumption control method and electronic equipment | |
CN116667470A (en) | Charging method and electronic equipment | |
CN115904297A (en) | Screen display detection method, electronic device and storage medium | |
CN115220881A (en) | Process management method, electronic device, process management system, and storage medium | |
CN117713266B (en) | A control method, electronic device and storage medium | |
CN116056190B (en) | Method for managing terminal device, electronic device and computer readable storage medium | |
WO2022022436A1 (en) | Charging method and electronic device | |
CN110045812B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
CN116885826B (en) | Charging method, electronic device and computer readable storage medium | |
CN116107412B (en) | Power consumption optimization method and device | |
CN116031966A (en) | Temperature compensation method and electronic equipment | |
CN118868277A (en) | Wireless reverse charging method, related device and system |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |