Page 1 of 1

V4 Logger not able to put all Outputs in 1 File

Posted: Tue Aug 23, 2016 2:41 am
by Ricardo
When I use the V4 Datalogger with K-Line protocol, there is never GPS and OBD output in one file.
Sometimes only GPS and ACC Data, sometimes only OBD-Data, never both in one file. (I cannot say, when it records GPS/ACC and when only OBD, mysterious.. :? )
At CAN protocol everything is fine.

Any ideas?

Re: V4 Logger not able to put all Outputs in 1 File

Posted: Tue Sep 06, 2016 1:07 pm
by jonathan
I had this problem too, if I've fixed it in my version by having the logger repeatedly try to reconnect to GPS. In the provided code, the GPS tries to connect on startup, if it fails, it never retries. I've fixed this in my fork, you can see the line where it tries to reconnect here:

https://github.com/JonnoFTW/Freematics/ ... #L378-L383

I also changed the connect GPS function:

https://github.com/JonnoFTW/Freematics/ ... #L110-L123