Can the ESP32-C3's USB-CDC port be used like a UART?
Posted: Sat Jul 09, 2022 4:01 pm
With the ESP32-Arduino, I learned that we can exchange data with USB-CDC just as we do with a physical UART port,
using the same functions as with a physical UART port, such as Serial.print() and Serial.read().
I also learned that ESP-IDF allows interactive data exchange between the PC and ESP32-C3 using the esp_console component.
However, in order to exchange data in a free format, for example without line feed codes,
I would like to communicate with ESP32-C3+ESP-IDF using USB-CDC in the same way as with a regular UART.
Is there any easy way to Tx/Rx data via USB-CDC using ESP32-C3 + ESP-IDF?
using the same functions as with a physical UART port, such as Serial.print() and Serial.read().
I also learned that ESP-IDF allows interactive data exchange between the PC and ESP32-C3 using the esp_console component.
However, in order to exchange data in a free format, for example without line feed codes,
I would like to communicate with ESP32-C3+ESP-IDF using USB-CDC in the same way as with a regular UART.
Is there any easy way to Tx/Rx data via USB-CDC using ESP32-C3 + ESP-IDF?