Commands to enable and disable Bluetooth discoverable by terminal

In order for the pairing to work, your computer’s bluetooth interfaces must be discoverable. A bluetooth dongle may start off in hidden mode

using hciconfig:

hciconfig hci0 piscan

Then hciconfig should show the flags ISCAN PSCAN, indicating bluetooth is discoverable (i.e. can be scanned). After you finished pairing, it’s best to make your computer hidden again: Or using hciconfig:

hciconfig hci0 noscan

Another method more complicated I think:

dbus-send –system –dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s