Package: tangogps
Version: 0.99.3+debian-1
Severity: important

Steps to reproduce:
1) gpsd -b -G -N -n -D 1 /dev/ttySAC1
2) tangogps

Expected results:
2) tangogps shows current location

Actual results:
2) tangogps does not show current location

More info:
1) cgps -s shows current location just fine
2) stderr has
li...@ginger:~$ tangogps
REPOLIST == NULL
*** on_drawingarea1_configure_event():
pixmap created
*** track_log_open(): /home/lindi/Maps/20100314_133941.log
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** on_drawingarea1_configure_event():
pixmap created
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}
*** reset_gpsd_io():
connection to gpsd SUCCEEDED
Rcvd: 
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}

3) source code shows that tangogps is sending "r" command to gpsd
port. These one-letter commands are not supported by gpsd 2.92-1 in
debian unstable and squeeze. tangogps should use libgps19 to talk to
GPS instead of trying to talk the protocol manually.

4) A quick'n'dirty patch of


--- tangogps-0.99.3+debian.orig/src/gps_functions.c
+++ tangogps-0.99.3+debian/src/gps_functions.c
@@ -904,7 +904,7 @@
        int conn, len;
        char buffer[501];
        struct sockaddr_in server;
-       char buffer_send[] = "r";
+       char buffer_send[] = 
"?WATCH={\"class\":\"WATCH\",\"enable\":true,\"json\":false,\"nmea\":true,\"raw\":0,\"scaled\":false,\"timing\":false}\n";


        if (sock) sock = close(sock);


seems to work but I have not done much testing with it.


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

Kernel: Linux 2.6.29-GTA02_lindi2-andy-tracking-mokodev
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages tangogps depends on:
ii  libatk1.0-0              1.28.0-1        The ATK accessibility toolkit
ii  libc6                    2.10.2-6        Embedded GNU C Library: Shared lib
ii  libcairo2                1.8.10-2        The Cairo 2D vector graphics libra
ii  libcurl3-gnutls          7.20.0-1        Multi-protocol file transfer libra
ii  libexif12                0.6.19-1        library to parse EXIF files
ii  libfontconfig1           2.8.0-2         generic font configuration library
ii  libfreetype6             2.3.11-1        FreeType 2 font engine, shared lib
ii  libgconf2-4              2.28.0-1        GNOME configuration database syste
ii  libglib2.0-0             2.22.4-1        The GLib library of C routines
ii  libgtk2.0-0              2.18.7-1        The GTK+ graphical user interface 
ii  libpango1.0-0            1.26.2-1        Layout and rendering of internatio
ii  libsqlite3-0             3.6.22-1        SQLite 3 shared library
ii  libxml2                  2.7.6.dfsg-2+b1 GNOME XML library

Versions of packages tangogps recommends:
ii  gpsd                          2.92-1     Global Positioning System - daemon

Versions of packages tangogps suggests:
ii  python                        2.5.4-9    An interactive high-level object-o

-- no debconf information



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

Reply via email to