rt-socket-can "no device" problem with advantech PCM-26D2CA CAN board
Quoted 24 lines
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 "#modprobexeno_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 initializedQuoted 7 lines
"#lsmod | grep -i can" output was
xeno_can_adv_pcixeno_can_sja1000used byxeno_can_adv_pcixeno_canused byxeno_can_sja1000,xeno_can_adv_pciWhat strange is that
/proc/rtcan/deviceshas no devices like rtcan0. The/proc/rtcandirectory just has three files: devices, sockets and versioWhat is the PCI device id of the CAN device? You can use "lspci -vv" to list the ids.
Quoted 8 lines
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.
Thank you, Wolfgang! My mailbox delays that I cannot add you in the contact, so I send to the xenomai list. Sorry for that. CAN board information is below.
#lspci -vv
03:00.0 CANBUS: Advantech Co. Ltd MIOe-3680 2-Port CAN-Bus MIOe Module with Isolation Protection
Subsystem: Advantech Co. Ltd MIOe-3680 2-Port CAN-Bus MIOe Module with Isolation Protection
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 10
Region 0: Memory at d0c02000 (32-bit, non-prefetchable) [size=2K]
Region 1: Memory at d0c01000 (32-bit, non-prefetchable) [size=128]
Region 2: Memory at d0c00000 (32-bit, non-prefetchable) [size=128]
Capabilities: <access denied>
Hello,
Am 02.09.2016 um 09:23 schrieb Jack Lee:
Quoted 26 lines
Quoted 26 lines
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 "#modprobexeno_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 initializedQuoted 7 lines
"#lsmod | grep -i can" output was
xeno_can_adv_pcixeno_can_sja1000used byxeno_can_adv_pcixeno_canused byxeno_can_sja1000,xeno_can_adv_pciWhat strange is that
/proc/rtcan/deviceshas no devices like rtcan0. The/proc/rtcandirectory just has three files: devices, sockets and versioWhat 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?
Quoted 8 lines
Quoted 6 lines
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.
Thank you, Wolfgang! My mailbox delays that I cannot add you in the contact, so I send to the xenomai list. Sorry for that.
No problem.
Quoted 4 lines
CAN board information is below.
#lspci -vv
03:00.0 CANBUS: Advantech Co. Ltd MIOe-3680 2-Port CAN-Bus MIOe Module with Isolation Protection
Subsystem: Advantech Co. Ltd MIOe-3680 2-Port CAN-Bus MIOe Module with Isolation Protection
Quoted 8 lines
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 10
Region 0: Memory atd0c02000(32-bit, non-prefetchable) [size=2K]
Region 1: Memory atd0c01000(32-bit, non-prefetchable) [size=128]
Region 2: Memory atd0c00000(32-bit, non-prefetchable) [size=128]
Capabilities: <access denied>
Could you please use "lspci -vvn" to get numbers (instead of strings).
Wolfgang.