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

..--

boards/04-Jan-2025-8973

src/04-Jan-2025-198

CMakeLists.txtD04-Jan-2025311 1610

KconfigD04-Jan-2025336 1710

README.rstD04-Jan-20252.4 KiB7153

overlay-rcp.confD04-Jan-2025200 84

overlay-tri-n4m-br.confD04-Jan-2025481 2216

overlay-usb-nrf-br.confD04-Jan-2025292 137

prj.confD04-Jan-2025896 3924

sample.yamlD04-Jan-2025994 4039

usb.overlayD04-Jan-2025246 1815

README.rst

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