CN115864609B - Electronic equipment and charging method - Google Patents

Electronic equipment and charging method Download PDF

Info

Publication number
CN115864609B
CN115864609B CN202310157759.XA CN202310157759A CN115864609B CN 115864609 B CN115864609 B CN 115864609B CN 202310157759 A CN202310157759 A CN 202310157759A CN 115864609 B CN115864609 B CN 115864609B
Authority
CN
China
Prior art keywords
module
charging
controller
switch
diode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310157759.XA
Other languages
Chinese (zh)
Other versions
CN115864609A (en
Inventor
张庭唯
王丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310745543.5A priority Critical patent/CN116914878A/en
Priority to CN202310157759.XA priority patent/CN115864609B/en
Publication of CN115864609A publication Critical patent/CN115864609A/en
Application granted granted Critical
Publication of CN115864609B publication Critical patent/CN115864609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • 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/00036Charger exchanging data with battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • 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/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00304Overcurrent protection
    • 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/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00308Overvoltage protection
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/00714Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery charging or discharging current
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/30Charge provided using DC bus or data bus of a computer

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

An electronic device and a charging method relate to the technical field of terminals. The first branch of the electronic equipment comprises a first switch module, and the first end of the first branch is connected with a first Type-C interface. The second branch comprises a second switch module, and the first end of the second branch is connected with a second Type-C interface; the control ends of the first switch module and the second switch module are connected with the PD module and the controller through diode circuits. The PD module stops charging the equipment to be charged according to the first charging specification when the equipment to be charged supports the second charging specification of the charger; and when the PD module determines that the equipment to be charged supports the second charging specification of the charger, the controller controls the second switch module to be closed so that the charger charges the equipment to be charged according to the second charging specification. When the electronic equipment is charged rapidly by using one Type-C interface, the accessed equipment can be charged rapidly by using other Type-C interfaces, so that the hardware cost is low, and the practicability is high.

Description

Electronic equipment and charging method
Technical Field
The application relates to the technical field of terminals, in particular to electronic equipment and a charging method.
Background
Current personal computer (personal computer, PC) products such as Desktop, all-in-one, and Notebook (Notebook or Laptop) generally include at least two universal serial bus (Universal Serial Bus, USB) Type-C interfaces, hereinafter referred to as Type-C interfaces. The PC may charge or charge other electronic devices using the Type-C interface.
Currently, the Type-C interface of PC products supports the USB Power Delivery (PD) charging protocol, and generally only provides a charging Power of 5V/3A to the connected external electronic device at maximum, that is, the maximum external charging Power is 15W. For accessing to a U disk, USB OTG (On-The-Go) and other devices or application of a mobile phone transmission file scene can be adapted, but The requirements of users for realizing higher-power quick charging of other electronic devices by using PC products cannot be met due to The limitation of The maximum output power of The PC products.
Disclosure of Invention
In order to solve the problems, the application provides electronic equipment and a charging method, so that the electronic equipment can utilize one Type-C interface to rapidly charge the Sink equipment which is externally connected with the electronic equipment while utilizing other Type-C interfaces to rapidly charge the electronic equipment, and the electronic equipment is low in hardware cost and high in practicability.
In a first aspect, the present application provides an electronic device, including a charging circuit, a power transfer PD module, a controller, a diode circuit, and at least two branches: a first branch and a second branch. The first branch comprises a first switch module, and a first end of the first branch is connected with a first Type-C interface; the second branch comprises a second switch module, and the first end of the second branch is connected with a second Type-C interface; the second ends of the first branch and the second branch are connected with the input end of the charging circuit in parallel; the control ends of the first switch module and the second switch module are connected with the PD module and the controller through the diode circuit; the PD module is used for controlling the first switch module to be closed when the first Type-C interface is connected with a charger and the second Type-C interface is connected with equipment to be charged, so that the charging circuit charges the electronic equipment, controlling the second switch module to be opened and charging the equipment to be charged according to a first charging specification; stopping charging the equipment to be charged according to the first charging specification when the equipment to be charged supports the second charging specification of the charger; and the controller is used for controlling the second switch module to be closed after the PD module determines that the to-be-charged equipment supports the second charging specification of the charger, so that the charger charges the to-be-charged equipment according to the second charging specification.
Each GPIO interface is connected with the control end of a corresponding switch module through a diode in the diode circuit, and when the charging power corresponding to the second charging specification is larger than the charging power corresponding to the first charging specification, the quick charging of the equipment to be charged can be realized. The first switch module and the second switch module adopt two switch tubes which are connected in series back to back.
By means of the technical scheme, the electronic equipment is not added with a complex IC, only the diode with a simple structure and low hardware cost is added, so that the electronic equipment can be rapidly charged by utilizing one Type-C interface and simultaneously rapidly charged by utilizing other Type-C interfaces to externally-connected Sink equipment, the function of rapidly charging a plurality of electronic equipment by utilizing one external charger is achieved, the rapid charging requirement of a user is met, and the user experience is improved. The scheme has low hardware cost, is easy to realize and has higher practicability.
In one possible implementation, the diode circuit includes: a first diode, a second diode, a third diode, and a fourth diode; the anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module; the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module; the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module; and the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module. The diode circuit has low hardware cost and is easy to realize.
In one possible implementation, the PD module specifically includes: a first switch and a second switch. The first ends of the first switch and the second switch are connected with the input voltage of the PD module; the second end of the first switch is connected between the first Type-C interface and the first switch module; and a second end of the second switch is connected between the second Type-C interface and the second switch module. The PD module is specifically configured to control a first GPIO port of the PD module to be at a high level, control a second GPIO port of the PD module to be at a low level, and control the second switch to be closed when the first Type-C interface is connected with a charger and the second Type-C interface is connected with a device to be charged; and when the equipment to be charged supports a second charging specification of the charger, controlling the second switch to be disconnected. The controller is specifically configured to control the second GPIO port of the controller to be at a high level after the PD module controls the second switch to be opened, so that the second switch module is closed.
In the process of switching from the first charging specification to the second charging specification, the PD module firstly controls the second switch to be disconnected so as to interrupt the charging of the equipment to be charged with the first charging specification. And then the controller controls the second switch module to be closed, so that the damage of the PD module or the damage of a power conversion circuit for providing input voltage for the PD module caused by the fact that the high current and the high voltage of the charger are directly applied to the PD module through the switch can be avoided.
In one possible implementation manner, the controller is further configured to control the second GPIO port of the controller to be at a low level when the charging of the device to be charged according to the second charging specification needs to be stopped. And the PD module is also used for controlling the second switch to be closed after the controller controls the second GPIO port of the controller to be in a low level so as to charge the equipment to be charged according to the first charging specification.
In the process of switching from the second charging specification to the first charging specification, the controller firstly controls the second switch module to be closed, then the PD module controls the second switch to be opened, and the damage of the PD module or the damage of a power conversion circuit providing input voltage for the PD module caused by the fact that high current and high voltage of the charger are directly applied to the PD module through the switch can be avoided.
In one possible implementation manner, the controller is specifically configured to determine that the charging of the device to be charged according to the second charging specification needs to be stopped when the electronic device starts a performance mode, or when a user selects to stop the charging of the device to be charged according to the second charging specification at an operating system interface of the electronic device, or when the device to be charged is full of electricity.
In a possible implementation manner, the PD module is further configured to notify the controller that the device to be charged is disconnected at this time when it is detected that the device to be charged is disconnected from the second Type-C interface. The controller is also used for controlling the second GPIO port of the controller to be in a low level when the equipment to be charged is confirmed to be disconnected.
And when the equipment to be charged is disconnected with the second Type-C interface, stopping outputting the equipment to be charged according to the second charging specification, wherein the controller controls the second GPIO port to be at a low level so as to disconnect the second switch module, and the charger supplies power for the electronic equipment through the first switch module.
In a possible implementation manner, the PD module is further configured to control the first GPIO port of the PD module to be at a low level when it is detected that the charger is disconnected from the first Type-C interface, and inform the controller that the charger is disconnected at this time; and controlling the second switch to be closed when the second GPIO port of the controller is confirmed to be switched to a low level. The controller is further configured to control the second GPIO port of the controller to be low and inform the PD module that the second GPIO port of the controller has been switched to be low when the charger is confirmed to be disconnected.
In one possible implementation, the first diode, the second diode, the third diode, the fourth diode, the fifth diode, and the sixth diode; the anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module; the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module; the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module; the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module; the anode of the fifth diode is connected with the PD module, and the cathode of the fifth diode is connected between the first Type-C interface and the first switch module; and the anode of the sixth diode is connected with the PD module, and the cathode of the sixth diode is connected between the second Type-C interface and the second switch module.
The function of the added fifth and sixth diodes is:
in the process of switching from the first charging specification to the second charging specification, the second switch is kept on, the controller can control the GPIO port to be pulled high so as to enable the second switch module to be connected, at the moment, current and voltage cannot be reversely fed into the power transmission module, and then the power transmission module controls the second switch inside to be disconnected, so that the situation that the equipment to be charged is temporarily powered down in the process of switching from the first charging specification to the second charging specification is avoided;
in the process of switching from the second charging specification to the first charging specification, the second switch can be conducted in advance, at the moment, current and voltage cannot be reversely fed into the power transmission module, and then the controller controls the GPIO port to be pulled down so as to disconnect the second switch module, and further the situation that the equipment to be charged is powered down temporarily in the process of switching from the second charging specification to the first charging specification is avoided.
In one possible implementation, the PD module specifically includes: a first switch and a second switch. The first ends of the first switch and the second switch are connected with the input voltage of the PD module; the second end of the first switch is connected with the anode of the fifth diode; the second end of the first switch is connected with the anode of the sixth diode. The PD module is specifically configured to control a first GPIO port of the PD module to be at a high level, control a second GPIO port of the PD module to be at a low level, and control the second switch to be closed when the first Type-C interface is connected with a charger and the second Type-C interface is connected with a device to be charged; when the equipment to be charged is detected to support the second charging specification, informing the controller that the equipment to be charged supports the second charging specification; and controlling the second switch to be turned off when it is confirmed that the second GPIO port of the controller has been switched to a high level. The controller is specifically configured to control the second GPIO port of the controller to be at a high level when it is determined that the to-be-charged device supports the second charging specification, so that the second switch module is closed, and inform the PD module that the second GPIO port of the controller has been switched to be at the high level.
That is, in the process of switching from the first charging specification to the second charging specification, the second switch is maintained on first, the controller controls the GPIO port to be pulled high first so that the second switch module is turned on, at this time, the current and the voltage cannot be reversely fed to the power transmission module, and then the power transmission module controls the second switch inside to be turned off, so that the situation that the equipment to be charged is temporarily powered down is avoided.
In one possible implementation manner, the PD module is further configured to control the second switch to be closed and inform the controller that the second switch is already closed when it is required to stop charging the device to be charged according to the second charging specification; the controller is also used for controlling the second GPIO port of the controller to be in a low level when the second switch is confirmed to be closed.
That is, in the process of switching from the second charging specification to the first charging specification, the second switch is turned on first, at this time, the current and the voltage are limited by the diode and cannot be reversely fed to the power transmission module, and then the controller controls the GPIO port to be pulled down so as to disconnect the second switch module, thereby avoiding the situation that the equipment to be charged is temporarily powered down in the process of switching from the second charging specification to the first charging specification.
In a possible implementation manner, the PD module is specifically configured to determine that the charging of the device to be charged according to the second charging specification needs to be stopped when the electronic device starts a performance mode, or a user selects to stop the charging of the device to be charged according to the second charging specification at an operating system interface of the electronic device, or the device to be charged is full of electricity.
In a possible implementation manner, the PD module is further configured to notify the controller that the device to be charged is disconnected at this time when it is detected that the device to be charged is disconnected from the second Type-C interface. And the controller is also used for controlling the second GPIO port of the controller to be in a low level when the equipment to be charged is confirmed to be disconnected.
In one possible implementation manner, the PD module is further configured to, when detecting that the charger is disconnected from the first Type-C interface, control the first GPIO port of the PD module to be at a low level, control the second switch to be closed, and then inform the controller that the charger is disconnected at this time. And the controller is also used for controlling the second GPIO port of the controller to be in a low level when the charger is confirmed to be disconnected.
In a possible implementation manner, the PD module is specifically configured to send a charging capability message to the device to be charged, where the charging capability message carries a charging current parameter and a charging voltage parameter corresponding to the second charging specification; and when receiving a request message sent by the equipment to be charged, determining that the equipment to be charged supports the second charging specification, wherein the request message is used for indicating the equipment to be charged to support the second charging specification and requesting to charge according to the second charging specification.
In one possible implementation, the charging power corresponding to the second charging specification is greater than the charging power corresponding to the first charging specification. For example, the second charging specification may be 20V charging voltage, 3A charging current, or 20V charging voltage, 5A charging current, etc.; the first charging specification may be a 5V charging voltage, a 3A charging current.
In one possible implementation, the controller is in particular an embedded controller (Embedded Controller, EC).
In a possible implementation, the electronic device further comprises a central processing unit CPU. And the CPU is used for controlling the electronic equipment to perform popup window prompt on an operating system interface when the equipment to be charged supports the second charging specification of the charger so as to inquire whether to start charging the equipment to be charged according to the second charging specification.
In one possible implementation manner, the CPU is further configured to control the electronic device to perform a popup prompt on the operating system interface when the charging specification of the device to be charged is switched from the first charging specification to the second charging specification, or when the charging specification of the device to be charged is switched from the second charging specification to the first charging specification, so as to prompt that the switching of the charging specification occurs currently.
In one possible implementation, the electronic device further includes a power conversion circuit, an output of which is connected to the PD module. The power conversion circuit is used for providing an input voltage of the PD module. The input voltage of the power conversion circuit may be obtained from the output of the charging circuit.
In one possible implementation, the power conversion circuit is a buck (buck) circuit.
In one possible implementation, the electronic device is a PC device, including but not limited to a Desktop (Desktop), a kiosk, and a Notebook (Notebook).
In a second aspect, the present application further provides a charging method applied to an electronic device, and specific implementation manner of the electronic device may be referred to the above first aspect, which is not repeated herein. The method comprises the following steps:
When the first Type-C interface is connected with a charger and the second Type-C interface is connected with equipment to be charged, the PD module controls the first switch module to be closed so that the charging circuit charges the electronic equipment, controls the second switch module to be opened and charges the equipment to be charged according to a first charging specification;
when the to-be-charged equipment supports a second charging specification of the charger, the PD module stops charging the to-be-charged equipment according to the first charging specification;
and when the PD module determines that the to-be-charged equipment supports the second charging specification of the charger, the controller controls the second switch module to be closed so that the charger charges the to-be-charged equipment according to the second charging specification.
By the method, the electronic equipment can be rapidly charged by using one Type-C interface and simultaneously rapidly charged by using other Type-C interfaces, namely, the function of rapidly charging a plurality of electronic equipment by using one external charger is realized, the rapid charging requirement of a user is met, and the user experience is improved. The scheme has low hardware cost, is easy to realize and has higher practicability.
In one possible implementation, the diode circuit includes: a first diode, a second diode, a third diode, and a fourth diode; the anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module; the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module; the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module; and the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module.
In one possible implementation manner, the PD module controls the first switch module to be turned on, so that the charging circuit charges the electronic device, controls the second switch module to be turned off, and charges the device to be charged according to a first charging specification, and specifically includes:
the PD module controls a first GPIO port of the PD module to be in a high level, controls a second GPIO port of the PD module to be in a low level, and controls the second switch to be closed;
The PD module stops charging the equipment to be charged according to the first charging specification, and specifically comprises the following steps:
the PD module controls the second switch to be disconnected;
the controller controls the second switch module to be closed, and the method specifically comprises the following steps:
and when the PD module controls the second switch to be opened, the controller controls the second GPIO port of the controller to be at a high level so as to enable the second switch module to be closed.
In one possible implementation, the method further includes:
when the controller needs to stop charging the equipment to be charged according to the second charging specification, controlling a second GPIO port of the controller to be in a low level;
and the PD module controls the second switch to be closed after the controller controls the second GPIO port of the controller to be in a low level so as to charge the equipment to be charged according to the first charging specification.
In one possible implementation manner, when the controller needs to stop charging the device to be charged according to the second charging specification, the controller controls the second GPIO port of the controller to be at a low level, and specifically includes:
the controller determines that the charging of the equipment to be charged according to the second charging specification is required to be stopped when the performance mode of the electronic equipment is started, or a user selects to stop the charging of the equipment to be charged according to the second charging specification on an operating system interface of the electronic equipment, or the equipment to be charged is full of electricity;
The controller controls the second GPIO port of the controller to be low level.
In one possible implementation, the method further includes:
the PD module informs the controller that the equipment to be charged is disconnected at the moment when detecting that the equipment to be charged is disconnected with the second Type-C interface;
and when the controller confirms that the equipment to be charged is disconnected, controlling a second GPIO port of the controller to be in a low level.
In one possible implementation, the method further includes:
when the PD module detects that the charger is disconnected with the first Type-C interface, controlling a first GPIO port of the PD module to be in a low level, and informing the controller that the charger is disconnected at the moment; and when the second GPIO port of the controller is confirmed to be switched to a low level, controlling the second switch to be closed;
and when the controller confirms that the charger is disconnected, controlling the second GPIO port of the controller to be at a low level, and informing the PD module that the second GPIO port of the controller is switched to be at the low level.
In one possible implementation, the first diode, the second diode, the third diode, the fourth diode, the fifth diode, and the sixth diode;
The anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module;
the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module;
the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module;
the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module;
the anode of the fifth diode is connected with the PD module, and the cathode of the fifth diode is connected between the first Type-C interface and the first switch module;
and the anode of the sixth diode is connected with the PD module, and the cathode of the sixth diode is connected between the second Type-C interface and the second switch module.
In one possible implementation manner, the PD module controls the first switch module to be turned on, so that the charging circuit charges the electronic device, controls the second switch module to be turned off, and charges the device to be charged according to a first charging specification, and specifically includes:
The PD module controls a first GPIO port of the PD module to be in a high level, controls a second GPIO port of the PD module to be in a low level, and controls the second switch to be closed;
the PD module stops charging the equipment to be charged according to the first charging specification, and specifically comprises the following steps:
the PD module informs the controller that the equipment to be charged supports the second charging specification;
the PD module controls the second switch to be disconnected when confirming that the second GPIO port of the controller is switched to a high level;
the controller controls the second switch module to be closed, and the method specifically comprises the following steps:
the controller controls the second GPIO port of the controller to be in a high level so as to enable the second switch module to be closed, and informs the PD module that the second GPIO port of the controller is switched to be in the high level.
In one possible implementation, the method further includes:
when the PD module needs to stop charging the equipment to be charged according to the second charging specification, the second switch is controlled to be closed, and the controller is informed that the second switch is closed;
the controller controls the second GPIO port of the controller to be low level when confirming that the second switch has been closed.
In one possible implementation manner, when the PD module needs to stop charging the device to be charged according to the second charging specification, the second switch is controlled to be closed, which specifically includes:
the PD module determines that the charging of the equipment to be charged according to the second charging specification is required to be stopped when the performance mode of the electronic equipment is started, or a user selects to stop the charging of the equipment to be charged according to the second charging specification on an operating system interface of the electronic equipment, or the equipment to be charged is full of electricity;
the PD module controls the second switch to be closed.
In one possible implementation, the method further includes:
the PD module informs the controller that the equipment to be charged is disconnected at the moment when detecting that the equipment to be charged is disconnected with the second Type-C interface;
and when the controller confirms that the equipment to be charged is disconnected, controlling a second GPIO port of the controller to be in a low level.
In one possible implementation, the method further includes:
when the PD module detects that the charger is disconnected with the first Type-C interface, the first GPIO port of the PD module is controlled to be in a low level, the second switch is controlled to be closed, and then the controller is informed that the charger is disconnected at the moment;
And when the controller confirms that the charger is disconnected, controlling a second GPIO port of the controller to be at a low level.
In one possible implementation, the method further includes:
when the equipment to be charged supports the second charging specification of the charger, controlling the electronic equipment to carry out popup window prompt on an operating system interface so as to inquire whether to start charging of the equipment to be charged according to the second charging specification.
In one possible implementation, the method further includes:
when the charging specification of the equipment to be charged is switched from the first charging specification to the second charging specification, or when the charging specification of the equipment to be charged is switched from the second charging specification to the first charging specification, controlling the electronic equipment to carry out popup prompt on the operating system interface so as to prompt that the switching of the charging specification is currently carried out.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a circuit diagram of Type-C interface charging or external charging of a PC according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a flowchart one of a fast charging process of a Sink device by a PC device according to an embodiment of the present application;
FIG. 5 is a schematic diagram I of a pop-up window interface according to an embodiment of the present disclosure;
FIG. 6 is a second schematic diagram of a pop-up window interface according to an embodiment of the present disclosure;
fig. 7 is a flowchart of a fast charge failure provided in an embodiment of the present application;
fig. 8 is a schematic diagram III of a popup window interface according to an embodiment of the present application;
fig. 9 is a schematic diagram one of stopping fast charging of Sink equipment according to an embodiment of the present application;
FIG. 10 is a schematic diagram I of an OS interface provided in an embodiment of the present application;
fig. 11 is a second schematic diagram of stopping rapid charging of Sink equipment according to the embodiment of the present application;
fig. 12 is a schematic diagram fourth of a pop-up window interface provided in an embodiment of the present application;
fig. 13 is a third schematic diagram of stopping rapid charging of Sink equipment according to the embodiment of the present application;
fig. 14 is a schematic diagram fifth of a pop-up window interface provided in an embodiment of the present application;
fig. 15 is a schematic diagram IV for stopping rapid charging of Sink equipment according to the embodiment of the present application;
fig. 16 is a schematic diagram sixth of a pop-up window interface provided in an embodiment of the present application;
fig. 17 is a schematic diagram of another electronic device according to an embodiment of the present disclosure;
fig. 18 is a second flowchart of a fast charging of Sink devices by a PC device according to an embodiment of the present application;
Fig. 19 is a fifth schematic diagram of stopping rapid charging of Sink equipment according to the embodiment of the present application;
fig. 20 is a sixth schematic diagram of stopping rapid charging of Sink equipment according to the embodiment of the present application;
fig. 21 is a schematic diagram seventh for stopping rapid charging of Sink equipment according to an embodiment of the present application.
Detailed Description
In order to make the technical personnel in the technical field more clearly understand the scheme of the application, the application scenario of the technical scheme of the application is first described below.
The technical scheme of the application is applied to Desktop (Desktop), all-in-one machine, notebook (Notebook or Laptop) and other electronic devices comprising at least two Type-C interfaces and personal computers (personal computer, PC) or other electronic devices comprising two Type-C interfaces, and the structure of the electronic devices is first described below.
Referring to fig. 1, a schematic structural diagram of an electronic device according to an embodiment of the present application is provided.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna group 1, an antenna group 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, for a desktop device or an all-in-one device, the SIM card interface, antenna group 1, and mobile communication module may not be included; the antenna group 1 and the mobile communication module may not be included in the notebook computer.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The wireless communication function of the electronic device 100 may be implemented by the antenna group 1, the antenna group 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like, which are not described herein.
The electronic device may further include other types of interfaces that conform to USB standard specifications, such as Mini USB interface, micro USB interface, and the like, in addition to the Type-C interface.
In this embodiment, an electronic device includes two Type-C interfaces as an example, and in practical application, the electronic device may further include a greater number of Type-C interfaces.
The Type-C interface may be used to connect a charger to charge the electronic device 100, e.g., the Type-C interface 130 of FIG. 1 connects to an external charging input; and may also be used to transfer data between the electronic device 100 and peripheral devices. And can also be used for connecting with a headset, and playing audio through the headset. The interface can also be used for connecting other electronic equipment, such as AR equipment and the like, mobile phone equipment and the like, and further connecting the equipment for charging.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130.
For an electronic device applying the Type-C interface, the charging management module 140 may support a USB Power Delivery (PD) charging protocol.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
In order to make the person skilled in the art more clearly understand the scheme of the application, the implementation manner of charging and externally charging the electronic device currently including the Type-C interface is described below by taking the electronic device as a PC. The external charger in the following description is referred to as a charger.
Referring to fig. 2, the diagram is a circuit diagram of Type-C interface charging or external charging of a PC according to an embodiment of the present application.
The PC includes two Type-C interfaces, a first Type-C interface 21 and a second Type-C interface 22, respectively. The electronic device further comprises a charging circuit 23, a controller 24, a Power Delivery (PD) module 25 and a Power conversion circuit 26.
Taking the example that the PC device is connected to the external charger by using the first Type-C interface 21, and the external device is connected to the external device by using the second Type-C interface 22 and supplies power to the external device, the charging is described.
When the first Type-C interface 21 is connected to an external charger (not shown in the figure) for charging, handshaking is achieved between the external charger and the PC through a cable. The following describes the specific communication flow of the PD power supply protocol.
During the charging process, the external charger is used for providing power and is a charging terminal (represented by Source); the PC device is used for receiving power supply and is a consumer terminal (indicated by Sink).
When the Type-C interface is a power supply party, the USB role of the device is a downlink port (Downstream Facing Part, DFP); when the Type-C interface is a consumer, the USB role of the device is upstream (Upstream Facing Part, UFP). The working state of the downlink port is a USB host, and the working state of the uplink port is a USB external device.
In the charging process, after the sender of the information sends the information to the receiver, the receiver receives the information and confirms that the cyclic redundancy check (Cyclic Redundancy Check, CRC) is correct, and the good CRC message should be replied to the sender to indicate that the receiver correctly receives the message sent by the sender. Otherwise the sender waits for a timeout (the timeout threshold may be set to a length of time of about 0.9-1.1 ms, for example) to resend the original message. If the sender does not receive the GoodCRC after multiple transmissions (e.g., three transmissions), the message transmission is considered to be failed.
The message is sent by the sending information and the GoodCRC reply.
The process of the external charger charging the PC device through the first Type-C interface 21 is as follows:
the external charger and the PC device recognize the external charger as a Source device and the PC as a Sink device through CC pin handshake of the first Type-C interface 21.
The power transmission module 25 pulls up a General-purpose input/output (GPIO) interface corresponding to the first Type-C interface 21, i.e., pulls up pd_gpio1.
Taking S1 and S2 in the path shown in L1 as N-Metal-Oxide-Semiconductor Filed Effect Transistor, N-MOSFET, hereinafter referred to as NMOS transistor as an example.
After pulling up the pd_gpio1, both S1 and S2 are turned on, and the voltage and current supplied by the external charger pass through S1, S2 and the charging circuit 23 to power the system of the PC device and charge the battery of the PC device.
The current design scheme is that the circuits of the first Type-C interface 21 and the second Type-C interface 22 are connected into a path after passing through an NMOS tube, and then are connected with the input end of the charging circuit 23. The purpose of placing two NMOS tubes per channel is to prevent one channel from flowing current back into the channel of the other Type-C interface when charging. The charging power of the external charger of the current PC device can reach 100W and above.
When the first Type-C interface 21 is connected with an external charger or the first Type-C interface 21 is not connected with an external charger, the external charging path of the PC device is L2.
Taking the second Type-C interface 22 as an example, the power consumers such as other PCs, mobile phones, U discs, OTGs and the like access, the power consumers can handshake with the PC device through the CC pin of the second Type-C interface 22. When the current PC is identified as a Source device and the device accessing the second Type-C interface 22 is identified as a Sink device, the power transmission module 25 turns on a switch (switch) corresponding to the second Type-C interface 22, that is, turns on the switch SW2.
After SW2 is turned on, the power conversion circuit 26 performs boost conversion to output a voltage of 5V, and supplies power to the connected Sink device, which is only 5V/3A at maximum according to the PD protocol.
For the Type-C interface, the Pin Pin is connected to VBUS both when the PC is charged and when the PC is charged to the external Sink device.
At present, the PC equipment can only provide 5V/3A charging power for the connected external Sink equipment at maximum, namely the maximum external charging power is 15W. For accessing to USB flash disk, USB OTG and other devices or application of mobile phone transmission file scene can adapt, but is limited by the maximum output power of PC products, and can not meet the requirement of users for realizing higher power quick charge of PC, mobile phone and other electronic devices by using PC products. For example: the user currently has only one external charger, and needs to rapidly charge two PCs or 2 devices such as a PC and a mobile phone at the same time, and the current scheme can only rapidly charge one device with high power, and the other device can only charge with low power.
In order to solve the technical problems, the application provides the electronic equipment and the charging method, so that the PC equipment can carry out high-power quick charging on other electronic equipment connected with the Type-C interface, and can realize the quick charging on two PCs or 2 equipment such as the PC and the mobile phone simultaneously when a user currently has only one external charger, thereby improving the user experience.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The words "first," "second," and the like in the description herein are used for descriptive purposes only and are not to be interpreted as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
In the present application, unless explicitly specified and limited otherwise, the term "coupled" is to be construed broadly, and for example, "coupled" may be either fixedly coupled, detachably coupled, or integrally formed; may be directly connected or indirectly connected through an intermediate medium.
Referring to fig. 3, a schematic diagram of an electronic device according to an embodiment of the present application is shown.
The electronic device includes at least two Type-C interfaces. For convenience of explanation, the embodiment of the application uses the electronic device as a PC device, and includes a first Type-C interface 21 and a second Type-C interface 22 as an example.
The electronic device further includes a charging circuit 23, a controller 24, a Power Delivery (PD) module 25, a Power conversion circuit 26, a CPU27, and a diode circuit 28.
The controller 24 of the present embodiment may be an embedded controller (Embedded Controller, EC), which is actually a single-chip microcomputer, and is used for power management, battery management, etc. in a notebook computer.
The technical scheme of the application does not add a new integrated circuit (integrated circuit, IC) on the existing architecture, only adds the diode circuit 28, and can be realized by multiplexing the chip on the existing PC equipment, so that the structure is simple, and the hardware cost is lower.
The diode circuit 28 includes a first diode D1, a second diode D2, a third diode D3, and a fourth diode D4.
The controller 24 includes two GPIO ports, represented in fig. 3 as ec_gpio1 and ec_gpio2, respectively.
The power transfer module 25 includes two GPIO ports, represented in fig. 3 as pd_gpio1 and pd_gpio2, respectively.
The description will be continued with reference to the case of S1-S4 as NMOS transistors.
PD_GPIO1 is connected with the anode of a first diode D1, and the cathode of the first diode D1 is connected with the grid electrodes (Gate) of S1 and S2
The pd_gpio1 is connected to the anode of the second diode D2, and the cathode of the first diode D2 is connected to the gates of S3 and S4.
Ec_gpio1 is connected to the anode of third diode D3, and the cathode of third diode D3 is connected to the gates of S1 and S2.
Ec_gpio2 is connected to the anode of fourth diode D4, and the cathode of fourth diode D4 is connected to the gates of S3 and S4.
The first diode D1, the second diode D2, the third diode D3 and the fourth diode D4 are used for isolating four GPIO ports and preventing signals of the four GPIO ports from affecting each other.
The charging of the PC device will be described by continuing to connect the external charger to the first Type-C interface 21.
When the first Type-C interface 21 is connected to the external charger, the power transmission module 25 pulls the pd_gpio1 high, so that the gates of S1 and S2 are connected to the high level, and S1 and S2 are turned on. Meanwhile, the pd_gpio2 of the lewis path is maintained in a pulled-down state so that the gates of S3 and S4 are connected to a low level, and S3 and S4 are turned off. Both GPIO ports of the controller 24 are in a pulled down state.
At this time, the external charger supplies power to the PC device and charges the battery of the PC device after passing through the first Type-C interfaces 21, S1, S2 and the charging circuit 23. The back-to-back connection of S3 and S4 may prevent the voltage and current currently being charged into the second Type-C interface 22 from flowing backward.
The following describes a process of implementing fast charging for a Sink by the PC device when the second Type-C interface 22 is connected to the Sink device such as the PC device or the mobile phone during the charging process.
Referring to fig. 4, a flowchart of a fast charging process of a Sink device by a PC device according to an embodiment of the present application is shown.
The method comprises the following steps:
s11: the power transmission module recognizes that Sink equipment is accessed, and opens a corresponding switch in the Sink equipment.
When the second Type-C interface 22 is connected to the Sink device, the power transmission module and the Sink device determine that the power transmission module and the Sink device are Source devices through CC pin handshaking of the second Type-C interface 22, and the Sink device is connected. The power transmission module turns on the switch corresponding to the second Type-C interface 22, that is, turns on SW2, and first performs low-specification charging on the Sink device.
In some embodiments, the PC device is now charged to the external standard: charging voltage 5V, charging current 3A.
The charging voltage is the output voltage of the power conversion circuit 26. In some embodiments, the power conversion circuit 26 is embodied as a Buck (Buck) circuit for reducing the voltage derived from the charging circuit 23 to a voltage of 5V.
S12: the power transmission module informs the controller that Sink equipment is accessed.
The power transfer module 25 informs the controller 24 via an integrated circuit (inter-integrated circuit, I2C) bus that a Sink device is now connected.
The I2C bus is a bidirectional synchronous serial bus, and includes a serial data line (SDA) and a serial clock line (derail clock line, SCL), which will not be described again. The controller 24 may also control the operation of the charging circuit 23 via the I2C bus.
S13: the controller informs the CPU that Sink equipment is accessed.
The controller informs the CPU of the Sink device access via an enhanced serial peripheral interface (enhanced serial peripheral interface, eSPI) bus.
S14: and the CPU controls the PC equipment to carry out popup prompt on an operating system interface.
An Operating System (OS) interface of the PC device may prompt a user to select whether the accessed Sink device needs to be rapidly charged through a popup window.
Referring to fig. 5, a schematic diagram of a pop-up window interface according to an embodiment of the present application is shown.
The user can select whether the quick charge of the Sink device needs to be started or not through a popup window function of the OS interface. It will be appreciated that the above pop-up interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the popup interface may also be other manners, which are not described herein.
It can be understood that the user can also set default configuration options in the pop-up interface or a setting menu of the PC device related to power control, for example, setting to always inquire, and the PC device will perform the pop-up inquiry each time the PC device connects to the Sink device through the Type-C interface; for example, the method can be set as default starting to rapidly charge the Sink device, so that every time the PC device is connected with the Sink device through the Type-C interface, the PC device does not perform popup prompt any more, but automatically starts a rapid charging flow of the Sink device; when the quick charging function of the Sink device can be set to be closed by default, for example, every time the PC device is connected with the Sink device through the Type-C interface, the PC device does not perform popup window prompt any more, and the quick charging flow of the Sink device is not started.
S15: the user chooses to charge the Sink device quickly.
It will be appreciated that the user may also choose not to charge Sink devices quickly at the pop-up interface. For example, the user can directly select to not charge the Sink device quickly on the popup window interface, or the user closes the popup window interface and does not operate, so that the user can trigger the selection of not charging the Sink device quickly. At this time, the subsequent process is not continued, and the PC device maintains the low-power charging of the Sink device.
In the following description, the quick charge of Sink devices is selected by the user as an example.
S16: the CPU informs the controller that the user requests to perform a quick charge of the Sink device.
CPU27 informs controller 24 via the eSPI bus that the user chooses to quickly charge Sink devices.
S17: the controller informs the power transfer module to start sending charging capability messages to the Sink device.
The controller 24 informs the power transfer module 25 to start sending a charge capability (Source capabilities) message to the Sink device via the I2C bus.
The source_capabilities message carries a charging current parameter and a charging voltage parameter corresponding to the second charging specification. In the embodiment of the present application, the charging current parameter and the charging voltage parameter carried in the source_capabilities message are not specifically limited, for example, the charging voltage parameter is 20V, and the charging current parameter is 3A; for example, the charging voltage parameter is 20V, and the charging current parameter is 5A.
S18: the power transfer module 25 sends a Source capabilities message to the Sink device.
The PC device is used as Source device and sends source_capabilities message to Sink device to inform the charging specification of Sink device itself. The charging specification is that of the PC device by the external charger at this time.
S19: the Sink device replies a GoodCRC message to the power transfer module 25.
The Sink device replies a GoodCRC message to the PC device to indicate that itself is subject to the Source capabilities message sent by the PC device.
S20: the Sink device sends a Request message to the power transfer module 25.
After receiving the source_capabilities message, the Sink device analyzes and acquires the indicated charging specification, and when judging that the Sink device can meet the charging specification, sends a Request message to the PC device.
The Request message indicates that the Sink device can support the charging specification carried in the current source_capabilities message, and requests for quick charging.
S21: the power transfer module 25 replies a GoodCRC message to the Sink device.
The PC equipment replies a GoodCRC message to the Sink equipment, and the GoodCRC message indicates that the PC equipment receives a Request message sent by the Sink equipment.
S22: the power transmission module 25 sends an Accept message to the Sink device.
After receiving the Request message, the PC equipment analyzes the information in the Request message, judges that the charging specification requested by the Sink equipment can be met, and sends a receiving (Accept) message to the Sink equipment.
The Accept message indicates that the PC device accepts the quick charge request of the Sink device.
S23: the Sink device replies a GoodCRC message to the power transfer module 25.
The Sink device replies a GoodCRC message to the PC device, which indicates that the Sink device has received the Accept message sent by the PC device.
The charge log formed by the above process may be as shown in the following table.
Table 1: charging log table
Figure SMS_1
S24: the power transmission module turns off the internal corresponding switch.
That is, the power transfer module 25 controls SW2 to be turned off, stopping the low power charging of the Sink device.
S25: the power transfer module informs the controller to start fast charging of Sink devices.
The power transfer module 25 informs the controller Sink device via the I2C bus that it is ready to begin fast charging of the Sink device.
S26: the controller pulls up the corresponding GPIO pin.
That is, at this time, the controller 24 pulls the ec_gpio2 pin corresponding to the second Type-C interface 22 high, the fourth diode D4 is turned on, the gates of S3 and S4 are connected to the high level, and S3 and S4 are turned on.
At this time, the external charger charges the PC device through the path of the first Type-C interface 21-S1-S2 and simultaneously provides a high-power supply for the Sink device which is accessed from outside through the path of the first Type-C interface 21-S1-S2-S4-S3-second Type-C interface 22.
Further, in order to make the user know that the quick charge of the Sink device is already started, the following steps may be further included.
S27: the controller informs the CPU that the fast charge to Sink device has been turned on.
The controller 24 informs the CPU via the eSPI bus that the quick charge to Sink device has been turned on at this time.
S28: the CPU controls the PC device to prompt that the quick charge of the Sink device is started at the popup window of the OS interface.
Referring to fig. 6, a second schematic diagram of a pop-up window interface according to an embodiment of the present application is shown.
The quick charging of the Sink device can be shown to the user through a popup function of the OS interface that the quick charging of the Sink device is currently started.
It will be appreciated that the above pop-up interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the popup interface may also be other manners, which are not described herein.
Further, the popup window interface may further include an option of "whether to stop the quick charging of the device" so that the user can end the quick charging of the Sink device according to the requirement.
The charging specification during low power charging is a first charging specification, and the charging specification of the external charger is a second charging specification, and the second charging specification is larger than the first charging specification, so that after S3 and S4 are disconnected, quick charging of Sink equipment is realized.
In practical applications, there may be a Sink device that does not support fast charging, or that does not support the charging specifications provided by the PC device. The flow implemented by the PC device at this time is described with reference to the following figures.
See also fig. 3 and 7. Fig. 7 is a flowchart of the fast charge failure according to the embodiment of the present application.
S201: the power transmission module confirms that the Sink device does not support the charging specification carried in the source_capabilities message.
When the Sink device accessed by the second Type-C interface 22 does not support the charging specification carried in the source_capabilities message, in a possible implementation manner, the power transmission module cannot accept the Request message sent by the Sink device, and at this time, the power transmission module can send the same source_capabilities message again to the Sink device, and continue waiting for the response of the Sink device, if the same first preset number of times of sending is performed, the GoodCRC message replied by the Sink device is not received, or the Request message replied by the Sink device is not received, then determining that the Sink device does not support the charging specification carried in the source_capabilities message; in another possible implementation manner, the power transmission module is capable of receiving information sent by the Sink device and indicating that the charging specification is not accepted, and then the power transmission module determines that the Sink device does not support the charging specification carried in the source_capabilities message.
The first preset number of times is not specifically limited in the embodiments of the present application, and in some embodiments, the first preset number of times may be set to 3 times.
S202: the power transmission module informs the controller of the failure of the quick charge request.
The power transfer module 25 informs the controller 24 of the failure of the quick charge request via the I2C bus.
S203: the controller informs the CPU of the failure of the quick charge request.
The controller 24 informs the CPU27 of the failure of the quick charge request via the eSPI bus.
S204: and the CPU controls the PC equipment to prompt failure of the quick charge request to the Sink equipment in the popup window of the OS interface.
Referring to fig. 8, a third schematic diagram of a pop-up window interface according to an embodiment of the present application is shown.
It will be appreciated that the above pop-up interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the popup interface may also be other manners, which are not described herein.
Further, the popup window interface may further include an option of "check request failure reason" for the user to determine the reason of the quick charge failure.
The above embodiment describes a process in which the PC device starts the quick charge of the Sink device, and the following describes a process in which the PC device stops the quick charge of the Sink device.
The following describes an implementation in which the Sink device is not disconnected first, and the user actively controls the PC device to stop fast charging of the Sink device.
In one possible implementation, the user selects to stop the fast charge of Sink devices at the OS interface.
Referring to fig. 9, a schematic diagram of stopping rapid charging of Sink devices according to an embodiment of the present application is shown.
S31: and the user selects to stop the rapid charging of the Sink device at the OS interface.
Referring to fig. 10, a schematic diagram of an OS interface provided in an embodiment of the present application is shown.
It is to be understood that the above OS interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the OS interface may also be other manners, which are not described herein.
The user turns off the function by actively selecting to stop the quick charge of the Sink device.
S32: the CPU informs the controller to stop the fast charging of the Sink device.
The CPU informs the controller to stop the fast charging of the Sink device through the eSPI bus.
S33: the controller pulls down the corresponding GPIO pin.
I.e., the controller 24 pulls down the EC GPIO2 pin corresponding to the second Type-C interface 22.
S34: the controller informs the power transfer module to stop the fast charging of the Sink device.
The controller 24 informs the power transmission module 25 to stop the fast charging of the Sink device through the I2C bus, and switches to the low power charging of the Sink device.
S35: the power transfer module pulls down the corresponding GPIO pin and closes the corresponding switch.
At this time, the controller 24 pulls down the ec_gpio2 pin corresponding to the second Type-C interface 22, and the pd_gpio2 pin of the power transmission module 25 also maintains a low level, so that the gates of S3 and S4 are connected to a low level, and S3 and S4 are disconnected.
The external charger charges the PC device through the path of the first Type-C interface 21-S1-S2, but the circuit for supplying power to the Sink device externally accessed is disconnected.
It can be understood that when the Sink device is charged quickly, the ec_gpio2 pin is pulled high, the pd_gpio2 pin can be pulled high or pulled low, and when the pd_gpio2 pin is pulled high, the pd_gpio2 pin needs to be switched to a pulled low state when the pd_gpio2 pin is stopped; when the pd_gpio2 pin is pulled low, the pd_gpio2 pin remains pulled low while the pd_gpio2 pin is stopped.
After the power transmission module 25 controls the corresponding SW2 switch to be turned on, the power conversion circuit 26 outputs power to supply power to the Sink device.
In the embodiment of the application, the opening of the S3 and the S4 is controlled first, and then the SW2 is closed, so that the phenomenon that large current and large voltage flow backwards through the SW2, such as a power transmission device, is avoided.
The following describes a flow of stopping the quick charge by the Sink device when the Type-C interface of the PC device is disconnected.
Referring to fig. 11, a second schematic diagram of stopping fast charging of Sink devices according to an embodiment of the present application is shown.
The method comprises the following steps:
s41: the power transmission module detects that Sink equipment is disconnected with the Type-C interface.
At this time, since the Sink device is disconnected from the Type-C interface, no external power is needed, the power transmission module 25 controls the internal switches SW1 and SW2 to be turned off and pulls the pd_gpio2 low. The power transfer module 25 maintains the pd_gpio1 pulled high to maintain the external charger powering the PC device.
In one possible implementation, the power transmission module 25 determines that the Sink device is disconnected using the handshake signal of the CC pin of the second Type-C interface 22.
S42: the power transmission module informs the controller that the Sink device is disconnected from the Type-C interface at this time.
The power transfer module 25 informs the controller 24 via the I2C bus that the current Sink device is disconnected from the Type-C interface.
S43: the controller pulls down the corresponding GPIO pin.
The controller 24 pulls down the ec_gpio2 pin corresponding to the second Type-C interface 22, and the pd_gpio2 pin of the power transmission module 25 also maintains a low level, so that the gates of S3 and S4 are connected low, and S3 and S4 are disconnected.
S44: the controller informs the CPU that the current Sink device is disconnected from the Type-C interface.
The controller informs the CPU via the eSPI bus that the current Sink device is disconnected from the second Type-C interface 22.
S45: and the CPU controls the PC equipment to prompt the Sink equipment to disconnect with the Type-C interface in the OS interface popup window.
Referring to fig. 12, a schematic diagram of a pop-up window interface according to an embodiment of the present application is shown.
It will be appreciated that the above pop-up interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the popup interface may also be other manners, which are not described herein.
The following describes a flow of stopping the quick charge of the Sink device by the PC device when the external charger of the PC device is disconnected from the Type-C interface of the PC device.
Referring to fig. 13, a third schematic diagram is provided for stopping rapid charging of Sink devices according to an embodiment of the present application.
The method comprises the following steps:
S41: the user disconnects the external charger from the Type-C interface of the PC device.
The user disconnects the first Type-C interface 21 of the PC device from the external charger.
S42: the power transmission module detects that the external charger is disconnected from the first Type-C interface.
In one possible implementation, the power transfer module 25 determines that the external charger is disconnected using handshaking signals with the CC pin of the first Type-C interface 21.
At this time, the fast charging of the Sink is stopped, and the low-power charging of the Sink device is started.
S43: the power transmission module pulls down GPIO ports corresponding to the first Type-C interface and the second Type-C interface respectively.
S44: the power transmission module informs the controller that the external charger is disconnected from the first Type-C interface.
The power transmission module 25 informs the controller 24 of the disconnection of the external charger from the first Type-C interface 21 of the PC device through the I2C bus, and stops the fast charging.
S45: the controller pulls down the GPIO port corresponding to the second Type-C interface.
At this time, the gates of S3 and S4 are connected low, and S3 and S4 are disconnected.
S46: the controller informs the power transmission module that the GPIO port corresponding to the second Type-C interface is pulled down at the moment.
The controller 24 may inform the power transmission module 25 through the I2C bus that the GPIO port corresponding to the second Type-C interface is pulled low, and may start low-power charging for the Sink device.
S47: and the power transmission module controls the switch corresponding to the second Type-C interface to be closed.
The power transmission module may also inform the controller that the corresponding switch has been closed after controlling the corresponding switch to be closed.
That is, the power transfer module controls SW2 to be turned on, and the power conversion circuit 26 is operated to supply power to the Sink device for low-power charging.
In the embodiment of the application, the opening of the S3 and the S4 is controlled first, and then the SW2 is closed, so that the phenomenon that large current and large voltage flow backwards through the SW2, such as a power transmission device, is avoided.
S48: the controller informs the CPU that the external charger is disconnected from the first Type-C interface at this time.
The controller informs the CPU that the external charger is disconnected from the first Type-C interface at the moment through the ePI bus, and the quick charging is interrupted.
S49: the CPU controls the PC device to prompt that the external charger is disconnected at the OS interface popup window, and the quick charging of the Sink device is stopped.
Referring to fig. 14, a fifth schematic diagram of a pop-up window interface according to an embodiment of the present application is shown.
It will be appreciated that the above pop-up interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the popup interface may also be other manners, which are not described herein.
The following describes a process of actively stopping the fast charging of Sink devices when the PC device is in order to start the performance mode.
Referring to fig. 15, the diagram is a schematic diagram four of stopping rapid charging of Sink devices according to an embodiment of the present application.
The method comprises the following steps:
s51: the CPU detects that the PC device is in the on performance mode.
The performance mode of the PC equipment is mainly optimized for underlying hardware, energy strategies and workload, performance and efficiency are not balanced in a compromise mode, and the performance mode is tried to exert the maximum performance of the PC equipment, and is generally used for a scene of playing games of the PC equipment or a scene of running large-scale software.
S52: and the CPU controls the PC equipment to start the performance mode in the popup window of the OS interface, and stops the quick charge of the Sink equipment.
Referring to fig. 16, a sixth schematic view of a pop-up window interface according to an embodiment of the present application is shown.
It will be appreciated that the above pop-up interface is only one possible implementation and does not constitute a specific limitation on the implementations of the present application. The size and layout of the popup interface may also be other manners, which are not described herein.
And informing the user that the performance mode of the current PC equipment is started through the popup window interface, and switching the charging mode of the Sink equipment from the quick charging mode to the low-power charging mode. In other embodiments, the pop-up interface may also include a "whether to turn off the performance mode and restart the quick charge" option, and when the user selects yes, the PC device turns off the performance mode and restarts the quick charge to the Sink device according to steps S16-S28 of FIG. 4.
S53: the CPU informs the controller to stop the fast charging of the Sink device.
The CPU27 informs the controller 24 via the eSPI bus to stop the fast charging of Sink devices.
S54: the controller pulls down the corresponding GPIO pin.
I.e., the controller 24 pulls down the EC GPIO2 pin corresponding to the second Type-C interface 22.
S55: the controller informs the power transfer module to stop the fast charging of the Sink device.
The controller 24 informs the power transmission module 25 to stop the fast charging of the Sink device through the I2C bus, and switches to the low power charging of the Sink device.
S56: the power transfer module pulls down the corresponding GPIO pin and opens the corresponding switch.
At this time, the controller 24 pulls down the ec_gpio2 pin corresponding to the second Type-C interface 22, and the pd_gpio2 pin of the power transmission module 25 also maintains a low level, so that the gates of S3 and S4 are connected to a low level, and S3 and S4 are disconnected.
After the power transmission module 25 controls the corresponding SW2 switch to be turned on, the power conversion circuit 26 outputs power to supply power to the Sink device.
It should be understood that the above sequence of steps is for convenience of description only and is not limiting on the technical solution of the present application. For example, in practical application, the sequence of S52 may be executed after the low-power charging is turned on, after the power transmission module turns on SW2, the controller is informed that the fast charging is turned off through the I2C interface, the controller informs the CPU that the fast charging is turned off through the eSPI interface, and then the CPU controls the PC device to turn on in the OS interface popup window prompting performance mode, and the fast charging to Sink device is turned off.
In other embodiments, the PC device may interact with the Sink device to obtain the current power of the Sink device during the fast charging process of the Sink device, and stop fast charging the electronic device when the electronic device is fully charged or when the power of the electronic device is greater than a preset power value, and change to low-power charging, and may also prompt that the Sink device is fully charged through an OS interface popup window, where the fast charging mode is switched to the low-power charging mode.
It can be appreciated that, for the case where the PC device is turned on in performance mode, the user actively selects to turn off the quick charging, and the Sink device is fully charged, it can be regarded as that the charging of the Sink device according to the second charging specification is required to be stopped at this time.
In summary, by using the technical scheme provided by the embodiment of the application, the complex IC is not added on the electronic device, and only the diode with simple structure and low hardware cost is added, so that the electronic device can rapidly charge the Sink device which is externally accessed by using one Type-C interface while rapidly charging the Sink device by using other Type-C interfaces, that is, the function of rapidly charging a plurality of electronic devices simultaneously by using one external charger is realized, the rapid charging requirement of a user is met, and the user experience is improved. The scheme has low hardware cost, is easy to realize and has higher practicability.
Another implementation of the fast charge scheme is described below.
Referring to fig. 17, a schematic diagram of another electronic device according to an embodiment of the present application is shown.
The electronic device differs from the electronic device shown in fig. 3 in that the diode circuit 28 in the embodiment of the present application further comprises a fifth diode D5 and a sixth diode D6.
The anode of the fifth diode D5 is connected to the switch SW1 of the power transmission module, and the cathode of the fifth diode D5 is connected between the first Type-C interface 21 and S1, that is, the cathode is connected to the VBUS of the first Type-C interface 21; the anode of the sixth diode D6 is connected to the switch SW2 of the power transmission module, and the cathode of the sixth diode D6 is connected between the second Type-C interface 22 and S3, i.e. the cathode is connected to VBUS of the second Type-C interface 22.
When the functions of D5 and D6 are set, when the rapid charging of Sink equipment is started, the controller can control the GPIO port to be pulled high so as to enable S3 and S4 to be connected, and at the moment, current and voltage cannot be reversely fed into the power transmission module; and then the power transmission module controls the internal switch to be disconnected, so that the situation that the Sink equipment is temporarily powered down in the process of charging from low power to quick charging is avoided.
The following specifically describes a process of implementing fast charging for Sink by the PC device when the second Type-C interface 22 is connected to the Sink device.
Referring to fig. 18, a second flowchart of fast charging of Sink devices by PC devices according to an embodiment of the present application is shown.
The method comprises the following steps:
s61: the power transmission module recognizes that Sink equipment is accessed, and opens a corresponding switch.
When the second Type-C interface 22 is connected to the Sink device, the power transmission module 25 and the Sink device determine that the device is Source device through the CC pin handshake of the second Type-C interface 22, and the Sink device is connected.
The power transmission module 25 turns on the switch corresponding to the second Type-C interface 22, that is, turns on SW2, and first performs low-specification charging on the Sink device.
In some embodiments, the PC device is now charged to the external standard: charging voltage 5V, charging current 3A.
S62: the power transmission module informs the controller that Sink equipment is accessed.
The power transmission module 25 informs the controller 24 of the Sink device access at this time through the I2C bus.
S63: the controller informs the CPU that Sink equipment is accessed.
The controller 24 informs the CPU of Sink device access via the eSPI bus.
S64: and the CPU controls the PC equipment to carry out popup prompt on an operating system interface.
The OS interface of the PC device can prompt a user to select whether the accessed Sink device needs to be charged quickly through a popup window.
The pop-up interface may be as shown in fig. 5 above.
It can be understood that the user can also set default configuration options in the pop-up interface or a setting menu of the PC device related to power control, for example, setting to always inquire, and the PC device will perform the pop-up inquiry each time the PC device connects to the Sink device through the Type-C interface; for example, the method can be set as default starting to rapidly charge the Sink device, so that every time the PC device is connected with the Sink device through the Type-C interface, the PC device does not perform popup prompt any more, but automatically starts a rapid charging flow of the Sink device; when the quick charging function of the Sink device can be set to be closed by default, for example, every time the PC device is connected with the Sink device through the Type-C interface, the PC device does not perform popup window prompt any more, and the quick charging flow of the Sink device is not started.
S65: the user chooses to charge the Sink device quickly.
It will be appreciated that the user may also choose not to charge Sink devices quickly at the pop-up interface. For example, the user can directly select to not charge the Sink device quickly on the popup window interface, or the user closes the popup window interface and does not operate, so that the user can trigger the selection of not charging the Sink device quickly. At this time, the subsequent process is not continued, and the PC device maintains the low-power charging of the Sink device.
In the following description, the quick charge of Sink devices is selected by the user as an example.
S66: the CPU informs the controller that the user requests to perform a quick charge of the Sink device.
CPU27 informs controller 24 via the eSPI bus that the user chooses to quickly charge Sink devices.
S67: the controller informs the power transfer module to start sending charging capability messages to the Sink device.
The controller 24 informs the power transfer module 25 to start sending a charge capability (Source capabilities) message to the Sink device via the I2C bus.
The source_capabilities message carries charging current parameters and charging voltage parameters supported by the PC device. In the embodiment of the present application, the charging current parameter and the charging voltage parameter carried in the source_capabilities message are not specifically limited, for example, the charging voltage parameter is 20V, and the charging current parameter is 3A; for example, the charging voltage parameter is 20V, and the charging current parameter is 5A.
S68: the power transfer module 25 sends a Source capabilities message to the Sink device.
The PC device is used as Source device and sends source_capabilities message to Sink device to inform the charging specification of Sink device itself.
S69: the Sink device replies a GoodCRC message to the power transfer module 25.
The Sink device replies a GoodCRC message to the PC device to indicate that itself is subject to the Source capabilities message sent by the PC device.
S70: the Sink device sends a Request message to the power transfer module 25.
After receiving the source_capabilities message, the Sink device analyzes and acquires the indicated charging specification, and when judging that the Sink device can meet the charging specification, sends a Request message to the PC device.
The Request message indicates that the Sink device can support the charging specification carried in the current source_capabilities message, and requests to perform quick charging according to the second charging specification.
S71: the power transfer module 25 replies a GoodCRC message to the Sink device.
The PC equipment replies a GoodCRC message to the Sink equipment, and the GoodCRC message indicates that the PC equipment receives a Request message sent by the Sink equipment.
S72: the power transmission module 25 sends an Accept message to the Sink device.
After receiving the Request message, the PC equipment analyzes the information in the Request message, judges that the charging specification requested by the Sink equipment can be met, and sends a receiving (Accept) message to the Sink equipment.
The Accept message indicates that the PC device accepts the quick charge request of the Sink device.
S73: the Sink device replies a GoodCRC message to the power transfer module 25.
The Sink device replies a GoodCRC message to the PC device, which indicates that the Sink device has received the Accept message sent by the PC device.
S74: the power transfer module 25 informs the controller to start fast charging of Sink devices.
The power transfer module 25 informs the controller Sink device via the I2C bus that it is ready to begin fast charging of the Sink device.
S75: the controller pulls up the corresponding GPIO pin.
That is, at this time, the controller 24 pulls the ec_gpio2 pin corresponding to the second Type-C interface 22 high, the fourth diode D4 is turned on, the gates of S3 and S4 are connected to the high level, and S3 and S4 are turned on.
At this time, the external charger charges the PC device through the path of the first Type-C interface 21-S1-S2 and simultaneously provides a high-power supply for the Sink device which is accessed from outside through the path of the first Type-C interface 21-S1-S2-S4-S3-second Type-C interface 22.
At this time, SW2 is still turned off, but the large current passing through S4 and S3 is blocked by D6, and cannot be reversely poured into the power transmission module, that is, the diode D6 realizes protection of the power transmission module, and in the process of switching from low-power charging to fast charging of the Sink device by the PC device, the charging loop is not turned off briefly. That is, at the Sink device end, a short charging terminal cannot appear in the process of switching from low-power charging to quick charging, so that the use experience of a user is improved.
S76: the controller informs the power transmission module that the corresponding GPIO pin has been pulled high.
The controller 24 informs the power transfer module that the ec_gpio2 pin has been pulled high via the I2C bus.
S77: the power transmission module turns off the internal corresponding switch.
I.e. the power transfer module 25 controls SW2 to be turned off.
Further, in order to make the user know that the quick charge of the Sink device is already started, the following steps may be further included.
S78: the power transmission module informs the CPU that the corresponding switch has been opened.
S79: the controller informs the CPU that the fast charge to Sink device has been turned on.
The controller 24 informs the CPU via the eSPI bus that the quick charge to Sink device has been turned on at this time.
S80: the CPU controls the PC device to prompt that the quick charge of the Sink device is started at the popup window of the OS interface.
The popup interface schematic view of the OS interface may be referred to in fig. 6, and will not be described herein.
The implementation manner when the Sink device does not support the fast charging or does not support the charging specification provided by the PC device may refer to the corresponding descriptions of fig. 7 and fig. 8, and the embodiments of the present application are not repeated herein.
The following describes a process in which the PC device stops the quick charge of the Sink device.
The following describes an implementation in which the Sink device is not disconnected first, and the user actively controls the PC device to stop fast charging of the Sink device.
Referring to fig. 19, a fifth schematic diagram of stopping rapid charging of Sink devices according to an embodiment of the present application is shown.
S81: and the user selects to stop the rapid charging of the Sink device at the OS interface.
The OS interface at this time may be shown in fig. 10, and will not be described here again.
S82: the CPU informs the controller to stop the fast charging of the Sink device.
The CPU informs the controller to stop the fast charging of the Sink device through the eSPI bus.
S83: the controller informs the power transfer module to stop the fast charging of the Sink device.
The controller 24 informs the power transmission module 25 to stop the fast charging of the Sink device through the I2C bus, and switches to the low power charging of the Sink device.
S84: the power transfer module pulls down the corresponding GPIO pin and closes the corresponding switch.
The power transfer module 25 pulls low pd_gpio2 and closes the corresponding SW2.
S85: the power transfer module informs the controller that the corresponding switch has been closed at this time.
The power transfer module 25 informs the controller 24 via the I2C bus that the corresponding switch has been closed at this time.
S86: the controller pulls down the corresponding GPIO pin.
That is, the controller 24 pulls down the ec_gpio2 pin corresponding to the second Type-C interface 22, so that the gates of S3 and S4 are connected to a low level, and S3 and S4 are disconnected.
It can be understood that when the Sink device is charged quickly, the ec_gpio2 pin is pulled high, the pd_gpio2 pin can be pulled high or pulled low, and when the pd_gpio2 pin is pulled high, the pd_gpio2 pin needs to be switched to a pulled low state when the pd_gpio2 pin is stopped; when the pd_gpio2 pin is pulled low, the pd_gpio2 pin remains pulled low while the pd_gpio2 pin is stopped.
After the power transmission module 25 controls the corresponding SW2 switch to be turned on, the power conversion circuit 26 outputs power to supply power to the Sink device.
It can be seen that when the EC_GPIO2 pin is pulled down, SW2 is already opened, and the PC equipment is directly switched to charge the Sink equipment with low power, so that the problem that the Sink equipment sends out a prompt due to short interruption of charging is avoided, and user experience is improved.
In this embodiment, when the Sink device is disconnected from the Type-C interface of the PC device, the flow of stopping the fast charging of the PC device may be referred to the corresponding descriptions in fig. 11 and fig. 12, which are not described herein again.
The following describes a flow of stopping the quick charge of the Sink device by the PC device when the external charger of the PC device is disconnected from the Type-C interface of the PC device.
Referring to fig. 20, a sixth schematic diagram of stopping rapid charging of Sink devices according to an embodiment of the present application is shown.
The method comprises the following steps:
s91: the user disconnects the external charger from the Type-C interface of the PC device.
The user disconnects the first Type-C interface 21 of the PC device from the external charger.
S92: the power transmission module detects that the external charger is disconnected from the first Type-C interface.
In one possible implementation, the power transfer module 25 determines that the external charger is disconnected using handshaking signals with the CC pin of the first Type-C interface 21.
S93: the power transmission module pulls down the GPIO ports corresponding to the two Type-C interfaces respectively, and closes the switch SW2 corresponding to the second Type-C interface.
S94: the power transmission module informs the controller that the external charger is disconnected from the first Type-C interface.
The power transmission module 25 informs the controller 24 of the disconnection of the external charger from the first Type-C interface 21 of the PC device through the I2C bus, and stops the fast charging. It will be appreciated that at this point S94 could alternatively be a power transfer module informing the controller that SW2 has been closed at this point.
S95: the controller pulls down the GPIO port corresponding to the second Type-C interface.
After EC_GPIO2 is pulled down, the grid connection of S3 and S4 is low level, S3 and S4 are disconnected, but at this time, SW2 is already opened, so that direct switching is performed for low-power charging of Sink equipment, the problem that the Sink equipment sends out a prompt due to short interruption of charging is avoided, and user experience is improved.
S96: the controller informs the CPU that the external charger is disconnected from the first Type-C interface at this time.
The controller informs the CPU that the external charger is disconnected from the first Type-C interface at the moment through the ePI bus, and the quick charging is interrupted.
S97: the CPU controls the PC device to prompt that the external charger is disconnected at the OS interface popup window, and the quick charging of the Sink device is stopped.
The specific implementation of the popup interface may be referred to in fig. 14, and will not be described herein.
The following describes a process of actively stopping the fast charging of Sink devices when the PC device is in order to start the performance mode.
Referring to fig. 21, a seventh schematic diagram of stopping rapid charging of Sink devices according to an embodiment of the present application is shown.
The method comprises the following steps:
s101: the CPU detects that the PC device is in the on performance mode.
The performance mode of the PC equipment is mainly optimized for underlying hardware, energy strategies and workload, performance and efficiency are not balanced in a compromise mode, and the maximum performance of the PC equipment is tried to be exerted, and the PC equipment is generally used for a game playing scene of the PC equipment or a scene of running large-scale software.
S102: and the CPU controls the PC equipment to start the performance mode in the popup window of the OS interface, and stops the quick charge of the Sink equipment.
The specific popup interface may be referred to in fig. 16, and will not be described herein.
S103: the CPU informs the controller to stop the fast charging of the Sink device.
The CPU27 informs the controller 24 via the eSPI bus to stop the fast charging of Sink devices.
S104: the controller informs the power transfer module to stop the fast charging of the Sink device.
The controller 24 informs the power transmission module 25 to stop the fast charging of the Sink device through the I2C bus, and switches to the low power charging of the Sink device.
S105: the power transfer module pulls down the corresponding GPIO pin and opens the corresponding switch.
At this time, the pd_gpio2 pin of the power transmission module 25 is pulled low, and the power transmission module 25 controls the corresponding SW2 switch to be turned on.
S106: the power transmission module informs the controller that the corresponding switch has been opened.
The power transfer module 25 informs the controller 24 that the switch SW2 has been opened at this time.
S107: the controller pulls down the corresponding GPIO pin.
I.e., the controller 24 pulls down the EC GPIO2 pin corresponding to the second Type-C interface 22.
At this time, the controller 24 pulls down the ec_gpio2 pin corresponding to the second Type-C interface 22, and the pd_gpio2 pin of the power transmission module 25 also maintains a low level, so that the gates of S3 and S4 are connected to a low level, and S3 and S4 are disconnected. However, at this time, because the SW2 is already turned on, the direct switching is used for low-power charging of the Sink device, so that the problem that the Sink device sends a prompt due to short interruption of charging is avoided, and user experience is improved.
It should be understood that the above sequence of steps is for convenience of description only and is not limiting on the technical solution of the present application. For example, in practical application, the sequence of S102 may be executed after the low-power charging is turned on, and when the quick charging has been turned off, the controller informs the CPU that the quick charging has been turned off through the eSPI interface, and then the CPU controls the PC device to turn on the performance mode in the pop window of the OS interface, so that the quick charging of the Sink device is turned off.
In other embodiments, the PC device may interact with the Sink device to obtain the current power of the Sink device during the fast charging process of the Sink device, and stop fast charging the electronic device when the electronic device is fully charged or when the power of the electronic device is greater than a preset power value, and change to low-power charging, and in the switching process, the power transmission module controls the corresponding switch to be turned on first, and then the controller pulls down the corresponding GPIO pin to avoid short interruption of charging of the Sink device. The Sink device can be prompted to be fully charged through the OS interface popup window, and the fast charging mode is switched to the low-power charging mode.
In summary, by using the technical scheme provided by the embodiment of the application, the complex IC is not added on the electronic device, and only the diode with simple structure and low hardware cost is added, so that the electronic device can rapidly charge the Sink device accessed from the outside by using one Type-C interface while rapidly charging the Sink device by using other Type-C interfaces, that is, the function of rapidly charging a plurality of electronic devices simultaneously by using one external charger is realized, and the rapid charging requirement of a user is met. In addition, through increasing the diode on the VBUS line of the switch of power transmission module and Type-C interface, can avoid the in-process that is switched to the quick charge by low power charging to and the in-process that the quick charge is switched to low power charging, the Sink equipment appears the condition of stopping the charge briefly, has promoted user experience. The scheme has low hardware cost, is easy to realize and has higher practicability.
In the above embodiment, the PC device includes two Type-C interfaces as an example, it may be understood that the PC device may further include 3 or more Type-C interfaces in practical application, and at this time, two MOS transistors on VBUS of each Type-C interface are connected to a GPIO port of the power transmission module through a diode, and are connected to a GPIO port of the controller through another diode, which is similar to the above implementation, and will not be described herein again.
Further, when two or more Type-C interfaces on the PC device are simultaneously connected to different Sink devices, the user may select to fast charge some or all of the Sink devices on the pop-up interface of the PC device.
It can be understood that the MOS transistor applied in the above scheme of the embodiment of the present application may also be replaced by an implementation manner such as an insulated gate bipolar transistor (Insulated Gate Bipolar Transistor, IGBT) or a silicon carbide field effect transistor (Silicon Carbide Metal Oxide Semiconductor, siC MOSFET), which is not described in detail in the present application.
The controller of the embodiment of the application can be an embedded controller (Embedded Controller, EC) and is used for power management, battery management and the like in a notebook computer.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (33)

1. An electronic device, characterized in that the electronic device comprises a charging circuit, a power transmission PD module, a controller, a diode circuit, and at least two branches: a first branch and a second branch;
the first branch comprises a first switch module, and a first end of the first branch is connected with a first Type-C interface;
the second branch comprises a second switch module, and the first end of the second branch is connected with a second Type-C interface;
the second ends of the first branch and the second branch are connected with the input end of the charging circuit in parallel;
the control ends of the first switch module and the second switch module are connected with the PD module and the controller through the diode circuit;
the PD module is used for controlling the first switch module to be closed when the first Type-C interface is connected with a charger and the second Type-C interface is connected with equipment to be charged, so that the charging circuit charges the electronic equipment, controlling the second switch module to be opened and charging the equipment to be charged according to a first charging specification; stopping charging the equipment to be charged according to the first charging specification when the equipment to be charged supports the second charging specification of the charger;
And the controller is used for controlling the second switch module to be closed after the PD module determines that the to-be-charged equipment supports the second charging specification of the charger, so that the charger charges the to-be-charged equipment according to the second charging specification.
2. The electronic device of claim 1, wherein the diode circuit comprises: a first diode, a second diode, a third diode, and a fourth diode;
the anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module;
the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module;
the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module;
and the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module.
3. The electronic device of claim 2, wherein the PD module specifically comprises: a first switch and a second switch;
The first ends of the first switch and the second switch are connected with the input voltage of the PD module;
the second end of the first switch is connected between the first Type-C interface and the first switch module;
the second end of the second switch is connected between the second Type-C interface and the second switch module;
the PD module is specifically configured to control a first GPIO port of the PD module to be at a high level, control a second GPIO port of the PD module to be at a low level, and control the second switch to be closed when the first Type-C interface is connected with a charger and the second Type-C interface is connected with a device to be charged; and when the equipment to be charged supports a second charging specification of the charger, controlling the second switch to be disconnected;
the controller is specifically configured to control the second GPIO port of the controller to be at a high level after the PD module controls the second switch to be opened, so that the second switch module is closed.
4. The electronic device of claim 3, wherein the controller is further configured to control the second GPIO port of the controller to be low when it is desired to stop charging the device to be charged according to the second charging specification;
And the PD module is also used for controlling the second switch to be closed after the controller controls the second GPIO port of the controller to be in a low level so as to charge the equipment to be charged according to the first charging specification.
5. The electronic device of claim 4, wherein the controller is configured to determine that charging of the device to be charged according to the second charging specification is required when the electronic device is in a performance mode, or when a user selects to stop charging the device to be charged according to the second charging specification at an operating system interface of the electronic device, or when the device to be charged is full of electricity.
6. The electronic device of claim 3, wherein the PD module is further configured to, when detecting that the device to be charged is disconnected from the second Type-C interface, inform the controller that the device to be charged is disconnected at the time;
and the controller is also used for controlling the second GPIO port of the controller to be in a low level when the equipment to be charged is confirmed to be disconnected.
7. The electronic device of claim 3, wherein the PD module is further configured to control the first GPIO port of the PD module to be low and inform the controller that the charger is disconnected at the time when the charger is detected to be disconnected from the first Type-C interface; and when the second GPIO port of the controller is confirmed to be switched to a low level, controlling the second switch to be closed;
The controller is further configured to control the second GPIO port of the controller to be at a low level and inform the PD module that the second GPIO port of the controller has been switched to be at a low level when it is confirmed that the charger has been disconnected.
8. The electronic device of claim 1, wherein the diode circuit comprises: a first diode, a second diode, a third diode, a fourth diode, a fifth diode, and a sixth diode;
the anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module;
the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module;
the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module;
the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module;
the anode of the fifth diode is connected with the PD module, and the cathode of the fifth diode is connected between the first Type-C interface and the first switch module;
And the anode of the sixth diode is connected with the PD module, and the cathode of the sixth diode is connected between the second Type-C interface and the second switch module.
9. The electronic device of claim 8, wherein the PD module specifically comprises: a first switch and a second switch;
the first ends of the first switch and the second switch are connected with the input voltage of the PD module;
the second end of the first switch is connected with the anode of the fifth diode;
the second end of the first switch is connected with the anode of the sixth diode;
the PD module is specifically configured to control a first GPIO port of the PD module to be at a high level, control a second GPIO port of the PD module to be at a low level, and control the second switch to be closed when the first Type-C interface is connected with a charger and the second Type-C interface is connected with a device to be charged; when the equipment to be charged is detected to support the second charging specification, informing the controller that the equipment to be charged supports the second charging specification; and when the second GPIO port of the controller is confirmed to be switched to a high level, controlling the second switch to be switched off;
the controller is specifically configured to control the second GPIO port of the controller to be at a high level when it is determined that the to-be-charged device supports the second charging specification, so that the second switch module is closed, and inform the PD module that the second GPIO port of the controller has been switched to be at the high level.
10. The electronic device of claim 9, wherein the PD module is further configured to control the second switch to close and inform the controller that the second switch has been closed when it is desired to stop charging the device to be charged according to the second charging specification;
the controller is further configured to control the second GPIO port of the controller to be at a low level when it is confirmed that the second switch is already closed.
11. The electronic device of claim 10, wherein the PD module is specifically configured to determine that charging of the device to be charged according to the second charging specification is required to be stopped when the electronic device is in a performance mode, or when a user selects to stop charging the device to be charged according to the second charging specification at an operating system interface of the electronic device, or when the device to be charged is full.
12. The electronic device of claim 9, wherein the PD module is further configured to, when detecting that the device to be charged is disconnected from the second Type-C interface, inform the controller that the device to be charged is disconnected at the time;
and the controller is also used for controlling the second GPIO port of the controller to be in a low level when the equipment to be charged is confirmed to be disconnected.
13. The electronic device of claim 9, wherein the PD module is further configured to control the first GPIO port of the PD module to be low when the charger is detected to be disconnected from the first Type-C interface, control the second switch to be closed, and then inform the controller that the charger is disconnected at the time;
and the controller is also used for controlling the second GPIO port of the controller to be in a low level when the charger is confirmed to be disconnected.
14. The electronic device according to claim 1, wherein the PD module is specifically configured to send a charging capability message to the device to be charged, where the charging capability message carries a charging current parameter and a charging voltage parameter corresponding to the second charging specification; and when receiving a request message sent by the equipment to be charged, determining that the equipment to be charged supports the second charging specification, wherein the request message is used for indicating the equipment to be charged to support the second charging specification and requesting to charge according to the second charging specification.
15. The electronic device of claim 1, wherein the second charging profile corresponds to a greater charging power than the first charging profile.
16. The electronic device according to claim 1, characterized in that the controller is in particular an embedded controller EC.
17. The electronic device of any one of claims 1-16, further comprising a central processing unit, CPU, configured to control the electronic device to perform a popup prompt on an operating system interface to query whether to initiate charging of the device to be charged according to a second charging specification when the device to be charged supports the second charging specification of the charger.
18. The electronic device of claim 17, wherein the CPU is further configured to control the electronic device to perform a popup prompt on the operating system interface when the charging specification of the device to be charged is switched from the first charging specification to the second charging specification or when the charging specification of the device to be charged is switched from the second charging specification to the first charging specification, so as to prompt that the switching of the charging specification is currently occurring.
19. The electronic device of claim 3 or 9, further comprising a power conversion circuit, an output of the power conversion circuit being connected to the PD module;
The power conversion circuit is used for providing an input voltage of the PD module.
20. The electronic device of claim 19, wherein the power conversion circuit is a buck circuit.
21. The charging method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a charging circuit, a power transmission PD module, a controller, a diode circuit and at least two branches: a first branch and a second branch; the first branch comprises a first switch module, and a first end of the first branch is connected with a first Type-C interface; the second branch comprises a second switch module, and the first end of the second branch is connected with a second Type-C interface; the second ends of the first branch and the second branch are connected with the input end of the charging circuit in parallel; the control ends of the first switch module and the second switch module are connected with the PD module and the controller through the diode circuit; the charging method comprises the following steps:
when the first Type-C interface is connected with a charger and the second Type-C interface is connected with equipment to be charged, the PD module controls the first switch module to be closed so that the charging circuit charges the electronic equipment, controls the second switch module to be opened and charges the equipment to be charged according to a first charging specification;
When the to-be-charged equipment supports a second charging specification of the charger, the PD module stops charging the to-be-charged equipment according to the first charging specification;
and when the PD module determines that the to-be-charged equipment supports the second charging specification of the charger, the controller controls the second switch module to be closed so that the charger charges the to-be-charged equipment according to the second charging specification.
22. The charging method of claim 21, wherein the diode circuit comprises: a first diode, a second diode, a third diode, and a fourth diode;
the anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module;
the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module;
the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module;
and the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module.
23. The charging method according to claim 22, wherein the PD module specifically includes: a first switch and a second switch; the first ends of the first switch and the second switch are connected with the input voltage of the PD module; the second end of the first switch is connected between the first Type-C interface and the first switch module; the second end of the second switch is connected between the second Type-C interface and the second switch module; the PD module controls the first switch module to be closed so that the charging circuit charges the electronic equipment, controls the second switch module to be opened and charges the equipment to be charged according to a first charging specification, and specifically comprises the following steps:
the PD module controls a first GPIO port of the PD module to be in a high level, controls a second GPIO port of the PD module to be in a low level, and controls the second switch to be closed;
the PD module stops charging the equipment to be charged according to the first charging specification, and specifically comprises the following steps:
the PD module controls the second switch to be disconnected;
the controller controls the second switch module to be closed, and the method specifically comprises the following steps:
and when the PD module controls the second switch to be opened, the controller controls the second GPIO port of the controller to be at a high level so as to enable the second switch module to be closed.
24. The charging method according to claim 23, characterized in that the method further comprises:
when the controller needs to stop charging the equipment to be charged according to the second charging specification, controlling a second GPIO port of the controller to be in a low level;
and the PD module controls the second switch to be closed after the controller controls the second GPIO port of the controller to be in a low level so as to charge the equipment to be charged according to the first charging specification.
25. The charging method according to claim 24, wherein the controller controls the second GPIO port of the controller to be low level when the charging of the device to be charged according to the second charging specification is required, specifically comprising:
the controller determines that the charging of the equipment to be charged according to the second charging specification is required to be stopped when the performance mode of the electronic equipment is started, or a user selects to stop the charging of the equipment to be charged according to the second charging specification on an operating system interface of the electronic equipment, or the equipment to be charged is full of electricity;
the controller controls the second GPIO port of the controller to be low level.
26. The charging method according to claim 23, characterized in that the method further comprises:
The PD module informs the controller that the equipment to be charged is disconnected at the moment when detecting that the equipment to be charged is disconnected with the second Type-C interface;
and when the controller confirms that the equipment to be charged is disconnected, controlling a second GPIO port of the controller to be in a low level.
27. The charging method according to claim 23, characterized in that the method further comprises:
when the PD module detects that the charger is disconnected with the first Type-C interface, controlling a first GPIO port of the PD module to be in a low level, and informing the controller that the charger is disconnected at the moment; and when the second GPIO port of the controller is confirmed to be switched to a low level, controlling the second switch to be closed;
and when the controller confirms that the charger is disconnected, controlling the second GPIO port of the controller to be at a low level, and informing the PD module that the second GPIO port of the controller is switched to be at the low level.
28. The charging method of claim 21, wherein the diode circuit comprises: a first diode, a second diode, a third diode, a fourth diode, a fifth diode, and a sixth diode;
The anode of the first diode is connected with a first GPIO port of the PD module, and the cathode of the first diode is connected with the control end of the first switch module;
the anode of the second diode is connected with a second GPIO port of the PD module, and the cathode of the second diode is connected with the control end of the second switch module;
the anode of the third diode is connected with the first GPIO port of the controller, and the cathode of the third diode is connected with the control end of the first switch module;
the anode of the fourth diode is connected with the second GPIO port of the controller, and the cathode of the fourth diode is connected with the control end of the second switch module;
the anode of the fifth diode is connected with the PD module, and the cathode of the fifth diode is connected between the first Type-C interface and the first switch module;
and the anode of the sixth diode is connected with the PD module, and the cathode of the sixth diode is connected between the second Type-C interface and the second switch module.
29. The charging method according to claim 28, wherein the PD module specifically includes: a first switch and a second switch; the first ends of the first switch and the second switch are connected with the input voltage of the PD module; the second end of the first switch is connected with the anode of the fifth diode; the second end of the first switch is connected with the anode of the sixth diode; the PD module controls the first switch module to be closed so that the charging circuit charges the electronic equipment, controls the second switch module to be opened and charges the equipment to be charged according to a first charging specification, and specifically comprises the following steps:
The PD module controls a first GPIO port of the PD module to be in a high level, controls a second GPIO port of the PD module to be in a low level, and controls the second switch to be closed;
the PD module stops charging the equipment to be charged according to the first charging specification, and specifically comprises the following steps:
the PD module informs the controller that the equipment to be charged supports the second charging specification;
the PD module controls the second switch to be disconnected when confirming that the second GPIO port of the controller is switched to a high level;
the controller controls the second switch module to be closed, and the method specifically comprises the following steps:
the controller controls the second GPIO port of the controller to be in a high level so as to enable the second switch module to be closed, and informs the PD module that the second GPIO port of the controller is switched to be in the high level.
30. The charging method according to claim 29, characterized in that the method further comprises:
when the PD module needs to stop charging the equipment to be charged according to the second charging specification, the second switch is controlled to be closed, and the controller is informed that the second switch is closed;
the controller controls the second GPIO port of the controller to be low level when confirming that the second switch has been closed.
31. The charging method according to claim 30, wherein the PD module controls the second switch to be closed when it is required to stop charging the device to be charged according to the second charging specification, specifically comprising:
the PD module determines that the charging of the equipment to be charged according to the second charging specification is required to be stopped when the performance mode of the electronic equipment is started, or a user selects to stop the charging of the equipment to be charged according to the second charging specification on an operating system interface of the electronic equipment, or the equipment to be charged is full of electricity;
the PD module controls the second switch to be closed.
32. The charging method according to claim 29, characterized in that the method further comprises:
the PD module informs the controller that the equipment to be charged is disconnected at the moment when detecting that the equipment to be charged is disconnected with the second Type-C interface;
and when the controller confirms that the equipment to be charged is disconnected, controlling a second GPIO port of the controller to be in a low level.
33. The charging method according to claim 29, characterized in that the method further comprises:
when the PD module detects that the charger is disconnected with the first Type-C interface, the first GPIO port of the PD module is controlled to be in a low level, the second switch is controlled to be closed, and then the controller is informed that the charger is disconnected at the moment;
And when the controller confirms that the charger is disconnected, controlling a second GPIO port of the controller to be at a low level.
CN202310157759.XA 2023-02-23 2023-02-23 Electronic equipment and charging method Active CN115864609B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310745543.5A CN116914878A (en) 2023-02-23 2023-02-23 Electronic equipment and charging method
CN202310157759.XA CN115864609B (en) 2023-02-23 2023-02-23 Electronic equipment and charging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310157759.XA CN115864609B (en) 2023-02-23 2023-02-23 Electronic equipment and charging method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310745543.5A Division CN116914878A (en) 2023-02-23 2023-02-23 Electronic equipment and charging method

Publications (2)

Publication Number Publication Date
CN115864609A CN115864609A (en) 2023-03-28
CN115864609B true CN115864609B (en) 2023-06-30

Family

ID=85658777

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310745543.5A Pending CN116914878A (en) 2023-02-23 2023-02-23 Electronic equipment and charging method
CN202310157759.XA Active CN115864609B (en) 2023-02-23 2023-02-23 Electronic equipment and charging method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310745543.5A Pending CN116914878A (en) 2023-02-23 2023-02-23 Electronic equipment and charging method

Country Status (1)

Country Link
CN (2) CN116914878A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116914878A (en) * 2023-02-23 2023-10-20 荣耀终端有限公司 Electronic equipment and charging method
CN117254568B (en) * 2023-11-17 2024-04-19 荣耀终端有限公司 Charging method, electronic equipment and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201815009A (en) * 2016-10-12 2018-04-16 廣東歐珀移動通信有限公司 Device to be charged and charging method
CN110100366A (en) * 2017-07-21 2019-08-06 华为技术有限公司 Mobile terminal, peripheral equipment and its charging method
CN211296239U (en) * 2019-12-25 2020-08-18 东莞市太业电子股份有限公司 Circuit of multi-port self-adaptive charging and discharging mobile power supply and mobile power supply
CN113472043A (en) * 2021-07-05 2021-10-01 科博达技术股份有限公司 double-Type-C port shared charging power charger and intelligent output power distribution method thereof
CN114243815A (en) * 2021-11-26 2022-03-25 南京微智新科技有限公司 Intelligent charging system and method for notebook computer

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY169836A (en) * 2011-12-06 2019-05-16 Intel Corp Techniques for serial interface charging
US11437826B2 (en) * 2016-11-09 2022-09-06 Lenovo (Singapore) Pte. Ltd. Battery fast charging using multiple adaptor inputs
CN206983762U (en) * 2017-07-19 2018-02-09 深圳市大疆创新科技有限公司 Charge connector and charging device
CN110380489A (en) * 2019-08-08 2019-10-25 珠海英集芯半导体有限公司 A kind of fast charge circuit that can automatically adjust power and method
US11493972B2 (en) * 2020-06-23 2022-11-08 Google Llc Hardware architecture for USB-C port power
CN111817380B (en) * 2020-07-14 2023-02-21 维沃移动通信有限公司 Charger, data line, charging equipment and electronic equipment
CN211880144U (en) * 2020-09-04 2020-11-06 深圳市蓝禾技术有限公司 Charger and charging system
CN115622177B (en) * 2022-09-30 2023-10-27 荣耀终端有限公司 Charging method, mobile terminal and storage medium
CN116914878A (en) * 2023-02-23 2023-10-20 荣耀终端有限公司 Electronic equipment and charging method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201815009A (en) * 2016-10-12 2018-04-16 廣東歐珀移動通信有限公司 Device to be charged and charging method
CN110100366A (en) * 2017-07-21 2019-08-06 华为技术有限公司 Mobile terminal, peripheral equipment and its charging method
CN211296239U (en) * 2019-12-25 2020-08-18 东莞市太业电子股份有限公司 Circuit of multi-port self-adaptive charging and discharging mobile power supply and mobile power supply
CN113472043A (en) * 2021-07-05 2021-10-01 科博达技术股份有限公司 double-Type-C port shared charging power charger and intelligent output power distribution method thereof
CN114243815A (en) * 2021-11-26 2022-03-25 南京微智新科技有限公司 Intelligent charging system and method for notebook computer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能锂电池充电器研究与设计;马银山;电子测试;第36卷(第24期);第27-31页 *

Also Published As

Publication number Publication date
CN115864609A (en) 2023-03-28
CN116914878A (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN115864609B (en) Electronic equipment and charging method
US9979224B2 (en) Integrated circuit for wireless charging and operating method thereof
US8219721B2 (en) Mobile terminal and switching method for controlling data transmission via high speed or low speed interfaces based on preset threshold
BR112019016542B1 (en) WIRELESS CHARGING DEVICE, DEVICE TO BE CHARGED AND METHOD FOR CONTROLING A WIRELESS CHARGING DEVICE
US20130234668A1 (en) Universal serial bus apparatus and power supply method thereof
JP7092885B2 (en) Wireless charge receiver and mobile terminal
US11171499B2 (en) Device to be charged with multiple charging channels, charging method, and charging control circuit with multiple charging channels
US20210165451A1 (en) Usb docking station and power-governing method thereof
WO2020124588A1 (en) Battery power supply circuit, device to be charged and charging control method
WO2020051790A1 (en) Charging management circuit, terminal and charging method
EP4283826A1 (en) Charging circuit, charging control method and electronic device
WO2020133081A1 (en) Charging method and apparatus, device to be charged, storage medium, and chip system
WO2020124571A1 (en) Charging device, device to be charged, charging method, and computer storage medium
WO2023185685A1 (en) Charging method, electronic device, computer-readable storage medium, and chip system
CN114967894A (en) Electronic device, device identification method and charging system
CN114079302B (en) Charging circuit, charging chip, electronic device and charging method
CN116707055B (en) Charging circuit, electronic device and reverse charging method
CN205015885U (en) Switching circuit and electron device
WO2021052188A1 (en) Rectifier chip and terminal device
US11552503B2 (en) Terminal device and charging control method
US9685808B2 (en) USB energy harvesting
CN102902334A (en) CPU (central processing unit) power supply regulating method and CPU power supply regulating system
CN214479662U (en) Quick charging circuit, CC detection module with rectification and quick charging line
CN216851378U (en) Time-sharing multiplexing charging system and mobile power supply
US20230318335A1 (en) Charging management system and method for charging device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant