Part 1
요약·해설
Server/client target, monitor_15_4와 Makefile 기반 PCAP capture 조건을 설명합니다.
UART · IEEE 802.15.4
Echo server · client
monitor_15_4 · PCAP
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
EF44EEBF51EA4249E46AC2D4B6DD7DC46409B7F654EE62072D13D1F0D0A1FAC8
.. _networking_with_ieee802154_qemu:
Networking with QEMU and IEEE 802.15.4
######################################
.. contents::
:local:
:depth: 2
This page describes how to set up a virtual network between two QEMUs that
are connected together via UART and are running IEEE 802.15.4 link layer
between them. Note that this only works in Linux host.
Basic Setup
***********
For the steps below, you will need two terminal windows:
* Terminal #1 is terminal window with ``echo-server`` Zephyr sample application.
* Terminal #2 is terminal window with ``echo-client`` Zephyr sample application.
If you want to capture the transferred network data, you must compile the
``monitor_15_4`` program in ``net-tools`` directory.
Open a terminal window and type:
.. code-block:: console
cd $ZEPHYR_BASE/../net-tools
make monitor_15_4
Step 1 - Compile and start echo-server
======================================
In terminal #1, type:
.. zephyr-app-commands::
:zephyr-app: samples/net/sockets/echo_server
:host-os: unix
:board: qemu_x86
:build-dir: server
:gen-args: -DEXTRA_CONF_FILE=overlay-qemu_802154.conf
:goals: server
:compact:
If you want to capture the network traffic between the two QEMUs, type:
.. zephyr-app-commands::
:zephyr-app: samples/net/sockets/echo_server
:host-os: unix
:board: qemu_x86
:build-dir: server
:gen-args: -G'Unix Makefiles' -DEXTRA_CONF_FILE=overlay-qemu_802154.conf -DPCAP=capture.pcap
:goals: server
:compact:
Note that the ``make`` must be used for ``server`` target if packet capture
option is set in command line. The ``build/server/capture.pcap`` file will contain the
transferred data.
Step 2 - Compile and start echo-client
======================================
In terminal #2, type:
.. zephyr-app-commands::
:zephyr-app: samples/net/sockets/echo_client
:host-os: unix
:board: qemu_x86
:build-dir: client
:gen-args: -DEXTRA_CONF_FILE=overlay-qemu_802154.conf
:goals: client
:compact:
You should see data passed between the two QEMUs.
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Part 3
한국어 전문 번역
QEMU와 IEEE 802.15.4 Networking
이 문서는 UART로 서로 연결된 QEMU 두 개 사이에 virtual network를 구성하고 그 위에서 IEEE 802.15.4 link layer를 실행하는 방법을 설명합니다. Linux host에서만 동작합니다.
기본 설정
Terminal window 두 개가 필요합니다.
Terminal #1: echo-server Zephyr sample applicationTerminal #2: echo-client Zephyr sample application
전송 network data를 capture하려면 net-tools directory에서 monitor_15_4 program을 compile해야 합니다.
cd $ZEPHYR_BASE/../net-tools
make monitor_15_41단계: Echo server compile·시작
Terminal #1에서 qemu_x86 board, server build directory, overlay-qemu_802154.conf를 사용해 samples/net/sockets/echo_server의 server target을 실행합니다.
west build -d server -b qemu_x86 samples/net/sockets/echo_server -- -DEXTRA_CONF_FILE=overlay-qemu_802154.conf로 구성한 뒤 server target을 실행합니다.
두 QEMU 사이 traffic을 capture하려면 Unix Makefiles generator와 -DPCAP=capture.pcap를 추가해야 합니다.
Command line에 packet capture option을 설정했다면 server target에는 반드시 make를 사용해야 합니다. 전송 data는 build/server/capture.pcap에 저장됩니다.
2단계: Echo client compile·시작
Terminal #2에서 qemu_x86 board, client build directory, overlay-qemu_802154.conf를 사용해 samples/net/sockets/echo_client의 client target을 실행합니다.
두 QEMU 사이에서 data가 전달되는 것을 확인할 수 있습니다. CTRL+A를 누른 뒤 x를 눌러 QEMU를 종료합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.