ESP32-S3 USB Host CDC Generic
Posted: Fri Aug 09, 2024 10:01 pm
Hi,
I have tried all available examples in ESP-IDF related to USB communication, including both the Host CDC and Host USB libraries, but I am unable to establish communication with my UPS device.
I can successfully communicate with other devices using known drivers like CP210x, but I am struggling with my Ragtech Easy Pro 1200 UPS, which uses a generic driver.
Here is the output of the dmesg | tail command from Linux with my UPS connected:
[ 7855.208112] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[ 7855.320032] usb 1-1.3: New USB device found, idVendor=04d8, idProduct=000a, bcdDevice= 1.00
[ 7855.320049] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7855.320055] usb 1-1.3: Product: USB Serial Port
[ 7855.320059] usb 1-1.3: Manufacturer: Ragtech Sistemas de Energia
[ 7855.419658] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
[ 7855.419897] usbcore: registered new interface driver cdc_acm
[ 7855.419902] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Despite this, I am unable to establish serial communication with the UPS from the ESP32-S3.
I have been attempting to resolve this issue for a month without success. I have also tried using MicroPython and TinyUSB with no results.
Any assistance or guidance on how to resolve this issue would be greatly appreciated.
Thank you.
I have tried all available examples in ESP-IDF related to USB communication, including both the Host CDC and Host USB libraries, but I am unable to establish communication with my UPS device.
I can successfully communicate with other devices using known drivers like CP210x, but I am struggling with my Ragtech Easy Pro 1200 UPS, which uses a generic driver.
Here is the output of the dmesg | tail command from Linux with my UPS connected:
[ 7855.208112] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[ 7855.320032] usb 1-1.3: New USB device found, idVendor=04d8, idProduct=000a, bcdDevice= 1.00
[ 7855.320049] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7855.320055] usb 1-1.3: Product: USB Serial Port
[ 7855.320059] usb 1-1.3: Manufacturer: Ragtech Sistemas de Energia
[ 7855.419658] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
[ 7855.419897] usbcore: registered new interface driver cdc_acm
[ 7855.419902] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Despite this, I am unable to establish serial communication with the UPS from the ESP32-S3.
I have been attempting to resolve this issue for a month without success. I have also tried using MicroPython and TinyUSB with no results.
Any assistance or guidance on how to resolve this issue would be greatly appreciated.
Thank you.