Well I nearly got this working (!)
After all the fun of getting the OBD scanner working (dozens of windows tools - mostly useless) (finding a decent usb driver) then getting gpsd working with a bluetooth GPS (flakey to say the least) then finding cmake then finding time to get it all together and in the car and ...
... I now have one database where just the obd was working fine and entering data (no idea what happened to the gps data) and one database where the gps was working fine and entering data but the obd was just throwing "[HL]OBD reported NO DATA for cmd 05: NO DATA[/HL]" endlessly and not recording anything in the db! (instead of using the trip functionality I was making separate db each time since an earlier SQL-related error spooked me into avoiding any chance of bad data confusing or corrupting any good data).
Hopefully I'll get another chance to try and get it running better tomorrow, or more likely sometime at the weekend, but it's been a struggle so far. I'm not really a coder - if make "doesn't" and google doesn't have any clues for me I'm generally stuck.
Here are some things that tripped me up. (Intel Macbook Air 10.5.6, OBDpros USB, GlobalSat BT-368)
- I don't think cmake is installed by default with Xcode
- Current version of cmake (2.6-3) doesn't generate valid Xcode (3.1.2) projects despite listing it as a viable generator
- gpsd (2.39) doesn't always detect the GPS unit properly - it connects at 9600 and needs 'prompting' by briefly running the GPSUtility program included with the GlobalSat (which says it connects at 4800) - this usually wakes up gpsd
- No idea whether gpsd needs to be run as root or not - nor whether I should use the /dev/cu.BT-GPS... (which works) or /dev/tty.BT-GPS... (which maybe worked) or even the serial port osx said it had assigned to the device for me.
- FLTK apparently is available somewhere (I have X11 and Xcode) but I've never found it - so no GUI for me so far
- Probably another half-dozen things I'll remember later
I'll post again when I have a nice image to share!



LinkBack URL
About LinkBacks




Reply With Quote







Bookmarks