Ports and Interfaces > USB

Self-Powered to Bus-Powered (300 mA) and back - Section 9.1.1.2 Question

(1/2) > >>

RobV:
I am reviewing the second paragraph of 9.1.1.2 of the USB 2.0 Specification (rev 2) and have a question regarding transitions between self-powered and bus-powered.

It is not very clear on the behavior when switching between the two power options.

1) Do I need to re-enumerate (disconnect, but detaching the pull-up resistor) the function from the host?

2) I notice there is mention of GetStatus and reporting the bus power state. However, with a USB analyzer, I never see this message except during enumeration.

3) If bus powered and then I connect my self-power, do I need to re-enumerate or can I just keep on going?

I would prefer to remain under the same enumeration if possible without violating the USB Specification. Any thoughts?

I'm using an MSP430 for the USB Function (device).

Jan Axelson:
If the USB communications change when self powered (for example, if the device needs self power to perform its function), force a re-enumeration that returns a configuration descriptor with the current information.

Jan

RobV:
Does this also hold true if the device was bus powered and then external power is connected?

1) Enumerate as bus powered device
2) Connect external power (no longer fully powered by bus)
3) Re-enumerate by disconnecting from the bus.

Or can I skip step 3?


--- Quote from: Jan Axelson on March 15, 2011, 11:11:36 am ---If the USB communications change when self powered (for example, if the device needs self power to perform its function), force a re-enumeration that returns a configuration descriptor with the current information.

Jan

--- End quote ---

Jan Axelson:
What is your device? What can it do when self powered that it can't do when bus powered?

Jan

RobV:
Jan,

The device is driving a load over one unit load (between 160 mA and 300 mA). The device is to retain this state if external power is connected or active on the bus.

However, during suspend, the device would have to get below 2.5 mA to meet USB spec. To avoid the problem, this is where external power comes in.

I guess my questions relates to over-engineering and allowing "hot plugging" of the external power. So, either connect or disconnect external power.

The major case, is during normal operation. Not during suspend, as the device would indeed drop to less than 2.5mA as required when powered only by the bus.

I am currently developing the device and have control to make it behave in any manor, but would like to comply with USB 2.0

Thanks and Best Regards,
--Rob

Navigation

[0] Message Index

[#] Next page

Go to full version