-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPS to readsb #40
Comments
No clue. It seems like some exclusive mode where the first connection gets use of the GPS device? What happens if you have cgps -s running and workign and you start readsb? |
I will have a look and try that. I'm going to try move my set coordinates to somewhere else and see if tar1090 updates my location. Could you maybe try and see if you are able to get data on cgps -s if you are already running readsb from boot? This will help. I t seems it could be whichever grabs the ttyACM0 first wins scenario? Thanks for the help! |
I have tested this previously with inputting fake data into gpsd. How this gets fixed is: You find the exact issue and tell me what my program needs to do different.
Might need root. That should allow you to check how readsb behaves. |
Thanks very much. Do you get constant position updating or should readsb be getting constant position updates? I can get a position on the map but I find I have to restart gpsd to get a new position update on the map. |
Hello, It looks like readsb it programmed to get the gps coordinates from startup and then close the connection. Is there a way to keep the connection to gpsd open? I struggle to keep my aircrafts adsb signal hence why I want to keep getting GPS coordinates from the gpsd.. Thanks! |
It doesn't close the connection. |
Ok.. Just seems like that because it doesn't update the GPS coordinates unless i restart the readsb.service. Do you get constant position updating? Trying my best to make this work |
What GPSD can’t do is pull fix data out of thin air when your device hasn’t reported any. Nor is it a magic power supply, so its device management has to be designed around keeping the attached sensors open only when a client application actually needs a fix. As you’ll see, these constraints explain most of the design of the GPSD wire protocol, and of the library APIs your client application will be using. https://gpsd.gitlab.io/gpsd/client-howto.html Your gpsd is doing weird things. |
Let's check the log first, if readsb disconnects it's gonna be in the log. |
I've updated readsb to accept TPV messages, not sure why i was ignoring those. Regardless if the above fixes the issue, you can now use --devel=debugGPS to get verbos log of all the comms with GPSD. |
Have you updated readsb? After that i'll need just the readsb log from the journal due to the new debug functionality. |
Thanks I've run the update script. Sorry I'm a noob, how do I add --devel=debugGPS to the readsb command line options? |
The syntax of the config is clear, make sense of it and add the parameter to any of the existing strings in "" |
Ah thanks. I'll give it a go 🙏🏼 |
You could for example modify this line
To this line:
|
Thanks very much! I'm going flying just now and I'll give it a go |
I'd recommend testing in a car, much easier! ;) |
Hey how did this go, is it working now? |
I never really got it working 100%. Seems I always had to restart the gpsd service for it to update my position. I tried out Stratux and this is the GPS functionality that I need, but their ADSB data lacks a lot of info I want displayed. I'm stuck between the 2 |
You ran with the debug? |
Maybe just change your GPS device .... |
Other people got it running just fine pretty easily. |
I'll do a fresh install and try again.. I really want it to work! Thanks for the help so far |
Well put the debug option and show the log as instructed. |
this is a bug in gpsd < 3.25. if gpsd has a locked position, it is not updating lon/lat/speed ... and maybe more values anymore. you can check your installed gpsd-version with 3 possible solutions:
Using backports will not work because Trixie-builds for gpsd are not backported to bullseye/bookworm (by now?) |
I followed the following steps.
GPS: u blox vtk172 USB GPS.
How can I fix this?
Thanks!
The text was updated successfully, but these errors were encountered: