CAN_PARAM_AUTOBUSON in case of Error-Passive

Professional CAN and CAN FD Development Package for Windows®
Post Reply
martinmoe
Posts: 7
Joined: Fri 19. May 2017, 11:58

CAN_PARAM_AUTOBUSON in case of Error-Passive

Post by martinmoe » Thu 12. Apr 2018, 08:41

Hi,

does CAN_PARAM_AUTOBUSON also have an effect when the interface goes error-passive?

I am using CanApi4 Version 4.1.2 (with Driver Version 4.1.3.16213, HW is PCAN-USB X6 with FW 3.2.0)


Martin

K.Wagner
Software Development
Software Development
Posts: 767
Joined: Wed 22. Sep 2010, 13:36

Re: CAN_PARAM_AUTOBUSON in case of Error-Passive

Post by K.Wagner » Thu 12. Apr 2018, 08:59

Hello,

no, CAN_PARAM_AUTOBUSON only takes effect when a device goes BUS-OFF. Here the description of it in the help file:
Configures the driver to automatically set the status of the CAN controller to buson,
after it goes to bus-off.
In order to clear a bus-passive or bus-warning error, you have to call the function CAN_ResetHardware. Check the help file for more information (PCAN-API 4 Documentation, page 51)
Best regards,
Keneth

Post Reply