OTDeck

Docs · Commissioning tools

Device snapshots

A snapshot is every value OTDeck knows of one connection at one moment, kept on disk with the time, the device identity, the OTDeck version and a note. The typical use is a commissioning visit: take a snapshot before you start, another when you are done, and compare them to see exactly what changed (setpoints, out-of-service flags, priority arrays, firmware).

A snapshot only reads. It goes through the same read paths as the views, so production connections keep their one-request-at-a-time rule, and on a production connection the snapshot also waits 100 ms between requests.

Take one

  • Snapshot in the toolbar of a protocol view, or Take a snapshot of … / Snapshots: compare before and after… in the command palette (⌘K / Ctrl+K).
  • Pick an open connection, give it a name (“Before visit”) and an optional note, then Take snapshot.

What is captured:

Protocol Items Options
Modbus every register of every range of the connection, named with its 40001-style reference; a range never polled (polling paused, just added) is read once none
OPC UA the watch list with value and quality optionally a browse from a start node (e.g. ns=2;s=Plant1), variables only, at most 500 nodes by default, 5000 at most
BACnet for every object of every known device: present value, status flags, out-of-service and, for commandable objects, the priority array (“8: 65.0; 16: 72.0”) at most 2000 objects by default (5000 at most); every property of up to 20 chosen objects
MQTT the last message of every topic under a filter (retained ones marked), payload preview up to 1 KiB the filter, # by default

Device identity comes from the same place as the commissioning report: OPC UA server build info and certificate, BACnet device objects (vendor, model, firmware), the MQTT broker, the Modbus unit id.

Bounds: at most 50 000 items per snapshot; values are cut at 1 KiB, names at 256 bytes, and control characters are dropped, whatever a device sends. A snapshot stops after 3 minutes; a capped or stopped snapshot says so (“capped” in the list, notes in the file).

The list

Snapshots are kept in the app’s data folder, snapshots/, one gzip-compressed JSON file per snapshot (snap-YYYYMMDD-HHMMSS.json.gz, readable with zcat … | jq) and a small metadata file for the list. The file format has a version; a file made by a newer OTDeck, a damaged one or one larger than 16 MB compressed is listed with its error and can only be deleted. Rename edits the name and note, Delete removes the files.

Compare

  • Tick two snapshots and Compare selected (the older one is “before”), or With now on one row to compare it with the connection as it is now (read the same way, with the same options, not stored).
  • The table groups items as the protocol does (Modbus range, OPC UA watch list or browsed parent, BACnet object type, first MQTT topic level) and shows before → after. Changed only (on by default) hides unchanged items; the filter narrows by item, key or value.
  • Changes are marked by sign and weight, not by colour (ISA-101): ≠ changed, + added, − removed, and the new value in bold. A change of quality (“72.0” → “72.0 (bad)”) counts as a change.
  • Changes of the device identity (firmware, model…) are listed above the table. Two snapshots of different connections can be compared; a note says so.
  • Export CSV… (Pro) saves the comparison: group, item, key, change, before, after, unit and both times. Cells starting with =, +, -, @, tab or carriage return are prefixed with ' so a spreadsheet never runs them as formulas.

In the commissioning report (Pro)

The report dialog has an optional Snapshot comparison: pick the “before” snapshot and an “after” one of the same connection, or “the connection now”. The report gets a section Snapshot comparison with only the differences (at most 2000 rows) and the identity changes.

Free and Pro

Taking, viewing and comparing are free, with at most 3 stored snapshots (delete one to take another). Pro keeps any number, exports comparisons and adds the report section. See Licence and activation.