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

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.6Device Notifications

Wireless USB provides analogs to USB 2.0 device signaling events such as connect, disconnect, etc. This class of information exchange is characterized as short (small), point-to-point, device to host (upstream), infrequent and asynchronous.

Wireless USB defines a method of device initiated data communications called Device Notifications. Device notifications are by definition: infrequent, asynchronous, small bits of data that a device issues to its host. The Device Notification mechanism is not intended to be used for large information exchanges, so by specification, the data payloads of device notification messages are limited to 32 bytes. Note this data payload maximum size applies to the size of the Notification specific field documented below in Table 7-53 (i.e. the 32 byte payload does not include the rWUSBHeader or bType fields). Device Notification messages only occur during time slots allocated by a host. These time slots are called Device Notification Time Slots (DNTS). A host is not allowed to transmit during a DNTS. All device notification packets must be transmitted using the transmit power indicated by the value of the bTxNotificationTransmitPower field in the WUSB Data (see Section 7.3.1.6).

All device notification packets transmitted by devices are directed to the host. All device notification packets must have the standard Wireless USB Header field as the first portion of the packet frame payload. The contents of this header are illustrated in Table 7-52. In summary, all fields in the Wireless USB Header (for notification packets) are set to fixed values.

Table 7-52. Common Wireless USB Header Contents Rules for Device Notification Packets

Offset

Field

Size

Value

 

 

 

 

 

0

bmAttributes

1

This field has the following field settings:

 

 

 

Bits

Value

 

 

 

3:0

0000B (Endpoint Number)

 

 

 

6:4

DN (Packet PID)

 

 

 

7

Zero

 

 

 

 

 

1

bmStatus

1

00H

 

 

 

 

 

 

Device notification packets have the format illustrated in Table 7-53. They include the standard Wireless USB header followed by a type field (bType). The value of the bType field determines the actual length and format of the bytes following the bType field.

Table 7-53. Format of a Device Notification Packet

Offset

Field

Size

Value

Description

 

 

 

 

 

0

rWUSBHeader

2

Record

See Table 7-52

 

 

 

 

 

2

bType

1

Number

See Table 7-54

3

Notification

Var

Number

The message portion is dependent on the value of the

 

specific

 

 

bType field.

Table 7-54 lists the Device Notification Message types. The table includes the value that must be used in the bType field of a device notification packet and also includes the valid device state where the notification may be transmitted by the device. Several device notifications are valid in the same device state. For cases where a device state has more than one allowable device notification message, Table 7-55 lists the notification message priority relative to the device state. A lower value designates a higher priority. When a device has multiple device notifications ready at the same time, it must send the highest priority notification message pending. For example, if a device has simultaneous pending DN_EPRdy and DN_MASAvailableChange notifications, it must send the DN_EPRdy message first because it has a higher priority.

185

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