-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAN arrival timestamps not conveyed #39
Comments
Can you please go into detail how this could work? Please also see #34 |
I don't know enough about the Linux kernel to understand how It could be implemented. Our code for reading CAN frames via SocketCAN looks roughly like
It would be great if the actual timestamp recorded on the actual physical CAN device was delivered to the listener so that it can be read the same way as you would do with a normal SocketCAN. |
Probably there is no easy way to do this in userspace as you would need to overwrite the time the kernel at which the kernel received the packet. If you find a way to do that, the timestamp could be added to the protocol with some effort. |
Our application uses the timestamps from when frames arrive (setsocketopt with SO_TIMESTAMPING). This seems to not be implemented. For us it would be great if it was.
The text was updated successfully, but these errors were encountered: