たとえば、Bluetooth を介して携帯電話から PC と通信できるようにするアプリの作成方法を示す例がインターネット上にたくさんあります。しかし、私がやろうとしているのは、Bluetoothを介して別のPCから1台のPCを制御することです。Bluetoothライブラリを使用しようとしています。ある PC でサーバーを実行し、次の例を使用して別の PC から接続を試みます: http://bluecove.googlecode.com/svn/trunk/bluecove/src/test/java/com/intel/bluetooth/javadoc/
それはデバイスを見つけます:
Device BC7737946D89 found
name TN-RR-LAP
Device Inquiry completed!
search services on BC7737946D89 TN-RR-LAP
service search completed!
しかし、接続しようとすると、次のエラーが発生します。
Connecting to btspp://BC7737946D89:9;authenticate=false;encrypt=false;master=false
Exception in thread "main" javax.bluetooth.BluetoothConnectionException: Failed to connect; [10064] A socket operation failed because the destination host was down.
at com.intel.bluetooth.BluetoothStackMicrosoft.connect(Native Method)
BlueCove stack shutdown completed
at com.intel.bluetooth.BluetoothStackMicrosoft.access$700(BluetoothStackMicrosoft.java:44)
at com.intel.bluetooth.BluetoothStackMicrosoft$ConnectThread.run(BluetoothStackMicrosoft.java:651)
Java Result: 1
誰もそれを解決する方法を知っていますか?