×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

gpsd driver switches between 2 sources/positions

  • Posts: 51
  • Thank you received: 0
Using a VK-162 GPS. Often the gps alternately reports 2 different positions - 1 is the correct current position and the other is lat 52:xx:xx North and long 21:xx:xx East. Viewing the gps data with xgps shows it switching between 2 sources - 1 is /dev/tty/ACM0 (correct) and the other /tmp/vgps which is a softlink to /dev/pts/0. What is this source and how can it be removed?

This happens with multiple VK-162 devices and happens on both Astroberry and Stellarmate.

Ed
3 years 1 month ago #67905

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

  • Posts: 348
  • Thank you received: 69

www.astroberry.io/docs/index.php?title=A...y_Server#Virtual_GPS

Try:
sudo systemctl stop virtualgps
sudo systemctl disable virtualgps
The following user(s) said Thank You: Edwin Hekman
Last edit: 3 years 1 month ago by Giles.
3 years 1 month ago #67916

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

  • Posts: 51
  • Thank you received: 0
Thanks for the help. Glad to see that disabling the virtualgps is preserved after rebooting.
3 years 1 month ago #67973

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

  • Posts: 348
  • Thank you received: 69
sudo systemctl stop virtualgps <--- This stops a running virtualgps service
sudo systemctl disable virtualgps <--- This prevents the virtualgps service from starting at boot time, but it doesn't stop an already running virtualgps service.

In case you have problems getting a fix from your GPS, then it's a good idea to put your usual home location into /etc/location.conf

That way, if you can't get a fix, then you can start the virtualgps service and use it with GPSD as normal.

To start:
sudo systemctl start virtualgps

You don't need to enable virtualgps in order to start it, that just makes it start automatically at boot time.
3 years 1 month ago #67981

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

Moderators: Radek Kaczorek
Time to create page: 0.360 seconds