Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Passive Crystals and Oscillator Circuits

A BeiDou or GPS module already outputs a pulse per second. Why can the event log be one second wrong?

The timing module powers up and its one-pulse-per-second output is already visible on the scope. The program starts recording the date and time reported by the module. A few minutes later the logged times are corrected, leaving early events a whole second apart from another instrument. Before replacing the reference oscillator, distinguish the edge that marks an instant from the message that assigns an absolute time to it. A steady period shows that pulses are present. Whether the label is valid depends on the receiver configuration and its reported state.

Satellite systems use their own time scales. UTC has separate calendar and leap-second rules. A receiver needs the relevant conversion information before translating satellite time into UTC. Some modules can start with retained information. Others need to recover parameters from received navigation data. A message formatted like a complete date can still have whole-second ambiguity. Compare the exact receiver model, firmware version, pulse output mode, time message and validity flags. Do not transfer a field definition to another receiver family solely because the names match.

A pulse can arrive on time before you can name its second

The u-blox ZED-F9T integration manual describes time output for the satellite systems and flags for valid date, valid time, confirmation and resolved UTC whole-second ambiguity. The interface can distinguish a field that contains a value, the receiver's estimate of current time, and values confirmed by additional information. For an audit log, choose acceptance criteria that fit both the receiver specification and the application. A generic fix indicator cannot substitute for those criteria. Some flags are meaningful only when another validity condition holds.

Suppose two successive events are measured by an independent monotonic counter and are one second apart. The receiver initially labels the first event 12:00:00. Once UTC is confirmed, the valid label is 11:59:59. The elapsed interval did not change, only the absolute label did. Save the original counter, time fields, flags, reference source and time scale. Later, that evidence lets you preserve acquisition order with a provisional label or defer assigning official UTC according to your project's rules.

Check the configured relationship between a timing pulse and its serial message. The pulse can be assigned a time grid and different behavior while locked. The serial message can reach the application after an edge. Use the documented association to label a hardware-captured event, rather than choosing whichever message arrived most recently. A change of time scale paired with old parsing logic can also create an offset. Verify the field definitions and edge association before changing the oscillator.

Exercise the boundary conditions on the bench

In addition to an ordinary restart, test a cold start without retained backup power and a normal restart with backup power. Include a scenario without reliable satellite input. With an independent timing reference, record the first plausible date, the first date that satisfies the acceptance flags, the first pulse and the first business event the software timestamps in UTC. These may be four separate instants. When updating firmware, replay the same raw input and verify that invalid early data does not acquire a convincing but unsupported absolute timestamp.

Test leap-second handling separately. The receiver manual uses a positive leap second to show a minute with a seconds field of 60. A program that only accepts 0 through 59, or silently maps that extra second to the next midnight, can reject or merge events. Use documented test messages or synthetic input, explicitly marked as simulated. Check how the database, interface and independent viewer store the event. Agree on storage and conversion policy for the deployment, since systems handle leap seconds differently.

Ask a supplier how long after power-up the module can produce a qualified time record. Request the specification for pulse output, UTC validity, behavior after loss of lock and backup conditions. Specify oscillator or module stability independently using pulse edge, frequency or holdover error requirements. If the receiver changes, retest message parsing, initialization and timed captures together. The final log should identify the clock that produced the edge, the time scale used and the evidence for accepting the date label.

When a defect reproduces, archive both the raw message bytes and the parsed record. A spreadsheet that has already converted every timestamp cannot show whether the receiver reported ambiguity or the application borrowed an extra second during arithmetic.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.