Page 1 of 1

CAN Statistics

Posted: Fri 10. May 2019, 13:40
by mdanski
Hello,
how can I check CAN connection "health" using PCAN API. I'd like to check how many error frames was received in last 1-2 seconds. Is there ready methods for this or I have to make my own statistics based on TPCANStatus returned by PCANBasic.Read() function?

Re: CAN Statistics

Posted: Fri 10. May 2019, 14:21
by M.Maidhof
Hi,

since PCANBasic.dll 4.2 you will also receive errorframes, so you can count them in your application, to get the "health" status of the connected CAN bus system. See PCANBasic help for more details.

regards

Michael

Re: CAN Statistics

Posted: Fri 10. May 2019, 14:53
by mdanski
Thanks for you fast response. I'll write my own counter of error frames as you suggest.