我有一个Android JAVA应用程序,可连接到我从这里http://intelletto.com/products购买的USB蓝牙键盘仿真器
到目前为止,我已经能够发送转义序列,如\t
,\n
,但是我不确定如何发送Key Down事件的命令。这是我的操作方式:
char str = '\t';
byte[] command = String.valueOf(str).getBytes();
mBTService.write(command);
此外,我从USB供应商那里得到了这个HID ASCII映射表,我不确定如何使用它。
https://drive.google.com/file/d/1hZV5mdaPCN93BK6bYZeX2h9y5lx3R2hS/view?usp=sharing
答案 0 :(得分:1)
根据您发布的地图,一定要这样:
byte[] command = new byte[]{(byte)201};
mBTService.write(command);
... 201
是“ DownArr”的代码(在此特定映射中,尽管这不是标准的编纂)。