We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

3 posts • Page 1 of 1
abishur
Posts: 4505
Joined: Thu Jul 28, 2011 4:10 am

Connecting to gpsd server

Fri Apr 23, 2021 2:30 pm

I have my phone setup to run as a gpsd server and using python I can connect to it and gather all the GPS data from my phone (I tried using the ultimate gps hat from adafruit, but it kept giving strange readings), but what I'd like to do is have gpsd connect to it then use python to read the output from gpsd. That way I could use gpsd as a time source for the pi.

The problem I hitting is that while the python script gets data from my phone (which is running a gpsd server), when I activate gpsd on the pi itself it gets no data. Currently I'm running it with:

Code: Select all

sudo gpsd -N tcp://<phone's ip>:50001 &
I've set 50001 on my phone to be the port the phone's gpsd's server is supposed to listen to. Any ideas what I could be missing here?

rasparator
Posts: 89
Joined: Wed Oct 14, 2020 5:39 am

Re: Connecting to gpsd server

Sun Apr 25, 2021 6:16 am

I have my phone setup to run as a gpsd server
> How are you doing this?

abishur
Posts: 4505
Joined: Thu Jul 28, 2011 4:10 am

Re: Connecting to gpsd server

Fri Apr 30, 2021 12:10 am

I was using an app called share gps and tried with a different one called NETgps, both were for Android. I also tried a Bluetooth version of sharing gps called Bluetooth gps output. Each of them had some nuisance issues that made it less than ideal for a effectively headless pi so I ended up getting the zoe-m8q from sparkfun. We'll see how it goes.

3 posts • Page 1 of 1

Return to "Troubleshooting"

AltStyle によって変換されたページ (->オリジナル) /