How to use CBOR

Thingsee messages are created using open CBOR binary data serialization. This page has a list of all properties that are, at the moment, available for CBOR message content. New properties are added based on need. Note that private properties can be created in case your product is such that needs to keep its properties and message profiles in private.

CBOR indexes for message headers

Github link to be added

JSON property CBOR index Unit Example Description
tsmId 1 number 1200 Message identifier
tsmEv 2 number 10 Event identifier
tsmTs 3 seconds 1492844596 Timestamp
tsmTuid 4 string "TSPODR123" Thing identifier
tsmGw 5 string "TSGWAS321" Gateway identifier
tsmDstTuid 7 string "TSGWAS321" Destination thing identifier
tsmGwTs 8 string 1492844601 Gateway timestamp
tsmCloudTs 9 string 1492844602 Cloud timestamp

CBOR indexes for data payload

You can create your own profiles using these existing properties, or request a new property to be added. Github link to be added

JSON property CBOR index Unit Multiplier (1eX) Example Description
batl 21 % 1 882 Battery level information
chrg 22 0 2 Charger status where **0 = Not connected** and **1 = Connected, charging** and **2 = Connected, not charging**
requestTsmId 23 0 1310 Thing Message Id requested by the cloud from a device.
transactionId 25 0 1493312188 This numeric information can be created by the message originator who needs to follow message sequences or to syncronize request - response communication. The value must be in a range 0 to 2147483647.
status 27 0 0 Status code (unit is message specific)
interval 28 seconds 0 0 Interval
temp 30 �C 1 224 Temperature in Celsius
lght 31 Lux 0 720 Lux value
humd 32 % 1 724 Humidity information 0-100%
airp 33 3 102092358 Pascals
level 34 0 0 Level (unit is message specific)
accx 40 0 0 Acceleration
accy 41 0 -100 Acceleration
accz 42 0 900 Acceleration
move 43 0 1 Movement detected at the time of measurement where **0 = No movement** and **1 = Movement**
moveCount 44 0 7 Count of detected movements since the last reported measurement
dist 45 mm 0 152 Distance information in millimeters
hall 46 0 1 Hall sensor state where **0 = Open** and **1 = Closed**
hallCount 47 0 1 Hall sensor state change count
lat 50 7 650000000 Latitude
lon 51 7 240000000 Longitude
lacr 52 2 1234 Location accuracy in meters
spd 53 2 461 Speed in meters/second
hdg 54 1 187 Heading in degrees
alt 55 0 1012 Altitude in meters
wpnode 60 NA '123456' Wirepas Node ID as a string
rssi 61 0 78 RSSI value as level from 0 to 255
rssiDbm 65 0 -70 RSSI value as dBm
swVersion 70 NA 'sensorFW1.0.2/BL1.0.0' Software version as a string
modelCode 71 NA 'TSGW2G' Product model code as a string.
cellRsrp 90 0 Reference Signal Received Power (dBm)
cellRsrq 91 0 Reference Signal Received Quality (dB)
cellSinr 92 0 Signal to Interference & Noise Ratio (dB)
cellRssi 93 0 Received Signal Strength Indicator (dBm)
cellLac 94 0 Cell Location Area Code
cellId 95 0 Cell ID
cellTac 96 0 Cell Tracking Area Code
cellRscp 97 0 Received Signal Code Power (dBm)
cellEcn0 98 0 Energy per Chip/Noise ratio (dB)
cellRat 99 Radio Access Technology
hwid 110 NA '0010' Hardware identification number
neighNodeInfo 150 0 1 Neighbor node info
neighRadioPower 151 0 1 Tx power used to send data to neighbor
scratchpadSeqNumber 152 0 0 Scratchpad sequence number for Wirepas network
diagnosticMask 153 0 0
restartCount 154 0 1
errorCount 155 0 123
neighRadioPowerDbm 156 0 -40 Tx power used to send data to neighbor in dBm
imei 160 International Mobile Equipment Identity (IMEI)
imsi 161 International Mobile Subscriber Identity (IMSI)
mcc_mnc 162 Combined mobile country code (MCC) and mobile network code (MNC).
operatorName 163 Name of network operator
angle 190 1 900 Angular position in degrees
measurementInterval 256 0 60 Configure measurement interval in seconds
measurementFrequency 257 0 25 Configure measurement interval as Hz
reportInterval 258 0 300 Configure reporting interval in seconds. This property can be used either by a sensor or a gateway to set their outgoing reporting interval.
accelerometerMode 262 0 0 **accelerometerMode** controls sensor orientation reporting (default: 1, enabled). Value 0 means that orientation reporting is disabled and value 1 means enabled.
enableLed 264 0 0 LED control
weatherMode 266 0 0 Weather sensor configuration mode
hallMode 267 0 0 Hall sensor configuration mode
leakageMode 268 0 0 Leakage sensor configuration mode
autoCalibration 269 Auto-calibration setting
calibrationValue 270 Calibration value
temperatureHysteresis 275 1 5
humidityHysteresis 276 1 20
pressureHysteresis 277 3 20000
lightHysteresis 278 0 100
resistanceHysteresis 279 0 10000
orientationHysteresis 280 0 5
carbonDioxideHysteresis 281 0 10
tvocHysteresis 282 0 5
carbonDioxide 283 0 624
tvoc 284 0 50
lghtint 295 nW/cm2 0 86323 Light intensity
histogram0 1000 0 2 Count of detection in area index 0
histogram1 1001 0 7 Count of detection in area index 1
histogram2 1002 0 13 Count of detection in area index 2
histogram3 1003 0 45 Count of detection in area index 3
histogram4 1004 0 234 Count of detection in area index 4
histogram5 1005 0 153 Count of detection in area index 5
histogram6 1006 0 78 Count of detection in area index 6
histogram7 1007 0 45 Count of detection in area index 7
histogram8 1008 0 32 Count of detection in area index 8
histogram9 1009 0 2 Count of detection in area index 9
Next