meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:bluetooth [2018/08/10 13:28] – niziak | linux:bluetooth [2024/12/11 11:44] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | apt-get install bluez bluez-tools d-feet | + | |
| + | <code bash> | ||
| + | apt-get install bluez bluez-hcidump bluez-tools d-feet blueman | ||
| + | sudo usermod -a -G bluetooth $USER | ||
| + | sudo setcap ' | ||
| + | sudo setcap ' | ||
| + | </ | ||
| + | |||
| + | ===== debug ===== | ||
| + | |||
| + | Enable debug output of '' | ||
| + | <code bash> | ||
| + | systemctl edit bluetooth.service | ||
| + | </ | ||
| + | <file override> | ||
| + | [Service] | ||
| + | ExecStart= | ||
| + | ExecStart=/ | ||
| + | </ | ||
| + | NOTE: empty '' | ||
| + | |||
| + | <code bash> | ||
| + | systemctl daemon-reload | ||
| + | systemctl restart bluetooth.service | ||
| + | </ | ||
| ===== hcitool ===== | ===== hcitool ===== | ||
| + | <code bash> | ||
| hciconfig | hciconfig | ||
| + | hciconfig hci0 up | ||
| hcitool dev | hcitool dev | ||
| hcitool lescan | hcitool lescan | ||
| hciconfig hci0 lestates | hciconfig hci0 lestates | ||
| + | </ | ||
| ===== gatttool ===== | ===== gatttool ===== | ||
| Line 23: | Line 49: | ||
| + | ====== 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 ====== | ||