berthubert / galmon

galileo open source monitoring
GNU General Public License v3.0
200 stars 53 forks source link

ubxtool sometimes needs --wait to start up, sometimes crashes if it's specified #61

Open myself248 opened 4 years ago

myself248 commented 4 years ago

After reconnecting my receiver, I had this repeatedly crashing: pi@rpi4:~/galmon $ systemctl status galmon ● galmon.service - #41 Galmon GNSS Monitor Loaded: loaded (/etc/systemd/system/galmon.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: signal) since Sun 2019-12-29 22:04:08 GMT; 4s ago Process: 3926 ExecStart=/home/pi/galmon/ubxtool -c -g -r -e --wait --port /dev/ttyACM0 --station 41 --destination 82.94.213.34 --owner NJ8Z -- Main PID: 3926 (code=killed, signal=ABRT)

So I stopped the service and ran it once on the commandline with ./ubxtool -c -g -r -e --port /dev/ttyACM0 --stdout

and it came up just fine. I ctrl-c'd it after a moment. After that I could reenable the service which has --wait on its commandline, and it too came up just fine.

nousian commented 4 years ago

Some random observations:

Under WSL ubxtool hangs for a while and crashes if --wait is specified. Without, it works fine every time.

Under native Linux it seems to work fine for me either way.

ssb83 commented 4 years ago

More random observations:

With factory default settings, F9T via usb does not work at all with --wait (two retransmits and abort with TimeoutError). Without --wait initialization succeeds (sometimes after several attempts), and afterwards it works either way, until power cycle.