In another thread I mentioned my success in getting my DeLorme Earthmate LT-20 GPS receiver to work with gpsd, xgps and gpsdrive.
Now I will describe how I got it to work with navit.
To recap: The previous thread included this post:
The info concerning how to get gpsd working is still relevant.
Gpsdriver worked when I populated it with a map of the US from OpenStreetMap.org I used their EXPORT option to create a bin file of the USA. In gpsdriver the menu Options --> Maps --> Download dialog allowed me to chose a more detailed resolution of an area, down to 1:1000. The preferred resolution appears to be 1:2000 for auto navigation. While gpsdriver was, intially, a lot easier to get running with a useful map it is a LOT harder to control area displayed on the screen. So, IMO, as a navigation tool, where you watch your auto avatar cruise down the road you are on, and you zoom out to see what other roads are available to you, it works OK. Putting in waypoints is TOO complicated. It seems that you must know (or estimate the long & lat of two opposing corners of the region you want to get a map for, or the long & lat of your destination. Not to convenient if you are in a car and don't have 3G or 4G connection to the Internet.
When I first installed Navit and displayed it I got a blank light tan screen with a blue dot surrounded by a blue circle. The available menu options, obtained by clicking on the blank screen gave no leads nor any help info that would instruct me on how to get a map loaded. That led to my initial disappointment.
But, not satisfied with that, I searched the Internet and found the Navit homepage. It led me to the documentation and to a site that uses OpenStreetMap.org to create bin files of any region in the world the user wants to create a road atlas for. I went whole HOG and marked off the entire United States, the top half of Mexico and the first 100 miles of Canada. The bin file was 1.8Gb.
That was a big mistake. Searching for a destination address was painfully slow. So, I downloaded and created a "Nebraska_area.bin", which was slow but not as slow as the US bin file, "Omaha_area.bin", "Lincoln_area.bin", both of which are relatively as quick. The Nebraska_area.bin file is 147MB, but Omaha's and Lincoln's are only about 45Mb.
You can rename the binary files to suitable names and move them to /home/youracct/.navit. They will appear in the "Map" menu. All of them will be checked. You can uncheck them all and check just the one you want to use at the time.
Then I plugged in my LT-20, waited between 30 and 60 seconds, then ran gpsd, xgps, and fired up Navit. Boom! The location of my house displayed automatically, with all the streets within a quarter of a mile. I unchecked everything but the Lincoln_area.bin map. I zoomed out, navigated down to my daughter's house, 11 miles away, selected it as the destination, and immediately a blue line appeared between my house and her's showing the "best way", which actually was!
Selected destinations are stored in ~/.navit/destination.txt. One can edit that to change or clear the destinations out.
The KEY to getting Navit to run is to properly edit the XML file, /etc/navit.xml. My "MapSet" setting is:
Moving the map around and finding stuff is a LOT EASIER in Navit than gpsdrive. Adding destinations is a lot easier too. Removing them is not.
And Navit has additional features:
It allows you to set the angle of viewing so that you can see the horizon and the road ahead appears to vanish in the distance. However, as far as I can tell, you must edit navit.xml to set the angle.
It creates a directions file listing the locations and directions of each turn and the distance to travel.
It is touch-screen enabled, if you have a touch screen.
All in all, Navit, with the appropriate bin map files (not too big!) is an excellent Trip Maker and real time navigator. It is much better than gpsdriver. I will probably uninstall gpsdriver.
Now I will describe how I got it to work with navit.
To recap: The previous thread included this post:
I have found two ways to get a trip map running in Linux.
1) No brainer -- Install XP as a guest OS and run DeLorme's Street Atlas in it. Works great.
I tried to run SA 6.0 under WINE in my guest OS of Linux Mint 9 KDE4, but I could never get it to connect to the GPS receiver. Now, I think I can, but since I can run gpsdrive under Linux WITH my Earthmate LT-20 gps reciever and WITHOUT WINE there is no need.
2) Running gpsdrive in Kubuntu 10.4 using gpsd and my Earthmate LT-20 gps receiver.
Steps:
1) plug the Earthmate into a usb port.
2) run "lsusb" to see what it is listed as. Mine was listed like so:
Quote
jerry@sonyvgnfw140e:~$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 044e:3017 Alps Electric Co., Ltd
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 1163:0200 DeLorme Publishing, Inc. Earthmate GPS (LT-20, LT-40)
Bus 005 Device 002: ID 046d:c526 Logitech, Inc. MX Revolution Cordless Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 054c:0377 Sony Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05ca:183d Ricoh Co., Ltd
Bus 001 Device 001: ID 1d
3) Identify its connection by id and by path. Mine was
Quote
/dev/serial/by-id/usb-DeLorme_Publishing_DeLorme_USB_Earthmate-if00-port0
/dev/serial/by-path/pci-0000:00:1d.0-usb-0:1:1.0-port0
I know. It's a USB device plugged into a usb port, but using "/dev/bus/usb/005/003" didn't work.
4) run the gpsd daemon with the -b option (to prevent talkback to the receiver).
Quote
gpsd -b /dev/serial/by-path/pci-0000:00:1d.0-usb-0:1:1.0-port0
The "by-id" connection didn't work for the gpsd and xgps (which shows a circle with the satellites in them and lists the various ranges and distances) showed nothing. When I switched to the "by-id" connection xgps lite up with green, yellow, red and clear circles, and lots of data.
5) Run gpsdrive. Here's the amazing part. When I started the gpsd with the command above, both the by-id and the by-path devices had a link pointing to /dev/ttyUSB0! /dev/ttyUSB0 is exactly what gpsdrive needs to see!
Quote
gpsdrive -X /dev/ttyUSB0
The "-X" option uses the DBUS for communication and disables the socket method.
That's all there was to it. Now I can use gpsdrive as I would my hand held Garmin G350, except that I will have to have my notebook plugged into my cigarette socket and my wife is the navigator, since putting a notebook computer on the dash in front of the steering wheel isn't the safest way to drive. Shocked
I tried "navit", which installed without a menu option. with the gpsd running and xgps showing several connected satelittes navit popped up immediately with a blank screen and a single, small dot surrounded by a small blue circular line. Without an active Earthmate connection no dot or circle shows up. But, navit is poorly written and getting a street atlas map showing is more trouble than I want to undertake.
Now I am off to search for other trip map options!
1) No brainer -- Install XP as a guest OS and run DeLorme's Street Atlas in it. Works great.
I tried to run SA 6.0 under WINE in my guest OS of Linux Mint 9 KDE4, but I could never get it to connect to the GPS receiver. Now, I think I can, but since I can run gpsdrive under Linux WITH my Earthmate LT-20 gps reciever and WITHOUT WINE there is no need.
2) Running gpsdrive in Kubuntu 10.4 using gpsd and my Earthmate LT-20 gps receiver.
Steps:
1) plug the Earthmate into a usb port.
2) run "lsusb" to see what it is listed as. Mine was listed like so:
Quote
jerry@sonyvgnfw140e:~$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 044e:3017 Alps Electric Co., Ltd
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 1163:0200 DeLorme Publishing, Inc. Earthmate GPS (LT-20, LT-40)
Bus 005 Device 002: ID 046d:c526 Logitech, Inc. MX Revolution Cordless Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 054c:0377 Sony Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05ca:183d Ricoh Co., Ltd
Bus 001 Device 001: ID 1d
3) Identify its connection by id and by path. Mine was
Quote
/dev/serial/by-id/usb-DeLorme_Publishing_DeLorme_USB_Earthmate-if00-port0
/dev/serial/by-path/pci-0000:00:1d.0-usb-0:1:1.0-port0
I know. It's a USB device plugged into a usb port, but using "/dev/bus/usb/005/003" didn't work.
4) run the gpsd daemon with the -b option (to prevent talkback to the receiver).
Quote
gpsd -b /dev/serial/by-path/pci-0000:00:1d.0-usb-0:1:1.0-port0
The "by-id" connection didn't work for the gpsd and xgps (which shows a circle with the satellites in them and lists the various ranges and distances) showed nothing. When I switched to the "by-id" connection xgps lite up with green, yellow, red and clear circles, and lots of data.
5) Run gpsdrive. Here's the amazing part. When I started the gpsd with the command above, both the by-id and the by-path devices had a link pointing to /dev/ttyUSB0! /dev/ttyUSB0 is exactly what gpsdrive needs to see!
Quote
gpsdrive -X /dev/ttyUSB0
The "-X" option uses the DBUS for communication and disables the socket method.
That's all there was to it. Now I can use gpsdrive as I would my hand held Garmin G350, except that I will have to have my notebook plugged into my cigarette socket and my wife is the navigator, since putting a notebook computer on the dash in front of the steering wheel isn't the safest way to drive. Shocked
I tried "navit", which installed without a menu option. with the gpsd running and xgps showing several connected satelittes navit popped up immediately with a blank screen and a single, small dot surrounded by a small blue circular line. Without an active Earthmate connection no dot or circle shows up. But, navit is poorly written and getting a street atlas map showing is more trouble than I want to undertake.
Now I am off to search for other trip map options!
Gpsdriver worked when I populated it with a map of the US from OpenStreetMap.org I used their EXPORT option to create a bin file of the USA. In gpsdriver the menu Options --> Maps --> Download dialog allowed me to chose a more detailed resolution of an area, down to 1:1000. The preferred resolution appears to be 1:2000 for auto navigation. While gpsdriver was, intially, a lot easier to get running with a useful map it is a LOT harder to control area displayed on the screen. So, IMO, as a navigation tool, where you watch your auto avatar cruise down the road you are on, and you zoom out to see what other roads are available to you, it works OK. Putting in waypoints is TOO complicated. It seems that you must know (or estimate the long & lat of two opposing corners of the region you want to get a map for, or the long & lat of your destination. Not to convenient if you are in a car and don't have 3G or 4G connection to the Internet.
When I first installed Navit and displayed it I got a blank light tan screen with a blue dot surrounded by a blue circle. The available menu options, obtained by clicking on the blank screen gave no leads nor any help info that would instruct me on how to get a map loaded. That led to my initial disappointment.
But, not satisfied with that, I searched the Internet and found the Navit homepage. It led me to the documentation and to a site that uses OpenStreetMap.org to create bin files of any region in the world the user wants to create a road atlas for. I went whole HOG and marked off the entire United States, the top half of Mexico and the first 100 miles of Canada. The bin file was 1.8Gb.
That was a big mistake. Searching for a destination address was painfully slow. So, I downloaded and created a "Nebraska_area.bin", which was slow but not as slow as the US bin file, "Omaha_area.bin", "Lincoln_area.bin", both of which are relatively as quick. The Nebraska_area.bin file is 147MB, but Omaha's and Lincoln's are only about 45Mb.
You can rename the binary files to suitable names and move them to /home/youracct/.navit. They will appear in the "Map" menu. All of them will be checked. You can uncheck them all and check just the one you want to use at the time.
Then I plugged in my LT-20, waited between 30 and 60 seconds, then ran gpsd, xgps, and fired up Navit. Boom! The location of my house displayed automatically, with all the streets within a quarter of a mile. I unchecked everything but the Lincoln_area.bin map. I zoomed out, navigated down to my daughter's house, 11 miles away, selected it as the destination, and immediately a blue line appeared between my house and her's showing the "best way", which actually was!
Selected destinations are stored in ~/.navit/destination.txt. One can edit that to change or clear the destinations out.
The KEY to getting Navit to run is to properly edit the XML file, /etc/navit.xml. My "MapSet" setting is:
<!-- If you have the reiseplaner maps installed, set enabled="yes" in the next line and set the path correctly -->
<mapset enabled="no">
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp1.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp2.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp3.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp4.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp5.smp"/>
</mapset>
<!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory -->
<mapset enabled="no">
<xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/>
</mapset>
<!-- Mapset template for openstreetmaps -->
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="/home/jerry/.navit/Lincoln_area.bin"/>
<map type="binfile" enabled="yes" data="/home/jerry/.navit/Omaha_area.bin"/>
<map type="binfile" enabled="yes" data="/home/jerry/.navit/Nebraska.bin"/>
<map type="binfile" enabled="yes" data="/home/jerry/.navit/United_States.bin"/>
</mapset>
<!-- Mapset template for garmin maps -->
<mapset enabled="no">
<map type="garmin" enabled="yes" data="/path/to/img" debug="4"/>
</mapset>
<mapset enabled="no">
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp1.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp2.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp3.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp4.smp"/>
<map type="mg" enabled="yes" data="/opt/reiseplaner/travel/DE.map/smp5.smp"/>
</mapset>
<!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory -->
<mapset enabled="no">
<xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/>
</mapset>
<!-- Mapset template for openstreetmaps -->
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="/home/jerry/.navit/Lincoln_area.bin"/>
<map type="binfile" enabled="yes" data="/home/jerry/.navit/Omaha_area.bin"/>
<map type="binfile" enabled="yes" data="/home/jerry/.navit/Nebraska.bin"/>
<map type="binfile" enabled="yes" data="/home/jerry/.navit/United_States.bin"/>
</mapset>
<!-- Mapset template for garmin maps -->
<mapset enabled="no">
<map type="garmin" enabled="yes" data="/path/to/img" debug="4"/>
</mapset>
And Navit has additional features:
It allows you to set the angle of viewing so that you can see the horizon and the road ahead appears to vanish in the distance. However, as far as I can tell, you must edit navit.xml to set the angle.
It creates a directions file listing the locations and directions of each turn and the distance to travel.
It is touch-screen enabled, if you have a touch screen.
All in all, Navit, with the appropriate bin map files (not too big!) is an excellent Trip Maker and real time navigator. It is much better than gpsdriver. I will probably uninstall gpsdriver.
Comment