http://b-rabbit-alice.blogspot.com/2011/02/androidwindowsbluetooth.html
Bluetoothネットワーク上では、個々のデバイスを分類すると2種類しかない。
マスター(クライアントソケット):通信を開始する機器 スレーブ(サーバーソケット):接続される側の機器
主な処理の流れ
マスター
Bluetoothを有効にする リモートデバイスを検索 リモートデバイスに接続 データの送受信 接続の切断
スレーブ
デバイス検索に応答する リモートデバイスからの接続を受け付ける データの送受信
http://lejos-osek.sourceforge.net/jp/ecrobot_c_api.htm#Bluetooth
ecrobot_init_bt_slave ecrobot_get_bt_status ecrobot_send_bt ecrobot_read_bt ecrobot_term_bt_connection ecrobot_bt_data_logger
http://lejos-osek.sourceforge.net/jp/nxt2nxt.htm
http://www.swingingblue.net/mt/archives/001675.html
http://msdn.microsoft.com/en-us/library/aa362928%28v=VS.85%29.aspx
BluetoothAPIs.h winsock2.h
Bluetoothスタックは Microsoft製
コーディング例
http://ap.atmarkit.co.jp/bbs/core/fkaiketsu/20134
Linux なら
bluez を使う コーディングはpython-bluez(pybluez)