Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-18-2012, 12:57 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
How I can Understand my GPS device is working running by gpsd deamon

Hello Experts!

Looking for some urgent help, To build a NTP server I have installed Open Suse Linux and plugged in Garmin 18xLVc,5m GPS device with a Searial Cable.

After installed gpsd deamon 3.4 i have followed all required steps to work my gps but I am confused to see its result.

Here is my result:

1) The gpsd is running like :

linux-3s8f:/opt/gpsd-3.4 # gpsd -N -n -D 2 /dev/ttyS0
gpsd:INFO: launching (Version 3.4)
gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device /dev/ttyS0 at slot 0
gpsd:INFO: opening GPS data source type 2 at '/dev/ttyS0'
gpsd:INFO: speed 4800, 8N1
gpsd:INFO: PPS cycle: 691074274, duration: 691074274 @ 1350553157.301474
gpsd:INFO: PPS cycle: 691395220, duration: 320946 @ 1350553157.622420
gpsd:INFO: speed 9600, 8O1
gpsd:INFO: speed 4800, 8N1
gpsd:INFO: gpsd_activate(): activated GPS (fd 5)
gpsd:INFO: device /dev/ttyS0 activated
gpsd:INFO: running with effective group ID 16
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2012-10-18T09:39:19.000Z (1350553159)
gpsd:INFO: PPS cycle: 2420985, duration: 100007 @ 1350553159.722459
gpsd:INFO: PPS cycle: 1000017, duration: 900010 @ 1350553160.622469
gpsd:INFO: PPS cycle: 1000022, duration: 100012 @ 1350553160.722481
gpsd:INFO: PPS cycle: 1000025, duration: 900013 @ 1350553161.622494
gpsd:INFO: PPS cycle: 1000010, duration: 99997 @ 1350553161.722491
gpsd:INFO: PPS cycle: 1000015, duration: 900018 @ 1350553162.622509
gpsd:INFO: PPS cycle: 1000021, duration: 100003 @ 1350553162.722512
gpsd:INFO: PPS cycle: 1000015, duration: 900012 @ 1350553163.622524
gpsd:INFO: PPS cycle: 1000015, duration: 100003 @ 1350553163.722527
gpsd:INFO: PPS cycle: 999994, duration: 899991 @ 1350553164.622518
gpsd:INFO: PPS cycle: 1000020, duration: 100029 @ 1350553164.722547
gpsd:INFO: PPS cycle: 1000041, duration: 900012 @ 1350553165.622559
gpsd:INFO: PPS cycle: 1000026, duration: 100014 @ 1350553165.722573

2) I have checked
gpspipe -r


I have configured /etc/ntp.conf

server minpoll 4
fudge time1 0.535 refid NMEA
server minpoll 4 prefer
fudge refid PPS

Next I have restarted the ntp

/etc/init.d/ntp start

4) To see the result typed

ntpq -p

remote refid st t when poll reach delay offset jitter
SHM(0) .NMEA. 0 l - 16 0 0.000 0.000 0.000
SHM(1) .PPS. 0 l - 16 0 0.000 0.000 0.000

Note, the offset, jitter is not showing any value?

Please tell me where is the problem? Is my gps device is working? How i can understand?

Any steps i missed or what?

Please help me its really urgent to get a solution, My project is stopped.

Old 10-18-2012, 01:45 PM   #2
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,158
Blog Entries: 13

Rep: Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567Reputation: 3567
The simplest thing I'd do is to stop the GPS daemon, and see what data is coming out of the /dev/ttyS0 port.

Looks like the port was set up for 4800, looks like it tried 9600 and then set back for 4800.

stty -F/dev/ttyS0 will show you what the port is set for and likely it is still set for 4800.

cat /dev/ttyS0 will show you the data on that port. It should be normal NMEA GPS packets, $GPRMC ..., $GPGSV ..., $GPGGA ...; and you'll have to grab a NMEA spec online to explain to you what these packets mean. Basically if they show data like, 18160401.000,4317.4568,N,7130.3563,W, then that's the time and coordinates. If you see $GPRMC,,,,,,,*xx, then it doesn't have a fix. But it is working, and it may not have a fix if the antenna is blocked from viewing satellites.

If you see NMEA packets with little or not content, working, but no signal fix.
If you don't see any data at all, it may be working, but improperly talking to your computer, either because you have incorrect port settings, the port driver is not properly discovering your device, or it may not be working at all. Based on the log you've shown here, it appears to be working at 4800 bps.


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
gps Navit gpsd Earthmate BT-20 using Ubuntu 11.04 tvedgar Linux - Software 1 07-08-2011 08:03 PM
iPhone as GPSD device gandhioftherillo Linux - Software 4 04-23-2010 11:17 PM
can't get gpsd to work with bluetooth gps mageus Linux - Software 0 03-21-2007 12:18 AM
Holux GPS, gpsd, and GpsDrive skmassey Linux - Hardware 3 11-06-2006 03:38 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:10 AM.

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