Chosing the best library

This forum covers PCAN-Linux and Linux development issues concerning our products

Chosing the best library

Postby d4rkm1nd » Wed 29. Feb 2012, 12:45

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!
d4rkm1nd
 
Posts: 3
Joined: Wed 29. Feb 2012, 12:35

Re: Chosing the best library

Postby M.Maidhof » Thu 1. Mar 2012, 15:44

Hi,

please see the following post: viewtopic.php?f=59&t=256

When you like to use the chardev driver, simply have a look in the /test directory of our driver, to see how the library could be used. When you like to use the NetDev Interfaced, then see the socketCAN sample which you can download from the Berlios website through svn.

Which one will be the best for you is depending on your application, I can't answer that for you.

regards

Michael
User avatar
M.Maidhof
Support
Support
 
Posts: 200
Joined: Wed 22. Sep 2010, 14:00
Location: Darmstadt, Germany

Re: Chosing the best library

Postby d4rkm1nd » Wed 14. Mar 2012, 12:47

Hi! Thanks for your help, but i have other problem now... When I compile the code with the libraries, there is an error with <rtdm/rtdm.h> library (don't found it), and my question is: Is necessary Xenomai to use the libpcan library? Or i can quit that #include <rtdm/rtdm.h>? Thanks for all!
d4rkm1nd
 
Posts: 3
Joined: Wed 29. Feb 2012, 12:35

Re: Chosing the best library

Postby M.Maidhof » Wed 14. Mar 2012, 13:27

Hi,

unfortunately I must tell you that we do not support the RTAI and XENOMAI extension of our linux driver anymore. The developers of that RT branch are not available anymore. You can use the code as it is at the moment, when there are bugs or problems in newer kernels or RT extensions, you have to modify the code for yourself. We are planning to support that RT extension again in one of the next releases of our driver. For the moment we only support the standard Chardev an Netdev interface in our driver.

best regards

Michael
User avatar
M.Maidhof
Support
Support
 
Posts: 200
Joined: Wed 22. Sep 2010, 14:00
Location: Darmstadt, Germany

Re: Chosing the best library

Postby d4rkm1nd » Wed 14. Mar 2012, 13:52

Hi! So i have to remove the line in libpcan.c : "#include <rtdm/rtdm.h>" and adapt the code to works without it. Thanks for all!
Regards!
d4rkm1nd
 
Posts: 3
Joined: Wed 29. Feb 2012, 12:35


Return to Linux