Author Topic: downloading GPS data to Zaurus  (Read 3835 times)

kenknight

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://www.wanderingknight.org
downloading GPS data to Zaurus
« on: October 25, 2004, 03:43:25 pm »
I've a somewhat specific use for my SL5600 and a GPS (either Garmin eTrex or Magellan SportTrak - assuming I can get them both talking to the Z; I know eTrex will based on the info at <http://qpegps.sourceforge.net/gps_units.html>). I don't need to display maps or anything like that. What I want to do is dump data from the GPS to the Z and save it in individual files. Specifically I want to dump track and waypoint data. This is for a mapping project I'm involved with. What I want to do is osmethng like this:

1. start GPS tracking.
2. travel route I want to map
3. download data to Z.
4. Repeat process with next section but download data to new file.

Idealy, this would be as automatic as possible. Tap a button on the screen and bang the data is sucked in, new file is made, and data is saved to that file.

Anyone got any ideas how I can go about this?

  ** Ken **

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
downloading GPS data to Zaurus
« Reply #1 on: October 25, 2004, 06:12:32 pm »
Assuming you can get your GPSes to spit out the correct data (in standard NMEA format and with the right things being output) then you can just grab it all from the serial port and spit it into a file. Should be easy.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

kenknight

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://www.wanderingknight.org
downloading GPS data to Zaurus
« Reply #2 on: October 26, 2004, 04:23:49 pm »
Tardman, I'm sure I can get them to output MNEA data, but could you elaborate on what I need to do to read the serial port to pull the data into a file.

Actually, while I'm sure I can get them to talk MNEA I suppose I am a bit less sure about how to get the GPS to actually start transmitting the proper data.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
downloading GPS data to Zaurus
« Reply #3 on: October 26, 2004, 04:30:43 pm »
Quote
Actually, while I'm sure I can get them to talk MNEA I suppose I am a bit less sure about how to get the GPS to actually start transmitting the proper data.

There may be a menu in which you can enable the output (otherwise it probably does it by default).

Quote
I'm sure I can get them to output MNEA data, but could you elaborate on what I need to do to read the serial port to pull the data into a file.

You could use minicom or some other terminal program (which allows you to log).

Have a read of this (or similar): http://vancouver-webpages.com/peter/nmeafaq.txt

You just have to set your terminal to the correct baud/parity/stop bits, connect and start logging.

What will you do with the data afterwards? You may prefer to write a simple c program to parse the incoming strings and only record the ones you're interested in.


Si

P.S. Look at Section 4 (NMEA-0183 as this is what you'll want/will have to use)
« Last Edit: October 26, 2004, 04:31:28 pm by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

kenknight

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://www.wanderingknight.org
downloading GPS data to Zaurus
« Reply #4 on: October 27, 2004, 05:02:14 pm »
This is for a mapping project. I want to record traveled tracks that will then be moved into software like national Geographic Topo! via it's import function. Each track would represent a side-trail that a person can hike along. We've been doing this with a laptop and GPS and dumping the data directly into Topo! but it would certainly be a bit less clunky if we could just dump the individual track (the GPS tracks would be cleared for each side trail - or I suppose you could just save to different files and edit at home) data to a handheld like the Z.

I think I'll be better off staying away from C just because I've not written comm software in so long I'm not sure where I would start.

Thanks for the URLs. I'll take a look at them and see where this might go. This is a slow moving project so I have time to work on this.

By the way, the reason I'm not even considering using a CF card GPS is that I doubt it's tracking abilities are good enough and I want to keep the Z's battery alive as long as possible. Also a standard handheld GPS can tolerate more abuse than the Z.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
downloading GPS data to Zaurus
« Reply #5 on: October 27, 2004, 05:21:40 pm »
Quote
By the way, the reason I'm not even considering using a CF card GPS is that I doubt it's tracking abilities are good enough and I want to keep the Z's battery alive as long as possible. Also a standard handheld GPS can tolerate more abuse than the Z.

I've got a serial GPS for much the same reasons, plus I can then stash my Z somewhere and stick (via a magnet) the antenna somewhere else (exposed).

Quote
We've been doing this with a laptop and GPS and dumping the data directly into Topo!

What've you been using on the laptop? It looks like one has to pay for Topo!, what kind of input data does it want (Can you post a sample?)?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

kenknight

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://www.wanderingknight.org
downloading GPS data to Zaurus
« Reply #6 on: October 27, 2004, 05:40:14 pm »
Yep. Topo! is commercial and it is pricy. A Mac and Windows version exist. There certainly are over options out there for doing this kind of thing. You just need software that can handle USGS scanned maps (DRGs) and lets you overlay useful info on them. This means the software has to be able to deal with calibrating the basemap picture to a co-ordinate system (if that picture is not already calibrated - e.g., a GeoTIFF file) and from there you can overlay whatever you need to. In this case GPS track data. A program like Topo! will let you manipulate the resulting route. Other programs like OziExplorer or Mac GPS Pro do the same thing though generally speaking the map resources they can draw on are a bit more limited.

The files Topo! saves (.tpo files) are, as you might guess, a strange format meant to work with Topo!. These files contain user-added data to maps such as routes, waypoints, labels, notes, other stuff. Topo! overlays the information in the .tpo files onto USGS quads which you've bought from National Geographic ($100 per state). They make region based versions of the product too, but they're not as detailed.

If you can get your hands on digital versions of USGS maps (or whatever), properly calibrate them - that is tell the software that this known location is at this spot on the image and this known location is at this spot, and so on, you can "do it yourself" with other tools. But that's easier said than done.

With Topo! once I have the data I can create maps that fit my needs. For example, create small sections of maps for priting.

The laptop we've ben using is just an old Windows 95 based machine that generally gathers dust. I could just as easily use an iBook, but since Andy gets out more often to do this than I do (easier for him to get to the pace than it is for me) we use his WIndows machine.

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
downloading GPS data to Zaurus
« Reply #7 on: October 28, 2004, 04:35:31 am »
just in case you didn't know.
QPEGPS will record tracks (routes) for you.
These tracks are then saved as text files, like a list of co-ordinates, that can then be loaded into other software on a PC like gpsdrive.

As the routes are stored as ascii text files, if your software doesn't understand the format, they can be easily converted using a simple shell script into a format your software does understand.

Hope this helps.
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

totaln00b

  • Full Member
  • ***
  • Posts: 104
    • View Profile
downloading GPS data to Zaurus
« Reply #8 on: October 28, 2004, 04:56:42 am »
I've used QpeGPS in exactly the way that ZBones described- with a compact flash gps. You set it to record to a specific text file and set the time interval between points then off you go. I've used it on bike rides and it works very well indeed.
CL 860, cacko  1.23 full, Sandisk 512Mb CF, Kodak 256Mb SD, Symbol Spectrum24 wifi
SL 5500, standard rom, 256Mb SD, CF GPS

kenknight

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://www.wanderingknight.org
downloading GPS data to Zaurus
« Reply #9 on: October 28, 2004, 12:53:16 pm »
From my reading of the qpeGPS docs I did n't think it would let me do what zBones and  totalbn001 describe. Guess I need to re-read the docs.

That being said I still might roll my own solution just because I can.

Thanks everyone.