[FOSS-GPS] Questions about foxtrotgps

James Hiebert james at hiebert.name
Wed Oct 13 01:55:52 EDT 2010


Thanks for helping me work through this, guys.  I had it working when I went
to bed last night (with fso-gpsd), and then this afternoon after a restart
it stopped again.  Arrrrg.

> That's just a transitional package that depends on foxtrotgps.

OK, good to know.

> > FWIW, none of the gpsd suite of applications (gpscat, xgps, gpsmon) get any
> > info from the gps.
> 
> This is probably because you have not turned the GPS chip on. What do
> you get with "om gps power"?

No, the power is on.

# om gps power
1

> Your strace shows
> 
> 1784  connect(14, {sa_family=AF_INET, sin_port=htons(2947), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
> 
> which means that it managed to connect to gpsd properly and

Good.

> write(14, "?WATCH={\"enable\":true,\"json\":true};\n", 36) = 36
> 
> which means it is speaking the new protocol and

OK.

> recv(14, "{\"class\":\"VERSION\",\"release\":\"2.95\",\"rev\":\"2010-08-29T23:44:13\",\"proto_major\":3,\"proto_minor\":3}\r\n{\"class\":\"DEVICES\",\"devices\":[]}\r\n{\"class\":\"WATCH\",\"enable\":true,\"json\":true,\"nmea\":false,\"raw\":0,\"scaled\":false,\"timing\":false}\r\n", 3072, 0) = 228
> 
> which means that the server replied but is not configured with any devices!

Hrm... how does gpsd configure/detect devices?  My /dev/gps points to
/dev/ttySAC1

> How did you start gpsd?

Well, two scenarios (neither of which work):

Scenario #1:
This is using gpsd and not dbus/gypsy
+ Disable ogpsd in /etc/frameworkd.conf and restart fso-frameworkd
+ om gps power 0 && om gps power 1
+ /etc/init.d/gpsd start
Only one thing (gpsd) is using the serial device so there should be no
conflicts
I telnet to gpsd and query it:

# telnet localhost 2947
Trying ::1...
Connected to localhost.
Escape character is '^]'.
{"class":"VERSION","release":"2.95","rev":"2010-10-04T22:46:29","proto_major":3,"proto_minor":3}
?WATCH={"enable":true,"json"};
{"class":"DEVICES","devices":[]}
{"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":0,"scaled":false,"timing":false}

but it still have no devices.

I start up foxtrotgps and it still reports no fix or gps time.

Scenario #2:
I managed to force dpkg to install fso-gpsd, but ignoring all of the
conflicts with gpsd/foxtrotgps, so it's worth trying that again.
+ shut down gpsd (/etc/init.d/gpsd stop)
+ turn off the power (om gps power 0)
+ Re-enable ogpsd in /etc/frameworkd.conf and restart
  (/etc/init.d/fso-frameworkd restart)
+ And turn the gps power back on (om gps power 1)
+ Now start up fso-gpsd to shim between dbus and foxtrotgps
  (/etc/init.d/fso-gpsd restart)
+ If I telnet to localhost 2947 and query it, it starts sending NMEA (I
  think) at me.

When I start up foxtrotgps I still don't even get the gps time showing on
its display.

I have straced both of these scenarios, but the files are long.  Is there an
osgeo hosted bugzilla or something where I could open a bug and attach the
traces?  Or is the information above sufficient (I doubt the latter).

~James


More information about the FOSS-GPS mailing list