Page 1 of 1

Openthread RCP using USB to control it

Posted: Mon Jun 23, 2025 3:46 pm
by mavioux
Hello everyone,

I am having an esp32 Openthread application that I use in RCP mode. I am flashing the `ot_rcp` esp example to my esp32c6 and then I am controlling it through a ubuntu host machine. This works perfectly when I am connecting it to the UART port of my esp32c6. But unfortunately I have a PCB that only exposes the USB port of my esp32c6. When I switch to that port the host machine does not receive any response from the esp32 in RCP mode. Does openthread in esp32 only work through native UART and SPI, or can it also work through USB?

If it cannot work through USB natively is there any way I can modify the openthread stack to support that?

Or should I redirect USB traffic to a UART controller? (any hint or direction on how to do that would be appreciated)

Re: Openthread RCP using USB to control it

Posted: Sun Jun 29, 2025 7:15 am
by nopnop2002
>This works perfectly when I am connecting it to the UART port of my esp32c6. But unfortunately I have a PCB that only exposes the USB port of my esp32c6.

The esp32c6 does not support USB-OTG.
It is not possible to communicate with USB devices or USB hosts using USB.

Only the ESP32S2/S3/P4 supports USB-OTG.
https://github.com/espressif/esp-idf/tr ... herals/usb

The GPIOs available for USB_DP/USB_DM are fixed.

Re: Openthread RCP using USB to control it

Posted: Thu Aug 14, 2025 1:56 pm
by Kodiak
I have made a topic with more details on likely this same issue: viewtopic.php?t=46434