A readable date after reboot does not guarantee trustworthy timestamps. Preserve RTC status and compare local append order separately from network receipt time.
This article covers maintenance self-test logs on an offline prototype using synthetic events and simulated times. It does not involve passenger data, operating terminals, fare validation, charging, inspection rules or permissions. The question is whether the prototype can explain event order after restart, not whether the calendar display looks normal.
Three time concepts serve different purposes
First is the local calendar value read at an event. Fields within valid ranges can be parsed, but backup failure, restored initialization or a clock update can break continuity. Preserve time quality for each event: verified, pending or evidence of interruption. A later successful synchronization does not retroactively validate earlier logs.
Second is append order within one bench device. Give stored events stable sequence identifiers so it is possible to tell which entered the local record first. This establishes append order within its scope, not absolute time or a global order across devices. If counters restart, retain session IDs and counter scope. Identical numbers after reboot need not identify the same event.
Third is receipt time. Events buffered offline may arrive together once connectivity returns. That is when they were received, not when they happened. One “time” column hides whether a batch resulted from network recovery, reboot or maintenance activity. Keep receipt and local time quality in exports and diagnostics.
A running 32.768 kHz source does not establish calendar continuity
Epson RX8111CE grade A, X1B000421000115, is an example RTC module with a built-in 32.768 kHz crystal. It can report low voltage, power-on reset status and crystal-stop evidence. These indicate different observed conditions. None alone establishes when a fault happened or how long power was absent.
Follow the exact part's definitions for retained flags, updates and what initialization overwrites. If code initializes first and then logs “RTC normal,” earlier status may be gone. Capture original flags and read time at the documented point before approved initialization or synchronization. This is a bench candidate, not a known transit-device part, and other RTCs may use different flags and clearing rules.
A 32.768 kHz waveform now establishes the output only at this point and time. Restarting an oscillator does not recover elapsed time during a stop. Conversely, if a lot repeatedly behaves abnormally, check power transfer, status and assembly. Two timestamps out of order do not establish crystal failure.
Worked example: three synthetic records without a contradictory timeline
Suppose append IDs 1201, 1202 and 1203 were written in that order. The verified local time of 1201 is 08:04:10. Record 1202 follows restart before a time check: 07:58:00 parses correctly, but a voltage anomaly is recorded. After independent synchronization, 1203 is stamped 08:11:20. The test interface receives all three at 08:15:00.
Sorting by local time would place 1202 first. Replacing local time with receipt time would make all three appear simultaneous. Preserve each local field and status, display in append order for that device and keep receipt time separately. Mark 1202 “local time unverified” without inventing a corrected value. The verification for 1203 applies only to its confirmed interval.
For scale, a constant hypothetical 20 ppm error over an hour gives 3,600 × 20 ÷ 1,000,000 = 0.072 seconds. That is not this part's rating and does not explain a reversal of more than six minutes or tell you how long oscillation stopped.
Verify the record chain before and after a power interruption
First run fixed synthetic events at known times without interruption. Ensure maintenance exports distinguish append order, local calendar and receipt. Do not fill gaps automatically because delivery is delayed. Then test recovery on an isolated low-voltage board under the manufacturer-approved method. Compare first RTC status and calendar read, synchronization evidence and the first resumed self-test events. If hardware failure cannot be reproduced, inject explicit simulated status in software and report only display or logic verification.
Finally, test the recovery export by delaying simulated delivery without changing ticketing or verification logic. Compare exports for original time quality, ordering and separate late receipt. When a record reappears from retransmission, recognize it by stable ID rather than a mutable date. Retain missing fields and boundaries rather than making the report look complete by filling in times.
| Check | Engineering evidence | Purchasing or quality checks |
|---|---|---|
| RTC candidate | First calendar and flag reads | Full ordering code, interface and flag semantics |
| Backup path | Supply and read sequence within one window | Lot, board revision and conditions |
| Diagnostic archive | Separate event order, local time and trust state | Supported firmware and storage versions |
| Delayed reception | Delivery time, original state and duplicate boundaries | Do not overwrite event time with receipt |
For a substitute, ask about preservation and reading of status as well as frequency. If a new part reports only current oscillation and cannot provide historical evidence the software needs, validate the application difference. A readable date is not equivalent maintenance traceability.
Frequently asked questions
Does automatic synchronization after reconnect make earlier events accurate? No. It cannot recover unknown earlier timestamps. Mark verified intervals and events with known relative order only.
Can we use append order without tracking date trust? It helps local diagnosis but does not provide absolute time. Keep both fields and explain their scopes when both questions matter.
