linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
To: kime-Z4QKGCRq86k@public.gmane.org
Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org,
	"linux-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: CAN State Information
Date: Tue, 06 Dec 2011 16:26:38 +0100	[thread overview]
Message-ID: <4EDE342E.8030102@grandegger.com> (raw)
In-Reply-To: <166589D0B9DD2547A1319599B9BADA1FC1960C-F+3lUZ2EnXJqWLKVXlbt41Kd6C4pVHazbKV4uwnAPJ4@public.gmane.org>

Hello,

On 12/06/2011 02:56 PM, kime-Z4QKGCRq86k@public.gmane.org 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-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.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:kime-Z4QKGCRq86k@public.gmane.org
> 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.

       reply	other threads:[~2011-12-06 15:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <166589D0B9DD2547A1319599B9BADA1FC1960C@vsv-exchange.ixxat.intranet.priv>
     [not found] ` <166589D0B9DD2547A1319599B9BADA1FC1960C-F+3lUZ2EnXJqWLKVXlbt41Kd6C4pVHazbKV4uwnAPJ4@public.gmane.org>
2011-12-06 15:26   ` Wolfgang Grandegger [this message]
     [not found]     ` <4EDE342E.8030102-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2011-12-06 18:54       ` CAN State Information Wolfram Sang
2011-12-08  8:43       ` kime-Z4QKGCRq86k
     [not found]         ` <166589D0B9DD2547A1319599B9BADA1FC1981F-F+3lUZ2EnXJqWLKVXlbt41Kd6C4pVHazbKV4uwnAPJ4@public.gmane.org>
2011-12-08 19:15           ` Wolfgang Grandegger
2011-12-09  8:03             ` kime
     [not found]               ` <166589D0B9DD2547A1319599B9BADA1FC19968-F+3lUZ2EnXJqWLKVXlbt41Kd6C4pVHazbKV4uwnAPJ4@public.gmane.org>
2011-12-09  8:15                 ` Wolfgang Grandegger
     [not found]                   ` <4EE1C3BF.70104-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2011-12-09  8:19                     ` Wolfgang Grandegger
     [not found]                       ` <4EE1C47A.7080507-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2011-12-09  8:45                         ` kime-Z4QKGCRq86k
     [not found]                           ` <166589D0B9DD2547A1319599B9BADA1FC1998A-F+3lUZ2EnXJqWLKVXlbt41Kd6C4pVHazbKV4uwnAPJ4@public.gmane.org>
2011-12-09  9:00                             ` Wolfgang Grandegger
2011-12-09 13:41                               ` kime
2011-12-09 14:49                                 ` Wolfgang Grandegger
     [not found]                                   ` <4EE2200E.4060403-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2011-12-12 10:21                                     ` kime-Z4QKGCRq86k

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EDE342E.8030102@grandegger.com \
    --to=wg-5yr1bzd7o62+xt7jha+gda@public.gmane.org \
    --cc=kime-Z4QKGCRq86k@public.gmane.org \
    --cc=linux-can-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).