Users Guide
表 25. WLAN と Bluetooth の動作モードの値
動作モードの値 STA AP BT EDR BLE サポートされるク
ライアント
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 SPP(シリアル ポート プロファイル)
各 BT アダプタの MAC アドレスの前提:
● BT MAC(MYCLIENT):XX:XX:XX:XX:XX:XX
● BT MAC(MYSERVER):YY:YY:YY:YY:YY:YY
1. 次の事前要件があります。
# sudo apt-get install bluez bluez-tools
2. MYSERVER と 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. 互いにペアリングします。
[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
Bluetooth v2.1 では、SPP にはデバイスをペアリングする 3 つの方式があり、Edge Gateway で利用できます。
● 確認なし
● 数値の比較
● パスキーの入力
メモ: Bluetooth ペアリングの詳細については、blog.bluetooth.com/bluetooth-pairing-part-4 を参照してください。
4. SPP を設定します。
サーバ デバイス
# 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 オペレーティング システムのセット アップ