×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Gather gps data through gpsd daemon.

  • Posts: 1
  • Thank you received: 0
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 ?
3 years 11 months ago #52482

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

  • Posts: 62
  • Thank you received: 9
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.
3 years 11 months ago #52770

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

  • Posts: 62
  • Thank you received: 9
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.
3 years 11 months ago #52779

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

Time to create page: 0.357 seconds