Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| it:bluetooth [2023/02/15 08:29] – created - external edit 127.0.0.1 | it:bluetooth [2026/08/31 08:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # memo | + | ====== Bluetooth ====== |
| - | ## Initialisation | + | ===== Installation ===== |
| + | <code bash> | ||
| + | sudo apt-get -y install bluetooth bluez bluez-tools rfkill | ||
| + | sudo usermod -aG lp $USER | ||
| + | newgrp lp | ||
| + | </ | ||
| - | sudo apt-get -y install bluetooth bluez bluez-tools rfkill | + | ===== Désactiver le plugin SAP si nécessaire ===== |
| - | sudo usermod -aG lp $USER | + | Si le démon Bluetooth échoue à cause du plugin SAP, adapter l' |
| - | newgrp lp | + | |
| - | si erreur | + | <code ini> |
| + | ExecStart=/ | ||
| + | </ | ||
| - | ExecStart=/ | + | Puis relancer le service Bluetooth. |
| - | + | ||
| - | relancer le daemon bluetooth | + | |
| - | ## check si bt est activé: | + | ===== Vérifier |
| + | <code bash> | ||
| + | rfkill | ||
| + | </ | ||
| - | rfkill | + | ===== Se connecter ===== |
| - | + | <code bash> | |
| - | ## se connecter | + | sudo bluetoothctl |
| + | </ | ||
| - | sudo bluetoothctl | + | ===== Outils utiles ===== |
| - | + | * `bluetoothctl` : contrôle | |
| - | ## les outils | + | * `hcitool` : inspection de périphériques |
| - | + | * `l2ping` : test L2CAP vers une adresse BD_ADDR. | |
| - | * bluetoothctl: | + | * `rfcomm` : gestion des liaisons |
| - | * hcitool: | + | * `gatttool` : lecture de périphériques |
| - | * l2ping: | + | * `bluez-simple-agent` : appairage |
| - | * rfcomm: | + | |
| - | * gatttool: | + | |
| - | * bluez-simple-agent: | + | |
| - | | + | |
