Rolling counter and callback functions
Posted: Thu 16. Jun 2022, 21:25
Hello folks,
I am using PCAN Explorer 6 to interface with an electric motor system for a new EV that we are building. The motor requires CRC and I followed the topics in this forum to create a .dll and a rolling counter, based on the example that comes with the full install. It seems to "sort-of" work, but I get occasional errors from the motor that report "Bad CRC".
Since I have never developed anything in CAN or in PCAN explorer, I am unclear on what the possible settings should be for the callback functions, and was wondering if there is a tutorial or explanation to guide in selecting "reset counter" versus ID_100 vs Checksum_ID101, etc. Any replies would be appreciated!
-David
I am using PCAN Explorer 6 to interface with an electric motor system for a new EV that we are building. The motor requires CRC and I followed the topics in this forum to create a .dll and a rolling counter, based on the example that comes with the full install. It seems to "sort-of" work, but I get occasional errors from the motor that report "Bad CRC".
Since I have never developed anything in CAN or in PCAN explorer, I am unclear on what the possible settings should be for the callback functions, and was wondering if there is a tutorial or explanation to guide in selecting "reset counter" versus ID_100 vs Checksum_ID101, etc. Any replies would be appreciated!
-David