I am connecting via WiFi, with the same network used to remote into the Digipi. The IP address referenced in both the phone app and the gpsd file is the IP address of the Digipi.
Phone setup: Download "NMEA Over Network" app. The only configuration within the app is to add the IP address of the Digipi and assign a port. If setting up to use when the Digipi is in hotspot mode, then you would add
10.0.0.5:30304. The port number at the end could be any available port, but I know that 30304 has not interfered with anything else, so far. You can add multiple addresses for your different network addresses (i.e. your digipi address when at your home network or the digipi's hotspot address).
Digipi setup: We will need to open a terminal window from the main screen by clicking on "Shell". Once you have the window open, we will issue the commands listed below and edit the gpsd file located in /etc/default:
sudo remount (Craig has explained the need for this many times before)
sudo systemctl stop gpsd
sudo systemctl stop gpsd.socket
cd /etc/default
sudo nano gpsd
Now we are in the gpsd file. Below is what the file looked like when I first opened it:
Then I added the following lines at the bottom (I made no other changes):
As a note, I believe you can only reference one address at a time in gpsd. So, if your goal is to utilize this for remote operations, you would use "udp://
10.0.0.5:30304", the digipi hotspot address and a port of your choosing (30304 works for me). Testing on you home network may be the easiest to start with. Make sure both your phone and digipi are on the same wifi network.
Once you have modified the file, we will restart the services and check that the data is flowing. Run these commands:
sudo systemctl start gpsd
sudo systemctl start gpsd.socket
The gps services are started, now type "cgps" at the command prompt to check the connection from the phone. At this point, please ensure you have the NMEA app open and visible on your phone's screen. If all went well, the shell window should produce an output similar to the screenshot below:
Craig stated that the digipi will look toward the gps for time, if time servers are not available. This method will give you the ability to update your system time, periodically, as needed.
Lastly, credit goes to KM4ACK for digging the basic procedures out for BAP! Thanks, Jason.
Have fun playing radio in the woods!
William,
KG5RPO