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. _______________________________________________ Socketcan-core mailing list Socketcan-core@lists.berlios.de https://lists.berlios.de/mailman/listinfo/socketcan-core