|
 |
10-11-2009, 05:51 PM
|
#1
|
|
Newbie
Join Date: Aug 2009
Posts: 14
|
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.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
10-11-2009, 11:01 PM
|
#2
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
10-11-2009, 11:35 PM
|
#3
|
|
Newbie
Join Date: Aug 2009
Posts: 14
|
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 ...
|
|
|
10-11-2009, 11:50 PM
|
#4
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
10-12-2009, 12:44 AM
|
#5
|
|
Newbie
Join Date: Aug 2009
Posts: 14
|
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.
|
|
|
10-12-2009, 12:51 AM
|
#6
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
10-12-2009, 01:04 AM
|
#7
|
|
Newbie
Join Date: Aug 2009
Posts: 14
|
Oh snap, that's awesome!
|
|
|
10-12-2009, 01:07 AM
|
#8
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
10-17-2009, 07:40 PM
|
#9
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
10-18-2009, 01:58 AM
|
#10
|
|
Newbie
Join Date: Aug 2009
Posts: 14
|
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.
|
|
|
10-18-2009, 01:58 PM
|
#11
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
10-18-2009, 05:20 PM
|
#12
|
|
Newbie
Join Date: Aug 2009
Posts: 14
|
Is there any reason no to log all possible columns at all times?
|
|
|
10-18-2009, 10:26 PM
|
#13
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:44 AM.
| |