galmon icon indicating copy to clipboard operation
galmon copied to clipboard

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

Open myself248 opened this issue 5 years ago • 2 comments

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.

myself248 avatar Dec 29 '19 22:12 myself248

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.

nousian avatar Jan 02 '20 16:01 nousian

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.

ssb83 avatar Jan 21 '20 09:01 ssb83