CAN Statistics

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
mdanski
Posts: 17
Joined: Tue 28. Aug 2018, 13:57

CAN Statistics

Post by mdanski » Fri 10. May 2019, 13:40

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?

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: CAN Statistics

Post by M.Maidhof » Fri 10. May 2019, 14:21

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

mdanski
Posts: 17
Joined: Tue 28. Aug 2018, 13:57

Re: CAN Statistics

Post by mdanski » Fri 10. May 2019, 14:53

Thanks for you fast response. I'll write my own counter of error frames as you suggest.

Post Reply