Canbus data timestamps using recorder tool PX2 Driveworks 1.2

I have been able to collect canbus data using the recording tool. How can I also log the canbus timestamps by editing the recorder configuration json file?

Hello mae25,

please refer to sample_canbus_logger sample code where it is demonstrated how to support hardware timestamps of the CAN messages (with hwtime parameter)

As the documentation describes: “In order for hardware timestamps to work for SocketCAN, the application must run with root rights.”

did you try running the recorder with root right?