meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:bluetooth [2018/08/08 12:32] – niziak | linux:bluetooth [2021/08/03 10:32] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | apt-get install bluez d-feet | + | |
+ | <code bash> | ||
+ | apt-get install bluez bluez-tools | ||
+ | sudo usermod -a -G bluetooth $USER | ||
+ | sudo setcap ' | ||
+ | sudo setcap ' | ||
+ | </ | ||
===== hcitool ===== | ===== hcitool ===== | ||
+ | <code bash> | ||
+ | hciconfig | ||
hcitool dev | hcitool dev | ||
hcitool lescan | hcitool lescan | ||
+ | |||
+ | hciconfig hci0 lestates | ||
+ | </ | ||
===== gatttool ===== | ===== gatttool ===== | ||
Line 11: | Line 22: | ||
gatttool -b AA: | gatttool -b AA: | ||
* connect | * connect | ||
+ | * characteristics | ||
+ | * char-read-uuid 00002a00-0000-1000-8000-00805f9b34fb | ||
===== d-feet ===== | ===== d-feet ===== | ||
Line 18: | Line 31: | ||
+ | ====== CSR 4.0 USB adapter ====== | ||
+ | |||
+ | It is based on **CSR 8510 A10** aka **Sitecom CNT-524** | ||
+ | CSR = Cambridge Silicon Radio | ||
+ | |||
+ | Supports BLE: | ||
+ | < | ||
+ | usb 3-14: New USB device found, idVendor=0a12, | ||
+ | usb 3-14: New USB device strings: Mfr=0, Product=2, SerialNumber=0 | ||
+ | usb 3-14: Product: CSR8510 A10 | ||
+ | </ | ||
+ | |||
+ | without BLE support: | ||
+ | < | ||
+ | usb 3-14: New USB device found, idVendor=0a12, | ||
+ | usb 3-14: New USB device strings: Mfr=0, Product=2, SerialNumber=0 | ||
+ | usb 3-14: Product: CSR8510 A10 | ||
+ | </ | ||
+ | |||
+ | Difference is in **bcdDevice** value, which corresponds to device release number. | ||
+ | |||
+ | <code bash> | ||
+ | hciconfig -a | ||
+ | hci1: Type: Primary | ||
+ | HCI Version: 3.0 (0x5) Revision: 0x1aa1 | ||
+ | LMP Version: 3.0 (0x5) Subversion: 0x1aa1 | ||
+ | Manufacturer: | ||
+ | |||
+ | hci0: Type: Primary | ||
+ | HCI Version: 4.0 (0x6) Revision: 0x22bb | ||
+ | LMP Version: 4.0 (0x6) Subversion: 0x22bb | ||
+ | Manufacturer: | ||
+ | </ | ||
====== Android APKs ====== | ====== Android APKs ====== |