This is an old revision of the document!


# memo

## Initialisation

sudo apt-get -y install bluetooth bluez bluez-tools rfkill
sudo usermod -aG lp $USER
newgrp lp

si erreur sap, modifier le service systemd:

ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap
  

relancer le daemon bluetooth

## check si bt est activé:

rfkill
  

## se connecter

sudo bluetoothctl
  

## les outils

* bluetoothctl: outil de contrôle du Bluetooth * hcitool: configurer les connexions Bluetooth et envoyer une commande spéciale aux périphériques * l2ping: envoie une requête d’écho L2CAP à l’adresse MAC Bluetooth BD_ADDR donnée en notation hexadécimale * rfcomm: onfigurer, maintenir et inspecter la configuration RFCOMM du sous-système Bluetooth dans le noyau Linux * gatttool: lire req bt (BLE) aka handles * bluez-simple-agent: gérer l’appairage de périphériques Bluetooth