Architecture first
How the complete system is connected
RoboMeshOS turns physical measurements into trusted history, alerts, dashboards, and automation. The architecture is offline-first: devices and gateways preserve data locally, while the cloud unifies identity, storage, APIs, analytics, firmware, and integrations.
1. Sensors and hardware
Physical values are sampled by low-power firmware and preserved in local flash history.
2. Gateway and field edge
The gateway discovers devices, downloads replay data, stores it in SQLite, and builds an offline upload queue.
3. Transport and identity
Data enters through compact TCP/TLS frames, REST v2, project APIs, or ChirpStack webhooks.
4. HiveServer cloud core
Ingress normalizes samples. PostgreSQL stores history and domain data; services run analytics, thresholds, firmware, scripts, and notifications.
5. Products and actions
Web, mobile, diagnostics, and partner systems turn shared data into decisions. Configuration and commands travel back to the edge.
Device replay and the gateway SQLite outbox separate measurement capture from cloud connectivity. A temporary outage delays delivery but does not have to lose the sample.
Gateways use compact TLS frames with commit semantics. Device-aware HTTP clients use REST v2 with a sensor API key in X-Auth-Token.
Apps and integrations do more than read charts. They can update configuration, request samples, distribute firmware, run scripts, notify users, or trigger external automation.
Telemetry lifecycle
What happens to one measurement
A measurement is useful only when the system can preserve its origin, recover it after an outage, authenticate its sender, commit it safely, and turn it into an action.
Sample-to-insight pipeline
The primary gateway path shown below also explains where data can wait safely when the next layer is unavailable.
Measure
Firmware samples a physical signal, validates it, timestamps it, and maps it into a typed payload.
sensor -> samplePreserve
The current value is advertised over BLE and historical rows are retained in device flash for replay.
BLE + flashCollect
The gateway identifies the device, reads live data, and requests the missing range after its last cursor.
scan + delta replayQueue
Rows are written to SQLite before transmission and grouped into a durable outbox batch.
SQLite outboxUpload
The gateway authenticates, sends LEB128 frames over TLS, then requests an explicit Commit response.
TCP/TLS :32359Normalize
HiveServer resolves identity, validates frames, maps payload fields, and stores trusted domain data.
ingress -> PostgreSQLAct
History, rules, notifications, APIs, dashboards, MQTT, and exports turn the sample into useful output.
insight -> actionClosed control loop
How a decision returns to the physical world
RoboMeshOS is bidirectional. Users and integrations read shared state, make a decision, and send a controlled change back through authenticated services to gateways, firmware, or external actuators.
Operator-to-device path
The exact return mechanism depends on the capability: REST updates cloud state, gateways retrieve configuration, and BLE GATT or DFU applies the device-level change.
1. Decision source
- Web or mobile operator
- Threshold or analytics rule
- Partner ERP, GIS, BMS, or MQTT client
- Installer diagnostics workflow
2. Cloud authorization
- Project or sensor identity check
- Configuration and domain validation
- Firmware, script, sample request, or relay command
- Audit-friendly persistent state
3. Edge execution
- Gateway receives desired configuration
- BLE GATT writes device settings
- DFU updates compatible firmware
- Relay or external system performs the action
