Скачиваний:
31
Добавлен:
02.05.2014
Размер:
3.51 Mб
Скачать

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

generate a CDID when the New Connection flag bit has a value of one. A connect request transmitted from a device in the UnConnected device state must not use secure packet encapsulation.

7.6.1.2Reconnect Request

When a device wants to initiate a reconnect event, it sends a DN_Connect request to the host specifying its current USB device address in the bmAttributes.Previous Device Address field. A reconnect request must always use secure packet encapsulation.

7.6.2 Device Disconnect (DN_Disconnect)

The USB 2.0 wired model for disconnecting a device is via the user explicitly disconnecting the device from a wired USB port. Wireless USB provides emulated support for this required model via a DN_Disconnect device notification.

Table 7-57. Wireless USB Device Disconnect Notification Format

Offset

Field

Size

Type

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52 for the default values in this field.

 

 

 

 

 

2

bType

1

Constant

The value of this field must be DN_Disconnect for a

 

 

 

 

Wireless USB Disconnect notification.

A device disconnect can be initiated by either the device (via a DN_Disconnect notification) or the host (via Disconnect IEs included in MMCs). A device initiates a disconnection by sending a Device DN_Disconnect notification to the host during a DNTS. In response to a DN_Disconnect notification or the host stack initiating disconnection, the host will include a WDEV_DISCONNECT_IE, targeting the requesting device, in MMCs transmitted to the cluster. See Section 4.14 for operational details.

Maximum Retransmit Rate: a device should retransmit this notification at every DNTS opportunity provided by the host.

Stop Retransmission Condition: a device will cease retransmission attempts of this notification when it observes a WDEV_Disconnect_IE that includes its device address, or it completes three tries of the notification.

7.6.3 Device Endpoints Ready (DN_EPRdy)

Whenever a device does not have data or space available, it will respond to a transaction request with a flow control response (see Section 5.5.4). The host response to a flow control event is to remove the endpoint from the active list of endpoints being serviced during the Wireless USB reservation time. A device must use a DN_EPRdy notification to signal the host that one or more endpoints are ready to resume data streaming. Note, these notifications are only used for asynchronous type Endpoints (i.e. Control and Bulk).

Table 7-58. Wireless USB Device Endpoints Ready Notification Format

Offset

Field

Size

Type

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52 for the default values in this field.

2

bType

1

Constant

The value of this field must be DN_EPRdy for a

 

 

 

 

Wireless USB Endpoints Ready device notification.

3

bLength

1

Number

This field contains the number of endpoint ready

 

 

 

 

elements that are present in this notification.

188

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-58. Wireless USB Device Endpoints Ready Notification Format (cont.)

Offset

Field

Size

Type

Description

 

 

 

 

 

 

 

4

bEPsReadyArray

Var

Array

This is an array of endpoint ready elements where

 

 

 

 

each element identifies the endpoint address

 

 

 

 

(number and direction) that is ready for data transfer.

 

 

 

 

The format of an element is:

 

 

 

 

Field

Size

Description

 

 

 

 

Endpoint

1

This is a standard Endpoint

 

 

 

 

Address

 

address, where bit [7] is the

 

 

 

 

 

 

Direction (0 = OUT; 1 = IN)

 

 

 

 

 

 

and bits [3:0] are the

 

 

 

 

 

 

endpoint number. Bits [6:4]

 

 

 

 

 

 

must be zero.

 

 

 

 

Buffers

4

This is a bit vector with the

 

 

 

 

Available

 

same information as the

 

 

 

 

 

 

bvAckCode and bvDINAck

 

 

 

 

 

 

fields.

This message allows the device to bundle multiple endpoint ready indications into a single device notification. The device must include only those endpoints that previously issued flow control events and have recently transitioned to the ‘ready’ state.

When the host sees the notification it must resume sending transactions to the endpoints within 50 milliseconds, when the host has data or buffer space available. Devices transmit this notification only when they have Endpoints that have previously issued flow-control events. If devices transmit a DN_EPRDY notification for Endpoints which have not been through a flow-control event, the resulting behavior is undefined.

Note that control endpoints encapsulate two endpoints (an IN and OUT at the same endpoint number). If a device gives a flow control response to the host during a control transfer, then the subsequent EndpointReady notification must correctly indicate the direction of data flow that must be resumed. For example, a device may respond to the Status Stage of a SetAddress request (an IN transaction) with a NAK handshake. The device must indicate the IN Default Control Endpoint Address (80H) in an endpoint ready element.

Also note that the maximum number of endpoints that can be contained in a single DN_EPRDY notification is six (6). If a device has more than 6 flow-controlled endpoints that are now ready for data streaming, the device must use more than one DN_EPRDY notification.

This notification may be used in the UnAuthenticated device state, but ONLY for the Default Control Pipe endpoints.

Maximum Retransmit Rate: a device should retransmit this notification at every DNTS opportunity provided by the host.

Stop Retransmission Condition: a device will cease retransmission attempts of this notification when it observes the host has resumed transactions to any of the listed function endpoint(s) or the host has not responded to the DN_EPRdy for an endpoint for TrustTimeout seconds.

189

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.6.4 Device MAS Availability Changed (DN_MASAvailChanged)

When a Self-beaconing device detects a change in its MAS availability, it must transmit a DN_MASAvailChange notification so that the host can retrieve the updated MAS availability information by a GetStatus request (see Section 7.3.1.2). This Notification is only required for implementation by SelfBeaconing devices.

Table 7-59. Wireless USB Device MAS Availability Changed Notification Format

Offset

Field

Size

Type

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52 for the default values in this field.

2

bType

1

Constant

The value of this field must be

 

 

 

 

DN_MASAvailChanged for a device MAS Availability

 

 

 

 

Changed notification.

Maximum Retransmit Rate: a device should transmit this notification at every DNTS opportunity provided by the host.

Stop Retransmission Condition: a device will cease retransmission attempts of this notification when it receives a GetStatus(MASAvailability) or 100 ms elapses, whichever comes first.

7.6.5 Device Sleep (DN_Sleep)

Whenever a device wants to conserve power by sleeping for a period of time, the device sends a DN_Sleep notification to the host. See Section 4.16 in the Data Flow chapter that describes device power management. Note: devices must not use (transmit) this notification if they are currently processing a control transfer (i.e. have not yet responded with an ACK to the Status stage of the control transfer).

Table 7-60. Device Sleep Notification Format

Offset

Field

Size

Type

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52 for the default values in this field.

 

 

 

 

 

2

bType

1

Constant

The value of this field must be DN_Sleep.

3

bmAttributes

1

Bitmap

This field contains attributes for the Sleep notification:

 

 

 

 

Bit

Description

 

 

 

 

0

GTS. Value of 0 indicates that the

 

 

 

 

 

device is going to sleep even if host

 

 

 

 

 

response indicates there is pending

 

 

 

 

 

work.

 

 

 

 

 

WTS. Value of 1 indicates device will

 

 

 

 

 

be awake if host response indicates

 

 

 

 

 

that there is work pending.

 

 

 

 

7:1

Reserved

 

 

 

 

 

 

Maximum Retransmit Rate: a device should retransmit this notification at every DNTS opportunity provided by the host.

Stop Retransmission Condition: a device will cease retransmission attempts of this notification when it observes a Work_IE with its device address included or after three attempts, whichever comes first.

190

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.6.6 Remote Wakeup (DN_RemoteWakeup)

Whenever a device wants to wake up a sleeping host, the device sends a DN_RemoteWakeup notification to the host. See Section 4.16.2.2 in the Data Flow chapter that describes remote wakeup operation.

Table 7-61. Remote Wakeup Notification Format

Offset

Field

Size

Type

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52 for the default values in this field.

2

bType

1

Constant

The value of this field must be DN_RemoteWakeup.

Maximum Retransmit Rate: a device should retransmit this notification at every DNTS opportunity provided by the host.

Stop Retransmission Condition: a device will cease retransmission attempts of this notification when it observes that the host has removed the Channel Stop IE from MMCs.

7.6.7 Device Alive (DN_Alive)

When a device observes a Keepalive IE and its device address matches one of the device addresses in the Target Device Address array, it will begin transmitting DN_Alive notifications.

Table 7-62. Wireless USB Device Alive Notification Format

Offset

Field

Size

Type

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52 for the default values in this field.

 

 

 

 

 

2

bType

1

Constant

The value of this field must be DN_Alive.

The device may choose to substitute some other type of device notification for the DN_Alive, depending on the current operational needs of the device.

Maximum Retransmit Rate: a device should retransmit this notification at every DNTS opportunity provided by the host.

Stop Retransmission Condition: If in response to a Keepalive_IE, a device will cease transmitting DN_Alive notifications when it no longer observes a Keepalive IE that includes its device address. If the device is transitioning from the Asleep power state (within a TrustTimeou period), the device will cease transmitting DN_Alive notifications after 3 transmissions, or if the host has started transactions to function endpoints on the device, whichever comes first.

191

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.7MAC Layer-Specific Information/Framework

A host and Self-Beaconing devices must include a Distributed Reservation Protocol Information Element (DRP IE) in their Beacon to protect the Wireless USB channel. As described in the Dataflow Chapter, the host allocates a Cluster Broadcast ID and Stream Index for every Wireless USB channel it creates. The host may also establish reservations for other applications. To avoid confusion between different reservations a host must ensure that the pair {DevAddr, Stream Index} is globally unique across all of the applications reserving MAC Layer channel time from the host’s platform. Table 7-63 and Table 7-64 summarize the DRP content settings for the values in a DRP IE for the Wireless USB application. The entire contents of the DRP IE are provided for completeness. Note that this specification defers to reference [3] on all discrepancies.

Table 7-63. Host Wireless USB MAC Layer DRP IE Settings

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

Element ID

1

Constant

Distributed Reservation Protocol IE (0x09)

1

Length

1

Number

This field contains the length of this descriptor, not

 

 

 

 

including the Element ID and Length (4+4×N), where N is

 

 

 

 

the number of DRP allocation blocks.

2

DRP Control

2

Bitmap

Bits

Name

Value

 

 

 

 

2:0

Reservation Type

011B (Private)

 

 

 

 

5:3

Reservation

Variable, Note 1

 

 

 

 

 

Priority

 

 

 

 

 

8:6

Stream Index

Assigned

 

 

 

 

11:9

Reason Code

000B

 

 

 

 

12

Status

1B

 

 

 

 

13

Owner

1B

 

 

 

 

15:14

Reserved

000B

 

 

 

 

 

4

DevAddr

2

Number

Wireless USB Broadcast Cluster ID

6

DRP Allocation

Var

Record

Array of DRP Allocations. Refer to reference [3] for details.

 

 

 

 

 

 

 

Note 1. The value for the Reservation Priority field is derived according to host-specific policy.

192

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-64. Wireless USB Cluster Member MAC Layer DRP IE Settings

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

Element ID

1

Constant

Distributed Reservation Protocol IE (0x09)

 

 

 

 

 

1

Length

1

Number

This field contains the length of this descriptor, not

 

 

 

 

including the Element ID and Length (4+4×N), where N is

 

 

 

 

the number of DRP allocation blocks.

2

DRP Control

2

Bitmap

Bits

Name

Value

 

 

 

 

2:0

Reservation Type

011B (Private)

 

 

 

 

5:3

Reservation

Same as host

 

 

 

 

 

Priority

 

 

 

 

 

8:6

Stream Index

Same as host

 

 

 

 

11:9

Reason Code

000B

 

 

 

 

12

Status

1B

 

 

 

 

13

Owner

0B

 

 

 

 

15:14

Reserved

000B

4

DevAddr

2

Number

Host DevAddr

 

 

 

 

 

 

6

DRP Allocation

Var

Record

Set up by host, see Section 4.3.8.4.

193

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

This page intentionally left blank

194

Соседние файлы в папке Wireless USB Specification Revision 1.0 May 12, 2005