LoRaWAN Timestamp: Measurement Time vs Receive Time

LoRaWAN Timestamp: Why Measurement Time and Receive Time Are Different

A livestock collar uploads a location after returning to network coverage. A sensor sends several stored measurements in one message. A dashboard receives an update and immediately marks it as current.

In each case, one question matters: when was the information actually measured?

A LoRaWAN timestamp can refer to different stages of the data journey. Treating every timestamp as the measurement time can create misleading location maps, incorrect event sequences and inaccurate daily reports.

For GPS trackers and environmental sensors, reliable time handling starts with separating when a measurement was taken from when the platform received it.

What Does a LoRaWAN Timestamp Represent?

An IoT record can have several useful timestamps.

Time fieldWhat it representsMain purpose
Measurement timeWhen the device captured the reading or positionHistorical charts and route playback
Network receive timeWhen a specified network component received the messageCommunication diagnostics
Application ingestion timeWhen the business application accepted the recordIntegration monitoring
Notification timeWhen an alert was sent to an operatorResponse workflow review

These fields may be close together during normal operation, but they are not interchangeable.

The Things Stack, for example, documents an application-level received_at field as the time the Application Server received the message. That field does not independently establish when a sensor sampled its value.

A platform should preserve the meaning of each field instead of copying one receive timestamp into every time-related column.

Why Delayed Data Can Look Like Live Data

Consider this illustrative livestock tracking scenario:

  • At 10:00, a collar records a GPS position.
  • The device cannot successfully deliver the record at that time.
  • At 10:20, it uploads the stored position after communication becomes available.
  • The platform receives the message shortly afterward.

This behavior requires device storage and firmware that support historical upload. It should not be assumed for every LoRaWAN tracker.

If the dashboard displays the stored position as “location at 10:20,” it presents an old measurement as a new one.

A clearer display would show:

Position recorded: 10:00
Message received: 10:20
Position age at receipt: approximately 20 minutes

The device has communicated recently, but its reported position is older. Operators need both facts.

Device Connectivity and Location Freshness Are Different

An online indicator often answers whether the system has recently heard from a device.

A location freshness indicator answers whether the available position is recent enough for the intended task.

A tracker may send a heartbeat without obtaining a new GPS fix. In that situation, the platform can show recent communication while retaining an older location.

For livestock collars, personnel badges and asset trackers, a useful interface should distinguish:

  • Last communication time.
  • Last valid position time.
  • Positioning source.
  • Position validity or quality information, when available.
  • Whether the displayed record is historical or current.

This helps users avoid interpreting a successful uplink as proof of a fresh GPS position.

Preserve Time Information for Stored Measurements

When firmware supports buffering, each stored measurement needs enough information to reconstruct its place in history.

Two possible payload designs are:

Individual timestamps: Each measurement carries its own time value.

A base timestamp with offsets: A batch includes one reference time and an offset for each measurement.

The appropriate design depends on payload size, sampling behavior and firmware requirements. Neither format should be assumed to be a universal LoRaWAN application payload standard.

For batches with irregular sampling, a nominal sampling interval alone may be insufficient. Missing samples, restarts or event-triggered readings can break the assumption that every measurement is equally spaced.

Before integration, document the timestamp unit, reference epoch, byte order and behavior when device time is unavailable.

Account for Device Clock Quality

A device-generated timestamp is useful only when its clock is sufficiently trustworthy.

Questions to resolve include:

  • How does the device obtain its initial time?
  • Does it retain time through sleep and power interruptions?
  • How is clock drift corrected?
  • What happens before synchronization succeeds?
  • Can the payload indicate that time is unknown or uncertain?

Clock synchronization support depends on the device and server implementation. The Things Stack documents support for the LoRaWAN Application Layer Clock Synchronization specification, allowing compatible end devices to request time for timestamping telemetry. This does not mean every deployed sensor already implements it.

For custom firmware, consider including a time-validity flag or synchronization status. A record with uncertain time should remain identifiable rather than silently receiving a fabricated measurement timestamp.

Handle Late Records Without Moving the Live Map Backward

Historical uploads can arrive after newer measurements.

For example, the platform may already hold a valid position recorded at 10:20 when a buffered position from 10:05 arrives.

A suitable application design can:

  1. Save the older position in the historical record.
  2. Place it at the correct point in route playback.
  3. Preserve the newer valid position on the live map.
  4. Mark the historical record as received late.

Updating the live map purely according to arrival order can make an asset appear to jump backward along its route.

Use validated measurement time for historical ordering, while retaining receive time for delivery diagnostics. Where measurement time is uncertain, apply an explicit fallback policy and show the limitation.

Separate Historical Events from Current Alerts

A delayed event can be valuable for investigation without representing a current condition.

Suppose a buffered temperature record indicates a high reading from an earlier period. When it arrives, the platform needs to decide whether to:

  • Add it to the historical alarm report.
  • Notify an operator that a historical event was received.
  • Request or wait for a current reading.
  • Escalate according to the project’s operating rules.

The same issue applies to a livestock collar uploading an older position outside a pasture boundary.

A practical design separates the event’s occurrence time, receipt time and notification time. This allows staff to distinguish a new situation from newly received evidence of an earlier situation.

Keep Time Zones Consistent in Reports

Use a consistent time reference for storage, then apply the appropriate local time zone when displaying records and building operational reports.

For a project with several farms or facilities, each location may need its own reporting time zone.

Define whether daily summaries group measurements by:

  • The local date when the measurement occurred.
  • The date when the application received the record.

These choices produce different results when data arrives late.

For measurement-based reports, also define whether late records update an earlier report or appear in a separate correction. Users should be able to understand why a historical total or chart changed.

Test Timestamp Handling Before Deployment

A pilot should verify more than whether data reaches the dashboard.

Test scenarioWhat to verify
Normal reportingMeasurement and receive times retain their correct meanings
Temporary loss of coverageSupported buffered records preserve their original times
Historical batch uploadEach reading appears in the correct chronological position
Device restartInvalid or reset clock values are detected
Late arrival of an older positionThe live map retains the newer valid position
Time-zone conversionCharts and exports use the intended local date
Delayed alarm recordHistorical and current notifications remain distinguishable

Use a trusted reference clock during testing. Record both the timing error and the conditions under which it occurred.

Acceptance criteria should match the application. A slowly changing environmental trend and a personnel event timeline may require different time accuracy.

Specify Timestamp Requirements in an OEM Project

For a custom LoRaWAN device, timestamp behavior should be part of the firmware and platform specification.

Useful requirements include:

  • Measurement timestamp format and resolution.
  • Clock synchronization method.
  • Clock behavior after restart.
  • Time-validity indication.
  • Storage capacity and historical upload behavior.
  • Record identifiers for detecting repeated uploads.
  • Handling of late and out-of-order records.
  • Report correction rules.
  • Separate communication and measurement freshness indicators.

These requirements complement the LoRaWAN payload decoder specification. Correctly decoding a number is only part of the task; the platform also needs to know when that number was measured.

The sampling interval and reporting interval guide provides related background on why measurement timing and transmission timing can differ.

Frequently Asked Questions

Does every LoRaWAN uplink include a measurement timestamp?

No. Application payloads differ between products. A receive timestamp supplied by the network does not automatically provide the original measurement time.

Can a frame counter replace a timestamp?

No. A frame counter is not a wall-clock measurement time. It should not be converted into an exact sampling time by assuming a fixed reporting interval.

Does a recent uplink mean a fresh GPS position?

No. The uplink could contain a heartbeat, an older position or stored data. Confirm position time and validity separately.

Should late data be discarded?

Not automatically. It can remain useful for historical analysis. The application should identify late records and handle them according to the reporting and alert requirements.

Custom LoRaWAN Device and Platform Integration

Shenzhen Jinshengchang Technology Co., Ltd. can discuss OEM/ODM requirements for livestock collars, personnel badges, asset trackers and sensor terminals.

For projects requiring reliable historical routes and sensor reports, specify measurement timing, device storage, clock recovery and platform processing together. Confirm the supported behavior for the selected hardware and firmware before deployment.