我希望将台式机服务器用作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堆栈,是否有任何现有项目在Windows OS上演示上述用例?
如何“反向通讯”,以便可以注册虚拟HID设备?
最佳答案
我已经弄清楚了,最终将设备切换到附件模式并发送要使用的HID报告,然后您只需将带有已注册报告ID的HID消息发送到设备即可。
奇迹般有效
关于android - Android模拟HID键盘,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26574707/