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

Chapter 18: Configuration Process

Resource Management

Configuration software must ensure that the available USB resources can support the device configuration that is selected. Resource management software must track the bus bandwidth consumed by all USB devices as they are configured. As each device is attached, resource management software must verify that the periodic endpoints can be supported based on their bandwidth needs and the bandwidth that remains.

Device bus power requirements must also be checked against the power available at the port to which the device is attached. Power available at a hub port must be determined by the hub client, because it has specific knowledge of the power characteristics of the hub. Port power capacity is requested by resource management software so that it can verify power requirements can be met.

If USB can provide the bus power and bandwidth needed by the device, then the device can be configured. If the USB cannot support the requested configuration, then alternate device configurations are checked; if none of the configurations can be supported, the device is not configured and the user is notified.

Device Client Software

Once configuration software has configured the device it is ready for operation from the hardware perspective. Client software is identified by configuration software and loaded. This software must read client-specific and/or class-spe- cific descriptors to verify its capabilities. Client software can then initialize the device for use by the application layer.

Root Hub Configuration

Host software begins USB device enumeration by configuring the root hub. The root hub must implement a status change endpoint (see Figure 18-2) that can be used by the hub client to detect status changes pertaining to each port. Once the hub is configured, software can poll the status change endpoint to detect which ports currently have devices attached to them.

343

USB System Architecture

Figure 18-2: Root Hub’s Control and Status Change Endpoints

([SDQVLRQ %XV

Host Controller

Status

EndPoint &

0 Control

 

 

 

 

 

 

 

 

Port 0

Port 1

 

 

 

 

86%

+RVW &RQWUROOHU 5RRW +XE

.H\ERDUG 0RGHP

Each Device Is Isolated for Configuration

Each device is initially isolated from the USB, since all hub ports are initially disabled. Host software detects the presence of a device when power is applied to the port by reading the status change endpoint. One at a time, host software must enable each port that has a device attached. Software typically issues a “Set Port RESET” request which also enables the port. Each device is reset and configured in turn.

344

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