pcan-light migration path

CAN Software API for Windows®. REGARD! This API is out-dated. Please use PCAN-Basic for new software developments.
Locked
MrBillDay
Posts: 3
Joined: Wed 16. Oct 2019, 17:24

pcan-light migration path

Post by MrBillDay » Wed 16. Oct 2019, 17:48

I have recently taken over support for an application that uses pcan_usb.dll. I did not write the original code. The pcan_usb.dll is unsigned. The application has one third-party dll that does not allow partially trusted callers. So relaxing trust on my application isn't an option.

I am looking for a migration from pcan_usb.dll to the recommended signed and supported replacement.

Thank you

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

Re: pcan-light migration path

Post by K.Wagner » Thu 17. Oct 2019, 08:38

Hello,

the current API that you need to use is called PCAN-Basic. It is the successor of PCAN-Light and it supports CAN 2.0A/B and CAN with flexible data-rate (CAN-FD).

The way how it works is very similar to PCAN-Light; you need to initialize a PCAN channel before using it (CAN_Initialize, CAN_InitializeFD), then you have functions to read (CAN_Read, CAN_ReadFD) and write (CAN_Write, CAN_WriteFD), to adjust the filter (CAN_FilterMessages), to configure several parameters like Listen-Only (CAN_GetValue/CAN_SetValue), and to close a channel (CAN_Uninitialize).

The PCAN-Basic API is fee-free, it is accompanied by several sample projects in different programming languages (C#, VB.Net, C++/CLI, C++MFC, C+++ Builder, Delphi, Python) that show the use of all functions mentioned before. Added to this you get a CHM help file for the API, and a PDF documentation for about 40 parameters, that are currently supported by the CAN_GetValue/CAN_SetValue functions.

Also under this forum, PCAN-Basic, you will find many answer to problems that may arise while porting your code.

By the way, the PCAN-Basic API has also a Linux version. Applications written in Python, for instance, can work in both operating systems.
Best regards,
Keneth

MrBillDay
Posts: 3
Joined: Wed 16. Oct 2019, 17:24

Re: pcan-light migration path

Post by MrBillDay » Thu 17. Oct 2019, 14:05

Thank you so much for your help. This has been weighing on me for a while...I knew it was one of those nagging details that was unknown and could have caused me a lot of trouble.

Thanks again for your assistance.

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

Re: pcan-light migration path

Post by K.Wagner » Thu 17. Oct 2019, 16:42

Hello,

you are welcome.

Closed.
Best regards,
Keneth

Locked