Users Guide
Tabel 25. Værdier for driftstilstand til WLAN og Bluetooth
Værdi for
driftstilstand
STA AP BT EDR BLE Understøttede
klienter
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
Bluetooth Serial Port Profile (SPP)
Formodninger til MAC-adresser for hver BT-adapter:
● BT MAC(MYCLIENT): XX:XX:XX:XX:XX:XX
● BT MAC(MYSERVER): YY:YY:YY:YY:YY:YY
1. Forudsætninger.
# sudo apt-get install bluez bluez-tools
2. Forbered parring med MYSERVER og 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. Par dem med hinanden.
[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
Fra Bluetooth v2.1 tilbyder SPP tre metoder til at parre enheder, som kan anvendes på Edge Gateway:
● Just Works
● Numeric Comparison
● Passkey Entry
BEMÆRK: Få at få mere at vide om Bluetooth-parring på blog.bluetooth.com/bluetooth-pairing-part-4.
4. Konfigurer SPP.
Serverenhed
# 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
Sådan konfigureres operativsystemet