CN102684270B - Method for identifying type of universal serial bus (USB) chargers and USB device - Google Patents
- ️Wed Dec 10 2014
CN102684270B - Method for identifying type of universal serial bus (USB) chargers and USB device - Google Patents
Method for identifying type of universal serial bus (USB) chargers and USB device Download PDFInfo
-
Publication number
- CN102684270B CN102684270B CN201210175632.2A CN201210175632A CN102684270B CN 102684270 B CN102684270 B CN 102684270B CN 201210175632 A CN201210175632 A CN 201210175632A CN 102684270 B CN102684270 B CN 102684270B Authority
- CN
- China Prior art keywords
- charger
- usb
- type
- module
- pin Prior art date
- 2012-05-31 Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012545 processing Methods 0.000 claims description 27
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention provides a method for identifying the type of universal serial bus (USB) chargers and a USB device. The method comprises the step of reading and judging resistance values to ground of device identifying ID lead pins on the USB chargers connected with USB standard interfaces of the USB device so as to distinguish auxiliary charging adapters and other types of chargers. The other types of chargers include chargers which meet the existing charging standard and widely applied in the market, namely, charging downstream port chargers, standard downstream port chargers, special charging port chargers, I-type third-class chargers, II-type third-class chargers and III-type third-class chargers. Compared with the prior art, all of types of chargers including the auxiliary charging adapters can be basically distinguished by means of the method. In addition, the USB device is simple in logic and low in cost and facilitates popularization and application of products.
Description
技术领域 technical field
本发明属于USB充电器识别技术领域,尤其涉及一种识别USB充电器类型的方法及USB设备。The invention belongs to the technical field of USB charger identification, and in particular relates to a method for identifying the type of a USB charger and a USB device.
背景技术 Background technique
随着USB应用的不断拓展、以及利用USB接口进行充电的便携式终端中电池容量的增大和对充电时间的要求越来越苛刻,各种新型的USB充电器逐渐增多。而由于各种类型的USB充电器可提供的最大电流有所不同,在便携式终端连接任一USB充电接口以利用相应的USB充电器提供的电源工作或充电时,便携式终端需要识别出该USB充电器的类型,以获知需要从该USB充电器吸收的电流的大小,否则若出现过载,不仅会降低便携式终端中电池的使用寿命,还会对USB充电器造成损害。With the continuous expansion of USB applications, the increase of battery capacity in portable terminals using the USB interface for charging, and the increasingly stringent requirements for charging time, various new USB chargers are gradually increasing. Since the maximum current that various types of USB chargers can provide is different, when the portable terminal is connected to any USB charging interface to work or charge with the power provided by the corresponding USB charger, the portable terminal needs to identify the USB charging port. In order to know the size of the current that needs to be absorbed from the USB charger, otherwise, if there is an overload, it will not only reduce the service life of the battery in the portable terminal, but also cause damage to the USB charger.
目前,由充电规范1.1所规定的USB充电器主要有以下几类:At present, the USB chargers stipulated by the charging specification 1.1 mainly include the following categories:
标准下行端口(Standard Downstream Por,SDP)充电器:其是指符合现有USB2.0规范的标准类主机或集线器上的下行USB接口,具备最大电流为0.5A的充电能力和数据通信功能。连接SDP充电器的便携式终端在配置USB接口的正引脚D+为VDP_SRC电平时,SDP不会对该VDP_SRC电平产生回应,即是说,该USB接口的负引脚D-保持为低电平;同时,SDP能够在USB设备发起连接请求后,主动发起枚举操作。Standard Downstream Port (Standard Downstream Por, SDP) charger: It refers to the downstream USB interface on the standard host or hub that conforms to the existing USB2.0 specification, with a maximum current of 0.5A charging capability and data communication function. When the portable terminal connected to the SDP charger configures the positive pin D+ of the USB interface to be at the VDP_SRC level, the SDP will not respond to the VDP_SRC level, that is to say, the negative pin D- of the USB interface remains at a low level ; At the same time, the SDP can actively initiate an enumeration operation after the USB device initiates a connection request.
充电下行端口(Charging Downstream Port,CDP)充电器:其是最大充电电流可达5A的下行USB充电和数据通信接口。连接CDP充电器的便携式终端在配置USB接口的正引脚D+为VDP_SRC电平时,该USB接口的负引脚D-回馈一VDM_SRC电平,而当便携式终端配置USB接口的负引脚D-为VDM_SRC电平时,该USB接口的正引脚D+保持为低电平,同时,充电下行端口能够在USB设备发起连接请求后,主动发起枚举操作。Charging Downstream Port (CDP) charger: It is a downstream USB charging and data communication interface with a maximum charging current of up to 5A. When the portable terminal connected to the CDP charger configures the positive pin D+ of the USB interface to VDP_SRC level, the negative pin D- of the USB interface feeds back a VDM_SRC level, and when the portable terminal configures the negative pin D- of the USB interface to be When the VDM_SRC level is high, the positive pin D+ of the USB interface remains at a low level, and at the same time, the charging downstream port can actively initiate an enumeration operation after the USB device initiates a connection request.
专用充电端口充电器:其通过小于200欧姆的电路短路正引脚D+和负引脚D-而进行识别,充电电流大于1A。连接专用充电端口充电器的便携式终端在配置USB接口的正引脚D+为VDP_SRC电平时,该USB接口的负引脚D-回馈一VDM_SRC电平,在便携式终端配置USB接口的负引脚D-为VDM_SRC电平时,该USB接口的正引脚D+回馈一VDP_SRC电平。Dedicated charging port charger: It is identified by shorting the positive pin D+ and negative pin D- with a circuit less than 200 ohms, and the charging current is greater than 1A. When the portable terminal connected to the dedicated charging port charger configures the positive pin D+ of the USB interface to VDP_SRC level, the negative pin D- of the USB interface will feed back a VDM_SRC level, and the negative pin D- of the USB interface is configured on the portable terminal. When it is VDM_SRC level, the positive pin D+ of the USB interface feeds back a VDP_SRC level.
同时,基于USB接口的未来应用,充电规范1.1/1.2还引入了辅助充电适配器(Accessory Charger Adapter,ACA)的概念,并增加了A型辅助充电适配器ACA-A、B型辅助充电适配器ACA-B、C型辅助充电适配器ACA-C、和底座型辅助充电适配器ACA-Dock。At the same time, based on the future application of the USB interface, the charging specification 1.1/1.2 also introduces the concept of the auxiliary charging adapter (ACA), and adds A-type auxiliary charging adapter ACA-A, B-type auxiliary charging adapter ACA-B , Type C Auxiliary Charging Adapter ACA-C, and Dock Type Auxiliary Charging Adapter ACA-Dock.
除此之外,目前市场上还有充电电流能力介于[0.5A,0.9A]之间的第三类充电器。而第三类充电器又有以下几类:In addition, there are third types of chargers with charging current capabilities between [0.5A, 0.9A] on the market. The third type of charger has the following categories:
Ⅰ型第三类充电器:其正引脚D+和负引脚D-断开。当连接Ⅰ型第三类充电器的便携式终端在配置USB接口的正引脚D+为VDP_SRC电平时,该USB接口的负引脚D-保持为低电平;同时,Ⅰ型第三类充电器不能够在连接后发起枚举。Type I type III charger: its positive pin D+ and negative pin D- are disconnected. When the portable terminal connected to the Type I Type III charger configures the positive pin D+ of the USB interface to be at the VDP_SRC level, the negative pin D- of the USB interface remains at a low level; at the same time, the Type I Type III charger Cannot initiate enumeration after connection.
Ⅱ型第三类充电器:其在上电后,正引脚D+达到VDP_SRC电平的同时,负引脚D-达到VDM_SRC电平。Type II type III charger: After power-on, when the positive pin D+ reaches the VDP_SRC level, the negative pin D- reaches the VDM_SRC level.
Ⅲ型第三类充电器:连接Ⅲ型第三类充电器的便携式终端在配置USB接口的正引脚D+为VDP_SRC电平时,该USB接口的负引脚D-回馈一VDM_SRC电平,在便携式终端配置USB接口的负引脚D-为VDM_SRC电平时,该USB接口的正引脚D+回馈一VDP_SRC电平。Type III charger: When the portable terminal connected to Type III charger configures the positive pin D+ of the USB interface to VDP_SRC level, the negative pin D- of the USB interface will feed back a VDM_SRC level. When the terminal configures the negative pin D- of the USB interface to be at the VDM_SRC level, the positive pin D+ of the USB interface will feed back a VDP_SRC level.
为实现对目前USB充电器类型的识别及充电,现有技术提供了一种识别USB充电器类型的系统,图1示出了内置有管理电源的处理单元的便携式终端中,用于充电及数据传输系统的典型结构。此时,便携式终端可利用该处理单元配置USB数据收发单元,进而实现USB充电器的接口类型识别和电流选择,之后通过配置充电模块,完成对充电电池的充电。In order to realize the identification and charging of the current USB charger type, the prior art provides a system for identifying the USB charger type. Figure 1 shows a portable terminal with a built-in processing unit for power management, which is used for charging and data Typical structure of a transmission system. At this time, the portable terminal can use the processing unit to configure the USB data transceiver unit, and then realize the interface type identification and current selection of the USB charger, and then complete the charging of the rechargeable battery by configuring the charging module.
图2示出了图1的一种实现电路。此时,该识别USB充电器类型的系统是通过终端中控制器逻辑模块检测USB插入中断和USB充电器插入中断的触发情况来识别USB充电器类型的:如果两个中断均被触发,则确定终端处于USB充电器插入状态,启动USB充电器充电流程;如果仅有USB插入中断被触发,则确定终端处于USB数据线插入状态,启动充电流程,并进行USB数据的传输。然而,现有技术提供的该识别USB充电器类型的系统仅能识别专用充电端口充电器和SDP充电器,而无法实现对辅助充电适配器的识别。FIG. 2 shows an implementation circuit of FIG. 1 . At this time, the system for identifying the USB charger type identifies the USB charger type by detecting the triggering of the USB plug-in interrupt and the USB charger plug-in interrupt by the controller logic module in the terminal: if both interrupts are triggered, then determine The terminal is in the USB charger plug-in state, and starts the USB charger charging process; if only the USB plug-in interrupt is triggered, then it is determined that the terminal is in the USB data line plug-in state, starts the charging process, and transmits USB data. However, the system for identifying the type of USB charger provided by the prior art can only identify the dedicated charging port charger and the SDP charger, but cannot realize the identification of the auxiliary charging adapter.
发明内容 Contents of the invention
本发明实施例的目的在于提供一种识别USB充电器类型的方法,旨在解决现有技术提供的识别USB充电器类型的系统通过检测USB插入中断和USB充电器插入中断的触发情况来识别类型,无法实现对辅助充电适配器的识别的问题。The purpose of the embodiment of the present invention is to provide a method for identifying the type of USB charger, aiming to solve the problem of identifying the type of USB charger provided by the prior art by detecting the triggering of USB insertion interruption and USB charger insertion interruption to identify the type , the problem of being unable to realize the identification of the auxiliary charging adapter.
本发明实施例是这样实现的,一种识别USB充电器类型的方法,所述方法包括:The embodiment of the present invention is implemented in this way, a method for identifying the type of USB charger, the method comprising:
读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值;Read the resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device to ground;
判断读取的所述对地电阻值是否大于220kΩ,当读取的所述对地电阻值不大于220kΩ时,识别所述USB充电器是辅助类型的充电适配器,其中,所述辅助类型的充电适配器包括A型辅助充电适配器、B型辅助充电适配器、C型辅助充电适配器和底座型辅助充电适配器。Judging whether the read resistance to ground is greater than 220kΩ, when the resistance to ground is not greater than 220kΩ, identifying that the USB charger is an auxiliary type charging adapter, wherein the auxiliary type of charging Adapters include A-type auxiliary charging adapters, B-type auxiliary charging adapters, Type-C auxiliary charging adapters, and dock-type auxiliary charging adapters.
本发明实施例的另一目的在于提供一种USB设备,所述USB设备包括USB数据收发单元、USB标准接口、连接充电电池的充电模块、处理单元,所述处理单元包括:Another object of the embodiments of the present invention is to provide a USB device. The USB device includes a USB data transceiver unit, a USB standard interface, a charging module connected to a rechargeable battery, and a processing unit. The processing unit includes:
第一读取模块,用于通过所述USB数据收发单元读取与USB设备的USB标准接口连接的USB充电器上设备识别引脚的对地电阻值;The first reading module is used to read the resistance value to ground of the device identification pin on the USB charger connected to the USB standard interface of the USB device through the USB data transceiving unit;
连接所述第一读取模块的第一识别模块,用于判断所述第一读取模块读取的所述对地电阻值是否大于220kΩ,当所述第一读取模块读取的所述对地电阻值不大于220kΩ时,识别所述USB充电器是辅助类型的充电适配器,其中,所述辅助类型的充电适配器包括A型辅助充电适配器、B型辅助充电适配器、C型辅助充电适配器和底座型辅助充电适配器。The first identification module connected to the first reading module is used to judge whether the ground resistance value read by the first reading module is greater than 220kΩ, when the first reading module reads the When the ground resistance value is not greater than 220kΩ, it is identified that the USB charger is an auxiliary type charging adapter, wherein the auxiliary type charging adapter includes A-type auxiliary charging adapter, B-type auxiliary charging adapter, C-type auxiliary charging adapter and Dock type auxiliary charging adapter.
本发明实施例提供的识别USB充电器类型的方法及USB设备是通过读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值并对该对地电阻值的判断,来将辅助充电适配器与其它类型充电器区分开的,该其它类型充电器涵盖了现有充电规范及市场上广泛应用充电器类型,包括:充电下行端口充电器,标准下行端口充电器,专用充电端口充电器,Ⅰ型第三类充电器,Ⅱ型第三类充电器,以及Ⅲ型第三类充电器,相对于现有技术,可以将辅助充电适配器与其它类型充电器区分开,同时,该应用了该方法的USB设备逻辑简单、成本低,利用产品的推广及应用。The method for identifying the type of the USB charger and the USB device provided by the embodiment of the present invention is to read the resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device and compare the resistance value to the ground. To distinguish the auxiliary charging adapter from other types of chargers, the other types of chargers cover the existing charging specifications and widely used charger types in the market, including: charging downstream port chargers, standard downstream port chargers , dedicated charging port chargers, Type I Type III chargers, Type II Type III chargers, and Type III Type III chargers, compared to the prior art, the auxiliary charging adapter can be distinguished from other types of chargers , meanwhile, the USB device applying the method has simple logic and low cost, and can be popularized and applied by utilizing the product.
附图说明 Description of drawings
图1是现有技术提供的内置有管理电源的处理单元的便携式终端中,用于充电及数据传输系统的典型结构图;FIG. 1 is a typical structural diagram of a charging and data transmission system in a portable terminal provided in the prior art with a built-in processing unit for power management;
图2是图1的一种电路图;Fig. 2 is a kind of circuit diagram of Fig. 1;
图3是应用本发明实施例提供的识别USB充电器类型的方法的USB设备与其可识别的USB充电器的电路图;3 is a circuit diagram of a USB device applying the method for identifying the type of a USB charger provided by an embodiment of the present invention and its identifiable USB charger;
图4是本发明实施例提供的识别USB充电器类型的方法的流程图;FIG. 4 is a flowchart of a method for identifying a USB charger type provided by an embodiment of the present invention;
图5是本发明优选实施例提供的识别USB充电器类型的方法的流程图;Fig. 5 is a flowchart of a method for identifying a USB charger type provided by a preferred embodiment of the present invention;
图6是图3中处理单元的结构图。FIG. 6 is a structural diagram of the processing unit in FIG. 3 .
具体实施方式 Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
与现有其它类型的USB充电器不同,辅助充电适配器中的USB接口在正引脚D+、负引脚D-、电压引脚VBUS之外,还包括一设备识别ID引脚,本发明实施例提供的识别USB充电器类型的方法是通过读取设备识别ID引脚的对地电阻值并对该对地电阻值进行判断,来将辅助充电适配器与其它类型充电器区分开的。Different from other existing USB chargers, the USB interface in the auxiliary charging adapter includes a device identification ID pin in addition to the positive pin D+, the negative pin D-, and the voltage pin VBUS. The provided method for identifying the type of USB charger is to distinguish the auxiliary charging adapter from other types of chargers by reading the resistance value of the device identification ID pin to ground and judging the resistance value to ground.
如图3所示,USB设备利用本发明实施例提供的识别USB充电器类型的方法,可以识别出的USB充电器类型包括底座型辅助充电适配器ACA-Dock,作为一般型辅助充电适配器的A型辅助充电适配器ACA-A、B型辅助充电适配器ACA-B和C型辅助充电适配器ACA-C,充电下行端口充电器,标准下行端口充电器,专用充电端口充电器,Ⅰ型第三类充电器,Ⅱ型第三类充电器,以及Ⅲ型第三类充电器。As shown in Figure 3, the USB device uses the method for identifying the type of USB charger provided by the embodiment of the present invention. The types of USB chargers that can be identified include the base type auxiliary charging adapter ACA-Dock, and the A-type ACA-Dock as a general auxiliary charging adapter. Auxiliary charging adapter ACA-A, type B auxiliary charging adapter ACA-B and type C auxiliary charging adapter ACA-C, charging downstream port charger, standard downstream port charger, dedicated charging port charger, type I third type charger , Type II Type III chargers, and Type III Type III chargers.
如图4示出了本发明实施例提供的识别USB充电器类型的方法的流程。FIG. 4 shows the flow of the method for identifying the type of the USB charger provided by the embodiment of the present invention.
在步骤S101中:读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值;In step S101: read the resistance value to ground of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device;
在步骤S102中,判断读取的对地电阻值是否大于220kΩ,当读取的对地电阻值不大于220kΩ时,识别USB充电器是辅助类型的充电适配器,当读取的对地电阻值大于220kΩ时,识别USB充电器是其它类型的充电器。其中,辅助类型的充电适配器包括A型辅助充电适配器ACA-A、B型辅助充电适配器ACA-B、C型辅助充电适配器ACA-C和底座型辅助充电适配器ACA-Dock;其它类型的充电器可以是充电下行端口充电器、标准下行端口充电器、专用充电端口充电器、Ⅰ型第三类充电器、Ⅱ型第三类充电器、或Ⅲ型第三类充电器。In step S102, it is judged whether the read resistance to ground is greater than 220kΩ. When the resistance to ground is not greater than 220kΩ, the USB charger is identified as an auxiliary charging adapter. When the resistance to ground is greater than When 220kΩ, identify the USB charger as other types of chargers. Among them, auxiliary charging adapters include A-type auxiliary charging adapter ACA-A, B-type auxiliary charging adapter ACA-B, C-type auxiliary charging adapter ACA-C and dock-type auxiliary charging adapter ACA-Dock; other types of chargers can be It is a charging downlink port charger, a standard downlink port charger, a dedicated charging port charger, a Type I Type III charger, a Type II Type III charger, or a Type III Type III charger.
若识别USB充电器是辅助充电适配器,则在步骤S102之后,还可以包括以下步骤:当读取的对地电阻值介于[122kΩ,126kΩ]之间时,识别USB充电器是A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock;当读取的对地电阻值介于[67kΩ,69kΩ]之间时,识别USB充电器是B型辅助充电适配器ACA-B;当读取的对地电阻值介于[36kΩ,37kΩ]之间时,识别USB充电器是C型辅助充电适配器ACA-C。。If it is identified that the USB charger is an auxiliary charging adapter, after step S102, the following steps may also be included: when the read resistance value to ground is between [122kΩ, 126kΩ], identifying that the USB charger is an A-type auxiliary charging Adapter ACA-A or dock type auxiliary charging adapter ACA-Dock; when the read resistance value to ground is between [67kΩ, 69kΩ], identify the USB charger as type B auxiliary charging adapter ACA-B; when reading When the resistance value to ground is between [36kΩ, 37kΩ], the USB charger is recognized as a type-C auxiliary charging adapter ACA-C. .
此时,当识别USB充电器是A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock时,为了进一步实现对A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock的识别,本发明实施例在识别USB充电器是A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock的步骤之后,还可以包括以下步骤:向USB数据收发单元配置第一控制信号;在配置第一控制信号后,通过USB数据收发单元读取USB标准接口上负引脚D-的电平;若读取的负引脚的电平D-达到负引脚电压源电压VDM_SRC,则识别USB充电器是底座型辅助充电适配器ACA-Dock,否则识别USB充电器是A型辅助充电适配器ACA-A。At this time, when it is recognized that the USB charger is A-type auxiliary charging adapter ACA-A or dock-type auxiliary charging adapter ACA-Dock, in order to further realize the A-type auxiliary charging adapter ACA-A or dock-type auxiliary charging adapter ACA-Dock Identifying, after the step of identifying that the USB charger is an A-type auxiliary charging adapter ACA-A or a base-type auxiliary charging adapter ACA-Dock, the embodiment of the present invention may further include the following steps: configuring the first control signal to the USB data transceiving unit; After configuring the first control signal, read the level of the negative pin D- on the USB standard interface through the USB data transceiver unit; if the read level D- of the negative pin reaches the negative pin voltage source voltage VDM_SRC, then The identification USB charger is the dock type auxiliary charging adapter ACA-Dock, otherwise the identification USB charger is the A type auxiliary charging adapter ACA-A.
若识别USB充电器是其它类型的充电器,则在步骤S102之后,还可以包括以下步骤:在USB设备和USB充电器的USB数据线的正引脚和D+和负引脚D-已经连接后,向USB数据收发单元配置第二控制信号,使得USB标准接口上正引脚D+为正引脚电流源电流IDP_SRC,并设定定时中断和USB数据线连接中断;在正引脚D+保持为低电平的时间超过预定时间时发出USB数据线连接中断,或者在定时时间达到预设时间时发出定时中断;根据发出的USB数据线连接中断或者定时中断向USB设备的USB数据收发单元配置第三控制信号;在配置第三控制信号后,通过USB数据收发单元读取该USB设备的USB标准接口上正引脚D+的电平和负引脚D-的电平;若读取的正引脚D+的电平达到正引脚电压源电压VDP_SRC,且负引脚的电平D-达到负引脚电压源电压VDM_SRC,则识别USB充电器是Ⅱ型第三类充电器;否则识别与该USB设备连接的USB充电器是除了Ⅱ型第三类充电器和辅助充电适配器之外的其它类型充电器,如SDP充电器、CDP充电器、专用充电端口充电器、其它型的第三类充电器等。If it is recognized that the USB charger is another type of charger, after step S102, the following steps may also be included: after the positive pin and D+ and negative pin D- of the USB data line of the USB device and the USB charger have been connected , configure the second control signal to the USB data transceiver unit, so that the positive pin D+ on the USB standard interface is the positive pin current source current IDP_SRC, and set the timing interruption and USB data line connection interruption; the positive pin D+ is kept low When the time of the level exceeds the predetermined time, the USB data line connection interruption is sent, or when the timing time reaches the preset time, a timing interruption is sent; according to the USB data line connection interruption or timing interruption sent, the third Control signal; after configuring the third control signal, read the level of the positive pin D+ and the level of the negative pin D- on the USB standard interface of the USB device through the USB data transceiver unit; if the read positive pin D+ If the level of the voltage reaches the positive pin voltage source voltage VDP_SRC, and the level D- of the negative pin reaches the negative pin voltage source voltage VDM_SRC, then the USB charger is identified as a Type II Type III charger; otherwise, it is identified as the USB device The connected USB chargers are other types of chargers except Type II Type III chargers and auxiliary charging adapters, such as SDP chargers, CDP chargers, dedicated charging port chargers, other types of Type III chargers, etc. .
在识别出USB充电器是Ⅱ型第三类充电器后,由于对于Ⅱ型第三类充电器,其又包括两种类型:一种是具备至少1A充电电流能力的标准类Ⅱ型第三类充电器,另一种是达不到1A充电电流能力的非标准类Ⅱ型第三类充电器,为此,本发明实施例在识别与该USB设备连接的USB充电器是Ⅱ型第三类充电器的步骤之后,还可以包括以下步骤:向USB数据收发单元配置第四控制信号,使得USB标准接口上正引脚D+对3.3V电源阻值范围为1.4kΩ-3.1kΩ之间,并使得USB标准接口上正引脚D+和负引脚D-对的地阻值范围均为14kΩ-25kΩ之间;在配置第四控制信号后,向USB数据收发单元配置第五控制信号;在配置第五控制信号后,读取反映USB标准接口上正引脚D+电平的第一寄存器值AD+和反映负引脚D-电平的第二寄存器值AD-;若读取的第一寄存器值AD+与第二寄存器值AD-的值均表示为高电平,则识别该Ⅱ型第三类充电器为标准类Ⅱ型第三类充电器,若第一寄存器值AD+的值表示为高电平而第二寄存器值AD-的值表示为低电平,则识别该Ⅱ型第三类充电器为非标准类Ⅱ型第三类充电器。After recognizing that the USB charger is a Type II Type III charger, it includes two types for the Type II Type III charger: one is a standard Type II Type III charger with at least 1A charging current capability The charger, the other is a non-standard Type II Type III charger with a charging current capacity of less than 1A. For this reason, the embodiment of the present invention recognizes that the USB charger connected to the USB device is a Type II Type III charger. After the step of the charger, the following steps may also be included: configuring the fourth control signal to the USB data transceiver unit, so that the positive pin D+ on the USB standard interface has a resistance range of 1.4kΩ-3.1kΩ to the 3.3V power supply, and makes The ground resistance range of the positive pin D+ and the negative pin D- on the USB standard interface is between 14kΩ-25kΩ; after configuring the fourth control signal, configure the fifth control signal to the USB data transceiver unit; After five control signals, read the first register value AD+ reflecting the positive pin D+ level on the USB standard interface and the second register value AD- reflecting the negative pin D- level; if the read first register value AD+ Both the value of AD- and the value of the second register indicate a high level, then the Type II Type III charger is identified as a standard Type II Type III charger, and if the value of the first register value AD+ indicates a high level And the value of the second register value AD- indicates a low level, which identifies the Type II Type III charger as a non-standard Type II Type III charger.
若为了在识别与该USB设备连接的USB充电器是除了Ⅱ型第三类充电器和辅助充电适配器之外的其它类型充电器的步骤之后,进一步实现对CDP充电器的识别,本发明实施例在识别与该USB设备连接的USB充电器是除了Ⅱ型第三类充电器和辅助充电适配器之外的其它类型充电器的步骤之后,还可以包括以下步骤:向USB数据收发单元配置第六控制信号,使得USB标准接口上正引脚D+拉高至正引脚电压源电压VDP_SRC;在配置第六控制信号后,通过USB数据收发单元读取USB标准接口上负引脚D-的电平;若读取的负引脚D-的电平为负引脚电压源电压VDM _SRC,则识别其它类型充电器是CDP充电器、专用充电端口充电器或Ⅲ型第三类充电器,否则识别其它类型充电器是SDP充电器和Ⅰ型第三类充电器;当识别其它类型充电器是CDP充电器、专用充电端口充电器或Ⅲ型第三类充电器时,向USB数据收发单元配置第七控制信号,使得USB标准接口上负引脚D-拉高至负引脚电压源电压VDM_SRC;在配置第七控制信号后,通过USB数据收发单元读取USB标准接口上正引脚D+的电平;若读取的正引脚D+的电平为正引脚电压源电压VDP_SRC,则识别USB充电器是专用充电端口充电器或Ⅲ型第三类充电器,否则识别USB充电器是CDP充电器;若识别USB充电器是CDP充电器时,在判断数据传输状态后,对USB设备的充电模块的充电电流进行配置,使得充电模块的充电电流达到CDP充电器可允许的电流值。In order to further realize the identification of the CDP charger after the step of identifying that the USB charger connected to the USB device is a charger of other types except Type II third-class chargers and auxiliary charging adapters, the embodiment of the present invention After the step of identifying that the USB charger connected to the USB device is a charger of a type other than a type II third type charger and an auxiliary charging adapter, the following step may also be included: configuring the sixth control to the USB data transceiving unit signal, so that the positive pin D+ on the USB standard interface is pulled up to the positive pin voltage source voltage VDP_SRC; after the sixth control signal is configured, the level of the negative pin D- on the USB standard interface is read through the USB data transceiver unit; If the level of the negative pin D- read is the negative pin voltage source voltage VDM _SRC, then identify other types of chargers as CDP chargers, special charging port chargers or Type III third-type chargers, otherwise identify other types Type chargers are SDP chargers and Type I Type III chargers; when identifying other types of chargers as CDP chargers, dedicated charging port chargers, or Type III Type III chargers, configure the seventh The control signal makes the negative pin D- on the USB standard interface pulled up to the negative pin voltage source voltage VDM_SRC; after configuring the seventh control signal, read the level of the positive pin D+ on the USB standard interface through the USB data transceiver unit ; If the level of the positive pin D+ read is the positive pin voltage source voltage VDP_SRC, then identify the USB charger as a dedicated charging port charger or a type III third-type charger, otherwise identify the USB charger as a CDP charger ; If it is identified that the USB charger is a CDP charger, after judging the data transmission status, the charging current of the charging module of the USB device is configured so that the charging current of the charging module reaches the allowable current value of the CDP charger.
此时,为了进一步实现对专用充电端口充电器和Ⅲ型第三类充电器的识别,本发明实施例在识别USB充电器是专用充电端口充电器或Ⅲ型第三类充电器后,还包括以下步骤:按照专用充电端口充电器配置充电模块的充电电流;在配置充电电流后,接收充电模块发送的指示USB标准接口上电压引脚VBUS电压值的电压指示信号,若接收到的该电压指示信号指示USB标准接口上电压引脚VBUS的电压低于充电模块的内置阈值,则识别USB充电器是Ⅲ型第三类充电器,否则识别USB充电器是专用充电端口充电器。At this time, in order to further realize the identification of the dedicated charging port charger and the Type III Type III charger, the embodiment of the present invention further includes The following steps: Configure the charging current of the charging module according to the special charging port charger; after configuring the charging current, receive the voltage indication signal sent by the charging module indicating the voltage value of the voltage pin VBUS on the USB standard interface, if the received voltage indication If the signal indicates that the voltage of the voltage pin VBUS on the USB standard interface is lower than the built-in threshold of the charging module, then the USB charger is identified as a type III type III charger; otherwise, the USB charger is identified as a dedicated charging port charger.
若识别其它类型充电器是SDP充电器和Ⅰ型第三类充电器,为了进一步实现对SDP充电器和Ⅰ型第三类充电器的识别,本发明实施例在识别其它类型充电器是SDP充电器和Ⅰ型第三类充电器的步骤之后,还可以包括以下步骤:向USB数据收发单元配置第八控制信号,以控制USB数据收发单元建立与USB充电器的连接及枚举;若USB数据收发单元枚举成功,则识别USB充电器是SDP充电器,否则识别USB充电器是Ⅰ型第三类充电器。If it is identified that other types of chargers are SDP chargers and Type I third-type chargers, in order to further realize the identification of SDP chargers and Type I third-type chargers, the embodiment of the present invention recognizes that other types of chargers are SDP chargers. After the steps of the type I charger and the third type charger, the following steps may also be included: configuring the eighth control signal to the USB data transceiver unit to control the USB data transceiver unit to establish a connection and enumeration with the USB charger; if the USB data If the enumeration of the transceiver unit is successful, the USB charger is identified as an SDP charger; otherwise, the USB charger is identified as a Type I Type III charger.
进一步地,由于USB充电器在插入后,USB设备的充电电池可能由于电池耗尽或电量过低而无法保证最基本的类型识别过程,为此,本发明实施例在通过USB数据收发单元读取反映USB标准接口上设备识别引脚ID的寄存器值Rid的步骤之前,还可以包括以下步骤:在插入USB充电器后,接收充电模块发送的指示USB标准接口上电压引脚VBUS电压值的电压指示信号;当接收到的该电压指示信号指示USB标准接口上电压引脚VBUS的电压高于充电模块的内置阈值时,读取存储的充电电池电量;若读取的充电电池电量小于或等于第一预设值,则向USB数据收发单元配置第九控制信号,使得正引脚D+的电平为正引脚电压源电压VDP_SRC;在配置第九控制信号后,控制充电模块以无电电池充电机制(Dead Battery Provision,DBP)对充电电池进行小电流充电,同时以轮询方式实时读取存储的充电电池电量,直到充电电池电量达到第二预设值时,控制充电模块以停止对充电电池的充电,并执行读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值的步骤,而若读取的充电电池电量大于第一预设值时,直接执行读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值的步骤。Further, since the USB charger is plugged in, the rechargeable battery of the USB device may not be able to guarantee the most basic type identification process due to battery exhaustion or low power. Before the step of reflecting the register value Rid of the device identification pin ID on the USB standard interface, the following steps may also be included: after the USB charger is inserted, receive the voltage indication sent by the charging module to indicate the voltage value of the voltage pin VBUS on the USB standard interface signal; when the received voltage indication signal indicates that the voltage of the voltage pin VBUS on the USB standard interface is higher than the built-in threshold of the charging module, read the stored rechargeable battery power; if the read rechargeable battery power is less than or equal to the first The default value, then configure the ninth control signal to the USB data transceiver unit, so that the level of the positive pin D+ is the positive pin voltage source voltage VDP_SRC; after configuring the ninth control signal, control the charging module to charge the battery without power (Dead Battery Provision, DBP) charges the rechargeable battery with a small current, and at the same time reads the stored rechargeable battery power in real time in a polling manner, until the rechargeable battery power reaches the second preset value, controls the charging module to stop charging the rechargeable battery Charging, and execute the step of reading the resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device, and if the read rechargeable battery power is greater than the first preset value, directly execute The step of reading the resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device to ground.
本发明实施例中,第一控制信号、第二控制信号、第三控制信号、第四控制信号、第五控制信号、第六控制信号、第七控制信号、第八控制信号、第九控制信号理解为信号执行顺序,其中的一个或多个均可由同一信号线发出或接收。In the embodiment of the present invention, the first control signal, the second control signal, the third control signal, the fourth control signal, the fifth control signal, the sixth control signal, the seventh control signal, the eighth control signal, and the ninth control signal It is understood as the signal execution sequence, one or more of which can be sent or received by the same signal line.
为了使得上述识别USB充电器类型的方法更加明晰,下面以利用该识别USB充电器类型的方法识别底座型辅助充电适配器ACA-Dock、A型辅助充电适配器ACA-A、B型辅助充电适配器ACA-B、C型辅助充电适配器ACA-C、充电下行端口充电器、标准下行端口充电器、专用充电端口充电器、Ⅰ型第三类充电器、Ⅱ型第三类充电器、以及Ⅲ型第三类充电器为例,进行详细说明,如图5所示:In order to make the above-mentioned method of identifying the type of USB charger more clear, the method of identifying the type of USB charger is used to identify the base-type auxiliary charging adapter ACA-Dock, A-type auxiliary charging adapter ACA-A, and B-type auxiliary charging adapter ACA- B. Type C auxiliary charging adapter ACA-C, charging downlink port charger, standard downlink port charger, dedicated charging port charger, type I third type charger, type II third type charger, and type III third type charger Taking a similar charger as an example, it will be described in detail, as shown in Figure 5:
在步骤S201中,在USB设备与USB充电器连接后,接收指示USB设备的USB标准接口上电压引脚VBUS的电压值的电压指示信号。In step S201, after the USB device is connected to the USB charger, a voltage indication signal indicating the voltage value of the voltage pin VBUS on the USB standard interface of the USB device is received.
在步骤S202中,判断该电压引脚电压值是否高于USB设备的充电模块的内置阈值,是则执行步骤S203,否则返回开始,执行步骤S201。In step S202, it is judged whether the voltage value of the voltage pin is higher than the built-in threshold of the charging module of the USB device, if yes, execute step S203, otherwise, return to the beginning, and execute step S201.
在步骤S203中,读取存储的充电电池电量。In step S203, the stored rechargeable battery power is read.
在步骤S204中,判断读取的充电电池电量是否小于或等于第一预设值,是则执行步骤S205,否则执行步骤S207。In step S204, it is judged whether the read electric quantity of the rechargeable battery is less than or equal to the first preset value, if yes, execute step S205, otherwise execute step S207.
在步骤S205中,向USB数据收发单元配置配置第九控制信号。In step S205, configure the ninth control signal to the USB data transceiving unit.
在步骤S206中,在配置第九控制信号后,对充电电池进行小电流充电。In step S206, after the ninth control signal is configured, the rechargeable battery is charged with a small current.
在步骤S207中,读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值。In step S207, the resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device to ground is read.
在步骤S208中,判断读取的对地电阻值是否大于220kΩ,否则执行步骤S209、步骤S211或步骤S213,是则执行步骤S219。In step S208, it is judged whether the read resistance to ground is greater than 220 kΩ, otherwise step S209, step S211 or step S213 is executed, and if yes, step S219 is executed.
在步骤S209中,若读取的对地电阻值介于[122kΩ,126kΩ]之间,则执行步骤S210。In step S209, if the read resistance value to ground is between [122kΩ, 126kΩ], step S210 is executed.
在步骤S210中,识别USB充电器是A型辅助充电适配ACA-A或底座型辅助充电适配器ACA-Dock。In step S210, it is identified that the USB charger is A-type auxiliary charging adapter ACA-A or docking type auxiliary charging adapter ACA-Dock.
在步骤S211中,若读取的对地电阻值介于[67kΩ,69kΩ]之间,则执行步骤S212。In step S211, if the read resistance value to ground is between [67kΩ, 69kΩ], step S212 is executed.
在步骤S212中,识别USB充电器是B型辅助充电适配ACA-B。In step S212, it is identified that the USB charger is type B auxiliary charging adaptation ACA-B.
在步骤S213中,若读取的对地电阻值介于[36kΩ,37kΩ]之间,则执行步骤S214。In step S213, if the read resistance value to ground is between [36kΩ, 37kΩ], step S214 is executed.
在步骤S214中,识别USB充电器是C型辅助充电适配ACA-C。In step S214, it is identified that the USB charger is type-C auxiliary charging adaptation ACA-C.
在步骤S215中,在执行步骤S210后,向USB数据收发单元配置第一控制信号。In step S215, after performing step S210, configure the first control signal to the USB data transceiving unit.
在步骤S216中,判断负引脚D-的电平是否达到负引脚电压源电压VDM_SRC,是则执行步骤S218,否则执行步骤S217。In step S216, it is determined whether the level of the negative pin D- reaches the negative pin voltage source voltage VDM_SRC, if yes, execute step S218, otherwise execute step S217.
在步骤S217中,识别USB充电器是A型辅助充电适配ACA-A。In step S217, it is identified that the USB charger is A-type auxiliary charging adapter ACA-A.
在步骤S218中,识别USB充电器是底座型辅助充电适配器ACA-Dock。In step S218, it is identified that the USB charger is a dock type auxiliary charging adapter ACA-Dock.
在步骤S219中,向USB数据收发单元配置配置第二控制信号,并设定定时中断和USB数据线连接中断。In step S219, configure the second control signal to the USB data transceiving unit, and set the timer interruption and USB data line connection interruption.
在步骤S220中,在正引脚D+保持为低电平的时间超过预定时间时发出USB数据线连接中断,或者在定时时间达到预设时间时发出定时中断。In step S220, a USB data line connection interruption is issued when the positive pin D+ remains at a low level for more than a predetermined time, or a timing interruption is issued when the timing time reaches a preset time.
在步骤S221中,根据发出的USB数据线连接中断或定时中断,向USB数据收发单元配置配置第三控制信号。In step S221, a third control signal is configured to the USB data transceiving unit according to the issued USB data line connection interruption or timing interruption.
在步骤S222中,在配置第三控制信号后,读取正引脚D+的电平和负引脚D-的电平。In step S222, after the third control signal is configured, the level of the positive pin D+ and the level of the negative pin D- are read.
在步骤S223中,判断正引脚D+的电平是否达到正引脚电压源电压VDP_SRC,且负引脚D-的电平达到负引脚电压源电压VDM_SRC,是则执行步骤S224,否则执行步骤S225。In step S223, it is judged whether the level of the positive pin D+ reaches the positive pin voltage source voltage VDP_SRC, and the level of the negative pin D- reaches the negative pin voltage source voltage VDM_SRC, if yes, execute step S224, otherwise execute step S225.
在步骤S224中,识别USB充电器是Ⅱ型第三类充电器。In step S224, it is identified that the USB charger is a type II type III charger.
在步骤S225中,向USB数据收发单元配置配置第六控制信号,并读取负引脚D-的电平。In step S225, configure the sixth control signal to the USB data transceiving unit, and read the level of the negative pin D-.
在步骤S226中,在执行步骤S224后,向USB数据收发单元配置配置第四控制信号。In step S226, after step S224 is executed, a fourth control signal is configured to the USB data transceiving unit.
在步骤S227中,在配置第四控制信号后,向USB数据收发单元配置配置第五控制信号,读取反映USB标准接口上正引脚D+电平的第一寄存器值AD+和反映负引脚D-电平的第二寄存器值AD-。In step S227, after configuring the fourth control signal, configure the fifth control signal to the USB data transceiver unit, and read the first register value AD+ reflecting the level of the positive pin D+ on the USB standard interface and reflecting the level of the negative pin D - The second register value AD- of the level.
在步骤S228中,判断第一寄存器值AD+与第二寄存器值AD-的值是否均表示为高电平,是则执行步骤S229,否则执行步骤S230。In step S228, it is judged whether the values of the first register value AD+ and the second register value AD- both indicate high level, if yes, execute step S229, otherwise execute step S230.
在步骤S229中,识别USB充电器是标准类Ⅱ型第三类充电器。In step S229, it is identified that the USB charger is a standard type II type III charger.
在步骤S230中,识别USB充电器是非标准类Ⅱ型第三类充电器。In step S230, it is identified that the USB charger is a non-standard Type II Type III charger.
在步骤S231中,在执行步骤S225后,判断负引脚D-的电平是否达到负引脚电压源电压VDM_SRC,是则执行步骤S232,否则执行步骤S233。In step S231, after step S225 is executed, it is determined whether the level of the negative pin D- reaches the negative pin voltage source voltage VDM_SRC, if yes, step S232 is executed, otherwise, step S233 is executed.
在步骤S232中,识别USB充电器是CDP充电器、专用充电端口充电器或Ⅲ型第三类充电器。In step S232, it is identified that the USB charger is a CDP charger, a dedicated charging port charger or a Type III third-class charger.
在步骤S233中,识别USB充电器是SDP充电器和Ⅰ型第三类充电器。In step S233, it is identified that the USB charger is an SDP charger and a type I third type charger.
在步骤S234中,在执行步骤S232后,向USB数据收发单元配置配置第七控制信号。In step S234, after step S232 is executed, the seventh control signal is configured to the USB data transceiving unit.
在步骤S235中,在执行步骤S234后,读取正引脚D+的电平。In step S235, after step S234 is executed, the level of the positive pin D+ is read.
在步骤S236中,判断读取的正引脚D+的电平是否达到正引脚电压源电压VDP_SRC,是则执行步骤S237,否则执行步骤S238。In step S236, it is judged whether the read level of the positive pin D+ reaches the positive pin voltage source voltage VDP_SRC, if yes, execute step S237, otherwise execute step S238.
在步骤S237中,识别USB充电器是专用充电端口充电器或Ⅲ型第三类充电器。In step S237, it is identified that the USB charger is a dedicated charging port charger or a Type III third-class charger.
在步骤S238中,识别USB充电器是CDP充电器。In step S238, it is identified that the USB charger is a CDP charger.
在步骤S239中,在执行步骤S237后,向USB数据收发单元配置充电模块的充电电流,并接收电压指示信号。In step S239, after step S237 is executed, the charging current of the charging module is configured to the USB data transceiving unit, and a voltage indication signal is received.
在步骤S240中,判断电压指示信号指示的电压引脚电压是否低于充电模块内置阈值,是则执行步骤S241,否则执行步骤S242。In step S240, it is judged whether the voltage of the voltage pin indicated by the voltage indication signal is lower than the built-in threshold of the charging module, if yes, execute step S241, otherwise execute step S242.
在步骤S241中,识别USB充电器是Ⅲ型第三类充电器。In step S241, it is identified that the USB charger is a Type III charger.
在步骤S242中,识别USB充电器是专用充电端口充电器。In step S242, it is identified that the USB charger is a dedicated charging port charger.
在步骤S243中,在执行步骤S233后,向USB数据收发单元配置配置第八控制信号以枚举。In step S243, after step S233 is executed, the eighth control signal is configured to the USB data transceiving unit for enumeration.
在步骤S244中,判断枚举是否成功,是则执行步骤S246,否则执行步骤S245。In step S244, it is judged whether the enumeration is successful, if yes, execute step S246, otherwise execute step S245.
在步骤S245中,识别USB充电器是Ⅰ型第三类充电器。In step S245, it is identified that the USB charger is a Type I Type III charger.
在步骤S246中,识别USB充电器是SDP充电器。In step S246, it is identified that the USB charger is an SDP charger.
图6示出了图3中处理单元的结构,为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 6 shows the structure of the processing unit in Fig. 3, and for convenience of description, only parts related to the embodiment of the present invention are shown.
本发明实施例提供的USB设备包括USB数据收发单元、USB标准接口、连接充电电池的充电模块、处理单元;处理单元又包括:第一读取模块101,用于通过USB数据收发单元读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值;第一识别模块102,用于判断所述第一读取模块读取的所述对地电阻值是否大于220kΩ,当第一读取模块101读取的对地电阻值不大于220kΩ时,识别USB充电器是辅助充电适配器,并当第一读取模块101读取的对地电阻值大于220kΩ时,识别USB充电器是其它类型的充电器。其中,辅助类型的充电适配器包括A型辅助充电适配器ACA-A、B型辅助充电适配器ACA-B、C型辅助充电适配器ACA-C和底座型辅助充电适配器ACA-Dock;其它类型的充电器可以是充电下行端口充电器、标准下行端口充电器、专用充电端口充电器、Ⅰ型第三类充电器、Ⅱ型第三类充电器、或Ⅲ型第三类充电器。The USB device provided by the embodiment of the present invention includes a USB data transceiver unit, a USB standard interface, a charging module connected to a rechargeable battery, and a processing unit; the processing unit further includes: a first reading module 101 for reading and The ground resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device; the first identification module 102 is used to determine whether the ground resistance value read by the first reading module is greater than 220kΩ, when the resistance value to ground read by the first reading module 101 is not greater than 220kΩ, identify the USB charger as an auxiliary charging adapter, and when the resistance value to ground read by the first reading module 101 is greater than 220kΩ, identify USB chargers are other types of chargers. Among them, auxiliary charging adapters include A-type auxiliary charging adapter ACA-A, B-type auxiliary charging adapter ACA-B, C-type auxiliary charging adapter ACA-C and dock-type auxiliary charging adapter ACA-Dock; other types of chargers can be It is a charging downlink port charger, a standard downlink port charger, a dedicated charging port charger, a Type I Type III charger, a Type II Type III charger, or a Type III Type III charger.
若第一识别模块102识别USB充电器是辅助充电适配器,为了实现对A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock、B型辅助充电适配器ACA-B、C型辅助充电适配器ACA-C的相互识别,本发明实施例中,处理单元还可以包括:第二识别模块103,用于当第一识别模块102识别USB充电器是辅助类型的充电适配器时,若第一读取模块101读取的对地电阻值介于[122kΩ,126kΩ]之间,则识别USB充电器是A型辅助充电适配器或底座型辅助充电适配器,若第一读取模块101读取的对地电阻值介于[67kΩ,69kΩ]之间,则识别USB充电器是B型辅助充电适配器,若第一读取模块101读取的对地电阻值介于[36kΩ,37kΩ]之间,则识别USB充电器是C型辅助充电适配器。If the first identification module 102 recognizes that the USB charger is an auxiliary charging adapter, in order to realize the A-type auxiliary charging adapter ACA-A or the base-type auxiliary charging adapter ACA-Dock, the B-type auxiliary charging adapter ACA-B, and the C-type auxiliary charging adapter Mutual identification of ACA-C, in the embodiment of the present invention, the processing unit may further include: a second identification module 103, used for when the first identification module 102 identifies that the USB charger is an auxiliary type charging adapter, if the first read If the ground resistance value read by the module 101 is between [122kΩ, 126kΩ], then it is recognized that the USB charger is an A-type auxiliary charging adapter or a base type auxiliary charging adapter. If the ground resistance read by the first reading module 101 If the value is between [67kΩ, 69kΩ], the USB charger is recognized as a B-type auxiliary charging adapter. If the resistance value to ground read by the first reading module 101 is between [36kΩ, 37kΩ], then the USB The charger is a Type-C auxiliary charging adapter.
此时,当第二识别模块103识别USB充电器是A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock时,为了进一步实现对A型辅助充电适配器ACA-A或底座型辅助充电适配器ACA-Dock的识别,本发明实施例中,处理单元还可以包括:第一配置模块104,用于向USB数据收发单元配置第一控制信号;第二读取模块105,用于在第一配置模块104配置第一控制信号后,通过USB数据收发单元读取USB标准接口上负引脚D-的电平;第三识别模块106,用于当第二读取模块105读取的负引脚的电平D-达到负引脚电压源电压VDM_SRC时,识别USB充电器是底座型辅助充电适配器ACA-Dock,否则识别USB充电器是A型辅助充电适配器ACA-A。At this time, when the second recognition module 103 recognizes that the USB charger is A-type auxiliary charging adapter ACA-A or dock-type auxiliary charging adapter ACA-Dock, in order to further realize the A-type auxiliary charging adapter ACA-A or dock-type auxiliary charging The identification of the adapter ACA-Dock, in the embodiment of the present invention, the processing unit may also include: a first configuration module 104, configured to configure the first control signal to the USB data transceiver unit; a second reading module 105, used to After the configuration module 104 configures the first control signal, it reads the level of the negative pin D- on the USB standard interface through the USB data transceiver unit; When the level D- of the pin reaches the negative pin voltage source voltage VDM_SRC, the USB charger is identified as the base type auxiliary charging adapter ACA-Dock, otherwise the USB charger is identified as the A-type auxiliary charging adapter ACA-A.
若第一识别模块102识别USB充电器是其它类型的充电器,为了实现对Ⅱ型第三类充电器的识别,本发明实施例中,处理单元还可以包括:第二配置模块107,用于向USB数据收发单元配置第二控制信号,使得USB标准接口上正引脚D+为正引脚电流源电流IDP_SRC,并设定定时中断和USB数据线连接中断;中断模块108,用于在正引脚D+保持为低电平的时间超过预定时间时发出第二配置模块107设定的USB数据线连接中断,或者在定时时间达到预设时间时发出第二配置模块107设定的定时中断;第三配置模块109,用于根据中断模块108发出的USB数据线连接中断或者定时中断向USB设备的USB数据收发单元配置第三控制信号;第三读取模块110,用于在第三配置模块109配置第三控制信号后,通过USB数据收发单元读取该USB设备的USB标准接口上正引脚D+的电平和负引脚D-的电平;第四识别模块111,用于当第三读取模块110读取的正引脚D+的电平达到正引脚电压源电压VDP_SRC,且负引脚的电平D-达到负引脚电压源电压VDM_SRC时,识别与该USB设备连接的USB充电器是Ⅱ型第三类充电器,否则识别与该USB设备连接的USB充电器是除了Ⅱ型第三类充电器和辅助充电适配器之外的其它类型充电器,如SDP充电器、CDP充电器、专用充电端口充电器、其它型的第三类充电器等。If the first identification module 102 recognizes that the USB charger is other types of chargers, in order to realize the identification of Type II and third types of chargers, in the embodiment of the present invention, the processing unit may also include: a second configuration module 107 for Configure the second control signal to the USB data transceiver unit, so that the positive pin D+ on the USB standard interface is the positive pin current source current IDP_SRC, and set the timing interruption and USB data line connection interruption; When the pin D+ remains low for more than a predetermined time, the USB data line connection interruption set by the second configuration module 107 is sent, or when the timing time reaches the preset time, the timing interruption set by the second configuration module 107 is sent; The third configuration module 109 is used to configure the third control signal to the USB data transceiver unit of the USB device according to the USB data line connection interruption or timing interruption sent by the interruption module 108; the third reading module 110 is used for the third configuration module 109 After configuring the third control signal, read the level of the positive pin D+ and the level of the negative pin D- on the USB standard interface of the USB device through the USB data transceiver unit; the fourth identification module 111 is used for when the third read When the level of the positive pin D+ read by the module 110 reaches the positive pin voltage source voltage VDP_SRC, and the level D- of the negative pin reaches the negative pin voltage source voltage VDM_SRC, identify the USB charging device connected to the USB device. The charger is a Type II Type III charger, otherwise it is identified that the USB charger connected to the USB device is a type of charger other than Type II Type III chargers and auxiliary charging adapters, such as SDP chargers and CDP chargers , dedicated charging port chargers, other types of third-class chargers, etc.
在第四识别模块111识别出USB充电器是Ⅱ型第三类充电器后,为了进一步对标准类Ⅱ型第三类充电器和非标准类Ⅱ型第三类充电器进行识别,本发明实施例中,处理单元还可以包括:第四配置模块112,用于向USB数据收发单元配置第四控制信号,使得USB标准接口上正引脚D+对3.3V电源阻值范围为1.4kΩ-3.1kΩ之间,并使得USB标准接口上正引脚D+和负引脚D-的对地阻值范围均为14kΩ-25kΩ之间;第五配置模块113,用于在第四配置模块112配置第四控制信号后,向USB数据收发单元配置第五控制信号;第四读取模块114,用于在第五配置模块113配置第五控制信号后,读取反映USB标准接口上正引脚D+电平的第一寄存器值AD+和反映负引脚D-电平的第二寄存器值AD-;第五识别模块115,用于当第四读取模块114读取的第一寄存器值AD+与第二寄存器值AD-的值均表示为高电平时,识别该Ⅱ型第三类充电器为标准类Ⅱ型第三类充电器,当第一寄存器值AD+的值表示为高电平而第二寄存器值AD-的值表示为低电平时,识别该Ⅱ型第三类充电器为非标准类Ⅱ型第三类充电器。After the fourth recognition module 111 recognizes that the USB charger is Type II Type III charger, in order to further identify the standard Type II Type III charger and the non-standard Type II Type III charger, the present invention implements In an example, the processing unit may further include: a fourth configuration module 112, configured to configure a fourth control signal to the USB data transceiver unit, so that the resistance of the positive pin D+ on the USB standard interface to the 3.3V power supply ranges from 1.4kΩ-3.1kΩ between 14kΩ-25kΩ on the positive pin D+ and negative pin D- on the USB standard interface; the fifth configuration module 113 is used to configure the fourth configuration module 112 After the control signal, configure the fifth control signal to the USB data transceiver unit; the fourth reading module 114 is used to read and reflect the positive pin D+ level on the USB standard interface after the fifth configuration module 113 configures the fifth control signal The first register value AD+ and the second register value AD- reflecting the level of the negative pin D-; the fifth identification module 115 is used to match the first register value AD+ read by the fourth reading module 114 with the second register value AD- When the values of AD- all indicate high level, the Type II Type III charger is identified as a standard Type II Type III charger. When the value of the first register AD+ indicates high level and the second register value When the value of AD- indicates a low level, the Type II Type III charger is identified as a non-standard Type II Type III charger.
若为了在第四识别模块111识别与该USB设备连接的USB充电器是除了Ⅱ型第三类充电器和辅助充电适配器之外的其它类型充电器时,进一步实现对CDP充电器的识别,本发明实施例中,处理单元还可以包括:第六配置模块116,用于向USB数据收发单元配置第六控制信号,使得USB标准接口上正引脚D+拉高至正引脚电压源电压VDP_SRC;第五读取模块117,用于在第六配置模块116配置第六控制信号后,通过USB数据收发单元读取USB标准接口上负引脚D-的电平;第六识别模块118,用于当第五读取模块117读取的负引脚D-的电平为负引脚电压源电压VDM_SRC时,识别其它类型充电器是CDP充电器、专用充电端口充电器或Ⅲ型第三类充电器,否则识别其它类型充电器是SDP充电器和Ⅰ型第三类充电器;第七配置模块119,用于当第六识别模块118识别其它类型充电器是CDP充电器、专用充电端口充电器或Ⅲ型第三类充电器时,向USB数据收发单元配置第七控制信号,使得USB标准接口上负引脚D-拉高至负引脚电压源电压VDM_SRC;第六读取模块120,用于在第七配置模块119配置第七控制信号后,通过USB数据收发单元读取USB标准接口上正引脚D+的电平;第七识别模块121,用于当第六读取模块120读取的正引脚D+的电平为正引脚电压源电压VDP_SRC时,识别USB充电器是专用充电端口充电器或Ⅲ型第三类充电器,否则识别USB充电器是CDP充电器;充电电流配置模块122,用于当第七识别模块121识别USB充电器是CDP充电器时,在判断数据传输状态后,对USB设备的充电模块的充电电流进行配置,使得充电模块的充电电流达到CDP充电器可允许的电流值。If in order to further realize the identification of the CDP charger when the fourth identification module 111 identifies that the USB charger connected to the USB device is a charger of a type other than Type II third type charger and auxiliary charging adapter, the present invention In the embodiment of the invention, the processing unit may further include: a sixth configuration module 116, configured to configure the sixth control signal to the USB data transceiving unit, so that the positive pin D+ on the USB standard interface is pulled up to the positive pin voltage source voltage VDP_SRC; The fifth reading module 117 is used to read the level of the negative pin D- on the USB standard interface through the USB data transceiver unit after the sixth configuration module 116 configures the sixth control signal; the sixth identification module 118 is used for When the level of the negative pin D- read by the fifth reading module 117 is the negative pin voltage source voltage VDM_SRC, it is recognized that other types of chargers are CDP chargers, dedicated charging port chargers, or Type III third-type chargers Otherwise, it is identified that other types of chargers are SDP chargers and Type I third-type chargers; the seventh configuration module 119 is used to identify other types of chargers as CDP chargers and dedicated charging port chargers when the sixth identification module 118 identifies other types of chargers or Type III charger, configure the seventh control signal to the USB data transceiver unit, so that the negative pin D- on the USB standard interface is pulled up to the negative pin voltage source voltage VDM_SRC; the sixth reading module 120 uses After the seventh control signal is configured in the seventh configuration module 119, the level of the positive pin D+ on the USB standard interface is read by the USB data transceiver unit; the seventh identification module 121 is used for when the sixth reading module 120 reads When the level of the positive pin D+ of the positive pin is the positive pin voltage source voltage VDP_SRC, identify the USB charger as a dedicated charging port charger or a type III third-type charger, otherwise identify the USB charger as a CDP charger; charging current configuration Module 122, configured to configure the charging current of the charging module of the USB device after judging the data transmission state when the seventh identification module 121 recognizes that the USB charger is a CDP charger, so that the charging current of the charging module reaches the CDP charger Allowable current value.
此时,为了进一步实现对专用充电端口充电器和Ⅲ型第三类充电器的识别,充电电流配置模块122还可以用于按照专用充电端口充电器配置充电模块的充电电流,本发明实施例中,处理单元还可以包括:第一接收模块123,用于在充电电流配置模块122配置充电电流后,接收充电模块发送的指示USB标准接口上电压引脚VBUS电压值的电压指示信号;第八识别模块124,用于当第一接收模块123接收到的该电压指示信号指示USB标准接口上电压引脚VBUS的电压低于充电模块的内置阈值时,识别USB充电器是Ⅲ型第三类充电器,否则识别USB充电器是专用充电端口充电器。At this time, in order to further realize the identification of the dedicated charging port charger and the Type III charger, the charging current configuration module 122 can also be used to configure the charging current of the charging module according to the dedicated charging port charger. In the embodiment of the present invention , the processing unit may also include: a first receiving module 123, configured to receive a voltage indication signal sent by the charging module indicating the voltage value of the voltage pin VBUS on the USB standard interface after the charging current configuration module 122 configures the charging current; the eighth identification Module 124, used to identify that the USB charger is a type III charger when the voltage indication signal received by the first receiving module 123 indicates that the voltage of the voltage pin VBUS on the USB standard interface is lower than the built-in threshold of the charging module , otherwise the USB charger is identified as a dedicated charging port charger.
若第六识别模块118识别其它类型充电器是SDP充电器和Ⅰ型第三类充电器时,为了进一步实现对SDP充电器和Ⅰ型第三类充电器的识别,本发明实施例中,处理单元还可以包括:第八配置模块125,用于向USB数据收发单元配置第八控制信号,以控制USB数据收发单元建立与USB充电器的连接及枚举;第九识别模块126,用于当USB数据收发单元枚举成功时,识别USB充电器是SDP充电器,否则识别USB充电器是Ⅰ型第三类充电器。If the sixth identification module 118 recognizes that other types of chargers are SDP chargers and Type I third-type chargers, in order to further realize the identification of SDP chargers and Type I third-type chargers, in the embodiment of the present invention, the processing The unit may also include: an eighth configuration module 125, configured to configure the eighth control signal to the USB data transceiver unit, to control the USB data transceiver unit to establish a connection with the USB charger and to enumerate; a ninth identification module 126, used to When the enumeration of the USB data transceiving unit is successful, the USB charger is identified as an SDP charger, otherwise, the USB charger is identified as a Type I Type III charger.
进一步地,由于USB充电器在插入后,USB设备的充电电池可能由于电池耗尽或电量过低而无法保证最基本的类型识别过程,为此,本发明实施例中,处理单元还可以包括:存储模块131,用于存储充电电池电量;第二接收模块127,用于在插入USB充电器后,接收充电模块发送的指示USB标准接口上电压引脚VBUS电压值的电压指示信号;第七读取模块128,用于当第二接收模块127接收到的该电压指示信号指示USB标准接口上电压引脚VBUS的电压高于充电模块的内置阈值时,读取存储的充电电池电量;第九配置模块129,用于当第七读取模块128读取的充电电池电量小于或等于第一预设值时,向USB数据收发单元配置第九控制信号,使得正引脚D+的电平为正引脚电压源电压VDP SRC;充电控制模块130,用于在第九配置模块129配置第九控制信号后,控制充电模块以无电电池充电机制(Dead Battery Provision,DBP)对充电电池进行小电流充电,同时以轮询方式实时读取存储模块131存储的充电电池电量,直到充电电池电量达到第二预设值时,控制充电模块以停止对充电电池的充电,并由第一读取模块101读取对地电阻值。第一读取模块101还用于当第七读取模块128读取的充电电池电量大于第一预设值时,直接读取对地电阻值。Further, because after the USB charger is plugged in, the rechargeable battery of the USB device may not be able to guarantee the most basic type identification process because the battery is exhausted or the power is too low. Therefore, in the embodiment of the present invention, the processing unit may also include: The storage module 131 is used to store the power of the rechargeable battery; the second receiving module 127 is used to receive the voltage indication signal sent by the charging module to indicate the voltage value of the voltage pin VBUS on the USB standard interface after the USB charger is inserted; the seventh reading The fetching module 128 is used to read the stored rechargeable battery power when the voltage indication signal received by the second receiving module 127 indicates that the voltage of the voltage pin VBUS on the USB standard interface is higher than the built-in threshold of the charging module; the ninth configuration Module 129, configured to configure the ninth control signal to the USB data transceiver unit so that the level of the positive pin D+ is positive when the rechargeable battery power read by the seventh reading module 128 is less than or equal to the first preset value. Pin voltage source voltage VDP SRC; charging control module 130, used to control the charging module to charge the rechargeable battery with a small current after the ninth control signal is configured in the ninth configuration module 129 (Dead Battery Provision, DBP) At the same time, the rechargeable battery power stored in the storage module 131 is read in real time in a polling manner, until the rechargeable battery power reaches the second preset value, the charging module is controlled to stop charging the rechargeable battery, and read by the first reading module 101 Take the value of the resistance to ground. The first reading module 101 is also used to directly read the resistance to ground when the rechargeable battery power read by the seventh reading module 128 is greater than the first preset value.
本发明实施例中,USB设备优选是一便携式终端。In the embodiment of the present invention, the USB device is preferably a portable terminal.
本发明实施例提供的识别USB充电器类型的方法及USB设备是通过读取与USB设备的USB标准接口连接的USB充电器上设备识别ID引脚的对地电阻值并对该对地电阻值进行判断,来将辅助充电适配器与其它类型充电器区分开的,该其它类型充电器涵盖了现有充电规范及市场上广泛应用充电器类型,包括:充电下行端口充电器,标准下行端口充电器,专用充电端口充电器,Ⅰ型第三类充电器,Ⅱ型第三类充电器,以及Ⅲ型第三类充电器。相对于现有技术,可以将辅助充电适配器与其它类型充电器区分开,同时,应用该识别USB充电器类型的方法的USB设备逻辑简单、成本低,利用产品的推广及应用。The method for identifying the type of the USB charger and the USB device provided by the embodiment of the present invention is to read the resistance value of the device identification ID pin on the USB charger connected to the USB standard interface of the USB device and compare the resistance value to the ground. Make judgments to distinguish auxiliary charging adapters from other types of chargers, which cover existing charging specifications and widely used charger types in the market, including: charging downstream port chargers, standard downstream port chargers , Special charging port chargers, Type I Type III chargers, Type II Type III chargers, and Type III Type III chargers. Compared with the prior art, the auxiliary charging adapter can be distinguished from other types of chargers. At the same time, the USB device applying the method for identifying the type of USB charger has simple logic and low cost, and can be popularized and applied by the use of products.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来控制相关的硬件完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented by controlling related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage Media such as ROM/RAM, magnetic disk, optical disk, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (17)
1. a method of identifying USB charger type, is characterized in that, described method comprises:
Read the resistance to earth value of recognition of devices ID pin on the USB charger being connected with the USB standard interface of USB device;
Whether the described resistance to earth value that judgement is read is greater than 220k Ω, when the described resistance to earth value reading is not more than 220k Ω, identifying described USB charger is the charging adapter of auxiliary type, wherein, the charging adapter of described auxiliary type comprises A type auxiliary charging adapter, Type B auxiliary charging adapter, C type auxiliary charging adapter and base type auxiliary charging adapter;
Described method also comprises:
When the described resistance to earth value reading is greater than 220k Ω, identify the charger that described USB charger is other type;
Wherein, the charger of described other type comprises II type the 3rd class charger, CDP charger, special charging port charger, III type the 3rd class charger, SDP charger, I type the 3rd class charger; Described II type the 3rd class charger comprises again standard class II type the 3rd class charger, non-standard class II type the 3rd class charger;
After the step of the charger that is other type at the described USB charger of described identification, described method is further comprising the steps of:
After the positive pin of the usb data line of described USB device and described USB charger is connected with negative pin, configure the second control signal of described USB device, make positive pin on described USB standard interface export constant electric current, and set Interruption and usb data line disconnecting;
At described positive pin, remain the low level time and send described usb data line disconnecting while surpassing the scheduled time, or when timing reaches Preset Time, send described Interruption;
According to the described usb data line disconnecting sending or Interruption, configure the 3rd control signal of described USB device;
After described the 3rd control signal of configuration, read the positive level of pin and the level of negative pin on described USB standard interface;
If the level of the described positive pin reading reaches described positive pin voltage source voltage, and the level of described negative pin reaches negative pin voltage source voltage, identifying described USB charger is II type the 3rd class charger, otherwise identify described USB charger, is other type of charge device except II type the 3rd class charger and auxiliary charging adapter.
2. the method for identification as claimed in claim 1 USB charger type, is characterized in that, the described USB charger of described identification is after the step of charging adapter of auxiliary type, and described method is further comprising the steps of:
When the described resistance to earth value reading is between between [122k Ω, 126k Ω] time, identifying described USB charger is A type auxiliary charging adapter or base type auxiliary charging adapter;
When the described resistance to earth value reading is between between [67k Ω, 69k Ω] time, identifying described USB charger is Type B auxiliary charging adapter;
When the described resistance to earth value reading is between between [36k Ω, 37k Ω] time, identifying described USB charger is C type auxiliary charging adapter.
3. the method for identification USB charger type as claimed in claim 2, is characterized in that, after the described USB charger of described identification is the step of A type auxiliary charging adapter or base type auxiliary charging adapter, described method is further comprising the steps of:
Configure the first control signal of described USB device;
After described the first control signal of configuration, read the level of negative pin on described USB standard interface;
Whether the level of the described negative pin that judgement is read reaches negative pin voltage source voltage, and if so, identifying described USB charger is base type auxiliary charging adapter, otherwise identifying described USB charger is A type auxiliary charging adapter.
4. the method for identification USB charger type as claimed in claim 1, is characterized in that, after the described USB charger of described identification is the step of II type the 3rd class charger, described method is further comprising the steps of:
Configure the 4th control signal of described USB device, making on described USB standard interface positive pin is between 1.4k Ω-3.1k Ω to 3.3V power supply Standard resistance range, and the Standard resistance range over the ground of positive pin and negative pin on described USB standard interface is between 14k Ω-25k Ω;
After described the 4th control signal of configuration, configure the 5th control signal of described USB device;
After described the 5th control signal of configuration, read the first register value of positive pin level on the described USB standard interface of reflection and the second register value of the negative pin level of reflection;
If described the first register value reading and the value of described the second register value are all expressed as high level, identifying described II type the 3rd class charger is standard class II type the 3rd class charger, if the value representation of described the first register value is high level and the value representation of described the second register value is low level, identifying described II type the 3rd class charger is non-standard class II type the 3rd class charger.
5. the method for identification as claimed in claim 1 USB charger type, it is characterized in that, after the described USB charger of described identification is the step of other type of charge device except II type the 3rd class charger and auxiliary charging adapter, described method is further comprising the steps of:
Configure the 6th control signal of described USB device, positive pin on described USB standard interface is drawn high to positive pin voltage source voltage;
After described the 6th control signal of configuration, read the level of negative pin on described USB standard interface;
If the level of the described negative pin reading is negative pin voltage source voltage, described other type of charge device of identification is CDP charger, special charging port charger or III type the 3rd class charger, otherwise described other type of charge device of identification is SDP charger and I type the 3rd class charger;
When described other type of charge device of identification is CDP charger, special charging port charger or III type the 3rd class charger, configure the 7th control signal of described USB device, negative pin on described USB standard interface is drawn high to negative pin voltage source voltage;
After described the 7th control signal of configuration, read the level of positive pin on described USB standard interface;
If the level of the described positive pin reading is positive pin voltage source voltage, identifying described USB charger is special charging port charger or III type the 3rd class charger, otherwise identify described USB charger, is CDP charger.
6. the method for identification USB charger type as claimed in claim 5, is characterized in that, after the described USB charger of described identification is the step of special charging port charger or III type the 3rd class charger, described method is further comprising the steps of:
According to the charging current of the charging module of USB device described in special charging port charger arrangement;
After the described charging current of configuration, receive the voltage instruction signal of voltage pin voltage value on the described USB standard interface of indication that described charging module sends;
If the described voltage instruction signal receiving indicates the voltage of voltage pin on described USB standard interface lower than the built-in threshold value of described charging module, identifying described USB charger is III type the 3rd class charger, otherwise identify described USB charger, is special charging port charger.
7. the method for identification USB charger type as claimed in claim 5, is characterized in that, after other type of charge device described in described identification is the step of SDP charger and I type the 3rd class charger, described method is further comprising the steps of:
Configure the 8th control signal of described USB device, to set up and being connected and enumerating of USB charger;
Judgement set up described in enumerate whether success, be that to identify described USB charger be SDP charger, otherwise identify described USB charger, be I type the 3rd class charger.
8. the method for the identification USB charger type as described in claim 1 to 7 any one, it is characterized in that, before the described step that reads the resistance to earth value of recognition of devices ID pin on the USB charger being connected with the USB standard interface of USB device, described method is further comprising the steps of:
After inserting USB charger, receive the voltage instruction signal of voltage pin voltage value on the described USB standard interface of indication that the charging module of described USB device sends;
The voltage of indicating voltage pin on described USB standard interface when the described voltage instruction signal receiving during higher than the built-in threshold value of described charging module, reads the electric quantity of rechargeable battery of storage;
If the described electric quantity of rechargeable battery reading is less than or equal to the first preset value, configure the 9th control signal of described USB device, making the level of positive pin on described USB standard interface is positive pin voltage source voltage;
After described the 9th control signal of configuration, control described charging module the rechargeable battery of described USB device is carried out to low current charge without electric electric battery electrifier system, with polling mode, read in real time the electric quantity of rechargeable battery of storage simultaneously, until described electric quantity of rechargeable battery is while reaching the second preset value, control described charging module to stop the charging to described rechargeable battery, and described in carrying out, read the step of the resistance to earth value of recognition of devices ID pin on the USB charger being connected with the USB standard interface of USB device; If the described electric quantity of rechargeable battery reading is greater than the first preset value, described in directly carrying out, read the step of the resistance to earth value of recognition of devices ID pin on the USB charger being connected with the USB standard interface of USB device.
9. a USB device, is characterized in that, described USB device comprises usb data Transmit-Receive Unit, USB standard interface, connects charging module, the processing unit of rechargeable battery, and described processing unit comprises:
The first read module, for reading the resistance to earth value of recognition of devices ID pin on the USB charger being connected with the USB standard interface of USB device by described usb data Transmit-Receive Unit;
The first identification module that connects described the first read module, for judging whether the described resistance to earth value that described the first read module reads is greater than 220k Ω, when the described resistance to earth value reading when described the first read module is not more than 220k Ω, identifying described USB charger is the charging adapter of auxiliary type, wherein, the charging adapter of described auxiliary type comprises A type auxiliary charging adapter, Type B auxiliary charging adapter, C type auxiliary charging adapter and base type auxiliary charging adapter;
When described the first identification module is also greater than 220k Ω for the described resistance to earth value reading when described the first read module, identify the charger that described USB charger is other type;
Wherein, the charger of described other type comprises II type the 3rd class charger, CDP charger, special charging port charger, III type the 3rd class charger, SDP charger, I type the 3rd class charger; Described II type the 3rd class charger comprises again standard class II type the 3rd class charger, non-standard class II type the 3rd class charger;
Described processing unit also comprises:
The second configuration module that connects described the first identification module, while being the charger of other type for identifying described USB charger when described the first identification module, to described usb data Transmit-Receive Unit, configure the second control signal, make positive pin on described USB standard interface export constant electric current, and set Interruption and usb data line disconnecting;
The interrupt module that connects described the second configuration module, for remain the low level time at described positive pin, send the usb data line disconnecting that described the second configuration module is set while surpassing the scheduled time, or when timing reaches Preset Time, send the Interruption that described the second configuration module is set;
The 3rd configuration module that connects described interrupt module, described usb data Transmit-Receive Unit configuration the 3rd control signal for the described usb data line disconnecting that sends according to described interrupt module or Interruption to described USB device;
The third reading delivery piece that connects described the 3rd configuration module, for configuring after described the 3rd control signal at described the 3rd configuration module, reads the level of described positive pin and the level of negative pin of described USB device by described usb data Transmit-Receive Unit;
The 4th identification module that connects described third reading delivery piece, level for the described positive pin that reads when described third reading delivery piece reaches positive pin voltage source voltage, and when the level of described negative pin reaches negative pin voltage source voltage, identifying described USB charger is II type the 3rd class charger, otherwise identify described USB charger, is other type of charge device except II type the 3rd class charger and auxiliary charging adapter.
10. USB device as claimed in claim 9, is characterized in that, described processing unit also comprises:
The second identification module that connects described the first identification module, while being the charging adapter of auxiliary type for identify described USB charger when described the first identification module, if the described resistance to earth value that described the first read module reads is between [122k Ω, 126k Ω] between, identifying described USB charger is A type auxiliary charging adapter or base type auxiliary charging adapter, if the described resistance to earth value that described the first read module reads is between [67k Ω, 69k Ω] between, identifying described USB charger is Type B auxiliary charging adapter, if the described resistance to earth value that described the first read module reads is between [36k Ω, 37k Ω] between, identifying described USB charger is C type auxiliary charging adapter.
11. USB device as claimed in claim 10, is characterized in that, described processing unit also comprises:
The first configuration module that connects described the first identification module, for configuring the first control signal to described usb data Transmit-Receive Unit;
The second read module that connects described the first configuration module, for configuring after described the first control signal at described the first configuration module, reads the level of negative pin on described USB standard interface by described usb data Transmit-Receive Unit;
The 3rd identification module that connects described the second read module, for judging whether the level of the described negative pin that described the second read module reads reaches negative pin voltage source voltage, if, identifying described USB charger is base type auxiliary charging adapter, otherwise identifying described USB charger is A type auxiliary charging adapter.
12. USB device as claimed in claim 9, is characterized in that, described processing unit also comprises:
The 4th configuration module that connects described the 4th identification module, while being II type the 3rd class charger for the USB charger being connected with described USB device in described the 4th identification module identification, to described usb data Transmit-Receive Unit configuration the 4th control signal, making on described USB standard interface positive pin is between 1.4k Ω-3.1k Ω to 3.3V power supply Standard resistance range, and the Standard resistance range over the ground of positive pin and negative pin on described USB standard interface is between 14k Ω-25k Ω;
The 5th configuration module that connects described the 4th configuration module, for configuring after described the 4th control signal at described the 4th configuration module, to described usb data Transmit-Receive Unit configuration the 5th control signal;
The 4th read module that connects described the 5th configuration module, for configuring after described the 5th control signal at described the 5th configuration module, read the first register value of positive pin level on the described USB standard interface of reflection and the second register value of the negative pin level of reflection;
The 5th identification module that connects described the 4th read module, while being all expressed as high level for the value of described the first register value of reading when described the 4th read module and described the second register value, identifying described II type the 3rd class charger is standard class II type the 3rd class charger, when the value representation of described the first register value is high level and the value representation of described the second register value while being low level, identifying described II type the 3rd class charger is non-standard class II type the 3rd class charger.
13. USB device as claimed in claim 9, is characterized in that, described processing unit also comprises:
The 6th configuration module that connects described the 4th identification module, while being other type of charge device except II type the 3rd class charger and auxiliary charging adapter for identifying described USB charger at described the 4th identification module, to described usb data Transmit-Receive Unit configuration the 6th control signal, positive pin on described USB standard interface is drawn high to positive pin voltage source voltage;
The 5th read module that connects described the 6th configuration module, for configuring after described the 6th control signal at described the 6th configuration module, reads the level of negative pin on described USB standard interface by described usb data Transmit-Receive Unit;
The 6th identification module that connects described the 5th read module, for the level of the described negative pin that reads when described the 5th read module when bearing pin voltage source voltage, described other type of charge device of identification is CDP charger, special charging port charger or III type the 3rd class charger, otherwise described other type of charge device of identification is SDP charger and I type the 3rd class charger;
The 7th configuration module that connects described the 6th identification module, when when other type of charge device described in described the 6th identification module identification being CDP charger, special charging port charger or III type the 3rd class charger, to described usb data Transmit-Receive Unit configuration the 7th control signal, negative pin on described USB standard interface is drawn high to negative pin voltage source voltage;
The 6th read module that connects described the 7th configuration module, for configuring after described the 7th control signal at described the 7th configuration module, reads the level of positive pin on described USB standard interface by described usb data Transmit-Receive Unit;
The 7th identification module that connects described the 6th read module, while being positive pin voltage source voltage for the level of the described positive pin that reads when described the 6th read module, identifying described USB charger is special charging port charger or III type the 3rd class charger, otherwise identify described USB charger, is CDP charger.
14. USB device as claimed in claim 13, is characterized in that, described processing unit also comprises:
The charging current configuration module that connects described the 7th identification module, while being special charging port charger or III type the 3rd class charger for identifying described USB charger at described the 7th identification module, according to the charging current of charging module described in special charging port charger arrangement;
The first receiver module that connects described charging current configuration module, for configuring after described charging current at described charging current configuration module, receives the voltage instruction signal of voltage pin voltage value on the described USB standard interface of indication that described charging module sends;
The 8th identification module that connects described the first receiver module, for the voltage of indicating voltage pin on described USB standard interface when the described voltage instruction signal that described the first receiver module receives during lower than the built-in threshold value of described charging module, identifying described USB charger is III type the 3rd class charger, otherwise identify described USB charger, is special charging port charger.
15. USB device as claimed in claim 13, is characterized in that, described processing unit also comprises:
The 8th configuration module that connects described the 6th identification module, for when described other type of charge device of described the 6th identification module identification is SDP charger and I type the 3rd class charger, to described usb data Transmit-Receive Unit configuration the 8th control signal, to control described usb data Transmit-Receive Unit, set up and being connected and enumerating of USB charger;
The 9th identification module that connects described the 8th configuration module, for when the described usb data Transmit-Receive Unit enumeration succeeds, identifying described USB charger is SDP charger, otherwise identify described USB charger, is I type the 3rd class charger.
16. USB device as claimed in claim 9, is characterized in that, described processing unit also comprises:
Memory module, for storing electric quantity of rechargeable battery;
The second receiver module, for after inserting USB charger, receives the voltage instruction signal of voltage pin voltage value on the described USB standard interface of indication that the charging module of described USB device sends;
The 7th read module that connects described memory module and the second receiver module, for the voltage of indicating voltage pin on described USB standard interface when the described voltage instruction signal that described the second receiver module receives, during higher than the built-in threshold value of the charging module of described USB device, read the described electric quantity of rechargeable battery of storage;
The 9th configuration module that connects described the 7th read module, while being less than or equal to the first preset value for the described electric quantity of rechargeable battery reading when described the 7th read module, to described usb data Transmit-Receive Unit configuration the 9th control signal, making the level of positive pin on described USB standard interface is positive pin voltage source voltage;
Connect described the 7th read module, the charge control module of described the 9th configuration module and described the first read module, for after described the 9th configuration module configuration the 9th control signal, control described charging module the rechargeable battery of described USB device is carried out to low current charge without electric electric battery electrifier system, with polling mode, read in real time the described electric quantity of rechargeable battery of described memory module storage simultaneously, until described electric quantity of rechargeable battery is while reaching the second preset value, control described charging module to stop the charging to described rechargeable battery, and read described resistance to earth value by described the first read module,
When described the first read module is also greater than described the first preset value for the described electric quantity of rechargeable battery reading when described the 7th read module, directly read described resistance to earth value.
17. USB device as described in claim 9 to 16 any one, is characterized in that, described USB device is a portable terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210175632.2A CN102684270B (en) | 2012-05-31 | 2012-05-31 | Method for identifying type of universal serial bus (USB) chargers and USB device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210175632.2A CN102684270B (en) | 2012-05-31 | 2012-05-31 | Method for identifying type of universal serial bus (USB) chargers and USB device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102684270A CN102684270A (en) | 2012-09-19 |
CN102684270B true CN102684270B (en) | 2014-12-10 |
Family
ID=46815804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210175632.2A Active CN102684270B (en) | 2012-05-31 | 2012-05-31 | Method for identifying type of universal serial bus (USB) chargers and USB device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102684270B (en) |
Cited By (2)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9778309B1 (en) | 2016-03-17 | 2017-10-03 | Qualcomm Incorporated | Type-C factory and special operating mode support |
US10079499B2 (en) | 2016-03-17 | 2018-09-18 | Qualcomm Incorporated | Type-C factory and special operating mode support |
Families Citing this family (52)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365388B (en) * | 2012-04-09 | 2017-02-22 | 华为终端有限公司 | Power supply method of terminal device and terminal device |
US8745301B2 (en) * | 2012-10-29 | 2014-06-03 | Qualcomm Incorporated | High voltage dedicated charging port |
CN203981781U (en) * | 2012-11-21 | 2014-12-03 | 快捷半导体(苏州)有限公司 | Label detection module and system |
CN103106167B (en) * | 2013-01-22 | 2015-12-02 | 矽力杰半导体技术(杭州)有限公司 | A kind of USB device and control method thereof |
TWI631465B (en) * | 2013-04-12 | 2018-08-01 | 威盛電子股份有限公司 | Transmittal system and connection device |
CN103473208B (en) * | 2013-04-12 | 2016-10-12 | 威盛电子股份有限公司 | Transmission system |
TWI501085B (en) * | 2013-05-17 | 2015-09-21 | Primax Electronics Ltd | Usb interface detection device |
CN104280687A (en) * | 2014-10-16 | 2015-01-14 | 惠州Tcl移动通信有限公司 | Method and system for identifying standard battery |
CN104377768B (en) * | 2014-11-17 | 2017-03-08 | 朱捷 | A kind of charging for portable electric appts optimizes device |
CN110970970A (en) * | 2015-03-27 | 2020-04-07 | 青岛海信移动通信技术股份有限公司 | Processing method and device of terminal charger |
CN105826961B (en) * | 2015-06-29 | 2019-01-29 | 维沃移动通信有限公司 | The device of electronic equipment standard configuration charger for identification |
CN107005062B (en) * | 2015-10-16 | 2020-01-17 | Oppo广东移动通信有限公司 | Charging method, mobile terminal and charging device |
CN108318770A (en) * | 2016-04-08 | 2018-07-24 | 湖南工业大学 | A kind of electric appliance sorting technique |
CN106100025B (en) * | 2016-06-24 | 2019-04-19 | 青岛海信移动通信技术股份有限公司 | A kind of charge protector, charge protection method and mobile terminal |
CN106292977B (en) * | 2016-07-26 | 2019-04-02 | Oppo广东移动通信有限公司 | Adapter identification method and terminal |
CN107359668A (en) | 2016-08-19 | 2017-11-17 | 深圳市柔宇科技有限公司 | Charger, electronic installation, charging system and charging method |
CA2989841A1 (en) * | 2016-08-19 | 2018-02-19 | Jilong GUO | Power adapter, terminal device, charging system, and charging method |
CN106356918B (en) * | 2016-08-30 | 2019-10-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of quick charge recognition methods and terminal device |
CN106300533B (en) * | 2016-08-31 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of charging method and device |
CN106230070B (en) * | 2016-08-31 | 2020-01-10 | 宇龙计算机通信科技(深圳)有限公司 | Charging method and device |
CN106329630B (en) * | 2016-08-31 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of charging method and device |
CN106329629B (en) * | 2016-08-31 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of charging method and device |
CN106329631B (en) * | 2016-08-31 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of charging method and device |
CN106329627A (en) * | 2016-08-31 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Charging method and device |
CN106329628B (en) * | 2016-08-31 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of charging method and device |
CN106329625B (en) * | 2016-08-31 | 2019-12-10 | 宇龙计算机通信科技(深圳)有限公司 | charging method and device |
CN106300552A (en) * | 2016-09-26 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Electronic installation and charging method thereof |
CN106374563A (en) * | 2016-09-26 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Electronic apparatus and charging method therefor |
CN106356935A (en) * | 2016-09-26 | 2017-01-25 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106329654A (en) * | 2016-09-26 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106329656A (en) * | 2016-09-26 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106410894A (en) * | 2016-09-26 | 2017-02-15 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106356936A (en) * | 2016-09-26 | 2017-01-25 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106451617A (en) * | 2016-09-26 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106329655A (en) * | 2016-09-26 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106329652A (en) * | 2016-09-26 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106300549A (en) * | 2016-09-26 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | Electronic installation and charging method thereof |
CN106356933A (en) * | 2016-09-26 | 2017-01-25 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106374564A (en) * | 2016-09-26 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106451615A (en) * | 2016-09-26 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | Electronic device and charging method thereof |
CN106655339B (en) * | 2016-11-14 | 2019-07-05 | 青岛海信移动通信技术股份有限公司 | A kind of charging management method of mobile terminal, device and mobile terminal |
CN108268402A (en) * | 2016-12-30 | 2018-07-10 | 维沃移动通信有限公司 | Protection circuit, guard method and the mobile terminal of Type-C interfaces |
CN107221983B (en) * | 2017-07-06 | 2020-03-27 | 建荣集成电路科技(珠海)有限公司 | Charging control circuit and audio equipment |
CN107404136A (en) * | 2017-07-10 | 2017-11-28 | Tcl移动通信科技(宁波)有限公司 | A kind of method, storage medium and device for identifying charger type |
CN107579558B (en) * | 2017-08-28 | 2019-03-05 | 维沃移动通信有限公司 | Charge control method, charger, charging system and computer readable storage medium |
WO2019084813A1 (en) * | 2017-10-31 | 2019-05-09 | 深圳市柔宇科技有限公司 | Electronic device and charging cable verification method |
CN108695935A (en) * | 2018-06-06 | 2018-10-23 | Oppo(重庆)智能科技有限公司 | The electronic equipment of charging management method, device, medium and application the method |
CN108845655B (en) * | 2018-06-21 | 2022-03-22 | Oppo广东移动通信有限公司 | Electronic equipment control method, device, control circuit and electronic equipment |
CN109004699B (en) * | 2018-06-27 | 2020-12-01 | 惠州市德赛西威汽车电子股份有限公司 | Vehicle-mounted charging dynamic adjusting system and adjusting method thereof |
EP3890141A4 (en) * | 2018-12-05 | 2021-12-22 | Shenzhen Heytap Technology Corp., Ltd. | Charge prompting method and device, mobile terminal, and computer-readable storage medium |
CN110718948B (en) * | 2019-10-22 | 2021-10-12 | 艾体威尔电子技术(北京)有限公司 | Charging management method for intelligent POS equipment |
CN111274189B (en) * | 2020-03-10 | 2023-08-08 | 国微集团(深圳)有限公司 | USB equipment and real-time communication method thereof |
Citations (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989751A (en) * | 2009-07-30 | 2011-03-23 | 宏达国际电子股份有限公司 | Power supply device, portable electronic device and related judgment method thereof |
Family Cites Families (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100070659A1 (en) * | 2008-09-17 | 2010-03-18 | Kenneth Ma | Method and system for operating and/or charging a battery powered usb device based on a usb port type |
-
2012
- 2012-05-31 CN CN201210175632.2A patent/CN102684270B/en active Active
Patent Citations (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989751A (en) * | 2009-07-30 | 2011-03-23 | 宏达国际电子股份有限公司 | Power supply device, portable electronic device and related judgment method thereof |
Non-Patent Citations (4)
* Cited by examiner, † Cited by third partyTitle |
---|
Battery Charging Specification;佚名;《豆丁》;20101207;第1-71页 * |
佚名.Battery Charging Specification.《豆丁》.2010, * |
最新USB充电技术与测试;魏明;《现代电信科技》;20111231(第12期);第19-26页 * |
魏明.最新USB充电技术与测试.《现代电信科技》.2011,(第12期),第19-26页. * |
Cited By (2)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9778309B1 (en) | 2016-03-17 | 2017-10-03 | Qualcomm Incorporated | Type-C factory and special operating mode support |
US10079499B2 (en) | 2016-03-17 | 2018-09-18 | Qualcomm Incorporated | Type-C factory and special operating mode support |
Also Published As
Publication number | Publication date |
---|---|
CN102684270A (en) | 2012-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102684270B (en) | 2014-12-10 | Method for identifying type of universal serial bus (USB) chargers and USB device |
EP2130108B1 (en) | 2018-03-07 | Connection to a usb device |
CN102393837B (en) | 2014-07-30 | USB charger recognition device and method |
CN101694889B (en) | 2015-06-03 | Intelligent charging method and device |
US8253388B2 (en) | 2012-08-28 | System and method for charging a battery |
US8949631B2 (en) | 2015-02-03 | USB power supply method and device, and end device and system using the same |
WO2018082583A1 (en) | 2018-05-11 | Charging method, terminal and charging adapter |
CN108988431B (en) | 2021-09-17 | Multi-protocol charging device and multi-protocol charging method |
EP2985856A1 (en) | 2016-02-17 | Usb charging system with variable charging voltage, charger, and intelligent terminal |
CN106230070B (en) | 2020-01-10 | Charging method and device |
CN104796011A (en) | 2015-07-22 | Charging method, AC adapter, charging managing device and terminal |
US20120306455A1 (en) | 2012-12-06 | Method and system for determining whether a portable device is charging |
CN109066827B (en) | 2022-10-14 | Electronic device, control method thereof, and storage medium |
CN105829990A (en) | 2016-08-03 | Method and apparatus for charging electronic device with USB connection |
CN106329627A (en) | 2017-01-11 | Charging method and device |
CN107643998A (en) | 2018-01-30 | OTG and the difunctional system that charges are realized based on intelligent object |
CN104701937A (en) | 2015-06-10 | Charging method, terminal equipment and adapter |
KR101729511B1 (en) | 2017-04-24 | Computer system and control method thereof |
CN101771178A (en) | 2010-07-07 | Charging method adopting USB interfaces |
CN106329630A (en) | 2017-01-11 | Charging method and device |
EP2755109A1 (en) | 2014-07-16 | Charging an electrical device via a data interface |
CN106329625B (en) | 2019-12-10 | charging method and device |
CN106899067A (en) | 2017-06-27 | intelligent battery management method and system |
CN104953631A (en) | 2015-09-30 | Current control method and terminal device |
CN103036276B (en) | 2015-03-11 | Charger, terminal, controller, system and charger recognition method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
2012-09-19 | C06 | Publication | |
2012-09-19 | PB01 | Publication | |
2012-11-14 | C10 | Entry into substantive examination | |
2012-11-14 | SE01 | Entry into force of request for substantive examination | |
2014-12-10 | C14 | Grant of patent or utility model | |
2014-12-10 | GR01 | Patent grant | |
2021-05-07 | TR01 | Transfer of patent right |
Effective date of registration: 20210425 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Device Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
2021-05-07 | TR01 | Transfer of patent right | |
2025-02-25 | CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
2025-02-25 | CP03 | Change of name, title or address |