Skip to content

Telemetry and log ​

The Telemetry tab on the cabin page shows how the board is doing: radio signal, memory, scales, link, restarts, task stack headroom. The Logs window is the cabin's live exchange with the server. Telemetry is kept for 30 days, the log for two days.

Where the data comes from ​

The cabin board is built on an ESP32 (two cores, FreeRTOS). Every few minutes it sends the server a snapshot — a set of measurements. On notable changes it also sends an event at once: memory dropped, Wi-Fi quality changed, the scale zero drifted, a reconnect happened. Separately, once an hour, a stack headroom report of every firmware task arrives.

The Telemetry tab ​

Range and zoom ​

  • Range: 15 min, Hour, Day, Week, Month. The server averages points to the window length (at most 240 points per chart); the averaging step is shown next to it.
  • Mouse wheel — zoom around the cursor, drag — pan in time, on a phone — pinch with two fingers. Double click or reset zoom — the whole range.
  • Zoom is shared by every chart on the tab. When you zoom in, the page loads more detailed data.
  • While the tab is open, a new snapshot is drawn on the right at once.

"Now" cards ​

The top row is the latest snapshot; "N s ago" is how many seconds ago it arrived. A changed value is highlighted for a second.

CardWhat it isNormal
Wi-Fiaccess point signal level, dBm−67 or higher is good
Free heapfree RAM, KBtens of KB, no steady decline
Min heapthe free memory minimum since start, KBbelow Free heap, but not down to single KB
NVS freefree entries in the flash memory for settings and visitsnot constantly decreasing
Weightfloor weight, kgan empty cabin — about 0
Scale zerothe scale "zero" of an empty cabin, kgwithin ±0.5 kg
Uptimetime since the last startgrows; resets once a day after the night restart
Min free stack · taskthe "tightest" firmware task and its stack headroom, %above 10 %

The second row — totals for the selected range:

CardWhat it counts
Wi-Fi reconnectsWi-Fi reconnects
MQTT reconnectsserver reconnects
Restartsboard restarts (including the night one)
Link recoveryhow many times the cabin restored the link with special measures: recreating the connection, rejoining Wi-Fi, restarting

Board counters reset on a restart; the server adds them up between snapshots, so the totals stay correct across restarts.

Charts ​

Wi-Fi signal, dBm ​

The access point signal level (RSSI). The closer to zero, the better.

LevelQuality
−55 and higherexcellent
−67 … −55good
−75 … −67fair
below −75poor — drops are possible

Dips to 0 are moments without a connection. If the signal stays below −75, move the access point closer to the cabin or add a repeater.

Free heap, KB ​

Two lines: free — free RAM now, min ever — the minimum since start.

  • The normal picture is a flat free line and a min ever step that settles after the start and then barely changes.
  • A slow hour-by-hour decline of free means memory is used and not returned. The cabin keeps working until the night restart, but tell support.

NVS free entries ​

NVS is the area of the board's flash memory holding settings, unsent visits and service counters. One entry is 32 bytes.

  • The number of free entries is almost constant.
  • A decline during a link loss is normal: the cabin stores visits. When the link returns and the visits reach the server, the free entries come back.

Scale zero (empty cabin), kg ​

When the cabin is empty and the weight has not changed for 30 seconds, the board records the "zero" — the reading of the empty platform.

  • zero — the smoothed zero. Load cells drift over time: temperature, humidity, floor settling.
  • noise — reading jitter. Normal is hundredths or tenths of a kilogram; above 0.5 kg — interference or a poor contact.
  • The zero moved by more than 0.5 kg — event Scale zero drifted. More than 1 kg for longer than 10 minutes — event Scale needs recalibration: the scales need zeroing, contact support.

Weight, kg ​

The weight from the load cells: steps up — someone entered, down — left. The default presence threshold is 20 kg.

Reconnects since boot ​

Wi-Fi and MQTT (server) reconnect counters since start; they reset on a restart.

  • Only MQTT grows while Wi-Fi stays put — the path to the server drops (site network, internet), the radio is fine.
  • Both grow — the cabin loses the access point: signal, interference, router restarts.

If the network is up but the server is unreachable, the cabin escalates: retries, recreates the connection (client recreated), rejoins Wi-Fi (Wi-Fi rejoined) and after 15 minutes without the server restarts (rebooted). Offline time — how many seconds the cabin has been without the server and how many failed attempts in a row (failures in a row).

These charts are empty while the link is fine.

Free stack per task, % ​

Every firmware task has its own stack. The chart shows what percentage of the stack was left at the busiest moment since start.

TaskWhat it does
watchdogpulses to the external watchdog timer and monitoring of the other tasks
lightlight, light knob and button
fanfan, fan knob and button
scalesreading the load cells (HX711 ADC)
scalescontrolzeroing and calibrating the scales
modemodes, visits, schedule, telemetry
messageinternal messages and server commands
webthe service access point web page
serialservice console
mqtt_pub, status_1s, mqtt_rxsending messages, status once a second, receiving commands
looptaskthe Arduino main loop

Headroom above 10 % is normal. report every next to the heading sets how often the cabin sends the report.

Events ​

The event table for the range, 10 rows per page:

EventWhen
Free heap droppedfree memory dropped by 8 KB or 10 %
Min heap droppedthe memory minimum dropped by 4 KB
NVS free entries droppedfree NVS entries dropped by 32
Wi-Fi qualitythe signal changed class (poor / fair / good / excellent) and stayed there for a minute
Wi-Fi reconnecta Wi-Fi reconnect happened
MQTT reconnecta server reconnect happened
Scale zero driftedthe empty-cabin zero moved by 0.5 kg
Scale needs recalibrationthe zero beyond 1 kg for longer than 10 minutes

After an event the baseline moves, so the same change is not repeated.

How often the cabin sends data ​

SelectorValuesWhat it sets
snapshot periodoff, 20 s, 1 min, 5 min, 15 min, 1 hthe snapshot period; events arrive independently
report every (on the stack chart)off, 1 min, 5 min, 15 min, 1 h, 6 h, 24 hthe stack report period

The cabin applies the new period within a minute; until then the selector shows "applying…". Frequent snapshots help watch a specific issue; 5 minutes is enough for normal operation.

The Logs window — exchange log ​

The Logs button in the page header opens the cabin's live message feed in a separate browser window: from the cabin on the left, from the server on the right. The window lives on its own: you can close the cabin page or move to another cabin and the feed keeps going. Pressing Logs again brings up the same window instead of a second one. On a phone it opens as a new tab.

  • Topic filter — keep what you need: status, commands, responses, board log, telemetry.
  • Commands are shown by name (brightness, reboot).
  • Pause / Resume — stop the feed, Clear — clear the screen.
  • History — the stored log for Today or Yesterday, Load older — further back.
  • The feed scrolls by itself while you are at the bottom; if you scrolled up, a Scroll to the end button appears.

What to look for in the log ​

LineMeaning
MQTT connected after boot (…, uptime 4 s)the cabin started; the restart cause is in brackets
MQTT reconnected (offline 5 s, disconnect: TCP, code 0)the server link came back without a restart: how many seconds it was missing and why
HTTP GET …firmware_….bin -> 200the cabin downloads a firmware update
CONFIG default.work_light: 100 -> 80a cabin setting changed (passwords hidden)
SET_CONFIG rejected: …the cabin did not accept the settings — nothing changed

Restart causes ​

The first line after a start is MQTT connected after boot (<reset>: <cause>, uptime N s).

CauseWhat happened
dailythe night preventive restart
commanda restart with the Reboot button or a provider command
button light 10sthe light button was held for 10 seconds
ota updatea firmware update was installed
ota rollbackthe update was not confirmed, back to the previous version
link recovery offline15 minutes without the server while the network works
settings …a reset or first-time setup of the board
safe modeentering or leaving safe mode
wdt <task> | …task monitoring restarted the board: a task stopped reporting

If there is no cause in brackets, look at the reset type:

ResetMeaning
power-onpower applied or a reset through the EN pin — including from the external watchdog timer
brownouta supply voltage dip on the board
panican exception in the firmware
task watchdog, interrupt watchdogthe ESP32 internal watchdog

Frequent brownout — check the power supply and wiring: the load when the fan and light switch on. Frequent panic or wdt — save the log lines and send them to support.

Disconnect codes ​

disconnect: …, code N in a MQTT reconnected line:

CodeReason
0 TCPthe connection dropped — network, or the server closed an idle connection
3 server unavailablethe server is temporarily unavailable
5 not authorizedthe server did not accept the cabin's credential

Wi-Fi codes (seen in telemetry messages as wifi_disconnect_reason):

CodeReason
2 Auth expiredthe access point did not accept the cabin right after the cabin restarted — usually passes on the second or third attempt
8 Disassociated (leave)the cabin disconnected by itself — a reconnect
15, 204 Handshake timeoutthe key exchange did not complete: password or weak signal
200 Beacon timeoutthe cabin stopped hearing the access point — signal, interference, access point restart
201 No AP foundno network with the expected name nearby
202 Authentication failedwrong Wi-Fi password
203 Association failedthe access point refused — client limit, MAC filter

Every snapshot field ​

In the Logs window with the telemetry filter the snapshots are shown in full. Fields:

FieldWhat it is
rssiWi-Fi signal, dBm (0 — not connected)
heap_free, heap_minfree memory now and the minimum since start, bytes
nvs_freefree NVS entries
uptimeseconds since start
weightweight, kg
wifi_reconnects, mqtt_reconnectsreconnects since start
mqtt_session_sec, wifi_session_sechow many seconds the current server and Wi-Fi connection has lasted
mqtt_session_min_sec, wifi_session_min_secthe shortest connection since start (present if there were drops)
mqtt_disconnect_reason, wifi_disconnect_reasonthe last disconnect code (tables above)
wifi_refusal_reasonthe last access point refusal code
boot_reasonthe last ESP32 reset type: 1 power-on, 3 software, 4 panic, 5–7 watchdog, 9 brownout
restart_causerestart cause: 1 wdt, 2 link recovery, 3 ota, 4 command, 5 button, 6 daily, 7 settings, 8 safe mode
link_recreates, link_rejoins, link_reboots, link_offline_sec, link_failslink recovery (present if it happened)
scale_zero, scale_zero0, scale_zero1, scale_noisecurrent zero, original zero, second cell zero, noise
telemetry_sec, telemetry_stack_secthe snapshot and stack report periods the cabin runs with now
stack_<task>task stack headroom, % (in the stack report)

© Modular Acoustic Solutions · WorkBooth