Giter Club home page Giter Club logo

usb_protocol_ch's Introduction

USB_Protocol_CH

FengJungle整理的USB协议2.0中文版(持续更新)

日期:2019/7/6

修改:2020/2/15

目录

1 简介 5

1.1	Bus Topology	5

	1.1.1	USB host	6
	
	1.1.2	USB device	6
	
1.2	USB总线协议	7

1.3	鲁棒性	7

1.4	USB设备的拔插	7

2 USB数据流模型 8

2.1	Implementer Viewpoints	8

2.2	USB总线拓扑	9

2.3	USB Communication Flow	9

	2.3.1	设备端点	10
	
	2.3.2	管道	11
	
2.4	传输(Transfers)	11

	2.4.1	控制传输(Control Transfers)	12
	
	2.4.2	中断传输(Interrupt Transfers)	15
	
	2.4.3	批量传输(Bulk Transfers)	16
	
	2.4.4	同步传输(Isochronous Transfers)	17
	
	2.4.5	分离传输(Split Transaction)	18

3 USB物理规范和电气规范 18

3.1	USB线缆	18

3.2	电气规范	19

3.2.1	USB的插入检测机制	19

3.2.2	高速设备握手识别	19

3.2.3	信号	21

4 USB 通信协议 26

4.1	字节顺序	26

4.2	USB 数据格式	27

	4.2.1	域(Field)	28
	
	4.2.2	包(Packet)	30
	
	4.2.3	事务(Transaction)	31

5 USB Device Framework 34

5.1	USB设备状态	34

	5.1.1	连接(Attached)	34
	
	5.1.2	上电(Powered)	35
	
	5.1.3	默认状态(Default)	35
	
	5.1.4	地址(Address)	35
	
	5.1.5	配置状态(Configured)	36
	
	5.1.6	挂起状态(Suspended)	36
	
5.2	总线枚举(Bus Enumeration)	36

5.3	USB请求处理的限制	38

5.4	设备请求	38

5.5	标准设备请求	40

	5.5.1	Clear Feature	42
	
	5.5.2	Get Configuration	42
	
	5.5.3	Get Descriptor	42
	
	5.5.4	Get Interface	44
	
	5.5.5	Get Status	44
	
	5.5.6	Set Address	45
	
	5.5.7	Set Configuration	46
	
	5.5.8	Set Descriptor	47
	
	5.5.9	Set Feature	47
	
	5.5.10	Set Interface	48
	
5.6	描述符(Descriptor )	48

	5.6.1	设备(Device)	48
	
	5.6.2	设备限定(Device_Qualifier)	50
	
	5.6.3	配置(Configuration)	51
	
	5.6.4	其他速度配置(Other_Speed_Configuration)	52
	
	5.6.5	接口(Interface)	52
	
	5.6.6	端点(Endpoint)	53
	
	5.6.7	字符串(String)	54

6 USB Hub 55

7 参考资料 55

usb_protocol_ch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

usb_protocol_ch's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.