Community discussions

MikroTik App
 
beamer
newbie
Topic Author
Posts: 36
Joined: Mon Aug 20, 2012 12:40 am

Issues with GPS (wrong date)

Mon Nov 26, 2012 5:10 am

Hi

I tried an USB GPS module on OmniTIK (RouterOS 5.22) and it works so far, but with the following issues:

- Time is correct, but date shows as apr/12/1993 (today is November 26, 2012). That is 7168 days off - 7 * 1024 :?:
- Position is approx. correct (a bit jumpy ± 50 m despite not moving) but I noticed that the decimal fraction of latitude and longitude is always the same, like N xx 7' 25.962'' E yy 38' 36.962'' or N xx 7' 27.750'' E yy 38' 38.750''

Are these bugs of RouterOS, or the GPS firmware? The GPS module is rather old, Haicom HI-202E. :?
 
beamer
newbie
Topic Author
Posts: 36
Joined: Mon Aug 20, 2012 12:40 am

Re: Issues with GPS (wrong date)

Wed Nov 28, 2012 1:55 am

I captured the output of the GPS module on the serial interface, and it's visible that the wrong date is a bug in the GPS firmware. There's a string '130493' and it shows April 13, 1993, so the Haicom HI-202E is obviously not Y2K compliant. :(

BUT the wrong long/lat second decimal fraction is a bug in RouterOS! I read the string xx07.4550,N,yy38.6406,E for example. 7.4550 minutes is 7 minutes and 27.3 seconds, whereas 38.6406 should be converted to 38 minutes and 38.436 seconds. Yet RouterOS presents both values with .300 at the end:
       latitude: N xx 7' 27.300''
      longitude: E yy 38' 38.300''
The latitude decimal fraction overwrites the longitude decimal fraction.

Who is online

Users browsing this forum: Ahrefs [Bot], anav, ernieball17, ret411, wsantos and 63 guests