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

Kalpesh Lakum
Posts: 2
Joined: Thu Sep 26, 2024 8:19 am

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

Postby Kalpesh Lakum » Thu Sep 26, 2024 11:58 am

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?

Mia Barn
Posts: 6
Joined: Mon Sep 16, 2024 9:38 am

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

Postby Mia Barn » Sat Sep 28, 2024 7:30 pm

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.


Who is online

Users browsing this forum: Majestic-12 [Bot] and 67 guests