alikh31 / node-red-contrib-eq3-bluetooth

node-red binding to bluetooth eq3 radiator valves without Max! Cube
MIT License
10 stars 5 forks source link

for info: multiple devices #11

Open btsimonh opened 5 years ago

btsimonh commented 5 years ago

Just a note on multiple devices on RPi3: I had terrible trouble trying to operate two devices simultaneously with bluez 5.43 (std issue 2018). After upgrading to 5.48 (here https://scribles.net/updating-bluez-on-raspberry-pi-5-43-to-5-48/ and also had to symlink bluetoothd because the old one was still running, then had to power off and power on in bluetoothctl after a reboot to get it to work at all). After the upgrade, issues with multiple devices went away.

I still have issues with multiple applications trying to talk to bluez (and to the SAME device(s)). Will continue to investigate.

alikh31 commented 5 years ago

thanks for reporting the issue @btsimonh in case you have a solution at the end, I will be happy to review and merge to the upstream.

btsimonh commented 5 years ago

I'm currently playing with https://github.com/WaeCo/node-bluez where it's natively using DBUS; not sure what's underneath noble, but there are still a lot of complexities about multiple processes with DBUS, never mind the C++ APIs, and probably more than a few bugs in bluez itself. I'll keep you posted if I discover anything positive.

btsimonh commented 5 years ago

Hi alikh31, sent a pull request for the lib files as a first pass. s