1. Field of the Invention
The present invention relates to power charging systems and, more specifically, to a system for controlling when a device battery will be charged.
2. Description of the Related Art
Battery powered devices having a Universal Serial Bus (USB) interface will immediately start to charge whenever power is available through the USB interface. This automatic charging may be undesirable, such as when the host to which the battery powered device in connected is also running from a battery, as the charging of the device will adversely impact the power status of the host. Thus, control of the charging of devices connected via a USB interface can be critical to the host. Accordingly, there is a need in the art for a system that can provide the host with control over whether a slave device is charged via the USB interface.
The present invention is a system for controlling when a device is charging that includes a USB interface for connecting the device to a host, a first circuit coupled to the USB interface and configured to provide data received from the host via the USB interface to the device, a second circuit coupled the USB interface and configured to selectively allow charging of a battery coupled to the device using power provided via the USB interface or deny charging of the battery via the USB interface, and a third circuit coupled to the first circuit and the second circuit. The third circuit is programmed to control whether the second circuit allows or denies charging of the battery via the USB interface based on receipt of a signal from the host via the USB interface. The first circuit may be a USB universal asynchronous receiver/transmitter. The second circuit may be a single-ended primary inductive converter. The third circuit may be a microprocessor and a switched voltage regulator. The signal triggering whether to allow charging of the battery can be a DTR signal and the microprocessor may be programmed to allow the device to charge via the USB interface when the DTR signal is asserted by the host. In this example, the device may be a printer.
The present invention also includes a method of controlling when a device is charging, comprising the steps of providing a system having a USB interface for connecting the device to a host, a first circuit coupled to the USB interface and configured to provide data received from the host via the USB interface to the device, a second circuit coupled the USB interface and configured to selectively allow charging of a battery coupled to the device using power provided via the USB interface or deny charging of the battery via the USB interface, and a third circuit coupled to the first circuit and the second circuit. The next step involves sending a signal from the host via the USB interface. Finally, the method involves allowing charging of the battery via the USB interface in response to receipt of the signal from the host via the USB interface and denying charging of the battery via the USB interface in response in the absence the signal.
The present invention will be more fully understood and appreciated by reading the following Detailed Description in conjunction with the accompanying drawings, in which:
Referring now to the drawings, wherein like reference numerals refer to like parts throughout, there is seen in
Device 10 is programmed to only charge battery when a standard data terminal ready (DTR) signal is received from a host connected to device 10 via connector 20. More specifically, the receipt of a DTR signal asserted by the host via interface 20. The presence of a DTR signal is provided by USB interface adapter 24 to the charge supervisor microprocessor 26, which is programmed to operate charging and monitoring circuit 22 so that charging of battery 42 occurs via the existing power line of USB interface 20 only when the DTR signal is received from the host. As a result, the host can control when the device is allowed to draw power through USB interface 20 by selectively providing the DTR signal, thus ensuring that device 10 will only charge when the DTS signal is asserted.
Referring to
The present invention thus provides a system for controlling whether a battery powered device tethered to a host via a USB interface will charge its battery via the USB connection. A USB interface adapter in the device is programmed to control charging of the device battery based on whether a signal, such as a standard data terminal ready (DTR) signal, is received from the host. As a result, the host can control whether the device is allowed to draw power by selectively providing the DTR signal. Data packets are sent via the USB data line that is interpreted as a DTR signal by the USB to Serial adapter. These adapters, which can be made by different manufacturers, provide output pins that emulate the standard RS-232 signals. The adapter manufacturers also provide operating system drivers (windows, Linux, etc.) that allow a programmer to control these lines as if communication with an RS-232 serial port—referred to as Virtual Com Port (VCP) drivers. The dedicated DTR output pin from the adapter is then used to control the charging circuit.
Number | Date | Country | |
---|---|---|---|
62292530 | Feb 2016 | US |