No speed info

daniele 9 years ago

Hi.

I am a new traccar user, and I must say that I am very happy and pleased with the software in overall. Fantastic good work!

However, I am experimenting with Traccar Client on my own phone (Samsung Galaxy S6). To reduce power usage, I use "Network" as location provider. It works, but there is not coming any speed info in the packets from Traccar Client:

2017-04-04 11:24:10 DEBUG: [05A901F7: 5055 < 67.49.126.114] HEX: 474554202f3f69643d3438313734312674696d657374616d703d31343931323937383438266c61743d35362e32363535393531266c6f6e3d392e333133373836332673706565643d302e302662656172696e67
3d302e3026616c7469747564653d302e3026626174743d33332e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b20534d2d4739323046204275696c642f4d4d4232394b290d0a486f7
3743a203130342e3133312e34392e3132313a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-04-04 11:24:10 DEBUG: [05A901F7: 5055 > 67.49.126.114] HEX: 485454502f312e3120323030204f4b0d0a436f6e74656e742d4c656e6774683a20300d0a0d0a

The missing speed info causes Traccar not to be able to report any trips.

How can this be fixed? I did not try with the GPS locaotion provider, as it probably consumes more battery, and it displays the "GPS icon" in the top, so I really would prefer that Network could be sufficient.

Best regards,
Daniel

Anton Tananaev 9 years ago

Network provider does not return speed value. It's a technology limitation. If you need speed, you have to use GPS provider. GPS will use more battery, but that's the only option with speed.

daniele 9 years ago

Okay, thank you for the answer.

Would you consider changing the trip detection algorithm to be based on timestamps and location differences instead, or as a supplement? Or maybe keep using speed, but then add a mechanism for calculating speeds inside Traccar from times and locations before detecting?

Anton Tananaev 9 years ago

I am open to suggestions if you can think of a good algorithm. Any feature suggestions please add on GitHub, not forum.