Sensor details dialog — native app handoff
This describes the "Sensor details" dialog of the tracking web app, so the native apps (iOS sensor-package / Enode Lab, Enode Pro, Android watch-application) can build the same screen. It shows what a connected sensor reports about itself. On firmware 7.0.6 that includes the new Device Status and Device Info fields, such as charging, calibration and why the sensor last restarted.
The byte layouts are not repeated here. They are in the firmware's GATT.md
and in HANDOVER-7.0.6-apps.md (§4 field mapping, §5 decode snippets). This
document covers only what is shown, in what order, and how it is formatted.
Where it lives
- Entry point: the connect sheet's options menu (the "…" button next to the close button) → Show info. The menu only appears once a sensor is connected.
- Surface: an acknowledge-only dialog. Title Sensor details, a single OK button, no cancel.
- Never on the 3D viewer. Serial numbers and versions stay in the dialog and are never drawn over the sensor model, so they don't appear in screen recordings of the connect sheet.
Layout
- One block per sensor. A SmartBar station shows two blocks, each headed L or R (its barbell side). A single sensor has no heading.
- Each block is a two-column list. The label is on the left in small, muted text; the value is on the right in small text with tabular figures, right-aligned.
- Rows the sensor can't fill are left out, never shown as "—". A 7.0.5 sensor therefore simply has a shorter list.
- The list updates live. While the dialog is open it re-reads the sensor once per second, so plugging in a charger or entering calibration mode shows up without reopening it.
Rows, in display order
"Legacy" means firmware ≤ 7.0.5; "7.0.6" means GATT API 3.
| Row | Value | Legacy source | 7.0.6 source |
|---|---|---|---|
| Type | Sensor / SmartBar sensor | name contains VMP_SB | Device Info model == 2 (the name is always enode) |
| Firmware | dotted, e.g. 7.0.6 | 0x2A26 string | Device Info fw_rev |
| Hardware | dotted, e.g. 6.1.1 | 0x2A27 string | Device Info hw_rev |
| Serial number | e.g. 0A0B0C0D01020304 | 0x2A25 string | %08X%08X of device_id0, device_id1 |
| Protocol | API 2.0.0 / API 3.0 | 0x2A28 string | API {api_major}.{api_minor} |
| Battery | 87 %, or 87 %, charging | 0x2A19 | Status soc + flags bit 0 |
| Battery voltage | 3.91 V | — | Status vbat (mV ÷ 1000, 2 decimals) |
| Temperature | 26.3 °C (1 decimal) | 0x2A1C float32 LE | Status temperature ÷ 100 |
| Calibration | see below | — | Status flags bits 2 and 3 |
| Factory calibration | Present / Missing | — | Status flags bit 4 |
| Running for | 1 h 35 min, or 12 min under an hour | — | Status uptime (minutes) |
| Last restart | see below | — | Status reset_reason |
Calibration, in priority order:
- Calibration mode active when bit 3 is set (command 0x20 is running).
- Otherwise Needs initial calibration when bit 2 is set.
- Otherwise Calibrated.
Last restart is built from the reset_reason bitmask:
0reads Switched on.- Otherwise each set bit adds a label, comma-separated:
- bit 0 → Reset button
- bit 1 → Watchdog
- bit 2 → Software restart (e.g. after an update)
- bit 3 → Processor lockup
- bit 4 → Woke from sleep
- No known bit set reads Unknown.
When a row is left out:
- Battery: no reading yet (legacy), or
soc = 0xFF(7.0.6). - Temperature:
0x7FFFon 7.0.6, and0on legacy (the "no reading" sentinel). - Battery voltage, Running for, Last restart: the field is missing from a shorter Status value, or holds its "unknown" sentinel.
- Calibration, Factory calibration: shown only on 7.0.6.
Deliberately not shown
- Features (Device Info
capabilities). The app still uses it to decide which modes to offer, but it isn't displayed. - Bootloader app version (
dfu_app_version). It only matters for DFU tooling. - Current mode byte and "gauge present" flag. These are debug-level information.
Formatting rules
- Revisions: a digits-only revision is split into a dotted version (
706→7.0.6,611→6.1.1). Non-numeric strings are shown as-is. - Numbers: voltage, temperature and battery are formatted for the user's
locale, e.g.
3,91 Vin German. - Translation: every label and value word is translated. The web app's English source strings are the row names and value words in the tables above.
Reference implementation (web)
sensor-details.ts— the puresensorDetailRows(sensor, t): row order, formatting and the omission rules.sensor-details.test.ts— expected output for a legacy unit and a 7.0.6 unit; a good fixture set to mirror.sensor-details-list.tsx— the list markup and the one-second refresh.ConnectSensorSheet.tsx— the dialog and the menu entry. The extended list is behindSENSOR_DETAILS_EXTENDED;falserestores the old version and serial lines.- BLE & sensors → GATT layouts — how the app reads both firmware generations.