public inbox for linux-can@vger.kernel.org
 help / color / mirror / Atom feed
From: Steffen Rose <ro@emtas.de>
To: linux-can@vger.kernel.org
Cc: Wolfgang Grandegger <wg@grandegger.com>
Subject: Re: unsure - socketCAN blocking
Date: Mon, 08 Oct 2012 17:19:26 +0200	[thread overview]
Message-ID: <1674155.DFlslIQ3jM@lisa> (raw)
In-Reply-To: <5072E9A5.2060908@grandegger.com>

Hello,

> > Now my error:
> > 	write: Interrupted system call
> 
> Hm, who has interrupted the write system call? gdb?

That's my question, too.
 
> > $ ./candump can0
> 
> Please use "candump can0 any,0:0,#FFFFFFFF" to also see error messages.

Thank you.
> 
> Maybe error frames?

I see some error frames and error passive in the logs. But no busoff.

Now - (sporadic different situations):
The CAN transmit from the virtual env to the CAN, but the receiving doesn't 
work. Also the candump show only the messages transmitted by the internal 
programs, not the additional traffic on the real CAN.

> > Can I see more states about the can, can_raw or the ems_usb modules?
> 
> The stats below should tell you if you still receive messages.
> 
> > $ ip -det -stat link show can0
> > 4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN
> > qlen 10000

Currently I see only TX packets, no RX.

> You seemed to have electrical problem on the bus. Not sure if it's
> related, though.

Possible. But also in error passive is traffic possible and now the CAN 
interface is in error active. In my case not only some messages are dropped. 
The traffic dropped in one or both directions in general.

Of course, it is possible, that the USB connection or the virtual box USB 
driver or so on is the problem! At the moment I want to analyze the problem 
and search help for this.

-- 
Mit freundlichen Grüßen / Best regards

Steffen Rose


      parent reply	other threads:[~2012-10-08 15:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-08 10:16 unsure - socketCAN blocking Steffen Rose
2012-10-08 11:46 ` Marc Kleine-Budde
2012-10-08 14:36   ` Steffen Rose
2012-10-08 14:56     ` Wolfgang Grandegger
2012-10-08 15:00       ` Marc Kleine-Budde
2012-10-08 15:21         ` Steffen Rose
2012-10-08 15:19       ` Steffen Rose [this message]

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=1674155.DFlslIQ3jM@lisa \
    --to=ro@emtas.de \
    --cc=linux-can@vger.kernel.org \
    --cc=wg@grandegger.com \
    /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