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

Zephyr 3.7.0 · Bluetooth · Mesh Demo

Bluetooth Mesh Demo

NODE_ADDR와 micro:bit display·button·heartbeat 기능으로 Mesh를 빠르게 시연합니다.

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

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

Part 1

요약·해설

Production 금지 경고, 0x0001~0x0009 주소와 0x000f heartbeat 역할을 설명합니다.

Provisioning

Self · Hard-coded keys

Address

NODE_ADDR

micro:bit

5x5 LED · Buttons

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 79007D9CF77AE52AF4D9B530E36688E4C520C28EA0995B4E6808524269C0C64E
.. _ble_mesh_demo:

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

Overview
********

This sample is a Bluetooth Mesh application intended for demonstration
purposes only. The application provisions and configures itself (i.e. no
external provisioner needed) with hard-coded network and application key
values. The local unicast address can be set using a NODE_ADDR build
variable (e.g. NODE_ADDR=0x0001 for unicast address 0x0001), or by
manually editing the value in the ``board.h`` file.

Because of the hard-coded values, the application is not suitable for
production use, but is quite convenient for quick demonstrations of mesh
functionality.

The application has some features especially designed for the BBC
micro:bit boards, such as the ability to send messages using the board's
buttons as well as showing information of received messages on the
board's 5x5 LED display. It's generally recommended to use unicast
addresses in the range of 0x0001-0x0009 for the micro:bit since these
map nicely to displayed addresses and the list of destination addresses
which can be cycled with a button press.

A special address, 0x000f, will make the application become a heart-beat
publisher and enable the other nodes to show information of the received
heartbeat messages.

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_demo` 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_demo
   :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

한국어 전문 번역

개요

Demonstration 전용 Bluetooth Mesh application입니다. External provisioner 없이 application이 고정된 network key와 application key 값으로 스스로 provision하고 configure합니다.

Local unicast address는 NODE_ADDR build variable로 설정할 수 있습니다. 예를 들어 NODE_ADDR=0x0001은 unicast address 0x0001을 사용합니다. 또는 board.h의 값을 직접 수정할 수 있습니다.

값이 code에 고정되어 있으므로 production 용도에는 적합하지 않지만, mesh 기능을 빠르게 시연하기에는 편리합니다.

BBC micro:bit board를 위한 기능도 포함합니다. Board button으로 message를 보내고, 수신한 message 정보를 5x5 LED display에 표시할 수 있습니다. Micro:bit에서는 0x0001부터 0x0009까지의 unicast address 사용을 권장합니다. 이 범위는 표시되는 주소와 button으로 순환 선택하는 destination address 목록에 잘 대응합니다.

특별한 address 0x000f를 사용하면 application이 heartbeat publisher가 되고, 다른 node가 수신한 heartbeat message 정보를 표시할 수 있습니다.

요구사항

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

Build와 실행

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

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

west build -b <board> samples/bluetooth/mesh_demo
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

출처

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