Results 1 to 3 of 3

Thread: Won't find GPS ?

  1. #1
    Newbie
    Join Date
    Jun 2012
    Posts
    6

    Won't find GPS ?

    Hi there

    Hoping there are people still using this utility who can help me.

    I've got this up and running now, and it will successfully get data from the OBD port and write it to the DB.
    However, all my traces have no GPS data in them:
    Code:
    Warning: Trip 1 doesn't have gps
    Warning: Trip 2 doesn't have gps
    Warning: Trip 1 doesn't have gps
    Warning: Trip 2 doesn't have gps
    Warning: Trip 1 doesn't have gps
    Warning: Trip 2 doesn't have gps
    Warning: Trip 1 doesn't have gps
    Warning: Trip 2 doesn't have gps
      adding: 1356812685.gpx (deflated 46%)
      adding: 1356812685.kml (deflated 57%)
      adding: 1356812685.csv (deflated 86%)
    I have a working gpsd, it's getting picked up in udev and both gpsmon and gpsctl will show me info about the running daemon.

    Can someone explain to me how/when obdgpslogger is supposed to get GPS data ?

    I've been running some straces and I can't work out when it's attempting to talk to the GPS (either via tcp port or via a serial device)

    I am using /etc/obdgpslogger.conf to hold this:
    Code:
    samplerate=0
    daemonise=1
    db=/obdgpslogger/obdgpslogger.db
    baudrate=38400
    #baudrate_upgrade=0
    optimisations=1
    #obddevice=/dev/ttyUSB4 - this is sent by udev
    gpsdevice=/dev/gps0
    log_file=/obdgpslogger/obdgpslogger.log
    #serial-log=/obdgpslogger/obdgpslogger.log.serial
    /dev/gps0 is a symlink to /dev/ttyUSB* (which ever ID it arrives on), put there with a udev rule. The permissions of the underlying ttyUSB file are usually 660. I have chmodded them to 666 and retried it - no improvement.

    FWIW I also get the 'tight-loop' thing - when it's got data coming in from the OBD device CPU jumps to maximum available.

  2. #2
    Newbie
    Join Date
    Jun 2012
    Posts
    6
    I remember I tried to compile it on this machine and may not have done it properly.
    I will check the linking on the binary I'm using.

  3. #3
    Newbie
    Join Date
    Jun 2012
    Posts
    6
    So it looks like I had binaries in /usr/bin and /usr/local/bin - the ones in /usr/local/bin I had made and were defective.
    CHanged over to the other binaries and the gps is picked up.

    Still having minor issues with start up and shutdown.
    - udev seems to be kicking off two instances - the first one %k evaluates to something like "5-2" - so the instance invoked first is with /dev/5-2 - locks the db but doesn't work.
    The second udev invoke is with the correct TTYUSB* device and will read data, but can't access the DB.

    On shutdown - I have to kill obdgpslogger - can I then dump from it or should I run obdlogrepair ?

    Do people find it a good idea to remove the db and start a new one, or accumulate many trips into the same db for a while ?

    Gavin

Similar Threads

  1. where can i find
    By NATISFYNEST in forum General Hardware Discussion
    Replies: 4
    Last Post: 09-02-2008, 01:23 PM
  2. cant find the LCD for me
    By mewithyou in forum LCD/Display
    Replies: 0
    Last Post: 05-30-2007, 08:20 PM
  3. Replies: 3
    Last Post: 02-13-2004, 02:15 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
  •