ESP32-C3 - Access Built in USB CDC / Serial Port?

Sprite
Espressif staff
Espressif staff
Posts: 10650
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3 - Access Built in USB CDC / Serial Port?

Postby Sprite » Sun Feb 13, 2022 7:36 am

Where is the /dev/usbserjtag? You mean upper computer behavior?
If I want to use esp32-c3 to monitor upper computer and I don't want to use scanf, gets, etc. How can I realization this behavior pass through VFS?
/dev/usbserjtag is the VFS node the USB serial-JTAG thing is on. I have no idea what 'monitor upper computer' means.

wangshuoran
Posts: 37
Joined: Fri Dec 24, 2021 12:40 pm

Re: ESP32-C3 - Access Built in USB CDC / Serial Port?

Postby wangshuoran » Tue Feb 15, 2022 8:26 am

Where is the /dev/usbserjtag? You mean upper computer behavior?
If I want to use esp32-c3 to monitor upper computer and I don't want to use scanf, gets, etc. How can I realization this behavior pass through VFS?
/dev/usbserjtag is the VFS node the USB serial-JTAG thing is on. I have no idea what 'monitor upper computer' means.
hello, upper computer mean the PC or commander send cmd to esp32. I don't have a few resource with control /dev/usbserjtag, I don't know whether it exist in esp-idf. Can I use https://docs.espressif.com/projects/esp ... e/vfs.html to control it. Do you have any demo to control it?

Thank you!

RobertPalmerJr
Posts: 1
Joined: Tue May 06, 2025 1:45 pm

Re: ESP32-C3 - Access Built in USB CDC / Serial Port?

Postby RobertPalmerJr » Tue May 06, 2025 2:06 pm

Is it possible to access/monitor the state of the DTR and RTS lines as set by the connected host computer.

If the host computer connects to the USB CDC port and it specifies that DTR and/or RTS should be set or cleared, can the firmware (application) running on the ESP32-C3 detect this?

Thank you,
RobertPalmerJr

Who is online

Users browsing this forum: Baidu [Spider], ChatGPT-User, Google [Bot] and 2 guests