Part 1
요약·해설
수신 sample 연동, lora0 alias와 build·flash 출력을 보존합니다.
Direction
Transmit
Alias
lora0
Peer
lora-receive
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
DD48AB018052CD0D9F7F4790A75D02C61434BD88B7F6E1A668DA238F8EA4A166
.. zephyr:code-sample:: lora-send
:name: LoRa send
:relevant-api: lora_api
Transmit a preconfigured payload every second using the LoRa radio.
Overview
********
This sample demonstrates how to use the LoRa radio driver to configure
the encoding settings and send data over the radio.
Transmitted messages can be received by building and flashing the accompanying
LoRa receive sample :zephyr:code-sample:`lora-receive` on another board within
range.
Building and Running
********************
Build and flash the sample as follows, changing ``b_l072z_lrwan1`` for
your board, where your board has a ``lora0`` alias in the devicetree.
.. zephyr-app-commands::
:zephyr-app: zephyr/samples/drivers/lora/send
:host-os: unix
:board: b_l072z_lrwan1
:goals: build flash
:compact:
Sample Output
=============
.. code-block:: console
[00:00:00.531,000] <inf> lora_send: Data sent!
[00:00:01.828,000] <inf> lora_send: Data sent!
[00:00:03.125,000] <inf> lora_send: Data sent!
Part 3
한국어 전문 번역
개요
이 sample은 LoRa radio driver로 encoding 설정을 구성하고 radio를 통해 data를 보내는 방법을 보여줍니다.
전송된 message는 통신 범위 안의 다른 board에 함께 제공되는 LoRa receive sample lora-receive를 build하고 flash하여 받을 수 있습니다.
Build와 실행
다음과 같이 sample을 build하고 flash합니다. Board의 devicetree에는 lora0 alias가 있어야 하며, b_l072z_lrwan1은 사용하는 board 이름으로 바꾸십시오.
west build -b b_l072z_lrwan1 zephyr/samples/drivers/lora/send
west flash
Sample 출력
[00:00:00.531,000] <inf> lora_send: Data sent!
[00:00:01.828,000] <inf> lora_send: Data sent!
[00:00:03.125,000] <inf> lora_send: Data sent!
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.