WO2010048873A1 - Method and device for identifying type of charger - Google Patents

Method and device for identifying type of charger Download PDF

Info

Publication number
WO2010048873A1
WO2010048873A1 PCT/CN2009/074627 CN2009074627W WO2010048873A1 WO 2010048873 A1 WO2010048873 A1 WO 2010048873A1 CN 2009074627 W CN2009074627 W CN 2009074627W WO 2010048873 A1 WO2010048873 A1 WO 2010048873A1
Authority
WO
WIPO (PCT)
Prior art keywords
charger
pin
type
usb
mini
Prior art date
Application number
PCT/CN2009/074627
Other languages
French (fr)
Chinese (zh)
Inventor
侯靖波
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2010048873A1 publication Critical patent/WO2010048873A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method and apparatus for identifying a type of a charger.
  • USB Universal Serial Bus
  • Mini_USB is a miniaturized universal serial bus interface that includes both Type A and Type B.
  • the interface on the device is Mini_U SB-A type, which can be connected to the standard USB interface on the computer through a data cable with Mini_USB-B type interface; it can also be connected to a dedicated charger with Mini_USB-B type interface.
  • the typical value is 650mA; the non-standard charger has a relatively weak current supply capacity, typically 300mA.
  • the computer can also be understood as a charger with a maximum supply capacity of 500 mA.
  • the charging equipment needs to limit the charging current to the minimum value of the three chargers, for example, below 300 mA.
  • the charging safety is guaranteed, when the user uses the standard charger for charging, the charging current is limited, which causes the charging time to become longer and the user feels poor.
  • the probability that users use standard chargers is the biggest, which is also a resource waste for standard chargers.
  • the electrical equipment is limited according to the current supply capacity of the standard charger, for example, limited to 650 mA, it will be marked on the electrical equipment to remind the user not to use other types of charging other than the standard charger. Device. This method poses a greater risk that, if the user mishandles it, it may cause damage to non-standard chargers or even computers.
  • the embodiments of the present invention provide a method and device for identifying a type of a charger, so that the charging current can be set according to the type of the charger, ensuring the safety of the charging, and fully utilizing the power supply capability of the various chargers.
  • the technical solutions are as follows:
  • An embodiment of the present invention provides a method for identifying a type of a charger, and a series voltage dividing resistor is connected between a power output end of the power device and a second pin of the Mini Universal USB bus type Mini_USB-A type interface;
  • the method for identifying a charger type includes:
  • the second pin and the third pin of the Mini_USB-A type interface are set to a high impedance state
  • the type of the connected charger is identified based on the voltage measurement.
  • An embodiment of the present invention further provides an apparatus for identifying a type of a charger, including:
  • a resistance state setting unit configured to set a second bow pin and a third pin of the small universal serial bus Mini_USB-A type interface of the power device to a high impedance state when the charger is detected;
  • a voltage measuring unit configured to measure a voltage of the measuring point after the resistance state setting unit completes the resistance state setting; wherein, between the power output end of the power device and the second pin of the Mini_USB-A type interface There is a voltage dividing resistor connected in series, and the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor.
  • An identifying unit configured to identify the type of the connected charger according to the measurement result of the voltage measuring unit
  • the above technical solution realizes the identification of the type of the connected charger without any modification and limitation of various types of chargers, so that the charging device can set different charging currents according to the type of the connected charger.
  • the application of the above technical solution can ensure the safety of charging , give full play to the supply capacity of various types of chargers, and enhance user experience.
  • FIG. 1 is a schematic structural diagram of hardware of a powered device end for implementing an embodiment of the method of the present invention
  • FIG. 2 is a schematic diagram of hardware connection of a computer data cable access port in an embodiment of the present invention
  • FIG. 3 is a schematic diagram of hardware connection of a non-standard charger access port according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of hardware connection of a standard charger access port according to an embodiment of the present invention.
  • Figure 5 is a flow chart showing a specific embodiment of the method of the present invention.
  • FIG. 6 is a schematic structural diagram of a device for identifying a charger type according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an identification unit according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a power-consuming device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of the identification unit of FIG. 8 according to an embodiment of the present invention.
  • the non-standard charger does not short-circuit Pin2 and Pin3 inside the Mini_USB-B type interface
  • the embodiment of the present invention utilizes the inherent characteristics of the three types of chargers to implement the identification of the three types of chargers. First, the method for identifying the type of the charger in the embodiment of the present invention is described:
  • a series divider resistor is connected between the power output of the powered device and the second pin of the Mini Universal USB Bus Mini_USB-A type interface;
  • the method for identifying a charger type includes:
  • the Mini_US B interface type of the power device end is A type
  • the power output end may be a VRIO (Voltage Reglator Input/Output, Input and output voltage regulator), set its output voltage to 11.
  • a resistor R1 and a diode D1 are connected in series. Since there is a pull-down resistor (set to R2) in series on the internal Pin2 of the computer, R1 is used to connect with the computer, and the voltage is connected in series with R2, so that the Mini_USB-B type interface and the sub-located charger are connected.
  • a low level state is present at the measurement point between the voltage resistors R1. Since the resistance of the pull-down resistor R2 is generally a few K, the resistance of R1 can be selected from 100 ⁇ to 150 ⁇ .
  • the diode D1 acts as a limiting reflow device and is mainly used to limit the current flow to the power output.
  • test point can also be set at the cathode end of D1; and, in particular, other types of limiting reflow devices other than diodes can also be selected, which do not affect the implementation of the embodiment of the present invention. .
  • the powered device When it is detected that there is a charger connected to the outside, the powered device first sets Pin2 and Pi n3 of the Mini_USB-A type interface to a high impedance state. Therefore, for different types of charger access, the measurement points in Figure 1 will have different states:
  • the embodiment of the present invention provides a method for identifying a type of a charger.
  • the flowchart of the method is shown in FIG. 5, and specifically includes:
  • Pinl in the USB standard can provide 5V voltage, so it can be judged whether there is an external charger by detecting whether there is a supply voltage on the Pinl of the Mini_USB-A type interface.
  • the detection result is low, it can be judged that the type of charger connected is a computer, and the charging current of the consumer can be set according to the power supply capability of the computer, for example, 500 mA.
  • the data transmitting end sends the test signal; if the data receiving end receives the test signal, it determines that the connected charger is a standard charger, otherwise it determines that the connected charger is a non-standard charger.
  • the above data transmitting end may be Pin2 or Pin3 of the Mini_USB-A type interface, and the corresponding data receiving end is the Mini_USB-A type interface Pin3 or Pin2.
  • the powered device configures Pin2 and Pin3 to send a specific test data from the data transmitting end, and then the data receiving end reads the data in the receiving register and compares it with the sent test data. If the two are the same, then It indicates that Pin2 and Pin3 of the Mini_USB-B interface are shorted together, so that it can be judged that the standard charger is connected. This can limit the charging current to the rated current of the standard charger, for example, 6 50mA; The data is different from the data sent, indicating that the Pin2 and Pin3 of the Mini_USB-B interface are not shorted together, so that it can be judged that the non-standard charger is connected, and the charging current can be limited to the rated current of the non-standard charger. , for example 300mA.
  • the identification of the above standard charger and non-standard charger can also be implemented in another way: Mini_USB- The Pin2 and Pin3 interfaces of the Type A interface are configured as GPIO functions and one of the pins is set low. Then measure the voltage of the other pin. If the measurement result is also low, it means that the two pins are shorted together externally, so that it can be judged that the standard charger is connected, otherwise it is non-standard. Charger.
  • the embodiment of the present invention further provides an apparatus for identifying a type of a charger, as shown in FIG. 6, including:
  • the resistance state setting unit 610 is configured to set the second bow pin and the third pin of the small universal serial bus Mini_USB-A type interface of the power device to be high when the charger access port is detected Resistance state
  • the voltage measuring unit 620 is configured to measure a voltage at a preset measurement point after the resistance state setting unit completes the resistance state setting; wherein, at the power output end of the power device and the Mini_USB-A type Between the second pins of the interface, a voltage dividing resistor is connected in series, and the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor;
  • a limiting reflow device is further connected in series for limiting current flow to the power output.
  • the identification unit 630 is configured to identify the type of the connected charger according to the measurement result of the voltage measuring unit 620.
  • the identification unit 630 includes:
  • a first identification subunit 631 if the measurement result of the voltage measurement unit 620 is a low level, identifying that the connected charger is a computer; [70] The second identification subunit 632 determines whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are short if the measurement result 620 of the voltage measuring unit is a high level. If yes, identify the connected charger as a standard charger; if not, identify the connected charger as a non-standard charger.
  • an embodiment of the present invention further provides an electrical device, including:
  • the resistance state setting unit 810 is configured to set the second bow pin and the third pin of the small universal serial bus Mini_USB-A type interface of the power device to be high when the charger access port is detected Resistance state
  • the voltage measuring unit 820 is configured to measure a voltage at a preset measurement point after the resistance state setting unit completes the resistance state setting; wherein, the power output end of the power device and the Mini_USB-A type Between the second pins of the interface, a voltage dividing resistor is connected in series, and the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor;
  • a limiting reflow device is further connected in series for limiting current flow to the power output.
  • the identifying unit 830 is configured to identify the type of the connected charger according to the measurement result of the voltage measuring unit 820.
  • the charging current setting unit 840 is configured to determine, according to the identification unit 830, the type of the connected charger, set the charging current of the powered device, that is, set different charging currents according to the type of the charger. That is, if it is determined by the identification unit that the type of the connected charger is a computer, the charging current of the powered device can be set according to the current supply capability of the computer, for example, 500 mA; if the identification unit can determine that the non-standard charger is accessed This pin can limit the charging current to the rated current of the non-standard charger, for example 300mA.
  • the identification unit 830 includes:
  • a first identifying subunit 831 if the measurement result of the voltage measuring unit 820 is a low level, identifying that the connected charger is a computer;
  • the second identification subunit 832 determines whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are short if the measurement result 820 of the voltage measuring unit is a high level. If yes, identify the connected charger as a standard charger; if not, identify the connected charger as a non-standard charger. [80]
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located in one Places, or they can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.

Abstract

A method for identifying the type of a charger and a device thereof are disclosed. In the method, a divider resistance is connected in series between the output terminal of power supply of an electrical equipment and a second pin of a universal serial bus Mini USB-A type interface. The method for identifying the type of the charger includes: the second pin and a third pin of the Mini USB-A type interface are set in a high-impedance state when detecting that the charger is accessed; a measuring point is set between the Mini USB-B type interface of the charger and the divider resistance, and the voltage at the measuring point is measured; the type of the charger is identified according to the measured voltage result.

Description

说明书  Instruction manual
Title of Invention:识别充电器类型的方法及装置 Title of Invention: Method and device for identifying charger type
[1] 本申请要求于 2008年 10月 28日提交中国专利局、 申请号为 200810172556.3、 发 明名称为"识别充电器类型的方法及装置"的中国专利申请的优先权, 其全部内容 通过引用结合在本申请中。  [1] This application claims priority to Chinese Patent Application No. 200810172556.3, entitled "Method and Apparatus for Identifying Charger Types", filed on October 28, 2008, the entire contents of which are incorporated by reference. In this application.
[2] 技术领域 [2] Technical field
[3] 本发明涉及终端技术领域, 特别是涉及一种识别充电器类型的方法及装置。  [3] The present invention relates to the field of terminal technologies, and in particular, to a method and apparatus for identifying a type of a charger.
[4] 发明背景  [4] Background of the invention
[5] USB (Universal Serial Bus, 通用串行总线) 是一种应用在计算机领域的接口技 术, 目前已经广泛应用于手机、 便携式播放器、 计算机外设等各类电子产品中 。 由于 USB标准能够提供 5V的电压, 因此很多使用电池方式供电的用电设备, 都可以釆用 USB进行充电, 其充电接口大多釆用 Mini_USB的形式。 Mini_USB是 一种小型化的通用串行总线接口, 包括 A型和 B型。 位于设备上的接口为 Mini_U SB-A型, 可以通过具有 Mini_USB-B型接口的数据线缆, 连接到计算机上的标准 USB接口进行充电; 也可以连接具有 Mini_USB-B型接口的专用充电器。  [5] USB (Universal Serial Bus) is an interface technology used in the computer field. It has been widely used in various electronic products such as mobile phones, portable players, and computer peripherals. Since the USB standard can provide 5V, many battery-powered devices can be charged by USB. Most of the charging interfaces are in the form of Mini_USB. Mini_USB is a miniaturized universal serial bus interface that includes both Type A and Type B. The interface on the device is Mini_U SB-A type, which can be connected to the standard USB interface on the computer through a data cable with Mini_USB-B type interface; it can also be connected to a dedicated charger with Mini_USB-B type interface.
[6] 目前, 专用充电器分为标准充电器和非标准充电器。 标准充电器供流能力较大 [6] Currently, dedicated chargers are divided into standard chargers and non-standard chargers. Standard charger has a large flow capacity
, 典型值为 650mA; 非标准充电器供流能力相对较弱, 典型值为 300mA。 当使 用数据线缆连接计算机吋, 可以将计算机也理解为一种充电器, 其最大供流能 力为 500mA。 The typical value is 650mA; the non-standard charger has a relatively weak current supply capacity, typically 300mA. When a computer cable is used to connect to a computer, the computer can also be understood as a charger with a maximum supply capacity of 500 mA.
[7] 由于上述三种充电器的供流能力各不相同, 为了保证充电安全, 用电设备需要 将充电电流统一限制在三种充电器供流能力的最小值以下, 例如限制在 300mA 以下。 使用这种方法, 虽然充电安全得到了保证, 但是当用户使用标准充电器 进行充电吋, 由于充电电流被限制, 会导致充电吋间变长, 用户感受较差。 而 且用户使用标准充电器的概率是最大的, 这对标准充电器来说也是一种资源浪 费。  [7] Since the supply capacity of the above three chargers is different, in order to ensure the safety of charging, the charging equipment needs to limit the charging current to the minimum value of the three chargers, for example, below 300 mA. With this method, although the charging safety is guaranteed, when the user uses the standard charger for charging, the charging current is limited, which causes the charging time to become longer and the user feels poor. And the probability that users use standard chargers is the biggest, which is also a resource waste for standard chargers.
[8] 如果用电设备按照标准充电器的供流能力进行限流, 例如限制在 650mA, 一般 会在用电设备上加以标注, 提醒用户不得使用标准充电器之外其他类型的充电 器。 这种方法存在较大的风险, 一旦用户误操作, 可能会造成非标准充电器或 甚至计算机的损坏。 [8] If the electrical equipment is limited according to the current supply capacity of the standard charger, for example, limited to 650 mA, it will be marked on the electrical equipment to remind the user not to use other types of charging other than the standard charger. Device. This method poses a greater risk that, if the user mishandles it, it may cause damage to non-standard chargers or even computers.
综上所述, 在现有技术中, 还没有一种方法, 能够在保证充电安全的同吋, 充 分发挥各种类型充电器的供流能力。  In summary, in the prior art, there is no method for fully utilizing the power supply capability of various types of chargers while ensuring the safety of charging.
发明内容  Summary of the invention
有鉴于此, 本发明实施例提供了一种识别充电器类型的方法及装置,以便能根据 充电器类型设置充电电流, 保证充电安全的同吋, 充分发挥各种充电器的供流 能力。 技术方案如下:  In view of this, the embodiments of the present invention provide a method and device for identifying a type of a charger, so that the charging current can be set according to the type of the charger, ensuring the safety of the charging, and fully utilizing the power supply capability of the various chargers. The technical solutions are as follows:
本发明实施例提供一种识别充电器类型的方法, 在用电设备的电源输出端与小 型通用串行总线 Mini_USB-A型接口的第二引脚之间, 串联分压电阻;  An embodiment of the present invention provides a method for identifying a type of a charger, and a series voltage dividing resistor is connected between a power output end of the power device and a second pin of the Mini Universal USB bus type Mini_USB-A type interface;
所述识别充电器类型的方法包括:  The method for identifying a charger type includes:
当检测到有充电器接入吋, 将 Mini_USB-A型接口的第二引脚和第三引脚设置 为高阻态;  When the charger is detected, the second pin and the third pin of the Mini_USB-A type interface are set to a high impedance state;
在所接入充电器的 Mini_USB-B型接口与所述分压电阻间设置测量点, 对所述 测量点的电压进行测量;  Setting a measurement point between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor, and measuring the voltage of the measuring point;
根据电压测量结果识别所接入充电器的类型。  The type of the connected charger is identified based on the voltage measurement.
本发明实施例还提供一种识别充电器类型的装置, 包括:  An embodiment of the present invention further provides an apparatus for identifying a type of a charger, including:
阻态设置单元, 用于当检测到有充电器接入吋, 将用电设备的小型通用串行总 线 Mini_USB-A型接口的第二弓 I脚和第三引脚设置为高阻态;  a resistance state setting unit, configured to set a second bow pin and a third pin of the small universal serial bus Mini_USB-A type interface of the power device to a high impedance state when the charger is detected;
电压测量单元, 用于在所述阻态设置单元完成阻态设置之后, 对测量点的电压 进行测量; 其中, 在用电设备的电源输出端与 Mini_USB-A型接口的第二引脚之 间, 串联有分压电阻, 所述测量点位于所接入充电器的 Mini_USB-B型接口与所 述分压电阻之间。  a voltage measuring unit, configured to measure a voltage of the measuring point after the resistance state setting unit completes the resistance state setting; wherein, between the power output end of the power device and the second pin of the Mini_USB-A type interface There is a voltage dividing resistor connected in series, and the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor.
识别单元, 用于根据所述电压测量单元的测量结果, 识别所接入充电器的类型  An identifying unit, configured to identify the type of the connected charger according to the measurement result of the voltage measuring unit
以上技术方案, 在不对各类充电器做任何改造和限定的前提下, 实现对所接入 充电器类型的识别, 以便用电设备根据所接入的充电器类型, 即可设置不同的 充电电流, 与现有技术相比, 应用上述技术方案, 可以在保证充电安全的同吋 , 充分发挥各种类型充电器的供流能力, 提升用户感受。 The above technical solution realizes the identification of the type of the connected charger without any modification and limitation of various types of chargers, so that the charging device can set different charging currents according to the type of the connected charger. Compared with the prior art, the application of the above technical solution can ensure the safety of charging , give full play to the supply capacity of various types of chargers, and enhance user experience.
[22] 附图简要说明 [22] BRIEF DESCRIPTION OF THE DRAWINGS
[23] 图 1为实现本发明方法实施例的用电设备端硬件结构示意图;  [23] FIG. 1 is a schematic structural diagram of hardware of a powered device end for implementing an embodiment of the method of the present invention;
[24] 图 2为本发明实施例中计算机数据线缆接入吋的硬件连接示意图;  2 is a schematic diagram of hardware connection of a computer data cable access port in an embodiment of the present invention;
[25] 图 3为本发明实施例中非标准充电器接入吋的硬件连接示意图;  FIG. 3 is a schematic diagram of hardware connection of a non-standard charger access port according to an embodiment of the present invention; FIG.
[26] 图 4为本发明实施例中标准充电器接入吋的硬件连接示意图;  FIG. 4 is a schematic diagram of hardware connection of a standard charger access port according to an embodiment of the present invention; FIG.
[27] 图 5为一种实现本发明方法具体实施例的流程图;  Figure 5 is a flow chart showing a specific embodiment of the method of the present invention;
[28] 图 6为本发明实施例的识别充电器类型装置的结构示意图;  6 is a schematic structural diagram of a device for identifying a charger type according to an embodiment of the present invention;
[29] 图 7为本发明实施例的识别单元的结构示意图;  FIG. 7 is a schematic structural diagram of an identification unit according to an embodiment of the present invention; FIG.
[30] 图 8为本发明实施例的用电设备的结构示意图;  [30] FIG. 8 is a schematic structural diagram of a power-consuming device according to an embodiment of the present invention;
[31] 图 9为本发明实施例的图 8中识别单元的结构示意图。  FIG. 9 is a schematic structural diagram of the identification unit of FIG. 8 according to an embodiment of the present invention.
[32] 实施本发明的方式  [32] Mode for carrying out the invention
[33] 在背景技术中所提到的三种类型的充电器, 均具有 Mini_USB-B型接口, 但是 每种充电器其接口内部具体的 Pin (引脚) 结构有所区别:  [33] The three types of chargers mentioned in the background have Mini_USB-B type interfaces, but each charger has a specific pin (pin) structure inside its interface:
[34] 标准充电器在 Mini_USB-B型接口内部将 Pin2与 Pin3短接; [34] The standard charger shorts Pin2 and Pin3 inside the Mini_USB-B type interface;
[35] 非标准充电器在 Mini_USB-B型接口内部没有将 Pin2与 Pin3短接; [35] The non-standard charger does not short-circuit Pin2 and Pin3 inside the Mini_USB-B type interface;
[36] 当使用通过具有 Mini_USB-B型接口的数据线缆连接计算机吋, 计算机作为充 电器, 在计算机内部的 Pin2上串联有一个下拉电阻。 [36] When using a data cable with a Mini_USB-B type connector to connect to a computer, the computer acts as a charger, and a pull-down resistor is connected in series on Pin2 inside the computer.
[37] 本发明实施例利用上述三种充电器的固有特征, 实现对上述三种充电器类型的 识别, 下面首先对本发明实施例的识别充电器类型的方法进行说明: [37] The embodiment of the present invention utilizes the inherent characteristics of the three types of chargers to implement the identification of the three types of chargers. First, the method for identifying the type of the charger in the embodiment of the present invention is described:
[38] 在用电设备的电源输出端与小型通用串行总线 Mini_USB-A型接口的第二引脚 之间串联分压电阻; [38] a series divider resistor is connected between the power output of the powered device and the second pin of the Mini Universal USB Bus Mini_USB-A type interface;
[39] 所述识别充电器类型的方法包括: [39] The method for identifying a charger type includes:
[40] 当检测到有充电器接入吋, 将 Mini_USB-A型接口的第二引脚和第三引脚设置 为高阻态;  [40] When the charger is detected, set the second and third pins of the Mini_USB-A type interface to high impedance;
[41] 在所接入充电器的 Mini_USB-B型接口与所述分压电阻间设置测量点, 对所述 测量点的电压进行测量;  [41] setting a measurement point between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor, and measuring the voltage of the measuring point;
[42] 根据电压测量结果识别所接入充电器的类型。 [43] 下面将结合附图, 对本发明的实施方案进行详细描述。 [42] Identify the type of charger connected based on the voltage measurement. [43] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[44] 本发明实施例用电设备端的硬件结构示意图如图 1所示, 用电设备端的 Mini_US B接口类型为 A型, 电源输出端可以是用电设备内部的 VRIO (Voltage Reglator Input/Output, 输入输出电压调整器) , 设其输出电压为11。 在 VRIO与 MiniJJSB -A型接口的 Pin2之间, 串联有电阻 R1和二极管 Dl。 由于计算机内部的 Pin2上串 联有一个下拉电阻 (设为 R2) , R1用于与计算机连接吋, 与 R2串联起到分压的 作用, 使位于所接入充电器的 Mini_USB-B型接口与分压电阻 R1之间的测量点处 呈现低电平状态。 由于下拉电阻 R2的阻值一般为几 K, 因此 R1的阻值可选用 100 Κ〜150Κ。 二级管 D1作为一限制回流装置, 主要用于限制电流流向电源输出端  [44] The hardware structure diagram of the power device end in the embodiment of the present invention is shown in FIG. 1 , the Mini_US B interface type of the power device end is A type, and the power output end may be a VRIO (Voltage Reglator Input/Output, Input and output voltage regulator), set its output voltage to 11. Between the VRIO and the PinJ2 of the MiniJJSB-A type interface, a resistor R1 and a diode D1 are connected in series. Since there is a pull-down resistor (set to R2) in series on the internal Pin2 of the computer, R1 is used to connect with the computer, and the voltage is connected in series with R2, so that the Mini_USB-B type interface and the sub-located charger are connected. A low level state is present at the measurement point between the voltage resistors R1. Since the resistance of the pull-down resistor R2 is generally a few K, the resistance of R1 can be selected from 100 Κ to 150 Κ. The diode D1 acts as a limiting reflow device and is mainly used to limit the current flow to the power output.
[45] 需要说明的是, 设置上述测量点的目的是获得所接入充电器的 Mini_USB-B型 接口 Pin2处的高 /低电平状态, 而二极管的降压参数不会对测量结果产生影响, 因此在图 1中, 也可以将测试点设置在 D1的阴极端; 并且, 具体实施吋, 也可以 选用除二极管之外的其他类型的限制回流装置, 这些均不影响本发明实施例的 实现。 [45] It should be noted that the purpose of setting the above measurement points is to obtain the high/low state of the Mini_USB-B type interface Pin2 of the connected charger, and the buck parameter of the diode does not affect the measurement result. Therefore, in FIG. 1, the test point can also be set at the cathode end of D1; and, in particular, other types of limiting reflow devices other than diodes can also be selected, which do not affect the implementation of the embodiment of the present invention. .
[46] 当检测到外部有充电器接入吋, 用电设备首先将 Mini_USB-A型接口的 Pin2和 Pi n3置为高阻状态。 此吋, 对于不同类型的充电器接入, 图 1中的测量点会呈现不 同的状态:  [46] When it is detected that there is a charger connected to the outside, the powered device first sets Pin2 and Pi n3 of the Mini_USB-A type interface to a high impedance state. Therefore, for different types of charger access, the measurement points in Figure 1 will have different states:
[47] 1、 如图 2所示, 当计算机数据线缆接入吋, Mini_USB-B型连接器 Pin2将会与计 算机上标准 USB接口的 D-引脚短接, 由于计算机内部该引脚串联有一个下拉电 阻 R2, 因此该电阻 R2与 Rl、 D1串联后, 将会使测量点处呈现低电平状态。  [47] 1. As shown in Figure 2, when the computer data cable is connected, the Mini_USB-B connector Pin2 will be short-circuited with the D- pin of the standard USB interface on the computer. There is a pull-down resistor R2, so the resistor R2 in series with Rl, D1 will cause the measurement point to assume a low state.
[48] 2、 如图 3所示, 当非标准充电器接入吋, 由于非标准充电器内部 Pin2与 Pin3没 有短接, 也没有下拉电阻, 此吋测量点处将呈现高电平状态。  [48] 2. As shown in Figure 3, when the non-standard charger is connected, since the non-standard charger has no short-circuit between Pin2 and Pin3, and there is no pull-down resistor, the measurement point will be in a high state.
[49] 3、 如图 4所示, 当标准充电器接入吋, 由于标准充电器内部将 Pin2与 Pin3短接 , 但没有下拉电阻, 此吋测量点将呈现高电平状态。  [49] 3. As shown in Figure 4, when the standard charger is connected, since the standard charger internally shorts Pin2 and Pin3, but there is no pull-down resistor, the measurement point will be in a high state.
[50] 根据以上三种情况, 本发明实施例提供一种识别充电器类型的方法, 方法的流 程图可参见图 5所示, 具体包括:  [50] According to the above three cases, the embodiment of the present invention provides a method for identifying a type of a charger. The flowchart of the method is shown in FIG. 5, and specifically includes:
[51] S501 , 当检测到外部有充电器接入吋, 将 Mini_USB-A型接口的 Pin2和 Pin3置为 高阻状态。 [51] S501, when it is detected that there is external charger access, set Pin2 and Pin3 of the Mini_USB-A interface to High resistance state.
[52] USB标准中的 Pinl可以提供 5V的电压, 因此可以通过检测 Mini_USB-A型接口 的 Pinl上是否有供电电压, 来判断是否有外部充电器接入。  [52] Pinl in the USB standard can provide 5V voltage, so it can be judged whether there is an external charger by detecting whether there is a supply voltage on the Pinl of the Mini_USB-A type interface.
[53] S502, 当测量到所接入充电器的 Mini_USB-B型接口的 Pin2为低电平吋, 则判 断所接入的充电器为计算机; 如果测量结果为高电平, 则进入 S503.  [53] S502, when it is measured that Pin2 of the Mini_USB-B type interface of the connected charger is low level, it is judged that the connected charger is a computer; if the measurement result is high level, it proceeds to S503.
[54] 这里可以利用用电设备中的 GPIO (General Purpose Input/Output, 通用输入输 出接口) 或 ADC (Analog to Digital Converter, 模拟数字转换器) 对测量点处的 电压进行测量, 使用 GPIO可以直接测出该点电平的高低状态, 使用 ADC则可以 测出该点的实际电压值, 再根据实际电压值判断为是否为低电平。  [54] Here you can use the GPIO (General Purpose Input/Output) or ADC (Analog to Digital Converter) in the powered device to measure the voltage at the measuring point. The high and low states of the point level are measured, and the actual voltage value at the point can be measured by using the ADC, and then it is judged whether it is low level according to the actual voltage value.
[55] 如果检测结果为低电平, 则可以判断所接入的充电器类型为计算机, 此吋可以 根据计算机的供流能力, 设置用电设备的充电电流, 例如 500mA。  [55] If the detection result is low, it can be judged that the type of charger connected is a computer, and the charging current of the consumer can be set according to the power supply capability of the computer, for example, 500 mA.
[56] S503 , 数据发送端发送测试信号; 如果数据接收端接收到所述测试信号, 则判 断所接入的充电器为标准充电器, 否则判断所接入的充电器为非标准充电器。  [56] S503, the data transmitting end sends the test signal; if the data receiving end receives the test signal, it determines that the connected charger is a standard charger, otherwise it determines that the connected charger is a non-standard charger.
[57] 根据 USB标准, Mini_USB接口的 Pin2和 Pin3用于数据发送 /接收。 因此上述的 数据发送端可以是 Mini_USB-A型接口的 Pin2或 Pin3, 则与之对应的数据接收端 为 Mini_USB-A型接口 Pin3或 Pin2。  [57] According to the USB standard, Pin2 and Pin3 of the Mini_USB interface are used for data transmission/reception. Therefore, the above data transmitting end may be Pin2 or Pin3 of the Mini_USB-A type interface, and the corresponding data receiving end is the Mini_USB-A type interface Pin3 or Pin2.
[58] 用电设备通过配置 Pin2与 Pin3, 由数据发送端发送一段特定的测试数据, 然后 数据接收端读取接收寄存器中的数据, 并与发送的测试数据进行比较, 如果两 者相同, 则表明 Mini_USB-B接口的 Pin2和 Pin3被短接在一起, 从而可以判断接 入的是标准充电器, 此吋可以将充电电流限定为标准充电器的额定电流, 例如 6 50mA; 如果接收寄存器中的数据与发送的数据不同, 则表明 Mini_USB-B接口的 Pin2和 Pin3没有被短接在一起, 从而可以判断接入的是非标准充电器, 此吋可以 将充电电流限定为非标充电器的额定电流, 例如 300mA。  [58] The powered device configures Pin2 and Pin3 to send a specific test data from the data transmitting end, and then the data receiving end reads the data in the receiving register and compares it with the sent test data. If the two are the same, then It indicates that Pin2 and Pin3 of the Mini_USB-B interface are shorted together, so that it can be judged that the standard charger is connected. This can limit the charging current to the rated current of the standard charger, for example, 6 50mA; The data is different from the data sent, indicating that the Pin2 and Pin3 of the Mini_USB-B interface are not shorted together, so that it can be judged that the non-standard charger is connected, and the charging current can be limited to the rated current of the non-standard charger. , for example 300mA.
[59] 如果用电设备能够提供将数据发送 /接收接口配置为 GPIO功能的话, 则上述标 准充电器与非标准充电器的识别的步骤, 还可以釆用另外一种方式实现: 将 Mini _USB-A型接口的 Pin2和 Pin3接口都配置为 GPIO功能, 并将其中一个引脚设置为 低电平。 然后测量另一引脚的电压, 如果测量结果也为低电平, 则表明两个引 脚在外部被短接在一起, 从而可以判断所接入的为标准充电器, 否则为非标准 充电器。 [59] If the powered device can provide the data transmission/reception interface as a GPIO function, the identification of the above standard charger and non-standard charger can also be implemented in another way: Mini_USB- The Pin2 and Pin3 interfaces of the Type A interface are configured as GPIO functions and one of the pins is set low. Then measure the voltage of the other pin. If the measurement result is also low, it means that the two pins are shorted together externally, so that it can be judged that the standard charger is connected, otherwise it is non-standard. Charger.
[60] 本领域技术人员易于想到的是, 对于标准充电器与非标准充电器的识别, 其关 键在于判断所接入充电器的 Mini_USB-B型接口的 Pin2与 Pin3是否短接, 上面所 述的仅是两种具体实现方案, 并不构成对本发明保护范围的限定。  [60] It is easily conceivable by those skilled in the art that for the identification of a standard charger and a non-standard charger, the key is to determine whether Pin2 and Pin3 of the Mini_USB-B type interface of the connected charger are short-circuited, as described above. The two specific implementations are not intended to limit the scope of the present invention.
[61] 上述技术方案, 针对市场上普遍釆用 Mini_USB接口充电的用电设备, 在不对 各类充电器做任何改造和限定的前提下, 提出了软件与硬件相结合的低成本、 高可靠性检测方案, 实现了不同类型充电器识别, 根据充电器类型设置不同的 充电电流, 从而在保证充电安全的同吋充分发挥各种充电器的供流能力, 提高 用户感受。  [61] The above technical solutions, for the general use of the Mini_USB interface charging equipment on the market, without any modification and limitation of various types of chargers, proposed a low cost and high reliability combined with software and hardware. The detection scheme realizes different types of charger identification, and sets different charging currents according to the type of the charger, thereby fully utilizing the power supply capability of various chargers and improving the user experience while ensuring the safety of charging.
[62] 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以通 过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介 质中, 该程序在执行吋, 执行包括上述方法实施例的步骤; 而前述的存储介质 包括: ROM、 RAM、 磁碟或者光盘等各种可以存储程序代码的介质。  [62] It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
[63] 相应于上面的方法实施例, 本发明实施例还提供一种识别充电器类型的装置, 参见图 6所示, 包括:  Corresponding to the above method embodiment, the embodiment of the present invention further provides an apparatus for identifying a type of a charger, as shown in FIG. 6, including:
[64] 阻态设置单元 610, 用于当检测到有充电器接入吋, 将用电设备的小型通用串 行总线 Mini_USB-A型接口的第二弓 I脚和第三引脚设置为高阻态;  [64] The resistance state setting unit 610 is configured to set the second bow pin and the third pin of the small universal serial bus Mini_USB-A type interface of the power device to be high when the charger access port is detected Resistance state
[65] 电压测量单元 620, 用于在所述阻态设置单元完成阻态设置之后, 对预先设置 的测量点处的电压进行测量; 其中, 在用电设备的电源输出端与 Mini_USB-A型 接口的第二引脚之间, 串联有分压电阻, 所述测量点位于所接入充电器的 Mini_ USB-B型接口与所述分压电阻之间;  [65] The voltage measuring unit 620 is configured to measure a voltage at a preset measurement point after the resistance state setting unit completes the resistance state setting; wherein, at the power output end of the power device and the Mini_USB-A type Between the second pins of the interface, a voltage dividing resistor is connected in series, and the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor;
[66] 优选地, 在用电设备的电源输出端与 Mini_USB-A型接口的第二引脚之间, 还 串联有限制回流装置, 用于限制电流流向所述电源输出端。  [66] Preferably, between the power output of the powered device and the second pin of the Mini_USB-A type interface, a limiting reflow device is further connected in series for limiting current flow to the power output.
[67] 识别单元 630, 用于根据所述电压测量单元 620的测量结果, 识别所接入充电器 的类型。  [67] The identification unit 630 is configured to identify the type of the connected charger according to the measurement result of the voltage measuring unit 620.
[68] 参见图 7所示, 所述识别单元 630, 包括:  [68] As shown in FIG. 7, the identification unit 630 includes:
[69] 第一识别子单元 631, 如果所述电压测量单元 620的测量结果为低电平, 则识别 所接入的充电器为计算机; [70] 第二识别子单元 632, 如果所述电压测量单元的测量结果 620为高电平, 则判断 所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚是否短接; 如果是, 则识别所接入的充电器为标准充电器; 如果否, 则识别所接入的充电器为非标 准充电器。 [69] a first identification subunit 631, if the measurement result of the voltage measurement unit 620 is a low level, identifying that the connected charger is a computer; [70] The second identification subunit 632 determines whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are short if the measurement result 620 of the voltage measuring unit is a high level. If yes, identify the connected charger as a standard charger; if not, identify the connected charger as a non-standard charger.
[71] 如图 8所示, 本发明实施例还提供一种用电设备, 包括:  [71] As shown in FIG. 8, an embodiment of the present invention further provides an electrical device, including:
[72] 阻态设置单元 810, 用于当检测到有充电器接入吋, 将用电设备的小型通用串 行总线 Mini_USB-A型接口的第二弓 I脚和第三引脚设置为高阻态;  [72] The resistance state setting unit 810 is configured to set the second bow pin and the third pin of the small universal serial bus Mini_USB-A type interface of the power device to be high when the charger access port is detected Resistance state
[73] 电压测量单元 820, 用于在所述阻态设置单元完成阻态设置之后, 对预先设置 的测量点处的电压进行测量; 其中, 在用电设备的电源输出端与 Mini_USB-A型 接口的第二引脚之间, 串联有分压电阻, 所述测量点位于所接入充电器的 Mini_ USB-B型接口与所述分压电阻之间;  [73] The voltage measuring unit 820 is configured to measure a voltage at a preset measurement point after the resistance state setting unit completes the resistance state setting; wherein, the power output end of the power device and the Mini_USB-A type Between the second pins of the interface, a voltage dividing resistor is connected in series, and the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor;
[74] 优选地, 在用电设备的电源输出端与 Mini_USB-A型接口的第二引脚之间, 还 串联有限制回流装置, 用于限制电流流向所述电源输出端。  [74] Preferably, between the power output of the powered device and the second pin of the Mini_USB-A type interface, a limiting reflow device is further connected in series for limiting current flow to the power output.
[75] 识别单元 830, 用于根据所述电压测量单元 820的测量结果, 识别所接入充电器 的类型。  [75] The identifying unit 830 is configured to identify the type of the connected charger according to the measurement result of the voltage measuring unit 820.
[76] 充电电流设置单元 840, 用于根据所述识别单元 830判断出所接入的充电器类型 , 设置用电设备的充电电流, 即根据充电器类型设置不同的充电电流。 即如果 通过识别单元判断所接入的充电器类型为计算机, 此吋可以根据计算机的供流 能力, 设置用电设备的充电电流, 例如 500mA; 如果通过识别单元可以判断接 入的是非标准充电器, 此吋可以将充电电流限定为非标充电器的额定电流, 例 如 300mA。  [76] The charging current setting unit 840 is configured to determine, according to the identification unit 830, the type of the connected charger, set the charging current of the powered device, that is, set different charging currents according to the type of the charger. That is, if it is determined by the identification unit that the type of the connected charger is a computer, the charging current of the powered device can be set according to the current supply capability of the computer, for example, 500 mA; if the identification unit can determine that the non-standard charger is accessed This pin can limit the charging current to the rated current of the non-standard charger, for example 300mA.
[77] 参见图 9所示, 所述识别单元 830, 包括:  [77] As shown in FIG. 9, the identification unit 830 includes:
[78] 第一识别子单元 831, 如果所述电压测量单元 820的测量结果为低电平, 则识别 所接入的充电器为计算机;  [78] a first identifying subunit 831, if the measurement result of the voltage measuring unit 820 is a low level, identifying that the connected charger is a computer;
[79] 第二识别子单元 832, 如果所述电压测量单元的测量结果 820为高电平, 则判断 所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚是否短接; 如果是, 则识别所接入的充电器为标准充电器; 如果否, 则识别所接入的充电器为非标 准充电器。 [80] 对于上述实施例而言, 由于其基本相应于方法实施例, 所以描述得比较简单, 相关之处参见方法实施例的部分说明即可。 以上所描述的实施例仅仅是示意性 的, 其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者 全部模块来实现本实施例方案的目的。 本领域普通技术人员在不付出创造性劳 动的情况下, 即可以理解并实施。 [79] The second identification subunit 832 determines whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are short if the measurement result 820 of the voltage measuring unit is a high level. If yes, identify the connected charger as a standard charger; if not, identify the connected charger as a non-standard charger. [80] For the above embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located in one Places, or they can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
[81] 以上所述仅是本发明的具体实施方式, 应当指出, 对于本技术领域的普通技术 人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些 改进和润饰也应视为本发明的保护范围。  The above description is only the specific embodiment of the present invention, and it should be noted that those skilled in the art can make some improvements and refinements without departing from the principles of the present invention. And retouching should also be regarded as the scope of protection of the present invention.

Claims

权利要求书 Claim
一种识别充电器类型的方法, 其特征在于, 在用电设备的电源输 出端与小型通用串行总线 Mini_USB-A型接口的第二引脚之间, 串 联分压电阻; A method for identifying a type of a charger, characterized in that a voltage dividing resistor is connected in series between a power output end of the electric device and a second pin of the mini universal USB bus Mini_USB-A type interface;
所述识别充电器类型的方法包括: The method for identifying a charger type includes:
当检测到有充电器接入吋, 将所述 Mini_USB-A型接口的第二引脚 和第三引脚设置为高阻态; When the charger is detected, the second pin and the third pin of the Mini_USB-A type interface are set to a high impedance state;
在所接入充电器的 Mini_USB-B型接口与所述分压电阻间设置测量 点, 对所述测量点的电压进行测量; Setting a measurement point between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor, and measuring the voltage of the measuring point;
根据电压测量结果识别所接入充电器的类型。 The type of the connected charger is identified based on the voltage measurement.
根据权利要求 1所述的方法, 其特征在于, 所述用电设备的电源输 出端为: 用电设备的输入输出电压调整器 VRIO。 The method according to claim 1, wherein the power output terminal of the powered device is: an input/output voltage regulator VRIO of the powered device.
根据权利要求 1所述的识别充电器类型的方法, 其特征在于, 在用 电设备的电源输出端与小型通用串行总线 Mini_USB-A型接口的第 二引脚之间, 还串联有限制回流装置, 所述限制回流装置, 用于 限制电流流向所述电源输出端。 The method for identifying a type of a charger according to claim 1, wherein a limit return is further connected in series between a power output of the powered device and a second pin of the Mini-USB-A type interface of the small universal serial bus The device, the limiting reflux device, is configured to limit current flow to the power output.
根据权利要求 3所述的识别充电器类型的方法, 其特征在于, 所述 限制回流装置为二级管。 A method of identifying a type of charger according to claim 3, wherein said restricting reflow device is a diode.
根据权利要求 1所述的识别充电器类型的方法, 其特征在于, 所述 当检测到有充电器接入吋, 将 Mini_USB-A型接口的第二引脚和第 三引脚设置为高阻态, 具体实现为: The method for identifying a type of a charger according to claim 1, wherein when the charger is detected, the second pin and the third pin of the Mini_USB-A type interface are set to high impedance. State, the specific implementation is:
当检测到 Mini_USB-A型接口的第一引脚上有供电电压吋, 将 Mini _USB-A型接口的第二弓 I脚和第三引脚设置为高阻态。 When it is detected that there is a supply voltage 第一 on the first pin of the Mini_USB-A type interface, the second bow I and the third pin of the Mini_USB-A type interface are set to a high impedance state.
根据权利要求 1所述的识别充电器类型的方法, 其特征在于, 所述 对测量点的电压进行测量, 具体实现为: The method for identifying a type of a charger according to claim 1, wherein the measuring the voltage of the measuring point is specifically implemented as:
使用通用输入输出接口 GPIO, 对所述测量点的电压进行测量。 根据权利要求 1所述的识别充电器类型的方法, 其特征在于, 所述 使用模拟数字转换器 ADC, 对所述测量点的电压进行测量。 The voltage at the measurement point is measured using a general-purpose input/output interface GPIO. A method of identifying a type of charger according to claim 1, wherein said The voltage at the measurement point is measured using an analog to digital converter ADC.
根据权利要求 1至 7任一项所述的识别充电器类型的方法, 其特征 在于, 所述根据电压测量结果识别所接入充电器的类型, 包括: 如果电压测量结果为低电平, 则识别所接入的充电器为计算机; 如果电压测量结果为高电平, 则判断所接入充电器的 Mini_USB-B 型接口的第二引脚与第三引脚是否短接; 如果是, 则识别所接入 的充电器为标准充电器; 如果否, 则识别所接入的充电器为非标 准充电器。 The method for identifying a type of a charger according to any one of claims 1 to 7, wherein the identifying the type of the connected charger according to the voltage measurement result comprises: if the voltage measurement result is a low level, Identifying the connected charger as a computer; if the voltage measurement result is high, it is determined whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are short-circuited; if yes, The identified charger is identified as a standard charger; if not, the connected charger is identified as a non-standard charger.
根据权利要求 8所述的识别充电器类型的方法, 其特征在于, 所述 判断所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚是 否短接, 具体实现为: The method for identifying a type of a charger according to claim 8, wherein the determining whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are shorted are specifically implemented as follows:
由数据发送端发送测试信号; 如果数据接收端接收到所述测试信 号, 贝 I」所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚 短接; The test signal is sent by the data transmitting end; if the data receiving end receives the test signal, the second pin of the Mini_USB-B type interface of the charger connected to the battery is short-circuited with the third pin;
所述数据发送端为 Mini_USB-A型接口的第二弓 I脚或第三引脚, 与 之对应的所述数据接收端为 Mini_USB-A型接口的第三引脚或第二 引脚。 The data transmitting end is a second bow I pin or a third pin of the Mini_USB-A type interface, and the data receiving end corresponding thereto is a third pin or a second pin of the Mini_USB-A type interface.
根据权利要求 8所述的识别充电器类型的方法, 其特征在于, 所述 判断所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚是 否短接, 具体实现为: The method for identifying a type of a charger according to claim 8, wherein the determining whether the second pin and the third pin of the Mini_USB-B type interface of the connected charger are shorted are specifically implemented as follows:
将数据发送端和数据接收端都配置为通用输入输出接口 GPIO功能 , 并将其中一个端口设置为低电平; 测量另一端口的电压, 如果 测量结果为低电平, 贝 I」所接入充电器的 Mini_USB-B型接口的第二 引脚与第三引脚短接; 如果测量结果为高电平, 则所接入充电器 的 Mini_USB-B型接口的第二弓 I脚与第三引脚未短接; Configure both the data transmitter and the data receiver as the general-purpose input/output interface GPIO function, and set one of the ports to low level; measure the voltage of the other port, if the measurement result is low, the access is The second pin of the Mini_USB-B type connector of the charger is short-circuited with the third pin; if the measurement result is high level, the second bow I and the third of the Mini_USB-B type interface of the connected charger are connected. The pin is not shorted;
所述数据发送端为 Mini_USB-A型接口的第二弓 I脚或第三引脚, 与 之对应的所述数据接收端为 Mini_USB-A型接口的第三引脚或第二 引脚。 [Claim 11] 根据权利要求 1所述的识别充电器类型的方法, 其特征在于, 所述 方法还包括: The data transmitting end is a second bow pin or a third pin of the Mini_USB-A type interface, and the data receiving end corresponding thereto is a third pin or a second pin of the Mini_USB-A type interface. [Claim 11] The method for identifying a charger type according to claim 1, wherein the method further comprises:
根据判断出所接入的充电器类型, 设置用电设备的充电电流。  According to the type of charger that is connected, the charging current of the powered device is set.
[Claim 12] 一种识别充电器类型的装置, 其特征在于, 包括: [Claim 12] A device for identifying a type of charger, comprising:
阻态设置单元, 用于当检测到有充电器接入吋, 将用电设备的小 型通用串行总线 Mini_USB-A型接口的第二弓 I脚和第三引脚设置为 高阻态;  a resistance state setting unit, configured to set a second bow I and a third pin of the small universal serial bus Mini_USB-A type interface of the power device to a high impedance state when the charger is detected;
电压测量单元, 用于在所述阻态设置单元完成阻态设置之后, 对 测量点处的电压进行测量; 其中, 在用电设备的电源输出端与 Min i_USB-A型接口的第二引脚之间, 串联有分压电阻, 所述测量点位 于所接入充电器的 Mini_USB-B型接口与所述分压电阻之间; 识别单元, 用于根据所述电压测量单元的测量结果, 识别所接入 充电器的类型。  a voltage measuring unit, configured to measure a voltage at the measuring point after the resistance state setting unit completes the resistance state setting; wherein, the second pin of the power supply output end of the power device and the Min i_USB-A type interface Between the series, there is a voltage dividing resistor, the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor; the identifying unit is configured to identify according to the measurement result of the voltage measuring unit The type of charger connected.
[Claim 13] 根据权利要求 11所述的识别充电器类型的装置, 其特征在于, 所 述在用电设备的电源输出端与 Mini_USB-A型接口的第二引脚之间 , 还串联有限制回流装置, 用于限制电流流向所述电源输出端。  [Claim 13] The device for identifying a charger type according to claim 11, wherein the power supply output end of the electric device and the second pin of the Mini_USB-A type interface are further limited in series A reflow device is configured to limit current flow to the power output.
[Claim 14] 根据权利要求 11所述的识别充电器类型的装置, 其特征在于, 所 述识别单元, 包括:  [Claim 14] The device for identifying a charger type according to claim 11, wherein the identification unit comprises:
第一识别子单元, 如果所述电压测量单元的测量结果为低电平, 则识别所接入的充电器为计算机;  a first identifying subunit, if the measurement result of the voltage measuring unit is a low level, identifying that the connected charger is a computer;
第二识别子单元, 如果所述电压测量单元的测量结果为高电平, 贝綱断所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚 是否短接; 如果是, 则识别所接入的充电器为标准充电器; 如果 否, 则识别所接入的充电器为非标准充电器。  a second identification subunit, if the measurement result of the voltage measurement unit is a high level, whether the second pin and the third pin of the Mini_USB-B type interface of the charger connected to the charger are short-circuited; , the identified charger is a standard charger; if not, it identifies that the connected charger is a non-standard charger.
[Claim 15] 一种用电设备, 其特征在于, 包括: [Claim 15] A powered device, comprising:
阻态设置单元, 用于当检测到有充电器接入吋, 将用电设备的小 型通用串行总线 Mini_USB-A型接口的第二弓 I脚和第三引脚设置为 高阻态; 电压测量单元, 用于在所述阻态设置单元完成阻态设置之后, 对 测量点处的电压进行测量; 其中, 在用电设备的电源输出端与 Min i_USB-A型接口的第二引脚之间, 串联有分压电阻, 所述测量点位 于所接入充电器的 Mini_USB-B型接口与所述分压电阻之间; 识别单元, 用于根据所述电压测量单元的测量结果, 识别所接入 充电器的类型; a resistance state setting unit, configured to set a second bow pin and a third pin of the small universal serial bus Mini_USB-A type interface of the power device to a high impedance state when detecting that the charger is connected; a voltage measuring unit, configured to measure a voltage at the measuring point after the resistance state setting unit completes the resistance state setting; wherein, the second pin of the power supply output end of the power device and the Min i_USB-A type interface Between the series, there is a voltage dividing resistor, the measuring point is located between the Mini_USB-B type interface of the connected charger and the voltage dividing resistor; the identifying unit is configured to identify according to the measurement result of the voltage measuring unit The type of charger connected;
充电电流设置单元, 用于根据所述识别单元判断出所接入的充电 器类型, 设置用电设备的充电电流。  And a charging current setting unit, configured to determine, according to the identifying unit, the type of the connected charger, and set a charging current of the powered device.
[Claim 16] 根据权利要求 15所述的用电设备, 其特征在于, 所述在用电设备 的电源输出端与 Mini_USB-A型接口的第二引脚之间, 还串联有限 制回流装置, 用于限制电流流向所述电源输出端。 [Claim 16] The electric device according to claim 15, wherein the limiting current reflow device is further connected in series between the power output end of the electric device and the second pin of the Mini_USB-A type interface. Used to limit current flow to the power output.
[Claim 17] 根据权利要求 15所述的用电设备, 其特征在于, 所述识别单元, 包括: [Claim 17] The electric device according to claim 15, wherein the identification unit comprises:
第一识别子单元, 如果所述电压测量单元的测量结果为低电平, 则识别所接入的充电器为计算机;  a first identifying subunit, if the measurement result of the voltage measuring unit is a low level, identifying that the connected charger is a computer;
第二识别子单元, 如果所述电压测量单元的测量结果为高电平, 贝綱断所接入充电器的 Mini_USB-B型接口的第二引脚与第三引脚 是否短接; 如果是, 则识别所接入的充电器为标准充电器; 如果 否, 则识别所接入的充电器为非标准充电器。  a second identification subunit, if the measurement result of the voltage measurement unit is a high level, whether the second pin and the third pin of the Mini_USB-B type interface of the charger connected to the charger are short-circuited; , the identified charger is a standard charger; if not, it identifies that the connected charger is a non-standard charger.
PCT/CN2009/074627 2008-10-28 2009-10-27 Method and device for identifying type of charger WO2010048873A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810172556.3 2008-10-28
CN2008101725563A CN101398459B (en) 2008-10-28 2008-10-28 Method and device for identifying charger type

Publications (1)

Publication Number Publication Date
WO2010048873A1 true WO2010048873A1 (en) 2010-05-06

Family

ID=40517157

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/074627 WO2010048873A1 (en) 2008-10-28 2009-10-27 Method and device for identifying type of charger

Country Status (2)

Country Link
CN (1) CN101398459B (en)
WO (1) WO2010048873A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9502079B2 (en) 2011-02-01 2016-11-22 3M Innovative Properties Company Passive interface for an electronic memory device

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398459B (en) * 2008-10-28 2011-02-09 华为终端有限公司 Method and device for identifying charger type
CN101667166B (en) * 2009-09-25 2012-01-25 华为终端有限公司 Equipment identification method and device
CN101702146B (en) * 2009-11-02 2016-01-20 北京中星微电子有限公司 The method of distinguishing charger and data line of universal serial bus and unit
CN102288841B (en) * 2011-04-27 2014-04-16 株洲南车时代电气股份有限公司 Plug-in unit identification system and method of common testing interface
EP2700959B8 (en) 2011-05-30 2017-12-13 Huawei Device (Dongguan) Co., Ltd. Method and device for obtaining equipment identification information
CN102231543B (en) * 2011-06-28 2014-09-17 惠州Tcl移动通信有限公司 System capable of identifying charging capability of charger and charging method thereof
EP2713280B1 (en) * 2011-08-22 2017-02-22 Huawei Device Co., Ltd. Hand held device, usb charger, and method for hand held device to identify usb charger
KR20130063131A (en) * 2011-12-06 2013-06-14 삼성전자주식회사 Method and apparatus for configuring touch sensing parameter
US9312576B2 (en) 2012-02-15 2016-04-12 Htc Corporation Portable electronic devices capable of obtaining charging current value of charger and charging method thereof
CN102636709B (en) * 2012-03-28 2015-07-08 广东欧珀移动通信有限公司 Circuit capable of fast recognizing types of chargers and recognizing method for circuit
CN103776484A (en) * 2012-10-24 2014-05-07 华为技术有限公司 Sensor energy-saving method and sensor
DE102012021638A1 (en) * 2012-11-02 2014-05-08 Audi Ag Method for operating an electronic device, charging device for charging a battery of an electronic device and motor vehicles
CN103135018B (en) * 2013-01-30 2017-04-05 上海斐讯数据通信技术有限公司 Multi-functional analog charging measurement device
CN103138343A (en) * 2013-02-05 2013-06-05 福兴达科技实业(深圳)有限公司 Mobile device and charging method thereof
US9582054B2 (en) * 2013-06-17 2017-02-28 System General Corp. Method and apparatus for selecting the output of programmable power adapter
CN104242365B (en) * 2013-06-19 2019-01-04 深圳富泰宏精密工业有限公司 Portable electronic device and application method
CN103560556A (en) * 2013-10-30 2014-02-05 广东明创软件科技有限公司 Charging method with charging currents selected in gears and mobile terminal thereof
US10114401B2 (en) 2013-11-18 2018-10-30 Infineon Technologies Ag System and method for a serial bus interface
CN105553050B (en) * 2016-02-26 2018-10-23 宁波萨瑞通讯有限公司 A kind of adaptive charging method and system
CN106026228B (en) * 2016-05-26 2019-02-15 维沃移动通信有限公司 A kind of charging USB line, adapter and mobile terminal
CN107147188A (en) * 2017-06-29 2017-09-08 深圳来电科技有限公司 A kind of charging method of shared charging device and shared charging device
CN108182160A (en) * 2017-12-28 2018-06-19 北京守朴科技有限公司 General-purpose interface input signal automatic identifying method, device and signal handling equipment
CN108562789A (en) * 2018-06-13 2018-09-21 深圳市科陆精密仪器有限公司 A kind of split-core type meter identifying system
CN112460892A (en) * 2020-12-02 2021-03-09 四川虹美智能科技有限公司 Refrigerator control method, refrigerator and electronic equipment
CN116054304B (en) * 2022-07-14 2023-11-21 荣耀终端有限公司 Method, device and tablet computer for determining charging path

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11285159A (en) * 1998-03-26 1999-10-15 Toshiba Corp Charger and charging method for battery pack
US20020005707A1 (en) * 2000-05-26 2002-01-17 Kanji Kerai Battery charging
CN1632774A (en) * 2004-04-30 2005-06-29 山东新北洋信息技术股份有限公司 Identification method for USB interface equipment
US20050174094A1 (en) * 2004-02-11 2005-08-11 Research In Motion Limited, A Canadian Corporation Battery charger for portable devices and related methods
US20050228934A1 (en) * 2003-04-23 2005-10-13 Fujitsu Limited USB upstream device, USB connector, and USB cable
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN101267120A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Method for identifying power device and its circuit
CN101398459A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Method and device for identifying charger type

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11285159A (en) * 1998-03-26 1999-10-15 Toshiba Corp Charger and charging method for battery pack
US20020005707A1 (en) * 2000-05-26 2002-01-17 Kanji Kerai Battery charging
US20050228934A1 (en) * 2003-04-23 2005-10-13 Fujitsu Limited USB upstream device, USB connector, and USB cable
US20050174094A1 (en) * 2004-02-11 2005-08-11 Research In Motion Limited, A Canadian Corporation Battery charger for portable devices and related methods
CN1632774A (en) * 2004-04-30 2005-06-29 山东新北洋信息技术股份有限公司 Identification method for USB interface equipment
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN101267120A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Method for identifying power device and its circuit
CN101398459A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Method and device for identifying charger type

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9502079B2 (en) 2011-02-01 2016-11-22 3M Innovative Properties Company Passive interface for an electronic memory device

Also Published As

Publication number Publication date
CN101398459B (en) 2011-02-09
CN101398459A (en) 2009-04-01

Similar Documents

Publication Publication Date Title
WO2010048873A1 (en) Method and device for identifying type of charger
TWI360278B (en) Power source detection system, charger can provide
WO2022012488A1 (en) Vehicle detection method and apparatus, and detection device
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
US8756358B2 (en) Method and device for identifying universal serial bus (USB) insertion or charger insertion of mobile terminal
US8552691B2 (en) Charging circuit with function of avoiding battery pulling down voltage output from charging device and charging method thereof
US7728558B2 (en) Systems and methods for selectively changing current limit of a battery controller
EP3648285A1 (en) Mobile terminal, peripheral device and charging method therefor
US20160336779A1 (en) Charging Method, Alternating Current Adaptor, Charging Management Device and Terminal
US9559534B2 (en) Data cable for fast charging
US9018896B2 (en) Method and system for determining whether a portable device is charging
TW200424910A (en) Interface device for automatically determining peripherals and electronic device having such a function
JP2013109410A (en) Determination circuit
CN108461834B (en) Battery pack structure, mobile terminal and charge-discharge control method
WO2012174796A1 (en) Method, apparatus and system for charging battery
TW201520570A (en) Rechargeable battery temperature detection method, power management device and electronic system
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
WO2021217310A1 (en) Charging control circuit, charging control method and device, and storage medium
CN102375124A (en) Battery capacity test device
KR20140122495A (en) Battery pack and Method for controlling charge of the same
US20130103878A1 (en) Universal usb charger
CN214626428U (en) Charging device capable of displaying electric quantity percentage
TWI486827B (en) Mouse device
CN202916420U (en) Electric quantity detecting circuit of mobile power supply
CN113607297A (en) Temperature detection circuit and earphone

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: 09823065

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: 09823065

Country of ref document: EP

Kind code of ref document: A1