设备到安卓
我可以设置一台电脑作为虚拟串行端口来模拟使用 SPP 蓝牙配置文件的设备,我需要与 Android 手机通信吗?
该设备不会无法接收连接到我的手机所需侦听的 UUID。 我看到使用“反射”方法来避免 UUID。这是与 Android 通信过程无关的设备进行通信的方式吗?
Can I setup a pc to act as a virtual serial port to mimic a device using SPP bluetooth profile that I need to talk to an android phone?
The device would not have no way receiving the UUID that it needs to be listening for to connect to my phone.
I saw the "reflection" method being used to avoid UUID. Is this how to communicate with devices agnostic to android's communication process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太明白你问题的最后部分。
然而,对于第一部分,你可以。您只需要在 PC/笔记本电脑中安装一个 BT 适配器,安装 Windows、Python,以及一个名为 PyBluez 的小库。
安装完所有内容后,您可以通过 SPP 与您喜欢的客户端-服务器角色进行通信(PC 服务器和 Android 客户端,反之亦然)。您有这两个示例:
UUID,但在上面的示例中,它是 SPP 的标准 UUID。基本上,SPP 是具有以下 UUID 的 RFCOMMM:
00001101-0000-1000-8000-00805F9B34FB
如果有用,请不要忘记投票!
I don't really understand the final part of your question.
For the first part however, you can. You just need a BT adapter inside your PC/laptop, Windows,Python installed, and a little library called PyBluez.
After installing everything, you can communicate via SPP with client-server roles established as you like (PC server & Android client or viceversa). You have examples for both those:
You have to have a UUID, but, in the examples above, it is the standard UUID for SPP. Basically SPP is RFCOMMM with this UUID:
00001101-0000-1000-8000-00805F9B34FB
Don't forget to vote if useful!