CN107124012B - Charging method, device, charger, terminal and system - Google Patents

Charging method, device, charger, terminal and system Download PDF

Info

Publication number
CN107124012B
CN107124012B CN201610104442.XA CN201610104442A CN107124012B CN 107124012 B CN107124012 B CN 107124012B CN 201610104442 A CN201610104442 A CN 201610104442A CN 107124012 B CN107124012 B CN 107124012B
Authority
CN
China
Prior art keywords
charger
terminal
vbus pin
voltage
indication information
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
CN201610104442.XA
Other languages
Chinese (zh)
Other versions
CN107124012A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610104442.XA priority Critical patent/CN107124012B/en
Publication of CN107124012A publication Critical patent/CN107124012A/en
Application granted granted Critical
Publication of CN107124012B publication Critical patent/CN107124012B/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/007Regulation of charging or discharging current or voltage

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure relates to a charging method, a charging device, a charger, a terminal and a charging system, and belongs to the technical field of power supply. The method comprises the following steps: the charger sends configuration information of the charger to the terminal through the VBUS pin; receiving output indication information from the terminal through the VBUS pin, wherein the output indication information is determined by the terminal according to the configuration information and the current state parameter of the battery of the terminal; and switching on the voltage supply circuit and the VBUS pin, and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information. According to the charger identification method and device, the VBUS pin is used for realizing charger identification, the DP pin and the DM pin are used for realizing data transmission, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is guaranteed.

Description

Charging method, device, charger, terminal and system
Technical Field
The present disclosure relates to the field of power supply technologies, and in particular, to a charging method, an apparatus, a charger, a terminal, and a system.
Background
Currently, terminals such as mobile phones and tablet computers generally use a USB (Universal Serial Bus) interface for charging and data transmission.
The USB interface includes a VBUS (voltage bus) pin, a DP (data Positive) pin (also referred to as a D + pin), a DM (data negative) pin (also referred to as a D-pin), and a GND (Ground) pin. In the related art, the DP pin and the DM pin are electrically connected to a charging IC (Integrated Circuit) built in the terminal, respectively, and when the terminal is connected to the charger through the USB interface, the charging IC communicates with the charger through the DP pin and the DM pin to recognize the charger. In addition, the DP pin and the DM pin are electrically connected to a CPU (central processing Unit) of the terminal, respectively, and when the terminal is connected to another terminal through the USB interface, the CPU communicates with another terminal through the DP pin and the DM pin, thereby implementing data transmission between the USB master and slave devices.
Therefore, in the related art, there is a bifurcation of the transmission path of the data line connecting the DP pin and the DM pin, one of which is connected to the charging IC and the other of which is connected to the CPU. The connection mode can affect charger identification and hidden danger of charger identification error on one hand, and can also affect signal quality when data transmission is carried out between the USB master device and the USB slave device on the other hand.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a charging method, device, charger, terminal and system. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a charging method applied in a control chip of a charger, the charger including: the voltage supply circuit, the control chip and the USB interface; the control chip is electrically connected with the voltage supply circuit, and is also electrically connected with a VBUS pin and a GND pin of the USB interface;
the method comprises the following steps:
sending configuration information of the charger to a terminal through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
receiving output indication information from the terminal through the VBUS pin, wherein the output indication information is determined by the terminal according to the configuration information and the current state parameter of the battery of the terminal;
and switching on the voltage supply circuit and the VBUS pin, and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
Optionally, the sending, to a terminal through the VBUS pin, configuration information of the charger includes:
acquiring configuration information of the charger, wherein the configuration information at least comprises a maximum output voltage and a maximum output current;
determining a level signal for representing the configuration information;
and sending the level signal to the terminal through the VBUS pin.
Optionally, the method further comprises:
in the charging process, receiving regulated output indication information from the terminal through the VBUS pin, wherein the regulated output indication information is determined by the terminal according to the current charging state, and the current charging state is any one of a trickle charging state, a constant current charging state and a constant voltage charging state;
and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the regulated output indication information.
Optionally, the method further comprises:
outputting a default voltage to the terminal through the VBUS pin when the voltage providing circuit and the VBUS pin are in an on state;
disconnecting the voltage supply circuit from the VBUS pin after detecting a pull-down operation corresponding to a voltage on the VBUS pin;
the step of sending configuration information of the charger to a terminal through the VBUS pin is performed after disconnecting the voltage supply circuit and the VBUS pin.
Optionally, the method further comprises:
after the configuration information is sent to the terminal, if a first confirmation response fed back by the terminal is not received within a first preset time, sending a first prompt message;
wherein the first acknowledgement response is used to indicate that the terminal has successfully received the configuration information.
Optionally, the method further comprises:
after receiving the output indication information from the terminal, sending a second confirmation response to the terminal, wherein the second confirmation response is used for indicating that the charger has successfully received the output indication information;
after detecting the pull-up operation corresponding to the voltage on the VBUS pin, executing the steps of switching on the voltage providing circuit and the VBUS pin, and controlling the voltage providing circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
According to a second aspect of the embodiments of the present disclosure, there is provided a charging method applied to a control chip of a terminal, where the terminal includes: a battery, a PMIC (Power Management Integrated Circuit), the control chip and a USB interface; the battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a VBUS pin and a GND pin of the USB interface;
the method comprises the following steps:
receiving configuration information sent by a charger through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
determining output indication information according to the configuration information and the current state parameter of the battery;
sending the output indication information to the charger through the VBUS pin;
receiving, through the VBUS pin, power provided by the charger according to the output indication information;
and switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
Optionally, the sending the output indication information to the charger through the VBUS pin includes:
determining a level signal for representing the output indication information; wherein the output indication information includes at least a specified output voltage and a specified output current;
and sending the level signal to the charger through the VBUS pin.
Optionally, the method further comprises:
in the charging process, determining the current charging state through the PMIC, wherein the current charging state is any one of a trickle charging state, a constant-current charging state and a constant-voltage charging state;
determining adjusted output indication information according to the current charging state;
and sending the regulated output indication information to the charger through the VBUS pin.
Optionally, the method further comprises:
when the default voltage output by the charger is detected to exist on the VBUS pin, the pull-down operation corresponding to the voltage on the VBUS pin is executed, so that the charger breaks the connection between the voltage supply circuit of the charger and the VBUS pin after the pull-down operation is detected, and then the configuration information is sent to the terminal.
Optionally, the method further comprises:
after the output indication information is sent to the charger, if a second confirmation response fed back by the charger is not received within second preset time, sending a second prompt message;
wherein the second acknowledgement response is to indicate that the charger has successfully received the output indication information.
Optionally, the method further comprises:
after receiving the second confirmation response sent by the charger, executing a pull-up operation corresponding to the voltage on the VBUS pin, so that the charger switches on a voltage supply circuit of the charger and the VBUS pin after detecting the pull-up operation, and then controlling the voltage supply circuit to supply the electric energy to the terminal according to the output indication information.
Optionally, the method further comprises:
after receiving the electric energy provided by the charger, detecting whether the voltage on the VBUS pin is larger than a maximum charging voltage;
and if the voltage on the VBUS pin is less than or equal to the maximum charging voltage, executing the step of switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
According to a third aspect of the embodiments of the present disclosure, there is provided a charging device applied to a control chip of a charger, the charger including: the voltage supply circuit, the control chip and the USB interface; the control chip is electrically connected with the voltage supply circuit, and is also electrically connected with a VBUS pin and a GND pin of the USB interface;
the device comprises:
a sending module configured to send configuration information of the charger to a terminal through the VBUS pin, the configuration information of the charger indicating a type of the charger;
a receiving module configured to receive output indication information from the terminal through the VBUS pin, the output indication information being determined by the terminal according to the configuration information and a current state parameter of a battery of the terminal;
and the output module is configured to be connected with the voltage supply circuit and the VBUS pin, and the voltage supply circuit is controlled to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
Optionally, the sending module includes: the method comprises the steps of obtaining a submodule, determining a submodule and sending a submodule;
the acquisition submodule is configured to acquire configuration information of the charger, wherein the configuration information at least comprises a maximum output voltage and a maximum output current;
the determination submodule is configured to determine a level signal for representing the configuration information;
the transmitting submodule is configured to transmit the level signal to the terminal through the VBUS pin.
Optionally, the receiving module is further configured to receive, during a charging process, regulated output indication information from the terminal through the VBUS pin, where the regulated output indication information is determined by the terminal according to a current charging state, and the current charging state is any one of a trickle charging state, a constant current charging state, and a constant voltage charging state;
the output module is further configured to control the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the adjusted output indication information.
Optionally, the apparatus further comprises:
a default output module configured to output a default voltage to the terminal through the VBUS pin when the voltage supply circuit and the VBUS pin are in an on state;
a connection disconnection module configured to disconnect the voltage supply circuit and the VBUS pin after detecting a pull-down operation corresponding to a voltage on the VBUS pin;
the transmitting module is further configured to transmit configuration information of the charger to a terminal through the VBUS pin after disconnecting the voltage supply circuit and the VBUS pin.
Optionally, the apparatus further comprises:
the prompting module is configured to send first prompting information if a first confirmation response fed back by the terminal is not received within first preset time after the configuration information is sent to the terminal;
wherein the first acknowledgement response is used to indicate that the terminal has successfully received the configuration information.
Optionally, the apparatus further comprises:
a response module configured to send a second confirmation response to the terminal after receiving the output indication information from the terminal, the second confirmation response indicating that the charger has successfully received the output indication information;
the output module is further configured to switch on the voltage providing circuit and the VBUS pin after detecting a pull-up operation corresponding to the voltage on the VBUS pin, and control the voltage providing circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a charging device applied to a control chip of a terminal, the terminal including: the device comprises a battery, a PMIC, a control chip and a USB interface; the battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a VBUS pin and a GND pin of the USB interface;
the device comprises:
the receiving module is configured to receive configuration information sent by a charger through the VBUS pin, and the configuration information of the charger is used for indicating the type of the charger;
a determining module configured to determine output indication information according to the configuration information and a current state parameter of the battery;
a transmitting module configured to transmit the output indication information to the charger through the VBUS pin;
an obtaining module configured to obtain, through the VBUS pin, electric energy provided by the charger according to the output indication information;
a charging module configured to turn on the VBUS pin and the PMIC through which the battery is charged with the electrical energy.
Optionally, the sending module includes: a determining submodule and a sending submodule;
the determination submodule configured to determine a level signal representing the output indication information; wherein the output indication information includes at least a specified output voltage and a specified output current;
the transmitting sub-module is configured to transmit the level signal to the charger through the VBUS pin.
Optionally, the apparatus further comprises:
a state determination module configured to determine a current charging state through the PMIC during a charging process, the current charging state being any one of a trickle charging state, a constant current charging state, and a constant voltage charging state;
an adjustment determination module configured to determine adjusted output indication information according to the current state of charge;
the transmitting module is further configured to transmit the adjusted output indication information to the charger through the VBUS pin.
Optionally, the apparatus further comprises:
and the pull-down module is configured to execute pull-down operation corresponding to the voltage on the VBUS pin when the default voltage output by the charger is detected on the VBUS pin, so that the charger disconnects the voltage supply circuit of the charger and the VBUS pin after the pull-down operation is detected, and then sends the configuration information to the terminal.
Optionally, the apparatus further comprises:
the prompting module is configured to send out second prompting information if a second confirmation response fed back by the charger is not received within second preset time after the output indication information is sent to the charger;
wherein the second acknowledgement response is to indicate that the charger has successfully received the output indication information.
Optionally, the apparatus further comprises:
a pull-up module configured to perform a pull-up operation corresponding to a voltage on the VBUS pin after receiving the second acknowledgement response sent by the charger, so that the charger turns on a voltage supply circuit of the charger and the VBUS pin after detecting the pull-up operation, and then controls the voltage supply circuit to supply the power to the terminal according to the output indication information.
Optionally, the apparatus further comprises:
a detection module configured to detect whether a voltage on the VBUS pin is greater than a maximum charging voltage after receiving the power provided by the charger;
the charging module is further configured to switch on the VBUS pin and the PMIC when a voltage on the VBUS pin is less than or equal to the maximum charging voltage, and charge the battery with the electric energy through the PMIC.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a charger for charging a battery in a terminal, the charger including: the device comprises a voltage supply circuit, a control chip and a USB interface; the control chip is electrically connected with the voltage supply circuit, and is also electrically connected with a VBUS pin and a GND pin of the USB interface;
the control chip includes: a processor and a memory for storing executable instructions of the processor;
the processor configured to:
sending configuration information of the charger to a terminal through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
receiving output indication information from the terminal through the VBUS pin, wherein the output indication information is determined by the terminal according to the configuration information and the current state parameter of the battery of the terminal;
and switching on the voltage supply circuit and the VBUS pin, and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal, including: the device comprises a battery, a PMIC, a control chip and a USB interface; the battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a VBUS pin and a GND pin of the USB interface;
the control chip includes: a processor and a memory for storing executable instructions of the processor;
the processor configured to:
receiving configuration information sent by a charger through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
determining output indication information according to the configuration information and the current state parameter of the battery;
sending the output indication information to the charger through the VBUS pin;
receiving, through the VBUS pin, power provided by the charger according to the output indication information;
and switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a charging system including: the device comprises a charger, a USB connecting line and a terminal; the charger is connected with the terminal through the USB connecting line;
the charger is the charger of the fifth aspect;
the terminal is a terminal as described in the sixth aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon instructions for execution by a processor to perform the steps of the method according to the first aspect or the steps of the method according to the second aspect
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the charger sends configuration information of the charger to the terminal through the VBUS pin, receives output indication information from the terminal through the VBUS pin, then is connected with the voltage supply circuit and the VBUS pin, and controls the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1A is a schematic diagram of a charging system shown in accordance with an exemplary embodiment;
FIG. 1B is a schematic diagram of a charging system shown in accordance with another exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of charging in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of charging in accordance with another exemplary embodiment;
FIG. 4A is a flow chart illustrating a method of charging in accordance with another exemplary embodiment;
FIG. 4B is a flow chart illustrating a method of charging in accordance with another exemplary embodiment;
FIG. 5 is a block diagram illustrating a charging device in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a charging device in accordance with another exemplary embodiment;
FIG. 7 is a block diagram illustrating a charging system in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1A is a schematic diagram illustrating a charging system in accordance with an exemplary embodiment. As shown in fig. 1A, the charging system includes: a charger 10, a USB connection cord 20 and a terminal 30. Wherein the charger 10 is connected to the terminal 30 through the USB connection line 20.
The charger 10, also referred to as a power adapter, is used to charge the battery 32 in the terminal 30. The charger 10 includes: a voltage supply circuit 12, a control chip 14 and a USB interface 16. The control chip 14 is electrically connected to the voltage supply circuit 12. The control chip 14 is also electrically connected to the VBUS pin and the GND pin of the USB interface 16.
The voltage supply circuit 12 is used to convert the input power supply voltage into a dc voltage that can be used for charging. In a general case, referring to fig. 1B in combination, the voltage supply circuit 12 includes an AC/DC (alternating current/direct current) conversion circuit 121 and a voltage step-down circuit 122. An input terminal of the AC/DC conversion circuit 121 is connected to an AC power supply, an output terminal of the AC/DC conversion circuit 121 is connected to an input terminal of the voltage step-down circuit 122, and the AC/DC conversion circuit 121 is configured to convert an input AC power into a DC power. The voltage reducing circuit 122 is also called Buck-converter, an input end of the voltage reducing circuit 122 is connected to an output end of the AC/DC conversion circuit 121, an output end of the voltage reducing circuit 122 is connected to the control chip 14, and the voltage reducing circuit 122 is configured to reduce a DC voltage output by the AC/DC conversion circuit 121 and output a DC voltage that can be used for charging.
Referring to fig. 1B in combination, the control chip 14 includes: a control component 141, a sending component 142, a receiving component 143, and a power component 144. The power supply component 144 is used for providing power required by the control chip 14, that is, for providing power required by the control component 141, the sending component 142 and the receiving component 143 in the control chip 14. The sending component 142 and the receiving component 143 are used to send and receive data, respectively. The control component 141 is used for controlling the sending component 142 and the receiving component 143, and has data processing and storing functions.
The terminal 30 may be an electronic device such as a mobile phone, a tablet computer, a multimedia player, an e-book reader, etc. The terminal 30 includes: battery 32, PMIC34, control chip 36, and USB interface 38. The battery 32 is electrically connected to the PMIC 34. The control chip 36 is electrically connected to the PMIC 34. The control chip 36 is also electrically connected to the VBUS pin and the GND pin of the USB interface 38.
Referring to fig. 1B in combination, the control chip 36 includes: a control component 361, a sending component 362, a receiving component 363, and a power component 364. The power supply component 364 is used for providing power required by the control chip 36, that is, for providing power required by the control component 361, the transmitting component 362 and the receiving component 363 in the control chip 36. The transmit component 362 and receive component 363 are used to transmit and receive data, respectively. The control module 361 is used for controlling the sending module 362 and the receiving module 363, and has data processing and storing functions. In practical applications, the control chip 14 in the charger 10 and the control chip 36 in the terminal 30 may adopt the same hardware structure, except that Firmware of the control chip is burned separately during production, so that the control chip can realize different functions.
In addition, referring collectively to FIG. 1B, terminal 30 also includes a CPU 39. The CPU39 is electrically connected to the DP pin and the DM pin of the USB interface 38, respectively, so as to implement data transmission between USB host and USB slave devices.
The USB connection 20 is used to connect the USB interface 16 of the charger 10 and the USB interface 38 of the terminal 30. The USB connection line 20 includes at least a VBUS connection line and a GND connection line. One end of the VBUS connection line is connected to the VBUS pin of the USB interface 16 of the charger 10, and the other end is connected to the VBUS pin of the USB interface 38 of the terminal 30. One end of the GND connecting wire is connected to the GND pin of the USB interface 16 of the charger 10, and the other end is connected to the GND pin of the USB interface 38 of the terminal 30. In the embodiment of the present disclosure, the adopted USB interface technology may be based on the USB2.0 protocol, or based on the next generation USB communication protocol. Taking the USB2.0 protocol as an example, the types of the corresponding USB interfaces include Micro USB, Mini USB, standard USB, and the like. The USB interface generally includes a VBUS pin, a DP pin, a DM pin, and a GND pin, and part of the USB interface further includes an ID (Identity) pin. Different from the related art that charger identification is realized by adopting a DP pin and a DM pin, in the technical scheme provided by the embodiment of the present disclosure, charger identification is realized by adopting a VBUS pin, so as to fundamentally overcome the problems in the related art.
In the following, the technical solutions provided by the present disclosure are introduced and explained by several embodiments.
Fig. 2 is a flowchart illustrating a charging method according to an exemplary embodiment, which may be applied to the control chip 14 of the charger 10 in the charging system shown in fig. 1A and 1B. The method may include several steps as follows.
In step 202, configuration information of the charger is sent to the terminal through the VBUS pin.
In step 204, output indication information is received from the terminal through the VBUS pin, the output indication information being determined by the terminal according to the configuration information and current state parameters of the battery of the terminal.
In step 206, the voltage supply circuit and the VBUS pin are turned on, and the voltage supply circuit is controlled to output power for charging the battery of the terminal to the terminal according to the output indication information.
In summary, in the method provided in this embodiment, the charger sends configuration information of the charger to the terminal through the VBUS pin, receives output indication information from the terminal through the VBUS pin, then switches on the voltage providing circuit and the VBUS pin, and controls the voltage providing circuit to output electric energy for charging the battery of the terminal to the terminal according to the output indication information; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
Fig. 3 is a flowchart illustrating a charging method according to another exemplary embodiment, which may be applied to the control chip 36 of the terminal 30 in the charging system shown in fig. 1A and 1B. The method may include several steps as follows.
In step 302, configuration information sent by the charger is received through the VBUS pin.
In step 304, output indication information is determined based on the configuration information and the current state parameter of the battery.
In step 306, output indication information is sent to the charger via the VBUS pin.
In step 308, power provided by the charger according to the output indication information is received through the VBUS pin.
In step 310, the VBUS pin and the PMIC are turned on, and the battery is charged by the PMIC using the above-mentioned electric energy.
In summary, in the method provided in this embodiment, the terminal receives the configuration information sent by the charger through the VBUS pin, and feeds back the output indication information to the charger through the VBUS pin, and further receives the electric energy provided by the charger according to the output indication information through the VBUS pin, and turns on the VBUS pin and the PMIC, and the PMIC charges the battery with the electric energy; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
Fig. 4A is a flowchart illustrating a charging method according to another exemplary embodiment, which is exemplified by applying the method to the charging system shown in fig. 1A and 1B. The method may include several steps as follows.
In step 401, the charger outputs a default voltage to the terminal through the VBUS pin in a state where the voltage supply circuit of the charger and the VBUS pin are in an on state.
The default connection state between the voltage supply circuit of the charger and the VBUS pin may be an on state, i.e., the default switch state of the switch S1 in the control chip of the charger shown in fig. 1B is a closed state. After the charger is connected with the terminal through the USB connecting line and is plugged with a power supply, the control chip of the charger controls the voltage supply circuit to output default voltage and outputs the default voltage to the terminal through the VBUS pin. In the usual case, the default voltage is 5V.
In step 402, the terminal performs a pull-down operation corresponding to the voltage on the VBUS pin when it detects that there is a default voltage output by the charger on the VBUS pin.
When detecting that the VBUS pin has the default voltage output by the charger, a control chip of the terminal pulls down the default voltage to 0V for a first preset time, and then restores the voltage on the VBUS pin from 0V to the default voltage. The first predetermined time period may be preset according to an actual requirement, such as 1ms or 50 ms. The terminal performs a pull-down operation for informing the charger that the two have successfully established a connection.
In step 403, the charger disconnects the connection between the voltage supply circuit and the VBUS pin after detecting a pull-down operation corresponding to the voltage on the VBUS pin.
Referring to fig. 1B in combination, after detecting the pull-down operation corresponding to the voltage on the VBUS pin, the control chip of the charger opens the switch S1, so that the voltage on the VBUS pin becomes 0V, and then performs the following step 404.
In step 404, after disconnecting the connection between the voltage supply circuit and the VBUS pin, the charger transmits configuration information of the charger to the terminal through the VBUS pin.
The configuration information of the charger is used to indicate the type of the charger. The configuration information of the charger includes at least a maximum output voltage and a maximum output current. Optionally, the configuration information of the charger further includes: at least one of a maximum output power, indication information indicating whether the charger supports dynamically adjusting the output power, and a check value. The parity check may be odd parity check or even parity check, which is not limited in this embodiment.
In the embodiment of the disclosure, a single-wire communication protocol based on a VBUS pin is constructed to realize charger identification. The method comprises the following substeps:
1. the charger acquires configuration information of the charger;
2. the charger determines a level signal for representing the configuration information;
3. the level signal is sent to the terminal through the VBUS pin.
In one possible embodiment, the length of the level signal used for representing the configuration information of the charger is 1 byte, that is, 8 bits. The charger comprises a charger body, a plurality of bits and a plurality of check values, wherein the 2 bits are used for indicating the maximum output power of the charger, the 2 bits are used for indicating the maximum output voltage of the charger, the 2 bits are used for indicating the maximum output current of the charger, the 1 bit is used for indicating whether the charger supports the dynamic regulation of the output power, and the 1 bit is used for indicating the check value.
For example, there are 8 BITs from BIT0 to BIT7, and the information indicated by each BIT is as shown in the following table-1:
Figure GDA0002265725590000141
TABLE-1
Assuming that the maximum output power of the charger is 18W, the maximum output voltage is 9V, the maximum output current is 2A, the charger does not support dynamic regulation of the output power, and the check mode adopts odd check, the level signal for indicating the configuration information is 00010101. Of course, the data protocol format shown in table-1 above is exemplary and explanatory only and is not intended to limit the present disclosure.
In addition, the configuration information of the charger further includes a start bit and a stop bit. In one possible embodiment, the start bit is represented by a rising edge from 0V to a default voltage, and the stop bit is represented by a falling edge from the default voltage to 0V. In another possible embodiment, the start bit is represented by a falling edge from the default voltage to 0V, and the stop bit is represented by a rising edge from 0V to the default voltage.
In addition, the range of the output voltage corresponding to the high-level signal may be 3V to 3.3V, and the typical value of the voltage in the range is 3.3V; the output voltage for a low level signal may range from 1.62V to 1.98V, with a typical voltage value in this range being 1.8V. Therefore, in one example, 3.3V is used to represent a high level signal, 1.8V is used to represent a low level signal, and the control chip of the charger sequentially outputs logic level signals through the VBUS pin, so as to transmit the configuration information of the charger to the terminal.
Accordingly, the control chip of the terminal receives the configuration information sent by the charger through the VBUS pin.
In step 405, the terminal sends a first confirmation response to the charger after receiving the configuration information from the charger.
The first acknowledgement response is used to indicate that the terminal has successfully received the configuration information.
After the charger sends the configuration information to the terminal, if a first confirmation response fed back by the terminal is not received within a first preset time, first prompt information is sent out. The first predetermined time may be preset according to actual requirements, such as 50 ms. The first prompt message is used for prompting a user that the connection between the charger and the terminal is in a problem, and the user can plug and unplug the USB line for connecting the charger and the terminal again according to the problem so as to try to recover the normal connection. In this embodiment, the type of the first prompt message is not limited, such as a text prompt, a voice prompt, or an audible and visual alarm. For example, the charger emits the first prompt message by flashing a red light.
In step 406, the terminal determines output indication information according to the configuration information and the current state parameter of the battery.
And the control chip of the terminal determines output indication information according to the received configuration information and the current state parameter of the battery acquired by the PMIC. The current state parameter of the battery is used to indicate the current state of the battery, including but not limited to the current battery voltage, the battery temperature, the cell type, and other parameters. The output instruction information is used to specify the output voltage and the output current of the charger. The output indication information includes at least a specified output voltage and a specified output current, and optionally also a specified output power.
In step 407, the terminal sends output indication information to the charger through the VBUS pin.
And the control chip of the terminal sends output indication information to the charger through the VBUS pin.
Similar to step 404 above, this step includes the following substeps:
1. the terminal determines a level signal for indicating output indication information;
2. the terminal sends the level signal to the charger through the VBUS pin.
Still taking the protocol specification shown in table-1 as an example, assuming that the specified output power is 10W, the specified output voltage is 5V, and the specified output current is 2A, the level signal indicating the output instruction information is 10100100.
Accordingly, the control chip of the charger receives the output instruction information from the terminal through the VBUS pin.
In step 408, the charger sends a second confirmation response to the terminal after receiving the output indication information from the terminal.
The second confirmation response is used to indicate that the charger has successfully received the output indication information.
And after the terminal sends the output indication information to the charger, if a second confirmation response fed back by the charger is not received within second preset time, sending a second prompt message. Wherein the second predetermined time can be preset according to actual requirements, such as 50 ms. The second prompt message is used for prompting the user that the connection between the charger and the terminal has a problem, and the user can plug and unplug the USB line for connecting the charger and the terminal again according to the problem so as to try to recover the normal connection. In this embodiment, the type of the second prompt message is not limited, such as a text prompt, a voice prompt, or an audible and visual alarm. For example, the terminal displays a corresponding text prompt.
In step 409, the terminal performs a pull-up operation corresponding to the voltage on the VBUS pin after receiving the second acknowledgement response sent by the charger.
And after receiving a second confirmation response sent by the charger, the control chip of the terminal pulls up the voltage on the VBUS pin from 0V to the default voltage for a second preset time, and then restores the voltage on the VBUS pin from the default voltage to 0V. The second predetermined time period may be preset according to an actual requirement, such as 1ms or 50 ms. The terminal performs a pull-up operation for informing the charger that the terminal is ready to receive power, and the charger may output power for charging the battery of the terminal.
In step 410, after detecting a pull-up operation corresponding to the voltage on the VBUS pin, the charger turns on the voltage supply circuit of the charger and the VBUS pin, and controls the voltage supply circuit to output power for charging the battery of the terminal to the terminal according to the output indication information.
Referring to fig. 1B in combination, after the control chip of the charger detects the pull-up operation, the switch S1 is closed, and the control voltage supply circuit outputs power from the VBUS pin according to the specified output voltage and the specified output current required by the terminal.
Accordingly, the control chip of the terminal receives the power provided by the charger according to the output indication information through the VBUS pin.
In step 411, the terminal detects whether the voltage on the VBUS pin is greater than the maximum charging voltage after receiving the power provided by the charger.
Optionally, in order to provide charging security, the control chip of the terminal detects whether the voltage on the VBUS pin is greater than the maximum charging voltage after receiving the power provided by the charger. The maximum charging voltage can be preset according to actual requirements.
In step 412, if the voltage on the VBUS pin is less than or equal to the maximum charging voltage, the terminal connects the VBUS pin of the terminal and the PMIC, and the battery is charged by the PMIC using the above-mentioned electric energy.
If the voltage on the VBUS pin is less than or equal to the maximum charging voltage, the control chip of the terminal turns on the VBUS pin and the PMIC of the terminal, for example, closes the switch S4 in fig. 1B, and charges the battery with the above-mentioned electric energy through the PMIC. In addition, if the voltage on the VBUS pin is larger than the maximum charging voltage, the terminal sends alarm information to prompt a user that the output voltage of the charger is too high.
After that, the PMIC of the terminal informs the control chip of the terminal to disconnect the charging path between the VBUS pin of the terminal and the PMIC after detecting that the battery is fully charged, and the whole charging process is finished.
In summary, in the method provided in this embodiment, the charger sends configuration information of the charger to the terminal through the VBUS pin, receives output indication information from the terminal through the VBUS pin, then switches on the voltage providing circuit and the VBUS pin, and controls the voltage providing circuit to output electric energy for charging the battery of the terminal to the terminal according to the output indication information; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
In another embodiment provided based on the embodiment shown in fig. 4A, as shown in fig. 4B, the step 412 further includes the following steps to realize dynamic adjustment of the output power of the charger during the charging process.
In step 413, during charging, the terminal determines the current charging state through the PMIC.
In the charging process, the control chip of the terminal determines the current charging state through the PMIC. The current charging state is any one of a trickle charging state, a constant-current charging state, and a constant-voltage charging state.
Under the condition that the voltage of the battery is low (such as lower than 2.9V), a trickle charging mode is adopted, namely, low-current charging is adopted, so that damage to the internal structure of the battery caused by high-current impact is avoided, and the purpose of protecting the battery is achieved. Under the condition that the voltage of the battery is higher (such as higher than 2.9V), a constant current charging mode is adopted, namely, large current charging is adopted, so that the purpose of saving charging time is achieved. Along with the charging, the battery voltage gradually rises, when the battery voltage reaches or approaches to the full voltage (such as 4.2V), a constant voltage charging mode is adopted, the charging voltage is kept basically unchanged, and the charging current is gradually reduced so as to achieve the purpose of avoiding overcharging.
In step 414, the terminal determines the adjusted output indication information according to the current charging status.
The regulated output indication information is still transmitted to the charger through the VBUS pin in the form of a logic level signal using the above-specified single-wire communication protocol based on the VBUS pin. The regulated output indication information at least comprises a regulated specified output voltage and a regulated specified output current, and optionally also comprises a regulated specified output power.
In step 415, the terminal sends the regulated output indication information to the charger via the VBUS pin.
Accordingly, the charger receives the regulated output indication information from the terminal through the VBUS pin.
In step 416, the charger controls the voltage supply circuit to output power for charging the battery of the terminal to the terminal according to the adjusted output indication information.
The control chip of the charger controls the voltage supply circuit to output electric energy from the VBUS pin to charge the battery of the terminal according to the regulated specified output voltage and the regulated specified output current required by the terminal, so that the dynamic regulation of the output power in the charging process is realized.
In summary, in the method provided in this embodiment, in the charging process, the terminal dynamically adjusts the output indication information according to the current charging state, so that the charger dynamically adjusts the output voltage and/or the output current according to the adjusted output indication information, thereby implementing dynamic adjustment of the output power, and facilitating improvement of the charging efficiency.
In the above-described embodiments shown in fig. 4A and 4B, the step related to the charger may be implemented separately as the charging method on the side of the charger, and the step related to the terminal may be implemented separately as the charging method on the side of the terminal.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating a charging device according to an exemplary embodiment, which may be applied to the control chip 14 of the charger 10 in the charging system shown in fig. 1A and 1B. The apparatus may include: a transmitting module 510, a receiving module 520, and an output module 530.
A transmitting module 510 configured to transmit configuration information of the charger to the terminal through the VBUS pin.
A receiving module 520 configured to receive output indication information from the terminal through the VBUS pin, the output indication information being determined by the terminal according to the configuration information transmitted by the transmitting module 510 and the current state parameter of the battery of the terminal.
And an output module 530 configured to turn on the voltage supply circuit and the VBUS pin, and control the voltage supply circuit to output power for charging a battery of the terminal to the terminal according to the output indication information received by the receiving module 520.
In summary, in the apparatus provided in this embodiment, the charger sends configuration information of the charger to the terminal through the VBUS pin, and receives output indication information from the terminal through the VBUS pin, and then switches on the voltage providing circuit and the VBUS pin, and controls the voltage providing circuit to output electric energy for charging the battery of the terminal to the terminal according to the output indication information; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
Fig. 6 is a block diagram illustrating a charging apparatus according to another exemplary embodiment, which may be applied to the control chip 36 of the terminal 30 in the charging system shown in fig. 1A and 1B. The apparatus may include: a receiving module 610, a determining module 620, a transmitting module 630, an obtaining module 640, and a charging module 650.
And a receiving module 610 configured to receive the configuration information sent by the charger through the VBUS pin.
A determining module 620 configured to determine output indication information according to the configuration information received by the receiving module 610 and the current state parameter of the battery.
A sending module 630 configured to send the output indication information determined by the determining module 620 to the charger through the VBUS pin.
An obtaining module 640 configured to obtain, through the VBUS pin, power provided by the charger according to the output indication information transmitted by the transmitting module 630.
And a charging module 650 configured to turn on the VBUS pin and the PMIC, and charge the battery through the PMIC using the electric energy obtained by the obtaining module 640.
In summary, in the apparatus provided in this embodiment, the terminal receives the configuration information sent by the charger through the VBUS pin, and feeds back the output indication information to the charger through the VBUS pin, and further receives the electric energy provided by the charger according to the output indication information through the VBUS pin, and turns on the VBUS pin and the PMIC, and the PMIC charges the battery with the electric energy; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
Fig. 7 is a block diagram illustrating a charging system in accordance with an exemplary embodiment. This charging system includes: charger 500, USB connection line and terminal 600. Wherein the charger 500 is connected to the terminal 600 through a USB connection line.
The charger 500 includes a charging device that can be applied to a control chip of the charger 500. The apparatus may include: a transmitting module 510, a receiving module 520, and an output module 530.
A transmitting module 510 configured to transmit configuration information of the charger 500 to the terminal 600 through the VBUS pin.
A receiving module 520 configured to receive output indication information from the terminal 600 through the VBUS pin, the output indication information being determined by the terminal 600 according to the configuration information transmitted by the transmitting module 510 and the current state parameter of the battery of the terminal 600.
An output module 530 configured to turn on the voltage supply circuit and the VBUS pin, and control the voltage supply circuit to output power for charging the battery of the terminal 600 to the terminal 600 according to the output indication information received by the receiving module 520.
Optionally, the sending module 510 includes: an acquisition sub-module 510a, a determination sub-module 510b, and a transmission sub-module 510 c.
The obtaining sub-module 510a is configured to obtain configuration information of the charger 500, which includes at least a maximum output voltage and a maximum output current.
A determination sub-module 510b configured to determine a level signal representing the configuration information acquired by the acquisition sub-module 510 a.
A transmitting sub-module 510c configured to transmit the level signal determined by the determining sub-module 510b to the terminal 600 through the VBUS pin.
Optionally, the receiving module 520 is further configured to receive, during the charging process, the adjusted output indication information from the terminal 600 through the VBUS pin, where the adjusted output indication information is determined by the terminal 600 according to the current charging state. The current charging state is any one of a trickle charging state, a constant-current charging state, and a constant-voltage charging state.
An output module 530 further configured to control the voltage supply circuit to output the power for charging the battery of the terminal 600 to the terminal 600 according to the adjusted output indication information received by the receiving module 520.
Optionally, the apparatus further comprises: a default output module 502 and a disconnect module 504.
A default output module 502 configured to output a default voltage to the terminal 600 through the VBUS pin when the voltage supply circuit and the VBUS pin are in an on state.
A disconnection module 504 configured to disconnect the voltage supply circuit from the VBUS pin after detecting a pull-down operation corresponding to a voltage on the VBUS pin.
The transmitting module 510 is further configured to transmit the configuration information of the charger 500 to the terminal 600 through the VBUS pin after the connection between the voltage providing circuit and the VBUS pin is disconnected.
Optionally, the apparatus further comprises: the response receiving module 512.
A response receiving module 512 configured to receive the first acknowledgement response sent by the terminal 600 after the sending module 510 sends the configuration information to the terminal 600. Wherein the first acknowledgement response is used to indicate that the terminal 600 has successfully received the configuration information.
Optionally, the apparatus further comprises: a prompt module 514.
The prompting module 514 is configured to send the first prompting message if the first confirmation response fed back by the terminal 600 is not received within the first predetermined time after the sending module 510 sends the configuration information to the terminal 600.
Optionally, the apparatus further comprises: a response module 522.
A response module 522 configured to send a second confirmation response to the terminal 600 after the receiving module 520 receives the output indication information from the terminal 600, the second confirmation response indicating that the charger 500 has successfully received the output indication information.
The output module 530 is further configured to, after detecting a pull-up operation corresponding to a voltage on the VBUS pin, turn on the voltage providing circuit and the VBUS pin, and control the voltage providing circuit to output power for charging the battery of the terminal 600 to the terminal 600 according to the output indication information. Wherein the pull-up operation is performed by the terminal 600 after receiving the second acknowledgement response.
The terminal 600 includes a charging device, which can be applied in a control chip of the terminal 600. The apparatus may include: a receiving module 610, a determining module 620, a transmitting module 630, an obtaining module 640, and a charging module 650.
A receiving module 610 configured to receive the configuration information sent by the charger 500 through the VBUS pin.
A determining module 620 configured to determine output indication information according to the configuration information received by the receiving module 610 and the current state parameter of the battery.
A sending module 630 configured to send the output indication information determined by the determining module 620 to the charger 500 through the VBUS pin.
The obtaining module 640 is configured to obtain the power provided by the charger 500 according to the output indication information transmitted by the transmitting module 630 through the VBUS pin.
And a charging module 650 configured to turn on the VBUS pin and the PMIC, and charge the battery through the PMIC using the electric energy obtained by the obtaining module 640.
Optionally, the sending module 630 includes: a determination sub-module 630a and a transmission sub-module 630 b.
The determining sub-module 630a is configured to determine a level signal representing the output indication information determined by the determining module 620. Wherein the output indication information at least comprises a specified output voltage and a specified output current.
The transmitting sub-module 630b is configured to transmit the level signal determined by the determining sub-module 630a to the charger 500 through the VBUS pin.
Optionally, the apparatus further comprises: a state determination module 660 and an adjustment determination module 670.
A state determination module 660 configured to determine a current charging state during charging, the current charging state being any one of a trickle charging state, a constant current charging state, and a constant voltage charging state, through the PMIC.
An adjustment determining module 670 configured to determine adjusted output indication information according to the current state of charge determined by the state determining module 660.
The sending module 630 is further configured to send the output indication information adjusted by the adjustment determining module 670 to the charger 500 through the VBUS pin.
Optionally, the apparatus further comprises: a pull-down module 602.
The pull-down module 602 is configured to, when detecting that there is a default voltage output by the charger 500 on the VBUS pin, perform a pull-down operation corresponding to the voltage on the VBUS pin, so that the charger 500 disconnects the voltage supply circuit of the charger 500 from the VBUS pin after detecting the pull-down operation, and then sends the configuration information to the terminal 600.
Optionally, the apparatus further comprises: in response to the receiving module 632.
The response receiving module 632 is configured to receive a second confirmation response fed back by the charger 500 after sending the output indication information to the charger 500. Wherein the second confirmation response is used to indicate that the charger 500 has successfully received the output indication information.
Optionally, the apparatus further comprises: prompt module 634.
The prompting module 634 is configured to send out a second prompting message if a second confirmation response of the charger feedback is not received within a second predetermined time after the output indication message is sent to the charger 500.
Optionally, the apparatus further comprises: a pull-up module 636.
And a pull-up module 636 configured to perform a pull-up operation corresponding to the voltage on the VBUS pin after receiving the second acknowledgement response transmitted by the charger 500, so that the charger 500 turns on the voltage supply circuit of the charger 500 and the VBUS pin after detecting the pull-up operation, and then controls the voltage supply circuit to supply power to the terminal 600 according to the output indication information.
Optionally, the apparatus further comprises: a detection module 642.
The detecting module 642 is configured to detect whether the voltage on the VBUS pin is greater than the maximum charging voltage after receiving the power provided by the charger 500.
The charging module 650 is further configured to, when the detection module 642 detects that the voltage on the VBUS pin is less than or equal to the maximum charging voltage, turn on the VBUS pin and the PMIC, and charge the battery with the electric energy through the PMIC.
Optionally, the apparatus further comprises: a response module 612.
A response module 612 configured to send a first confirmation response to the charger 500 after the receiving module 610 receives the configuration information from the charger 500, the first confirmation response indicating that the terminal 600 has successfully received the configuration information.
In summary, in the system provided in this embodiment, the charger sends configuration information of the charger to the terminal through the VBUS pin, receives output indication information from the terminal through the VBUS pin, then switches on the voltage providing circuit and the VBUS pin, and controls the voltage providing circuit to output electric energy for charging the battery of the terminal to the terminal according to the output indication information; the problem that the connection mode provided by the related technology influences charger identification and has the hidden trouble of charger identification error on one hand and influences the signal quality during data transmission between the USB master device and the USB slave device on the other hand is solved; the charger identification is realized by the VBUS pin, the data transmission is realized by the DP pin and the DM pin, the phenomenon that a transmission path of a data line connecting the DP pin and the DM pin is forked is fundamentally avoided, the success rate of the charger identification is improved, and the signal quality during data transmission between the USB master device and the USB slave device is ensured.
In addition, in the charging process, the terminal dynamically adjusts the output indication information according to the current charging state, so that the charger dynamically adjusts the output voltage and/or the output current according to the adjusted output indication information, thereby realizing the dynamic adjustment of the output power and being beneficial to improving the charging efficiency.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure also provides a charger for charging a battery in a terminal. The charger includes: the device comprises a voltage supply circuit, a control chip and a USB interface. The control chip is electrically connected with the voltage supply circuit and also electrically connected with a VBUS pin and a GND pin of the USB interface.
The control chip can realize the charging method on the charger side provided by the disclosure. The control chip includes: a processor and a memory for storing executable instructions for the processor. Wherein the processor is configured to:
sending configuration information of the charger to a terminal through the VBUS pin;
receiving output indication information from the terminal through the VBUS pin, wherein the output indication information is determined by the terminal according to the configuration information and the current state parameter of the battery of the terminal;
and switching on the voltage supply circuit and the VBUS pin, and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
Optionally, the processor is configured to:
acquiring configuration information of the charger, wherein the configuration information at least comprises a maximum output voltage and a maximum output current;
determining a level signal for representing the configuration information;
and sending the level signal to the terminal through the VBUS pin.
Optionally, the processor is further configured to:
in the charging process, receiving regulated output indication information from the terminal through the VBUS pin, wherein the regulated output indication information is determined by the terminal according to the current charging state, and the current charging state is any one of a trickle charging state, a constant current charging state and a constant voltage charging state;
and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the regulated output indication information.
Optionally, the processor is further configured to:
outputting a default voltage to the terminal through the VBUS pin when the voltage providing circuit and the VBUS pin are in an on state;
disconnecting the voltage supply circuit from the VBUS pin after detecting a pull-down operation corresponding to a voltage on the VBUS pin;
after the connection between the voltage supply circuit and the VBUS pin is disconnected, the configuration information of the charger is transmitted to a terminal through the VBUS pin.
Optionally, the processor is further configured to:
after the configuration information is sent to the terminal, if a first confirmation response fed back by the terminal is not received within a first preset time, sending a first prompt message;
wherein the first acknowledgement response is used to indicate that the terminal has successfully received the configuration information.
Optionally, the processor is further configured to:
after receiving the output indication information from the terminal, sending a second confirmation response to the terminal, wherein the second confirmation response is used for indicating that the charger has successfully received the output indication information;
after detecting the pull-up operation corresponding to the voltage on the VBUS pin, the voltage providing circuit and the VBUS pin are switched on, and the voltage providing circuit is controlled to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
An exemplary embodiment of the present disclosure also provides a terminal, including: the device comprises a battery, a PMIC, a control chip and a USB interface. The battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a VBUS pin and a GND pin of the USB interface.
The control chip can realize the terminal side charging method provided by the disclosure. The control chip includes: a processor and a memory for storing executable instructions for the processor. Wherein the processor is configured to:
receiving configuration information sent by a charger through the VBUS pin;
determining output indication information according to the configuration information and the current state parameter of the battery;
sending the output indication information to the charger through the VBUS pin;
receiving, through the VBUS pin, power provided by the charger according to the output indication information;
and switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
Optionally, the processor is configured to:
determining a level signal for representing the output indication information; wherein the output indication information includes at least a specified output voltage and a specified output current;
and sending the level signal to the charger through the VBUS pin.
Optionally, the processor is further configured to:
in the charging process, determining the current charging state through the PMIC, wherein the current charging state is any one of a trickle charging state, a constant-current charging state and a constant-voltage charging state;
determining adjusted output indication information according to the current charging state;
and sending the regulated output indication information to the charger through the VBUS pin.
Optionally, the processor is further configured to:
when the default voltage output by the charger is detected to exist on the VBUS pin, the pull-down operation corresponding to the voltage on the VBUS pin is executed, so that the charger breaks the connection between the voltage supply circuit of the charger and the VBUS pin after the pull-down operation is detected, and then the configuration information is sent to the terminal.
Optionally, the processor is further configured to:
after the output indication information is sent to the charger, if a second confirmation response fed back by the charger is not received within second preset time, sending a second prompt message;
wherein the second acknowledgement response is to indicate that the charger has successfully received the output indication information.
Optionally, the processor is further configured to:
after receiving the second confirmation response sent by the charger, executing a pull-up operation corresponding to the voltage on the VBUS pin, so that the charger switches on a voltage supply circuit of the charger and the VBUS pin after detecting the pull-up operation, and then controlling the voltage supply circuit to supply the electric energy to the terminal according to the output indication information.
Optionally, the processor is further configured to:
after receiving the electric energy provided by the charger, detecting whether the voltage on the VBUS pin is larger than a maximum charging voltage;
and under the condition that the voltage on the VBUS pin is less than or equal to the maximum charging voltage, the VBUS pin and the PMIC are switched on, and the electric energy is adopted by the PMIC to charge the battery.
Fig. 8 is a block diagram illustrating an apparatus 800 according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like terminal.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described terminal-side charging method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 to perform the above described terminal side charging method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, in which instructions, when executed by a processor of the apparatus 800, enable the apparatus 800 to perform the above-described terminal-side charging method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (30)

1. A charging method is applied to a control chip of a charger, and the charger comprises the following steps: the voltage supply circuit, the control chip and the Universal Serial Bus (USB) interface; the control chip is electrically connected with the voltage supply circuit, and is also electrically connected with a voltage bus VBUS pin and a ground wire GND pin of the USB interface;
the method comprises the following steps:
sending configuration information of the charger to a terminal through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
receiving output indication information from the terminal through the VBUS pin, wherein the output indication information is determined by the terminal according to the configuration information and the current state parameter of the battery of the terminal;
and switching on the voltage supply circuit and the VBUS pin, and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
2. The method of claim 1, wherein sending configuration information of the charger to a terminal via the VBUS pin comprises:
acquiring configuration information of the charger, wherein the configuration information at least comprises a maximum output voltage and a maximum output current;
determining a level signal for representing the configuration information;
and sending the level signal to the terminal through the VBUS pin.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
in the charging process, receiving regulated output indication information from the terminal through the VBUS pin, wherein the regulated output indication information is determined by the terminal according to the current charging state, and the current charging state is any one of a trickle charging state, a constant current charging state and a constant voltage charging state;
and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the regulated output indication information.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
outputting a default voltage to the terminal through the VBUS pin when the voltage providing circuit and the VBUS pin are in an on state;
disconnecting the voltage supply circuit from the VBUS pin after detecting a pull-down operation corresponding to a voltage on the VBUS pin;
the step of sending configuration information of the charger to a terminal through the VBUS pin is performed after disconnecting the voltage supply circuit and the VBUS pin.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
after the configuration information is sent to the terminal, if a first confirmation response fed back by the terminal is not received within a first preset time, sending a first prompt message;
wherein the first acknowledgement response is used to indicate that the terminal has successfully received the configuration information.
6. The method according to claim 1 or 2, characterized in that the method further comprises:
after receiving the output indication information from the terminal, sending a second confirmation response to the terminal, wherein the second confirmation response is used for indicating that the charger has successfully received the output indication information;
after detecting the pull-up operation corresponding to the voltage on the VBUS pin, executing the steps of switching on the voltage providing circuit and the VBUS pin, and controlling the voltage providing circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
7. A charging method is applied to a control chip of a terminal, and the terminal comprises the following steps: the control system comprises a battery, a Power Management Integrated Circuit (PMIC), the control chip and a Universal Serial Bus (USB) interface; the battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a voltage bus VBUS pin and a ground wire GND pin of the USB interface;
the method comprises the following steps:
receiving configuration information sent by a charger through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
determining output indication information according to the configuration information and the current state parameter of the battery;
sending the output indication information to the charger through the VBUS pin;
receiving, through the VBUS pin, power provided by the charger according to the output indication information;
and switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
8. The method of claim 7, wherein sending the output indication information to the charger via the VBUS pin comprises:
determining a level signal for representing the output indication information; wherein the output indication information includes at least a specified output voltage and a specified output current;
and sending the level signal to the charger through the VBUS pin.
9. The method according to claim 7 or 8, characterized in that the method further comprises:
in the charging process, determining the current charging state through the PMIC, wherein the current charging state is any one of a trickle charging state, a constant-current charging state and a constant-voltage charging state;
determining adjusted output indication information according to the current charging state;
and sending the regulated output indication information to the charger through the VBUS pin.
10. The method according to claim 7 or 8, characterized in that the method further comprises:
when the default voltage output by the charger is detected to exist on the VBUS pin, the pull-down operation corresponding to the voltage on the VBUS pin is executed, so that the charger breaks the connection between the voltage supply circuit of the charger and the VBUS pin after the pull-down operation is detected, and then the configuration information is sent to the terminal.
11. The method according to claim 7 or 8, characterized in that the method further comprises:
after the output indication information is sent to the charger, if a second confirmation response fed back by the charger is not received within second preset time, sending a second prompt message;
wherein the second acknowledgement response is to indicate that the charger has successfully received the output indication information.
12. The method of claim 11, further comprising:
after receiving the second confirmation response sent by the charger, executing a pull-up operation corresponding to the voltage on the VBUS pin, so that the charger switches on a voltage supply circuit of the charger and the VBUS pin after detecting the pull-up operation, and then controlling the voltage supply circuit to supply the electric energy to the terminal according to the output indication information.
13. The method according to claim 7 or 8, characterized in that the method further comprises:
after receiving the electric energy provided by the charger, detecting whether the voltage on the VBUS pin is larger than a maximum charging voltage;
and if the voltage on the VBUS pin is less than or equal to the maximum charging voltage, executing the step of switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
14. A charging device, applied to a control chip of a charger, the charger comprising: the voltage supply circuit, the control chip and the Universal Serial Bus (USB) interface; the control chip is electrically connected with the voltage supply circuit, and is also electrically connected with a voltage bus VBUS pin and a ground wire GND pin of the USB interface;
the device comprises:
a sending module configured to send configuration information of the charger to a terminal through the VBUS pin, the configuration information of the charger indicating a type of the charger;
a receiving module configured to receive output indication information from the terminal through the VBUS pin, the output indication information being determined by the terminal according to the configuration information and a current state parameter of a battery of the terminal;
and the output module is configured to be connected with the voltage supply circuit and the VBUS pin, and the voltage supply circuit is controlled to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
15. The apparatus of claim 14, wherein the sending module comprises: the method comprises the steps of obtaining a submodule, determining a submodule and sending a submodule;
the acquisition submodule is configured to acquire configuration information of the charger, wherein the configuration information at least comprises a maximum output voltage and a maximum output current;
the determination submodule is configured to determine a level signal for representing the configuration information;
the transmitting submodule is configured to transmit the level signal to the terminal through the VBUS pin.
16. The apparatus of claim 14 or 15,
the receiving module is further configured to receive regulated output indication information from the terminal through the VBUS pin in a charging process, where the regulated output indication information is determined by the terminal according to a current charging state, and the current charging state is any one of a trickle charging state, a constant current charging state and a constant voltage charging state;
the output module is further configured to control the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the adjusted output indication information.
17. The apparatus of claim 14 or 15, further comprising:
a default output module configured to output a default voltage to the terminal through the VBUS pin when the voltage supply circuit and the VBUS pin are in an on state;
a connection disconnection module configured to disconnect the voltage supply circuit and the VBUS pin after detecting a pull-down operation corresponding to a voltage on the VBUS pin;
the transmitting module is further configured to transmit configuration information of the charger to a terminal through the VBUS pin after disconnecting the voltage supply circuit and the VBUS pin.
18. The apparatus of claim 14 or 15, further comprising:
the prompting module is configured to send first prompting information if a first confirmation response fed back by the terminal is not received within first preset time after the configuration information is sent to the terminal;
wherein the first acknowledgement response is used to indicate that the terminal has successfully received the configuration information.
19. The apparatus of claim 14 or 15, further comprising:
a response module configured to send a second confirmation response to the terminal after receiving the output indication information from the terminal, the second confirmation response indicating that the charger has successfully received the output indication information;
the output module is further configured to switch on the voltage providing circuit and the VBUS pin after detecting a pull-up operation corresponding to the voltage on the VBUS pin, and control the voltage providing circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
20. A charging device is applied to a control chip of a terminal, and the terminal comprises: the control system comprises a battery, a Power Management Integrated Circuit (PMIC), the control chip and a Universal Serial Bus (USB) interface; the battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a voltage bus VBUS pin and a ground wire GND pin of the USB interface;
the device comprises:
the receiving module is configured to receive configuration information sent by a charger through the VBUS pin, and the configuration information of the charger is used for indicating the type of the charger;
a determining module configured to determine output indication information according to the configuration information and a current state parameter of the battery;
a transmitting module configured to transmit the output indication information to the charger through the VBUS pin;
an obtaining module configured to obtain, through the VBUS pin, electric energy provided by the charger according to the output indication information;
a charging module configured to turn on the VBUS pin and the PMIC through which the battery is charged with the electrical energy.
21. The apparatus of claim 20, wherein the sending module comprises: a determining submodule and a sending submodule;
the determination submodule configured to determine a level signal representing the output indication information; wherein the output indication information includes at least a specified output voltage and a specified output current;
the transmitting sub-module is configured to transmit the level signal to the charger through the VBUS pin.
22. The apparatus of claim 20 or 21, further comprising:
a state determination module configured to determine a current charging state through the PMIC during a charging process, the current charging state being any one of a trickle charging state, a constant current charging state, and a constant voltage charging state;
an adjustment determination module configured to determine adjusted output indication information according to the current state of charge;
the transmitting module is further configured to transmit the adjusted output indication information to the charger through the VBUS pin.
23. The apparatus of claim 20 or 21, further comprising:
and the pull-down module is configured to execute pull-down operation corresponding to the voltage on the VBUS pin when the default voltage output by the charger is detected on the VBUS pin, so that the charger disconnects the voltage supply circuit of the charger and the VBUS pin after the pull-down operation is detected, and then sends the configuration information to the terminal.
24. The apparatus of claim 20 or 21, further comprising:
the prompting module is configured to send out second prompting information if a second confirmation response fed back by the charger is not received within second preset time after the output indication information is sent to the charger;
wherein the second acknowledgement response is to indicate that the charger has successfully received the output indication information.
25. The apparatus of claim 24, further comprising:
a pull-up module configured to perform a pull-up operation corresponding to a voltage on the VBUS pin after receiving the second acknowledgement response sent by the charger, so that the charger turns on a voltage supply circuit of the charger and the VBUS pin after detecting the pull-up operation, and then controls the voltage supply circuit to supply the power to the terminal according to the output indication information.
26. The apparatus of claim 20 or 21, further comprising:
a detection module configured to detect whether a voltage on the VBUS pin is greater than a maximum charging voltage after receiving the power provided by the charger;
the charging module is further configured to switch on the VBUS pin and the PMIC when a voltage on the VBUS pin is less than or equal to the maximum charging voltage, and charge the battery with the electric energy through the PMIC.
27. A charger for charging a battery in a terminal, the charger comprising: the device comprises a voltage supply circuit, a control chip and a Universal Serial Bus (USB) interface; the control chip is electrically connected with the voltage supply circuit, and is also electrically connected with a voltage bus VBUS pin and a ground wire GND pin of the USB interface;
the control chip includes: a processor and a memory for storing executable instructions of the processor;
the processor configured to:
sending configuration information of the charger to a terminal through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
receiving output indication information from the terminal through the VBUS pin, wherein the output indication information is determined by the terminal according to the configuration information and the current state parameter of the battery of the terminal;
and switching on the voltage supply circuit and the VBUS pin, and controlling the voltage supply circuit to output electric energy for charging a battery of the terminal to the terminal according to the output indication information.
28. A terminal, characterized in that the terminal comprises: the power management system comprises a battery, a power management integrated circuit PMIC, a control chip and a Universal Serial Bus (USB) interface; the battery is electrically connected with the PMIC, the control chip is electrically connected with the PMIC, and the control chip is also electrically connected with a voltage bus VBUS pin and a ground wire GND pin of the USB interface;
the control chip includes: a processor and a memory for storing executable instructions of the processor;
the processor configured to:
receiving configuration information sent by a charger through the VBUS pin, wherein the configuration information of the charger is used for indicating the type of the charger;
determining output indication information according to the configuration information and the current state parameter of the battery;
sending the output indication information to the charger through the VBUS pin;
receiving, through the VBUS pin, power provided by the charger according to the output indication information;
and switching on the VBUS pin and the PMIC, and charging the battery by adopting the electric energy through the PMIC.
29. An electrical charging system, comprising: the device comprises a charger, a Universal Serial Bus (USB) connecting line and a terminal; the charger is connected with the terminal through the USB connecting line;
the charger is according to claim 27;
the terminal is a terminal according to claim 28.
30. A non-transitory computer readable storage medium having stored thereon instructions for execution by a processor to perform the steps of the method of any one of claims 1 to 6 or the steps of the method of any one of claims 7 to 13.
CN201610104442.XA 2016-02-25 2016-02-25 Charging method, device, charger, terminal and system Active CN107124012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610104442.XA CN107124012B (en) 2016-02-25 2016-02-25 Charging method, device, charger, terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610104442.XA CN107124012B (en) 2016-02-25 2016-02-25 Charging method, device, charger, terminal and system

Publications (2)

Publication Number Publication Date
CN107124012A CN107124012A (en) 2017-09-01
CN107124012B true CN107124012B (en) 2020-02-07

Family

ID=59717697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610104442.XA Active CN107124012B (en) 2016-02-25 2016-02-25 Charging method, device, charger, terminal and system

Country Status (1)

Country Link
CN (1) CN107124012B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102343010B1 (en) * 2017-09-22 2021-12-23 광동 오포 모바일 텔레커뮤니케이션즈 코포레이션 리미티드 Power circuits and adapters
CN110460130B (en) * 2019-08-26 2022-06-21 北京字节跳动网络技术有限公司 Charging method, device, system, terminal and storage medium
CN111030227A (en) * 2019-12-20 2020-04-17 联想(北京)有限公司 Information processing method, charging seat and electronic equipment
CN115378094A (en) * 2022-09-07 2022-11-22 维沃移动通信有限公司 Electronic device, charging device, and charging control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104953678A (en) * 2015-07-20 2015-09-30 广东欧珀移动通信有限公司 Control method and system for mutual charging of mobile terminals
CN104979886A (en) * 2014-04-09 2015-10-14 黑莓有限公司 Device, system and method for charging battery

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101717505B1 (en) * 2010-12-02 2017-03-17 삼성전자주식회사 Method for Charging External Device and Displaying Apparatus using thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104979886A (en) * 2014-04-09 2015-10-14 黑莓有限公司 Device, system and method for charging battery
CN104953678A (en) * 2015-07-20 2015-09-30 广东欧珀移动通信有限公司 Control method and system for mutual charging of mobile terminals

Also Published As

Publication number Publication date
CN107124012A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
US10116157B2 (en) Method and device for charging batteries in mobile devices
EP3121926B1 (en) Charging method and apparatus
CN112928787B (en) Charging circuit, electronic device, charging control method and device
CN108964182B (en) Reverse charging equipment, and method and device for adjusting reverse charging current
CN107124012B (en) Charging method, device, charger, terminal and system
CN107681727B (en) Control method and device of electronic equipment
CN104577235B (en) For the method for portable set charging, the method, apparatus and system of control charging
EP3846305A1 (en) Electronic device, charging method and device for the same, and computer-readable storage medium
CN107329520B (en) USB interface connection method, device and system of mobile terminal
CN107546873B (en) Wireless charging distance control method and device and electronic equipment
CN111864858A (en) Charging control method, charging control device, power utilization equipment, charging system and medium
CN113572210A (en) Charging method, device, equipment and storage medium
CN216564606U (en) Charger and charging equipment
CN112019681B (en) Control method of mobile terminal, mobile terminal and storage medium
CN112311035B (en) Charge control method, charge control device, and readable storage medium
CN106776424B (en) Connector, control method and control device thereof, and electronic equipment
CN111600351A (en) Rechargeable battery, terminal device, charging method, charging system, and charging apparatus
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium
RU145542U1 (en) DEVICE FOR MULTIPLATFORM DATA EXCHANGE AND / OR USER IDENTIFICATION
CN220292026U (en) Wireless communication equipment and system
CN116131375A (en) Charging module, charging method, electronic device and storage medium
CN113922457A (en) Charging method, charging device, electronic device and storage medium
CN115864552A (en) Charging circuit, charging method, charging device, terminal device and storage medium
CN117639146A (en) Charging method and electric equipment
CN114696417A (en) Charging conversion device, charging method and device, electronic device, and storage medium

Legal Events

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