GPS Test

To know where the robot is in the outside world I want to mount a GPS receiver on the ‘head’ of the robot. It’s a navilock NL-302U GPS Mouse and has an SiRF Star III chipset. The GPS mouse is connected by USB to the Motherboard. Navilock used the Prolific pl2303 converter as the USB serial adapter.

NavilockNL-302U

Communication with the robot is done with the gpsd Service Daemon (http://gpsd.berlios.de/). This Deamon is working with a lot of GPS devices. To see what the GPS receiver is seeing I used the GPSDrive software (http://www.gpsdrive.de/).

To install the gpsd and the gpsdrive software you can use the following in the terminal:

[code lang=”shell”]
sudo apt-get install gpsd
sudo apt-get install gpsdrive
[/code]

After installation I had to check on which port the receiver was, so I used dmesg after plugging in the Receiver. You get information about what the system has done with the new connected device. For the Navilock NL-302U you have to look at the Prolific pl2303 converter. In my case the port was ttyUSB0. Now I had to set the Baudrate to 4800, because it has a standard value of 9600. This was done by:

[code lang=”shell”]
sudo stty -F /dev/ttyUSB0 ispeed 4800
[/code]

Check with:

[code lang=”shell”]
stty -F /dev/ttyUSB0
[/code]

To start the gpsd daemon and the gpsdrive use:

[code lang=”shell”]
gpsd /dev/ttyUSB0
gpsdrive
[/code]

See the result in the following screenshot. (And yes, I live in The Netherlands)

screenshot_gpsdrive

You also can use the xgps tool to see the satellites the gps receiver is seeing.

xgps

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.