meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:bluetooth [2018/08/24 12:20] niziaklinux:bluetooth [2022/10/27 15:24] (current) niziak
Line 1: Line 1:
-====== Debian ======+====== Bluetooth ====== 
 <code bash> <code bash>
 apt-get install bluez bluez-tools d-feet apt-get install bluez bluez-tools d-feet
 sudo usermod -a -G bluetooth $USER sudo usermod -a -G bluetooth $USER
 +sudo setcap 'cap_net_raw,cap_net_admin+eip' `which hcitool`
 +sudo setcap 'cap_net_raw,cap_net_admin+eip' `which hciconfig`
 </code> </code>
  
 +===== debug  =====
 +
 +Enable debug output of ''bluetooth.service'':
 +<code bash>
 +systemctl edit bluetooth.service
 +</code>
 +<file override>
 +[Service]
 +ExecStart=
 +ExecStart=/usr/libexec/bluetooth/bluetoothd -dn
 +</file>
 +NOTE: empty ''ExecStart='' is required to remove previous ''ExecStart'' (to prevent duplicate entries)
 +
 +<code bash>
 +systemctl daemon-reload
 +systemctl restart bluetooth.service
 +</code>
 ===== hcitool ===== ===== hcitool =====
  
 +<code bash>
 hciconfig hciconfig
 +hciconfig hci0 up
 hcitool dev hcitool dev
 hcitool lescan hcitool lescan
  
 hciconfig hci0 lestates hciconfig hci0 lestates
 +</code>
  
 ===== gatttool ===== ===== gatttool =====