• Uncategorized

About linux : Disable-BT-pairing-security-pin-on-Embedded-Linux-device

Question Detail

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

Question Answer

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

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.