简体   繁体   English

与USB设备通讯

[英]Communicating to USB Device

I bought a usb otoscope from the internet and I want to create an application that uses it. 我从互联网上购买了USB耳镜,我想创建一个使用它的应用程序。 When I plug it into the computer, it reads the device as a USB Camera, and I can use the very barebones software supplied to communicate with it. 当我将其插入计算机时,它会将设备读取为USB摄像头,并且我可以使用所提供的准系统软件与之通信。 I'm very new to the idea of communicating with usb all together. 我对与USB一起交流的想法很陌生。 I've tried to look at some sites like this: http://www.jespersaur.com/drupal/book/export/html/21 , that tell me how to reverse engineer a device. 我尝试查看一些类似这样的站点: http : //www.jespersaur.com/drupal/book/export/html/21 ,它们告诉我如何对设备进行反向工程。 I don't know if I'm going down the right path with this... 我不知道我是否沿着正确的道路前进...

I've downloaded USB Snoopy and I can't seem to get it to sniff the packets correctly. 我已经下载了USB Snoopy,但似乎无法正确嗅探数据包。 I also have Crunchbang linux installed on a different computer but I don't know how to sniff it on that either (especially because the drivers are native to windows). 我还在另一台计算机上安装了Crunchbang linux,但是我也不知道如何在上面监听它(特别是因为驱动程序是Windows固有的)。 All I want is some sort of API/Interfacing functions for me to call and use. 我只需要某种API /接口函数供我调用和使用。 How do I go about doing such a thing? 我该如何做这样的事情? I'm able to locate the device on the device manager in windows, and it tells me hardware ID's and such. 我可以在Windows的设备管理器中找到该设备,它会告诉我硬件ID等。 I can supply any information if necessary. 如有必要,我可以提供任何信息。 Thank you. 谢谢。

EDIT - Small description I found of the otoscope: http://microscopesimgv.blogspot.com/2012/08/oasis-ehev2-usbplus-20mp-handheld-usb.html 编辑-我发现了耳镜的简短描述: http : //microscopesimgv.blogspot.com/2012/08/oasis-ehev2-usbplus-20mp-handheld-usb.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM