Results 1 to 4 of 4

Thread: gpsd problems

  1. #1
    Join Date
    Jun 2008
    Location
    Berlin, Germany
    Posts
    369

    Default gpsd problems

    Hi, I've got a really strange problem with my gps on openSUSE 11.0. It used to work in previous versions. My Garmin etrex legend is connected to my notebook via Prolific 2303 USB-serial adapter and runs in NMEA mode. When I connect the device to my computer the output of cat makes sense:
    Code:
    cat /dev/ttyUSB0
    $GPRMC,125552,V,5232.4583,N,01325.4415,E,10.8,0.0,120508,2.0,E,S*22
    $GPRMB,V,,,,,,,,,,,,A,S*0E
    $GPGGA,125552,5232.4583,N,01325.4415,E,8,11,2.0,-5.6,M,43.0,M,,*69
    $GPGSA,A,3,02,04,07,08,10,13,16,23,24,25,27,,3.6,2.0,3.0*3E
    $GPGSV,3,1,11,02,37,255,45,04,26,216,43,07,70,138,50,08,40,197,46*72
    $GPGLL,5232.4583,N,01325.4415,E,125552,V,S*4B
    $GPBOD,,T,,M,,*47
    Then, being root, I run "gpsd -n -N -D5 /dev/ttyUSB0" to start the deamon and I see some output that seems ok as well. As in older suse versions I expected "telnet localhost 2947" followed by pressing "R" to show me the output of gpsd. But nothing happens. Xgps and gpsdrive are completely unable to connect to the gps receiver, nor can they find it at all. After gpsd is closed cat on the gps gives this output:
    Code:
    cat /dev/ttyUSB0
    ���xx��xx�xxxx����x�x�����x�xxxx������������x���������x��xx�x�������x���x����x�x��xxxxx���x�x��x�xx�����x����x����x�xxxx��x�x����x��x�x���xx��xx�xxx�xxxxxxxxxxxxxxxxx��
    When I ran into that problem I thought about permission issues. I openSUSE 10.3 belonges to the group root, in 11.0 to uucp. So I added myself to the group uucp, where gpsd belongs to. Didn't help. Seems I must be root.
    Code:
    gpsd -n -N -D5 /dev/ttyUSB0
    gpsd: launching (Version 2.37)
    gpsd: listening on port gpsd
    gpsd: Unable to start ntpshm.  gpsd must run as root.
    gpsd: successfully connected to the DBUS system bus
    gpsd: running with effective group ID 100
    gpsd: running with effective user ID 1000
    Strange enough I can read and write to the gps as a user when I use gpsbabel. Anyone has an idea? I appreciate any help. Thanks a lot...

  2. #2
    Join Date
    Jun 2008
    Location
    Berlin, Germany
    Posts
    369

    Default Re: gpsd problems

    ok, once again.... on plugin of the usb-serial adapter with the gps connected and running in NMEA, gpsd is launched automatically.
    Code:
    Jul  4 20:34:57 schlick kernel: usb 3-2: new full speed USB device using uhci_hcd and address 4
    Jul  4 20:34:58 schlick kernel: usb 3-2: configuration #1 chosen from 1 choice
    Jul  4 20:34:58 schlick kernel: pl2303 3-2:1.0: pl2303 converter detected
    Jul  4 20:34:58 schlick kernel: usb 3-2: pl2303 converter now attached to ttyUSB0
    Jul  4 20:34:58 schlick kernel: usb 3-2: New USB device found, idVendor=067b, idProduct=2303
    Jul  4 20:34:58 schlick kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Jul  4 20:34:58 schlick kernel: usb 3-2: Product: USB-Serial Controller
    Jul  4 20:34:58 schlick kernel: usb 3-2: Manufacturer: Prolific Technology Inc.
    Jul  4 20:34:58 schlick gpsd: Action 'add' Launch GPSD to /dev/ttyUSB0 with -F /var/run/gpsd.socket
    then cat shows the same strange output as above. telnet can connect to port 2947 but shows no output and gpsdrive does not recognize the gps device.

  3. #3
    Join Date
    Jan 2008
    Location
    N40 44.977 W073 59.356
    Posts
    1,170

    Default Re: gpsd problems

    supertimorplusfort wrote:
    > Hi, I've got a really strange problem with my gps on openSUSE 11.0. It
    > used to work in previous versions. My Garmin etrex legend is connected
    > to my notebook via Prolific 2303 USB-serial adapter and runs in NMEA
    > mode. When I connect the device to my computer the output of cat makes
    > sense:
    > Code:
    > --------------------
    > cat /dev/ttyUSB0
    > $GPRMC,125552,V,5232.4583,N,01325.4415,E,10.8,0.0,120508,2.0,E,S*22
    > $GPRMB,V,,,,,,,,,,,,A,S*0E
    > $GPGGA,125552,5232.4583,N,01325.4415,E,8,11,2.0,-5.6,M,43.0,M,,*69
    > $GPGSA,A,3,02,04,07,08,10,13,16,23,24,25,27,,3.6,2.0,3.0*3E
    > $GPGSV,3,1,11,02,37,255,45,04,26,216,43,07,70,138,50,08,40,197,46*72
    > $GPGLL,5232.4583,N,01325.4415,E,125552,V,S*4B
    > $GPBOD,,T,,M,,*47
    >
    > --------------------
    >
    > Then, being root, I run "gpsd -n -N -D5 /dev/ttyUSB0" to start the
    > deamon and I see some output that seems ok as well. As in older suse
    > versions I expected "telnet localhost 2947" followed by pressing "R" to
    > show me the output of gpsd. But nothing happens. Xgps and gpsdrive are
    > completely unable to connect to the gps receiver, nor can they find it
    > at all. After gpsd is closed cat on the gps gives this output:
    > Code:
    > --------------------
    > cat /dev/ttyUSB0
    > ���xx��xx�xxxx����x�x�����x�xxxx������������x���������x��xx�x�������x���x����x�x��xxxxx���x�x��x�xx�����x����x����x�xxxx��x�x����x��x�x���xx��xx�xxx�xxxxxxxxxxxxxxxxx��
    > --------------------
    >
    > When I ran into that problem I thought about permission issues. I
    > openSUSE 10.3 belonges to the group root, in 11.0 to uucp. So I added
    > myself to the group uucp, where gpsd belongs to. Didn't help. Seems I
    > must be root.
    > Code:
    > --------------------
    > gpsd -n -N -D5 /dev/ttyUSB0
    > gpsd: launching (Version 2.37)
    > gpsd: listening on port gpsd
    > gpsd: Unable to start ntpshm. gpsd must run as root.
    > gpsd: successfully connected to the DBUS system bus
    > gpsd: running with effective group ID 100
    > gpsd: running with effective user ID 1000
    >
    > --------------------
    >
    > Strange enough I can read and write to the gps as a user when I use
    > gpsbabel. Anyone has an idea? I appreciate any help. Thanks a lot...
    >
    >

    I'm keeping an eye on this thread as I have had an issue getting my
    Garmin GPSMaps 60CSx working. Wish I could help you though.

  4. #4
    Join Date
    Jun 2008
    Location
    Berlin, Germany
    Posts
    369

    Default Re: gpsd problems

    Ok, just asked a friend for advice. He is running gpsd 2.32 on gentoo and everything works fine. Anyway, he was willing to update to 2.37 but skipped because of this message:
    This version of gpsd has broken the support for the TNT compass and Garmin so they are disabled. If you need it, stay with the previous version for now.
    Don't know if I`ll wait for a new version or install an older one.
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •