GPSGate error in coordinates sent

Started by stevenhorner, December 05, 2013, 12:38:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stevenhorner

I have been trying to use the GPSGate tracking built into OruxMaps but it appears the location it is sending is wrong. Below is an example that was sent and the coordinates are in NMEA DDMMM.mmmm



cmd=$FRCMD,1234,_SendMessage,,2085.92481,N,114.07519,W,6.2,2.55,0.0,261113,132437.000,1



Pulling the coordinates from the above would give the following

2085.92481,N

114.07519,W



If I convert these to Decimal (below) it gives the location in Africa, yet it should be in the North East of England.



21.432080, -1.234587



OruxMaps records the location correctly in the app and in the GPX file, yet the location sent via the GPSGate protocol doesn't appear to match. Is this a fault or am I doing something wrong. My phone a Note II works fine in every other GPS including OruxMaps itself so I don't think its a problem with my hardware or my conversion.



Any help appreciated.

orux

#1
Quote from: "stevenhorner"I have been trying to use the GPSGate tracking built into OruxMaps but it appears the location it is sending is wrong. Below is an example that was sent and the coordinates are in NMEA DDMMM.mmmm



cmd=$FRCMD,1234,_SendMessage,,2085.92481,N,114.07519,W,6.2,2.55,0.0,261113,132437.000,1



Pulling the coordinates from the above would give the following

2085.92481,N

114.07519,W



If I convert these to Decimal (below) it gives the location in Africa, yet it should be in the North East of England.



21.432080, -1.234587



OruxMaps records the location correctly in the app and in the GPX file, yet the location sent via the GPSGate protocol doesn't appear to match. Is this a fault or am I doing something wrong. My phone a Note II works fine in every other GPS including OruxMaps itself so I don't think its a problem with my hardware or my conversion.



Any help appreciated.


Thanks, you are right, there is a bug (really old bug!).



I think there are no much users of gpsgate interface :)



I will try to solve the problem for next version.





orux

stevenhorner

#2
Thank you.



I have been testing some of the integration (tracking) options OruxMaps offers. I would like it to send the data to a custom url, so the options are:



MapMyTracks

GpsGate

OKMap



OKMap isn't really suitable for just logging the locations to a database and MapMyTracks I couldn't see anyway to specify how often the tracks could be submitted. It looks like it submits a location every 2 minutes.



GpsGate in OruxMaps allows me to specify the delay and what I enter here looks like the frequency the updates are sent. The simplest solution would be something like what OSMand does, which basically submits to the URL the user specifies like this:

http://www.mysite.com/tracking.php?&lat=%7B0%7D&lon=%7B1%7D&timestamp=%7B2%7D&hdop=%7B3%7D&altitude=%7B4%7D&speed=%7B5">http://www.mysite.com/tracking.php?&lat ... }&speed={5">http://www.mysite.com/tracking.php?&lat={0}&lon={1}&timestamp={2}&hdop={3}&altitude={4}&speed={5}



All OSMand does is replace the numbers and brackets {0}, {1}, etc.. with the relevant values. The user can change any part of the url to their requirements.

So I could have longitude sent like any of the following:

lon={0}

long={0}

longitude={0}



The user can also specify exactly how often they want the location information sent.



Thanks again for checking and hopefully fixing the GpsGate protocol in the next release.