C++ ISOTPclass

A free API for the transfer of data packages according to ISO-TP (ISO 15765-2)
Post Reply
ValeV

C++ ISOTPclass

Post by ValeV » Thu 31. Jan 2019, 14:35

Heyall,

I saw that for PCAN Basic API you provide files 'PCANBasicClass.h' and PCANBasicClass.cpp', which define functions bodies and whatnot from PCANBasic library 'PCANBasic.h'.

I have troubles finding similar class files for ISO-TP library 'PCAN-ISO-TP.h'. Is there one or do I write it on my own?

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: C++ ISOTPclass

Post by K.Wagner » Thu 31. Jan 2019, 14:53

Hello,

the PCANBasicClass.cpp/h are part of the PCAN-Basic example. They are intended to facilitate the loading of the PCANBasic.dll dynamically.

ISO-TP samples are using static dll loading (using a lib file) and for that reason there is no help class as the mentioned above. Nevertheless, we encourage our users to load dlls dynamically. If you want to do so, then you need to write your own class for it. You can take PCANBasicClass.cpp/h as sample for it.
Best regards,
Keneth

ValeV

Re: C++ ISOTPclass

Post by ValeV » Thu 31. Jan 2019, 15:27

K.Wagner wrote:Hello,

the PCANBasicClass.cpp/h are part of the PCAN-Basic example. They are intended to facilitate the loading of the PCANBasic.dll dynamically.

ISO-TP samples are using static dll loading (using a lib file) and for that reason there is no help class as the mentioned above. Nevertheless, we encourage our users to load dlls dynamically. If you want to do so, then you need to write your own class for it. You can take PCANBasicClass.cpp/h as sample for it.
Thank you for replying.

>Nevertheless, we encourage our users to load dlls dynamically.

How do you encourage? Not trying to be sarcastic, just asking if there is some stuff available to use already.

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: C++ ISOTPclass

Post by K.Wagner » Thu 31. Jan 2019, 15:51

Hello,

We let the users now this (as I just doing with you) when such question appears :D We let these examples with static lib for simplicity. The PCTPClient/PCTPServer samples are intended for hardware developers. For many of them it is easier to use a lib instead of having a dynamic link, so they can concentrate in the services, avoiding reviewing extra code.

You also get with the ISO-TP package samples with user interface (PcanIsoTpExample). Here the samples are written in .NET (which uses dynamic link).
Best regards,
Keneth

ValeV

Re: C++ ISOTPclass

Post by ValeV » Fri 1. Feb 2019, 08:22

OK, thank you. :) If I will have any questions, I will ask here or make new thread, depending if you want to lock this thread or not.

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: C++ ISOTPclass

Post by K.Wagner » Fri 1. Feb 2019, 08:57

Hello,

please create different topics for different questions. We like to have topics separated so other users with similar problems can find answers faster.

Thank you,
Best regards,
Keneth

Post Reply