Can't get Online Tracking to post anything

255 views
Skip to first unread message

Gorm E. Johnsen

unread,
May 31, 2013, 5:50:02 PM5/31/13
to osm...@googlegroups.com
Hi

I have set up this super simple service that logs every request to it and setup the online tracking in osmand with the corresponding url with parameters.
But it seems like there is absolutely nothing coming from my phone! Have tried on 3G and wifi, with and without an active route etc. Nothing.
Is there a way to verify that osmand is doing what it should? Any debugging tools?

The logging service url: http://gorm.cc/osm/track.php?lat=5&lon=38note=your_ip_is_logged
View the log here: http://gorm.cc/osm/

-gorm

Onkar Shinde

unread,
Jun 1, 2013, 5:43:14 AM6/1/13
to osm...@googlegroups.com
It seems you have hard coded values of latitude and longitude in the URL you have specified in OsmAnd settings.

Try setting following URL in your OsmAnd settings. See if it works.

The values {0} and {1} will get replaced by OsmAnd at runtime depending on your location.

Gorm E. Johnsen

unread,
Jun 1, 2013, 11:01:26 PM6/1/13
to osm...@googlegroups.com
Onkar
Read the post. Problem is not the service or url (I gave you a simple example for you folks to test in your browser to see that the service works).
Problem is that I don't recieve anything at all from osmand on my phone!

>Is there a way to verify that osmand is doing what it should? Any debugging tools?

Nico W

unread,
Jun 1, 2013, 11:56:38 PM6/1/13
to osm...@googlegroups.com
Gorm: reading and writing are 2 different skills. In the first post you say you get nothing FROM your phone, in the second you get nothing ON your phone. So what is it?
Onkar points to different symbols and associated values in your URL than what you have, and you attack him over that. Not nice. He is reading your post, I think you are not reading his. Now make up your mind, post your question again in a nicer tone of voice. We're all here to help or learn.

Gorm E. Johnsen

unread,
Jun 2, 2013, 1:44:43 AM6/2/13
to osm...@googlegroups.com
Sure:
>nothing coming from my phone
>I don't recieve anything at all from (osmand on my phone)
With or without my emphasis, fairly clear to me, at least. But I'll try to rephrase:

I log every request to http://gorm.cc/osm/track.php with any parameters, both POST and GET. This works, at least in a normal browser, as you may see for yourself.

I have set up osmand with the this url: http://gorm.cc/osm/track.php?lat={0}&lon={1}, 10 sec interval and the Online tracking is active. GPS fix is good, 3g and or wifi is active and works. osmand has permission to have full network access. If I copy and paste the url from the osmand settings and run it in a browser on the same phone, I get the expected response from my server + log entry.

But I still don't have a steady stream of coordinates ticking in from osmand to my server.
Is there a setting in osmand or phone I have overlooked? Might there be something on my phone blocking osmand from posting to my server?

Is there perhaps an error log for osmand to see if it is successful at reaching my server when attempting to post the coordinates?

Perhaps someone of you who have a working setup, can change their url for a while to see if I get their entries on my server? Perhaps I can 'borrow' a working url from someone to see if my osmand will post there?

Is there any android tools that can sniff network traffic in and out of osmand? Should I resort to setting up some packet sniffer on my wifi?

best regards

-gorm

Victor Shcherb

unread,
Jun 2, 2013, 2:58:48 PM6/2/13
to osmand
To monitor just open LogCat program after a while and check if there are messages in log (sending http .... and result of operation).

Victor


--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

le zioul

unread,
Oct 4, 2013, 11:31:10 AM10/4/13
to osm...@googlegroups.com
Hi,

do you finally succeed to make it work?
I encounter the same problem as you : osmand does not seem to send anything to my webserver.

Thanks for your help

lezioul

pshrutpark

unread,
Oct 4, 2013, 6:11:25 PM10/4/13
to osm...@googlegroups.com
Hello.

OSMAnd certainly does send the live tracking data when correctly set up. I use it regularly.

Recently I had to reinstall OSMand and found that the live tracking no longer worked.

I looked at the actual logs of the web server and discovered immediately that an error was being generated because I had failed to capitalise a particular letter in the folder name of the string OSMAnd was sending.  

By looking at the same logs one can check that the correct data is being passed, in the correct order.

Good luck
Reply all
Reply to author
Forward
0 new messages