Hello,
I am trying to use a Lawicel CANUSB dongle (www.canusb.com) with socketcan on Ubuntu but without success.
First I tested the communication with cutecom and that worked fine. To use socketcan I have followed the instructions in a previous thread (http://old.nabble.com/Some-problems-with-CANUSB-and-Ubuntu-8.04-9.04-td24621697.html) which explained how to use the CANUSB hardware successfully with Ubuntu 9.04. Since I got make errors for socketcan in Ubuntu 10.10 (kernel 2.6.35) I tried with a fresh install of Ubuntu 9.04 using the same kernel (2.6.28-11) as in the above mentioned tutorial post.

Now, here comes the problem:
Everything seems fine until the point where I can not bring slcan0 up, not with

$ ifconfig slcan0 up
SIOCSIFFLAGS: no such device

and not with

$ ip link set slcan0 up
RTNETLINK: no such device

I have compiled a recent version of iproute2 (2.6.37) for the test, but that did not solve it.



Here is what I did:
$ svn checkout http://svn.berlios.de/svnroot/repos/socketcan/trunk
$ cd ~trunk/kernel/2.6/drivers/net/can/
$ make CONFIG_CAN_SLCAN=m
$ cd ~trunk/kernel/2.6/  
$ make CONFIG_CAN_SLCAN=m modules_install

$ cd ~trunk/can-utils
$ make
$ make install

$ slcan_attach -o -s6 /dev/ttyUSB0
attached tty /dev/ttyUSB0 to netdevice slcan0

$ slcand ttyUSB0
$ ip link set slcan0 type can
$ ifconfig slcan0 up
or
$ ip link set slcan0 up

here I get above reported error: no such device.

However,
$ ip link show slcan0
and
$ ifconfig -a
tell me that slcan0 exists but the state is DOWN.

$ ifconfig -a
 slcan0    Link encap:UNSPEC  Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          NOARP  MTU:16  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

$ ip link show slcan0
  7: slcan0: <NOARP> mtu 16 qdisc noop state DOWN qlen 10
    link/[280]


Why can I not bring it up and what do I need to do to make this work? Any ideas would be greatly appreciated.

Side note 1: I don't know if that is important, but in the tutorial it is "slc0" whereas in my case it is "slcan0" ("slc0" or "can0" do not exist).
Side note 2: somebody else posted exactly the same question some time ago but there was no answer.
Side note 3: if I use
$ ip link set slcan0 type can bitrate 115000
I get the error:
RTNETLINK answers: Operation not supported
Side note 4: why is the hardware address "empty": Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 ?
Side note 5:
$ lsmod | grep can
can_raw                15360  0
can                    32540  1 can_raw
slcan                  14724  0

I am grateful for any help because I really need to make this work.
  

Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die   
Toolbar eingebaut! http://produkte.web.de/go/toolbar
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to