【USB描述符系列】一个CP210x的USB转串口

【USB描述符系列】一个CP210x的USB转串口

简介

看了下手头的一个CP210x芯片的USB转串口模块的USB描述符有没有什么差异。从描述符上看,和其他USB转UART的模块的USB描述符都差不多,都是厂商自定义类Vendor specific class,在很多系统上都没法免驱。这个模块是一个Full Speed设备,传输数据使用bulk传输,具体的可以看USB描述符信息。

下面是这个Silicon Labs CP210x USB to UART Bridge的USB描述符。

Device Descriptor

OffsetFieldSizeValueDescription
0bLength112hSize of this descriptor
1bDescriptorType101hDevice
2bcdUSB20110hUSB Spec 1.1
4bDeviceClass100hClass info in Ifc Descriptors
5bDeviceSubClass100hUnused
6bDeviceProtocol100hUnused
7bMaxPacketSize0108h8 bytes
8idVendor210C4hVendor ID:Cygnal Integrated Products, Inc.
10idProduct2EA60hProduct ID
12bcdDevice20100h1.00
14iManufacturer101hIndex to string descriptor that contains the string < Your Name > in Unicode
15iProduct102hIndex to string descriptor that contains the string < Your Product Name > in Unicode
16iSerialNumber103hIndex to string descriptor that contains the string < Your Serial Number > in Unicode
17bNumConfigurations101hOne configuration

Configuration Descriptor

OffsetFieldSizeValueDescription
0bLength109hSize of this descriptor
1bDescriptorType102hConfiguration
2wTotalLength20020hLength of the total configuration block, including this descriptor, in bytes
4bNumInterfaces101hOne interfaces
5bConfigurationValue101hID of this configuration
6iConfiguration100hUnused
7bmAttributes180hBus Powered
4…0: Reserved. . . 00000Unused
5: Remote Wakeup. .0 . . . . .No
6: Self Powered. 0 . . . . . .No, Bus Powered
7: Reserved (set to one)
(bus-powered for 1.0)
1 . . . . . . .Unused
8bMaxPower132h100 mA

Interface Descriptor 0/0 Vendor-Specific, 2 Endpoints

OffsetFieldSizeValueDescription
0bLength109hSize of this descriptor
1bDescriptorType104hINTERFACE
2bInterfaceNumber100hIndex of this interface
3bAlternateSetting100hIndex of this setting
4bNumEndpoints102h2 endpoints
5bInterfaceClass1FFhVendor-Specific
6bInterfaceSubClass100hVendor-Specific
7bInterfaceProtocol100hVendor-Specific
8iInterface102hIndex of string descriptor describing this interface
Endpoint Descriptor 81 1 In, Bulk, 64 bytes
OffsetFieldSizeValueDescription
0bLength107hSize of this descriptor
1bDescriptorType105hEndpoint
2bEndpointAddress181h1 In
3bmAttributes102hBulk
1…0: Transfer Type. . . . . .10Bulk
7…2: Reserved000000 . .Unused
4wMaxPacketSize20040h64 bytes
6bInterval100hUnused
Endpoint Descriptor 01 1 Out, Bulk, 64 bytes
OffsetFieldSizeValueDescription
0bLength107hSize of this descriptor
1bDescriptorType105hEndpoint
2bEndpointAddress102h2 Out
3bmAttributes102hBulk
1…0: Transfer Type. . . . . .10Bulk
7…2: Reserved000000 . .Unused
4wMaxPacketSize20040h64 bytes
6bInterval100hUnused

本文链接:https://blog.csdn.net/u012028275/article/details/115593403

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值