Wirepas Mesh
Haltian IoT sensors communicate via Wirepas Mesh — a decentralized wireless mesh network that operates on the 2.4 GHz band. Understanding the mesh architecture helps explain why the platform behaves the way it does: why devices don’t have IP addresses, how data reaches the cloud, and why the network is resilient.
End-to-End Data Flow
Data travels from sensor to cloud through several layers:
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#F6FAFA', 'primaryTextColor': '#143633', 'primaryBorderColor': '#143633', 'lineColor': '#143633', 'secondaryColor': '#C7FDE6', 'tertiaryColor': '#73F9C1', 'clusterBkg': '#ffffff', 'clusterBorder': '#143633', 'edgeLabelBackground': '#ffffff'}}}%%
flowchart TB
subgraph South["fa:fa-microchip Sensors"]
S1["Sensor<br/><i>End device</i>"]
S2["Sensor<br/><i>Router</i>"]
S3["Sensor<br/><i>End device</i>"]
S4["Sensor<br/><i>End device</i>"]
S5["Sensor<br/><i>Router</i>"]
end
subgraph Mesh["fa:fa-project-diagram Wirepas Mesh (2.4 GHz, AES-128)"]
direction LR
Hop["Multi-hop<br/>routing"]
end
subgraph GW["fa:fa-server Gateway"]
Sink["Sink<br/><i>Mesh anchor point</i>"]
Processor["Gateway Processor<br/><i>CBOR → JSON, adds headers</i>"]
Sink --> Processor
end
subgraph Cloud["fa:fa-cloud Haltian IoT Cloud"]
Ingest["Ingestion"]
Store["Storage"]
Stream["Stream API<br/>(MQTT)"]
Data["Data API<br/>(Parquet)"]
Ingest --> Store
Store --> Stream
Store --> Data
end
S1 --> Mesh
S2 --> Mesh
S3 --> Mesh
S4 --> Mesh
S5 --> Mesh
Mesh --> Sink
Processor -->|"LTE / Ethernet<br/>X.509 TLS"| Ingest
style South fill:#ffffff,stroke:#143633,stroke-width:2px,color:#143633
style Mesh fill:#C7FDE6,stroke:#143633,stroke-width:2px,color:#143633
style GW fill:#ffffff,stroke:#143633,stroke-width:2px,color:#143633
style Cloud fill:#ffffff,stroke:#143633,stroke-width:2px,color:#143633
style S1 fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style S2 fill:#73F9C1,stroke:#143633,stroke-width:2px,color:#143633
style S3 fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style S4 fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style S5 fill:#73F9C1,stroke:#143633,stroke-width:2px,color:#143633
style Sink fill:#73F9C1,stroke:#143633,stroke-width:2px,color:#143633
style Processor fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style Hop fill:#C7FDE6,stroke:#143633,stroke-width:0px,color:#143633
style Ingest fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style Store fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style Stream fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633
style Data fill:#F6FAFA,stroke:#143633,stroke-width:2px,color:#143633- Sensor encodes a measurement as CBOR and transmits it over Wirepas
- Mesh routes the message hop-by-hop through intermediate routers toward the gateway
- Gateway sink receives the message from the mesh
- Gateway processor decodes CBOR, adds metadata (timestamp, gateway ID, device TUID), and forwards via MQTT over LTE or Ethernet
- Cloud ingests, stores, and delivers via the Stream API and Data API
Mesh Topology
Wirepas mesh is decentralized — there is no central controller. Every node participates in maintaining the network.
Node Roles
| Role | Power usage | Function | Examples |
|---|---|---|---|
| End device | Lowest | Only transmits its own data. Never relays for others. | Most battery-powered sensors |
| Router | Higher | Transmits own data and relays messages for nearby devices. | Sensors near the gateway, or manually configured |
| Beacon | Low | Broadcasts periodic signals for positioning. Does not route messages. | Haltian EH Locator (beacon mode) |
| Sink | N/A (powered) | Mesh anchor point on the gateway. All messages converge here. | Gateway sink interface |
Wirepas automatically assigns router roles based on network topology. Sensors closer to the gateway are more likely to become routers. Manual role configuration is rarely needed — the mesh optimizes itself.
How Routing Works
Each sensor doesn’t need a direct radio link to the gateway. Messages hop through intermediate routers:
Sensor (far corner) → Router A → Router B → Gateway Sink
- Range per hop: 10–30 meters (indoor, through walls)
- Multi-hop: The mesh extends coverage far beyond single-radio range
- Automatic path selection: Wirepas chooses the best route based on signal quality and hop count
Self-Healing
The mesh continuously adapts to changing conditions:
| Scenario | What happens |
|---|---|
| Router fails (battery dies, removed) | Nearby devices discover alternative paths and re-route automatically |
| Gateway goes offline | Devices continue meshing; data is buffered and delivered when connectivity restores |
| New device added | Automatically joins the mesh and integrates into the routing topology |
| Interference on current channel | Wirepas uses frequency hopping to avoid congestion |
There is no downtime for reconfiguration — the mesh heals in seconds.
Security
All Wirepas mesh traffic is encrypted end-to-end:
| Layer | Protection |
|---|---|
| Mesh radio | AES-128 encryption for all wireless traffic between nodes |
| Gateway → Cloud | X.509 certificate-based TLS authentication |
Credential Options
| Option | Isolation level | Use case |
|---|---|---|
| Haltian shared credentials | All organizations share mesh network keys | Simple deployments, quick setup |
| Organization-specific credentials | Dedicated network keys per organization | Multi-tenant buildings, security-sensitive environments |
Wirepas sensors have no IP connectivity and are not directly addressable from the internet. They communicate through the mesh radio network, with the gateway providing the internet connection. This limits direct internet exposure, but does not eliminate security risks through the mesh or physical access.
Addressing
Every device in the mesh has identifiers used at different levels:
| Level | Identifier | Used for |
|---|---|---|
| Mesh routing | Wirepas Node ID (integer) | Hop-by-hop packet routing within the mesh |
| Mesh network | Wirepas Network ID (integer) | Identifies the mesh network; available as wirepasNetworkId in device metadata |
| Data typing | Endpoint pair (source/destination) | Identifies what type of data the message carries (e.g., 21/21 = Thingsee CBOR) |
| Device mapping | TUID (tsmTuid, legacy) | Device identifier associated with the Wirepas Node ID through device metadata |
| Platform | Device UUID | All API and MQTT interactions after cloud ingestion |
In raw binary passthrough topics, the Wirepas Node ID appears in the topic path. In parsed measurement topics, the platform has already mapped this to the device UUID. See Device Identity for the full identifier mapping.
Network Capacity
| Parameter | Typical value |
|---|---|
| Devices per gateway | Thousands (depends on message rate) |
| Radio range per hop | 10–30 m indoors |
| Effective coverage | Entire building via multi-hop |
| Latency | Sub-second for occupancy events |
| Battery life | 3–10 years (varies by sensor type and reporting interval) |
| Mesh join time | 1–10 minutes for a new device |
Gateway Processing
The gateway is the bridge between the mesh and the internet. It performs several transformations:
- Receives raw Wirepas protobuf messages from the sink
- Decodes CBOR payloads into JSON
- Enriches with metadata — adds
tsmTs(timestamp),tsmGw(gateway ID), and the legacytsmTuiddevice identifier resolved through the Wirepas Node ID mapping - Transmits to the cloud via primary MQTT connection (LTE or Ethernet, TLS-encrypted)
Optionally, the gateway can also publish raw data to a secondary local MQTT broker for on-premises processing. See Gateway Binary Passthrough for details.
Related Topics
- Device Identity — Wirepas Node ID, TUID, UUID, and how to map between them
- Security — Encryption, authentication, and network isolation
- Gateway Binary Passthrough — Raw Wirepas data access