Page 2 of 7 FirstFirst 1234567 LastLast
Results 11 to 20 of 62

Thread: How to get this to work on an ARM processor?

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Oh, it's worth noting that this doesn't work with gpsd yet.

    With gps support disabled, obdgpslogger depends on absolutely nothing that doesn't come in your standard C libraries. Once you have that working, I'll help you [or someone else can] get gpsd working.

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

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Or, rather than cross-compiling, I read your thread Make fun of the noob; if you have a real flavor of ubuntu 9.04 on there, you might find you just need to do "sudo apt-get install cmake" on the device, and everything will magically turn up. Then you can follow my usual build instructions, but actually run it on the device...

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

  3. #13
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2

    I think it worked....

    I tried to make and install and I think it worked. Does this mean it compiled for the Sheeva?

    Code:
    bugbyte@iPlug:~/build/obdgpslogger-0.6$ cmake /home/bugbyte/build/obdgpslogger-0.6
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Couldn't find libgps
    -- Found DBUS: /usr/lib/libdbus-1.so,/usr/lib/libdbus-1.so
    -- Looking for include files HAVE_SIGNAL_H
    -- Looking for include files HAVE_SIGNAL_H - found
    -- Looking for sigaction
    -- Looking for sigaction - found
    -- Looking for signal
    -- Looking for signal - found
    -- Looking for XOpenDisplay in /usr/lib/libX11.so
    -- Looking for XOpenDisplay in /usr/lib/libX11.so - found
    -- Looking for gethostbyname
    -- Looking for gethostbyname - found
    -- Looking for connect
    -- Looking for connect - found
    -- Looking for remove
    -- Looking for remove - found
    -- Looking for shmat
    -- Looking for shmat - found
    -- Found X11: /usr/lib/libX11.so
    -- Found FLTK: fltk_images;fltk;fltk_gl;fltk_forms;/usr/lib/libX11.so;/usr/lib/libm.so
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/bugbyte/build/obdgpslogger-0.6
    bugbyte@iPlug:~/build/obdgpslogger-0.6$ make
    Scanning dependencies of target ckobdinfo
    [  3%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdconvertfunctions.o
    [  6%] Building C object src/obdinfo/CMakeFiles/ckobdinfo.dir/obdservicecommands.o
    Linking C static library libckobdinfo.a
    [  6%] Built target ckobdinfo
    Scanning dependencies of target ckobdconfigfile
    [  9%] Building C object src/conf/CMakeFiles/ckobdconfigfile.dir/obdconfigfile.o
    Linking C static library libckobdconfigfile.a
    [  9%] Built target ckobdconfigfile
    Scanning dependencies of target cksqlite
    [ 12%] Building C object libs/sqlite3/CMakeFiles/cksqlite.dir/sqlite3.o
    Linking C static library libcksqlite.a
    [ 12%] Built target cksqlite
    Scanning dependencies of target obdgpslogger
    [ 15%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/tripdb.o
    [ 18%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/supportedcommands.o
    [ 21%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/gpsdb.o
    [ 25%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/obdserial.o
    [ 28%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/main.o
    /home/bugbyte/build/obdgpslogger-0.6/src/logger/main.c: In function 'main':
    /home/bugbyte/build/obdgpslogger-0.6/src/logger/main.c:192: warning: assignment discards qualifiers from pointer target type
    [ 31%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/database.o
    [ 34%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/obddb.o
    [ 37%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/obddbus.o
    [ 40%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/gpscomm.o
    Linking C executable ../../bin/obdgpslogger
    [ 40%] Built target obdgpslogger
    Scanning dependencies of target obd2kml
    [ 43%] Building C object src/kml/CMakeFiles/obd2kml.dir/heightandcolor.o
    [ 46%] Building C object src/kml/CMakeFiles/obd2kml.dir/singleheight.o
    [ 50%] Building C object src/kml/CMakeFiles/obd2kml.dir/obdgpskml.o
    Linking C executable ../../bin/obd2kml
    [ 50%] Built target obd2kml
    Scanning dependencies of target obd2csv
    [ 53%] Building C object src/csv/CMakeFiles/obd2csv.dir/obdgpscsv.o
    Linking C executable ../../bin/obd2csv
    [ 53%] Built target obd2csv
    [ 56%] Generating convertwindow.h
    [ 59%] Generating logwindow.cxx
    [ 62%] Generating gpsdwizard.cxx
    [ 65%] Generating maindisplay.cxx
    /home/bugbyte/build/obdgpslogger-0.6/src/gui/maindisplay.fl:2: unknown version '1.0300'
    Scanning dependencies of target ckobdfl
    [ 68%] Building CXX object src/gui/CMakeFiles/ckobdfl.dir/logwindow.o
    [ 71%] Building CXX object src/gui/CMakeFiles/ckobdfl.dir/gpsdwizard.o
    [ 75%] Building CXX object src/gui/CMakeFiles/ckobdfl.dir/maindisplay.o
    [ 78%] Building CXX object src/gui/CMakeFiles/ckobdfl.dir/convertwindow.o
    Linking CXX static library libckobdfl.a
    [ 90%] Built target ckobdfl
    Scanning dependencies of target obdgui
    [ 93%] Building CXX object src/gui/CMakeFiles/obdgui.dir/loggerhandler.o
    [ 96%] Building CXX object src/gui/CMakeFiles/obdgui.dir/obdgui.o
    [100%] Building CXX object src/gui/CMakeFiles/obdgui.dir/guessdevs.o
    Linking CXX executable ../../bin/obdgui
    [100%] Built target obdgui
    bugbyte@iPlug:~/build/obdgpslogger-0.6$ make install # optional
    [  6%] Built target ckobdinfo
    [  9%] Built target ckobdconfigfile
    [ 12%] Built target cksqlite
    [ 40%] Built target obdgpslogger
    [ 50%] Built target obd2kml
    [ 53%] Built target obd2csv
    [ 90%] Built target ckobdfl
    [100%] Built target obdgui
    Install the project...
    -- Install configuration: ""
    CMake Error at cmake_install.cmake:36 (FILE):
      file cannot create directory: /usr/local/share/man/man1.  Maybe need
      administrative privileges.
    
    
    make: *** [install] Error 1
    bugbyte@iPlug:~/build/obdgpslogger-0.6$ sudo make install # optional
    [sudo] password for bugbyte: 
    [  6%] Built target ckobdinfo
    [  9%] Built target ckobdconfigfile
    [ 12%] Built target cksqlite
    [ 40%] Built target obdgpslogger
    [ 50%] Built target obd2kml
    [ 53%] Built target obd2csv
    [ 90%] Built target ckobdfl
    [100%] Built target obdgui
    Install the project...
    -- Install configuration: ""
    -- Installing: /usr/local/share/man/man1/obdgpslogger.1
    -- Installing: /usr/local/share/man/man1/obd2csv.1
    -- Installing: /usr/local/share/man/man1/obd2kml.1
    -- Installing: /usr/local/share/man/man1/obdgui.1
    -- Installing: /usr/local/bin/obdgpslogger
    -- Installing: /usr/local/bin/obd2kml
    -- Installing: /usr/local/bin/obd2csv
    -- Installing: /usr/local/bin/obdgui
    bugbyte@iPlug:~/build/obdgpslogger-0.6$
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    That's actually on the sheeva? Awesome stuff, looks exactly right.

    You even have fltk installed, which means that you can run the gui version on a remote system.

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

  5. #15
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    Quote Originally Posted by chunkyks View Post
    You even have fltk installed, which means that you can run the gui version on a remote system.
    In case it's not clear, what Gary is saying is that you can launch obdgui on the Sheeva and display it on your mac or PC if you want.

    On a Mac, the simplest is to fire up the X11 server (may need to install it from CD first) and ssh to the sheeva with X11 forwarding enabled. It should "just work" (tm).

    On windows you can use Xming or cygwin for the X server and do the same.

    https://sourceforge.net/projects/xming

    hth
    charles

  6. #16
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Okay, indeed it appears as if I've got obdgpslogger compiled and installed on the Sheeva.
    Code:
    bugbyte@iPlug:/dev$ obdgpslogger -h
    Usage: obdgpslogger [params]
       [-s|--serial[=/dev/cu.OBDKeyPro-DevB-1]]
       [-c|--count[=infinite]]
       [-n|--no-autotrip]
       [-t|--spam-stdout]
       [-p|--capabilities]
       [-o|--enable-optimisations]
       [-l|--serial-log=<filename>]
       [-a|--samplerate[=1]]
       [-d|--db[=./obdlogger.db]]
       [-v|--version] [-h|--help]
    Now, I need to find FTDI for the Sheeva so I can plug in my OBD cable?

    BTW, I plugged in my OBDPRO Scantool and it did NOT show up in /dev. Will it show up without being plugged into the car?
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  7. #17
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    run this before plugging it in

    Code:
    sudo tail -f /var/log/messages
    It should be identified (and the ftdi module should be on the sheeva) and most likely will say it is assigned /dev/ttyUSB0.

    You can also check if the ftdi module is loaded by running

    Code:
     lsmod | grep ftdi
    Report back and we should be able to help from there.

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    On a Mac, the simplest is to fire up the X11 server (may need to install it from CD first) and ssh to the sheeva with X11 forwarding enabled. It should "just work" (tm).
    If you're using leopard, you already have it. You don't need to "fire it up", it will magically do the right thing when you ssh with X forwarding enabled. I cannot strongly enough urge you to update X11 on leopard if you're using it, though. Apple aren't pushing out updates through software update, but you can download an official[ish] update package from here: http://xquartz.macosforge.org/trac/wiki

    Really, the best thing to do is have a real linux install. I'm using VirtualBox with great success; if you don't have a PC with linux installed on it already, I strongly recommend installing Ubuntu 9.04 in a virtualbox. Life just gets easier, the same way that it does if you want to talk to a Windows box; the simplest way to do it is with another Windows box.

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

  9. #19
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Quote Originally Posted by cgalpin View Post
    run this before plugging it in

    Code:
    sudo tail -f /var/log/messages
    It should be identified (and the ftdi module should be on the sheeva) and most likely will say it is assigned /dev/ttyUSB0.
    bugbyte@iPlug:/dev$ sudo tail -f /var/log/messages
    Jun 16 12:42:29 iPlug -- MARK --
    Jun 16 13:02:29 iPlug -- MARK --
    Jun 16 13:22:30 iPlug -- MARK --
    Jun 16 13:42:30 iPlug -- MARK --
    Jun 16 14:02:31 iPlug -- MARK --
    Jun 16 14:22:31 iPlug -- MARK --
    Jun 16 14:42:32 iPlug -- MARK --
    Jun 16 15:02:32 iPlug -- MARK --
    Jun 16 15:22:32 iPlug -- MARK --
    Jun 16 15:42:33 iPlug -- MARK --
    Quote Originally Posted by cgalpin View Post
    You can also check if the ftdi module is loaded by running

    Code:
     lsmod | grep ftdi
    Report back and we should be able to help from there.
    Here's what I got. Curious. I had to hit Ctrl-C to break out of it.

    Code:
    bugbyte@iPlug:/dev$ lsmod | grep ftdi
    bugbyte@iPlug:/dev$
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    See what lsmod shows on its own, without piping it into grep.

    When running tail -f /var/log/messages, did you not get anything when you plugged and unplugged the device? What about if you run "dmesg" after?

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

Page 2 of 7 FirstFirst 1234567 LastLast

Similar Threads

  1. Aopen i945gtt-vfa Users: Processor Question
    By cyu06 in forum General Hardware Discussion
    Replies: 7
    Last Post: 11-01-2006, 06:22 PM
  2. Does FluxMedia own rights to our skins?
    By justintime in forum CF Skins
    Replies: 13
    Last Post: 09-03-2006, 08:22 PM
  3. Replies: 22
    Last Post: 01-05-2005, 01:47 PM
  4. Mobo and processor choices
    By quickshot56 in forum General Hardware Discussion
    Replies: 7
    Last Post: 10-20-2004, 07:16 PM
  5. Frodo: Work Harder, Work Faster..
    By hevnsnt in forum FrodoPlayer
    Replies: 13
    Last Post: 09-24-2004, 04:09 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
  •