Skip to main content

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.

RowValueLegacy source7.0.6 source
TypeSensor / SmartBar sensorname contains VMP_SBDevice Info model == 2 (the name is always enode)
Firmwaredotted, e.g. 7.0.60x2A26 stringDevice Info fw_rev
Hardwaredotted, e.g. 6.1.10x2A27 stringDevice Info hw_rev
Serial numbere.g. 0A0B0C0D010203040x2A25 string%08X%08X of device_id0, device_id1
ProtocolAPI 2.0.0 / API 3.00x2A28 stringAPI {api_major}.{api_minor}
Battery87 %, or 87 %, charging0x2A19Status soc + flags bit 0
Battery voltage3.91 V—Status vbat (mV ÷ 1000, 2 decimals)
Temperature26.3 °C (1 decimal)0x2A1C float32 LEStatus temperature ÷ 100
Calibrationsee below—Status flags bits 2 and 3
Factory calibrationPresent / Missing—Status flags bit 4
Running for1 h 35 min, or 12 min under an hour—Status uptime (minutes)
Last restartsee below—Status reset_reason

Calibration, in priority order:

  1. Calibration mode active when bit 3 is set (command 0x20 is running).
  2. Otherwise Needs initial calibration when bit 2 is set.
  3. Otherwise Calibrated.

Last restart is built from the reset_reason bitmask:

  • 0 reads 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: 0x7FFF on 7.0.6, and 0 on 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 V in 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 pure sensorDetailRows(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 behind SENSOR_DETAILS_EXTENDED; false restores the old version and serial lines.
  • BLE & sensors → GATT layouts — how the app reads both firmware generations.