Skip to content

hcitool | Cheatsheet

hcitool is used to configure Bluetooth connections and send some special command to Bluetooth devices.


Connect to device via hcitool

hcitool -i hci0 cc 14:3F:A6:35:AE:17
hcitool tpl 14:3F:A6:35:AE:17
hcitool name 14:3F:A6:35:AE:17

Show manufacturer of dev ice

hcitool info 14:3F:A6:35:AE:17 |grep -i Company
hcitool lq 14:3F:A6:35:AE:17

Display local devices

hcitool dev

Inquire remote devices

hcitool inq

Scan for remote devices

hcitool scan

Get name from remote device

hcitool name

Get information from remote device

hcitool info

Start periodic inquiry

hcitool spinq

Exit periodic inquiry

hcitool epinq

Submit arbitrary HCI commands

hcitool cmd

Display active connections

hcitool con

Create connection to remote device

hcitool cc

Disconnect from remote device

hcitool dc

Switch master/slave role

hcitool sr

Change connection packet type

hcitool cpt
hcitool lq

Display transmit power level

hcitool tpl

Display AFH channel map

hcitool afh

Display local devices

hcitool dev

Inquire remote devices

hcitool inq

Scan for remote devices

hcitool scan

Get name from remote device

hcitool name

Get information from remote device

hcitool info

Start periodic inquiry

hcitool spinq

Exit periodic inquiry

hcitool epinq

Submit arbitrary HCI commands

hcitool cmd

Display active connections

hcitool con

Create connection to remote device

hcitool cc

Disconnect from remote device

hcitool dc

Switch master/slave role

hcitool sr

Change connection packet type

hcitool cpt
hcitool lq

Display transmit power level

hcitool tpl

Display AFH channel map

hcitool afh