Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
USB System Architecture (USB 2.0).pdf
Скачиваний:
173
Добавлен:
03.05.2015
Размер:
7.03 Mб
Скачать

Chapter 18: Configuration Process

Reset Forces Device to Default Address (zero)

Resetting a device forces it to respond to its default device address (zero). Host software uses the “Set Port Reset” request causing the hub to reset the selected port. Every USB device after reset responds to address zero. In this way, one device at a time, configuration software can read every device’s descriptor at the same default address.

Host Assigns a Unique Device Address

During the configuration process, each device is assigned a unique address that it will respond to thereafter. No contention occurs, since each device is assigned a unique address prior to enabling the next port. The standard “Set Address” request is used by software to assign the device address.

Host Software Verifies Configuration

Host software must probe each device that it detects to determine if the endpoints associated with the device can be accommodated based on the bandwidth that remains free. It must also ensure that the bus power required by the device can be satisfied by the hub port to which it is attached.

Devices may have one or more configurations that can be selected. Each configuration descriptor represents a different set of resources that can be chosen for the device. Host software ensures that the USB power and bandwidth required by the device can be satisfied. If a given configuration cannot be satisfied, then the next configuration is evaluated. If after evaluating all configurations, the USB cannot provide the necessary resources, the device is not configured.

Power Requirements

Host software must verify that the bus power required by the device can be supplied by the hub port. During configuration a device is specified to consume no more than 100ma of bus current. Only after the device is configured can it consume the maximum power defined by the configuration selected. The maximum bus power needed is defined in the configuration descriptor. Similarly, a hub also reports the amount of power that it can supply via its descriptors. If every configuration specifies more bus power than the hub can supply, then the device is not configured.

345

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]