I'm having a problem with getting kernel/driver generated timestamps on PCAN USB Interface / socketCAN driver. After some time, the kernel timestamps of received messages are in the future compared to locally generated timestamps:
Code: Select all
clock_gettime: (2018-10-16 13:28:50.365177) kernel timestamp: (2018-10-16 13:28:50.364992) can1 735 [1] 7F
Code: Select all
clock_gettime: (2018-10-16 13:44:28.693404) kernel timestamp: (2018-10-16 13:44:28.693810) can1 735 [1] 7F
With messages sent by another application, but on the same interface, timestamps work as expected:
Code: Select all
clock_gettime: (2018-10-16 13:44:29.906611) kernel timestamp: (2018-10-16 13:44:29.906535) can1 701 [1] 7F
- Application: candump can1 -tA . Extended to print time when candump processes message, see attachment.
- Driver: peak-linux-driver-8.6.0, option NET=NETDEV_SUPPORT enabled to get socketCAN
- System: Debian 9, Kernel 4.14.0-0.bpo.3-amd64
- Device: PEAK System PCAN-USB
- 1 MBit bus
- message log is in attachment. COB IDs 0x701 and 0x7E5 are sent, all others received.
Thanks for your help!