Page 1 of 1

Peak device utilising socketCAN

Posted: Fri 21. Feb 2025, 13:54
by manju
Hello,

I'm utilizing peak device with socketCAN function, my device supports both CAN/CAN-FD. Now I wanted to log both data frames and error frames via socketCAN library. But Im not able to transfer error frames using socketCAN. Is there any method available to log both data & error frames using socketCAN. Please let me know the answer and the steps.

To transfer error frames, should we need to utilize any specific library from socketCAN.

Thanks in advance!

Re: Peak device utilising socketCAN

Posted: Fri 21. Feb 2025, 13:56
by M.Heidemann
Hello,

you can do so using CANdumps "e" parameter, see here:

https://manpages.debian.org/testing/can ... .1.en.html

BR

Marvin