
Originally Posted by
longfeltwant
The output of the stderr pane of the "Raw Output" window is
execlp failed: No such file or directory
Oh. obdgpslogger isn't in your path anywhere. I presume you're running from the build directory instead of having done a "make install". Try adding the bin directory to your path, something like:
Code:
mkdir build; cd build; cmake ..; make # Usual build instructions
# While still in build:
PATH=`pwd`/../bin:$PATH; export PATH
obdgui
Basically, just adding the bin dir to your path so that execlp will find obdgpslogger.

Originally Posted by
longfeltwant
And while we're debugging, I'm interested in pursuing the reason I see "OBD reported NO DATA for cmd 10: NO DATA" when I spam stdout. You say that is the actual text returned from the OBD device, where in the code would I look for that? In fact, if I want to look at the code, do you have a recommendation where I should look at first?
The code that actually sees "NO DATA" is in obdserial.c line 139. It literally looks for the string "NO DATA" in the buffer.
Hrm. What I really need to do is add a real OBD logfile to this...

Originally Posted by
longfeltwant
I have attached my obdlogger.db file
Hrm. That contains gps data, but no trip or OBD data. Trip data is done automatically when obd data is added to the database...
Ah. Looking at the whole logical flow of the program again, if any single item fails, then it assumes that whole row is a bust and starts again. [main.c, lines 410 to 427 gets the data, then lines 429 to 451 write it to the database]. Evidently one item is regularly failing for you, more than just the occasional "NO DATA" line.
Try adding a printf before the break in main.c line 425:
Code:
printf("cmd: %02X [%s] failed, returned status %i\n",
obdcmds[cmdlist[i]].cmdid,
obdcmds[cmdlist[i]].db_column,
obdstatus);
It should show you exactly which command is causing the problem each time.
Also, can you run obdgpslogger with the "-p" option, which prints a list of all the commands your car reports it's capable of.
Gary (-;
Bookmarks