Thursday, May 10, 2007

Global Positioning System (GPS)

I bought a Royaltek RBT-1000 GPS. This is a little (60gr) bluetooth GPS reciever. Connecting it to the Zaurus was really easy (mainly following this ipaq bluetooth gps howto),

  1. Turn the GPS and Zaurus on.
  2. Insert bluetooth CF. I found out that if the Zaurus was suspended with the bluetooth card inserted I had to restart the CF card with,
    #cardctl eject; cardctl insert
  3. Edit /etc/bluetooth/rfcomm.conf,
  4. Bind the dev (If the bind option is disabled).,
    # rfcomm bind /dev/rfcomm0
  5. To see the raw feed,
    # cat /dev/rfcomm0
  6. Start gpsd, this daemon gives a simpler interface to the gps feed, qpegps and (I think) roadmap use it to recieve data from the gps.
    #gpsd -f /dev/rfcomm0
    adding the -n switch turns on the bluetooth immidiatly and leaves it on (even if there is no active connection) otherwise gpsd closes the bluetooth after the connection was closed. This is good if I want to recive data using a command line script like (thanx ckuethe),
    #echo "0" | nc localhost 2947
    This will spit out the position and velocity information.
  7. Connecting to gpsd using telnet,
    # telnet localhost 2947
    there several commands that are documented in the gpsd manpage.
  8. roadmap gps terminal seems to work out of the box,
    # roadgps
    but gives very limited information (only satellite constellation and signal strength).
That was the easy part. roadmap started ok only if I start it from the map folder (where usdir.rdm exists) managed to connect to the gps, but it doesn't show the map (which I got from freemap.co.il). qpegps started ok, but couldn't connect to gpsd which makes it useless.

No comments:

Post a Comment