Skip to content
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

Does this package support CAN FD ? #374

Open
CCodie opened this issue Jan 6, 2020 · 3 comments
Open

Does this package support CAN FD ? #374

CCodie opened this issue Jan 6, 2020 · 3 comments

Comments

@CCodie
Copy link

CCodie commented Jan 6, 2020

Hi developers !
Always thanks for your hard work.

I'm now using this package for my vehicle CAN.
And I wonder that I can use this package for CAN_FD network.
(or if I need to modify some code, letting me know how to would be thankful)

I found that Linux_SocketCAN support CAN_FD here - Linux_socketcan.
And it seems code below does work that I can check with ifconfig and it's RX bytes.
sudo ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on

Do I need to just change code about data length (dlc)...? I'm not sure.

Please let me know... Thanks !

@mathias-luedtke
Copy link
Member

socketcan_interface does not support CAN FD yet.
Apart from adapting the code to use canfd_frame and perhaps the CAN_RAW_FD_FRAMES option, the frame length is hard-coded to 8 right now.

@CCodie
Copy link
Author

CCodie commented Jan 8, 2020

@ipa-mdl , Thank you for letting me know !
I should find another way to use canfd.

@mathias-luedtke
Copy link
Member

You could try #375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants