Uplink Messages

Raw CBOR uplink messages from Thingsee PRESENCE — measurement data, system info, and diagnostics transmitted over Wirepas mesh

Overview

This page documents the CBOR-encoded messages that Thingsee PRESENCE transmits from the sensor to the gateway over the Wirepas mesh network.

For the Haltian IoT Platform equivalent (JSON over MQTT/GraphQL), see Data Output.

Wirepas endpoint: 21/21
MQTT topic: haltian-iot/wirepas/gw-event/received_data/{gateway-id}/sink1/{network-id}/21/21

Each message is identified by tsmId (message structure ID). Examples below are shown in both JSON (decoded CBOR) and CBOR (numeric indexes as transmitted on the wire).


Messages by Operating Mode

Operating ModeApplication MessagesHIoT Measurement Type
Mode 1 (Occupancy)tsmId 2100 + tsmId 13102occupancyStatus
Mode 2 (Visitor counter, default)tsmId 13100movementDetections

Movement Count (tsmId 13100)

Produced in Mode 2. Reports the number of PIR detections since the last report.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 13100
tsmEv2Event type: 10 (timed), 11 (startup)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
moveCount44Number of movements detected since last report
{
  "tsmId": 13100,
  "tsmEv": 10,
  "tsmTs": 1755064655,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "moveCount": 7
}
{1: 13100, 2: 10, 44: 7}

Occupancy State (tsmId 2100)

Produced in Mode 1. Reports binary occupied/unoccupied state.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 2100
tsmEv2Event type: 7 (state change), 10 (timed)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
state38Occupancy state: 0 = vacant, 1 = occupied
{
  "tsmId": 2100,
  "tsmEv": 7,
  "tsmTs": 1755064700,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "state": 1
}
{1: 2100, 2: 7, 38: 1}

Occupancy Count (tsmId 13102)

Produced in Mode 1 alongside tsmId 2100. Reports cumulative occupancy events since last report.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 13102
tsmEv2Event type: 10 (timed)
tsmTs3UTC timestamp in seconds (added by gateway)
tsmTuid4Device unique identifier
tsmGw5Gateway identifier (added by gateway)
count113Number of occupancy events since last report
duration191Total occupied time in seconds (optional)
{
  "tsmId": 13102,
  "tsmEv": 10,
  "tsmTs": 1755068200,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "count": 12,
  "duration": 1800
}
{1: 13102, 2: 10, 113: 12, 191: 1800}

Battery Level (tsmId 1110)

Reported every 6 hours.

JSON PropertyCBOR IndexMultiplierDescription
tsmId1Message ID: 1110
tsmEv2Event type: 10 (timed)
batl2110^1Battery level percentage
{
  "tsmId": 1110,
  "tsmEv": 10,
  "tsmTs": 1755081600,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "batl": 92
}
{1: 1110, 2: 10, 21: 920}

System Info (tsmId 1100)

Sent once on device boot-up.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 1100
tsmEv2Event type: 11 (startup)
swVersion70Firmware version string
modelCode71Device model code (e.g., TSPR04)
{
  "tsmId": 1100,
  "tsmEv": 11,
  "tsmTs": 1755060000,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "swVersion": "3.2.1",
  "modelCode": "TSPR04"
}
{1: 1100, 2: 11, 70: "3.2.1", 71: "TSPR04"}

Orientation Info (tsmId 1111)

Reports device orientation as 3-axis acceleration. Useful for verifying correct mounting.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 1111
tsmEv2Event type: 10 (timed), 11 (startup)
accx40X-axis acceleration
accy41Y-axis acceleration
accz42Z-axis acceleration
{
  "tsmId": 1111,
  "tsmEv": 10,
  "tsmTs": 1755068000,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "accx": 12,
  "accy": -45,
  "accz": 980
}
{1: 1111, 2: 10, 40: 12, 41: -45, 42: 980}

Network Diagnostics (tsmId 1202)

Reported every 12 hours. Provides mesh network connectivity metrics.

JSON PropertyCBOR IndexDescription
tsmId1Message ID: 1202
tsmEv2Event type: 10 (timed)
rssi61Received signal strength
rssiDbm65Signal strength in dBm
{
  "tsmId": 1202,
  "tsmEv": 10,
  "tsmTs": 1755103200,
  "tsmTuid": "TSPR04TSC20205001",
  "tsmGw": "TSGW06EWK31903495",
  "rssi": -62,
  "rssiDbm": -62
}
{1: 1202, 2: 10, 61: -62, 65: -62}

CBOR Index Reference

CBOR IndexJSON PropertyCategory
1tsmIdHeader
2tsmEvHeader
3tsmTsHeader
4tsmTuidHeader
5tsmGwHeader
21batlSystem (multiplier 10^1)
38stateOccupancy
40accxOrientation
41accyOrientation
42acczOrientation
44moveCountMovement detection
61rssiNetwork
62tuidNetwork
65rssiDbmNetwork
70swVersionSystem
71modelCodeSystem
113countOccupancy count
191durationOccupancy duration