Skip to contentSkip to conversation

rt-socket-can "no device" problem with advantech PCM-26D2CA CAN board

Xenomai Jack Lee 2 participants 2 messages Sep 2, 2016

lore
Share & tools
lore

Jack Lee

author
#0 lore raw

Hi, everyone!
I am using the advantech PCM-26D2CA CAN board, its details can be found here at
http://www.advantech.com/products/14263729-aaa3-4552-b990-99d16cdfee24/pcm-26d2ca/mod_9a1e9dbf-e22d-4770-a896-cecf40607084.
The original driver works fine, but I need it to be realtime.
rt-can driver was compiled as modules previously. When booted and "#modprobe xeno_can_adv_pci" was executed,
"#dmesg | grep -i can" output was
...
RT-Socket-CAN 0.90-2 - (c) 2006 RT-Socket-CAN Development Team
RTCAN SJA1000 driver initialized

"#lsmod | grep -i can" output was
xeno_can_adv_pci
xeno_can_sja1000 used by xeno_can_adv_pci
xeno_can used by xeno_can_sja1000, xeno_can_adv_pci

What strange is that /proc/rtcan/devices has no devices like rtcan0. The /proc/rtcan directory just has three files: devices, sockets and version.

Does this CAN board supported by rt-socket-can? How can I implement real-timer driver for it?

Thank you!

#1 lore raw

Hello,

Am 02.09.2016 um 08:23 schrieb Jack Lee:

Quoted 10 lines

Hi, everyone!
I am using the advantech PCM-26D2CA CAN board, its details can be found here at
http://www.advantech.com/products/14263729-aaa3-4552-b990-99d16cdfee24/pcm-26d2ca/mod_9a1e9dbf-e22d-4770-a896-cecf40607084.
The original driver works fine, but I need it to be realtime.
rt-can driver was compiled as modules previously. When booted and "#modprobe xeno_can_adv_pci" was executed,
"#dmesg | grep -i can" output was
...
RT-Socket-CAN 0.90-2 - (c) 2006 RT-Socket-CAN Development Team
RTCAN SJA1000 driver initialized

Quoted 7 lines

"#lsmod | grep -i can" output was
xeno_can_adv_pci
xeno_can_sja1000 used by xeno_can_adv_pci
xeno_can used by xeno_can_sja1000, xeno_can_adv_pci

What strange is that /proc/rtcan/devices has no devices like rtcan0. The /proc/rtcan directory just has three files: devices, sockets and versio

What is the PCI device id of the CAN device? You can use "lspci -vv" to list the ids.

Quoted 1 line

Does this CAN board supported by rt-socket-can? How can I implement real-timer driver for it?

Most likely the device id is missing in the driver PCI device list:

http://git.xenomai.org/xenomai-2.6.git/tree/ksrc/drivers/can/sja1000/rtcan_adv_pci.c#n87

Wolfgang.