From: Francesco Giovannini <francesco.giovannini@iit.it>
To: linux-can@vger.kernel.org
Subject: Can't start ESD CAN-USB/2
Date: Fri, 31 Jan 2014 17:09:49 +0100 [thread overview]
Message-ID: <52EBCACD.9080906@iit.it> (raw)
Hi guys!
I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and
installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the
esd_can2 module and modprobed it correctly. When i plug in my CAN-USB/2
device i get the following from dmesg:
[186823.262021] usb 1-10: new high-speed USB device number 22 using
ehci_hcd
[186823.826031] usb 1-10: device not accepting address 22, error -71
[186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10
[186827.879018] usb 1-10: new high-speed USB device number 24 using
ehci_hcd
[186827.995429] usb 1-10: New USB device found, idVendor=0ab4,
idProduct=0010
[186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[186827.995435] usb 1-10: Product: USB2292
[186827.995438] usb 1-10: Manufacturer: esd electronic system design
gmbh (www.esd-electronics.com)
[186827.995440] usb 1-10: SerialNumber: GM001950
[186827.997824] esd_usb2 1-10:1.0: can0: device can0 registered
The device appears to be correctly recognised and the can0 interface is
ready to be used. I then set the bitrate and several other paramters with:
# canconfig can0 bittiming prop-seg 2 phase-seg1 12 phase-seg2 5
sjw 1 brp 3 tq 50
can0 bittiming:
tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3
can0 bitrate: 1000000, sample-point: 0.750
However when i try to start the interface with # ifconfig can0 up, I get
the following error:
SIOCSIFFLAGS: Invalid argument
If I look at the details for the can0 interface it seems that all the
configuration parameters I sent earlier are not taken into account:
# ip -d link show can0
16: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT qlen 10
link/can
can state STOPPED (berr-counter tx 0 rx 0) restart-ms 0
bitrate 0 sample-point 0.000
tq 0 prop-seg 0 phase-seg1 0 phase-seg2 0 sjw 0
esd_usb2: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
clock 60000000
Also, for reference sake, my kernel is compiled with
CONFIG_CAN_CALC_BITTIMING=y. I am of course running all of these
commands as root.
I must say this is a very weird behaviour. I have been struggling
without being able to see the light and I really hope one of you guys
might have a clue about what is going on.
Thanks a lot!
Francesco
--
*Francesco Giovannini*
Research Fellow
iCub Facility
*Istituto Italiano di Tecnologia*
Via Morego, 30 16163 Genova
/email:/ francesco.giovannini@iit.it <mailto://francesco.giovannini@iit.it>
www.iit.it <http://www.iit.it>
next reply other threads:[~2014-01-31 16:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 16:09 Francesco Giovannini [this message]
2014-01-31 16:14 ` Can't start ESD CAN-USB/2 Marc Kleine-Budde
2014-01-31 17:04 ` Francesco Giovannini
2014-01-31 17:26 ` Marc Kleine-Budde
2014-01-31 17:27 ` Marc Kleine-Budde
2014-01-31 17:38 ` Francesco Giovannini
2014-01-31 17:43 ` Marc Kleine-Budde
[not found] ` <52EBE25E.40707@iit.it>
2014-01-31 17:56 ` Marc Kleine-Budde
[not found] ` <52EBF7C5.9050309@iit.it>
2014-02-01 12:21 ` Marc Kleine-Budde
[not found] ` <52ECEE3D.4000701@iit.it>
2014-02-01 14:27 ` Marc Kleine-Budde
[not found] ` <5301FF2B.4020701@iit.it>
2014-02-17 12:24 ` Francesco Giovannini
2014-02-17 13:14 ` Matthias Fuchs
2014-02-17 13:30 ` Matthias Fuchs
2014-02-17 13:37 ` Matthias Fuchs
2014-02-17 16:13 ` Francesco Giovannini
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=52EBCACD.9080906@iit.it \
--to=francesco.giovannini@iit.it \
--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;
as well as URLs for NNTP newsgroup(s).