The present invention generally relates to the supply of power to interfaces of an electronic device.
Consumer electronic devices are commonly equipped with peripheral interfaces or (interface) ports, allowing them to receive power and possibly exchange data with a host electronic device. To ensure interoperability, these electronic devices, also called peripheral devices, function according to industry standards. Example industry standards are IEEE1394, also referred to as FireWire, Universal Serial Bus, commonly referred to as USB, or Power over Ethernet, commonly referred to as PoE. These industry standards define cables, connectors and communication protocols used in a serial bus for connection communication and power supply to external peripheral devices. While these standards were originally developed for data exchange, the peripheral interfaces that are compliant to these standards also allow for the electronic devices to obtain power from their host, which avoids them to require an independent power supply or external AC adapter. This has leveraged the development of non-communication capable devices such as lamps, electric razors or low power electric fans equipped with a compliant peripheral interface. Example devices that host peripheral interfaces are personal computers, digital still picture/video cameras, high definition digital televisions, digital set top boxes, smart phones, and game consoles. The industry standards are continuously updated to offer even better data throughput and increased power output. For example, the current output by individual ports of a hosting device such as a host or hub, is limited to 500 mA (milli Amperes) for high-power USB peripherals according to USB 1.0, 2.0 and 3.0 (corresponding to 2.5 W, W standing for Watt) and 1.5 A for USB 3.0 USB dedicated charging ports (7.5 W). For FireWire, the figures are 1.5 A at maximum 30 VDC. PoE provides up to 15.4 W of DC power (minimum 44 V DC and 350 mA) to each device. An updated PoE standard also known as PoE+, provides up to 25.5 W of power.
Devices that occasionally or continuously draw more current than a single interface port is capable of providing, can choose to connect to multiple ports at a same time. Current-limiting circuits are used to protect the host or hub from overload because of what is commonly referred to as ‘overcurrent’. An overcurrent condition on a peripheral interface can result in the peripheral interface being closed down by the host or hub (i.e. the connection between a corresponding peripheral interface and the power circuit is switched off), and thus the impossibility to continue to use the peripheral interface and the peripheral device connected to it until the peripheral device is unplugged, the unplugging action resetting the overcurrent condition. Such over current condition can even occur if the connected device only shortly exceeds the maximum allowed current.
Document U.S. Pat. No. 8,218,279 describes an electronic device and method for dynamic USB power assignment, that enables USB peripherals to exceed the maximum current specified by the USB standards as long as the total of the maximum allowed current supplied on its USB ports is respected. However, if the total current supplied on the USB ports exceeds the total maximum allowed current, ports are closed down using relays that cut off port power. Thus, while the limits of maximum current provided to each individual USB port are increased, the problem of closing down USB ports and a user being confronted with unresponsive peripherals remains problematic.
There is thus a need for further optimization of prior art solutions.
The present invention aims at alleviating some inconveniences of prior art.
To this end, the invention comprises among others a method for electric power management of a plurality of peripheral interfaces for connecting a plurality of peripheral devices to an electronic device, the method comprising detecting of a sum of electric currents delivered to the plurality of peripheral interfaces exceeding a predetermined limit; determining, upon the detecting, of a choice of at least one peripheral interface of the plurality of peripheral interfaces for limiting electric current delivered to the at least one peripheral interface; and limiting electric current delivered to the determined at least one peripheral interface to a maximum value being the predetermined limit minus the sum of electric currents delivered to peripheral interfaces that have not been chosen in the determining step.
According to a variant embodiment of the method of the invention, the detecting further comprises taking into account of a predetermined minimal time duration of exceeding the predetermined limit.
According to a variant embodiment of the method of the invention, the method comprises changing of a signal on the at least one peripheral interface determined in the determining step, for indicating a limiting of electric current delivered to the at least one peripheral interface.
According to a variant embodiment of the method of the invention, the level of the signal is determined by the maximum value.
According to a variant embodiment of the method of the invention, the method comprises transmission of a message on the at least one peripheral interface determined in the determining step, the message indicating the limiting of electric current delivered to the at least one peripheral interface.
According to a variant embodiment of the method of the invention, the message comprises the maximum value.
According to a variant embodiment of the method of the invention, the determining comprises choosing for limiting electric current, among the at least one peripheral interfaces of the plurality of peripheral interfaces to which is connected a peripheral device that specified upon connection to the electronic device a maximum electric current need that exceeds that of a predetermined threshold for a standard peripheral device.
According to a variant embodiment of the method of the invention, the method further comprising choosing, for limiting electric current, among the at least one peripheral interfaces of the plurality of peripheral interfaces to which is connected a peripheral device that is a non data communicating device.
According to a variant embodiment of the method of the invention, the method further comprising choosing, for limiting electric current, among the at least one peripheral interfaces of the plurality of peripheral interfaces which are dedicated charging ports.
According to a variant embodiment of the method of the invention, the method further comprising choosing, for limiting electric current, among the at least one peripheral interfaces of the plurality of peripheral interfaces which are low priority devices.
According to a variant embodiment of the method of the invention, the plurality of peripheral interfaces are according to a version of Universal Serial Bus.
The current invention also concerns a device comprising an arrangement for electric power management of a plurality of peripheral interfaces for connecting a plurality of peripheral devices, the device comprising a detector detecting if a sum of electric currents delivered to the plurality of peripheral interfaces exceeds a predetermined limit; a determinator determining upon the detecting, of a choice of at least one peripheral interface of the plurality of peripheral interfaces for limiting electric current delivered to the at least one peripheral interface; and a current limiter limiting electric current delivered to the determined at least one peripheral interface to a maximum value being the predetermined limit minus the sum of electric currents delivered to the peripheral interfaces that have not been chosen by the determinator.
According to a variant embodiment of the device of the invention, the device further comprises a timer for taking into account of a predetermined minimal time duration of exceeding the predetermined limit.
According to a variant embodiment of the device of the invention, the device further comprises an interface line on the peripheral interfaces on which is provided a signal that changes on the at least one peripheral interface determined in the determining step, for indicating the limiting of electric current delivered to the at least one peripheral interface.
According to a variant embodiment of the device of the invention, the device further comprises a message transmitter unit for transmission of a message on the at least one peripheral interface determined in the determining step, the message indicating the limiting of electric current delivered to the at least one peripheral interface.
More advantages of the invention will appear through the description of particular, non-restricting embodiments of the invention. The embodiments will be described with reference to the following figures:
The power circuit is dimensioned such that it can supply sufficient power to all of the USB ports at the same time if needed up to a certain predetermined total limit; typically 500 mA per USB port according to the USB specification. While this prior-art host device allows an individual USB device to draw more current than a maximum current available per USB port that is predetermined according to the USB standard (i.e. 500 mA), the power supply to a USB port will be cut off by the controller 110 and one of the relays 105-108 if the total current detection circuit 109 detects that the set of USB devices 11-14 require more power than a predetermined total limit, for example 2 A. If this occurs, the USB device must be removed from the disabled USB port for the USB port to be used again. USB devices that need more current than a standard USB device, can connect to multiple USB ports at a same time in order to obtain enough power to use the USB device without provoking an USB port being shutdown. Evidently, this reduces the possibility to connect other peripheral devices to the device 10, even if the device 10 would be able to supply enough power to all peripheral devices. It may also be necessary to disconnect other USB devices to ensure that total available power available for all USB ports is not exceeded.
PSU 4217 provides electrical power to units 4210 (CPU), 4211 (Clock), 4212/4213 (peripheral interfaces), 4215 and 4216 (memories). Internal data communication bus 4214 provides CPU 4210, peripheral interfaces 4214 and 4213, NVM 4215 and VM 4216 with communication means. Clock unit 4211 provides the latter units with a common time reference for synchronization of their operation and for other timing purposes. Peripheral interfaces 4214 and 4213 each have their respective physical interface link 4100 and 4101 for connection to compatible peripheral devices, such as for example devices 28 and 29. The physical interface links comprise at least a power line such as 207/212 of
In an initialization step of 500, variables that are used for the method are initialized, for example the variables stored in register 42161 of memory VM 4216 of host device 40, or a register in peripheral interface current controller 21.
In a decisional step 501 a detecting is done if a sum of electric currents delivered to the plurality of peripheral interfaces exceeds a predetermined limit, also referred to as an overcurrent situation. In device 40 of
If such overcurrent situation is not detected in detecting step 501, the method reiterates via 5001 to detecting step 501.
If such overcurrent situation is however detected in detecting step 501, it is determined in a step 502 which of the peripheral interfaces of the plurality of interfaces are chosen for current limitation. This determination is for example done by CPU 4210 of device 40 of
Then, in a step 503, the electric current delivered to the one or more peripheral interfaces that were determined in determining step 502 is limited to a limiting value. The limiting value is a maximum electric current value and is calculated as being the previously discussed predetermined limit minus the sum of currents that are delivered to peripheral interfaces that have not been chosen for current limitation in determining step 502. Referring to the example embodiment of
Where Imax is the discussed maximum value of current that is set as a limit for the at least one peripheral interface that has been chosen in the determining step 502, Ilimit is the value of current that corresponds to the predetermined limit, i corresponds to the number of peripheral interfaces that have not been chosen in the determining step 502, and Iperiphi corresponds to the current supplied to peripheral interface i of the latter peripheral interfaces.
Finally, the method reiterates via 5002 to return to the detecting step 501.
According to a variant embodiment of the method of the invention, the detection comprises taking into account of a predetermined minimal time duration of exceeding of the predetermined limit. This function is for example implemented using a timer unit (such as clock 4211 of device 40). This has the advantage to allow excess current spikes, such as those that occur when a spindle motor of an external hard disk is powered on as the hard disk is accessed for a read or write operation (commonly referred to as inrush current). This excess current spike can be provided by a capacitor mounted in the power line of the peripheral interface that feeds power to the peripheral device, such as capacitor 35 of
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous variant embodiments, the method comprises a step of changing of a signal on the one or more peripheral interfaces determined in the determining step, for indicating the limiting of electric current delivered to the one or more peripheral interfaces. This variant has the advantage to offer to the concerned peripheral device(s) that is connected to the peripheral interface an opportunity to reduce the current drawn or to inform the user of the device of an overcurrent situation occurring. Such a signal can be provided on a dedicated interface pin that is supplementary to the other lines on the peripheral interface.
According to a variant embodiment of the method of the invention that can advantageously be combined with the previous variant embodiment, the level of the signal is determined by the maximum value. Then, the concerned peripheral device(s) can determine the maximum value of the current which it should not exceed, and possibly adapt its current consumption, possibly in real time. The level of the signal is for example proportional to the maximum value. For example, when the current is not limited, the level of the signal is 0V, indicating that for example 2 A is available. A maximum of 5V indicates that 0 mA is available. A value of 2.5V indicates that 1 A is available. According to a variant embodiment, the level of the signal is inverse proportional. According to a variant embodiment, the level of the signal is adapted in steps, each step indicating a progressive limiting of current.
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous variant embodiments, the method comprises transmission of a message on the one or more peripheral interfaces determined in the determining step, the message indicating the limiting of electric current delivered to the one or more peripheral interfaces. As with the discussed variant of changing of a signal on the peripheral interface, this variant allows to indicate to the peripheral device that electric current is limited in the limiting step. Such a message transmission can be assured by a message transmitter unit (not shown).
According to a variant embodiment of the method of the invention that can advantageously be combined with the previous embodiment, the message comprises the maximum value, so that the peripheral device can reduce the current drawn to the maximum value provided in the message.
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous embodiments, the determining step comprises choosing for limiting electric current, among the one or more peripheral interfaces of the plurality of peripheral interfaces to which is connected a peripheral device that has specified, upon connection to the peripheral interface, a maximum electric current need that exceeds that of a predetermined threshold for a standard peripheral device. This allows for example to privilege for the choosing of current limiting those devices that are not “standard” peripheral devices. The notion of “standard peripheral device” is for example according to the standard of implementation of the peripheral interface and is defined by the concerned industrial standard; for example, a USB device that draws more than 500 mA is considered as being a non-standard device.
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous embodiments, the method further comprises choosing, for limiting electric current, among the one or more peripheral interfaces of the plurality of peripheral interfaces to which is connected a peripheral device that is a non data communicating device. This variant has the advantage, when an overcurrent situation occurs, to primarily limit the current provided to non-data communicating peripheral devices, such as for example the previously mentioned cooling fan or electrical razor charger, while providing current as needed to an external hard disk drive.
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous embodiments, the method further comprises choosing, for limiting electric current, among the one or more peripheral interfaces which are dedicated charging ports. This variant has the advantage, when an overcurrent situation occurs, to primarily limit the current provided to pure charging devices, while continuing to provide current as needed to data communicating devices such as the previously mentioned external hard disk drive.
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous embodiments, the method further comprising choosing, for limiting electric current, among the at least one peripheral interfaces of the plurality of peripheral interfaces which are low priority. This variant comprises definition of priority classes for peripheral devices, or definition of priority peripheral interfaces. When an overcurrent situation occurs, the current provided to low priority peripheral devices or peripheral interfaces is limited, while continuing to provide current as needed to high(er) priority peripheral devices or peripheral interfaces.
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous embodiments, the plurality of peripheral interfaces are according to a version of Universal Serial Bus, such as USB 1.0, 2.0 or 3.0 or other versions, or according to a version of IEEE1394 FireWire, or according to a version of PoE (Power over Ethernet).
According to a variant embodiment of the method of the invention that can advantageously be combined with any of the previous embodiments, a time slot reservation mechanism is used for current limiting. For example, a device can reserve a time slot for temporarily exceeding 500 mA, being the maximum current consumption of a “standard” USB device, during a specified time or during a specified number of time slots, the time slots having a predetermined duration. According to a variant embodiment, the time slot reservation comprises the maximum current needed by the peripheral device during the time slot duration. This variant embodiment requires a time slot management controller but allows smoothing out the current consumption of the peripheral devices over time and avoiding overcurrent situations from occurring. The time slot management controller can be added to the program 42150 of the electronic device 40 of
The current invention allows thus a more flexible management of supplying electrical power to peripheral devices than is possible according to cited prior art. Among other advantages, the invention allows to continue to provide power to peripheral devices when a situation of overcurrent occurs. Among advantages of variants of the present invention, peripheral devices are informed of an overcurrent situation occurring, and can adapt their electric current consumption consequently, delay or postpone actions that provoke an overcurrent situation. Thus, according to one of the advantages of the present invention, peripheral devices can continue to function correctly even if the total maximum current that they can draw exceeds the total maximum current that an electronic device hosting the peripheral interfaces can provide.
The implementation of the invention is not limited to the embodiments shown. For example, the reader will understand that although
Likewise, the reader will understand that the implementation of the method or the invention is not restricted to an implementation as depicted in
The present invention is not limited to the standard peripheral interfaces and protocols discussed here, such as USB, FireWire or PoE, and is applicable to any kind of peripheral interface, proprietary or standardized, serial or parallel, where power is supplied to a peripheral device connected to it via the peripheral interface.
The discussed variants can be used apart, or combined between them to provide a particularly advantageous variant embodiment of the invention.
Although some of the described embodiments discuss a use of electronic circuits, some functions that are presented as being implemented by dedicated electronic circuits may instead be implemented in software to reduce production costs of an electronic device implementing the present invention.
Alternatively, the invention is implemented using a mix of hard-and software components, where dedicated hardware components provide functions that are alternatively executed in software. According to a particular embodiment, the invention is entirely implemented in hardware, for example as a dedicated component (for example as an ASIC, FPGA or VLSI) (respectively <<Application Specific Integrated Circuit>>, <<Field-Programmable Gate Array>> and <<Very Large Scale Integration>>) or as distinct electronic components integrated in a device or in a form of a mix of hardware and software.
Number | Date | Country | Kind |
---|---|---|---|
12306357.0 | Oct 2012 | EP | regional |