Connecting to gpsd server
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:
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?
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 &- rasparator
- Posts: 89
- Joined: Wed Oct 14, 2020 5:39 am
Re: Connecting to gpsd server
> How are you doing this?I have my phone setup to run as a gpsd server
Re: Connecting to gpsd server
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.
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion