Installation de l’utilitaire pour la communicaiton bluetooth :

  apt-get install bluetooth

Connexion aux outils de contrôles bluetooth :

  bluetoothctl

Liste des commandes disponibles :

  [bluetooth]# help
  Available commands:
  list                       List available controllers
  show [ctrl]                Controller information
  select <ctrl>              Select default controller
  devices                    List available devices
  paired-devices             List paired devices
  power <on/off>             Set controller power
  pairable <on/off>          Set controller pairable mode
  discoverable <on/off>      Set controller discoverable mode
  agent <on/off/capability>  Enable/disable agent with given capability
  default-agent              Set agent as the default one
  scan <on/off>              Scan for devices
  info <dev>                 Device information
  pair <dev>                 Pair with device
  trust <dev>                Trust device
  untrust <dev>              Untrust device
  block <dev>                Block device
  unblock <dev>              Unblock device
  remove <dev>               Remove device
  connect <dev>              Connect device
  disconnect <dev>           Disconnect device
  version                    Display version
  quit                       Quit program

Pinger un appareil bluetooth :

  l2ping < adresse mac de l'appareil >

Exemple :

  l2ping 8C:3A:E3:EC:62:64
  Ping: 8C:3A:E3:EC:62:64 from 00:02:5B:22:4A:8B (data size 44) ...
  0 bytes from 8C:3A:E3:EC:62:64 id 0 time 25.98ms
  0 bytes from 8C:3A:E3:EC:62:64 id 1 time 22.42ms
  0 bytes from 8C:3A:E3:EC:62:64 id 2 time 27.52ms
  ^C3 sent, 3 received, 0% loss