Author Topic: Problems with GPSD  (Read 3843 times)

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
Problems with GPSD
« on: February 04, 2004, 12:34:24 am »
I\'m not sure if it is the version that I\'m using, but I can\'t get gpsd to work appropriately for some reason.  The reason that I\'m baffled is that I had it working just fine on the latest tkcROM release (on the same rom now), and had been focusing on other issues.  

Now, here is what\'s happening:

Code: [Select]
# ipkg install gpsd_1.06-fam5_arm.ipk

Unpacking gpsd...Done.

Configuring gpsd...Done.

# find / -name gpsd

/home/etc/init.d/gpsd

/home/root/usr/lib/menu/gpsd

/home/root/usr/sbin/gpsd

# /home/etc/init.d/gpsd start

Starting GPS server: gpsdstart-stop-daemon: not found

.

#


Now, when I then try to get qpegps, the GPSD box says \"???\" rather than \"OK\".  Any ideas?  Am I using the wrong version of gpsd?  It was working before - is there something else that I should be doing?  

Any help would be great.  Thanks-
N8

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
Problems with GPSD
« Reply #1 on: February 04, 2004, 12:56:07 am »
FYI - this is where I grabbed my copy of the gpsd ipk:

http://handhelds.org/download/linux/packages/gpsd/

Is there a more recent/reliable set?  Thanks

Anonymous

  • Guest
Problems with GPSD
« Reply #2 on: February 04, 2004, 01:54:58 am »
I think I tried that version, too. Had to modify the /etc/init.d/gpsd script to get it working:
Quote
Code: [Select]
# /home/etc/init.d/gpsd start

Starting GPS server: gpsdstart-stop-daemon: not found
You get an error message and gpsd is not running so qpegps doesn\'t get any data.

Iirc, qpegps 0.9.1 came with a gpsd. Remove that gpsd package and reinstall qpegps and check if it\'s working. The download section of the qpegps homepages also lists a separate tar file for gpsd (needed for v0.9.2?). If you put the binary into /opt/QtPalmop/bin qpegps should start it automatically so no /etc/init.d script is needed.

Anonymous

  • Guest
Problems with GPSD
« Reply #3 on: February 04, 2004, 12:58:49 pm »
Thanks for the reply.  Out of curiosity:

1) what was the modification that you made to the gpsd script?

2) i have the package \"gpsd_from_qpegps_0_9_1.tar.gz\", but if I unpack it, I get a gpsd directory with tons of contents, and do not know how to install it.  Is there a decent how to that I can use to install such a tar.gz file or to make it into a compatible .ipk?

3) When I install qpegps from the command line, I\'m not able to see the application in my Z gui (yes, after restarting qtopia).  I even look in /usr/lib/ipkg, and I don\'t see it listed.  This is off-topic, but what is the appropriate way to install from the command line and then be able to see something on the Z gui?  Currently, I basically refrain from installing anything that should be visible in the gui due to this.

Thanks MUCH for any help here.
N8

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
Problems with GPSD
« Reply #4 on: February 04, 2004, 02:51:30 pm »
Arrrgh... the last post was from me, n8a.

The script references the gpsdstart-stop-daemon - does anyone know what installs this daemon?  It obviously can\'t be easily worked around in the script at /etc/init.d/gpsd, since it\'s the main command in each condition.  When I type it at the command line, I just get \"gpsdstart-stop-daemon: not found\".

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with GPSD
« Reply #5 on: February 04, 2004, 07:18:22 pm »
Quote
3) When I install qpegps from the command line, I\'m not able to see the application in my Z gui (yes, after restarting qtopia). I even look in /usr/lib/ipkg, and I don\'t see it listed. This is off-topic, but what is the appropriate way to install from the command line and then be able to see something on the Z gui?

It\'s a command line app (in fact a daemon) so you won\'t be able to see it from the GUI.

Quote
2) i have the package \"gpsd_from_qpegps_0_9_1.tar.gz\", but if I unpack it, I get a gpsd directory with tons of contents, and do not know how to install it. Is there a decent how to that I can use to install such a tar.gz file or to make it into a compatible .ipk?

Find the gpsd (binary) file, stick it in /usr/local/bin (or /opt/QtPalmtop/bin if you must). Then just use the standard syntax to run it.

What do ytou want gpsd for anyway? qpegps?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
Problems with GPSD
« Reply #6 on: February 04, 2004, 07:56:42 pm »
Thanks for your reply, Lardman-

Quote
It\'s a command line app (in fact a daemon) so you won\'t be able to see it from the GUI.

Well, if I install qpeGPS from the GUI installer, I then see an icon for it under my applications tab.  Same thing for zRoadmap, which I\'ve been trying to get working with gpsd as well.

Quote
Find the gpsd (binary) file,

What will the binary file be?  Again, I\'ve been using the 5500 for a year, but am fairly new to the Linux world.  I do have a SuSe box at home now that I\'m SSHing to and messing around with, but as a whole I\'m new to this world.

stick it in /usr/local/bin (or /opt/QtPalmtop/bin if you must).

What is meant by \"if you must\"?  Would it be preferrable to put it in the /usr/local/bin location?  Just curious.

Quote
Then just use the standard syntax to run it.

Here, I assume that you mean: \"# /home/etc/init.d/gpsd start|stop\"

Quote
What do ytou want gpsd for anyway? qpegps?

I bought a Haicom gps cf/serial device that I\'m DYING to get working!  However, without getting gpsd running, I can\'t even get to the many problems that I\'ll no doubt have getting zRoadmap and qpeGPS to work.  I\'d also like to eventually get kismet+gprs working for wardriving type stuff... but that\'s many obstacles away!  

N8[/quote]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with GPSD
« Reply #7 on: February 05, 2004, 09:19:15 am »
Quote
Well, if I install qpeGPS from the GUI installer, I then see an icon for it under my applications tab. Same thing for zRoadmap, which I\'ve been trying to get working with gpsd as well.

zRoadmap and QpeGPS are GUI apps. All gpsd does is reads data from the serial port and exposes a socket which other processes can connect to to grab the NMEA data. Gpsd does nothing useful on its own - that\'s why there\'s no icon for it.

Quote
What will the binary file be? Again, I\'ve been using the 5500 for a year, but am fairly new to the Linux world. I do have a SuSe box at home now that I\'m SSHing to and messing around with, but as a whole I\'m new to this world.

stick it in /usr/local/bin (or /opt/QtPalmtop/bin if you must).

What is meant by \"if you must\"? Would it be preferrable to put it in the /usr/local/bin location? Just curious.

The binary is called \'gpsd\'. I prefer to put binaries which might be used by things other than Qtopia in /usr/bin or more correctly /usr/local/bin as (on my Z at least) /opt/QtPalmtop/bin is not in the system PATH variable.

I have a haicom serial GPS. I installed qpegps (which came with gpsd and installed it itself somewhere. Open it up, change the settings page to point to ttyS0, restart and it works fine. Now one thing which might be causing you troubles is that gpsd is not being found in the PATH - ie. it\'s been installed in /opt/QtPalmtop/bin and it\'s not in the PATH. So if it\'s there try copying it to /usr/local/bin then run qpegps again.

Quote
Quote:
Then just use the standard syntax to run it.


Here, I assume that you mean: \"# /home/etc/init.d/gpsd start|stop\"

I don\'t know the syntax off the top of my head, but if you look at the qpegps settings page and then stick all of the command switches after gpsd on the command line I imagine it will work.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with GPSD
« Reply #8 on: February 05, 2004, 09:22:14 am »
gpsd -p /dev/ttyS0 -s 4800

Will be some of it. Try doing gpsd --help and see what else you need to provide (a port number and IP address I presume).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
Problems with GPSD
« Reply #9 on: February 05, 2004, 09:37:08 am »
thanks for the suggestion, lardman.  Here are my unsuccessful results:

Code: [Select]
# cardctl ident

Socket 0:

  product info: "CF CARD", "GENERIC", "", ""

  manfid: 0x0279, 0x950b

  function: 2 (serial)

Socket 1:

  no product info available

# cardctl resume

# cardctl status

Socket 0:

  3.3V 16-bit PC Card

  function 0: [ready], [bat dead], [bat low]

Socket 1:

  no card

# cd /mnt/card/Documents/ipkg/gps

# ls

gpsd_1.06-fam3_arm.ipk         gpsd_1.06-fam5_arm.ipk

gpsd_1.06-fam4_arm.ipk         gpsd_from_qpegps_0_9_1.tar.gz

# ipkg install gpsd_1.06-fam5_arm.ipk

Unpacking gpsd...Done.

Configuring gpsd...Done.

# gpsd

# gpsd --help

# gpsd -p /dev/ttyS0 -s 4800

# /home/etc/init.d/gpsd

Usage: /etc/init.d/gpsd {start|stop}

# /home/etc/init.d/gpsd start

Starting GPS server: gpsdstart-stop-daemon: not found

.

#


So, I\'m not sure what\'s happening here - it recognizes the command \'gpsd\', but there\'s no apparent activity.  Again, any suggestions greatly appreciated-

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
Problems with GPSD
« Reply #10 on: February 05, 2004, 09:40:48 am »
<As a note, I\'m using the latest release of tkcROM on the 5500.>

Also, as would be expected, I installed qpeGPS and tried to access the application, but when it opened, it gave the message \'Connection closed by gpsd\', and in the data status box, for gpsd: ???

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with GPSD
« Reply #11 on: February 05, 2004, 11:17:25 am »
A couple of things:

As you\'re using a CF card GPS card the device will not by ttyS0 - I don\'t know what it will be. Try ttyS1, 2, 3, etc. (I seem to remember that it might be ttyS3) - this is why qpegps complains. Try this method, it will fix it.

If you must use the separate ipk which you have chosen, which is for familiar BTW, you will have to edit the /etc/init.d/gpsd script as the start-stop-daemon doesn\'t exist on the Z (but probably does on a familiar machine). This is a fairly trivial matter, but unless you need to have gpsd running at all times I\'d recommend you go with what qpegps provides (qpegps needs to use gpsd, zRoadmap doesn\'t I don\'t think).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
Problems with GPSD
« Reply #12 on: February 05, 2004, 01:56:45 pm »
Thanks, lardman.  Some golden nuggets in your post - I had know idea what the \'fam\' related to in the gpsd ipk that I was using!  

To the next point - I finally just flashed my 5500, then installed the older version of qpeGPS (0-9-1) that came with the gpsd, and voila!  

I did a find to try to find the gpsd daemon, but did not find it.  I then started the qpeGPS app, and it complained on loading.  However, one of the options was to Retry, which it indicated would restart gpsd with the default settings.  That worked!  

btw, I did try \'# gpsd -p /dev/ttyS3 -s 4800\' as well with the familiar version, and had the same unsuccessful results.  I think that the fact that I was using the wrong gpsd was the problem, period.  Thanks for your help, lardman.  Now, on to the next problem...

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with GPSD
« Reply #13 on: February 05, 2004, 03:35:09 pm »
Glad to be of service
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva