wiki:BluetoothLinux

LinuxでのBluetoothの接続

Linuxで開発を行う場合、Linuxの事実上の標準プロトコルスタックBlueZがサポートするBluetoothドングルが対応しています。

  • System SettingsからBluetoothを選択

  • 「+」ボタンでデバイスを追加

  • 「Mindstorms EV3」(デフォルトのデバイス名)を選択して「Pin options」をクリック

  • 「Custom PIN」を選択してPINを入力(デフォルトは0000)

  • 「Continue」で接続、成功の場合は以下の画面が表示される

  • EV3のBluetoothのアドレスはこの画面に書いてある

  • Bluetoothの仮想シリアルポートを作成
$ sudo rfcomm connect /dev/rfcomm0 00:18:2F:FD:94:2D(実際のアドレスに書き換える)
  • Bluetoothの仮想シリアルポートに接続
$ sudo miniterm.py /dev/rfcomm0

または

$ sudo screen /dev/rfcomm0
Last modified 9 years ago Last modified on Feb 12, 2015, 3:43:28 PM

Attachments (6)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.