Vcp example not working

gustavoy
Posts: 1
Joined: Sat Oct 12, 2024 11:25 am

Vcp example not working

Postby gustavoy » Sat Oct 12, 2024 11:38 am

Good morning i am trying to use the esp32 s3 board for comunicating with a device via rs232 but the device has a usb converter from serial, the converter its a ch340 type with the following parameters

USB Class : ff
USB SubClass : 01
USB Protocol : 02

I am using the latest release 5.3.1 abd the latest acm driver from 2 days ago. V 2.05.
https://github.com/espressif/esp-usb/bl ... /README.md

The example i am using its the one from
https://github.com/espressif/esp-idf/tr ... dc_acm_vcp

I am first just trying to make the example work. it compiles and i am able to flash, but all i get on the monitor is

I (59999741) VCP example: Opening any VCP device...
I (60005141) VCP example: Failed to open VCP device

even after connecting and diconnecting the usb device.

and that repeats over and over, i am using the otg usb c port of the s3 and for monitor the other usb c port.


Is there anything else i need to do in order for this to work?

Thanks aprecciated.

nopnop2002
Posts: 112
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: Vcp example not working

Postby nopnop2002 » Mon Oct 14, 2024 11:17 pm

This example works fine.
https://github.com/espressif/esp-idf/tr ... dc_acm_vcp

I used Arduino UNO as a UART device.

Arduino UNO--(UART)-->CH340 UART-USB Converter--(USB)-->ESP32S3


Code: Select all

I (302) main_task: Started on CPU0
I (312) main_task: Calling app_main()
I (312) VCP example: Installing USB Host
I (342) VCP example: Installing CDC-ACM driver
I (342) VCP example: Opening any VCP device...
I (4342) VCP example: Setting up line coding
I (4342) VCP example: Sending data through CdcAcmDevice
I (4342) VCP example: Done. You can reconnect the VCP device to run again.
Hello World 34000
Hello World 35000
Hello World 36000
Hello World 37000
Hello World 38000
Hello World 39000
Hello World 40000
Hello World 41000
Hello World 42000
Hello World 43000
Hello World 44000
Attachments
CDC-ACM-Host.JPG
CDC-ACM-Host.JPG (260.51 KiB) Viewed 330 times

Who is online

Users browsing this forum: No registered users and 117 guests