Part 1
요약·해설
Fault value 범위, Company ID와 1~255초 attention lifecycle을 설명합니다.
0x01~0x7f
0x80~0xff
1~255 seconds
2
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
EE68098ECDE01D374DBF132D94AC3CEE31B9E3EF50E319ED9266ED5A2A1ECA5C
.. _bluetooth_mesh_models_health_srv:
Health Server
#############
The Health Server model provides attention callbacks and node diagnostics for
:ref:`bluetooth_mesh_models_health_cli` models. It is primarily used to report
faults in the mesh node and map the mesh nodes to their physical location.
If present, the Health Server model must be instantiated on the primary element.
Faults
******
The Health Server model may report a list of faults that have occurred in the
device's lifetime. Typically, the faults are events or conditions that may
alter the behavior of the node, like power outages or faulty peripherals.
Faults are split into warnings and errors. Warnings indicate conditions that
are close to the limits of what the node is designed to withstand, but not
necessarily damaging to the device. Errors indicate conditions that are
outside of the node's design limits, and may have caused invalid behavior or
permanent damage to the device.
Fault values ``0x01`` to ``0x7f`` are reserved for the Bluetooth Mesh
specification, and the full list of specification defined faults are available
in :ref:`bluetooth_mesh_health_faults`. Fault values ``0x80`` to ``0xff`` are
vendor specific. The list of faults are always reported with a company ID to
help interpreting the vendor specific faults.
.. _bluetooth_mesh_models_health_srv_attention:
Attention state
***************
The attention state is used to make the device call attention to itself
through some physical behavior like blinking, playing a sound or vibrating.
The attention state may be used during provisioning to let the user know which
device they're provisioning, as well as through the Health models at runtime.
The attention state is always assigned a timeout in the range of one to 255
seconds when enabled. The Health Server API provides two callbacks for the
application to run their attention calling behavior:
:c:member:`bt_mesh_health_srv_cb.attn_on` is called at the beginning of the
attention period, :c:member:`bt_mesh_health_srv_cb.attn_off` is called at
the end.
The remaining time for the attention period may be queried through
:c:member:`bt_mesh_health_srv.attn_timer`.
API reference
*************
.. doxygengroup:: bt_mesh_health_srv
.. _bluetooth_mesh_health_faults:
Health faults
=============
Fault values defined by the Bluetooth Mesh specification.
.. doxygengroup:: bt_mesh_health_faults
Part 3
한국어 전문 번역
Health Server
Health Server model은 Health Client에 attention callback과 node diagnostic을 제공합니다. 주로 mesh node의 fault를 보고하고 node를 실제 물리 위치와 대응시키는 데 사용합니다.
Health Server model을 사용한다면 primary element에 instance화해야 합니다.
Fault
Server는 device 수명 동안 발생한 fault list를 보고할 수 있습니다. 일반적으로 power outage나 고장 난 peripheral처럼 node behavior를 바꿀 수 있는 event 또는 condition입니다.
Fault는 warning과 error로 나뉩니다. Warning은 node가 견디도록 설계된 한계에 가까운 조건이지만 반드시 device 손상을 뜻하지는 않습니다. Error는 설계 한계를 벗어나 잘못된 동작이나 영구 손상을 일으켰을 수 있는 조건입니다.
0x01~0x7f는 Bluetooth Mesh specification 예약 fault입니다. 0x80~0xff는 vendor-specific입니다. Vendor fault 해석을 돕기 위해 fault list는 항상 Company ID와 함께 보고합니다.
Attention state
Device가 blink, sound 재생 또는 vibration 같은 물리적 behavior로 자신에게 주의를 끌도록 합니다. Provisioning 때 사용자가 어느 device를 provisioning하는지 알리거나 runtime에 Health model을 통해 사용할 수 있습니다.
Attention state를 활성화할 때는 항상 1~255초 timeout을 지정합니다. Attention period 시작에 bt_mesh_health_srv_cb.attn_on, 종료에 bt_mesh_health_srv_cb.attn_off callback을 호출하므로 application이 물리적 attention behavior를 실행하고 멈출 수 있습니다.
Attention period의 남은 시간은 bt_mesh_health_srv.attn_timer로 조회할 수 있습니다.
API Reference
공식 bt_mesh_health_srv Doxygen group이 Health Server와 attention callback API를 생성합니다.
Health faults
공식 bt_mesh_health_faults group이 Bluetooth Mesh specification에 정의된 fault value를 생성합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.