2015-12-01 01:41:09 +01:00
|
|
|
Installa il bluetooth
|
|
|
|
apt-get install -y bluetooth bluez-utils blueman
|
|
|
|
sudo apt-get install python-bluez
|
|
|
|
|
|
|
|
|
|
|
|
Per scannerizzare i dispositivi bluetooth
|
|
|
|
hcitool scan
|
|
|
|
|
2015-12-02 02:34:08 +01:00
|
|
|
per capire che adattatore devo usare:
|
|
|
|
root@raspberrypi /home/pi/script/cac/utils # hcitool dev
|
2015-12-01 01:41:09 +01:00
|
|
|
|
|
|
|
Fare pairing
|
|
|
|
root@raspberrypi /home/pi/script/cac/utils # bluez-simple-agent hci0 98:D3:31:B2:35:33
|
|
|
|
RequestPinCode (/org/bluez/2451/hci0/dev_98_D3_31_B2_35_33)
|
|
|
|
Enter PIN Code: 1234
|
|
|
|
Release
|
|
|
|
New device (/org/bluez/2451/hci0/dev_98_D3_31_B2_35_33)
|
|
|
|
|
|
|
|
|