简体   繁体   English

使用bluecove通过蓝牙连接到PC

[英]pc to pc via bluetooth using bluecove

There is plenty of examples on the internet showing how to write an app that allows us to eg communicate pc from a mobile phone via bluetooth. 互联网上有很多例子显示如何编写一个应用程序,允许我们通过蓝牙从手机上通信。 But what I am trying to do is to control one pc from another pc via bluetooth. 但我想要做的是通过蓝牙从另一台PC控制一台电脑。 I am trying to use bluetooth library. 我正在尝试使用蓝牙库。 I run the server on one pc and try to connect from another one by using examples from here: http://bluecove.googlecode.com/svn/trunk/bluecove/src/test/java/com/intel/bluetooth/javadoc/ 我在一台电脑上运行服务器并尝试使用以下示例连接另一台服务器: http//bluecove.googlecode.com/svn/trunk/bluecove/src/test/java/com/intel/bluetooth/javadoc/

It finds the device: 它找到了设备:

Device BC7737946D89 found
     name TN-RR-LAP
Device Inquiry completed!
search services on BC7737946D89 TN-RR-LAP
service search completed!

But then it tries to connect and I am getting the following error: 但后来它尝试连接,我收到以下错误:

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

Anybody knows how to solve it? 有人知道怎么解决吗?

如果你想从PC转移到PC我建议使用btgoep:// bluetoothaddress:2它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM