OpenThread BorderRouter

Browse source code on GitHub

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.conf Generic config file.

  • overlay-ot-rcp-host-wifi-nxp.conf This overlay config enables support of OpenThread RCP host running on NXP chips over IMU interface. It also has Wi-Fi support enabled.

  • overlay-webserver.conf This 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>:8080 or http://zephyr-otbr:8080 (via mDNS)

  • REST API: JSON-based endpoints for Thread network management