×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Gather gps data through gpsd daemon.

3 months 2 weeks ago
nikhilvp
Fresh Boarder
Fresh Boarder
Posts: 1
More
Topic Author
Gather gps data through gpsd daemon. #52482
Hi,
I am new in embedded domain. I connected EC25 GPS module to embedded board. I want to get gps co-ordinates through gpsd commands.
which command should i use to get gps location info ?

Please Log in or Create an account to join the conversation.

3 months 2 weeks ago
jws_indi
Senior Boarder
Senior Boarder
Posts: 52
More
Gather gps data through gpsd daemon. #52770
On Linux systems supporting udev, gpsd is normally started when a USB plugin event fires and is handed the name of the active device.

To see what devices are on the machine you can use $ lsdev

You can also run this at the command line $man gpsd

Which should output below, with some other information:

gpsd [-F control-socket] [-S listener-port] [-b] [-l] [-G] [-n] [-N] [-h] [-P pidfile] [-D debuglevel] [-V] [[source-name]...]

Typically Linux tries to assign a GPS device to /dev/ttyUSB0 or /dev/ttyS0

Have you tried the port manager within Ekos/Kstars to determine the port?

Jim

Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.

Please Log in or Create an account to join the conversation.

3 months 2 weeks ago
jws_indi
Senior Boarder
Senior Boarder
Posts: 52
More
Gather gps data through gpsd daemon. #52779
is it using a USB connection? If so then run this from the command line
it will display all the USB ports:

your_prompt $ lsusb

to find all your devices run:

your_prompt $ lsdev

gpsd needs arguments to run; one of them being the ttyXXX (the number of the filename), most likely it will be something like "/dev/ttyUSB0 or /dev/ttyS0".

use this command to check, after you find the /dev/ttyXXX your GPS is listed too:
$ stty -F /dev/ttySO ispeed 4800 && cat </dev/ttySO

Then once you know it is running use something like this:

$ gpsd -D 5 -N -n /dev/ttyXXX

for more information use $ man gpsd

It may take awhile to render, this depends on what kind of signal your getting...

Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.

Please Log in or Create an account to join the conversation.

Time to create page: 0.260 seconds