USB Enumeration
Contents
What is Enumeration?
Enumeration is the process whereby the host detects the presence of a device and takes the necessary steps to ensure that the device endpoints are added to the list of endpoints serviced by the host.
Device Enumeration States
Device Detection
The presence of a newly installed Full Speed, High Speed, or Low Speed device is recognized by changes in the D- or D+ signal. A low-speed device places 5V on D-, high- and full-speed devices assert 5V on D+. The connection signals are detected by the hub and reported to the host. Once a device is detected, the host issues a RESET command to the device.
Default State
When a RESET control signal sequence is received, the device will manage its load, per specification, to enumerate. If the attached device is a High-Speed device, a chirp will be returned and the high-speed detection process will be completed. Once the speed has been settled, the host reads the device descriptor and assigns an address.
Addressed State
After setting the address, the host reads all remaining descriptor tables for the device. If a host determines it can service the device’s interface endpoints and provide sufficient power, the host issues a command informing the device which of its configurations to activate.
Configured State
After receiving a notification from the host regarding which configuration to activate, the device is ready to run using the active configuration.