Skip to content

Commit

Permalink
Add documentation about PCAP start timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPeJu committed Feb 16, 2024
1 parent a335b79 commit 7387259
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
2 changes: 2 additions & 0 deletions config_d/registers
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ BLOCKS_COMPAT_VERSION = 0
PCAP_WRITE 9

# Hardware timestamps
# This starts at unix epoch (UTC)
PCAP_TS_SEC 10
# Ticks since PCAP_TS_SEC was updated
PCAP_TS_TICKS 11

# Position capture control
Expand Down
25 changes: 17 additions & 8 deletions docs/capture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,23 @@ Data Header

At the beginning of each experiment the following information is sent:

=============== ================================================================
arm_time UTC Timestamp sampled in correspondence of the ARM command
missed Number of samples missed by late data port connection.
process Data processing option: Scaled, Unscaled, or Raw.
format Data delivery formatting: ASCII, Base64, Framed, or Unframed.
sample_bytes Number of bytes in one sample unless ``format`` is ``ASCII``.
fields Information about each captured field.
=============== ================================================================
================= ==============================================================
arm_time System timestamp when ARM command was sent
start_time Timestamp of when PCAP became both armed and enabled
hw_time_offset_ns Offset in ns from hardware timestamp to captured system time,
only present when hardware time source is used.
missed Number of samples missed by late data port connection.
process Data processing option: Scaled, Unscaled, or Raw.
format Data delivery formatting: ASCII, Base64, Framed, or Unframed.
sample_bytes Number of bytes in one sample unless ``format`` is ``ASCII``.
fields Information about each captured field.
================= ==============================================================

All timestamps are unix time.

``start_time`` will be a hardware timestamp if a hardware time source which
produces non-zero timestamps is selected, otherwise, it will be a system
timestamp saved by the driver.

For each field the following information is sent:

Expand Down

0 comments on commit 7387259

Please sign in to comment.