2012-08-06 4 views
2

인터넷에 예를 들어 우리가 할 수있는 앱을 작성하는 방법을 보여주는 예제가 많이 있습니다. 블루투스를 통해 휴대 전화에서 PC와 통신합니다. 하지만 내가 뭘 하려는지 블루투스를 통해 다른 PC에서 하나의 PC를 제어하는 ​​것입니다. 블루투스 라이브러리를 사용하려고합니다. 나는 하나의 PC에서 서버를 실행하고 여기에서 예를 사용하여 다른 하나를 연결하려고 : http://bluecove.googlecode.com/svn/trunk/bluecove/src/test/java/com/intel/bluetooth/javadoc/bluecove를 사용하여 블루투스를 통해 PC에 컴퓨터 연결

그것은 장치 발견 :

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 

아무도 그것을 해결하는 방법을 알고 있습니까?

답변

0

PC에서 PC로 전송하려면 btgoep : // bluetoothaddress : 2를 사용하는 것이 좋습니다. 그러면 작동합니다.

관련 문제