Package: gpsd
Version: 2.37-7
Severity: normal

(Since this is probably not a debian specific bug I reported it upstream at
https://developer.berlios.de/bugs/?func=detailbug&bug_id=15389&group_id=2116
as [ Bug #15389 ] [REGRESSION in 2.38] first P or D command always fails)

Steps to reproduce:
1) buy openmoko neo freerunner
2) run gpsd -F gpsd.sock -N -n -D 1 /dev/ttySAC1
3) wait for fix
4) (echo p; sleep 1; echo p) | netcat localhost gpsd -w1

Expected results:
4) since gpsd has a fix it prints the current position twice, e.g.

GPSD,P=60.161784703 24.934285638
GPSD,P=60.161786464 24.934296187

Actual results:
4) the first P command always fails with "?"

GPSD,P=?
GPSD,P=60.161715660 24.934331645

More info:
1) This is not limited to P command but also happens with D command:

li...@ginger:~$ (echo d; sleep 1; echo d) | netcat localhost gpsd -w1
GPSD,D=?
GPSD,D=2009-03-15T15:44:03.0Z

2) Here are some alternative queries I tried:

li...@ginger:~$ (echo d; sleep 1; echo p; sleep 1; echo p) | netcat localhost 
gpsd -w1
GPSD,D=?
GPSD,P=60.162025386 24.934574258
GPSD,P=60.162016118 24.934580842

li...@ginger:~$ (sleep 5; echo p) | netcat localhost gpsd -w1
GPSD,P=?

3) This is a regression since after I downgraded to

http://ftp.fi.debian.org/pub/debian/pool/main/g/gpsd/gpsd_2.37-7_armel.deb
http://ftp.fi.debian.org/pub/debian/pool/main/g/gpsd/libgps17_2.37-7_armel.deb

the first command starts to work ok:

li...@ginger:~$ echo p | nc localhost gpsd
GPSD,P=60.161879 24.934350




-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armel (armv4tl)

Kernel: Linux 2.6.28-GTA02_lindi-andy-tracking_b8b36e5ec3db71d5-mokodev 
(PREEMPT)
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages gpsd depends on:
ii  debconf [debconf-2.0]         1.5.25     Debian configuration management sy
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libdbus-1-3                   1.2.12-1   simple interprocess messaging syst
ii  libgps17                      2.37-7     C library for communicating with G
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip
ii  netbase                       4.34       Basic TCP/IP networking system
ii  python                        2.5.2-3    An interactive high-level object-o

Versions of packages gpsd recommends:
pn  gpsd-clients                  <none>     (no description available)

Versions of packages gpsd suggests:
ii  udev                          0.125-7    /dev/ and hotplug management daemo

-- debconf information:
  gpsd/start_daemon: false
  gpsd/autodetection: false
  gpsd/device:
  gpsd/daemon_options:



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to