Part 1
요약·해설
Radio 선택, ttyACM 연결, Contiki 실행과 IPv6 web UI 확인 절차를 보존합니다.
IEEE 802.15.4
USB serial
Contiki border
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
38176F559616EA8DF9CDCCEA183D77AD655D50094A830B29CC7F252C86478FAC
.. zephyr:code-sample:: wpan-serial
:name: 802.15.4 "serial-radio"
:relevant-api: ieee802154 uart_interface
Implement a slip-radio device for Contiki-based border routers.
Overview
********
The wpan_serial sample shows how to use hardware with 802.15.4 radio and USB
controller as a "serial-radio" device for Contiki-based border routers.
Requirements
************
The sample assumes that 802.15.4 radio and USB controller are supported on
a board. You can pick, for example, a transceiver such as a CC2520 or RF2xx
using overlays, or by using an SoC with a built-in radio, such as a kw41z,
nrf5, or samr21.
Building and Running
********************
#. Before building and running this sample, be sure your Linux system's
ModemManager is disabled, otherwise, it can interfere with serial
port communication:
.. code-block:: console
$ sudo systemctl disable ModemManager.service
#. Build the sample Zephyr application to a board with a 802.15.4 radio
and USB controller. There are configuration files for various setups
in the ``samples/net/wpan_serial`` directory:
- :file:`prj.conf`
This is the standard default config. This can be used by itself for
hardware which has native 802.15.4 support.
To build the wpan_serial sample:
.. zephyr-app-commands::
:zephyr-app: samples/net/wpan_serial
:board: <board name>
:conf: "prj.conf [overlay-<RADIO>.conf]"
:goals: build
:compact:
Here's how to build and flash the sample for the Atmel SAM R21
Xplained Pro Development Kit.
.. zephyr-app-commands::
:zephyr-app: samples/net/wpan_serial
:board: samr21_xpro
:goals: build flash
:compact:
#. Connect board to Linux PC, /dev/ttyACM[number] should appear.
#. Run Contiki-based native border router (6lbr, native-router, etc)
Example for Contiki:
.. code-block:: console
$ cd examples/ipv6/native-border-router
$ make
$ sudo ./border-router.native -v5 -s ttyACM0 fd01::1/64
Now you have a Contiki native board router. You can access its web-based
interface with your browser using the server address printed in the
border-router output.
.. code-block:: console
...
Server IPv6 addresses:
0x62c5c0: =>fd01::212:4b00:531f:113a
...
Use your browser to access ``http://[fd01::212:4b00:531f:113a]/`` and you'll
see available neighbors and routes.
Part 3
한국어 전문 번역
개요
wpan_serial sample은 802.15.4 radio와 USB controller가 있는 hardware를 Contiki 기반 border router용 serial-radio device로 사용하는 방법을 보여 줍니다.
요구 사항
Sample은 board에서 802.15.4 radio와 USB controller를 지원한다고 가정합니다. Overlay를 사용해 CC2520 또는 RF2xx 같은 transceiver를 선택할 수 있고, KW41Z, nRF5 또는 SAM R21처럼 radio가 내장된 SoC를 사용할 수도 있습니다.
빌드 및 실행
-
Sample을 build하고 실행하기 전에 Linux system의 ModemManager가 비활성화되어 있는지 확인합니다. 그렇지 않으면 serial port communication을 방해할 수 있습니다.
$ sudo systemctl disable ModemManager.service -
802.15.4 radio와 USB controller가 있는 board용으로 Zephyr sample application을 build합니다.
samples/net/wpan_serialdirectory에는 여러 setup용 configuration file이 있습니다.prj.conf: Standard default configuration이며 native 802.15.4를 지원하는 hardware에서는 단독으로 사용할 수 있습니다.
wpan_serialsample의 일반 build 방법:west build -b <board name> samples/net/wpan_serial -- -DCONF_FILE="prj.conf [overlay-<RADIO>.conf]"Atmel SAM R21 Xplained Pro Development Kit용으로 build하고 flash하는 방법:
west build -b samr21_xpro samples/net/wpan_serial west flash Board를 Linux PC에 연결합니다.
/dev/ttyACM[number]device가 나타나야 합니다.-
6LBR, native-router 같은 Contiki 기반 native border router를 실행합니다. Contiki 예:
$ cd examples/ipv6/native-border-router $ make $ sudo ./border-router.native -v5 -s ttyACM0 fd01::1/64
이제 Contiki native border router가 준비되었습니다. Border-router 출력에 표시된 server address를 browser에서 열어 web interface에 접근할 수 있습니다.
...
Server IPv6 addresses:
0x62c5c0: =>fd01::212:4b00:531f:113a
...
Browser에서 http://[fd01::212:4b00:531f:113a]/를 열면 이용 가능한 neighbor와 route를 볼 수 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.