Replies: 4 comments 17 replies
-
|
@Mavioux The USB port RCP support is under progress, will update here once it's available. |
Beta Was this translation helpful? Give feedback.
-
|
@Mavioux In addition to applying this patch, you must ensure that your branch includes the following commits:
These commits fixed USB Serial JTAG issues. Without this commit, the USB-based Usage example:
git apply 0001-feat-openthread-support-rcp-over-usb.patch
idf.py set-target esp32c6
idf.py build
idf.py -p /dev/ttyACM0 flash monitorAfter that, you can communicate with the ot_rcp device over USB (for example, use it as a sniffer). |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for the patch! I applied it and at first it seemed that it worked! The host managed to control the RCP through the USB port (It seemed like it worked as expected based on the behaviour when connected through the UART port). But then I disconnected the cable and reconnected it to the host. Then the host could not receive a response. If I plug the cable in and out multiple times and restart the host application that controls the RCP node, then the communication is restored at some point. Is this because this is a patch and not finished? Have you experiences anything similar? Shall I expect that this would be fixed in the final release? Or should I look at the host application to fix this issue? Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
-
|
Did some more tests, and collected a USB pcap which can be found attached. The pcap snippet is first of some successful replugs (so replug -> working Spinel comms), followed by a replug after which Spinel is not working anymore. It does not recover, also not when I unbind & rebind my CDC-ACM driver for example. Furthermore, I found something interesting: So it seems to stay healthy if the chip/stack doesn't restart, so perhaps a race issue during power on of the ESP firmware I believe this indicates that the issue is from the ESP's side, not our host USB stack or our application. I would like to highlight that this is blocking us from going to production with our actual custom ESP32C6 based board |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am having an esp32 Openthread application that I use in RCP mode. I am flashing the
ot_rcpesp 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)
Beta Was this translation helpful? Give feedback.
All reactions