In the status you should see the location fix time.
Hi Anton, thank you so much for your really quick answer !
To well investigate the problem I created a new server, with your last traccar software V 4.11, just today, and inserted only one ZX303.
I Inserted the parameters inside the ZX303 (IP, PORT, TIME etc..) and then i switched it on inside my house, were it has GSM signal but NOT GPS signal. As you can see it connects to Traccar, and traccar shows it GREEN and "online", but both position and time of the device are wrong.
Based on my previous tests, if now I put the chip outside it sends a new good position (in Italy he he..) but if I wil put it again in a place whitout GPS signal, and i move it from there, it will continue to show it green and near my house, but it will be not true.
Another problem is the chip time, as you can see it is now showing 1970.. , and in general i shows strange times, in my production server i had to override the default configuration and set traccar to use Server Time instead of tracker time. Is there some specific setting for topin devices ?
Thank you again,
Emilio.
Link to screenshot:
https://photos.app.goo.gl/kHvvKcZp4Ti8nxSM8
There means there's no GPS fix yet and everything is zeroes. Zero time is 1970 (https://en.wikipedia.org/wiki/Unix_time).
Ok Tomorrow i will make a more realistic test,
Thank you again !
Good night (here in Italy..) Anton,
Today I had time to initialyze correctly the system and make tests with the Topin zx303 device. First I switched on the device outside letting him to connect to GSM and GPS, and then i putted it in a place were it could connect only to GSM, and NOT to GPS.
As you can see from the screenshot, device is reported GREEN even if the FIXTIME (in the TC_POSITIONS table) is very old with respect to the LASTUPDATE (in the TC_DEVICES table).
What we need is an additional state/color (eg: grey) to assign to devices where the DATE_DIFF(LASTUPDATE-FIXTIME) is greater of a configurable threshold (eg: half an hour...).
Thank you again for your help,
Emilio.
Link to images:
https://photos.app.goo.gl/VnyujcqTbo1ThiR86
Well, either it's old data or incorrect data or timezone is not configured correctly somewhere.
Good morning Anton, and thanks for your kind support,
The fix time in the image is old because I voluntarily put the tracker inside a shielded box were it cannot receive GPS data, but only GSM, then I moved the box from that position to another and the result is that i can receive status updates (battery charge, packet #13 of topin protocol) but the last fix remains the older I have.
In my application I have to put the tracker inside a container and detect the moment and the place where the tracker exit from the container and it iconnect again to GPS.
During the travel of the container i can receive (or not..) status updates, but i would be perfect meanwhile to see the color of the device in the page as grayed or something like, during the period in which i have no GPS fix.
Is there a way to change this in the software using configurations ? Or I have to modify the code and recompile ?
Thank you again,
Emilio.
You would have to modify the code if you want status to work differently.
Good evening Anton,
I downloaded the source code of server backend and webApp frontend, and I was able to compile the server code.
Now I am trying to understund the structure of the application and try to make my modifications. I hope to achieve my goal only modifying a bit the frontend in order to compare fix time and server time and change the color of the device accordingly.
Can you give me some link to a deeper documentation or some forum discussions about application structure and how it works in detail ?
Many thanks again,
Emilio.
We only have this high level overview:
Dear Anton, is it possible, for me, to "sponsor" a bit the development of such a feature? How much would it cost ?
I only need a parameter inside traccar.xml were to specify a maximum elapsed time after last Fix, after that the color of the device in the tabel and the icon on the map change from green to gray. The status can remain "online", or whatever it is in that moment.
Based on my small experience and a quick view to the code, probably the change can affect only web frontend code, i imagine a comparison between the fix date/time and the current server date/time and a following override to the color.
What do you think , is it possible ?
Thank you again,
Emilio.
Please email us to discuss details if you are interested in a customization.
Hello to everybody and thanks to all in advance for your help,
I am Emilio, writing from Italy, i set up a Traccar server on a linux machine and I am using it with some Topin ZX303 trackers.
I am using port 5199 and it is working well.
My problem is this, the ZX303 chip sends position informations only if the chip has GPS fix, is moving and have a different location from the last one.
This means that Traccar receives real positions only in this conditions, on the contrary if the chip has not GPS fix, or is not moving, etc. it sends only status packets. In this condition therefore Traccar continue to show the chip as "online" and in green color, leading the user to apparently think that the chip is really in that position.
Is there a way to change the chip status to "not fixed" if the last good position was received too much time before ?
P.S.
In my application i need to insert these chips inside some devices that will shield GPS signal, and i need to detect when and where these chips exits from the shielding devices.. during the devices trip i don't have a position information and i would like to see in the web app a "GPS not availabe.. " and a orage color or someting like.
Thanks again,
Emilio.