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

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.5Wireless USB Channel Information Elements

The information elements listed in this section are part of the information and control mechanisms for the Wireless USB Channel as controlled by the host. These information elements are transmitted by a host in MMC packets.

The general structure of the data payload portion of an MMC is illustrated in Figure 7-4 and detailed in Table 7-37. The information elements in the MMC are channel time allocations (for device notifications or Endpoint data streams) or host to device control information. Individual information elements may be targeted to a particular device or may be broadcast to the entire Wireless USB Cluster. MMC packets are transmitted using secure packet encapsulation with the Encryption Offset field in the security header set to the length of the MMC payload (packet (frame) length (from PHY Header) – Secure Packet overhead (20 bytes)). This results in the packet being transmitted in plain text and the secure packet encapsulation provides authentication of the packet. This approach allows the host to use a single MMC to conduct Wireless USB transactions to devices in both the Authenticated and UnAuthenticated states. See Section 7.1 for limitations on data communications with devices in the UnAuthenticated state.

(LSB)

 

 

 

 

 

 

 

(MSB)

2

1

2

2

3

VAR

VAR

VAR

 

 

 

 

 

 

 

 

 

WUSB

MMC

Next

Reserved

WUSB Channel

IE[0]

IE[1]

IE[n]

App

Code

MMC

 

Time Stamp

 

 

 

 

Code

(01H)

Time

 

 

 

 

 

 

(0100H)

 

 

 

 

 

 

 

 

Figure 7-4. General Structure of an MMC Control Packet

The MAC Layer Header fields in the MMC packet are set to indicate an Application-defined control packet (frame).

Table 7-37. Detail Field Definition of MMC Packet

Offset

Field

Size

Value

Description

 

 

 

 

 

0

Application

2

Constant

Wireless USB [ WUSB (0100H) ]

 

Identifier

 

 

 

 

2

Type

1

Constant

MMC Command Type: (01H)

 

 

 

 

 

3

NextMMC

2

Number

Units are in micro-seconds. This is the number of

 

Time

 

 

microseconds from the beginning of this MMC to the

 

 

 

 

beginning of the next MMC packet.

5

Reserved

2

Number

This field is reserved and should be set to zeros.

 

 

 

 

 

7

WUSB

3

Bitmap

This is a timestamp provided by the host based on a free-

 

Channel

 

 

running timer in the host. The value in this field indicates the

 

Time

 

 

value of the host free running clock when MMC transmission

 

Stamp

 

 

starts. The accuracy requirement of the time stamp (to the

 

 

 

 

host clock) is +/- 40 nanoseconds. The time stamp is

 

 

 

 

formatted into two fields as follows:

 

 

 

 

Bits

Description

 

 

 

 

6:0

Microsecond Count. The microsecond count

 

 

 

 

 

rolls over after 125 microseconds. Each time it

 

 

 

 

 

rolls over the 1/8th Millisecond Count is

 

 

 

 

 

incremented.

 

 

 

 

23:7

1/8th Millisecond Count. This counter

 

 

 

 

 

increments every time the Micro-second counter

 

 

 

 

 

wraps.

10

IE[0-n]

Var

MMC IE

Array of information elements. There must be at least one IE.

175

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

The information elements (IEs) in an MMC are called Wireless USB Channel information elements and include protocol time slot allocations (for Data and Handshake Phases of Wireless USB transactions), DNTS declarations and host information and control information. A summary of the Wireless USB Channel IEs are provided in Table 7-38. The format of each Wireless USB Channel IE is defined in sections below, except for the IEs used to maintain the Wireless USB transaction protocol. These IE definitions are in the Protocol Chapter, see Section 5.2.1. A number of the IEs documented below utilize an array structure for addressing 1 to N devices in the same IE. A host must not include more than 4 elements in any array-based IE. The exception to this rule is the WCTA_IE, where the host is required to limit the number of WXCTA blocks to 32.

Table 7-38. Wireless USB Channel IE Identifiers

IE

IE Name

Description

Identifier

 

 

 

 

 

00H-7FH

 

Reserved for future use.

 

 

 

80H

WCTA_IE

Wireless USB Channel Time Allocation Information

 

 

Element. May contain one or more channel time

 

 

allocations for device endpoints to listen or transmit. See

 

 

Section 5.2.1.

81H

WCONNECTACK_IE

Wireless USB Connect Acknowledge. See Section 7.5.1.

82H

WHOSTINFO_IE

Specific information about the host that controls the

 

 

Wireless USB Channel. See Section 7.5.2.

83H

WCHCHANGEANNOUNCE_IE

This information element is used to notify cluster

 

 

members that the host is moving the Wireless USB

 

 

channel to a different PHY channel. See Section 7.5.3.

84H

WDEV_DISCONNECT_IE

Used by host to inform a specific device that it is being

 

 

disconnected. See Section 7.5.4.

85H

WHOST_DISCONNECT_IE

Used by host to inform the cluster that all connected

 

 

devices are being disconnected. See Section 7.5.5.

86H

WRELEASE_CHANNEL_IE

Used by the host to instruct its cluster members to

 

 

transmit a control packet to release the remainder of an

 

 

MAC Layer channel reservation. See Section 7.5.6.

87H

WWORK_IE

Used by the host in response to a Sleep notification. See

 

 

Section 7.5.7.

88H

WCHANNEL_STOP_IE

Used by the host to notify cluster members that the

 

 

Wireless USB channel is being stopped. See

 

 

Section7.5.8.

89H

WDEV_KEEPALIVE_IE

Used by the host to force a device to ‘check-in’ in order to

 

 

keep trust fresh or to detect implicit disconnects. See

 

 

Section 7.5.9.

8AH

WISOCH_DISCARD_IE

Used by a host to indicate that it has discarded data

 

 

intended for an isochronous OUT function endpoint. See

 

 

Section 7.5.10.

8BH

WRESETDEVICE_IE

Used by the host to cause a device to perform a hard

 

 

reset operation. See Section 7.5.11.

8CH

WXMIT_PACKET_ADJUST_IE

Used by the host to inform all devices with Transmit

 

 

Packet feature enabled of a new transmit adjustment

 

 

value. See Section 7.5.12.

8DH-FFH

 

Reserved for future use.

 

 

 

The first field of a channel information element is bLength and the second field is IE_Identifier. The value of bLength is the length of the information element, including the bLength and IE_Identifier fields.

There are only a few ordering rules for MMC_IEs. The WISOCH_DISCARD_IE (if present) must be first, followed by the WCTA_IE. The order of most other MMC IEs is arbitrary. The WHOSTINFO_IE when present must be the last IE in an MMC.

176

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Note, device implementations must ignore (and skip) information elements that are not recognized. Future revisions of this specification may define additional information elements. The general format of information elements includes a bLength field followed by an IE Identifier field provides sufficient information to a device to be able to skip information elements it does not recognize.

7.5.1 Wireless USB Connect Acknowledge IE

The Connect Acknowledge IE is used to send one or more specific acknowledgements to devices that have requested association via the DN_Connect device notification (see Section 7.6.1). The format of this IE is illustrated in Figure 7-5. It is basically an array of connection acknowledgment blocks (ConnectAck), one for each connect request received.

(LSB)

 

 

 

 

(MSB)

1

1

18

18

 

18

bLength

IE Identifier =

ConnectAck[0]

ConnectAck[1]

ConnectAck[n-1]

 

WCONNECTACK_IE

 

 

 

 

Figure 7-5. Format of a Wireless USB Connect Acknowledge IE

The purpose of this information element is to let the requesting device know that its connect request has been received and to also give it a new device address, that will be used for the Authentication and Authorization Stage. Table 7-39 illustrates the format of a ConnectAck block.

Table 7-39. ConnectAck Block Format

Offset

Field

Size

Value

Description

 

 

 

 

 

0

CDID

16

Number

Connection Device ID. This field contains the CDID

 

 

 

 

value from the device’s DN_Connect notification.

16

bDeviceAddress

1

Number

This field contains a new device address for the

 

 

 

 

associating device.

17

bReserved

1

Constant

Reserved. Must be set to zero.

 

 

 

 

 

Once a device has issued a DN_Connect notification it then waits for an MMC from the host that contains Connect Acknowledgement IEs. It looks for a ConnectAck block with a CDID field that contains the same CDID value sent in its DN_Connect notification. When a match is found, the device will set its device address to the value of the bDeviceAddress. The host must provide at least 2ms of address set-up relaxation from approximately the start of transmit of the ConnectAck to the start of Wireless USB Transactions addressed to the device’s Default Endpoint at the assigned bDeviceAddress.

Stop Retransmission Condition: a host will remove a ConnectAck block for a specific device from the Connect Acknowledge IE after either of the two events occur:

The host has observed the associated device responding to control transfers to the Default Control Pipe addressed to the assigned device address (i.e. value of bDeviceAddress).

The host has ceased attempts to talk to the device’s Default Control Pipe at the assigned device address.

177

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.5.2 Wireless USB Host Information IE

The Wireless USB Host Information Element is used by a host to annotate a Wireless USB channel with its unique name. The unique name is the Connection Host ID (CHID, see Section 6.2.10.1). The format of this information element is detailed in Table 7-40. This Information Element should be located in an MMC after all WCTA_IEs.

Table 7-40. Host Information Element

Offset

Field

Size

Value

Description

 

 

 

 

 

 

0

bLength

1

Number

Size of this information element (in bytes), including this

 

 

 

 

field.

 

 

1

IE Identifier

1

Constant

Information IE Type: WHOSTINFO_IE for Host

 

 

 

 

information element.

 

2

bmAttributes

2

Bitmap

Host-specific current capabilities information.

 

 

 

 

Bit

Meaning

 

 

 

 

 

1:0

Connection Availability. This field indicates

 

 

 

 

 

to Un-connected devices what types of

 

 

 

 

 

associations the host is available for at this

 

 

 

 

 

time. The encodings are as follows:

 

 

 

 

 

00B

Reconnect only. Host is

 

 

 

 

 

 

available only for reconnect

 

 

 

 

 

 

notifications.

 

 

 

 

 

01B

Limited. Host is only available

 

 

 

 

 

 

for connections and

 

 

 

 

 

 

reconnections.

 

 

 

 

 

10B

Reserved.

 

 

 

 

 

11B

ALL. Host is open for connect,

 

 

 

 

 

 

reconnect and new connect

 

 

 

 

 

 

notifications.

 

 

 

 

2

P2P-DRD Capable. A one in this bit location

 

 

 

 

 

indicates the host is Peer to Peer DRD

 

 

 

 

 

capable. A zero in this bit location indicates

 

 

 

 

 

the host is not Peer to Peer DRD capable

 

 

 

 

 

(see Section 4.17).

 

 

 

 

5:3

MAC Layer Stream Index. Devices must

 

 

 

 

 

ensure that all packet transmissions have the

 

 

 

 

 

value of this field in the Stream Index field of

 

 

 

 

 

the MAC Layer Header (see Section 5.6).

 

 

 

 

15:6

Reserved. Must be set to zero.

4

CHID

16

Number

Connection Host ID, which serves as a Unique Host ID.

 

 

 

 

The device checks this value when locating a particular

 

 

 

 

host.

 

 

Note, connect includes any DN_Connect device notification where the New Connection bit is a zero. The CHID is defined and rules for generating it are detailed in Section 6.2.8.

This information element is used by provisioned devices to locate the Wireless USB Channel of a specific host. A host is not required to include this information element in all MMCs. It must include the IE in at least three MMCs per superframe when the total number of MMCs in a superframe is greater than 3. Otherwise, it must include this IE in all MMCs.

Stop Retransmission Condition: the rules for including this IE in the Wireless USB Channel are stated above.

178

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