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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

8.6.1.2 Radio Control Interface Class Descriptor

This descriptor describes the characteristics of the Radio Control Interface to host software.

Table 8-61. Radio Control Interface Class Descriptor

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bLength

1

4

Size of this descriptor in bytes, including this field.

 

 

 

 

 

1

bDescriptorType

1

23H

Radio Control Descriptor Type

 

 

 

 

 

2

bcdRCIVersion

2

0100H

Radio Control Interface Version number in Binary-

 

 

 

 

Coded Decimal.

8.6.1.3 Radio Control Interrupt Endpoint Descriptor

This endpoint is used to report status and results of the radio control commands. It is also used to send UWB Radio notifications back to the host software.

Table 8-62. Radio Control Interrupt Endpoint Descriptor

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bLength

1

7

Size of this descriptor in bytes, including this field.

 

 

 

 

 

1

bDescriptorType

1

5

ENDPOINT Descriptor Type

 

 

 

 

 

2

bEndpointAddress

1

Number

The address of this endpoint

 

 

 

 

 

3

bmAttributes

1

Bitmap

Interrupt endpoint of 00000011b.

 

 

 

 

 

4

wMaxPacketSize

2

200H

Maximum packet size this endpoint

 

 

 

 

 

6

bInterval

1

1

Interval for polling endpoint for data transfers.

 

 

 

 

Expressed in frames or microframes depending on

 

 

 

 

the device operating speed (i.e., either 1 millisecond

 

 

 

 

or 125 μs units).

8.6.2 Radio Control Command

To control the UWB Radio only one control transfer command is defined. All UWB Radio Control commands are encapsulated within a Command Block defined in Table 8-65 and sent using this control transfer request. The result of the command is sent back on the Radio Control Interrupt endpoint using the Event Block defined in Table 8-66.

Table 8-63. Execute Radio Control Command

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

EXEC_RC_CMD

Zero

Interface

Command

Radio

 

 

 

Number

Length

Control

 

 

 

 

 

Command

 

 

 

 

 

Block

Table 8-64. Radio Control Request Codes

bRequest

Value

 

 

EXEC_RC_CMD

40

 

 

256

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-65. Radio Control Command Block (RCCB)

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bCommandType

1

Number

The type of Command.

 

 

 

 

 

1

wCommand

2

Number

The actual command to be performed

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

A value of FFH in this field indicates that this is a

 

 

 

 

RESPONSE to an earlier notification.

 

 

 

 

A value of 00H in this field is invalid.

 

 

 

 

 

4

Parameter0

Var0

Number

First parameter for this command. The size and

 

 

 

 

value of this parameter is specific to the actual

 

 

 

 

command,

4 + Var0

Parameter1

Var1

Number

Second parameter for this command. The size and

 

 

 

 

value of this parameter is specific to the actual

 

 

 

 

command,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Var

ParameterN

VarN

Number

Last parameter for this command. The size and

 

 

 

 

value of this parameter is specific to the actual

 

 

 

 

command,

Table 8-66. Radio Control Event Block (RCEB)

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

Number

The type of Event

 

 

 

 

 

1

wEvent

2

Number

The event that occurred. If this event was a result

 

 

 

 

of a host issued command then this should match

 

 

 

 

the wCommand in the RCCB.

 

 

 

 

 

3

bEventContext

1

Number

If this event was a result of a host issued command

 

 

 

 

then this should match the bCommandContext in

 

 

 

 

the RCCB.

 

 

 

 

A value of Zero indicates an Event that occurred

 

 

 

 

which is not a direct result of a Radio Control

 

 

 

 

Command.

 

 

 

 

A value of FFH in this field is invalid.

 

 

 

 

 

4

Parameter0

Var0

Number

First parameter for this event. The size and value of

 

 

 

 

this parameter is specific to the actual event

4 + Var

Parameter1

Var1

Number

Second parameter for this event. The size and

 

 

 

 

value of this parameter is specific to the actual

 

 

 

 

event

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Var

ParameterN

VarN

Number

Last parameter for this event. The size and value of

 

 

 

 

this parameter is specific to the actual event

257

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-67. Command or Event Type

Command/Event Type

Value

GENERAL

0

 

 

RESERVED

01-EFH

 

 

VENDOR_SPECIFIC

F0-FFH

 

 

 

Table 8-68. Command or Event

 

 

 

 

Command/Event

Value

 

AS_PROBE_IE_RECEIVED

0

N

 

 

BEACON_RECEIVED

1

O

 

 

 

 

T

BEACON_SIZE_CHANGE

2

I

 

 

BPOIE_CHANGE

3

F

I

BP_SLOT_CHANGE

4

C

 

 

 

 

A

BP_SWITCH_IE_RECEIVED

5

T

DEV_ADDR_CONFLICT

6

I

O

DRP_AVAILABITY_CHANGE

7

N

 

 

 

 

S

DRP

8

 

Reserved

9-15

 

 

 

 

CHANNEL_CHANGE

16

 

 

 

 

DEV_ADDR

17

 

 

 

 

GET_IE

18

 

 

 

 

RESET

19

C

 

 

SCAN

20

O

 

 

 

 

M

SET_BEACON_FILTER

21

M

 

 

SET_DRP_IE

22

A

N

SET_IE

23

D

 

 

 

 

S

SET_NOTIFICATION_FILTER

24

 

SET_TX_POWER

25

 

 

 

 

SLEEP

26

 

 

 

 

START_BEACONING

27

 

 

 

 

STOP_BEACONING

28

 

 

 

258

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-69. Result Codes

Result Codes

Value

SUCCESS

0

 

 

FAILURE

1

 

 

FAILURE_HARDWARE

2

 

 

FAILURE_NO_SLOTS

3

 

 

FAILURE_BEACON_TOO_LARGE

4

 

 

FAILURE_INVALID_PARAMETER

5

 

 

FAILURE_UNSUPPORTED_PWR_LEVEL

6

 

 

TIME_OUT

7

 

 

This request is used to control the UWB Radio MAC in a device.

Upon receipt of this request, the device will perform the command indicated in the RCCB. The format of the RCCB is given in Table 8-65.

The lower byte of wIndex specifies the target interface number.

It is a Request Error if wValue is other than as specified above.

If the interface specified does not exist, then the device responds with a Request Error.

If the device is not configured, the device’s response to this request is undefined.

Each of the commands and their parameters are detailed below.

8.6.2.1 Channel Change

This command is used to inform other devices that this device is going to change the channel. The device must send a Channel Change IE in its beacons for the number of times specified in the command.

The RCCB for this command is given below.

Table 8-70. Channel Change RCCB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

16

CHANNEL_CHANGE Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

4

bChannelChange

1

Number

Number of superframes before the device changes to the

 

Countdown

 

 

new channel.

5

bNewChannel

1

Number

New channel number to which the device moves. The

 

Number

 

 

encoding of the channel number is specified in Table

 

 

 

 

5-12.

 

 

 

 

 

The bChannelChangeCountdown indicates the number of superframes until the device actually changes to the new channel. The device must modify the DRP Availability it sends in its beacon along with the Channel Change IE. The device must send the IE in the beacon until it completes the channel change operation. The device sets the Channel Change Countdown field in the Channel Change IE to the specified value in the first beacon, and it must decrement the countdown value by one in each subsequent superframe.

259

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