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

Thread: logging suddenly stops

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    All fixed, now.

    Turns out that WATCH_NEWSTYLE isn't the default, and isn't described on the relevant page, but you need it if you want it the whole thing to work on the current gpsd releases.

    Anyways. SVN update, see if it's working for you now. Should be good!

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

  2. #12
    Newbie
    Join Date
    Feb 2010
    Posts
    26
    Thanks! I'll try this when I get more free time, I've been busy lately doing other things.

  3. #13
    Newbie
    Join Date
    Feb 2010
    Posts
    26
    Hi, I'm back!

    I seem to have narrowed down my current problem of not being able to run the logger on bootup. I've set up the udev and expected it to work.

    gpsd works properly on bootup, and having my obdgpslogger udev based on that, I hoped that would be the end of it. Turns out I was wrong, the logger doesn't start at all.

    I've narrowed down the problem to running the logger as a daemon (-m). Right after running /usr/local/bin/obdgpslogger -m (or with -s /dev/obd) , I am thrown back at bash, as expected, but running ps aux | grep obd doesn't show anything other than the grep obd.

    Log file doesn't exist either. in /etc/obdgpslogger I have set the baudrate, obddevice, optimisations, logfile, etc. (I'll have to check the exact parameters in the morning) I copied the names from src/conf/obdconfigfile.c and also run testobdconfig, It showed the correct parameters.

    Any ideas?

  4. #14
    Newbie
    Join Date
    Feb 2010
    Posts
    26
    forgot to mention, the thing works perfectly if I run it without -m and I set all the parameters at run time, I'll have to test out running it without parameters though.

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    One specific problem I had with udev was guaranteeing that things were being run in the right order. Off the top of my head, I'll guess that when your gps udev entry causes obdgpslogger to start, the OBDII dongle isn't available yet. udev deliberately doesn't make guarantees like this, and that's a Good Thing (TM) - but it's something we have to work around.

    What I do is launch obdgpslogger from udev via the OBDII dongle, not the gps one. In my car, to guarantee that all the stuff necessary happens in the right order, I actually have a shell script that's used when you hotplug the OBDII device, that forks and then waits a few seconds before launching. It's in doc/udev_delay.sh. This way, I have reasonable trust that the other USB devices have been found before things actually start executing.

    Note that that script does a couple things you may not need. It has a MEDIA_MOUNTPOINT variable; the script tries to mount that, and exits if it fails. Then it prepends the PATH to run obdgpslogger from that mount first, and points to a config file on there too. I have a sheevaplug in my car that I can't interact with; to update obdgpslogger or to reconfigure it, I just grab my external drive, plug it in to a different computer inside, and rebuild obdgpslogger there.

    For config stuff, there's a dot-obdgpslogger(5) manpage [online here] that might be useful [to save you having to read the source :-)].

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

  6. #16
    Newbie
    Join Date
    Feb 2010
    Posts
    26
    I'll try that out, but I do remember running it manually
    /usr/local/bin/obdgpslogger -m
    and still not getting anything

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Try specifying the OBDII device at the command-line - sounds like you might just not be connecting to the right thing?

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

  8. #18
    Newbie
    Join Date
    Feb 2010
    Posts
    26
    quick update:

    Olivia carputer # /usr/local/bin/obdgpslogger -s /dev/obd -b 38400 -d /tmp/obdgpslogger.db
    Opening serial port /dev/obd, this can take a while
    Successfully connected to serial port. Will log obd data
    Successfully connected to gpsd. Will log gps data
    Creating a new trip
    GPS acquisition complete

    Olivia carputer # /usr/local/bin/obdgpslogger -m -s /dev/obd -b 38400 -d /tmp/obdgpslogger.db

    first one works, 2nd one doesn't even blink an LED on the obdlink device

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

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    ... huh, that's really weird. udev_delay will avoid that because it avoids -m, but that's hardly a proper fix.

    I'll have to think about it, I really don't get why that's happening

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

  10. #20
    Newbie
    Join Date
    Feb 2010
    Posts
    26
    It seems OBD_POSIX isn't set. I'll update you if I find a solution for my setup

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. 700TSV touchscreen stops working after ~30mins
    By SpinOut123 in forum LCD/Display
    Replies: 7
    Last Post: 12-16-2009, 04:40 PM
  2. gps logging program
    By soundman98 in forum Crowdsourced Data Collection, Open Source Mapping And Routing
    Replies: 9
    Last Post: 08-19-2009, 04:40 AM
  3. New Debugging Skin, and Logging Example!
    By greenman100 in forum FB Skins
    Replies: 0
    Last Post: 04-24-2008, 12:23 AM
  4. Replies: 6
    Last Post: 05-21-2006, 02:42 PM
  5. keyboard stops working
    By corsamel in forum General Hardware Discussion
    Replies: 0
    Last Post: 03-03-2005, 02:50 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
  •