Closed nineff closed 6 years ago
Oh so the second device (that I thought won't work at all) does kinda work! :) We should avoid timeouts of course but hopefully that one is easy to fix.
I just set the timeout to 10 seconds, could you please check if that helps with timeout errors? Also see if maybe it helps with autodetection too.
Autodetecting is exactly the same: it gets skipped:
sudo ./gps-share
Attempting to autodetect GPS device...
Skipping /dev/ttyACM0. Driver cdc_acm
Failed to autodetect GPS device
But the increased timeout works nice, I even could decrease it to 1.5 seconds without error messages, but I didn't do extensive testing on that. However 3 s should be more than enough given that the error only appears about once every 5 sec with a timeout of 1 s.
OK, now this device should just work with my latest changes on test/arch-autodetect branch. Please check and let me know.
looks very promising:
sudo ./gps-share
Attempting to autodetect GPS device...
/dev/ttyACM1 seems interesting
Needs verification
Reading from port..
Read from port: $GPTXT,01,01,02,u-blox ag - www.u-blox.com*50
Detected /dev/ttyACM1 as a GPS device
TCP server bound on all interfaces
Port: 45757
group: /Client11/EntryGroup1
I can telnet into the port and I'm getting good results, however I'm not sure if geoclue is now actually using this data. Do I need to tell it to connect somehow?
Cool, thanks. If you get NMEA traces through telnet, that's it already working. :) You shouldn't need to tell geoclue about it but please make sure avahi is working on you machine (i-e firewall isn't blocking ports etc). The easiest way to verify would be to check the accuracy of your location in GNOME Maps (once there is a GPS lock, it should be a few meters at most).
You can also run geclue binary manually with debug enabled:
G_MESSAGES_DEBUG=Geoclue /usr/libexec/geoclue
and then see if you can spot a message about it using an nmea source with accuracy level 8.
The device: http://www.navilock.de/produkte/F_778_GPS_61840/merkmale.html?setLanguage=en
The Udev output:
lsusb:
Terminal output:
Specifying the device directly and telnetting into the port:
Telnet result: