<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CBOR Reference on Haltian Developer Documentation</title><link>https://developer.haltian.io/haltian-iot/devices/sensors/thingsee-presence/cbor-reference/</link><description>Recent content in CBOR Reference on Haltian Developer Documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://developer.haltian.io/haltian-iot/devices/sensors/thingsee-presence/cbor-reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Uplink Messages</title><link>https://developer.haltian.io/haltian-iot/devices/sensors/thingsee-presence/cbor-reference/uplink/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://developer.haltian.io/haltian-iot/devices/sensors/thingsee-presence/cbor-reference/uplink/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>This page documents the CBOR-encoded messages that Thingsee PRESENCE transmits &lt;strong>from&lt;/strong> the sensor to the gateway over the Wirepas mesh network.&lt;/p>
&lt;p>For the Haltian IoT Platform equivalent (JSON over MQTT/GraphQL), see &lt;a href="../../uplink-messages/">Data Output&lt;/a>.&lt;/p>
&lt;p>&lt;strong>Wirepas endpoint:&lt;/strong> &lt;code>21/21&lt;/code>&lt;br>
&lt;strong>MQTT topic:&lt;/strong> &lt;code>haltian-iot/wirepas/gw-event/received_data/{gateway-id}/sink1/{network-id}/21/21&lt;/code>&lt;/p>
&lt;p>Each message is identified by &lt;code>tsmId&lt;/code> (message structure ID). Examples below are shown in both &lt;strong>JSON&lt;/strong> (decoded CBOR) and &lt;strong>CBOR&lt;/strong> (numeric indexes as transmitted on the wire).&lt;/p>
&lt;hr>
&lt;h2 id="messages-by-operating-mode">Messages by Operating Mode&lt;/h2>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Operating Mode&lt;/th>
 &lt;th>Application Messages&lt;/th>
 &lt;th>HIoT Measurement Type&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>Mode 1 (Occupancy)&lt;/td>
 &lt;td>tsmId 2100 + tsmId 13102&lt;/td>
 &lt;td>&lt;code>occupancyStatus&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Mode 2 (Visitor counter, default)&lt;/td>
 &lt;td>tsmId 13100&lt;/td>
 &lt;td>&lt;code>movementDetections&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h2 id="movement-count-tsmid-13100">Movement Count (tsmId 13100)&lt;/h2>
&lt;p>Produced in &lt;strong>Mode 2&lt;/strong>. Reports the number of PIR detections since the last report.&lt;/p></description></item><item><title>Downlink Commands</title><link>https://developer.haltian.io/haltian-iot/devices/sensors/thingsee-presence/cbor-reference/downlink/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://developer.haltian.io/haltian-iot/devices/sensors/thingsee-presence/cbor-reference/downlink/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>This page documents the CBOR-encoded commands sent &lt;strong>to&lt;/strong> Thingsee PRESENCE over the Wirepas mesh network for device configuration.&lt;/p>
&lt;p>For the Haltian IoT Platform equivalent (GraphQL Service API), see &lt;a href="../../downlink-messages/">Configuration Commands&lt;/a>.&lt;/p>
&lt;h2 id="commandresponse-pattern">Command/Response Pattern&lt;/h2>
&lt;p>All CBOR downlink messages follow the same pattern:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Send command&lt;/strong> — Set &lt;code>tsmEv: 30&lt;/code>, include &lt;code>tsmDstTuid&lt;/code> (target device) and &lt;code>transactionId&lt;/code>&lt;/li>
&lt;li>&lt;strong>Receive response&lt;/strong> — Sensor replies with &lt;code>tsmEv: 31&lt;/code>, same &lt;code>transactionId&lt;/code>, all fields populated with current values&lt;/li>
&lt;li>&lt;strong>Verify&lt;/strong> — Compare response values against command to confirm settings applied&lt;/li>
&lt;li>&lt;strong>Query only&lt;/strong> — Send with only header fields (no config parameters) to read current configuration&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>Wirepas endpoint:&lt;/strong> &lt;code>21/21&lt;/code>&lt;/p></description></item></channel></rss>