Hello, Thanks for the response. I am using can_get_state() as part of my start_CAN routine. After, I call can_do_start(), I read the state to see if I need to do bus-off recovery. So it is not a frequent call. I was able to see the states correctly on all four CAN channels with "ip -d -s link".
I updated the code in plx_pci.c to include support for the IXXAT card. I wanted to ask you how to submit the changes since I have not done it before. I attached a patch file. Mit freundlichen Grüssen / Yours sincerely, James Kime Entwicklung / Development -------------------------------------------- IXXAT Automation GmbH Leibnizstr. 15, 88250 Weingarten, Germany Phone +49-751-56146-181 Fax +49-751-56146-29 mailto:k...@ixxat.de http://www.ixxat.de -------------------------------------------- PRIVILEGED AND CONFIDENTIAL. Any unauthorized use or disclosure is strictly prohibited. -------------------------------------------- Sitz der Gesellschaft: Weingarten Handelsregister Ulm HRB 551905 Geschäftsführer: Dipl.-Ing. Christian Schlegel -------------------------------------------- -----Original Message----- From: Wolfgang Grandegger [mailto:w...@grandegger.com] Sent: Tuesday, December 06, 2011 4:27 PM To: Kime, James Cc: socketcan-core@lists.berlios.de; linux-...@vger.kernel.org Subject: Re: CAN State Information Hello, On 12/06/2011 02:56 PM, k...@ixxat.de wrote: > Hello, > > I am using socketcan with a combination of 3 passive plx cards (1 dual > channel and 2 single channel) on kernel 3.0.0-13. I have the > libsocketcan-0.0.8 installed as well. I can use all 4 CAN channels but for > some reason I can only use can_get_state() with the two single cards and the > dual card returns -1 for both channels. I have attempted another setup this > time with just the two single cards and when I use the can_get_state() I am > able to only return the state on 1 of them. Then I attempted putting in the > dual card alone and the same result, one channel works the other does not. Hm, if "ip -d -s link" lists the state correctly, then it's most likely a problem with libsocketcan. Anyway, for what purpose would you like to use can_get_state()? It's not forseen for frequent polling of the CAN error state. Please use error messages instead. > I would appreciate any advice, this seems like a strange problem to me. What Socket-CAN driver are you using for the IXXAT cards? There is still no support in mainline Linux, IIRC. Maybe there is some mismatch with the header files. Hope it helps. Wolfgang. PS: I added our new mailing list linux-...@vger.kernel.org to the CC. BerliOS will be closed end of the year. > Mit freundlichen Grüssen / Yours sincerely, > > James Kime > Entwicklung / Development > -------------------------------------------- > IXXAT Automation GmbH > Leibnizstr. 15, 88250 Weingarten, Germany > Phone +49-751-56146-181 > Fax +49-751-56146-29 > mailto:k...@ixxat.de > http://www.ixxat.de > -------------------------------------------- > PRIVILEGED AND CONFIDENTIAL. > Any unauthorized use or disclosure > is strictly prohibited. Please drop these lines when you send to a public mailing list.
plx_pci_patch
Description: plx_pci_patch
_______________________________________________ Socketcan-core mailing list Socketcan-core@lists.berlios.de https://lists.berlios.de/mailman/listinfo/socketcan-core