CN113162198B - Charging method and device for equipment to be charged and computer readable storage medium - Google Patents

Charging method and device for equipment to be charged and computer readable storage medium Download PDF

Info

Publication number
CN113162198B
CN113162198B CN202110519311.9A CN202110519311A CN113162198B CN 113162198 B CN113162198 B CN 113162198B CN 202110519311 A CN202110519311 A CN 202110519311A CN 113162198 B CN113162198 B CN 113162198B
Authority
CN
China
Prior art keywords
charger
charging
charged
control signal
voltage
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
CN202110519311.9A
Other languages
Chinese (zh)
Other versions
CN113162198A (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 CN202110519311.9A priority Critical patent/CN113162198B/en
Publication of CN113162198A publication Critical patent/CN113162198A/en
Application granted granted Critical
Publication of CN113162198B publication Critical patent/CN113162198B/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
    • 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

Landscapes

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

Abstract

A charging method and device for a device to be charged, and a computer readable storage medium, the charging method comprises: sending a control signal for adjusting the charging parameters to the charger; acquiring output voltage pulses on a DM port of the charger; and determining whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse. The scheme can enable the equipment to be charged to know whether the charger adjusts the charging parameters.

Description

Charging method and device for equipment to be charged and computer readable storage medium
Technical Field
The present invention relates to the field of charging technologies, and in particular, to a method and apparatus for charging a device to be charged, 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.
In the charging process of the equipment to be charged, the charger charges the equipment to be charged with constant output voltage/current, so that the charging efficiency is low.
Disclosure of Invention
The technical problem solved by the embodiment of the invention is how to improve the charging efficiency of the equipment to be charged.
To achieve the above object, an embodiment of the present invention provides a charging method for a device to be charged, including: sending a control signal for adjusting the charging parameters to the charger; acquiring output voltage pulses on a DM port of the charger; and determining whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse.
Optionally, before sending a control signal for adjusting a charging parameter to the charger, the method further includes: and finishing a two-time handshake process with the charger.
Optionally, the performing a two-way handshake procedure with the charger includes: 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, before sending the control signal for adjusting the charging parameter to the charger, the method further includes: acquiring a charging mode currently supported by the charger, wherein the charging mode comprises at least one of the following: constant voltage charging mode, constant current charging mode.
Optionally, the sending a control signal for adjusting the charging parameter to the charger includes: and sending a control signal for adjusting the charging parameters to the charger according to the charging mode currently supported by the charger.
Optionally, the sending a control signal for adjusting the charging parameter to the charger includes: and sending a control current to the charger, wherein the current value of the control current is used for indicating a target charging parameter.
Optionally, the sending a control signal for adjusting the charging parameter to the charger includes: and sending a control current to the charger, wherein the current value of the control current is used for indicating the step length for adjusting the charging parameters.
Optionally, before sending the control signal for adjusting the charging parameter to the charger, the method further includes: determining a target charging parameter; and determining the number N of times of sending control signals for adjusting the charging parameters to the charger according to the target charging parameters and the current charging parameters of the charger.
Optionally, after determining that the charger responds to the control signal, the method further includes: and when the adjusted charging parameters of the charger are not up to the target charging parameters, sending control signals for adjusting the charging parameters to the charger again.
The embodiment of the invention also provides a charging device of the equipment to be charged, comprising: a transmitting unit for transmitting a control signal for adjusting the charging parameter to the charger; an acquisition unit for acquiring output voltage pulses on a DM port of the charger; and the determining unit is used for determining whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse.
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 the charging method of any device to be charged.
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:
and the equipment to be charged sends a control signal for adjusting the charging parameters to the charger in the charging process, so that the charger adjusts the output charging parameters after receiving the control signal. The device to be charged receives the output voltage pulse on the DM port of the charger, and determines whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse, so that whether the charger adjusts the output charging parameters can be obtained.
Further, after receiving the first control signal output by the equipment to be charged, if the charger detects that the first voltage value corresponding to the first control signal is within the first voltage range, a first feedback signal is output, and the 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 of a device to be charged in an embodiment of the present invention;
FIG. 2 is a flow chart of a handshake process between a device to be charged and a charger according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a charging device of a device to be charged in an embodiment of the present invention.
Detailed Description
As described above, in the prior art, the charger charges the device to be charged with a constant output voltage/current during the charging process, resulting in low charging efficiency.
In the embodiment of the invention, the equipment to be charged sends a control signal for adjusting the charging parameters to the charger in the charging process, so that the charger adjusts the output charging parameters after receiving the control signal. The device to be charged receives the output voltage pulse on the DM port of the charger, and determines whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse, so that whether the charger adjusts the output charging parameters can be obtained.
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, a control signal for adjusting the charging parameter is sent to the charger.
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, after the device to be charged completes the two-time handshake process with the charger, a control signal for adjusting the charging parameter may be sent to the charger, and the control signal for adjusting the charging parameter may be sent through the DM port. In an embodiment of the present invention, the charging 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, the device to be charged can also acquire the charging mode currently supported by the charger before sending the control signal for adjusting the charging parameters to the charger. The charging modes currently supported by the charger may include any one or more of a constant current charging mode and a constant voltage charging mode. After the charging mode currently supported by the charger is obtained, the to-be-charged device can correspondingly send a control signal for adjusting the charging parameters to the charger according to the charging mode currently supported by the charger.
For example, if the charging mode supported by the charger is a constant current charging mode, the control signal for adjusting the charging parameter sent by the device to be charged to the charger is a control signal for adjusting the current output current of the charger. And the charging mode supported by the charger is a constant voltage charging mode, and the control signal for adjusting the charging parameters, which is sent to the charger by the equipment to be charged, is a control signal for adjusting the current output voltage of the charger.
In a specific implementation, the control signal sent by the device to be charged to the charger may be a control current, and the target charging parameter is represented by a current value of the control current.
In the embodiment of the invention, if the control signal for adjusting the charging parameter is to adjust the output voltage of the charger to the target output voltage, the target output voltage of the charger can be represented by controlling the current value. The corresponding relation between the current value and the voltage value is preset in the charger, and is also known in advance by the equipment to be charged. 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.
Control current value Target output voltage
1mA 3.6V
1.5mA 3.8V
2mA 4.0V
2.5mA 4.2V
3mA 4.5V
3.6mA 5V
4mA 7V
5mA 9V
6mA 12V
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 completing a two-time handshake process with the charger. 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.1A.
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.
Step S102, obtaining output voltage pulses on a DM port of the charger.
In a specific implementation, after the device to be charged sends a control signal for adjusting the charging parameter to the charger, the voltage pulse output on the DM port of the charger may be detected.
Step S103, determining whether the charger responds to the control signal according to the range of the voltage corresponding to the voltage pulse.
In a specific implementation, after detecting a voltage pulse output by the charger, the device to be charged can acquire a range of voltage corresponding to the voltage pulse, so as to determine whether the charger responds to the control signal.
In an embodiment of the present invention, as described above, the current value of the control current may be used to indicate the step size of adjusting the charging parameter. At this time, the voltage drop formed by the voltage detection circuit of the charger is different from the different control current values. The charger, upon receiving the control current, may output a voltage pulse on the DM port. The equipment to be charged determines whether the charger responds to a control signal for adjusting the charging parameters according to the voltage range of the voltage corresponding to the voltage output by the charger.
In a specific implementation, the control signal for adjusting the charging parameter output by the device to be charged may last for a specific period of time, for example, 20ms. After the control signal for adjusting the charging parameters lasts for 20ms, the control signal stops outputting, and the device to be charged detects the output voltage pulse on the port of the charger DM.
Taking the control signal control current for adjusting the charging parameter as an example, the control current for adjusting the charging parameter is 110 μa. After the duration of the control current of 110 μa output by the charging device reaches 20ms, the control current drops from 110 μa to 45 μa and the output voltage pulse on the charger DM port is detected.
The charging method provided in the embodiment of the present invention is exemplified below.
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. When the control current value is 110 mu A, the voltage detection circuit of the charger detects that the voltage on the DM port is U, and when the U is in a voltage range VT 1-VT 2, the charger adjusts the current output voltage from 9V to 8.5V. The voltage pulse on the DM port of the charger lasts for a preset time period, and when the charging equipment detects the voltage U corresponding to the voltage pulse on the DM port of the charger and the U is in a voltage range VT 1-VT 2, the charging equipment can determine that the charger responds to the control signal and performs one-time downward output voltage adjustment.
When the control current value is 185 mu A, the voltage detection circuit of the charger detects that the voltage on the DM port is U, and when the U is in a voltage range VT 2-VT 3, the charger adjusts the current output voltage from 9V to 9.5V. The voltage pulse on the DM port of the charger lasts for a preset time period, and when the charging equipment detects the voltage U corresponding to the voltage pulse on the DM port of the charger and the U is in a voltage range VT 2-VT 3, the charging equipment can determine that the charger responds to the control signal and performs one-time upward output voltage adjustment.
In a specific implementation, the number of times N of sending the control signal for adjusting the charging parameter to the charger may be determined according to the target charging parameter and the current charging parameter of the charger. If the to-be-charged equipment detects that the charger responds to the control signal and the charging parameter currently output by the charger does not reach the target charging parameter, the to-be-charged equipment can continuously send the control signal for adjusting the charging parameter to the charger.
For example, the charging voltage required by the device to be charged is 12V, the current output voltage of the charger is 9V, the current output voltage adjustment step length of the charger is 0.5V when the control signal for adjusting the charging parameter is sent each time, and then the device to be charged needs to send the control signal n=6 times to the charger.
After the charging equipment outputs a control signal for adjusting the charging parameters once to the charger, the current output voltage of the charger is adjusted to 9.5V. And if the charging equipment detects that the current output voltage of the charger does not reach the required 12V, the charging equipment sends a control signal to the charger again, so that the charger continues to adjust the current output voltage, and the like until the current output voltage of the charger is adjusted to be 12V, and the charging equipment stops sending the control signal to the charger.
Similarly, the device to be charged outputs a control signal for adjusting the charging parameter to the charger, so that the operation of the charger for adjusting the current output current can be analogous to the operation of the charger for adjusting the current output voltage, which is not described in detail in the embodiments of the present invention.
In practice, if the charger does not respond to the control signal to adjust the charging parameters, it means that the charger may not support adjustment of the output charging parameters. After knowing that the charger does not respond to the control signal, the device to be charged can stop sending the control signal for adjusting the charging parameter to the charger in the charging process, and charge with the charging parameter currently output by the charger.
In a specific implementation, the device to be charged may also complete a two-way handshake process with the charger before sending a control signal to the charger to adjust the charging parameters. The specific flow of the device to be charged completing the two-way handshake process in the charger is described in detail below.
Referring to fig. 2, a flowchart of a handshake process between a device to be charged and a charger in an embodiment of the present invention is provided.
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 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 direct charging mode in the constant-voltage charging mode. 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 direct 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 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 of a device to be charged according to an embodiment of the present invention is provided, including: a transmitting unit 301, an acquiring unit 302, and a determining unit 303, wherein:
a transmitting unit 301, configured to transmit a control signal for adjusting a charging parameter to the charger;
an obtaining unit 302, configured to obtain an output voltage pulse on a DM port of the charger;
and the determining unit 303 is configured to determine whether the charger responds to the control signal according to a voltage range in which the voltage corresponding to the voltage pulse is located.
In a specific implementation, the specific execution flows of the sending unit 301, the obtaining unit 302, and the determining unit 303 may refer to steps S101 to S103 correspondingly, which is 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 a computer program is stored on the computer storage medium, and the computer program executes the steps of the charging method of the equipment to be charged provided in the steps S101 to S103.
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 from the step S101 to the step S103 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 (10)

1. A charging method of a device to be charged, comprising:
completing a two-time handshake process with the charger, comprising: after detecting that connection with a charger is established, outputting a first control signal; receiving a first feedback signal, wherein the first feedback signal is generated when the charger determines that a first voltage value corresponding to the first control signal is within a first voltage range; outputting a second control signal; receiving a second feedback signal, wherein the second feedback signal is generated when the charger determines 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: 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 currently supported by the charger;
sending a control signal for adjusting the charging parameters to the charger;
acquiring output voltage pulses on a DM port of the charger;
and determining whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse.
2. The charging method of a device to be charged according to claim 1, wherein the charging mode includes at least one of: constant voltage charging mode, constant current charging mode.
3. The charging method of the device to be charged according to claim 2, wherein the transmitting the control signal for adjusting the charging parameter to the charger includes:
and sending a control signal for adjusting the charging parameters to the charger according to the charging mode currently supported by the charger.
4. A method of charging a device to be charged as claimed in claim 1 or 3, wherein said sending a control signal to the charger to adjust the charging parameters comprises:
and sending a control current to the charger, wherein the current value of the control current is used for indicating a target charging parameter.
5. A method of charging a device to be charged as claimed in claim 1 or 3, wherein said sending a control signal to the charger to adjust the charging parameters comprises:
and sending a control current to the charger, wherein the current value of the control current is used for indicating the step length for adjusting the charging parameters.
6. The charging method of the device to be charged according to claim 5, further comprising, before transmitting the control signal for adjusting the charging parameter to the charger:
determining a target charging parameter;
and determining the number N of times of sending control signals for adjusting the charging parameters to the charger according to the target charging parameters and the current charging parameters of the charger.
7. The charging method of the device to be charged according to claim 5, further comprising, after determining that the charger is responsive to the control signal:
and when the adjusted charging parameters of the charger are not up to the target charging parameters, sending control signals for adjusting the charging parameters to the charger again.
8. A charging device for a device to be charged, comprising:
the handshake unit is used for completing a two-time handshake process with the charger, and comprises the following steps: after detecting that connection with a charger is established, outputting a first control signal; receiving a first feedback signal, wherein the first feedback signal is generated when the charger determines that a first voltage value corresponding to the first control signal is within a first voltage range; outputting a second control signal; receiving a second feedback signal, wherein the second feedback signal is generated when the charger determines 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;
a charging mode obtaining unit, configured to obtain a charging mode currently supported by the charger, including: 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 currently supported by the charger;
a transmitting unit for transmitting a control signal for adjusting the charging parameter to the charger;
an acquisition unit for acquiring output voltage pulses on a DM port of the charger;
and the determining unit is used for determining whether the charger responds to the control signal according to the voltage range of the voltage corresponding to the voltage pulse.
9. 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 the device to be charged according to any one of claims 1 to 7.
10. 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 one of claims 1-7 when said computer program is executed by said processor.
CN202110519311.9A 2021-05-12 2021-05-12 Charging method and device for equipment to be charged and computer readable storage medium Active CN113162198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110519311.9A CN113162198B (en) 2021-05-12 2021-05-12 Charging method and device for equipment to be charged and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110519311.9A CN113162198B (en) 2021-05-12 2021-05-12 Charging method and device for equipment to be charged and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113162198A CN113162198A (en) 2021-07-23
CN113162198B true CN113162198B (en) 2023-06-02

Family

ID=76875163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110519311.9A Active CN113162198B (en) 2021-05-12 2021-05-12 Charging method and device for equipment to be charged and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113162198B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104467118A (en) * 2014-12-31 2015-03-25 展讯通信(上海)有限公司 Charging method and device, charger, equipment to be charged and charging system
CN109066874A (en) * 2018-08-30 2018-12-21 北京小米移动软件有限公司 Fast charge method and device, electronic equipment, computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880909B2 (en) * 2009-07-20 2014-11-04 Texas Instruments Incorporated Auto-detect polling for correct handshake to USB client
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
CN112436577B (en) * 2021-01-27 2021-04-23 展讯通信(上海)有限公司 Chargeable equipment, charger and charging system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104467118A (en) * 2014-12-31 2015-03-25 展讯通信(上海)有限公司 Charging method and device, charger, equipment to be charged and charging system
CN109066874A (en) * 2018-08-30 2018-12-21 北京小米移动软件有限公司 Fast charge method and device, electronic equipment, computer readable storage medium

Also Published As

Publication number Publication date
CN113162198A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN111201689B (en) Electronic equipment and charging control method
US9859740B2 (en) Adapter, portable electronic device and charge control method thereof
CN112436577B (en) Chargeable equipment, charger and charging system
CN103683388A (en) Charger, terminal, overheating protection system and overheating protection method
CN106785130B (en) Charging method and device
CN104467118A (en) Charging method and device, charger, equipment to be charged and charging system
US11329493B2 (en) Method and system for testing output state of adaptor and computer storage medium
TW201510548A (en) Property testing system and method of USB charging cable, and electronic device
US10371758B2 (en) Test system and method for testing a battery pack
CN108521839A (en) Charge control method, equipment and system
CN106226708B (en) Electric power input detection device
CN113162198B (en) Charging method and device for equipment to be charged and computer readable storage medium
CN103812330A (en) Power supply converter capable of dynamically adjusting output voltage and power supply system suitable therefor
CN106597303A (en) Simulation charging system and method
CN113162199B (en) Charging method and device, and computer readable storage medium
CN113178920A (en) Charging method and device and computer readable storage medium
CN109038692B (en) Power supply device
CN113178918B (en) Charging method and device, and computer readable storage medium
US9608476B2 (en) Charging system and charging method thereof
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
CN215009656U (en) Circuit for detecting power receiving equipment connected to power supply equipment
CN105406554A (en) Charge control method and charge control device
AU2014356322A1 (en) Electronic detonator
CN113178919B (en) To-be-charged equipment and charging system

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