Results 1 to 7 of 7

Thread: OBDII in Linux

  1. #1
    Newbie
    Join Date
    Mar 2005
    Location
    NJ
    Posts
    51

    OBDII in Linux

    Just got a elmscan5 usb and I want to hook it into my linux carpc. I downloaded the source code for scantool, patched and compiled it. Everything was going well, but I can not get the software to see the hardware.

    Here's how far I got so far:

    The kernel uses the ftdi usb-serial converter to create the serial interface /dev/ttyUSB0.

    The scantool software seems to be written for windows, with linux as an afterthought. As such, the settings list serial interfaces as comm ports. I did an strace and confirmed that the comm#s are translating to the proper tty devices (comm1 = /dev/ttyS0,comm2 = /dev/ttyS1, etc)

    I symlinked /dev/ttyUSB0 to /dev/ttyS4, and set scantool to use comm5 and made sure my user has read/write perms.

    But for some reason I still get an error that scantool can not find the hardware.

    Anyone get this to work ?

    Followup question: what are people using for OBDII data in Linux ?

    thanks for the feedback.

    EDIT - Quick note: I just compiled freediag and noticed the binary it creates is called scantool too. My initial post is about Scantool.net's software :http://www.scantool.net/?mode=displa...y=ScanTool.net

  2. #2
    blk
    blk is offline
    Newbie blk's Avatar
    Join Date
    Jun 2006
    Location
    Switzerland
    Posts
    44
    you could
    cat /dev/ttyUSB0
    to make sure that data's flowing but beware it might (temporarily) screw up your shell. if you get weird chars, just restart the term and it's fine again, or pipe it to less which displays them correctly. (or use nc / netcat if you have)

    it's not a solution, but at least you can see if things are wrong on the hardware level.

    i'd be interested on your progress on linux-odbII and what you're able to do with it.

  3. #3
    Newbie Zimans's Avatar
    Join Date
    Jan 2006
    Posts
    38
    Your the same timekiller from timekiller.org yes? If not then ignore the rest of this post.

    Are you trying to hook the elmscan5 up to your Mazda3? Or do you have a different vehicle now?

    The Mazda3 is CAN bus, not OBDII. Looking at Scantool.net it doesn't seem to support CAN.

    (I drive a Mazda6, also CAN bus)

    Maybe that's why it is not responding?

    --Zims
    --------------------------------------------------------------------------------
    Now, Where are my Pants?

  4. #4
    Newbie
    Join Date
    Mar 2005
    Location
    NJ
    Posts
    51
    blk and Zimans:

    I am the same timekiller from timekiller.org. Yes I am hooking to my Mazda3. I should have mentioned that I used the elmscan with scantool in winblows (to test) and it works fine. So I know the hardware works, and the software can talk to the ecu...

  5. #5
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Heh. Googling for "obdii linux" shows this thread right near the top, so I thought I'd add a link to obdgpslogger, which has a forum on this site

    ... just in case anyone in this thread is still interested, three years on.

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

  6. #6
    Low Bitrate
    Join Date
    Jan 2009
    Posts
    67
    so I might be chasing my tail right now. From my research:

    1. Evoscan program (or your favorite win-based OBD2 program) is able to be installed by using wine, winetricks, and dotnet 2.0.
    2. USB 'should' work with my evoscan cable (which I think is an FTDI cable)
    3. I can create a symbolic link between ttyUSB1 and com1

    General rule of thumb is "if the driver works in ubuntu, then it will work with wine"

    Problem: Ubuntu 9.10 has broken FTDI drivers. I am hoping once these are fixed with 9.10 then WINE might automatically detect the cable? <fingers crossed and waiting..>


    check out the pretty pictures to see why I am so anxious to get it workin!



  7. #7
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    9.10 FTDI is broken-broken. Until they sort that out, attempting anything else is fairly moot.

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

Similar Threads

  1. New Frontend for Windows and Linux
    By gbr in forum Other Cool Front Ends
    Replies: 68
    Last Post: 01-21-2009, 08:55 PM
  2. Linux duck duck goose!
    By rocken in forum Linux
    Replies: 11
    Last Post: 03-12-2006, 11:15 AM
  3. Linux Login, UPS and Linux Touch Screen
    By polc1410 in forum Newbie
    Replies: 5
    Last Post: 02-11-2005, 10:43 AM
  4. The LOW Risk Linux Adventure...
    By grepzen in forum Software & Software Development
    Replies: 13
    Last Post: 11-08-2004, 09:12 PM
  5. PS2 Linux -- check it out
    By Superfly in forum General Hardware Discussion
    Replies: 7
    Last Post: 03-21-2003, 11:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •