From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <496B7B34.9030405@domain.hid> Date: Mon, 12 Jan 2009 18:17:40 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 References: <200901071828.31323.Sebastian.Smolorz@domain.hid> <4965D651.5010808@domain.hid> <496B6B66.7070905@domain.hid> In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] [Socketcan-users] rtcanconfig rtcansend rtcanrecv List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Charlton, John" Cc: "xenomai@xenomai.org" , "socketcan-users@domain.hid" Charlton, John wrote: > Wolfgang, > > Thank you for the help. I do have XENO_DRIVERS_CAN_DEBUG enabled and the registers are: > > root@domain.hid:~$ cat /proc/rtcan/rtcan1/registers > SJA1000 registers > 00: 00 00 0c 02 ff 00 03 1c 1a 00 00 00 00 60 00 00 > 10: 08 00 20 01 02 03 04 05 06 07 08 ff 20 00 00 c8 > root@domain.hid:~$ cat /proc/rtcan/rtcan0/registers > SJA1000 registers > 00: 00 00 0d 01 ff 00 03 1c 1a 00 00 00 00 60 00 00 > 10: 08 00 20 01 02 03 04 05 06 07 08 bf 00 01 00 c8 > root@domain.hid:~$ Looks like the data have been received by the rtcan0 chip. Then most likely there are problems with the interrupts. > I will focus on the transmitter and try another CAN device or CAN analyzer as you suggest. I see that the TSCAN1 Lincan driver also writes 0 to offset 4: outb(0x0, TSCAN1_BASE_ADDR + idx * 8 + 4); outb(0x60 + idx, TSCAN1_BASE_ADDR + idx * 8 + 5); // set base I/O address in // control reg Maybe it already makes a difference? Wolfgang.