USB Device Structure
陈启美,夏耐,丁传锁,陈锁柱
DOI: https://doi.org/10.3969/j.issn.1006-6047.2001.04.015
2001-01-01
Abstract:The basal states of USB device and com mon operations based on them are described.The basal states include attached,pow ered,default,address,configured,suspended,etc.The common operations are dynamic attachment and removal,address assignment,configuration,data transfer,power mana gement,request processing,request error.Among them,the protocol of request proce ssing is emphasized.All USB devices respond to host's request through their defa ult control pipe.These requests are made using control transfer.The request and its parameters are sent to device by setup packet,and host sets the values in th e fields of setup packet.Each setup packet has eight bytes.The descriptor used i n several device requests is the data set with a defined format.There are five k inds of descriptor:device,configuration,interface,endpoint,and UNICODE string.Th ey reflect device characteristics and are essentially relational databases descr ibing device information.