LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-05-2006, 08:15 AM   #1
amp_man
Member
 
Registered: Feb 2005
Distribution: Arch, Ubuntu, Debian, and Gentoo
Posts: 55

Rep: Reputation: 16
gpsd, gpsdrive, delorme tripmate


I've got a Delorme tripmate connected to a pl2303 usb-to-serial adapter. If I do "sudo echo "ASTRAL" >> /dev/ttyUSB0 && gpsdrive", with gpsdrive configured for 4800 baud rate and serial connection, without gpsd running, I can get gpsdrive to work (ASTRAL is required to "wake" the gps). However, I haven't been able to get gpsd to work yet. No matter what I do, what order I do what (ASTRAL then gpsd, vice versa, start gpsd then plug in the gps, etc), gpsdrive always gives me a timeout recieving data from the gps. I've tried both gpsd from the ubuntu repos and comiling it myself (because I wasn't sure if Tripmate support was included with the ubuntu version), with the same results, both being v2.33. I've read in a few places about a command line parameter (-T t) to enable tripmate support in gpsd, but when trying to use it, gpsd tells me it's an invalid option. Also, I can't find this (or any other mention of tripmate) in the gpsd docs, except for the fact that it's supported.

I'm very much a newbie when it comes to communicating with serial port devices, especially under linux. for all I know, this could all be because I don't have gpsd starting with 4800 baud rate, but frankly, I can't find where it says how to do such a thing. Also, if I run "cat /dev/ttyUSB0" and then start gpsd, I get all sorts of random characters, mostly questions marks with inverted colors and lower case x. Thanks for any help.
 
Old 09-08-2006, 11:53 PM   #2
686plus
Member
 
Registered: Nov 2004
Location: Portland, Oregon
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 17
I've always had to explicitly tell gpsd where my device was. When you start gpsd with the device already connected, are you using the -f switch?

Try gpsd -f /dev/ttyWhatever

Also, recent versions of gpsdrive can use the serial directly without gpsd... which it sounds like you've had success with. So why the need for gpsd?
 
Old 09-09-2006, 12:18 AM   #3
amp_man
Member
 
Registered: Feb 2005
Distribution: Arch, Ubuntu, Debian, and Gentoo
Posts: 55

Original Poster
Rep: Reputation: 16
from what I've gathered in the man pages, the -f switch is depreciated (if this is incorrect, please let me know). And yes I've been using "gpsd /dev/ttyUSB0", without the device gpsd complains that it can't start without a device and immediately exits. As far as using gpsdrive with the serial connection, yes it works, but no it doesn't work perfectly. Gpsdrive often requires restarting several times before it will get data from the gps, takes quite a while to obtain an intial reading (because it won't send an initial location to the gps like gpsd can), and doesn't close cleanly (hangs and requires "killall gpsdrive" or similar). Bugs aside, I'm also looking to try out another gps program, Roadmap, which looks to be somewhat better suited for my needs.
 
Old 09-10-2006, 10:40 AM   #4
686plus
Member
 
Registered: Nov 2004
Location: Portland, Oregon
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 17
Sorry for the delay...

You're right about the -f switch

Does xgps work after you type gpsd /dev/ttyUSB0 ? Also, after starting (or trying to start) gpsd, do you click start gpsd in gpsdrive? It sounds like gpsd won't start reading the gps until a client requests it for models with a standby mode. Not sure if the -n don't wait feature would be useful.

Another quirk... when I was first setting up the gps on my laptop, I had a lot of problems. I think a lot of it was poor gps reception where I was trying to setup. I changed locations and could troubleshoot much better. Are you trying this all out in an area you get solid reception?
 
Old 09-11-2006, 09:19 PM   #5
amp_man
Member
 
Registered: Feb 2005
Distribution: Arch, Ubuntu, Debian, and Gentoo
Posts: 55

Original Poster
Rep: Reputation: 16
well, in the area where I've been trying it (from my car in the driveway with the gps on the roof) I can get 11-13 satellites with gpsdrive, and it usually gets a reading from about 7 of them. xgps also doesn't work, I don't remember exactly what it says, but something to the effect of no data incoming from the gps. I'll give the -n switch a shot once I get ubuntu back up and running on my laptop, and I'll post back with that result (but atm, I just got back from climbing a mountain, I'm headed to bed). Also, after starting gpsd manually, gpsdrive only offers the option of "stop gpsd", so it does recognize that gpsd is running.

And as for the reply time, don't worry about it, I'm very patient. Hell, I've been playing with this thing for over a year now, trying to get it to work, a couple days won't make a bit of difference.
 
1 members found this post helpful.
  


Reply

Tags
gps, gpsd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPSD not working from non-root user? Archer36 Slackware 1 03-21-2006 08:54 PM
Gpsdrive SteveON Linux - Software 2 11-23-2005 08:42 AM
Gpsd Make problems (DeLorme Tripmate) Perfidia Slackware 2 10-26-2005 07:02 AM
gpsd on a zaurus 6000L skunkburner Linux - Laptop and Netbook 4 07-07-2005 11:31 AM
Navigation software - not GPSDrive! frogrocker Linux - Software 1 04-05-2004 01:06 PM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration