NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN-Interface in NI-Linux (SBRIO-9651)

Hi all,

i am trying to integrate a CANOpenslave library into NI-Linux.

As i got my SBRIO-9651 devkit i was surprised not to find any can-device within linux eventhough i activated the

"NI-Embedded CAN for RIO 15.0.0".

Moreover i could not find any socketcanlib or anyother socketinterface within the opkg repository at:

src/gz url-0 http://download.ni.com/ni-linux-rt/feeds/2015/arm/ipk

src/gz uri-all-0 http://download.ni.com/ni-linux-rt/feeds/2015/arm/ipk/all

src/gz uri-cortexa9-vfpv3-0 http://download.ni.com/ni-linux-rt/feeds/2015/arm/ipk/cortexa9-vfpv3

src/gz uri-xilinx_zynq-0 http://download.ni.com/ni-linux-rt/feeds/2015/arm/ipk/xilinx_zynq

So how does the CAN-interface work?

Any hints on how to access can within linux are welcome.

Thank you in advance.

regards Arne

0 Kudos
Message 1 of 4
(3,711 Views)

This may shed a small amount of light:  http://digital.ni.com/public.nsf/allkb/159150F5DE5C20CF8625798F0014F5C2

This is a user-mode driver that provides a LabVIEW API to the CAN controller. It does not plug into the socketCAN interface that is common in Linux.

You can call the same C API that the LabVIEW API calls, but it will be subject to change, since it is not a public API.

0 Kudos
Message 2 of 4
(3,240 Views)

Hi DaQjr,

thank you for your answer.

So i will request the API from the NI support.

regards Arne

0 Kudos
Message 3 of 4
(3,240 Views)

CAN driver in userland ?!

Ridiculous.

 

Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering
0 Kudos
Message 4 of 4
(3,010 Views)