低级别 Android 蓝牙键盘访问...?
长话短说:我最近为 Android 上的 PhoneGap 编写了一个插件,用于连接到蓝牙串行设备并将数据传递给 Javascript。我有一个蓝牙秤和一个蓝牙 USB 扫描仪,它们工作得很好。 (尽管我在学习如何做时确实掉了一些头发。)
我拥有的 USB 扫描仪必须退还给客户,我们购买了自己的扫描仪。然而,该设备使用 HID 键盘设备。
关于如何继续实施对这些的支持有何建议?我是否需要编写自己的软“键盘”来处理这个问题,或者是否有较低级别的方法来做到这一点?
Long story short: I recently wrote a plugin for PhoneGap on Android to connect to Bluetooth serial devices and pass that data through to Javascript. I have a bluetooth scale, and a bluetooth USB scanner going, and they work great. (Though I did lose some hair learning how to do it.)
The USB scanner I have has to be returned to a client, and we bought our own scanner. This one, however, uses a HID keyboard device.
Any suggestions on how to proceed in implementing support for these? Do I need to write my own soft 'keyboard' to deal with this, or is there a lower-level way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论