mf_handheld is designed so that network outages between the handheld device
and mf_exam do not lose committed clinical acquisitions.
Durability Boundary
- Synthetic peripheral frames and measurement events are written into the
bounded local spool (
MedExHandheld.Spool) and flushed with directoryfsyncunder an exclusiveflocklock. - The measurement durability guarantee begins once the handheld command journal has synced to local disk.
MedExHandheld.Transportopens an authenticated Gun WSS/TLS connection tomf_examand streams records with explicit acknowledgement tracking.
Disconnect & Replay
When the uplink drops:
- Active acquisition continues writing into the bounded disk spool.
- On reconnect,
MedExHandheld.Sessionresumes from the last server-confirmed offset. mf_examdeduplicates replayed segments and events by acquisition ID and sequence range, preserving exact source hashes.
Software Monitor Separation
Live monitor audio (MedExHandheld.Monitor) uses a separate credit-paced WSS
connection. It retains only the single latest 20 ms frame and discards frames
older than 200 ms locally—monitor congestion never blocks authoritative spool
writes or replay.