CN117041413A - Charging control method, device, electronic equipment and readable storage medium - Google Patents

Charging control method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117041413A
CN117041413A CN202310506240.8A CN202310506240A CN117041413A CN 117041413 A CN117041413 A CN 117041413A CN 202310506240 A CN202310506240 A CN 202310506240A CN 117041413 A CN117041413 A CN 117041413A
Authority
CN
China
Prior art keywords
charging
electronic device
electronic equipment
target
temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310506240.8A
Other languages
Chinese (zh)
Inventor
李立强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310506240.8A priority Critical patent/CN117041413A/en
Publication of CN117041413A publication Critical patent/CN117041413A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User 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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a charging control method, a device, electronic equipment and a readable storage medium, and relates to the field of terminals, wherein the charging control method comprises the following steps: and determining a target charging strategy according to the acquired target parameters when the electronic equipment is detected to be in a state of being on a screen and charged, wherein the target parameters comprise at least one of a type of foreground application, a first temperature of the electronic equipment, system power consumption of the electronic equipment, a type of a charger connected to the electronic equipment, a temperature of an environment where the electronic equipment is located, an electric quantity of a battery of the electronic equipment or a load of a processor of the electronic equipment. And determining a first charging parameter according to the target charging strategy and charging the electronic equipment according to the first charging parameter. According to the application, the corresponding first charging parameters can be obtained by accurate matching according to the target parameters. According to the first charging parameter, the electronic equipment is charged, so that the charging efficiency of the electronic equipment can be guaranteed, the temperature of the electronic equipment can be guaranteed not to be too high, and the use experience of a user is improved.

Description

Charging control method, device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of terminals, and in particular, to a charging control method, a charging control device, an electronic device, and a readable storage medium.
Background
Currently, during charging or during use of an electronic device, such as a smart terminal, it is possible to cause an increase in the internal temperature of the smart terminal, and if the smart terminal is used during charging or charged during use of the smart terminal, it is possible to cause an excessive internal temperature of the smart terminal, thereby causing overheat protection of the smart terminal.
To solve the above problems, a solution is known, in which after the intelligent terminal reaches a certain temperature, the intelligent terminal is charged by a corresponding charging current, so as to ensure that the internal temperature of the intelligent terminal is not too high.
The scheme can avoid the problem that the charging speed of the intelligent terminal is seriously influenced, so that the charging is slow or the charging cannot be performed, although the internal temperature of the intelligent terminal is too high.
Disclosure of Invention
The application provides a charging control method, a charging control device, electronic equipment and a readable storage medium. The target parameters are matched with the corresponding target charging strategies, and the electronic equipment is charged according to the target charging strategies, so that the problems that the charging speed of the intelligent terminal is seriously influenced, and the charging is slow or cannot be carried out in the prior art are solved.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, a charging control method is provided, applied to an electronic device, and includes:
and under the condition that the electronic equipment is detected to be in a bright screen state and in a charging state, determining a target charging strategy according to the acquired target parameters, wherein the target parameters comprise at least one of a type of foreground application, a first temperature of the electronic equipment, system power consumption of the electronic equipment, a type of a charger connected to the electronic equipment, a temperature of an environment in which the electronic equipment is located, an electric quantity of a battery of the electronic equipment or a load of a processor of the electronic equipment. And determining a first charging parameter according to the target charging strategy and charging the electronic equipment according to the first charging parameter.
In an embodiment of the present application, the charge control method is applied to an electronic device, which may include a mobile phone, a tablet computer, a palm game machine, a wearable device, an augmented reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), and the like.
In the first aspect, when the electronic device is detected to be in the bright screen state and the charging state, the corresponding target charging strategy can be accurately obtained by matching target parameters such as the type of the foreground application, the first temperature of the electronic device, the system power consumption of the electronic device and the like. According to the target charging strategy, a first charging parameter which is accurately matched with the target parameter can be obtained. According to the first charging parameter, the electronic equipment is charged, so that the charging efficiency of the electronic equipment can be guaranteed, the temperature of the electronic equipment can be guaranteed not to be too high, and the use experience of a user is improved.
In some possible implementations, after inputting the target charging policy into a preset control module to obtain a first charging parameter and charging the electronic device according to the first charging parameter, the method further includes: a second temperature of the electronic device is obtained. And obtaining the updated first charging parameter according to the second temperature of the electronic equipment. And charging the electronic equipment according to the updated first charging parameters.
In this embodiment, after obtaining the first charging parameter and charging the electronic device according to the first charging parameter, updating the first charging parameter according to the collected second temperature, and charging the electronic device according to the updated first charging parameter, the charging parameter can be adjusted according to the temperature of the electronic device, so that the charging parameter is accurately controlled and the charging efficiency is optimized under the condition that the device cannot overheat.
In some possible implementations, after charging the electronic device according to the updated first charging parameter, the method further includes:
a third temperature of the electronic device is obtained. And stopping charging the electronic equipment according to the target charging strategy when the third temperature is greater than or equal to the first threshold value.
In this embodiment, when the third temperature is greater than or equal to the first threshold, it indicates that the temperature of the electronic device exceeds the charging temperature upper limit set in the current target charging policy, that is, the target charging policy is no longer applicable. In this case, the charging of the electronic device according to the target charging policy is stopped, and the appropriate charging policy may be continuously matched to further ensure that the charging efficiency is optimized without overheating the device.
In some possible implementations, the method further includes: and acquiring multiple groups of data, wherein each group of data comprises a charging strategy and reference information.
According to the obtained target parameters, determining a target charging strategy comprises the following steps: and determining a charging strategy corresponding to the reference information matched with the target parameter in the plurality of reference information as a target charging strategy according to the target parameter and the plurality of groups of data.
In some possible implementations, the reference information includes at least one of a target type of the foreground application, a temperature interval of the electronic device, and a system power consumption interval of the electronic device.
In some possible implementations, after charging the electronic device according to the target charging policy, the method further includes:
and re-acquiring the target parameters. And stopping charging the electronic equipment according to the target charging strategy when the re-acquired target parameter is not matched with the reference information corresponding to the target charging strategy.
In this embodiment, when the acquired target parameter does not match the reference information corresponding to the target charging policy, it indicates that the target charging policy is no longer applicable. In this case, the charging of the electronic device according to the target charging policy is stopped. Then, the appropriate charging strategy can be continuously matched so as to further ensure that the charging efficiency is optimized under the condition that the equipment cannot overheat.
In some possible implementations, when the target parameter includes a system power consumption of the electronic device, the method further includes:
and obtaining the output voltage and the output current of a charger connected to the electronic equipment, and the input voltage and the input current of a battery of the electronic equipment. And determining the system power consumption of the electronic equipment according to the product of the output voltage and the output current of the charger connected to the electronic equipment, the product of the input voltage and the input current of the battery of the electronic equipment and the charging efficiency.
In some possible implementations, the system power consumption of the electronic device is obtained after filtering the system power consumption of the electronic device acquired multiple times in a preset period by using a preset filter.
In this embodiment, by performing filtering processing on the system power consumption of the electronic device acquired multiple times, the system error can be reduced, and the acquisition accuracy of the system power consumption of the sub-device can be improved.
In some possible implementations, the target charging strategy includes a target temperature of the electronic device, a range of first charging parameters, a temperature control mode, a first threshold.
In a second aspect, there is provided a charge control device applied to an electronic apparatus, including:
the determining module is used for determining a target charging strategy according to the obtained target parameters when the electronic equipment is detected to be in a bright screen state and a charging state, wherein the target parameters comprise at least one of the type of foreground application, the first temperature of the electronic equipment, the system power consumption of the electronic equipment, the type of a charger connected to the electronic equipment, the temperature of the environment where the electronic equipment is located, the electric quantity of a battery of the electronic equipment or the load of a processor of the electronic equipment.
And the charging module is used for determining a first charging parameter according to the target charging strategy and charging the electronic equipment according to the first charging parameter.
In some possible implementations, the charging module is further configured to obtain a second temperature of the electronic device. And obtaining the updated first charging parameter according to the second temperature of the electronic equipment. And charging the electronic equipment according to the updated first charging parameters.
In some possible implementations, the charging module is further configured to obtain a third temperature of the electronic device. And stopping charging the electronic device according to the target charging strategy when the third temperature is greater than or equal to the first threshold value.
In some possible implementations, the determining module is specifically configured to obtain multiple sets of data, where each set of data includes a charging policy and reference information, and multiple reference information and target parameters in the multiple sets of data are used to determine the charging policy. And determining a charging strategy corresponding to the reference information matched with the target parameter in the plurality of reference information as a target charging strategy according to the target parameter and the plurality of groups of data.
In some possible implementations, the reference information includes at least one of a target type of the foreground application, a temperature interval of the electronic device, and a system power consumption interval of the electronic device.
In some possible implementations, the charging module is further configured to reacquire the target parameter. And stopping charging the electronic equipment according to the target charging strategy when the re-acquired target parameter is not matched with the reference information corresponding to the target charging strategy.
In some possible implementations, the apparatus further includes an obtaining module configured to obtain an output voltage and an output current of a charger connected to the electronic device, and an input voltage and an input current of a battery of the electronic device when the target parameter includes a system power consumption of the electronic device. And determining the system power consumption of the electronic equipment according to the product of the output voltage and the output current of the charger connected to the electronic equipment, the product of the input voltage and the input current of the battery of the electronic equipment and the charging efficiency.
In some possible implementations, the system power consumption of the electronic device is obtained after filtering the system power consumption of the electronic device acquired multiple times in a preset period by using a preset filter.
In some possible implementations, the target charging strategy includes a target temperature of the electronic device, a range of first charging parameters, a temperature control mode, a first threshold.
In a third aspect, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the computer program to perform the steps of the first aspect or any of the methods of the first aspect.
In a fourth aspect, a chip is provided, which includes: a processor for calling and running a computer program from a memory, such that a device on which the chip is mounted performs the steps of the first aspect or any of the methods of the first aspect.
In a fifth aspect, there is provided a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the steps of the first aspect or any of the methods of the first aspect.
In a sixth aspect, there is provided a computer program product comprising: computer program code which, when run by an electronic device, causes the electronic device to perform the steps of the first aspect or any of the methods of the first aspect.
The advantages of the second aspect to the sixth aspect may refer to the first aspect, and are not described herein.
Drawings
Fig. 1 is a schematic diagram of an application scenario of a charging control method according to an embodiment of the present application;
fig. 2 is a schematic diagram of another application scenario of the charge control method provided in the embodiment of the present application;
Fig. 3 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present application;
FIG. 4 is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a system module of a charging control method according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a charging control method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a scene recognition module according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a system power consumption calculation module according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a control module according to an embodiment of the present application;
fig. 10 is a block diagram of a charging control device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
It is known that during charging of an electronic device or during use of an electronic device, the temperature of the electronic device may rise, on the basis of which a user charges the electronic device during use of the electronic device (i.e. when the screen is lit), or during charging of the electronic device, the temperature of the electronic device may be too high, resulting in overheating protection of the electronic device, affecting the user's use.
In order to solve the above-described problem, it is possible to detect the temperature of the electronic device when the user uses the electronic device and charges the electronic device. And after the temperature of the electronic equipment reaches the set temperature, starting to control the charging current, and limiting the charging current to a corresponding value. This solution, when limiting the charging current, can seriously affect the charging rate of the electronic device, resulting in a slow or non-charging problem.
In view of the above, the present application provides a charging control method, applied to an electronic device, including:
and under the condition that the electronic equipment is detected to be in a bright screen state and in a charging state, determining a target charging strategy according to the acquired target parameters, wherein the target parameters comprise at least one of a type of foreground application, a first temperature of the electronic equipment, system power consumption of the electronic equipment, a type of a charger connected to the electronic equipment, a temperature of an environment in which the electronic equipment is located, an electric quantity of a battery of the electronic equipment or a load of a processor of the electronic equipment. And determining a first charging parameter according to the target charging strategy and charging the electronic equipment according to the first charging parameter.
Under the condition that the electronic equipment is detected to be in a bright screen state and in a charging state, corresponding target charging strategies can be obtained by accurate matching according to target parameters such as the type of foreground application, the first temperature of the electronic equipment, the system power consumption of the electronic equipment and the like. According to the target charging strategy, a first charging parameter which is accurately matched with the target parameter can be obtained. Therefore, the electronic equipment is charged according to the first charging parameter, so that the charging efficiency of the electronic equipment can be ensured, the temperature of the electronic equipment can be ensured not to be too high, and the use experience of a user is improved.
In addition, after the temperature of the electronic equipment reaches the set temperature, the scheme for starting to control the charging current belongs to a post-control strategy, so that hysteresis is large, and accurate control of the temperature of the mobile phone cannot be realized. According to the scheme, the target parameters are acquired under the condition that the electronic equipment is in the bright screen state and the charging state, the first charging parameters are determined according to the matched target charging strategy, and the electronic equipment is charged according to the first charging parameters, so that the method belongs to the front control strategy, the charging efficiency of the electronic equipment can be ensured while the temperature of the mobile phone is controlled more accurately, and the use experience of a user is improved.
First, an application scenario of the embodiment of the present application is briefly described.
Fig. 1 is a schematic diagram of an application scenario of a charging control method provided by an embodiment of the present application, and fig. 2 is a schematic diagram of another application scenario of a charging control method provided by an embodiment of the present application.
Referring to fig. 1, an electronic device 100, a charging cord 201, a charger 202, an alternating current (Alternating Current, AC) outlet, and a user 300 are included.
In one possible scenario, referring to fig. 1, a user 300 is using an electronic device 100, the electronic device 100 screen is lit, and at least one application is running in the foreground. The charging interface of the electronic device 100 is connected to the charging wire 201, the charging wire 201 is connected to the charger 202, and the charger 202 is connected to the AC socket 203. The charger 202 converts the input alternating current into direct current conforming to the charging standard of the electronic device 100, and inputs the direct current to the electronic device 100 through the charging wire 201.
In another possible scenario, referring to fig. 2, a user 300 is using an electronic device 100, the electronic device 100 screen is lit, and at least one application is running in the foreground. The electronic device 100 supports wireless charging, and a wireless charging coil is disposed in the electronic device 100 and is used for receiving energy transmitted by the wireless charger 204, and converting the received energy into electric energy to be flushed into a battery of the electronic device 100. One end of the charging wire 201 is provided with a wireless charger 204, the other end is connected with a charger 202, and the charger 202 is connected to an AC socket 203. Charger 202 converts the input ac power into dc power that complies with the standards of wireless charger 204. The wireless charger 204 is provided with a wireless charging coil, and when a current is input to the wireless charger 204, the wireless charger 204 rectifies the current by oscillation and inputs the current to the wireless charging coil to generate a magnetic field. Another wireless charging coil is provided in the electronic device 100, and when the wireless charging coil of the electronic device 100 approaches the wireless charging coil of the wireless charger 204, the wireless charging coil of the electronic device 100 captures a magnetic field generated by the wireless charging coil of the wireless charger 204 and converts energy of the captured magnetic field into electric energy to charge the battery of the electronic device 100.
Fig. 3 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device may include a cell phone, tablet computer, palm game, wearable device, augmented reality (augmented reality, AR)/Virtual Reality (VR) device, notebook computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc. Embodiments of the present application are not limited in any way with respect to the particular type of electronic device.
Referring to fig. 3, 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
For example, when the electronic device 100 is a mobile phone or a tablet computer, all the components in the illustration may be included, or only some of the components in the illustration may be included.
The processor 110 may include one or more processing units, such as: 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), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the 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 reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented 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.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is 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.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
In an embodiment of the present application, the temperature sensor 180J may include a plurality of sensors for detecting temperatures at different locations of the electronic device 100, for example, may be disposed near a processor, acquire a temperature of the processor, be disposed near a battery, acquire a temperature of the battery, or be disposed inside a housing of the electronic device 100, for acquiring a temperature of the housing of the electronic device 100.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
For the scenario in fig. 1 and 2, the operating system of electronic device 100 may include, but is not limited to, the operating systems of saint (Symbian), android (android), windows (Windows), apples (MacOS, iOS), blackberry (Blackberry), hong (harmony os), and the like. The application does not set any limit to the operating system of the electronic device.
Fig. 4 is a software structural block diagram of an electronic device according to an embodiment of the present application.
As an example, when the operating system of the electronic device 100 may be android, the software structure thereof may refer to fig. 4.
The layered architecture divides the software into a plurality of layers, and each layer has clear roles and division. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display characters, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying characters and a view displaying pictures.
The telephony manager is used to provide the communication functions of the electronic device 11. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 5 is a schematic diagram of a system module of a charging control method according to an embodiment of the present application.
Referring to fig. 5, the system includes a scene recognition module, a control module, and a system power consumption calculation module.
In this embodiment, the scene recognition module is deployed in the application layer shown in fig. 4 in the form of an application, and the scene recognition module communicates with the kernel layer through a hardware abstraction layer interface definition language (HAL interface definition language, HIDL) interface, or the JNI interface communicates with the application layer. The scene recognition module is used for acquiring various target parameters.
The system power consumption calculation module is arranged in the kernel layer, and can acquire charging parameters of the electronic equipment, such as charger input current, charger input voltage, input voltage of a battery, input current and the like, through the kernel layer. The system power consumption calculation module can calculate the system power consumption according to the charging parameters and transmit the system power consumption to the scene recognition module through the HIDL interface. The scene recognition module can match corresponding scenes according to the target parameters, and transmits charging strategies corresponding to the scenes to the control module through Java local interfaces (Java Native Interface, JNI).
The control module is deployed in a local framework (Native) in the system library and is used for calculating and obtaining charging parameters according to the charging strategy transmitted by the scene recognition module. And controlling the charging power through the HIDL interface according to the calculated charging parameters.
The following describes a charging control method provided by the embodiment of the present application by taking an example that the charging control method is applied to the electronic device 100 shown in fig. 1 or fig. 2 as a mobile phone, where a hardware architecture of the electronic device 100 may refer to fig. 3, a software architecture may refer to fig. 4, and a system module may refer to fig. 5.
Fig. 6 is a flowchart of a charging control method according to an embodiment of the present application.
Referring to fig. 6, the charge control method includes:
s601, determining that the electronic equipment is in a bright screen state and is in a charging state.
In a possible implementation manner, referring to the system module shown in fig. 5, the scene recognition module may acquire the target parameter once every preset time period. When the charging state identifier in the target parameter indicates that the electronic equipment is in a charging state and the bright screen state identifier indicates that the electronic equipment is in a bright screen state, the electronic equipment can be determined to be in the bright screen state and the charging state. The preset duration may be 1 second, 3 seconds, 5 seconds, or 10 seconds, which is not limited herein.
Or if the target parameter does not include the charging state or the screen-bright state, the electronic equipment can be determined to be in the screen-bright state by whether the foreground application can be acquired or not. For example, if the foreground application can be acquired, the application indicating that the foreground is active may determine that the electronic device is in the bright screen state.
If the charging current or the charging voltage is detected in the received system power consumption calculation module, the electronic equipment can be determined to be in a charging state. That is, if there is a foreground application and there is a charging current or charging voltage, it may be determined that the electronic device is in both the on-screen state and the charged state.
S602, acquiring target parameters, and determining a target charging strategy according to the target parameters.
In some possible implementations, the acquisition of the target parameters may be implemented by a scene recognition module shown in fig. 5.
Fig. 7 is a schematic structural diagram of a scene recognition module according to an embodiment of the present application.
In one possible implementation, referring to fig. 7, the target parameter may include at least one of a type of foreground application, a first temperature of the electronic device, and a system power consumption of the electronic device. Alternatively, a load of a System On Chip (SOC), a current power, an ambient temperature, a charger type, and the like may be included. The first temperature of the electronic device, the system power consumption of the electronic device, the load of the SOC, the current electric quantity, the charger type, and other parameters may be acquired by the scene recognition module from the kernel layer through the HIDL interface. Parameters such as the type of foreground application, the ambient temperature and the like can be acquired after the scene recognition module JNI interface is communicated with the application program layer.
By way of example, the types of foreground applications may include video class (denoted type 1), browser class (denoted type 2), instant messaging class (denoted type 3), game class (denoted type 4), and so forth. The first temperature of the electronic device may be a temperature of a processor of the electronic device, a front case temperature (case temperature), or a battery temperature, etc. The charger type may include wired charging, wireless charging, quick charging, and the like. The front shell temperature refers to the temperature of a mobile phone screen.
For example, the front shell temperature of the electronic device is acquired, and the temperature data can be acquired through at least one temperature sensor arranged around the screen of the electronic device. When a plurality of temperature sensors are disposed around the screen of the electronic device, the front case temperature of the electronic device may be an average value of a plurality of temperature data acquired by the plurality of temperature sensors.
For another example, the ambient temperature may be acquired by a temperature sensor provided by the electronic device itself, or may be acquired by an intelligent device connected to the electronic device. If the electronic equipment is connected with the intelligent air purifier, the intelligent air conditioner and other equipment through a network, the electronic equipment can acquire the ambient temperature acquired by the intelligent air purifier or the intelligent air conditioner as the ambient temperature of the electronic equipment.
It should be noted that, since the battery voltage in the mobile phone is unchanged, the change of the system power consumption and the current are in a linear relationship, and the system power consumption can be represented by the current. In the present application, system power consumption is characterized by current in milliamp (mA)
In one possible implementation manner, multiple sets of data may be acquired first, where each set of data includes a charging policy and reference information, and multiple reference information and target parameters in the multiple sets of data are used to determine the charging policy.
As an example, the reference information may include at least one of a target type of the foreground application, a temperature interval of the electronic device, and a system power consumption interval of the electronic device.
In one possible implementation, each set of data may correspond to a charging scenario. That is, each charging scenario corresponds to reference information and a charging policy in one set of data, in other words, the reference information and the charging policy in each set of data represent one charging scenario. When multiple sets of data are stored, the data can be stored in the field Jing Yuzhi library in the form of a charging scene.
As an example, the charging scenario may be stored by one JS object profile (JavaScript Object Notation, JSON) file or a fragment of the JSON file. For example, multiple charging scenarios may be recorded in one JSON file, where each charging scenario is a piece of code in the JSON file. Alternatively, a set of data corresponding to each charging scenario may be separately recorded in one JSON file.
As an example, multiple sets of data corresponding to multiple charging scenes may be recorded in one JSON file, where one JSON file included in the scene prefabricated library may be stored locally in the electronic device, or may also be stored in the cloud through a distributed storage system.
In another example, when a plurality of charging scenes are recorded individually in a plurality of JSON files, the scene prefabricated library includes the plurality of JSON files. The JSON file may be stored partially locally on the electronic device and partially in the cloud via a distributed storage system. Alternatively, all JSON files may be stored locally on the electronic device or stored at the cloud.
In a possible implementation manner, according to the target parameter and the multiple sets of data, determining a charging strategy corresponding to the reference information matched with the target parameter in the multiple reference information as a target charging strategy.
As an example, after acquiring the JSON file from the local or cloud, multiple sets of data corresponding to multiple charging scenes may be extracted first.
In one possible implementation, when the target parameter includes a system power consumption of the electronic device, acquiring the system power consumption may first acquire an output voltage and an output current of a charger connected to the electronic device, and an input voltage and an input current of a battery of the electronic device.
Then, the system power consumption of the electronic device can be determined according to the product of the output voltage and the output current of the charger connected to the electronic device, the product of the input voltage and the input current of the battery of the electronic device, and the charging efficiency.
As an example, the system power consumption in the above implementation may be obtained by a system power consumption calculation module.
Fig. 8 is a schematic structural diagram of a system power consumption calculation module according to an embodiment of the present application.
Referring to fig. 8, the system power consumption calculation module includes a charging chip efficiency calculation, a system power consumption collection, and filtering. The efficiency of the charging chip is the ratio of the electric quantity output during the discharging period of the charging chip to the electric quantity required by the charging of the charging chip to restore to the full-charge state. For example, it can be calculated by the following formula:
wherein I is out For the output current during the discharging period of the charging chip, T out Is the time to discharge to the off-voltage. I in For charging current, T in Is the charging time.
The charging chip efficiency may be calculated from historical charging data of the electronic device. When the historical charge data amount of the electronic device is insufficient, the charge chip efficiency set in advance according to the charge chip model may be used.
The single system power consumption acquisition can firstly acquire the output voltage and the output current of a charger connected to the electronic equipment, and the input voltage and the input current of a battery of the electronic equipment. The system power consumption of the electronic device is the product of the output voltage and the output current of the charger connected to the electronic device, and the product of the input voltage and the input current of the battery of the electronic device is subtracted, and then the charging efficiency is multiplied.
In one possible implementation, the system power consumption may be represented by a current, and the system power consumption of the electronic device is the product of the output voltage and the output current of the charger connected to the electronic device, and the product of the input voltage and the input current of the battery of the electronic device is subtracted, divided by the input voltage of the battery of the electronic device, and then multiplied by the charging efficiency.
In this embodiment, the single system power consumption acquisition may be calculated by the following formula:
the VBUS is an output voltage of the charger connected to the electronic device (i.e., a voltage of the charger input to the electronic device), and IBUS is an output current of the charger connected to the electronic device (i.e., a current of the charger input to the electronic device). VBAT is the input current (i.e., charging current) of the battery of the electronic device, IBAT is the input voltage (i.e., charging voltage) of the battery of the electronic device.
In one possible implementation, the system power consumption cannot be accurately expressed due to possible errors in a single system power consumption acquisition. Therefore, the system power consumption can be obtained by adopting a preset filter to filter the system power consumption of the electronic equipment acquired for multiple times in a preset period.
As an example, the filter may be an infinite impulse response (Infinite Impulse Response, IIR) filter, a moving average filter, or the like.
For example, when a moving average filter is used and the period is 10, the system power consumption is set to x, and the system power consumption collected 10 times historically is [ x ] n-9 ,x n ]The system power consumption can be calculated by the following formula:
in a possible implementation manner, after the target parameter is obtained, the reference information corresponding to each charging scene is obtained, the target parameter is compared with each reference information, when the target parameter is completely matched with one reference information, the charging scene corresponding to the reference information is determined to be the target charging scene, and the charging strategy of the target charging scene is the target charging strategy.
Through the charging scene that a plurality of target parameters match, the charging strategy that current electronic equipment needs can be accurate judgement, the temperature of control electronic equipment that charges according to this charging strategy can be more accurate, charging efficiency is guaranteed simultaneously.
In some possible implementations, the target charging policy may include a target temperature of the electronic device, a range of first charging parameters, a temperature control mode, a first threshold.
When the first charging parameter is obtained by the control module target charging strategy, the target charging strategy may be input to the control module. In this case, the target charging policy may also include module configuration parameters. The module configuration parameters are used to configure the control module.
As an example, when the control module is a proportional-integral-derivative (PID) module, the target temperature of the electronic device is the temperature maintained by the electronic device after the PID control module intervenes. The first threshold is the upper temperature limit of the electronic device, namely the highest temperature reached by the electronic device after the intervention of the PID control module, and when the temperature of the electronic device is greater than or equal to the upper temperature limit, the current charging strategy is not applicable any more. The range of the first charging parameter is a limitation of the PID module to output the first charging parameter, so as to prevent the first charging parameter output by the PID module from being too large or too small. The module configuration parameters comprise module operation time length and proportion adjustment parameters K p Integral regulating parameter K i Differential adjustment parameters. The temperature control mode may then comprise a step or a linear type.
For example, the target parameters include foreground application type (type 1), system power consumption (700 mA), current power (35%), shell temperature (27 ℃) and ambient temperature (25 ℃).
And 3 charging scenes are acquired, namely a charging scene 1, a charging scene 2 and a charging scene 3. The charging scene 1 comprises reference information 1 and a charging strategy 1, the charging scene 2 comprises reference information 2 and a charging strategy 2, and the charging scene 3 comprises reference information 3 and a charging strategy 3.
As an example, the reference information is specifically:
reference information 1: the shell temperature is less than or equal to 35 ℃, and the application types of the foreground are type 1, system power consumption [600, 700] mA, battery power [0, 20]%, and environment temperature [0, 33 ℃.
Reference information 2: the shell temperature is less than or equal to 35 ℃, and the application type of the foreground is type 2, the system power consumption is 300, 600 mA, the battery power is 0, 40 percent, and the environment temperature is 0, 33 ℃.
Reference information 3: the shell temperature is less than or equal to 35 ℃, and the application types of the foreground are type 1, system power consumption [600, 800] mA, battery power [0, 40]%, and environment temperature [0, 30] ℃.
Wherein, the target parameter can be matched with a plurality of reference information in sequence. For example, the target parameter is compared with the reference information 1, and the comparison result is that the battery power in the target parameter is not matched with the reference information 1. And then comparing the target parameter with the reference information 2, wherein the comparison result is that the foreground application type and the system power consumption range in the target parameter are not matched with the reference information 2. Finally, the target parameter is compared with the reference information 3, and the comparison result is a complete match. Then charging scenario 3 is the target charging scenario and charging strategy 3 is the target charging strategy.
As an example, when the control module is a PID control module, the target temperature of the electronic device, the module configuration parameter, the temperature control mode, the upper temperature limit of the electronic device, and the like may be included in the charging policy 3. In the module configuration parameters, the operation time of the PID module can be 600 seconds, and the proportion adjustment parameter K p = 5500.0, integral adjustment parameter K i =28.0 and differential adjustment parameter K d =0.0. The temperature control mode can be a step-type temperature rise, the target temperature of the electronic equipment is 37 ℃, and the upper temperature limit of the electronic equipment is 37.5 ℃.
In another example, the target parameters include foreground application type (type 2), system power consumption (400 mA), current power (30%), shell temperature (29 ℃) and ambient temperature (24 ℃). The obtained charging scenario is the same as the above example.
The target parameter may be matched with multiple reference information in sequence. For example, the target parameter is compared with the reference information 1, and the comparison result is that the foreground application type, the battery power and the system power consumption range in the target parameter are not matched with the reference information 1. Then, the target parameter is compared with the reference information 2, and the comparison result is a complete match. Then charging scenario 2 is the target charging scenario and charging strategy 2 is the target charging strategy.
As an example, when the control module is a PID control module, the target temperature of the electronic device, the module configuration parameters, the temperature control mode, the upper temperature limit of the electronic device, and the like may be included in the charging policy 2. In the module configuration parameters, the operation time of the PID module can be 1200 seconds, and the proportion adjustment parameter K p = 6500.0, integral adjustment parameter K i =50.0 and differential adjustment parameter K d =0.0. The temperature control mode can be a step type temperature rise, the target temperature of the electronic equipment is 36 ℃, and the upper limit of the temperature of the electronic equipment is 37 ℃.
In yet another possible implementation, when the field Jing Yuzhi library is stored in the cloud, the electronic device may upload the target parameters to the cloud, where the target charging policy is matched according to the target parameters. The electronic device may then receive the target charging policy sent by the cloud. The method for matching the target charging policy at the cloud according to the target parameter is the same as the method in the above embodiment, and will not be described herein.
S603, according to the target charging strategy, obtaining a first charging parameter through the control module and charging the electronic equipment according to the first charging parameter.
Fig. 9 is a schematic structural diagram of a control module according to an embodiment of the present application.
In one possible implementation, referring to S602 and fig. 9, the control module may be a PID control module. The PID module comprises proportional adjustment, integral adjustment and differential adjustment.
The proportional adjustment is to respond and control the deviation of the PID control module (i.e. the deviation between the feedback and the target) in real time in proportion, and once the deviation is generated in the feedback, the PID control module generates control to reduce the error. When the deviation is 0, the control action is also 0. Thus, the proportional control is adjusted based on the deviation, i.e., there is a differential adjustment.
The integral adjustment can memorize errors, is mainly used for eliminating static differences and improving the no-difference degree of the PID control module, the intensity of the integral action depends on an integral time constant, and the larger the integral time constant is, the weaker the integral action is, and otherwise, the stronger the integral action is.
The differential regulation can reflect the variation trend (variation rate) of the deviation, and can introduce an effective early correction signal into the PID control module before the deviation becomes too large, thereby accelerating the action speed of the system and reducing the regulation time.
When the control module is a PID control module, the scene recognition module can send the target charging strategy to the PID control module through the JNI interface. And after receiving the target charging strategy, the PID control module configures according to the target charging strategy and outputs a first charging parameter.
As an example, the first charging parameter may be a charging current. The feedback of the PID may be a shell temperature of the electronic device acquired after charging the electronic device according to the first charging parameter.
In one possible implementation manner, a charging module corresponding to the charging chip is arranged in the core layer, and the PID control module can transmit the first charging parameter to the charging module in the core layer through the HIDL interface to instruct the charging module to charge the battery according to the first charging parameter.
For example, the first charging parameter output by the PID control module is charging current 4.5A. The PID control module instructs the charging module in the kernel layer to charge the battery with a charging current of 4.5A through the HIDL interface.
In some possible embodiments, after the electronic device is charged according to the first charging parameter, the scene recognition module may further reacquire the target parameter every preset time period (e.g. 5 seconds). And stopping charging the electronic equipment according to the target charging strategy when the re-acquired target parameter is not matched with the reference information corresponding to the target charging strategy.
In one possible implementation manner, when the target parameters obtained again for multiple times do not match the reference information corresponding to the target charging policy, charging of the electronic device according to the target charging policy may be stopped.
For example, within 30 seconds, the scene recognition module reacquires 6 sets of target parameters, and if all of the 6 sets of target parameters do not match the reference information corresponding to the target charging policy, the charging of the electronic device according to the target charging policy is stopped.
And when the re-acquired target parameter is not matched with the reference information corresponding to the target charging strategy, indicating that the target charging strategy is not applicable any more. In this case, the charging of the electronic device according to the target charging policy is stopped. Then, the appropriate charging strategy can be continuously matched so as to further ensure that the charging efficiency is optimized under the condition that the equipment cannot overheat.
In a possible implementation manner, after S603, the method further includes:
s604, acquiring a second temperature of the electronic equipment.
In one possible implementation, the second temperature of the electronic device may be a shell temperature acquired after the first charging parameter is obtained by the control module and the electronic device is charged according to the first charging parameter.
S605, inputting a second temperature of the electronic equipment into the control module, and updating the first charging parameter by the control module according to the second temperature of the electronic equipment.
And S606, charging the electronic equipment according to the updated first charging parameters.
In one possible implementation manner, the control module is a PID module, and the second temperature of the electronic device may be used as a feedback to be input into the PID module, where the PID module updates the first charging parameter according to the second temperature of the electronic device, and charges the electronic device according to the updated first charging parameter.
For example, the second temperature of the electronic device is 35.5 ℃, and the PID module updates the first charging parameter to 2A according to the second temperature of the electronic device. Then, the PID control module instructs the charging module in the kernel layer to charge the battery with a charging current of 2A through the HIDL interface.
In a possible implementation manner, after S607, the method further includes:
s607, acquiring a third temperature of the electronic equipment.
In one possible implementation manner, after the electronic device is charged according to the updated first charging parameter, the scene recognition module may further acquire a third temperature of the electronic device at intervals of a preset period (for example, 1 second), where the third temperature of the electronic device may also be a shell temperature of the electronic device.
And S608, stopping charging the electronic equipment according to the target charging strategy when the third temperature is greater than or equal to the first threshold value.
In one possible implementation, when the third temperature of the electronic device is greater than or equal to the first threshold, it indicates that the target charging strategy has not been applied. In this case, the charging of the electronic device according to the target charging policy may be stopped.
For example, the first threshold may be an upper temperature limit (e.g., 37 ℃) of the electronic device. After the electronic device is charged according to the first charging parameter, the scene recognition module obtains that the temperature of the electronic device is 38 ℃. In this case, the charging of the electronic device according to the target charging policy may be stopped.
Or, the third temperature of the electronic device may be re-acquired multiple times, and if the third temperatures acquired multiple times are all greater than or equal to the first threshold, it is determined that the third temperature of the electronic device is greater than or equal to the first threshold. And stopping charging the electronic equipment according to the target charging strategy.
For example, the scene recognition module re-acquires the third temperature of the 5 electronic devices within 5 seconds, and if the acquired third temperatures of the 5 electronic devices are all greater than 37 ℃, the electronic devices are stopped from being charged according to the target charging strategy.
In yet another possible implementation, the third temperature of the electronic device may be determined to be greater than or equal to the first threshold when the average of the third temperatures of the electronic device is greater than or equal to the first threshold multiple times. And stopping charging the electronic equipment according to the target charging strategy.
For example, the scene recognition module re-acquires the third temperature of the 5 electronic devices within 5 seconds, and if the average value of the acquired third temperatures of the 5 electronic devices is 37.5 ℃ and greater than 37 ℃, the scene recognition module stops charging the electronic devices according to the target charging strategy.
When the third temperature of the electronic device is determined to be greater than or equal to the first threshold, the target charging strategy is indicated to be incapable of stabilizing the temperature of the electronic device. In this case, the charging of the electronic device according to the target charging policy may be stopped. And then, continuously acquiring target parameters, and matching a proper charging strategy to further ensure that the charging efficiency is optimized under the condition that the equipment cannot overheat.
It should be understood that the above description is intended to aid those skilled in the art in understanding the embodiments of the present application, and is not intended to limit the embodiments of the present application to the specific values or particular scenarios illustrated. It will be apparent to those skilled in the art from the foregoing description that various equivalent modifications or variations can be made, and such modifications or variations are intended to be within the scope of the embodiments of the present application.
Corresponding to the charge control method provided in the above embodiment, fig. 11 is a block diagram of a charge control device provided in an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 10, the charge control device, applied to an electronic apparatus, includes:
the determining module 1001 is configured to determine, when it is detected that the electronic device is in both a bright screen state and a charged state, a target charging policy according to an obtained target parameter, where the target parameter includes at least one of a type of a foreground application, a first temperature of the electronic device, a system power consumption of the electronic device, a type of a charger connected to the electronic device, a temperature of an environment in which the electronic device is located, an electric quantity of a battery of the electronic device, or a load of a processor of the electronic device.
The charging module 1002 is configured to determine a first charging parameter according to a target charging policy, and charge the electronic device according to the first charging parameter.
In some possible implementations, the charging module 1002 is further configured to obtain a second temperature of the electronic device. And obtaining the updated first charging parameter according to the second temperature of the electronic equipment. And charging the electronic equipment according to the updated first charging parameters.
In some possible implementations, the charging module 1002 is further configured to obtain a third temperature of the electronic device. And stopping charging the electronic device according to the target charging strategy when the third temperature is greater than or equal to the first threshold value.
In some possible implementations, the determining module 1001 is specifically configured to obtain multiple sets of data, where each set of data includes a charging policy and a reference information. And determining a charging strategy corresponding to the reference information matched with the target parameter in the plurality of reference information as a target charging strategy according to the target parameter and the plurality of groups of data.
In some possible implementations, the reference information includes at least one of a target type of the foreground application, a temperature interval of the electronic device, and a system power consumption interval of the electronic device.
In some possible implementations, the charging module 1002 is further configured to reacquire the target parameter. And stopping charging the electronic equipment according to the target charging strategy when the re-acquired target parameter is not matched with the reference information corresponding to the target charging strategy.
In some possible implementations, the apparatus further includes an obtaining module 1003 configured to obtain an output voltage and an output current of a charger connected to the electronic device, and an input voltage and an input current of a battery of the electronic device when the target parameter includes a system power consumption of the electronic device. And determining the system power consumption of the electronic equipment according to the product of the output voltage and the output current of the charger connected to the electronic equipment, the product of the input voltage and the input current of the battery of the electronic equipment and the charging efficiency.
In some possible implementations, the system power consumption of the electronic device is obtained after filtering the system power consumption of the electronic device acquired multiple times in a preset period by using a preset filter.
In some possible implementations, the target charging strategy includes a target temperature of the electronic device, a range of first charging parameters, a temperature control mode, a first threshold.
It should be noted that, because the content of information interaction and execution process between the modules and the embodiment of the method of the present application are based on the same concept, specific functions and technical effects thereof may be referred to in the method embodiment section, and details thereof are not repeated herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. For example, a "module" may be a software program, a hardware circuit, or a combination of both that implements the functionality described above. The hardware circuitry may include application specific integrated circuits (application specific integrated circuit, ASICs), electronic circuits, processors (e.g., shared, proprietary, or group processors, etc.) and memory for executing one or more software or firmware programs, merged logic circuits, and/or other suitable components that support the described functions.
Thus, the modules of the examples described in the embodiments of the present application can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
It should be understood that, the hardware system, the device and the chip in the embodiments of the present application may perform the foregoing various charging control methods in the embodiments of the present application, that is, the following specific working processes of various products may refer to the corresponding processes in the foregoing method embodiments.
The embodiment of the application also provides another electronic device which comprises a sensor, a processor and a memory.
And the sensor is used for acquiring the temperature, such as the shell temperature and the environment temperature of the electronic equipment.
A memory for storing a computer program executable on the processor.
And a processor for executing the steps of processing in the charge control method as described above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions; the computer readable storage medium, when run on a charge control device, causes the charge control device to perform the method as previously described. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The embodiment of the application also provides a computer program product containing computer instructions, which when run on the charging control device, enable the charging control device to execute the technical scheme shown in the foregoing.
Fig. 11 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip shown in fig. 11 may be a general-purpose processor or a special-purpose processor. The chip includes a processor 1101. The processor 1101 is configured to support the charge control device to execute the foregoing technical solution.
Optionally, the chip further comprises a transceiver 1102, and the transceiver 1102 is controlled by the processor 1101 and is used to support the communication device to perform the above-described technical solution.
Optionally, the chip shown in fig. 11 may further include: a storage medium 1103.
It should be noted that the chip shown in fig. 11 may be implemented using the following circuits or devices: one or more field programmable gate arrays (field programmable gate array, FPGA), programmable logic devices (programmable logic device, PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuit or combination of circuits capable of performing the various functions described throughout this application.
The electronic device, the charging control device, the computer storage medium, the computer program product and the chip provided by the embodiments of the present application are all used for executing the method provided above, so that the beneficial effects achieved by the embodiments of the present application can refer to the beneficial effects corresponding to the method provided above, and are not described herein.
It should be understood that the above description is only intended to assist those skilled in the art in better understanding the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. It will be apparent to those skilled in the art from the foregoing examples that various equivalent modifications or variations can be made, for example, certain steps may not be necessary in the various embodiments of the detection methods described above, or certain steps may be newly added, etc. Or a combination of any two or more of the above. Such modifications, variations, or combinations are also within the scope of embodiments of the present application.
It should also be understood that the foregoing description of embodiments of the present application focuses on highlighting differences between the various embodiments and that the same or similar elements not mentioned may be referred to each other and are not repeated herein for brevity.
It should be further understood that the sequence numbers of the above processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation process of the embodiments of the present application.
It should be further understood that, in the embodiments of the present application, the "preset" and "predefined" may be implemented by pre-storing corresponding codes, tables, or other manners that may be used to indicate relevant information in a device (including, for example, an electronic device), and the present application is not limited to the specific implementation manner thereof.
It should also be understood that the manner, the case, the category, and the division of the embodiments in the embodiments of the present application are merely for convenience of description, should not be construed as a particular limitation, and the features in the various manners, the categories, the cases, and the embodiments may be combined without contradiction.
It is also to be understood that in the various embodiments of the application, where no special description or logic conflict exists, the terms and/or descriptions between the various embodiments are consistent and may reference each other, and features of the various embodiments may be combined to form new embodiments in accordance with their inherent logic relationships.
Finally, it should be noted that: the foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A charging control method, wherein the method is applied to an electronic device, and comprises:
determining a target charging strategy according to the acquired target parameters when the electronic equipment is detected to be in a bright screen state and a charging state, wherein the target parameters comprise at least one of a type of foreground application, a first temperature of the electronic equipment, system power consumption of the electronic equipment, a type of a charger connected to the electronic equipment, a temperature of an environment where the electronic equipment is located, an electric quantity of a battery of the electronic equipment or a load of a processor of the electronic equipment;
and determining a first charging parameter according to the target charging strategy, and charging the electronic equipment according to the first charging parameter.
2. The method of claim 1, wherein after charging the electronic device according to the first charging parameter, the method further comprises:
acquiring a second temperature of the electronic equipment;
obtaining the updated first charging parameter according to the second temperature of the electronic equipment;
and charging the electronic equipment according to the updated first charging parameter.
3. The method of claim 2, further comprising, after charging the electronic device according to the updated first charging parameter:
acquiring a third temperature of the electronic equipment;
and stopping charging the electronic equipment according to the target charging strategy when the third temperature is greater than or equal to a first threshold value.
4. A method according to any one of claims 1-3, wherein the method further comprises:
acquiring a plurality of groups of data, wherein each group of data comprises a charging strategy and reference information;
according to the obtained target parameters, determining a target charging strategy comprises the following steps:
and determining a charging strategy corresponding to the reference information matched with the target parameter in the plurality of reference information as the target charging strategy according to the target parameter and the plurality of groups of data.
5. The method of claim 4, wherein the reference information comprises at least one of a target type of a foreground application, a temperature interval of the electronic device, and a system power consumption interval of the electronic device.
6. The method of claim 5, further comprising, after charging the electronic device according to the target charging policy:
Re-acquiring the target parameters;
and stopping charging the electronic equipment according to the target charging strategy when the re-acquired target parameter is not matched with the reference information corresponding to the target charging strategy.
7. The method of any of claims 1-6, wherein when the target parameter comprises a system power consumption of the electronic device, the method further comprises:
acquiring output voltage and output current of a charger connected to the electronic equipment, and input voltage and input current of a battery of the electronic equipment;
and determining the system power consumption of the electronic equipment according to the product of the output voltage and the output current of the charger connected to the electronic equipment, the product of the input voltage and the input current of the battery of the electronic equipment and the charging efficiency.
8. The method of claim 7, wherein the system power consumption of the electronic device is obtained by filtering the system power consumption of the electronic device acquired multiple times within a preset period of time with a preset filter.
9. The method of any of claims 1-8, wherein the target charging strategy comprises a target temperature of an electronic device, a range of the first charging parameter, a temperature control mode, a first threshold.
10. A charging control method, wherein the method is applied to an electronic device, and comprises:
a determining module, configured to determine, when it is detected that the electronic device is in a bright screen state and in a charging state, a target charging policy according to an obtained target parameter, where the target parameter includes at least one of a type of a foreground application, a first temperature of the electronic device, a system power consumption of the electronic device, a type of a charger connected to the electronic device, a temperature of an environment where the electronic device is located, an electric quantity of a battery of the electronic device, or a load of a processor of the electronic device;
and the charging module is used for determining a first charging parameter according to the target charging strategy and charging the electronic equipment according to the first charging parameter.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 9 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the charge control method according to any one of claims 1 to 9.
13. A computer program product, the computer program product comprising: computer program code which, when run by an electronic device, causes the electronic device to perform the method of any one of claims 1 to 9.
CN202310506240.8A 2023-05-05 2023-05-05 Charging control method, device, electronic equipment and readable storage medium Pending CN117041413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310506240.8A CN117041413A (en) 2023-05-05 2023-05-05 Charging control method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310506240.8A CN117041413A (en) 2023-05-05 2023-05-05 Charging control method, device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117041413A true CN117041413A (en) 2023-11-10

Family

ID=88628673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310506240.8A Pending CN117041413A (en) 2023-05-05 2023-05-05 Charging control method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117041413A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104037898A (en) * 2014-07-02 2014-09-10 东南大学 Self-adapting charging method for vehicle-mounted power battery
CN205039601U (en) * 2015-10-26 2016-02-17 南京新乐能电子科技有限公司 Battery charger
CN105353801A (en) * 2015-12-22 2016-02-24 哈尔滨工业大学 Fuzzy PID (proportion-integration-differentiation) based temperature gradient stability control method for satellite photo-communication terminal
US20170040812A1 (en) * 2015-08-05 2017-02-09 Hisense Mobile Communications Technology Co., Ltd. Mobile terminal, dc-charging power source adaptor, and charging method
CN113224804A (en) * 2020-02-04 2021-08-06 华为技术有限公司 Charging control method and electronic equipment
CN114221402A (en) * 2021-11-15 2022-03-22 华为技术有限公司 Charging method and device of terminal equipment and terminal equipment
CN115425711A (en) * 2022-09-09 2022-12-02 Oppo广东移动通信有限公司 Charging current obtaining method and device, terminal equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104037898A (en) * 2014-07-02 2014-09-10 东南大学 Self-adapting charging method for vehicle-mounted power battery
US20170040812A1 (en) * 2015-08-05 2017-02-09 Hisense Mobile Communications Technology Co., Ltd. Mobile terminal, dc-charging power source adaptor, and charging method
CN205039601U (en) * 2015-10-26 2016-02-17 南京新乐能电子科技有限公司 Battery charger
CN105353801A (en) * 2015-12-22 2016-02-24 哈尔滨工业大学 Fuzzy PID (proportion-integration-differentiation) based temperature gradient stability control method for satellite photo-communication terminal
CN113224804A (en) * 2020-02-04 2021-08-06 华为技术有限公司 Charging control method and electronic equipment
CN114221402A (en) * 2021-11-15 2022-03-22 华为技术有限公司 Charging method and device of terminal equipment and terminal equipment
CN115425711A (en) * 2022-09-09 2022-12-02 Oppo广东移动通信有限公司 Charging current obtaining method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN114079893B (en) Bluetooth communication method, terminal device and computer readable storage medium
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN113224804B (en) Charging control method and electronic equipment
CN112150499B (en) Image processing method and related device
CN113448482B (en) Sliding response control method and device of touch screen and electronic equipment
CN116051351B (en) Special effect processing method and electronic equipment
CN117234398B (en) Screen brightness adjusting method and electronic equipment
CN114079642B (en) Mail processing method and electronic equipment
CN116055859B (en) Image processing method and electronic device
CN115022807B (en) Express information reminding method and electronic equipment
CN117348894A (en) Software upgrading method, terminal equipment and system
CN113467821A (en) Application program repairing method, device, equipment and readable storage medium
CN117041413A (en) Charging control method, device, electronic equipment and readable storage medium
CN116719376B (en) Voltage control method, device, equipment and storage medium
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN116233599B (en) Video mode recommendation method and electronic equipment
CN116382786B (en) Method for entering long standby mode, electronic device and readable storage medium
CN116709018B (en) Zoom bar segmentation method and electronic equipment
CN114205318B (en) Head portrait display method and electronic equipment
CN116707050B (en) Method and device for recording charge and discharge times, electronic equipment and readable storage medium
CN116400974B (en) Method for entering long standby mode, electronic device and readable storage medium
CN116321265B (en) Network quality evaluation method, electronic device and storage medium
CN114520870B (en) Display method and terminal
CN116541102A (en) File preloading method and device, electronic equipment and readable storage medium
CN117555700A (en) Message pushing method, terminal equipment, pushing server and readable storage medium

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