MTechZilla

How an Oil and Gas Operator Brought Every Acquired Basin Into One View Without Replacing SCADA

As an oil and gas software development company, we built production software that gives an upstream operator a single view of production, allocation, and methane data across acquired basins. It reads from the operator’s SCADA (supervisory control and data acquisition) systems and plant historian without replacing them, and never writes to the control network.

Oil and gas production software linking pumpjacks and a tank battery, read-only, to a production dashboard and field app

About the client

An independent upstream oil and gas operator produces onshore oil and associated gas from 300–500 wells across several basins. It grew through acquisitions, and each basin came with its own SCADA (supervisory control and data acquisition) system and production accounting setup.

None of these systems matched, and each acquisition added another spreadsheet and another manual step before volumes reached the ERP (enterprise resource planning) system.

The operator wanted one record of production, allocation, and methane data across every basin. Its OT (operational technology) and security teams set four rules. Access had to be read-only, through a DMZ (a buffer network between control and business systems). Nobody could touch device firmware. The rollout had to go basin by basin with existing systems kept in place, and every reported figure had to trace back to its source reading.

We built every layer in one team: OT connectors, an offline field app, daily allocation, ERP integration, and emissions reporting. That meant one security review for the operator, not one per vendor. The platform runs in the operator’s own cloud account, on tools its engineers can maintain after handover.

Project details

Scope
OT integration, data platform, offline field app, ERP integration
OT Access
Read-only, through a DMZ

Results

  • Zero writes to control systems
  • Allocation: monthly → daily
  • 300-500 wells in one asset model

The challenge

What each team worked around every day

Four teams depended on the same field data: production engineers, pumpers, production accountants, and the HSE (health, safety, and environment) team. No system held every well in one model, so each team filled the gaps by hand, and every manual step added delay or errors.

What each team worked around every day
TeamHow they workedWhat it cost them
01 / 04PumpersRecorded run tickets, tank gauges, and downtime codes on paper or in spreadsheets, often from sites with weak cellular coverage.Field data reached the office days late, often with typos, so every calculation downstream started from stale numbers.
02 / 04Production engineersSwitched between two HMIs (human-machine interfaces), one per basin, each naming the same readings differently. One basin ran older Modbus RTUs (remote terminal units), the other newer OPC UA PLCs (programmable logic controllers), and only one kept a plant historian.No shared history to trend wells against. A downed well went unnoticed until a pumper drove by or someone checked the right screen, leading to deferred production.
03 / 04Production accountantsRan monthly meter-to-well allocation in spreadsheets from that late field data, splitting each meter’s volume across its wells and accounting for shrink and deferment. Then re-keyed the results into the ERP by hand.Joint interest billing for well partners waited until the spreadsheet was done.
04 / 04HSE teamKept measured methane readings and calculated engineering estimates in separate spreadsheets, with no audit trail between them.Reported figures couldn’t be traced to a source reading or method when a regulator asked.

Each gap fed the next.

Late field data slowed allocation, slow allocation held up billing, and with no single record behind the numbers, nobody could prove where a methane figure came from.

The same gap shows up across the industry. EY notes that much of upstream’s above-ground data still lives in disconnected paper records and spreadsheets (EY, 2020).

Build vs. buy

Why the operator kept SCADA instead of replacing it

The operator ruled out three options before calling us. What it needed was a layer that reads every source as-is.

  1. Ruled out

    Replace SCADA with one vendor’s system

    High cost and field downtime, and control-system work wouldn’t fix the data problem.

  2. Ruled out

    Buy off-the-shelf production allocation software

    The products it evaluated couldn’t read the legacy RTUs or model its allocation rules.

  3. Ruled out

    Keep the spreadsheets

    Reporting delays and audit risk grew with every acquisition.

A custom layer for oil and gas data management could keep SCADA, the historian, and the ERP as systems of record, and add only what was missing. It’s the same approach we take in legacy app modernization: wrap what works, and replace nothing that runs operations.

Our approach

How we joined every basin’s data without touching SCADA

The platform reads every source through one read-only path and writes nothing back. Every basin’s data lands in one asset model before anything else uses it.

  1. 01

    Read-only OT connectors

    Connectors for OPC UA, Modbus, MQTT (a lightweight messaging protocol for field devices), Sparkplug B, and the historian’s Web API read data through the DMZ and never write back. A store-and-forward buffer keeps history complete when links drop.

  2. 02

    One asset model across basins

    We mapped every tag from every basin to one well, pad, facility, and field hierarchy, with shared names, units, and time zones.

  3. 03

    Offline-first field app

    Our field data capture software lets pumpers record run tickets, tank gauges, and downtime codes at the site. Offline sync uploads each entry when signal returns.

  4. 04

    Traceable allocation and emissions

    Allocation runs daily on versioned rules, and every methane figure links back to the readings and method behind it.

  5. 05

    ERP integration

    Allocated volumes post to the ERP through its API every day, so nobody re-keys numbers before joint interest billing.

  6. 06

    Monitoring and alerts

    Live dashboards flag downed wells, abnormal pressures, and deferred production.

The trade-off:

Read-only access ruled out changing setpoints remotely from the new platform. In return, the security review had one boundary to examine, and control stayed in the operator’s existing SCADA.

What we’d do first on the next acquisition

Map the tags before building anything else. Every allocation run, alert, and methane figure depends on knowing which tag belongs to which well, and each acquired basin named them differently. Getting that mapping right first is what made the rest of the platform trustworthy.

Engineering

How we solved the four hardest engineering problems

Each problem came from the operator’s constraints. We settled all four in the design review before writing a connector.

  1. 01 / 04

    Reading two SCADA generations without write access

    The Modbus RTUs answer only when asked, so their connector polls registers on a fixed schedule. The OPC UA PLCs support subscriptions, so their connector receives changes as they happen. Where devices publish over MQTT Sparkplug B, the connector reads birth and death messages so that the platform can tell a lost link from a downed well.

    Every connection opens outward from the edge server. No inbound ports are open into the control network.

  2. 02 / 04

    One asset model for basins that name things differently

    A mapping table ties each source tag to a well, pad, facility, or field, with its unit and time zone. The platform stores timestamps in UTC (Coordinated Universal Time) and normalizes units on ingest. Tags keep their original names in each SCADA system, so field teams still use the names they know.

  3. 03 / 04

    Allocation and emissions figures an auditor can rerun

    Allocation rules are versioned in configuration so that the operator can rerun a past month with the rules in force at the time. Downtime codes from the field app feed straight into the deferment calculation. Posts to the ERP are idempotent, so a retry can’t double-count volumes in joint interest billing.

    Each methane figure stores the sensor readings and approved method behind it, for rules such as EPA (U.S. Environmental Protection Agency) Subpart W and the EU Methane Regulation. Every export is logged. Keeping the source data lets the operator report under whichever version applies.

  4. 04 / 04

    Keeping history complete over satellite links

    The store-and-forward buffer writes each reading to the edge server’s disk before sending it. When a link drops, readings queue locally with their original timestamps. When it returns, the buffer replays them in order, so allocation and emissions figures are never built on gaps.

Running SCADA, a historian, and spreadsheets that don’t agree?

Tell us what each basin runs today. As an oil and gas software development company, we’ll show you which layer to build first.

Kickoff in 7–14 days · You own 100% of the code · 5.0 ★ on Clutch

Technology

Technology we chose for this project

We chose tools the operator’s own engineers can run after handover, deployed in the operator’s own cloud account.

Technology we chose for this project
LayerTechnologyWhy we chose it
01 / 09Edge connectorsOPC UA, Modbus TCP/RTU, MQTT Sparkplug B, DockerOne container per protocol on the client’s edge servers, so the OT team can update one without touching the others
02 / 09IngestAWS IoT CoreReceives MQTT from the DMZ over outbound-only TLS connections
03 / 09Time-series dataPostgreSQL with TimescaleDB on Amazon RDSPlain SQL for accounting and HSE queries, with compression for years of tag history
04 / 09Backend servicesNode.js, TypeScript, NestJSAllocation, emissions, and alert services share one typed asset model
05 / 09Web dashboardsReact, Next.js, Tailwind CSSEngineers, accountants, and HSE work in the browser with role-based views
06 / 09Field appReact Native, Expo, SQLite on deviceOne codebase for iOS and Android; entries stay on the device until signal returns
07 / 09System integrationHistorian Web API, ERP APIReads from the historian and posts to the ERP with no file drops or re-keying
08 / 09Cloud and deliveryAmazon ECS, Terraform, GitHub ActionsThe operator can rebuild the whole environment from code, without us
09 / 09Security and monitoringOAuth 2.1 with PKCE, role-based access, audit logs, OpenTelemetry, Grafana, Amazon CloudWatchEach team sees only its own data, and every export and alert is traceable

Process

How the engagement ran, from discovery to cutover

We followed the four steps we use on every energy build, with one change: the security review came before any code. That settled OT approvals before sprint 1, not during it.

  1. 01

    Discovery

    We listed every system, tag source, and spreadsheet in each basin, and the reports each team owed.

  2. 02

    Architecture and security review

    We agreed on the read-only DMZ design with the OT and security teams before writing a connector.

  3. 03

    Build in sprints

    We shipped in two-week sprints, with a working demo at the end of each.

  4. 04

    Parallel run and cutover

    In each basin, new reports ran alongside the old spreadsheets until the figures matched.

Results

Allocation now runs daily, with every well in one asset model

The operator now runs allocation daily instead of monthly, with all 300–500 wells in one asset model. It got there without a single write to its control systems.

Allocation now runs daily, with every well in one asset model
TeamBeforeAfter
01 / 05Production engineersTwo HMIs, production history in one basin onlyEvery basin in one asset model, with the same names, units, and time zones
02 / 05PumpersPaper and spreadsheets, reaching the office days laterEntered at the site in the pumper app, synced when signal returns
03 / 05Production accountingMonthly spreadsheets, re-keyed into the ERPDaily runs, posted to the ERP through its API
04 / 05HSE and regulatorySeparate spreadsheets, no audit trailEach figure linked to its source reading, every export logged
05 / 05Downed wellsFound on the next pumper visit, or spotted on the right HMIAlert from live SCADA data

How the next acquisition plugs in

The next acquisition does not need a new platform. Its basin needs a connector for its protocol and a tag mapping into the existing asset hierarchy. Its wells then appear in the same allocation, emissions, and alert views.

Planning your next acquisition?

Tell us what each basin runs today: protocols, historian, and spreadsheets. We’ll show you what one read-only data layer across all of them would take.

Kickoff in 7–14 days · You own 100% of the code · 5.0 ★ on Clutch

FAQs

Questions OT and security teams ask us

Book a discovery call

Can you pull SCADA data in oil and gas without write access to control systems?

Yes. Our connectors only read, through a DMZ, so the control network stays protected, and setpoints stay in your existing SCADA.

What happens when a remote site or a pumper loses signal?

On the edge server, store-and-forward buffering holds readings and sends them in order when the link returns. In the field, the field data capture software keeps entries on the device until it reconnects. Neither leaves gaps in history.

Do you change RTU, PLC, or sensor firmware?

No. The connectors are software on edge servers your OT team provides.

Who maintains the platform after handover?

Your team can. It runs in your own cloud account, and the whole environment is defined in Terraform, so your engineers can rebuild it without us.

Can upstream oil and gas software like this write setpoints later?

Not through this platform. Control stays in your SCADA, and adding write access would need its own security review.