WO2023045683A1 - 充电控制方法、电子设备及充电控制系统 - Google Patents

充电控制方法、电子设备及充电控制系统 Download PDF

Info

Publication number
WO2023045683A1
WO2023045683A1 PCT/CN2022/114423 CN2022114423W WO2023045683A1 WO 2023045683 A1 WO2023045683 A1 WO 2023045683A1 CN 2022114423 W CN2022114423 W CN 2022114423W WO 2023045683 A1 WO2023045683 A1 WO 2023045683A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
power supply
embedded controller
chip
usb port
Prior art date
Application number
PCT/CN2022/114423
Other languages
English (en)
French (fr)
Inventor
相超
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to EP22871736.9A priority Critical patent/EP4290731A4/en
Priority to US18/549,056 priority patent/US20240152192A1/en
Publication of WO2023045683A1 publication Critical patent/WO2023045683A1/zh

Links

Images

Classifications

    • 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
    • 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/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • 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/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3209Monitoring remote activity, e.g. over telephone lines or network connections
    • 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/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • 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/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present application relates to the field of electronic technology, and in particular to a charging control method, electronic equipment and a charging control system.
  • Embodiments of the present application provide a charging control method, electronic equipment and a charging control system.
  • the first electronic equipment is in the shutdown state, the second electronic equipment can be charged, and the power consumption of the first battery can be reduced, and the second electronic equipment can be improved.
  • the battery life of an electronic device When the first electronic equipment is in the shutdown state, the second electronic equipment can be charged, and the power consumption of the first battery can be reduced, and the second electronic equipment can be improved.
  • the battery life of an electronic device When the first electronic equipment is in the shutdown state, the second electronic equipment can be charged, and the power consumption of the first battery can be reduced, and the second electronic equipment can be improved.
  • the battery life of an electronic device is not limited to the battery.
  • the embodiment of the present application proposes a charging control method, which is applied to a first electronic device, and the first electronic device includes a first universal serial bus (universal serial bus, USB) port, a first battery, and An embedded controller connected to a USB port and the first battery, the method includes: when the first electronic device is in a power-off state and the second USB port of the second electronic device is connected to the first USB port, the embedded controller The device receives a wake-up signal; the wake-up signal is generated according to the first power supply signal input from the second electronic device to the first USB port, and the wake-up signal is used to wake up the embedded controller; when the embedded controller is woken up, the embedded The embedded controller acquires the device information of the second electronic device; the embedded controller charges the second electronic device through the first battery according to the device information.
  • the first electronic device includes a first universal serial bus (universal serial bus, USB) port, a first battery, and An embedded controller connected to a USB port and the first battery
  • the method includes: when the first electronic device is
  • the second electronic device can be charged; and, since the first electronic device is in the shutdown state and the first USB port is not connected to the second USB port, the embedded controller Always in the power-off state, at this time, there is no need for the first battery to supply power to the embedded controller, thereby reducing the power consumption of the first battery and improving the battery life of the first electronic device.
  • the embedded controller charges the second electronic device through the first battery according to the device information, including: the embedded controller determines the device type of the second electronic device according to the device information; The information includes supply voltage and/or supply current; when the device type of the second electronic device is a device to be charged, the embedded controller charges the second electronic device through the first battery. In this way, the device type of the second electronic device can be determined through the supply voltage and/or the supply current, so as to determine whether the second electronic device is a device to be charged.
  • the device information includes supply current and supply voltage; the embedded controller determines the device type of the second electronic device according to the device information, including: the embedded controller calculates the product of the supply current and the supply voltage , to obtain the power supply of the second electronic device; the embedded controller determines the device type of the second electronic device according to the power supply. Whether the second electronic device is a device to be charged can be determined based on the power supply of the second electronic device.
  • the detection method of the device type is relatively simple, and the detection result is relatively accurate.
  • the embedded controller determines the device type of the second electronic device according to the power supply, including: when the power supply is less than or equal to the preset power, the embedded controller determines the type of the second electronic device The device type is a device to be charged; when the power supply is greater than the preset power, the embedded controller determines that the device type of the second electronic device is a power supply device.
  • the device information includes a power supply voltage; the embedded controller determines the device type of the second electronic device according to the device information, including: when the power supply voltage is less than or equal to a preset voltage, the embedded controller Determining that the device type of the second electronic device is a device to be charged; when the power supply voltage is greater than a preset voltage, the embedded controller determines that the device type of the second electronic device is a power supply device. In this way, it can be determined whether the second electronic device is a device to be charged based on the power supply voltage of the second electronic device, which reduces the amount of data when the second electronic device sends device information to the first electronic device, and reduces the transmission time of the device information.
  • the device information includes the power supply current; the embedded controller determines the device type of the second electronic device according to the device information, including: when the power supply current is less than or equal to the preset current, the embedded controller Determining that the device type of the second electronic device is a device to be charged; when the power supply current is greater than a preset current, the embedded controller determines that the device type of the second electronic device is a power supply device. In this way, it can be determined whether the second electronic device is a device to be charged based on the power supply current of the second electronic device, which reduces the amount of data when the second electronic device sends device information to the first electronic device, and reduces the transmission time of the device information.
  • the embedded controller charges the second electronic device through the first battery, including: when the device type of the second electronic device When it is the device to be charged, the embedded controller acquires the first power value of the first battery; when the first power value satisfies a preset condition, the embedded controller charges the second electronic device through the first battery.
  • the embedded controller determines that the second electronic device is the device to be charged, it first judges whether the first power value of the first battery set in it meets the preset condition, and only charges the second electronic device when the preset condition is met. Charging is performed, so that while ensuring that the second electronic device can be charged, the first electronic device has enough power to be used normally.
  • the preset condition is that the first power value is greater than the preset power value.
  • the first power value is greater than the preset power value, it is determined that the first power value of the first battery satisfies a preset condition.
  • the embedded controller before the embedded controller charges the second electronic device through the first battery when the first power value satisfies the preset condition, it further includes: the embedded controller acquires the second electronic device A second power level of the second battery in the device; wherein, the preset condition is that the first power level is greater than the second power level. When the first power level is greater than the second power level of the second battery, it is determined that the first power level of the first battery satisfies a preset condition.
  • the first electronic device further includes a first power delivery protocol (power delivery, PD) chip, and the first PD chip is connected between the first USB port and the embedded controller; the embedded controller The device obtains the device information of the second electronic device, including: the embedded controller sends a device information query signaling to the first PD chip; the embedded controller receives the device information returned by the first PD chip according to the device information query signaling; the device information It is obtained by the first PD chip from the second PD chip in the second electronic device.
  • PD power delivery protocol
  • the first electronic device further includes a first PD chip and a charging management chip, the first PD chip is connected between the first USB port and the embedded controller, and the charging management chip is connected to the first Between the USB port and the first battery; the embedded controller charges the second electronic device through the first battery according to the device information, including: the embedded controller sends a power supply role switching signaling to the first PD chip according to the device information , so that the first PD chip switches the power supply role of the first electronic device from a power receiving device to a power supply device according to the power supply role switching signaling; wherein, when the power supply role of the first electronic device is switched from a power receiving device to a power supply device , the charging path formed by the first battery, the charging management chip and the first USB port is turned on.
  • this application is based on hardware circuit control, while switching the power supply role of the first electronic device to the power supply device, the charging path formed by the first battery, the charging management chip and the first USB port is turned on, so that the first The first battery in the electronic device charges the second battery in the second electronic device, and its response time is short, so it can quickly switch to the first electronic device to reverse charge the second electronic device.
  • the first electronic device further includes a first PD chip and a charging management chip
  • the first PD chip is connected between the first USB port and the embedded controller
  • the charging management chip is connected to the first Between the USB port and the first battery
  • the charging management chip is also connected to the embedded controller;
  • the embedded controller charges the second electronic device through the first battery according to the device information, including: the embedded controller according to the device information, Send the power supply role switching signaling to the first PD chip;
  • the embedded controller receives the power supply role switching message returned by the first PD chip according to the power supply role switching signaling; when the power supply role switching message is the power supply role of the first electronic device from the power receiving
  • the embedded controller sends a control instruction to the charging management chip, so that the charging management chip transmits the power supply signal provided by the first battery to the first USB port.
  • the embedded controller in this application controls the charging management chip when it determines that the power supply role switching is successful, so that the first battery, the charging management chip and the second PD chip
  • the charging path formed by a USB port is turned on, thereby improving the accuracy of charging the second electronic device by the first battery, and reducing the power consumption of the first battery caused by wrongly judging that the switching of the power supply role is successful.
  • the first electronic device further includes a first PD chip, a charging management chip and a switch module, the first PD chip is connected between the first USB port and the embedded controller, and the charging management chip is respectively It is connected with the first USB port and the switch module, and the switch module is also connected with the first battery and the embedded controller; the embedded controller charges the second electronic device through the first battery according to the device information, including: the embedded controller According to the device information, send the power supply role switching signaling to the first PD chip; the embedded controller receives the power supply role switching message returned by the first PD chip according to the power supply role switching signaling; when the power supply role switching message is the power supply of the first electronic device When the role is switched from the power receiving device to the power supply device, the embedded controller controls the switch module to be turned on, so that the charging path formed by the first battery, the charging management chip and the first USB port is turned on.
  • the embedded controller charges the second electronic device through the first battery according to the device information, including: the embedded controller According to the device information, send the power supply role switching
  • the switch module is the second switch module.
  • the embedded controller in this application only controls the switch module when it determines that the power supply role switch is successful.
  • the charging path formed by the first battery, the charging management chip, and the first USB port is turned on, thereby improving the accuracy of charging the second electronic device by the first battery, and reducing the failure of the first battery caused by misjudging the success of power supply role switching. Battery drain.
  • the first electronic device further includes a charge management chip, and the charge management chip is also respectively connected to the first USB port and the embedded controller, and the embedded controller receives the wake-up signal, including: The device receives the wake-up signal sent by the charging management chip; the wake-up signal is generated by the charging management chip after being woken up by the second power supply signal, and the second power supply signal is generated according to the first power supply signal.
  • This application provides a way to wake up an embedded controller through a charging management chip.
  • the first electronic device further includes a voltage conversion module, and the voltage conversion module is connected between the first USB port and the charging management chip; the charging management chip is the second power supply signal sent by the voltage conversion module wake-up, and the second power supply signal is generated after the voltage conversion module performs voltage conversion on the first power supply signal.
  • the charging management chip in the present application can be adapted to a second electronic device capable of providing power supply signals with different voltage values.
  • the embedded controller receiving the wake-up signal includes: the embedded controller receives the wake-up signal sent by the first USB port; the wake-up signal is the first power supply signal. In this way, the embedded controller can be woken up directly through the first power supply signal input through the first USB port, which simplifies the connection relationship of the first electronic device.
  • the embedded controller after the embedded controller obtains the device information of the second electronic device, it further includes: when it is determined according to the device information that the device type of the second electronic device is a power supply device, the embedded controller continues to Controlling the first PD chip to set the power supply role of the first electronic device as a powered device, so that the power supply signal provided by the second electronic device is input to the first battery through the first USB port and the charging management chip. In this way, the first electronic device in this application can also receive the charging operation of the second electronic device serving as the power supply device.
  • the embedded controller after the embedded controller obtains the first power value of the first battery, it further includes: when the first power value does not meet the preset condition, the embedded controller controls the first USB port The power supply path with the second USB port is disconnected. In this way, when the power of the first battery in the present application is insufficient, the power supply path between the first USB port and the second USB port is controlled to be disconnected, so as to save the power of the battery in the second electronic device 40 .
  • the embedded controller charges the second electronic device through the first battery, it further includes: during the process of charging the second electronic device by the first battery, the embedded controller The third power value of the first battery is acquired regularly; when the third power value does not meet the preset condition, the embedded controller controls the first battery to stop charging the second electronic device.
  • the present application regularly monitors the power value of the first battery, and when the power of the first battery is insufficient, the first battery can stop charging the second electronic device, so as to prevent the power consumption of the first battery from being too much and affecting Normal use of the first electronic device.
  • the embodiment of the present application proposes an electronic device, including an embedded controller and a memory; the memory stores computer-executed instructions; the embedded controller is used to execute the computer-executed instructions stored in the memory, so that the embedded controller performs the above-mentioned charging Control Method.
  • the embodiment of the present application proposes a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed, the above charging control method is implemented.
  • the embodiment of the present application proposes a charging control system, the charging control system includes a first electronic device and a second electronic device, the first electronic device is the above-mentioned electronic device; When the device is in a power-off state and the second USB port of the second electronic device is connected to the first USB port of the first electronic device, the first electronic device is provided with a first power supply signal; and when the embedded When the mode controller is woken up, the power supply signal output by the first electronic device is received.
  • FIG. 1 is a schematic diagram of interaction between a first electronic device and a second electronic device in the related art
  • FIG. 2 is a schematic diagram of an application scenario of a charging control method provided in an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a first electronic device and a second electronic device provided by an embodiment of the present application;
  • FIG. 4 is a schematic diagram of a circuit structure of a first electronic device provided in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a Type-C port provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of a charging control method provided in an embodiment of the present application.
  • FIG. 7 is a schematic connection diagram when the first electronic device is a power receiving device and the second electronic device is a power supply device according to an embodiment of the present application;
  • FIG. 8 is a schematic diagram of signaling interaction between a first PD chip and a second PD chip in an embodiment of the present application
  • FIG. 9 is a schematic diagram of signaling in which the first PD chip acquires device information from the second PD chip in the embodiment of the present application.
  • FIG. 10 is a schematic diagram of signaling for power supply role switching between the first PD chip and the second PD chip in the embodiment of the present application;
  • Fig. 11 is a schematic connection diagram when the first electronic device is a power supply device and the second electronic device is a power receiving device according to an embodiment of the present application;
  • Fig. 12 is a flow chart of another charging control method provided by the embodiment of the present application.
  • FIG. 13 is another schematic structural diagram of the first electronic device and the second electronic device provided by the embodiment of the present application.
  • FIG. 14 is another schematic structural diagram of the first electronic device and the second electronic device provided by the embodiment of the present application.
  • FIG. 15 is a schematic diagram of an interaction process between a first electronic device and a second electronic device according to an embodiment of the present application
  • FIG. 16 is a schematic diagram of the charging process of the first electronic device in different scenarios provided by the embodiment of the present application.
  • FIG. 17 is a schematic diagram of the circuit connection of the first electronic device provided by the embodiment of the present application.
  • FIG. 18 is a schematic diagram of a hardware structure of a first electronic device provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first chip and the second chip are only used to distinguish different chips, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • “at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • users generally insert one end of the charger into a fixed socket as a power supply, and connect the other end of the charger to the USB port of the electronic device to charge electronic devices such as mobile phones and wearable devices.
  • electronic devices such as mobile phones and wearable devices.
  • the user's environment is not equipped with a fixed socket as a power supply, or there is no free fixed socket, it is impossible to connect mobile phones, wearables, etc. through the fixed socket.
  • Charge electronic devices such as devices. Therefore, when it is difficult for a user to find a fixed socket, a laptop computer can be used to charge electronic devices such as mobile phones and wearable devices.
  • a notebook computer is called a first electronic device 10
  • a mobile phone is called a second electronic device 20
  • the first electronic device 10 includes: a processor 110, a charge management chip 120, a first battery 130, an embedded controller 140, a switch circuit 150, a first PD chip 160 and a first USB port 170
  • the processor 110, a charge management chip 120 and the switch circuit 150 are connected in sequence, and the switch circuit 150 is also connected between the first battery 130 and the embedded controller 140
  • the first PD chip 160 is connected to the first USB port 170
  • the second electronic device 20 includes a second PD chip 210 and a second USB port 220 connected to each other.
  • a second battery (not shown) is also provided in the second electronic device 20 .
  • the first electronic device 10 can be triggered to perform a shutdown operation. As shown in FIG. Execute S101, and send a shutdown command to the charging management chip 120; the charging management chip 120 executes S102 after receiving the shutdown command, and controls the switch circuit 150 to close, so that the power supply path between the first battery 130 and the embedded controller 140 is disconnected, Then the first battery 130 will stop supplying power to the embedded controller 140, so that the embedded controller 140 will be powered off. That is to say, when the first electronic device 10 is in the shutdown state, the embedded controller 140 also remains in the power-off state.
  • the embedded controller 140 When the first electronic device 10 is in the power-off state and the embedded controller 140 is also in the power-off state, if the second USB port 220 of the second electronic device 20 is connected to the first USB port 170 of the first electronic device 10, The second electronic device 20 will execute S103 to provide a 5V voltage signal to the first USB port 170 , however, the 5V voltage signal will not wake up the charging management chip 120 , and thus cannot further wake up the embedded controller 140 . Since the embedded controller 140 is in a power-off state, the embedded controller 140 cannot control the first battery 130 to charge the second electronic device 20 .
  • the arrows carried by the connecting wires connected between the two devices in FIG. 1 indicate the transmission direction of signals or data involved in the embodiment of the present application; in fact, the first USB port 170 is connected to the charging
  • the management chip 120 is also connected by a line, and the charging management chip 120 is also connected to the first battery 130 by a line, but, in the shutdown state, the line between the first USB port 170 and the charging management chip 120, and the charging management chip 120 The line with the first battery 130 does not perform signal transmission.
  • the first electronic device 10 In order to enable the first electronic device 10 to charge the second electronic device 20 when it is in the shutdown state, in another related technology, the first electronic device 10 does not control the embedded controller 140 when performing the shutdown operation. Power off, and when the first electronic device 10 is in the shutdown state after the shutdown operation is completed, it will still control the embedded controller 140 not to power off.
  • the embedded controller 140 can control the first battery 130 to charge the second electronic device 20 .
  • the power supply signal provided by the first battery 130 in the first electronic device 10 not only needs to be provided to the second electronic device 20, but also needs to be provided to the embedded controller 140 in the first electronic device 10 all the time. Whether or not the electronic device 20 is connected, the first battery 130 needs to supply power to the embedded controller 140 all the time, resulting in increased power consumption of the first battery 130 in the first electronic device 10 and affecting the battery life of the first electronic device 10 ability.
  • the embedded controller 140 in the first case, when the first electronic device 10 is in the power-off state, the embedded controller 140 is controlled to be in the power-off state, and it cannot be realized that the first electronic device 10 is in the power-off state.
  • the second electronic device 20 In the case of the power-off state, the second electronic device 20 is charged; in the second case, when the first electronic device 10 is in the power-off state, the embedded controller 140 will be continuously controlled to keep the power-on state, so that the first electronic device 10 In the case of the shutdown state, the second electronic device 20 is charged, but this method will cause the power consumption of the first battery 130 in the first electronic device 10 to increase, which will affect the battery life of the first electronic device 10 ability.
  • an embodiment of the present application provides a charging control method, the method controls the embedded controller to power off when the first electronic device is turned off, and when the first USB port of the first electronic device is connected to the second electronic device When the second USB port is connected, the embedded controller is awakened by the first power supply signal input through the second USB port.
  • the embedded controller can, according to the obtained device information of the second electronic device, The first battery is controlled to charge the second electronic device. Therefore, this method can charge the second electronic device when the first electronic device is in the off state; and, since the first electronic device is in the off state and the first USB port is not connected to the second USB port, the embedded The controller is always in the power-off state. At this time, the embedded controller does not need to be powered by the first battery, thereby reducing the power consumption of the first battery and improving the battery life of the first electronic device.
  • the charging control method provided by the embodiment of the present application can be applied to electronic devices such as notebook computers.
  • the electronic device is called the first electronic device, which is used to charge the second electronic device in the shutdown state. It can be mobile phones, wearable devices (such as bracelets, watches, etc.), tablet computers, mice, earphones and other electronic devices that need to be charged.
  • the charging control system includes a first electronic device 30 and a second electronic device 40, the first electronic device 30 and the second electronic device 40 are electronic devices with USB ports, and when the first electronic device 30 is powered off In this state, the USB port of the first electronic device 30 and the USB port of the second electronic device 40 can be connected through the charging cable 50 . Subsequent descriptions will be made by taking the first electronic device 30 as a notebook computer and the second electronic device 40 as a mobile phone as an example.
  • FIG. 3 is a schematic structural diagram of a first electronic device and a second electronic device provided in an embodiment of the present application.
  • the first electronic device 30 includes a processor 301, a charge management chip (charger IC) 302, a first battery 303, an embedded controller (embed controller, EC) 304, a first switch module 305, a first PD chip 306 , first USB port 307 and voltage conversion module 308 .
  • the second electronic device 40 includes a second PD chip 401 and a second USB port 402 .
  • the first USB port 307 refers to the USB port that the first electronic device 30 has
  • the first PD chip 306 refers to the PD chip in the first electronic device 30
  • the second USB port 402 refers to the USB port that the second electronic device 40 has.
  • the second PD chip 401 refers to the PD chip in the second electronic device 40 .
  • the processor 301, the charging management chip 302 and the first switch module 305 are connected in sequence, and the first switch module 305 is connected in the path between the first battery 303 and the embedded controller 304, and the embedded
  • the controller 304 is also respectively connected to the first battery 303, the charging management chip 302 and the first PD chip 306, the charging management chip 302 is also connected to the first battery 303 and the voltage conversion module 308, and the voltage conversion module 308 is also connected to the first USB Port 307 is connected, and the first PD chip 306 is connected to the first USB port 307 .
  • the second PD chip 401 is connected to the second USB port 402 .
  • a second battery (not shown) is also provided in the second electronic device 40, and the second battery can be directly connected to the second PD chip 401, and the second battery can also be connected to the second PD chip through other electronic devices.
  • 401 is connected, for example, the second battery is connected to the second PD chip 401 through the charge management chip set in the second electronic device.
  • FIG. 3 the arrows carried by the connecting wires connected between two devices in FIG. 3 indicate the transmission direction of signals or data involved in the embodiments of the present application. If the signal transmission lines are not considered, the specific circuit diagram of the first electronic device 30 shown in FIG. 3 is shown in FIG. 4 .
  • the first USB port 307 that the first electronic device 30 has can be a USB Type-C port, and its actual structure is made into a USB Type-C socket;
  • the second USB port 402 that the second electronic device 40 has can also be a USB Type-C port, its actual structure is also made into a USB Type-C socket.
  • the charging cable 50 shown in FIG. 2 is a detachable double-headed USB Type-C charging cable. Both ends of the charging cable 50 are USB Type-C plugs with the same structure.
  • the C plug can be connected to the USB Type-C socket of the first electronic device 30 and the USB Type-C socket of the second electronic device 40, so that the first USB port 307 is connected to the second USB port 402.
  • the first USB port 307 of the first electronic device 30 includes a first pin group 3071 and a second pin group 3072 that are symmetrically distributed.
  • the first pin group 3071 includes GND pins, TX1+ pins, TX1- pins, Vbus pins, CC1 pins, D+ pins, D- pins, SBU1 pins, Vbus pins, RX2- pin, RX2+ pin, and GND pin.
  • the second pin group 3072 includes GND pins, RX1+ pins, RX1- pins, Vbus pins, SBU2 pins, D- pins, D+ pins, CC2 pins, Vbus pins, TX2- pin, TX2+ pin, and GND pin.
  • the GND pin refers to the ground pin
  • the CC pin refers to the configuration channel (CC) pin
  • the SBU pin refers to the side band use (SBU) pin.
  • D+ pin and D- pin When the USB3.0 interface is not available, the D+ pin and D- pin provide the signal channel for the USB2.0 signal; the Vbus pin and the GND pin can provide power for the upstream data interface Capability, or support point-to-point power supply in some cases; TX1/2 pins and RX1/2 pins: provide up to 2 lanes of super-speed data links to achieve bidirectional bandwidth up to 20Gbps; CC1 pins and CC2 pins: use It is used to discover, configure and manage connected external devices.
  • one of the CC1 pin and the CC2 pin is used as a configuration channel, and the other CC pin can be used to connect to Vconn when the electronic device where it is located is a power supply device, and is used to connect to the Emark in the charging line.
  • the pins included in the second USB port 402 of the second electronic device 40 are similar to those shown in FIG. 5 , and will not be repeated here to avoid repetition.
  • FIG. 6 is a flow chart of a charging control method provided in the embodiment of the present application.
  • the charging control method can be applied to the first electronic device 30 as shown in FIG. 3 , and can specifically include the following steps:
  • the processor sends a shutdown command to the charging management chip.
  • the user can press and hold the power switch button set on the first electronic device 30, or click the shutdown control displayed on the display screen of the first electronic device 30 with the mouse to trigger
  • the processor 301 in the first electronic device 30 generates a shutdown command, and the processor 301 sends the shutdown command to the charging management chip 302 .
  • the charging management chip controls the embedded controller to power off.
  • the charging management chip 302 After receiving the shutdown instruction sent by the processor 301, the charging management chip 302 sends a control signal to the first switch module 305, so that the first switch module 305 is turned off, thereby cutting off the communication between the first battery 303 and the embedded controller 304. If there is no power supply path, the first battery 303 will stop supplying power to the embedded controller 304, so that the embedded controller 304 will be powered off.
  • the first switch module 305 can be a switch transistor, the gate of which is connected to the charging management chip 302 , the source is connected to the first battery 303 , and the drain is connected to the embedded controller 304 .
  • the switch transistor is an N-type transistor, and the control signal is a low-level signal.
  • the charging management chip 302 inputs a low-level signal to the gate of the switch transistor, the switch transistor is turned off, and the first battery 303 is cut off. and the power supply path between the embedded controller 304; in another case, the switching transistor is a P-type transistor, and the control signal is a high-level signal.
  • the switching transistor is turned off, and the power supply path between the first battery 303 and the embedded controller 304 is cut off.
  • the second electronic device when the first electronic device is in the power-off state and the second USB port of the second electronic device is connected to the first USB port, the second electronic device provides the first power supply signal to the first USB port through the second USB port .
  • the charging cable 50 can be used to connect the first USB port 307 of the first electronic device 30 to the second The second USB port 402 of the electronic device 40 is connected.
  • a CC connection line is arranged inside the charging line 50. After the charging line 50 is respectively connected to the first USB port 307 and the second USB port 402, the CC1 pin or the CC2 pin in the first USB port 307 can pass through The CC connection line in the charging cable 50 is connected to the CC1 pin or the CC2 pin in the second USB port 402 .
  • the working mode of the first USB port 307 is a dual role port (dual role port, DRP) mode
  • the working mode of the second USB port 402 is also a DRP mode
  • the DRP mode can be used as a downstream port (downstream facing port (DFP) mode, and can also be used as an upstream facing port (UFP) mode. Therefore, after the first USB port 307 is connected to the second USB port 402 through the charging cable 50, it is necessary to determine the working modes of the first USB port 307 and the second USB port 402, so as to determine whether the first electronic device 30 and the second electronic device The master-slave relationship of the device 40. Specifically, the working modes of the first USB port 307 and the second USB port 402 can be determined by the first interface controller in the first electronic device 30 and the second interface controller in the second electronic device 40 .
  • a first interface control circuit is further provided between the first PD chip 306 and the first USB port 307, and the first interface control circuit includes a first interface controller 315, The first switch K1 , the second switch K2 , the first switch transistor M1 , the second switch transistor M2 , the first pull-up resistor Rp1 , the first pull-down resistor Rd1 , the second pull-up resistor Rp2 and the second pull-down resistor Rd2 .
  • the Vbus pin, CC1 pin, CC2 pin and GND pin connected to the first interface controller 315 all refer to the pins included in the first USB port 307.
  • the first PD chip 306 is connected with the first interface controller 315, and the first interface controller 315 is also connected with the gate of the first switching transistor M1 and the gate of the second switching transistor M2, and the source of the first switching transistor M1 Pole (i.e. Vbus sink) and the source (i.e. Vbus Source) of the second switching transistor M2 are connected to the voltage conversion module 308, the drain of the first switching transistor M1 and the drain of the second switching transistor M2 are connected to the first USB port 307 Vbus pin connection in .
  • the control end of the first switch K1 is connected to the first interface controller 315, the first switch K1 can switch the CC1 pin in the first USB port 307 and the first pull-up resistor Rp1 under the control of the first interface controller 315 or switch the CC1 pin in the first USB port 307 to be connected to the first end of the first pull-down resistor Rd1, and the second end of the first pull-up resistor Rp1 to be connected to the first high-level signal end VCC1 is connected, and the second end of the first pull-down resistor Rd1 is connected to the ground end.
  • the control end of the second switch K2 is connected to the first interface controller 315, and the second switch K2 can switch the CC2 pin in the first USB port 307 and the second pull-up resistor Rp2 under the control of the first interface controller 315 or switch the CC2 pin in the first USB port 307 to connect to the first end of the second pull-down resistor Rd2, while the second end of the second pull-up resistor Rp2 is connected to the first high-level signal terminal VCC1
  • the second terminal of the second pull-down resistor Rd2 is also connected to the ground terminal, and the GND pin of the first USB port 307 is also connected to the ground terminal.
  • the first interface controller 315 is also connected between the first switch K1 and the CC1 pin in the first USB port 307, so as to detect the voltage of the CC1 pin in the first USB port 307, the first interface controller 315 It is also connected between the second switch K2 and the CC2 pin of the first USB port 307 to detect the voltage of the CC2 pin of the first USB port 307 .
  • a second interface control circuit is provided between the second PD chip 401 and the second USB port 402, and the second interface control circuit includes a second interface controller 403, a third switch K3 , the fourth switch K4, the third switch transistor M3, the fourth switch transistor M4, the third pull-up resistor Rp3, the third pull-down resistor Rd3, the fourth pull-up resistor Rp4 and the fourth pull-down resistor Rd4.
  • the Vbus pin, CC1 pin, CC2 pin and GND pin connected to the second interface controller 403 all refer to the pins included in the second USB port 402 .
  • the second PD chip 401 is connected with the second interface controller 403, and the second interface controller 403 is also connected with the gate of the third switching transistor M3 and the gate of the fourth switching transistor M4, and the source of the third switching transistor M3 pole (i.e. Vbus sink) and the source electrode (i.e. Vbus Source) of the fourth switching transistor M4 are connected to devices such as the charge management chip in the second electronic device, and the drain electrode of the third switching transistor M3 is connected to the drain electrode of the fourth switching transistor M4 Both poles are connected to the Vbus pin in the second USB port 402 .
  • the control end of the third switch K3 is connected to the second interface controller 403, and the third switch K3 can switch the CC1 pin in the second USB port 402 and the third pull-up resistor Rp3 under the control of the second interface controller 403 or switch the CC1 pin in the second USB port 402 to be connected to the first end of the third pull-down resistor Rd3, and the second end of the third pull-up resistor Rp3 to be connected to the second high-level signal terminal VCC2 connected, the second terminal of the third pull-down resistor Rd3 is connected to the ground terminal; the control terminal of the fourth switch K4 is connected to the second interface controller 403, and the fourth switch K4 can switch the second interface controller 403 under the control of the second interface controller 403.
  • the CC2 pin in the second USB port 402 is connected to the first end of the fourth pull-up resistor Rp4, or the CC2 pin in the second USB port 402 is connected to the first end of the fourth pull-down resistor Rd4, and the fourth upper
  • the second terminal of the pull-down resistor Rp4 is connected to the second high-level signal terminal VCC2, the second terminal of the fourth pull-down resistor Rd4 is also connected to the ground terminal, and the GND pin of the second USB port 402 is also connected to the ground terminal.
  • the second interface controller 403 is also connected between the third switch K3 and the CC1 pin in the second USB port 402, so as to detect the voltage of the CC1 pin in the second USB port 402, the second interface controller 403 It is also connected between the fourth switch K4 and the CC2 pin of the second USB port 402 to detect the voltage of the CC2 pin of the second USB port 402 .
  • the first switch K1 when the first electronic device 30 is in the shutdown state, the first switch K1 connects the CC1 pin in the first USB port 307 to the first end of the first pull-down resistor Rd1 by default, and the second switch K1 K2 connects the CC2 pin of the first USB port 307 to the first end of the second pull-down resistor Rd2 by default, that is, sets the working mode of the first USB port 307 to UFP mode by default.
  • both the first switch transistor M1 and the second switch transistor M2 are in a cut-off state.
  • the second PD chip 401 will send a control command to the second interface controller 403, so that the second interface controller 403 periodically switches the third switch K3, connect the CC1 pin in the second USB port 402 to the first end of the third pull-up resistor Rp3, or connect the CC1 pin in the second USB port 402 to the first end of the third pull-down resistor Rd3 ; Meanwhile, the second interface controller 403 also periodically switches the fourth switch K4 to connect the CC2 pin in the second USB port 402 to the first end of the fourth pull-up resistor Rp4, or connect the second USB port The CC2 pin in 402 is connected to the first end of the fourth pull-down resistor Rd4. That is to say, the second interface controller 403 periodically switches the working mode of the second USB port 402 between the DFP mode and the UFP mode.
  • the third switch K3 When the second interface controller 403 switches the working mode of the second USB port 402 to DFP mode, the third switch K3 will connect the CC1 pin in the second USB port 402 to the third pull-up resistor Rp3, and the fourth switch K4 will connect the CC2 pin in the second USB port 402 with the fourth pull-up resistor Rp4.
  • the second interface controller 403 will detect that the level at the CC1 pin in the second USB port 402 is pulled low, and the first interface controller 315 will detect that the CC1 pin in the first USB port 307 If the level at is pulled high, it is determined that the CC1 pin of the first USB port 307 is connected to the CC1 pin of the second USB port, and it is determined that the working mode of the first USB port 307 is UFP mode.
  • the third switch K3 When the second interface controller 403 switches the working mode of the second USB port 402 to UFP mode, the third switch K3 will connect the CC1 pin in the second USB port 402 to the third pull-down resistor Rd3, and the fourth switch K4 The CC2 pin in the second USB port 402 will be connected to the fourth pull-down resistor Rd4. If the CC connection line in the charging line 50 connects the CC1 pin of the first USB port 307 to the CC1 pin of the second USB port 402, then the second interface controller 403 will detect the CC1 pin of the second USB port 402.
  • the level at the CC1 pin is still low level, and the first interface controller 315 will also detect that the level at the CC1 pin in the first USB port 307 is still low level, and continue to wait for the second interface controller 403 When switching the working mode of the second USB port 402 to the DFP mode, it is determined that the working mode of the first USB port 307 is the UFP mode.
  • the second interface controller 403 when the second interface controller 403 detects that the level at the CC1 pin in the second USB port 402 is pulled low, it can determine the operation of the first USB port 307 connected to the second USB port 402 mode is UFP mode, then the second interface controller 403 will continue to control the third switch K3, and connect the CC1 pin in the second USB port 402 with the third pull-up resistor Rp3, that is, the work of the second USB port 402 The mode remains the DFP mode, and the working mode of the second USB port 402 is no longer periodically switched between the DFP mode and the UFP mode.
  • the first interface controller 315 When the first interface controller 315 detects that the level at the CC1 pin in the first USB port 307 is pulled high, it determines that the CC1 pin in the first USB port 307 is connected to the CC pin of the second electronic device 40 ( CC1 or CC2), and it is determined that the working mode of the first USB port 307 is UFP mode, the first interface controller 315 sends the mode information that the first USB port 307 is in UFP mode to the first PD chip 306, then the second A PD chip 306 sends a control instruction to the first interface controller 315, so that the first interface controller 315 controls the first switch transistor M1 to be turned on; correspondingly, when the second interface controller 403 detects that the second USB port 402 After the level at the CC1 pin is pulled low, the second PD chip 401 controls the second interface controller 403 to set the working mode of the second USB port 402 to the DFP mode, and the second PD chip 401 sends the second interface control The controller 403 sends a
  • the fourth switch transistor M4 when the fourth switch transistor M4 is turned on, the first power supply signal provided by the second electronic device 40 is transmitted to the Vbus pin of the first USB port 307 through the fourth switch transistor M4 and the Vbus pin of the second USB port 402 in sequence. Pin, that is to realize that the second electronic device 40 provides the first power supply signal to the first USB port 307 through the second USB port 402 .
  • the first switch transistor M1 can be called a Sink (receiver) transistor, which is turned off when the first USB port 307 is in the DFP mode, and turned on when the first USB port 307 is in the UFP mode;
  • the second switch The transistor M2 is called a Source (power supply) transistor, which is turned on when the first USB port 307 is in DFP mode, and turned off when the second USB port 307 is in UFP mode.
  • the third switch transistor M3 may also be called a Sink transistor, which is turned off when the second USB port 402 is in DFP mode, and turned on when the second USB port 402 is in UFP mode;
  • the fourth switch transistor M4 may also be called a Source transistor, It is turned on when the second USB port 402 is in DFP mode, and is turned off when the second USB port 402 is in UFP mode.
  • first USB port 307 and the second USB port 402 are connected through the charging cable 50, so that the Vbus pin in the first USB port 307 is connected to the Vbus pin in the second USB port 402, and the Vbus pin in the first USB port 307
  • the GND pin of the second USB port 402 is also connected to the GND pin.
  • the first switch transistor M1 can be an N-type transistor, which is turned on when a high-level signal is input to the gate, and is turned off when a low-level signal is input to the gate; or, the first switch transistor M1 can also be a P-type transistor, which is turned on when the gate is input with a low-level signal It is turned on when a low-level signal is input to the pole, and is turned off when a high-level signal is input to the gate.
  • the second switch transistor M2 can be an N-type transistor or a P-type transistor
  • the third switch transistor M3 can also be an N-type transistor or a P-type transistor
  • the fourth switch transistor M4 can also be an N-type transistor or a P-type transistor.
  • the CC connection line in the charging line 50 can also connect the CC1 pin of the first USB port 307 with the CC2 pin of the second USB port 402, or connect the CC2 pin of the first USB port 307 to Pin is connected to the CC1 pin in the second USB port 402, or the CC2 pin of the first USB port 307 is connected to the CC2 pin in the second USB port 402.
  • the detection process is similar to the above process, and will not be repeated here to avoid repetition.
  • the first USB port transmits the first power supply signal to the voltage conversion module, and the voltage conversion module performs voltage conversion on the first power supply signal, and sends the second power supply signal obtained after the voltage conversion to the charging management chip to wake up the charging management chip .
  • the first switch transistor M1 When the first switch transistor M1 is turned on, the first power supply signal transmitted to the Vbus pin of the first USB port 307 is transmitted to the voltage conversion module 308 through the first switch transistor M1, so that the first USB port 307 can supply the first power supply The signal is transmitted to the voltage conversion module 308 .
  • the voltage conversion module 308 After the first USB port 307 sends the first power supply signal to the voltage conversion module 308, the voltage conversion module 308 performs voltage conversion on the first power supply signal to generate a second power supply signal, and then the voltage conversion module 308 transmits the second power supply signal To the charging management chip 302 , power on the charging management chip 302 to wake up the charging management chip 302 .
  • the charging management chip 302 actually has a voltage threshold value. When the voltage value of the electrical signal input to the charging management chip 302 reaches the voltage threshold value, the charging management chip 302 can be woken up.
  • a voltage conversion module 308 is provided between the port 307 and the charging management chip 302, and the voltage conversion module 308 performs voltage conversion on the first power supply signal, so that the voltage value of the converted second power supply signal can reach the voltage threshold.
  • the voltage conversion module 308 is a boost circuit, of course, in some embodiments, the voltage conversion module 308 can also be a buck circuit.
  • the first power supply signal provided by the second electronic device 40 is actually an electrical signal with a voltage value of 5V.
  • the voltage conversion module 308 boosts the first power supply signal of 5V. to 9V, and transmit the boosted 9V second power supply signal to the charging management chip 302 to wake up the charging management chip 302 .
  • the voltage threshold value of the charging management chip 302 can also be equal to the voltage value of the first power supply signal, therefore, there is no need to set a voltage conversion module 308 between the first USB port 307 and the charging management chip 302, the second A PD chip 306 directly transmits the first power supply signal to the charging management chip 302 to wake up the charging management chip 302 .
  • the charging management chip generates a wake-up signal according to the second power supply signal.
  • the charging management chip 302 since the operating voltage of the embedded controller 304 may be lower than the voltage of the second power supply signal, after the charging management chip 302 is woken up, the charging management chip 302 first determines whether the first electronic device 30 is in the shutdown state, When it is determined that the first electronic device 30 is in the shutdown state, the charging management chip 302 performs step-down processing on the second power supply signal through an internally provided step-down circuit to generate a wake-up signal.
  • the second power supply signal is generated after stepping down the voltage of the power supply signal
  • the second power supply signal is generated after voltage conversion of the first power supply signal
  • the wake-up signal is used to wake up the embedded controller 304 .
  • the charging management chip 302 is also directly connected to the first USB port 307, and the first USB port 307 directly transmits the first power supply signal to the charging management chip 302; therefore, the charging management chip 302 is powered by the first power supply.
  • the charging management chip 302 After the signal wakes up, when the charging management chip 302 determines that the first electronic device 30 is in the shutdown state, the charging management chip 302 performs step-down processing on the first power supply signal through an internal step-down circuit to generate a wake-up signal.
  • the charging management chip 302 will not perform step-down processing on the second power supply signal or the first power supply signal, and generate a wake-up signal.
  • the voltage of the second power supply signal is 9V
  • the operating voltage of the embedded controller is 3V
  • the charging management chip 302 needs to step down the second power supply signal with a voltage of 9V to generate a wake-up signal with a voltage of 3V .
  • the operating voltage of the embedded controller 304 may also be greater than the voltage of the second power supply signal. Therefore, after the charging management chip 302 is woken up, the charging management chip 302 will supply power to the second The signal is boosted to generate a wake-up signal, that is, the wake-up signal is generated after the charging management chip 302 boosts the second power supply signal, and the wake-up signal is used to wake up the embedded controller 304 .
  • the operating voltage of the embedded controller 304 may also be equal to the voltage of the second power supply signal. Therefore, there is no need for the charging management chip 302 to step down the second power supply signal. After the charging management chip 302 is awakened, it can The second power supply signal is directly used as a wake-up signal.
  • the charging management chip sends a wake-up signal to the embedded controller to wake up the embedded controller.
  • the charging management chip 302 After the charging management chip 302 generates the wake-up signal, the charging management chip 302 sends the wake-up signal to the embedded controller 304 , and powers on the embedded controller 304 based on the wake-up signal to wake up the embedded controller 304 .
  • the embedded controller 304 After the embedded controller 304 receives the wake-up signal sent by the charging management chip 302, it needs to perform power-on initialization, which includes initializing the bus connecting the embedded controller 304 to other devices, for example, for the embedded controller 304
  • the connection bus smbus with the first PD chip 306 is initialized.
  • the embedded controller When the embedded controller is woken up, the embedded controller sends a device information query signaling to the first PD chip.
  • the embedded controller 304 When the embedded controller 304 is woken up, the embedded controller 304 runs its corresponding control code logic, and sends a device information query signaling to the first PD chip 306, and the device information query signaling is used to query the second electronic device 40 device information, such as the power supply voltage and power supply current of the second electronic device 40 .
  • the first PD chip sends the device information query signaling to the second PD chip.
  • the first USB port 307 Since the first USB port 307 is connected to the second USB port 402 through the charging cable 50, based on the connection between the CC pin in the first USB port 307 and the CC pin in the second USB port 402, the first PD The chip 306 communicates with the second PD chip 401 .
  • the CC1 pin in the first USB port 307 is connected to the CC1 pin in the second USB port 402 , so that the first PD chip 306 communicates with the second PD chip 401 .
  • the first PD chip 306 After the first PD chip 306 receives the device information query signaling sent by the embedded controller 304, the first PD chip 306 sends the device information query signaling through the CC1 pin of the first USB port 307 and the second USB The CC1 pin in the port 402 is sent to the second PD chip 401 .
  • the first PD chip receives the device information returned by the second PD chip, where the device information includes a supply voltage and a supply current.
  • the second PD chip 401 After receiving the device information query signaling sent by the first PD chip, the second PD chip 401 obtains the device information of the second electronic device 40 according to the device information query signaling, and the device information may include the power supply of the second electronic device 40 voltage and supply current.
  • the second PD chip 401 sends the obtained device information of the second electronic device 40 to the first PD chip 306 through the CC1 pin of the second USB port 402 and the CC1 pin of the first USB port 307 in sequence, This enables the first PD chip 306 to receive the device information returned by the second PD chip 401 .
  • the first PD chip sends device information to the embedded controller.
  • the specific process for the first PD chip 306 to obtain the device information of the second electronic device 40 from the second PD chip 401 is shown in Figure 8 and Figure 9, that is, in S608, the first PD chip 306 sends the second
  • the PD chip 401 sends device information query signaling, and its corresponding message type is Control: Get Sink_Cap, and its function is that the first PD chip 306 requests to obtain the power supply capability supported by the second electronic device 40; the second PD chip 401 receives the device After the information query signaling, a response signaling will be returned to the first PD chip 306, the corresponding message type is Control: GoodCRC, and its function is to indicate that the second PD chip 401 has received the device information query sent by the first PD chip 306
  • the data packet corresponding to the signaling, and the data packet verification is intact; after that, the second PD chip 401 will return to the first PD chip 306 the device information queried according to the device information query signaling, and the corresponding message type is Data: Sink Capability
  • the embedded controller calculates the product of the supply voltage and the supply current to obtain the supply power of the second electronic device.
  • the first PD chip 306 After the first PD chip 306 receives the device information returned by the second PD chip 401, the first PD chip 306 sends the device information to the embedded controller 304.
  • the device information includes the power supply voltage and power supply voltage of the second electronic device 40. current; then, the embedded controller 304 calculates the product of the supply voltage and the supply current to obtain the supply power of the second electronic device 40 .
  • the power supply voltage of the second electronic device 40 is 5V
  • the power supply current of the second electronic device 40 is 3A
  • the embedded controller 304 calculates the product of the power supply voltage and the power supply current, and the power supply power of the second electronic device is 15W.
  • the embedded controller determines the device type of the second electronic device according to the power supply.
  • the embedded controller 304 compares the calculated power supply with the preset power to determine the device type of the second electronic device 40 .
  • the embedded controller 304 determines that the device type of the second electronic device 40 is a device to be charged; when the power supply is greater than the preset power, the embedded controller 304 determines that the second The device type of the electronic device 40 is a power supply device.
  • the preset power can be 15W. Assuming that the calculated power supply of the second electronic device 40 is 15W, it can be determined that the device type of the second electronic device 40 is a device to be charged. For example, the second electronic device 40 is a mobile phone, Wearable devices and tablet computers are waiting for charging devices; assuming that the calculated power supply of the second electronic device 40 is 20W, it can be determined that the device type of the second electronic device 40 is a power supply device, such as the second electronic device 40 is a charging treasure, Power supply equipment such as adapters.
  • the preset power is not limited to 15W, it can be set according to the specific power supply of the device to be charged, for example, the preset power can also be 10W and so on.
  • the device type of the second electronic device 40 is not limited to only using the power supply, and the device type of the second electronic device 40 can also be judged by using the power supply current or voltage.
  • the power supply voltage can be used to determine the device type of the second electronic device 40.
  • the first PD chip 306 receives the device information returned by the second PD chip 401 including the power supply voltage, and the first PD chip 306 in S610
  • the device information sent by the chip 306 to the embedded controller 304 also includes the power supply voltage, and the embedded controller 304 directly compares the power supply voltage with a preset voltage to determine the device type of the second electronic device 40 .
  • the embedded controller 304 determines that the device type of the second electronic device 40 is a device to be charged; when the power supply voltage is greater than the preset voltage, the embedded controller 304 determines that the second The device type of the electronic device 40 is a power supply device.
  • the preset voltage is 5V, assuming that the power supply voltage obtained from the second PD chip 401 is 3V, it can be determined that the device type of the second electronic device 40 is the device to be charged, assuming that the power supply voltage obtained from the second PD chip 401 is 3V. If the power supply voltage is 9V, it can be determined that the device type of the second electronic device 40 is a power supply device.
  • the power supply current can be used to determine the device type of the second electronic device 40.
  • the first PD chip 306 receives the device information returned by the second PD chip 401 including the power supply current, and the first PD chip 306 in S610
  • the device information sent by the PD chip 306 to the embedded controller 304 also includes the power supply current, and the embedded controller 304 directly compares the power supply current with the preset current to determine the device type of the second electronic device 40 .
  • the embedded controller 304 determines that the device type of the second electronic device 40 is a device to be charged; when the supply current is greater than the preset current, the embedded controller 304 determines that the second The device type of the electronic device 40 is a power supply device.
  • the preset voltage is 2A, assuming that the power supply current obtained from the second PD chip 401 is 1A, it can be determined that the device type of the second electronic device 40 is the device to be charged, assuming that the current obtained from the second PD chip 401 is 1A.
  • the power supply current is 3A, and it can be determined that the device type of the second electronic device 40 is a power supply device.
  • the embedded controller acquires a first power value of the first battery.
  • the embedded controller 304 determines that the device type of the second electronic device 40 is a device to be charged, the embedded controller 304 directly acquires the remaining first power value from the first battery 303 .
  • the order of the process of determining the power supply of the second electronic device 40 and the process of obtaining the first power value of the first battery 303 can be interchanged.
  • S607 to S612 can be executed first, and S613 can only be executed when it is determined that the device type of the second electronic device is a device to be charged; or, S613 can also be executed directly after S607 is executed, and then the embedded controller executes S611 and S612.
  • the embedded controller sends a power supply role switching signaling to the first PD chip.
  • the embedded controller 304 After the embedded controller 304 acquires the first power value of the first battery 303, it compares the first power value with the preset power value, and when it is determined that the first power value is greater than the preset power value, the embedded controller 304 A power supply role switching signaling is sent to the first PD chip 306 , where the power supply role switching signaling is used to switch the power supply roles of the first electronic device 30 and the second electronic device 40 .
  • the preset power value is 10%, and if the first power value of the first battery 303 is obtained as 30%, the embedded controller 304 may send a power supply role switching signaling to the first PD chip 306 .
  • the preset power value is not limited to 10%, and it can also be set to other values, for example, the preset power value can be set to 1%, 15%, 20% and so on.
  • the first PD chip sends a power supply role switching request to the second PD chip.
  • the first PD chip 306 After the first PD chip 306 receives the power supply role switching signaling sent by the embedded controller 304, the first PD chip 306 generates a power supply role switching request based on the power supply role switching signaling, and then the first PD chip 306 sends the power supply role switching request.
  • the role switching request is sent to the second PD chip 401 through the CC1 pin of the first USB port 307 and the CC1 pin of the second USB port 402 in sequence.
  • the first PD chip receives response information returned by the second PD chip according to the power supply role switching request, where the response information indicates that the second electronic device agrees to switch the power supply role.
  • the second PD chip 401 generates response information according to the power supply role switching request sent by the first PD chip 306, and sends the response information through the CC1 pin of the second USB port 402 and the CC1 pin of the first USB port 307 in sequence. to the first PD chip 306 so that the first PD chip 306 can receive the response information returned by the second PD chip 401 .
  • the first PD chip 306 can directly control the disconnection of the power supply path between the first USB port 307 and the second USB port 402, for example, the first PD chip 306 can send a control command to the first interface controller 315, so that the second An interface controller 315 controls the first switching transistor M1 to be turned off, so that the power supply signal provided by the second PD chip 401 is no longer input to the first PD chip 306 , so as to save the power of the battery in the second electronic device 40 .
  • the signaling interaction process of power supply role switching between the first PD chip 306 and the second PD chip 401 is shown in Figure 8 and Figure 10, that is, in S615, the first PD chip 306 sends the power supply role Switching request, its corresponding message type is Control:PR_Swap, its function is that the first PD chip 306 requests to exchange the power supply role; after the second PD chip 401 receives the power supply role switching request, it will return a response to the first PD chip 306 Signaling, its corresponding message type is Control: GoodCRC, its role is to indicate that the second PD chip 401 has received the data packet corresponding to the power supply role switching request sent by the first PD chip 306, and the data packet is verified intact; , if the second PD chip 401 agrees to switch the power supply role, the second PD chip 401 will send a message to the first PD chip 306 agreeing to switch the power supply role, and the corresponding message type is Control:Accept, indicating that the second PD chip 401
  • the first PD chip 306 will also send a message that the power supply is ready to the second PD chip 401, and the corresponding message type is Control:PS_Ready, indicating that the first electronic device 30 can supply power to the second electronic device 40; After the PD chip 401 receives the message that the power supply is ready sent by the first PD chip 306, it will return a response signaling to the first PD chip 306.
  • the corresponding message type is Control: GoodCRC, and its function is to indicate that the second PD
  • the chip 401 has received the message that the power supply is ready sent by the first PD chip 306; after that, the second PD chip 401 will send a message that the power supply is ready to the first PD chip 306, and the corresponding message type is Control: PS_Ready , indicating that the second electronic device 40 can receive the power supply signal sent by the first electronic device 30; the first PD chip 306 will return to the second PD chip 401 after receiving the message that the power supply is ready sent by the second PD chip 401
  • the corresponding message type is Control:GoodCRC, which is used to indicate that the first PD chip 306 has received the message that the power supply is ready sent by the second PD chip 401 .
  • the second PD chip switches the power supply role of the second electronic device to the power receiving device.
  • the second PD chip 401 After the second PD chip 401 sends a response message agreeing to switch the power supply role to the first PD chip 306, or after the second PD chip 401 sends a message that the power supply is ready to the first PD chip 306, the second PD chip 401 will The power supply role of the second electronic device 40 is switched from the power supply device to the power receiving device.
  • the second PD chip 401 can send a control signal to the second interface controller 403, so that the second interface controller 403 controls the third switch K3 to connect the CC1 pin in the second USB port 402 to the The third pull-down resistor Rd3 is connected, and the fourth switch K4 is controlled to connect the CC2 pin in the second USB port 402 to the fourth pull-down resistor Rd4; and the second interface controller 403 controls the third switch transistor M3 to be turned on, And controlling the fourth switching transistor M4 to be cut off. Based on the above control method, switching the working mode of the second USB port 402 from the DFP mode to the UFP mode switches the power supply role of the second electronic device 40 from the power supply device to the power receiving device.
  • the first PD chip switches the power supply role of the first electronic device to a power supply device, so that the charging path formed by the first battery, the charging management chip and the first USB port is turned on.
  • the first PD chip 306 After the first PD chip 306 receives the response information returned by the second PD chip 401 agreeing to switch the power supply role, or after the first PD chip 306 receives the message that the power supply is ready sent by the second PD chip 401, the first PD chip 306 The PD chip 306 switches the power supply role of the first electronic device 30 from the power receiving device to the power supply device.
  • the first PD chip 306 can send a control signal to the first interface controller 315, so that the first interface controller 315 controls the first switch K1 to connect the CC1 pin in the first USB port 307 to the The first pull-up resistor Rp1 is connected, and controls the second switch K2 to connect the CC2 pin in the first USB port 307 to the second pull-up resistor Rp2; and makes the first interface controller 315 control the second switch transistor M2 to conduct is turned on, and the first switching transistor M1 is controlled to be turned off. Based on the above control method, switching the working mode of the first USB port 307 from the UFP mode to the DFP mode switches the power supply role of the first electronic device 30 from the power receiving device to the power supply device.
  • the charging path between the voltage conversion module 308 shown in FIG. , the charge management chip 302, the voltage conversion module 308 and the charging path formed by the first USB port 307 are turned on, and the power supply signal provided by the first battery 303 can pass through the charge management chip 302, the voltage conversion module 308 and the first USB port in turn.
  • the port 307 is input to the second USB port 402 of the second electronic device 40 .
  • the path between the electronic device 40) is also in a conducting state, and the charging management chip in the second electronic device 40 is also connected to the second battery in the second electronic device 40, so that the first electronic device 30 is input
  • the power supply signal to the second USB port 402 of the second electronic device 40 can be input to the second battery through the third switching transistor M3 and the charge management chip in the second electronic device 40 in sequence, so that the power supply in the first electronic device 30
  • the first battery 303 charges the second battery in the second electronic device 40 .
  • the charging control method shown in FIG. 6 can be directly based on hardware circuit control, and while switching the power supply role of the first electronic device 30 to a power supply device, the first battery 303, the charging management chip 302, the voltage conversion module 308 and The charging path formed by the first USB port 307 is turned on, so that the first battery 303 in the first electronic device 30 charges the second battery in the second electronic device 40, and its response time is relatively short, which can quickly switch to The first electronic device 30 performs reverse charging for the second electronic device 40 .
  • the voltage of the power supply signal provided by the first battery 303 in the first electronic device 30 is relatively large, after the power supply signal provided by the first battery 303 passes through the charging management chip 302, it is converted to the power supply signal by the voltage conversion module 308 The power supply signal is stepped down, and the stepped down power supply signal is input to the second USB port 402 of the second electronic device 40 through the first USB port 307 .
  • the voltage of the power supply signal provided by the first battery 303 is 13V
  • the voltage conversion module 308 performs step-down processing on the power supply signal with a voltage of 13V, and the voltage of the reduced power supply signal output by it is 5V.
  • the embedded controller 304 when the first electronic device 30 is in the shutdown state, the embedded controller 304 is completely powered off, so as to reduce the power consumption of the first battery 303 and improve the battery life of the first electronic device 30; And, when the first USB port 307 of the first electronic device 30 is connected with the second USB port 402 of the second electronic device 40, the second electronic device 40 is used to temporarily supply power to the first electronic device 30 to wake up the embedded controller 304.
  • the embedded controller 304 When the embedded controller 304 detects that the device type of the second electronic device 40 is a device to be charged, and the first power value of the first battery 303 is greater than the preset power value, the embedded controller 304 sends the first PD chip 306 sends a power supply role switching signaling to control the first PD chip 306 and the second PD chip 401 to switch the power supply role, so that the embedded controller 304 controls the first battery 303 in the first electronic device 30, and the mobile phone, the The second electronic device 40 such as a wearable device or a tablet computer performs reverse charging.
  • FIG. 12 is a flow chart of another charging control method provided by an embodiment of the present application.
  • the charging control method can be applied to the first electronic device 30, which specifically includes the following steps:
  • the processor sends a shutdown command to the charging management chip.
  • the charging management chip controls the embedded controller to power off.
  • the second electronic device when the first electronic device is in the power-off state and the second USB port of the second electronic device is connected to the first USB port, the second electronic device provides the first power supply signal to the first USB port through the second USB port .
  • the first USB port transmits the first power supply signal to the voltage conversion module, and the voltage conversion module performs voltage conversion on the first power supply signal, and sends the second power supply signal obtained after the voltage conversion to the charging management chip to wake up the charging management chip. .
  • the charging management chip generates a wake-up signal according to the second power supply signal.
  • the charging management chip sends a wake-up signal to the embedded controller to wake up the embedded controller.
  • the embedded controller When the embedded controller is woken up, the embedded controller sends a device information query signaling to the first PD chip.
  • the first PD chip sends the device information query signaling to the second PD chip.
  • the first PD chip receives the device information returned by the second PD chip, where the device information includes a supply voltage and a supply current.
  • the first PD chip sends device information to the embedded controller.
  • the embedded controller calculates the product of the supply voltage and the supply current to obtain the supply power of the second electronic device.
  • the embedded controller determines the device type of the second electronic device according to the power supply.
  • the embedded controller acquires a first power value of the first battery.
  • the specific execution process of S1201 to S1213 shown in FIG. 12 is similar to the specific execution process of S601 to S613 shown in FIG. 6 above, and will not be repeated here to avoid repetition.
  • the embedded controller sends a power value acquisition request to the second PD chip through the first PD chip; the power value acquisition request is used to acquire a second power value of the second battery in the second electronic device.
  • the embedded controller 304 sends a power value acquisition request to the first PD chip 306, and the first PD chip 306 passes the power value acquisition request through the CC1 pin of the first USB port 307 and the second USB port in turn.
  • the CC1 pin in 402 is sent to the second PD chip 401 .
  • the second PD chip returns the second power value of the second battery acquired according to the power value acquisition request to the embedded controller through the first PD chip.
  • the second PD chip 401 After the second PD chip 401 receives the power value acquisition request sent by the first PD chip 306, the second PD chip 401 acquires the second power value of the second battery in the second electronic device 40 according to the power value acquisition request; Then, the second PD chip 401 sends the second power value of the second battery to the first PD chip 306 through the CC1 pin of the second USB port 402 and the CC1 pin of the first USB port 307 in sequence, and the first PD The chip 306 then sends the second power value to the embedded controller 304 .
  • the embedded controller sends a power supply role switching signaling to the first PD chip.
  • the embedded controller 304 After the embedded controller 304 acquires the first power value of the first battery 303 and the second power value of the second battery, it compares the first power value with the second power value, and when it is determined that the first power value is greater than the second The embedded controller 304 sends a power supply role switching signaling to the first PD chip 306 , and the power supply role switching signaling is used to switch the power supply roles of the first electronic device 30 and the second electronic device 40 .
  • the embedded controller 304 may send a power supply role switching signaling to the first PD chip 306 .
  • the first PD chip sends a power supply role switching request to the second PD chip.
  • the first PD chip receives response information returned by the second PD chip according to the power supply role switching request, where the response information indicates that the second electronic device agrees to switch the power supply role.
  • the second PD chip switches the power supply role of the second electronic device to the power receiving device.
  • the specific execution process of S1217 to S1219 shown in FIG. 12 is similar to the specific execution process of S615 to S617 shown in FIG. 6 above, and will not be repeated here to avoid repetition.
  • the first PD chip switches the power supply role of the first electronic device to a power supply device.
  • the first PD chip 306 After the first PD chip 306 receives the response information returned by the second PD chip 401 agreeing to switch the power supply role, or after the first PD chip 306 receives the message that the power supply is ready sent by the second PD chip 401, the first PD chip 306 The PD chip 306 switches the power supply role of the first electronic device 30 from the power receiving device to the power supply device.
  • the first PD chip sends a power supply role switching message to the embedded controller, where the power supply role switching message indicates that the power supply role of the first electronic device has been switched to be a power supply device.
  • the first PD chip 306 After the first PD chip 306 switches the power supply role of the first electronic device 30 from the power receiving device to the power supply device, it generates a power supply role switching message, which indicates that the power supply role of the first electronic device 30 has been switched to power supply. Then, the first PD chip 306 sends the power supply role switching message to the embedded controller 304 to notify the embedded controller 304 that the power supply role of the first electronic device 30 has been switched to a power supply device.
  • the embedded controller controls the conduction of the charging path formed by the first battery, the charging management chip and the first USB port.
  • a second switch module 309 is connected in series between the first battery 303 and the charge management chip 302.
  • the second switch module 309 When the second switch module 309 is closed, the first battery 303, the charge management chip 302 and the first USB port The charging path between 307 is disconnected; when the second switch module 309 is turned on, the charging path between the first battery 303 , the charging management chip 302 and the first USB port 307 is turned on.
  • the second switch module 309 may be a switch transistor, the gate of which is connected to the embedded controller 304 , the source is connected to the first battery 303 , and the drain is connected to the charging management chip 302 .
  • the switching transistor may be an N-type transistor or a P-type transistor.
  • the structure of the first electronic device 30 shown in FIG. 13 is similar to that of the first electronic device 30 shown in FIG. 3 , except that in the first electronic device 30 shown in FIG. The management chip 302 is connected, and in the first electronic device 30 shown in FIG. 13 , the first battery 303 is connected to the charging management chip 302 through the second switch module 309 .
  • the position of the second switch module 309 in the embodiment of the present application is not limited to between the first battery 303 and the charge management chip 302, as long as the second switch module 309 is set between the first battery 303 and the charge management chip 302
  • the second switch module 309 is connected in series between the charging management chip 302 and the first USB port 307 .
  • the embedded controller 304 determines that the power supply role of the first electronic device 30 has been switched to be a power supply device, the embedded controller 304 controls the second switch module 309 to conduct, so that the first battery 303, the charge management chip 302 and the The charging path between the first USB ports 307 is conducted.
  • the power supply signal provided by the first battery 303 can be input to the second USB port 402 of the second electronic device 40 through the second switch module 309 , the charging management chip 302 and the first USB port 307 in sequence.
  • the path between the electronic device 40) and the second battery is also in a conducting state, so that the power supply signal input from the first electronic device 30 to the second USB port 402 of the second electronic device 40 can pass through the third USB port 402 in turn.
  • the switching transistor M3 and the charge management chip in the second electronic device 40 are input to the second battery, so that the first battery 303 in the first electronic device 30 charges the second battery in the second electronic device 40 .
  • the embedded controller 304 when the first electronic device 30 is in the shutdown state, the embedded controller 304 is completely powered off, so as to reduce the power consumption of the first battery 303 and improve the battery life of the first electronic device 30; And, when the first USB port 307 of the first electronic device 30 is connected with the second USB port 402 of the second electronic device 40, the second electronic device 40 is used to temporarily supply power to the first electronic device 30 to wake up the embedded controller 304.
  • the embedded controller 304 When the embedded controller 304 detects that the device type of the second electronic device 40 is a device to be charged, and the first power value of the first battery 303 is greater than the second power value of the second battery in the second electronic device 40 , the embedded controller 304 sends a power supply role switching signaling to the first PD chip 306, and controls the first PD chip 306 and the second PD chip 401 to switch the power supply roles, and the embedded controller 304 receives the first PD chip 306 After switching the power supply role of the first electronic device 30 to the power supply role switching message of the power supply device, the embedded controller controls the charging path formed by the first battery 303, the charging management chip 302 and the first USB port 307 to be turned on , so that the first battery 303 in the first electronic device 30 reversely charges the second electronic device 40 such as a mobile phone, a wearable device, and a tablet computer.
  • the embedded controller 304 controls the charging path formed by the first battery 303, the charging management chip 302 and the first USB port 307
  • the embedded controller 304 may also send a control command to the charging management chip 302, so that the charging management chip 302 can transmit the power supply signal provided by the first battery to the voltage conversion module 308, and then transmit it to the first The USB port 307 , so that the charging path formed by the first battery 303 , the charging management chip 302 and the first USB port 307 is turned on.
  • the embedded controller 304 can be directly controlled to charge the second electronic device 40 .
  • the embedded controller 304 controls the first battery 303 to charge the second electronic device 40, it can also refer to the power supply voltage and power supply current of the second electronic device 40 to select different charging modes to charge the second electronic device 40 .
  • the supply voltage is 5V and the supply current is 3A
  • the charging mode of 5V3A can be selected to charge the second electronic device 40
  • the charging mode of 5V2A can also be selected to charge the second electronic device 40 .
  • the embedded controller 304 can also be awakened directly by the first power supply signal sent by the first USB port 307 instead of by the second power supply signal sent by the charging management chip 302, as shown in FIG. 14 , the first USB port 307 is directly connected to the embedded controller 304 , and the charging management chip 302 is directly connected to the first USB port 307 . Therefore, after receiving the first power supply signal sent by the second electronic device 40 , the first USB port 307 directly sends the first power supply signal as a wake-up signal to the embedded controller 304 to wake up the embedded controller 304 .
  • the power supply signal provided by the first battery 303 is directly transmitted to the first USB port 307 via the charging management chip 302 .
  • the first USB port 307 provides a first power supply signal (at this time, the first electronic device 30 is a power receiving device, and the second electronic device 40 is a power supply device; after the first electronic device 30 generates a wake-up signal according to the first power supply signal, wake up
  • the embedded controller 304 after the embedded controller 304 is woken up, the first electronic device 30 executes S1502 to obtain the device information of the second electronic device 40; the embedded controller 304 in the first electronic device 30 determines according to the device information Whether it meets the conditions, that is, judge whether the second electronic device 40 is a device to be charged according to the device information.
  • the embedded controller 304 executes S1503 to send power to the first PD chip 306 Role switching signaling, the power supply role is switched by the first PD chip 306; if the power supply role of the first electronic device 30 is switched to the power supply device, and the power supply role of the second electronic device 40 is switched to the power receiving device, the embedded control The controller 304 executes S1504 to control the first battery 303 to charge the second battery in the second electronic device 40 .
  • the embedded controller 304 regularly obtains the third power value of the first battery 303; when the third power value does not meet the Under preset conditions, the embedded controller 304 controls the first battery 303 to stop charging the second electronic device 40 .
  • the embedded controller 304 acquires the third power value of the first battery 303 every preset time interval, for example, the preset time length may be 3 minutes, 5 minutes, Minutes, etc., when it is determined that the third power value is less than or equal to the preset power value, or the third power value is less than the current fourth power value of the second battery (that is, the power value of the second battery at the moment when the third power value is obtained)
  • the embedded controller 304 can control the disconnection of the power supply path between the first USB port 307 and the second USB port 402 , so that the first battery 303 stops charging the second electronic device 40 .
  • the embedded controller 304 sends a control instruction to the first PD chip 306, so that the first PD chip 306 can control the first interface controller 315 to set the second switching transistor M2 to the off state (the first switching transistor M1 is also in the cut-off state), the power supply signal provided by the first battery 303 will not be input to the second electronic device 40, so as to prevent the first battery 303 from being overly consumed and affecting the normal use of the first electronic device 30.
  • the following situations may also exist: in the first case, the first electronic device 30 can also charge the second electronic device 40 in the power-on state; in the second case, the first electronic device 30 In the shutdown state, when the device type of the second electronic device 40 connected to the first electronic device 30 is a power supply device, the second electronic device 40 as the power supply device charges the first electronic device 30; in the third case, the first The electronic device 30 is turned off, and the device type of the second electronic device 40 is a device to be charged, but the power value of the first battery 303 in the first electronic device 30 does not meet the preset condition. At this time, it is necessary to disconnect the first USB A power supply path between the port 307 and the second USB port 402 .
  • FIG. 16 is a schematic diagram of the charging process of the first electronic device in different scenarios provided by the embodiment of the present application. Referring to Figure 16, it may specifically include the following steps:
  • the user connects the first USB port of the first electronic device to the second USB port of the second electronic device.
  • the first electronic device acts as a power supply device to charge the second electronic device.
  • the first electronic device 30 When it is detected that the first electronic device 30 is connected to the adapter, the first electronic device 30 is still used as a power supply device to charge the second electronic device 40 .
  • the first electronic device 30 when the first electronic device 30 is triggered to perform a shutdown operation, there is a certain interval between the first electronic device 30 starting to execute the shutdown operation and the completion of controlling the embedded controller 304 to power off, for example, the interval is 10s, so , after the first electronic device 30 executes the shutdown operation, it is detected whether the embedded controller 304 is powered off.
  • the embedded controller 304 When the embedded controller 304 is not powered off, that is, the moment when the first USB port 307 is connected to the second USB port 402, the first electronic device 30 starts to perform a shutdown operation, and the embedded controller 304 is powered off. During the interval, at this time, the first electronic device 30 is still serving as a power supply device to charge the second electronic device 40 .
  • the second electronic device When the embedded controller is powered off, the second electronic device temporarily supplies power to the first electronic device, so as to wake up the embedded controller.
  • the specific execution process of this step can refer to the above-mentioned execution process of S603 to S606, and in order to avoid repetition, details are not repeated here.
  • the embedded controller When the embedded controller is woken up, the embedded controller acquires the power supply of the second electronic device, and determines whether the power supply is less than or equal to a preset power.
  • the specific execution process of this step can refer to the above-mentioned execution process of S607 to S612, and to avoid repetition, details are not repeated here.
  • the embedded controller determines whether the first electric quantity of the first battery satisfies the preset condition.
  • the preset condition is that the first power value is greater than the preset power value, or the preset condition is that the first power value is greater than the second power value of the second battery in the second electronic device.
  • the embedded controller when the first power value of the first battery satisfies the preset condition, the embedded controller sends a power supply role switching signaling to the first PD chip, so that the first PD chip sets the power supply role of the first electronic device to power supply equipment.
  • the specific execution process of this step may refer to the above-mentioned execution process of S614 to S618, or may refer to the above-mentioned execution process of S1216 to S1220. To avoid repetition, details are not repeated here.
  • the embedded controller 304 controls the first PD chip 306 to set the power supply role of the first electronic device 30 as a power supply device, the first electronic device 30 charges the second electronic device 40 .
  • the embedded controller controls the power supply path between the first USB port and the second USB port to be disconnected.
  • the embedded controller 304 controls the first USB port 307 and the second USB The power path between ports 402 is broken.
  • the embedded controller 304 sends a control instruction to the first PD chip 306, so that the first PD chip 306 can control the first interface controller 315 to set the first switching transistor M1 to an off state, and the second PD chip
  • the power supply signal provided by 401 will not be input to the first PD chip 306 again, so as to save the power of the battery in the second electronic device 40 .
  • the second electronic device 40 may also be used to charge the first electronic device 30 .
  • the embedded controller continues to control the first PD chip to set the power supply role of the first electronic device as a powered device.
  • the first electronic device accepts the charging operation of the second electronic device.
  • the embedded controller 304 continues to control the first PD chip 306 to set the power supply role of the first electronic device 30 as a power receiving device, so that the second electronic device 40
  • the power supply signal provided by the device 40 is input to the first battery 303 through the first USB port 307 and the charging management chip 302 , that is, the second electronic device 40 can charge the first electronic device 30 .
  • the charging control method according to the embodiment of the present application has been described above, and the structure of the first electronic device provided by the embodiment of the present application for performing the above charging control method will be described below.
  • FIG. 17 is a schematic diagram of circuit connections of the first electronic device provided by the embodiment of the present application.
  • the first electronic device 30 includes a processor 301, a charge management chip 302, a first battery 303, an embedded controller 304, a first PD chip 306 and a first USB port 307, and its connection relationship can be referred to The connection relationship of the first electronic device 30 shown in FIG. 3 .
  • the first electronic device 30 also includes a display screen 310, a sensor 311, and a read only memory (read only memory, ROM) chip 312, etc., and the processor 301 is respectively connected to the display screen 310, the sensor 311, and the ROM chip 312.
  • Fig. 18 is a schematic diagram of the hardware structure of the first electronic device provided by the embodiment of the present application.
  • the first electronic device 30 includes an embedded controller 304, a memory 313 and an interface circuit 314, wherein the memory 313, the embedded controller 304 and the interface circuit 314 can communicate.
  • the memory 313, the embedded Mode controller 304 and interface circuit 314 may communicate via a communication bus.
  • the memory 313 may be a read-only memory, a static storage device, a dynamic storage device or a random access memory (random access memory, RAM).
  • the memory 313 can store computer programs, which are controlled and executed by the embedded controller 304 and communicated by the interface circuit 314, so as to implement the charging control method provided by the above-mentioned embodiments of the present application.
  • the computer-executed instructions in the embodiments of the present application may also be referred to as application program codes, which is not specifically limited in the embodiments of the present application.
  • the interface circuit 314 may also include a transmitter and/or a receiver.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the methods described in the foregoing embodiments may be fully or partially implemented by software, hardware, firmware or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage or other magnetic storage devices, or target or any other medium that stores the required program code in the form of instructions or data structures and can be accessed by a computer.
  • any connection is properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium.
  • Disk and disc includes compact disc, laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processing unit of other programmable data processing equipment to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

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

Abstract

一种充电控制方法、电子设备及充电控制系统。该充电控制方法在第一电子设备处于关机状态时,控制嵌入式控制器下电,而当第二电子设备的第二USB端口与第一电子设备的第一USB端口连接时,通过第二USB端口输入的供电信号唤醒嵌入式控制器,嵌入式控制器获取第二电子设备的设备信息,然后,嵌入式控制器根据该设备信息控制第一电子设备的第一电池对第二电子设备进行充电。该方法可以在第一电子设备处于关机状态时对第二电子设备进行充电;并且,由于第一电子设备处于关机状态,且第一USB端口和第二USB端口未连接时,嵌入式控制器处于掉电状态,因此可减少第一电池的电量消耗,提高电池续航能力。

Description

充电控制方法、电子设备及充电控制系统
本申请要求于2021年09月26日提交中国国家知识产权局、申请号为202111132066.2、申请名称为“充电控制方法、电子设备及充电控制系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种充电控制方法、电子设备及充电控制系统。
背景技术
随着电子设备的快速发展,笔记本电脑等电子设备在人们的生活和工作中的使用也越来越普遍,由于笔记本电脑的电池容量往往大于手机等电子设备的电池容量,因此,在手机等电子设备的电量不足的情况下,可采用笔记本电脑为手机进行充电。
目前,部分笔记本电脑在处于关机状态下无法对手机进行充电,部分笔记本电脑即使可以在关机状态下对手机进行充电,其也会导致笔记本电脑的电量消耗增大,影响笔记本电脑的电池续航能力。
发明内容
本申请实施例提供一种充电控制方法、电子设备及充电控制系统,在第一电子设备处于关机状态时,实现对第二电子设备进行充电,并且可减少第一电池的电量消耗,提高了第一电子设备的电池续航能力。
第一方面,本申请实施例提出一种充电控制方法,应用于第一电子设备,第一电子设备包括第一通用串行总线(universal serial bus,USB)端口、第一电池,以及分别与第一USB端口和第一电池连接的嵌入式控制器,该方法包括:在第一电子设备处于关机状态,且第二电子设备的第二USB端口与第一USB端口连接的情况下,嵌入式控制器接收唤醒信号;唤醒信号是根据第二电子设备向第一USB端口输入的第一供电信号生成的,且唤醒信号用于唤醒嵌入式控制器;在嵌入式控制器被唤醒的情况下,嵌入式控制器获取第二电子设备的设备信息;嵌入式控制器根据设备信息,通过第一电池对第二电子设备进行充电。这样,在第一电子设备处于关机状态时,可以对第二电子设备进行充电;并且,由于第一电子设备处于关机状态,且第一USB端口与第二USB端口未连接时,嵌入式控制器一直处于掉电状态,此时,也就无需第一电池对嵌入式控制器进行供电,从而减少了第一电池的电量消耗,提高了第一电子设备的电池续航能力。
在一种可选的实现方式中,嵌入式控制器根据设备信息,通过第一电池对第二电子设备进行充电,包括:嵌入式控制器根据设备信息,确定第二电子设备的设备类型;设备信息包括供电电压和/或供电电流;当第二电子设备的设备类型为待充电设备时,嵌入式控制器通过第一电池对第二电子设备进行充电。这样,可通过供电电压和/或供电电流确定第二电子设备的设备类型,以确定第二电子设备是否为待充电设备。
在一种可选的实现方式中,设备信息包括供电电流和供电电压;嵌入式控制器根据设备信息,确定第二电子设备的设备类型,包括:嵌入式控制器计供电电流与供电 电压的乘积,得到第二电子设备的供电功率;嵌入式控制器根据供电功率,确定第二电子设备的设备类型。可基于第二电子设备的供电功率确定第二电子设备是否为待充电设备,设备类型的检测方法较为简单,且检测结果较为准确。
在一种可选的实现方式中,嵌入式控制器根据供电功率,确定第二电子设备的设备类型,包括:当供电功率小于或等于预设功率时,嵌入式控制器确定第二电子设备的设备类型为待充电设备;当供电功率大于预设功率时,嵌入式控制器确定第二电子设备的设备类型为供电设备。
在一种可选的实现方式中,设备信息包括供电电压;嵌入式控制器根据设备信息,确定第二电子设备的设备类型,包括:当供电电压小于或等于预设电压时,嵌入式控制器确定第二电子设备的设备类型为待充电设备;当供电电压大于预设电压时,嵌入式控制器确定第二电子设备的设备类型为供电设备。这样,可基于第二电子设备的供电电压确定第二电子设备是否为待充电设备,减少了第二电子设备向第一电子设备发送设备信息时的数据量,减少设备信息的传输时间。
在一种可选的实现方式中,设备信息包括供电电流;嵌入式控制器根据设备信息,确定第二电子设备的设备类型,包括:当供电电流小于或等于预设电流时,嵌入式控制器确定第二电子设备的设备类型为待充电设备;当供电电流大于预设电流时,嵌入式控制器确定第二电子设备的设备类型为供电设备。这样,可基于第二电子设备的供电电流确定第二电子设备是否为待充电设备,减少了第二电子设备向第一电子设备发送设备信息时的数据量,减少设备信息的传输时间。
在一种可选的实现方式中,当第二电子设备的设备类型为待充电设备时,嵌入式控制器通过第一电池对第二电子设备进行充电,包括:当第二电子设备的设备类型为待充电设备时,嵌入式控制器获取第一电池的第一电量值;当第一电量值满足预设条件时,嵌入式控制器通过第一电池对第二电子设备进行充电。这样,嵌入式控制器在确定第二电子设备为待充电设备时,首先判断其内设置的第一电池的第一电量值是否满足预设条件,在满足预设条件时才向第二电子设备进行充电,从而在保证可以为第二电子设备进行充电的同时,使得第一电子设备有足够的电量可以正常使用。
在一种可选的实现方式中,预设条件为第一电量值大于预设电量值。当第一电量值大于预设电量值时,确定第一电池的第一电量值满足预设条件。
在一种可选的实现方式中,在当第一电量值满足预设条件时,嵌入式控制器通过第一电池对第二电子设备进行充电之前,还包括:嵌入式控制器获取第二电子设备内的第二电池的第二电量值;其中,预设条件为第一电量值大于第二电量值。当第一电量值大于第二电池的第二电量值时,确定第一电池的第一电量值满足预设条件。
在一种可选的实现方式中,第一电子设备还包括第一电力传输协议(power delivery,PD)芯片,第一PD芯片连接于第一USB端口与嵌入式控制器之间;嵌入式控制器获取第二电子设备的设备信息,包括:嵌入式控制器向第一PD芯片发送设备信息查询信令;嵌入式控制器接收第一PD芯片根据设备信息查询信令返回的设备信息;设备信息是第一PD芯片从第二电子设备内的第二PD芯片中获取到的。
在一种可选的实现方式中,第一电子设备还包括第一PD芯片和充电管理芯片,第一PD芯片连接于第一USB端口与嵌入式控制器之间,充电管理芯片连接于第一 USB端口与第一电池之间;嵌入式控制器根据设备信息,通过第一电池对第二电子设备进行充电,包括:嵌入式控制器根据设备信息,向第一PD芯片发送供电角色切换信令,以使第一PD芯片根据供电角色切换信令,将第一电子设备的供电角色从受电设备切换为供电设备;其中,当第一电子设备的供电角色从受电设备切换为供电设备时,第一电池、充电管理芯片和第一USB端口所形成的充电通路导通。这样,本申请基于硬件电路控制,在将第一电子设备的供电角色切换为供电设备的同时,使得第一电池、充电管理芯片和第一USB端口所形成的充电通路导通,从而使得第一电子设备内的第一电池为第二电子设备内的第二电池进行充电,其响应时间较短,可快速切换至第一电子设备为第二电子设备进行反向充电。
在一种可选的实现方式中,第一电子设备还包括第一PD芯片和充电管理芯片,第一PD芯片连接于第一USB端口与嵌入式控制器之间,充电管理芯片连接于第一USB端口与第一电池之间,充电管理芯片还与嵌入式控制器连接;嵌入式控制器根据设备信息,通过第一电池对第二电子设备进行充电,包括:嵌入式控制器根据设备信息,向第一PD芯片发送供电角色切换信令;嵌入式控制器接收第一PD芯片根据供电角色切换信令返回的供电角色切换消息;当供电角色切换消息为第一电子设备的供电角色从受电设备切换为供电设备时,嵌入式控制器向充电管理芯片发送控制指令,以使得充电管理芯片将第一电池提供的供电信号传输给第一USB端口。这样,本申请中的嵌入式控制器在接收到第一PD芯片返回的供电角色切换消息后,当确定供电角色切换成功时,才通过控制充电管理芯片,使得第一电池、充电管理芯片和第一USB端口所形成的充电通路导通,从而提高第一电池对第二电子设备进行充电的准确性,减少因误判断供电角色切换成功而导致的第一电池的电量消耗。
在一种可选的实现方式中,第一电子设备还包括第一PD芯片、充电管理芯片和开关模块,第一PD芯片连接于第一USB端口与嵌入式控制器之间,充电管理芯片分别与第一USB端口和开关模块连接,开关模块还与第一电池和嵌入式控制器连接;嵌入式控制器根据设备信息,通过第一电池对第二电子设备进行充电,包括:嵌入式控制器根据设备信息,向第一PD芯片发送供电角色切换信令;嵌入式控制器接收第一PD芯片根据供电角色切换信令返回的供电角色切换消息;当供电角色切换消息为第一电子设备的供电角色从受电设备切换为供电设备时,嵌入式控制器控制开关模块导通,使得第一电池、充电管理芯片和第一USB端口所形成的充电通路导通。其中,该开关模块为第二开关模块,这样,本申请中的嵌入式控制器在接收到第一PD芯片返回的供电角色切换消息后,当确定供电角色切换成功时,才通过控制开关模块,使得第一电池、充电管理芯片和第一USB端口所形成的充电通路导通,从而提高第一电池对第二电子设备进行充电的准确性,减少因误判断供电角色切换成功而导致的第一电池的电量消耗。
在一种可选的实现方式中,第一电子设备还包括充电管理芯片,充电管理芯片还分别与第一USB端口和嵌入式控制器连接,嵌入式控制器接收唤醒信号,包括:嵌入式控制器接收充电管理芯片发送的唤醒信号;唤醒信号是充电管理芯片在被第二供电信号唤醒后生成的,第二供电信号是根据第一供电信号生成的。本申请提供了一种通过充电管理芯片唤醒嵌入式控制器的方式。
在一种可选的实现方式中,第一电子设备还包括电压转换模块,电压转换模块连接于第一USB端口与充电管理芯片之间;充电管理芯片是被电压转换模块发送的第二供电信号唤醒的,且第二供电信号是电压转换模块对第一供电信号进行电压转换后生成的。基于电压转换模块,可使得本申请中的充电管理芯片适用于能够提供具有不同电压值的供电信号的第二电子设备。
在一种可选的实现方式中,嵌入式控制器接收唤醒信号,包括:嵌入式控制器接收第一USB端口发送的唤醒信号;唤醒信号为第二电子设备向第一USB端口输入的第一供电信号。这样,可直接通过第一USB端口输入的第一供电信号唤醒嵌入式控制器,简化第一电子设备的连接关系。
在一种可选的实现方式中,在嵌入式控制器获取第二电子设备的设备信息之后,还包括:当根据设备信息确定第二电子设备的设备类型为供电设备时,嵌入式控制器继续控制第一PD芯片将第一电子设备的供电角色设置为受电设备,以使第二电子设备提供的供电信号经由第一USB端口和充电管理芯片输入至第一电池。这样,本申请中的第一电子设备也可以接收作为供电设备的第二电子设备对其的充电操作。
在一种可选的实现方式中,在嵌入式控制器获取第一电池的第一电量值之后,还包括:当第一电量值不满足预设条件时,嵌入式控制器控制第一USB端口与第二USB端口之间的供电通路断开。这样,本申请中的第一电池的电量不足时,控制第一USB端口与第二USB端口之间的供电通路断开,节省第二电子设备40内的电池的电量。
在一种可选的实现方式中,在嵌入式控制器通过第一电池对第二电子设备进行充电之后,还包括:在第一电池对第二电子设备进行充电的过程中,嵌入式控制器定时获取第一电池的第三电量值;当第三电量值不满足预设条件时,嵌入式控制器控制第一电池停止对第二电子设备进行充电。这样,本申请通过定时监控第一电池的电量值,当第一电池的电量不足时,可使得第一电池停止对第二电子设备进行充电,以防止第一电池的电量消耗过多,而影响第一电子设备的正常使用。
第二方面,本申请实施例提出一种电子设备,包括嵌入式控制器和存储器;存储器存储计算机执行指令;嵌入式控制器用于执行存储器存储的计算机执行指令,使得嵌入式控制器执行上述的充电控制方法。
第三方面,本申请实施例提出一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令被运行时,实现上述的充电控制方法。
第四方面,本申请实施例提出一种充电控制系统,充电控制系统包括第一电子设备和第二电子设备,第一电子设备为上述的电子设备;第二电子设备,用于在第一电子设备处于关机状态,且第二电子设备的第二USB端口与第一电子设备的第一USB端口连接的情况下,向第一电子设备提供第一供电信号;以及当第一电子设备内的嵌入式控制器被唤醒的情况下,接收第一电子设备输出的供电信号。
第二方面至第四方面的各可能的实现方式,效果与第一方面以及第一方面的可能的设计中的效果类似,在此不再赘述。
附图说明
图1为相关技术中的第一电子设备与第二电子设备的交互示意图;
图2为本申请实施例提供的充电控制方法的应用场景示意图;
图3为本申请实施例提供的第一电子设备与第二电子设备的一种结构示意图;
图4为本申请实施例提供的第一电子设备的电路结构示意图;
图5为本申请实施例提供的Type-C端口的结构示意图;
图6为本申请实施例提供的一种充电控制方法的流程图;
图7为本申请实施例提供的第一电子设备为受电设备,且第二电子设备为供电设备时的连接示意图;
图8为本申请实施例中的第一PD芯片与第二PD芯片进行信令交互的示意图;
图9为本申请实施例中的第一PD芯片从第二PD芯片获取设备信息的信令示意图;
图10为本申请实施例中的第一PD芯片与第二PD芯片进行供电角色切换的信令示意图;
图11为本申请实施例提供的第一电子设备为供电设备,且第二电子设备为受电设备时的连接示意图;
图12为本申请实施例提供的另一种充电控制方法的流程图;
图13为本申请实施例提供的第一电子设备与第二电子设备的另一种结构示意图;
图14为本申请实施例提供的第一电子设备与第二电子设备的再一种结构示意图;
图15为本申请实施例提供的第一电子设备与第二电子设备之间的交互过程示意图;
图16为本申请实施例提供的第一电子设备处于不同场景下的充电流程示意图;
图17为本申请实施例提供的第一电子设备的电路连接示意图;
图18为本申请实施例提供的第一电子设备的硬件结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一芯片和第二芯片仅仅是为了区分不同的芯片,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
随着电子设备的快速发展,用户对手机、可穿戴设备等电子设备的使用频率和使用时长逐渐提高,使得手机、可穿戴设备等电子设备的耗电量逐渐增大,进而导致电 子设备内的电池的电量很容易消耗完,因此,需要及时为电子设备进行充电,以使得电子设备可以正常使用。
目前,用户一般情况下会将充电器的一端插入作为供电电源的固定插座内,充电器的另一端与电子设备的USB端口连接,来对手机、可穿戴设备等电子设备进行充电。然而,在某些场景下,如乘坐高铁的过程中或者开会过程中,用户所处环境中未设置作为供电电源的固定插座,或者没有空闲的固定插座,则无法通过固定插座对手机、可穿戴设备等电子设备进行充电。因此,在用户难以找到固定插座的情况下,可采用笔记本电脑对电子设备进行手机、可穿戴设备等电子设备进行充电。
如图1所示,将笔记本电脑称为第一电子设备10,手机称为第二电子设备20。第一电子设备10包括:处理器110、充电管理芯片120、第一电池130、嵌入式控制器140、开关电路150、第一PD芯片160和第一USB端口170,处理器110、充电管理芯片120和开关电路150依次连接,且开关电路150还连接于第一电池130与嵌入式控制器140之间,第一PD芯片160与第一USB端口170连接。第二电子设备20包括相互连接的第二PD芯片210和第二USB端口220,此外,在第二电子设备20内也设置有第二电池(未示出)。
用户在不使用第一电子设备10时,可触发第一电子设备10执行关机操作,如图1所示,在一种相关技术中,第一电子设备10在执行关机操作时,处理器110会执行S101,向充电管理芯片120发送关机指令;充电管理芯片120在接收到关机指令后执行S102,控制开关电路150关闭,使得第一电池130与嵌入式控制器140之间的供电通路断开,则第一电池130会停止向嵌入式控制器140进行供电,从而使得嵌入式控制器140进行下电。也就是说,第一电子设备10处于关机状态时,嵌入式控制器140也保持掉电状态。
在第一电子设备10处于关机状态,且嵌入式控制器140也处于掉电状态时,若将第二电子设备20的第二USB端口220与第一电子设备10的第一USB端口170连接,第二电子设备20会执行S103,向第一USB端口170提供5V的电压信号,但是,该5V的电压信号不会唤醒充电管理芯片120,从而也就无法进一步唤醒嵌入式控制器140。由于嵌入式控制器140处于掉电状态,则嵌入式控制器140无法控制第一电池130对第二电子设备20进行充电。
需要说明的是,图1中连接于两个器件之间的连接线所携带的箭头,表示本申请实施例中会涉及到的信号或数据的传输走向;实际上,第一USB端口170与充电管理芯片120也通过线路连接,充电管理芯片120也通过线路与第一电池130连接,但是,在关机状态下时,第一USB端口170与充电管理芯片120之间的线路,以及充电管理芯片120与第一电池130之间的线路不进行信号传输。
为了使得第一电子设备10在处于关机状态时,可以对第二电子设备20进行充电,在另一种相关技术中,第一电子设备10在执行关机操作时,不会控制嵌入式控制器140下电,并且,第一电子设备10在关机操作执行完成后,处于关机状态的情况下,依旧会控制嵌入式控制器140不掉电。
在第一电子设备10处于关机状态,且嵌入式控制器140一直未掉电的情况下,若将第二电子设备20的第二USB端口220与第一电子设备10的第一USB端口170连 接,则可通过嵌入式控制器140控制第一电池130对第二电子设备20进行充电。
但是,此时的第一电子设备10内的第一电池130提供的供电信号,不仅需要提供给第二电子设备20,还需要一直提供给第一电子设备10内的嵌入式控制器140,不论是否有连接电子设备20,第一电池130都需要一直为嵌入式控制器140供电,从而导致第一电子设备10内的第一电池130的电量消耗增大,影响第一电子设备10的电池续航能力。
综上,可以看出,在相关技术中,第一种情况,在第一电子设备10处于关机状态时,会控制嵌入式控制器140处于掉电状态,则无法实现在第一电子设备10处于关机状态的情况下对第二电子设备20进行充电;第二种情况,在第一电子设备10处于关机状态时,会持续控制嵌入式控制器140保持上电状态,以在第一电子设备10处于关机状态的情况下,实现对第二电子设备20进行充电,但是,这种方式会导致第一电子设备10内的第一电池130的电量消耗增大,影响第一电子设备10的电池续航能力。
基于此,本申请实施例提供了一种充电控制方法,该方法在第一电子设备关机时,控制嵌入式控制器下电,而当第一电子设备的第一USB端口与第二电子设备的第二USB端口连接时,通过第二USB端口输入的第一供电信号唤醒嵌入式控制器,当嵌入式控制器被唤醒时,嵌入式控制器可根据获取到的第二电子设备的设备信息,控制第一电池对第二电子设备进行充电。因此,该方法在第一电子设备处于关机状态时,可以对第二电子设备进行充电;并且,由于第一电子设备处于关机状态,且第一USB端口与第二USB端口未连接时,嵌入式控制器一直处于掉电状态,此时,也就无需第一电池对嵌入式控制器进行供电,从而减少了第一电池的电量消耗,提高了第一电子设备的电池续航能力。
本申请实施例所提供的充电控制方法,可以适用于笔记本电脑等电子设备,将该电子设备称为第一电子设备,其用于在关机状态下对第二电子设备进行充电,第二电子设备可以是手机、可穿戴设备(如手环、手表等)、平板电脑、鼠标、耳机等需要进行充电的电子设备。
为了能够更好地理解本申请实施例,下面对本申请实施例的充电控制系统的场景进行介绍。参照图2,该充电控制系统包括第一电子设备30和第二电子设备40,第一电子设备30和第二电子设备40均为具有USB端口的电子设备,在第一电子设备30处于关机的状态下,可以将第一电子设备30的USB端口与第二电子设备40的USB端口通过充电线50连接起来。后续均以第一电子设备30为笔记本电脑,第二电子设备40为手机为例进行说明。
示例性的,图3为本申请实施例提供的第一电子设备与第二电子设备的一种结构示意图。参照图3所示,第一电子设备30包括处理器301、充电管理芯片(charger IC)302、第一电池303、嵌入式控制器(embed controller,EC)304、第一开关模块305、第一PD芯片306、第一USB端口307和电压转换模块308。第二电子设备40包括第二PD芯片401和第二USB端口402。第一USB端口307指的是第一电子设备30具有的USB端口,第一PD芯片306指的是第一电子设备30内的PD芯片,第二USB端口402指的是第二电子设备40具有的USB端口,第二PD芯片401指的是第二电子设备40内的PD芯片。
在第一电子设备30中,处理器301、充电管理芯片302和第一开关模块305依次连接,第一开关模块305连接于第一电池303与嵌入式控制器304之间的通路中,嵌入式控制器304还分别与第一电池303、充电管理芯片302和第一PD芯片306连接,充电管理芯片302还分别与第一电池303和电压转换模块308连接,电压转换模块308还与第一USB端口307连接,而第一PD芯片306与第一USB端口307连接。
在第二电子设备40中,第二PD芯片401与第二USB端口402连接。此外,在第二电子设备40中还设置有第二电池(未示出),该第二电池可以与第二PD芯片401直接连接,该第二电池也可以通过其他电子器件与第二PD芯片401连接,如第二电池通过设置在第二电子设备内的充电管理芯片与第二PD芯片401连接。
需要说明的是,图3中连接于两个器件之间的连接线所携带的箭头,表示本申请实施例中会涉及到的信号或数据的传输走向。若不考虑信号的传输走线,图3所示的第一电子设备30的具体电路图如图4所示。
其中,第一电子设备30具有的第一USB端口307可以是USB Type-C端口,其实际结构被制作成USB Type-C插座;第二电子设备40具有的第二USB端口402也可以是USB Type-C端口,其实际结构也被制作成USB Type-C插座。
此时,图2所示的充电线50为可分离式双头USB Type-C充电线,该充电线50两端均为结构相同的USB Type-C插头,该充电线50两端的USB Type-C插头可以分别与第一电子设备30的USB Type-C插座和第二电子设备40的USB Type-C插座连接,从而使得第一USB端口307与第二USB端口402连接。
如图5所示,第一电子设备30的第一USB端口307包括对称分布的第一引脚组3071和第二引脚组3072。第一引脚组3071包括依次分布的GND引脚、TX1+引脚、TX1-引脚、Vbus引脚、CC1引脚、D+引脚、D-引脚、SBU1引脚、Vbus引脚、RX2-引脚、RX2+引脚以及GND引脚。第二引脚组3072包括依次分布的GND引脚、RX1+引脚、RX1-引脚、Vbus引脚、SBU2引脚、D-引脚、D+引脚、CC2引脚、Vbus引脚、TX2-引脚、TX2+引脚以及GND引脚。GND引脚指的是接地引脚,CC引脚指的是配置通道(configuration channel,CC)引脚,SBU引脚指的是边带使用(side band use,SBU)引脚。
下面介绍各个引脚的作用。D+引脚和D-引脚:当USB3.0接口不可用的时候,D+引脚和D-引脚为USB2.0信号提供信号通道;Vbus引脚和GND引脚能够为上行数据接口提供供电能力,或者在某些情况下支持点对点供电;TX1/2引脚和RX1/2引脚:提供最多2个通道的超速数据链路,实现双向带宽高达20Gbps;CC1引脚和CC2引脚:用于对连接的外部设备进行发现、配置和管理。其中,CC1引脚和CC2引脚中的一个CC引脚用作配置通道,另一个CC引脚可用于在其所处的电子设备为供电设备时与Vconn连接,用于向充电线内的Emark芯片供电;SBU1引脚和SUB2引脚:适用于传输非USB信号,例如用于模拟音频信号的传输。
可以理解的是,第二电子设备40的第二USB端口402包括的引脚,与图5所示的类似,为避免重复,在此不再赘述。
图6为本申请实施例提供的一种充电控制方法的流程图,该充电控制方法可以应用于如图3所示的第一电子设备30,其具体可以包括如下步骤:
S601,处理器向充电管理芯片发送关机指令。
当用户不需要使用第一电子设备30时,用户可长按第一电子设备30上设置的电源开关按键,或者可通过鼠标点击第一电子设备30的显示屏上显示的关机控件等方式,触发第一电子设备30内的处理器301生成关机指令,处理器301将该关机指令发送至充电管理芯片302。
S602,充电管理芯片控制嵌入式控制器下电。
充电管理芯片302在接收到处理器301发送的关机指令后,向第一开关模块305发送一控制信号,使得第一开关模块305关闭,从而切断第一电池303与嵌入式控制器304之间的供电通路,则第一电池303会停止向嵌入式控制器304进行供电,从而使得嵌入式控制器304进行下电。
在一些实施例中,该第一开关模块305可以是一个开关晶体管,其栅极与充电管理芯片302连接,源极与第一电池303连接,漏极与嵌入式控制器304连接。一种情况,该开关晶体管为N型晶体管,该控制信号为低电平信号,当充电管理芯片302向开关晶体管的栅极输入低电平信号时,使得开关晶体管截止,则切断第一电池303与嵌入式控制器304之间的供电通路;另一种情况,该开关晶体管为P型晶体管,该控制信号为高电平信号,当充电管理芯片302向开关晶体管的栅极输入高电平信号时,使得开关晶体管截止,则切断第一电池303与嵌入式控制器304之间的供电通路。
S603,在第一电子设备处于关机状态,且第二电子设备的第二USB端口与第一USB端口连接的情况下,第二电子设备通过第二USB端口向第一USB端口提供第一供电信号。
在第一电子设备30处于关机状态时,若用户需要使用第一电子设备30对第二电子设备40进行充电,则可以使用充电线50将第一电子设备30的第一USB端口307与第二电子设备40的第二USB端口402连接。
在充电线50内部设置有一条CC连接线,在将充电线50分别与第一USB端口307和第二USB端口402连接后,第一USB端口307内的CC1引脚或CC2引脚,可以通过充电线50内的CC连接线,与第二USB端口402内的CC1引脚或CC2引脚连接。
在本申请实施例中,第一USB端口307的工作模式为双角色端口(dual role port,DRP)模式,第二USB端口402的工作模式也为DRP模式,DRP模式既可以作为下行端口(downstream facing port,DFP)模式,又可以作为上行端口(upstream facing port,UFP)模式。因此,在通过充电线50将第一USB端口307与第二USB端口402连接后,需要确定第一USB端口307和第二USB端口402的工作模式,以确定第一电子设备30和第二电子设备40的主从关系。具体的,可通过第一电子设备30内的第一接口控制器以及第二电子设备40内的第二接口控制器,确定第一USB端口307和第二USB端口402的工作模式。
如图7所示,在第一电子设备30中,第一PD芯片306与第一USB端口307之间还设置有第一接口控制电路,该第一接口控制电路包括第一接口控制器315、第一开关K1、第二开关K2、第一开关晶体管M1、第二开关晶体管M2、第一上拉电阻Rp1、第一下拉电阻Rd1、第二上拉电阻Rp2和第二下拉电阻Rd2。与第一接口控制器315连接的Vbus引脚、CC1引脚、CC2引脚和GND引脚均指的是第一USB端口307包 括的引脚。
其中,第一PD芯片306与第一接口控制器315连接,第一接口控制器315还与第一开关晶体管M1的栅极和第二开关晶体管M2的栅极连接,第一开关晶体管M1的源极(即Vbus sink)和第二开关晶体管M2的源极(即Vbus Source)与电压转换模块308连接,第一开关晶体管M1的漏极和第二开关晶体管M2的漏极与第一USB端口307中的Vbus引脚连接。
第一开关K1的控制端与第一接口控制器315连接,第一开关K1在第一接口控制器315的控制下,可切换第一USB端口307中的CC1引脚与第一上拉电阻Rp1的第一端连接,或者切换第一USB端口307中的CC1引脚与第一下拉电阻Rd1的第一端连接,而第一上拉电阻Rp1的第二端与第一高电平信号端VCC1连接,第一下拉电阻Rd1的第二端与接地端连接。第二开关K2的控制端与第一接口控制器315连接,第二开关K2在第一接口控制器315的控制下,可切换第一USB端口307中的CC2引脚与第二上拉电阻Rp2的第一端连接,或者切换第一USB端口307中的CC2引脚与第二下拉电阻Rd2的第一端连接,而第二上拉电阻Rp2的第二端与第一高电平信号端VCC1连接,第二下拉电阻Rd2的第二端也与接地端连接,并且第一USB端口307中的GND引脚也与接地端连接。
此外,第一接口控制器315还连接在第一开关K1与第一USB端口307中的CC1引脚之间,以检测第一USB端口307中的CC1引脚的电压,第一接口控制器315还连接在第二开关K2与第一USB端口307中的CC2引脚之间,以检测第一USB端口307中的CC2引脚的电压。
相应的,在第二电子设备40中,第二PD芯片401与第二USB端口402之间设置有第二接口控制电路,该第二接口控制电路包括第二接口控制器403、第三开关K3、第四开关K4、第三开关晶体管M3、第四开关晶体管M4、第三上拉电阻Rp3、第三下拉电阻Rd3、第四上拉电阻Rp4和第四下拉电阻Rd4。与第二接口控制器403连接的Vbus引脚、CC1引脚、CC2引脚和GND引脚均指的是第二USB端口402包括的引脚。
其中,第二PD芯片401与第二接口控制器403连接,第二接口控制器403还与第三开关晶体管M3的栅极和第四开关晶体管M4的栅极连接,第三开关晶体管M3的源极(即Vbus sink)和第四开关晶体管M4的源极(即Vbus Source)与第二电子设备内的充电管理芯片等器件连接,第三开关晶体管M3的漏极和第四开关晶体管M4的漏极均与第二USB端口402中的Vbus引脚连接。
第三开关K3的控制端与第二接口控制器403连接,第三开关K3在第二接口控制器403的控制下,可切换第二USB端口402中的CC1引脚与第三上拉电阻Rp3的第一端连接,或者切换第二USB端口402中的CC1引脚与第三下拉电阻Rd3的第一端连接,而第三上拉电阻Rp3的第二端与第二高电平信号端VCC2连接,第三下拉电阻Rd3的第二端与接地端连接;第四开关K4的控制端与第二接口控制器403连接,第四开关K4在第二接口控制器403的控制下,可切换第二USB端口402中的CC2引脚与第四上拉电阻Rp4的第一端连接,或者切换第二USB端口402中的CC2引脚与第四下拉电阻Rd4的第一端连接,而第四上拉电阻Rp4的第二端与第二高电平信号端VCC2连接,第四下拉电阻Rd4的第二端也与接地端连接,并且第二USB端口402中的GND 引脚也与接地端连接。
此外,第二接口控制器403还连接在第三开关K3与第二USB端口402中的CC1引脚之间,以检测第二USB端口402中的CC1引脚的电压,第二接口控制器403还连接在第四开关K4与第二USB端口402中的CC2引脚之间,以检测第二USB端口402中的CC2引脚的电压。
在本申请实施例中,在第一电子设备30处于关机状态时,第一开关K1默认将第一USB端口307中的CC1引脚与第一下拉电阻Rd1的第一端连接,第二开关K2默认将第一USB端口307中的CC2引脚与第二下拉电阻Rd2的第一端连接,即默认将第一USB端口307的工作模式设置为UFP模式。此时,第一开关晶体管M1和第二开关晶体管M2均处于截止状态。
若通过充电线50将第二USB端口402与第一USB端口307连接时,第二PD芯片401会向第二接口控制器403发送控制指令,使得第二接口控制器403周期性地切换第三开关K3,将第二USB端口402中的CC1引脚与第三上拉电阻Rp3的第一端连接,或者将第二USB端口402中的CC1引脚与第三下拉电阻Rd3的第一端连接;同时,第二接口控制器403也会周期性地切换第四开关K4,将第二USB端口402中的CC2引脚与第四上拉电阻Rp4的第一端连接,或者将第二USB端口402中的CC2引脚与第四下拉电阻Rd4的第一端连接。也就是说,第二接口控制器403会将第二USB端口402的工作模式,在DFP模式和UFP模式之间进行周期性地切换。
当第二接口控制器403将第二USB端口402的工作模式切换至DFP模式时,第三开关K3会将第二USB端口402中的CC1引脚与第三上拉电阻Rp3连接,第四开关K4会将第二USB端口402中的CC2引脚与第四上拉电阻Rp4连接。若充电线50内的CC连接线是将第一USB端口307的CC1引脚与第二USB端口402中的CC1引脚连接,由于第一USB端口307的CC1引脚与第一下拉电阻Rd1连接,则第二接口控制器403会检测到第二USB端口402中的CC1引脚处的电平被拉低,而第一接口控制器315会检测到第一USB端口307中的CC1引脚处的电平被拉高,则确定是第一USB端口307中的CC1引脚与第二USB端口中的CC1引脚连接,且确定出第一USB端口307的工作模式为UFP模式。
当第二接口控制器403将第二USB端口402的工作模式切换至UFP模式时,第三开关K3会将第二USB端口402中的CC1引脚与第三下拉电阻Rd3连接,第四开关K4会将第二USB端口402中的CC2引脚与第四下拉电阻Rd4连接。若充电线50内的CC连接线是将第一USB端口307的CC1引脚与第二USB端口402中的CC1引脚连接,则第二接口控制器403会检测到第二USB端口402中的CC1引脚处的电平依旧为低电平,第一接口控制器315也会检测到第一USB端口307中的CC1引脚处的电平依旧为低电平,继续等待第二接口控制器403将第二USB端口402的工作模式切换至DFP模式时,以确定出第一USB端口307的工作模式为UFP模式。
需要说明的是,当第二接口控制器403检测到第二USB端口402中的CC1引脚处的电平被拉低后,可确定与第二USB端口402连接的第一USB端口307的工作模式为UFP模式,则第二接口控制器403会继续控制第三开关K3,将第二USB端口402中的CC1引脚与第三上拉电阻Rp3连接,也就是将第二USB端口402的工作模式保 持为DFP模式,不再将第二USB端口402的工作模式,在DFP模式和UFP模式之间进行周期性地切换。
当第一接口控制器315检测到第一USB端口307中的CC1引脚处的电平被拉高时,确定第一USB端口307中的CC1引脚与第二电子设备40的CC引脚(CC1或CC2)连接,且确定出第一USB端口307的工作模式为UFP模式,第一接口控制器315将第一USB端口307为UFP模式的模式信息,发送至第一PD芯片306,则第一PD芯片306向第一接口控制器315发送控制指令,使得第一接口控制器315控制第一开关晶体管M1导通;相应的,当第二接口控制器403检测到第二USB端口402中的CC1引脚处的电平被拉低后,第二PD芯片401控制第二接口控制器403将第二USB端口402的工作模式设置为DFP模式,并且,第二PD芯片401向第二接口控制器403发送控制指令,使得第二接口控制器403控制第四开关晶体管M4导通。
因此,当第四开关晶体管M4导通后,第二电子设备40提供的第一供电信号,依次经过第四开关晶体管M4、第二USB端口402的Vbus引脚传输给第一USB端口307的Vbus引脚,即实现第二电子设备40通过第二USB端口402向第一USB端口307提供第一供电信号。
需要说明的是,第一开关晶体管M1可称为Sink(受电方)晶体管,其在第一USB端口307为DFP模式时截止,在第一USB端口307为UFP模式时导通;第二开关晶体管M2称为Source(供电方)晶体管,其在第一USB端口307为DFP模式时导通,在第二USB端口307为UFP模式时截止。第三开关晶体管M3也可称为Sink晶体管,其在第二USB端口402为DFP模式时截止,在第二USB端口402为UFP模式时导通;第四开关晶体管M4也可称为Source晶体管,其在第二USB端口402为DFP模式时导通,在第二USB端口402为UFP模式时截止。
另外,第一USB端口307和第二USB端口402通过充电线50连接,使得第一USB端口307中的Vbus引脚与第二USB端口402中的Vbus引脚连接,且第一USB端口307中的GND引脚与第二USB端口402中的GND引脚也连接。
第一开关晶体管M1可以为N型晶体管,在栅极输入高电平信号时导通,在栅极输入低电平信号时截止;或者,第一开关晶体管M1也可以为P型晶体管,在栅极输入低电平信号时导通,在栅极输入高电平信号时截止。同理,第二开关晶体管M2可以为N型晶体管或P型晶体管,第三开关晶体管M3也可以为N型晶体管或P型晶体管,第四开关晶体管M4也可以为N型晶体管或P型晶体管。
当然,可以理解的是,充电线50内的CC连接线也可以将第一USB端口307的CC1引脚与第二USB端口402中的CC2引脚连接,或者将第一USB端口307的CC2引脚与第二USB端口402中的CC1引脚连接,或者将第一USB端口307的CC2引脚与第二USB端口402中的CC2引脚连接。其检测过程与上述过程类似,为避免重复,在此不再赘述。
S604,第一USB端口将第一供电信号传输给电压转换模块,电压转换模块对第一供电信号进行电压转换,将电压转换后得到的第二供电信号发送至充电管理芯片,以唤醒充电管理芯片。
当第一开关晶体管M1导通时,传输至第一USB端口307的Vbus引脚的第一供 电信号通过第一开关晶体管M1传输给电压转换模块308,以实现第一USB端口307将第一供电信号传输给电压转换模块308。
第一USB端口307在将该第一供电信号发送至电压转换模块308后,电压转换模块308对第一供电信号进行电压转换,生成第二供电信号,然后电压转换模块308将第二供电信号传输至充电管理芯片302,对充电管理芯片302进行上电,以唤醒充电管理芯片302。
充电管理芯片302实际上具有一电压门限值,当输入至充电管理芯片302的电信号的电压值达到该电压门限值时,可使得充电管理芯片302被唤醒,因此,需要在第一USB端口307与充电管理芯片302之间设置电压转换模块308,通过电压转换模块308对第一供电信号进行电压转换,使得转换后得到的第二供电信号的电压值可达到该电压门限值。该电压转换模块308为升压电路,当然,在一些实施例中,该电压转换模块308也可以为降压电路。
例如,第二电子设备40提供的第一供电信号实际上为电压值为5V的电信号,充电管理芯片302的电压门限值为9V时,电压转换模块308将5V的第一供电信号升压至9V,并将升压后得到的9V的第二供电信号传输至充电管理芯片302,以唤醒充电管理芯片302。
当然,可以理解的是,充电管理芯片302的电压门限值也可以等于第一供电信号的电压值,因此,无需在第一USB端口307与充电管理芯片302之间设置电压转换模块308,第一PD芯片306直接将第一供电信号传输至充电管理芯片302,以唤醒充电管理芯片302。
S605,充电管理芯片根据第二供电信号生成唤醒信号。
一些实施例中,由于嵌入式控制器304的工作电压可能小于第二供电信号的电压,因此,充电管理芯片302在被唤醒后,充电管理芯片302先确定第一电子设备30是否处于关机状态,当确定第一电子设备30处于关机状态时,充电管理芯片302通过内部设置的降压电路,对该第二供电信号进行降压处理,生成唤醒信号,即唤醒信号是充电管理芯片302对第二供电信号进行降压后生成的,该第二供电信号是对第一供电信号进行电压转换后生成的,且该唤醒信号用于唤醒嵌入式控制器304。
或者,在一些实施例中,充电管理芯片302还直接与第一USB端口307连接,第一USB端口307直接向充电管理芯片302传输第一供电信号;因此,充电管理芯片302在被第一供电信号唤醒后,当充电管理芯片302确定第一电子设备30处于关机状态时,充电管理芯片302通过内部设置的降压电路,对第一供电信号进行降压处理,生成唤醒信号。
而当确定第一电子设备30处于开机状态时,充电管理芯片302不会对该第二供电信号或第一供电信号进行降压处理,生成唤醒信号。
例如,第二供电信号的电压为9V,而嵌入式控制器的工作电压为3V,因此,充电管理芯片302需要对电压为9V的第二供电信号进行降压处理,生成电压为3V的唤醒信号。
需要说明的是,另一些实施例中,嵌入式控制器304的工作电压也可能大于第二供电信号的电压,因此,充电管理芯片302在被唤醒后,充电管理芯片302会对该第 二供电信号进行升压,生成唤醒信号,即唤醒信号是充电管理芯片302对第二供电信号进行升压后生成的,且该唤醒信号用于唤醒嵌入式控制器304。
或者,嵌入式控制器304的工作电压也可能等于第二供电信号的电压,因此,也就无需充电管理芯片302会对该第二供电信号进行降压,充电管理芯片302在被唤醒后,可以直接将该第二供电信号作为唤醒信号。
S606,充电管理芯片向嵌入式控制器发送唤醒信号,以唤醒嵌入式控制器。
充电管理芯片302在生成唤醒信号之后,充电管理芯片302向嵌入式控制器304发送唤醒信号,基于该唤醒信号对嵌入式控制器304进行上电,以唤醒嵌入式控制器304。
具体的,嵌入式控制器304在接收到充电管理芯片302发送的唤醒信号之后,需要进行上电初始化,其包括初始化嵌入式控制器304与其它器件连接的总线,例如,对嵌入式控制器304与第一PD芯片306之间的连接总线smbus进行初始化。
S607,在嵌入式控制器被唤醒的情况下,嵌入式控制器向第一PD芯片发送设备信息查询信令。
当嵌入式控制器304被唤醒时,嵌入式控制器304运行其对应的控制代码逻辑,向第一PD芯片306发送设备信息查询信令,该设备信息查询信令用于查询第二电子设备40的设备信息,如第二电子设备40的供电电压和供电电流等。
S608,第一PD芯片将该设备信息查询信令发送至第二PD芯片。
由于在将第一USB端口307与第二USB端口402通过充电线50连接时,基于第一USB端口307中的CC引脚与第二USB端口402中的CC引脚的连接,使得第一PD芯片306与第二PD芯片401连通。例如,第一USB端口307中的CC1引脚和第二USB端口402中的CC1引脚连接,使得第一PD芯片306与第二PD芯片401连通。
第一PD芯片306在接收到嵌入式控制器304发送的设备信息查询信令后,第一PD芯片306将该设备信息查询信令,依次经过第一USB端口307的CC1引脚和第二USB端口402中的CC1引脚,发送至第二PD芯片401。
S609,第一PD芯片接收第二PD芯片返回的设备信息,该设备信息包括供电电压和供电电流。
第二PD芯片401在接收到第一PD芯片发送的设备信息查询信令后,根据该设备信息查询信令获取第二电子设备40的设备信息,该设备信息可以包括第二电子设备40的供电电压和供电电流。
然后,第二PD芯片401将获取到的第二电子设备40的设备信息,依次经过第二USB端口402中的CC1引脚和第一USB端口307的CC1引脚发送至第一PD芯片306,使得第一PD芯片306可接收到第二PD芯片401返回的设备信息。
S610,第一PD芯片将设备信息发送至嵌入式控制器。
可以看出,第一PD芯片306从第二PD芯片401中,获取第二电子设备40的设备信息的具体过程如图8和图9所示,即S608中,第一PD芯片306向第二PD芯片401发送设备信息查询信令,其对应的消息类型为Control:Get Sink_Cap,其作用是第一PD芯片306请求获取第二电子设备40支持的供电能力;第二PD芯片401在接收到设备信息查询信令后,会向第一PD芯片306返回响应信令,其对应的消息类型为 Control:GoodCRC,其作用是表示第二PD芯片401已接收到第一PD芯片306发送的设备信息查询信令对应的数据包,且该数据包校验完好;之后,第二PD芯片401会向第一PD芯片306返回根据设备信息查询信令查询到的设备信息,其对应的消息类型为Data:Sink Capability,该设备信息包括供电电压和供电电流;第一PD芯片306在接收到设备信息后,会向第二PD芯片401返回响应信令,其对应的消息类型为Control:GoodCRC,其作用是表示第一PD芯片306已接收到第二PD芯片401发送的设备信息对应的数据包,且该数据包校验完好。
S611,嵌入式控制器计算供电电压与供电电流的乘积,得到第二电子设备的供电功率。
第一PD芯片306在接收到第二PD芯片401返回的设备信息之后,第一PD芯片306将该设备信息发送至嵌入式控制器304,该设备信息包括第二电子设备40的供电电压和供电电流;然后,嵌入式控制器304计算供电电压与供电电流的乘积,得到第二电子设备40的供电功率。
例如,第二电子设备40的供电电压为5V,第二电子设备40的供电电流为3A,则嵌入式控制器304计算供电电压与供电电流的乘积,得到第二电子设备的供电功率为15W。
S612,嵌入式控制器根据供电功率,确定第二电子设备的设备类型。
嵌入式控制器304将计算得到的供电功率与预设功率进行比较,确定第二电子设备40的设备类型。
具体的,当供电功率小于或等于预设功率时,嵌入式控制器304确定第二电子设备40的设备类型为待充电设备;当供电功率大于预设功率时,嵌入式控制器304确定第二电子设备40的设备类型为供电设备。
例如,该预设功率可以为15W,假设计算得到的第二电子设备40的供电功率为15W时,可确定第二电子设备40的设备类型为待充电设备,如第二电子设备40为手机、可穿戴设备、平板电脑等待充电设备;假设计算得到的第二电子设备40的供电功率为20W时,可确定第二电子设备40的设备类型为供电设备,如第二电子设备40为充电宝、适配器等供电设备。
当然,可以理解的是,预设功率不局限于15W,其可以根据待充电设备的具体供电功率来进行设定,例如,该预设功率还可以为10W等。
可以理解的是,在本申请实施例中,不局限于仅采用供电功率来判断第二电子设备40的设备类型,还可以采用供电电流或供电电压来判断第二电子设备40的设备类型。
一种情况,可采用供电电压来判断第二电子设备40的设备类型,此时,S609中第一PD芯片306接收到第二PD芯片401返回的设备信息包括供电电压,且S610中第一PD芯片306向嵌入式控制器304发送的设备信息也包括供电电压,嵌入式控制器304直接将供电电压与预设电压进行比较,确定第二电子设备40的设备类型。
具体的,当供电电压小于或等于预设电压时,嵌入式控制器304确定第二电子设备40的设备类型为待充电设备;当供电电压大于预设电压时,嵌入式控制器304确定第二电子设备40的设备类型为供电设备。
例如,该预设电压为5V,假设从第二PD芯片401中获取到的供电电压为3V,可确定第二电子设备40的设备类型为待充电设备,假设从第二PD芯片401中获取到的供电电压为9V,可确定第二电子设备40的设备类型为供电设备。
另一种情况,可采用供电电流来判断第二电子设备40的设备类型,此时,S609中第一PD芯片306接收到第二PD芯片401返回的设备信息包括供电电流,且S610中第一PD芯片306向嵌入式控制器304发送的设备信息也包括供电电流,嵌入式控制器304直接将供电电流与预设电流进行比较,确定第二电子设备40的设备类型。
具体的,当供电电流小于或等于预设电流时,嵌入式控制器304确定第二电子设备40的设备类型为待充电设备;当供电电流大于预设电流时,嵌入式控制器304确定第二电子设备40的设备类型为供电设备。
例如,该预设电压为2A,假设从第二PD芯片401中获取到的供电电流为1A,可确定第二电子设备40的设备类型为待充电设备,假设从第二PD芯片401中获取到的供电电流为3A,可确定第二电子设备40的设备类型为供电设备。
S613,当第二电子设备的设备类型为待充电设备时,嵌入式控制器获取第一电池的第一电量值。
当嵌入式控制器304确定第二电子设备40的设备类型为待充电设备时,嵌入式控制器304直接从第一电池303中获取其剩余的第一电量值。
需要说明的是,本申请实施例中的第二电子设备40的供电功率的确定过程,以及第一电池303的第一电量值的获取过程之间的先后顺序可以互换。例如,可以先执行S607至S612,当确定第二电子设备的设备类型为待充电设备时,才执行S613;或者,也可以在执行完成S607之后直接执行S613,后续嵌入式控制器再执行S611和S612。
S614,当第一电量值大于预设电量值,嵌入式控制器向第一PD芯片发送供电角色切换信令。
嵌入式控制器304在获取到第一电池303的第一电量值之后,将第一电量值与预设电量值进行比较,当确定第一电量值大于预设电量值时,嵌入式控制器304向第一PD芯片306发送供电角色切换信令,该供电角色切换信令用于切换第一电子设备30和第二电子设备40的供电角色。
例如,该预设电量值为10%,若获取到第一电池303的第一电量值为30%时,则嵌入式控制器304可以向第一PD芯片306发送供电角色切换信令。当然,可以理解的是,预设电量值不局限于10%,其还可以设置为其他数值,例如,预设电量值可设置为1%、15%、20%等。
S615,第一PD芯片向第二PD芯片发送供电角色切换请求。
第一PD芯片306在接收到嵌入式控制器304发送的供电角色切换信令之后,第一PD芯片306基于该供电角色切换信令生成供电角色切换请求,然后,第一PD芯片306将该供电角色切换请求,依次经过第一USB端口307的CC1引脚和第二USB端口402中的CC1引脚,发送至第二PD芯片401。
S616,第一PD芯片接收第二PD芯片根据供电角色切换请求返回的响应信息,该响应信息表示第二电子设备同意切换供电角色。
第二PD芯片401根据第一PD芯片306发送的供电角色切换请求生成响应信息, 并将该响信息,依次经过第二USB端口402中的CC1引脚和第一USB端口307的CC1引脚发送至第一PD芯片306,使得第一PD芯片306可接收到第二PD芯片401返回的响应信息。
当该响应信息表示第二电子设备40同意切换供电角色时,执行后续的S617和S618;而当该响应信息表示第二电子设备40不同意切换供电角色时,无需执行本申请实施例提供的后续步骤,第一PD芯片306可直接控制第一USB端口307与第二USB端口402之间的供电通路断开,例如,第一PD芯片306可以向第一接口控制器315发送控制指令,使得第一接口控制器315控制第一开关晶体管M1截止,则第二PD芯片401提供的供电信号不会再输入至第一PD芯片306,以节省第二电子设备40内的电池的电量。
因此,第一PD芯片306与第二PD芯片401进行供电角色切换的信令交互过程如图8和图10所示,即在S615中,第一PD芯片306向第二PD芯片401发送供电角色切换请求,其对应的消息类型为Control:PR_Swap,其作用是第一PD芯片306请求互换供电角色;第二PD芯片401在接收到供电角色切换请求后,会向第一PD芯片306返回响应信令,其对应的消息类型为Control:GoodCRC,其作用是表示第二PD芯片401已接收到第一PD芯片306发送的供电角色切换请求对应的数据包,且该数据包校验完好;之后,若第二PD芯片401同意切换供电角色后,第二PD芯片401会向第一PD芯片306发送同意切换供电角色的消息,其对应的消息类型为Control:Accept,表示第二PD芯片401接受供电角色切换请求;第一PD芯片306在接收到第二PD芯片401发送的同意切换供电角色的消息后,会向第二PD芯片401返回响应信令,其对应的消息类型为Control:GoodCRC,其作用是表示第一PD芯片306已接收到第二PD芯片401发送的同意切换供电角色的消息。
接着,第一PD芯片306还会向第二PD芯片401发送电源已准备好的消息,其对应的消息类型为Control:PS_Ready,表示第一电子设备30可以向第二电子设备40供电;第二PD芯片401在接收到第一PD芯片306发送的电源已准备好的消息后,会向第一PD芯片306返回响应信令,其对应的消息类型为Control:GoodCRC,其作用是表示第二PD芯片401已接收到第一PD芯片306发送的电源已准备好的消息;之后,第二PD芯片401会向第一PD芯片306发送电源已准备好的消息,其对应的消息类型为Control:PS_Ready,表示第二电子设备40可以接收第一电子设备30发送的供电信号;第一PD芯片306在接收到第二PD芯片401发送的电源已准备好的消息后,会向第二PD芯片401返回响应信令,其对应的消息类型为Control:GoodCRC,其作用是表示第一PD芯片306已接收到第二PD芯片401发送的电源已准备好的消息。
S617,第二PD芯片将第二电子设备的供电角色切换为受电设备。
当第二PD芯片401向第一PD芯片306发送同意切换供电角色的响应信息之后,或者,第二PD芯片401向第一PD芯片306发送电源已准备好的消息之后,第二PD芯片401将第二电子设备40的供电角色从供电设备切换为受电设备。
具体的,如图11所示,第二PD芯片401可以向第二接口控制器403发送控制信号,使得第二接口控制器403控制第三开关K3将第二USB端口402中的CC1引脚与第三下拉电阻Rd3连接,并控制第四开关K4将第二USB端口402中的CC2引脚与第 四下拉电阻Rd4连接;并且,使得第二接口控制器403控制第三开关晶体管M3导通,以及控制第四开关晶体管M4截止。基于上述控制方式,将第二USB端口402的工作模式从DFP模式切换为UFP模式,则使得第二电子设备40的供电角色也就从供电设备切换为受电设备。
S618,第一PD芯片将第一电子设备的供电角色切换为供电设备,使得第一电池、充电管理芯片和第一USB端口所形成的充电通路导通。
当第一PD芯片306接收到第二PD芯片401返回的同意切换供电角色的响应信息之后,或者,第一PD芯片306接收到第二PD芯片401发送的电源已准备好的消息之后,第一PD芯片306将第一电子设备30的供电角色从受电设备切换为供电设备。
具体的,如图11所示,第一PD芯片306可以向第一接口控制器315发送控制信号,使得第一接口控制器315控制第一开关K1将第一USB端口307中的CC1引脚与第一上拉电阻Rp1连接,并控制第二开关K2将第一USB端口307中的CC2引脚与第二上拉电阻Rp2连接;并且,使得第一接口控制器315控制第二开关晶体管M2导通,以及控制第一开关晶体管M1截止。基于上述控制方式,将第一USB端口307的工作模式从UFP模式切换为DFP模式,则使得第一电子设备30的供电角色也就从受电设备切换为供电设备。
由于图3所示的第一电子设备30中,第一电池303、充电管理芯片302和电压转换模块308之间的充电通路一直处于导通状态,当第一电子设备30的供电角色从受电设备切换为供电设备时,图11所示的电压转换模块308、第二开关晶体管M2和第一USB端口307中的Vbus引脚之间的充电通路也处于导通状态,则使得第一电池303、充电管理芯片302、电压转换模块308和第一USB端口307所形成的充电通路导通,第一电池303提供的供电信号也就可以依次经过充电管理芯片302、电压转换模块308和第一USB端口307,输入至第二电子设备40的第二USB端口402。
并且,当第二电子设备40的供电角色从供电设备切换为受电设备时,图11所示的第二USB端口402中的Vbus引脚、第三开关晶体管M3和充电管理芯片(位于第二电子设备40内)之间的通路也处于导通状态,且第二电子设备40内的充电管理芯片还与第二电子设备40内的第二电池连接,从而也就使得第一电子设备30输入至第二电子设备40的第二USB端口402的供电信号,可以依次经过第三开关晶体管M3和第二电子设备40内的充电管理芯片输入至第二电池,从而使得第一电子设备30内的第一电池303为第二电子设备40内的第二电池进行充电。
因此,图6所示的充电控制方法可直接基于硬件电路控制,在将第一电子设备30的供电角色切换为供电设备的同时,使得第一电池303、充电管理芯片302、电压转换模块308和第一USB端口307所形成的充电通路导通,从而使得第一电子设备30内的第一电池303为第二电子设备40内的第二电池进行充电,其响应时间较短,可快速切换至第一电子设备30为第二电子设备40进行反向充电。
需要说明的是,由于第一电子设备30内的第一电池303提供的供电信号的电压较大,因此,第一电池303提供的供电信号经过充电管理芯片302之后,通过电压转换模块308对该供电信号进行降压,并将降压后的供电信号通过第一USB端口307,输入至第二电子设备40的第二USB端口402。例如,第一电池303提供的供电信号的 电压为13V,电压转换模块308将电压为13V的供电信号进行降压处理,其输出的降压后的供电信号的电压为5V。
综上,本申请实施例在第一电子设备30处于关机状态时,使得嵌入式控制器304完全断电,以减少第一电池303的电量消耗,提高了第一电子设备30的电池续航能力;并且,当第一电子设备30的第一USB端口307与第二电子设备40的第二USB端口402连接时,采用第二电子设备40临时为第一电子设备30供电,以唤醒嵌入式控制器304,当嵌入式控制器304检测到第二电子设备40的设备类型为待充电设备,且第一电池303的第一电量值大于预设电量值时,嵌入式控制器304向第一PD芯片306发送供电角色切换信令,控制第一PD芯片306与第二PD芯片401进行供电角色的切换,从而使得嵌入式控制器304控制第一电子设备30内的第一电池303,对手机、可穿戴设备、平板电脑等第二电子设备40进行反向充电。
示例性的,图12为本申请实施例提供的另一种充电控制方法的流程图。参照图12所示,该充电控制方法可以应用于第一电子设备30,其具体可以包括如下步骤:
S1201,处理器向充电管理芯片发送关机指令。
S1202,充电管理芯片控制嵌入式控制器下电。
S1203,在第一电子设备处于关机状态,且第二电子设备的第二USB端口与第一USB端口连接的情况下,第二电子设备通过第二USB端口向第一USB端口提供第一供电信号。
S1204,第一USB端口将第一供电信号传输给电压转换模块,电压转换模块对第一供电信号进行电压转换,将电压转换后得到的第二供电信号发送至充电管理芯片,以唤醒充电管理芯片。
S1205,充电管理芯片根据第二供电信号生成唤醒信号。
S1206,充电管理芯片向嵌入式控制器发送唤醒信号,以唤醒嵌入式控制器。
S1207,在嵌入式控制器被唤醒的情况下,嵌入式控制器向第一PD芯片发送设备信息查询信令。
S1208,第一PD芯片将该设备信息查询信令发送至第二PD芯片。
S1209,第一PD芯片接收第二PD芯片返回的设备信息,该设备信息包括供电电压和供电电流。
S1210,第一PD芯片将设备信息发送至嵌入式控制器。
S1211,嵌入式控制器计算供电电压与供电电流的乘积,得到第二电子设备的供电功率。
S1212,嵌入式控制器根据供电功率,确定第二电子设备的设备类型。
S1213,当第二电子设备的设备类型为待充电设备时,嵌入式控制器获取第一电池的第一电量值。
图12所示的S1201至S1213的具体执行过程,与上述图6所示的S601至S613的具体执行过程类似,为避免重复,在此不再赘述。
S1214,嵌入式控制器通过第一PD芯片向第二PD芯片发送电量值获取请求;该电量值获取请求用于获取第二电子设备内的第二电池的第二电量值。
具体的,是嵌入式控制器304向第一PD芯片306发送电量值获取请求,第一PD 芯片306再将该电量值获取请求,依次经过第一USB端口307的CC1引脚和第二USB端口402中的CC1引脚,发送至第二PD芯片401。
S1215,第二PD芯片将根据电量值获取请求获取到的第二电池的第二电量值,通过第一PD芯片返回至嵌入式控制器。
第二PD芯片401在接收到第一PD芯片306发送的电量值获取请求之后,第二PD芯片401根据该电量值获取请求,获取第二电子设备40内的第二电池的第二电量值;然后,第二PD芯片401将第二电池的第二电量值,依次经过第二USB端口402中的CC1引脚和第一USB端口307的CC1引脚发送至第一PD芯片306,第一PD芯片306再将该第二电量值发送至嵌入式控制器304。
S1216,当第一电量值大于第二电量值时,嵌入式控制器向第一PD芯片发送供电角色切换信令。
嵌入式控制器304在获取到第一电池303的第一电量值以及第二电池的第二电量值后,将第一电量值与第二电量值进行比较,当确定第一电量值大于第二电量值时,嵌入式控制器304向第一PD芯片306发送供电角色切换信令,该供电角色切换信令用于切换第一电子设备30和第二电子设备40的供电角色。
例如,第一电量值为30%,第二电量值为10%,则嵌入式控制器304可以向第一PD芯片306发送供电角色切换信令。
S1217,第一PD芯片向第二PD芯片发送供电角色切换请求。
S1218,第一PD芯片接收第二PD芯片根据供电角色切换请求返回的响应信息,该响应信息表示第二电子设备同意切换供电角色。
S1219,第二PD芯片将第二电子设备的供电角色切换为受电设备。
图12所示的S1217至S1219的具体执行过程,与上述图6所示的S615至S617的具体执行过程类似,为避免重复,在此不再赘述。
S1220,第一PD芯片将第一电子设备的供电角色切换为供电设备。
当第一PD芯片306接收到第二PD芯片401返回的同意切换供电角色的响应信息之后,或者,第一PD芯片306接收到第二PD芯片401发送的电源已准备好的消息之后,第一PD芯片306将第一电子设备30的供电角色从受电设备切换为供电设备。
S1221,第一PD芯片向嵌入式控制器发送供电角色切换消息,该供电角色切换消息表示第一电子设备的供电角色已被切换为供电设备。
第一PD芯片306在将第一电子设备30的供电角色从受电设备切换为供电设备之后,生成供电角色切换消息,该供电角色切换消息表示第一电子设备30的供电角色已被切换为供电设备,然后,第一PD芯片306向嵌入式控制器304发送该供电角色切换消息,以通知嵌入式控制器304,第一电子设备30的供电角色已被切换为供电设备。
S1222,嵌入式控制器控制第一电池、充电管理芯片和第一USB端口所形成的充电通路导通。
如图13所示,在第一电池303与充电管理芯片302之间还串联有第二开关模块309,当第二开关模块309关闭时,第一电池303、充电管理芯片302和第一USB端口307之间的充电通路断开;当第二开关模块309导通时,第一电池303、充电管理芯片302和第一USB端口307之间的充电通路导通。
在一些实施例中,该第二开关模块309可以是一个开关晶体管,其栅极与嵌入式控制器304连接,源极与第一电池303连接,漏极与充电管理芯片302连接。并且,该开关晶体管可以为N型晶体管或P型晶体管。
需要说明的是,图13所示的第一电子设备30与图3所示的第一电子设备30的结构类似,只是图3所示的第一电子设备30中,第一电池303直接与充电管理芯片302连接,而图13所示的第一电子设备30中,第一电池303是通过第二开关模块309与充电管理芯片302连接的。
可以理解的是,本申请实施例中的第二开关模块309的位置不局限于第一电池303与充电管理芯片302之间,第二开关模块309只要设置在第一电池303、充电管理芯片302和第一USB端口307之间的充电通路中即可,例如,该第二开关模块309串联在充电管理芯片302与第一USB端口307之间。
因此,当嵌入式控制器304确定第一电子设备30的供电角色已被切换为供电设备时,嵌入式控制器304控制第二开关模块309导通,使得第一电池303、充电管理芯片302和第一USB端口307之间的充电通路导通。第一电池303提供的供电信号也就可以依次经过第二开关模块309、充电管理芯片302和第一USB端口307,输入至第二电子设备40的第二USB端口402。
并且,当第二电子设备40的供电角色从供电设备切换为受电设备时,图11所示的第二USB端口402中的Vbus引脚、第三开关晶体管M3、充电管理芯片(位于第二电子设备40内)以及第二电池之间的通路也处于导通状态,从而也就使得第一电子设备30输入至第二电子设备40的第二USB端口402的供电信号,可以依次经过第三开关晶体管M3和第二电子设备40内的充电管理芯片输入至第二电池,从而使得第一电子设备30内的第一电池303为第二电子设备40内的第二电池进行充电。
综上,本申请实施例在第一电子设备30处于关机状态时,使得嵌入式控制器304完全断电,以减少第一电池303的电量消耗,提高了第一电子设备30的电池续航能力;并且,当第一电子设备30的第一USB端口307与第二电子设备40的第二USB端口402连接时,采用第二电子设备40临时为第一电子设备30供电,以唤醒嵌入式控制器304,当嵌入式控制器304检测到第二电子设备40的设备类型为待充电设备,且第一电池303的第一电量值大于第二电子设备40内的第二电池的第二电量值时,嵌入式控制器304向第一PD芯片306发送供电角色切换信令,控制第一PD芯片306与第二PD芯片401进行供电角色的切换,嵌入式控制器304在接收到第一PD芯片306,已将第一电子设备30的供电角色切换为供电设备的供电角色切换消息后,嵌入式控制器再控制第一电池303、充电管理芯片302和第一USB端口307所形成的充电通路导通,使得第一电子设备30内的第一电池303,对手机、可穿戴设备、平板电脑等第二电子设备40进行反向充电。
另外,在S1222中,还可以通过嵌入式控制器304向充电管理芯片302发送控制指令,使得充电管理芯片302可以将第一电池提供的供电信号传输给电压转换模块308,进而再传输给第一USB端口307,从而使得第一电池303、充电管理芯片302和第一USB端口307所形成的充电通路导通。
当然,在实际使用过程中,也可以不参考第一电池303的第一电量值,只要根据 第二电子设备40的设备信息,确定第二电子设备40为待充电设备时,嵌入式控制器304可直接控制第一电池303对第二电子设备40进行充电。
并且,嵌入式控制器304控制第一电池303对第二电子设备40进行充电时,还可参照第二电子设备40的供电电压和供电电流,选择不同的充电模式对第二电子设备40进行充电。例如,当供电电压为5V,供电电流为3A时,可选择5V3A的充电模式对第二电子设备40进行充电,也可以选择5V2A的充电模式对第二电子设备40进行充电。
在一些实施例中,嵌入式控制器304还可以直接通过第一USB端口307发送的第一供电信号直接唤醒,而不是通过充电管理芯片302发送的第二供电信号唤醒的,如图14所示,第一USB端口307直接与嵌入式控制器304连接,充电管理芯片302直接与第一USB端口307连接。因此,第一USB端口307在接收到第二电子设备40发送的第一供电信号之后,直接将该第一供电信号作为唤醒信号,发送至嵌入式控制器304,以唤醒嵌入式控制器304。
后续第一电子设备30在第二电子设备40进行充电的过程中,第一电池303提供的供电信号是经过充电管理芯片302而直接传输至第一USB端口307的。
综上,本申请实施例中的第一电子设备30与第二电子设备40之间的交互过程可简化为图15所示,首先,第二电子设备40执行S1501,向第一电子设备30的第一USB端口307提供第一供电信号(此时,第一电子设备30为受电设备,第二电子设备40为供电设备;第一电子设备30在根据第一供电信号生成唤醒信号之后,唤醒嵌入式控制器304,在嵌入式控制器304被唤醒后,第一电子设备30执行S1502,获取第二电子设备40的设备信息;第一电子设备30内的嵌入式控制器304根据设备信息确定其是否符合条件,即根据设备信息判断第二电子设备40是否为待充电设备,当第二电子设备40为待充电设备时,嵌入式控制器304执行S1503,给第一PD芯片306下发供电角色切换信令,由第一PD芯片306进行供电角色切换;若将第一电子设备30的供电角色切换为供电设备,且第二电子设备40的供电角色切换为受电设备后,嵌入式控制器304执行S1504,控制第一电池303对第二电子设备40内的第二电池进行充电。
在本申请实施例中,进一步的,在第一电池303对第二电子设备40的充电过程中,嵌入式控制器304定时获取第一电池303的第三电量值;当第三电量值不满足预设条件时,嵌入式控制器304控制第一电池303停止对第二电子设备40进行充电。
在第一电池303对第二电子设备40的充电过程中,嵌入式控制器304每间隔预设时长获取一次第一电池303的第三电量值,例如,该预设时长可以为3分钟、5分钟等,当确定第三电量值小于或等于预设电量值,或者,第三电量值小于第二电池当前的第四电量值(即第三电量值获取时刻时第二电池的电量值)时,嵌入式控制器304可通过控制第一USB端口307与第二USB端口402之间的供电通路断开,使得第一电池303停止对第二电子设备40进行充电。
具体的,嵌入式控制器304向第一PD芯片306发送控制指令,使得第一PD芯片306可以通过控制第一接口控制器315,将第二开关晶体管M2设置为截止状态(第一开关晶体管M1也处于截止状态),则第一电池303提供的供电信号不会输入至第二 电子设备40,以防止第一电池303的电量消耗过多,而影响第一电子设备30的正常使用。
以上均针对的是在第一电子设备30处于关机状态的情况下,与第一电子设备30连接的第二电子设备40的设备类型为待充电设备,且第一电子设备30内的第一电池303的电量值满足预设条件时的充电控制方法。在本申请实施例中,还可存在以下几种情况:第一种情况,第一电子设备30还可在开机状态下对第二电子设备40进行充电;第二种情况,第一电子设备30处于关机状态,与第一电子设备30连接的第二电子设备40的设备类型为供电设备时,作为供电设备的第二电子设备40为第一电子设备30进行充电;第三种情况,第一电子设备30处于关机状态,第二电子设备40的设备类型为待充电设备,但是第一电子设备30内的第一电池303的电量值不满足预设条件,此时,需要断开第一USB端口307与第二USB端口402之间的供电通路。
下面结合具体的具体的充电流程示意图介绍本申请实施例的几种充电场景,图16为本申请实施例提供的第一电子设备处于不同场景下的充电流程示意图。参照图16,其具体可以包括如下步骤:
S1601,用户将第一电子设备的第一USB端口与第二电子设备的第二USB端口连接。
S1602,检测第一电子设备是否处于开机状态。
S1603,当第一电子设备处于开机状态时,第一电子设备作为供电设备,对第二电子设备进行充电。
S1604,当第一电子设备处于关机状态时,检测第一电子设备是否连接适配器。
当检测到第一电子设备30连接有适配器时,第一电子设备30依旧作为供电设备对第二电子设备40进行充电。
S1605,当第一电子设备未连接有适配器时,检测嵌入式控制器是否下电。
一般,触发第一电子设备30进行关机操作时,从第一电子设备30开始执行关机操作,到控制嵌入式控制器304下电完成之间有一定的间隔时间,如该间隔时间为10s,因此,在第一电子设备30执行关机操作后,检测嵌入式控制器304是否下电。
当嵌入式控制器304未下电时,即第一USB端口307与第二USB端口402连接的时刻,位于第一电子设备30开始执行关机操作,到嵌入式控制器304下电完成之间的间隔时间内,此时,第一电子设备30依旧作为供电设备对第二电子设备40进行充电。
S1606,当嵌入式控制器下电时,第二电子设备对第一电子设备进行临时供电,以唤醒嵌入式控制器。
此步骤的具体执行过程可参照上述S603至S606的执行过程,为避免重复,在此不再赘述。
S1607,在嵌入式控制器被唤醒的情况下,嵌入式控制器获取第二电子设备的供电功率,并确定供电功率是否小于或等于预设功率。
此步骤的具体执行过程可参照上述S607至S612的执行过程,为避免重复,在此不再赘述。
S1608,当供电功率小于或等于预设功率时,嵌入式控制器确定第一电池的第一电 量值是否满足预设条件。
其中,该预设条件为第一电量值大于预设电量值,或者,该预设条件为第一电量值大于第二电子设备内的第二电池的第二电量值。
S1609,当第一电池的第一电量值满足预设条件时,嵌入式控制器向第一PD芯片发送供电角色切换信令,以使第一PD芯片将第一电子设备的供电角色设置为供电设备。
此步骤的具体执行过程可参照上述S614至S618的执行过程,或者可参照上述S1216至S1220的执行过程,为避免重复,在此不再赘述。
当嵌入式控制器304控制第一PD芯片306将第一电子设备30的供电角色设置为供电设备,第一电子设备30对第二电子设备40进行充电。
S1610,当第一电池的第一电量值不满足预设条件时,嵌入式控制器控制第一USB端口与第二USB端口之间的供电通路断开。
也就是说,当第二电子设备40的设备类型为待充电设备,且第一电池303的第一电量值不满足预设条件时,嵌入式控制器304控制第一USB端口307与第二USB端口402之间的供电通路断开。
具体的,嵌入式控制器304向第一PD芯片306发送控制指令,使得第一PD芯片306可以通过控制第一接口控制器315,将第一开关晶体管M1设置为截止状态,则第二PD芯片401提供的供电信号不会再输入至第一PD芯片306,以节省第二电子设备40内的电池的电量。
或者,当第一电池303的第一电量值不满足预设条件时,也可以通过有第二电子设备40为第一电子设备30进行充电。
S1611,当供电功率大于预设功率时,嵌入式控制器继续控制第一PD芯片将第一电子设备的供电角色设置为受电设备。
S1612,第一电子设备接受第二电子设备对其的充电操作。
也就是说,当第二电子设备40的设备类型为供电设备时,嵌入式控制器304继续控制第一PD芯片306将第一电子设备30的供电角色设置为受电设备,以使第二电子设备40提供的供电信号经由第一USB端口307和充电管理芯片302输入至第一电池303,即实现第二电子设备40为第一电子设备30进行充电。
上面已对本申请实施例的充电控制方法进行了说明,下面对本申请实施例提供的执行上述充电控制方法的第一电子设备的结构进行描述。
图17为本申请实施例提供的第一电子设备的电路连接示意图。参照图17所示,该第一电子设备30包括处理器301、充电管理芯片302、第一电池303、嵌入式控制器304、第一PD芯片306和第一USB端口307,其连接关系可参照图3中示出的第一电子设备30的连接关系。
此外,第一电子设备30还包括显示屏310、传感器311和只读存储器(read only memory,ROM)芯片312等,处理器301分别与显示屏310、传感器311和ROM芯片312连接。
本领域技术人员可以理解,方法和装置可以相互结合和引用,本申请实施例提供的第一电子设备可以执行上述充电控制方法中的步骤。图18为本申请实施例提供的第 一电子设备的硬件结构示意图。
参照图18所示,第一电子设备30包括嵌入式控制器304、存储器313和接口电路314,其中,存储器313、嵌入式控制器304和接口电路314可以通信,示例性的,存储器313、嵌入式控制器304和接口电路314可以通过通信总线通信。
存储器313可以是只读存储器,静态存储设备,动态存储设备或者随机存取存储器(random access memory,RAM)。存储器313可以存储计算机程序,由嵌入式控制器304来控制执行,并由接口电路314来执行通信,从而实现本申请上述实施例提供的充电控制方法。
可能的实现方式中,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。可选的,接口电路314还可以包括发送器和/或接收器。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(digital subscriber line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
以上的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。

Claims (22)

  1. 一种充电控制方法,其特征在于,应用于第一电子设备,所述第一电子设备包括第一USB端口、第一电池,以及分别与所述第一USB端口和所述第一电池连接的嵌入式控制器,所述方法包括:
    在所述第一电子设备处于关机状态,且第二电子设备的第二USB端口与所述第一USB端口连接的情况下,所述嵌入式控制器接收唤醒信号;所述唤醒信号是根据所述第二电子设备向所述第一USB端口输入的第一供电信号生成的,且所述唤醒信号用于唤醒所述嵌入式控制器;
    在所述嵌入式控制器被唤醒的情况下,所述嵌入式控制器获取所述第二电子设备的设备信息;
    所述嵌入式控制器根据所述设备信息,通过所述第一电池对所述第二电子设备进行充电。
  2. 根据权利要求1所述的方法,其特征在于,所述嵌入式控制器根据所述设备信息,通过所述第一电池对所述第二电子设备进行充电,包括:
    所述嵌入式控制器根据所述设备信息,确定所述第二电子设备的设备类型;所述设备信息包括供电电压和/或供电电流;
    当所述第二电子设备的设备类型为待充电设备时,所述嵌入式控制器通过所述第一电池对所述第二电子设备进行充电。
  3. 根据权利要求2所述的方法,其特征在于,所述设备信息包括所述供电电流和所述供电电压;所述嵌入式控制器根据所述设备信息,确定所述第二电子设备的设备类型,包括:
    所述嵌入式控制器计算所述供电电流与所述供电电压的乘积,得到所述第二电子设备的供电功率;
    所述嵌入式控制器根据所述供电功率,确定所述第二电子设备的设备类型。
  4. 根据权利要求3所述的方法,其特征在于,所述嵌入式控制器根据所述供电功率,确定所述第二电子设备的设备类型,包括:
    当所述供电功率小于或等于预设功率时,所述嵌入式控制器确定所述第二电子设备的设备类型为待充电设备;
    当所述供电功率大于所述预设功率时,所述嵌入式控制器确定所述第二电子设备的设备类型为供电设备。
  5. 根据权利要求2所述的方法,其特征在于,所述设备信息包括所述供电电压;所述嵌入式控制器根据所述设备信息,确定所述第二电子设备的设备类型,包括:
    当所述供电电压小于或等于预设电压时,所述嵌入式控制器确定所述第二电子设备的设备类型为待充电设备;
    当所述供电电压大于所述预设电压时,所述嵌入式控制器确定所述第二电子设备的设备类型为供电设备。
  6. 根据权利要求2所述的方法,其特征在于,所述设备信息包括所述供电电流;所述嵌入式控制器根据所述设备信息,确定所述第二电子设备的设备类型,包括:
    当所述供电电流小于或等于预设电流时,所述嵌入式控制器确定所述第二电子设 备的设备类型为待充电设备;
    当所述供电电流大于所述预设电流时,所述嵌入式控制器确定所述第二电子设备的设备类型为供电设备。
  7. 根据权利要求2所述的方法,其特征在于,所述当所述第二电子设备的设备类型为待充电设备时,所述嵌入式控制器通过所述第一电池对所述第二电子设备进行充电,包括:
    当所述第二电子设备的设备类型为待充电设备时,所述嵌入式控制器获取所述第一电池的第一电量值;
    当所述第一电量值满足预设条件时,所述嵌入式控制器通过所述第一电池对所述第二电子设备进行充电。
  8. 根据权利要求7所述的方法,其特征在于,所述预设条件为所述第一电量值大于预设电量值。
  9. 根据权利要求7所述的方法,其特征在于,在所述当所述第一电量值满足预设条件时,所述嵌入式控制器通过所述第一电池对所述第二电子设备进行充电之前,还包括:
    所述嵌入式控制器获取所述第二电子设备内的第二电池的第二电量值;
    其中,所述预设条件为所述第一电量值大于所述第二电量值。
  10. 根据权利要求1所述的方法,其特征在于,所述第一电子设备还包括第一PD芯片,所述第一PD芯片连接于所述第一USB端口与所述嵌入式控制器之间;
    所述嵌入式控制器获取所述第二电子设备的设备信息,包括:
    所述嵌入式控制器向所述第一PD芯片发送设备信息查询信令;
    所述嵌入式控制器接收所述第一PD芯片根据所述设备信息查询信令返回的设备信息;所述设备信息是所述第一PD芯片从所述第二电子设备内的第二PD芯片中获取到的。
  11. 根据权利要求1所述的方法,其特征在于,所述第一电子设备还包括第一PD芯片和充电管理芯片,所述第一PD芯片连接于所述第一USB端口与所述嵌入式控制器之间,所述充电管理芯片连接于所述第一USB端口与所述第一电池之间;
    所述嵌入式控制器根据所述设备信息,通过所述第一电池对所述第二电子设备进行充电,包括:
    所述嵌入式控制器根据所述设备信息,向所述第一PD芯片发送供电角色切换信令,以使所述第一PD芯片根据所述供电角色切换信令,将所述第一电子设备的供电角色从受电设备切换为供电设备;
    其中,当所述第一电子设备的供电角色从受电设备切换为供电设备时,所述第一电池、所述充电管理芯片和所述第一USB端口所形成的充电通路导通。
  12. 根据权利要求1所述的方法,其特征在于,所述第一电子设备还包括第一PD芯片和充电管理芯片,所述第一PD芯片连接于所述第一USB端口与所述嵌入式控制器之间,所述充电管理芯片连接于所述第一USB端口与所述第一电池之间,所述充电管理芯片还与所述嵌入式控制器连接;
    所述嵌入式控制器根据所述设备信息,通过所述第一电池对所述第二电子设备进 行充电,包括:
    所述嵌入式控制器根据所述设备信息,向所述第一PD芯片发送供电角色切换信令;
    所述嵌入式控制器接收所述第一PD芯片根据所述供电角色切换信令返回的供电角色切换消息;
    当所述供电角色切换消息为所述第一电子设备的供电角色从受电设备切换为供电设备时,所述嵌入式控制器向所述充电管理芯片发送控制指令,以使得所述充电管理芯片将所述第一电池提供的供电信号传输给所述第一USB端口。
  13. 根据权利要求1所述的方法,其特征在于,所述第一电子设备还包括第一PD芯片、充电管理芯片和开关模块,所述第一PD芯片连接于所述第一USB端口与所述嵌入式控制器之间,所述充电管理芯片分别与所述第一USB端口和所述开关模块连接,所述开关模块还与所述第一电池和所述嵌入式控制器连接;
    所述嵌入式控制器根据所述设备信息,通过所述第一电池对所述第二电子设备进行充电,包括:
    所述嵌入式控制器根据所述设备信息,向所述第一PD芯片发送供电角色切换信令;
    所述嵌入式控制器接收所述第一PD芯片根据所述供电角色切换信令返回的供电角色切换消息;
    当所述供电角色切换消息为所述第一电子设备的供电角色从受电设备切换为供电设备时,所述嵌入式控制器控制所述开关模块导通,使得所述第一电池、所述充电管理芯片和所述第一USB端口所形成的充电通路导通。
  14. 根据权利要求1所述的方法,其特征在于,所述第一电子设备还包括充电管理芯片,所述充电管理芯片还分别与所述第一USB端口和所述嵌入式控制器连接,
    所述嵌入式控制器接收唤醒信号,包括:
    所述嵌入式控制器接收所述充电管理芯片发送的所述唤醒信号;所述唤醒信号是所述充电管理芯片在被第二供电信号唤醒后生成的,所述第二供电信号是根据所述第一供电信号生成的。
  15. 根据权利要求14所述的方法,其特征在于,所述第一电子设备还包括电压转换模块,所述电压转换模块连接于所述第一USB端口与所述充电管理芯片之间;
    所述充电管理芯片是被所述电压转换模块发送的所述第二供电信号唤醒的,且所述第二供电信号是所述电压转换模块对所述第一供电信号进行电压转换后生成的。
  16. 根据权利要求1所述的方法,其特征在于,所述嵌入式控制器接收唤醒信号,包括:
    所述嵌入式控制器接收所述第一USB端口发送的所述唤醒信号;所述唤醒信号为所述第二电子设备向所述第一USB端口输入的所述第一供电信号。
  17. 根据权利要求11至13中任一项所述的方法,其特征在于,在所述嵌入式控制器获取所述第二电子设备的设备信息之后,还包括:
    当根据所述设备信息确定所述第二电子设备的设备类型为供电设备时,所述嵌入式控制器继续控制所述第一PD芯片将所述第一电子设备的供电角色设置为受电设备, 以使所述第二电子设备提供的供电信号经由所述第一USB端口和所述充电管理芯片输入至所述第一电池。
  18. 根据权利要求7所述的方法,其特征在于,在所述嵌入式控制器获取所述第一电池的第一电量值之后,还包括:
    当所述第一电量值不满足所述预设条件时,所述嵌入式控制器控制所述第一USB端口与所述第二USB端口之间的供电通路断开。
  19. 根据权利要求7所述的方法,其特征在于,在所述嵌入式控制器通过所述第一电池对所述第二电子设备进行充电之后,还包括:
    在所述第一电池对所述第二电子设备进行充电的过程中,所述嵌入式控制器定时获取所述第一电池的第三电量值;
    当所述第三电量值不满足所述预设条件时,所述嵌入式控制器控制所述第一电池停止对所述第二电子设备进行充电。
  20. 一种电子设备,其特征在于,包括嵌入式控制器和存储器;
    所述存储器存储计算机执行指令;
    所述嵌入式控制器用于执行所述存储器存储的计算机执行指令,使得所述嵌入式控制器执行如权利要求1至19中任一项所述的充电控制方法。
  21. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令被运行时,实现如权利要求1至19中任一项所述的充电控制方法。
  22. 一种充电控制系统,其特征在于,所述充电控制系统包括第一电子设备和第二电子设备,所述第一电子设备为如权利要求20所述的电子设备;
    所述第二电子设备,用于在所述第一电子设备处于关机状态,且所述第二电子设备的第二USB端口与所述第一电子设备的第一USB端口连接的情况下,向所述第一电子设备提供第一供电信号;以及当所述第一电子设备内的嵌入式控制器被唤醒的情况下,接收所述第一电子设备输出的供电信号。
PCT/CN2022/114423 2021-09-26 2022-08-24 充电控制方法、电子设备及充电控制系统 WO2023045683A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22871736.9A EP4290731A4 (en) 2021-09-26 2022-08-24 CHARGING CONTROL METHOD, ELECTRONIC DEVICE AND CHARGING CONTROL SYSTEM
US18/549,056 US20240152192A1 (en) 2021-09-26 2022-08-24 Charging Control Method, Electronic Device, and Charging Control System

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111132066.2A CN115882535A (zh) 2021-09-26 2021-09-26 充电控制方法、电子设备及充电控制系统
CN202111132066.2 2021-09-26

Publications (1)

Publication Number Publication Date
WO2023045683A1 true WO2023045683A1 (zh) 2023-03-30

Family

ID=85719710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114423 WO2023045683A1 (zh) 2021-09-26 2022-08-24 充电控制方法、电子设备及充电控制系统

Country Status (4)

Country Link
US (1) US20240152192A1 (zh)
EP (1) EP4290731A4 (zh)
CN (1) CN115882535A (zh)
WO (1) WO2023045683A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319126A (zh) * 2023-11-29 2023-12-29 宁德时代新能源科技股份有限公司 芯片功耗控制方法、装置、计算机设备和存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116780697A (zh) * 2023-06-08 2023-09-19 深圳市海孜寻网络科技有限公司 带电量计低功耗保护的移动电源
CN118503061B (zh) * 2024-07-19 2024-10-01 中国电建集团华东勘测设计研究院有限公司 一种基于笔记本电脑搭载的长续航墨水屏电量显示方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411419A (zh) * 2010-09-20 2012-04-11 华擎科技股份有限公司 电脑装置及其对可携式电子装置的充电方法
KR20130044135A (ko) * 2011-10-21 2013-05-02 삼성전자주식회사 전자 기기의 충전 제어 방법 및 장치
CN203261052U (zh) * 2013-04-02 2013-10-30 国家电网公司 一种笔记本关机时用其电池充电的电路
CN106292989A (zh) * 2015-06-01 2017-01-04 联想(北京)有限公司 一种信息处理方法及电子设备
CN111478407A (zh) * 2020-05-20 2020-07-31 深圳市亿道数码技术有限公司 关机具有充电宝功能的笔记本电脑电源电路及笔记本电脑
CN112117798A (zh) * 2020-09-10 2020-12-22 深圳市蓝晨科技股份有限公司 一种笔记本电脑usb接口的关机充电电路

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3558059B2 (ja) * 2001-08-10 2004-08-25 セイコーエプソン株式会社 電源制御回路及び電子機器
US7413129B2 (en) * 2004-09-30 2008-08-19 Stmicroelectronics, Inc. USB device with secondary USB on-the-go function
US20080178011A1 (en) * 2007-01-18 2008-07-24 Nokia Corporation Method and apparatus for usb/otg connection providing active hnp requests and saving host power
JP4823352B2 (ja) * 2009-12-24 2011-11-24 株式会社東芝 情報処理装置
JP6738016B2 (ja) * 2016-07-27 2020-08-12 富士通クライアントコンピューティング株式会社 拡張装置、システム及びプログラム
US10503235B2 (en) * 2017-10-24 2019-12-10 Hing S Tong Wake from off state power system
TW202016734A (zh) * 2018-10-30 2020-05-01 緯創資通股份有限公司 系統效能控制裝置和方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411419A (zh) * 2010-09-20 2012-04-11 华擎科技股份有限公司 电脑装置及其对可携式电子装置的充电方法
KR20130044135A (ko) * 2011-10-21 2013-05-02 삼성전자주식회사 전자 기기의 충전 제어 방법 및 장치
CN203261052U (zh) * 2013-04-02 2013-10-30 国家电网公司 一种笔记本关机时用其电池充电的电路
CN106292989A (zh) * 2015-06-01 2017-01-04 联想(北京)有限公司 一种信息处理方法及电子设备
CN111478407A (zh) * 2020-05-20 2020-07-31 深圳市亿道数码技术有限公司 关机具有充电宝功能的笔记本电脑电源电路及笔记本电脑
CN112117798A (zh) * 2020-09-10 2020-12-22 深圳市蓝晨科技股份有限公司 一种笔记本电脑usb接口的关机充电电路

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4290731A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319126A (zh) * 2023-11-29 2023-12-29 宁德时代新能源科技股份有限公司 芯片功耗控制方法、装置、计算机设备和存储介质
CN117319126B (zh) * 2023-11-29 2024-04-02 宁德时代新能源科技股份有限公司 芯片功耗控制方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
EP4290731A1 (en) 2023-12-13
EP4290731A4 (en) 2024-09-18
US20240152192A1 (en) 2024-05-09
CN115882535A (zh) 2023-03-31

Similar Documents

Publication Publication Date Title
WO2023045683A1 (zh) 充电控制方法、电子设备及充电控制系统
WO2021082731A1 (zh) 一种电子设备及反向充电方法
US7193442B2 (en) USB 1.1 for USB OTG implementation
CN202872406U (zh) 一种接口复用电路及移动终端
US8769317B2 (en) USB hub for supplying power upon determination whether a USB device is chargeable according to data transfer rate of the USB device
CN108733609B (zh) 双usb接口的切换电路、智能切换装置以及切换方法
US20160004650A1 (en) Portable device, cable assembly, and usb system
CN109672950B (zh) 一种基于Type-C耳机的省电电路和省电方法
US11048315B2 (en) Remote wake-up of mobile devices
WO2018014471A1 (zh) 终端、终端外设、信号发送及接收方法、数据传输系统
CN101243374A (zh) 改进的移动设备充电
CN105917288B (zh) 电力状态控制信号
US10136223B1 (en) Control method and control system for audio device
CN109921481A (zh) Usb通讯时对通讯对象供电的otg设备及供电方法
WO2021093627A1 (zh) 电子设备、电子设备接口控制方法及系统
CN110018976A (zh) Usb主设备响应usb从设备方法及相关设备
EP4336309A1 (en) Electronic device, device identification method, and charging system
CN109564557A (zh) 单线通信方法及设备
JP2019185771A (ja) ブルートゥーススピーカーデータ処理の方法、装置及びブルートゥーススピーカー
CN113162161A (zh) 一种基于Type-c接口的充放电电路控制方法、电路以及控制器
JP2019193331A (ja) コントローラ、制御方法、制御プログラム
WO2022095606A1 (zh) 信息读取方法、设备、线缆、充电系统及计算机存储介质
CN116707055B (zh) 充电电路、电子设备及反向充电方法
WO2024027208A1 (zh) 充电电路、电子设备、充电系统及反向充电方法
WO2017132864A1 (zh) 一种vr设备usb主从切换方法以及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22871736

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18549056

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2022871736

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022871736

Country of ref document: EP

Effective date: 20230907

NENP Non-entry into the national phase

Ref country code: DE