Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

Thread: Getting OBDGPSlogger to run on the Sheeva Plug

  1. #11
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by Bugbyte View Post
    Okay, help me out here again. There's no tarball for obdsim, right? I've accessed the repository through svn at http://svn.icculus.org/obdgpslogger/trunk/src/sim/

    If I just do an SVN copy of all the files in the sim folder, I should have all the files I'll need to build obdsim on the Sheeva, right? By that I mean that I don't need to check out the files, do I?

    I should be able to just follow the CMake process to build the simulator, correct?
    obdsim installs with obdgpslogger. should be in /usr/bin or /usr/local/bin
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  2. #12
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Hmm. I've got:

    obd2csv obd2kml obdgpslogger obdgui

    in /usr/local/bin but that's all obdgpslogger stuff, right?
    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

  3. #13
    n2k
    n2k is offline
    Low Bitrate n2k's Avatar
    Join Date
    Aug 2005
    Posts
    79
    How are you planing on using the gpsd ?

    I've got gpsd running on my asus router and I've got it updating my webserver with location, and also got it connect to my pc so I can use it for navigation.

    One thing I would love to do is get it to work with my ipod touch. that way I'd get like a wireless navigation and like a remote where-is-my-car
    GPSSerial looked promising but they don't support gpsd yet. and it doesn't seem to be much demand for it.


    this is a bit of topic but have you looked at Seagates new DockStar, it's sheeva based and from the pictures I've seen it looks smaller and have 4 usb ports.
    Seagate FreeAgent DockStar

    .n

  4. #14
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    The use of the Sheeva is to act as the connection between the outside world and a smart device such as an iPod touch or iPhone or any device that can run a web browser, for that matter. Could be a PC if you wanted.

    The Sheeva will run php and be connected to a router either via WiFi or simply plugged into it. It will serve up information to the iPhone using php that will interface with the GPS, the Fusion Brain, OBDII, and perhaps XM. Obviously, anything you can connect to the Sheeva can be served up -a web cam or whatever.

    Initially, the web pages will be on the Sheeva and will do real simple things like report the Sheeva's position to your iPhone via a web page. Or your current rpms. Stuff like that. Once that works, I want to move the source of those web pages out onto the internet and have some type of web app that lets users configure the interface the way they want it to be. The changes would be reflected instantly when you access the web page on the iPhone/smart device.

    Another thing that I would dearly love to do is connect a touch screen to the Sheeva and figure out how to sync it with an app that is displayed by the iPhone (like a front end app). Screen clicks would be interpreted by the Sheeva and sent to the app, which would then react to the inputs. Alternatively, a Griffin Powermate or a keyboard emulator might be a way to do it.

    All of that is pretty far off, though. I'm nowhere near as technically skilled as I need to be in either programming or architecture but I'm hoping that if I can get a proof of concept going that others will join in.
    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

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    I've got:
    obd2csv obd2kml obdgpslogger obdgui
    in /usr/local/bin but that's all obdgpslogger stuff, right?
    That's all obdgpslogger stuff, yes. It sounds like you have an older version downloaded [probably ~0.6, which pre-dates obdsim]. Grab the latest svn, and rebuild:

    Code:
    svn co svn://svn.icculus.org/obdgpslogger/trunk obdgpslogger
    cd obdgpslogger; mkdir build; cd build
    cmake ..
    make install
    When you run cmake, check to see if it says anything about GPS; either that it found it, or it didn't. If it didn't, make sure to install libgps-dev

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

  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! Downloaded the new version (thanks for the SVN commands!) and built it. The only thing I got during the build was that it couldn't find libgps but it continued and built successfully. Is that a problem?

    I then went back up to your post about how to test and tried the following:

    Code:
    obdsim -g Logger -s down-to-vista.db
    It gave me /dev/pts/1. I entered:
    Code:
    obdgpslogger -s /dev/pts/1 --spam-stdout
    and it just sat there. I did download the down-to-vista.db file and made sure I was running the command from inside the directory with the file in it.

    However, I did try simply doing obdsim -o and it initialized and started running, spitting out stuff like this until I hit ctrl-c:

    Code:
    root@iPlug:/usr/build/obdgpslogger# obdsim -o
    Slave Name for pty: /dev/pts/1
    Opening serial port /dev/pts/1, this can take a while
    Reset
    Echo disabled
    Spaces disabled
    Successfully connected to serial port. Will log obd data
    temp=67.000000
    rpm=7468.000000
    vss=35.000000
    maf=119.529999
    throttlepos=31.764706
    Creating a new trip
    temp=-7.000000
    rpm=1283.500000
    vss=127.000000
    maf=200.740005
    throttlepos=24.705883
    temp=27.000000
    rpm=2320.750000
    vss=142.000000
    maf=62.980000
    throttlepos=51.372547
    I think the next step is to try and see if my obd device is recognized by the Sheeva plug, yes?
    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
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    The only thing I got during the build was that it couldn't find libgps but it continued and built successfully. Is that a problem?
    You need the libgps-dev and libgps17 [IIRC] packages. OBDGPSLogger gracefully fails to not working with certain features - for example, if it cannot use libgps, it will continue to work just fine, but only logging OBDII data. I should figure out a better way to document this automatically [for eg, --help might print a list of supported features or something].

    I'm not immediately sure why it just sat there but worked when you did "-o", but if "-o" does something then it means we're in the right ballpark :-)

    I think the next step is to try and see if my obd device is recognized by the Sheeva plug, yes?
    Sounds good. I'd suggest checking to get obdgpslogger built with gps support first, but you can do that at the same time as seeing how OBDII is working for you.

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

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Oh, hrm. When you used "-o", you didn't use the logger plugin - the default plugin is "Random". Perhaps try
    "obdsim -o -g Logger -s down-to-vista.db"
    see if that works?

    Also, be sure that down-to-vista.db exists in the current directory when you run that :-)

    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
    Perhaps try
    "obdsim -o -g Logger -s down-to-vista.db"
    see if that works?
    That worked. See below. I have mySQL installed, it looks like it needs sqlite installed also? Also, I installed libgps-dev and libgps17. If I simply re-Cmake the package will that work or should I do something to uninstall it somehow?

    Code:
    root@iPlug:/usr/build/obdgpslogger# obdsim -o -g Logger -s down-to-vista.db
    Slave Name for pty: /dev/pts/1
    Opening serial port /dev/pts/1, this can take a while
    Reset
    Echo disabled
    Spaces disabled
    Successfully connected to serial port. Will log obd data
    Didn't get parsable data back for cmd 60: 
    ?
    >
    Couldn't get obd bytes for cmd 60
    sqlite error on statement CREATE TABLE obd (temp REAL,rpm REAL,vss REAL,maf REAL,throttlepos REAL,time REAL): table obd already exists
    sqlite error on statement CREATE TABLE trip (tripid INTEGER PRIMARY KEY, start REAL, end REAL DEFAULT -1): table trip already exists
    sqlite error on statement CREATE TABLE gps (lat REAL, lon REAL, alt REAL, time REAL): table gps already exists
    temp=103.000000
    rpm=3152.500000
    vss=0.000000
    maf=436.010010
    throttlepos=40.000000
    Creating a new trip
    temp=103.000000
    rpm=3188.000000
    vss=0.000000
    maf=422.089996
    throttlepos=40.000000
    temp=103.000000
    rpm=3232.250000
    vss=0.000000
    maf=446.670013
    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
    That worked. See below. (IIRC if the tables aren't found, the program will build them).
    I have mySQL installed, it looks like it needs sqlite installed also?
    Ignore the whining about database tables already existing. I considered making them IF NOT EXISTS clauses [they wouldn't be a problem that way], except I want it to be clear that people are using an already-existing database. Throwing an error is a whole lot easier than checking that tables have the exact scheme we need for this exercise :-)

    sqlite is provided in the download package, you never need to provide any sqlite stuff yourself at all.

    Also, I installed libgps-dev and libgps17. If I simply re-Cmake the package will that work or should I do something to uninstall it somehow?
    Just re-running cmake && make install *should* fix it. If not, "rm -rf build", and re-build from scratch. [IME, CMake occasionally caches things that I'd expect it not to. Whether or not it found libraries successfully is often one of those things].

    There's no harm in purging and rebuilding from scratch, whatever. I do it often

    You don't need to uninstall; installing the new one on top will tidily fix it for you.

    Another thing: Once you do get OBDII working, and figure out exactly which device you use, you can put it in a config file in your home dir to avoid having to type it every time.

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

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 334
    Last Post: 01-19-2011, 03:51 PM
  2. Additional M2-ATX plug
    By soyfish in forum Power Supplies
    Replies: 8
    Last Post: 05-26-2009, 02:25 PM
  3. SUPER T/S controller plug
    By taKuto in forum LCD/Display
    Replies: 0
    Last Post: 11-14-2007, 01:29 PM
  4. Plug and play but where
    By AJWatU in forum LCD/Display
    Replies: 4
    Last Post: 10-19-2007, 04:39 PM
  5. Anyone tried a micro Plug n Run mobo from Cell Computing?
    By gibbo in forum General Hardware Discussion
    Replies: 1
    Last Post: 09-02-1999, 07:20 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
  •