Log in

No account? Create an account
Track uploader for nmea_info.py - Nick [entries|archive|friends|userinfo]

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Track uploader for nmea_info.py [Jun. 25th, 2006|03:04 pm]
Until now, the only way to get tracks collected with nmea_info.py off your phone has been to use something like FExplorer.

While using FExplorer isn't that much of a faff, it's still a little bit more faff than most people really want. So, I've written a stand-alone track uploader / converter / details displayer / etc:

It allows you to see which tracks you have collected. It shows you details on those tracks (file size, # of points, first timestamp, last timestamp etc). It lets you delete these tracks, before or after upload. It allows you to pick your upload format (NMEA, or GPX). Finally, the main thing - it lets you upload your tracks over bluetooth to your computer.

Hopefully, this'll make using nmea_info.py that little bit easier :)

(In case anyone's wondering, it's not integrated into nmea_info.py as there's a bug in S60 python, and you can't switch between the Canvas view and the Listbox view without crashing!)

Update: v0.05 now out, which produces GPX files that OpenStreetmap is happier with
Update 2: v0.07 now out, which doesn't switch the month and the minute fields (doh!)
Update 3: v0.09 now out, with a few bug fixes, and a .sis file (v1 / v2 only, sorry)
Update 4: v0.10 now out, which support compressing the files it sends, and renaming files

From: (Anonymous)
2006-07-28 07:52 am (UTC)

Wrong Date in GPX Conversion

When I upload in GPX format I got wrong date like this:


(Replies frozen) (Thread)
From: gagravarr
2006-07-29 02:45 pm (UTC)

Re: Wrong Date in GPX Conversion

Doh! I'd got the minute and the month parameters the wrong way round.

Try grabbing the latest version now, should behave better
(Replies frozen) (Parent) (Thread)
From: martinki
2006-09-08 10:44 pm (UTC)

wwmx gpx format

nmea_info worked great for me - just a small point on conversion to gpx for those who might try "location stamping" with microsoft wwmx location stamper...it may be just me, but I had to delete the ".000" (just before the "Z") in the time field of trackpoints for wwmx to be able to understand the gpx file...a quick search and replace fixes it in seconds although it took me 2 days to figure out why every other gps parser understood the files but location stamper did not..."No new track points added" is a message I do not wish to see again...
(Replies frozen) (Thread)
From: gagravarr
2006-09-11 09:51 am (UTC)

Re: wwmx gpx format

You could try and file a bug report with microsoft, but I doubt you'll have much luck....

The gpx spec (http://www.topografix.com/GPX/1/1/#type_wptType) says that the time field is an xsd:dateTime, which is defined (http://www.w3.org/TR/xmlschema-2/#dateTime) as allowing (but not requiring) miliseconds. So, Microsoft are in the wrong here.
(Replies frozen) (Parent) (Thread)
From: (Anonymous)
2006-12-07 02:03 pm (UTC)

Works well

I tried it quickly and its working great! Thanks, hoping the bug will bere solved some time, perhaps with a version upgrade.

My gps blog http://gps-bargains.info
(Replies frozen) (Thread)
From: gagravarr
2006-12-11 10:32 am (UTC)

Re: Works well

There are a few more critical ones, which affect S60 v3, but I hope they'll also fix the listbox/canvas crash before too long too :)
(Replies frozen) (Parent) (Thread)
From: (Anonymous)
2007-01-28 06:32 pm (UTC)

Can't find a way to run nmea_uploader.py

Hi Nick,
Thanks for such a wonderful work on nmea_info.
I am looking forward to use it on my OpenStreetMap project of Barreiro/Portugal :-) with my Nokia 6630 S60v2.
So I downloaded Python for S60 2ndED and I downloaded nmea_info.py in the SIS file.
It works wonderfully with my Nokia and with my bluetooth GPS receiver.
The problem is that OSM project only accepts GPX data.
I saw your nmea_uploader.py tool and I thought I was on safe ground again but only to find out that I can't run it on my 6630.
I don't own a desktop PC with Bluetooth so I use the USB cable that comes with the phone to upload/download info from the phone to the PC and backwards.
I can upload nmea_uploader.py to the phone but when I run FExplorer and I try to open the script it just opens the script in a notepad instead of running it with Python.
What can I do?
Thanks in advance m8 :-)
(Replies frozen) (Thread)
From: (Anonymous)
2007-01-28 06:57 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

Sorry but I forgot one thing to post above.
Could you please provide nmea_uploader.py in a SIS package?
I'm quite sure I could run it if it was a SIS package instead of a plain *.py script.
I'm not the brains in the family :-D.
Cheers m8
(Replies frozen) (Parent) (Thread)
From: gagravarr
2007-02-05 10:29 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

I've now done a .sis file for upload_track.py. You can grab it from the usual place (http://gagravarr.org/code/)
(Replies frozen) (Parent) (Thread)
From: gagravarr
2007-01-29 08:35 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

I'll see if I can generate a .sis file for it in a day or two

In the mean time, try downloading the .py file in the web browser on your phone (it's small, shouldn't cost much to download over the air). With any luck, that'll launch the python installer, and install it in the right place.

Once it's installed, load python on your phone, select the left soft key (options), then "Run Script", then find nmea_uploader.py on the list and hit ok.
(Replies frozen) (Parent) (Thread)
From: (Anonymous)
2007-01-29 10:07 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

Dear me.
I'm sorry for all this trouble that I am putting you through.
I just reinstalled PythonForS60_1_3_17_2ndEdFP2.SIS and this time I also installed PythonScriptShell_1_3_17_2ndEdFP2.SIS.
I can now open Python on my Nokia 6630 and I can even run some of the scripts that come with it such as the magnificent ball.py and snake.py.
Before (yesterday) I couldn't do that.
So I re-sent the the nmea_uploader.py through BT to my phone and this time it asked if I wanted it installed as a Python script or as a Python lib module.
So I answered "script".
Apparently all seemed to go well and now I can find nmea_uploader.py under the full list of scripts that come with Python itself.
But...bummer...I still can't run it... :-(
Here's a big jpeg of the error message that I am getting.
Please acknowledge the red numbering so that you can understand the text.
Many thanks in advance for your free programs and for your patience helping me :-).
(Replies frozen) (Parent) (Thread)
From: gagravarr
2007-01-29 10:35 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

That's odd, the directory in question should've been created when you installed the nmea_info sis file, or failing that the first time you ran it. Can you try re-installing nmea_info from a sis, then running it briefly, before trying to run nmea_uploader?
(Replies frozen) (Parent) (Thread)
From: (Anonymous)
2007-01-30 12:19 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

I have done that recently.
I was so mad with the phone that I decided to do a *#7370# (Soft format) and I also formated the MMC card so that I would do a fresh install of everything again.
I just did so and it simply doesn't work.
Though, I have PythonForS60_1_3_17_2ndEdFP2.SIS installed on the MMC card and I have PythonScriptShell_1_3_17_2ndEdFP2.SIS installed in the phone's internal memory.
I'm going to try everything installed in the phone's internal memory and everything installed in the MMC just to see what I get.
I am worried of doing it all in the internal memory because otherwise I won't have any memory left to run Tomtom 5.2. :-(
I really want to keep Tomtom 5.2 working plus having nmea-info and nmea-uploader for the weekends.
During the week I'll keep on using Tomtom to navigate to unknown territory and on the weekends I would put some effort on building a OpenStreetMap of my town. :-)
Thanks for all the help Nick.
I'll let you know when I try it back again.
(Replies frozen) (Parent) (Thread)
From: gagravarr
2007-01-30 02:13 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

When I get the sis for the uploader, I'll have it create the directory if it's not there. That ought to help
(Replies frozen) (Parent) (Thread)
From: (Anonymous)
2007-01-30 01:54 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

Sorry but...forget all about my last post.
After reinstalling Pyhton all over again after the phone soft format AND after reinstalling nmea_info.sis everything is now installed and running perfectly. I mean, more or less :-D.
Now I can see the nmea_uploader.py running, I can choose my nmea file and I can choose weather to upload it as nmea or gpx data and I can set it (or not) to delete the file after the upload.
Then I push the Options button and I select the Upload button.
I choose my bluetooth device to upload to (my laptop) and then...then I can't see the file anywhere on the laptop. :-(
I just can't find it on the laptop's hard drive.
Maybe it's not even uploading at all although I can see the laptop BT icon turning to green signaling that it is communicating with some device.
Could you tell me where I should be looking for the file?
Sorry about all this mess that I just made with your blog out of nothing when it wasn't eve your fault.
Thanks in advance :)
(Replies frozen) (Parent) (Thread)
From: gagravarr
2007-01-30 02:15 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

When you've done the upload, try quitting the uploader app, and see if there's any errors shown on the display.

As for where your computer might put it, no idea, sorry. Mine puts it in /tmp/, but then I specified that location when I compiled the program, so it's too be expected! You would expect it to write (filename).gpx, eg nmea_gga_log.gpx
(Replies frozen) (Parent) (Thread)
From: (Anonymous)
2007-01-30 10:40 pm (UTC)

Re: Can't find a way to run nmea_uploader.py

Forget the errors.
I was having BT trouble, nothing to do with nmea_uploader or Python.
I just tried to upload to my desktop PC and it worked like a charm.
Now I can easily use nmea_info with nmea_uploader to grab some waypoints, upload them to my PC and finally edit and store them on OpenStreetMap.
Great work Nick, your tools are really wonderful.
Just a small wish-list if I may do so?:
- options to grab waypoints every 1sec and every 3secs.
- integrate uploader in a sis file to ease up installation.
- option to draw and see a small plotted scratch of the grabbed waypoints.
- integrate info and uploader into a single application as soon as Python bug is fixed.
Thanks mate, you really made my day :-D
(Replies frozen) (Parent) (Thread)
From: gagravarr
2007-01-31 09:35 am (UTC)

Re: Can't find a way to run nmea_uploader.py

You can select how often to log waypoints. Just use * and # to change the interval. You may also wish to read the comments at the start of the program, there's lots more useful stuff there :)

I've been pondering the drawing thing, but I've yet to figure out if I can read from a file I'm already writing to.
(Replies frozen) (Parent) (Thread)