About Autoreset

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
uyouu
Posts: 6
Joined: Thu 9. Jun 2016, 01:31

About Autoreset

Post by uyouu » Sun 25. Dec 2016, 05:52

Hi
I have a problem about busOff status ,Does it can AutoReset for just once ? But uninit and init method is not allowed to reset the hardware :cry: :cry: :cry:

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

Re: About Autoreset

Post by K.Wagner » Mon 9. Jan 2017, 08:53

Hello,
uyouu wrote:Does it can AutoReset for just once ?
if you have activated the parameter PCAN_BUSOFF_AUTORESET, then the API will reset the hardware whenever it notes that the bus is in off state. This check is done when you try to send (CAN_Write) or to receive (CAN_Read) a message, or when you ask for the bus status (CAN_GetStatus). If you don't use those functions periodically then the API has no way to detect the bus off state.
uyouu wrote:But uninit and init method is not allowed to reset the hardware
A re-initialize of a channel does reset the hardware. The only case where this not happen is if the hardware is still connected (i.e. a PCAN-View is connected to the hardware too).
Best regards,
Keneth

Post Reply