espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.87k stars 7.08k forks source link

Is oc_rcp running on ESP32-H2 compatible with OBTR on Ubuntu Linux? (IDFGH-13159) #14100

Open Askidea opened 3 days ago

Askidea commented 3 days ago

Answers checklist.

General issue report

Can ot_rcp(examples/openthread/ot_rcp) uploaded to the ESP32-H2 board be connected to OBTR running on Ubuntu Linux for Spinel communication? There are documents that say Ubuntu OBTR is compatible with nRF52840 RCP, but I am wondering if ESP32-H2 is also possible. Or does H2 RCP only work with esp-thread-br on the ESP32-S3 board or Border router DevKit?

Reference link: Commission and control a Matter Thread device via the OTBR Snap

zwx1995esp commented 2 days ago

Hi @Askidea Yes, our ESP32H2 rcp can be connected to OBTR running on Ubuntu. Notice: our RCP example using a default baudrate 460800 for UART, you need to config this on OBTR Host via command:

spinel+hdlc+uart:///dev/ttyUSB2?uart-baudrate=460800

For example: "sudo otbr-agent OTBR_AGENT_OPTS="-I wpan0 -B wlan0 spinel+hdlc+uart:///dev/ttyUSB2?uart-baudrate=460800""

Askidea commented 2 days ago

@zwx1995esp Thanks for your comments. I'll try as you mentioned. If you have any reference links related to the above, please let me know.

zwx1995esp commented 2 days ago

@Askidea Yup, for setting up a linux based otbr, you can refer to the official docs https://openthread.io/guides/border-router/raspberry-pi. And for the config of the RCP you can add the baudrate config metioned above(spinel+hdlc+uart:///dev/ttyUSB2?uart-baudrate=460800).