Page 1 of 1

Use of presume-ack and/or one-shot flags

Posted: Fri 2. Sep 2022, 17:01
by pulkomandy
Hello,

For testing a CAN device I am developping, I try to set the presume-ack and one-shot flags using the ip command. This is with a PCAN USB x6.

Starting from a state where the interface is down, here are my results:

Code: Select all

$ sudo ip link set evb2can1 up type can bitrate 100000 one-shot on
RTNETLINK answers: Operation not supported
$ sudo ip link set evb2can1 up type can bitrate 100000 presume-ack on
RTNETLINK answers: Operation not supported
Is it possible to use these flags on PCAN-USB x6 or are they really not supported?

The kernel is from Debian, maybe it is too old and we need a newer version?

Code: Select all

$ uname -a
Linux lcb-testtools-dev 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
Anything else I should check?

Thanks!

Re: Use of presume-ack and/or one-shot flags

Posted: Mon 5. Sep 2022, 13:36
by S.Grosjean
Hi,

Regarding the PCAN-USB FD family, "one-shot" mode has been added to kernel 5.13 while "presume-ack" mode is actually not supported.

Best regards,

Re: Use of presume-ack and/or one-shot flags

Posted: Mon 5. Sep 2022, 14:18
by pulkomandy
Thanks, I was using Debian stable with kernel 5.10. I updated the kernel to 5.18 and now I can enable the one-shot mode.