08-31-2021, 12:29 PM
(This post was last modified: 08-31-2021, 12:51 PM by TheOldPresbyope.
Edit Reason: fix minor formatting issue
)
(08-31-2021, 07:26 AM)robiwan Wrote: Problem is that the auto pairing seems to not be working properly. Using bluetoothctl acc. to https://www.raspberrypi.org/forums/viewt...p?t=235519:
pi@moodeaudio:~ $ bluetoothctl
[NEW] Controller XX:XX:XX:XX:XX:XX raspberrypi [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller XX:XX:XX:XX:XX:XX Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# quit
Agent unregistered
Seems to solve the issue, at least until the bluetooth controller is restarted.
Ah, but when we read the sources, we find that the script /var/www/command/bt.sh has an INIT() function which executes exactly these commands when invoked with the -i option. Turning to the all-purpose module /var/www/inc/playerlib.php, we find that bt.sh -i is invoked in the function startBt() to initialize the Bluetooth controller.
This leaves me wondering why "the auto pairing seems to not be working properly", especially since it is working with all the Bluetooth-equipped devices I have on hand. So far, the answer for me is "insufficient data."
Regards,
Kent