samples/subsys/lorawan/fuota/README.html · samples/subsys/lorawan/fuota/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · LoRaWAN · Firmware Upgrade

LoRaWAN FUOTA

Background work queue에서 firmware fragment를 복원하고 MCUboot 적용을 요청합니다.

Official pathsamples/subsys/lorawan/fuota/README.html
Source filesamples/subsys/lorawan/fuota/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

LoRa Alliance 3개 service, callback, server 요구 사항과 build command를 설명합니다.

Clock

TS003-2.0.0

Multicast

TS005-1.0.0

Fragments

TS004-1.0.0

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 1774A217395137136499AF408FC2EA84F092149BBAA7B5C218BAF37515E29154
.. zephyr:code-sample:: lorawan-fuota
   :name: LoRaWAN FUOTA
   :relevant-api: lorawan_api

   Perform a LoRaWAN firmware-upgrade over the air (FUOTA) operation.

Overview
********

An application to demonstrate firmware-upgrade over the air (FUOTA) over LoRaWAN.

The following services specified by the LoRa Alliance are used:

- Application Layer Clock Synchronization (`TS003-2.0.0`_)
- Remote Multicast Setup (`TS005-1.0.0`_)
- Fragmented Data Block Transport (`TS004-1.0.0`_)

The FUOTA process is started by the application and afterwards runs in the background in its own
work queue thread. After a firmware upgrade is successfully received, the application is notified
via a callback and can reboot the device into MCUboot to apply the upgrade.

A LoRaWAN Application Server implementing the relevant services is required for this sample to work.

.. _`TS003-2.0.0`: https://resources.lora-alliance.org/technical-specifications/ts003-2-0-0-application-layer-clock-synchronization
.. _`TS005-1.0.0`: https://resources.lora-alliance.org/technical-specifications/lorawan-remote-multicast-setup-specification-v1-0-0
.. _`TS004-1.0.0`: https://resources.lora-alliance.org/technical-specifications/lorawan-fragmented-data-block-transport-specification-v1-0-0

Building and Running
********************

This sample can be found under :zephyr_file:`samples/subsys/lorawan/fuota` in the Zephyr tree.

Before building the sample, make sure to select the correct region in the ``prj.conf`` file.

The following commands build and flash the sample.

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/lorawan/fuota
   :board: nucleo_wl55jc
   :goals: build flash
   :compact:

Part 3

한국어 전문 번역

개요

LoRaWAN을 통해 FUOTA(Firmware Upgrade Over The Air)를 수행하는 application입니다. LoRa Alliance가 정한 세 application-layer service를 함께 사용합니다.

  • Application Layer Clock Synchronization: TS003-2.0.0에 따라 device time을 맞춥니다.
  • Remote Multicast Setup: TS005-1.0.0에 따라 firmware를 받을 multicast session을 구성합니다.
  • Fragmented Data Block Transport: TS004-1.0.0에 따라 큰 firmware image를 fragment로 나눠 전송·복원합니다.

Application이 FUOTA process를 시작하면 이후 작업은 전용 work queue thread에서 background로 실행됩니다. Firmware upgrade를 성공적으로 수신하면 callback으로 application에 알리고, application은 device를 MCUboot로 reboot해 upgrade를 적용할 수 있습니다.

이 sample이 동작하려면 Clock Synchronization, Remote Multicast Setup, Fragmented Data Block Transport service를 실제로 구현한 LoRaWAN Application Server가 필요합니다.

빌드 및 실행

Sample은 Zephyr tree의 samples/subsys/lorawan/fuota에 있습니다. Build 전에 network가 사용하는 주파수 대역과 일치하도록 prj.conf에서 올바른 region을 선택합니다.

다음 command는 nucleo_wl55jc board용으로 FUOTA sample을 build하고 flash합니다.

west build -b nucleo_wl55jc samples/subsys/lorawan/fuota
west flash

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.