connectivity/bluetooth/api/mesh/heartbeat.html · connectivity/bluetooth/api/mesh/heartbeat.rst 공식 원문 ↗

Zephyr 3.7.0 · Connectivity · Bluetooth Mesh

Bluetooth Mesh Heartbeat

TTL과 feature bitfield로 node 상태와 relay hop 거리를 관찰합니다.

Official pathconnectivity/bluetooth/api/mesh/heartbeat.html
Source fileconnectivity/bluetooth/api/mesh/heartbeat.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

Periodic·triggered publication, 단일-source subscription과 hop count 추적을 설명합니다.

Packet

Transport control

Security

Network key

Publication

Periodic · triggered

Subscription

Timed

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 B00D3F16C6ECACFFBBE901C5FE647EF6679B01E9AC495AA6A70BA08FAB8C96CF
.. _bluetooth_mesh_heartbeat:

Heartbeat
#########

The Heartbeat feature provides functionality for monitoring Bluetooth Mesh nodes
and determining the distance between nodes.

The Heartbeat feature is configured through the :ref:`bluetooth_mesh_models_cfg_srv` model.

Heartbeat messages
******************

Heartbeat messages are sent as transport control packets through the network,
and are only encrypted with a network key. Heartbeat messages contain the
original Time To Live (TTL) value used to send the message and a bitfield of
the active features on the node. Through this, a receiving node can determine
how many relays the message had to go through to arrive at the receiver, and
what features the node supports.

Available Heartbeat feature flags:

- :c:macro:`BT_MESH_FEAT_RELAY`
- :c:macro:`BT_MESH_FEAT_PROXY`
- :c:macro:`BT_MESH_FEAT_FRIEND`
- :c:macro:`BT_MESH_FEAT_LOW_POWER`

Heartbeat publication
*********************

Heartbeat publication is controlled through the Configuration models, and can
be triggered in two ways:

Periodic publication
   The node publishes a new Heartbeat message at regular intervals. The
   publication can be configured to stop after a certain number of messages, or
   continue indefinitely.

Triggered publication
   The node publishes a new Heartbeat message every time a feature changes. The
   set of features that can trigger the publication is configurable.

The two publication types can be combined.

Heartbeat subscription
**********************

A node can be configured to subscribe to Heartbeat messages from one node at
the time. To receive a Heartbeat message, both the source and destination must
match the configured subscription parameters.

Heartbeat subscription is always time limited, and throughout the subscription
period, the node keeps track of the number of received Heartbeats as well as
the minimum and maximum received hop count.

All Heartbeats received with the configured subscription parameters are passed
to the :cpp:member:`bt_mesh_hb_cb::recv` event handler.

When the Heartbeat subscription period ends, the
:cpp:member:`bt_mesh_hb_cb::sub_end` callback gets called.

API reference
**************

.. doxygengroup:: bt_mesh_heartbeat

Part 3

한국어 전문 번역

Heartbeat

Heartbeat feature는 Bluetooth Mesh node를 monitoring하고 node 사이 거리를 판단하는 기능을 제공합니다. Configuration Server model을 통해 구성합니다.

Heartbeat message

Heartbeat는 transport control packet으로 network를 통과하며 network key로만 encryption됩니다. Message에는 송신 때 사용한 원래 TTL 값과 node에서 활성화된 feature bitfield가 들어 있습니다.

수신 node는 이 정보로 message가 자신에게 오기까지 거친 relay 수와 송신 node가 지원하는 feature를 판단할 수 있습니다.

  • BT_MESH_FEAT_RELAY
  • BT_MESH_FEAT_PROXY
  • BT_MESH_FEAT_FRIEND
  • BT_MESH_FEAT_LOW_POWER

Heartbeat publication

Configuration model이 publication을 제어하며 두 방식으로 trigger할 수 있습니다.

Periodic publication

일정 interval마다 새 Heartbeat를 publish합니다. 정해진 message 수 뒤에 중단하거나 무기한 계속하도록 구성할 수 있습니다.

Triggered publication

Feature가 바뀔 때마다 새 Heartbeat를 publish합니다. 어느 feature가 publication을 trigger할지는 구성할 수 있습니다.

Periodic 방식과 triggered 방식을 함께 사용할 수 있습니다.

Heartbeat subscription

Node는 한 번에 node 하나에서 오는 Heartbeat를 subscribe하도록 구성할 수 있습니다. Message를 받으려면 source와 destination이 모두 configuration의 subscription parameter와 일치해야 합니다.

Subscription에는 항상 시간 제한이 있습니다. Subscription period 동안 수신 Heartbeat 수와 수신 hop count의 최솟값·최댓값을 추적합니다.

구성한 parameter와 일치하는 모든 Heartbeat는 bt_mesh_hb_cb::recv event handler로 전달합니다. Subscription period가 끝나면 bt_mesh_hb_cb::sub_end callback을 호출합니다.

API Reference

공식 bt_mesh_heartbeat Doxygen group이 Heartbeat publication·subscription API를 생성합니다.

Source

출처

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