×
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.

How to use smartphone GPS with INDI-GPSD

2 years 10 months ago
maudy
Platinum Boarder
Platinum Boarder
Posts: 353
Karma: 2
More
How to use smartphone GPS with INDI-GPSD #19278
Your steps worked great on the iPhone and my RPI3:



1. sudo apt-get install gpsd gpsd-clients
2. sudo nano /lib/systemd/system/gpsd.service

replace the ExecStart with: ExecStart=/usr/sbin/gpsd -N -b -n tcp://X.X.X.XX:XXXXXX
where x.x.x.x = the iPhone's IP address on the same wifi as RPI3
and XXXXX = the port assigned to the gps service.

3. sudo systemctl daemon-reload
4. sudo reboot
5. once on RPI3 again: systemctl status gpsd.service

Confirm running cgps -s

5. add the GPSD driver to the Auxiliary in INDI

6. On the iPhone this app worked for me: itunes.apple.com/us/app/nmea-gps/id590868529?mt=8

If you find a better app on the iPhone let me know.

Cheers!
The following user(s) said Thank You T-Studio

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

2 years 10 months ago
T-Studio
Platinum Boarder
Platinum Boarder
Posts: 352
Karma: 1
More
Topic Author
How to use smartphone GPS with INDI-GPSD #19285
Thank you for your reply.
The script I used was posted on the following site.

spench.net/drupal/software/iphone-gps


I will also try the application you taught.

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

2 years 10 months ago
T-Studio
Platinum Boarder
Platinum Boarder
Posts: 352
Karma: 1
More
Topic Author
How to use smartphone GPS with INDI-GPSD #19286
Thank you for your reply.
The script I used was posted on the following site.

spench.net/drupal/software/iphone-gps

I will also try the application you taught.

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

2 years 10 months ago
maudy
Platinum Boarder
Platinum Boarder
Posts: 353
Karma: 2
More
How to use smartphone GPS with INDI-GPSD #19298
I tried the script. Although I could get the the page served, it would not find my iPhone. This is why I used the iOS app instead of the script.

Just curious, does the script work for you?


Sent from my iPhone using Tapatalk Pro

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

2 years 10 months ago
T-Studio
Platinum Boarder
Platinum Boarder
Posts: 352
Karma: 1
More
Topic Author
How to use smartphone GPS with INDI-GPSD #19303
Thank you for your reply.
Apparently it seems that virtual sockets such as /dev/tty/pts/1 can not be handled except GPSMON.
gpsmon /tty/pts/1

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

2 years 10 months ago
T-Studio
Platinum Boarder
Platinum Boarder
Posts: 352
Karma: 1
More
Topic Author
How to use smartphone GPS with INDI-GPSD #19304
It is displayed in GPSMON with the above setting.

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

2 years 10 months ago
T-Studio
Platinum Boarder
Platinum Boarder
Posts: 352
Karma: 1
More
Topic Author
How to use smartphone GPS with INDI-GPSD #19305
I tried the presented app.

I was checking the wireless LAN function of RaspberryPi 3, but in my environment I used RaspberryPi 3 with wireless AP, so each application, RaspberryPi 3 was recognized as a server and could not communicate.
In order to eliminate the reason why the application did not work, it seems necessary to set the wireless LAN of RaspberryPi 3 to client mode.

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

2 years 10 months ago
HelgeMK
Gold Boarder
Gold Boarder
Posts: 307
Karma: 1
More
How to use smartphone GPS with INDI-GPSD #19595
Dear Ilhoujin,

Thanks for sharing the instructions, it is working as described!

Now what I am wondering, the moment I can see the gps coordinates in Ekos, is there anything else to be done in KStars? I checked what is maintained in KStars for my location, and it deviates (see screenshot). Maybe it does not matter?

Best, Helge
Attachments:

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

2 years 10 months ago
Ihoujin
Platinum Boarder
Platinum Boarder
Posts: 904
Karma: 3
More
How to use smartphone GPS with INDI-GPSD #19597
KStars does not call upon a GPSD to set the geographic location. According to Jasem this is because it would be difficult to implement cross platform.
Something I asked about a while ago Here .

What you can do with GPSD is use it with the mount module, which I believe will improve pointing. And on an entirely separate use outside of KStars, it is possible to set the system clock with it, which is what I use it for because Raspberry Pi will not keep time when not powered.

INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.

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

2 years 10 months ago
maudy
Platinum Boarder
Platinum Boarder
Posts: 353
Karma: 2
More
How to use smartphone GPS with INDI-GPSD #19598
You can set Kstars to update the device with time and location. Still testing whether the GPS can be used to update the mount and then the mount is used to update KStars.

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

2 years 9 months ago
rlancaste
Platinum Boarder
Platinum Boarder
Posts: 2265
Karma: 22
More
How to use smartphone GPS with INDI-GPSD #20388
Thank you maudy, your instructions worked as described!

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

2 years 9 months ago
rlancaste
Platinum Boarder
Platinum Boarder
Posts: 2265
Karma: 22
More
How to use smartphone GPS with INDI-GPSD #20389
I think a number of users could benefit from this method. However, I think it would be cumbersome out in an observing field at a star party to edit /lib/systemd/system/gpsd.service every time with your iPhone's new IP address. Is there perhaps an easier way to edit this? Maybe we could modify the indi driver to do it as an option?

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

Time to create page: 0.982 seconds