traccar-client-android icon indicating copy to clipboard operation
traccar-client-android copied to clipboard

speed zero

Open langxj opened this issue 7 years ago • 26 comments

Hello, I use this APP on my smartphone, the server is deployed on my cloud platform, the program can run correctly, but the speed is always zero (the speed of the test is 50Km/h).

langxj avatar Jun 03 '18 07:06 langxj

Have you changed accuracy to HIGH?

tananaev avatar Jun 03 '18 07:06 tananaev

I don't change it. I'll try it. Thank you for your enthusiasm

langxj avatar Jun 03 '18 07:06 langxj

@tananaev Hello master.I set up according to your prompt, but the speed is still 0.

langxj avatar Jun 03 '18 09:06 langxj

OK, are you sure that you have a GPS signal?

tananaev avatar Jun 03 '18 09:06 tananaev

,Yes,i am sure. I've changed three mobile phones, speed still 0。

langxj avatar Jun 03 '18 09:06 langxj

OK, how do you know that it has?

tananaev avatar Jun 03 '18 09:06 tananaev

My car is on the freeway, I use GPS Status APP,Can get GPS

langxj avatar Jun 03 '18 09:06 langxj

_20180603174306

langxj avatar Jun 03 '18 09:06 langxj

Both course and speed are zero, so it's most likely network location, not GPS.

tananaev avatar Jun 03 '18 09:06 tananaev

@tananaev Hi master.The report screenshot : image

langxj avatar Jun 03 '18 09:06 langxj

@tananaev My GPS has been opened, how to set up the GPS update location.

langxj avatar Jun 03 '18 10:06 langxj

OK, please provide screenshots:

  1. Android settings showing that GPS is enabled.
  2. App settings screen showing that high accuracy is selected.
  3. Screenshot with GPS icon on the status bar showing that you have a fix.

tananaev avatar Jun 03 '18 10:06 tananaev

It's dark. I'll test it tomorrow. Thank you very much.

langxj avatar Jun 03 '18 10:06 langxj

@tananaev The problem is solved. The location mode of mobile phone is set to use GPS only。Thank you for making such a great procedure.

langxj avatar Jun 04 '18 01:06 langxj

I am a new user of tracar and also had the issue of no speed showing for my android client. Did I understand correctly that for speed to show I need to set the accuracy on the client side to high?

is there a documentation for the other parameters, i.e. Frequency, Distance and Angle?

ovizii avatar Aug 22 '18 12:08 ovizii

Speed needs GPS to be turned on

oliv3 avatar Aug 22 '18 14:08 oliv3

Yes, accuracy needs to be set to high.

tananaev avatar Aug 22 '18 19:08 tananaev

Fused location can get a speed without GPS ?

oliv3 avatar Aug 22 '18 20:08 oliv3

It might get it from other sensors (e.g. magnetometer).

tananaev avatar Aug 22 '18 20:08 tananaev

Ok, my bad. Read that somewhere but never got this case, please ignore my answer :) So it's really better, then. Cool !

oliv3 avatar Aug 22 '18 20:08 oliv3

Thanks for confirming. I set accuracy to high and I got speed information when driving home.

ovizii avatar Aug 23 '18 07:08 ovizii

It seems #352 would fix this problem - send null (or not send it at all), show " " or "N/A" instead of 0 when there is no data so that user isn't fooled that it is zero.

stefanb avatar Oct 16 '18 13:10 stefanb

@stefanb To be honest, #352 will fix part of the problem, because server-side unknown or undefined values will default to 0, and not NULL:

  • latitude/longitude
  • speed
  • bearing
  • altitude
  • accuracy

#352 is a small step towards having the problem solved, but upstream doesn't seem like wanting to fix database schema issues.

oliv3 avatar Oct 16 '18 19:10 oliv3

@stefanb See https://github.com/traccar/traccar-client-android/pull/353 also.

oliv3 avatar Oct 16 '18 19:10 oliv3

Yes, all those optional values should be nullable in the DB as well, otherwise the DB will contain some fake default values, most likely zeros.

stefanb avatar Oct 16 '18 21:10 stefanb

@stefanb There are matching (closed) issues in the server repository.

oliv3 avatar Oct 16 '18 22:10 oliv3