Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Engine Management, OBD-II, Engine Diagnostics, etc. > OBDII GPS Logger


Reply
 
Share Thread Tools Display Modes
Old 10-11-2009, 05:51 PM   #1
Newbie
 
Join Date: Aug 2009
Posts: 14
dents is an unknown quantity at this point
Issue with cygwin

I ditched Ubuntu on my eeePC and put XP back on because Bluetooth was having horrible problems. Trying to compile under cygwin and get this:

Quote:
Administrator@datalogger /cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/build
$ make
[ 11%] Built target ckobdinfo
[ 15%] Built target cksqlite
[ 19%] Built target ckobdconfigfile
[ 23%] Building C object src/logger/CMakeFiles/obdgpslogger.dir/main.o
/cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c: In function `main':
/cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c:446: error: storage size of 'starttime' isn't known
/cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c:447: error: storage size of 'endtime' isn't known
/cygdrive/c/Documents and Settings/Administrator/Desktop/obdgpslogger/src/logger/main.c:448: error: storage size of 'selecttime' isn't known
make[2]: *** [src/logger/CMakeFiles/obdgpslogger.dir/main.o] Error 1
make[1]: *** [src/logger/CMakeFiles/obdgpslogger.dir/all] Error 2
make: *** [all] Error 2

Did I forget to install a package or something?

Last edited by dents; 10-11-2009 at 08:14 PM.
dents is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-11-2009, 11:01 PM   #2
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
I think you need to add
Code:
#include <sys/time.h>

To main.h. Probably around line 55 or so [near all the other system #includes]

Lemme know if that fixes it. I haven't actually tested on cygwin in a while, so other teething problems may appear. Please let me know

Gary (-;
chunkyks is offline   Reply With Quote
Old 10-11-2009, 11:35 PM   #3
Newbie
 
Join Date: Aug 2009
Posts: 14
dents is an unknown quantity at this point
Yep that fixed it. Next gcc proceeded to complain about cfsetspeed not being defined on line 280 of logger\obdserial.c . I replaced that call with one to cfsetispeed and another one to cfsetospeed, both before tcsetattr, which compiled. Then I got an error about addrinfo not being defined somewhere in the simulator source, which I proceeded to just remove from src\ for now. Gonna go try it on the car and see if cfsetispeed/cfsetospeed is a good substitute for cfsetspeed ...
dents is offline   Reply With Quote
Old 10-11-2009, 11:50 PM   #4
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
addrinfo only appears in the socket sim generator; you can disable OBD_SIMGEN_SOCKET to make it not compile that module. In future I'll make it check for that before attempting to compile it.

Gary (-;
chunkyks is offline   Reply With Quote
Old 10-12-2009, 12:44 AM   #5
Newbie
 
Join Date: Aug 2009
Posts: 14
dents is an unknown quantity at this point
Hooray I got data! Looks like cfsetispeed/cfsetospeed at least didn't break anything.

Looks like my car only supports a small subset of commands known to obdgpslogger:
1997 Chevrolet Lumina LS - temp, rpm, vss, maf, throttlepos

Now, to find more commands! I'll make a post if/when that happens Thanks for the help.
dents is offline   Reply With Quote
Old 10-12-2009, 12:51 AM   #6
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Woo! I commited changes to svn so this will work in future.

That list of commands looks suspiciously similar to the set that I log by default, rather than the list of commands supported by your car.

Run obdgpslogger with the "-p" option to get a list of all the commands your car supports. You can then configure which columns you actually want to log with the log_columns parameter in the config file [man 5 dot-obdgpslogger], or with the --log-columns command-line parameter.

Gary (-;
chunkyks is offline   Reply With Quote
Old 10-12-2009, 01:04 AM   #7
Newbie
 
Join Date: Aug 2009
Posts: 14
dents is an unknown quantity at this point
Oh snap, that's awesome!
dents is offline   Reply With Quote
Old 10-12-2009, 01:07 AM   #8
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
I do my best :-D

Really, lemme know how it goes. I absolutely get my warm fuzzies from seeing people using my stuff, so post screenshots or something!

Gary (-;
chunkyks is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 10-17-2009, 07:40 PM   #9
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Fix in svn now: If the getaddrinfo symbol can't be found, don't build the socket generator.

This fixes the problem where there's a compilation error in the bowels of obdsim on cygwin.

Gary (-;
chunkyks is offline   Reply With Quote
Old 10-18-2009, 01:58 AM   #10
Newbie
 
Join Date: Aug 2009
Posts: 14
dents is an unknown quantity at this point
Sweet, thanks for all your hard work.

Here's a screen shot with the -p option for my 97 Lumina:


And my 98 Corvette:


This is on a Eee PC 901 with a 50$ generic eBay bluetooth OBD-II scanner.
dents is offline   Reply With Quote
Old 10-18-2009, 01:58 PM   #11
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Awesome. So to choose what you want to log [while testing], run obdgpslogger with something like [for example]:
Code:
--log-columns load_pct,rpm,map

When you decide you want that permanantly, edit /etc/obdgpslogger [or $HOME/.obdgpslogger - look at man dot-obdgpslogger for details] and put in a line like:
Code:
log_columns=load_pct,rpm,temp,map

Note that you can also add this line to your config file to save some typing:
Code:
obddevice=/dev/com2

Gary (-;
chunkyks is offline   Reply With Quote
Old 10-18-2009, 05:20 PM   #12
Newbie
 
Join Date: Aug 2009
Posts: 14
dents is an unknown quantity at this point
Is there any reason no to log all possible columns at all times?
dents is offline   Reply With Quote
Old 10-18-2009, 10:26 PM   #13
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Columns are sampled one at a time, and depending on your device, you're looking at maybe 20 samples per second.

So, sure. Sample everything, but keep in mind you can only sample one row at most per second if you sample 20 things. For my shame, obdgpslogger also considers a row to be sampled instantaneously, so if you sample lots of things, keep in mind that the columns at the end may *actually* be at a significantly different time to the columns at the start.

Also, some of those values won't change, ever, so logging them feels wasteful. For example, in your corvette, obdsup, o2sloc should never change.

.. in conclusion, suck-it-and-see. Log everything if you like :-)

Gary (-;
chunkyks is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DigitalFX 4.0 JohnWPB RR Released Skins 4187 11-20-2009 08:33 PM
**Please help!! disk drive/windows issue Phoenix750 General Hardware Discussion 26 05-12-2009 12:38 PM
HP Laptop LCD Exstension issue kendallb LCD/Display 3 03-22-2009 07:16 PM
My RR/DFX 4.0 100% CPU usage issue Minoritydan RR Bug Tracker 27 12-23-2008 01:40 PM
No audio after resume from hibernate issue - almost fixed - Help me finish? Trin Software & Software Development 0 07-26-2008 08:35 AM



All times are GMT -5. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics