Questions tagged [gpsd]

gpsd is a gps provider which provides the values of the current position

gpsd is a utility that can listen to a GPS or AIS receiver and re-publish the positional data in a simpler format. gpsd is a daemon that receives data from a GPS receiver, and provides the data back to multiple applications such as Kismet or GPS navigation software.

171 questions
12
votes
4 answers

Python GPS Module: Reading latest GPS Data

I have been trying to work with the standard GPS (gps.py) module in python 2.6. This is supposed to act as a client and read GPS Data from gpsd running in Ubuntu. According to the documentation from GPSD webpage on client design (GPSD Client…
TanB
  • 511
  • 4
  • 7
  • 18
11
votes
5 answers

How to get GPS data from Android phone?

Is there a method to tether (USB wired) the GPS data from and Android phone to PC? I am using a GPSTether app currently that is based on the gpsd project. I am loooking for alternatives that give more control and is less buggy than that app. Also,…
Chinmoy
  • 1,750
  • 2
  • 21
  • 45
11
votes
2 answers

How can I implement a gpsd client (in C) to get Latitude, Longitude and Altitude?

I am writing a number-crunching data-logging C program for my GPS enabled Raspberry Pi. I grabbed gpsd, and its sample app cgps displays gps information correctly. I wanted to use libgps to interface with the daemon so that I could have all that…
Nathan Vance
  • 605
  • 1
  • 5
  • 21
8
votes
6 answers

Which gps library would you recommend for python?

I'm looking for a free library for python that can calculate your direction and your speed from GPS coordinates and maybe can calculate if you are in some boundaries or things like this. Are there Libraries that you know and that worked well for…
Janusz
  • 187,060
  • 113
  • 301
  • 369
7
votes
1 answer

changing update rate with gpsd and python

I'm using the adafruit ultimate GPS breakout with my Raspberry Pi 2 using python2.7.9, GPSD, and the python-gps package. I'm successfully getting gps updates at 1Hz over the serial port. This device is supposedly capable of 10Hz updates, which I…
kjgregory
  • 656
  • 2
  • 12
  • 23
7
votes
1 answer

libgps for extract data from the gpsd daemon

I wanted to use libgps to interface with gpsd daemon. That's why I've implemented a little testing application in order to extract a value from a specific satellite. The documentation on its HOWTO page tells us that The tricky part is interpreting…
ogs
  • 1,139
  • 8
  • 19
  • 42
6
votes
2 answers

GeoLocation from gpsd

The gpsd program lets linux users cleanly organize their GPS peripheral data, such that a command line program like cgps or a graphical one like xgps can read the data, and write to a socket, like /var/run/gpsd.sock. There's a nice tutorial on the…
Athan Clark
  • 3,886
  • 2
  • 21
  • 39
5
votes
5 answers

access GPSD port 2947 over network

Have a RPI2 with latest Jessie Lite Raspbian Jan 2017 with Adafruit Ultimate GPS hat and PPS using info from a post at digitalbarbedwire.com. Easy setup and PPS and all gps commands work great locally. I am trying to get gpsd to accept incoming…
Maddox
  • 51
  • 1
  • 1
  • 4
4
votes
0 answers

How to track down cause of ConnectionRefusedError for GPS device connected with the gpsd python library

I'll be brief: I have a u-blox M8 GNSS evaluation kit, and I'm trying to pull location data from it as a sub-routine in a larger program. But I'm being stumped at the outset. My program terminates while trying to establish the initial connection…
ItsAnApe
  • 412
  • 1
  • 3
  • 12
4
votes
2 answers

Can I somehow avoid using time.sleep() in this script?

I have the following python script: #! /usr/bin/python import os from gps import * from time import * import time import threading import sys gpsd = None #seting the global variable class GpsPoller(threading.Thread): def __init__(self): …
Frantisek
  • 7,485
  • 15
  • 59
  • 102
4
votes
1 answer

Start gpsd service at reboot

I am using a GPS hat from adafruit. According to the document Start gpsd and direct it to use HW UART. Simply entering the following command: sudo gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock While this does in fact work, I am trying to find a way…
Niana
  • 1,057
  • 2
  • 14
  • 42
4
votes
3 answers

gpsd python client

I'm trying to write a very simple python client for Gpsd, but I have this error after some time of execute the script: Traceback (most recent call last): File "gps_cap.py", line 13, in g.stream() File…
z3a
  • 1,014
  • 2
  • 11
  • 20
4
votes
2 answers

GPSD not getting a good fix

I have a GPS module connected to a Raspberry Pi via USB. For some reason I can't seem to get a fix using: cgps it doesn't seem to get a fix and terminates. I've also tried: sudo killall gpsd sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock and then…
A_robi11
  • 43
  • 1
  • 1
  • 4
4
votes
5 answers

use gpsd or cgps to return latitude and longitude then quit

I would like a dead-simple way to query my gps location from a usb dongle from the unix command line. Right now, I know I've got a functioning software and hardware system, as evidenced by the success of the cgps command in showing me my position.…
boulder_ruby
  • 38,457
  • 9
  • 79
  • 100
4
votes
2 answers

Stop a thread running a blocking operation

I'm having problems stopping a thread which is executing a blocking operation. I'm writting a program that uses gpsd and it's python binding, the the Thread's run method looks like this: def run(self): print "inside run. outside while" …
Ignacio Verona
  • 655
  • 2
  • 8
  • 22
1
2 3
11 12