Author Topic: Usb Gps  (Read 10305 times)

portalgod

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.rajeshprakash.com
Usb Gps
« Reply #30 on: May 15, 2007, 12:54:22 pm »
Quote
Quote
Quote
I'll try the newer software that xjqian posted about and maybe iut will be easier to use.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
ahh yes, that newer software runs a lot better. thank you.
Now have to try and figure out a way to get/convert a map of Manitoba and Winnipeg, as there's only a general map of North America on the roadmap website that's useful to us Canadians.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151393\"][{POST_SNAPBACK}][/a][/div]

I'm having some trouble getting roadmap to display maps properly.   I downloaded the newer software xjqian suggested and ipkg installed it.   It installed and I can go to /mnt/sd/usr/bin/ and run roadmap.   It first complained about not opening usdir.rdm, I downloaded the latest map files from roadmap.digitalomaha.net and dropped them in /usr/share/roadmap/ (which is a symlink to /mnt/sd/usr/share/roadmap).   The map shows up as a bunch of black shapes on a white background.   No streets shown.   I can click and scroll around, but i suscpect I either don't have the right colors selected or it is not being rendered properly.

Any idears?

I know gpsd is runnign and my reciever is hooked up properly.   using roadgps shows which satellites I have a fix via.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161014\"][{POST_SNAPBACK}][/a][/div]


I'm not sure what was going wrong but I suspect it's all the screwing around I did with the window managers and libraries on my old install of pdaxii13.  

I did a full backup, a wipe of the OS and memory cards, and started fresh.

I did a fresh install of the newest pdaxii13 and installed gpsdrive, roadnav, and roadmap.

Like the last install of pdaxii13, the UT-41 was picked up right away as the Prolific PL2303 on /dev/ttyUSB0.  

I installed gpsd v2.22-1 from the pdaxrom Beta3 feed.  Since dmesg showed the Ut-41 on /dev/ttyUSB0, I immediately tried gpsd -f /dev/ttyUSB0.   Telnet'ing to localhost:2947, once connected hit enter and you should see gpsd respond with "GPSD" in all caps.  Then if you type r and hit enter you should see your GPS start spitting out lots of lines of data at you.  Get out of telnet by using the escape characters '^]'.   If gpsd does not spit anything out at you after typing r and enter, somethign went wrong.  Check dmesg to see if the UT-41 got claimed by a driver.  If it did, try and determine what device node it appears on.  i.e. /dev/ttyUSB0, /dev/ttyUSB1, /dev/somethingelse.

Once gpsd was up and running, I fired up GPSDrive v2.10pre3 from the pdaxrom Beta3 feed and it ran nicely as usual.  I installed a few maps just to test from [a href=\"http://gtm.tel.uva.es/ztep/maps/dmap.htm]http://gtm.tel.uva.es/ztep/maps/dmap.htm[/url].  The UT-41 quickly (pretty fast ttff for a generic brand GPS) fixed my position an correctly indicated it on the map.  Driving around that day tracked me 100% accuratly on the map.  I was pleased    Next stop for GPSDrive is to import some waypoints and test the tracks/routes/waypoint navigation features.  One "gotcha!" for GPS drive is that you have to start it via sudo -u zaurus gpsdrive.  I also symlink'd my ~/.gpsdrive to a directory on my SD card.  A.k.a  ln -s /mnt/card/gpsdrive ~/.gpsdrive   I did this becuase the maps are stored in ~/.gpsdrive and dumping a few maps on that location fills up your NAND.  I'd rather fill up my SD than my NAND (I've got a 4GB SD card  )

I grabbed Roadmap v1.0.12 from https://www.oesf.org/forums/index.php?showt...ndpost&p=103707 and I think I figured out roadmap this time around and after a little playing around with the maps and paths. It finally displayed the map for Washington state in USA nicely.  Just as a tip, I had to install the maps to my SD card since I also installed the package to my SD card.   The maps should be installed to /usr/share/roadmap.  Since I installed roadnav to my SD card, it looked for the maps in /mnt/card/usr/share/roadmap.   The maps the software asked for are :

1) http://roadmap.digitalomaha.net/maps/usdir.rdm.tgz - Map Directory
2) The map file for your state.
3) http://roadmap.digitalomaha.net/maps/dcwNAM.tar.gz -DCW North America

After unpacking those maps in /mnt/card/usr/share/roadmap and starting roadmap from that directory, everything worked fine.    I haven't had a chance to really play with this software yet, but it looks promising.

I installed roadnav v0.16 from the pdaxrom Beta3 feed.  It ran the first time and began downloading the appropriate maps.  I symlink'ed /tmp to /mnt/card/tmp.  I also symlinked ~/.roadnavdata to /mnt/card/roadnavdata It seg faulted (I'm sure it ran out of memory).    Since then I haven't had a chance to really upsize the swap space, overclock it, and make sure it works.   Reports from other users in this forum suspect it runs nicely but is a bit sluggish since the software is built for a desktop.  I installed it on my winxp home box and it was sluggish doing route calculations although it did pinpoint me on the map that it downloaded.   I suspect there may be a way to download the maps (and convert them) on your windows/linux desktop and copy them over to the Z, but I can't confirm this yet.

This is my experience so far with the UT-41 and my Pdaxii13 Zaurus
« Last Edit: May 15, 2007, 01:16:05 pm by portalgod »
SL-C1000 w/pdaXii13 Akita (base) + select apps
4GB Transcend 150x SD, 4GB Transcend 120x CF
Planex gw-cf11x CF Wi-Fi, Buffalo CF LAN
UT-41 USB GPS
Misc other SD and CF cards

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Usb Gps
« Reply #31 on: May 15, 2007, 06:54:38 pm »
Thanks for taking the time to share all the info. I'll get back into my GPS in fall and will appreciate all the info you posted.
Sorry for not helping more.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

portalgod

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.rajeshprakash.com
Usb Gps
« Reply #32 on: May 16, 2007, 01:46:48 am »
Quote
Thanks for taking the time to share all the info. I'll get back into my GPS in fall and will appreciate all the info you posted.
Sorry for not helping more.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

No prob.  I'll prolly screw it up later, so I'll use that last post as a howto (I'll eventually generate howto's on my homepage for everything I've tinkered with).

Have you found that GPSDrive somehow plots your position off by a few dozen meters?   I put the long/lat that GPSDrive Status window reports into some online map programs (mapquest, google) and it accurately plots my position.   However using the maps from [a href=\"http://gtm.tel.uva.es/ztep/maps/dmap.htm]http://gtm.tel.uva.es/ztep/maps/dmap.htm[/url] seems to be off a bit.  

Furthermore, it is only off in the X direction (if you use the convention X is horizontal, Y is vertical).   For example, If I have 148th street running east to west intersecting 104th avenue running north to south, If I'm on the NW corner, GPS drive will correctly place me just north of 148th street, but about 100ft WEST of 104th avenue.   If I drive all over the place, driving horizontally on the map tracks me perfectly, however anytime I'm runnign north to south gpsdrive plots me about 100ft WEST of whatever road I"m on.  It's weird.

EDIT: I'm going to try and fudge the location a bit by adjusting the longitude value of the map I specified and see if I can shift the image to match a known location.

EDIT2: Yeppers. If you fudge the long value in map_koord.txt by around 0.0001, you can shift the image about 10 to 15 feet.    So I just lined it up to a known position, and voila!    Problem is, if you have mapped out a large area, and have a boat load of tiled map files, you have to fudge each one by the same amount.   Maybe one day I'll write a bash script to do it for me    for now, I can do it by hand.

EDIT3: I had to play some more with map_koord.txt so here's my perl script to adjust it for me.   http://www.rajeshprakash.com/zaurus/remap.pl   Drop it in your .gpsdrive folder, and run it with ./remap.pl lat_adj long_adj > tempfile .   Then overwrite map_koord.txt by tempfile.   The variables lat_adj and long_adj are doubles, so you can enter 1.243 or -14.148 or anything else
« Last Edit: May 16, 2007, 10:49:21 pm by portalgod »
SL-C1000 w/pdaXii13 Akita (base) + select apps
4GB Transcend 150x SD, 4GB Transcend 120x CF
Planex gw-cf11x CF Wi-Fi, Buffalo CF LAN
UT-41 USB GPS
Misc other SD and CF cards

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Usb Gps
« Reply #33 on: May 17, 2007, 11:05:25 pm »
portalgod: thanks for sharing your experience, could you put your experience with gps into the wiki page @ https://www.oesf.org/index.php?title=GPS
If you don't have time, I will copy/edit the content over.
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc