From: Steffen Rose <ro@emtas.de>
To: linux-can@vger.kernel.org
Subject: unsure - socketCAN blocking
Date: Mon, 08 Oct 2012 12:16:40 +0200 [thread overview]
Message-ID: <6309304.MqJsLKDGaO@lisa> (raw)
Hello,
I'm unsure, what I see.
I use:
Virtual box - Host Win 7/Guest kubuntu
Linux lisa 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64
x86_64 x86_64 GNU/Linux
SocketCAN connector is a EMS CPC-USB.
On startup, the network works fine.
In different situation one or both directions (RX/TX) stop it's work.
My Linux program say:
write: No buffer space available
It's the write to the socketcan device can0.
For the current situation the communication stopped in general.
$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 1000
link/ether 08:00:27:62:24:48 brd ff:ff:ff:ff:ff:ff
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen
100
link/can
$ cat /proc/net/can/stats
717 transmitted frames (TXF)
820 received frames (RXF)
607 matched frames (RXMF)
74 % total match ratio (RXMR)
0 frames/s total tx rate (TXR)
0 frames/s total rx rate (RXR)
100 % current match ratio (CRXMR)
0 frames/s current tx rate (CTXR)
0 frames/s current rx rate (CRXR)
100 % max match ratio (MRXMR)
11 frames/s max tx rate (MTXR)
20 frames/s max rx rate (MRXR)
2 current receive list entries (CRCV)
2 maximum receive list entries (MRCV)
$ ip -det -stat link show can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen
100
link/can
can state ERROR-ACTIVE restart-ms 0
bitrate 250000 sample-point 0.875
tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
ems_usb: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
clock 8000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0
RX: bytes packets errors dropped overrun mcast
106 213 0 0 0 0
TX: bytes packets errors dropped carrier collsns
607 607 0 0 0 0
$ ./candump any
say nothing
I'm unsure to interprete the data. I cannot see any mistake.
--
Mit freundlichen Grüßen / Best regards
Steffen Rose
next reply other threads:[~2012-10-08 10:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 10:16 Steffen Rose [this message]
2012-10-08 11:46 ` unsure - socketCAN blocking 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
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=6309304.MqJsLKDGaO@lisa \
--to=ro@emtas.de \
--cc=linux-can@vger.kernel.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