V4 Logger not able to put all Outputs in 1 File

Inquiry and support for Freematics products
Post Reply
Ricardo
Posts: 8
Joined: Wed Apr 13, 2016 1:30 am

V4 Logger not able to put all Outputs in 1 File

Post 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?
jonathan
Posts: 18
Joined: Thu Feb 04, 2016 1:25 pm

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

Post 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
Post Reply