CN113364070A - Charging control method, system, terminal and storage medium - Google Patents

Charging control method, system, terminal and storage medium Download PDF

Info

Publication number
CN113364070A
CN113364070A CN202010149408.0A CN202010149408A CN113364070A CN 113364070 A CN113364070 A CN 113364070A CN 202010149408 A CN202010149408 A CN 202010149408A CN 113364070 A CN113364070 A CN 113364070A
Authority
CN
China
Prior art keywords
charging
quick
terminal
communication channel
charged
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.)
Pending
Application number
CN202010149408.0A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010149408.0A priority Critical patent/CN113364070A/en
Publication of CN113364070A publication Critical patent/CN113364070A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging control method, a system, a terminal and a storage medium, wherein the method comprises the following steps: after detecting that the voltage of a VBUS pin of an accessed charging cable reaches a preset voltage value, acquiring the battery state of a terminal to be charged; judging whether the battery state meets a preset state corresponding to the first quick charge; if so, sending a first quick-charge request to the power supply terminal through a first quick-charge communication channel in the charging cable so as to enable the power supply terminal to perform first quick-charge charging and close a communication channel corresponding to second quick-charge; and if not, sending a second quick-charging request or a common charging request to the power supply terminal through a communication channel of the second quick-charging so that the power supply terminal correspondingly carries out the second quick-charging or common charging and closes the communication channel corresponding to the first quick-charging. The invention solves the problem that the output voltage and current of the power supply terminal are disordered due to the fact that the terminal to be charged can simultaneously output the requirements on the charging parameters in the charging process through two communication paths.

Description

Charging control method, system, terminal and storage medium
Technical Field
The present invention relates to the field of charging, and in particular, to a charging control method, system, terminal, and computer-readable storage medium.
Background
The USB-IF organization issues a PD charging protocol based on the CC channel in the Type-C interface, which can increase the charging power of the Type-C interface of the current default maximum power 5V/2A to 100W. Meanwhile, the Type-C interface reserves the D + and D-pins used by the USB2.0 interface, so that the Type-C interface can also support other fast charging protocols based on the USB2.0 interface, such as VOOC fast charging, QC2.0 fast charging and the like. Although the Type-C interface can simultaneously support PD fast charging and non-PD fast charging, due to the difference between the communication paths, the charging device that simultaneously supports PD fast charging and non-PD fast charging outputs the requirement for the charging parameters of the charging process through the two communication paths during the charging process, thereby causing the disorder of the output voltage and current of the power supply terminal.
Disclosure of Invention
The invention mainly aims to provide a charging control method, a charging control system, a charging control terminal and a computer readable storage medium, and aims to solve the problem that a terminal to be charged, which simultaneously supports PD quick charging and non-PD quick charging, outputs the requirements on charging parameters in the charging process through two communication paths simultaneously in the charging process, so that the output voltage and current of a power supply terminal are disordered.
In order to achieve the above object, the present invention provides a charging control method applied to a terminal to be charged, including the steps of:
after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, acquiring the battery state of the terminal to be charged;
judging whether the battery state meets a preset state corresponding to the first quick charge;
if so, sending a first quick charging request to a power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal performs the first quick charging according to the received first quick charging request and closes a communication channel corresponding to a second quick charging in the charging cable;
if not, sending a second quick-charge request or a common charge request to the power supply terminal through a communication channel corresponding to a second quick charge in the charging cable, so that the power supply terminal correspondingly performs the second quick-charge or common charge and closes the communication channel corresponding to the first quick charge in the charging cable according to the received second quick-charge request or common charge request.
Optionally, the step of sending a first fast charge request to a power supply terminal through a communication channel corresponding to a first fast charge in the charging cable, so that the power supply terminal performs the first fast charge and the step of closing the communication channel corresponding to a second fast charge in the charging cable according to the received first fast charge request includes:
sending a first quick charging request to the power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal feeds back a first quick charging working signal and closes a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request;
judging whether a first quick charging working signal fed back by the power supply terminal is received within a preset time;
if so, sending a battery state to the power supply terminal in real time through a communication channel corresponding to a first quick charge in the charging cable, so that the power supply terminal adjusts the charging voltage and the charging current in the first quick charge in real time according to the received battery state;
if not, judging whether the number of times of continuously sending the first quick charging request reaches a preset number;
and if the number of times of continuously sending the first quick charging request does not reach the preset number, returning to the step of sending the first quick charging request to the power supply terminal through the communication channel corresponding to the first quick charging in the charging cable.
Optionally, the step of sending a second fast charge request or a common charge request to the power supply terminal through a communication channel corresponding to a second fast charge in the charging cable, so that the power supply terminal correspondingly performs the second fast charge or the common charge and closes the communication channel corresponding to the first fast charge in the charging cable according to the received second fast charge request or the common charge request includes:
judging whether the battery state meets a preset state corresponding to the second quick charge;
if so, sending a second quick-charging request to the power supply terminal through a communication channel corresponding to a second quick-charging in the charging cable, so that the power supply terminal performs second quick-charging according to the received second quick-charging request and closes the communication channel corresponding to the first quick-charging in the charging cable;
if not, sending a common charging request to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, so that the power supply terminal performs common charging and closes the communication channel corresponding to the first quick charging in the charging cable according to the received common charging request.
Optionally, the step of acquiring the battery state of the terminal to be charged after detecting that the voltage value of the VBUS pin of the charging cable connected to the terminal to be charged reaches a preset voltage value includes:
after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, acquiring the battery state of the terminal to be charged, and receiving at least one second quick-charging power output mode sent by the power supply terminal through a communication channel corresponding to a second quick-charging in the charging cable, wherein the power output mode comprises charging voltage and charging current;
the step of sending a second fast charging request through a communication channel corresponding to a second fast charging in the charging cable so that the power supply terminal performs the second fast charging according to the received second fast charging request comprises:
selecting a second fast-charging power output mode from the received second fast-charging power output modes;
and sending a second quick charging request comprising the selected output power mode to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, so that the power supply terminal performs second quick charging on the terminal to be charged according to the charging current and the charging voltage in the selected output power mode.
In addition, in order to achieve the above object, the present invention further provides a charging control method applied to a power supply terminal, including the steps of:
judging whether a pull-down resistor of the terminal to be charged is detected;
when the pull-down resistor of the terminal to be charged is detected, outputting a preset voltage value on a VBUS pin of a charging cable connected with the power supply terminal;
monitoring whether a first quick charging request sent by the terminal to be charged through a communication channel corresponding to first quick charging in the charging cable is received;
monitoring whether a second quick charging request or a common charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received;
if a first quick charging request sent by the terminal to be charged through a communication channel corresponding to a first quick charging in the charging cable is received, performing first quick charging on the terminal to be charged and closing a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request;
if a second quick charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received, performing second quick charging on the terminal to be charged correspondingly and closing the communication channel corresponding to first quick charging in the charging cable according to the received second quick charging request;
and if a common charging request sent by the terminal to be charged through a communication channel corresponding to the second quick charge in the charging cable is received, performing common charging on the terminal to be charged correspondingly and closing the communication channel corresponding to the first quick charge in the charging cable according to the received common charging request.
Optionally, the step of performing, according to the received first fast charging request, first fast charging on the terminal to be charged and closing a communication channel corresponding to a second fast charging in the charging cable includes:
according to the received first quick charging request, closing a communication channel corresponding to a second quick charging in the charging cable, and sending a first quick charging working signal to the terminal to be charged through a communication channel corresponding to a first quick charging in the charging cable, so that the terminal to be charged feeds back the battery state in real time through the communication channel corresponding to the first quick charging in the charging cable after receiving the first quick charging working signal;
and adjusting the charging voltage and the charging current of the first quick charge in real time according to the received battery state, and charging the terminal to be charged according to the adjusted charging voltage and charging current of the first quick charge.
Optionally, after the step of determining whether the pull-down resistor of the terminal to be charged is detected, the method further includes:
when a pull-down resistor of the terminal to be charged is detected, sending at least one second fast-charging output power mode to the terminal to be charged through a communication channel corresponding to a second fast-charging in the charging cable, wherein the output power mode comprises a charging voltage and a charging current;
if a second quick-charging request sent by the terminal to be charged through a communication channel corresponding to second quick-charging in the charging cable is received, the steps of correspondingly performing second quick-charging on the terminal to be charged and closing the communication channel corresponding to first quick-charging in the charging cable according to the received second quick-charging request comprise:
and if a second quick charging request comprising an output power mode and sent by the terminal to be charged through a communication channel corresponding to the second quick charging in the charging cable is received, carrying out second quick charging on the terminal to be charged by the received charging voltage and charging current in the output power mode, and closing the communication channel corresponding to the first quick charging in the charging cable.
In addition, to achieve the above object, the present invention further provides a charging control system applied to a terminal to be charged, the system including:
the first acquisition module is used for acquiring the battery state of the terminal to be charged after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value;
the first judging module is used for judging whether the battery state meets a preset state corresponding to the first quick charge;
the first sending module is used for sending a first quick charging request to the power supply terminal through a communication channel corresponding to a first quick charging in the charging cable if the charging cable is in the charging cable state, so that the power supply terminal performs first quick charging according to the received first quick charging request and closes a communication channel corresponding to a second quick charging in the charging cable;
and the second sending module is used for sending a second quick-charging request or a common charging request to the power supply terminal through a communication channel corresponding to the second quick-charging in the charging cable if the charging cable is not in the charging cable, so that the power supply terminal correspondingly carries out second quick-charging or common charging according to the received second quick-charging request or common charging request and closes the communication channel corresponding to the first quick-charging in the charging cable.
In addition, to achieve the above object, the present invention further provides a charging control system applied to a power supply terminal, the system including:
the second judgment module is used for judging whether the pull-down resistor of the terminal to be charged is detected or not;
the output module is used for outputting a preset voltage value on a VBUS pin of a charging cable connected with the power supply terminal when the pull-down resistor of the terminal to be charged is detected;
the first monitoring module is used for monitoring whether a first quick charging request sent by the terminal to be charged through a communication channel corresponding to first quick charging in the charging cable is received;
the second monitoring module is used for monitoring whether a second quick charging request or a common charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received;
the first charging module is used for performing first quick charging on the terminal to be charged and closing a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request if the first quick charging request sent by the terminal to be charged through the communication channel corresponding to the first quick charging in the charging cable is received;
the second charging module is used for correspondingly performing second quick charging on the terminal to be charged and closing the communication channel corresponding to the first quick charging in the charging cable according to the received second quick charging request if the second quick charging request sent by the terminal to be charged through the communication channel corresponding to the second quick charging in the charging cable is received;
and the third charging module is used for carrying out common charging on the terminal to be charged correspondingly and closing the communication channel corresponding to the first quick charge in the charging cable according to the received common charging request if the common charging request sent by the terminal to be charged through the communication channel corresponding to the second quick charge in the charging cable is received.
To achieve the above object, the present invention further provides a terminal, which includes a memory, a processor, and a charging control program stored on the memory and executable on the processor, wherein the charging control program, when executed by the processor, implements the steps of the charging control method as described above.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a charging control program, which when executed by a processor, implements the steps of the charging control method as described above.
According to the charging control method, the charging control system, the charging control terminal and the computer readable storage medium, the battery state of the terminal to be charged is acquired after the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged is detected to reach a preset voltage value; judging whether the battery state meets a preset state corresponding to the first quick charge; if so, sending a first quick charging request to a power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal performs the first quick charging according to the received first quick charging request and closes a communication channel corresponding to a second quick charging in the charging cable; if not, sending a second quick-charge request or a common charge request to the power supply terminal through a communication channel corresponding to a second quick charge in the charging cable, so that the power supply terminal correspondingly performs the second quick-charge or common charge and closes the communication channel corresponding to the first quick charge in the charging cable according to the received second quick-charge request or common charge request. After the terminal to be charged is connected with the power supply equipment, one of the second quick charging mode and the first quick charging mode can be selected according to the battery state of the terminal to be charged, the power supply equipment is informed of the mode of the charging request, the power supply equipment can close the communication channel of the unselected charging mode according to the charging mode selected by the charging equipment, and the communication channel of the selected charging mode is kept opened, so that the charging equipment can only output the requirements of charging voltage and charging current through one communication channel, and the power supply terminal can only receive the requirements of the charging voltage and the charging current once at the same time, thereby avoiding the problem that the output voltage and the current of the power supply terminal are disordered.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a charging control method according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart of step S30 in the first embodiment of the charging control method according to the present invention;
fig. 4 is a detailed flowchart of step S40 in the first embodiment of the charging control method according to the present invention;
FIG. 5 is a flowchart illustrating a charging control method according to a third embodiment of the present invention;
fig. 6 is a detailed flowchart of step S90 in the third embodiment of the charging control method according to the present invention;
FIG. 7 is a flowchart illustrating a charging control method according to a fourth embodiment of the present invention;
FIG. 8 is a functional block diagram of a charging control system according to a first embodiment of the present invention;
fig. 9 is a functional block diagram of a charging control system according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a terminal with a Type-C interface, such as a PC, a tablet computer, a portable computer, a smart phone, an adapter and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a Type-C interface 1003, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system and a charging control program therein.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a charging control program stored in the memory 1005 and perform the operations of the following embodiments of the charging control method.
Based on the terminal, various embodiments of the charging control method in the present application are proposed.
Referring to fig. 2, in a first embodiment of the charging control method of the present invention, the charging control method is applied to a terminal to be charged, and the method includes the steps of:
referring to fig. 2, in a first embodiment of the charging control method of the present invention, the charging control method is applied to a terminal to be charged, and the method includes the steps of:
step S10, after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, acquiring the battery state of the terminal to be charged;
in the scheme, the terminal to be charged is a terminal with a Type-C interface, and can be a mobile phone, a notebook computer, a tablet computer and the like, and the terminal to be charged supports the second quick charge and the first quick charge. The second quick charging refers to a quick charging protocol utilizing CC channel communication in a Type-C interface, for example, PD quick charging. The first fast charging refers to other fast charging protocols which utilize D + and D-communication in a Type-C interface, such as VOOC fast charging protocol, QC2.0 fast charging protocol, QC3.0 fast charging protocol, PE fast charging protocol and FCP fast charging protocol. The power supply terminal is a terminal with a Type-C interface, and can be an adapter, a notebook computer, a tablet computer and the like, and the power supply terminal supports second quick charging, such as PD quick charging, and first quick charging, such as VOOC quick charging protocol, QC2.0 quick charging protocol, QC3.0 quick charging protocol, PE quick charging protocol and FCP quick charging protocol.
After the to-be-charged terminal is connected with the power supply terminal through the charging cable, the voltage of a VBUS pin of the charging cable connected to the to-be-charged terminal is detected, and when the voltage of the VBUS pin is detected to reach a preset voltage value, for example, 5V, the to-be-charged terminal can acquire the current battery state in the to-be-charged terminal, wherein the battery state comprises the electric quantity of a battery, the temperature of the battery and the like.
Step S20, judging whether the battery state meets a preset state corresponding to the first quick charge; if yes, go to step S30; if not, go to step S40;
after the current battery state is acquired by the terminal to be charged, the current battery state is compared with a preset state corresponding to a first quick charge stored in the terminal to be charged in advance, and whether the current battery state meets the preset state corresponding to the first quick charge is judged. And if the first charging mode is met, the terminal to be charged determines to select the first quick charging mode, and if the first charging mode is not met, the terminal to be charged selects the second quick charging mode or the common charging mode.
Step S30, a first fast charge request is sent to a power supply terminal through a communication channel corresponding to a first fast charge in the charging cable, so that the power supply terminal performs the first fast charge and closes the communication channel corresponding to a second fast charge in the charging cable according to the received first fast charge request;
if the current battery state meets the preset state corresponding to the first fast charge, after the terminal to be charged determines to select the first fast charge, the Type-C interface is used for sending a first fast charge request to the power supply terminal through the communication channels of the D + and the D-in the communication channel corresponding to the first fast charge in the charging cable, for example, the terminal to be charged sends 30 square wave signals with a period of 2 milliseconds and a duty ratio of 50% to the power supply terminal through the D + channel in the charging cable by using the Type-C interface. After receiving a first quick charging request sent by a terminal to be charged, the power supply terminal closes a communication channel corresponding to a second quick charging in the charging cable, and simultaneously enters a first quick charging working mode to perform first quick charging on the terminal to be charged.
Specifically, referring to fig. 3, fig. 3 is a detailed schematic view of the flow of step S30 in the embodiment of the present application, and based on the embodiment, step S30 includes:
step S31, a first fast charge request is sent to the power supply terminal through a communication channel corresponding to a first fast charge in the charging cable, so that the power supply terminal feeds back a first fast charge working signal and closes a communication channel corresponding to a second fast charge in the charging cable according to the received first fast charge request;
if the current battery state meets the preset state corresponding to the first fast charge, after the terminal to be charged determines to select the first fast charge, a first fast charge request is sent to the power supply terminal through communication channels corresponding to the first fast charge in the charging cable, namely communication channels of D + and D-in the Type-C interface, for example, the terminal to be charged sends 30 square wave signals with 2 milliseconds in period and 50% duty ratio to the power supply terminal through the D + channel in the charging cable by using the Type-C interface. After receiving a first quick charging request sent by a terminal to be charged, a power supply terminal closes a CC communication channel corresponding to a second quick charging in a charging cable, and feeds back a first quick charging working signal through a D + D-communication channel corresponding to the first quick charging in the charging cable.
Step S32, judging whether a first quick charging working signal fed back by the power supply terminal is received within a preset time; if yes, go to step S33; if not, go to step S34;
step S33, sending a battery state to the power supply terminal in real time through a communication channel corresponding to a first quick charge in the charging cable, so that the power supply terminal adjusts the charging voltage and the charging current in the first quick charge in real time according to the received battery state;
after the terminal to be charged sends the first fast charging request, the terminal to be charged waits for receiving a first fast charging working signal fed back by the power supply terminal within a preset time. If a first quick charging working signal fed back by the power supply terminal is received within the preset time, the terminal to be charged enters a non-PD working mode, the battery state is sent to the power supply terminal in real time through a first quick charging communication channel D + D-in the charging cable, and the power supply terminal correspondingly adjusts the charging voltage and the charging current of the first quick charging in real time through receiving the battery state of the terminal to be charged in real time. For example, in the first fast charging process, if the power amount of the battery of the terminal to be charged received by the power supply terminal is 10%, the power supply terminal may perform charging with the maximum current 6A of the first fast charging, and when the battery current of the terminal to be charged reaches 70%, the power supply terminal may decrease the charging current to 5A for charging.
Step S34, judging whether the number of times of continuously sending the first quick charging request reaches the preset number of times; if not, the process returns to step S31.
If the first fast charging working signal fed back by the power supply terminal is not received within the preset time, whether the number of times of continuously sending the first fast charging request reaches the preset number is judged, and if the number of times of continuously sending the first fast charging request does not reach the preset number, the first fast charging request is repeatedly sent.
It should be noted that, if the preset number of times is reached, it is determined that the first fast charging request is no longer sent to the power supply terminal, so that the request is prevented from being always initiated, and the subsequent charging process is prevented from being affected. After determining that the first quick charging request is not sent any more, the terminal to be charged automatically selects second quick charging or ordinary charging, and sends a second quick charging request or ordinary charging request to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, so that the power supply terminal correspondingly carries out second quick charging or ordinary charging according to the received second quick charging request or ordinary charging request and closes the communication channel corresponding to the first quick charging in the charging cable.
Step S40, sending a second fast charge request or a normal charge request to the power supply terminal through a communication channel corresponding to a second fast charge in the charging cable, so that the power supply terminal correspondingly performs the second fast charge or the normal charge according to the received second fast charge request or the normal charge request, and closes the communication channel corresponding to the first fast charge in the charging cable.
If the current battery state does not meet the preset state corresponding to the first quick charge, the terminal to be charged can select to adopt the second quick charge or common charge, a second quick charge request or a common charge request is sent to the power supply terminal through a second quick charge communication channel, namely a CC channel, in the rewinder by utilizing a Type-C interface, and after the power supply terminal receives the second quick charge request or the common charge request through the second quick charge communication channel, namely the CC channel, in the rewinder, the communication channels corresponding to the first quick charge, namely the communication channels of D + and D-in the rewinder can be closed, and simultaneously the communication channels enter a second quick charge working mode or a common charge working mode to carry out the second quick charge or the common charge on the terminal to be charged.
Specifically, referring to fig. 4, fig. 4 is a detailed schematic view of the flow of step S40 in the embodiment of the present application, and based on the embodiment, step S40 includes:
step S41, judging whether the battery state meets the preset state corresponding to the second quick charge; if yes, go to step S42; if not, go to step S43;
step S42, sending a second fast charge request to the power supply terminal through a communication channel corresponding to a second fast charge in the charging cable, so that the power supply terminal performs the second fast charge and closes the communication channel corresponding to the first fast charge in the charging cable according to the received second fast charge request;
step S43, sending a common charging request to the power supply terminal through the communication channel corresponding to the second fast charge in the charging cable, so that the power supply terminal performs common charging and closes the communication channel corresponding to the first fast charge in the charging cable according to the received common charging request.
If the current battery state to be charged does not meet the preset state corresponding to the first quick charge, the terminal to be charged can continuously judge whether the battery state meets the preset state corresponding to the second quick charge. If the battery state of the terminal to be charged meets the preset state corresponding to the second quick charge, for example, the battery electric quantity of the terminal to be charged does not reach 90%, the terminal to be charged sends a second quick charge request to the power supply terminal through the CC communication channel corresponding to the second quick charge in the charging cable, and after the power supply terminal receives the second quick charge request, the communication channel corresponding to the first quick charge in the charging cable is closed, and the second quick charge working mode is adopted to start charging the terminal to be charged.
If the battery state of the terminal to be charged does not satisfy the preset state corresponding to the second quick charge, for example, the battery capacity of the terminal to be charged has reached 90%, the terminal to be charged sends a common charging request to the power supply terminal through the CC communication channel corresponding to the second quick charge, after receiving the common charging request, the power supply terminal closes the communication channel corresponding to the first quick charge in the charging cable, and starts to charge the terminal to be charged by using the charging voltage and the charging current corresponding to the common charge, for example, 5V 3A.
In the embodiment, the battery state of the terminal to be charged is obtained by detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value; judging whether the battery state meets a preset state corresponding to the first quick charge; if so, sending a first quick charging request to a power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal performs the first quick charging according to the received first quick charging request and closes a communication channel corresponding to a second quick charging in the charging cable; if not, sending a second quick-charge request or a common charge request to the power supply terminal through a communication channel corresponding to a second quick charge in the charging cable, so that the power supply terminal correspondingly performs the second quick-charge or common charge and closes the communication channel corresponding to the first quick charge in the charging cable according to the received second quick-charge request or common charge request. After the terminal to be charged is connected with the power supply equipment, one of the second quick charging mode and the first quick charging mode can be selected according to the battery state of the terminal to be charged, the power supply equipment is informed of the mode of the charging request, the power supply equipment can close the communication channel of the unselected charging mode according to the charging mode selected by the charging equipment, and the communication channel of the selected charging mode is kept opened, so that the charging equipment can only output the requirements of charging voltage and charging current through one communication channel, and the power supply terminal can only receive the requirements of the charging voltage and the charging current once at the same time, thereby avoiding the problem that the output voltage and the current of the power supply terminal are disordered.
Further, a second embodiment of the charging control method of the present application is proposed according to the first embodiment of the charging control method of the present application, and in this embodiment, the step S10 further includes:
step S11, after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, acquiring the battery state of the terminal to be charged, and receiving at least one second fast charging power output mode sent by the power supply terminal through a communication channel corresponding to a second fast charging in the charging cable, wherein the power output mode comprises charging voltage and charging current;
in this example, after the terminal to be charged is connected to the power supply terminal through the charging cable, the voltage of the VBUS pin of the Type-C interface of the charging cable connected to the terminal to be charged is detected, and when the voltage of the VBUS pin is detected to reach a preset voltage value, for example, 5V, the terminal to be charged acquires a current battery state in the terminal to be charged, and the terminal to be charged simultaneously receives at least one second fast-charging power output mode sent by the power supply terminal through a communication channel corresponding to a second fast-charging in the charging cable, where the power output mode includes a charging voltage and a charging current, for example, 9V3A, 15V3A, and the like.
In step S42, the step of sending a second fast charge request through a communication channel corresponding to a second fast charge in the charging cable to enable the power supply terminal to perform a second fast charge according to the received second fast charge request includes:
step S44, selecting one second fast charge power output mode from the received second fast charge power output modes;
step S45, a second fast charge request including the selected output power mode is sent to the power supply terminal through a communication channel corresponding to a second fast charge in the charging cable, so that the power supply terminal performs a second fast charge on the terminal to be charged according to the charging current and the charging voltage in the selected output power mode;
after the terminal to be charged determines to select the second quick charging working mode, a power output mode is selected from the previously received power output modes of the second quick charging according to a preset strategy; and then packaging the selected power output mode in a second quick charging request, sending the selected power output mode and the second quick charging request to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, analyzing the power output mode, namely charging current and charging voltage, from the received PD charging request by the power supply terminal, and performing second quick charging on the terminal to be charged by adopting the charging current and the charging voltage.
The power supply terminal informs the power output mode of the second quick charge of the power supply terminal to the terminal to be charged, so that the terminal to be charged can select the optimal charging voltage and charging current of the second quick charge according to the self requirements such as the battery state after the second quick charge working mode is determined to be adopted, and the phenomenon that the charging time is too long due to damage of components in the terminal to be charged caused by overlarge charging voltage and charging current or due to overlong charging time caused by undersize charging current is avoided.
Referring to fig. 5, in a third embodiment of the charging control method of the present invention, the charging control method is applied to a power supply terminal, and the method includes the steps of:
step S50, judging whether a pull-down resistor of the terminal to be charged is detected;
after the power supply terminal is powered on, whether the pull-down resistor of the terminal to be charged is detected or not is continuously judged to determine whether the terminal to be charged is connected with the terminal to be charged or not.
Step S60, when the pull-down resistor of the terminal to be charged is detected, outputting a preset voltage value on a VBUS pin of a charging cable connected with the power supply terminal;
when the pull-down resistor of the terminal to be charged is detected, that is, after the connection with the terminal to be charged is confirmed, the power supply terminal outputs a preset voltage, for example, 5V, on the Vbus pin of the charging cable connected to the power supply terminal.
Step S70, monitoring whether a first quick charging request sent by the terminal to be charged through a communication channel corresponding to a first quick charging in the charging cable is received;
step S80, monitoring whether a second fast charging request or a normal charging request sent by the terminal to be charged through a communication channel corresponding to a second fast charging in the charging cable is received;
after the power supply terminal outputs the preset voltage on the VBUS pin, whether a first quick charging request sent by the terminal to be charged is received on a communication channel corresponding to a first quick charging mode or not can be monitored in real time, and whether a second quick charging request or a common charging request sent by the terminal to be charged is received on a communication channel corresponding to a second quick charging mode or not can be monitored in real time.
Step S70 and step S80 are performed simultaneously.
Step S90, if a first fast charge request sent by the terminal to be charged through a communication channel corresponding to a first fast charge in the charging cable is received, performing first fast charge on the terminal to be charged and closing a communication channel corresponding to a second fast charge in the charging cable according to the received first fast charge request;
when the power supply terminal monitors that a first quick charging request sent by the terminal to be charged through the D + and D-communication channels corresponding to the first quick charging in the charging cable is received, the terminal to be charged is subjected to first quick charging according to the received first quick charging request, and meanwhile, the CC communication channel corresponding to the second quick charging in the charging cable is closed, so that the condition that information or state fed back by the terminal to be charged is received only through the D + and D-communication channels corresponding to the first quick charging in the non-PD charging process is ensured.
Specifically, referring to fig. 6, fig. 6 is a detailed schematic view of the flow of step S90 in the embodiment of the present application, and based on the embodiment, step S90 includes:
step S91, according to the received first fast charging request, closing a communication channel corresponding to a second fast charging in the charging cable, and sending a first fast charging working signal to the terminal to be charged through the communication channel corresponding to the first fast charging in the charging cable, so that the terminal to be charged feeds back the battery state in real time through the communication channel corresponding to the first fast charging in the charging cable after receiving the first fast charging working signal;
and step S92, adjusting the charging voltage and the charging current of the first quick charge in real time according to the received battery state, and charging the terminal to be charged according to the adjusted charging voltage and charging current of the first quick charge.
After monitoring that a first quick-charging request sent by a terminal to be charged through communication channels corresponding to first quick-charging in the charging cable, namely communication channels of D + and D-, is received by the power supply terminal, for example, the first quick-charging request is a square wave signal with 30 cycles of 2 milliseconds and 50% duty ratio, a CC communication channel corresponding to second quick-charging in the charging cable is closed, and meanwhile, a first quick-charging working signal is sent to the terminal to be charged through the D + D-communication channel corresponding to the first quick-charging in the charging cable.
After receiving the first quick charging working signal within the preset time, the terminal to be charged enters a non-PD working mode, and simultaneously feeds back the battery state to the power supply terminal in real time through a communication channel D + D-of the first quick charging in the charging cable, and the power supply terminal correspondingly adjusts the charging voltage and the charging current of the first quick charging in real time through receiving the battery state of the terminal to be charged in real time. For example, in the first fast charging process, if the power amount of the battery of the terminal to be charged received by the power supply terminal is 10%, the power supply terminal may perform charging with the maximum current 6A of the first fast charging, and when the battery current of the terminal to be charged reaches 70%, the power supply terminal may decrease the charging current to 5A for charging.
Step S100, if a second quick charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received, performing second quick charging on the terminal to be charged correspondingly and closing the communication channel corresponding to first quick charging in the charging cable according to the received second quick charging request;
if the power supply terminal monitors that a second quick charging request sent by the terminal to be charged through a second quick charging communication channel, namely a CC channel, in the charging cable is received, the power supply terminal closes the communication channels corresponding to the first quick charging in the charging cable, namely the communication channels of D + and D-, and simultaneously enters a second quick charging working mode to carry out second quick charging on the terminal to be charged.
Step S110, if a common charging request sent by the terminal to be charged through the communication channel corresponding to the second fast charge in the charging cable is received, performing common charging on the terminal to be charged correspondingly and closing the communication channel corresponding to the first fast charge in the charging cable according to the received common charging request.
If the power supply terminal monitors that a common charging request sent by the terminal to be charged through a second quick charging communication channel, namely a CC channel, in the charging cable is received, the power supply terminal closes communication channels corresponding to the first quick charging in the charging cable, namely communication channels of D + and D-, and simultaneously enters a common charging working mode to carry out common charging on the terminal to be charged.
The embodiment judges whether the pull-down resistor of the terminal to be charged is detected; when the pull-down resistor of the terminal to be charged is detected, outputting a preset voltage value on a VBUS pin of a charging cable connected with the power supply terminal; monitoring whether a first quick charging request sent by the terminal to be charged through a communication channel corresponding to a first quick charging in the charging cable is received or not, and simultaneously monitoring whether a second quick charging request or a common charging request sent by the terminal to be charged through a communication channel corresponding to a second quick charging in the charging cable is received or not; if a first quick charging request sent by the terminal to be charged through a communication channel corresponding to first quick charging in the charging cable is received, performing first quick charging on the terminal to be charged and closing the communication channel corresponding to the first quick charging in the charging cable according to the received first quick charging request; if a second quick charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received, performing second quick charging on the terminal to be charged correspondingly and closing the communication channel corresponding to first quick charging in the charging cable according to the received second quick charging request; and if a common charging request sent by the terminal to be charged through a communication channel corresponding to the second quick charge in the charging cable is received, performing common charging on the terminal to be charged correspondingly and closing the communication channel corresponding to the first quick charge in the charging cable according to the received common charging request. After the power supply terminal is connected with the terminal to be charged, the power supply device can close the communication channel of the unselected charging mode according to the charging mode selected by the charging device, and keep the communication channel of the selected charging mode open, so that the power supply terminal can only receive the requirement of the charging voltage and the charging current sent by the terminal to be charged at one time, and the problem that the output voltage and the output current of the power supply terminal are disordered due to the requirement of the terminal to be charged on the charging voltage and the charging current sent by the two communication channels at the same time is avoided.
Further, referring to fig. 7, fig. 7 shows a fourth embodiment of the charging control method according to the third embodiment of the charging control method, and in this embodiment, after step S50, the method further includes:
step S120, when a pull-down resistor of the terminal to be charged is detected, at least one output power mode of a second quick charge is sent to the terminal to be charged through a communication channel corresponding to the second quick charge in the charging cable, wherein the output power mode comprises a charging voltage and a charging current;
when the pull-down resistance of the terminal to be charged is detected, namely after connection with the terminal to be charged is confirmed, at least one output power mode of a second quick charge is sent through a communication channel corresponding to the second quick charge in the charging cable so as to be selected by the terminal to be charged, wherein the power output mode comprises a charging voltage and a charging current, such as 9V3A, 15V3A and the like.
It should be noted that, the step S120 and the step S60 may be performed simultaneously, or the step S60 may be performed first, or the step S120 may be advanced, and the sequence between the step S60 and the step S120 is not limited in the present invention.
The step S100 includes:
step S101, if a second quick charging request including an output power mode is received, wherein the second quick charging request includes that the terminal to be charged sends through a communication channel corresponding to second quick charging in the charging cable, the second quick charging is carried out on the terminal to be charged according to the received charging voltage and charging current in the output power mode, and the communication channel corresponding to first quick charging in the charging cable is closed.
After the second quick-charging working mode is determined to be selected, the terminal to be charged firstly selects one power output mode from the previously received power output modes of the second quick-charging according to a preset strategy. And the power supply terminal receives a second quick charging request which is sent by the terminal to be charged and comprises a power output mode selected by the terminal to be charged, the power supply terminal analyzes the power output mode, namely charging current and charging voltage, from the received second quick charging request, the charging current and the charging voltage are adopted to carry out second quick charging on the terminal to be charged, and meanwhile, D + and D-communication channels corresponding to the first quick charging are closed.
The power supply terminal informs the power output mode of the second quick charge of the power supply terminal to the terminal to be charged, so that the terminal to be charged can select the optimal charging voltage and charging current of the second quick charge according to the self requirements such as the battery state after the second quick charge working mode is determined to be adopted, and the phenomenon that the charging time is too long due to damage of components in the terminal to be charged caused by overlarge charging voltage and charging current or due to overlong charging time caused by undersize charging current is avoided.
The invention further provides a charging control system which is applied to the terminal to be charged.
Referring to fig. 8, fig. 8 is a functional block diagram of a charging control system according to a first embodiment of the present invention.
In this embodiment, the charge control system includes:
the first obtaining module 10 is configured to obtain a battery state of the terminal to be charged after detecting that a voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value;
the first judging module 20 is configured to judge whether the battery state meets a preset state corresponding to the first fast charge;
the first sending module 30 is configured to send a first fast charge request to the power supply terminal through a communication channel corresponding to a first fast charge in the charging cable if the first communication channel is the first fast charge request, so that the power supply terminal performs the first fast charge according to the received first fast charge request and closes a communication channel corresponding to a second fast charge in the charging cable;
and the second sending module 40 is configured to send a second fast charge request or a common charge request to the power supply terminal through a communication channel corresponding to a second fast charge in the charging cable if the charging cable is not charged, so that the power supply terminal correspondingly performs the second fast charge or the common charge and closes the communication channel corresponding to the first fast charge in the charging cable according to the received second fast charge request or the common charge request.
Optionally, in another embodiment, the first sending module 30 includes:
the first sending unit is used for sending a first quick charging request to the power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal feeds back a first quick charging working signal and closes a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request;
the first judging unit is used for judging whether a first quick charging working signal fed back by the power supply terminal is received within a preset time;
the second sending unit is used for sending the battery state to the power supply terminal in real time through a communication channel corresponding to the first quick charge in the charging cable if the charging cable is in the charging state, so that the power supply terminal adjusts the charging voltage and the charging current of the first quick charge in real time according to the received battery state;
the second judging unit is used for judging whether the number of times of continuously sending the first quick charging request reaches the preset number of times or not if the number of times of continuously sending the first quick charging request does not reach the preset number of times;
and the return execution unit is used for returning to execute the step of sending the first quick charging request to the power supply terminal through a communication channel corresponding to the first quick charging in the charging cable if the number of times of continuously sending the first quick charging request does not reach the preset number of times.
Optionally, in another embodiment, the second sending module 40 includes:
the third judging unit is used for judging whether the battery state meets a preset state corresponding to the second quick charge;
a third sending unit, configured to send a second fast charge request to the power supply terminal through a communication channel corresponding to a second fast charge in the charging cable if the charging cable is a charging cable, so that the power supply terminal performs the second fast charge according to the received second fast charge request and closes the communication channel corresponding to the first fast charge in the charging cable;
and if not, sending a common charging request to the power supply terminal through a communication channel corresponding to the second quick charge in the charging cable, so that the power supply terminal performs common charging according to the received common charging request and closes the communication channel corresponding to the first quick charge in the charging cable.
Optionally, in another embodiment, the charging control system further includes:
the first obtaining module is further configured to obtain a battery state of the terminal to be charged after a voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, and receive at least one second fast charging power output mode sent by the power supply terminal through a communication channel corresponding to a second fast charging in the charging cable, where the power output mode includes a charging voltage and a charging current;
the third sending unit is further configured to select a second fast charging power output mode from the received second fast charging power output modes; and sending a second quick charging request comprising the selected output power mode to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, so that the power supply terminal performs second quick charging on the terminal to be charged according to the charging current and the charging voltage in the selected output power mode.
The invention further provides a charging control system which is applied to the power supply terminal.
Referring to fig. 9, fig. 9 is a functional block diagram of a charging control system according to a first embodiment of the present invention.
In this embodiment, the charge control system includes:
a second judging module 50, configured to judge whether a pull-down resistor of the terminal to be charged is detected;
an output module 60, configured to output a preset voltage value on a VBUS pin of a charging cable connected to the power supply terminal when a pull-down resistor of the terminal to be charged is detected;
the first monitoring module 70 is configured to monitor whether a first fast charging request sent by the terminal to be charged through a communication channel corresponding to a first fast charging in the charging cable is received;
the second monitoring module 80 is configured to monitor whether a second fast charging request or a common charging request sent by the terminal to be charged through a communication channel corresponding to a second fast charging in the charging cable is received;
the first charging module 90 is configured to, if a first fast charging request sent by the terminal to be charged through a communication channel corresponding to a first fast charging in the charging cable is received, perform first fast charging on the terminal to be charged according to the received first fast charging request, and close the communication channel corresponding to a second fast charging in the charging cable;
the second charging module 100 is configured to, if a second fast charging request sent by the terminal to be charged through a communication channel corresponding to a second fast charging in the charging cable is received, perform, according to the received second fast charging request, second fast charging on the terminal to be charged correspondingly and close the communication channel corresponding to the first fast charging in the charging cable;
the third charging module 110 is configured to, if a common charging request sent by the terminal to be charged through the communication channel corresponding to the second fast charge in the charging cable is received, perform common charging on the terminal to be charged correspondingly and close the communication channel corresponding to the first fast charge in the charging cable according to the received common charging request.
Optionally, in another embodiment, the first charging module 90 further includes:
a fifth sending unit, configured to close a communication channel corresponding to a second fast charge in the charging cable according to the received first fast charge request, and send a first fast charge working signal to the terminal to be charged through the communication channel corresponding to the first fast charge in the charging cable, so that the terminal to be charged feeds back a battery state in real time through the communication channel corresponding to the first fast charge in the charging cable after receiving the first fast charge working signal;
and the adjusting unit is used for adjusting the charging voltage and the charging current of the first quick charge in real time according to the received battery state, and charging the terminal to be charged according to the adjusted charging voltage and charging current of the first quick charge.
Optionally, in another embodiment, the charging control system further includes:
the third sending module is used for sending at least one second fast-charging output power mode to the terminal to be charged through a communication channel corresponding to a second fast-charging in the charging cable when the pull-down resistor of the terminal to be charged is detected, wherein the output power mode comprises charging voltage and charging current;
the second charging module 100 is further configured to, if a second fast charging request including an output power mode is received, where the second fast charging request includes a request for a second fast charging sent by the terminal to be charged through a communication channel corresponding to the second fast charging in the charging cable, perform the second fast charging on the terminal to be charged according to the received charging voltage and charging current in the output power mode, and close the communication channel corresponding to the first fast charging in the charging cable.
In addition, the invention also provides a computer readable storage medium, wherein the charging control program is stored on the computer readable storage medium. The computer-readable storage medium may be the Memory 1005 in the terminal in fig. 1, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a tablet computer, a portable computer, or an adapter) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A charging control method is applied to a terminal to be charged, and is characterized by comprising the following steps:
after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, acquiring the battery state of the terminal to be charged;
judging whether the battery state meets a preset state corresponding to the first quick charge;
if so, sending a first quick charging request to a power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal performs the first quick charging according to the received first quick charging request and closes a communication channel corresponding to a second quick charging in the charging cable;
if not, sending a second quick-charge request or a common charge request to the power supply terminal through a communication channel corresponding to a second quick charge in the charging cable, so that the power supply terminal correspondingly performs the second quick-charge or common charge and closes the communication channel corresponding to the first quick charge in the charging cable according to the received second quick-charge request or common charge request.
2. The charging control method according to claim 1, wherein the step of sending a first fast charging request to a power supply terminal through a communication channel corresponding to a first fast charging in the charging cable, so that the power supply terminal performs the first fast charging according to the received first fast charging request and closes a communication channel corresponding to a second fast charging in the charging cable comprises:
sending a first quick charging request to the power supply terminal through a communication channel corresponding to a first quick charging in the charging cable, so that the power supply terminal feeds back a first quick charging working signal and closes a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request;
judging whether a first quick charging working signal fed back by the power supply terminal is received within a preset time;
if so, sending a battery state to the power supply terminal in real time through a communication channel corresponding to a first quick charge in the charging cable, so that the power supply terminal adjusts the charging voltage and the charging current in the first quick charge in real time according to the received battery state;
if not, judging whether the number of times of continuously sending the first quick charging request reaches a preset number;
and if the number of times of continuously sending the first quick charging request does not reach the preset number, returning to the step of sending the first quick charging request to the power supply terminal through the communication channel corresponding to the first quick charging in the charging cable.
3. The charging control method according to claim 1 or 2, wherein the step of sending a second fast charging request or a normal charging request to the power supply terminal through a communication channel corresponding to a second fast charging in the charging cable, so that the power supply terminal correspondingly performs the second fast charging or the normal charging according to the received second fast charging request or the normal charging request, and closes the communication channel corresponding to the first fast charging in the charging cable comprises:
judging whether the battery state meets a preset state corresponding to the second quick charge;
if so, sending a second quick-charging request to the power supply terminal through a communication channel corresponding to a second quick-charging in the charging cable, so that the power supply terminal performs second quick-charging according to the received second quick-charging request and closes the communication channel corresponding to the first quick-charging in the charging cable;
if not, sending a common charging request to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, so that the power supply terminal performs common charging and closes the communication channel corresponding to the first quick charging in the charging cable according to the received common charging request.
4. The charging control method according to claim 3, wherein the step of obtaining the battery status of the terminal to be charged after detecting that the voltage value of the VBUS pin of the charging cable connected to the terminal to be charged reaches a preset voltage value comprises:
after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value, acquiring the battery state of the terminal to be charged, and receiving at least one second quick-charging power output mode sent by the power supply terminal through a communication channel corresponding to a second quick-charging in the charging cable, wherein the power output mode comprises charging voltage and charging current;
the step of sending a second fast charging request through a communication channel corresponding to a second fast charging in the charging cable so that the power supply terminal performs the second fast charging according to the received second fast charging request comprises:
selecting a second fast-charging power output mode from the received second fast-charging power output modes;
and sending a second quick charging request comprising the selected output power mode to the power supply terminal through a communication channel corresponding to the second quick charging in the charging cable, so that the power supply terminal performs second quick charging on the terminal to be charged according to the charging current and the charging voltage in the selected output power mode.
5. A charging control method is applied to a power supply terminal and is characterized by comprising the following steps:
judging whether a pull-down resistor of the terminal to be charged is detected;
when the pull-down resistor of the terminal to be charged is detected, outputting a preset voltage value on a VBUS pin of a charging cable connected with the power supply terminal;
monitoring whether a first quick charging request sent by the terminal to be charged through a communication channel corresponding to first quick charging in the charging cable is received;
monitoring whether a second quick charging request or a common charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received;
if a first quick charging request sent by the terminal to be charged through a communication channel corresponding to a first quick charging in the charging cable is received, performing first quick charging on the terminal to be charged and closing a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request;
if a second quick charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received, performing second quick charging on the terminal to be charged correspondingly and closing the communication channel corresponding to first quick charging in the charging cable according to the received second quick charging request;
and if a common charging request sent by the terminal to be charged through a communication channel corresponding to the second quick charge in the charging cable is received, performing common charging on the terminal to be charged correspondingly and closing the communication channel corresponding to the first quick charge in the charging cable according to the received common charging request.
6. The charging control method according to claim 5, wherein the steps of performing first fast charging on the terminal to be charged and closing a communication channel corresponding to a second fast charging in the charging cable according to the received first fast charging request include:
according to the received first quick charging request, closing a communication channel corresponding to a second quick charging in the charging cable, and sending a first quick charging working signal to the terminal to be charged through a communication channel corresponding to a first quick charging in the charging cable, so that the terminal to be charged feeds back the battery state in real time through the communication channel corresponding to the first quick charging in the charging cable after receiving the first quick charging working signal;
and adjusting the charging voltage and the charging current of the first quick charge in real time according to the received battery state, and charging the terminal to be charged according to the adjusted charging voltage and charging current of the first quick charge.
7. The charge control method according to claim 5 or 6, wherein the step of determining whether the pull-down resistance of the terminal to be charged is detected further comprises:
when a pull-down resistor of the terminal to be charged is detected, sending at least one second fast-charging output power mode to the terminal to be charged through a communication channel corresponding to a second fast-charging in the charging cable, wherein the output power mode comprises a charging voltage and a charging current;
if a second quick-charging request sent by the terminal to be charged through a communication channel corresponding to second quick-charging in the charging cable is received, the steps of correspondingly performing second quick-charging on the terminal to be charged and closing the communication channel corresponding to first quick-charging in the charging cable according to the received second quick-charging request comprise:
and if a second quick charging request comprising an output power mode and sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received, carrying out second quick charging on the terminal to be charged according to the received charging voltage and charging current in the output power mode, and closing the communication channel corresponding to first quick charging in the charging cable.
8. A charging control system is applied to a terminal to be charged, and is characterized by comprising:
the first acquisition module is used for acquiring the battery state of the terminal to be charged after detecting that the voltage value of a VBUS pin of a charging cable connected to the terminal to be charged reaches a preset voltage value;
the first judging module is used for judging whether the battery state meets a preset state corresponding to the first quick charge;
the first sending module is used for sending a first quick charging request to the power supply terminal through a communication channel corresponding to a first quick charging in the charging cable if the charging cable is in the charging cable state, so that the power supply terminal performs first quick charging according to the received first quick charging request and closes a communication channel corresponding to a second quick charging in the charging cable;
and the second sending module is used for sending a second quick-charging request or a common charging request to the power supply terminal through a communication channel corresponding to the second quick-charging in the charging cable if the charging cable is not in the charging cable, so that the power supply terminal correspondingly carries out second quick-charging or common charging according to the received second quick-charging request or common charging request and closes the communication channel corresponding to the first quick-charging in the charging cable.
9. A charging control system is applied to a power supply terminal, and is characterized by comprising:
the second judgment module is used for judging whether the pull-down resistor of the terminal to be charged is detected or not;
the output module is used for outputting a preset voltage value on a VBUS pin of a charging cable connected with the power supply terminal when the pull-down resistor of the terminal to be charged is detected;
the first monitoring module is used for monitoring whether a first quick charging request sent by the terminal to be charged through a communication channel corresponding to first quick charging in the charging cable is received;
the second monitoring module is used for monitoring whether a second quick charging request or a common charging request sent by the terminal to be charged through a communication channel corresponding to second quick charging in the charging cable is received;
the first charging module is used for performing first quick charging on the terminal to be charged and closing a communication channel corresponding to a second quick charging in the charging cable according to the received first quick charging request if the first quick charging request sent by the terminal to be charged through the communication channel corresponding to the first quick charging in the charging cable is received;
the second charging module is used for correspondingly performing second quick charging on the terminal to be charged and closing the communication channel corresponding to the first quick charging in the charging cable according to the received second quick charging request if the second quick charging request sent by the terminal to be charged through the communication channel corresponding to the second quick charging in the charging cable is received;
and the third charging module is used for carrying out common charging on the terminal to be charged correspondingly and closing the communication channel corresponding to the first quick charge in the charging cable according to the received common charging request if the common charging request sent by the terminal to be charged through the communication channel corresponding to the second quick charge in the charging cable is received.
10. A terminal, characterized in that the terminal comprises a memory, a processor and a charging control program stored on the memory and executable on the processor, the charging control program, when executed by the processor, implementing the steps of the charging control method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that a charging control program is stored thereon, which when executed by a processor implements the steps of the charging control method according to any one of claims 1 to 7.
CN202010149408.0A 2020-03-05 2020-03-05 Charging control method, system, terminal and storage medium Pending CN113364070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010149408.0A CN113364070A (en) 2020-03-05 2020-03-05 Charging control method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010149408.0A CN113364070A (en) 2020-03-05 2020-03-05 Charging control method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113364070A true CN113364070A (en) 2021-09-07

Family

ID=77523786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010149408.0A Pending CN113364070A (en) 2020-03-05 2020-03-05 Charging control method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113364070A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703423A (en) * 2016-01-22 2016-06-22 珠海市魅族科技有限公司 Charging control method, charging equipment, and charging system
CN106911157A (en) * 2017-02-28 2017-06-30 深圳罗马仕科技有限公司 Line, fast charging system are filled soon and fill method soon
CN107231013A (en) * 2016-05-24 2017-10-03 华为技术有限公司 A kind of method of charging, terminal, charger and system
CN110417069A (en) * 2018-04-28 2019-11-05 华为技术有限公司 Charging equipment and USB cable and charging system
CN110729792A (en) * 2019-10-30 2020-01-24 深圳市沃特沃德股份有限公司 Charging method, charging device, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703423A (en) * 2016-01-22 2016-06-22 珠海市魅族科技有限公司 Charging control method, charging equipment, and charging system
CN107231013A (en) * 2016-05-24 2017-10-03 华为技术有限公司 A kind of method of charging, terminal, charger and system
CN106911157A (en) * 2017-02-28 2017-06-30 深圳罗马仕科技有限公司 Line, fast charging system are filled soon and fill method soon
CN110417069A (en) * 2018-04-28 2019-11-05 华为技术有限公司 Charging equipment and USB cable and charging system
CN110729792A (en) * 2019-10-30 2020-01-24 深圳市沃特沃德股份有限公司 Charging method, charging device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
AU2015246085B2 (en) Battery charging method and electronic device
CN104967200B (en) A kind of fast charge method and mobile terminal
CN104701937B (en) charging method, terminal device and adapter
TWI498740B (en) Usb charging system and method thereof
US9647475B2 (en) Charger, terminal, charging system, and charging control method
CN104135057B (en) terminal, charger and charging method
CN104682458A (en) Charging control device, system, charging chip and user terminal
CN109888885A (en) Charge control method, device, storage medium and electronic equipment
CN111163388B (en) Management method and device for charging path of Bluetooth headset and readable storage medium
CN105576723A (en) Intelligent terminal battery charging management apparatus and method
CN112688373A (en) Charging method and device and data line
WO2021027882A1 (en) Charging management system, method, and apparatus, and storage medium
CN109861038B (en) USB connection port capable of automatically switching connection mode and control method thereof
US9252618B2 (en) Terminals, terminal systems and charging/discharging methods thereof
CN105845998A (en) Display method of charged state and terminal
CN113364070A (en) Charging control method, system, terminal and storage medium
CN111381181A (en) Quick charging and quick discharging test device for mobile power supply and quick charging and quick discharging test method
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
CN112350393A (en) Charging method, terminal and storage medium
US11482874B2 (en) Method for charging battery, terminal and computer storage medium
EP2852021B1 (en) Charging circuit and control method therefor
CN115586828A (en) USB load equipment access identification circuit and method and power supply system
CN105281406A (en) Vehicle-mounted adaptive optimization power supply apparatus
CN113672067B (en) Lightning docking station and configuration device
CN110518671B (en) Charger and discharging method 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