看了下手头的一个CP210x芯片的USB转串口模块的USB描述符有没有什么差异。从描述符上看,和其他USB转UART的模块的USB描述符都差不多,都是厂商自定义类Vendor specific class,在很多系统上都没法免驱。这个模块是一个Full Speed设备,传输数据使用bulk传输,具体的可以看USB描述符信息。
下面是这个Silicon Labs CP210x USB to UART Bridge的USB描述符。
Device Descriptor
Offset
Field
Size
Value
Description
0
bLength
1
12h
Size of this descriptor
1
bDescriptorType
1
01h
Device
2
bcdUSB
2
0110h
USB Spec 1.1
4
bDeviceClass
1
00h
Class info in Ifc Descriptors
5
bDeviceSubClass
1
00h
Unused
6
bDeviceProtocol
1
00h
Unused
7
bMaxPacketSize0
1
08h
8 bytes
8
idVendor
2
10C4h
Vendor ID:Cygnal Integrated Products, Inc.
10
idProduct
2
EA60h
Product ID
12
bcdDevice
2
0100h
1.00
14
iManufacturer
1
01h
Index to string descriptor that contains the string < Your Name > in Unicode
15
iProduct
1
02h
Index to string descriptor that contains the string < Your Product Name > in Unicode
16
iSerialNumber
1
03h
Index to string descriptor that contains the string < Your Serial Number > in Unicode
17
bNumConfigurations
1
01h
One configuration
Configuration Descriptor
Offset
Field
Size
Value
Description
0
bLength
1
09h
Size of this descriptor
1
bDescriptorType
1
02h
Configuration
2
wTotalLength
2
0020h
Length of the total configuration block, including this descriptor, in bytes