Page 1 of 1

How to use ESP32C3's USB Serial/JTAG Controller for bidirectional communication

Posted: Thu Sep 26, 2024 11:58 am
by Kalpesh Lakum
Aim : To achieve simple request/response communication using ESP32C3's USB Serial/JTAG Controller.

Example: I will connect ESP32C3's USB Serial/JTAG Controller lines to PC's USB port then from PC I will send any message using Serial Terminal and then I need to receive it in code and perform Actions.

How can I receive/send data in code using espidf?

Re: How to use ESP32C3's USB Serial/JTAG Controller for bidirectional communication

Posted: Sat Sep 28, 2024 7:30 pm
by Mia Barn
I would suggest you to use the USB CDC-ACM (Communication Device Class - Abstract Control Model) feature. The USB Serial/JTAG Controller allows serial communication directly through the USB port without the need for external USB-to-UART chips, and you can handle this in your ESP-IDF application using standard serial communication functions. I hope that will help.

Re: How to use ESP32C3's USB Serial/JTAG Controller for bidirectional communication

Posted: Sun Sep 29, 2024 6:03 am
by MicroController