Saturday, October 20, 2012

CH340 or BAFO-810

Connection Status
Device connected
Current Configuration
1
Speed
Full (12 Mbit/s)
Device Address
1
Number Of Open Pipes
3

Device Descriptor USB2.0-Serial
Offset
Field
Size
Value
Description
0
bLength
1
12h
1
bDescriptorType
1
01h
Device
2
bcdUSB
2
0110h
USB Spec 1.1
4
bDeviceClass
1
FFh
Vendor-Specific
5
bDeviceSubClass
1
00h
6
bDeviceProtocol
1
00h
7
bMaxPacketSize0
1
08h
8 bytes
8
idVendor
2
1A86h
10
idProduct
2
7523h
12
bcdDevice
2
0252h
2.52
14
iManufacturer
1
00h
15
iProduct
1
02h
"USB2.0-Serial"
16
iSerialNumber
1
00h
17
bNumConfigurations
1
01h
Configuration Descriptor 1 Bus Powered, 96 mA
Offset
Field
Size
Value
Description
0
bLength
1
09h
1
bDescriptorType
1
02h
Configuration
2
wTotalLength
2
0027h
4
bNumInterfaces
1
01h
5
bConfigurationValue
1
01h
6
iConfiguration
1
00h
7
bmAttributes
1
80h
Bus Powered
4..0: Reserved
...00000
5: Remote Wakeup
..0.....
No
6: Self Powered
.0......
No, Bus Powered
7: Reserved (set to one)
(bus-powered for 1.0)
1.......
8
bMaxPower
1
30h
96 mA
Interface Descriptor 0/0 Vendor-Specific, 3 Endpoints
Offset
Field
Size
Value
Description
0
bLength
1
09h
1
bDescriptorType
1
04h
Interface
2
bInterfaceNumber
1
00h
3
bAlternateSetting
1
00h
4
bNumEndpoints
1
03h
5
bInterfaceClass
1
FFh
Vendor-Specific
6
bInterfaceSubClass
1
01h
7
bInterfaceProtocol
1
02h
8
iInterface
1
00h
Endpoint Descriptor 82 2 In, Bulk, 32 bytes
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
82h
2 In
3
bmAttributes
1
02h
Bulk
1..0: Transfer Type
......10
Bulk
7..2: Reserved
000000..
4
wMaxPacketSize
2
0020h
32 bytes
6
bInterval
1
00h
Endpoint Descriptor 02 2 Out, Bulk, 32 bytes
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
02h
2 Out
3
bmAttributes
1
02h
Bulk
1..0: Transfer Type
......10
Bulk
7..2: Reserved
000000..
4
wMaxPacketSize
2
0020h
32 bytes
6
bInterval
1
00h
Endpoint Descriptor 81 1 In, Interrupt, 1 ms
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
81h
1 In
3
bmAttributes
1
03h
Interrupt
1..0: Transfer Type
......11
Interrupt
7..2: Reserved
000000..
4
wMaxPacketSize
2
0008h
8 bytes
6
bInterval
1
01h
1 ms
CH340

1 comment:

  1. which endpoint should be used to read from? 0x82 or 0x81

    ReplyDelete