Closed stepanmracek closed 3 years ago
Hi, I also have this similar bug:
pi@raspberrypi:~ $ sudo bt-agent --capability=NoInputNoOutput
Agent registered
Default agent requested
Device: XXXXX (XX:7B:XX:XX:27:88)
Enter passkey:
Always want to pair with passkey/pin.
Do this alternative method for fixed pin. Some smart TV's and other gadgets pair automatically because pin is: 0000
Add the plus starting parameter " -p /(own directory name)/bluethooth.cfg "
sudo nano /etc/systemd/system/bt-agent.service
[Unit]
Description=Bluetooth Agent
Requires=bluetooth.service
After=bluetooth.service
[Service]
ExecStart=/usr/bin/bt-agent --capability=NoInputNoOutput -p /(own directory name)/bluethooth.cfg
RestartSec=5
Restart=always
KillSignal=SIGUSR1
[Install]
WantedBy=multi-user.target
Make /(own directory name)/bluethooth.cfg
sudo nano /(own directory name)/bluethooth.cfg
add
* 0000
and then save it
sudo reboot
The bt-agent process should never require asking for authorization (this is what "NoInputNoOutput" is about). Are you sure you use an Bluetooth dongle that supports simple pairing mode (SSP, Bluetooth 2.1 or newer)?
The problem with pairing with a PIN is, many devices do not support PIN pairing mechanism anymore, so I removed it as default, see here: https://github.com/nicokaiser/rpi-audio-receiver/issues/48#issuecomment-686666414
Hi, thanks for this wonderful set of scripts. I have an issue when I'm trying to connect from the laptop/phone to my raspberry pi. It seems that
bt-agent
ignores config option--capability=NoInputNoOutput
and always asks for confirmation when I'm pairing some device with raspberry pi:If I want to pair I have to run the agent directly like this and type
yes
. After that the devices will be paired:Do you have any idea what I'm doing wrong?