[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2012167677A1 - Device and method for communication and charging for external device via usb interface - Google Patents

Device and method for communication and charging for external device via usb interface Download PDF

Info

Publication number
WO2012167677A1
WO2012167677A1 PCT/CN2012/074864 CN2012074864W WO2012167677A1 WO 2012167677 A1 WO2012167677 A1 WO 2012167677A1 CN 2012074864 W CN2012074864 W CN 2012074864W WO 2012167677 A1 WO2012167677 A1 WO 2012167677A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
usb
control signal
usb interface
detection signal
Prior art date
Application number
PCT/CN2012/074864
Other languages
French (fr)
Chinese (zh)
Inventor
王晖
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012167677A1 publication Critical patent/WO2012167677A1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Definitions

  • the present invention relates to the field of Universal Serial Bus (USB), and more particularly to an apparatus and method for communicating over a USB interface and charging an external device.
  • USB Universal Serial Bus
  • USB is a standard interface used by a variety of peripherals to support high-volume data transmission and support hot-swap.
  • various communication devices such as personal hand-held phones, business-to-business, and tablet-type products, are increasingly used by users.
  • the USB interface with its standard and easy implementation, is also the preferred interface for these devices.
  • the USB port is usually used for charging, and the integrated form of data and power supply is external to the device.
  • the integrated form of data and power supply is external to the device.
  • the simplicity and practicality of the interface provides a solution.
  • a mobile communication device of a charged device its USB port is connected to an adapter. If it is only used as a charging port, the data line D+/D- line in the USB interface is short-circuited inside the adapter, and is used as communication and charging. For the interface, the data line D+/D- in the USB interface of the device being charged is open.
  • the charging chip of the charged device determines the external state through the connection state of the data line D+/D- in the USB interface, thereby setting the charging current. If the mobile communication device is charged with an adapter, the adapter mode current is supplied for charging, such as a large current of 1A or more; if it is a data line, according to the USB 2.0 protocol, it can only be charged with a maximum of 500mA. For applications where communication is required, the 500 mA charging current is increasingly unable to meet the requirements of current equipment requiring fast charging.
  • the object of the present invention is to provide a device and a method for communicating and charging an external device through a USB interface, which are in the prior art and cannot communicate with the USB interface and satisfy the problem of fast charging.
  • the USB interface provides a current source of the adapter mode current, and the current output port is directly connected to the current input port of the current detecting circuit;
  • the current detecting circuit has a current output port connected to the positive terminal USB_VBUS line of the USB interface, and outputs a first detection signal according to a current output of the current source;
  • a management module wherein the detection signal input port is connected to the current detection circuit detection signal output port, outputting the second control signal, and then delaying outputting the first control signal according to the first detection signal from the current detection circuit;
  • the switch the control signal input port of the switch is connected with the control signal output port of the management module, and the two USB data lines of the USB interface are short-circuited according to the second control signal, and the two short-circuited USB interfaces are according to the first control signal.
  • the USB interface has two data lines connected to the switch.
  • the management module is a CPU having a USB interface.
  • the two USB data lines of the CPU having the USB interface are connected to the switch, and the switch is disconnected from the two USB data lines of the CPU and the two USB data lines of the USB interface according to the second control signal, according to The first control signal respectively connects the two USB data lines of the CPU to the two USB data lines of the USB interface.
  • the management module is a delay circuit including a D flip-flop.
  • the delay circuit of the D flip-flop includes: a pre-stage D flip-flop, a post-stage D flip-flop, a counter, a logic AND gate, and a clock signal source.
  • the management module immediately outputs the second control signal according to the first detection signal, and then delays outputting the first control signal.
  • the current detecting circuit outputs a second detection signal management module according to the current source having no current output, and outputs a second control signal according to the second detection signal.
  • the current detecting circuit comprises:
  • the resistor is connected to the current input port of the current detecting circuit and the current output port, and is connected to the current source current output port and the USB_VBUS line of the USB interface;
  • the comparator has two input pins connected to the two ends of the resistor, and the output pin serves as a detection signal output port of the current detecting circuit, and is connected to the detection signal input port of the management module.
  • the current output port of the current detecting circuit and the USB interface between the USB interface and the USB interface have an interface protection circuit.
  • Embodiments of the present invention also provide a method for communicating through a USB interface and charging an external device, including:
  • a current interrupt flows according to the detected USB interface and a current source that supplies an adapter mode current to the USB interface, and a timer interrupt is set;
  • the first control signal is output, and the two USB data lines of the USB interface that were previously shorted according to the second control signal are disconnected;
  • the second detection signal is output according to the current source having no current output
  • the second control signal is output according to the second detection signal
  • the second control signal is immediately output according to the first detection signal, and then the first control signal is delayed.
  • the charged device Since the shorted two USB data lines are delayed after being inserted by the management module through the management module, the charged device first selects the adapter mode high current for fast charging, and then communicates through the USB data line.
  • FIG. 1 is a block diagram showing the structure of the apparatus provided by the present invention
  • 2 is a structural diagram of a device having a USB interface provided by the present invention
  • FIG. 3 is a structural diagram showing a delay circuit of a D flip-flop of the device provided by the present invention
  • Figure 4 is a block diagram showing the structure of a current detecting circuit of the apparatus provided by the present invention.
  • Figure 5 shows a flow chart of the method provided by the present invention. detailed description
  • a first embodiment of the present invention is a device for communicating via a USB interface and charging an external device (as a mobile communication device of the device to be charged).
  • the device will be described in principle with reference to FIG. 1, which includes The current source 11, the current detecting circuit 12, the management module 13, the switch 14 and the USB interface 15, the current source 11 can adopt an existing DC/DC module in the device, and provide an adapter mode current such as 1.5A or 2A for the USB interface.
  • a power supply of 5V output is preferably used.
  • the current output port of the current source 11 is directly connected to the current input port of the current detecting circuit 12, and the detection signal output port is connected to the detection signal input port of the management module 13.
  • the current output port of the current detecting circuit 12 is connected to the power supply positive USB_VBUS line of the USB interface 15 of the device, and according to the current source 11 having a current output, the detection signal output port of the current detecting circuit 12 outputs a first detection signal, and the detection of the USB interface 15 is performed.
  • the current detecting circuit detects a current output, and outputs a first detection signal, which may be a high power
  • the flat or low level indicates, or is represented by a level signal of a certain period, which is not limited in this embodiment.
  • the detection signal input port of the management module 13 is connected to the detection signal output port of the current detecting circuit 12, and the management module 13 outputs the second control signal, and then delays outputting the first control signal according to the first detection signal of the current detecting circuit 12, the first control
  • the signal may be expressed as a high level or a low level, and the similar second detection signal and the second control signal are respectively represented by signals different from the first detection signal and the first control signal, and are not described herein again.
  • Switch 14 The control signal input port is connected to the control signal output port of the management module 13, and the two USB data lines D+/D- of the USB interface 15 are short-circuited according to the second control signal, and the shorted USB interface 15 is connected according to the first control signal.
  • the two USB data lines D+/D- are disconnected.
  • the two data lines D+/D- of the USB interface 15 are connected to the changeover switch.
  • the management module 13 can adopt a central processing unit (CPU) having a USB interface, so that the control can be implemented by software, and after outputting the second control signal, the first output is delayed according to the first detection signal. control signal.
  • CPU central processing unit
  • the preferred scheme is as shown in FIG. 2.
  • the two USB data lines D+/D- of the CPU having the USB interface are connected to the switch 14, and the switch 14 can adopt double-pole double throw.
  • the switch structure disconnects the connection between the two USB data lines D+/D- of the CPU and the two USB data lines D+/D- of the USB interface according to the second control signal (in combination with the two USB data lines of the USB interface) D+/D-short connection), according to the first control signal, the two USB data lines D+/D- of the CPU are respectively connected with the two USB data lines D+/D- of the USB interface (in combination with the foregoing, two of the USB interfaces) Strip USB data cable D+/D-disconnected).
  • the second control signal in combination with the two USB data lines of the USB interface
  • D+/D-short connection
  • the two USB data lines D+/D- of the CPU are respectively connected with the two USB data lines D+/D- of the USB interface (in combination with the foregoing, two of the USB interfaces)
  • Strip USB data cable D+/D-disconnected
  • USB data lines D+/D- of the CPU and the two USB data lines D+/D- of the USB interface are directly connected without a switch, through a single-pole single-throw switch. Shorten or disconnect the two USB data lines D+/D-, but you need to add protection circuit to the USB interface of the CPU to prevent damage during short circuit.
  • the management module 13 can also adopt a delay circuit including a D flip-flop as shown in FIG. 3.
  • the structure includes the following: a logic AND gate 131, an inlet of which is connected to the detection signal output port of the current detecting circuit 12, and inputs a detection signal. The other input port is connected to the Q non-pin of the first D flip-flop 132.
  • the front stage D flip-flop 132 has its D pin connected to the detection signal output port of the current detecting circuit 12, the CLR clear pin and the D pin are shorted, and the clock input pin and the counter 133 count overflow (carry out ) Pin connections.
  • the counter 133 has a direct reset (reset) pin and an output pin of the AND gate 131, and the clock input pin is externally connected to the clock signal source 135.
  • Post-D trigger The clock input pin is connected to the carry out pin of the counter 133, and the D pin is short-circuited with the Q non-pin.
  • the set pin is externally connected to the detection signal output port of the current detecting circuit 12, and the Q pin is output. control signal. It can be realized by the above circuit, assuming that the first detection signal is a first control signal whose high level delay output is low level, and the second control signal which is directly output to a high level according to the second detection signal is low level. If the first detection signal is at a low level and the second detection signal is at a high level, an NAND gate may be added to the line of the detection signal input.
  • the above circuit is only an exemplary description, and the solution of the embodiment of the present invention is not correct. This is limited, and similar delay circuits are implemented in many ways, and are not described here.
  • the management module 13 can immediately output the second control signal according to the input first detection signal, and then delay the output by 1 second to output the first control signal. That is, after the external device is inserted, the device detects that the external device is inserted, first shorts the two USB data lines D+/D- of the disconnected USB interface, and then shorts the USB interface according to the delay control of the management module 13. The two USB data lines D+/D- are disconnected.
  • the external device After the external device is inserted, the external device can detect the D+/D- short circuit of the two USB data lines of the USB interface, and the charging chip of the external device is short-circuited through the connection state of the data line D+/D- in the USB interface, thereby Set the charging current to an adapter mode current such as 1.5A or 2A.
  • the object of the present invention can be achieved by only requiring one detection signal.
  • the current detecting circuit 12 may output a second detection signal according to the current source having no current output.
  • the management module 13 outputs a second control signal according to the second detection signal. That is, after the external device is unplugged, the device detects that the external device is unplugged, shorts the data line D+/D- in the disconnected USB interface, and waits until the external device is inserted, then the data line D+/ in the USB interface at this time. D- is already shorted. According to the delay control of the management module 13, the two USB data lines D+/D- of the shorted USB interface are disconnected.
  • the initial state of the changeover switch 14 is set to a state in which the USB data line is short-circuited, and can be switched and controlled by the management module 13.
  • the management module 13 knows that there is an external device access, it delays by the timer, and after the delay is completed, the switch 14 is switched to the data state for communication with an external device such as a mobile communication product.
  • the charging management chip of the external device knows that there is power supply through VBUS, and the external device adds a short pulse of 0.6V to the D- line of the data line in the USB bus, and detects the USB bus at the same time.
  • the level state of the D+ line of the data line If this 0.6V short pulse is also generated on the D+ line, the D+/D- line is considered to be short-circuited, and the connected power source is from the high-current charger, setting the charging current to the corresponding high current state; , it is considered that the data line is connected, and the charging current is set to a state of at most 500 mA.
  • the USB cable is switched to the adapter state when the external device performs current source detection, that is, the data line D+/D- in the USB bus is short-circuited, so the external device considers that the connected power source is a high-current charger. Set the charging current to the corresponding high current and no longer change during future use. Thus, when the switch 14 is subsequently switched to the data line state, the change of the charging current is not affected, and normal communication can be performed.
  • the current detecting circuit 12 can be implemented by using the line structure of FIG. 4, including: a resistor 121 and a comparator 122. Both ends of the current input port and the current output port of the current detecting circuit 12 are respectively connected to the current source 11 current output port and the USB_VBUS line of the USB interface 15, and the two input pins of the comparator 122 and the resistor are respectively The two ends are connected, and the output pin is used as a detection signal output port of the current detecting circuit 12, and is connected to the detection signal input port of the management module 13. When a current flows through the resistor 121, a voltage difference is generated across the resistor 121, and the comparator can output the first detection signal according to the differential pressure.
  • the current detection is implemented in many ways. The solution in this embodiment is only an exemplary description. , is not a limitation of the current detection circuit.
  • the current output port of the current detecting circuit 12 and the USB positive terminal USB_VBUS line between the USB interface 15 have an interface protection circuit.
  • the USB interface 15 can be a standard USB interface or other expansion including a USB bus. Exhibition interface.
  • the current detecting circuit 12 notifies the management module 13 of this state, and the management module 13 switches the analog switch to the initial state, that is, the adapter state, waiting for the next access action of the mobile communication product.
  • the switch 14 implements switching between the adapter state and the data state of the data line D+/D- in the USB bus of the USB interface 15 under the control of the management module 13, and the current source 11 supplies a large current to the external device connected to the USB interface. , so that the charged device first selects the adapter mode large current for fast charging, and then realizes communication through the USB data line.
  • Step 201 Set a timer interrupt according to a current flowing between the detected USB interface and a current source that supplies an adapter mode current to the USB interface.
  • Step 202 When the timer expires, the first control signal is output, and the two USB data lines of the USB interface that were previously shorted according to the second control signal are disconnected.
  • the CPU of the USB interface outputs a second detection signal when the current source has no current output, and outputs a second control signal according to the second detection signal.
  • the second control signal is immediately output according to the first detection signal.
  • the first control signal is then delayed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Power Sources (AREA)

Abstract

A device and method for communication and charging for an external device via a universal serial bus (USB) interface, for solving the problem in the prior art that communication cannot be performed via a USB interface while fast charging. A current detection circuit (12) of the device is respectively connected to a management module (13), a current source (11) and a USB interface (15), and outputs a first detection signal according to the current outputted by the current source (11). The management module (13) outputs a second control signal, then delays outputting a first control signal according to the first detection signal from the current detection circuit (12). A diverter switch (14) connected to the management module (13) short-circuits two USB data wires of the USB interface (15) according to the second control signal, and disconnects the two short-circuited USB data wires of the USB interface (15) according to the first control signal. Since the disconnection of the two short-circuited USB data wires after being inserted by a charging device by way of the control of the management module (13) is delayed, the charged device can first choose an adapter mode to perform fast charging by a large current, and then realize communication via the USB data wires.

Description

一种通过 USB接口通信并为外部设备充电的装置及方法 技术领域  Device and method for communicating through USB interface and charging external device
本发明涉及通用串行总线 (USB, Universal Serial Bus )技术领域, 特 别的涉及一种通过 USB接口通信并为外部设备充电的装置及方法。 背景技术  The present invention relates to the field of Universal Serial Bus (USB), and more particularly to an apparatus and method for communicating over a USB interface and charging an external device. Background technique
USB作为一个标准协议接口, 以其支持大批量数据传输和支持热插拔 等特性, 成为多种外设所采用的制式接口。 目前, 无线通信领域迅猛发展, 各种各样的通信设备, 如个人手持电话、 商务通、 平板电脑类产品等, 也 越来越被用户所广泛使用。 而 USB接口以其标准性和易实现性, 亦成为这 些设备的首选接口。  As a standard protocol interface, USB is a standard interface used by a variety of peripherals to support high-volume data transmission and support hot-swap. At present, the field of wireless communication is developing rapidly, and various communication devices, such as personal hand-held phones, business-to-business, and tablet-type products, are increasingly used by users. The USB interface, with its standard and easy implementation, is also the preferred interface for these devices.
同时对于大多数移动类通信设备来说, 采用电池供电, 因此就需要对 电池进行充电, 在一些移动类通信设备中, 目前通常采用 USB口充电, 其 数据和供电的一体化形式, 为设备对外接口的简洁和实用性提供了解决方 案。 一般来说,作为被充电设备的移动类通信设备, 其 USB口连接适配器, 如果仅作为充电口, USB接口内的数据线 D+/D-线在适配器内部是短接的, 而作为通信和充电接口来说, 被充电设备的 USB接口内的数据线 D+/D-是 开路的。 被充电设备的充电芯片通过 USB接口内的数据线 D+/D-的连接状 态来判断外接状态, 从而设定充电电流。 如果为移动类通信设备充电的是 适配器, 则提供适配器模式电流进行充电, 如 1A以上的大电流; 如果是数 据线, 根据 USB 2.0协议, 则最大只能用 500mA进行充电。 对于在需要进 行通信的场合下, 500mA的充电电流越来越不能满足目前设备要求快速充 电的要求了。  At the same time, for most mobile communication devices, battery power is required, so the battery needs to be charged. In some mobile communication devices, the USB port is usually used for charging, and the integrated form of data and power supply is external to the device. The simplicity and practicality of the interface provides a solution. Generally, as a mobile communication device of a charged device, its USB port is connected to an adapter. If it is only used as a charging port, the data line D+/D- line in the USB interface is short-circuited inside the adapter, and is used as communication and charging. For the interface, the data line D+/D- in the USB interface of the device being charged is open. The charging chip of the charged device determines the external state through the connection state of the data line D+/D- in the USB interface, thereby setting the charging current. If the mobile communication device is charged with an adapter, the adapter mode current is supplied for charging, such as a large current of 1A or more; if it is a data line, according to the USB 2.0 protocol, it can only be charged with a maximum of 500mA. For applications where communication is required, the 500 mA charging current is increasingly unable to meet the requirements of current equipment requiring fast charging.
可见现有技术中存在不能既采用 USB接口通信, 同时又能满足快速充 电的问题。 发明内容 It can be seen that there is a limitation in the prior art that communication can be performed using both the USB interface and the fast charging. The problem of electricity. Summary of the invention
本发明的目的是针对现有技术中存在的不能既采用 USB接口通信, 同 时又能满足快速充电的问题, 提供一种通过 USB接口通信并为外部设备充 电的装置及方法,该装置包括,为 USB接口提供适配器模式电流的电流源, 其电流输出口直接与电流检测电路的电流输入口连接;  The object of the present invention is to provide a device and a method for communicating and charging an external device through a USB interface, which are in the prior art and cannot communicate with the USB interface and satisfy the problem of fast charging. The USB interface provides a current source of the adapter mode current, and the current output port is directly connected to the current input port of the current detecting circuit;
电流检测电路, 其电流输出口与 USB接口的电源正极 USB_VBUS线 连接, 根据电流源有电流输出, 输出第一检测信号;  The current detecting circuit has a current output port connected to the positive terminal USB_VBUS line of the USB interface, and outputs a first detection signal according to a current output of the current source;
管理模块, 其检测信号输入口与电流检测电路检测信号输出口连接, 输出第二控制信号, 之后根据来自电流检测电路的第一检测信号延迟输出 第一控制信号;  a management module, wherein the detection signal input port is connected to the current detection circuit detection signal output port, outputting the second control signal, and then delaying outputting the first control signal according to the first detection signal from the current detection circuit;
切换开关, 切换开关的控制信号输入口与管理模块的控制信号输出口 连接,根据第二控制信号将 USB接口的两条 USB数据线短接,根据第一控 制信号将短接的 USB接口的两条 USB数据线断接;  The switch, the control signal input port of the switch is connected with the control signal output port of the management module, and the two USB data lines of the USB interface are short-circuited according to the second control signal, and the two short-circuited USB interfaces are according to the first control signal. Striped USB data cable;
USB接口, 其两条数据线与切换开关连接。  The USB interface has two data lines connected to the switch.
较佳的, 管理模块为具有 USB接口的 CPU。  Preferably, the management module is a CPU having a USB interface.
较佳的, 具有 USB接口的 CPU的两条 USB数据线与切换开关连接, 切换开关根据第二控制信号将 CPU的两条 USB数据线与 USB接口的两条 USB数据线的连接断开, 根据第一控制信号将 CPU的两条 USB数据线分 别与 USB接口的两条 USB数据线对应连接。  Preferably, the two USB data lines of the CPU having the USB interface are connected to the switch, and the switch is disconnected from the two USB data lines of the CPU and the two USB data lines of the USB interface according to the second control signal, according to The first control signal respectively connects the two USB data lines of the CPU to the two USB data lines of the USB interface.
较佳的, 管理模块为包括 D触发器的延时电路。  Preferably, the management module is a delay circuit including a D flip-flop.
较佳的, D触发器的延时电路包括: 前级 D触发器、 后级 D触发器、 计数器、 逻辑与门和时钟信号源。  Preferably, the delay circuit of the D flip-flop includes: a pre-stage D flip-flop, a post-stage D flip-flop, a counter, a logic AND gate, and a clock signal source.
较佳的, 管理模块, 根据第一检测信号立刻输出第二控制信号, 之后 延迟输出第一控制信号。 较佳的, 电流检测电路, 根据电流源没有电流输出, 输出第二检测信 管理模块, 根据第二检测信号输出第二控制信号。 Preferably, the management module immediately outputs the second control signal according to the first detection signal, and then delays outputting the first control signal. Preferably, the current detecting circuit outputs a second detection signal management module according to the current source having no current output, and outputs a second control signal according to the second detection signal.
较佳的, 电流检测电路包括:  Preferably, the current detecting circuit comprises:
电阻, 作为电流检测电路的电流输入口和电流输出口的电阻两端, 与 分别电流源电流输出口和 USB接口的 USB_VBUS线连接;  The resistor is connected to the current input port of the current detecting circuit and the current output port, and is connected to the current source current output port and the USB_VBUS line of the USB interface;
比较器, 其两个输入管脚分别和电阻的两端连接, 输出管脚作为电流 检测电路的检测信号输出口, 与管理模块的检测信号输入口连接。  The comparator has two input pins connected to the two ends of the resistor, and the output pin serves as a detection signal output port of the current detecting circuit, and is connected to the detection signal input port of the management module.
较佳的, 电流检测电路的电流输出口, 与 USB 接口之间的电源正极 USB_VBUS线上串有接口保护电路。  Preferably, the current output port of the current detecting circuit and the USB interface between the USB interface and the USB interface have an interface protection circuit.
本发明实施例还提供一种通过 USB 接口通信并为外部设备充电的方 法, 包括:  Embodiments of the present invention also provide a method for communicating through a USB interface and charging an external device, including:
根据检测到的 USB接口和为 USB接口提供适配器模式电流的电流源之 间有电流流过, 设定定时中断;  A current interrupt flows according to the detected USB interface and a current source that supplies an adapter mode current to the USB interface, and a timer interrupt is set;
定时器到时,输出第一控制信号,将之前根据第二控制信号短接的 USB 接口的两条 USB数据线断接;  When the timer expires, the first control signal is output, and the two USB data lines of the USB interface that were previously shorted according to the second control signal are disconnected;
较佳的, 根据电流源没有电流输出, 输出第二检测信号, 根据第二检 测信号输出第二控制信号。  Preferably, the second detection signal is output according to the current source having no current output, and the second control signal is output according to the second detection signal.
较佳的, 根据第一检测信号立刻输出第二控制信号, 之后延迟输出第 一控制信号。  Preferably, the second control signal is immediately output according to the first detection signal, and then the first control signal is delayed.
由于通过管理模块控制在被充电设备插入后, 将短接的两条 USB数据 线延时断接, 使得被充电设备先选择适配器模式大电流进行快速充电, 进 而通过 USB数据线实现通信。 附图说明  Since the shorted two USB data lines are delayed after being inserted by the management module through the management module, the charged device first selects the adapter mode high current for fast charging, and then communicates through the USB data line. DRAWINGS
图 1表示本发明提供的装置结构图; 图 2表示本发明提供的具有 USB接口的 CPU的装置结构图; 图 3表示本发明提供的装置的 D触发器的延时电路结构图; Figure 1 is a block diagram showing the structure of the apparatus provided by the present invention; 2 is a structural diagram of a device having a USB interface provided by the present invention; FIG. 3 is a structural diagram showing a delay circuit of a D flip-flop of the device provided by the present invention;
图 4表示本发明提供的装置的电流检测电路结构图;  Figure 4 is a block diagram showing the structure of a current detecting circuit of the apparatus provided by the present invention;
图 5表示本发明提供的方法流程图。 具体实施方式  Figure 5 shows a flow chart of the method provided by the present invention. detailed description
下面结合说明书附图对本发明优选实施例进行说明, 以解决现有技术 中存在的不能既采用 USB接口通信, 同时又能满足快速充电的问题。 本发 明第一实施例是一种通过 USB接口通信并为外部设备 (作为被充电设备的 移动类通信设备)充电的装置, 下面结合附图 1 , 对该装置进行原理性的说 明, 该装置包括: 电流源 11、 电流检测电路 12、 管理模块 13、 切换开关 14和 USB接口 15 ,电流源 11可以采用装置内已有的 DC/DC模块,为 USB 接口提供 1.5A或 2A等适配器模式电流,根据现有的 USB标准优选采用 5V 输出的电源, 电流源 11的电流输出口直接与电流检测电路 12的电流输入 口连接, 其检测信号输出口与管理模块 13的检测信号输入口连接。 电流检 测电路 12的电流输出口与该装置 USB接口 15的电源正极 USB_VBUS线 连接, 根据电流源 11有电流输出, 电流检测电路 12的检测信号输出口输 出第一检测信号, 通过检测 USB接口 15的 USB_VBUS线上是否有电流输 出来判断是否有外部设备通过 USB接口 15插入, 当有外部设备插入时, 电流检测电路检测到有电流输出, 输出第一检测信号, 该第一检测信号可 以是高电平或低电平表示, 或采用一定周期的电平信号表示, 本实施例不 对此进行限定。 管理模块 13的检测信号输入口与电流检测电路 12的检测 信号输出口连接, 管理模块 13输出第二控制信号, 之后根据电流检测电路 12的第一检测信号延迟输出第一控制信号, 第一控制信号可以使是高电平 或低电平表示, 类似的第二检测信号和第二控制信号, 分别采用不同于第 一检测信号和第一控制信号的信号形式表示, 此处不再赘述。 切换开关 14 的控制信号输入口与管理模块 13的控制信号输出口连接, 根据第二控制信 号将 USB接口 15的两条 USB数据线 D+/D-短接, 根据第一控制信号将短 接的 USB接口 15的两条 USB数据线 D+/D-断接。 USB接口 15的两条数 据线 D+/D-与切换开关连接。 The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings to solve the problem that the prior art cannot communicate with both the USB interface and the fast charging. A first embodiment of the present invention is a device for communicating via a USB interface and charging an external device (as a mobile communication device of the device to be charged). The device will be described in principle with reference to FIG. 1, which includes The current source 11, the current detecting circuit 12, the management module 13, the switch 14 and the USB interface 15, the current source 11 can adopt an existing DC/DC module in the device, and provide an adapter mode current such as 1.5A or 2A for the USB interface. According to the existing USB standard, a power supply of 5V output is preferably used. The current output port of the current source 11 is directly connected to the current input port of the current detecting circuit 12, and the detection signal output port is connected to the detection signal input port of the management module 13. The current output port of the current detecting circuit 12 is connected to the power supply positive USB_VBUS line of the USB interface 15 of the device, and according to the current source 11 having a current output, the detection signal output port of the current detecting circuit 12 outputs a first detection signal, and the detection of the USB interface 15 is performed. Is there a current output on the USB_VBUS line to determine whether an external device is inserted through the USB interface 15, when an external device is inserted, the current detecting circuit detects a current output, and outputs a first detection signal, which may be a high power The flat or low level indicates, or is represented by a level signal of a certain period, which is not limited in this embodiment. The detection signal input port of the management module 13 is connected to the detection signal output port of the current detecting circuit 12, and the management module 13 outputs the second control signal, and then delays outputting the first control signal according to the first detection signal of the current detecting circuit 12, the first control The signal may be expressed as a high level or a low level, and the similar second detection signal and the second control signal are respectively represented by signals different from the first detection signal and the first control signal, and are not described herein again. Switch 14 The control signal input port is connected to the control signal output port of the management module 13, and the two USB data lines D+/D- of the USB interface 15 are short-circuited according to the second control signal, and the shorted USB interface 15 is connected according to the first control signal. The two USB data lines D+/D- are disconnected. The two data lines D+/D- of the USB interface 15 are connected to the changeover switch.
在具体实施的时候, 管理模块 13可以采用具有 USB接口的中央处理 器(CPU, Central Processing Unit ), 这样可以通过软件实现控制, 在输出 第二控制信号之后, 根据第一检测信号延迟输出第一控制信号。 若采用具 有 USB接口的 CPU作为管理模块, 优选的方案如图 2所示, 具有 USB接 口的 CPU的两条 USB数据线 D+/D-与切换开关 14连接,切换开关 14可采 用双刀双掷开关结构,根据第二控制信号将 CPU的两条 USB数据线 D+/D- 与 USB接口的两条 USB数据线 D+/D-的连接断开(结合前述, 将 USB接 口的两条 USB数据线 D+/D-短接), 根据第一控制信号将 CPU的两条 USB 数据线 D+/D-分别与 USB接口的两条 USB数据线 D+/D-对应连接(结合前 述, 将 USB接口的两条 USB数据线 D+/D-断接)。 当然也不局限于上述的 电路结构,还可以是 CPU的两条 USB数据线 D+/D-与 USB接口的两条 USB 数据线 D+/D-不经过开关直接连接, 通过一个单刀单掷的开关将两条 USB 数据线 D+/D-短接或断接,但这样就需要在 CPU的 USB接口增加保护电路 加以保护, 以防短接时造成损伤。  In a specific implementation, the management module 13 can adopt a central processing unit (CPU) having a USB interface, so that the control can be implemented by software, and after outputting the second control signal, the first output is delayed according to the first detection signal. control signal. If a CPU with a USB interface is used as the management module, the preferred scheme is as shown in FIG. 2. The two USB data lines D+/D- of the CPU having the USB interface are connected to the switch 14, and the switch 14 can adopt double-pole double throw. The switch structure disconnects the connection between the two USB data lines D+/D- of the CPU and the two USB data lines D+/D- of the USB interface according to the second control signal (in combination with the two USB data lines of the USB interface) D+/D-short connection), according to the first control signal, the two USB data lines D+/D- of the CPU are respectively connected with the two USB data lines D+/D- of the USB interface (in combination with the foregoing, two of the USB interfaces) Strip USB data cable D+/D-disconnected). Of course, it is not limited to the above circuit structure. It can also be that the two USB data lines D+/D- of the CPU and the two USB data lines D+/D- of the USB interface are directly connected without a switch, through a single-pole single-throw switch. Shorten or disconnect the two USB data lines D+/D-, but you need to add protection circuit to the USB interface of the CPU to prevent damage during short circuit.
管理模块 13还可以采用如图 3所示的包括 D触发器的延时电路,结构 如下包括: 逻辑与门 131 , 其一个入口与电流检测电路 12的检测信号输出 口连接, 输入检测信号, 其另一个输入口与第一 D触发器 132的 Q非管脚 连接。 前级 D触发器 132, 其 D管脚和与电流检测电路 12的检测信号输出 口连接, CLR清零管脚和与 D管脚短接, 时钟输入管脚和计数器 133的计 数溢出 (carry out ) 管脚连接。 计数器 133, 其直接复位(reset )管脚和与 门 131的输出管脚连接, 时钟输入管脚外接时钟信号源 135。 后级 D触发 器 134, 其时钟输入管脚和计数器 133的 carry out管脚连接, 其 D管脚和 其 Q非管脚短接, 置位管脚外接电流检测电路 12的检测信号输出口, Q管 脚输出控制信号。 通过上述的电路可以实现, 假设第一检测信号为高电平 延时输出为低电平的第一控制信号, 根据第二检测信号为低电平直接输出 为高电平的第二控制信号。 若第一检测信号为低电平, 第二检测信号为高 电平, 则在检测信号输入的线路上增加一个非门即可, 上述的电路只是示 例性说明, 本发明实施例的方案并不对此进行限定, 类似的延时电路实现 方式较多, 此处不再赘述。 The management module 13 can also adopt a delay circuit including a D flip-flop as shown in FIG. 3. The structure includes the following: a logic AND gate 131, an inlet of which is connected to the detection signal output port of the current detecting circuit 12, and inputs a detection signal. The other input port is connected to the Q non-pin of the first D flip-flop 132. The front stage D flip-flop 132 has its D pin connected to the detection signal output port of the current detecting circuit 12, the CLR clear pin and the D pin are shorted, and the clock input pin and the counter 133 count overflow (carry out ) Pin connections. The counter 133 has a direct reset (reset) pin and an output pin of the AND gate 131, and the clock input pin is externally connected to the clock signal source 135. Post-D trigger The clock input pin is connected to the carry out pin of the counter 133, and the D pin is short-circuited with the Q non-pin. The set pin is externally connected to the detection signal output port of the current detecting circuit 12, and the Q pin is output. control signal. It can be realized by the above circuit, assuming that the first detection signal is a first control signal whose high level delay output is low level, and the second control signal which is directly output to a high level according to the second detection signal is low level. If the first detection signal is at a low level and the second detection signal is at a high level, an NAND gate may be added to the line of the detection signal input. The above circuit is only an exemplary description, and the solution of the embodiment of the present invention is not correct. This is limited, and similar delay circuits are implemented in many ways, and are not described here.
具体实施时, 管理模块 13可以根据需要, 根据输入的第一检测信号立 刻输出第二控制信号, 之后延迟 1 秒再输出第一控制信号。 即当外部设备 插入后, 装置检测到该外部设备插入, 先将断接的 USB接口的两条 USB 数据线 D+/D-短接,再根据管理模块 13的延迟控制,将短接的 USB接口的 两条 USB数据线 D+/D-断接。外部设备插入后,该外部设备可以检测到 USB 接口的两条 USB数据线 D+/D-短接,外部设备的充电芯片通过 USB接口内 的数据线 D+/D-的连接状态为短接, 从而设定充电电流为 1.5A或 2A等适 配器模式电流。 可以这样只需要一个检测信号就可实现本发明实施例的目 的。  In a specific implementation, the management module 13 can immediately output the second control signal according to the input first detection signal, and then delay the output by 1 second to output the first control signal. That is, after the external device is inserted, the device detects that the external device is inserted, first shorts the two USB data lines D+/D- of the disconnected USB interface, and then shorts the USB interface according to the delay control of the management module 13. The two USB data lines D+/D- are disconnected. After the external device is inserted, the external device can detect the D+/D- short circuit of the two USB data lines of the USB interface, and the charging chip of the external device is short-circuited through the connection state of the data line D+/D- in the USB interface, thereby Set the charging current to an adapter mode current such as 1.5A or 2A. The object of the present invention can be achieved by only requiring one detection signal.
具体实施时, 还可以是电流检测电路 12根据电流源没有电流输出, 输 出第二检测信号。 管理模块 13根据第二检测信号输出第二控制信号。 即当 外部设备拔出后, 装置检测到该外部设备拔出, 将断接的 USB接口内的数 据线 D+/D-短接, 等到外部设备插入后, 此时 USB接口内的数据线 D+/D- 已经是短接的, 根据管理模块 13的延迟控制, 将短接的 USB接口的两条 USB数据线 D+/D-断接。 采用本结构的电路, 切换开关 14初始状态是设置 在 USB数据线短路的状态, 并可以通过管理模块 13进行切换控制。 当外 部设备接入到本装置后, 在 VBUS上会产生电流, 并被电流检测电路 12检 测出来。 管理模块 13得知有外部设备接入后, 通过定时器进行延时, 并在 延时完成后将切换开关 14切换到数据状态, 用于与外部设备如移动类通信 产品进行通信。 在这段延时时间里, 外部设备的充电管理芯片通过 VBUS 得知有电源接入, 外部设备就会在 USB 总线中数据线的 D-线上加上一个 0.6V的短脉沖, 同时检测 USB总线中数据线的 D+线的电平状态。 如果在 D+线上亦产生了这个 0.6V的短脉沖, 则认为 D+/D-线是短路的, 接入的电 源来自于大电流充电器, 将充电电流设置到相应的大电流状态; 如果没有, 则认为接入的是数据线, 将充电电流设置为最大 500mA的状态。 由于在外 部设备进行电流源检测的时候, USB线是切换到适配器状态上的, 即 USB 总线中的数据线 D+/D-是短路的,因此外部设备认为接入的电源为大电流充 电器, 设置充电电流为相应的大电流, 并在以后的使用过程中不再改变。 这样在后续将切换开关 14切换到数据线状态时, 不会影响到充电电流的改 变, 并可以进行正常通信。 In a specific implementation, the current detecting circuit 12 may output a second detection signal according to the current source having no current output. The management module 13 outputs a second control signal according to the second detection signal. That is, after the external device is unplugged, the device detects that the external device is unplugged, shorts the data line D+/D- in the disconnected USB interface, and waits until the external device is inserted, then the data line D+/ in the USB interface at this time. D- is already shorted. According to the delay control of the management module 13, the two USB data lines D+/D- of the shorted USB interface are disconnected. With the circuit of the present configuration, the initial state of the changeover switch 14 is set to a state in which the USB data line is short-circuited, and can be switched and controlled by the management module 13. When the external device is connected to the device, a current is generated on the VBUS and is detected by the current detecting circuit 12. Measured. After the management module 13 knows that there is an external device access, it delays by the timer, and after the delay is completed, the switch 14 is switched to the data state for communication with an external device such as a mobile communication product. During this delay time, the charging management chip of the external device knows that there is power supply through VBUS, and the external device adds a short pulse of 0.6V to the D- line of the data line in the USB bus, and detects the USB bus at the same time. The level state of the D+ line of the data line. If this 0.6V short pulse is also generated on the D+ line, the D+/D- line is considered to be short-circuited, and the connected power source is from the high-current charger, setting the charging current to the corresponding high current state; , it is considered that the data line is connected, and the charging current is set to a state of at most 500 mA. Since the USB cable is switched to the adapter state when the external device performs current source detection, that is, the data line D+/D- in the USB bus is short-circuited, so the external device considers that the connected power source is a high-current charger. Set the charging current to the corresponding high current and no longer change during future use. Thus, when the switch 14 is subsequently switched to the data line state, the change of the charging current is not affected, and normal communication can be performed.
电流检测电路 12可以采用如图 4的线路结构实现, 包括: 电阻 121和 比较器 122。 作为电流检测电路 12的电流输入口和电流输出口的电阻 121 的两端, 分别与电流源 11电流输出口和 USB接口 15的 USB_VBUS线连 接, 比较器 122 的两个输入管脚分别和电阻的两端连接, 输出管脚作为电 流检测电路 12的检测信号输出口, 与管理模块 13的检测信号输入口连接。 当电流流过电阻 121时, 电阻 121两端会产生压差, 比较器就可以根据压 差输出的第一检测信号, 电流检测的实现方式较多, 本实施例中的方案只 是示例性的说明, 并不是对电流检测电路的限定。  The current detecting circuit 12 can be implemented by using the line structure of FIG. 4, including: a resistor 121 and a comparator 122. Both ends of the current input port and the current output port of the current detecting circuit 12 are respectively connected to the current source 11 current output port and the USB_VBUS line of the USB interface 15, and the two input pins of the comparator 122 and the resistor are respectively The two ends are connected, and the output pin is used as a detection signal output port of the current detecting circuit 12, and is connected to the detection signal input port of the management module 13. When a current flows through the resistor 121, a voltage difference is generated across the resistor 121, and the comparator can output the first detection signal according to the differential pressure. The current detection is implemented in many ways. The solution in this embodiment is only an exemplary description. , is not a limitation of the current detection circuit.
为了防止外部设备的插拔造成的瞬间大电流对装置的影响, 电流检测 电路 12的电流输出口, 与 USB接口 15之间的电源正极 USB_VBUS线上 串有接口保护电路。  In order to prevent the influence of the instantaneous large current caused by the insertion and removal of the external device on the device, the current output port of the current detecting circuit 12 and the USB positive terminal USB_VBUS line between the USB interface 15 have an interface protection circuit.
USB接口 15可以是标准 USB接口,也可以是包含 USB总线的其他扩 展接口。 The USB interface 15 can be a standard USB interface or other expansion including a USB bus. Exhibition interface.
当移动通信设备移除后, 电流检测电路 12将这个状态后通知到管理模 块 13 , 管理模块 13又将模拟开关切换到初始状态, 即适配器状态, 等待下 一次移动通信产品的接入动作。  When the mobile communication device is removed, the current detecting circuit 12 notifies the management module 13 of this state, and the management module 13 switches the analog switch to the initial state, that is, the adapter state, waiting for the next access action of the mobile communication product.
切换开关 14在管理模块 13的控制下实现 USB接口 15的 USB总线中 的数据线 D+/D-在适配器状态和数据状态之间进行切换, 电流源 11给 USB 接口上连接的外部设备提供大电流, 使得被充电设备先选择适配器模式大 电流进行快速充电, 进而通过 USB数据线实现通信。  The switch 14 implements switching between the adapter state and the data state of the data line D+/D- in the USB bus of the USB interface 15 under the control of the management module 13, and the current source 11 supplies a large current to the external device connected to the USB interface. , so that the charged device first selects the adapter mode large current for fast charging, and then realizes communication through the USB data line.
下面结合图 5对本发明提供的通过 USB接口通信并为外部设备充电的 方法进行详细说明, 包括:  The method for communicating through the USB interface and charging the external device according to the present invention will be described in detail below with reference to FIG. 5, including:
步驟 201:根据检测到的 USB接口和为 USB接口提供适配器模式电流 的电流源之间有电流流过, 设定定时中断。  Step 201: Set a timer interrupt according to a current flowing between the detected USB interface and a current source that supplies an adapter mode current to the USB interface.
步驟 202: 定时器到时, 输出第一控制信号, 将之前根据第二控制信号 短接的 USB接口的两条 USB数据线断接。  Step 202: When the timer expires, the first control signal is output, and the two USB data lines of the USB interface that were previously shorted according to the second control signal are disconnected.
具体实施时关于第二控制信号的获取, 可以是在步驟 201 实施之前, USB接口的 CPU在电流源没有电流输出时, 输出第二检测信号, 根据第二 检测信号输出第二控制信号。  In the specific implementation, regarding the acquisition of the second control signal, before the step 201 is implemented, the CPU of the USB interface outputs a second detection signal when the current source has no current output, and outputs a second control signal according to the second detection signal.
或者在步驟 202 实施时根据第一检测信号立刻输出第二控制信号。 之 后再延迟输出第一控制信号。  Or, when the step 202 is implemented, the second control signal is immediately output according to the first detection signal. The first control signal is then delayed.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案而非对其 进行限制, 尽管参照较佳实施例对本发明进行了详细的说明, 本领域的普 通技术人员应当理解: 其依然可以对本发明的技术方案进行修改或者等同 替换, 而这些修改或者等同替换亦不能使修改后的技术方案脱离本发明技 术方案的精神和范围。  It should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the embodiments of the present invention. The technical solutions of the present invention may be modified or equivalently substituted, and the modified technical solutions may not deviate from the spirit and scope of the technical solutions of the present invention.

Claims

权利要求书 Claim
1. 一种通过 USB接口通信并为外部设备充电的装置, 包括: 为通用串行总线 USB接口提供适配器模式电流的电流源, 其电流输 出口直接与电流检测电路的电流输入口连接;  1. A device for communicating via a USB interface and for charging an external device, comprising: a current source for providing an adapter mode current for a universal serial bus USB interface, the current output port of which is directly connected to the current input port of the current detecting circuit;
电流检测电路, 其电流输出口与 USB接口的电源正极 USB_VBUS 线连接, 根据电流源有电流输出, 其检测信号输出口输出第一检测信号; 管理模块, 其检测信号输入口与电流检测电路检测信号输出口连接, 输出第二控制信号, 之后根据来自电流检测电路的第一检测信号延迟输 出第一控制信号;  The current detecting circuit has a current output port connected to the positive terminal USB_VBUS line of the USB interface, and has a current output according to the current source, and the detection signal output port outputs a first detection signal; the management module, the detection signal input port and the current detecting circuit detecting signal Connecting the output port, outputting the second control signal, and then delaying outputting the first control signal according to the first detection signal from the current detecting circuit;
切换开关, 切换开关的控制信号输入口与管理模块的控制信号输出 口连接,根据第二控制信号将 USB接口的两条 USB数据线短接,根据第 一控制信号将短接的 USB接口的两条 USB数据线断接;  The switch, the control signal input port of the switch is connected with the control signal output port of the management module, and the two USB data lines of the USB interface are short-circuited according to the second control signal, and the two short-circuited USB interfaces are according to the first control signal. Striped USB data cable;
USB接口, 其两条数据线与切换开关连接。  The USB interface has two data lines connected to the switch.
2. 如权利要求 1所述的装置, 其中, 管理模块为具有 USB接口的中 央处理器 CPU。  2. The apparatus of claim 1, wherein the management module is a central processor CPU having a USB interface.
3. 如权利要求 2所述的装置, 其中, 具有 USB接口的 CPU的两条 USB数据线与切换开关连接,切换开关根据第二控制信号将 CPU的两条 USB数据线与 USB接口的两条 USB数据线的连接断开, 根据第一控制 信号将 CPU的两条 USB数据线分别与 USB接口的两条 USB数据线对应 连接。  3. The device according to claim 2, wherein two USB data lines of the CPU having the USB interface are connected to the switch, and the switch switches two USB data lines of the CPU and two USB interfaces according to the second control signal. The connection of the USB data line is disconnected, and the two USB data lines of the CPU are respectively connected to the two USB data lines of the USB interface according to the first control signal.
4. 如权利要求 1所述的装置, 其中, 管理模块为包括 D触发器的延 时电路。  4. The apparatus of claim 1, wherein the management module is a delay circuit including a D flip-flop.
5. 如权利要求 5所述的装置, 其中, D触发器的延时电路包括: 前 级 D触发器、 后级 D触发器、 计数器、 逻辑与门和时钟信号源。  5. The apparatus of claim 5, wherein the delay circuit of the D flip-flop comprises: a pre-stage D flip-flop, a post-stage D flip-flop, a counter, a logic AND gate, and a clock signal source.
6. 如权利要求 1所述的装置, 其中, 管理模块, 还用于根据第一检 测信号立刻输出第二控制信号, 之后延迟输出第一控制信号。 6. The apparatus according to claim 1, wherein the management module is further configured to perform the first check according to The measurement signal immediately outputs a second control signal, and then delays outputting the first control signal.
7. 如权利要求 1所述的装置, 其中, 电流检测电路, 还用于根据电 流源没有电流输出, 输出第二检测信号;  The device of claim 1 , wherein the current detecting circuit is further configured to output a second detection signal according to the current source having no current output;
管理模块, 还用于根据第二检测信号输出第二控制信号。  The management module is further configured to output the second control signal according to the second detection signal.
8. 如权利要求 1所述的装置, 其中, 电流检测电路包括: 电阻, 作为电流检测电路的电流输入口和电流输出口的电阻两端, 分别与电流源电流输出口和 USB接口的 USB_VBUS线连接;  8. The device according to claim 1, wherein the current detecting circuit comprises: a resistor, which is a current input port of the current detecting circuit and a resistor of the current output port, respectively, and a current source current output port and a USB_VBUS line of the USB interface. Connection
比较器, 其两个输入管脚分别和电阻的两端连接, 输出管脚作为电 流检测电路的检测信号输出口, 与管理模块的检测信号输入口连接。  The comparator has two input pins respectively connected to the two ends of the resistor, and the output pin is used as a detection signal output port of the current detecting circuit, and is connected to the detection signal input port of the management module.
9. 如权利要求 1所述的装置, 其中, 电流检测电路的电流输出口, 与 USB接口之间的电源正极 USB_VBUS线上串有接口保护电路。  9. The device according to claim 1, wherein the current output port of the current detecting circuit and the power supply positive terminal USB_VBUS line between the USB interface and the USB interface have an interface protection circuit.
10. 一种通过 USB接口通信并为外部设备充电的方法, 包括: 根据检测到的通用串行总线 USB接口和为 USB接口提供适配器模式 电流的电流源之间有电流流过, 设定定时中断;  10. A method of communicating via a USB interface and charging an external device, comprising: setting a timer interrupt according to a current flowing between the detected universal serial bus USB interface and a current source providing an adapter mode current for the USB interface ;
定时器到时, 输出第一控制信号, 将之前根据第二控制信号短接的 When the timer expires, the first control signal is output, and the previous control signal is shorted according to the second control signal.
USB接口的两条 USB数据线断接。 The two USB data lines of the USB interface are disconnected.
11. 如权利要求 10所述的方法, 其中, 根据电流源没有电流输出, 输出第二检测信号, 根据第二检测信号输出第二控制信号。  11. The method according to claim 10, wherein the second detection signal is output according to the current source having no current output, and the second control signal is output according to the second detection signal.
12. 如权利要求 10所述的方法, 其中, 根据第一检测信号立刻输出 第二控制信号, 之后延迟输出第一控制信号。  The method according to claim 10, wherein the second control signal is immediately output according to the first detection signal, and then the first control signal is delayed.
PCT/CN2012/074864 2011-06-09 2012-04-27 Device and method for communication and charging for external device via usb interface WO2012167677A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110154272.3A CN102820682B (en) 2011-06-09 2011-06-09 A kind of communicated by USB interface and be external equipment charging device and method
CN201110154272.3 2011-06-09

Publications (1)

Publication Number Publication Date
WO2012167677A1 true WO2012167677A1 (en) 2012-12-13

Family

ID=47295462

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/074864 WO2012167677A1 (en) 2011-06-09 2012-04-27 Device and method for communication and charging for external device via usb interface

Country Status (2)

Country Link
CN (1) CN102820682B (en)
WO (1) WO2012167677A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2755109A1 (en) * 2013-01-09 2014-07-16 Sony Mobile Communications AB Charging an electrical device via a data interface
JP2017518727A (en) * 2014-11-11 2017-07-06 クワントン オーピーピーオー モバイル テレコミュニケーションズ コーポレイション リミテッド Power adapter and terminal
CN106972558A (en) * 2017-03-27 2017-07-21 联想(北京)有限公司 A kind of charge control method and electronic equipment
TWI624131B (en) * 2016-02-05 2018-05-11 廣東歐珀移動通信有限公司 Charging method, power converter and mobile device
WO2019061153A1 (en) * 2017-09-28 2019-04-04 深圳市柔宇科技有限公司 Adapter, charging cable and charging apparatus
US10291060B2 (en) 2016-02-05 2019-05-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10326291B2 (en) 2014-11-11 2019-06-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Quick charging method, power adapter and mobile terminal
CN113836065A (en) * 2021-08-31 2021-12-24 浙江地芯引力科技有限公司 One-to-many data line circuit and data line

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103066340B (en) * 2012-12-17 2015-08-12 中兴通讯股份有限公司 charging method, mobile terminal and adapter
CN104124988B (en) * 2013-04-23 2017-04-26 神讯电脑(昆山)有限公司 Antenna connector module and antenna switching method, and electronic device applying antenna connector module and antenna switching method
CN103607028B (en) * 2013-12-09 2015-08-05 深圳市迪比科电子科技有限公司 A kind of direct current watt hour meter being applicable to portable power source
CN104796011A (en) * 2014-01-21 2015-07-22 中兴通讯股份有限公司 Charging method, AC adapter, charging managing device and terminal
CN105471008A (en) * 2014-09-03 2016-04-06 联想(北京)有限公司 Information processing method, first electronic equipment and second electronic equipment
EP3457518B1 (en) 2015-05-13 2020-07-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Quick charging method, power adapter and mobile terminal
CN205193796U (en) * 2015-08-21 2016-04-27 无锡中感微电子股份有限公司 Communication interface circuit, portable electronic equipment and electronic system
CN105162213A (en) * 2015-10-15 2015-12-16 上海斐讯数据通信技术有限公司 USB controller, and device
CN105576753A (en) * 2016-01-04 2016-05-11 联想(北京)有限公司 Information processing method and electronic equipment
CN107834244B (en) * 2016-02-25 2019-08-13 Oppo广东移动通信有限公司 Mobile terminal, universal serial bus interface and manufacturing method thereof
CN105701049B (en) * 2016-03-23 2019-03-01 Oppo广东移动通信有限公司 System, method and device for writing in charging zone bit and mobile terminal
WO2017198844A1 (en) * 2016-05-19 2017-11-23 Hirschmann Car Communication Gmbh Method for implementing a diagnosis capability of non-automotive controllers in an automotive environment
CN106058983B (en) * 2016-06-30 2019-01-29 维沃移动通信有限公司 A kind of charging control circuit, electronic equipment and charge control method
CN106655316B (en) * 2016-09-21 2020-05-12 奇酷互联网络科技(深圳)有限公司 Charging circuit and terminal device
CN106340780A (en) * 2016-09-21 2017-01-18 奇酷互联网络科技(深圳)有限公司 Terminal device and control method thereof
CN109494822B (en) * 2017-09-13 2024-05-24 西安中兴新软件有限责任公司 Terminal device, charger, charging system and charging method
CN108874708B (en) * 2018-06-28 2021-08-10 努比亚技术有限公司 OTG device, terminal charging method, mobile terminal and computer readable storage medium
CN109239491A (en) * 2018-08-30 2019-01-18 上海与德通讯技术有限公司 A kind of Research on Automatic Measuring System of Temperature and terminal test method
CN110601287B (en) * 2019-08-29 2023-12-08 惠州华阳通用电子有限公司 USB charging mode control method for vehicle-mounted device
CN111009939A (en) * 2019-11-25 2020-04-14 青岛海信移动通信技术股份有限公司 Quick charging method and terminal
CN118449217B (en) * 2023-11-02 2025-03-11 荣耀终端股份有限公司 Electronic device and charging control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367564A (en) * 2000-10-12 2002-09-04 索尼国际(欧洲)股份有限公司 Charging circuit for charging mobile terminal by using USB interface
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN201312130Y (en) * 2008-09-03 2009-09-16 李家俊 Charger with USB communication and expansion functions
US20110016341A1 (en) * 2009-07-20 2011-01-20 Texas Instrumental Incorporated Continuous Monitoring of a USB Client for BCS Charging Capacity

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388520B (en) * 2009-02-27 2015-01-21 飞兆半导体公司 Peripheral device host charging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367564A (en) * 2000-10-12 2002-09-04 索尼国际(欧洲)股份有限公司 Charging circuit for charging mobile terminal by using USB interface
CN101383627A (en) * 2007-09-04 2009-03-11 大唐移动通信设备有限公司 Device and method for terminal charger charging, USB charging and data communication
CN201312130Y (en) * 2008-09-03 2009-09-16 李家俊 Charger with USB communication and expansion functions
US20110016341A1 (en) * 2009-07-20 2011-01-20 Texas Instrumental Incorporated Continuous Monitoring of a USB Client for BCS Charging Capacity

Cited By (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014108437A1 (en) * 2013-01-09 2014-07-17 Sony Mobile Communications Ab Charging an electrical device via a data interface
EP2755109A1 (en) * 2013-01-09 2014-07-16 Sony Mobile Communications AB Charging an electrical device via a data interface
US10326291B2 (en) 2014-11-11 2019-06-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Quick charging method, power adapter and mobile terminal
JP2017518727A (en) * 2014-11-11 2017-07-06 クワントン オーピーピーオー モバイル テレコミュニケーションズ コーポレイション リミテッド Power adapter and terminal
US10454288B2 (en) 2014-11-11 2019-10-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Quick charging method, power adapter and mobile terminal
US10651677B2 (en) 2016-02-05 2020-05-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method, and power adapter and switching-mode power supply
US10566828B2 (en) 2016-02-05 2020-02-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10320225B2 (en) 2016-02-05 2019-06-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method for increasing service life of battery of terminal and power adapter thereof
US11539230B2 (en) 2016-02-05 2022-12-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Device charging system, charging method, and power adapter
US10340718B2 (en) 2016-02-05 2019-07-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system, charging method, and power adapter
US10340727B2 (en) 2016-02-05 2019-07-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method, and power adapter
US10340717B2 (en) 2016-02-05 2019-07-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system, charging method, and power adapter
US10348119B2 (en) 2016-02-05 2019-07-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and method for charging control
US10381860B2 (en) 2016-02-05 2019-08-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10389164B2 (en) 2016-02-05 2019-08-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system, protection method for preventing from impact of surge voltage and power adapter
US10411496B2 (en) 2016-02-05 2019-09-10 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method, and power adapter
US10411494B2 (en) 2016-02-05 2019-09-10 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and method for charging control
TWI624131B (en) * 2016-02-05 2018-05-11 廣東歐珀移動通信有限公司 Charging method, power converter and mobile device
US10461568B2 (en) 2016-02-05 2019-10-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system, charging method, and power adapter
US10491030B2 (en) 2016-02-05 2019-11-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method for terminal and terminal
US11070076B2 (en) 2016-02-05 2021-07-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging method, charging system, and power adapter
US10541553B2 (en) 2016-02-05 2020-01-21 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10566829B2 (en) 2016-02-05 2020-02-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10566827B2 (en) 2016-02-05 2020-02-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10291060B2 (en) 2016-02-05 2019-05-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10581264B2 (en) 2016-02-05 2020-03-03 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and charging control method
US10622829B2 (en) 2016-02-05 2020-04-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging control method and apparatus
US10637276B2 (en) 2016-02-05 2020-04-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and method for charging control
US10644530B2 (en) 2016-02-05 2020-05-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system, charging method, and device
US10644529B2 (en) 2016-02-05 2020-05-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and method for charging control
US10985595B2 (en) 2016-02-05 2021-04-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Adapter and method of controlling charging process
US10680460B2 (en) 2016-02-05 2020-06-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method and power adapter for charging a rechargeable battery
US10714963B2 (en) 2016-02-05 2020-07-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system, charging method, and device
US10727687B2 (en) 2016-02-05 2020-07-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and method for terminal, power adapter and charging device
US10819134B2 (en) 2016-02-05 2020-10-27 Guangdong Oppo Mobile Telecommuncations Corp., Ltd. Adapter and method for charging control
US10886772B2 (en) 2016-02-05 2021-01-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method for terminal, and power adapter
US10910866B2 (en) 2016-02-05 2021-02-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Charging system and charging method for terminal and power adapter
CN106972558A (en) * 2017-03-27 2017-07-21 联想(北京)有限公司 A kind of charge control method and electronic equipment
CN106972558B (en) * 2017-03-27 2019-12-31 联想(北京)有限公司 Charging control method and electronic equipment
WO2019061153A1 (en) * 2017-09-28 2019-04-04 深圳市柔宇科技有限公司 Adapter, charging cable and charging apparatus
CN113836065A (en) * 2021-08-31 2021-12-24 浙江地芯引力科技有限公司 One-to-many data line circuit and data line
CN113836065B (en) * 2021-08-31 2022-11-18 浙江地芯引力科技有限公司 One drags multidata line circuit and data line

Also Published As

Publication number Publication date
CN102820682B (en) 2016-01-20
CN102820682A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
WO2012167677A1 (en) Device and method for communication and charging for external device via usb interface
US8683087B2 (en) Mobile device auto detection apparatus and method
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
CN110829523B (en) Electronic equipment and reverse charging method
TWI523370B (en) Apparatus and method for providing power through a reverse local data transfer connection
CN103019352B (en) Universal serial bus power supply method, device end device and system applying same
EP3086433A1 (en) Charging method, alternating current adaptor, charging management device and terminal
CN103078393B (en) USB hub and power supply method of USB hub
WO2013152662A1 (en) Power supply method for terminal device, and terminal device thereof
TWI436514B (en) Portable electronic devices and charging method thereof
CN208174340U (en) The power supply circuit and electronic product of portable electronic product with OTG function
CN103208822A (en) Universal serial bus (USB) charging control circuit
TW201742348A (en) Method and device for controlling charging and electronic equipment having the same
CN107294172A (en) Terminal device, power supply adaptor and charge control method
US20160226244A1 (en) Power supply circuit, charge circuit, charging system, power supplying method, and charging method
CN105162213A (en) USB controller, and device
CN107516919A (en) A charging method and charger
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN102263423B (en) Universal serial bus charging system and charging method thereof
CN104638711A (en) Mobile equipment and charging system for same
CN103457304A (en) charging converter
CN103795586A (en) Switching type communication interface detection method and device
CN107706977A (en) Method for detecting charging current and charging device
TW201814543A (en) Apparatus and method for USB charge and communication
CN106233568B (en) A kind of charging equipment is from ring detection method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12796906

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12796906

Country of ref document: EP

Kind code of ref document: A1