OpenThread BorderRouter
Overview
This sample allows testing the Thread protocol and the Thread Border Router functionality for various boards using the OpenThread and Wi-Fi shell.
Building and Running
Verify that the board and chip you are targeting provide IEEE 802.15.4 and Wi-Fi support.
There are configuration files for different boards and setups in the shell directory:
prj.confGeneric config file.overlay-ot-rcp-host-wifi-nxp.confThis overlay config enables support of OpenThread RCP host running on NXP chips over IMU interface. It also has Wi-Fi support enabled.overlay-webserver.confThis overlay config enables the HTTP web server (REST APIs).
Build OpenThread Border Router application like this:
west build -b <board to use> samples/net/openthread/border_router -- -DCONF_FILE=<config file to use>
Example building for NXP’s RW612 FRDM (RCP host).
west build -b frdm_rw612 samples/net/openthread/border_router -- -DCONF_FILE="prj.conf overlay-ot-rcp-host-wifi-nxp.conf"
Example building with Web Server enabled for NXP’s RW612 FRDM (RCP host).
west build -b frdm_rw612 samples/net/openthread/border_router -- -DCONF_FILE="prj.conf overlay-ot-rcp-host-wifi-nxp.conf overlay-webserver.conf"
Web Server
When built with overlay-webserver.conf, the application includes an HTTP web server providing:
Web Interface: Accessible at
http://<device-ip>:8080orhttp://zephyr-otbr:8080(via mDNS)REST API: JSON-based endpoints for Thread network management