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

Zephyr 3.7.0 · Bluetooth · Provisioning

Bluetooth Mesh Provisioner

PB-ADV로 node를 provision하고 composition 조회와 Application key binding을 자동화합니다.

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

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

Part 1

요약·해설

sw0 button 기반 승인, button 없는 board의 자동 provisioning과 configured 상태 전환을 설명합니다.

Database

CDB

Bearer

PB-ADV

Configuration

Composition · Binding

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 763074011EC78417A4AA39453F55A629F8B6A0C5193BF0563590B55E10CF3EB6
.. _ble_mesh_provisioner:

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

Overview
********

This sample demonstrates how to use the Bluetooth Mesh APIs related to
provisioning and using the Configuration Database (CDB). It is intended
to be tested together with a device capable of being provisioned. For
example, one could use the sample in
:zephyr_file:`samples/bluetooth/mesh`
or :zephyr_file:`tests/bluetooth/mesh_shell`.

The application provisions itself and loads the CDB with an application
key, then waits to receive an Unprovisioned Beacon from a device. If the
board has a push button connected via GPIO and configured using the
``sw0`` :ref:`devicetree <dt-guide>` alias, the application then waits
for the user to press the button, which will trigger provisioning using
PB-ADV. If the board doesn't have the push button, the sample will
provision detected devices automatically. Once provisioning is done, the
node will be present in the CDB but not yet marked as configured. The
application will notice the unconfigured node and start configuring it.
If no errors are encountered, the node is marked as configured.

The configuration of a node involves adding an application key, getting
the composition data, and binding all its models to the application key.

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_provisioner` 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_provisioner
   :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.

Part 3

한국어 전문 번역

개요

Provisioning 및 Configuration Database(CDB) 사용과 관련된 Bluetooth Mesh API를 보여주는 sample입니다. Provisioning 가능한 device와 함께 시험하도록 설계되었습니다. 예를 들어 samples/bluetooth/mesh sample이나 tests/bluetooth/mesh_shell을 사용할 수 있습니다.

Application은 자신을 provision하고 CDB에 Application key를 load한 뒤 device의 Unprovisioned Beacon을 기다립니다.

Board에 GPIO로 연결된 push button이 있고 sw0 Devicetree alias로 설정되어 있으면 사용자가 button을 누를 때까지 기다린 뒤 PB-ADV로 provisioning을 시작합니다. Push button이 없으면 발견한 device를 자동으로 provision합니다.

Provisioning이 끝난 node는 CDB에 존재하지만 아직 configured 상태로 표시되지는 않습니다. Application은 unconfigured node를 발견해 구성을 시작하고, 오류가 없으면 node를 configured로 표시합니다.

Node 구성 절차에는 Application key 추가, composition data 조회, 모든 model을 Application key에 bind하는 작업이 포함됩니다.

요구사항

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

Build와 실행

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

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

west build -b <board> samples/bluetooth/mesh_provisioner
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합니다.

Source

출처

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