メモ


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://www.mobileware.jp/index.php/Bluetooth%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AE%E6%A4%9C%E7%B4%A2

http://ap.atmarkit.co.jp/bbs/core/fkaiketsu/20134

Linux なら

bluez を使う コーディングはpython-bluez(pybluez)

最新の20件

2021-03-31 2020-06-09 2020-05-30 2019-12-02 2018-10-18 2018-07-05 2018-01-11 2015-12-07 2015-08-03 2015-07-20 2012-07-19 2012-06-30 2012-06-23 2012-01-25 2011-11-09 2011-11-08 2011-10-02

今日の3件

  • counter: 145
  • today: 1
  • yesterday: 0
  • online: 1