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

Wireless Universal Serial Bus

Specification

Agere

Hewlett-Packard

Intel

Microsoft

NEC

Philips

Samsung

May 12, 2005

Revision 1.0

Wireless Universal Serial Bus Specification, Revision 1.0

Scope of this Revision

The 1.0 revision of the specification is intended for product design. Every attempt has been made to ensure a consistent and implementable specification. Implementations should ensure compliance with this revision.

Revision

Date

Comments

 

 

 

0.9

December 29, 2004

Incremental update with significant additions throughout the major

 

 

chapters, including finalization of isochronous header for data

 

 

packets, definition of explicit device disconnect mechanisms and

 

 

details on directed beaconing devices, device and host power

 

 

management, updates to wire adapter isochronous streaming model

 

 

and radio control interface, to name a few.

 

 

 

0.91

January 21, 2005

Incremental update from comments on the 0.9. Of particular note is a

0.91a

January 22, 2005

better device state machine, new isochronous out examples and a

 

 

security mechanisms overview in the data flow chapter. Revision

 

 

0.91a includes a 0.9b revision of the protocol chapter, which was

 

 

omitted from 0.91 draft.

 

 

 

0.95

Feburary 24, 2005

Incremental update from comments to the 0.91a. Of particular note is

 

 

a new ‘active’ disconnect detection model, the addition of explicit

 

 

mechanisms for transmit power control, updates to the security and

 

 

wire adapter chapters.

 

 

 

0.96

March 11, 2005

Incremental update from comments to 0.95. Significant updates to

 

 

wire adapter and new commands added to the framework.

 

 

 

1.0 rc

March 31, 2005

Incremental updates to improve consistency and accuracy, better

 

 

examples and improved readability.

 

 

 

1.0 rc2

April 27, 2005

Final updates of technical issues and pagination completed.

 

 

 

1.0

May 12, 2005

Final specification.

 

 

 

Wireless Universal Serial Bus Specification

Copyright © 2005, Agere Systems, Inc. , Hewlett-Packard Company,

Intel Corporation, Microsoft Corporation, NEC Corporation,

Koninklijke Philips Electronics N.V., Samsung Electronics Co., Ltd.

All rights reserved.

INTELLECTUAL PROPERTY DISCLAIMER

THIS SPECIFICATION IS PROVIDED "AS IS" WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. THE AUTHORS OF THIS SPECIFICATION DISCLAIM ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PROPRIETARY RIGHTS, RELATING TO USE OF INFORMATION IN THIS SPECIFICATION. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED HEREIN.

All product names are trademarks, registered trademarks, or servicemarks of their respective owners.

Please send comments via electronic mail to techsup@usb.org

For industry information, refer to the USB Implemnters Forum web page at http://www.usb.org

i

Wireless Universal Serial Bus Specification, Revision 1.0

Acknowledgement of Wireless USB Technical Contribution

The authors of this specification would like to recognize the following people who participated in the Wireless USB Key Developers technical working groups. We would also like to thank other in the Wireless USB Promoter companies and throughout the industry who contributed to the development of this specification.

John S. Howard

Intel Corporation (Chair: Protocol/Editor)

John Keys

Intel Corporation (Chair: Security/Editor)

Dan Froelich

Intel Corporation (Chair: Isochronous/Editor)

Masami Katagiri

NEC Corporation (Chair: Wire Adapter)

David Thompson

Agere Systems, inc.

Nirmalendu Patra

Alereon, Inc.

Ed Beeman

Hewlett Packard

Brad Hosler

Intel Corporation (Editor: Architecture, Overview)

Abdul (Rahman) Ismail

Intel Corporation (Editor: Wire Adapter)

James J. Choate

Intel Corporation

Fred Bhesania

Microsoft Corporation

Randy Aull

Microsoft Corporation

Glen Slick

Microsoft Corporation

Mark Maszak

Microsoft Corporation

Masahiro Noda

NEC Corporation

Hiromitsu Sakamoto

NEC Corporation

Masao Manabe

NEC Corporation

Bart Vertenten

Royal Philips Electronics

Kawshol Sharma

Royal Philips Electronics

Hilbert Zhang

Royal Philips Electronics

Jay O’Conor

Royal Philips Electronics

Young Kim

Royal Philips Electronics

Takashi Sato

Royal Philips Electronics

Larry Taylor

Staccato Communications

Shyam Narayanan

Staccato Communications

Tim Gallagher

Staccato Communications

Bill Long

Staccato Communications

Valerio Filauro

STMicroelectronics

Matt Myers

Synopsys

Jin-Meng Ho

Texas Instruments

Sue Vining

Texas Instruments

Yaser Ibrahim

Texas Instruments

Haim Kupershmidt

Wisair Ltd.

Ran Hay

Wisair Ltd.

ii

 

Wireless Universal Serial Bus Specification, Revision 1.0

 

TABLE OF CONTENTS

 

CHAPTER 1 INTRODUCTION.................................................................................

1

1.1

Motivation .............................................................................................................................................

1

1.2

Design Goals..........................................................................................................................................

2

1.3

Objective of the Specification ..............................................................................................................

2

1.4

Scope of the Document .........................................................................................................................

2

1.5

USB Product Compliance ....................................................................................................................

3

1.6

Document Organization .......................................................................................................................

3

CHAPTER 2 TERMS, CONVENTIONS AND REFERENCES...................................

5

2.1

Terms.....................................................................................................................................................

5

2.2

Conventions:..........................................................................................................................................

9

2.3

References............................................................................................................................................

10

CHAPTER 3 ARCHITECTURAL OVERVIEW.........................................................

11

3.1

USB System Description.....................................................................................................................

11

3.1.1

Topology.......................................................................................................................................

11

3.2

Physical Interface ...............................................................................................................................

13

3.3

Power Management............................................................................................................................

13

3.4

Bus Protocol ........................................................................................................................................

13

3.5

Robustness...........................................................................................................................................

14

3.5.1

Error Handling..............................................................................................................................

14

3.6

Security................................................................................................................................................

14

3.7

System Configuration.........................................................................................................................

14

3.7.1 Attachment of Wireless USB Devices..........................................................................................

14

3.7.2 Removal of Wireless USB Devices ..............................................................................................

14

3.7.3

Bus Enumeration ..........................................................................................................................

15

3.8

Data Flow Types .................................................................................................................................

15

3.9

Wireless USB Devices.........................................................................................................................

15

3.9.1

Device Characterizations ..............................................................................................................

16

3.9.2 Devices and MAC Layer ..............................................................................................................

16

3.10

Wireless USB Host: Hardware and Software..................................................................................

17

iii

Wireless Universal Serial Bus Specification, Revision 1.0

CHAPTER 4 DATA FLOW MODEL ........................................................................

19

4.1

Implementer Viewpoints ....................................................................................................................

19

4.2

Communications Topology ................................................................................................................

19

4.2.1

 

Physical Topology ........................................................................................................................

20

4.3

Wireless USB Communication Flows................................................................................................

21

4.3.1

 

Wireless USB Channel Time........................................................................................................

24

4.3.2

 

MMC Transmission Accuracy......................................................................................................

24

4.3.3

 

USB Time across Device Wire Adapters......................................................................................

24

4.3.4

 

Device and Application Co-existence...........................................................................................

25

4.3.5

 

Device Endpoints..........................................................................................................................

27

4.3.6

 

Wireless USB Information Exchange Methods ............................................................................

27

4.3.7

 

Device Perspective........................................................................................................................

27

4.3.8

 

Host Perspective ...........................................................................................................................

31

4.4

Data Transfers ....................................................................................................................................

35

4.4.1

 

Burst Mode Data Phase ................................................................................................................

37

4.5

Bulk Transfers ....................................................................................................................................

37

4.5.1

 

Bulk Transfer Packet Size and Signaling Rate Constraints ..........................................................

38

4.5.2

 

Bulk Transfer Channel Access Constraints ..................................................................................

39

4.5.3

 

Bulk Transfer Data Sequences......................................................................................................

39

4.6

Interrupt Transfers ............................................................................................................................

39

4.6.1

 

Low Power Interrupt IN................................................................................................................

40

4.6.2

 

Interrupt Transfer Packet Size and Signaling Rate Constraints ....................................................

40

4.6.3

 

Interrupt Transfer Channel Access Constraints ............................................................................

41

4.6.4

 

Interrupt Transfer Data Sequences................................................................................................

42

4.7

Isochronous Transfers........................................................................................................................

42

4.7.1

 

Isochronous Transfer Packet Size and Signaling Rate Constraints...............................................

43

4.7.2

 

Isochronous Transfer Channel Access Constraints.......................................................................

45

4.7.3

 

Isochronous Transfer Data Sequences ..........................................................................................

45

4.7.4

 

Isochronous Endpoint Host System Admission Decisions ...........................................................

46

4.7.5

 

Isochronous Data Discards and Use of Isochronous Packet Discard IE .......................................

47

4.8

Control Transfers ...............................................................................................................................

47

4.8.1

 

Control Transfer Packet Size and Signaling Rate Constraints......................................................

48

4.8.2

 

Control Transfer Channel Access Constraints ..............................................................................

48

4.8.3

 

Control Transfer Data Sequences .................................................................................................

49

4.8.4

 

Data Loopback Commands...........................................................................................................

49

4.9

Device Notifications ............................................................................................................................

50

4.10

Media Reliability Considerations......................................................................................................

50

4.10.1

Transmit Power Control................................................................................................................

51

4.10.2 Adjustments to Data Phase Packet Payload Sizes ........................................................................

53

4.10.3 Adjustments to Transmit Bit Rate.................................................................................................

54

4.10.4

Changing PHY Channel................................................................................................................

54

4.10.5

Host Schedule Control..................................................................................................................

56

4.10.6 Dynamic Bandwidth Interface Control.........................................................................................

56

4.11 Special Considerations for Isochronous Transfers ..........................................................................

57

iv

Wireless Universal Serial Bus Specification, Revision 1.0

4.11.1 Summary Of Key Features Of USB Wired Isochrony..................................................................

57

4.11.2

UWB Media Characteristics .........................................................................................................

59

4.11.3 Wireless USB Isochronous Transfer Level Protocol ....................................................................

61

4.11.4 Wireless USB Isochronous IN Example.......................................................................................

61

4.11.5 Wireless USB Isochronous OUT Example...................................................................................

65

4.11.6 Choosing an Isochronous IN or Isochronous OUT Endpoint Buffer Size ....................................

67

4.11.7 Isochronous OUT endpoint receiver implementation options ......................................................

67

4.11.8

Synchronization ............................................................................................................................

73

4.11.9

Error Handling Details..................................................................................................................

74

4.12

Device Reset.........................................................................................................................................

76

4.13

Connection Process.............................................................................................................................

76

4.13.1

Reconnection Process ...................................................................................................................

78

4.14

Disconnect ...........................................................................................................................................

78

4.15

Security Mechanisms..........................................................................................................................

80

4.15.1

Connection Lifetime .....................................................................................................................

80

4.15.2

Host Security Considerations........................................................................................................

80

4.16

Wireless USB Power Management....................................................................................................

80

4.16.1

Device Power Management ..........................................................................................................

81

4.16.2

Host Power Management..............................................................................................................

83

4.17

Dual Role Devices (DRD) ...................................................................................................................

85

4.17.1 Discover P2P-DRD Host to establish default link ........................................................................

85

4.17.2 Pairing P2P-DRD to establish reverse link...................................................................................

85

CHAPTER 5 PROTOCOL LAYER ..........................................................................

87

5.1

Packet Formats ...................................................................................................................................

87

5.2

Wireless USB Transaction Groups ...................................................................................................

92

5.2.1

Wireless USB Channel Time Allocation Information Elements ..................................................

93

5.3

Transaction Group Timing Constraints ...........................................................................................

99

5.3.1

Streaming-Mode Inter-packet Constraints for the PHY..............................................................

101

5.3.2

Protocol Synchronization............................................................................................................

101

5.4

Data Burst Synchronization and Retry...........................................................................................

102

5.5

Wireless USB Transactions..............................................................................................................

108

5.5.1

Isochronous Transactions ...........................................................................................................

111

5.5.2

Control Transfers........................................................................................................................

111

5.5.3

Device Notifications ...................................................................................................................

113

5.5.4

Flow Control...............................................................................................................................

114

5.6

Physical and Media-Access Layer Specific Characteristics ..........................................................

116

CHAPTER 6 WIRELESS USB SECURITY ...........................................................

119

6.1 Introduction ......................................................................................................................................

119

6.1.1 Goal of USB Security .................................................................................................................

119

v

Wireless Universal Serial Bus Specification, Revision 1.0

6.1.2

 

Security and USB .......................................................................................................................

119

6.2

Overview............................................................................................................................................

120

6.2.1

 

Base of Trust...............................................................................................................................

120

6.2.2

 

Preserve the Nature of the USB Device Model ..........................................................................

120

6.2.3

 

Implementation of Security Extensions ......................................................................................

120

6.2.4

 

Encryption Methods....................................................................................................................

121

6.2.5

 

Message Format..........................................................................................................................

121

6.2.6

 

Encryption Keys .........................................................................................................................

121

6.2.7

 

Correct key determination ..........................................................................................................

123

6.2.8

 

Replay Prevention.......................................................................................................................

123

6.2.9

 

Secure Packet Reception.............................................................................................................

123

6.2.10

General Connection Model.........................................................................................................

123

6.2.11

Key Management........................................................................................................................

127

6.3

Association and Authentication.......................................................................................................

127

6.3.1

 

Connection and Reconnection Requests.....................................................................................

128

6.3.2

 

Authentication ............................................................................................................................

129

6.4

Interfacing to AES-128 CCM ..........................................................................................................

132

6.4.1

 

CCM nonce Construction ...........................................................................................................

132

6.4.2

 

l(m) and l(a) Calculation.............................................................................................................

133

6.4.3

 

Counter-mode Bx Blocks ............................................................................................................

133

6.4.4

 

Encryption Ax Blocks .................................................................................................................

134

6.5

Pseudo-Random Function Definition..............................................................................................

134

6.5.1

 

Key Derivation............................................................................................................................

135

6.5.2

 

Out-of-band MIC Generation .....................................................................................................

136

6.5.3

 

Example Random Number Generation.......................................................................................

136

CHAPTER 7 WIRELESS USB FRAMEWORK .....................................................

137

7.1

Wireless USB Device States .............................................................................................................

137

7.1.1

UnConnected ..............................................................................................................................

138

7.1.2

UnAuthenticated .........................................................................................................................

138

7.1.3

Authenticated..............................................................................................................................

139

7.1.4

Reconnecting ..............................................................................................................................

140

7.2

Generic Wireless USB Device Operations ......................................................................................

140

7.3

Standard Wireless USB Device Requests .......................................................................................

140

7.3.1

Wireless USB Extensions to Standard Requests.........................................................................

141

7.3.2

Security-related Requests ...........................................................................................................

153

7.4

Standard Wireless USB Descriptors ...............................................................................................

161

7.4.1

Device Level Descriptors............................................................................................................

161

7.4.2

Configuration..............................................................................................................................

166

7.4.3

Endpoint......................................................................................................................................

167

7.4.4

Wireless USB Endpoint Companion ..........................................................................................

170

7.4.5

Security-Related Descriptors ......................................................................................................

173

7.5

Wireless USB Channel Information Elements ...............................................................................

175

7.5.1

Wireless USB Connect Acknowledge IE ...................................................................................

177

7.5.2

Wireless USB Host Information IE ............................................................................................

178

7.5.3

Wireless USB Channel Change Announcement IE ....................................................................

179

vi

Wireless Universal Serial Bus Specification, Revision 1.0

7.5.4

 

Wireless USB Device Disconnect IE..........................................................................................

179

7.5.5

 

Wireless USB Host Disconnect IE .............................................................................................

180

7.5.6

 

Wireless USB Release Channel IE .............................................................................................

180

7.5.7

 

Wireless USB Work IE...............................................................................................................

181

7.5.8

 

Wireless USB Channel Stop IE ..................................................................................................

182

7.5.9

 

Wireless USB Device Keepalive IE ...........................................................................................

182

7.5.10

Wireless USB Isochronous Packet Discard IE ...........................................................................

183

7.5.11

Wireless USB Reset Device IE...................................................................................................

184

7.5.12

Wireless USB Transmit Packet Adjustment IE ..........................................................................

184

7.6

Device Notifications ..........................................................................................................................

185

7.6.1

 

Device Connect (DN_Connect) ..................................................................................................

186

7.6.2

 

Device Disconnect (DN_Disconnect).........................................................................................

188

7.6.3

 

Device Endpoints Ready (DN_EPRdy) ......................................................................................

188

7.6.4

 

Device MAS Availability Changed (DN_MASAvailChanged) .................................................

190

7.6.5

 

Device Sleep (DN_Sleep)...........................................................................................................

190

7.6.6

 

Remote Wakeup (DN_RemoteWakeup).....................................................................................

191

7.6.7

 

Device Alive (DN_Alive)...........................................................................................................

191

7.7

MAC Layer-Specific Information/Framework..............................................................................

192

CHAPTER 8 WIRE ADAPTER..............................................................................

195

8.1

Operational Model............................................................................................................................

195

8.1.1

 

Functional Characteristics...........................................................................................................

195

8.1.2

 

Data Transfer Interface ...............................................................................................................

196

8.1.3

 

Remote Pipe................................................................................................................................

197

8.1.4

 

Wire Adapter Functional Blocks ................................................................................................

198

8.1.5

 

Downstream Port(s) ....................................................................................................................

198

8.1.6

 

Upstream Port .............................................................................................................................

198

8.1.7

 

Downstream Host Controller ......................................................................................................

199

8.1.8

 

Upstream Endpoint Controller....................................................................................................

199

8.1.9

 

Remote Pipe Controller ..............................................................................................................

199

8.1.10

Suspend and Resume ..................................................................................................................

202

8.1.11

Reset Behavior............................................................................................................................

204

8.1.12

Device Control............................................................................................................................

204

8.1.13

Buffer Configuration ..................................................................................................................

204

8.2

Descriptors ........................................................................................................................................

205

8.3

Requests.............................................................................................................................................

205

8.3.1

 

Wire Adapter Class-Specific Requests .......................................................................................

206

8.3.2

 

Notification Information.............................................................................................................

212

8.3.3

 

Transfer Requests .......................................................................................................................

212

8.4

DWA Interfaces, Descriptors and Control .....................................................................................

217

8.4.1

 

DWA Isochronous Streaming Interface......................................................................................

217

8.4.2

 

DWA Isochronous Streaming Overview ....................................................................................

217

8.4.3

 

DWA Descriptors .......................................................................................................................

217

8.4.4

 

DWA Specific Requests .............................................................................................................

230

8.4.5

 

DWA Notification Information ..................................................................................................

232

8.4.6

 

DWA Isochronous Transfers ......................................................................................................

233

8.5

HWA Interfaces, Descriptors and Control.....................................................................................

236

8.5.1

 

HWA Isochronous Streaming Overview ....................................................................................

236

vii

Wireless Universal Serial Bus Specification, Revision 1.0

8.5.2

HWA Descriptors .......................................................................................................................

236

8.5.3

HWA Specific Requests .............................................................................................................

244

8.5.4

HWA Notification Information ..................................................................................................

251

8.5.5

HWA Isochronous Transfers ......................................................................................................

252

8.6

Radio Control Interface ...................................................................................................................

254

8.6.1

Radio Control Descriptors ..........................................................................................................

255

8.6.2

Radio Control Command............................................................................................................

256

8.6.3

Radio Control Notifications........................................................................................................

272

APPENDIX A WIRELESS USB CCM TEST VECTORS .......................................

277

A.1

Key Derivation ..................................................................................................................................

277

A.2

Handshake MIC calculation ............................................................................................................

277

A.3

Secure MMC (EO = payload length)...............................................................................................

277

A.4

Data IN from device (EO = 2)..........................................................................................................

279

APPENDIX B WIRE ADAPTER EXAMPLE DESCRIPTOR SETS .......................

280

B.1

Descriptors for DWA........................................................................................................................

280

B.2

Descriptors for HWA .......................................................................................................................

285

viii

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