meta data for this page
  •  

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:bluetooth [2018/08/07 13:15] – created niziaklinux:bluetooth [2024/12/11 11:44] (current) niziak
Line 1: Line 1:
-====== Debian ====== +====== Bluetooth ====== 
-apt-get install bluez d-feet+ 
 +<code bash> 
 +apt-get install bluez bluez-hcidump bluez-tools d-feet blueman 
 +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> 
 + 
 +===== 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 ===== 
 + 
 +<code bash> 
 +hciconfig 
 +hciconfig hci0 up 
 +hcitool dev 
 +hcitool lescan 
 + 
 +hciconfig hci0 lestates 
 +</code> 
 + 
 +===== gatttool ===== 
 + 
 +gatttool -b AA:BB:CC:DD:EE:FF -I 
 +  * connect 
 +  * characteristics 
 +  * char-read-uuid 00002a00-0000-1000-8000-00805f9b34fb 
 + 
 +===== d-feet ===== 
 + 
 + 
 +d-feet 
 + 
 + 
 +====== CSR 4.0 USB adapter ====== 
 + 
 +It is based on **CSR 8510 A10** aka **Sitecom CNT-524** 
 +CSR = Cambridge Silicon Radio 
 + 
 +Supports BLE: 
 +<code> 
 +usb 3-14: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=88.91 
 +usb 3-14: New USB device strings: Mfr=0, Product=2, SerialNumber=0 
 +usb 3-14: Product: CSR8510 A10 
 +</code> 
 + 
 +without BLE support: 
 +<code> 
 +usb 3-14: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=68.17 
 +usb 3-14: New USB device strings: Mfr=0, Product=2, SerialNumber=0 
 +usb 3-14: Product: CSR8510 A10 
 +</code> 
 + 
 +Difference is in **bcdDevice** value, which corresponds to device release number. 
 + 
 +<code bash> 
 +hciconfig -a 
 +hci1: Type: Primary  Bus: USB 
 + HCI Version: 3.0 (0x5)  Revision: 0x1aa1 
 + LMP Version: 3.0 (0x5)  Subversion: 0x1aa1 
 + Manufacturer: Cambridge Silicon Radio (10) 
 + 
 +hci0: Type: Primary  Bus: USB 
 + HCI Version: 4.0 (0x6)  Revision: 0x22bb 
 + LMP Version: 4.0 (0x6)  Subversion: 0x22bb 
 + Manufacturer: Cambridge Silicon Radio (10) 
 +</code>
  
 ====== Android APKs ====== ====== Android APKs ======