Chosing the best library

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
oliviagreene
Posts: 1
Joined: Wed 18. Sep 2019, 10:35

Chosing the best library

Post by oliviagreene » Wed 18. Sep 2019, 10:37

Hello! I have started in the Can interfaces and i having troubles with the libraries, because i have found a lot of them. I only want to comunicate a pc software with a external process using a CanOpen interface. I have the PCAN-PCI connected to PC and my question is : What's the easiest way to communicate them? My program is written in ANSI-C. And I'm using Ubuntu 11.10. Thanks for all.
Regards!

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

Re: Chosing the best library

Post by M.Maidhof » Wed 18. Sep 2019, 12:17

Hi,

first you must choose if you like to use the SocketCAN driver (already available in the kernel, no need to install additional drivers) or the peak-linux-driver (chardev) interface. When using the SocketCAN interface, please see info here on how to build own applications: https://www.kernel.org/doc/Documentatio ... ng/can.txt

If you choose the peak-linux-driver with the chardev interface, please read driver manual on how to install the driver:

https://www.peak-system.com/fileadmin/m ... an_eng.pdf

The PCANBasic library will than be a good choice for your application.

regards

Michael

Post Reply