cantact-pro-fw icon indicating copy to clipboard operation
cantact-pro-fw copied to clipboard

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

Open mitchdetailed opened this issue 3 years ago • 6 comments

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 avatar Mar 08 '21 04:03 mitchdetailed

@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

xia0long avatar Mar 16 '21 14:03 xia0long

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

mitchdetailed avatar Mar 16 '21 17:03 mitchdetailed

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

xia0long avatar Mar 29 '21 07:03 xia0long

sudo apt install kernel-headers-$(uname -r) returns :

E: Unable to locate package kernel-headers-5.4.0-72-generic E: Couldn't find any package by glob 'kernel-headers-5.4.0-72-generic'

googling yeilds no legitimate results. interested in input

On Mon, Mar 29, 2021 at 2:59 AM azreborn @.***> wrote:

Hi @mitchdetailed https://github.com/mitchdetailed, Eric told me that the driver cantact-pro used not support CAN FD yet, he made a patched driver https://github.com/linklayer/gs_usb_fd. 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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/linklayer/cantact-pro-fw/issues/1#issuecomment-809161842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI62NLUELZ467L7CITZAW43TGAXNDANCNFSM4YYU35OA .

-- Mitch Minton 615-977-9787 Bridgestone - USW1055

mitchdetailed avatar Apr 22 '21 02:04 mitchdetailed

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

mitchdetailed avatar May 04 '21 21:05 mitchdetailed

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

marckleinebudde avatar Dec 30 '21 18:12 marckleinebudde