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

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-54. Device Notification Message Types

Name

Value

Valid Device State

Description

 

 

 

 

N/A

00H

N/A

Reserved

DN_Connect

01H

UnConnected

Connect and Reconnect notification (Section

 

 

Reconnecting

7.6.1)

 

 

Device Asleep

 

DN_Disconnect

02H

Authenticated

Disconnect device (explicit disconnect) (Section

 

 

Device Asleep

7.6.2)

DN_EPRdy

03H

Authenticated

Device Endpoints Ready (Section 7.6.3)

 

 

UnAuthenticated

 

DN_MASAvailChanged

04H

Authenticated

Device’s MAS availability information has

 

 

 

changed (Section 7.6.4)

DN_RemoteWakeup

05H

Device Asleep

Notification sent to wake up a sleeping host

 

 

 

(Section 7.6.6)

DN_Sleep

06H

Authenticated

Notification that device is going into a lower

 

 

Device Asleep

power state (Section 7.6.5)

DN_Alive

07H

Authenticated

This notification is the fall-back response to a

 

 

Device Asleep

Keepalive IE (Section 7.6.7)

Table 7-55. Device Notification Message Priority List

Device State

Priority

Device Notification

 

 

 

UnConnected

1

DN_Connect

UnAuthenticated

1

DN_EPRdy

 

 

 

Authenticated

1

DN_Disconnect

 

2

DN_MASAvailabilityChanged

 

3

DN_EPRdy

 

 

 

 

4

DN_Sleep

 

5

DN_Alive

Reconnecting

1

DN_Connect

 

 

 

Device Asleep

1

DN_Disconnect

 

2

DN_Sleep

 

3

DN_RemoteWakeup

 

 

 

 

4

DN_Alive

The access method for devices to transmit during a DNTS is based on Slotted Aloha. Refer to Section 5.2.1.3 for details. Note, in Section 5.1 is the requirement that all Device Notifications use secure packet encapsulation, unless specifically noted otherwise.

7.6.1 Device Connect (DN_Connect)

Before a device can communicate with a host, it must first establish a connection to that host. At other times, communications failures may require an existing connection to be reestablished. The method for initiating a connect, or reconnect event to a host is via the DN_Connect Device Notification. In order to send this device notification, the device must set its Device Address to the Unconnected_Device_Address (FFH). Once it has found the host of interest (see Section 4.13) the device will watch MMCs, waiting for a DNTS time slot which has the appropriate permissions set to allow a connect notification of the type this device needs to make (e.g. reconnect or new connect). Once a DNTS with the correct permissions on the intended host is identified, the device will transmit a DN_Connect device notification during the selected DNTS. Table 7-56 illustrates the format of the DN_Connect device notification packet.

186

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-56. DN_Connect 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_Connect for a

 

 

 

 

Wireless USB Associate notification.

3

bmAttributes

2

Bitmap

This field contains attributes for the specific device

 

 

 

 

which the host requires to complete the association

 

 

 

 

process. The format of this field is:

 

 

 

 

Bit

Description

 

 

 

 

7:0

Previous Device Address.

 

 

 

 

8

New Connection. This must be set to

 

 

 

 

 

a one when the device is attempting a

 

 

 

 

 

‘New’ connection. It must be set to

 

 

 

 

 

zero for all other connection

 

 

 

 

 

notifications. This bit is ignored if

 

 

 

 

 

Previous Device Address has a value

 

 

 

 

 

other than zero.

 

 

 

 

10:9

Beacon Behavior. This field encodes

 

 

 

 

 

the beaconing behavior of the device.

 

 

 

 

 

The encoded values are:

 

 

 

 

 

Value

Description

 

 

 

 

 

00B

Reserved.

 

 

 

 

 

01B

Self-Beacon

 

 

 

 

 

10B

Directed Beacon

 

 

 

 

 

11B

No-Beacon

 

 

 

 

15:11

Reserved. Must be set to zero.

5

CDID

16

Number

Connection Device ID

When the bmAttributes.New Connection field is set to a one, then the bmAttributes.Previous Device Address field must be set to 00H. Otherwise, bmAttributes.Previous Device Address is set to the last address explicitly assigned to the device by this host.

The intent of the CDID field is to allow a host to be able to uniquely discriminate this device connect/reconnect request from all other devices sending DN_Connect notifications to the same host at the same (relative) time (e.g. they all use the same device address (UnConnected_Device_Address)). Refer to Section 6.2.10.1 for rules on how a device generates the CDID value.

Maximum Retransmit Rate: a device should retransmit this notification no more frequently than three per 100 milliseconds.

Stop Retransmission Condition: a device will cease retransmission attempts of this notification when it observes a WCONNECTACK_IE that has a ConnectAck block with a CDID field that matches the device’s CDID. Device will also cease transmission attempts of this notification after a TrustTimeout numbers of seconds have elapsed from the first transmission attempt.

7.6.1.1Connect Request

When a device wants to initiate a connect event, it sends a DN_Connect request to the host, specifying a bmAttributes.Previous Device Address value of zero (0). The device may optionally set bmAttributes.New Connection field. When the bmAttributes.New Connection field is set to a one, then the bmAttributes.Previous Device Address field must be set to 00H. Otherwise, bmAttributes.Previous Device Address is set to the last address explicitly assigned to the device by this the host. Refer to Section 6.2.10.3 for rules about how to

187

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