Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
boards/ | 04-Jan-2025 | - | 89 | 73 | ||
src/ | 04-Jan-2025 | - | 19 | 8 | ||
CMakeLists.txt | D | 04-Jan-2025 | 311 | 16 | 10 | |
Kconfig | D | 04-Jan-2025 | 336 | 17 | 10 | |
README.rst | D | 04-Jan-2025 | 2.4 KiB | 71 | 53 | |
overlay-rcp.conf | D | 04-Jan-2025 | 200 | 8 | 4 | |
overlay-tri-n4m-br.conf | D | 04-Jan-2025 | 481 | 22 | 16 | |
overlay-usb-nrf-br.conf | D | 04-Jan-2025 | 292 | 13 | 7 | |
prj.conf | D | 04-Jan-2025 | 896 | 39 | 24 | |
sample.yaml | D | 04-Jan-2025 | 994 | 40 | 39 | |
usb.overlay | D | 04-Jan-2025 | 246 | 18 | 15 |
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