Users Guide

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
Clientgerät
$ bluez.sdptool add --channel=22 SP
$ ./rfcomm -r connect /dev/rfcomm0 YY:YY:YY:YY:YY:YY 22
Erstellen Sie dann eine neue Instanz von Terminal zum Senden von Daten, z. B. eine neue Instanz von ssh.
$ echo "test" > /dev/rfcomm0
ANMERKUNG:
Der Befehl rfcomm ist in diesem Befehl nicht verfügbar. Falls erforderlich, können Sie den Binärcode zum Edge
Gateway von einem AMD64-basierten System mit Ubuntu 16.04 oder höher kopieren.
Security (Sicherheit)
Trusted Platform Module (TPM)
ANMERKUNG:
Weitere Informationen zum TPM finden Sie unter https://developer.ubuntu.com/en/snappy/guides/security-
whitepaper/.
56 Einrichten des Betriebssystems