samples/boards/reel_board/mesh_badge/README.html · samples/boards/reel_board/mesh_badge/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Bluetooth Mesh

Reel Board Mesh Badge

이름을 안전하게 저장한 다음 Mesh로 다른 badge에 인사를 broadcast합니다.

Official pathsamples/boards/reel_board/mesh_badge/README.html
Source filesamples/boards/reel_board/mesh_badge/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

nRF Connect pairing, display text와 GATT→Mesh lifecycle을 설명합니다.

Setup

Bluetooth GATT

Runtime

Bluetooth Mesh

Display

3 × 12 chars

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 5288FBB16E2929723E707E7B15FDBB1A828D80E54723C2AC83303137E9101146
.. _mesh_badge:

Mesh Badge
##########

Overview
********

This sample app for the reel board showcases Bluetooth Mesh

The app starts off as a regular Bluetooth GATT peripheral application.
Install the "nRF Connect" app on your phone (available both for
Android and iOS) to access the service that the app exposes. The service
can also be accessed with any Bluetooth LE GATT client from your PC,
however these instructions focus on the necessary steps for phones.

Steps to set up
***************

#. On your phone, use the nRF Connect app to Scan for devices and look
   for "reel board"
#. Connect to the device. You'll see a single service - select it
#. Request to write to the characteristic by pressing on the upward pointing
   arrow symbol
#. Select "Text" to enter text instead of hex
#. Enter your name (or any other arbitrary text). Multiple words
   separated by spaces are possible. The font used on the reel display
   allows three rows of up to 12 characters
   wide text. You can force line breaks with a comma.
#. Press "Send" - this will trigger pairing since this is a protected
   characteristic. The passkey for the pairing will be shown on the board's
   display. Enter the passkey in your phone.
#. Once pairing is complete the board will show the text you sent. If
   you're not happy with it you can try writing something else.
#. When you're happy with the text, disconnect from the board (exit the app or
   go back to the device scan page)
#. Once disconnected the board switches over to Bluetooth Mesh mode, and you
   can't connect to it anymore over GATT.

If you configure multiple boards like this they can communicate with
each other over mesh: by pressing the user button on the board the first
word (name) of the stored text will be sent to all other boards in
the network and cause the other boards to display "<name> says hi!".

To reset a board to its initial state (disable mesh, erase the stored
text, and make it connectable over GATT):

#. Keep the user button pressed when powering on (or press the reset button
   when powered)
#. Wait until "Resetting Device" is shown

Part 3

한국어 전문 번역

개요

Reel Board에서 Bluetooth Mesh를 보여주는 sample application입니다.

Application은 일반 Bluetooth GATT peripheral application으로 시작합니다. Phone에 Android와 iOS용으로 제공되는 nRF Connect app을 설치해 application이 노출하는 service에 접근합니다. PC의 어떤 Bluetooth LE GATT client로도 접근할 수 있지만, 이 안내는 phone에서 필요한 단계에 초점을 맞춥니다.

설정 단계

  1. Phone의 nRF Connect app에서 device를 scan하고 reel board를 찾습니다.
  2. Device에 연결합니다. 하나의 service가 보이면 그것을 선택합니다.
  3. 위쪽을 가리키는 arrow symbol을 눌러 characteristic write를 요청합니다.
  4. Hex 대신 text를 입력하도록 Text를 선택합니다.
  5. 이름이나 원하는 text를 입력합니다. Space로 구분한 여러 word를 사용할 수 있습니다. Reel display font는 한 줄 최대 12자인 세 줄 text를 표시할 수 있으며, comma로 강제 line break를 넣을 수 있습니다.
  6. Send를 누릅니다. Protected characteristic(보호된 characteristic)이므로 pairing이 시작됩니다. Board display에 표시되는 passkey를 phone에 입력합니다.
  7. Pairing이 끝나면 board가 전송한 text를 표시합니다. 결과가 마음에 들지 않으면 다른 text를 다시 쓸 수 있습니다.
  8. Text가 마음에 들면 app을 종료하거나 device scan page로 돌아가 board 연결을 끊습니다.
  9. 연결이 끊기면 board가 Bluetooth Mesh mode로 전환되며, 그 뒤에는 GATT로 연결할 수 없습니다.

여러 board를 이 방식으로 구성하면 Mesh를 통해 서로 통신할 수 있습니다. 한 board의 user button을 누르면 저장된 text의 첫 word, 즉 이름을 network의 다른 모든 board에 보내고, 다른 board는 <name> says hi!를 표시합니다.

Board를 초기 상태로 reset해 Mesh를 비활성화하고 저장한 text를 지우며 다시 GATT로 연결할 수 있게 하려면 다음을 수행합니다.

  1. 전원을 켤 때 user button을 계속 누르거나, 전원이 켜진 상태에서 reset button을 누릅니다.
  2. Resetting Device가 표시될 때까지 기다립니다.

Source

출처

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