Case studyGovernment & PSU · Oil & gas

Pipeline-grade GPS surveillance, built to tender SLAs.

A geo-fenced telematics platform for a major indian psu oil & gas pipeline operator — 53 devices along the corridor, ±25 m accuracy, 24-hour service restoration, 72-hour device replacement. Built on ESP32 firmware, Spring Boot 3, Postgres, and a multi-tenant ThingsBoard PE deployment.

Sector

Government & PSU

Assets

53 devices

Accuracy

±25 m geo-fence

SLA

24 hr restore · 72 hr swap

The brief

The operator runs a cross-state branch pipeline moving product between a refinery terminal and multiple inland depots. Vehicle movement along and near the right-of-way is a safety-critical signal: a truck inside a geo-fenced buffer during a maintenance window, or an asset moving when it should be stationary, needs to reach the control room before it reaches anything else.

  • 53 tracked assets (vehicles and portable monitoring kits) spread across the corridor.
  • Geo-fence accuracy within ±25 m, with alerts delivered to the control room in near real time.
  • 24-hour service restoration SLA — if the platform goes down, it is back up within 24 hours.
  • 72-hour device replacement SLA — if a physical device fails, a replacement is on the vehicle within 72 hours.
  • Tender-grade evidence log — every event tied to an immutable audit trail that would survive scrutiny under the Bharatiya Sakshya Adhiniyam.

What we built

Device firmware (ESP32)

A hardened firmware for commercial-off-the-shelf GPS devices and our own ESP32 reference boards. Store-and-forward when the uplink is intermittent, over-the-air update channel for policy changes, tamper detection, and a signed-heartbeat protocol so the control room can tell a quiet device from a dead one.

Backend (Spring Boot 3 + Postgres)

A Java service responsible for device provisioning, asset-to-vehicle binding, the geo-fence engine, event escalation, and the regulatory evidence log. Multi-tenant from day one — the same platform runs the production fleet and the maintenance fleet without the two tenants seeing each other’s data.

Visualization & operator UI (ThingsBoard PE)

ThingsBoard Professional Edition carrying the tenant-level dashboards, device telemetry, and control-room map. Operators see the pipeline right-of-way, the geo-fence corridors, live asset positions, and the escalation queue on a single screen. Alarm handling, acknowledgement, and resolution are first-class.

Integrations

Device-vendor APIs for provisioning, SMTP + SMS for escalation out-of-band, and a reporting pipeline that feeds the operator’s existing compliance reports without asking anyone to change the format they have been filing for years.

Why this is harder than it looks

  • Accuracy budget is tight. ±25 m on a moving asset using commercial-grade GPS, across a corridor that runs through varied terrain, is at the edge of what the physical devices can give. A meaningful chunk of the engagement went into filtering, dead-reckoning, and geo-fence padding — not dashboard pixels.
  • The network is the system. 4G coverage along the corridor is patchy. Store-and-forward is the design, not the fallback. The event that matters is the one that arrives three minutes late, not the one that was dropped.
  • The SLAs are real. 24-hour service restoration means the entire stack — device, network, backend, visualization, escalation — has to be observable enough that the on-call engineer knows where to look inside ten minutes. The platform has to help you keep the SLA, not just measure whether you kept it.
  • The auditor is a user. Every alert, acknowledgement, resolution, and device change is logged with a hash-sealed audit trail. If the operator ever has to defend a near-miss under BSA 2023, the evidence is already there.

What we’d tell a peer buyer

  • If a telematics vendor is offering a PSU operator a pipeline-grade SLA on commercial-grade devices without an engineering partner behind it, ask who gets paged at 2 AM.
  • ThingsBoard PE is a strong foundation for PSU IoT work, but its out-of-the-box flows are not tender-ready — expect to build the audit layer, the tenant model, and the operator ergonomics yourselves.
  • AIS 140 devices and the AIS 140 protocol are not the same thing. The devices your supplier offers may need firmware work to meet the field’s expectations.

A note on confidentiality

Specific routes, operator identity, and tender documents are covered by the engagement’s non-disclosure clauses. We’re happy to arrange a reference conversation for prospective PSU clients evaluating a similar build under NDA.