Wirepas Mesh

How Wirepas mesh networking connects sensors to the cloud — topology, self-healing, encryption, and data flow

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
  1. Sensor encodes a measurement as CBOR and transmits it over Wirepas
  2. Mesh routes the message hop-by-hop through intermediate routers toward the gateway
  3. Gateway sink receives the message from the mesh
  4. Gateway processor decodes CBOR, adds metadata (timestamp, gateway ID, device TUID), and forwards via MQTT over LTE or Ethernet
  5. 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

RolePower usageFunctionExamples
End deviceLowestOnly transmits its own data. Never relays for others.Most battery-powered sensors
RouterHigherTransmits own data and relays messages for nearby devices.Sensors near the gateway, or manually configured
BeaconLowBroadcasts periodic signals for positioning. Does not route messages.Haltian EH Locator (beacon mode)
SinkN/A (powered)Mesh anchor point on the gateway. All messages converge here.Gateway sink interface

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:

ScenarioWhat happens
Router fails (battery dies, removed)Nearby devices discover alternative paths and re-route automatically
Gateway goes offlineDevices continue meshing; data is buffered and delivered when connectivity restores
New device addedAutomatically joins the mesh and integrates into the routing topology
Interference on current channelWirepas 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:

LayerProtection
Mesh radioAES-128 encryption for all wireless traffic between nodes
Gateway → CloudX.509 certificate-based TLS authentication

Credential Options

OptionIsolation levelUse case
Haltian shared credentialsAll organizations share mesh network keysSimple deployments, quick setup
Organization-specific credentialsDedicated network keys per organizationMulti-tenant buildings, security-sensitive environments

Addressing

Every device in the mesh has identifiers used at different levels:

LevelIdentifierUsed for
Mesh routingWirepas Node ID (integer)Hop-by-hop packet routing within the mesh
Mesh networkWirepas Network ID (integer)Identifies the mesh network; available as wirepasNetworkId in device metadata
Data typingEndpoint pair (source/destination)Identifies what type of data the message carries (e.g., 21/21 = Thingsee CBOR)
Device mappingTUID (tsmTuid, legacy)Device identifier associated with the Wirepas Node ID through device metadata
PlatformDevice UUIDAll 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

ParameterTypical value
Devices per gatewayThousands (depends on message rate)
Radio range per hop10–30 m indoors
Effective coverageEntire building via multi-hop
LatencySub-second for occupancy events
Battery life3–10 years (varies by sensor type and reporting interval)
Mesh join time1–10 minutes for a new device

Gateway Processing

The gateway is the bridge between the mesh and the internet. It performs several transformations:

  1. Receives raw Wirepas protobuf messages from the sink
  2. Decodes CBOR payloads into JSON
  3. Enriches with metadata — adds tsmTs (timestamp), tsmGw (gateway ID), and the legacy tsmTuid device identifier resolved through the Wirepas Node ID mapping
  4. 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.