与Android设备和PC的蓝牙聊天蓝牙、设备、Android、PC

2023-09-06 17:14:04 作者:潮娘

是否有可能到蓝牙聊天样品与PC连接? 我怎样才能收到信息的电脑?我以为我可以使用来自Android设备的串行端口配置文件(SPP),并在PC上打开一个普通的COM终端。实际上我的应用程序需要发送所述加速度计和其它传感器的信息到PC,以便知道智能电话的位置。我希望你能帮助我。

Is it possible to connect the Bluetooth Chat sample with a PC? How can I receive the information to the PC? I thought that I can use the Serial Port Profile (SPP) from the Android device and open a regular COM Terminal on the PC. Actually my application requires sending the accelerometers and other sensors information to a PC in order to know the position of the smartphone. I hope you can help me.

推荐答案

您已经问了一个普遍的问题,所以最好我能做的就是给你一个笼统的回答。这是一个两叉问题。这听起来像你知道你在做的事情android的一面是什么,但是我们你绊脚石是在PC端。对?至于PC端的推移,你基本上将需要实施蓝牙服务器。您可以使用 bluecove 库或标准的 javax.bluetooth 库。

You've asked a general question, so the best I can do is give you a general answer. This is a two prong problem. It sounds like you know what you're doing on the android side of things, but we're you're stumbling is on the PC side. Right? As far as PC side goes, you're basically going to need to implement a "bluetooth server". You can use the bluecove library or the standard javax.bluetooth library.