蓝牙 +模拟鼠标
有人知道是否可以制作一个应用程序通过蓝牙模拟触摸屏鼠标或触控板?
如何使 PC(或 MAC)将我识别为鼠标设备?
问候, 胡安
anyone know if its posible to make an application to simulate a touchscreen mouse or trackpad by bluetooth??
How can I make that the PC (or MAC) knows me as a mouse device?
Regards,
Juan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您应该查看蓝牙 HID 规范。这可能是可能的,具体取决于您用来模拟鼠标/触控板的设备堆栈。我不熟悉 Android 上的堆栈(假设这是您问题标签中使用的平台),所以我不知道是否可以从那里开始。
本质上,您在 L2CAP 协议上创建 HID 服务。服务记录指定 HID 描述符,该描述符描述从模拟设备发送的数据。主机上的 HID 驱动程序应该能够解释该数据。
尝试从桌面连接到另一个蓝牙鼠标/触控板可能会很有用(Microsoft 之外的堆栈上的 Bluecove 是破解蓝牙的好方法)。查看鼠标/触控板上 HID 服务的服务记录。另外,查看来自鼠标/触控板的数据,了解需要发送的内容和时间。
或者,您可以在计算机上编写一个服务器应用程序,通过另一个蓝牙协议(例如 RFCOMM/SPP)与手机上运行的输入设备模拟器应用程序进行通信。服务器应用程序将模拟输入设备(例如,在屏幕上移动鼠标指针等)。
You should have a look at the Bluetooth HID specification. It may be possible, depending on the stack of the device that you are using to emulate a mouse/trackpad. I'm not familiar with the stack on Android (assuming that's the platform you're using from the tag on your question) so I don't know if it's possible from there.
Essentially, you create a HID service on the L2CAP protocol. The service record specifies the HID descriptors which describe the data being sent from emulating device. The HID driver on the host computer should be able to interpret that data.
It might be useful to try to connect to another Bluetooth mouse/trackpad from the desktop (Bluecove on a stack other than Microsoft is a good way to hack around in Bluetooth). Have a look at the service record for the HID service on the mouse/trackpad. Also, look at the data coming from the mouse/trackpad for an idea of what needs to be sent and when.
Alternatively, you could write a server application on your computer that communicates via another Bluetooth protocol (e.g., RFCOMM/SPP) to the input-device emulator app running on your phone. The server application would simulate the input device (e.g., move the mouse pointer around on the screen, etc).
您为什么不为 remotedroid 项目做出贡献,而不是创建自己的项目呢?
我假设你很了解你的蓝牙 api。远程机器人使用 Wifi 和 OSC 消息传递与 PC 进行通信。
Instead of creating your own project why dont you contribute to the remotedroid project?
I'm assuming you know your bluetooth api's well. Remote droid uses Wifi and OSC messaging to communicate with the PC.
是的,您可以将 GlovePie 与连接到 BlueSoeil 的 Wiimote 一起使用,它允许您通过 Wiimote 对计算机执行任何操作。它也有它使用的语言
Yes you may use GlovePie with the wiimote connected to BlueSoeil, It will alow you to do anything with you computer with the wiimote. It also has a Language it uses
我想你想要这个:
无服务器蓝牙键盘和PC/手机鼠标
甚至开放-不幸的是它不是开源的,出于某种原因它只有一个 GitHub 自述文件。
但这个应用程序还是相当不错的!
I think you want this:
Serverless Bluetooth Keyboard & Mouse for PC/Phone
It's even open-source!Unfortunately it is not open source, it just has a GitHub readme for some reason.
But still the app is quite good!