Users Guide

Tabelle 13. Betriebssystemmoduswerte für WLAN und Bluetooth
Betriebsmoduswert WLAN-Station unterstützte BT/BLE-
Modi
softAP Von SoftAP
unterstützte Clients
1 X k. A. k. A.
1 k. A. X 32
13 X Dual (BT classic und
BTLE)
k. A.
14 Dual (BT classic und
BTLE)
X 4
5 X BT Classic k. A.
6 BT Classic X 32
Bluetooth Serial Port Profile (SPP)
Annahmen für MAC-Adressen der einzelnen BT-Adapter:
BT MAC(MYCLIENT): XX:XX:XX:XX:XX:XX
BT MAC(MYSERVER): YY:YY:YY:YY:YY:YY
1. Anforderungen (nur für Debian, nicht erforderlich für Ubuntu Core OS).
sudo apt-get install bluez bluez-tools
2. Vorbereiten auf das Koppeln von MYSERVER und MYCLIENT
$ sudo bluez.bluetoothctl -a
[bluetoothctl]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX MYCLIENT
[bluetooth]# scan off
3. Koppeln Sie die Geräte. Ab Bluetooth v2.1 ist Secure Simple Pairing eine Anforderung, und bietet drei Kopplungsmethoden für Geräte,
die für Dell Gateway 3000 Serie gelten:
Funktioniert Einfach
Numerischer Vergleich
Eintrag zu Hauptschlüsseln
ANMERKUNG:
Weitere Informationen zur Bluetooth-Kopplung finden Sie unter https://blog.bluetooth.com/bluetooth-pairing-
part-4.
[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
4. Konfigurieren Sie SPP.
Servergerät
$ 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
Erstellen Sie dann eine neue Instanz von Terminal, um die Daten über Bluetooth Seriell auf dem Bildschirm anzuzeigen.
$ cat /dev/rfcomm0
56
Einrichten des Betriebssystems