AndroidでBlueooth経由でのシリアル通信

サンプルの中にBluetooth-chatというのがあって,これを使うと
AndroidからBluetoothのSPP(Serial Port Profile)を使って通信ができた.

ProfileのUUIDは一部変更しないといけなかった.
以下のページがすごく詳しく書かれていた.ありがとうございます.

BluetoothChatでシリアル接続(SPP)を行う | dietposter's blog
http://dietposter.b.sourceforge.jp/2011/02/17/bluetoothchat%E3%81%A7%E3%82%B7%E3%83%AA%E3%82%A2%E3%83%AB%E6%8E%A5%E7%B6%9A%EF%BC%88spp%EF%BC%89%E3%82%92%E8%A1%8C%E3%81%86/

最初Macで接続を試してみたけどできなくて,Windowsでやったら素直にできた.

Macの場合,接続を確立している最中に切れる.何だろう,UUIDが違ったりするのかなぁ.
ちょっとよくわかんない.

Posted at : 2011-11-05 23:58:41 / Category : none

Comments

まだコメントはありません / No comment.

Send comment


Name


Mail-address (empty is OK. If you want to notify update, please fill mail-address.)


Bot check code (240426 と入力してください / Please input 240426.)