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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

If bScanState is set to SCAN_OUTSIDE_BP then the device will scan on the specified channel except during its beacon period. This command is invalid if the device is not currently beaconing.

If bScanState is set to SCAN_WHILE_INACTIVE then the device will scan on the specified channel when it is not actively transmitting or receiving. The device must not scan during its beacon period as well. This command is invalid if the device is not currently beaconing.

The device will confirm the completion, successfully or in error, of a scanning state change initiated by this command by sending back an RCEB on the Radio Control Interrupt Endpoint. The RCEB for this command is given below.

The device will send back any beacons it receives during the scan using the Beacon Received notification, see Section 8.6.3.2. The beacon filter (see Section 8.6.2.6) is ignored while the device is Scanning.

Table 8-79. Scan RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

20

Result of SCAN 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 operation to change the scan state has successfully completed. If changing the scan state is not succeeding, it is a vendor specific decision when to time out the operation and return failure.

8.6.2.6 Set Beacon Filter

This command is used to set the Beacon filter. This filter is based on the beacon slot number. The RCCB for this command is given below.

Table 8-80. Set Beacon Filter RCCB

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

21

SET_BEACON_FILTER Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

4

bmBeaconSlots

6

Bitmap

48-bit bitmap specifying beacon slots that the host does

 

 

 

 

not need beacon information on.

 

 

 

 

 

10

bEnableState

1

Number

Specifies whether to enable or disable the filter.

 

 

 

 

Value

Description

 

 

 

 

0

Filter DISABLED

 

 

 

 

 

Filter is disabled. This is the default filter

 

 

 

 

 

state on power up or after a RESET

 

 

 

 

 

command completes successfully.

 

 

 

 

1

Filter ENABLED

 

 

 

 

 

 

If the device detects a beacon in a slot whose bit is not set in bmBeaconSlots or the Device Address of the device sending the beacon in a slot changes from one superframe to the next then it must send a Beacon Received notification to the host.

264

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

If a beacon is not detected in a slot whose bit is set in bmBeaconSlots then the device must generate a BPOIE Change notification (See Section 8.6.3.3).

This filter information is only valid when the device is actively sending beacons and during the beacon group which the device has joined.

The RCEB for this command is given below.

Table 8-81. Set Beacon Filter RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

21

Result of SET_BEACON_FILTER 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 set beacon filter operation was successful. If the operation is not succeeding, it is a vendor specific decision when to time out the operation and return failure.

8.6.2.7 Set DRP IE

This command is used to set a DRP IE being transmitted in the beacon by the device. The host can also remove all DRP IEs that are being transmitted by the device using this command. The host must set all the DRP IEs that it wants the device to include in its beacon at the same time e.g. if the host includes three DRP IEs in the first Set DRP IE and then includes two DRP IEs in the next Set DRP IE command then the device will send the DRP IEs specified in the second Set DRP IE command only.

The RCCB for this command is given below.

Table 8-82. Set DRP IE RCCB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

22

SET_DRP_IE Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

4

bExplicit

1

Flag

Controls whether implicit or explicit DRP negotiation is

 

 

 

 

used.

 

 

 

 

When this flag is set, then Explicit DRP negotiation is

 

 

 

 

used.

5

wIELength

2

Number

The length of the IE data to be added to the beacon.

 

 

 

 

 

7

IEData

Var

Raw

A variable size array containing IE data.

 

 

 

Data

 

 

 

 

 

 

The IEData field in this command is the DRP IE data to be added to the beacon if the bExplicit flag is not set. The length of the IEData field is specified by wIELength. The device must replace the DRP IEs that it is currently sending with the DRP IEs specified in this command. If wIELength is set to zero, then the device will remove any existing DRP IEs from its beacon.

The IEData field in this command is the DRP IE data to be used in the DRP reservation command if the bExplicit flag is set. The length of the IEData field is specified by wIELength. The device must send a DRP reservation request command if the Owner bit in the DRP IE is set, e.g. this device is the reservation owner. On

265

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

the other hand, the device must send a DRP reservation response if the Owner bit is not set by including the specified DRP IE data along with the current DRP Availability IE.

The device will confirm the result of the operation to set zero or more DRP IEs to the beacon or the status of sending an explicit DRP IE command by sending back an RCEB on the Radio Control Interrupt Endpoint. The RCEB for this command is given in Table 8-83.

If a host sends a Set DRP IE with the bExplicit flag set when the device does not support explicit DRP negotiations as reported in its Capabilities IE then the device’s response to this command is undefined.

Table 8-83. Set DRP IE RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

22

Result of SET_DRP_IE Command

 

 

 

 

 

3

bEventContext

1

Number

This should match the bCommandContext in the

 

 

 

 

RCCB.

 

 

 

 

 

4

wRemainingSpace

2

Number

Indicates the number of remaining bytes left in the

 

 

 

 

beacon

6

bResultCode

1

Number

Indicates the completion status of the command.

 

 

 

 

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

 

 

 

 

 

The number of remaining bytes left in the beacon is indicated by the value of wRemainingSpace. The bResultCode field indicates the result of the attempt to add a DRP IE to the beacon if bExplicit is not set or indicates if the device successfully sent an explicit DRP IE command if bExplicit is set. If an operation to add the DRP IE to the beacon is not succeeding, it is a vendor specific decision when to time out the operation and return failure.

8.6.2.8 Set IE

This command is used to set one or more IEs in the beacon being transmitted by the device. The RCCB for this command is given below.

Table 8-84. Set IE RCCB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bCommandType

1

0

GENERAL Command Type

 

 

 

 

 

1

wCommand

2

23

SET_IE Command

 

 

 

 

 

3

bCommandContext

1

Number

Host assigned ID for this command.

 

 

 

 

Valid values are 1 through FEH.

 

 

 

 

 

4

wIELength

2

Number

The length of the IE data to be added to the beacon.

 

 

 

 

 

6

IEData

Var

Raw

A variable size array containing IE data.

 

 

 

Data

 

 

 

 

 

 

The IEData field in this command is the data to be added to the beacon. This may contain one or more IEs which are defined by the host. This data replaces any data from a previous Set IE command. The length of the IEData field is specified by wIELength.

The complete list of Information Elements available is listed in the MAC layer specification (see Reference [3]). The host can set the IEs listed in Table 8-85 using this command.

266

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-85. Host Settable IEs

IE Name

Notes

BP Switch IE

Used by Wireless USB

Capabilities IE

Identification IE

PCA Availability IE

Application-specific Probe IE

Master Key Identifier (MKID) IE

Application Specific IE (ASIE)

The behavior of the device if other IEs are set using this command is undefined.

The device must not reorder the IEs set by this command. However it must correctly insert the other IEs it generates as well as the DRP IEs that may be set using the Set DRP IE (see Section 8.6.2.7) command in the set of IEs that it transmits in its beacon. The device will confirm the result of the operation to set zero or more IEs in the beacon by sending back an RCEB on the Radio Control Interrupt Endpoint. The RCEB for this command is given below.

Table 8-86. Set IE RCEB

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bEventType

1

0

GENERAL Event Type

 

 

 

 

 

1

wEvent

2

23

Result of SET_IE Command

 

 

 

 

 

3

bEventContext

1

Number

This should match the bCommandContext in the

 

 

 

 

RCCB.

4

wRemainingSpace

2

Number

Indicates the number of remaining bytes left in the

 

 

 

 

beacon

 

 

 

 

 

6

bResultCode

1

Number

Indicates the completion status of the command.

 

 

 

 

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

 

 

 

 

 

The number of remaining bytes left in the beacon is indicated by the value of wRemainingSpace. The bResultCode field indicates the result of the attempt to add an IE to the beacon. If an operation to add an IE to the beacon is not succeeding, it is a vendor specific decision when to time out the operation and return failure.

267

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