大堀/研究/Bluetooth
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[大堀/研究]]
//研究室限定
Bluetooth機器で自由にあそべる環境を整備したい
という願望を胸に抱いて進めていくページ
-現在の環境
--OS
---Linux Ubuntu 7.04
--Bluetooth機器
---Bluetoothドングル BT-UD1
---Wiiリモコン
---LEGO NXT
---Zaurus SL-C860 (借用中)
---PS3コントローラ? (研究室備品)
---携帯? (誰かの)
--その他 PC接続機器
---USBカメラ BWC-35H01/SV (研究室備品)
---プロジェクタ (研究室備品)
---PROGRAPE-4 board(研究室備品)
---DE-2 board? (研究室備品)
-使用言語
--LEGO NXT : NXC
--BT-UD1からのシグナル解析 : 未定
--処理系 : C言語
--インターフェース系 : 未定
*はじめに [#ad72f19f]
--Linux上で他Bluetooth機器との通信確認
--Linux上でのやりとり方法のまとめ
--BT-UD1解析
--NXTと通信確認
--Wiiリモコンと通信確認
--Zaurusと通信確認
--続く
*linux環境の整備 [#sf0f157b]
--Bluz[http://www.bluez.org/] のインストール
---LinuxでBluetooth機器の制御
---ライブラリ提供
---Bluetooth機能利用
--Ubuntu7.04でのインストール方法
---apt-getで下記をインストール。他にもbluez系のtoolを一式インストール。
bluez-cups - Bluetooth printer driver for CUPS
bluez-gnome - Bluetooth utilities for GNOME
bluez-pin - Bluetooth PIN helper with D-BUS support
bluez-utils - Bluetooth tools and daemons
---下記に設定ファイルがある
/etc/bluetooth/rfcomm.conf
/etc/bluetooth/hcid.conf
/etc/default/bluetooth
--PCに接続した青歯モジュールの詳細表示
---hciconfig or hcitool devで表示
s1120038@zxp068:~$ hciconfig
hci0: Type: USB
BD Address: 00:02:72:D2:9F:D5 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:4953 acl:0 sco:0 events:229 errors:0
TX bytes:692 acl:0 sco:0 commands:37 errors:0
----
s1120038@zxp068:~$ hcitool dev
Devices:
hci0 00:02:72:D2:9F:D5
--Bluz付属のhcitoolでBluetooth機器の検索
---勝手にMACアドレスさらしてすみません。
s1120038@zxp068:~$ hcitool scan
Scanning ...
00:17:5C:18:2D:BC Vodafone 905SH
00:17:5C:96:62:E5 911SH
00:16:53:04:F8:8E NXT
--Bluetooth接続停止
/etc/init.d/bluetooth stop
--Bluetooth機器との接続方法
+++BT機器の検索・MACアドレス表示
hcitool scan
+++接続したいBT機器を設定ファイルに記述
設定ファイル:/etc/bluetooth/rfcomm.conf
コメントアウト記述に沿って設定
----
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:16:53:04:F8:8E;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "NXT";
}
----
+++PC側のBTソフトの再起動
/etc/init.d/bluetooth restart
+++接続確認
rfcomm
+++シリアル接続確認
rfcomm0: 00:16:53:04:F8:8E channel 1 clean
/dev/rfcomm0
終了行:
[[大堀/研究]]
//研究室限定
Bluetooth機器で自由にあそべる環境を整備したい
という願望を胸に抱いて進めていくページ
-現在の環境
--OS
---Linux Ubuntu 7.04
--Bluetooth機器
---Bluetoothドングル BT-UD1
---Wiiリモコン
---LEGO NXT
---Zaurus SL-C860 (借用中)
---PS3コントローラ? (研究室備品)
---携帯? (誰かの)
--その他 PC接続機器
---USBカメラ BWC-35H01/SV (研究室備品)
---プロジェクタ (研究室備品)
---PROGRAPE-4 board(研究室備品)
---DE-2 board? (研究室備品)
-使用言語
--LEGO NXT : NXC
--BT-UD1からのシグナル解析 : 未定
--処理系 : C言語
--インターフェース系 : 未定
*はじめに [#ad72f19f]
--Linux上で他Bluetooth機器との通信確認
--Linux上でのやりとり方法のまとめ
--BT-UD1解析
--NXTと通信確認
--Wiiリモコンと通信確認
--Zaurusと通信確認
--続く
*linux環境の整備 [#sf0f157b]
--Bluz[http://www.bluez.org/] のインストール
---LinuxでBluetooth機器の制御
---ライブラリ提供
---Bluetooth機能利用
--Ubuntu7.04でのインストール方法
---apt-getで下記をインストール。他にもbluez系のtoolを一式インストール。
bluez-cups - Bluetooth printer driver for CUPS
bluez-gnome - Bluetooth utilities for GNOME
bluez-pin - Bluetooth PIN helper with D-BUS support
bluez-utils - Bluetooth tools and daemons
---下記に設定ファイルがある
/etc/bluetooth/rfcomm.conf
/etc/bluetooth/hcid.conf
/etc/default/bluetooth
--PCに接続した青歯モジュールの詳細表示
---hciconfig or hcitool devで表示
s1120038@zxp068:~$ hciconfig
hci0: Type: USB
BD Address: 00:02:72:D2:9F:D5 ACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:4953 acl:0 sco:0 events:229 errors:0
TX bytes:692 acl:0 sco:0 commands:37 errors:0
----
s1120038@zxp068:~$ hcitool dev
Devices:
hci0 00:02:72:D2:9F:D5
--Bluz付属のhcitoolでBluetooth機器の検索
---勝手にMACアドレスさらしてすみません。
s1120038@zxp068:~$ hcitool scan
Scanning ...
00:17:5C:18:2D:BC Vodafone 905SH
00:17:5C:96:62:E5 911SH
00:16:53:04:F8:8E NXT
--Bluetooth接続停止
/etc/init.d/bluetooth stop
--Bluetooth機器との接続方法
+++BT機器の検索・MACアドレス表示
hcitool scan
+++接続したいBT機器を設定ファイルに記述
設定ファイル:/etc/bluetooth/rfcomm.conf
コメントアウト記述に沿って設定
----
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:16:53:04:F8:8E;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "NXT";
}
----
+++PC側のBTソフトの再起動
/etc/init.d/bluetooth restart
+++接続確認
rfcomm
+++シリアル接続確認
rfcomm0: 00:16:53:04:F8:8E channel 1 clean
/dev/rfcomm0
ページ名: