From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4FEC4245.9090804@grandegger.com> Date: Thu, 28 Jun 2012 13:38:45 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: , <4FE60190.5000108@xenomai.org> <4FEC3FF0.1050307@grandegger.com> In-Reply-To: <4FEC3FF0.1050307@grandegger.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Peak PCI CAN card RTCAN problem List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kronander Klas Cc: "xenomai@xenomai.org" On 06/28/2012 01:28 PM, Wolfgang Grandegger wrote: > On 06/28/2012 01:11 PM, Kronander Klas wrote: >> Hi, >> >> Thanks for the response. I now tried with xenomai version 2.6, I have some progress but it is still not working. >> >> CAN-problem: >> Looking at the syslog, the can card is detected and the rtcan interfaces are set up properly: >> >> Jun 28 11:58:14 wam-desktop kernel: [ 11.954476] RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team >> Jun 28 11:58:14 wam-desktop kernel: [ 11.960228] RTCAN SJA1000 driver initialized >> Jun 28 11:58:14 wam-desktop kernel: [ 11.967911] PEAK-PCI-CAN: initializing device 001c:0001 >> Jun 28 11:58:14 wam-desktop kernel: [ 11.967920] PEAK-PCI-CAN 0000:05:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 >> Jun 28 11:58:14 wam-desktop kernel: [ 11.972902] PEAK-PCI-CAN: base_addr=f8470000 conf_addr=f8466000 irq=17 >> Jun 28 11:58:14 wam-desktop kernel: [ 11.972914] rtcan: registered rtcan0 >> Jun 28 11:58:14 wam-desktop kernel: [ 11.972920] PEAK-PCI-CAN: base_addr=f849e400 conf_addr=f8466000 irq=17 >> Jun 28 11:58:14 wam-desktop kernel: [ 11.972928] rtcan: registered rtcan1 >> >> I now also see the loaded xeno_can_peak_pci driver with lsmod. The status of the can is STOPPED for both ports: >> cat /proc/rtcan/devices >> Name___________ _Baudrate State___ TX_Counter RX_Counter ____Errors >> rtcan0 undefined stopped 0 0 0 >> rtcan1 undefined stopped 0 0 0 >> >> When trying to start rtcan0 I get an error: >> /usr/xenomai/sbin/rtcanconfig rtcan0 -b 1000000 -c none start -v >> Cannot open RTDM CAN socket. Maybe driver not loaded? > > Does the following command work? > > /usr/xenomai/sbin/rtcanconfig -b 1000000 -c none start -v rtcan0 Sorry, it should be Usage: rtcanconfig [Options] [up|down|start|stop|sleep] Therefore try: #/usr/xenomai/sbin/rtcanconfig rtcan0 -b 1000000 -v start Wolfgang