Part 1
요약·해설
NCP와 RCP의 역할, nRF52840 DK build와 세 configuration file의 용도를 원문 순서대로 설명합니다.
NCP · RCP
otbr-agent
UART · USB CDC ACM
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
7FDB34A5E693C3FF165F6CBDDCF1ABEBE7DADB4DF19F1BAB9146A1158E1F61F2
.. zephyr:code-sample:: coprocessor
:name: OpenThread co-processor
:relevant-api: openthread
Build a Thread border-router using OpenThread's co-processor designs.
Overview
********
OpenThread Co-Processor allows building a Thread Border Router. The code in this
sample is only the MCU target part of a complete Thread Border Router.
The Co-Processor can act in two variants: Network Co-Processor (NCP) and Radio
Co-Processor (RCP), see https://openthread.io/platforms/co-processor.
Additional required host-side tools (e.g. otbr-agent) to build a Thread Border
Router can be obtained by following
https://openthread.io/guides/border-router/build#set-up-the-border-router.
The preferred Co-Processor configuration of OpenThread is RCP now.
The source code for this sample application can be found at:
:zephyr_file:`samples/net/openthread/coprocessor`.
Building and Running
********************
Build the OpenThread NCP sample application like this:
.. zephyr-app-commands::
:zephyr-app: samples/net/openthread/coprocessor
:board: <board to use>
:conf: <config file to use>
:goals: build
:compact:
Build the OpenThread NCP sample application which uses CDC ACM UART device:
.. zephyr-app-commands::
:zephyr-app: samples/net/openthread/coprocessor
:board: nrf52840dk/nrf52840
:goals: build flash
:gen-args: -DDTC_OVERLAY_FILE=usb.overlay -DEXTRA_CONF_FILE=overlay-usb-nrf-br.conf
:compact:
Example building for the nrf52840dk/nrf52840 for RCP:
.. zephyr-app-commands::
:zephyr-app: samples/net/openthread/coprocessor
:host-os: unix
:board: nrf52840dk/nrf52840
:conf: "prj.conf overlay-rcp.conf"
:goals: run
:compact:
There are configuration files for different boards and setups in the
coprocessor directory:
- :file:`prj.conf`
Generic NCP config file. Use this, if you want the NCP configuration.
- :file:`overlay-rcp.conf`
RCP overlay file. Use this in combination with prj.conf, if you want the RCP
configuration.
- :file:`overlay-tri-n4m-br.conf`
This is an overlay for the dedicated Thread Border Router hardware
https://www.tridonic.com/com/en/download/data_sheets/net4more_Borderrouter_PoE-Thread_en.pdf.
The board support is not part of the Zephyr repositories, but the
product is based on NXP K64 and AT86RF233. This file can be used as an
example for a development set-up based on development boards.
Part 3
한국어 전문 번역
개요
OpenThread Co-Processor를 사용하면 Thread Border Router를 만들 수 있습니다. 이 sample의 code는 완전한 Thread Border Router 가운데 MCU target 부분만 구현합니다.
Co-Processor는 Network Co-Processor(NCP)와 Radio Co-Processor(RCP)의 두 variant로 동작할 수 있습니다. 자세한 구조는 OpenThread Co-Processor designs를 참조하십시오.
Thread Border Router를 완성하는 데 필요한 host-side tool, 예를 들어 otbr-agent는 Set up the Border Router 안내를 따라 준비할 수 있습니다.
현재 OpenThread에서 선호하는 Co-Processor configuration은 RCP입니다.
이 sample application의 source code는 samples/net/openthread/coprocessor에 있습니다.
빌드 및 실행
OpenThread NCP sample application은 다음처럼 사용할 board와 configuration file을 지정해 build합니다.
west build -b <board to use> samples/net/openthread/coprocessor -- -DCONF_FILE=<config file to use>
CDC ACM UART device를 사용하는 OpenThread NCP sample application은 nRF52840 DK용 USB overlay와 NCP border-router configuration을 함께 지정해 build하고 flash합니다.
west build -b nrf52840dk/nrf52840 samples/net/openthread/coprocessor -- -DDTC_OVERLAY_FILE=usb.overlay -DEXTRA_CONF_FILE=overlay-usb-nrf-br.conf
west flash
nrf52840dk/nrf52840을 RCP로 build하는 example은 prj.conf와 overlay-rcp.conf를 함께 사용합니다.
west build -b nrf52840dk/nrf52840 samples/net/openthread/coprocessor -- -DCONF_FILE="prj.conf overlay-rcp.conf"
west build -t run
coprocessor directory에는 board와 setup별 configuration file이 있습니다.
prj.conf- 일반 NCP configuration file입니다. NCP configuration이 필요할 때 사용합니다.
overlay-rcp.conf- RCP overlay file입니다. RCP configuration이 필요할 때
prj.conf와 함께 사용합니다. overlay-tri-n4m-br.conf- Tridonic net4more Border Router PoE-Thread 전용 hardware용 overlay입니다. 이 board 지원은 Zephyr repository에 포함되지 않지만 product는 NXP K64와 AT86RF233을 기반으로 합니다. Development board를 이용한 development setup의 example로 이 file을 사용할 수 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.