Reading in the field
Data starts out in the native language of inverters, grid analyzers, RTUs and irradiance sensors. The most common of these languages are Modbus TCP, Modbus RTU over serial lines, and IEC 60870-5-104.
Our data collector, running at the plant on a Raspberry Pi or an industrial computer, polls each device using its own protocol. It converts the values it reads into a common format and transforms them where needed; this way, devices from different manufacturers look the same in the central system.
When the connection drops: store and forward
Field connections are not always flawless. That is why the data collector first writes what it reads to a local queue; it forwards the data immediately if there is a connection, or in order once the connection is restored. Because messages are sent compressed, the data that piles up during an outage doesn't overload the line either.
- Live values are sent at short intervals in small packets.
- Bulk records are sent compressed and in sequence.
- The queue has an upper limit; the oldest records are pruned before the disk fills up.
Live stream and persistent records take separate paths
The second-by-second stream you see on screen and the record you will see in a report years later are not the same need. Live values flow directly to the interface over a real-time channel and are not stored.
Persistent records, on the other hand, are written to a time-series database and kept at tiered resolution: the recent past at fine granularity, older data more sparsely. This keeps queries fast, while storage requirements shrink many times over compared to storing every second.
Catching missing data
Every data pipeline runs into missing data sooner or later. What matters is noticing it: when a loss of communication exceeds a certain duration, an alarm is raised, and the missing intervals are flagged in reports and filled in with the data that comes back. Cases such as meter resets or rollovers are also handled separately; otherwise, a single reset could misrepresent a whole day's production.