我想制作一个HID? [英] i want to make an HID?

查看:139
本文介绍了我想制作一个HID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用触控板鼠标。我已经用arduino完成了它,现在它想要它没有arduino,我的意思是,我想让它成为一个真正的设备,并尽可能便宜。微我应该使用控制器,考虑到它最多需要4个输入?还有,驱动程序怎么样?我可以复制普通鼠标,这样windows就会将它检测为普通鼠标,我不需要写驱动程序?

i a working on a touch pad mouse.i have already done it with arduino,and now it want to make it WITHOUT an arduino,i mean, i want to make it a real device,and as cheap as possible.what micro controller should i use,considering that it would at most need 4 inputs?also,what about the drivers?can i make it copy a normal mouse,so that windows will detect it as ordinary mouse and i don't need to write a driver?

推荐答案

两个想法......



1.创建一个串行鼠标。大多数微控制器都可以使用RS232。如果Windows接受连接到USB /串行适配器的串行鼠标,那么Arduino也应该可以工作。



http://arduino.cc/en/Reference/MouseKeyboard [ ^ ]



2.使用与Leonardo和Beetle相同的Atmel处理器。 ATMega 32u4直接与USB接口。您需要更换引导加载程序或至少修改引导加载程序以使PID / VID与通用USB鼠标匹配。显然,您还需要编写代码来模拟USB中断传输。它是一个鼠标,因此您不需要批量或同步USB I / O.



Microsoft的WDM驱动程序DDK可能有样本USB鼠标驱动程序,您可以检查以获得了解中断传输数据包。此外,还有一些工具可以检查USB流量 - 允许您查看来自通用USB鼠标的消息。
Two ideas ...

1. create a serial mouse. Most micro-controllers can be made to use RS232. If Windows will accept a serial mouse connected to a USB/serial adapter, then an Arduino should also work.

http://arduino.cc/en/Reference/MouseKeyboard[^]

2. Use the same Atmel processor as the Leonardo and Beetle. ATMega 32u4 interfaces directly to USB. You will need to replace the boot loader or at least modify the boot loader to have a PID/VID that matches a generic USB mouse. Obviously, you will also need to write code to mimic the USB interrupt transfers. It's a mouse so you don't need Bulk or Isochronous USB I/O.

Microsoft's WDM driver DDK may have sample USB mouse drivers that you can examine to get an understanding of the Interrupt transfer packets. Also, there are tools to inspect USB traffic - allowing you to see the messages from a generic USB mouse.


这篇关于我想制作一个HID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆