• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/11-Mar-2024-3326

src/11-Mar-2024-187

CMakeLists.txtD11-Mar-2024311 1610

KconfigD11-Mar-2024336 1710

README.rstD11-Mar-20242.2 KiB7052

app.overlayD11-Mar-2024172 1311

overlay-rcp.confD11-Mar-2024200 84

overlay-tri-n4m-br.confD11-Mar-2024555 2418

overlay-usb-nrf-br.confD11-Mar-2024292 137

prj.confD11-Mar-2024852 3623

sample.yamlD11-Mar-2024774 2524

usb.overlayD11-Mar-2024269 1916

README.rst

1.. _coprocessor-sample:
2
3OpenThread Co-Processor
4#######################
5
6Overview
7********
8
9OpenThread Co-Processor allows building a Thread Border Router. The code in this
10sample is only the MCU target part of a complete Thread Border Router.
11The Co-Processor can act in two variants: Network Co-Processor (NCP) and Radio
12Co-Processor (RCP), see https://openthread.io/platforms/co-processor.
13
14Additional required host-side tools (e.g. otbr-agent) to build a Thread Border
15Router can be obtained by following
16https://openthread.io/guides/border-router/build#set-up-the-border-router.
17
18The preferred Co-Processor configuration of OpenThread is RCP now.
19
20The source code for this sample application can be found at:
21:zephyr_file:`samples/net/openthread/coprocessor`.
22
23Building and Running
24********************
25
26Build the OpenThread NCP sample application like this:
27
28.. zephyr-app-commands::
29   :zephyr-app: samples/net/openthread/coprocessor
30   :board: <board to use>
31   :conf: <config file to use>
32   :goals: build
33   :compact:
34
35Build the OpenThread NCP sample application which uses CDC ACM UART device:
36
37.. zephyr-app-commands::
38   :zephyr-app: samples/net/openthread/coprocessor
39   :board: nrf52840dk_nrf52840
40   :goals: build flash
41   :gen-args: -DDTC_OVERLAY_FILE=usb.overlay -DOVERLAY_CONFIG=overlay-usb-nrf-br.conf
42   :compact:
43
44Example building for the nrf52840dk_nrf52840 for RCP:
45
46.. zephyr-app-commands::
47   :zephyr-app: samples/net/openthread/coprocessor
48   :host-os: unix
49   :board: nrf52840dk_nrf52840
50   :conf: "prj.conf overlay-rcp.conf"
51   :goals: run
52   :compact:
53
54There are configuration files for different boards and setups in the
55coprocessor directory:
56
57- :file:`prj.conf`
58  Generic NCP config file. Use this, if you want the NCP configuration.
59
60- :file:`overlay-rcp.conf`
61   RCP overlay file. Use this in combination with prj.conf, if you want the RCP
62   configuration.
63
64- :file:`overlay-tri-n4m-br.conf`
65  This is an overlay for the dedicated Thread Border Router hardware
66  https://www.tridonic.com/com/en/products/net4more-borderROUTER-PoE-Thread.asp.
67  The board support is not part of the Zephyr repositories, but the
68  product is based on NXP K64 and AT86RF233. This file can be used as an
69  example for a development set-up based on development boards.
70