ESP32-S3 communicating with a Ltd FT2232C/D/H Dual UART/FIFO IC via USB-OTG
Posted: Mon Apr 25, 2022 6:47 pm
Hi, im trying to get a serial connection going from the esp to this device https://www.me-systeme.de/shop/en/elect ... t/gsv-3usb. I managed to get a connection but im not sure where to go from there. After connecting with i get the following device information:
both
fail so i guess thats not supported.
How can i get a serial connection with 38400 baud and 8n1? Am i even on the right track with CDC?
Full code: https://gist.github.com/qdlmcfresh/03e5 ... 0c3a5a41c3
The data im getting in the handle_rx callback looks like this:
while a working connection should put out something like this:
Code: Select all
cdc_acm_host_open_vendor_specific
Code: Select all
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x0
bDeviceSubClass 0x0
bDeviceProtocol 0x0
bMaxPacketSize0 8
idVendor 0x403
idProduct 0x6010
bcdDevice 5.00
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 55
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
bMaxPower 500mA
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
iInterface 2
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x2 EP 2 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
iInterface 2
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x4 EP 4 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
Code: Select all
cdc_acm_host_line_coding_get
cdc_acm_host_line_coding_set
fail so i guess thats not supported.
How can i get a serial connection with 38400 baud and 8n1? Am i even on the right track with CDC?
Full code: https://gist.github.com/qdlmcfresh/03e5 ... 0c3a5a41c3
The data im getting in the handle_rx callback looks like this:
Code: Select all
I (24166) USB-CDC: Data received
I (24176) USB-CDC: 0x3fc9559c 01 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |.`..............|
I (24186) USB-CDC: 0x3fc955ac 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
I (24186) USB-CDC: 0x3fc955bc 00 00 00 00 00 00 00 00 00 |.........|
I (24196) USB-CDC: Data received
I (24206) USB-CDC: 0x3fc9559c 01 60 |.`|
I (24216) USB-CDC: Data received
I (24216) USB-CDC: 0x3fc9559c 01 60 |.`|
I (24226) USB-CDC: Data received
I (24226) USB-CDC: 0x3fc9559c 01 60 |.`|
I (24236) USB-CDC: Data received
I (24246) USB-CDC: 0x3fc9559c 01 60 |.`|
I (24246) USB-CDC: Data received
I (24256) USB-CDC: 0x3fc9559c 01 60 00 |.`.|
Code: Select all
+00.000 mV/V
+00.000 mV/V
+00.000 mV/V
+00.000 mV/V
+00.000 mV/V
+00.000 mV/V
+00.000 mV/V
+00.000 mV/V