Ruuvitag + Node-Red + Ubuntu

Further to this, bt-mqtt-gateway was unreliable after a few days of running. It seems anything that uses hcitool or its associated lescan command doesn’t play nice with new intel hardware or ubuntu 20.04. Random unexplainable issues related to hci0 going down, losing connection but still showing the BT connection as up or I/O errors on lescan. The Asus BT400 usb dongle which uses the BCM20702A1 driver worked, but would randomly fail in a day or so.

When trying to use the NUC10s built in AX201 bluetooth which is a much newer chip, I never got it working for any of the ruuvitag integrations or programs which use hcitool/noble, even though it seemed to work just fine using bluetoothctl. When using scan on it always showed the Ruuvitags…

Recently came across a post in the showcase section of these forums about a daemon which publishes MQTT data gbcsdpd. It’s the only thing I’ve been able to get working running ESXi, Ubuntu 20.04 Desktop and the NUCs built-in AX201 chip. I’m guessing because it uses the actively maintained Bluez D-Bus API.

Hopefully this saves someone some bluetooth frustration. Feel free to move to troubleshooting.