Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2009-03-27 11:56:31 pm

jw4ee
Member
From: Southern California
Registered: 2009-03-27
Posts: 18

USB GPS on Linux (gpsd, pl2303, & viking)?

So near yet so far. I just got a eeePC 1000 Pearl with the SSD, and already had a Globalsat BU-303 (compatible with BU-353) USB GPS receiver puck. It might speak volumes about my comfort with Linux to add that I had this thing working fine on my Mac, and have read that other eeePC owners have gotten it to work. I've spent the last day or so googling and come up with some stuff, but it's still not working. I'm hoping to start a thread that will bring a lot of stuff together and both get this thing working, and help others who are trying to do similar things. The general idea is to use the eeePC for both navigating my way around Europe and geotagging my photos along the way. I leave in two days. I'm hoping those of you with much more eeeC, GPS, USB and especially Linux time might be willing to help me (and anyone who finds this via google) out. Right now I need help getting gpsd installed.

So Far:
*After unpacking and setting up the eeePC, I plugged in the GPS and the red indicator light on the GPS puck (or as some call it, the GPS mouse) came on as expected.

*I found out that GPSManager is a useful application, so I somehow managed to download and install that into Work/Accessories screen on the eeePC's standard interface Home button. If someone can fill in those steps from memory in a followup message, great. Otherwise I hope to go back through the stuff found online to type it into a followup comment.

Despite lots of futzing around with the Options and Receiver windows in GPSmanager, I couldn't get the GPS to show up.

*I found out that gpsd is used by most applications, and maybe this is also true of GPSmanager. To do that, you need to open a "terminal" console Linux command line window. Using the eeePC's standard Ctrl-Alt-T key combo works great, but lacks niceties like copy/paste so I was happy to discover that Home/Work/File Manager has in the Tools menu an Open Console Window option (Ctrl-T within File Manager) with lots of extras.

Two steps are recommended to install gpsd from within the console (where the active place you're typing has a ">" and after typing in the command you hit the Enter key):
> sudo apt-get update
> sudo apt-get install gpsd

Neither of these steps works. The update returns these errors amid the blizzard of text:
  Err file: tmp/main Packages
  Failed to fetch file:/tmp/.7sJGSW8e/dists/tmp/main/binary-i386/Packages.gz  File not found
  W: Couldn't stat source package list file: tmp/main Packages (/var/lib/apt/lists/_tmp_.7sJGSW8e_dists_tmp_main_binary-i386_Packages) - stat (2 No such file or directory)

The install step returns these errors in a smaller blast of text:
  W: Couldn't stat source package list file: tmp/main Packages (/var/lib/apt/lists/_tmp_.7sJGSW8e_dists_tmp_main_binary-i386_Packages) - stat (2 No such file or directory)
  W: You may want to run apt-get update to correct these problems
  E: Couldn't find package gpsd

My guess is that apt-get might connect with an Asus ftp site somewhere, and that either it's down (I've been seeing lots of glitches trying to browse their site) or they moved gpsd into a different file and forgot to tell whatever runs the apt-get update process. Yes, I checked via a browser window that my net connection was live before doing the two commands above.

This step of getting gpsd running is apparently my next challenge, so any and all help is appreciated.

Not one to give up when it seems so close, I discovered that there's a console command to show what's going on with the USB ports:
> dmesg

At the bottom of many lines are the two related to my having plugged in the GPS:
...] usb 1-2: new full speed USB device using uhci_hcd and address 6
...] usb 1-2: configuration #1 chosen from 1 choice

The next step took many hours that I'm hoping this post will save other people with USB devices. I discovered that there's a driver needed for the USB GPS, named pl2303 (note that's "PL" and not "P1" as in p one). Although the GPS was being seen as plugged into the USB port, it wasn't able to send its text strings to any GPS applications or utilities without that pl2303 driver installed. It turns out the driver was in the default eeePC packages, but needed to be installed. It's stashed way in the guts of the file system, and to get there you type a long "cd" change directory command (or much better use copy/paste, because one tiny typo and it won't work):
> cd /lib/modules/2.6.21.4-eeepc/kernel/drivers/usb/serial

To complicate things, it's named pl2303.ko.huawei apparently because it's for a cellphone or something and the eeePC looks for something named pl2303.ko when you try to install it. So the first step is to make a copy with that name, using the "sudo" command (because otherwise you don't have permission to futz with this stuff) and the "cp" command to copy the file:
> sudo cp pl2303.ko.huawei pl2303.ko

Then after apt-get still wouldn't install pl2303 I found somewhere that there's another way to do it:
> sudo insmod /lib/modules/2.6.21.4-eeepc/kernel/drivers/usb/serial/pl2303.ko

Presumably if your files are arranged differently, you'll need a different cp command but I can't help with that so maybe someone else could.

So now I did a new dmesg to see if it worked, and bingo:
> dmesg
...] pl2303 1-2:1.0: pl2303 converter detected
...] usb 1-2: pl2303 converter now attached to ttyUSB0

To reiterate then, right now no amount of experimenting with the Options and Receiver windows in GPSmanager, has given any indication that the GPS is communicating. In the Options tab of the large window, I changed the Serial to be ttyUSB0 (that's zero 0 not Oh O). No joy.

Help?


40GB SSD eeePC1000 W004 Pearl White, VN 4222, bought 3/25/9
"Easy Mode" GNU/Linux asus-259772643 2.6.21.4-eeepc #6 5/5/8 i686
BIOS 0913 7/14/8, eeePC 1.6.0.104 6/17/8, mem.1024

Offline

 

#2 2009-03-28 1:08:56 am

markntravis
ExtrEmE User
From: Shoreline Washington
Registered: 2007-11-28
Posts: 1401

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

I tried to get GPS working on my 702 running Xandros.  My GPS is a BU-353 and it came with a CD with the serial to USB driver.  I got GPS to work all except for the text to speech part.  I tried and tried but no go.  I installed XP and everything worked as it should.

When the 1000H came out I opted for the bigger screen. 

Good luck.


Fine Ebony 1000H|WD Scorpio Black 320GB 7200 RPM|2GB G.SKILL DDR-2 800 PC2-6400
1000HE Keyboard|OS is Windows 7 Home Premium
*I missed my 702 8G so I recently purchased a Pearl White 701SD*
Acer Aspire Revo R3600 Atom 330 w/ION

Offline

 

#3 2009-03-28 1:35:24 am

jw4ee
Member
From: Southern California
Registered: 2009-03-27
Posts: 18

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

markntravis wrote:

BU-353 and it came with a CD with the serial to USB driver.  I got GPS to work all except for the text to speech part.  I tried and tried but no go. ... Good luck.

Thanks for the kind wish, and it's going to help because my efforts here are more luck than skill.  smile

My BU-303 came with three linux drivers for 3 different versions of Red Hat, and only as C files. Since I have no clue how to compile and install them and it seems unlikely they'll work with xandros, I resorted to the pl2303 driver after reading online that several people seem to have gotten that working on eeePCs of various sorts with a globalSat USB GPS puck. I don't need text to speech, so maybe the luck's working already.

I'm hopeful of eventually getting the GPS to work, and then trying to install Viking after reading somewhere that it's pretty cool and interfaces with gEarth. Even if I never get anything more than the dmesg encouragement though, I'm hopeful this thread will be helpful for people once google indexes it.


40GB SSD eeePC1000 W004 Pearl White, VN 4222, bought 3/25/9
"Easy Mode" GNU/Linux asus-259772643 2.6.21.4-eeepc #6 5/5/8 i686
BIOS 0913 7/14/8, eeePC 1.6.0.104 6/17/8, mem.1024

Offline

 

#4 2009-03-28 1:39:36 am

jw4ee
Member
From: Southern California
Registered: 2009-03-27
Posts: 18

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

jw4ee wrote:

*I found out that GPSManager is a useful application, so I somehow managed to download and install that into Work/Accessories screen on the eeePC's standard interface Home button. If someone can fill in those steps from memory in a followup message, great. Otherwise I hope to go back through the stuff found online to type it into a followup comment.

OK, I'm clueless. After realizing there's no way I'd have been able to get it installed in the simplemenu myself, I remembered finding and Installing it on eeedownload.asus.com by searching for GPS Manager. Here's a link in case it works:
http://eeedownload.asus.com/search.seam … onId=40325


40GB SSD eeePC1000 W004 Pearl White, VN 4222, bought 3/25/9
"Easy Mode" GNU/Linux asus-259772643 2.6.21.4-eeepc #6 5/5/8 i686
BIOS 0913 7/14/8, eeePC 1.6.0.104 6/17/8, mem.1024

Offline

 

#5 2009-03-28 2:41:32 am

markntravis
ExtrEmE User
From: Shoreline Washington
Registered: 2007-11-28
Posts: 1401

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

jw4ee wrote:

jw4ee wrote:

*I found out that GPSManager is a useful application, so I somehow managed to download and install that into Work/Accessories screen on the eeePC's standard interface Home button. If someone can fill in those steps from memory in a followup message, great. Otherwise I hope to go back through the stuff found online to type it into a followup comment.

OK, I'm clueless. After realizing there's no way I'd have been able to get it installed in the simplemenu myself, I remembered finding and Installing it on eeedownload.asus.com by searching for GPS Manager. Here's a link in case it works:
http://eeedownload.asus.com/search.seam … onId=40325

Your link gave me this:  "Your search 'null' did not match any applications"


Fine Ebony 1000H|WD Scorpio Black 320GB 7200 RPM|2GB G.SKILL DDR-2 800 PC2-6400
1000HE Keyboard|OS is Windows 7 Home Premium
*I missed my 702 8G so I recently purchased a Pearl White 701SD*
Acer Aspire Revo R3600 Atom 330 w/ION

Offline

 

#6 2009-03-28 2:14:45 pm

jw4ee
Member
From: Southern California
Registered: 2009-03-27
Posts: 18

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

markntravis wrote:

Your link gave me this:  "Your search 'null' did not match any applications"

OK, looks like this forum truncated the nasty long url. You could either go to the main page using one of the three link methods I'll try here and use the Search box to look for GPS Manager; or try the shortened link at the bottom. I'm experimenting to find out what works on this forum. Hope one of these works, that you'll get gps doing what you want, and that you'll share your progress here for my benefit and that of anyone else who finds this thread.

Main Page:
http://eeedownload.asus.com/ - raw url.
<http://eeedownload.asus.com/> - email capsule version.
<a href="http://eeedownload.asus.com/">http://eeedownload.asus.com/</a> - linkified version.

Shortened Link to Search:
http://tinyurl.com/cruqjs - raw url.
<http://tinyurl.com/cruqjs> - email capsule version.
<a href="http://tinyurl.com/cruqjs">http://tinyurl.com/cruqjs</a> - linkified version.


40GB SSD eeePC1000 W004 Pearl White, VN 4222, bought 3/25/9
"Easy Mode" GNU/Linux asus-259772643 2.6.21.4-eeepc #6 5/5/8 i686
BIOS 0913 7/14/8, eeePC 1.6.0.104 6/17/8, mem.1024

Offline

 

#7 2009-03-28 3:48:25 pm

markntravis
ExtrEmE User
From: Shoreline Washington
Registered: 2007-11-28
Posts: 1401

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

jw4ee wrote:

markntravis wrote:

Your link gave me this:  "Your search 'null' did not match any applications"

OK, looks like this forum truncated the nasty long url. You could either go to the main page using one of the three link methods I'll try here and use the Search box to look for GPS Manager; or try the shortened link at the bottom. I'm experimenting to find out what works on this forum. Hope one of these works, that you'll get gps doing what you want, and that you'll share your progress here for my benefit and that of anyone else who finds this thread.

Main Page:
http://eeedownload.asus.com/ - raw url.
<http://eeedownload.asus.com/> - email capsule version.
<a href="http://eeedownload.asus.com/">http://eeedownload.asus.com/</a> - linkified version.

Shortened Link to Search:
http://tinyurl.com/cruqjs - raw url.
<http://tinyurl.com/cruqjs> - email capsule version.
<a href="http://tinyurl.com/cruqjs">http://tinyurl.com/cruqjs</a> - linkified version.

I'm not having a problem with GPS.  I switched to XP and everything works.
When I tried on my 702 with Xandros everything worked except text to speech.  That is why I switched to XP.


Fine Ebony 1000H|WD Scorpio Black 320GB 7200 RPM|2GB G.SKILL DDR-2 800 PC2-6400
1000HE Keyboard|OS is Windows 7 Home Premium
*I missed my 702 8G so I recently purchased a Pearl White 701SD*
Acer Aspire Revo R3600 Atom 330 w/ION

Offline

 

#8 2009-03-29 1:34:15 am

jw4ee
Member
From: Southern California
Registered: 2009-03-27
Posts: 18

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

markntravis wrote:

I'm not having a problem with GPS.

Thanks for clarifying. That's what I understood, but thought maybe you also wanted to check out the link. I'm glad you mentioned it so I could offer another that hopefully works for anyone wanting to use it. Pretty easy to just use the Search on the Asus page I guess.

Last edited by jw4ee (2009-03-29 1:34:53 am)


40GB SSD eeePC1000 W004 Pearl White, VN 4222, bought 3/25/9
"Easy Mode" GNU/Linux asus-259772643 2.6.21.4-eeepc #6 5/5/8 i686
BIOS 0913 7/14/8, eeePC 1.6.0.104 6/17/8, mem.1024

Offline

 

#9 2009-06-21 12:10:58 pm

dweeks
New member
Registered: 2008-10-20
Posts: 7

Re: USB GPS on Linux (gpsd, pl2303, & viking)?

I am going to post this in case someone needs help on this in the future. gpsd does work with all GPS receivers that use NMEA string output. There are a few proprietary GPS formats that work but try to find one that does NMEA. Also, try to find out as much as you can about the baud rate. For instance, my Earthmate LT-40 which works uses 9600 baud and not the usual 4800 and while gpsd does its best, it can't always find the gps baud rate. To remedy this, I use stty to set the baud rate before using gpsd. "stty -F /dev/ttyUSB0 ispeed 9600" This may through an error out and I usually run it a second time which is successful. This sets the baud to 9600 and then I start gpsd "gpsd /dev/ttyUSB0". This makes recognition much faster for gpsd.  Try telneting to port 2947 and checking gpsd. "telnet 0 2947" and hit i return. gpsd should echo back "Generic NMEA" which means the gps is recognized. BTW, the gps can be used for setting the ToD clock through ntpd. This is actually how I came into this is to gain and accurate mobile technology for ToD. Unfortunately, this is not effective on most navigation GPS's and requires a more expensive GPS with PPS output. However, even without GPS, you should be able to use the GPS for ToD in a pinch.

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson