Hi

Today I found socketcan and started jumping about the house celebrating :)
I've been playing with the "arm cortex m3" cpu  using this board:
http://mbed.org/forum/news-announcements/topic/900/
...but when I connect it to my Audi A4 I can't read anything.....hence the
joy of finding socketcan and the hope of being able to work from my laptop.

I'm hoping the list can offer me some quick start pointers

I'm using Fedora 13, ran some modprobes and have the following modules
loaded:
can_bcm                11446  0
can_raw                 5705  0
can_dev                 7212  0
can                    30238  2 can_bcm,can_raw

I then used svn:
svn checkout svn://svn.berlios.de/socketcan/trunk

I compiled the modules and then I compiled the can-utils as I want to use
"candump", this brings me to my first question:

1. Can I use the berlios can-utils with the existing Fedora kernel modules
listed above?


I then ran the "ip" commands to bring up the interfaces (Using the standard
Fedora can modules listed above):

ip link add type vcan
ip link add dev can0 type vcan
ifconfig can0 up

and I now have:
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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vcan0     Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


but the next question is:
2. How do I associate a usb port with can0? .. I think my above interfaces
are only virtual.

My goal is to connect a VAG-COM cable (obd2 -> usb) to my laptop, bring up
can0 associating the interface with the usb port and then use "candump" to
sniff my cars canbus......probably using a python
script thanks to the wonderful python patch from matthias fuchs "
https://lists.berlios.de/pipermail/socketcan-users/2010-July/001456.html";


Any pointers would be much appreciated!!!!

PS: I'm still jumping about the house...even thought I can't get it to work
yet :)
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to