From: vklein <vk4514@arcor.de>
To: linux-can@vger.kernel.org
Subject: how to check if can0 is up
Date: Mon, 04 May 2015 21:10:06 +0200 [thread overview]
Message-ID: <5547C40E.9050107@arcor.de> (raw)
Hi
I want to test the status of can0 on a BeagleBoneBlack with serial-can
cape from Logic Supply.
The interface is initialized with
ip link set can0 type can bitrate 250000
ifconfig can0 up
I have tried
cat /sys/class/net/can0/operstate
but this does not work correctly
if can0 is down, I get "down"
if can0 is up , I get "unknown"
ifconfig says:
can0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:55
help appreciated
Victor
next reply other threads:[~2015-05-04 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 19:10 vklein [this message]
2015-05-06 15:28 ` how to check if can0 is up Oliver Hartkopp
2015-05-07 7:59 ` Kurt Van Dijck
2015-05-07 11:44 ` vklein
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=5547C40E.9050107@arcor.de \
--to=vk4514@arcor.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.