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

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
pulkomandy
Posts: 3
Joined: Fri 2. Sep 2022, 16:54

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

Post by pulkomandy » Fri 2. Sep 2022, 17:01

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!

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

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

Post by S.Grosjean » Mon 5. Sep 2022, 13:36

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,
— Stéphane

pulkomandy
Posts: 3
Joined: Fri 2. Sep 2022, 16:54

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

Post by pulkomandy » Mon 5. Sep 2022, 14:18

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.

Post Reply