question about PCAN USB and CAN states triggers

USB to CAN Interface
Post Reply
pavlumik
Posts: 4
Joined: Fri 20. Sep 2019, 16:59

question about PCAN USB and CAN states triggers

Post by pavlumik » Wed 25. Sep 2019, 15:00

Hello,

In some Internet sources I've found that CAN Controller state can be changed based on the following thresholds
CAN_STATE_ERROR_ACTIVE <- RX/TX error count < 96.
CAN_STATE_ERROR_WARNING <- RX/TX error count < 128.
CAN_STATE_ERROR_PASSIVE <- RX/TX error count < 256.
CAN_STATE_BUS_OFF <- RX/TX error count >= 256.
is this applicable thresholds for PCAN-USB and peak_usb driver in Linux kernel? If yes, is there possibility to get these thresholds lower (so even single error in CAN Controller/line can be detected with Error Frames)?

Thanks!

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

Re: question about PCAN USB and CAN states triggers

Post by S.Grosjean » Wed 25. Sep 2019, 16:28

Hello,

Unfortunately the PCAN-USB doesn't allow to change these counter limits.

Regards,
— Stéphane

Post Reply