linklayer / cantact-pro-fw

Firmware for the CANtact Pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mitchdetailed opened this issue · comments

commented

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"

@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
commented

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

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
commented
commented

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

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