Page 1 of 1
About Autoreset
Posted: Sun 25. Dec 2016, 05:52
by uyouu
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

Re: About Autoreset
Posted: Mon 9. Jan 2017, 08:53
by K.Wagner
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).