Closed tennox closed 2 years ago
I am not sure if I have the same problem, but I also installed telelogger firmware. And it constantly sends (0, 0) when it loses signal.
As a result I get this route. Is there a way to avoid this?
@stanleyhuangyc how do we fight this bug with zero coordinates?
Hi, I am seeing this problem as well.
sys.gpsGetData(&gd) is not setting gd->ts, and transmission is conditioned on gd->ts being non zero.
Is there any progress on getting this fixed?
Thanks
Just fixed this bug.
I tried debugging why I didn't receive GPS positon on Traccar server, and I figured out two things:
I had to change the URL to remove the
/push
, as Traccar OsmAnd API is on the base URL. (Am I using wrong way to connect to Traccar or why is this the case?)The
sys.gpsGetData(&gd)
would only setts
field for non-coprocessor sensor. But in teleclient, it checksgd->ts
intransmit
, and otherwise only sends the device ID (probably as a "I'm alive" ping?): https://github.com/stanleyhuangyc/Freematics/blob/master/firmware_v5/telelogger/teleclient.cpp#L359And in general I'm uncertain if this is how to use the code correctly with Traccar server, as it required changing the code.
Here's my config: