On 03/11/2011 01:34 PM, Charles H wrote:
> 
> There is documentation in the linux kernel docs. I have attached a version of
> the CAN doc.
> also :http://en.wikipedia.org/wiki/SocketCAN
> this shows basic usage of how to set up and use socketCAN
> Kvaser makes CAN cards and USB CAN gizmos: http://www.kvaser.com
> 
> Regards,
> 
> Chuck H.
> 
> 
> Andrew Moon wrote:
>>
>> Hi All,
>>
>> I'm a Linux and a SocketCAN newbie so any help will be appreciated.
>>
>> I am planning to build some prototype CAN devices and interface those to a
>> Linux development PC using CAN. If this proves successful I will port the
>> Linux software on to a TI AM35x SOC which has an embedded CAN controller
>> which I believe is already supported by SocketCAN.
>>
>> Initially I would prefer to develop on a Windows 7 64bit box running
>> Ubuntu 10.10 32bit under Virtualbox. And if this works I will eventually
>> build a dedicated Linux box.
>>
>> Questions:
>>
>> 1) Which are the best supported USB2 or PCIe CAN interfaces for a Linux PC
>> and where can I buy them from? Preferably in the UK.

The Kconfig files show what CAN hardware is supported by SocketCAN:

http://lxr.linux.no/#linux/drivers/net/can/Kconfig
http://lxr.linux.no/#linux/drivers/net/can/sja1000/Kconfig
http://lxr.linux.no/#linux/drivers/net/can/usb/Kconfig

>> 2) Which type of CAN interface is better i.e. USB2 or PCIe?

If you care about speed and latency, PCIe is definitely the better
choice, especially at 1 MB/s.

>> 3) Is there any SocketCAN example code available to get me going? 

The most up-to-date doc is at:

http://lxr.linux.no/#linux+v2.6.37/Documentation/networking/can.txt

You can find many examples in the SocketCAN SVN repository at BerliOS:

http://svn.berlios.de/wsvn/socketcan/trunk/can-utils/
http://svn.berlios.de/wsvn/socketcan/trunk/test/

Wolfgang.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to