Dear support team,
I have found a couple of old posts regarding how to implement with PCAN-Explorer a CRC algorithm and an alive counter for a message being sent using VBScript Macros. It seems to be quite a big effort and I was wondering if in the mean time there is any update. Is there any out of the box solution with PCAN-Explorer 5 how to define a CRC and alive counter for a message?
VBScript Macros seems to be the main interface for developing a custom solution. Would you have a working example I could use in order to implement my use case? From the forum I read it is a very complex job and I would prefer not to start from scratch.
At my department there are already some tools available for developing CRCs and alive counters code is a semi automatic way and the output is a dll. Is there any possibility of connecting a dll with PCAN-Explorer 5?
I look forward to hearing from you.
Best regards,
Anna
CRC and alive counter from a CAN message
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: CRC and alive counter from a CAN message
With the latest PCAN-Explorer 6 Version (6.2 or higher) ,it is possible to use Callback Libs.
So it is easy to implement a Checksum Algorithm, Rolling Counter etc.With Callback Libraries you can evaluate, process, or modify data of received or transmitted CAN messages in your own way.
Callback Libraries are Dynamic Link Libraries (DLLs) that you can create yourself with suitable compilers and program them according to your needs. Once it is created, you include a Callback Library in a PCAN-Explorer project, so that you can assign the individual programmed functions to different events, which PCAN-Explorer triggers when it receives or sends CAN messages, and then calls the functions assigned to these events.
PCAN-Explorer passes special objects to the DLL functions as function parameters, which allow the respective function to access the data of the transmitted or received message. The function of the Callback Library can use the different properties and methods of these objects to process or modify the data bytes of the message according to its needs, or to perform other tasks. For example, a function could calculate a running counter or a checksum for the message and insert it into the data bytes at the correct location before it is transmitted, to ensure the integrity of the message and that it can be acknowledged by the recipient as a valid message.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: CRC and alive counter from a CAN message
Thanks for the reply. Basically for PCAN-Explorer 5 only a complex solution is available
.

- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: CRC and alive counter from a CAN message
not a complex solution - a macro based solution - you need to know how to do...
.
Please keep in mind that PCAN-Explorer 5 was released in 2009
and the basic technology of this Tool is now nine years old
for a PC software a very looong time...
Since 2016 the new Version PE6 is available and have solutions
for the new requirements of the industry 
If you like, we could send you a 30 day Trial - as a customer which owns a PCAN-Explorer 5 Version, it could be usefull to compare. The PCAN-Explorer 6 could work side by side on the same PC without any limitations. Simply send us a E-Mail and make a short note that we have benn in contact in the forum.

Please keep in mind that PCAN-Explorer 5 was released in 2009

and the basic technology of this Tool is now nine years old


Since 2016 the new Version PE6 is available and have solutions


If you like, we could send you a 30 day Trial - as a customer which owns a PCAN-Explorer 5 Version, it could be usefull to compare. The PCAN-Explorer 6 could work side by side on the same PC without any limitations. Simply send us a E-Mail and make a short note that we have benn in contact in the forum.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------