All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai]  RTDM problem with Advantech PCM-3680I
@ 2014-10-16 13:04 Róbert Marc
  2014-10-16 17:43 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Róbert Marc @ 2014-10-16 13:04 UTC (permalink / raw)
  To: xenomai@xenomai.org

Dear Xenomai community,

I am experiencing problems with my Advantech card under Xenomai.
Please note that the card (Advantech PCM-3680I) functions perfectly under non-RT Linux (Ubuntu 12.04). I can send and receive messages.
Although the modules are loaded the devices can't be seen. See details below.


Here are some technical details:

rtos@rtos-pc-104:~$ sudo rtcanconfig rtcan0 -b 1000000 -v start
mode: start (0x1)
Can't get interface index for rtcan0, code = -19


>>  what is error code -19?


rtos@rtos-pc-104:~$ lsmod | grep adv
xeno_can_adv_pci       12730  0 
advcan                             707511  4 
xeno_can_sja1000       17366  1 xeno_can_adv_pci
xeno_can                         28373  2 xeno_can_adv_pci,xeno_can_sja1000


>> drivers are loaded 


rtos@rtos-pc-104:~$ dmesg | grep CAN
[    4.341607] RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team
[    4.372061] RTCAN SJA1000 driver initialized
[    4.405671] ADV-PCI-CAN 0000:01:04.0: RTCAN Registering card
[    4.405697] ADV-PCI-CAN 0000:01:04.0: RTCAN detected Advantech PCI card at slot #4
[    4.405712] ADV-PCI-CAN: Initializing device 13fe:c002:c002
[    4.405731] ADV-PCI-CAN: base_addr=0001ef00 conf_addr=  (null) irq=16 ocr=0xfa cdr=0xc0
[    4.405811] RTCAN: unregistered rtcan0
[    4.405836] ADV-PCI-CAN: probe of 0000:01:04.0 failed with error -5
[    4.494279] CAN Communication Driver.
[    4.514136] Advantech CAN Port CAN Driver (c) Oct  3 2014 15:12:52
[    4.514202] Advanteh PCI CAN devie c002 found( 2 CAN port)


>> conf_addr=  (null) might be the problem???

rtos@rtos-pc-104:~$ dmesg | grep rtcan
[    4.405777] rtcan: registered rtcan0
[    4.405795] Unregistering SJA1000 device rtcan0
[    4.405811] RTCAN: unregistered rtcan0


rtos@rtos-pc-104:~$ cat /proc/rtcan/devices 
Name___________ _Baudrate State___ TX_Counter RX_Counter ____Errors
rtos@rtos-pc-104:~$ 

rtos@rtos-pc-104:~$ cat /proc/rtcan/sockets 
fd Name___________ Filter ErrMask RX_Timeout_ns TX_Timeout_ns RX_BufFull TX_Lo


Kernel: 3.5.7
Xenomai: 2.6.3


To show that I am running under Xenomai, and the Xenomai core is fully functional:

rtos@rtos-pc-104:~$ dmesg | grep Xenom
[    0.862003] I-pipe: head domain Xenomai registered.
[    0.862077] Xenomai: hal/i386 started.
[    0.862125] Xenomai: scheduling class idle registered.
[    0.862130] Xenomai: scheduling class rt registered.
[    0.864945] Xenomai: real-time nucleus v2.6.3 (Lies and Truths) loaded.
[    0.864951] Xenomai: debug mode enabled.
[    0.865124] Xenomai: SMI-enabled chipset found, but SMI workaround disabled
[    0.865190] Xenomai: starting native API services.
[    0.865197] Xenomai: starting POSIX services.
[    0.865246] Xenomai: starting RTDM services.
 

Any ideas how can I solve this issue?

Thanks,
Robert


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-17 10:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 13:04 [Xenomai] RTDM problem with Advantech PCM-3680I Róbert Marc
2014-10-16 17:43 ` Gilles Chanteperdrix
2014-10-17 10:06   ` Róbert Marc
2014-10-17 10:25     ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.