Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
2.1.0
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Issue Description
hello nvidia support:
I am using drive agx orin and try to figure out camera frame sync design in orin. After I do a research in this forum I find that when interface mbge2_0 Synchronized time to extern grand time master , the PTP2 will send pps signals to Synchronize TSC clock. So I use Canoe as grand time master and do as asked, then through the “ret = ioctl(fd, NVPPS_GETEVENT, arg_event);” ioctl, I get result as below:
The NvPPS version is: 0204
The EVT Mode is Timer
The TSC Mode is NSec
Time event evt_nb: 56
Time event tsc: 63649624032
Time event ptp: 1706009668860961348
Time event secondary ptp: 0
Time event tsc_res_ns: 32
Time event evt_mode: 2
Time event tsc_mode: 0
Time event irq_latency: 0
after check the driver source code: nvpps_main.c
if (NVPPS_TSC_NSEC == pdev_data->tsc_mode) {
time_event.tsc *= pdev_data->tsc_res_ns;
}
I got confused.
so my question are:
- does that means both “Time event tsc: 63649624032” and “Time event ptp: 1706009668860961348” are nanoseconds?
- how can this two number prove that the TSC and PTP2 are aligned or Synchronized ?(what we expect after do a research in this forum is that this two clock should have the same millisecond, Microseconds while different seconds and nanoseconds, like 3 777 666 545 and 8 777 666 613 , this means they are full second aligned , by doing so the TSC generate camera frame sync signal aligned to the PTP2 clock and extern ptp time domain )
- If this two number can not prove this concept, how to do it in software level?