YIO-Remote / remote-software

💎 YIO Remote Software repository
GNU General Public License v3.0
164 stars 21 forks source link

Bluetooth dock setup improvements #515

Closed zehnm closed 3 years ago

zehnm commented 3 years ago

The Bluetooth pairing with the dock didn't work anymore with the updated Bluez stack on remote-os v1. It now requires to handle the QBluetoothLocalDevice::pairingDisplayConfirmation signal, otherwise paring is rejected.

Further improvements:

I'm not sure yet about the discovery timeouts. I've increased them from 20s to 30s. @martonborzak any experiences in your tests? Most likely 20s is enough on the RPi, since the remote needs to be pretty close to the dock and discovers it within seconds. Discovery times on other operating systems were longer in my tests, but they are not really the target...

The BluetoothControl class needs a major overhaul so it can be used for multiple devices and integrated into the system UI menu for dock discovery, setup and update. With this PR I'd like to get the pairing fix into the next release, before I continue rewriting Bluetooth handling.