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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

The bNewChannelNumber specifies the channel number of the new channel and the device sets the New Channel Number field in the Channel Change IE to this value.

The device will confirm that it has sent the last beacon with its Channel Change Countdown value set to zero successfully on the current channel or that the operation has failed by sending back an RCEB on the Radio Control Interrupt Endpoint. The RCEB for this command is given below.

Table 8-71. Channel Change RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

16

Result of CHANNEL_CHANGE Command

 

 

 

 

 

3

bEventContext

1

Number

This should match the bCommandContext in the RCCB.

 

 

 

 

 

4

bResultCode

1

Number

Indicates the completion status of the command. See

 

 

 

 

Table 8-69 for a list of result codes.

The bResultCode field indicates whether the channel change operation was successful. If the operation is not succeeding, it is a vendor specific decision when to time out the operation and return failure. The STC (see Section 8.6.2.4) will revert back to a free running timer until the device starts beaconing again.

8.6.2.2 Device Address Management

This command is used to query or set the 16-bit device address or the 64-bit MAC address (EUI-64) that are used by the device.

The RCCB for this command is given below.

Table 8-72. Device Address Management RCCB

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

 

1

wCommand

2

17

DEV_ADDR Command

 

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

4

bmOperationType

1

Bitmap

Specifies the type of the device address management

 

 

 

 

operation.

 

 

 

 

 

 

Bit

Description

 

 

 

 

 

0

Set. If this bit is one, this command sets the

 

 

 

 

 

new address to be used by the device. If this

 

 

 

 

 

bit is zero, this command gets the current

 

 

 

 

 

address used by the device.

 

 

 

 

7:1

Address type

 

 

 

 

 

Value

Meaning

 

 

 

 

 

0

16-bit device address

 

 

 

 

 

1

64-bit MAC address (EUI-64)

 

 

 

 

 

2-127

Reserved

 

 

 

 

 

5

BaAddr

8

Byte

This field contains a new address if the Set bit is one,

 

 

 

array

otherwise it will be ignored.

 

 

 

 

 

 

 

The type of operation is indicated by the bmOperationType. When the address type is zero and the Set bit is zero, the command gets the current 16-bit device address used by the device. The device is not required to generate a device address and this command just returns the address which was previously set by the host.

260

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

When the address type is zero and the Set bit is one, the command sets a new 16-bit device address to the device. The host software is responsible for generating a device address. The device must use the specified address as the source address of all the outgoing MAC frames including beacons in the subsequent superframes.

When the address type is one and the Set bit is zero, the command gets the current 64-bit MAC address (EUI64) used by the device. The address is either statically preconfigured or temporally assigned by the host.

When the address type is one and the Set bit is one, the command sets a new 64-bit MAC address (EUI-64) to the device. The device will use this address as the Device Identifier field in the Beacon Parameters of its beacons in the subsequent superframes. The host is also required to set the 16 bit Device Address if it changes the 64-bit MAC address.

The baAddr field contains the address information that is set to the device in the case of set operation, i.e. the Set bit is one. The size of the address information depends on the address type. If the address type is zero (16-bit device address) then the device address will be stored in the first 2 bytes of the baAddr field.

The RCEB for this command is given below.

Table 8-73. Device Address Management RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

17

Result of DEV_ADDR Command

3

bEventContext

1

Number

This should match the bCommandContext in the RCCB.

 

 

 

 

 

4

baAddr

8

Byte

This field contains the returned address information if the

 

 

 

array

Direction bit in the associated RCCB is one, otherwise it

 

 

 

 

will be ignored.

12

bResultCode

1

Number

Indicates the completion status of the command. See

 

 

 

 

Table 8-69 for a list of result codes.

 

 

 

 

 

The bResultCode field indicates whether the device address management operation was successful. If the operation is not succeeding, it is a vendor specific decision when to time out the operation and return failure.

The address information is returned to the host in the baAddr field in the case of query operation, i.e. the Set bit in the previous RCCB is set to a zero. The size of the address information depends on the address type specified in the associated RCCB. If the address type is zero (16-bit device address) then the device address will be stored in the first 2 bytes of the baAddr field.

8.6.2.3 Get IE

If the device is beaconing then the device must return all the IEs that are being transmitted in the beacon by the device.

If the device is not beaconing then it must return the IEs that have been set by the host by a previous Set IE command. If the host has not set any IEs then the device must return the local device Capabilities IE.

The RCCB for this command is given Table 8-74.

261

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-74. Get IE RCCB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

18

GET_IE Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

The device will respond with the result of the operation to get the IEs by sending back an RCEB on the Radio Control Interrupt Endpoint. The RCEB for this command is given below.

Table 8-75. Get IE RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

18

Result of GET_IE Command

 

 

 

 

 

3

bEventContext

1

Number

This should match the bCommandContext in the

 

 

 

 

RCCB.

 

 

 

 

 

4

wIELength

2

Number

The length of the IE data to be returned to the host.

 

 

 

 

 

6

IEData

Var

Raw

A variable size array containing IE data.

 

 

 

Data

 

8.6.2.4 Reset

This command instructs the device to reset the UWB Radio to the default power on state. The RCCB for this command is given below.

Table 8-76. Reset RCCB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

19

RESET Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

All pending operations are aborted and all UWB Radio parameters and buffers return to the default power on state. Upon receipt, the device must reset all UWB Radio Control variables and other settings to their initial values. In particular, the device must reset its internal Superframe Time Counter (STC) which is a simple 16-bit counter used to indicate the relative offset in the current superframe from the Beacon Period Start Time (BPST), to zero and must be a value between 0 and 65535. The STC is a free running timer until the device starts beaconing. This timer value is used as the wBPSTOffset in any beacon received notification sent to the host.

The device will confirm the result of the reset operation started by the previous command by sending back an RCEB on the Radio Control Interrupt Endpoint. The RCEB for this command is given Table 8-77.

262

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-77. Reset RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

19

Result of RESET Command

 

 

 

 

 

3

bEventContext

1

Number

This should match the bCommandContext in the

 

 

 

 

RCCB.

 

 

 

 

 

4

bResultCode

1

Number

Indicates the completion status of the command.

 

 

 

 

See Table 8-69 for a list of result codes.

The bResultCode field indicates whether the reset operation was successful. If a reset is not succeeding, it is a vendor specific decision when to time out the operation and return failure.

8.6.2.5 Scan

This command instructs the device to start/stop a scan operation. The RCCB for this command is given below.

Table 8-78. Scan RCCB

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

20

SCAN Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

4

bChannelNumber

1

Number

The physical channel to be scanned. The encoding of the

 

 

 

 

channel number is specified in Table 5-12.

5

bScanState

1

Number

Specifies the type of scan.

 

 

 

 

Value

Description

 

 

 

 

0

SCAN_ONLY

 

 

 

 

 

Scan only. No other transmit or receive

 

 

 

 

 

operation is performed until the scan is

 

 

 

 

 

disabled.

 

 

 

 

1

SCAN_OUTSIDE_BP

 

 

 

 

 

Scan at all times except during the beacon

 

 

 

 

 

period.

 

 

 

 

2

SCAN_WHILE_INACTIVE

 

 

 

 

 

Scan only when not scheduled to transmit

 

 

 

 

 

or receive.

 

 

 

 

3

SCAN_DISABLED

 

 

 

 

 

Scanning is disabled. This is the default

 

 

 

 

 

scanning state on power up or after a

 

 

 

 

 

RESET command completes successfully.

The scanning state is indicated by the bScanState field in the command. The bChannelNumber indicates the PHY channel on which the MAC should listen during the scan.

If a host sends a Scan command with bScanState set to SCAN_ONLY when the device is actively sending beacons then the device’s response to this command is undefined.

263

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