Guidance Required: Multi-Sensor Synchronization and Sensor Fusion on Jetson Orin NX (JetPack 7.2.1)

Hello experts,

We are currently planning to develop and demonstrate a multi-sensor fusion application using the NVIDIA Jetson Orin NX, running JetPack 7.2.1.

Our planned hardware configuration consists of:

  • 6 × GMSL cameras

  • 1 × Ouster OS1 LiDAR

  • 1 × Radar (yet to be confirmed)

  • 1 × IMU (ICM-42688-P)

  • 1 × GNSS receiver providing NMEA and PPS outputs

  • NVIDIA Jetson Orin NX (Hardware PTP support enabled) as the central processing platform

Our intended architecture is to use the GNSS receiver as the absolute time reference and the Jetson Orin NX as the central processing and synchronization platform.

                     GNSS RECEIVER
                  (GPS / Global Navigation)
                    |                 |
              NMEA / UART          1 PPS
              (UTC, Position)    (Timing Reference)
                    |                 |
                    +--------+--------+
                             |
                             v
                  +----------------------+
                  | NVIDIA Jetson Orin NX|
                  |                      |
                  | GNSS-disciplined     |
                  | clock (intended)     |
                  |                      |
                  | PTP Grandmaster     |
                  | (IEEE 1588, intended|
                  | where supported)    |
                  |                      |
                  | Sensor Fusion       |
                  | DeepStream / DS3D   |
                  +----------------------+
                     |        |        |
          +----------+        |        +-----------+
          |                   |                    |
          v                   v                    v
   +-------------+    +----------------+    +-------------+
   | 6 x GMSL    |    | LiDAR + Radar  |    | IMU         |
   | Cameras     |    |                |    |             |
   |             |    | Ethernet/PoE   |    | I2C / SPI   |
   |             |    | PTP / IEEE1588 |    | ICM-42688-P |
   |             |    |                |    |             |
   | GMSL -> CSI |    | Ouster OS1     |    | FSYNC /     |
   |             |    | Radar          |    | Timestamp   |
   | HW Trigger  |    |                |    |             |
   | 30 Hz       |    | 10/20 Hz       |    |             |
   +------+------+    +-------+--------+    +------+------+
          |                   |                    |
          +-------------------+--------------------+
                              |
                              v
                    +----------------------+
                    |    SENSOR FUSION     |
                    |                      |
                    | Timestamp alignment  |
                    | Calibration          |
                    | Coordinate transforms |
                    | Camera + LiDAR       |
                    | + Radar + IMU        |
                    +----------+-----------+
                               |
                               v
                    +----------------------+
                    |    PERCEPTION / AI   |
                    |                      |
                    | 3D Object Detection  |
                    | Object Tracking      |
                    | Scene Understanding  |
                    | Visualization        |
                    +----------------------+

2. Current implementation status

1. GNSS synchronization

  • We have synchronized the Jetson Orin NX with an external 1 PPS signal from a GNSS receiver by using chrony.

  • The GNSS receiver also provides NMEA data containing UTC time and positioning information.

  • Our objective is to maintain a GNSS-disciplined time reference on the Jetson.

2. Camera synchronization

  • We have configured hardware triggering for the camera using a Jetson platform GPIO/PWM signal.

  • The camera synchronization signal operates at 30 Hz.

  • We are capturing camera frames through the V4L2 interface.

3. Camera timestamp investigation

  • We have inspected the NVIDIA camera driver implementation, particularly:
    public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c

  • We observed the following assignment:

    vb->vb2_buf.timestamp = descr->status.sof_timestamp;

  • We understand that the current V4L2 frame timestamp is based on the platform’s hardware timestamp/counter mechanism (TSC).

3. Areas where we need NVIDIA’s guidance

Question 1: Obtaining UTC timestamps for camera frames through V4L2

We currently receive camera frame timestamps through the V4L2 buffer interface.

As mentioned above, the NVIDIA camera driver assigns the SOF timestamp using:

vb->vb2_buf.timestamp = descr->status.sof_timestamp;

Our requirement is to associate every captured camera frame with an accurate UTC timestamp referenced to the GNSS-disciplined clock.

We would like to understand:

  1. Is there an NVIDIA-supported mechanism to obtain the UTC equivalent of the camera SOF timestamp?

  2. Is it possible and recommended to modify the V4L2 driver so that the buffer timestamp directly represents UTC time instead of the existing timestamp clock domain?

  3. If directly replacing the V4L2 timestamp is not recommended, what is the correct approach to preserve the original SOF timestamp and provide its corresponding UTC timestamp to GStreamer and DeepStream?

Question 2: Synchronizing LiDAR , camera and IMU data with different operating frequencies

We are planning to use an Ouster OS1 LiDAR connected over Ethernet.

Our understanding is that the LiDAR can synchronize its clock using IEEE 1588 PTP, with the Jetson acting as the PTP Grandmaster, provided the network interface and PTP configuration support this arrangement.

The expected operating frequencies are:

  • Camera: 30 FPS

  • LiDAR: 10 Hz or 20 Hz

  • IMU : 100Hz

In this scenario, the camera, LiDAR and IMU will not produce data at the same frequency.

We would like to understand:

  1. What is the recommended method to associate camera frames with LiDAR measurements using timestamps?

  2. Should we use the LiDAR scan timestamp, individual point/column timestamps, or another timestamp reference?

  3. How should we handle the fact that a LiDAR scan is acquired progressively while the camera captures a frame at a particular exposure interval?

  4. Does DeepStream DS3D provide any built-in timestamp-based synchronization or temporal association mechanism for this use case?

  5. What is the recommended approach for motion compensation when the camera and LiDAR measurements are acquired at different times?

Question 3: Validating synchronization accuracy

We would also like to validate the synchronization accuracy across all connected sensors.

What tools, NVIDIA APIs, or recommended procedures are available to measure:

  • GNSS PPS to Jetson clock offset

  • Jetson clock to Ethernet PTP device clock offset

  • Camera hardware SOF timestamp accuracy against UTC

  • LiDAR PTP synchronization accuracy

  • IMU timestamp accuracy and synchronization with the Jetson

  • Long-term clock drift between the sensors

Are there any recommended NVIDIA tools or example applications for performing these measurements on Jetson Orin NX?

Question 4: Using NVIDIA DeepStream for sensor fusion

We are planning to use NVIDIA DeepStream and its 3D sensor fusion capabilities for our demonstration.

We have been exploring the following examples:

A. BEVFusion

We found the DeepStream BEVFusion example for multi-camera and LiDAR fusion.

However, our understanding is that the documented workflow involves a separate x86-based machine/server for some of the inference components.

Since we have only the Jetson Orin NX platform available, could you clarify whether this example can be adapted to run completely locally on the Orin NX? If so, what components would need to be modified or replaced?

B. V2XFusion

We also found the DeepStream V2XFusion example.

Could you provide guidance on whether this example can be adapted for our configuration of 6 cameras and 1 LiDAR, running locally on Jetson Orin NX?

In particular:

  1. Is this example suitable for demonstrating camera-LiDAR sensor fusion?

  2. Can it be adapted to our camera and LiDAR configuration?

  3. Does it support timestamp-based synchronization of incoming sensor data, or would we need to implement temporal association separately?

  4. Can the required inference components run locally on the Orin NX without an external x86 GPU server?

C. Radar and IMU integration

In addition to cameras and LiDAR, we intend to integrate radar and IMU data.

What is the recommended way to introduce radar detections and IMU measurements into the DeepStream/DS3D pipeline?

Would you recommend implementing a custom fusion component for radar and using a separate localization/state-estimation component for IMU and GNSS?

4. Objective of the initial demonstration

At this stage, our primary objective is to demonstrate a working multi-sensor fusion application on the Jetson Orin NX.

We would initially like to demonstrate:

  • Camera-LiDAR fusion

  • 3D object detection and tracking

  • Radar-assisted object detection/tracking, if feasible

  • Timestamp-based association of measurements from different sensors

  • Visualization of the fused results

We would prefer to use NVIDIA DeepStream/DS3D wherever possible rather than develop the entire perception pipeline from scratch.

We would appreciate guidance from NVIDIA engineers and the developer community on the recommended synchronization architecture, timestamp handling, and DeepStream implementation approach for this hardware configuration.

Hello jovial,

SOF in vi5_fops.c is the VI/RCE TSC timestamp in nanoseconds. It is not UTC and is not moved when chrony disciplines CLOCK_REALTIME from GNSS PPS. NVIDIA does not support converting that counter to UTC inside the V4L2 driver, and we do not recommend replacing vb2_buf.timestamp with epoch time. GStreamer and DeepStream use that field as the capture clock for muxing; UTC/NTP steps will break it.

Keep the original SOF. Convert in userspace and attach UTC as extra metadata (NvDsMeta / GstMeta).

On Jetson, /dev/nvpps0 (NVPPS_GETEVENT, NVPPS_GETTIMESTAMP) is the supported way to snapshot TSC and PTP together, including GPIO PPS. Then:

t_utc ≈ sof_tsc + (ptp_at_event − tsc_at_event)

(apply TAI−UTC if your PHC is TAI). NVPPS is present for T234, but Orin NX device trees often do not enable it by default (AGX Orin reference does). Confirm /dev/nvpps0, wire GNSS PPS into nvpps-gpios, and point primary-emac at the PTP NIC. Chrony+PPS alone is not that correlation.

Also derive the 30 Hz camera FSYNC from GNSS PPS (30 pulses per PPS second) so exposure is phase-locked to UTC, not a free-running PWM.

For camera + LiDAR + IMU at 30 / 10–20 / 100 Hz, associate on that common UTC/PTP timeline. Use OS1 column/packet timestamps, not only scan start; motion-compensate the sweep to camera mid-exposure (SOF + exposure/2) with IMU. DeepStream DS3D mixer runs at a configured rate and is limited by the slowest source. It does not timestamp-match live sensors. The BEVFusion/V2X samples use already-aligned recorded datasets.

There is no NVIDIA tool that reports this full sync budget on Orin NX. Use chronyc, ptp4l/phc2sys/ts2phc, NVPPS PPS vs SOF, six-camera SOF spread on one FSYNC, Ouster PTP status, and a scope on PPS vs FSYNC vs trigger.

On DeepStream 9.1 (JetPack 7.2.1):

  • BEVFusion is 6 cameras + 1 LiDAR, which matches your topology, but the CUDA-BEVFusion Triton server requires an x86 dGPU (compute capability ≥ 8.0). Orin NX can only be the client. The sample reads files, not live GMSL/OS1.
  • V2XFusion can run locally on Jetson (Triton CAPI). It is a batched 4×(camera+LiDAR) DAIR-V2X demo, not 6 GMSL + one OS1, and it does not do live time association. You would add a custom ds3d::dataloader and calibration. Watch Orin NX memory with 6×30 fps ISP plus TRT.
  • Radar and IMU are not in those samples. Keep GNSS+IMU localization outside DS3D; late-fuse radar detections into tracking.

For a first demo we suggest: lock clocks and FSYNC to PPS; run V2XFusion (or file BEVFusion if you have an x86 inference box) for 3D visualization; then replace file sources with live cameras/LiDAR and your timestamp association.

Please share Orin NX 8 vs 16 GB, whether /dev/nvpps0 exists, ethtool -T on the NIC used for Ouster, and whether FSYNC is free-running PWM or PPS-derived.

Thanks.

Hi @ShaneCCC

Thanks for the response. Below are the answers will help to understand better.

1. Nvidia Orin NX has 16GB.

2. Ethernet hardware and PTP clock investigation

I have two ASIX USB-to-Ethernet adapters connected to the Jetson Orin NX. Both adapters expose hardware PTP clocks:

  • enx9c69d36176ee → /dev/ptp0

  • enx9c69d3618c27 → /dev/ptp1

I am attaching below data regarding ethernet hardware FYR.

nvidia@nvidia:~/linuxptp$ ifconfig 
enP8p1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 4c:bb:47:ab:eb:fb  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 218  base 0x7000  

enx9c69d36176ee: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.29.206  netmask 255.255.254.0  broadcast 192.168.29.255
        inet6 fe80::c26f:e9b2:8108:eea9  prefixlen 64  scopeid 0x20<link>
        ether 9c:69:d3:61:76:ee  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enx9c69d3618c27: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 9c:69:d3:61:8c:27  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

l4tbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.55.1  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::1  prefixlen 64  scopeid 0x20<link>
        ether 2a:f0:93:c6:45:d6  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 19377  bytes 2342975 (2.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19377  bytes 2342975 (2.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 9e:b7:5f:19:83:8d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlP7p1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.91.20  netmask 255.255.254.0  broadcast 192.168.91.255
        inet6 fe80::bd19:9f70:95e6:ee8c  prefixlen 64  scopeid 0x20<link>
        ether 48:02:af:73:6c:d5  txqueuelen 1000  (Ethernet)
        RX packets 244459  bytes 24423548 (24.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17974  bytes 1288205 (1.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 203  

nvidia@nvidia:~/linuxptp$ for i in /sys/class/net/*; do
    iface=$(basename "$i")

    echo "========== $iface =========="
    echo "MAC:"
    cat "$i/address" 2>/dev/null

    echo "Device:"
    readlink -f "$i/device" 2>/dev/null

    echo "Driver:"
    readlink -f "$i/device/driver" 2>/dev/null

    echo "Bus information:"
    ethtool -i "$iface" 2>/dev/null

    echo
done
========== can0 ==========
MAC:

Device:
/sys/devices/platform/bus@0/c310000.mttcan
Driver:
/sys/bus/platform/drivers/mttcan
Bus information:
driver: mttcan
version: 6.8.12-1021-tegra
firmware-version: 
expansion-rom-version: 
bus-info: c310000.mttcan
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

========== can1 ==========
MAC:

Device:
/sys/devices/platform/bus@0/3210000.spi/spi_master/spi0/spi0.0
Driver:
/sys/bus/spi/drivers/mcp251xfd
Bus information:
driver: mcp251xfd
version: 6.8.12-1021-tegra
firmware-version: 
expansion-rom-version: 
bus-info: spi0.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

========== enP8p1s0 ==========
MAC:
4c:bb:47:ab:eb:fb
Device:
/sys/devices/platform/bus@0/140a0000.pcie/pci0008:00/0008:00:00.0/0008:01:00.0
Driver:
/sys/bus/pci/drivers/r8168
Bus information:
driver: r8168
version: 8.053.00-NAPI
firmware-version: 
expansion-rom-version: 
bus-info: 0008:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

========== enx9c69d36176ee ==========
MAC:
9c:69:d3:61:76:ee
Device:
/sys/devices/platform/bus@0/3610000.usb/usb2/2-2/2-2.2/2-2.2:1.0
Driver:
/sys/bus/usb/drivers/ax_usb_nic
Bus information:
driver: ax_usb_nic
version: 4.1.0
firmware-version: v1.3.0.3
expansion-rom-version: 
bus-info: usb-3610000.usb-2.2
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

========== enx9c69d3618c27 ==========
MAC:
9c:69:d3:61:8c:27
Device:
/sys/devices/platform/bus@0/3610000.usb/usb2/2-2/2-2.4/2-2.4:1.0
Driver:
/sys/bus/usb/drivers/ax_usb_nic
Bus information:
driver: ax_usb_nic
version: 4.1.0
firmware-version: v1.3.0.3
expansion-rom-version: 
bus-info: usb-3610000.usb-2.4
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

========== l4tbr0 ==========
MAC:
2a:f0:93:c6:45:d6
Device:
/sys/devices/virtual/net/l4tbr0/device
Driver:
Bus information:
driver: bridge
version: 2.3
firmware-version: N/A
expansion-rom-version: 
bus-info: N/A
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

========== lo ==========
MAC:
00:00:00:00:00:00
Device:
/sys/devices/virtual/net/lo/device
Driver:
Bus information:

========== usb0 ==========
MAC:
9e:b7:5f:19:83:8d
Device:
/sys/devices/platform/bus@0/3550000.usb/gadget.0
Driver:
/sys/bus/gadget/drivers/configfs-gadget.l4t
Bus information:
driver: g_ether
version: 29-May-2008
firmware-version: tegra-xudc
expansion-rom-version: 
bus-info: gadget.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

========== usb1 ==========
MAC:
9e:b7:5f:19:83:8f
Device:
/sys/devices/platform/bus@0/3550000.usb/gadget.0
Driver:
/sys/bus/gadget/drivers/configfs-gadget.l4t
Bus information:
driver: g_ether
version: 29-May-2008
firmware-version: tegra-xudc
expansion-rom-version: 
bus-info: gadget.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

========== wlP7p1s0 ==========
MAC:
48:02:af:73:6c:d5
Device:
/sys/devices/platform/bus@0/141e0000.pcie/pci0007:00/0007:00:00.0/0007:01:00.0
Driver:
/sys/bus/pci/drivers/rtl8852be
Bus information:
driver: rtl8852be
version: v1.19.11-218-gbe75dfc54.2024071
firmware-version: N/A
expansion-rom-version: 
bus-info: 0007:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no


nvidia@nvidia:~/linuxptp$ for iface in $(ls /sys/class/net); do
    echo
    echo "========================================"
    echo "INTERFACE: $iface"
    echo "========================================"

    sudo ethtool -T "$iface" 2>&1

done

========================================
INTERFACE: can0
========================================
[sudo] password for nvidia: 
Time stamping parameters for can0:
Capabilities:
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

========================================
INTERFACE: can1
========================================
Time stamping parameters for can1:
Capabilities:
	hardware-transmit
	software-transmit
	hardware-receive
	software-receive
	software-system-clock
	hardware-raw-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes:
	on
Hardware Receive Filter Modes:
	all

========================================
INTERFACE: enP8p1s0
========================================
Time stamping parameters for enP8p1s0:
Capabilities:
	software-transmit
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

========================================
INTERFACE: enx9c69d36176ee
========================================
Time stamping parameters for enx9c69d36176ee:
Capabilities:
	hardware-transmit
	software-transmit
	hardware-receive
	software-receive
	software-system-clock
	hardware-raw-clock
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
	off
	on
	onestep-sync
	onestep-p2p
Hardware Receive Filter Modes:
	none
	ptpv1-l4-event
	ptpv1-l4-sync
	ptpv1-l4-delay-req
	ptpv2-l4-event
	ptpv2-l4-sync
	ptpv2-l4-delay-req
	ptpv2-l2-event
	ptpv2-l2-sync
	ptpv2-l2-delay-req

========================================
INTERFACE: enx9c69d3618c27
========================================
Time stamping parameters for enx9c69d3618c27:
Capabilities:
	hardware-transmit
	software-transmit
	hardware-receive
	software-receive
	software-system-clock
	hardware-raw-clock
PTP Hardware Clock: 1
Hardware Transmit Timestamp Modes:
	off
	on
	onestep-sync
	onestep-p2p
Hardware Receive Filter Modes:
	none
	ptpv1-l4-event
	ptpv1-l4-sync
	ptpv1-l4-delay-req
	ptpv2-l4-event
	ptpv2-l4-sync
	ptpv2-l4-delay-req
	ptpv2-l2-event
	ptpv2-l2-sync
	ptpv2-l2-delay-req

========================================
INTERFACE: l4tbr0
========================================
Time stamping parameters for l4tbr0:
Capabilities:
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

========================================
INTERFACE: lo
========================================
Time stamping parameters for lo:
Capabilities:
	software-transmit
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

========================================
INTERFACE: usb0
========================================
Time stamping parameters for usb0:
Capabilities:
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

========================================
INTERFACE: usb1
========================================
Time stamping parameters for usb1:
Capabilities:
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

========================================
INTERFACE: wlP7p1s0
========================================
Time stamping parameters for wlP7p1s0:
Capabilities:
	software-receive
	software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

3. NvPPS investigation:

nvidia@nvidia:~/linuxptp$ ls /lib/modules/6.8.12-1021-tegra/updates/drivers/nvpps/nvpps.ko 
/lib/modules/6.8.12-1021-tegra/updates/drivers/nvpps/nvpps.ko
nvidia@nvidia:~/linuxptp$ ls -l /dev/nvpps*
ls: cannot access '/dev/nvpps*': No such file or directory
nvidia@nvidia:~/linuxptp$ find /proc/device-tree -iname '*nvpps*' -o -iname '*tsc*'
nvidia@nvidia:~/linuxptp$ 

FYI, Currently I have registered GNSS PPS with pps-gpio driver as below

+               /* GNSS PPS GPIO */
+                       pps {
+                       compatible = "pps-gpio";
+                               gpios = <&gpio TEGRA234_MAIN_GPIO(Q, 5) GPIO_ACTIVE_HIGH>;
+                               status = "okay";
+                       };

nvidia@nvidia:~/linuxptp$ ls -l /dev/pps*
crw------- 1 root root 249, 0 Oct 12 13:06 /dev/pps0
crw-rw---- 1 root root 249, 1 Oct 12 13:06 /dev/pps1


  1. PWM as FSYNC:

Currently I am using platform GPIO (PWM7) to generate 30Hz and connected with camera FSYNC in free running mode.

Thanks for the dumps. Orin NX 16 GB is fine for a first DeepStream demo. The Ethernet/NVPPS picture is different from a Tegra MAC PTP grandmaster.

enx9c69d36176ee / enx9c69d3618c27 (ax_usb_nic, /dev/ptp0 /dev/ptp1) are the only PHCs. enP8p1s0 (r8168) reports PTP Hardware Clock: none — do not use it for Ouster. NVPPS primary-emac must be a Tegra EQOS/MGBE DT node (reg-names = "mac"). A USB NIC cannot be that phandle, so /dev/nvpps0 is missing even though nvpps.ko is installed, and TSC cannot be hardware-locked to the ASIX PHC. NVPPS_GETEVENT PTP fields would stay 0 on this board unless a Tegra MAC is up and running ptp4l.

Keep pps-gpio on PQ.5 and chrony for UTC. Do not put nvpps-gpios on the same pin or you lose /dev/pps0. Convert camera SOF in userspace:

On each PPS, record t_utc from /dev/pps0 and t_tsc from CNTVCT (same domain as VI sof_timestamp).
frame_utc = sof_tsc + (t_utc − t_tsc).

If you still want /dev/nvpps0, add an overlay: compatible = "nvidia,tegra234-nvpps", primary-emac = the Tegra MAC node (even if unused for LiDAR), ptp_tsc_sync_dis, nvpps-event-mode-init = <2> (timer). That does not replace the PPS↔TSC pairing above.

For Ouster, run ptp4l as GM on one USB NIC and phc2sys from CLOCK_REALTIME (chrony) into that PHC. USB PTP is not SoC hardware timestamping; typical error is tens to hundreds of microseconds.

Please do not leave PWM7 FSYNC free-running. Re-phase the 30 Hz PWM on each PPS (or generate 30 pulses per GNSS second) so camera exposure stays on the UTC grid. Free-running PWM will drift relative to LiDAR PTP and dominate the camera–LiDAR residual.

Then attach frame_utc as NvDsMeta/GstMeta and keep the V4L2 SOF as TSC.

Please share ls /sys/class/net/*/device/of_node (whether EQOS exists), chronyc tracking, and whether Ouster is on ptp0 or ptp1.

Thanks.

Thanks for the response.

I need to clarify below points.

  1. Since we don’t have native PTP in orin nx, can’t we use NvPPS in my case? Moreover we will be connecting Ouster in USB NIC which has hardware PTP (ptp0).
  2. You mentioned sof_tsc is same as CNTVCT, does this mean (during capture in VI)
    1. sof_tsc = (cntvct_el0 * 1,000,000,000) / (cntfrq_el0) ?
      
  3. Chrony:
    1. cat /etc/chrony/chrony.conf                                                         High precision PPS reference (SHM 1 or direct kernel PPS) refclock PPS /dev/pps1 poll 3 prefer refid PPS0
      
    2. nvidia@nvidia:~$ chronyc tracking
      Reference ID    : 50505330 (PPS0)
      Stratum         : 1
      Ref time (UTC)  : Fri Nov 06 10:52:11 2026
      System time     : 0.000000711 seconds slow of NTP time
      Last offset     : -0.000000057 seconds
      RMS offset      : 0.000011044 seconds
      Frequency       : 29.562 ppm slow
      Residual freq   : -0.012 ppm
      Skew            : 0.125 ppm
      Root delay      : 0.000000001 seconds
      Root dispersion : 0.000022565 seconds
      Update interval : 8.0 seconds
      Leap status     : Normal
      nvidia@nvidia:~$ 
      
    3. Your proposed method is:

      frame_utc = sof_tsc + (t_utc - t_tsc)

      For accurate conversion, t_tsc must represent the CNTVCT value at the actual PPS edge.

      1. Does the existing Linux pps-gpio driver on JetPack 7.2.1 capture the PPS edge timestamp in a way that can be correlated accurately with CNTVCT?

      2. If I read the PPS event from /dev/pps1 in userspace and then read CNTVCT, would the scheduling and interrupt latency introduce an unacceptable error?

      3. Do you recommend capturing CNTVCT directly in the GPIO interrupt handler, or using the Tegra HTE timestamp provider and correlating its timestamp with CNTVCT?

      4. Is there an existing NVIDIA API or driver implementation that provides a concurrent PPS-edge TSC and UTC timestamp pair?

As you asked,

  1. nvidia@nvidia:~$ ls /sys/class/net/*/device/of_node
    /sys/class/net/can0/device/of_node:
    bitrates  bittimes  clock-names  clocks  compatible  interrupts  mram-params  name  pll_source  prod-settings  reg  reg-names  reset-names  resets  rx-config  status  tx-config
    
    /sys/class/net/can1/device/of_node:
    clock-names  clocks  compatible  controller-data  interrupt-parent  interrupts-extended  name  reg  spi-max-frequency  status
    
    

Thanks,

Hello jovial,

  1. USB ptp0 is still the right clock for Ouster (phc2sys from chrony CLOCK_REALTIME into that PHC, then ptp4l as GM). It is not a Tegra MAC, so NVPPS will not bind to it and will not lock TSC to it. NVPPS is useful on this board only if you add a DT overlay with a Tegra EQOS/MGBE primary-emac phandle (the SoC node, even if unused as eth0), ptp_tsc_sync_dis, and GPIO/HTE on the GNSS PPS pin. Then NVPPS_GETEVENT gives TSC at the PPS edge; the PTP fields stay 0. Do not steal PQ.5 from pps-gpio if chrony is using that PPS node.

ls /sys/class/net/*/device/of_node showing only CAN means no Tegra Ethernet netdev. Check whether ethernet@2310000 (EQOS) still exists under /proc/device-tree for the overlay.

Please also confirm /dev/pps1 is the GNSS pps-gpio and not the ASIX PHC (cat /sys/class/pps/pps0/assert /sys/class/pps/pps1/assert and the device names). Your chrony.conf uses pps1 while pps-gpio is often pps0. Tracking looks healthy if pps1 is really GNSS.

  1. Same counter, different units. VI sof_timestamp is already nanoseconds: RCE does tsc_ticks * 32 (Orin TSC 31.25 MHz). Do not convert vb2_buf.timestamp again.

For a CNTVCT sample in userspace:

t_tsc_ns = cntvct_el0 * 32;

That matches (cntvct * 1e9) / cntfrq only when cntfrq_el0 == 31250000. Do not compute (cntvct * 1000000000) / cntfrq in uint64_t — it overflows. Use * 32 or 128-bit math.

  1. pps-gpio timestamps the GPIO IRQ in the kernel clock. It does not capture CNTVCT. Reading /dev/pps1 then CNTVCT in userspace adds scheduling latency (typically tens of microseconds or more). That is larger than your chrony RMS and is not a true edge pair.

The NVIDIA concurrent PPS-edge TSC path is NVPPS GPIO + HTE (NVPPS_GETEVENT). Next best is CNTVCT in the GPIO ISR. Userspace after read(/dev/pps*) is the least accurate.

Keep chrony as you have it for UTC. Convert camera frames as frame_utc = sof_ns + (pps_utc − pps_tsc_ns) using a TSC captured at the PPS edge (NVPPS/HTE or ISR), not after a userspace wake-up.