CN113964900A - Method for dynamically adjusting power supply voltage of power adapter and electronic equipment - Google Patents

Method for dynamically adjusting power supply voltage of power adapter and electronic equipment Download PDF

Info

Publication number
CN113964900A
CN113964900A CN202111217433.9A CN202111217433A CN113964900A CN 113964900 A CN113964900 A CN 113964900A CN 202111217433 A CN202111217433 A CN 202111217433A CN 113964900 A CN113964900 A CN 113964900A
Authority
CN
China
Prior art keywords
power
voltage
power adapter
supply voltage
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111217433.9A
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
Publication of CN113964900A publication Critical patent/CN113964900A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • 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/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • 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
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/30Charge provided using DC bus or data bus of a computer

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a method for dynamically adjusting power supply voltage of a power adapter and electronic equipment, and relates to the technical field of energy storage and charging. Through the scheme, the power supply voltage gear of the power adapter can be adaptively adjusted according to the on-off state of the electronic equipment, for example, the voltage is adjusted down or up or kept unchanged. When the electronic equipment is in a shutdown state, if the battery full charge state is met, the power supply power of the power adapter is greater than the preset power threshold value, and the current power supply voltage of the power adapter is higher, the power supply voltage of the power adapter can be reduced by the electronic equipment, for example, the power supply voltage is reduced from 20V to 9V, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved. Moreover, when the electronic device is changed from the power-off state to the power-on state, the power supply voltage of the power adapter can be restored to a normal voltage value (for example, 20V), so that the electronic device can be normally used after being powered on.

Description

Method for dynamically adjusting power supply voltage of power adapter and electronic equipment
The present application claims priority of a provisional application for chinese patent entitled "voltage control method and electronic device based on Type-C power adapter" filed by the national intellectual property office at 26/9/2021 under the application number 202111130339.X, the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of energy storage and charging technologies, and in particular, to a method for dynamically adjusting a supply voltage of a power adapter and an electronic device.
Background
Currently, electronic devices such as notebook computers, etc., as energy-related products, need to meet energy-efficiency certification requirements of energy-related products (ERP). For example, the electronic device in the shutdown state is charged after being connected to the power adapter, and when the battery of the electronic device is fully charged, the energy consumption of the whole electronic device needs to meet the ERP authentication requirement, so as to reduce the energy consumption. For most electronic devices (such as notebook computers), when the power adapter is connected to charge in a power-off state, the power adapter usually defaults to 20V.
However, in the process of continuously charging in the above manner, although the electronic device is in the off state and the battery of the electronic device is fully charged, Always power on the motherboard of the electronic device needs to be maintained, that is, some devices of the electronic device are still in the power consumption state, so that the overall power consumption cannot meet the ERP authentication requirement.
Disclosure of Invention
The application provides a method for dynamically adjusting power supply voltage of a power adapter and electronic equipment, and solves the problem that in the prior art, after the electronic equipment is charged through the power adapter in a shutdown state, the energy consumption of the whole equipment cannot meet the ERP authentication requirement.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for dynamically adjusting a supply voltage of a power adapter, the method comprising:
when the electronic equipment is in a shutdown state, the electronic equipment is charged at a first voltage through a power adapter; after the electronic equipment is in a full-charge state of the battery, the electronic equipment adjusts the power supply voltage of the power adapter to a second voltage; the electronic equipment is charged at a second voltage through the power adapter; wherein the second voltage is less than the first voltage.
Through the scheme, the power supply voltage gear of the power adapter can be adaptively adjusted according to the on-off state of the electronic equipment, for example, the voltage is adjusted down or up or kept unchanged. When the electronic equipment is in a shutdown state, if the battery full charge state is met, the power supply power of the power adapter is greater than the preset power threshold value, and the current power supply voltage of the power adapter is higher, the power supply voltage of the power adapter can be reduced by the electronic equipment, for example, the power supply voltage is reduced from 20V to 9V, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved. Moreover, when the electronic device is changed from the power-off state to the power-on state, the power supply voltage of the power adapter can be restored to a normal voltage value (for example, 20V), so that the electronic device can be normally used after being powered on.
After the electronic device is in the full-charge state of the battery, the electronic device adjusts the power supply voltage of the power adapter to the second voltage, which may include the following two scenarios:
when the battery power in the electronic device reaches 100 or 100%, the electronic device adjusts the supply voltage of the power adapter to a second voltage.
Alternatively, after a preset period of time elapses after the battery level in the electronic device reaches a full capacity (e.g., 100 or 100%), the electronic device adjusts the supply voltage of the power adapter to the second voltage.
In some possible embodiments, after the electronic device is in the full-battery state, the adjusting, by the electronic device, the supply voltage of the power adapter to the second voltage specifically includes:
after the electronic device is in the full-charge state of the battery, if the power supply voltage of the power adapter is the first voltage and the first voltage is greater than the preset voltage threshold, the power supply voltage of the power adapter is adjusted from the first voltage to the second voltage.
In some possible embodiments, if the supply voltage of the power adapter is a first voltage and the first voltage is greater than a preset voltage, adjusting the supply voltage of the power adapter from the first voltage to a second voltage includes:
and if the power supply voltage of the power adapter is the first voltage and the first voltage is greater than the preset voltage and the power supply power of the power adapter is greater than the preset power threshold value, adjusting the power supply voltage of the power adapter from the first voltage to the second voltage.
In some possible embodiments, the method may further include: when the electronic equipment is in a non-full-charge state of the battery, the power supply voltage of the power adapter is kept to be a first voltage.
In some possible embodiments, the method may further include: when the power supply power of the power adapter is smaller than or equal to the preset power threshold value, the power supply voltage of the power adapter is kept to be the first voltage.
In some possible embodiments, the method may further include: when the electronic equipment is in a full-charge state of the battery, the power supply power of the power adapter is greater than a preset power threshold value, and the power supply voltage of the power adapter is smaller than or equal to a preset voltage threshold value, the power supply voltage of the power adapter is kept to be a first voltage.
In some possible embodiments, the method may further include:
detecting that the electronic equipment is in a power-on state or the electronic equipment is changed from a power-off state to a power-on state;
if the power supply voltage of the power adapter is smaller than the first voltage, adjusting the power supply voltage of the power adapter to the first voltage;
or if the power supply voltage of the power adapter is equal to the first voltage, keeping the power supply voltage of the power adapter at the first voltage.
In some possible embodiments, the first voltage may be 20V and the second voltage may be 9V. The values of the first voltage and the second voltage are not limited in the embodiment of the application, and can be determined according to actual use requirements.
In some possible embodiments, the power adapter is connected with the electronic device in a wired manner or a wireless manner.
In some possible embodiments, the electronic device comprises a Universal Serial Bus (USB) port and a charging management module, wherein the USB port is respectively connected to the power adapter and the charging management module; the above method may further comprise:
when the power adapter is inserted into the USB port, the USB port acquires the power supply voltage information of the power adapter;
the USB port sends level change information and power supply voltage information to the charging management module;
when the level change information indicates that the USB port is changed from the low level to the high level, the charging management module determines that the USB port has an insertion event;
when the supply voltage information indicates that a supply voltage greater than zero exists, the charging management module determines that the power adapter is plugged into the USB port.
In some possible embodiments, the electronic device further comprises an embedded controller and a central processor; the embedded controller is connected to the embedded controller and connected to the charging management module;
after the charging management module determines that the power adapter is plugged into the USB port, the method may further include:
the charging management module sends a first message to the embedded controller, wherein the first message is used for representing an insertion event of the power adapter inserted into the USB port;
responding to the first message, the embedded controller acquires startup and shutdown information from the central processing unit, wherein the startup and shutdown information is used for indicating a startup state or a shutdown state;
when the power-on and power-off information indicates a power-off state, the embedded controller determines that the electronic equipment is in the power-off state.
In some possible embodiments, the electronic device further comprises a charging chip and a battery, the charging chip is connected to the USB port and the embedded controller, and the battery is connected to the embedded controller and the charging management module; the method further comprises the following steps:
the embedded controller acquires battery power information from the battery, wherein the battery power information is used for indicating a full charge state or a non-full charge state of the battery;
the embedded controller acquires the power supply voltage information of the power adapter from the charging chip.
In some possible embodiments, the embedded controller obtains battery level information from the battery, including:
the battery sends an electric quantity flag bit to the embedded controller, and the electric quantity flag bit is used for indicating the electric quantity of the battery;
when the electric quantity flag bit is a full-charge flag bit indicating that the electric quantity of the battery is fully charged, the embedded controller determines that the electronic equipment is in a full-charge state of the battery; alternatively, the first and second electrodes may be,
when the electric quantity flag bit is a non-full-charge flag bit indicating that the electric quantity of the battery is not full, the embedded controller determines that the electronic equipment is in a non-full-charge state of the battery.
In some possible embodiments, the electronic device adjusts the supply voltage of the power adapter to a second voltage, including:
the embedded controller sends a voltage regulating command to the charging chip, wherein the voltage regulating command is used for indicating that the power supply voltage of the power adapter is regulated to a second voltage;
the charging chip sends the voltage regulating command to the power adapter through the USB port, so that the power adapter regulates the power supply voltage to a second voltage according to the voltage regulating command.
In some possible embodiments, the method may further include:
if the power supply voltage of the power adapter is smaller than the first voltage, the embedded controller sends a second voltage regulating command to the charging chip; the second voltage regulating command is used for indicating that the power supply voltage of the power adapter is regulated to the first voltage;
the charging chip sends a second voltage regulating command to the power adapter through the USB port so as to control the power adapter to regulate the power supply voltage to the first voltage.
In some possible embodiments, the USB port may be a Type-C Type port. Accordingly, the power adapter is also a Type-C power adapter.
In a second aspect, the present application provides an apparatus for dynamically adjusting a supply voltage of a power adapter, the apparatus comprising means for performing the method of the first aspect. The apparatus may correspond to performing the method described in the first aspect, and for the description of the units in the apparatus, reference is made to the description of the first aspect, and for brevity, no further description is given here.
The method described in the first aspect may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. Such as a processing module or unit, a display module or unit, etc.
In a third aspect, the present application provides an electronic device comprising a processor coupled to a memory, the memory for storing computer programs or instructions, the processor for executing the computer programs or instructions stored by the memory such that the method of the first aspect is performed.
For example, the processor is for executing a memory-stored computer program or instructions causing the apparatus to perform the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program (which may also be referred to as instructions or code) for implementing the method in the first aspect.
The computer program, when executed by a computer, causes the computer to perform the method of the first aspect, for example.
In a fifth aspect, the present application provides a chip comprising a processor. The processor is adapted to read and execute the computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof.
Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a sixth aspect, the present application provides a chip system comprising a processor. The processor is adapted to read and execute the computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof.
Optionally, the chip system further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a seventh aspect, the present application provides a computer program product comprising a computer program (also referred to as instructions or code) which, when executed by a computer, causes the computer to carry out the method of the first aspect.
It is to be understood that, the beneficial effects of the second to seventh aspects may be referred to the relevant description of the first aspect, and are not repeated herein.
Drawings
FIG. 1 is a diagram of a system architecture applied to a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating interaction among components of an electronic device applied to a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
fig. 4 is another schematic flowchart of a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
FIG. 5 is a timing diagram illustrating interaction of modules in a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
FIG. 6 is another timing diagram illustrating interaction of modules in a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
FIG. 7 is a timing diagram illustrating interaction of modules in a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an apparatus for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims herein are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first voltage value and the second voltage value, etc. are for distinguishing different voltage values, and are not for describing a specific order of the voltage values.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, or the like; plural elements means two or more elements, and the like.
Fig. 1 shows a system architecture diagram to which various exemplary embodiments of the present application relate. As shown in FIG. 1, the system architecture includes an electronic device 10 and a Type-C power adapter 20. The electronic device 10 can be connected to the Type-C power adapter 20, and is charged through the Type-C power adapter 20. While the electronic device 10 is charging, the electronic device 10 may be in a powered off state or in a powered on state.
In order to facilitate understanding of the embodiments of the present application, some terms of the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
(1) An EC controller (embedded chip) can be applied to the design of electronic devices (e.g., notebook computers) with intelligent power saving function. Taking a notebook computer as an example, the EC controller mainly controls a main board power supply of the notebook computer. The EC controller is not only responsible for controlling hardware devices such as a keyboard, a touch panel and a status indicator lamp of the notebook computer, but also used for intelligent charging and discharging management of the battery.
Regardless of whether the notebook computer is in a power-on state or a power-off state, the EC controller placed in the notebook computer is always in a power-on state. Specifically, when the notebook computer is in the shutdown state, the EC controller always keeps running and waits for the startup information of the user. After the notebook computer is started, the EC controller not only controls the keyboard, the charging indicator light, the fan and other devices, but also controls the standby state, the dormant state and other states of the system. That is, the EC controller performs global management on the entire system before and during the booting process of the notebook computer.
(2) A PD (power delivery) chip is a charging controller conforming to the PD protocol. The PD protocol is a USB Type-C-based power supply standard, namely a quick charging standard. In practical applications, the interface supporting the PD protocol charging may include a Type-C interface.
(3) The power adapter belongs to constant voltage and constant current power supply equipment and can be used for continuously supplying power to electronic equipment. For example, the power adapter is connected to the electronic device through a Type-C interface of the electronic device, and can perform quick charging for the electronic device, and therefore, the power adapter may also be referred to as a Type-C power adapter. When the power adapter is connected to the electronic device in the power-off state, the power adapter typically supplies power to the electronic device at a voltage of 20V. The power adapter may also be referred to as a charger, among others.
(4) ERP (energy-related products) energy efficiency certification refers to an energy saving standard made for any product that has been put on the market and/or delivered for use and has an impact on energy consumption during its use, so as to reduce losses.
Electronic devices, such as notebook computers, as energy-related products, need to meet ERP certification requirements. For example, the electronic device in the shutdown state is charged after being connected to the power adapter, and when the battery of the electronic device is fully charged, the energy consumption of the whole electronic device needs to meet the ERP authentication requirement, so as to reduce the energy consumption.
When the actual energy consumption of the whole machine is tested, the electronic equipment can be shut down firstly, then the electronic equipment is connected with the power adapter to be charged, the change of the charging indicator light is observed, the charging is finished when the charging indicator light is normally on, the energy consumption of the whole machine is tested at the moment, and whether the ERP authentication requirement is met can be judged according to the energy consumption test result of the whole machine.
Currently, for most electronic devices (such as notebook computers), when the power adapter is connected to charge in a power-off state, the power adapter usually defaults to supply power with 20V power supply voltage. Although the electronic device is in a shutdown state, Always power on the motherboard of the electronic device needs to be maintained in a startup state, that is, some devices of the electronic device are still in a power consumption state, and at this time, the power adapter supplies power with 20V voltage, which may cause the energy consumption of the whole device to fail to meet the ERP authentication requirement.
In view of this, the first solution proposed by the present application is: when the power adapter is connected with the electronic equipment and the electronic equipment is in a shutdown state, Always power can be turned off, so that the power consumption of the whole machine meets the ERP authentication requirement. This solution has the following advantages: the EC software design is modified, so that the design and the implementation are simpler, and hardware does not need to be changed. However, in this way, when the electronic device is connected to the power adapter, turning off Always power may cause a problem of poor device compatibility.
The second solution proposed in this application is that the EC software design is also modified, the hardware design does not need to be changed, and the function can be completely realized by software. With this second solution, the supply voltage level of the power adapter can be adaptively adjusted, for example, the voltage is adjusted down, up or kept constant, according to the on/off state of the electronic device. When the electronic equipment is in a shutdown state, if the battery full charge state is met, the power supply power of the power adapter is greater than the preset power threshold value, and the current power supply voltage of the power adapter is higher, the power supply voltage of the power adapter can be reduced by the electronic equipment, for example, the power supply voltage is reduced from 20V to 9V, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved. Moreover, when the electronic device is changed from the power-off state to the power-on state, the power supply voltage of the power adapter can be restored to a normal voltage value (for example, 20V), so that the electronic device can be normally used after being powered on.
The electronic device in the embodiment of the present application may be an electronic device such as a notebook computer and the like having an intelligent power saving function, and may be determined specifically according to actual use requirements, and the embodiment of the present application is not particularly limited.
Fig. 2 shows a schematic connection diagram between the electronic device and the power adapter and a schematic connection diagram between various devices in the electronic device in the embodiment of the present application.
As shown in fig. 2, the electronic device 10 may include an EC controller 101, a CPU 102, a battery 103, a PD chip 104, a USB port 105, and a charging management module 106. The CPU 102, the battery 103, the PD chip 104, and the charging management module 106 are all connected to the EC controller 101. The PD chip 104 and the charge management module 106 are both connected to the USB port 105. The charge management module 106 is also connected to the battery 103 and the PD chip 104.
As shown in FIG. 2, the power adapter 20 is connected to the USB port 105, and the electronic device 10 can interact with the power adapter 20 through the USB port 105. In actual implementation, after the power adapter 20 is plugged into the USB port 105 of the electronic device 10, the power adapter 20 usually charges the electronic device 10 with a specific voltage (e.g., 20V).
The charging management module 106 is configured to receive a charging input from a charger. Wherein the charger may be a wireless charger, such as a wireless power adapter; or may be a wired charger such as a wired power adapter. In some wired charging embodiments, the charging management module 106 may receive charging input from a wired charger through the USB port 105. In some wireless charging embodiments, charging management module 106 may receive wireless charging input through a wireless charging coil of electronic device 10. In fig. 2, which is exemplarily illustrated by using a charger as the power adapter 20, the charging management module 106 may receive a charging input of the power adapter 20 through the USB port 105.
For convenience of explanation, a wired power adapter is taken as an example herein for illustration, and the method for dynamically adjusting a supply voltage provided by the embodiment of the present application is not only applicable to a scenario of limited charging, but also applicable to a scenario of wireless charging.
Among them, the CPU 102 may feed back the on/off information (e.g., the system on/off state change) to the EC controller 101, the battery 103 may feed back the battery power information to the EC controller 101, and the PD chip 104 may feed back the supply voltage and current information of the power adapter 20 to the EC controller 101. Accordingly, the EC controller 101 may determine whether the power supply voltage of the power adapter 20 needs to be adjusted according to the power on/off information, the battery level information, and the power supply voltage and current information of the power adapter 20. When the EC controller 101 determines that voltage regulation is required, the EC controller 101 issues the determined voltage regulation command to the PD chip 104. Further, the PD chip 104 performs a voltage regulation action according to the voltage regulation command, for example, the PD chip 104 instructs the power adapter 20 to lower, raise or keep the supply voltage unchanged.
In the embodiment of the present application, the PD chip on the notebook computer may be connected to a pin of the EC controller, and the ACIN signal on the pin may include two states of high and low. For some notebook computers, the ACIN signal remains pulled low when the power adapter is providing 5V. In general, the ACIN signal is pulled high when the power adapter is plugged into a notebook computer. When the ACIN signal is pulled high, i.e., the ACIN signal is set up, the corresponding software read signal level value changes from 0 to 1. Conversely, if the EC controller detects that the ACIN signal is pulled high, e.g., the signal level changes from 0 to 1, the EC controller may determine that a power adapter is plugged into the notebook computer.
The EC controller 101 may determine a voltage regulation strategy suitable for the current scenario according to the power on/off information, the battery level information, and the power supply power and the power supply voltage of the power adapter 20, where the voltage regulation strategy may be used to instruct the power supply voltage of the power adapter to be adjusted down, adjusted up, or kept unchanged. According to the scheme, the dynamic adjustment of the power supply voltage of the power adapter can be realized, unnecessary power consumption of the electronic equipment in the shutdown state is avoided, the aim of meeting the ERP authentication requirement is fulfilled, and the electronic equipment can be guaranteed to normally work in the startup state.
The execution main body of the method for dynamically adjusting the supply voltage of the power adapter provided in the embodiment of the present application may be the electronic device, or may also be a functional module and/or a functional entity in the electronic device, which can implement the method for dynamically adjusting the supply voltage of the power adapter. The following describes an exemplary method for dynamically adjusting a supply voltage of a power adapter, which is provided in an embodiment of the present application, by taking an electronic device as an example, with reference to the accompanying drawings.
Fig. 3 is a flowchart illustrating a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present application. Referring to fig. 3, the method includes steps S201-S208 described below.
S201, detecting that the power adapter is connected to the USB port of the electronic device.
Wherein, the USB port can be Type-C port of charging. Accordingly, the power adapter is a Type-C power adapter.
It should be noted that the power supply voltage (also referred to as output voltage) of the power adapter is usually a preset voltage value, for example, 20V. For convenience of explanation, the preset voltage value is referred to as a first voltage value.
S202, judging whether the electronic equipment is in a shutdown state or not.
Alternatively, the electronic device may determine whether the electronic device is in a power off state based on the SlpS4 signal. For example, when the SlpS4 signal changes from high to low, it may be determined that the electronic device system is changed from power on to power off, i.e., the electronic device is in a power off state. Similarly, when the SlpS4 signal changes from low to high, it may be determined that the electronic equipment system is turned on from shutdown, that is, the electronic equipment is in a power-on state.
If the electronic device is in the power-off state or the electronic device is changed from power-on to power-off, the following step S203 is executed to further determine the battery charging condition and the power supply power of the power adapter when the electronic device is in the power-off state.
If the electronic device is in the power-on state or the electronic device is turned on from the power-off state, the following step S204 is continuously executed to further determine the power supply voltage of the power adapter when the electronic device is in the power-on state.
S203, determining whether the internal battery of the electronic device is in a full charge state and whether the power supply power of the power adapter is greater than a preset power threshold (e.g. 40W).
In practical applications, the power supply (also referred to as output power) of the power adapter is usually larger than a preset power threshold, for example, the power supply of the power adapter is 45W or 60W. If the power supply power of the power adapter is less than or equal to the preset power threshold, the power supply power is too low, the power adapter may be an unconventional product, and the power supply voltage of the product is not adjusted.
If the internal battery of the electronic device is in the full charge state and the power supply power of the power adapter is greater than the preset power threshold, the following step S205 is continuously executed.
If the internal battery of the electronic device is in a non-full-charge state and/or the power supply power of the power adapter is less than or equal to the preset power threshold, the following step S206 is continuously executed.
The battery is in a full charge state, which indicates that the battery is fully charged, and accordingly the charging indicator light is normally on at the moment. The battery is in a non-fully charged state, which indicates that the battery is not fully charged, and accordingly the charge indicator light appears to blink at this time.
S204, whether the power supply voltage of the power adapter is equal to a first voltage value (for example, 20V) is judged.
In the embodiment of the application, when the electronic device is in a power-on state, the electronic device needs to be supplied with power by a higher voltage so as to meet the normal use requirement of the device. If the power supply voltage of the power adapter is equal to the first voltage value, the power supply voltage meets the requirement and can be adjusted; if the power supply voltage of the power adapter is lower than the first voltage value, the power supply voltage does not meet the use requirement of the equipment, and the power supply voltage of the power adapter needs to be increased to the first voltage value.
If the power supply voltage of the power adapter is equal to the first voltage value, the following step S206 is executed.
If the power supply voltage of the power adapter is not equal to the first voltage value, the following step S207 is executed.
And S205, judging whether the power supply voltage of the power adapter is equal to the second voltage value.
Wherein the second voltage value is smaller than the first voltage value. For example, the second voltage value may be 9V, may also be 5V, or may be other possible voltage values smaller than the first voltage value, which may be determined according to actual usage requirements, and the embodiment of the present application is not limited.
In the embodiment of the application, when the electronic device is in a shutdown state and the battery is fully charged, the power supply voltage of the power adapter cannot be too high, otherwise the ERP authentication requirement is difficult to meet. Therefore, the power supply voltage of the power adapter can be reduced, for example, from 20V to 9V, and the energy consumption of the whole machine is reduced, so that the aim of meeting the ERP authentication requirement is fulfilled.
If the power supply voltage of the power adapter is equal to the second voltage value, the following step S206 is executed.
If the power supply voltage of the power adapter is not equal to the second voltage value, the following step S208 is executed.
Alternatively, in the case that it is detected through S203 that the power supply power of the power adapter is greater than the preset power threshold, the power supply voltage of the power adapter is correspondingly higher, and therefore the power supply voltage of the power adapter needs to be adjusted, that is, step S205 described below may not be executed after step S203, but step S207 described below may be directly executed, so that the efficiency of dynamically adjusting the voltage may be improved.
In the embodiment of the present application, taking the step S205 executed after the step S203 as an example, if it is further determined in the step S205 that the power supply voltage of the power adapter is higher (for example, the current voltage value is higher than the preset voltage value) when the electronic device is powered off and charged, it is determined that the power supply voltage of the power adapter needs to be reduced, so that the accuracy of dynamically adjusting the voltage can be improved.
And S206, keeping the power supply voltage of the power adapter unchanged.
In one aspect, when the electronic device is in a power-off state or is turned off from power-on, the battery is in a non-full charge state, or the power supply power of the power adapter is less than or equal to a preset power threshold (e.g., 40W), the power supply voltage of the power adapter may remain unchanged without adjustment.
On the other hand, when the electronic device is in a shutdown state or changes from power on to shutdown, the battery is in a full charge state, the power supply power of the power adapter is greater than the preset power threshold (e.g., 40W), and the power supply voltage of the power adapter is the second voltage value (e.g., 9V), the power supply voltage of the power adapter may remain unchanged without adjustment.
In another aspect, when the electronic device is in a power-on state or is turned on from power-off, and the supply voltage of the power adapter is the first voltage value (e.g., 20V), the supply voltage of the power adapter may remain unchanged without adjustment.
S207, the power supply voltage of the power adapter is adjusted to a second voltage value (e.g., 9V).
In the embodiment of the application, when the electronic device is in a shutdown state and the battery is in a full charge state, if the power supply voltage of the power adapter is too high (for example, 20V), the electronic device may turn down the power supply voltage of the power adapter, for example, reduce the power supply voltage from 20V to 9V, and reduce the energy consumption of the whole device, so as to achieve the purpose of meeting the ERP authentication requirement.
And S208, adjusting the power supply voltage of the power adapter to a first voltage value.
In this embodiment, when the electronic device is in the power-on state, if the power supply voltage of the power adapter is too low (e.g., 9V), the electronic device may increase the power supply voltage of the power adapter, e.g., from 9V to 20V, so as to meet the normal use requirement of the device.
The method of dynamically adjusting the supply voltage of the power adapter is described above with the electronic device as the execution subject. The electronic device may include a Central Processing Unit (CPU), an EC controller, a PD chip, and a built-in battery, which may perform signaling interaction with each other to control the supply voltage of the power adapter. In practical application, according to the scheme of the application, the power supply voltage of the power adapter can be controlled to be reduced or increased or kept unchanged according to different scenes, so that the electronic equipment can be normally used after being started, and the energy consumption of the whole machine can meet the ERP authentication requirement after being shut down. The method for dynamically adjusting the supply voltage of the power adapter provided by the embodiment of the present application will be described in detail below with reference to fig. 4, by taking the example that the supply voltage of the power adapter is switched between 20V and 9V through the interaction of these devices of the electronic device.
Fig. 4 is another flowchart illustrating a method for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present application. As shown in fig. 4, the flow includes steps S301 to S313 described below.
S301, the EC controller monitors that the power adapter is connected to the electronic device.
S302, the EC controller monitors the change of the on-off state.
The CPU feeds back the change of the on-off state to the EC controller, so that the EC controller can know whether the system is in the on-off state or the on-off state. The EC controller can select a corresponding power supply voltage regulation strategy by monitoring the on-off state of the electronic equipment.
For example, when the power adapter is plugged into the electronic device and then connected to the electronic device, the electronic device may be in a power-off state or a power-on state. Specifically, when the electronic device is in a power-on state, the EC controller selects a corresponding power supply voltage adjustment strategy in the power-on state; when the electronic device is in a shutdown state, the EC controller selects a corresponding power supply voltage adjustment strategy in the shutdown state.
For another example, when the power adapter is continuously connected to the electronic device, the electronic device may change from the power-off state to the power-on state or from the power-on state to the power-off state. Specifically, when the electronic device can be changed from a shutdown state to a startup state, the EC controller selects a corresponding power supply voltage regulation strategy when the system is in the startup state; when the electronic device changes from the power-on state to the power-off state, the EC controller may select a corresponding power supply voltage adjustment policy when the system is in the power-off state.
The following flow chart executes the power supply voltage regulation strategy corresponding to the system in the shutdown state and the power supply voltage regulation strategy corresponding to the system in the startup state in two paths.
After S302, steps S303 to S309 described below may be performed, and steps S303 to S309 are methods for dynamically adjusting the power supply voltage of the power adapter when the system state is the shutdown state.
S303, the system state is changed from power-on to power-off.
S304, the EC controller continuously detects the full-charge flag bit of the battery.
S305, the EC controller judges whether the battery is fully charged and the power supply power of the power adapter is larger than 40W.
And S306, when the battery is not fully charged or the power supply power of the power adapter is less than or equal to 40W, keeping the power supply voltage of the power adapter unchanged.
And S307, when the battery is fully charged and the power supply power of the power adapter is more than 40W, judging whether the current power supply voltage of the power adapter is 9V by the EC controller.
It should be noted that the power supply power of the power adapter may refer to an actual power supply power of the power adapter, and the actual power supply power may be obtained through actual measurement or may be obtained according to nameplate information of the power adapter. In addition, for the Type-C Type power adapter, the actual power supply power value provided by the current power adapter can be read through software data.
When the battery is fully charged and the power supply power of the power adapter is greater than 40W, and the current power supply voltage of the power adapter is 9V, the process returns to step S306, that is, the power supply voltage of the power adapter is kept unchanged and is not adjusted.
And S308, when the battery is fully charged, the power supply power of the power adapter is more than 40W, and the current power supply voltage of the power adapter is not 9V, issuing a voltage regulation command (simply referred to as a voltage regulation command) to the PD chip by the EC controller.
Wherein the voltage adjustment command is used for instructing to adjust the current supply voltage of the power adapter to 9V.
S309, the PD chip instructs the power adapter to adjust the power supply voltage down to 9V.
In practical applications, the user may trigger the electronic device to be turned on at any time when the electronic device is in the power-off state, so that after step S302, the following steps S310 to S313 may be executed, where steps S310 to S313 are methods for dynamically adjusting the power supply voltage of the power adapter when the system state is the power-on state.
S310, the system state is changed from power-off to power-on.
And S311, judging whether the current power supply voltage of the power adapter is 20V by the EC controller.
When the current power supply voltage of the power adapter is 20V, the process returns to step S306, i.e. the power supply voltage of the power adapter is kept unchanged and is not adjusted.
And S312, when the current power supply voltage of the power adapter is not 20V, the EC controller issues a voltage regulation command to the PD chip.
Wherein the voltage adjustment command is used for instructing to adjust the current supply voltage of the power adapter to 20V.
S313, the PD chip instructs the power adapter to increase the power supply voltage to 20V.
In the embodiment of the application, when the electronic device is turned on from shutdown, the current power supply voltage of the power adapter is 9V, and the voltage is too low, so that the normal use requirement of the device is met, the EC controller needs to issue a voltage regulation command to the PD chip again, and the power supply voltage of the power adapter is regulated back to 20V from 9V by implementing the voltage regulation action of the PD chip, so as to meet the normal use requirement of the device.
It should be noted that, when the electronic device is in the power-off state, the user may trigger the electronic device to be powered on at any time; certainly, when the electronic device is in the power-on state, the user may trigger the electronic device to be powered off at any time, so the method for dynamically adjusting the power supply voltage of the power adapter in the power-off state in steps S303 to S309 may be executed in a loop again in the embodiment of the present application.
In this embodiment of the present application, a method for dynamically adjusting the power supply voltage of the power adapter in the shutdown state in steps S303 to S309 or a method for dynamically adjusting the power supply voltage of the power adapter in the startup state in steps S310 to S313 may be selectively executed according to different scenarios, so that the corresponding power supply voltage control policy is selectively and cyclically executed, it can be ensured that the electronic device can be normally used after being started up, and the energy consumption of the whole device meets the ERP authentication requirement after being shutdown.
Fig. 5 is a timing diagram illustrating interaction of modules in a method for dynamically adjusting a supply voltage of a power adapter according to the embodiment of the present application described in conjunction with fig. 4. Referring to fig. 5, in an embodiment of the present application, a method for dynamically adjusting a supply voltage of a power adapter may include steps a1 to a 14. Among other things, the electronic device may include an EC controller, a CPU, a battery, a PD chip, a charge management module, and a USB port (also referred to as a USB interface).
Step A1, the power adapter is plugged into the USB port.
Here, the USB port may be a Type-C Type physical port.
For example, the power adapter may have a power supply voltage of 20V, and the power adapter charges the battery of the electronic device with the power supply voltage of 20V.
Step a2, the USB port notifies the charge management module of the level change and the supply voltage.
Wherein, different level changes can be adopted to represent that the USB port has a plug-in event or a pull-out event. For example, when the level change is changed from 0 to 1, it indicates that the USB port has an insertion event; when the level change is changed from 1 to 0, the USB port is characterized to have a pull-out event.
Step A3, the charging management module determines that there is an insertion event in the USB port according to the level change, and determines that there is a power adapter inserted in the USB port according to the power supply voltage.
For example, when the supply voltage is 0, the charging management module may determine that a USB data line is inserted into the USB port; when the supply voltage is greater than 0, the charging management module may determine that a power adapter is plugged into the USB port.
In step a4, the charging management module notifies the PD chip of the insertion of the power adapter into the USB port, and the supply voltage and supply current of the power adapter.
In this way, the PD chip can know that the power adapter is plugged into the USB port, and can know the supply voltage and supply current of the power adapter.
Step a5, the charging management module notifies the EC controller that a power adapter is plugged into a USB port.
It should be noted that the way in which the EC controller knows that the power adapter is plugged into the USB port may include other ways besides the way in which the charging management module notifies the PD chip in step a 5. For example, when the power adapter is plugged into the USB port of the electronic device, the PD chip first knows the supply voltage and the supply current of the power adapter, and then the ACIN signal sent by the PD chip to the EC controller is pulled high; when the EC controller monitors the signal pulling high, e.g., the signal level value changes from 0 to 1, the EC controller may know that a power adapter is plugged into the USB port.
Optionally, the embodiment of the present application does not limit the execution sequence of step a4 and step a 5.
Step a6, the EC controller obtains the power on/off information of the electronic device from the CPU.
The on/off information is used for indicating that a System On Chip (SOC) in the electronic equipment is in an on state or an off state; or the power on/off information is used to indicate a change of the power on/off state of the system, for example, the SOC system in the electronic device changes from the power off state to the power on state, or changes from the power on state to the power off state.
For example, in the embodiment of the application, after the electronic device is powered off, the SlpS4 signal (sleep signal) sent by the CPU to the EC controller is pulled low; when the EC controller monitors that the signal is pulled low, the EC controller may know that the system is turned off.
Step a7, the EC controller obtains battery charge information from the battery.
The battery electric quantity information is used for indicating the full charge state or the non-full charge state of the battery.
In this embodiment, the EC controller may communicate with the battery, and read a register (e.g., a 0 × 16 register) of the battery to check the battery level information, e.g., check the full charge flag, and if the full charge flag is set, it indicates that the battery is in the full charge state.
The full charge zone bit of the battery is stored in a 0x16 register, the register adopts Byte data, bit5 of the Byte data represents the full charge zone bit, and bit5 is 0 when the battery is not full; bit5 will be set to 1 after the battery is fully charged.
In step A8, the EC controller obtains the supply voltage and current information of the power adapter from the PD chip.
Optionally, the embodiment of the present application does not limit the execution sequence of step a6, step a6, and step A8. That is to say, in the embodiment of the present application, the EC controller may monitor the power on/off information of the electronic device, the power level information of the internal battery of the electronic device, and the power supply power of the power adapter connected to the electronic device.
Step a9, the EC controller calculates the supply power from the supply voltage and current of the power adapter.
In the embodiment of the present application, the EC controller may obtain the power supply voltage and current by reading a register of the PD chip (for example, a 0 × 34 register of the TI PD chip), and calculate the power supply power of the power adapter.
And step A10, the EC controller generates a voltage regulating command according to the startup and shutdown information, the battery power information, the power supply power of the power adapter and the power supply voltage.
For example, when the battery level information indicates a full charge state in the shutdown state, the power supply of the power adapter is greater than a preset voltage value and a preset power value (e.g., 40W), and the power supply voltage (e.g., 20V) is greater than a preset voltage value (e.g., 15V), the voltage regulation condition is satisfied, and the EC controller generates a voltage regulation command: the supply voltage of the power adapter is regulated to 9V. Therefore, unnecessary power consumption of the electronic equipment in a shutdown state can be avoided, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved.
For another example, when the power supply voltage of the power adapter is 9V in the power-on state, the voltage regulation condition is satisfied, and the EC controller generates a voltage regulation command: the supply voltage of the power adapter is regulated to 20V. Therefore, the electronic equipment can be ensured to work normally in the starting-up state.
It should be noted that the reason why the scheme of the present application chooses to adjust the power supply voltage of the power adapter from 20V to 9V gear is that: the voltage gears of the Type-C power adapter can comprise voltage gears of 20V, 15V, 12V, 9V, 5V and the like, actual measurement data show that the ERP authentication requirements can be met by adjusting the voltage to 9V and gears below 9V, wherein the problem that the ACIN signal is not set in the PD chip of partial models of electronic equipment exists in the 5V gear, and therefore the 9V voltage gear can be selected.
Step a11, the EC controller sends a voltage regulation command to the PD chip.
Alternatively, the EC controller may issue a voltage adjustment command to the PD chip in various possible ways. Illustratively, taking the PD chip of TI as an example, the EC controller may write a voltage adjustment command to a 0x33TX _ SINK _ CAPS Register (Register) in the PD chip to perform the adjustment of the power adapter supply voltage. The format of the 0x33TX _ SINK _ CAPS register is shown in Table 1 below.
TABLE 1
Figure BDA0003311227280000121
It should be noted that, the manner in which the EC controller issues the voltage adjustment command to the PD chip is an exemplary example, the format of the register is also an exemplary example, and the embodiment of the present application is not limited.
Step a12, the PD chip sends a voltage regulation command to the power adapter.
The EC controller communicates with the PD chip, accesses the position of a register PD 0x33, writes a setting parameter corresponding to the voltage of 9V or 20V into the register, and the PD chip informs the power adapter to perform voltage regulation according to the parameter of the register.
Illustratively, the EC controller sends a voltage regulation command to the PD chip, the voltage regulation command instructing to regulate the supply voltage of the power adapter down to 9V. The voltage regulating command issued by the PD chip may be transmitted to the power adapter via the USB port.
And step A13, the power adapter adjusts the power supply voltage of the power adapter according to the voltage adjusting command.
Step a14, the power adapter supplies power to the battery according to the adjusted supply voltage.
For example, the power adapter feeds back the supply voltage to the charging management module via the USB port to be adjusted, and then the adjusted supply voltage may be used by the charging management module to supply power to the battery. For example, the power adapter supplies power to the battery at a regulated supply voltage of 9V.
It should be noted that, a scenario in which voltage regulation is completed when a voltage regulation condition is satisfied is taken as an example, but of course, in the method for dynamically regulating the supply voltage of the power adapter provided in the embodiment of the present application, there are some cases in which the voltage regulation condition is not satisfied, and the supply voltage of the power adapter will be kept unchanged in the scenario in which the voltage regulation condition is not satisfied. Some cases where the voltage regulation condition is not satisfied are exemplified below.
In some embodiments, when the power on/off information indicates a power off state and the battery level information indicates a non-full charge state, the EC controller will keep the current power adapter supply voltage unchanged and make no voltage adjustment.
In other embodiments, when the power on/off information indicates a power off state, the battery level information indicates a full charge state, and the power supply of the power adapter is less than or equal to 40W, the EC controller will keep the current power supply voltage of the power adapter unchanged without performing voltage adjustment.
In still other embodiments, when the power on/off information indicates a power off state, the battery level information indicates a full charge state, the power supply of the power adapter is greater than 40W, and the power supply voltage of the power adapter is lower than a preset voltage value (e.g., the preset voltage value is 15V), the EC controller keeps the current power supply voltage of the power adapter unchanged without performing voltage adjustment.
Next, based on fig. 5, with reference to the first embodiment of fig. 6 and the second embodiment of fig. 7, with reference to different application scenarios, respectively, a possible implementation manner of the method for dynamically adjusting the supply voltage of the power adapter provided in the embodiment of the present application is exemplarily described.
First embodiment
The first embodiment exemplarily illustrates that the voltage-regulating policy corresponding to the power-off state is adopted when the electronic device is determined to be in the power-off state after the power adapter is detected to be inserted into the electronic device, and the voltage-regulating policy corresponding to the power-on state is adopted when the electronic device is detected to be changed from the power-off state to the power-on state. According to the scheme, the dynamic adjustment of the power supply voltage of the power adapter can be realized, unnecessary power consumption of the electronic equipment in the shutdown state is avoided, the aim of meeting the ERP authentication requirement is fulfilled, and the electronic equipment can be guaranteed to normally work in the startup state.
Fig. 6 is a timing diagram illustrating interaction of modules in a method for dynamically adjusting a supply voltage of a power adapter according to the embodiment of the present application described in conjunction with fig. 5. Referring to fig. 6, in the embodiment of the present application, the method for dynamically adjusting the power supply voltage of the power adapter may include steps B1 to B15; or may include step B1 through step B22; or may include step B16 through step B22; the method is determined according to actual use conditions, and the embodiment of the application is not limited. The electronic device may include, among other things, an EC controller, a CPU, a battery, a PD chip, and a USB port.
Step B1, the power adapter is plugged into the USB port.
In step B2, the USB port notifies the charge management module of the level change and the supply voltage.
And step B3, the charging management module determines that the USB port has an insertion event according to the level change, and determines that the power adapter is inserted into the USB port according to the power supply voltage.
In step B4, the charging management module notifies the PD chip of the insertion of the power adapter into the USB port, and notifies the power adapter of the supply voltage and the supply current.
In step B5, the charging management module notifies the EC controller that a power adapter is plugged into the USB port.
The descriptions of the steps B1 through B5 refer to the detailed descriptions of the steps a1 through a5, which are not repeated herein.
Step B6, the EC controller sends a message to the CPU to obtain the power on/off information.
In step B7, the CPU feeds back on/off information to the EC controller, the on/off information indicating the power-off state.
In step B8, the EC controller obtains battery charge information from the battery.
In step B9, the EC controller obtains the supply voltage and current information of the power adapter from the PD chip.
And step B10, the EC controller calculates the power supply power of the power adapter according to the power supply voltage and current of the power adapter.
For example, the product value of the supply voltage and the current of the power adapter may be determined as the supply power of the power adapter.
Step B11, when the battery is fully charged in the shutdown state, the power supply power of the power adapter is more than 40W, and the power supply voltage of the power adapter is 20V, the voltage regulation condition is met, and the EC controller generates a voltage regulation instruction: and regulating the power supply voltage of the power adapter to 9V.
It should be noted that, here, the exemplary description is given by taking the case that the voltage regulation condition is satisfied as an example, and of course, there are some cases that the voltage regulation condition is not satisfied, and the supply voltage of the power adapter will be kept unchanged in a scene that the voltage regulation condition is not satisfied.
Step B12, the EC controller sends a voltage regulating command to the PD chip, the voltage regulating command instructing to reduce the supply voltage of the power adapter to 9V.
In step B13, the PD chip sends a voltage regulation command to the power adapter.
And step B14, the power adapter regulates the power supply voltage to 9V according to the voltage regulating command.
And step B15, the power adapter supplies power to the battery according to the regulated 9V power supply voltage.
As can be seen from the above steps B1-B15, after the connection between the power adapter and the electronic device is detected, if the electronic device is determined to be in the power-off state, the voltage-regulating policy corresponding to the power-off state is adopted: for example, when the battery is in a fully charged state, the power supply power of the power adapter meets the compliance requirement, and the power supply voltage of the power adapter is higher than the preset voltage value, the power supply voltage of the power adapter can be reduced, so that unnecessary power consumption of the electronic equipment in a shutdown state is avoided, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved.
In the process of charging the electronic device in the shutdown state, the electronic device may be changed from the shutdown state to the startup state in response to a startup operation of a user, and a supply voltage adjustment process in a scenario from shutdown to startup of the electronic device is further described below.
And step B16, when the electronic device is started, the CPU sends startup and shutdown information to the EC controller to indicate that the system is in a startup state.
In step B17, the EC controller obtains the supply voltage information of the power adapter from the PD chip.
For example, the supply voltage information indicates that the current supply voltage of the power adapter is 9V.
Step B18, when the power-off state is changed into the power-on state and the power supply voltage of the power adapter is 9V, the voltage regulation condition is met, and the EC controller generates a voltage regulation instruction: and regulating the power supply voltage of the power adapter to 20V.
Step B19, the EC controller sends a voltage regulating command to the PD chip, the voltage regulating command instructing to increase the supply voltage of the power adapter to 20V.
In step B20, the PD chip sends a voltage regulation command to the power adapter.
And step B21, the power adapter regulates the power supply voltage to 20V according to the voltage regulating command.
And step B22, the power adapter supplies power to the battery according to the regulated 20V power supply voltage.
As can be seen from the above steps B16-B22, after the electronic device is detected to be turned from the power-off state to the power-on state, the voltage regulation policy corresponding to the power-on state is adopted: for example, when the supply voltage of the power adapter is lower than the preset voltage value, the supply voltage of the power adapter may be increased to ensure that the electronic device can normally operate in the power-on state.
It should be noted that, in the process of charging the electronic device in the power-on state, in response to a power-off operation of a user, the electronic device may change from the power-on state to the power-off state, and a power supply voltage adjustment process in a scenario from power-on to power-off of the electronic device is further described below.
When the electronic equipment is shut down, the CPU sends the on-off information to the EC controller to indicate that the system is changed into a shut-down state. Further, the EC controller acquires battery power information from the battery, and acquires power supply voltage and power supply information of the power adapter from the PD chip. Further, when the EC controller determines that the system is changed from the power-on state to the power-off state, the battery is fully charged, the power supply power of the power adapter is greater than 40W, and the power supply voltage of the power adapter is 20V, the EC controller generates a voltage regulation instruction: and regulating the power supply voltage of the power adapter to 9V.
Optionally, when the EC controller determines whether the voltage regulation condition is satisfied, since the supply power variation range of the power adapter is small, it may be also not considered whether the supply power of the power adapter satisfies the requirement. For example, when the system state is changed from the power-on state to the power-off state, the battery is fully charged, and the power supply voltage of the power adapter is higher than the preset voltage value, the EC controller determines the voltage regulating strategy.
By the steps, when the EC controller detects that the electronic device is changed from the power-on state to the power-off state, the voltage regulation strategy corresponding to the power-off state is adopted: for example, when the battery is fully charged (and the power supply power of the power adapter meets the requirement) and the power supply voltage of the power adapter is higher than the preset voltage value, the power supply voltage of the power adapter can be reduced, so that unnecessary power consumption of the electronic equipment in a shutdown state is avoided, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved.
Through the scheme, the power supply voltage gear of the power adapter can be adaptively adjusted according to the on-off state of the electronic equipment, for example, the voltage is adjusted down or up or kept unchanged. When the electronic equipment is in a shutdown state, if the battery full charge state is met, the power supply power of the power adapter is greater than the preset power threshold value, and the current power supply voltage of the power adapter is higher, the power supply voltage of the power adapter can be reduced by the electronic equipment, for example, the power supply voltage is reduced from 20V to 9V, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved. Moreover, when the electronic device is changed from the power-off state to the power-on state, the power supply voltage of the power adapter can be restored to a normal voltage value (for example, 20V), so that the electronic device can be normally used after being powered on.
Second embodiment
The second embodiment exemplarily illustrates that the voltage-regulating policy corresponding to the power-on state is adopted when the electronic device is determined to be in the power-on state after the power adapter is detected to be inserted into the electronic device, and the voltage-regulating policy corresponding to the power-off state is adopted when the electronic device is detected to be changed from the power-on state to the power-off state. According to the scheme, the dynamic adjustment of the power supply voltage of the power adapter can be realized, unnecessary power consumption of the electronic equipment in the shutdown state is avoided, the aim of meeting the ERP authentication requirement is fulfilled, and the electronic equipment can be guaranteed to normally work in the startup state.
FIG. 7 is another timing diagram illustrating interaction of modules in the method for dynamically adjusting the supply voltage of the power adapter according to the embodiment of the present application described in conjunction with FIG. 5. Referring to fig. 7, in an embodiment of the present application, a method of dynamically adjusting a supply voltage of a power adapter may include C1 to C14; or may include C15 to C23; or may include C1 to C23; the method is determined according to actual use conditions, and the embodiment of the application is not limited.
Step C1, the power adapter is plugged into the USB port.
In step C2, the USB port notifies the charge management module of the level change and the supply voltage.
And step C3, the charging management module determines that the USB port has an insertion event according to the level change, and determines that the power adapter is inserted into the USB port according to the power supply voltage.
In step C4, the charging management module notifies the PD chip of the insertion of the power adapter into the USB port, and of the supply voltage and the supply current of the power adapter.
In step C5, the charging management module notifies the EC controller that a power adapter is plugged into the USB port.
The descriptions of the step C1 to the step C5 refer to the detailed descriptions of the step a1 to the step a5, which are not repeated herein.
Step C6, the EC controller sends a message to the CPU to obtain the power on/off information.
Step C7, the CPU feeds back on/off information to the EC controller, the on/off information indicating the on state.
In step C8, the EC controller obtains the supply voltage information of the power adapter from the PD chip.
And step C9, feeding back the power supply voltage of the power adapter to the EC controller from the PD chip to be 9V.
Step C10, when the power supply voltage of the power adapter is 9V in the startup state, the voltage regulation condition is satisfied, and the EC controller generates a voltage regulation command: and regulating the power supply voltage of the power adapter to 20V.
It should be noted that, here, the exemplary description is given by taking the case that the voltage regulation condition is satisfied as an example, and of course, there are some cases that the voltage regulation condition is not satisfied, and the supply voltage of the power adapter will be kept unchanged in a scene that the voltage regulation condition is not satisfied. For example, in some embodiments, when the power adapter supply voltage is 20V in the power-on state, the EC controller will keep the current power adapter supply voltage unchanged and not perform voltage regulation.
In step C11, the EC controller sends a voltage regulation command to the PD chip, the voltage regulation command instructing to increase the supply voltage of the power adapter to 20V.
In step C12, the PD chip sends a voltage regulation command to the power adapter.
And step C13, the power adapter regulates the power supply voltage to 20V according to the voltage regulating command.
And step C14, the power adapter supplies power to the battery according to the regulated 20V power supply voltage.
As can be seen from the above C1-C14, after the connection between the power adapter and the electronic device is detected, if the electronic device is determined to be in the power-on state, the voltage-regulating policy corresponding to the power-on state is adopted: for example, when the supply voltage of the power adapter is lower than the preset voltage value, the supply voltage of the power adapter may be increased to ensure that the electronic device can normally operate in the power-on state.
In the process of charging the electronic device in the power-on state, the electronic device may change from the power-on state to the power-off state in response to a power-off operation of a user, and a power supply voltage adjustment process in a scenario from power-on to power-off of the electronic device is further described below.
And step C15, when the electronic device is turned off, the CPU sends the on-off information to the EC controller to indicate the system to be in the off state.
At step C16, the EC controller obtains battery charge information from the battery.
In step C17, the EC controller obtains the supply voltage and current information of the power adapter from the PD chip.
And step C18, the EC controller calculates the power supply power of the power adapter according to the power supply voltage and current of the power adapter.
Step C19, when the battery is fully charged in the shutdown state, the power supply power of the power adapter is more than 40W, and the power supply voltage of the power adapter is 20V, the voltage regulating condition is met, and the EC controller generates a voltage regulating instruction: and regulating the power supply voltage of the power adapter to 9V.
Optionally, when the EC controller determines whether the voltage regulation condition is satisfied, since the supply power variation range of the power adapter is small, it may be also not considered whether the supply power of the power adapter satisfies the requirement. For example, when the system state is changed from the power-on state to the power-off state, the battery is fully charged, and the power supply voltage (20V) of the power adapter is higher than a preset voltage value (e.g., 15V), the EC controller determines the voltage regulation strategy.
It is understood that the exemplary description is given by taking the case of satisfying the voltage regulation condition as an example, and there are some cases of not satisfying the voltage regulation condition, and the supply voltage of the power adapter will be kept unchanged in the scenario of not satisfying the voltage regulation condition.
In step C20, the EC controller sends a voltage regulation command to the PD chip, the voltage regulation command instructing to reduce the supply voltage of the power adapter to 9V.
In step C21, the PD chip sends a voltage regulation command to the power adapter.
And step C22, the power adapter regulates the power supply voltage to 9V according to the voltage regulating command.
And step C23, the power adapter supplies power to the battery according to the regulated 9V power supply voltage.
As can be seen from the above C15-C23, when it is detected that the electronic device is changed from the power-on state to the power-off state, the voltage regulation policy corresponding to the power-off state is adopted: for example, when the battery is fully charged (and the power supply power of the power adapter meets the requirement) and the power supply voltage of the power adapter is higher than the preset voltage value, the power supply voltage of the power adapter can be reduced, so that unnecessary power consumption of the electronic equipment in a shutdown state is avoided, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved.
It should be noted that, in the process of charging the electronic device in the shutdown state, in response to a startup operation of a user, the electronic device may change from the shutdown state to the startup state, and a power supply voltage adjustment process in a scenario from shutdown to startup of the electronic device is further described below.
When the electronic equipment is started, the CPU sends startup and shutdown information to the EC controller to indicate that the system is changed into a startup state. The EC controller obtains the supply voltage (e.g., 9V) of the power adapter from the PD chip. When the system state is changed from the shutdown state to the startup state and the power supply voltage (9V) of the power adapter is lower than a preset voltage value (for example, the preset voltage value is 15V), the voltage regulation condition is met, and the EC controller generates a voltage regulation instruction: and regulating the power supply voltage of the power adapter to 20V. The EC controller sends a voltage regulating command to the PD chip. The PD chip sends the voltage regulation command to the power adapter, and the power adapter regulates the power supply voltage to 20V according to the voltage regulation command. The power adapter supplies power to the battery according to the regulated 20V power supply voltage.
By the above steps, when the EC controller detects that the electronic device is changed from the power-off state to the power-on state, the EC controller adopts the voltage regulation strategy corresponding to the power-on state: for example, when the supply voltage of the power adapter is lower than the preset voltage value, the supply voltage of the power adapter may be increased to ensure that the electronic device can normally operate in the power-on state.
Through the scheme, the power supply voltage gear of the power adapter can be adaptively adjusted according to the on-off state of the electronic equipment, for example, the voltage is adjusted down or up or kept unchanged. When the electronic equipment is in a shutdown state, if the battery full charge state is met, the power supply power of the power adapter is greater than the preset power threshold value, and the current power supply voltage of the power adapter is higher, the power supply voltage of the power adapter can be reduced by the electronic equipment, for example, the power supply voltage is reduced from 20V to 9V, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved. Moreover, when the electronic device is changed from the power-off state to the power-on state, the power supply voltage of the power adapter can be restored to a normal voltage value (for example, 20V), so that the electronic device can be normally used after being powered on.
It should also be noted that in the embodiments of the present application, "greater than" may be replaced by "greater than or equal to" and "less than or equal to" may be replaced by "less than", or "greater than or equal to" may be replaced by "greater than" and "less than" may be replaced by "less than or equal to".
The various embodiments described herein may be implemented as stand-alone solutions or combined in accordance with inherent logic and are intended to fall within the scope of the present application.
It is to be understood that the methods and operations implemented by the electronic device in the above method embodiments may also be implemented by components (e.g., chips or circuits) that can be used in the electronic device.
Embodiments of the methods provided herein are described above, and embodiments of the apparatus provided herein are described below. It should be understood that the description of the apparatus embodiments corresponds to the description of the method embodiments, and therefore, for brevity, details are not repeated here, since the details that are not described in detail may be referred to the above method embodiments.
The solutions provided by the embodiments of the present application have been described above primarily in terms of method steps. It is understood that, in order to implement the above functions, the electronic device implementing the method includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art would appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware 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 the embodiment of the present application, according to the method example, the electronic device may be divided into the functional modules, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present application is schematic, and is only one logical function division, and other feasible division manners may be available in actual implementation. The following description will be given taking the example of dividing each functional module corresponding to each function.
Fig. 8 is a schematic block diagram of an apparatus 800 for dynamically adjusting a supply voltage of a power adapter according to an embodiment of the present application. The apparatus 800 may be used to perform the actions performed by the electronic device in the above method embodiments. The apparatus 800 includes a charging unit 810 and a control unit 820.
A charging unit 810 for detecting that the power adapter is connected to a USB port of the electronic device;
the charging unit 810 is further configured to, when the electronic device is in a shutdown state or the electronic device changes from startup to shutdown, obtain battery power information of the electronic device, a power supply power value of the power adapter, and a power supply voltage value;
a control unit 820, configured to adjust a power supply voltage value of the power adapter from a first voltage value to a second voltage value if the battery is in a full charge state, the power supply power value of the power adapter is greater than a preset power threshold, and the power supply voltage value of the power adapter is a first voltage value;
wherein the second voltage value is less than the first voltage value.
It should be noted that the charging unit 810 may correspond to the PD chip, and the control unit 820 may correspond to the EC controller.
Through the scheme, the power supply voltage gear of the power adapter can be adaptively adjusted according to the on-off state of the electronic equipment, for example, the voltage is adjusted down or up or kept unchanged. When the electronic equipment is in a shutdown state, if the battery full charge state is met, the power supply power of the power adapter is greater than the preset power threshold value, and the current power supply voltage of the power adapter is higher, the power supply voltage of the power adapter can be reduced by the electronic equipment, for example, the power supply voltage is reduced from 20V to 9V, the energy consumption of the whole machine is reduced, and the purpose of meeting the ERP authentication requirement is achieved. Moreover, when the electronic device is changed from the power-off state to the power-on state, the power supply voltage of the power adapter can be restored to a normal voltage value (for example, 20V), so that the electronic device can be normally used after being powered on.
The apparatus 800 according to the embodiment of the present application may correspond to performing the method described in the embodiment of the present application, and the above and other operations and/or functions of the units in the apparatus 800 are respectively for implementing corresponding flows of the method, and are not described herein again for brevity.
Fig. 9 is a schematic structural diagram of an electronic device 900 provided in an embodiment of the present application. The electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a Universal Serial Bus (USB) interface 930, a charging management module 940, a power management unit 941, a battery 942, an antenna 1, an antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, a sensor module 980, a button 990, a motor 991, an indicator 992, a camera 993, a display 994, and a Subscriber Identification Module (SIM) card interface 995, etc. Wherein sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, a barometric sensor 980C, a magnetic sensor 980D, an acceleration sensor 980E, a distance sensor 980F, a proximity light sensor 980G, a fingerprint sensor 980H, a temperature sensor 980I, a touch sensor 980J, an ambient light sensor 980K, and a bone conduction sensor 980L, among others.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the electronic device 900. In other embodiments of the present application, electronic device 900 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 910 may include one or more processing units, such as: the processor 910 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. The controller may be, among other things, a neural center and a command center of the electronic device 900. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 910 for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 910. If the processor 910 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 910, thereby increasing the efficiency of the system.
In some embodiments, processor 910 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc. It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 900. In other embodiments of the present application, the electronic device 900 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 940 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 940 may receive charging input from a wired charger via the USB interface 930. In some wireless charging embodiments, the charging management module 940 may receive wireless charging input through a wireless charging coil of the electronic device 900. The charging management module 940 may also supply power to the electronic device through the power management unit 941 while charging the battery 942.
The power management unit 941 is used to connect the battery 942, the charging management module 940 and the processor 910. The power management unit 941 receives input from the battery 942 and/or the charging management module 940, and provides power to the processor 910, the internal memory 921, the external memory, the display 994, the camera 993, the wireless communication module 960, and the like. The power management unit 941 may also be used to monitor parameters such as battery capacity, battery cycle number, and battery health (leakage, impedance). In other embodiments, the power management unit 941 may also be disposed in the processor 910. In other embodiments, the power management unit 941 and the charging management module 940 may be disposed in the same device.
The wireless communication function of the electronic device 900 may be implemented by the antenna 1, the antenna 2, the mobile communication module 950, the wireless communication module 960, 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 900 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as 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 950 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 900. The mobile communication module 950 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 950 can receive electromagnetic waves from the antenna 1, filter, amplify and transmit the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 950 can also amplify the signal modulated by the modem processor and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be disposed in the processor 910. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be disposed in the same device as at least some of the modules of the processor 910.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a 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 passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 970A, the receiver 970B, etc.) or displays an image or video through the display screen 994. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 910 and may be located in the same device as the mobile communication module 950 or other functional modules.
The wireless communication module 960 may provide a solution for wireless communication applied on the electronic device 900, including WLAN (e.g., Wi-Fi), BT, Global Navigation Satellite System (GNSS), FM, NFC, IR, or general 2.4G/5G wireless communication technologies. The wireless communication module 960 may be one or more devices integrating at least one communication processing module. The wireless communication module 960 receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering on an electromagnetic wave signal, and transmits the processed signal to the processor 910. The wireless communication module 960 may also receive signals to be transmitted from the processor 910, frequency-modulate and amplify the signals, and convert the signals into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the wireless communication module 960 may be a Wi-Fi and/or Bluetooth chip. The electronic device 900 may establish a connection with a chip of an electronic device such as a wireless headset through the chip, so as to implement wireless communication and service processing between the electronic device 900 and other electronic devices through the connection. The Bluetooth chip can generally support BR/EDR Bluetooth and BLE.
In some embodiments, antenna 1 of electronic device 900 is coupled to mobile communication module 950 and antenna 2 is coupled to wireless communication module 960 so that electronic device 900 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (TDSCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, and the like. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The electronic device 900 implements display functions via the GPU, the display screen 994, and the application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display screen 994 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 910 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 994 is used to display images, video, and the like. The display screen 994 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 900 may include 1 or N display screens 994, N being a positive integer greater than 1.
The electronic device 900 may implement a shooting function through an ISP, a camera 993, a video codec, a GPU, a display screen 994, an application processor, and the like.
The ISP is used to process data fed back by the camera 993. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on 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 993.
The camera 993 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 900 may include 1 or N cameras 993, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 900 selects at a frequency bin, the digital signal processor is used to perform a fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 900 may support one or more video codecs. In this way, electronic device 900 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent cognition of the electronic device 900 can be achieved through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 920 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 900. The external memory card communicates with the processor 910 through the external memory interface 920 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 921 may be used to store computer-executable program code, which includes instructions. The processor 910 executes various functional applications of the electronic device 900 and data processing by executing instructions stored in the internal memory 921. The internal memory 921 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area may store data created during use of the electronic device 900 (e.g., audio data, phone book, etc.), and the like. In addition, the internal memory 921 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 (UFS), and the like.
The processor 910 can be configured to execute the program code, and call the relevant modules to implement the functions of the electronic device in the embodiment of the present application. For example, establishing a plurality of communication links with another electronic device; when a preset service (such as a file transfer service) exists, data of the preset service is transmitted with another electronic device through a plurality of communication links.
The electronic device 900 may implement an audio function through a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, an application processor, and the like in the audio module 970. Such as music playing, recording, etc.
The audio module 970 is used for converting digital audio information into an analog audio signal output and also for converting an analog audio input into a digital audio signal. The audio module 970 may also be used to encode and decode audio signals. In some embodiments, the audio module 970 may be disposed in the processor 910, or some functional modules of the audio module 970 may be disposed in the processor 910.
The speaker 970A, also called a "horn", is used to convert audio electrical signals into sound signals. The electronic device 900 may listen to music through the speaker 970A or listen to a hands-free call.
Receiver 970B, also referred to as an "earpiece," is used to convert the electrical audio signal into an acoustic signal. When the electronic device 900 receives a call or voice information, it can receive voice by placing the receiver 970B close to the ear of the person.
Microphone 970C, also referred to as a "microphone," is used to convert acoustic signals into electrical signals. When making a call or sending voice information, the user can input a voice signal into the microphone 970C by making a sound by approaching the microphone 970C through the mouth of the user. The electronic device 900 may be provided with at least one microphone 970C. In other embodiments, the electronic device 900 may be provided with two microphones 970C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 900 may further include three, four or more microphones 970C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 970D is used to connect a wired earphone. The earphone interface 970D may be the USB interface 930, or may be an open mobile electronic device platform (OMTP) standard interface of 3.5mm, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
Pressure sensor 980A is configured to sense a pressure signal, which may be converted to an electrical signal. In some embodiments, the pressure sensor 980A may be disposed on the display screen 994. Pressure sensor 980A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 980A, the capacitance between the electrodes changes. The electronic device 900 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 994, the electronic apparatus 900 detects the intensity of the touch operation based on the pressure sensor 980A. The electronic device 900 may also calculate the location of the touch based on the detection signal of the pressure sensor 980A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 980B may be used to determine the motion pose of the electronic device 900. In some embodiments, the angular velocity of electronic device 900 about three axes (e.g., x, y, and z axes) may be determined by gyroscope sensor 980B. The gyro sensor 980B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 980B detects the shake angle of the electronic device 900, calculates the distance to be compensated for by the lens module according to the shake angle, and enables the lens to counteract the shake of the electronic device 900 through reverse movement, thereby achieving anti-shake. The gyro sensor 980B may also be used for navigation, somatosensory gaming scenarios.
Acceleration sensor 980E may detect the magnitude of acceleration of electronic device 900 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 900 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The distance sensor 980F is used to measure distance. The electronic device 900 may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 900 may utilize range sensor 980F to measure distances to achieve fast focus.
The proximity light sensor 980G 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 900 emits infrared light outward through the light emitting diode. The electronic device 900 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 900. When insufficient reflected light is detected, the electronic device 900 may determine that there are no objects near the electronic device 900. The electronic device 900 may utilize the proximity light sensor 980G to detect that the user is holding the electronic device 900 close to the ear for a call, so as to automatically turn off the screen to save power. The proximity light sensor 980G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 980K is used to sense ambient light level. The electronic device 900 may adaptively adjust the brightness of the display 994 based on the perceived ambient light level. The ambient light sensor 980K may also be used to automatically adjust the white balance when taking a picture. Ambient light sensor 980K may also cooperate with proximity light sensor 980G to detect whether electronic device 900 is in a pocket to prevent inadvertent touches.
Barometric pressure sensor 980C is used to measure barometric pressure. In some embodiments, electronic device 900 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 980C.
The magnetic sensor 980D includes a hall sensor. The electronic device 900 may detect displacement of the electronic device 900 using the magnetic sensor 980D. In some embodiments, the hall sensor may form a linear trapezoidal magnetic field (or called a ramp magnetic field) by using the magnet, a displacement change of the hall plate in the linear magnetic field is consistent with a magnetic field intensity change, a formed hall potential is also proportional to the displacement, and the electronic device 900 obtains the hall potential to measure the displacement.
The fingerprint sensor 980H is used to capture a fingerprint. The electronic device 900 may utilize the collected fingerprint characteristics to implement fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint answering, and the like.
The temperature sensor 980I is used to detect temperature. In some embodiments, the electronic device 900 implements a temperature handling strategy using the temperature detected by the temperature sensor 980I. For example, when the temperature reported by temperature sensor 980I exceeds a threshold, electronic device 900 performs a reduction in performance of a processor located near temperature sensor 980I to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 900 heats the battery 942 when the temperature is below another threshold to avoid low temperatures causing the electronic device 900 to shut down abnormally. In other embodiments, electronic device 900 boosts the supply voltage of battery 942 when the temperature is below a further threshold to avoid abnormal shutdown due to low temperature.
Touch sensor 980J, also referred to as a "touch panel". The touch sensor 980J may be disposed on the display screen 994, and the touch sensor 980J and the display screen 994 form a touch screen, which is also referred to as a "touch screen". The touch sensor 980J is used to detect a touch operation applied thereto or thereabout. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 994. In other embodiments, the touch sensor 980J may be disposed on a surface of the electronic device 900 at a different location than the display screen 994.
Bone conduction sensor 980L can acquire a vibration signal. In some embodiments, the bone conduction sensor 980L can acquire a vibration signal of a vibrating bone mass of the human voice. The bone conduction sensor 980L can also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 980L may also be disposed in a headset, integrated into a bone conduction headset. The audio module 970 may analyze a voice signal based on the vibration signal of the sound part vibration bone block acquired by the bone conduction sensor 980L, thereby implementing a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 980L, and the heart rate detection function is realized.
The keys 990 include a power-on key, a volume key, and the like. Keys 990 may be mechanical keys. Or may be touch keys. The electronic device 900 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 900.
The motor 991 may generate a vibration cue. The motor 991 may be used for incoming call vibration prompts, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 991 may also respond to different vibration feedback effects when it is operated by touching different areas of the display screen 994. Different application scenarios (e.g., time reminding, receiving information, alarm clock, game, etc.) may also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 992 may be an indicator light, may be used to indicate a change in charge status, charge level, or may be used to indicate a message, missed call, notification, or the like.
The SIM card interface 995 is used to connect SIM cards. The SIM card can be brought into and out of contact with the electronic device 900 by being inserted into the SIM card interface 995 or being pulled out of the SIM card interface 995. The electronic device 900 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 995 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 995 can be used to insert multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 995 may also be compatible with different types of SIM cards. The SIM card interface 995 may also be compatible with external memory cards. The electronic device 900 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 900 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 900 and cannot be separated from the electronic device 900.
Illustratively, the electronic device 900 may be a notebook computer. The device type of the electronic device 900 is not particularly limited in the embodiments of the present application.
It should be understood that the electronic device 900 shown in fig. 9 may correspond to the apparatus 800 shown in fig. 8. The processor 910 and the charging management module 940 in the electronic device 900 shown in fig. 9 may respectively correspond to the control unit 820 and the charging unit 810 in the apparatus 800 in fig. 8.
In actual implementation, the processor 910 executes the computer executable instructions in the memory 921 to perform the operational steps of the above-described method by the electronic device 900 when the electronic device 900 is running.
Optionally, in some embodiments, the present application provides a chip coupled with a memory, and configured to read and execute a computer program or instructions stored in the memory to perform the method in the above embodiments.
Optionally, in some embodiments, the present application provides an electronic device comprising a chip for reading and executing a computer program or instructions stored by a memory, such that the methods in the embodiments are performed.
Optionally, in some embodiments, the present application further provides a computer-readable storage medium storing program code, which, when executed on a computer, causes the computer to perform the method in the foregoing embodiments.
Optionally, in some embodiments, the present application further provides a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the foregoing embodiments.
In an embodiment of the application, an electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer may include hardware such as a CPU, a Memory Management Unit (MMU), and a memory (also referred to as a main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer may include applications such as a browser, an address book, word processing software, and instant messaging software.
The embodiment of the present application does not particularly limit a specific structure of an execution subject of the method provided by the embodiment of the present application, as long as communication can be performed by the method provided by the embodiment of the present application by running a program in which codes of the method provided by the embodiment of the present application are recorded. For example, an execution subject of the method provided by the embodiment of the present application may be an electronic device, or a functional module capable of calling a program and executing the program in the electronic device.
Various aspects or features of the disclosure may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disk, floppy disk, or magnetic tape), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), card, stick, or key drive, etc.).
Various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, but is not limited to: wireless channels and various other media capable of storing, containing, and/or carrying instruction(s) and/or data.
It should be understood that the processor mentioned in the embodiments of the present application may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory referred to in the embodiments of the application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM). For example, RAM can be used as external cache memory. By way of example and not limitation, RAM may include the following forms: static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct bus RAM (DR RAM).
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) may be integrated into the processor.
It should also be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Those of ordinary skill in the art will appreciate that the various illustrative elements and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations 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 implementation. 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.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. Furthermore, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, or portions thereof, may be embodied in the form of a computer software product stored in a storage medium, the computer software product including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage media may include, but are not limited to: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall 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 (18)

1. A method for dynamically adjusting a supply voltage of a power adapter, comprising:
when the electronic equipment is in a shutdown state, the electronic equipment is charged at a first voltage through a power adapter;
after the electronic device is in a full-battery state, the electronic device adjusts the power supply voltage of the power adapter to a second voltage;
the electronic device is charged at the second voltage through the power adapter;
wherein the second voltage is less than the first voltage.
2. The method of claim 1, wherein after the electronic device is in a battery full state, the electronic device regulating the supply voltage of the power adapter to a second voltage comprises:
after the electronic device is in a full-charge state of a battery, if the power supply voltage of the power adapter is the first voltage and the first voltage is greater than a preset voltage threshold, the power supply voltage of the power adapter is adjusted from the first voltage to a second voltage.
3. The method of claim 2, wherein adjusting the supply voltage of the power adapter from the first voltage to a second voltage if the supply voltage of the power adapter is the first voltage and the first voltage is greater than a predetermined voltage comprises:
and if the power supply voltage of the power adapter is the first voltage, the first voltage is greater than a preset voltage, and the power supply power of the power adapter is greater than a preset power threshold value, adjusting the power supply voltage of the power adapter from the first voltage to a second voltage.
4. The method of claim 3, further comprising:
when the electronic equipment is in a non-full-charge state of a battery, keeping the power supply voltage of the power adapter at the first voltage; alternatively, the first and second electrodes may be,
when the power supply power of the power adapter is smaller than or equal to the preset power threshold, keeping the power supply voltage of the power adapter at the first voltage; alternatively, the first and second electrodes may be,
when the electronic equipment is in a full-charge state of the battery, the power supply power of the power adapter is larger than the preset power threshold value, and the power supply voltage of the power adapter is smaller than or equal to the preset voltage threshold value, the power supply voltage of the power adapter is kept to be the first voltage.
5. The method according to any one of claims 1 to 4, further comprising:
detecting that the electronic equipment is in a power-on state or the electronic equipment is changed from a power-off state to a power-on state;
if the power supply voltage of the power adapter is smaller than the first voltage, adjusting the power supply voltage of the power adapter to the first voltage; alternatively, the first and second electrodes may be,
and if the power supply voltage of the power adapter is equal to the first voltage, keeping the power supply voltage of the power adapter at the first voltage.
6. The method according to any one of claims 1 to 5, wherein the first voltage is 20V and the second voltage is 9V.
7. The method of any one of claims 1 to 6, wherein the power adapter is connected to the electronic device by a wired or wireless connection.
8. The method of any one of claims 1 to 7, wherein the electronic device comprises a Universal Serial Bus (USB) port and a charging management module, the USB port being connected to the power adapter and the charging management module, respectively; the method further comprises the following steps:
when the power adapter is plugged into the USB port, the USB port acquires the power supply voltage information of the power adapter;
the USB port sends level change information and the power supply voltage information to the charging management module;
when the level change information indicates that the USB port changes from a low level to a high level, the charging management module determines that the USB port has an insertion event;
when the supply voltage information indicates that a supply voltage greater than zero exists, the charging management module determines that the power adapter is plugged into the USB port.
9. The method of claim 8, wherein the electronic device further comprises an embedded controller and a central processor; the embedded controller is connected to the embedded controller and to the charging management module;
wherein after the charging management module determines that the power adapter is plugged into the USB port, the method further comprises:
the charging management module sends a first message to the embedded controller, wherein the first message is used for representing an insertion event of the power adapter into the USB port;
responding to the first message, the embedded controller acquires startup and shutdown information from the central processing unit, wherein the startup and shutdown information is used for indicating a startup state or a shutdown state;
when the power-on and power-off information indicates a power-off state, the embedded controller determines that the electronic equipment is in the power-off state.
10. The method of claim 9, wherein the electronic device further comprises a charging chip and a battery, wherein the charging chip is connected to the USB port and the embedded controller, and the battery is connected to the embedded controller and the charging management module; the method further comprises the following steps:
the embedded controller acquires battery power information from the battery, wherein the battery power information is used for indicating a full charge state or a non-full charge state of the battery;
and the embedded controller acquires the power supply voltage information of the power adapter from the charging chip.
11. The method of claim 10, wherein the embedded controller obtains battery level information from the battery, comprising:
the battery sends an electric quantity flag bit to the embedded controller, and the electric quantity flag bit is used for indicating the electric quantity of the battery;
when the electric quantity flag bit is a full-charge flag bit indicating that the electric quantity of the battery is fully charged, the embedded controller determines that the electronic equipment is in a full-charge state of the battery; alternatively, the first and second electrodes may be,
and when the electric quantity flag bit is a non-full-charge flag bit indicating that the electric quantity of the battery is not fully charged, the embedded controller determines that the electronic equipment is in a non-full-charge state of the battery.
12. The method of claim 10 or 11, wherein the electronic device regulating the supply voltage of the power adapter to a second voltage comprises:
the embedded controller sends a voltage regulating command to the charging chip, wherein the voltage regulating command is used for indicating that the power supply voltage of the power adapter is regulated to the second voltage;
and the charging chip sends the voltage regulating command to the power adapter through the USB port, so that the power adapter regulates the power supply voltage to the second voltage according to the voltage regulating command.
13. The method according to claim 10 or 11, characterized in that the method further comprises:
if the power supply voltage of the power adapter is smaller than the first voltage, the embedded controller sends a second voltage regulating command to the charging chip; wherein the second voltage regulation command is used for instructing to regulate the power supply voltage of the power adapter to the first voltage;
and the charging chip sends the second voltage regulating command to the power adapter through the USB port so as to control the power adapter to regulate the power supply voltage to the first voltage.
14. The method of any one of claims 8 to 13, wherein the USB port is a Type-C Type port and the power adapter is a Type-C Type power adapter.
15. An electronic device comprising a processor coupled with a memory, the processor being configured to execute a computer program or instructions stored in the memory to cause the electronic device to implement the method of any of claims 1-14.
16. A chip system, wherein the chip system is coupled with a memory, and the chip system is configured to read and execute a computer program stored in the memory to implement the method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that it stores a computer program which, when run on an electronic device, causes the electronic device to perform the method of any of claims 1 to 14.
18. A computer program product, which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 14.
CN202111217433.9A 2021-09-26 2021-10-19 Method for dynamically adjusting power supply voltage of power adapter and electronic equipment Pending CN113964900A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111130339X 2021-09-26
CN202111130339 2021-09-26

Publications (1)

Publication Number Publication Date
CN113964900A true CN113964900A (en) 2022-01-21

Family

ID=79464490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111217433.9A Pending CN113964900A (en) 2021-09-26 2021-10-19 Method for dynamically adjusting power supply voltage of power adapter and electronic equipment

Country Status (1)

Country Link
CN (1) CN113964900A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600375A (en) * 2023-07-18 2023-08-15 荣耀终端有限公司 Electronic device power supply circuit and electronic equipment
CN116909377A (en) * 2023-06-30 2023-10-20 进迭时空(珠海)科技有限公司 Power consumption optimization device and method for mobile electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2602905A2 (en) * 2011-12-05 2013-06-12 Broadcom Corporation Power management system suitable for use with multi-series-cell batteries
CN107332313A (en) * 2017-08-16 2017-11-07 联想(北京)有限公司 Electronic equipment and its charging method
CN111654093A (en) * 2020-06-11 2020-09-11 无锡睿勤科技有限公司 Voltage control device, method and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2602905A2 (en) * 2011-12-05 2013-06-12 Broadcom Corporation Power management system suitable for use with multi-series-cell batteries
CN107332313A (en) * 2017-08-16 2017-11-07 联想(北京)有限公司 Electronic equipment and its charging method
CN111654093A (en) * 2020-06-11 2020-09-11 无锡睿勤科技有限公司 Voltage control device, method and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909377A (en) * 2023-06-30 2023-10-20 进迭时空(珠海)科技有限公司 Power consumption optimization device and method for mobile electronic equipment
CN116600375A (en) * 2023-07-18 2023-08-15 荣耀终端有限公司 Electronic device power supply circuit and electronic equipment
CN116600375B (en) * 2023-07-18 2023-10-20 荣耀终端有限公司 Electronic device power supply circuit and electronic equipment

Similar Documents

Publication Publication Date Title
CN113362783B (en) Refresh rate switching method and electronic equipment
CN110347269B (en) Empty mouse mode realization method and related equipment
CN113395388B (en) Screen brightness adjusting method and electronic equipment
CN111316527A (en) Optional terminal charging method, graphical user interface and electronic equipment
CN111182140B (en) Motor control method and device, computer readable medium and terminal equipment
US20230117194A1 (en) Communication Service Status Control Method, Terminal Device, and Readable Storage Medium
CN111522425A (en) Power consumption control method of electronic equipment and electronic equipment
CN115589051B (en) Charging method and terminal equipment
WO2021052170A1 (en) Motor vibration control method and electronic device
CN112860428A (en) High-energy-efficiency display processing method and equipment
CN113964900A (en) Method for dynamically adjusting power supply voltage of power adapter and electronic equipment
CN115798390A (en) Screen display method and terminal equipment
CN111651254A (en) Method and device for executing application
CN111492678B (en) File transmission method and electronic equipment
CN114422686A (en) Parameter adjusting method and related device
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN114221402A (en) Charging method and device of terminal equipment and terminal equipment
CN115714890A (en) Power supply circuit and electronic device
CN113918003A (en) Method and device for detecting time length of skin contacting screen and electronic equipment
CN114661258A (en) Adaptive display method, electronic device, and storage medium
CN112822246A (en) Equipment identification method and equipment
CN114064381A (en) USB interface water inflow detection method and electronic equipment
WO2023207715A1 (en) Screen-on control method, electronic device, and computer-readable storage medium
CN113610943B (en) Icon rounded angle processing method and device
CN113765445B (en) Method for controlling vibration of electronic equipment, audio coding and decoding module and electronic equipment

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