WO2015184923A1 - Charging control method, terminal and charger - Google Patents
Charging control method, terminal and charger Download PDFInfo
- Publication number
- WO2015184923A1 WO2015184923A1 PCT/CN2015/076325 CN2015076325W WO2015184923A1 WO 2015184923 A1 WO2015184923 A1 WO 2015184923A1 CN 2015076325 W CN2015076325 W CN 2015076325W WO 2015184923 A1 WO2015184923 A1 WO 2015184923A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- charging
- charger
- terminal
- charging current
- bias voltage
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/02—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters
- H02J7/04—Regulation of charging current or voltage
Definitions
- This paper relates to the field of charging technology, and in particular, to a charging control method, a terminal, and a charger.
- the main technical problem to be solved by the present invention is to provide a charging control method, a terminal and a charger to solve the technical problem that the user has a safety hazard when charging with a non-standard charger.
- a charging control method is applied to a terminal, including the following steps:
- the terminal acquires a rated charging current value of the charger according to the electrical signal
- the terminal sets a maximum charging current that the terminal allows the charger to input according to the rated charging current value and a maximum charging current value of the terminal.
- the step of setting the maximum charging current that the terminal allows the charger to input according to the rated charging current value and the maximum charging current value of the terminal includes:
- the electrical signal comprises: a bias voltage signal.
- the step of acquiring the rated charging current value of the charger according to the electrical signal includes:
- the step of receiving the electrical signal transmitted by the charger includes:
- the bias voltage signal output by the charging plug is received through the charging interface.
- the step of receiving the bias voltage signal output by the charging plug through the charging interface includes:
- a charging control method, applied to a charger includes the following steps:
- the charger generates an electrical signal for the terminal to acquire a rated charging current of the charger
- the charger After the charger is connected to the terminal, the charger transmits the electrical signal to the terminal.
- the electrical signal comprises: a bias voltage signal corresponding to the rated charging current.
- the step of the charger generating an electrical signal for the terminal to acquire the rated charging current of the charger includes:
- a circuit for defining the rated charging current in the charger generates the rated charging current and generates a bias voltage signal corresponding to the rated charging current.
- the step of the charger transmitting the electrical signal to the terminal includes:
- the charger After the charging plug of the charger is connected to the charging interface of the terminal, the charger transmits the bias voltage signal to the charging interface through the charging plug.
- the step of transmitting the bias voltage signal to the charging interface by using the charging plug includes:
- the bias voltage signal is transmitted through a first data pin in the USB charging plug to a second data pin of the USB charging interface that is correspondingly coupled to the first data pin.
- a terminal includes: a signal receiving module and a processor, wherein
- the signal receiving module is configured to: after the terminal is connected to the charger, receive an electrical signal transmitted by the charger;
- the processor is configured to: obtain a rated charging current value of the charger according to the electrical signal; and set, according to the rated charging current value and a maximum charging current value of the terminal, the terminal to allow the charger to input Maximum charging current.
- a charger includes: a signal generation module and a signal transmission module, wherein
- the signal generating module is configured to: generate an electrical signal for the terminal to acquire a rated charging current of the charger;
- the signal transmission module is configured to transmit the electrical signal to the terminal after the charger is connected to the terminal.
- the signal generating module includes a current defining circuit for defining the rated charging current
- the transmitting module includes a charging plug
- the current definition circuit is configured to generate the rated charging current and generate a bias voltage signal corresponding to the rated charging current
- the charging plug is configured to transmit the bias voltage signal to the charging interface after being connected to a charging interface of the terminal.
- the charging plug is a USB charging plug
- the USB charging plug is configured to transmit the bias voltage signal to the USB charging interface and the first data through a first data pin in the USB charging plug after being connected to the USB charging interface of the terminal
- the pin corresponds to the second data pin of the connection.
- the embodiment of the present invention provides a charging control method, a terminal, and a charger.
- the charging control method of the technical solution of the present invention is applied to a terminal, including: receiving power transmitted by the charger after the charger is connected to the terminal. a signal; obtaining a rated charging current value of the charger according to the electrical signal; setting a maximum charging current that the terminal allows the charger to input according to the rated charging current value and a maximum charging current value of the terminal;
- the method of the technical solution can comprehensively consider the rated charging current value of the charger and the maximum charging current value of the terminal to set the maximum charging current that the terminal allows the charger to input, and can be different chargers according to different rated charging currents.
- the adaptive adjustment of the charging current improves the safety of the charging process and solves the technical problem that the user has a safety hazard when charging with a non-standard charger.
- the method of the technical solution of the present invention selects a smaller current value of the rated charging current value and the maximum charging current value of the terminal as the maximum allowable charging current value of the terminal; thus, when the rated charging current value of the charger is greater than the maximum charging current of the terminal When the value is used, the charging current corresponding to the maximum charging current value of the terminal can be used for charging, thereby avoiding damage of the terminal caused by excessive rated charging current; when the rated charging current value of the charger is less than the maximum charging current value of the terminal, charging can be adopted.
- the current corresponding to the rated charging current value of the device is charged to avoid damage to the charger caused by the charger being in a super rated power state.
- FIG. 1 is a schematic flowchart of a charging control method according to Embodiment 1 of the present invention.
- FIG. 2 is a schematic flowchart of a charging control method according to Embodiment 2 of the present invention.
- FIG. 3 is a schematic structural diagram of a charging control apparatus according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic structural diagram of another charging control apparatus according to Embodiment 3 of the present invention.
- FIG. 5 is a schematic diagram of an ADC converter according to Embodiment 3 of the present invention.
- FIG. 6 is a schematic structural diagram of a charger according to Embodiment 4 of the present invention.
- FIG. 7 is a schematic structural diagram of another charger according to Embodiment 4 of the present invention.
- FIG. 8 is a schematic structural diagram of a resistor divider circuit according to Embodiment 4 of the present invention.
- FIG. 9 is a schematic flowchart of providing charging control of a terminal according to Embodiment 4 of the present invention.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- This embodiment provides a charging control method, which is applied to a terminal, as shown in FIG. 1 , and includes the following steps:
- Step 101 Receive an electrical signal transmitted by the charger after the charger is connected to the terminal.
- the embodiment can generate an electrical signal on the charger side to transmit to the terminal so that the terminal can obtain charging according to the electrical signal.
- the rated charging current value of the device can be generated.
- the electrical signals in this embodiment may include: current signals, voltage signals, or other forms of electrical signals.
- the electrical signal in this embodiment may include: a bias voltage signal. Specifically, a bias voltage corresponding to the rated charging current of the charger may be generated and transmitted to the terminal on the charger side, so that the terminal may be biased according to the bias. The voltage signal is set to obtain the rated charging current value of the current charging.
- the charger In actual charging, the charger is generally connected to the charging interface of the terminal through a charging plug, which may be a charging plug of the charger itself or a charging plug of a charging cable connected to the charging plug; it will be charged when charging the terminal.
- the plug is inserted into the charging interface of the terminal; therefore, this embodiment
- the charging voltage output of the charging plug can be received through the charging interface of the terminal, that is, the generated bias voltage signal is transmitted to the charging plug on the charger side, and then the charging plug is biased after being inserted into the charging interface.
- the voltage signal is transmitted from the charging plug to the charging interface, and the terminal receives the bias voltage transmitted by the charger.
- the charging plug can be a commonly used USB charging plug, and the charging interface can be a commonly used USB charging interface; and when charging by using the USB interface and the plug, the data for transmitting data in the general USB plug and the interface is generally used.
- the pins generally pins 2 and 3
- the terminals are only charged by the charging pins (generally pins 1 and 4); therefore, the present embodiment can transmit the bias voltage through the data pins.
- the signal specifically, on the charger side, transmits the bias voltage signal to the data pin in the USB plug.
- the USB pin and the data pin in the interface are also connected, and the bias voltage is USB.
- the data pin in the plug is transmitted to the corresponding connected data pin of the USB interface, and the terminal receives the bias voltage.
- the process of receiving the bias voltage signal output by the charging plug through the charging interface in this step may include: receiving, by the first data pin in the USB interface, the USB plug corresponding to the first data pin The bias voltage signal output by the connected second data pin.
- a data pin can be used to transmit the bias voltage, and two data pins can be used to transmit the bias voltage.
- Step 102 Acquire a rated charging current value of the charger according to the electrical signal.
- the step may specifically include:
- the chargers with different rated charging currents can output different bias voltage signals to the terminal, so that the terminal can obtain the rated charging of the current charger according to the corresponding relationship between the preset bias voltage and the rated charging current. Current value.
- the correspondence between the bias voltage value and the rated charging current value in this step may be presented in a tabular form, that is, a bias voltage-rated charging current mapping table. After the terminal obtains the bias voltage value, the corresponding rated charging current value is obtained by searching the bias voltage-charging current map.
- the process of obtaining the bias voltage value corresponding to the bias voltage signal in this step may include:
- an ADC analog-to-digital converter
- an ADC analog-to-digital converter
- Step 103 Set a maximum charging current that the terminal allows the charger to input according to the rated charging current value and the maximum charging current value of the terminal.
- This step may specifically include:
- the method of this embodiment can comprehensively consider the rated charging current value of the charger and the maximum charging current value of the terminal to determine the maximum allowable charging current value, that is, select the smaller current value of the two as the maximum allowable charging current value of the terminal;
- the charging current corresponding to the maximum charging current value of the terminal may be used for charging, thereby avoiding damage of the terminal caused by excessive rated charging current;
- the charging control method of the embodiment can be used according to different ratings.
- the charging current is a different charger, adaptively adjusts the charging current, improves the safety of the charging process, and solves the technical problem that the user has a safety hazard when charging with a non-standard charger.
- Embodiment 2 is a diagrammatic representation of Embodiment 1:
- This embodiment provides a charging control method, which is applied to the charger side, as shown in FIG. 2, and includes the following steps:
- Step 201 Generate an electrical signal for the terminal to acquire the rated charging current of the charger in the charger.
- the embodiment may generate a power for the terminal to obtain the rated charging current of the charger.
- the signal is such that the terminal can obtain the current charging rated charging current value according to the bias voltage.
- the step specifically includes: generating a bias voltage signal corresponding to the rated charging current of the charger in the charger.
- a circuit for defining the rated charging current may be provided in the charger, the circuit generating a rated charging current of the charger and generating a bias voltage signal corresponding to the rated charging current.
- a voltage dividing circuit is added, and the current of the voltage dividing circuit is the same as the rated charging current of the charger, and the bias voltage of the resistor in the voltage dividing circuit is selected as a bias voltage signal for the terminal to obtain the rated charging current value of the charger. .
- Step 202 transmit the electrical signal to the terminal after the charger is connected to the terminal.
- the method of the embodiment may transmit the bias voltage signal to the charging interface by the charging plug.
- the bias voltage signal can be transmitted to the charging plug.
- the bias voltage signal is transmitted from the charging plug to the charging interface, and the terminal receives the bias voltage signal.
- the charging interface is USB charging
- the step of transmitting the bias voltage signal to the charging interface by using the charging plug in the embodiment includes: transmitting the bias voltage signal to the USB through a first data pin in the USB charging plug a second data pin of the charging interface corresponding to the first data pin. Specifically, the bias voltage is transmitted to the data pin in the USB plug, and after the plug is connected to the interface, the bias voltage is transmitted by the data pin to the corresponding connected data pin of the interface.
- Embodiment 3 is a diagrammatic representation of Embodiment 3
- this embodiment provides a terminal, including: a signal receiving module 301 and a processor 302;
- the signal receiving module 301 is configured to: receive an electrical signal transmitted by the charger after being connected to the charger;
- the processor 302 is configured to:
- the signal receiving module 301 in this embodiment may be a charging interface of the terminal. After the charging interface is connected to the charging plug of the charger, the electrical signal transmitted by the charging plug is received and then transmitted to the processor.
- the electrical signal in this embodiment may include a bias voltage signal, wherein the processor 302 is configured to:
- the method for obtaining the bias voltage value in the embodiment may be: performing analog-to-digital conversion on the bias voltage signal to obtain the bias voltage value; performing analog-to-digital conversion directly by the processor, or A dedicated ADC converter performs an analog-to-digital conversion of the bias voltage signal, and the processor then obtains the bias voltage value from the ADC converter.
- the terminal includes: a charging interface module 401, an ADC converter 402, and a processor 403;
- the charging interface module 401 receives the bias voltage signal transmitted by the charging plug after being connected to the charging plug of the charger, and transmits the bias voltage signal to the ADC converter;
- the ADC converter 402 performs analog-to-digital conversion on the bias voltage signal to generate a digital signal
- the processor 403 collects the bias voltage value from the ADC converter, and then according to the bias voltage value, the preset bias voltage, and the rated charging current. Correlating the current charging current of the current charger; then comparing the rated charging current value with the maximum charging current value of the terminal, and selecting a smaller charging current value of the two charging current values as the maximum allowable of the terminal a charging current value; finally, setting a maximum charging current that the terminal allows the charger to input according to the maximum allowable charging current value.
- FIG. 5 which is a schematic diagram of an ADC converter 402
- a bias voltage signal can be input to the ADC input terminal Vin to obtain a bias voltage value through ADC conversion.
- the bias voltage signal can be transmitted using the data pin in the USB charging interface and the USB plug.
- the data pin in the USB charging interface can be connected to the input of the ADC converter.
- Embodiment 4 is a diagrammatic representation of Embodiment 4:
- this embodiment provides a charger, comprising: a signal generating module 601 and a signal transmission module 602;
- the signal generating module 601 is configured to: generate an electrical signal for the terminal to acquire a rated charging current of the charger;
- the transmission module 602 is configured to transmit the electrical signal to the terminal after the charger is connected to the terminal.
- the signal generating module 601 includes: a current defining circuit 6011 configured to define the rated charging current, the transmitting module 602 comprising: a charging plug 6021 of the charger;
- the current definition circuit 6011 is configured to: generate the rated charging current, and generate a bias voltage signal corresponding to the rated charging current;
- the charging plug 6021 is configured to transmit the bias voltage signal to the charging interface after being connected to the charging interface of the terminal.
- the charging plug 6021 can be disposed on the charger body, or can be connected to the charger body through a charging line.
- the charging plug 6021 is a USB charging plug
- the USB charging plug is configured to: after being connected to the USB charging interface of the terminal, the biasing is performed by using a first data pin in the USB charging plug The set voltage signal is transmitted to a second data pin of the USB charging interface corresponding to the first data pin.
- the current defining circuit 6011 may be a circuit that generates a current having a current value equal to the rated charging current value of the charger, and may generate a bias voltage signal corresponding to the rated charging current.
- it may be a resistor divider circuit, and the resistor divider circuit may include: a resistor unit having one end connected to a reference voltage and the other end grounded; the resistor unit being composed of a plurality of resistors connected in series; the bias voltage For the voltage of the at least one resistor, the current value of the resistor unit is equal to the rated charging current value of the charger, wherein the reference voltage value is equal to the product of the resistance value of the resistor unit and the rated charging current value of the charger, that is, The reference voltage connected to the resistor divider circuit can cause the resistor divider circuit to generate a current equal to the charger's rated charging current value.
- the voltage dividing resistors R1 and R2 are connected in series, one end of R1 is connected to the VREF reference voltage, and one end of R2 is grounded; wherein the bias voltage Vout takes the voltage of R2.
- the correspondence table with the rated charging current is as follows:
- the Vout output shown in Figure 8 can be connected to the D+ pin of the charger USB charging plug, that is, on the data pin, from the D+ pin to the corresponding terminal in the USB charging interface. D+ pin.
- the D+ pin can be connected to the ADC converter shown in Figure 5, so that the terminal side can obtain the bias voltage value, and then obtain the rated charging current value according to the above correspondence table.
- Step 901 After the mobile terminal detects that the charger is inserted, the mobile terminal charging management driver acquires the bias voltage value Vout from the ADC circuit.
- Step 902 The charge management driver obtains the charger rated charging current value according to the bias voltage-charging current map.
- Step 903 The charging driver compares the charging stream value obtained in step 902 with the maximum charging stream value of the mobile terminal itself, and takes the smaller one of the two as the final maximum allowable charging current.
- Step 904 The maximum charging current value obtained by the configuration step 903 is the maximum charging current that the mobile terminal allows the charger to input.
- the embodiment of the invention also discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can perform any of the above charging control methods.
- the embodiment of the invention also discloses a carrier carrying the computer program.
- the embodiment of the invention also discloses a computer program, comprising program instructions, when the program instruction is executed by the charger, so that the charger can perform any of the above charging control methods.
- the embodiment of the invention also discloses a carrier carrying the computer program.
- the charger of the embodiment can achieve the effect of accurately and automatically adapting the charging current under the premise of increasing the cost, and improving the safety of the charging process.
- the charging control method of the technical solution of the present invention can solve the technical problem that the user has a safety hazard when charging with a non-standard charger. Therefore, the present invention has strong industrial applicability.
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
A charging control method, a terminal and a charger. The charging control method is applicable to a terminal and comprises: after a charger is connected to the terminal, receiving an electrical signal transmitted by the charger; acquiring a rated charging current value of the charger according to the electrical signal; and setting, according to the rated charging current value and a maximum charging current value of the terminal, a maximum charging current that the terminal allows the charger to input. The charging control method can solve the technical problem of potential safety hazard when a user uses a non-standard charger for charging.
Description
本文涉及充电技术领域,尤其涉及一种充电控制方法、终端和充电器。This paper relates to the field of charging technology, and in particular, to a charging control method, a terminal, and a charger.
在智能移动终端被广泛应用的今天,人手平均两三个智能移动终端已经非常普遍,使用各式各样的充电器,充电器混用的情况也很常见,使用非标配充电器充电会存在一些潜在安全隐患:如果非标配的充电器输出电流过高,移动终端可能存在过充损坏的风险。可见用户在使用非标配充电器充电时存在安全隐患。Today, smart mobile terminals are widely used. It is very common for two or three smart mobile terminals to be used. It is common to use a variety of chargers and chargers. There are some charging devices that use non-standard chargers. Potential safety hazard: If the non-standard charger output current is too high, the mobile terminal may be at risk of overcharge damage. It can be seen that the user has a safety hazard when charging with a non-standard charger.
发明内容Summary of the invention
本发明要解决的主要技术问题是,提供一种充电控制方法、终端和充电器,以解决用户在使用非标配充电器充电时存在安全隐患的技术问题。The main technical problem to be solved by the present invention is to provide a charging control method, a terminal and a charger to solve the technical problem that the user has a safety hazard when charging with a non-standard charger.
为解决上述技术问题,采用如下技术方案:In order to solve the above technical problems, the following technical solutions are adopted:
一种充电控制方法,应用于终端,包括如下步骤:A charging control method is applied to a terminal, including the following steps:
所述终端与充电器连接之后,接收所述充电器传输的电信号;After the terminal is connected to the charger, receiving an electrical signal transmitted by the charger;
所述终端根据所述电信号获取所述充电器的额定充电电流值;The terminal acquires a rated charging current value of the charger according to the electrical signal;
所述终端根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流。The terminal sets a maximum charging current that the terminal allows the charger to input according to the rated charging current value and a maximum charging current value of the terminal.
可选地,所述根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流的步骤包括:Optionally, the step of setting the maximum charging current that the terminal allows the charger to input according to the rated charging current value and the maximum charging current value of the terminal includes:
比较所述额定充电电流值和所述终端的最大充电电流值,并选取两个充电电流值中较小的充电电流值作为所述终端的最大允许充电电流值;Comparing the rated charging current value and the maximum charging current value of the terminal, and selecting a smaller charging current value of the two charging current values as the maximum allowable charging current value of the terminal;
根据所述最大允许充电电流值设置所述终端允许所述充电器输入的最大充电电流。
And setting a maximum charging current that the terminal allows the charger to input according to the maximum allowable charging current value.
可选地,所述电信号包括:偏置电压信号。Optionally, the electrical signal comprises: a bias voltage signal.
可选地,所述根据所述电信号获取所述充电器的额定充电电流值的步骤包括:Optionally, the step of acquiring the rated charging current value of the charger according to the electrical signal includes:
获取所述偏置电压信号对应的偏置电压值;Obtaining a bias voltage value corresponding to the bias voltage signal;
根据所述偏置电压值、预设偏置电压与额定充电电流的对应关系获取所述充电器的额定充电电流值。And obtaining a rated charging current value of the charger according to the bias voltage value, a preset bias voltage, and a rated charging current.
可选地,所述终端与充电器连接之后,接收所述充电器传输的电信号的步骤包括:Optionally, after the terminal is connected to the charger, the step of receiving the electrical signal transmitted by the charger includes:
所述终端的充电接口与所述充电器的充电插头连接之后,通过所述充电接口接收所述充电插头输出的偏置电压信号。After the charging interface of the terminal is connected to the charging plug of the charger, the bias voltage signal output by the charging plug is received through the charging interface.
可选地,当所述充电插头为USB充电插头、所述充电接口为USB充电接口时,所述通过所述充电接口接收所述充电插头输出的偏置电压信号的步骤包括:Optionally, when the charging plug is a USB charging plug and the charging interface is a USB charging interface, the step of receiving the bias voltage signal output by the charging plug through the charging interface includes:
通过USB接口中第一数据引脚接收所述USB插头中与所述第一数据引脚对应连接的第二数据引脚输出的偏置电压信号。Receiving, by the first data pin in the USB interface, a bias voltage signal output by the second data pin corresponding to the first data pin in the USB plug.
一种充电控制方法,应用于充电器,包括如下步骤:A charging control method, applied to a charger, includes the following steps:
所述充电器生成用于供终端获取所述充电器的额定充电电流的电信号;The charger generates an electrical signal for the terminal to acquire a rated charging current of the charger;
所述充电器与所述终端连接之后,所述充电器将所述电信号传输给所述终端。After the charger is connected to the terminal, the charger transmits the electrical signal to the terminal.
可选地,所述电信号包括:与所述额定充电电流对应的偏置电压信号。Optionally, the electrical signal comprises: a bias voltage signal corresponding to the rated charging current.
可选地,所述充电器生成用于供终端获取所述充电器的额定充电电流的电信号的步骤包括:Optionally, the step of the charger generating an electrical signal for the terminal to acquire the rated charging current of the charger includes:
在所述充电器内中用于定义所述额定充电电流的电路生成所述额定充电电流,并产生与所述额定充电电流对应的偏置电压信号。A circuit for defining the rated charging current in the charger generates the rated charging current and generates a bias voltage signal corresponding to the rated charging current.
可选地,所述充电器与所述终端连接之后,所述充电器将所述电信号传输给所述终端的步骤包括:
Optionally, after the charger is connected to the terminal, the step of the charger transmitting the electrical signal to the terminal includes:
所述充电器的充电插头与所述终端的充电接口连接后,所述充电器通过所述充电插头将所述偏置电压信号传输至所述充电接口。After the charging plug of the charger is connected to the charging interface of the terminal, the charger transmits the bias voltage signal to the charging interface through the charging plug.
可选地,当所述充电插头为USB充电插头、所述充电接口为USB充电接口时,所述通过所述充电插头将所述偏置电压信号传输至所述充电接口的步骤包括:Optionally, when the charging plug is a USB charging plug and the charging interface is a USB charging interface, the step of transmitting the bias voltage signal to the charging interface by using the charging plug includes:
通过USB充电插头中的第一数据引脚将所述偏置电压信号传输至USB充电接口中与所述第一数据引脚对应连接的第二数据引脚。The bias voltage signal is transmitted through a first data pin in the USB charging plug to a second data pin of the USB charging interface that is correspondingly coupled to the first data pin.
一种终端,包括:信号接收模块和处理器,其中,A terminal includes: a signal receiving module and a processor, wherein
所述信号接收模块设置成:在所述终端与充电器连接之后,接收所述充电器传输的电信号;The signal receiving module is configured to: after the terminal is connected to the charger, receive an electrical signal transmitted by the charger;
所述处理器设置成:根据所述电信号获取所述充电器的额定充电电流值;根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流。The processor is configured to: obtain a rated charging current value of the charger according to the electrical signal; and set, according to the rated charging current value and a maximum charging current value of the terminal, the terminal to allow the charger to input Maximum charging current.
一种充电器,包括:信号生成模块和信号传输模块,其中A charger includes: a signal generation module and a signal transmission module, wherein
所述信号生成模块设置成:生成用于供终端获取所述充电器的额定充电电流的电信号;The signal generating module is configured to: generate an electrical signal for the terminal to acquire a rated charging current of the charger;
所述信号传输模块设置成:在所述充电器与所述终端连接之后,将所述电信号传输给所述终端。The signal transmission module is configured to transmit the electrical signal to the terminal after the charger is connected to the terminal.
可选地,所述信号生成模块包括用于定义所述额定充电电流的电流定义电路,所述传输模块包括充电插头,其中Optionally, the signal generating module includes a current defining circuit for defining the rated charging current, and the transmitting module includes a charging plug, wherein
所述电流定义电路设置成:生成所述额定充电电流,并产生与所述额定充电电流对应的偏置电压信号;The current definition circuit is configured to generate the rated charging current and generate a bias voltage signal corresponding to the rated charging current;
所述充电插头设置成:在与所述终端的充电接口连接后,将所述偏置电压信号传输至所述充电接口。The charging plug is configured to transmit the bias voltage signal to the charging interface after being connected to a charging interface of the terminal.
可选地,所述充电插头为USB充电插头;
Optionally, the charging plug is a USB charging plug;
所述USB充电插头设置成:在与所述终端的USB充电接口连接后,通过USB充电插头中的第一数据引脚将所述偏置电压信号传输至USB充电接口中与所述第一数据引脚对应连接的第二数据引脚。The USB charging plug is configured to transmit the bias voltage signal to the USB charging interface and the first data through a first data pin in the USB charging plug after being connected to the USB charging interface of the terminal The pin corresponds to the second data pin of the connection.
本发明技术方案的有益效果是:The beneficial effects of the technical solution of the present invention are:
本发明实施例提供了一种充电控制方法、终端和充电器,具体地,本发明技术方案的充电控制方法,应用于终端,包括:在充电器与终端连接之后接收所述充电器传输的电信号;根据所述电信号获取所述充电器的额定充电电流值;根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流;本发明技术方案的方法可以综合考虑充电器的额定充电电流值和终端的最大充电电流值来设置所述终端允许所述充电器输入的最大充电电流,可以根据不同的额定充电电流即不同的充电器,自适应地调整充电电流,提高了充电过程的安全性,解决了用户在使用非标配充电器充电时存在安全隐患的技术问题。The embodiment of the present invention provides a charging control method, a terminal, and a charger. Specifically, the charging control method of the technical solution of the present invention is applied to a terminal, including: receiving power transmitted by the charger after the charger is connected to the terminal. a signal; obtaining a rated charging current value of the charger according to the electrical signal; setting a maximum charging current that the terminal allows the charger to input according to the rated charging current value and a maximum charging current value of the terminal; The method of the technical solution can comprehensively consider the rated charging current value of the charger and the maximum charging current value of the terminal to set the maximum charging current that the terminal allows the charger to input, and can be different chargers according to different rated charging currents. The adaptive adjustment of the charging current improves the safety of the charging process and solves the technical problem that the user has a safety hazard when charging with a non-standard charger.
进一步地,本发明技术方案的方法选取额定充电电流值和终端的最大充电电流值中较小的电流值作为终端最大允许充电电流值;这样当充电器的额定充电电流值大于终端的最大充电电流值时,可采用终端的最大充电电流值对应的充电电流进行充电,避免了额定充电电流过大导致终端的损坏;当充电器的额定充电电流值小于终端的最大充电电流值时,可采用充电器的额定充电电流值对应的电流进行充电,避免了充电器处于超额定功率状态导致充电器的损坏。Further, the method of the technical solution of the present invention selects a smaller current value of the rated charging current value and the maximum charging current value of the terminal as the maximum allowable charging current value of the terminal; thus, when the rated charging current value of the charger is greater than the maximum charging current of the terminal When the value is used, the charging current corresponding to the maximum charging current value of the terminal can be used for charging, thereby avoiding damage of the terminal caused by excessive rated charging current; when the rated charging current value of the charger is less than the maximum charging current value of the terminal, charging can be adopted. The current corresponding to the rated charging current value of the device is charged to avoid damage to the charger caused by the charger being in a super rated power state.
附图概述BRIEF abstract
图1为本发明实施例一提供的一种充电控制方法的流程示意图;1 is a schematic flowchart of a charging control method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种充电控制方法的流程示意图;2 is a schematic flowchart of a charging control method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种充电控制装置的结构示意图;3 is a schematic structural diagram of a charging control apparatus according to Embodiment 3 of the present invention;
图4为本发明实施例三提供的另一种充电控制装置的结构示意图;4 is a schematic structural diagram of another charging control apparatus according to Embodiment 3 of the present invention;
图5为本发明实施例三提供的一种ADC转换器的示意图;
FIG. 5 is a schematic diagram of an ADC converter according to Embodiment 3 of the present invention; FIG.
图6为本发明实施例四提供的一种充电器的结构示意图;FIG. 6 is a schematic structural diagram of a charger according to Embodiment 4 of the present invention; FIG.
图7为本发明实施例四提供的另一种充电器的结构示意图FIG. 7 is a schematic structural diagram of another charger according to Embodiment 4 of the present invention;
图8为本发明实施例四提供一种电阻分压电路的结构示意图;FIG. 8 is a schematic structural diagram of a resistor divider circuit according to Embodiment 4 of the present invention; FIG.
图9为本发明实施例四提供一种终端进行充电控制的流程示意图。FIG. 9 is a schematic flowchart of providing charging control of a terminal according to Embodiment 4 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
考虑到用户在使用非标配充电器充电时存在安全隐患,如果充电器输出电流高于移动终端最大设计输入电流,移动终端又没做相关限制,那么移动终端有过充被损坏的风险;如果充电器输出电流低于移动终端最大设计输入电流,充电器有可能因为长时间工作在超过额定功率的状态下,最终导致充电损坏,甚至于发生火灾。本实施例提供了一种充电控制方法,应用于终端,如图1所示,包括如下步骤:Considering that the user has a safety hazard when charging with a non-standard charger, if the output current of the charger is higher than the maximum designed input current of the mobile terminal, and the mobile terminal does not make relevant restrictions, the mobile terminal has the risk of overcharging being damaged; The output current of the charger is lower than the maximum designed input current of the mobile terminal. The charger may be in a state of exceeding the rated power for a long time, which may eventually cause charging damage or even a fire. This embodiment provides a charging control method, which is applied to a terminal, as shown in FIG. 1 , and includes the following steps:
步骤101:在充电器与终端连接之后接收所述充电器传输的电信号。Step 101: Receive an electrical signal transmitted by the charger after the charger is connected to the terminal.
由于不同的充电器具有不同的额定充电电流,为了能够让终端了解当前充电器的额定充电电流值,本实施例可以在充电器侧生成一个电信号传输给终端使得终端可以根据该电信号获取充电器的额定充电电流值。Since different chargers have different rated charging currents, in order to enable the terminal to know the current charging current value of the current charger, the embodiment can generate an electrical signal on the charger side to transmit to the terminal so that the terminal can obtain charging according to the electrical signal. The rated charging current value of the device.
本实施例中的电信号可以包括:电流信号、电压信号或者其他形式的电信号。可选地,本实施例中的电信号可以包括:偏置电压信号,具体地,在充电器侧可以生成一个与充电器额定充电电流对应的偏置电压传输给终端,以使得终端可以根据偏置电压信号来获取当前充电的额定充电电流值。The electrical signals in this embodiment may include: current signals, voltage signals, or other forms of electrical signals. Optionally, the electrical signal in this embodiment may include: a bias voltage signal. Specifically, a bias voltage corresponding to the rated charging current of the charger may be generated and transmitted to the terminal on the charger side, so that the terminal may be biased according to the bias. The voltage signal is set to obtain the rated charging current value of the current charging.
在实际充电中一般充电器通过充电插头与终端的充电接口连接,该充电插头可以是充电器自身的充电插头,也可以为与充电插头连接的充电线的充电插头;在给终端充电时将充电插头插入终端的充电接口;因此,本实施例
方法中可以通过终端的充电接口来接收充电插头输出的偏置电压信号,也就是说,在充电器侧将生成的偏置电压信号传输至充电插头,然后在充电插头插入充电接口后,偏置电压信号就由充电插头传输至充电接口,此时终端接收到充电器传输的偏置电压。In actual charging, the charger is generally connected to the charging interface of the terminal through a charging plug, which may be a charging plug of the charger itself or a charging plug of a charging cable connected to the charging plug; it will be charged when charging the terminal. The plug is inserted into the charging interface of the terminal; therefore, this embodiment
In the method, the charging voltage output of the charging plug can be received through the charging interface of the terminal, that is, the generated bias voltage signal is transmitted to the charging plug on the charger side, and then the charging plug is biased after being inserted into the charging interface. The voltage signal is transmitted from the charging plug to the charging interface, and the terminal receives the bias voltage transmitted by the charger.
可选地,本实施例中充电插头可以常用的USB充电插头,充电接口可以为常用的USB充电接口;而在利用USB接口和插头进行充电时,一般USB插头和接口中用于传输数据的数据引脚(一般为2、3号引脚)时闲置的,仅通过充电引脚(一般为1、4号引脚)给终端充电;因此,本实施例可以通过数据引脚来传输偏置电压信号,具体地,在充电器侧,将偏置电压信号传输至USB插头中的数据引脚,在USB插头与接口连接后,USB插头和接口中的数据引脚也连接,偏置电压由USB插头中数据引脚传输至USB接口中对应连接的数据引脚,此时终端接收到偏置电压。Optionally, in this embodiment, the charging plug can be a commonly used USB charging plug, and the charging interface can be a commonly used USB charging interface; and when charging by using the USB interface and the plug, the data for transmitting data in the general USB plug and the interface is generally used. When the pins (generally pins 2 and 3) are idle, the terminals are only charged by the charging pins (generally pins 1 and 4); therefore, the present embodiment can transmit the bias voltage through the data pins. The signal, specifically, on the charger side, transmits the bias voltage signal to the data pin in the USB plug. After the USB plug is connected to the interface, the USB pin and the data pin in the interface are also connected, and the bias voltage is USB. The data pin in the plug is transmitted to the corresponding connected data pin of the USB interface, and the terminal receives the bias voltage.
所以,本步骤中通过所述充电接口接收所述充电插头输出的偏置电压信号的过程可以包括:通过USB接口中第一数据引脚接收所述USB插头中与所述第一数据引脚对应连接的第二数据引脚输出的偏置电压信号。Therefore, the process of receiving the bias voltage signal output by the charging plug through the charging interface in this step may include: receiving, by the first data pin in the USB interface, the USB plug corresponding to the first data pin The bias voltage signal output by the connected second data pin.
本实施中可以选用一个数据引脚来传输偏置电压,可以采用两个数据引脚来传输偏置电压。In this implementation, a data pin can be used to transmit the bias voltage, and two data pins can be used to transmit the bias voltage.
步骤102:根据所述电信号获取所述充电器的额定充电电流值。Step 102: Acquire a rated charging current value of the charger according to the electrical signal.
在电信号包括偏置电压信号的情况,本步骤具体可以包括:In the case that the electrical signal includes a bias voltage signal, the step may specifically include:
获取所述偏置电压对应的偏置电压值;Obtaining a bias voltage value corresponding to the bias voltage;
根据所述偏置电压值、预设偏置电压与额定充电电流的对应关系获取所述充电器的额定充电电流值。And obtaining a rated charging current value of the charger according to the bias voltage value, a preset bias voltage, and a rated charging current.
在本实施例中,对于不同额定充电电流的充电器可输出不同的偏置电压信号给终端,这样终端就可以根据预置的偏置电压与额定充电电流的对应关系获取当前充电器的额定充电电流值。
In this embodiment, the chargers with different rated charging currents can output different bias voltage signals to the terminal, so that the terminal can obtain the rated charging of the current charger according to the corresponding relationship between the preset bias voltage and the rated charging current. Current value.
本步骤中偏置电压值与额定充电电流值的对应关系可以为以表格形式呈现,即偏置电压-额定充电电流映射表。在终端获取偏置电压值后,通过查找偏置电压-充电电流映射表获取对应的额定充电电流值。The correspondence between the bias voltage value and the rated charging current value in this step may be presented in a tabular form, that is, a bias voltage-rated charging current mapping table. After the terminal obtains the bias voltage value, the corresponding rated charging current value is obtained by searching the bias voltage-charging current map.
可选地,本步骤中获取所述偏置电压信号对应的偏置电压值的过程可以包括:Optionally, the process of obtaining the bias voltage value corresponding to the bias voltage signal in this step may include:
对所述偏置电压信号进行模数转换获取所述偏置电压值。Performing analog-to-digital conversion on the bias voltage signal to obtain the bias voltage value.
例如可以采用ADC(模数转换器)将偏置电压转换为数字信号后获取偏置电压信号的大小,即偏置电压值。For example, an ADC (analog-to-digital converter) can be used to convert the bias voltage into a digital signal to obtain the magnitude of the bias voltage signal, that is, the bias voltage value.
步骤103:根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流。Step 103: Set a maximum charging current that the terminal allows the charger to input according to the rated charging current value and the maximum charging current value of the terminal.
本步骤具体可以包括:This step may specifically include:
比较所述额定充电电流值和所述终端的最大充电电流值,并选取两个充电电流值中较小的充电电流值作为所述终端的最大允许充电电流值;Comparing the rated charging current value and the maximum charging current value of the terminal, and selecting a smaller charging current value of the two charging current values as the maximum allowable charging current value of the terminal;
根据所述最大允许充电电流值设置所述终端允许所述充电器输入的最大充电电流。And setting a maximum charging current that the terminal allows the charger to input according to the maximum allowable charging current value.
本实施例方法可以综合考虑充电器的额定充电电流值和终端的最大充电电流值来确定最大允许充电电流值,即选取二者中较小的电流值作为终端最大允许充电电流值;这样当充电器的额定充电电流值大于终端的最大充电电流值时,可采用终端的最大充电电流值对应的充电电流进行充电,避免了额定充电电流过大导致终端的损坏;当充电器的额定充电电流值小于终端的最大充电电流值时,可采用额定充电电流值对应的电流进行充电,避免了充电器处于超额定功率状态导致充电器的损坏;可见应用本实施例的充电控制方法可以根据不同的额定充电电流即不同的充电器,自适应地调整充电电流,提高了充电过程的安全性,解决了用户在使用非标配充电器充电时存在安全隐患的技术问题。
The method of this embodiment can comprehensively consider the rated charging current value of the charger and the maximum charging current value of the terminal to determine the maximum allowable charging current value, that is, select the smaller current value of the two as the maximum allowable charging current value of the terminal; When the rated charging current value of the device is greater than the maximum charging current value of the terminal, the charging current corresponding to the maximum charging current value of the terminal may be used for charging, thereby avoiding damage of the terminal caused by excessive rated charging current; when the rated charging current value of the charger is When the value is less than the maximum charging current of the terminal, the current corresponding to the rated charging current value may be used for charging, thereby avoiding damage of the charger caused by the charger being in a super-rated power state; it can be seen that the charging control method of the embodiment can be used according to different ratings. The charging current is a different charger, adaptively adjusts the charging current, improves the safety of the charging process, and solves the technical problem that the user has a safety hazard when charging with a non-standard charger.
实施例二:Embodiment 2:
本实施例提供了一种充电控制方法,应用于充电器侧,如图2所示,包括如下步骤:This embodiment provides a charging control method, which is applied to the charger side, as shown in FIG. 2, and includes the following steps:
步骤201:在所述充电器内生成用于供终端获取所述充电器的额定充电电流的电信号。Step 201: Generate an electrical signal for the terminal to acquire the rated charging current of the charger in the charger.
由于不同的充电器具有不同的额定充电电流,为了能够让终端了解当前充电器的额定充电电流值,本实施例可以充电器侧生成一个用于供终端获取所述充电器的额定充电电流的电信号,以使得终端可以根据偏置电压来获取当前充电的额定充电电流值。Since different chargers have different rated charging currents, in order to enable the terminal to know the current charging current value of the current charger, the embodiment may generate a power for the terminal to obtain the rated charging current of the charger. The signal is such that the terminal can obtain the current charging rated charging current value according to the bias voltage.
可选地,本步骤具体包括:在充电器内生成与所述充电器的额定充电电流对应的偏置电压信号。Optionally, the step specifically includes: generating a bias voltage signal corresponding to the rated charging current of the charger in the charger.
具体地,可以在充电器内设置一个用于定义所述额定充电电流的电路,该电路生成所述充电器的额定充电电流,并产生与所述额定充电电流对应的偏置电压信号。Specifically, a circuit for defining the rated charging current may be provided in the charger, the circuit generating a rated charging current of the charger and generating a bias voltage signal corresponding to the rated charging current.
例如增加一个分压电路,该分压电路的电流与充电器的额定充电电流相同,选取该分压电路中电阻的偏置电压作为偏置电压信号,以供终端获取充电器的额定充电电流值。For example, a voltage dividing circuit is added, and the current of the voltage dividing circuit is the same as the rated charging current of the charger, and the bias voltage of the resistor in the voltage dividing circuit is selected as a bias voltage signal for the terminal to obtain the rated charging current value of the charger. .
步骤202:在所述充电器与所述终端连接之后将所述电信号传输给所述终端。Step 202: transmit the electrical signal to the terminal after the charger is connected to the terminal.
可选地,在充电器的充电插头与所述终端的充电接口连接后,本实施例方法可以通过所述充电插头将所述偏置电压信号传输至所述充电接口。具体地,可以将偏置电压信号传输至充电插头,在充电插头与充电接口连接后,偏置电压信号由充电插头传输至充电接口,此时终端接收到偏置电压信号。Optionally, after the charging plug of the charger is connected to the charging interface of the terminal, the method of the embodiment may transmit the bias voltage signal to the charging interface by the charging plug. Specifically, the bias voltage signal can be transmitted to the charging plug. After the charging plug is connected to the charging interface, the bias voltage signal is transmitted from the charging plug to the charging interface, and the terminal receives the bias voltage signal.
可选地,当所述充电插头为USB充电插头、所述充电接口为USB充电
接口时,本实施例中通过所述充电插头将所述偏置电压信号传输至所述充电接口的步骤包括:通过USB充电插头中的第一数据引脚将所述偏置电压信号传输至USB充电接口中与所述第一数据引脚对应连接的第二数据引脚。具体地,将偏置电压传输USB插头中的数据引脚,在插头与接口连接后,由数据引脚将偏置电压传输至接口中对应连接的数据引脚。Optionally, when the charging plug is a USB charging plug, the charging interface is USB charging
In the embodiment, the step of transmitting the bias voltage signal to the charging interface by using the charging plug in the embodiment includes: transmitting the bias voltage signal to the USB through a first data pin in the USB charging plug a second data pin of the charging interface corresponding to the first data pin. Specifically, the bias voltage is transmitted to the data pin in the USB plug, and after the plug is connected to the interface, the bias voltage is transmitted by the data pin to the corresponding connected data pin of the interface.
实施例三:Embodiment 3:
如图3所示,本实施例提供了一种终端,包括:信号接收模块301和处理器302;As shown in FIG. 3, this embodiment provides a terminal, including: a signal receiving module 301 and a processor 302;
所述信号接收模块301,设置成:在与充电器连接之后接收所述充电器传输的电信号;The signal receiving module 301 is configured to: receive an electrical signal transmitted by the charger after being connected to the charger;
所述处理器302,设置成:The processor 302 is configured to:
根据所述电信号获取所述充电器的额定充电电流值;Obtaining a rated charging current value of the charger according to the electrical signal;
根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流。And setting a maximum charging current that the terminal allows the charger to input according to the rated charging current value and a maximum charging current value of the terminal.
可选地,本实施例中信号接收模块301可以为终端的充电接口,该充电接口与充电器的充电插头连接之后,接收充电插头传输的电信号,然后传输至处理器。Optionally, the signal receiving module 301 in this embodiment may be a charging interface of the terminal. After the charging interface is connected to the charging plug of the charger, the electrical signal transmitted by the charging plug is received and then transmitted to the processor.
可选地,本实施例中电信号可以包括偏置电压信号,其中处理器302设置成:Optionally, the electrical signal in this embodiment may include a bias voltage signal, wherein the processor 302 is configured to:
获取所述偏置电压信号对应的偏置电压值;Obtaining a bias voltage value corresponding to the bias voltage signal;
根据所述偏置电压值、预设偏置电压与额定充电电流的对应关系获取所述充电器的额定充电电流值。And obtaining a rated charging current value of the charger according to the bias voltage value, a preset bias voltage, and a rated charging current.
在本实施例中获取偏置电压值的方式可以为:对所述偏置电压信号进行模数转换获取所述偏置电压值;可以由处理器直接进行模数转换,也可以由
专门的ADC转换器对偏置电压信号进行模数转换,然后处理器从ADC转换器中获取偏置电压值。The method for obtaining the bias voltage value in the embodiment may be: performing analog-to-digital conversion on the bias voltage signal to obtain the bias voltage value; performing analog-to-digital conversion directly by the processor, or
A dedicated ADC converter performs an analog-to-digital conversion of the bias voltage signal, and the processor then obtains the bias voltage value from the ADC converter.
如图4所示,终端包括:充电接口模块401、ADC转换器402和处理器403;As shown in FIG. 4, the terminal includes: a charging interface module 401, an ADC converter 402, and a processor 403;
充电接口模块401在与充电器的充电插头连接之后接收充电插头传输的偏置电压信号,并传输给ADC转换器;The charging interface module 401 receives the bias voltage signal transmitted by the charging plug after being connected to the charging plug of the charger, and transmits the bias voltage signal to the ADC converter;
ADC转换器402对偏置电压信号进行模数转换生成数字信号,处理器403从ADC转换器中采集偏置电压值,然后根据偏置电压值、预置的偏置电压与额定充电电流的对应关系获取当前充电器的额定充电电流;接着,比较所述额定充电电流值和所述终端的最大充电电流值,并选取两个充电电流值中较小的充电电流值作为所述终端的最大允许充电电流值;最后,根据所述最大允许充电电流值设置所述终端允许所述充电器输入的最大充电电流。The ADC converter 402 performs analog-to-digital conversion on the bias voltage signal to generate a digital signal, and the processor 403 collects the bias voltage value from the ADC converter, and then according to the bias voltage value, the preset bias voltage, and the rated charging current. Correlating the current charging current of the current charger; then comparing the rated charging current value with the maximum charging current value of the terminal, and selecting a smaller charging current value of the two charging current values as the maximum allowable of the terminal a charging current value; finally, setting a maximum charging current that the terminal allows the charger to input according to the maximum allowable charging current value.
如图5所示,为一种ADC转换器402的示意图,偏置电压信号可输入ADC输入端Vin,经过ADC转换获取偏置电压值。As shown in FIG. 5, which is a schematic diagram of an ADC converter 402, a bias voltage signal can be input to the ADC input terminal Vin to obtain a bias voltage value through ADC conversion.
当采用USB插头和接口充电时,可以采用USB充电接口和USB插头中的数据引脚传输偏置电压信号,此时,可以将USB充电接口中的数据引脚与ADC转换器的输入端连接。When charging with a USB plug and interface, the bias voltage signal can be transmitted using the data pin in the USB charging interface and the USB plug. At this time, the data pin in the USB charging interface can be connected to the input of the ADC converter.
实施例四:Embodiment 4:
如图6所示,本实施例提供了一种充电器,包括:信号生成模块601和信号传输模块602;As shown in Figure 6, this embodiment provides a charger, comprising: a signal generating module 601 and a signal transmission module 602;
所述信号生成模块601,设置成:生成用于供终端获取所述充电器的额定充电电流的电信号;The signal generating module 601 is configured to: generate an electrical signal for the terminal to acquire a rated charging current of the charger;
所述传输模块602,设置成:在所述充电器与所述终端连接之后将所述电信号传输给所述终端。
The transmission module 602 is configured to transmit the electrical signal to the terminal after the charger is connected to the terminal.
可选地,如图7所示,所述信号生成模块601包括:设置成定义所述额定充电电流的电流定义电路6011,所述传输模块602包括:所述充电器的充电插头6021;Optionally, as shown in FIG. 7, the signal generating module 601 includes: a current defining circuit 6011 configured to define the rated charging current, the transmitting module 602 comprising: a charging plug 6021 of the charger;
所述电流定义电路6011,设置成:生成所述额定充电电流,并产生与所述额定充电电流对应的偏置电压信号;The current definition circuit 6011 is configured to: generate the rated charging current, and generate a bias voltage signal corresponding to the rated charging current;
所述充电插头6021,设置成:在与所述终端的充电接口连接后,将所述偏置电压信号传输至所述充电接口。The charging plug 6021 is configured to transmit the bias voltage signal to the charging interface after being connected to the charging interface of the terminal.
本实施例中充电插头6021可以设置在充电器本体上,也可以通过充电线与充电器本体连接。In this embodiment, the charging plug 6021 can be disposed on the charger body, or can be connected to the charger body through a charging line.
可选地,所述充电插头6021为USB充电插头,所述USB充电插头,设置成:在与所述终端的USB充电接口连接后,通过USB充电插头中的第一数据引脚将所述偏置电压信号传输至USB充电接口中与所述第一数据引脚对应连接的第二数据引脚。Optionally, the charging plug 6021 is a USB charging plug, and the USB charging plug is configured to: after being connected to the USB charging interface of the terminal, the biasing is performed by using a first data pin in the USB charging plug The set voltage signal is transmitted to a second data pin of the USB charging interface corresponding to the first data pin.
在本实施例中电流定义电路6011可以为产生电流值与充电器额定充电电流值相等的电流,且可产生与所述额定充电电流对应的偏置电压信号的电路。例如可以为一个电阻分压电路,该电阻分压电路可以包括:电阻单元,所述电阻单元一端接参考电压、另一端接地;所述电阻单元由多个串联的电阻组成;所述偏置电压为至少一个所述电阻的电压,所述电阻单元的电流值所述充电器的额定充电电流值相等,其中参考电压值等于电阻单元的阻值和充电器的额定充电电流值之积,也就说,该电阻分压电路接入的参考电压可以使得电阻分压电路产生与充电器额定充电电流值相等的电流。In the present embodiment, the current defining circuit 6011 may be a circuit that generates a current having a current value equal to the rated charging current value of the charger, and may generate a bias voltage signal corresponding to the rated charging current. For example, it may be a resistor divider circuit, and the resistor divider circuit may include: a resistor unit having one end connected to a reference voltage and the other end grounded; the resistor unit being composed of a plurality of resistors connected in series; the bias voltage For the voltage of the at least one resistor, the current value of the resistor unit is equal to the rated charging current value of the charger, wherein the reference voltage value is equal to the product of the resistance value of the resistor unit and the rated charging current value of the charger, that is, The reference voltage connected to the resistor divider circuit can cause the resistor divider circuit to generate a current equal to the charger's rated charging current value.
如图8所示,本实施例中电阻分压电路,由分压电阻R1和R2串联组成,R1一端接入VREF参考电压,R2的一端接地;其中偏置电压Vout取R2的电压。对于不同额定充电电流的充电器,可以选择不同的分压电阻值来生成与额定充电电流对应的偏置电压,其中VREF=(R1+R2)*I,I为充电器的额定充电电
流。我们以常见的充电器的额定充电电流I为500mA,700mA,1000mA和1500mA的充电器为例做说明,参考电压我们取:VREF=5V,通过选取R1和R2的阻值即可得到偏置电压与额定充电电流的对应关系表,如下所示:As shown in FIG. 8, in the resistor divider circuit of the present embodiment, the voltage dividing resistors R1 and R2 are connected in series, one end of R1 is connected to the VREF reference voltage, and one end of R2 is grounded; wherein the bias voltage Vout takes the voltage of R2. For chargers with different rated charging currents, different voltage divider resistor values can be selected to generate a bias voltage corresponding to the rated charging current, where VREF=(R1+R2)*I, I is the rated charging power of the charger.
flow. We take the common charger's rated charging current I as 500mA, 700mA, 1000mA and 1500mA charger as an example. The reference voltage is taken as follows: VREF=5V, the bias voltage can be obtained by selecting the resistance values of R1 and R2. The correspondence table with the rated charging current is as follows:
R1(Kohm)R1 (Kohm) | R2(Kohm)R2 (Kohm) | Vout(V)Vout(V) | |
500mA500mA | 800800 | 200200 | 1.01.0 |
700mA700mA | 700700 | 300300 | 1.51.5 |
1000mA1000mA | 600600 | 400400 | 2.02.0 |
1500mA1500mA | 500500 | 500500 | 2.52.5 |
在通过USB插头和接口充电时,图8所示的Vout输出端可以连接至充电器USB充电插头的D+引脚上,即数据引脚上,由D+引脚传输至终端USB充电接口中对应的D+引脚。在终端侧,可以将D+引脚连接至图5所示的ADC转换器,这样终端侧即可得到偏置电压值,然后根据上述对应关系表获取额定充电电流值。When charging through the USB plug and interface, the Vout output shown in Figure 8 can be connected to the D+ pin of the charger USB charging plug, that is, on the data pin, from the D+ pin to the corresponding terminal in the USB charging interface. D+ pin. On the terminal side, the D+ pin can be connected to the ADC converter shown in Figure 5, so that the terminal side can obtain the bias voltage value, and then obtain the rated charging current value according to the above correspondence table.
在终端侧,充电控制的过程如下,如图9所示:On the terminal side, the charging control process is as follows, as shown in Figure 9:
步骤901:移动终端检测到有充电器插入后,移动终端充电管理驱动从ADC电路获取偏置电压值Vout。Step 901: After the mobile terminal detects that the charger is inserted, the mobile terminal charging management driver acquires the bias voltage value Vout from the ADC circuit.
步骤902:充电管理驱动根据偏置电压-充电电流映射表得到充电器额定充电电流值。Step 902: The charge management driver obtains the charger rated charging current value according to the bias voltage-charging current map.
步骤903:充电驱动比较步骤902得到的充电流值与移动终端本身最大充电流值,取二者中较小的一个作为最终的最大允许充电电流。Step 903: The charging driver compares the charging stream value obtained in step 902 with the maximum charging stream value of the mobile terminal itself, and takes the smaller one of the two as the final maximum allowable charging current.
步骤904:配置步骤903得到的最大充电电流值为移动终端允许充电器输入的最大充电电流。Step 904: The maximum charging current value obtained by the configuration step 903 is the maximum charging current that the mobile terminal allows the charger to input.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上述任意的充电控制方法。The embodiment of the invention also discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can perform any of the above charging control methods.
本发明实施例还公开了一种载有所述的计算机程序的载体。
The embodiment of the invention also discloses a carrier carrying the computer program.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被充电器执行时,使得该充电器可执行上述任意的充电控制方法。The embodiment of the invention also discloses a computer program, comprising program instructions, when the program instruction is executed by the charger, so that the charger can perform any of the above charging control methods.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
应用本实施例的充电器可以在增加较少成本前提下,达到精确自动适配充电电流的效果,提高了充电过程的安全性。The charger of the embodiment can achieve the effect of accurately and automatically adapting the charging current under the premise of increasing the cost, and improving the safety of the charging process.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
本发明技术方案的充电控制方法可以解决用户在使用非标配充电器充电时存在安全隐患的技术问题。因此本发明具有很强的工业实用性。
The charging control method of the technical solution of the present invention can solve the technical problem that the user has a safety hazard when charging with a non-standard charger. Therefore, the present invention has strong industrial applicability.
Claims (15)
- 一种充电控制方法,应用于终端,包括如下步骤:A charging control method is applied to a terminal, including the following steps:所述终端与充电器连接之后,接收所述充电器传输的电信号;After the terminal is connected to the charger, receiving an electrical signal transmitted by the charger;所述终端根据所述电信号获取所述充电器的额定充电电流值;The terminal acquires a rated charging current value of the charger according to the electrical signal;所述终端根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流。The terminal sets a maximum charging current that the terminal allows the charger to input according to the rated charging current value and a maximum charging current value of the terminal.
- 如权利要求1所述的充电控制方法,其中,所述根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流的步骤包括:The charging control method according to claim 1, wherein said step of setting said maximum allowable charging current input by said terminal according to said rated charging current value and said maximum charging current value of said terminal comprises:比较所述额定充电电流值和所述终端的最大充电电流值,并选取两个充电电流值中较小的充电电流值作为所述终端的最大允许充电电流值;Comparing the rated charging current value and the maximum charging current value of the terminal, and selecting a smaller charging current value of the two charging current values as the maximum allowable charging current value of the terminal;根据所述最大允许充电电流值设置所述终端允许所述充电器输入的最大充电电流。And setting a maximum charging current that the terminal allows the charger to input according to the maximum allowable charging current value.
- 如权利要求1或2所述的充电控制方法,其中,所述电信号包括:偏置电压信号。The charging control method according to claim 1 or 2, wherein the electrical signal comprises: a bias voltage signal.
- 如权利要求3所述的充电控制方法,其中,所述根据所述电信号获取所述充电器的额定充电电流值的步骤包括:The charging control method according to claim 3, wherein said step of acquiring a rated charging current value of said charger based on said electrical signal comprises:获取所述偏置电压信号对应的偏置电压值;Obtaining a bias voltage value corresponding to the bias voltage signal;根据所述偏置电压值、预设偏置电压与额定充电电流的对应关系获取所述充电器的额定充电电流值。And obtaining a rated charging current value of the charger according to the bias voltage value, a preset bias voltage, and a rated charging current.
- 如权利要求3所述的充电控制方法,其中,所述终端与充电器连接之后,接收所述充电器传输的电信号的步骤包括:The charging control method according to claim 3, wherein the step of receiving the electrical signal transmitted by the charger after the terminal is connected to the charger comprises:所述终端的充电接口与所述充电器的充电插头连接之后,通过所述充电接口接收所述充电插头输出的偏置电压信号。 After the charging interface of the terminal is connected to the charging plug of the charger, the bias voltage signal output by the charging plug is received through the charging interface.
- 如权利要求5所述的方法,其中,当所述充电插头为USB充电插头、所述充电接口为USB充电接口时,所述通过所述充电接口接收所述充电插头输出的偏置电压信号的步骤包括:The method according to claim 5, wherein when the charging plug is a USB charging plug and the charging interface is a USB charging interface, the receiving the bias voltage signal output by the charging plug through the charging interface The steps include:通过USB接口中第一数据引脚接收所述USB插头中与所述第一数据引脚对应连接的第二数据引脚输出的偏置电压信号。Receiving, by the first data pin in the USB interface, a bias voltage signal output by the second data pin corresponding to the first data pin in the USB plug.
- 一种充电控制方法,应用于充电器,包括如下步骤:A charging control method, applied to a charger, includes the following steps:所述充电器生成用于供终端获取所述充电器的额定充电电流的电信号;The charger generates an electrical signal for the terminal to acquire a rated charging current of the charger;所述充电器与所述终端连接之后,所述充电器将所述电信号传输给所述终端。After the charger is connected to the terminal, the charger transmits the electrical signal to the terminal.
- 如权利要求7所述的充电控制方法,其中,所述电信号包括:与所述额定充电电流对应的偏置电压信号。The charging control method according to claim 7, wherein said electrical signal comprises: a bias voltage signal corresponding to said rated charging current.
- 如权利要求8所述的充电控制方法,其中,所述充电器生成用于供终端获取所述充电器的额定充电电流的电信号的步骤包括:The charging control method according to claim 8, wherein the step of generating, by the charger, an electrical signal for the terminal to acquire a rated charging current of the charger comprises:在所述充电器内中用于定义所述额定充电电流的电路生成所述额定充电电流,并产生与所述额定充电电流对应的偏置电压信号。A circuit for defining the rated charging current in the charger generates the rated charging current and generates a bias voltage signal corresponding to the rated charging current.
- 如权利要求8或9所述的充电控制方法,其中,所述充电器与所述终端连接之后,所述充电器将所述电信号传输给所述终端的步骤包括:The charging control method according to claim 8 or 9, wherein the step of the charger transmitting the electrical signal to the terminal after the charger is connected to the terminal comprises:所述充电器的充电插头与所述终端的充电接口连接后,所述充电器通过所述充电插头将所述偏置电压信号传输至所述充电接口。After the charging plug of the charger is connected to the charging interface of the terminal, the charger transmits the bias voltage signal to the charging interface through the charging plug.
- 如权利要求10所述的充电控制方法,其中,当所述充电插头为USB充电插头、所述充电接口为USB充电接口时,所述通过所述充电插头将所述偏置电压信号传输至所述充电接口的步骤包括:The charging control method according to claim 10, wherein when said charging plug is a USB charging plug and said charging interface is a USB charging interface, said transmitting said bias voltage signal is transmitted through said charging plug to said The steps of the charging interface include:通过USB充电插头中的第一数据引脚将所述偏置电压信号传输至USB充电接口中与所述第一数据引脚对应连接的第二数据引脚。The bias voltage signal is transmitted through a first data pin in the USB charging plug to a second data pin of the USB charging interface that is correspondingly coupled to the first data pin.
- 一种终端,包括:信号接收模块和处理器,其中, A terminal includes: a signal receiving module and a processor, wherein所述信号接收模块设置成:在所述终端与充电器连接之后,接收所述充电器传输的电信号;The signal receiving module is configured to: after the terminal is connected to the charger, receive an electrical signal transmitted by the charger;所述处理器设置成:根据所述电信号获取所述充电器的额定充电电流值;根据所述额定充电流值和所述终端的最大充电电流值设置所述终端允许所述充电器输入的最大充电电流。The processor is configured to: obtain a rated charging current value of the charger according to the electrical signal; and set, according to the rated charging current value and a maximum charging current value of the terminal, the terminal to allow the charger to input Maximum charging current.
- 一种充电器,包括:信号生成模块和信号传输模块,其中A charger includes: a signal generation module and a signal transmission module, wherein所述信号生成模块设置成:生成用于供终端获取所述充电器的额定充电电流的电信号;The signal generating module is configured to: generate an electrical signal for the terminal to acquire a rated charging current of the charger;所述信号传输模块设置成:在所述充电器与所述终端连接之后,将所述电信号传输给所述终端。The signal transmission module is configured to transmit the electrical signal to the terminal after the charger is connected to the terminal.
- 如权利要求13所述的充电器,其中,所述信号生成模块包括用于定义所述额定充电电流的电流定义电路,所述传输模块包括充电插头,其中The charger of claim 13 wherein said signal generating module includes a current defining circuit for defining said rated charging current, said transmitting module comprising a charging plug, wherein所述电流定义电路设置成:生成所述额定充电电流,并产生与所述额定充电电流对应的偏置电压信号;The current definition circuit is configured to generate the rated charging current and generate a bias voltage signal corresponding to the rated charging current;所述充电插头设置成:在与所述终端的充电接口连接后,将所述偏置电压信号传输至所述充电接口。The charging plug is configured to transmit the bias voltage signal to the charging interface after being connected to a charging interface of the terminal.
- 如权利要求14所述的充电器,其中,所述充电插头为USB充电插头;The charger of claim 14, wherein the charging plug is a USB charging plug;所述USB充电插头设置成:在与所述终端的USB充电接口连接后,通过USB充电插头中的第一数据引脚将所述偏置电压信号传输至USB充电接口中与所述第一数据引脚对应连接的第二数据引脚。 The USB charging plug is configured to transmit the bias voltage signal to the USB charging interface and the first data through a first data pin in the USB charging plug after being connected to the USB charging interface of the terminal The pin corresponds to the second data pin of the connection.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510019672.1 | 2015-01-15 | ||
CN201510019672.1A CN105846484A (en) | 2015-01-15 | 2015-01-15 | Charging control method, terminal, and charger |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015184923A1 true WO2015184923A1 (en) | 2015-12-10 |
Family
ID=54766143
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/076325 WO2015184923A1 (en) | 2015-01-15 | 2015-04-10 | Charging control method, terminal and charger |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105846484A (en) |
WO (1) | WO2015184923A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106655343B (en) * | 2016-11-18 | 2019-07-05 | 青岛海信移动通信技术股份有限公司 | A kind of charging method and device of mobile terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340011A (en) * | 2008-08-07 | 2009-01-07 | 中兴通讯股份有限公司 | Intelligent charging method and apparatus |
JP2009089499A (en) * | 2007-09-28 | 2009-04-23 | Panasonic Electric Works Co Ltd | Charging type electric apparatus |
CN102185168A (en) * | 2011-03-30 | 2011-09-14 | 惠州Tcl移动通信有限公司 | Charging system and charging method thereof |
CN102231543A (en) * | 2011-06-28 | 2011-11-02 | 惠州Tcl移动通信有限公司 | System capable of identifying charging capability of charger and charging method thereof |
CN103532211A (en) * | 2013-10-29 | 2014-01-22 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and charging control method |
CN103633719A (en) * | 2013-12-11 | 2014-03-12 | Tcl通讯(宁波)有限公司 | Charge system and charge control method thereof |
CN104467120A (en) * | 2014-12-31 | 2015-03-25 | 展讯通信(上海)有限公司 | Equipment to be charged, charging method and device of equipment to be charged, electronic equipment and charging system |
-
2015
- 2015-01-15 CN CN201510019672.1A patent/CN105846484A/en not_active Withdrawn
- 2015-04-10 WO PCT/CN2015/076325 patent/WO2015184923A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009089499A (en) * | 2007-09-28 | 2009-04-23 | Panasonic Electric Works Co Ltd | Charging type electric apparatus |
CN101340011A (en) * | 2008-08-07 | 2009-01-07 | 中兴通讯股份有限公司 | Intelligent charging method and apparatus |
CN102185168A (en) * | 2011-03-30 | 2011-09-14 | 惠州Tcl移动通信有限公司 | Charging system and charging method thereof |
CN102231543A (en) * | 2011-06-28 | 2011-11-02 | 惠州Tcl移动通信有限公司 | System capable of identifying charging capability of charger and charging method thereof |
CN103532211A (en) * | 2013-10-29 | 2014-01-22 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and charging control method |
CN103633719A (en) * | 2013-12-11 | 2014-03-12 | Tcl通讯(宁波)有限公司 | Charge system and charge control method thereof |
CN104467120A (en) * | 2014-12-31 | 2015-03-25 | 展讯通信(上海)有限公司 | Equipment to be charged, charging method and device of equipment to be charged, electronic equipment and charging system |
Also Published As
Publication number | Publication date |
---|---|
CN105846484A (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105357017B (en) | Stablize the system and method for POE supply voltages | |
US7598680B2 (en) | Electronic power protection circuit and applications thereof | |
US20150145468A1 (en) | Device and chip for controlling charging, and user terminal | |
EP3534487B1 (en) | Charging method and system | |
CN106385094B (en) | Control method for quickly charging and system | |
WO2018214459A1 (en) | Power adapting apparatus, control method and apparatus | |
KR101719262B1 (en) | Charger, charging terminal, charging system, charging control method, program and storage medium | |
US10148101B2 (en) | Battery charging system and battery charging protection control method | |
US10673256B2 (en) | Hub | |
CN105024418A (en) | Cable quality detection and power consumer devices | |
US20100060233A1 (en) | Charger with USB detection | |
WO2016183802A1 (en) | Charging method, charging device and terminal | |
CN104124734A (en) | Charging system and charging method | |
WO2021217310A1 (en) | Charging control circuit, charging control method and device, and storage medium | |
US9570932B2 (en) | Charging current setting method and charging module | |
US9618917B2 (en) | Power control device | |
CN104539026B (en) | A kind of charging method and device | |
WO2015184923A1 (en) | Charging control method, terminal and charger | |
WO2016074388A1 (en) | Charging method and apparatus | |
TWI518494B (en) | Electronic apparatus and power supplying method thereof | |
US20110101925A1 (en) | Feedback-adjustable charging system and method thereof | |
US20220085616A1 (en) | Charging apparatus and charging method | |
CN105490333A (en) | Rapid charging control circuit for battery, adapter and mobile equipment | |
CN111813634B (en) | Identification device for type of USB device interface and terminal device | |
US20170104420A1 (en) | Power Adapter, Cable, and Charger |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15803080 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15803080 Country of ref document: EP Kind code of ref document: A1 |