Android模拟HID键盘

时间:2014-10-26 15:35:20

标签: android c++ android-ndk adk

我希望将我的桌面计算机服务器作为Android设备的键盘。

符合" Android Open Accessory"协议应该是可能的:

AOA 2.0 allows the accessory to register one or more USB Human Interface Devices (HID)
with an Android device. This approach reverses the direction of communication for 
typical USB HID devices like USB mice and keyboards. Normally, the HID device is a 
peripheral connected to a USB host like a personal computer. But in the case of the 
AOA protocol, the USB host acts as one or more input devices to a USB peripheral.

我宁愿避免实现AOA堆栈,是否有任何现有项目展示上述用例 over Windows OS

我如何"扭转沟通的方向"所以我可以注册虚拟HID设备吗?

1 个答案:

答案 0 :(得分:0)

我已经弄明白了,最终将设备切换到附件模式并发送要使用的HID报告,然后您只需将已注册报告ID的HID消息发送到设备。

像魅力一样工作