CN113178918B - Charging method and device, and computer readable storage medium - Google Patents

Charging method and device, and computer readable storage medium Download PDF

Info

Publication number
CN113178918B
CN113178918B CN202110517421.1A CN202110517421A CN113178918B CN 113178918 B CN113178918 B CN 113178918B CN 202110517421 A CN202110517421 A CN 202110517421A CN 113178918 B CN113178918 B CN 113178918B
Authority
CN
China
Prior art keywords
charged
charger
voltage
output
current
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
CN202110517421.1A
Other languages
Chinese (zh)
Other versions
CN113178918A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202110517421.1A priority Critical patent/CN113178918B/en
Publication of CN113178918A publication Critical patent/CN113178918A/en
Application granted granted Critical
Publication of CN113178918B publication Critical patent/CN113178918B/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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/446Initial charging measures
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

A charging method and apparatus, a computer readable storage medium, the charging method comprising: acquiring a first control signal output by equipment to be charged; when the first voltage value corresponding to the first control signal is determined to be in a first voltage range, outputting a first feedback signal; acquiring a second control signal output by the equipment to be charged, wherein the second control signal is sent by the equipment to be charged after receiving the first feedback signal; and outputting a second feedback signal when the second voltage value corresponding to the second control signal is determined to be in a second voltage range. The scheme can realize the secondary handshake process of the charger and the equipment to be charged.

Description

Charging method and device, and computer readable storage medium
Technical Field
The present invention relates to the field of charging technologies, and in particular, to a charging method and apparatus, and a computer readable storage medium.
Background
The existing USB national standard charger generally includes four pins: VBUS pin, DP pin, DM pin and GND pin, wherein, VBUS pin is the output pin of charger, and DP pin and DM pin are two signal pins of USB interface. When the equipment to be charged, such as a mobile terminal like a mobile phone, is charged through the charger, the equipment to be charged judges whether the current charger is a national standard charger or not by detecting whether DM and DP ports of the charger are short-circuited or not.
In the existing version 2.0 of the fast charging protocol, it is specified that the charger needs to perform a two-time handshake process with the device to be charged before outputting electrical energy to the device to be charged. After the two-way handshake process is completed, the charger outputs electric energy to the device to be charged.
However, no specific handshaking procedure between the charger and the device to be charged is given in the existing protocols.
Disclosure of Invention
One of the purposes of the embodiments of the present invention is to provide a method for handshaking procedure between a charger and a device to be charged.
To achieve the above object, an embodiment of the present invention provides a charging method, including: acquiring a first control signal output by equipment to be charged; when the first voltage value corresponding to the first control signal is determined to be in a first voltage range, outputting a first feedback signal; acquiring a second control signal output by the equipment to be charged, wherein the second control signal is sent by the equipment to be charged after receiving the first feedback signal; and outputting a second feedback signal when the second voltage value corresponding to the second control signal is determined to be in a second voltage range.
Optionally, the charging method further includes: and informing the charging mode currently supported by the equipment to be charged.
Optionally, the notifying the charging mode currently supported by the device to be charged includes: and sending a pulse signal to the equipment to be charged, wherein the duration and the amplitude of the pulse signal characterize the charging mode.
Optionally, the duration and magnitude of the second feedback signal characterize the charging mode.
Optionally, the currently supported charging mode includes at least one of: constant voltage charging mode, constant current charging mode.
Optionally, the currently supported charging mode includes a constant voltage charging mode; after informing the charging mode currently supported by the device to be charged, the method further comprises: acquiring a voltage adjustment signal output by the equipment to be charged; and adjusting the current output voltage according to the voltage adjustment signal.
Optionally, the obtaining the voltage adjustment signal output by the device to be charged includes: receiving a control current value output by the equipment to be charged; and obtaining the target voltage corresponding to the control current value according to a preset corresponding relation.
Optionally, the obtaining the voltage adjustment signal output by the device to be charged includes: receiving a control current value output by the equipment to be charged; and adjusting the current output voltage according to the preset adjustment step length according to the magnitude of the control current value.
Optionally, the currently supported charging mode includes a constant current charging mode; after informing the charging mode currently supported by the device to be charged, the method further comprises: acquiring a current adjustment signal output by the equipment to be charged; and adjusting the current output current according to the current adjustment signal.
Optionally, the obtaining the current adjustment signal output by the device to be charged includes: receiving a control current value output by the equipment to be charged; and obtaining the target current corresponding to the control current value according to a preset corresponding relation.
Optionally, the obtaining the current adjustment signal output by the device to be charged includes: receiving a control current value output by the equipment to be charged; and adjusting the current output current according to the preset adjustment step length according to the magnitude of the control current value.
To achieve the above object, an embodiment of the present invention further provides a charging method for a device to be charged, including: detecting that connection with a charger is established, and outputting a first control signal; receiving a first feedback signal; the first feedback signal is correspondingly generated when the charger detects that a first voltage value corresponding to the first control signal is in a first voltage range; outputting a second control signal; and receiving a second feedback signal, wherein the second feedback signal is generated when the charger detects that a second voltage value corresponding to the second control signal is in a second voltage range.
Optionally, the charging method of the device to be charged further includes: and acquiring a charging mode currently supported by the charger.
Optionally, the acquiring the charging mode currently supported by the charger includes: and receiving a pulse signal sent by the charger, wherein the duration and the amplitude of the pulse signal represent the charging mode.
Optionally, the receiving the pulse signal sent by the charger includes any one of the following: receiving the pulse signal after receiving the first feedback signal; or, after receiving the second feedback signal, receiving the pulse signal.
Optionally, the acquiring the charging mode currently supported by the charger includes: and acquiring the duration and the amplitude of the second feedback signal, and acquiring the charging mode currently supported by the charger.
Optionally, the charging modes currently supported by the charger include any one of the following: constant voltage charging mode, constant current charging mode.
Optionally, the charging mode currently supported by the charger includes a constant voltage charging mode; after acquiring the charging mode currently supported by the charger, the method further comprises: and outputting a voltage adjustment signal to enable the charger to adjust the current output voltage.
Optionally, the output voltage adjustment signal includes: outputting a control current value, the control current value corresponding to a target voltage; so that the charger adjusts the current output voltage to the target voltage.
Optionally, the output voltage adjustment signal includes: outputting a control current value, wherein the control current value corresponds to a voltage adjustment step length; and the charger adjusts the current output voltage according to the voltage adjustment step length corresponding to the control current value.
Optionally, after acquiring the charging mode currently supported by the charger, the method further includes: and outputting a current adjustment signal to enable the charger to adjust the current output current.
Optionally, the output current adjustment signal includes: outputting a control current value, the control current value corresponding to a target current; so that the charger adjusts the present output current to the target current.
Optionally, the output current adjustment signal includes: outputting a control current value, wherein the control current value corresponds to a current adjustment step length; and the charger adjusts the current output current according to the current adjustment step length corresponding to the control current value.
The embodiment of the invention also provides a charging device, which comprises: the first acquisition unit is used for acquiring a first control signal output by equipment to be charged; the first output unit is used for outputting a first feedback signal when the first voltage value corresponding to the first control signal is determined to be in a first voltage range; the second acquisition unit is used for acquiring a second control signal output by the equipment to be charged, wherein the second control signal is sent by the equipment to be charged after receiving the first feedback signal; and the second output unit is used for outputting a second feedback signal when the second voltage value corresponding to the second control signal is determined to be in a second voltage range.
The embodiment of the invention also provides a charging device of the equipment to be charged, comprising: the third output unit is used for detecting that connection with the charger is established and outputting a first control signal; a first receiving unit for receiving a first feedback signal; the first feedback signal is correspondingly generated when the charger detects that a first voltage value corresponding to the first control signal is in a first voltage range; a fourth output unit for outputting a second control signal; and the second receiving unit is used for receiving a second feedback signal, and the second feedback signal is generated when the charger detects that a second voltage value corresponding to the second control signal is in a second voltage range.
The embodiment of the invention also provides a computer readable storage medium, which is a non-volatile storage medium or a non-transient storage medium, and a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to execute the steps of any charging method or execute the steps of any charging method of the device to be charged.
The embodiment of the invention also provides another charging device, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor executes the steps of any one of the charging methods when running the computer program.
The embodiment of the invention also provides a charging device of another device to be charged, which comprises a memory and a processor, wherein the memory is stored with a computer program which can be run on the processor, and the processor executes the steps of the charging method of the device to be charged when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
after receiving a first control signal output by the equipment to be charged, if the charger detects that a first voltage value corresponding to the first control signal is within a first voltage range, a first feedback signal is output, and a first handshake process with the equipment to be charged is completed. And after receiving the first feedback signal, the equipment to be charged outputs a second control signal to the charger. When the charger detects that the second voltage value corresponding to the second control signal is in the second voltage range, a second feedback signal is output to the equipment to be charged, and the second handshake process with the equipment to be charged is completed. The scheme provides a specific flow of a two-way handshake process between the charger and the equipment to be charged.
Further, the charger informs the device to be charged of the charging modes it currently supports. After the charging mode of the charger is known, the device to be charged can pertinently output a charging parameter adjusting signal to the charger, so as to adjust the charging process and the charging speed.
In addition, the duration and the amplitude of the second feedback signal are adopted to represent the charging mode currently supported by the charger, the charger does not need to send other signals to inform the equipment to be charged, and the communication overhead between the charger and the equipment to be charged can be saved.
Drawings
Fig. 1 is a flowchart of a charging method in an embodiment of the present invention;
fig. 2 is a flowchart of a charging method of a device to be charged in an embodiment of the present invention;
fig. 3 is a schematic structural view of a charging device according to an embodiment of the present invention;
fig. 4 is a schematic structural view of a charging device of an apparatus to be charged in an embodiment of the present invention;
Detailed Description
As mentioned above, no specific handshaking procedure between the charger and the device to be charged is given in the existing protocols.
After receiving a first control signal output by the equipment to be charged, if the charger detects that a first voltage value corresponding to the first control signal is within a first voltage range, a first feedback signal is output, and a first handshake process with the equipment to be charged is completed. And after receiving the first feedback signal, the equipment to be charged outputs a second control signal to the charger. When the charger detects that the second voltage value corresponding to the second control signal is in the second voltage range, a second feedback signal is output to the equipment to be charged, and the second handshake process with the equipment to be charged is completed. The scheme provides a specific flow of a two-way handshake process between the charger and the equipment to be charged.
In order to make the above objects, features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
The embodiment of the invention provides a charging method, and the detailed description is given below through specific steps with reference to fig. 1.
Step S101, acquiring a first control signal output by a device to be charged.
In a specific implementation, the device to be charged may be any device including a device capable of storing electric energy, and the charger may be a charger including a USB interface, where the device to be charged and the charger perform information interaction and current transmission through USB. The device to be charged can be a mobile phone terminal, a tablet computer and the like, can also be a device capable of storing electric energy such as a charger, a mobile power supply and the like, and can also be other devices, as long as the device capable of storing electric energy is included, and details are omitted here.
In practical application, the existing USB national standard charger generally includes four pins: VBUS pin, DP pin, DM pin and GND pin, wherein, VBUS pin is the output pin of charger, and DP pin and DM pin are two signal pins of USB interface. When a device to be charged, such as a mobile terminal like a mobile phone, is charged by a charger, the device to be charged needs to detect whether the charger connected with the device to be charged is a national standard charger.
In the embodiment of the invention, after detecting that the charger is a national standard charger, the equipment to be charged also needs to determine whether the charger supports a fast charging protocol. When determining whether the charger supports the fast charging protocol, the device to be charged needs to complete a two-time handshake process with the charger.
In a specific implementation, the device to be charged may output the first control signal after determining that the current charger is a national standard charger. Specifically, the device to be charged may output a first control signal to the charger, and the first control signal may be output via the DM interface.
In the embodiment of the present invention, the first control signal may be a first control current, or may be other types of control signals. In a specific application, the current value of the first control current may be preset, for example, the current value of the first control current is set to 45 μa.
In a specific implementation, a current source may be provided in the device to be charged, through which the first control current is output. A plurality of current sources can be arranged in the equipment to be charged, and output current values corresponding to different current sources can be different, so that control currents with different output current values of the equipment to be charged are realized. The current source in the device to be charged can also be a variable current source, and different control currents are output by adjusting the output current value of the variable current source.
As in the example above, when the control current output by the variable current source is 45 μa, it may be characterized that the device to be charged outputs the first control current.
In the embodiment of the present invention, the first control signal may also be a first control voltage. In a specific application, the voltage value of the first control voltage may be preset, for example, the voltage value of the first voltage is set to 1.5V.
In a specific implementation, a voltage source may be provided in the device to be charged, through which the first control voltage is output. Specifically, a plurality of voltage sources can be arranged in the equipment to be charged, and output voltage values corresponding to different voltage sources are different, so that control voltages with different output voltage values of the equipment to be charged are realized. The voltage source in the equipment to be charged can also be a variable voltage source, and different control currents are output by adjusting the output voltage value of the variable voltage source.
It can be understood that the first control signal may also be a first control resistance value, or other types of control signals, which are not described in detail in the embodiments of the present invention.
Step S102, when it is determined that the first voltage value corresponding to the first control signal is within the first voltage range, outputting a first feedback signal.
In a specific implementation, when the charger determines that the first voltage value corresponding to the first control signal is within the first voltage range, the first feedback signal may be generated and output. The charger may output a first feedback signal to the device to be charged through the DM interface.
In the embodiment of the invention, when the charger determines that the first voltage value corresponding to the first control signal is within the first voltage range, the duration that the first voltage value is within the first voltage range can be detected. If the duration of the first voltage value within the first voltage range reaches a preset duration, a first feedback signal is generated and output so as to avoid misjudgment caused by interference of factors such as noise and the like.
For example, the preset duration is 20ms. The charger generates and outputs a first feedback signal when detecting that the duration of the first voltage value within the first voltage range reaches 20ms.
In a specific implementation, a voltage detection circuit may be disposed in the charger, and the voltage detection circuit is used to detect a first voltage value corresponding to the first control signal, so as to determine whether the first voltage value is within a first voltage range.
In an embodiment of the present invention, the first control signal may be a first control current, and the voltage detection circuit may include a resistor unit. One end of the resistance unit may input a first control current, and the other end of the resistance unit may be grounded. When the first end of the resistance unit inputs the first control current, a voltage drop is formed between the first end of the resistance unit and the ground. And the voltage values at two ends of the resistor unit are detected to determine a first voltage value corresponding to the first control current.
In a specific implementation, a current detection circuit may be provided in the charger, and the current value corresponding to the first control signal is detected by the current detection circuit, so that the first voltage value corresponding to the first control signal is determined according to the corresponding relationship between the current value and the voltage value.
For example, the first control signal is a first control current, and the current detection unit may determine a first voltage value corresponding to the first control current after detecting a current value corresponding to the first control current.
It can be understood that other methods may also exist in practical applications to determine the first voltage value corresponding to the first control signal, which is not described in detail in the embodiments of the present invention.
In a specific implementation, the voltage corresponding to the first feedback signal may be different from the first voltage value. In other words, when the charger detects that the first voltage value is within the first voltage range and the duration reaches a preset duration, a first feedback signal with a voltage value different from the first voltage value can be fed back to the device to be charged. The charger may output a first feedback signal to the device to be charged through the DM interface. The charger and the device to be charged may both know in advance the voltage value corresponding to the first feedback signal.
Because the device to be charged is connected with the charger through the DM interface, when the charger outputs the first feedback signal, the voltage on the DM interface changes correspondingly. At this time, the device to be charged can determine whether the charger outputs the first feedback signal according to the voltage value on the DM interface.
In the embodiment of the invention, the voltage value of the first feedback signal output by the charger may be smaller than the first voltage value.
In the embodiment of the invention, after receiving the first feedback signal, the device to be charged can determine that the first handshake process with the charger is completed. According to the existing protocol, after the first handshake process is completed, the device to be charged also needs to complete the second handshake process with the charger.
Step S103, acquiring a second control signal output by the device to be charged.
In a specific implementation, the device to be charged may output the second control signal to the charger after receiving the first feedback signal. Specifically, the device to be charged may start to count after receiving the first feedback signal, and when the count duration reaches a preset value, output a second control signal to the charger.
In the embodiment of the invention, the device to be charged can send the second control signal to the charger through the DM port. The second control signal may be a second control current, or may be another type of control signal. When the second control signal is the second control current, the second control current may be equal to the first control current or may be different from the first control current.
In an embodiment of the present invention, in order to distinguish from the above-mentioned first handshake process, to avoid occurrence of misjudgment of the charger, the second control current is set to be different from the first control current.
For example, during the first handshake, the first control current has a magnitude of 45 μA; the magnitude of the second control current output by the device to be charged is 290 μa.
It is understood that the magnitude of the second control current may also be set according to the actual application scenario, and is not limited to the above example.
Step S104, when it is determined that the second voltage value corresponding to the second control signal is within the second voltage range, outputting a second feedback signal.
In an implementation, when the charger determines that the second voltage value corresponding to the second control signal is within the second voltage range and the duration of the second voltage value within the second voltage range reaches a preset duration, the charger may generate a second feedback signal and output the second feedback signal to the device to be charged through the DM interface.
In an embodiment of the present invention, the preset duration is 20ms. And when the charger detects that the duration that the second voltage value is within the second voltage range reaches 20ms, generating a second feedback signal and outputting the second feedback signal to the equipment to be charged.
In the embodiment of the invention, after receiving the second feedback signal, the device to be charged can determine that the second handshake process with the charger is completed. After the second handshake process is completed, the charger can charge the device to be charged.
In a specific application, the charger may support different charging modes, where the charging modes may include a constant current charging mode and/or a constant voltage charging mode, and the different charging modes may correspond to different charging speeds and charging efficiencies. Thus, the charger can inform the device to be charged of the charging modes supported by itself, and the device to be charged determines whether to charge using the charging modes supported by the charger.
In particular implementations, the charger may send a pulse signal to the device to be charged to inform the device to be charged of the charging modes it supports.
In the embodiment of the invention, the duration and the amplitude of the pulse signal can be used for representing the charging mode supported by the charger.
For example, when the duration of the pulse signal is 20ms and the amplitude of the pulse signal is 1.5V, the charging mode currently supported by the charger is characterized as a low-voltage charging mode of the constant-voltage charging modes. When the duration of the pulse signal is 50ms and the amplitude of the pulse signal is 1.5V, the charging mode currently supported by the charger is characterized as a high-voltage charging mode in the constant-voltage charging mode. When the duration of the pulse signal is 20ms and the amplitude of the pulse signal is 2.5V, the charging mode currently supported by the charger is characterized as a constant current charging mode.
It should be noted that, in the above example, the charging mode supported by the charger characterized by the duration and the amplitude of the pulse signal is only schematically illustrated. In practical application, the corresponding relation between the duration and the amplitude of the pulse signal and the charging mode supported by the charger can be set according to specific requirements.
In a specific implementation, the charger may modulate the second feedback signal, and the charging mode currently supported by the charger is represented by the duration and the amplitude of the second feedback signal, without adding an additional pulse signal.
For example, when the duration of the second feedback signal is 20ms and the amplitude of the second feedback signal is 1.5V, the charging mode currently supported by the charger is characterized as a low-voltage charging mode of the constant-voltage charging modes. When the duration of the second feedback signal is 50ms and the amplitude of the second feedback signal is 1.5V, the charging mode currently supported by the charger is characterized as a high-voltage charging mode in the constant-voltage charging mode. And when the duration of the second feedback signal is 20ms and the amplitude of the second feedback signal is 2.5V, the charging mode currently supported by the charger is characterized as a constant current charging mode.
It should be noted that, in the above example, the charging mode supported by the charger characterized by the duration and the amplitude of the second feedback signal is only schematically illustrated. In practical application, the corresponding relation between the duration and the amplitude of the second feedback signal and the charging mode supported by the charger can be set according to specific requirements.
In the prior art, when the charger connected with the charger is determined to be a national standard charger, the equipment to be charged charges according to a preset fixed output voltage. However, the charger uses a fixed output voltage to charge the device to be charged, regardless of the charging current of the device to be charged, and in some cases, the charging capability of the charger cannot be fully utilized.
According to the embodiment of the invention, after the device to be charged and the charger complete the second handshake process, the device to be charged can acquire the charging mode currently supported by the charger. The device to be charged may output a charging adjustment signal to the charger to request the charger to accelerate charging in the charging mode supported by the charger. After receiving a charging adjustment signal sent by the equipment to be charged, the charger can adjust the electrical parameters which are output currently.
In an implementation, the charge adjustment signal may include a voltage adjustment signal and a current adjustment signal. The charger adjusts the current output electrical parameters, may adjust the current output voltage for the charger, or may adjust the current output current for the charger.
In the embodiment of the invention, if the charging mode supported by the charger is a constant voltage charging mode, the device to be charged may output a voltage adjustment signal to the charger after receiving the second feedback signal. The device to be charged may output a voltage adjustment signal to the charger through the DM interface. After receiving the voltage adjustment signal output by the device to be charged, the charger can adjust the current output voltage according to the voltage adjustment signal.
In a specific implementation, the voltage adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire the target output voltage corresponding to the control current value, and then adjust the current output voltage to the target output voltage.
In the embodiment of the invention, the corresponding relation between the current value and the voltage value can be preset in the charger. The correspondence between the current value and the voltage value may be a linear correspondence, a nonlinear correspondence, or a partial nonlinear relationship, and a partial linear relationship. After the charger acquires the control current value from the equipment to be charged, the charger can acquire the target output voltage corresponding to the control current value.
For example, in one embodiment of the present invention, referring to table 1, the correspondence relationship between the control current value and the target output voltage is a linear relationship.
Control current value Target output voltage
0.6mA 3.6V
1.2mA 3.8V
1.8mA 4.0V
2.4mA 4.2V
3.0mA 4.5V
3.6mA 5V
4.2mA 7V
4.8mA 9V
5.4mA 12V
TABLE 1
The charger acquired a control current value of 1.2mA from the device to be charged, and the corresponding output voltage value was 3.8V as seen from table 1. As another example, the charger obtains a control current value of 4.2mA from the device to be charged, and as can be seen from table 1, the corresponding target output voltage is 7V.
For another example, referring to table 2, the corresponding relationship between the control current value and the target output voltage is partially linear and partially nonlinear.
Figure BDA0003062809840000121
Figure BDA0003062809840000131
TABLE 2
The specific values in tables 1 and 2 are only illustrative, and do not mean that the above-described settings need to be strictly followed. In practical application, the corresponding relation between the control current value and the target output voltage can be set according to specific requirements, and will not be described in detail here.
In a specific implementation, the voltage adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire the control current value and adjust the current output voltage according to the preset adjustment step length.
The current output voltage of the charger was set to 9V. When the control current value is 110 mu A, the preset adjustment step length is-0.5V; when the control current value is 185 μa, the preset adjustment step is 0.5V.
The control current value output by the device to be charged is 110 mua. The charger adjusts the present output voltage to 8.5V after receiving the control current value (110 ua) output by the device to be charged.
The control current value output by the device to be charged was 185 μa. The charger, after receiving the control current value (185 μa) output by the device to be charged, adjusts the present output voltage to 9.5V.
The correspondence between the control current value and the adjustment step is also merely exemplary. In practical application, the corresponding relationship between the control current value and the adjustment step length can be set according to the specific application scene requirement, and the embodiment of the invention is not described in detail.
In the embodiment of the invention, if the charging mode supported by the charger is a constant current charging mode, the device to be charged can output a current adjustment signal to the charger after receiving the second feedback signal. The device to be charged may output a current adjustment signal to the charger through the DM interface. After receiving the current adjustment signal output by the device to be charged, the charger can adjust the current output current according to the current adjustment signal.
In a specific implementation, the current adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire a target output current corresponding to the control current value, and then adjust the current output current of the charger to be the target output current.
For example, the control current value is set to 110 μa, and the corresponding target output current is set to 1A. When the charger detects that the control current value output by the equipment to be charged is 110 mu A, the current output current value can be adjusted to be 1A.
In a specific implementation, the current adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire the control current value and adjust the current output current according to the preset adjustment step length.
For example, the present output current of the charger is set to 1A. When the control current value is 110 mu A, the preset adjustment step length is-0.1A; when the control current value is 185 μa, the preset adjustment step is 0.1A.
The control current value output by the device to be charged is 110 mua. The charger adjusts the present output current to 0.9A after receiving the control current value (110 μa) output by the device to be charged.
The control current value output by the device to be charged was 185 μa. After receiving the control current value (185 μa) output by the device to be charged, the charger adjusts the present output current to 1.1V.
The correspondence between the control current value and the adjustment step is also merely exemplary. In practical application, the corresponding relationship between the control current value and the adjustment step length can be set according to the specific application scene requirement, and the embodiment of the invention is not described in detail.
In a specific implementation, the charging mode may also be characterized by the duration and amplitude of the first feedback signal. In particular, the principle and process of the charging mode are represented by the duration and the amplitude of the first feedback signal, and the principle and process of the charging mode may be represented by the duration and the amplitude of the second feedback signal in the above example.
In a specific implementation, when the charging mode is characterized by the duration and the amplitude of the pulse signal, the pulse signal may be sent after the charger sends the first feedback signal to the device to be charged, or may be sent after the charger sends the second feedback signal to the device to be charged.
In practical application, in the existing fast charging protocol, the version 1.0 specifies that the charger and the device to be charged execute a primary handshake process, and after the primary handshake process is completed, the charger can supply power to the device to be charged. Version 2.0 specifies that the charger and the device to be charged perform a two-way handshake process, and after the two-way handshake process is completed, the charger supplies power to the device to be charged.
In practical application, after the device to be charged is connected with the charger, it is preferentially detected whether the device to be charged supports the version 2.0 of the quick charging protocol. However, there may be a device to be charged that supports version 2.0 of the fast charge protocol, but the charger supports only version 1.0 of the fast charge protocol. At this time, the device to be charged first performs a first handshake with the charger. In the second handshake, the charger does not support the version 2.0 of the fast charging protocol, so the charger exits the fast charging mode after receiving a second control signal sent by the device to be charged. If the device to be charged still chooses to use the version 1.0 fast charging protocol, the device to be charged may initiate a first handshake procedure to the charger again.
In another embodiment of the present invention, after the first handshake between the device to be charged and the charger, if the charger does not support the version 2.0 fast charging protocol, the charger may inform that the device to be charged does not support the version 2.0 fast charging protocol. After knowing that the charger does not support the version 2.0 fast charging protocol, the device to be charged can directly enter the version 1.0 fast charging mode without initiating a first handshake process to the charger again.
Referring to fig. 2, a charging method of a device to be charged in an embodiment of the present invention is given, and detailed description is given below through specific steps.
Step S201, detecting that connection with a charger is established, and outputting a first control signal.
In a specific implementation, after detecting that a connection is established with the charger, the device to be charged outputs a first control signal.
In a specific implementation, the device to be charged may be any device including a device capable of storing electric energy, and the charger may be a charger including a USB interface, where the device to be charged and the charger perform information interaction and current transmission through USB. The device to be charged can be a mobile phone terminal, a tablet computer and the like, can also be a device capable of storing electric energy such as a charger, a mobile power supply and the like, and can also be other devices, as long as the device capable of storing electric energy is included, and details are omitted here.
In a specific implementation, the device to be charged may output the first control signal after determining that the current charger is a national standard charger. Specifically, the device to be charged may output a first control signal to the charger, and the first control signal may be output via the DM interface.
In the embodiment of the present invention, the first control signal may be a first control current, or may be other types of control signals. In a specific application, the current value of the first control current may be preset, for example, the current value of the first control current is set to 45 μa.
In a specific implementation, a current source may be provided in the device to be charged, through which the first control current is output. A plurality of current sources can be arranged in the equipment to be charged, and output current values corresponding to different current sources can be different, so that control currents with different output current values of the equipment to be charged are realized. The current source in the device to be charged can also be a variable current source, and different control currents are output by adjusting the output current value of the variable current source.
As in the example above, when the control current output by the variable current source is 45 μa, it may be characterized that the device to be charged outputs the first control current.
In step S202, a first feedback signal is received.
In a specific implementation, when the charger determines that the first voltage value corresponding to the first control signal is within the first voltage range, the first feedback signal may be generated and output. The charger may output a first feedback signal to the device to be charged through the DM interface. Accordingly, the device to be charged may receive the first feedback signal through the DM port.
In the embodiment of the invention, when the charger determines that the first voltage value corresponding to the first control signal is within the first voltage range, the duration that the first voltage value is within the first voltage range can be detected. If the duration of the first voltage value within the first voltage range reaches a preset duration, a first feedback signal is generated and output so as to avoid misjudgment caused by interference of factors such as noise and the like.
For example, the preset duration is 20ms. The charger generates and outputs a first feedback signal when detecting that the duration of the first voltage value within the first voltage range reaches 20ms.
In a specific implementation, a voltage detection circuit may be disposed in the charger, and the voltage detection circuit is used to detect a first voltage value corresponding to the first control signal, so as to determine whether the first voltage value is within a first voltage range.
In an embodiment of the present invention, the first control signal may be a first control current, and the voltage detection circuit may include a resistor unit. One end of the resistance unit may input a first control current, and the other end of the resistance unit may be grounded. When the first end of the resistance unit inputs the first control current, a voltage drop is formed between the first end of the resistance unit and the ground. And the voltage values at two ends of the resistor unit are detected to determine a first voltage value corresponding to the first control current.
In a specific implementation, a current detection circuit may be provided in the charger, and the current value corresponding to the first control signal is detected by the current detection circuit, so that the first voltage value corresponding to the first control signal is determined according to the corresponding relationship between the current value and the voltage value.
For example, the first control signal is a first control current, and the current detection unit may determine a first voltage value corresponding to the first control current after detecting a current value corresponding to the first control current.
It can be understood that other methods may also exist in practical applications to determine the first voltage value corresponding to the first control signal, which is not described in detail in the embodiments of the present invention.
In a specific implementation, the voltage corresponding to the first feedback signal may be different from the first voltage value. In other words, when the charger detects that the first voltage value is within the first voltage range and the duration reaches a preset duration, a first feedback signal with a voltage value different from the first voltage value can be fed back to the device to be charged. The charger may output a first feedback signal to the device to be charged through the DM interface. The charger and the device to be charged may both know in advance the voltage value corresponding to the first feedback signal.
Because the device to be charged is connected with the charger through the DM interface, when the charger outputs the first feedback signal, the voltage on the DM interface changes correspondingly. At this time, the device to be charged can determine whether the charger outputs the first feedback signal according to the voltage value on the DM interface.
In the embodiment of the invention, the voltage value of the first feedback signal output by the charger may be smaller than the first voltage value.
In the embodiment of the invention, after receiving the first feedback signal, the device to be charged can determine that the first handshake process with the charger is completed. According to the existing protocol, after the first handshake process is completed, the device to be charged also needs to complete the second handshake process with the charger.
Step S203, outputting a second control signal.
In a specific implementation, the device to be charged may output the second control signal to the charger after receiving the first feedback signal. Specifically, the device to be charged may start to count after receiving the first feedback signal, and when the count duration reaches a preset value, output a second control signal to the charger.
In the embodiment of the invention, the device to be charged can send the second control signal to the charger through the DM port. The second control signal may be a second control current, or may be another type of control signal. When the second control signal is the second control current, the second control current may be equal to the first control current or may be different from the first control current.
In an embodiment of the present invention, in order to distinguish from the above-mentioned first handshake process, to avoid occurrence of misjudgment of the charger, the second control current is set to be different from the first control current.
For example, during the first handshake, the first control current has a magnitude of 45 μA; the magnitude of the second control current output by the device to be charged is 290 μa.
It is understood that the magnitude of the second control current may also be set according to the actual application scenario, and is not limited to the above example.
In step S204, a second feedback signal is received.
In an implementation, when the charger determines that the second voltage value corresponding to the second control signal is within the second voltage range and the duration of the second voltage value within the second voltage range reaches a preset duration, the charger may generate a second feedback signal and output the second feedback signal to the device to be charged through the DM interface. The voltage corresponding to the second feedback signal may be different from the second voltage value.
In an embodiment of the present invention, the preset duration is 20ms. And when the charger detects that the duration that the second voltage value is within the second voltage range reaches 20ms, generating a second feedback signal and outputting the second feedback signal to the equipment to be charged.
In the embodiment of the invention, after receiving the second feedback signal, the device to be charged can determine that the second handshake process with the charger is completed. After the second handshake process is completed, the charger can charge the device to be charged.
In a specific application, the charger may support different charging modes, where the charging modes may include a constant current charging mode and/or a constant voltage charging mode, and the different charging modes may correspond to different charging speeds and charging efficiencies. Thus, the charger can inform the device to be charged of the charging modes supported by itself, and the device to be charged determines whether to charge using the charging modes supported by the charger.
In particular implementations, the charger may send a pulse signal to the device to be charged to inform the device to be charged of the charging modes it supports.
In the embodiment of the invention, the duration and the amplitude of the pulse signal can be used for representing the charging mode supported by the charger.
For example, when the duration of the pulse signal is 20ms and the amplitude of the pulse signal is 1.5V, the charging mode currently supported by the charger is characterized as a low-voltage charging mode of the constant-voltage charging modes. When the duration of the pulse signal is 50ms and the amplitude of the pulse signal is 1.5V, the charging mode currently supported by the charger is characterized as a high-voltage charging mode in the constant-voltage charging mode. When the duration of the pulse signal is 20ms and the amplitude of the pulse signal is 2.5V, the charging mode currently supported by the charger is characterized as a constant current charging mode.
It should be noted that, in the above example, the charging mode supported by the charger characterized by the duration and the amplitude of the pulse signal is only schematically illustrated. In practical application, the corresponding relation between the duration and the amplitude of the pulse signal and the charging mode supported by the charger can be set according to specific requirements.
In a specific implementation, the charger may send the pulse signal to the device to be charged after sending the first feedback signal to the device to be charged. The charger may also send a pulse signal to the device to be charged after sending the second feedback signal to the device to be charged.
In a specific implementation, the charger may modulate the second feedback signal, and the charging mode currently supported by the charger is represented by the duration and the amplitude of the second feedback signal, without adding an additional pulse signal.
In an embodiment of the present invention, when the duration of the second feedback signal is 20ms and the amplitude of the second feedback signal is 1.5V, the charging mode currently supported by the charger is characterized as a low-voltage charging mode in the constant-voltage charging mode. When the duration of the second feedback signal is 50ms and the amplitude of the second feedback signal is 1.5V, the charging mode currently supported by the charger is characterized as a high-voltage charging mode in the constant-voltage charging mode. And when the duration of the second feedback signal is 20ms and the amplitude of the second feedback signal is 2.5V, the charging mode currently supported by the charger is characterized as a constant current charging mode.
It should be noted that, in the above example, the charging mode supported by the charger characterized by the duration and the amplitude of the second feedback signal is only schematically illustrated. In practical application, the corresponding relation between the duration and the amplitude of the second feedback signal and the charging mode supported by the charger can be set according to specific requirements.
In a specific implementation, the charger may also modulate the first feedback signal, and the current supported charging mode is represented by the duration and the amplitude of the first feedback signal, without adding an additional pulse signal. When the duration and the amplitude of the first feedback signal are used to represent the charging mode supported by the charger, the corresponding working principle and process can refer to the corresponding situation of the second feedback signal, and the embodiments of the present invention are not described in detail.
In the prior art, when the charger connected with the charger is determined to be a national standard charger, the equipment to be charged charges according to a preset fixed output voltage. However, the charger uses a fixed output voltage to charge the device to be charged, regardless of the charging current of the device to be charged, and in some cases, the charging capability of the charger cannot be fully utilized. According to the embodiment of the invention, after the device to be charged and the charger complete the second handshake process, the device to be charged can acquire the charging mode currently supported by the charger. The device to be charged may output a charging adjustment signal to the charger to request the charger to accelerate charging in the charging mode supported by the charger. After receiving a charging adjustment signal sent by the equipment to be charged, the charger can adjust the electrical parameters which are output currently.
In an implementation, the charge adjustment signal may include a voltage adjustment signal and a current adjustment signal. The charger adjusts the current output electrical parameters, may adjust the current output voltage for the charger, or may adjust the current output current for the charger.
In the embodiment of the invention, if the charging mode supported by the charger is a constant voltage charging mode, the device to be charged may output a voltage adjustment signal to the charger after receiving the second feedback signal. The device to be charged may output a voltage adjustment signal to the charger through the DM interface. After receiving the voltage adjustment signal output by the device to be charged, the charger can adjust the current output voltage according to the voltage adjustment signal.
In a specific implementation, the voltage adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire the target output voltage corresponding to the control current value, and then adjust the current output voltage to the target output voltage.
In the embodiment of the invention, the corresponding relation between the current value and the voltage value can be preset in the charger. The correspondence between the current value and the voltage value may be a linear correspondence, a nonlinear correspondence, or a partial nonlinear relationship, and a partial linear relationship. After the charger acquires the control current value from the equipment to be charged, the charger can acquire the target output voltage corresponding to the control current value.
In a specific implementation, the voltage adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire the control current value and adjust the current output voltage according to the preset adjustment step length.
The current output voltage of the charger was set to 9V. When the control current value is 110 mu A, the preset adjustment step length is-0.5V; when the control current value is 185 μa, the preset adjustment step is 0.5V.
The control current value output by the device to be charged is 110 mua. The charger adjusts the present output voltage to 8.5V after receiving the control current value (110 ua) output by the device to be charged.
The control current value output by the device to be charged was 185 μa. The charger, after receiving the control current value (185 μa) output by the device to be charged, adjusts the present output voltage to 9.5V.
The correspondence between the control current value and the adjustment step is also merely exemplary. In practical application, the corresponding relationship between the control current value and the adjustment step length can be set according to the specific application scene requirement, and the embodiment of the invention is not described in detail.
In the embodiment of the invention, if the charging mode supported by the charger is a constant current charging mode, the device to be charged can output a current adjustment signal to the charger after receiving the second feedback signal. The device to be charged may output a current adjustment signal to the charger through the DM interface. After receiving the current adjustment signal output by the device to be charged, the charger can adjust the current output current according to the current adjustment signal.
In a specific implementation, the current adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire a target output current corresponding to the control current value, and then adjust the current output current of the charger to be the target output current.
For example, the control current value is set to 110 μa, and the corresponding target output current is set to 1A. When the charger detects that the control current value output by the equipment to be charged is 110 mu A, the current output current value can be adjusted to be 1A.
In a specific implementation, the current adjustment signal output by the device to be charged may be a control current value. After receiving the control current value output by the equipment to be charged, the charger can acquire the control current value and adjust the current output current according to the preset adjustment step length.
For example, the present output current of the charger is set to 1A. When the control current value is 110 mu A, the preset adjustment step length is-0.1A; when the control current value is 185 μa, the preset adjustment step is 0.1A.
The control current value output by the device to be charged is 110 mua. The charger adjusts the present output current to 0.9A after receiving the control current value (110 μa) output by the device to be charged.
The control current value output by the device to be charged was 185 μa. After receiving the control current value (185 μa) output by the device to be charged, the charger adjusts the present output current to 1.1V.
The correspondence between the control current value and the adjustment step is also merely exemplary. In practical application, the corresponding relationship between the control current value and the adjustment step length can be set according to the specific application scene requirement, and the embodiment of the invention is not described in detail.
In a specific implementation, the charging mode may also be characterized by the duration and amplitude of the first feedback signal. In particular, the principle and process of the charging mode are represented by the duration and the amplitude of the first feedback signal, and the principle and process of the charging mode may be represented by the duration and the amplitude of the second feedback signal in the above example.
In a specific implementation, when the charging mode is characterized by the duration and the amplitude of the pulse signal, the pulse signal may be sent after the charger sends the first feedback signal to the device to be charged, or may be sent after the charger sends the second feedback signal to the device to be charged.
Referring to fig. 3, a schematic structural diagram of a charging device 30 according to an embodiment of the present invention is provided, including: a first acquisition unit 301, a first output unit 302, a second acquisition unit 303, and a second output unit 304, wherein:
A first obtaining unit 301, configured to obtain a first control signal output by a device to be charged;
a first output unit 302, configured to output a first feedback signal when it is determined that a first voltage value corresponding to the first control signal is within a first voltage range;
a second obtaining unit 303, configured to obtain a second control signal output by the device to be charged, where the second control signal is sent by the device to be charged after receiving the first feedback signal;
and a second output unit 304, configured to output a second feedback signal when it is determined that a second voltage value corresponding to the second control signal is within a second voltage range.
In a specific implementation, the specific execution flows of the first obtaining unit 301, the first output unit 302, the second obtaining unit 303, and the second output unit 304 may correspond to the reference steps S101 to S104, which are not described in detail in the embodiment of the present invention.
The embodiment of the invention also provides a charging device 40 of the equipment to be charged, which comprises: a third output unit 401, a first receiving unit 402, a fourth output unit 403, and a second receiving unit 404, wherein:
a third output unit 401, configured to detect that a connection is established with the charger, and output a first control signal;
A first receiving unit 402, configured to receive a first feedback signal; the first feedback signal is correspondingly generated when the charger detects that a first voltage value corresponding to the first control signal is in a first voltage range;
a fourth output unit 403 for outputting a second control signal;
and a second receiving unit 404, configured to receive a second feedback signal, where the second feedback signal is generated when the charger detects that a second voltage value corresponding to the second control signal is within a second voltage range.
In a specific implementation, the specific execution flows of the third output unit 401, the first receiving unit 402, the fourth output unit 403, and the second receiving unit 404 may correspond to the steps S201 to S204, which are not described in detail in the embodiment of the present invention.
The embodiment of the invention also provides a computer storage medium, which is a nonvolatile storage medium or a non-transient storage medium, and is stored with a computer program, and the computer program executes the steps of the charging method provided by the steps S101 to S104 when running; or, the step of executing the charging method of the device to be charged provided in the above steps S201 to S204.
The embodiment of the invention also provides another charging device, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the charging device is characterized in that the processor executes the steps of the charging method from the step S101 to the step S104 when running the computer program.
The embodiment of the invention also provides a charging device of another device to be charged, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the charging device is characterized in that the steps of the charging method described in the steps S201 to S204 are executed when the processor runs the computer program.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.

Claims (21)

1. A charging method, comprising:
acquiring a first control signal output by equipment to be charged;
when the first voltage value corresponding to the first control signal is determined to be in a first voltage range, outputting a first feedback signal;
Acquiring a second control signal output by the equipment to be charged, wherein the second control signal is sent by the equipment to be charged after receiving the first feedback signal;
determining that a second voltage value corresponding to the second control signal is in a second voltage range, and outputting a second feedback signal when the duration of the second voltage value in the second voltage range reaches a preset duration;
informing the charging mode currently supported by the equipment to be charged; the duration and magnitude of the second feedback signal characterizes the charging mode.
2. The charging method of claim 1, wherein the currently supported charging mode comprises at least one of: constant voltage charging mode, constant current charging mode.
3. The charging method according to claim 2, wherein the currently supported charging mode includes a constant voltage charging mode; after informing the charging mode currently supported by the device to be charged, the method further comprises: acquiring a voltage adjustment signal output by the equipment to be charged;
and adjusting the current output voltage according to the voltage adjustment signal.
4. The charging method according to claim 3, wherein the acquiring the voltage adjustment signal output by the device to be charged includes:
Receiving a control current value output by the equipment to be charged;
and obtaining the target voltage corresponding to the control current value according to a preset corresponding relation.
5. The charging method according to claim 3, wherein the acquiring the voltage adjustment signal output by the device to be charged includes:
receiving a control current value output by the equipment to be charged;
and adjusting the current output voltage according to the preset adjustment step length according to the magnitude of the control current value.
6. The charging method of claim 2, wherein the currently supported charging mode comprises a constant current charging mode; after informing the charging mode currently supported by the device to be charged, the method further comprises: acquiring a current adjustment signal output by the equipment to be charged;
and adjusting the current output current according to the current adjustment signal.
7. The charging method according to claim 6, wherein the acquiring the current adjustment signal output by the device to be charged includes:
receiving a control current value output by the equipment to be charged;
and obtaining the target current corresponding to the control current value according to a preset corresponding relation.
8. The charging method according to claim 6, wherein the acquiring the current adjustment signal output by the device to be charged includes:
Receiving a control current value output by the equipment to be charged;
and adjusting the current output current according to the preset adjustment step length according to the magnitude of the control current value.
9. A charging method of a device to be charged, comprising:
detecting that connection with a charger is established, and outputting a first control signal;
receiving a first feedback signal; the first feedback signal is correspondingly generated when the charger detects that a first voltage value corresponding to the first control signal is in a first voltage range;
outputting a second control signal;
receiving a second feedback signal, wherein the second feedback signal is generated when the charger detects that a second voltage value corresponding to the second control signal is in a second voltage range and the duration of the second voltage value in the second voltage range reaches a preset duration;
obtaining a charging mode currently supported by the charger, including: and acquiring the duration and the amplitude of the second feedback signal, wherein the duration and the amplitude of the second feedback signal represent the charging mode.
10. The charging method of the device to be charged according to claim 9, wherein the charging modes currently supported by the charger include any one of: constant voltage charging mode, constant current charging mode.
11. The charging method of the device to be charged according to claim 10, wherein the charging mode currently supported by the charger includes a constant voltage charging mode; after acquiring the charging mode currently supported by the charger, the method further comprises:
and outputting a voltage adjustment signal to enable the charger to adjust the current output voltage.
12. The charging method of the device to be charged according to claim 11, wherein the output voltage adjustment signal includes:
outputting a control current value, the control current value corresponding to a target voltage; so that the charger adjusts the current output voltage to the target voltage.
13. The charging method of the device to be charged according to claim 11, wherein the output voltage adjustment signal includes:
outputting a control current value, wherein the control current value corresponds to a voltage adjustment step length; and the charger adjusts the current output voltage according to the voltage adjustment step length corresponding to the control current value.
14. The charging method of the device to be charged according to claim 10, further comprising, after acquiring a charging mode currently supported by the charger:
And outputting a current adjustment signal to enable the charger to adjust the current output current.
15. The charging method of the device to be charged according to claim 14, wherein the output current adjustment signal includes:
outputting a control current value, the control current value corresponding to a target current; so that the charger adjusts the present output current to the target current.
16. The charging method of the device to be charged according to claim 14, wherein the output current adjustment signal includes:
outputting a control current value, wherein the control current value corresponds to a current adjustment step length; and the charger adjusts the current output current according to the current adjustment step length corresponding to the control current value.
17. A charging device, characterized by comprising:
the first acquisition unit is used for acquiring a first control signal output by equipment to be charged;
the first output unit is used for outputting a first feedback signal when the first voltage value corresponding to the first control signal is determined to be in a first voltage range;
the second acquisition unit is used for acquiring a second control signal output by the equipment to be charged, wherein the second control signal is sent by the equipment to be charged after receiving the first feedback signal;
The second output unit is used for outputting a second feedback signal when the second voltage value corresponding to the second control signal is determined to be in a second voltage range and the duration of the second voltage value in the second voltage range reaches a preset duration;
the informing unit is used for informing the charging mode currently supported by the equipment to be charged; the duration and magnitude of the second feedback signal characterizes the charging mode.
18. A charging device for a device to be charged, comprising:
the third output unit is used for detecting that connection with the charger is established and outputting a first control signal;
a first receiving unit for receiving a first feedback signal; the first feedback signal is correspondingly generated when the charger detects that a first voltage value corresponding to the first control signal is in a first voltage range;
a fourth output unit for outputting a second control signal;
the second receiving unit is used for receiving a second feedback signal, and the second feedback signal is generated when the charger detects that a second voltage value corresponding to the second control signal is in a second voltage range and the duration of the second voltage value in the second voltage range reaches a preset duration;
An obtaining unit, configured to obtain a charging mode currently supported by the charger, including: and acquiring the duration and the amplitude of the second feedback signal, wherein the duration and the amplitude of the second feedback signal represent the charging mode.
19. A computer-readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the steps of the charging method of any one of claims 1 to 8, or the steps of the charging method of the device to be charged of any one of claims 9 to 16.
20. A charging device comprising a memory and a processor, said memory having stored thereon a computer program executable on said processor, characterized in that said processor executes the steps of the charging method according to any of claims 1-8 when said computer program is executed.
21. Charging apparatus for a device to be charged, comprising a memory and a processor, said memory having stored thereon a computer program executable on said processor, characterized in that the processor executes the steps of the charging method for a device to be charged according to any of claims 9-16 when said computer program is executed by said processor.
CN202110517421.1A 2021-05-12 2021-05-12 Charging method and device, and computer readable storage medium Active CN113178918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110517421.1A CN113178918B (en) 2021-05-12 2021-05-12 Charging method and device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110517421.1A CN113178918B (en) 2021-05-12 2021-05-12 Charging method and device, and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113178918A CN113178918A (en) 2021-07-27
CN113178918B true CN113178918B (en) 2023-06-02

Family

ID=76929218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110517421.1A Active CN113178918B (en) 2021-05-12 2021-05-12 Charging method and device, and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113178918B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586356A (en) * 2018-11-01 2019-04-05 Oppo广东移动通信有限公司 Charge control method, device and computer storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103972955B (en) * 2014-03-24 2016-05-25 西安乾易企业管理咨询有限公司 The power supply adaptor of a kind of USB interface charging handshake method and quickly-chargeable
CN104467121B (en) * 2014-12-31 2017-03-15 展讯通信(上海)有限公司 Charging method, device, charger, charging equipment and charging system
CN104701583B (en) * 2015-04-09 2017-01-25 福州瑞芯微电子股份有限公司 Battery charging method based on USB interface, adapter, electric equipment and system
US20180239410A1 (en) * 2017-02-17 2018-08-23 Qualcomm Incorporated Universal serial bus power delivery (usb pd)-based battery charging
CN106787019A (en) * 2017-03-14 2017-05-31 成都智朴思互联科技有限公司 USB interface-based intelligent universal charges and recognizes and control device
CN106655415B (en) * 2017-03-14 2021-01-22 成都智朴思互联科技有限公司 Intelligent universal charging identification and control device based on USB interface
CN112436577B (en) * 2021-01-27 2021-04-23 展讯通信(上海)有限公司 Chargeable equipment, charger and charging system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586356A (en) * 2018-11-01 2019-04-05 Oppo广东移动通信有限公司 Charge control method, device and computer storage medium

Also Published As

Publication number Publication date
CN113178918A (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN104393628B (en) USB charger, mobile terminal and charging control method
US9859740B2 (en) Adapter, portable electronic device and charge control method thereof
US20170310129A1 (en) Charging control method and charging system, power delivery unit, and power receiver control circuit using the method
EP2892214A2 (en) Mobile terminal, master data communication device, and mobile terminal charging system and method
CN103683388A (en) Charger, terminal, overheating protection system and overheating protection method
RU2013142958A (en) MOBILE TERMINAL AND METHOD OF INTERFACE CONNECTION FOR IT
CN102957193A (en) Charge management method, device and system
US20170149287A1 (en) Power receiving device, power feeding device, and electronic apparatus
US10148101B2 (en) Battery charging system and battery charging protection control method
US11632077B2 (en) Fault point position determining method and apparatus and photovoltaic system
CN104467118A (en) Charging method and device, charger, equipment to be charged and charging system
CN107706952B (en) Charging method and device
TW201510548A (en) Property testing system and method of USB charging cable, and electronic device
CN103647318A (en) Communication terminal, and charging control method, apparatus, and circuit
CN112165143A (en) Wireless earphone charging method, device, equipment and storage medium
CN104467135A (en) Charging method and device of equipment to be charged, equipment to be charged and charging system
CN113178918B (en) Charging method and device, and computer readable storage medium
CN113178920A (en) Charging method and device and computer readable storage medium
US9608476B2 (en) Charging system and charging method thereof
CN113162198B (en) Charging method and device for equipment to be charged and computer readable storage medium
CN113162199B (en) Charging method and device, and computer readable storage medium
CN113162197A (en) Charging method and device and computer readable storage medium
CN107834639B (en) Power supply method, power supply device, electronic cigarette and intelligent power supply
US9652012B2 (en) Electronic device and power supplying method thereof
US20170205862A1 (en) Low-power usb host supporting a high-power usb peripheral device and methods thereof

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