×
INDI Library v1.8.3 Released (02 Jan 2020)

Minor monthly bugfix release with a new RainbowAstro mount driver and improved pier side simulation.

How to make USB GPS receiver work for me

2 years 3 months ago 2 years 3 months ago by knro.
knro
Administrator
Administrator
Posts: 7556
Karma: 51
How to make USB GPS receiver work for me #20346
Serial Port Assistant Tool in StellarMate now works with the GPS too:


Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You Kaczorek, SparkyHT

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

2 years 3 months ago 2 years 3 months ago by SparkyHT.
SparkyHT
Junior Boarder
Junior Boarder
Posts: 22
More
Topic Author
How to make USB GPS receiver work for me #20351
I understand if automating such a thing is not an easy thing to do. I guess consider this thread a lesson on what to do if one has a USB GPS receiver and wants to have it reliably pass data into INDI/EKOS. The Stellarmate Serial Assistant was helpful in making the connection repeatable after reboot.
The following user(s) said Thank You knro

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

2 years 3 months ago
xsnrg
Gold Boarder
Gold Boarder
Posts: 246
Karma: 2
More
How to make USB GPS receiver work for me #20352
How does the Stellarmate serial port mapper handle having two devices that have the same USB to serial controller such as the Prolific. In this situation, the IDs end up being the same. This is the case I still have some trouble with because gpsd wants to assign the device automatically itself with udev, and it ends up trying to map to my mount causing eqmod to go offline. It is actually gpsd that does not handle this well I think. It assumes that everything that matches a set of IDs is a gps and builds the device links for it and hangs on to the port.

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

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

1 year 9 months ago
petarm
Expert Boarder
Expert Boarder
Posts: 124
Karma: 1
More
How to make USB GPS receiver work for me #24938
Hi Kaczorek and Jasem, I have just updated kstars to the latest version as of yesterday (9 April 2018). I assume GPSD now automatically populates time and date as well as location.

No need to set DEVICES="/dev/YOUR_GPS_SERIAL_DEV" in /etc/default/gpsd file and restart gpsd service before using INDI GPSD device driver??

regards

Lots of trial and error, mainly error, but in hindsight, it was easy!!!
Takahashi FC100DF, Skywatcher HEQ5 Pro via Wifi, QHY-163C, Canon 550D, DIY Astroberry focuser, ZWO ASI 224MC on Orion 50mm guider, VNC to Asus Tinker Board in hot spot mode running Ubuntu and KStars/Ekos

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

1 year 9 months ago
knro
Administrator
Administrator
Posts: 7556
Karma: 51
How to make USB GPS receiver work for me #24941

xsnrg wrote: How does the Stellarmate serial port mapper handle having two devices that have the same USB to serial controller such as the Prolific. In this situation, the IDs end up being the same. This is the case I still have some trouble with because gpsd wants to assign the device automatically itself with udev, and it ends up trying to map to my mount causing eqmod to go offline. It is actually gpsd that does not handle this well I think. It assumes that everything that matches a set of IDs is a gps and builds the device links for it and hangs on to the port.


It uses serial ID as well.. if they're same, then you're out of luck. I suppose you can go further and map their physical locations on the USB ports but I didn't take it this far.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 year 9 months ago
petarm
Expert Boarder
Expert Boarder
Posts: 124
Karma: 1
More
How to make USB GPS receiver work for me #24950
Im still having issues connecting my ublock 7 USB GPS adapter.

I followed the install on the indi-GPS page. The device connects ok, when i run gpsmon in a terminal it produces the correct time, but when i run it in kstars with the Device Manager or in ekos, it doesnt populate the correct time. Coordinates are fine, just the UTC is incorrect. It is still using the time from when the tinkerboard was last updated using an Internet connection. See images below.

I have made sure that time and location are updated by GPS and mount on the INDI configuration page. See image.

Any suggestions???

Lots of trial and error, mainly error, but in hindsight, it was easy!!!
Takahashi FC100DF, Skywatcher HEQ5 Pro via Wifi, QHY-163C, Canon 550D, DIY Astroberry focuser, ZWO ASI 224MC on Orion 50mm guider, VNC to Asus Tinker Board in hot spot mode running Ubuntu and KStars/Ekos
Attachments:

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

1 year 9 months ago 1 year 9 months ago by pentaxian23.
pentaxian23
Platinum Boarder
Platinum Boarder
Posts: 422
Karma: 3
More
How to make USB GPS receiver work for me #24951

petarm wrote: Hi Kaczorek and Jasem, I have just updated kstars to the latest version as of yesterday (9 April 2018). I assume GPSD now automatically populates time and date as well as location.

No need to set DEVICES="/dev/YOUR_GPS_SERIAL_DEV" in /etc/default/gpsd file and restart gpsd service before using INDI GPSD device driver??

regards


Sooooo..... If I have a GPS unit from Skywatcher that is compatible with my HEQ5 mount. I should be able to plug it into stellarmate and Kstars will automatically have the GPS time and location?

What about the need to have the local Kstars update devices rather than the other way around? I went through this before and it seems updates from the mount to stellarmate to Kstars is not working, so I question whether updates from GPS to stellamate to local Kstars is working too!

I believe local kstars to stellarmate to devices has become a very typical configuration so can you guys confirm that this is working with GPS at stellarmate?

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

1 year 9 months ago
Kaczorek
Moderator
Moderator
Posts: 753
Karma: 6
More
How to make USB GPS receiver work for me #24975

petarm wrote: No need to set DEVICES="/dev/YOUR_GPS_SERIAL_DEV" in /etc/default/gpsd file and restart gpsd service before using INDI GPSD device driver??


GPSD driver uses gpsd service, which in turn reads gps data from your gps receiver. You need to have gpsd service properly configured to have GPSD driver working. This means that you have to set correct gps serial device in /etc/default/gpsd. Otherwise gpsd service will not work (no valid source of gps data). To keep it simple - if gpsmon or cgps don't give you fix and valid gps time/location, don't expect GPSD driver working.

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM
The following user(s) said Thank You knro, pentaxian23, petarm

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

1 year 9 months ago
petarm
Expert Boarder
Expert Boarder
Posts: 124
Karma: 1
More
How to make USB GPS receiver work for me #24993
Hi Kaczorek, yep i did all that, gpsmon in a terminal tells me the gps adapter is connect and working and acquiring gps data. But when i then run gpsd in kstars/ekos, it was not populating UTC, it was using the time from the asus tinker board.

So what i did was found a python script that automatically runs on boot up that takes the UTC time from the gps adapter and updates the tinker board's time. Now kstars has the correct time. Not an ideal fix, but it works.

regards

Lots of trial and error, mainly error, but in hindsight, it was easy!!!
Takahashi FC100DF, Skywatcher HEQ5 Pro via Wifi, QHY-163C, Canon 550D, DIY Astroberry focuser, ZWO ASI 224MC on Orion 50mm guider, VNC to Asus Tinker Board in hot spot mode running Ubuntu and KStars/Ekos

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

1 year 9 months ago
Kaczorek
Moderator
Moderator
Posts: 753
Karma: 6
More
How to make USB GPS receiver work for me #25006

petarm wrote: Hi Kaczorek, yep i did all that, gpsmon in a terminal tells me the gps adapter is connect and working and acquiring gps data. But when i then run gpsd in kstars/ekos, it was not populating UTC, it was using the time from the asus tinker board.


It's a feature not a bug ;-)
GPSD driver gets time from the system not from gps directly. The reason is noted in the comments in the source code:
// Update time regardless having gps fix.
// We are using system time assuming the system is synced with the gps
// by gpsd using chronyd or ntpd.

--
Radek Kaczorek
Astroberry Server | NEQ6 | Atik 460EX | Atik EFW2 | ASI 120MM

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

1 year 9 months ago
petarm
Expert Boarder
Expert Boarder
Posts: 124
Karma: 1
More
How to make USB GPS receiver work for me #25013
No worries. I understand now. Thanks for all your help.

Lots of trial and error, mainly error, but in hindsight, it was easy!!!
Takahashi FC100DF, Skywatcher HEQ5 Pro via Wifi, QHY-163C, Canon 550D, DIY Astroberry focuser, ZWO ASI 224MC on Orion 50mm guider, VNC to Asus Tinker Board in hot spot mode running Ubuntu and KStars/Ekos

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

1 year 9 months ago
pentaxian23
Platinum Boarder
Platinum Boarder
Posts: 422
Karma: 3
More
How to make USB GPS receiver work for me #25156
I'm having some issues with this. It seems that I have to actually go outside in order to get a GPS fix so I can't test this properly. But I'm connecting to the GPS, and it says its trying to get a fix. So in the meantime it seems to be using the StellarMate time/loc (the year is 2016). So I tried to change my preferences in the local Kstars application (running on a Mac) and it wouldn't work. I tried to put back the manual location but it was ignored even though I changed the setting for local Kstars to update all devices etc. I restarted Kstars and that didnt work either. I had to disconnect from stellarmate and connect to the internet, then I started kstars and entered manual location and then it worked.

This whole time/location thing seems to be very convoluted. Maybe I'm not understanding or getting confused but what I read from Kaczorek and what I see in fact and on the video tutorial are not the same.

I have to say though that I was pleasantly surprised that I plugged in the GPS dongle (from skywatcher) and KStars/StellarMate recognized it and connected without any effort on my part. This is how things should be! :-) But in trying to use it, things didn't go so well. My mount connection hung up too even thought I followed the StellarMate tutorial video #4 to rename the ports - /dev/gps and /dev/mount. Anyway, I'm going to go out next time very early and try this again with a real GPS signal.

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

Time to create page: 0.494 seconds