Associare dispositivi bluetooth

Installare bluez.tcz

App Browser

possiamo utilizzare il comando tce-load -w -i bluez

editiamo il file /opt/bootlocal.sh con la seguente stringa:

sudo /usr/local/etc/init.d/bluez start

file bootlocal.sh
il servizio bluetooth è attivo

digitiamo in un terminale il comando: bluetoothctl

tc@box:~$ bluetoothctl
Agent registered
[CHG] Controller 00:22:69:E9:A5:8F Pairable: yes

digitiamo in un terminale il comando: power on

[bluetooth]# power on
[CHG] Controller 00:22:69:E9:A5:8F Class: 0x0000010c
Changing power on succeeded
[CHG] Controller 00:22:69:E9:A5:8F Powered: yes

digitiamo in un terminale il comando: agent on

[bluetooth]# agent on
Agent is already registered

digitiamo in un terminale il comando: default-agent

[bluetooth]# default-agent
Default agent request successful

digitiamo in un terminale il comando: scan on

[bluetooth]# scan on
Discovery started
[CHG] Controller 00:22:69:E9:A5:8F Discovering: yes
[NEW] Device AB:8B:97:56:34:02 AB-8B-97-56-34-02
[CHG] Device AB:8B:97:56:34:02 RSSI: -57
[CHG] Device AB:8B:97:56:34:02 LegacyPairing: no
[CHG] Device AB:8B:97:56:34:02 Name: Bluetooth Keyboard
[CHG] Device AB:8B:97:56:34:02 Alias: Bluetooth Keyboard
[CHG] Device AB:8B:97:56:34:02 LegacyPairing: yes
[CHG] Device AB:8B:97:56:34:02 RSSI: -48

digitiamo in un terminale il comando: pair seguito dal codice del vostro dispositivo (nell’esempio AB:8B:97:56:34:02)

[bluetooth]# pair AB:8B:97:56:34:02
Attempting to pair with AB:8B:97:56:34:02
[CHG] Device AB:8B:97:56:34:02 Connected: yes

vi verrà richiesto di inserire il codice pin nel dispositivo

[agent] PIN code: 088367
[CHG] Device AB:8B:97:56:34:02 Modalias: usb:v05ACp0220d0001
[CHG] Device AB:8B:97:56:34:02 UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device AB:8B:97:56:34:02 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device AB:8B:97:56:34:02 ServicesResolved: yes
[CHG] Device AB:8B:97:56:34:02 Paired: yes
Pairing successful
[CHG] Device AB:8B:97:56:34:02 WakeAllowed: yes
[CHG] Device AB:8B:97:56:34:02 ServicesResolved: no
[CHG] Device AB:8B:97:56:34:02 Connected: no
[CHG] Device AB:8B:97:56:34:02 RSSI: -58
[CHG] Device AB:8B:97:56:34:02 RSSI: -50
[CHG] Device AB:8B:97:56:34:02 Connected: yes

digitato il codice pin e dato invio, sarà richiesta l’autorizzazione del servizio, digitate yes e date invio

Authorize service
[agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no): yes

digitate quit per uscire dal programma di configurazione

[Bluetooth Keyboard ]# quit

DutchEnglishFrenchGermanItalianPortugueseRussianSpanish