I have an application where Raspberry pi 3b+ is in a central role and it provides GUI for controlling a peripheral device. The application registers pairing agent with dbus API and passkey pairing works well, when I am running this docker app on my desktop linux computer. But when I run the same app on Raspberry pi 3b+, the GUI does not show passkey prompt. Host OS dmesg prints “Bluetooth: hci0: security requested but not available”.
Only way I can get the pairing to work correctly is calling hciconfig hci0 down and hciconfig hci0 up on Host OS. I can’t call these from my application container, so any ideas how I could solve this problem?