On Sun, Nov 23, 2014 at 04:29:37PM +0100, Burak Yuksel wrote: > Is there anyone there who is experienced, or having fundamental knowledge on CAN communication? I've some experience, even though I'm not an expert in CAN bus. > I am currently having a problem of reading from a force sensor which is communicating with CAN 2.0B 1Mbit/s. I have PeakSystems converter, which supposed to be compatible with this specification, and I am trying to read on my Linux machine. So far I have NETDEV drivers and SocketCAN tools on PC. It's difficult to help you, since you're not saying what is (are) the issue(s) you're facing... Lets start with a few generic advices: - you should try to use Ubuntu 14.04 for that, since the support for socketcan in 12.04 is only half present. Among others the can-utils package is missing in 12.04. You need to download the sources from https//gitorious.org/linux-can/can-utils and build them. Having a 12.04 system with the 3.13 kernel (ie the 'linux-generic-lts-trusty package installed) probably helps. - The 'can0' interface is auto-configured by the kernel but not brought up. You need to run 'sudo ifconfig can0 up' to be able to use it. - Once you've the can-utils package installed and brought the interface up you can sniff the CAN bus trafic with the 'candump' utility (which is a 'tcpcump' for the can0 interface). This generally greatly helps understanding CAN protocol issues. - Make sure you have proper cabling with the 120 Ohm termination at the end. It doen't matter too much with short cables at low speeds, but at 1Mbit/s it will probably make a difference. See http://en.wikipedia.org/wiki/CAN_bus or http://www.ni.com/white-paper/9759/en/ for details. Matthieu Herrb