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

Chapter 20: Hub Configuration

Clear Hub Local Power Feature request.

Reading Port Status

When a port status change occurs, software uses the “Get Port Status” request to determine which port feature or features have experienced a change. The possible sources of port changes are:

Connect Status Change — device either connected or disconnected from port

Port Enable/Disable Change — change caused by hardware event

Suspend Change — changed indicated when resume has completed

Over-Current Indicator Change — used only by hubs that report over-cur- rent on a per port basis

Reset Change — change set when reset processing is completed

Consider the following example. A Connect Status Change is indicated when power is applied to a port that currently has a device attached. The port status change field will be set and the current status field will indicate that a device is currently attached. Configuration software recognizes that a device has been connected and acknowledges the change by performing a Clear Port Feature” request.

Enabling the Device

Having detected a device attached to the port, configuration software will reset the port and attempt to configure the device. A port is enabled by software when the Reset request is issued. Note that software may also enable a port using the “Set Port Enable Feature” request.

Summary of Hub Port States

The following table is a general summary of the hub port states and the transitions that take place for given signaling events or control requests. See the 2.0 specification for a complete listing of port states and transitions.

399

USB System Architecture

Table 20-13: Hub Port States

Signaling/State

Powered

Disconnected

Disabled

Enabled

Suspended

off

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset on root port

Stay in

Go to

Go to

Go to

Go to

(hub with power switching)

powered

powered off

pow-

powered

powered off

 

off

 

ered off

off

 

 

 

 

 

 

 

Reset on root port

N.A.

Go to

Go to

Go to

Go to

(hub without power switching)

 

disconnected

discon-

discon-

disconnected

 

 

 

nected

nected

 

 

 

 

 

 

 

ClearPortFeature PORT_POWER

Stay in

Go to

Go to

Go to

Go to

(power switching)

powered

powered off

pow-

powered

powered off

 

off

 

ered off

off

 

 

 

 

 

 

 

SetPortFeature PORT_POWER

Go to

N.A.

N.A.

N.A.

N.A.

(power switching)

discon-

 

 

 

 

 

nected

 

 

 

 

 

 

 

 

 

 

SetPortFeature PORT_RESET

Stay in

Go to

Go to

Stay in

Go to

 

powered

enabled

enabled

Enabled

enabled

 

off

 

 

 

 

 

 

 

 

 

 

SetPort Feature

ignore

ignore

Go to

Stay in

ignore

PORT_ENABLE

 

 

enabled

Enabled

 

 

 

 

 

 

 

ClearPort Feature

ignore

ignore

Stay at

Go to

ignore

PORT_ENABLE

 

 

disabled

disabled

 

 

 

 

 

 

 

Downstream packet

Do not

Do not prop-

Do not

Propa-

Do not prop-

traffic (hub awake)

propagate

agate

propa-

gate

agate

 

 

 

gate

traffic

 

 

 

 

 

 

 

Upstream packet traffic (hub

Do not

Do not prop-

Do not

Propa-

Set status

awake)

propagate

agate

propa-

gate

field, do not

 

 

 

gate

traffic

prop.

 

 

 

 

 

 

SetPortFeature PORT_SUSPEND

ignore

ignore

ignore

Go to

ignore

 

 

 

 

suspend

 

 

 

 

 

 

 

ClearPortFeature

ignore

ignore

ignore

ignore

Go to

PORT_SUSPEND

 

 

 

 

resume

 

 

 

 

 

 

Disconnect detect

ignore

ignore

Go to

Go to

Go to

 

 

 

discon-

discon-

disconnected

 

 

 

nected

nected

 

 

 

 

 

 

 

400

Chapter 20: Hub Configuration

Table 20-13: Hub Port States

Signaling/State

Powered

Disconnected

Disabled

Enabled

Suspended

off

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Connect detect

ignore

Go to dis-

N.A.

N.A.

N.A.

 

 

abled

 

 

 

 

 

 

 

 

 

401

USB System Architecture

402

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