04-19-2024, 09:29 PM
Hi,
The just released ~pre4 moode 9 code contains a new Bluetooth feature that supports PIN code authentication but currently it is not working correctly.
Help needed :-)
The symptom is that after entering the PIN code on the client the pairing appears to work (shows up as paired in Bluetooth Control screen) but the connection fails and thus bluealsa-aplay is not launched.
Here are the pieces
/etc/bluetooth/pin.conf
/usr/bin/bt-agent
/etc/systemd/system/bt-agent.service
/var/www/daemon/worker.php, job=bt_pin_code
PIN code=None
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/hciconfig hci0 sspmode 1
PIN code = 123456
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput -p /etc/bluetooth/pin.conf
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/hciconfig hci0 sspmode 0
Note: sspmode (Secure Simple Pairing Mode)
Links:
https://github.com/khvzak/bluez-tools
https://forums.raspberrypi.com/viewtopic.php?t=235519
https://stackoverflow.com/questions/5152...ng-pairing
https://stackoverflow.com/questions/5214...matching-p
I also tried PIN code auth with the existing /var/www/daemon/blu_agent.py script and no success.
The just released ~pre4 moode 9 code contains a new Bluetooth feature that supports PIN code authentication but currently it is not working correctly.
Help needed :-)
The symptom is that after entering the PIN code on the client the pairing appears to work (shows up as paired in Bluetooth Control screen) but the connection fails and thus bluealsa-aplay is not launched.
Here are the pieces
/etc/bluetooth/pin.conf
/usr/bin/bt-agent
/etc/systemd/system/bt-agent.service
/var/www/daemon/worker.php, job=bt_pin_code
PIN code=None
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/hciconfig hci0 sspmode 1
PIN code = 123456
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput -p /etc/bluetooth/pin.conf
ExecStartPost=/bin/sleep 1
ExecStartPost=/bin/hciconfig hci0 sspmode 0
Note: sspmode (Secure Simple Pairing Mode)
Links:
https://github.com/khvzak/bluez-tools
https://forums.raspberrypi.com/viewtopic.php?t=235519
https://stackoverflow.com/questions/5152...ng-pairing
https://stackoverflow.com/questions/5214...matching-p
I also tried PIN code auth with the existing /var/www/daemon/blu_agent.py script and no success.