ArmSoM
← All stories

Moving an Orange Pi 5 Data Logger to Sige7 With Its History Intact

An Orange Pi 5 data logger holds more than an executable. Its calibration, measurement units, time zone and last committed sample determine whether yesterday’s chart joins today’s. When evaluating an ArmSoM Sige7, preserve these application records independently of either board’s boot image.

ArmSoM Sige7 single-board computer product photo

ArmSoM Sige7 single-board computer · ArmSoM

Rehearse the cutover with a copy

Export a consistent database snapshot using the database’s backup facility. Record the last completed sample ID and several known measurements. Restore to a separate Sige7 installation and replay a small batch that overlaps the last sample. Compare both the number of unique records and their values. A gap indicates missing data. A duplicate with a new ID usually points to how the importer identifies a sample.

Take the last three IDs from the source, then replay two of them plus one new ID on the target. A correct idempotent import adds exactly one record and leaves the two earlier measurements intact.

Run the old and new loggers under distinct device identities until you have compared timestamps across a restart. At cutover, allow only the chosen logger to publish under the production identity. A preserved history should still answer an old query with the same units and values.

Reference material

ArmSoM Sige7 hardware documentation

SQLite online backup interface

Linux board description for the original Orange Pi 5

Related ArmSoM guide

Backing up an SBC project before migrating hardware

Explore ArmSoM Sige7