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

SocketCAN FD support : "RTNETLINK answers: Operation not supported" #1

Open
mitchdetailed opened this issue Mar 8, 2021 · 6 comments

Comments

@mitchdetailed
Copy link

I'm working through testing out the FD settings. Can't seem to get the FD mode to return anything other than, "RTNETLINK answers: Operation not supported"

@xia0long
Copy link

xia0long commented Mar 16, 2021

@mitchdetailed Same issue. Have you found a solution? I can set up "normal CAN" successfully, but something went wrong when I set up CAN FD. I tried this in Ubuntu20.

~ ➤ sudo ip link set can0 down
~ ➤ sudo ip link set can0 up type can bitrate 500000
~ ➤ candump can0
  can0  123   [2]  12 34
^C%
~ ➤ sudo ip link set can0 down
~ ➤ sudo ip link set can0 up type can bitrate 500000 dbitrate 8000000 restart-ms 1000 berr-reporting on fd on

RTnetlink answers operation not supported

@mitchdetailed
Copy link
Author

no solution found here. hopefully Eric will bring insight as to why.

@xia0long
Copy link

Hi @mitchdetailed, Eric told me that the driver cantact-pro used not support CAN FD yet, he made a patched driver.
I have installed this driver in my Ubuntu20, but the problem still exists. Anyway, you can try it.

gs_usb_fd ➤ lsmod | grep can                                                                                                                                             
can_dev                32768  2 gs_usb_fd,gs_usb
gs_usb_fd ➤ sudo ip link set can0 up type can bitrate 500000 dbitrate 8000000 restart-ms 1000 berr-reporting on fd on                                                    
RTNETLINK answers: Operation not supported

@mitchdetailed
Copy link
Author

mitchdetailed commented Apr 22, 2021 via email

@mitchdetailed
Copy link
Author

i was able to install the kernel object on my machine (linux mint ) by doing the following:
~$ sudo apt-get install linux-source
~$ git clone https://github.com/linklayer/gs_usb_fd.git
~$ cd gs_usb_fd/
~$ sudo make
~$ sudo insmod gs_usb_fd.ko
but when i attempt to run a fd bitrate, i still receive a "RTNETLINK answers: Operation not supported" value returned

@marckleinebudde
Copy link

Hey @mitchdetailed

The CANtact Pro doesn't support changing of bit error reporting (berr-reporting on), this is why your command fails. Try:

sudo ip link set can0 up type can bitrate 500000 dbitrate 8000000 restart-ms 1000 fd on

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

No branches or pull requests

3 participants