Selft-Acknowledge and PCAN USB x6

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
alexiscar
Posts: 1
Joined: Fri 3. Feb 2023, 15:19

Selft-Acknowledge and PCAN USB x6

Post by alexiscar » Fri 3. Feb 2023, 15:38

Hi,
I'm trying to use a PCAN USB X6 to generate traffic for a developpment board.
The developpment board CANs are configured to work in listen only-mode.
Since the USB PCAN do not support the presume-ack mode, I was wondering if there was a similar option under linux (debian 11) to the "TX self-acknowledge" mode that I saw in the windows PCAN-view app.
Best regards

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

Re: Selft-Acknowledge and PCAN USB x6

Post by S.Grosjean » Fri 3. Feb 2023, 17:16

Hello,

At the moment, there is no presume-ack support in the socket-can nor the pcan drivers.

But it should hopefully happen in the next few weeks, at least for the pcan driver.

Regards,
— Stéphane

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

Re: Selft-Acknowledge and PCAN USB x6

Post by pulkomandy » Wed 26. Jul 2023, 14:53

Hello,

We have noticed that the chardev interface of the driver now supports a "self-ack" option which would work for our needs. However, we have already written our application using the netdev interface (it allows us to share some code with other CAN interfaces on Linux), and in the documentation we didn't find any way to enable the self-ack option while using the driver with the netdev interface.

Are there plans for implementing some way to access the self-ack feature while in netdev mode? Can the chardev APIs be used for this while still receiving the CAN data using netdev APIs?

Thanks for your help!

M.Maidhof
Support
Support
Posts: 1691
Joined: Wed 22. Sep 2010, 14:00

Re: Selft-Acknowledge and PCAN USB x6

Post by M.Maidhof » Wed 26. Jul 2023, 15:43

Hello,

AFAIK this is not an available option in the SocketCAN definitions at the moment (see: https://www.kernel.org/doc/Documentatio ... ng/can.txt), that's why it is not implemented in that driver. And no, you can't use the chardev driver with SocketCAN, these are two different driver flavors.

regards

Michael

Post Reply