- Sector
- Industrial IoT
- Client
- Cirro monitoring platform · Geotechnics
- Year
- 2026
- Role
- Embedded software, protocols and operator tools
Putting old field instruments on MQTT.
C++ agents on cellular routers that bridge a Campbell CR1000 logger and an ISCO 6712 water sampler to MQTT, including remote logger programme updates with automatic rollback.

Results
2
instrument families on MQTT
PakBus
protocol implemented from scratch
21 / 23
emulator test cases passing
Plenty of good instruments in the field still speak RS-232 and expect someone to drive out with a laptop. Changing a logger programme or checking a water sampler meant a site visit. I wrote small agents that run on the Teltonika routers already installed on site and turn those instruments into devices you can query and update over MQTT.
Logger agent (CR1000)
- My own PakBus implementation in C++17, with frames unit-tested against the vendor’s reference examples, table reads and clock sync over NTP.
- Remote CRBasic programme upload with failsafes: validate the file, pull the data first, keep a backup, run the new programme as a trial, commit only if it behaves, and roll back automatically if it does not. An emergency default programme and a relay power-cycle are the last resort.
- An MQTT contract for variables, data, live values and diagnostics, built for both MIPS and ARM routers.
- Logger and PakBus simulators so the whole chain can be tested on a bench before it touches a site.
Sampler agent (ISCO 6712)
- The 6712 serial protocol: auto-baud wake-up, status, bottle and data reports with checksums, and the remote keypad with a model of the 4×20 VT100 screen.
- Packaged as a router package with its own web tab, configured through UCI and deployed through the router’s package manager.
- A hardware-in-the-loop emulator of the sampler, including a field simulation with storms and Manning hydraulics; the test harness passes 21 of 23 cases so far.
- A fleet dashboard with role-based access and email alerts, plus two operator tools: Program Analyzer, which shows the programme that is actually running rather than the one listed, and Program Guardian, which defensively stops programmes started locally outside the permitted window.
Status
Both agents are advanced prototypes: the logger agent runs against a bench CR1000 and the sampler agent is in pre-production testing. They are engineering controls under validation, not certified safety functions.
Services
- Embedded systems & instrumentation
- Telemetry & IoT integration
- Platform & application software
Tools & tech
- C++17
- OpenWrt / RutOS
- Teltonika TRB142 / TRB256
- PakBus
- Campbell CR1000
- ISCO 6712
- MQTT
- Python