samples/bluetooth/mesh/README.html · samples/bluetooth/mesh/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Bluetooth · Mesh

Bluetooth Mesh

External 또는 self-provisioning 후 LED Server와 button Client로 OnOff message를 교환합니다.

Official pathsamples/bluetooth/mesh/README.html
Source filesamples/bluetooth/mesh/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

OOB console, Application key binding, nRF5340 network-core Controller 구성을 설명합니다.

Provisioning

PB-ADV · PB-GATT

Server

Generic OnOff · LED

Client

Button · Broadcast

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E3D4A3A0E5C8E07A6759A6572C6FD33D4E2B4C57F27158BB3183D503C1AD6247
.. _ble_mesh:

Bluetooth: Mesh
###############

Overview
********

This sample demonstrates Bluetooth Mesh functionality. It has several
standard mesh models, and supports provisioning over both the
Advertising and the GATT Provisioning Bearers (i.e. PB-ADV and PB-GATT).
The application also needs a functioning serial console, since that's
used for the Out-of-Band provisioning procedure.

On boards with LEDs, a Generic OnOff Server model exposes functionality for
controlling the first LED on the board over the mesh.

On boards with buttons, a Generic OnOff Client model will send Onoff messages
to all nodes in the network when the button is pressed.

Requirements
************

* A board with Bluetooth LE support, or
* QEMU with BlueZ running on the host

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

This sample can be found under :zephyr_file:`samples/bluetooth/mesh` in the
Zephyr tree.

See :ref:`bluetooth samples section <bluetooth-samples>` for details on how
to run the sample inside QEMU.

For other boards, build and flash the application as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/bluetooth/mesh
   :board: <board>
   :goals: flash
   :compact:

Refer to your :ref:`board's documentation <boards>` for alternative
flash instructions if your board doesn't support the ``flash`` target.

To run the application on an :ref:`nrf5340dk_nrf5340`, a Bluetooth controller application
must also run on the network core. The :ref:`bluetooth-hci-ipc-sample` sample
application may be used. Build this sample with configuration
:zephyr_file:`samples/bluetooth/hci_ipc/nrf5340_cpunet_bt_mesh-bt_ll_sw_split.conf`
to enable mesh support.

Interacting with the sample
***************************

The sample can either be provisioned into an existing mesh network with an
external provisioner device, or self-provision through a button press.

When provisioning with a provisioner device, the provisioner must give the
device an Application key and bind it to both Generic OnOff models.

When self-provisioning, the device will take a random unicast address and
bind a dummy Application key to these models.

Once provisioned, messages to the Generic OnOff Server will be used to turn
the LED on or off, and button presses will be used to broadcast OnOff
messages to all nodes in the same network.

Part 3

한국어 전문 번역

개요

Bluetooth Mesh 기능을 보여주는 sample입니다. 여러 표준 mesh model을 포함하며 Advertising Provisioning Bearer와 GATT Provisioning Bearer, 즉 PB-ADV와 PB-GATT를 통한 provisioning을 모두 지원합니다. Serial console은 Out-of-Band(OOB) provisioning 절차에 사용되므로 정상 동작해야 합니다.

LED가 있는 board에서는 Generic OnOff Server model이 mesh를 통해 board의 첫 번째 LED를 제어하는 기능을 노출합니다.

Button이 있는 board에서는 button을 누를 때 Generic OnOff Client model이 network의 모든 node에 OnOff message를 보냅니다.

요구사항

  • Bluetooth LE를 지원하는 board 또는
  • Host에서 BlueZ를 실행하는 QEMU

Build와 실행

이 sample은 Zephyr tree의 samples/bluetooth/mesh에 있습니다. QEMU 안에서 실행하는 방법은 Bluetooth sample section을 참조하십시오.

다른 board에서는 다음과 같이 application을 build하고 flash합니다.

west build -b <board> samples/bluetooth/mesh
west flash

Board가 flash target을 지원하지 않으면 해당 board 문서에서 대체 flash 절차를 확인하십시오.

nrf5340dk/nrf5340에서 실행하려면 network core에도 Bluetooth Controller application이 실행되어야 합니다. HCI IPC sample을 사용할 수 있으며, mesh 지원을 켜려면 samples/bluetooth/hci_ipc/nrf5340_cpunet_bt_mesh-bt_ll_sw_split.conf configuration으로 그 sample을 build합니다.

Sample과 상호작용

External provisioner device를 사용해 기존 mesh network에 provision하거나, button을 눌러 self-provision할 수 있습니다.

Provisioner device를 사용할 때 provisioner는 device에 Application key를 제공하고 그 key를 두 Generic OnOff model 모두에 bind해야 합니다.

Self-provisioning에서는 device가 무작위 unicast address를 선택하고 dummy Application key를 두 model에 bind합니다.

Provisioning이 끝나면 Generic OnOff Server로 보낸 message가 LED를 켜거나 끕니다. Button을 누르면 같은 network의 모든 node로 OnOff message를 broadcast합니다.

Source

출처

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