Using GPS kills all data logging
Posted: Fri Sep 26, 2014 12:58 pm
I've got the OBD-II Adaptor (with BLE & GPS) successfully streaming OBD-II data to the iOS app & logging to SD card with the latest commit:
https://github.com/stanleyhuangyc/Freematics/commit/eb9f2bddcb43e90a950cfdb646e027c8741fb367
I can't get any GPS to log or stream any data when I turn on GPS logging in config.h. Definitions I'm using are:
With these options turned on, the adaptor creates the CSV file in the FRMATICS directory, but the CSV file is empty, not even OBD-II data is being logged.
I've since tried troubleshooting by commenting out all of the GPS related code in datalogger.ino, then reintroducing piece by piece to debug. It seems that logging stops as soon as an the instance of TinyGPS is created:
Also, I noticed that the code includes the TinyGPS library, but the github repo library folder has TinyGPSPlus. Which one is it supposed to be?
Has anyone been able to get GPS logging working? Any help is appreciated, I just want to get the standard firmware working as advertised for now...
thanks
Luke
https://github.com/stanleyhuangyc/Freematics/commit/eb9f2bddcb43e90a950cfdb646e027c8741fb367
I can't get any GPS to log or stream any data when I turn on GPS logging in config.h. Definitions I'm using are:
Code: Select all
// enable(1)/disable(0) GPS module
#define USE_GPS 1
#define LOG_GPS_NMEA_DATA 0
#define LOG_GPS_PARSED_DATA 1
With these options turned on, the adaptor creates the CSV file in the FRMATICS directory, but the CSV file is empty, not even OBD-II data is being logged.
I've since tried troubleshooting by commenting out all of the GPS related code in datalogger.ino, then reintroducing piece by piece to debug. It seems that logging stops as soon as an the instance of TinyGPS is created:
Code: Select all
#if USE_GPS && LOG_GPS_PARSED_DATA
TinyGPS gps;
#endif
Also, I noticed that the code includes the TinyGPS library, but the github repo library folder has TinyGPSPlus. Which one is it supposed to be?
Has anyone been able to get GPS logging working? Any help is appreciated, I just want to get the standard firmware working as advertised for now...
thanks
Luke