Bluepup fixed in Easy Excalibur
That was one of the reported bugs, so Easy version 6.101 has Blueman bluetooth GUI.
Wasn't satisfied leaving Bluepup broken, as it has worked reliably for years. Suddenly now in Easy Excalibur, the VTE terminal embedded in gtkdialog no longer displays anything.
So, examined the code in /usr/local/bluepup/bluepup, traced the problem to this line:
tail -f /tmp/bluepup/btctl_in | tr -d 'SOH' | tr -d 'STX' | tee -ai /tmp/bluepup/vte.log
...I was wondering how that will display in the web page. That "SOH" and "STX" are actually ASCI control characters. They don't display here, so I have replaced with the letters that represent what they are.
I was immediately suspicious when saw those "tr" operations. Reason is, up until now EasyOS has relied heavily on busybox applets. But with this new-generation woofQ2, decided to use the full utilities in 'coreutils' and 'util-linux' and only use busybox applets when there is no alternative.
'tr' is in 'coreutils' package. 'tr' was spitting out warning
messages in lots of the scripts, so changed to running busybox tr,
then OK. That's why I was immediately suspicious.
What I found is the full 'tr' utility does not delete any occurrences of those control characters. No it silently fails, passing nothing through. The line is fixed like this:
tail -f /tmp/bluepup/btctl_in | busybox tr -d 'SOH' | busybox tr -d 'STX' | tee -ai /tmp/bluepup/vte.log
Now Bluepup works.
I'll leave in both Blueman and Bluepup, as users might find one works better for them than the other. The bluetooth tray applet will need to be able to switch also.
The Wikipedia has a hexadecimal ASCII table that shows SOH is numeric 01 and STX is 02:
https://en.wikipedia.org/wiki/ASCII
Keep hitting bugs, but, getting there, they are getting
solved.
Tags: easy