-
Notifications
You must be signed in to change notification settings - Fork 51
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 FD support #12
Comments
Yes. So far socketcand does not support CAN FD. |
Thanks for the confirmation @hartkopp . Then this issue should be the first official request for CAN FD. I would see the support of CAN FD as a great added value for this great project. |
Would the E.g. by receiving something like Or do you need BCM support too? |
In my specific case, I would have to be able to receive CAN FD Frames, as well as send them. As this is currently possible in Like in your example, receiving an FD frame with something like |
As requested by #12 this patch adds the possibility to send and receive CAN FD frames in the CAN_RAW mode "< rawmode >". Signed-off-by: Oliver Hartkopp <[email protected]>
Hey @mocle , |
Thanks @hartkopp for your effort and the super fast implementation. |
Hi @mocle, |
I've tested this works well, only wondering how to transfer additional CAN_FD flags like BSR and ERR in raw mode, but for now seems ok. |
The ESI bit is not really a hot topic in CAN FD - I've never seen a real-world use-case for it, did you? And the BRS bit is not provided on this abstraction level also. The setting of BRS is done in the CAN interface configuration (if you enable two data rates) and transparent on the CAN frame data representation. |
Up vote for merging this branch to master, or at least have a conversation about how to finish this branch off so it is ready. I'm willing to help! |
Hi @AndyHuska , looking at the patch and my comment at #12 (comment) I'm finally not that sure whether ignoring BRS & ESI bits was that good idea ;-) I was thinking about adding the flags as a single ASCII hex value (here '3') behind the timestamp: So when there's still demand, would you like to do some testing of the upgraded patch before getting this to the main branch? @mocle @Lukasz-Juranek : Are you working with the original PoC patch in a production environment or would if be fine for you to enhance the protocol as described above? |
Hi, great to see that a requirement for CAN FD has already been addressed. :-) One of the big advantages of socketcand is that the user doesn't have to take care of the timing of cyclic messages being delivered to the CAN bus. Sending single FD frames is a good start, but I'd need a cyclic FD messages feature just like the "< add" command for standard messages. Are there any plans to implement this, as well? |
Is it correct that socketcand does not support the data-communication protocol CAN FD (CAN Flexible Data Rate)? Or did I miss something?
CAN FD frames created with can-utils are not displayed in raw mode.
The text was updated successfully, but these errors were encountered: