I have an embedded Linux board running a Yocto Linux image containing BlueZ.
I want to activate the HCI bluetooth device advertising mode and disable the pairing security.
I want to scan for the device with my smartphone and connect directly without security PI, just like any Audio device (JBL, …).
I tried many methods using (bluetoothctl and other tools) but without success.
Is there a way to achieve this?
Thanks in advance,
Talel
Set IOCapability of your device to NoInputNoOutput then pairing will happen but it won’t ask for any confirmation similar to BT headsets.
bluetoothctl command line tool has option to set IOCapability. Set capability and check.
$bluetoothctl
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# agent NoInputNoOutput
Agent registered