Users Guide

Table Of Contents
Tabella 25. Valori della modalità operativa di WLAN e Bluetooth
Valore della
modalità operativa
STA AP BT EDR BLE Client supportati
1 X
1 X 32
4 X
5 X X
6 X X 32
8 X
9 X X
13 X X X
14 X X X 4
SPP (Serial Port Profile) Bluetooth
Presupposti per gli indirizzi MAC di ogni adattatore BT:
BT MAC(MYCLIENT): XX:XX:XX:XX:XX:XX
BT MAC(MYSERVER): YY:YY:YY:YY:YY:YY
1. Pre-requisiti.
# sudo apt-get install bluez bluez-tools
2. Preparazione all'associazione di MYSERVER e MYCLIENT
# sudo bluetoothctl
[bluetoothctl]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX MYCLIENT
[bluetooth]# scan off
3. Accoppia.
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# pairable on
[bluetooth]# pair XX:XX:XX:XX:XX:XX <MAC Address of Device to Pair>
[bluetooth]# connect XX:XX:XX:XX:XX:XX [CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
[bluetooth]# exit
Alla versione di Bluetooth 2.1, SPP consente l'associazione dei dispositivi in tre modi, tutti supportati da Edge Gateway:
Funziona
Confronto numerico
Inserimento passkey
N.B.: Per ulteriori informazioni sull'associazione Bluetooth, consultare blog.bluetooth.com/bluetooth-pairing-part-4.
4. Configurare SPP.
Dispositivo server
# bluez.sdptool add --channel=22 SP
# ./rfcomm -r listen /dev/rfcomm0 22
Waiting for connection on channel 22
Connection from XX:XX:XX:XX:XX:XX to /dev/rfcomm0 <These lines will be seen when client
comes>
Press CTRL-C for hangup
78
Installazione sistema operativo