13,002
回編集
(→概要) |
|||
51行目: | 51行目: | ||
RFCOMMプロトコルベースの通信であり、主に、シリアル通信のような双方向データストリームに適している。<br> | RFCOMMプロトコルベースの通信であり、主に、シリアル通信のような双方向データストリームに適している。<br> | ||
Bluetooth Low Energyと比較して、より大きなデータ転送が可能である。<br> | Bluetooth Low Energyと比較して、より大きなデータ転送が可能である。<br> | ||
<br><br> | |||
== Bluetoothの設定 == | |||
Bluetoothの設定および状態を確認する。<br> | |||
bluetoothctl show | |||
# 出力例: | |||
Controller 00:E0:4C:23:99:87 (public) | |||
Name: mobian | |||
Alias: mobian | |||
Class: 0x00000110 | |||
Powered: yes | |||
Discoverable: no | |||
DiscoverableTimeout: 0x000000b4 | |||
Pairable: no | |||
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) | |||
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) | |||
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) | |||
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) | |||
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) | |||
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) | |||
Modalias: usb:v1D6Bp0246d0542 | |||
Discovering: no | |||
Roles: central | |||
Roles: peripheral | |||
Advertising Features: | |||
ActiveInstances: 0x00 (0) | |||
SupportedInstances: 0x05 (5) | |||
SupportedIncludes: tx-power | |||
SupportedIncludes: appearance | |||
SupportedIncludes: local-name | |||
<br> | |||
接続先デバイスが、<u>"Discoverable: no"</u>となっている場合は、デバイスを検出を有効にする。<br> | |||
または、既知のMACアドレスを使用して直接接続を試みる。<br> | |||
bluetoothctl discoverable on | |||
<br> | |||
接続先デバイスが、<u>"Pairable: no"</u>となっている場合は、ペアリングを有効にする。<br> | |||
bluetoothctl pairable on | |||
<br> | |||
"Roles"が<u>"central"</u>と<u>"peripheral"</u>の両方をサポートしている場合は、接続モードを明示的に指定することを推奨する。<br> | |||
<br> | |||
また、セキュリティ要件に応じて適切な認証方法を設定する。<br> | |||
<br><br> | <br><br> | ||