This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue Running Open Thread Border Agent on Raspberry Pi 3 with NRF52840 as Network Co-processor (NCP)

Hi,

I am trying to implement a Thread Border Router on Raspberry Pi 3 with NRF52840DK as a Network Co-processor (NCP).

I have followed the below steps to install the Thread Border Router on Raspberry Pi 3.

Step 1: Cloned open thread border router(OTBR) repository

$ git clone github.com/.../ot-br-posix.git --depth 1

Step 2: Build and Installed OTBR on Raspberry Pi

$ cd ot-br-posix
$ ./script/bootstrap
$ INFRA_IF_NAME=wlan0 ./script/setup

Step 3: Built and Flashed nrf/samples/openthread/coprocessor example on NRF52840DK from NRF Connect SDK (NCS) v1.6.1

$ west build -b nrf52840dk_nrf52840 --build_dir build_nrf52840dk_nrf52840

$ west flash --snr 683344644 --build-dir build_nrf52840dk_nrf52840/

Step 4: Connected the NRF52840DK to Raspberry Pi 3 over USB.

Step 5: Found the emulated NRF52840DK UART port.

In this case it is /dev/ttyACM0

Step 6: Updated the /etc/default/otbr-agent settings file to.

pi@raspberrypi:/etc/default $ cat otbr-agent
# Default settings for otbr-agent. This file is sourced by systemd

# Options to pass to otbr-agent
OTBR_AGENT_OPTS="-I wpan0 -B wlan0 spinel+hdlc+uart:///dev/ttyACM0 trel://wlan0"

Step 7: Rebooted the Raspberry Pi

Step 8: Checked the otbr-agent service status

pi@raspberrypi:/etc/default $ sudo service otbr-agent status
● otbr-agent.service - Border Router Agent
    Loaded: loaded (/lib/systemd/system/otbr-agent.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 19:52:56 BST; 180ms ago
  Process: 2035 ExecStart=/usr/sbin/otbr-agent $OTBR_AGENT_OPTS (code=exited, status=6)
Main PID: 2035 (code=exited, status=6)

The service starts and keeps on exiting with status code 6. I have even tried restarting the service but still no luck. Can someone tell me if I am missing anything?

Related