Very happy with Astroberry - got it running on a Pi3B+ in my obsy but using it in client/servermode with Kstars/Ekos on my MacbookPro - now got a Pi4 so I can run it all standalone for outreach but having problems trying to connect an old Tom Tom GPS device to Astroberry so it can pick up date and location out in the field or at Outreach Events. Currently running Astroberry 2.0.0 - have run updates and upgrades.
Astroberry Bluetooth System Icon sees GPS device but would not connect with error 'No useable services' ...
So after lots of Googling ... on INDI site and others ...
Used cat /dev/rfcomm0 and that shows some GPS data - See attached file
However even though device now seems to be connected - Astroberry GPS does not seem to get a fix - assigned GPSD as INDI device.
Can you help?
Do I have to run this? "gpsd -b /dev/rfcomm0" - although presume INDI runs that when you set up the GPSD device using the GPSD Init file.
Do I have to 'bind' rfcomm somehow - so that it connects at boot time without having to run commands.
Maybe I am just selecting the wrong devices in Astroberry/INDI?
Before doing anything with INDI make sure that GPS works by using gpsmon or cgps (both from command line intrerface). And even before that you can see if your GPS returns NMEA data with miniterm /dev/rfcomm0 (cat is not a good option for serial devices).
If the above are ok, make sure to test it outside. Getting fix indoors is a challenge with legacy devices.
OK - Looks like cgps and gpsmon are not installed by default - so ran apt-get update gpsd-utils and they become available.
So have ensured TomTom GPS device has a fix - shown by green led indicator flashing on device.
Ensured gps device attached by running rfcomm connect 0 mac-address - then system bluetooth icon shows it connected - and the device blue indicator flashing
Ensured gpsd was running - gpsd -b /dev/rfcomm0 used -b option as safety mode
Ran cgps and gpsmon - no data showing
Ran cat /dev/rfcomm0 - got usual gps data
Screenprint attached showing all the above.
Presume I am doing something wrong - assigning device to wrong serial port maybe?
If gpsmon and cgps do not show data AND cat shows data from /dev/rfcomm0 it means that gpsd configuration is broken.
1. Remove any custom configuration from /etc/default/gpsd
2. Restart gpsd with: sudo systemctl restart gpsd.service or reboot
3. After connecting your GPS device just run: sudo gpsdctl add /dev/rfcomm0
4. Check gpsmon and/or cgps
After step 2 you can follow your logs so you can see what is happening in the system: tail -f /var/log/syslog