使用winusb.sys通过带有自定义USB(PIC32MZ2048EFG100)的Windows应用程序进行USB通信 [英] USB communication through windows application with a custom USB (PIC32MZ2048EFG100) using winusb.sys

查看:80
本文介绍了使用winusb.sys通过带有自定义USB(PIC32MZ2048EFG100)的Windows应用程序进行USB通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是司机的新手。我配置了我的PIC设备并在插入时将其列在Windows设备管理器中。然后写了一个.inf使我的自定义USB设备安装并通过我的自定义名称列出的文件。因为winusb.sys列在驱动程序详细信息中的设备属性中,我相信到目前为止我在驱动程序端是正确的。现在主要目的是开发我可以通过Windows应用程序进行通信(连接,断开连接,读取,写入)。我在Windows 7系统上安装了visual studio 2015.Can我可以在c#中进行通信部分。如何进行USB通信?我应该使用WDK 7并使用一些winusb模板和功能,还是有其他方法?如果有的话,请附上示例代码。



请帮忙。任何帮助都是表示感谢。提前感谢您。



我尝试过:



我配置了我的PIC设备,并在插入时将其列在Windows设备管理器中。然后写了一个.inf文件,使我的自定义USB设备安装并按我的自定义名称列出。因为winusb.sys列在属性中驱动程序详细信息中的设备,我相信到目前为止我在驱动程序端是正确的

Hi,

I am new to drivers.I configured my PIC device and got it listed in windows device manager while I plugged in.Then wrote an .inf file that made my custom USB device install and got it listed by my custom name.Since winusb.sys is listed in properties of the device in driver details, I believe till now I am correct on driver side.Now the main purpose is to develop a windows application through which I can communicate(connect, disconnect, read, write).I have visual studio 2015 installed on my windows 7 system.Can I do the communication part in c#.How can I make USB communication possible? Should I use WDK 7 installed and use some winusb template and functions or is there any other method?Please attach sample codes if any.

Please do help.Any help is appreciated.Thanking you in advance.

What I have tried:

I configured my PIC device and got it listed in windows device manager while I plugged in.Then wrote an .inf file that made my custom USB device install and got it listed by my custom name.Since winusb.sys is listed in properties of the device in driver details, I believe till now I am correct on driver side

推荐答案

看看 CodePlex存档:WinUsbNet [ ^ ]:

Have a look at CodePlex Archive: WinUsbNet[^]:
Quote:

WinUsbNet:WinUSB.sys的托管界面



WinUsbNet cla ss库使.NET托管代码可以通过WinUSB直接访问USB设备,WinUSB是Windows附带的通用USB设备驱动程序。该项目还包括创建和创建工具的工具。安装WinUSB安装文件和示例应用程序。

WinUsbNet: A managed interface to WinUSB.sys

The WinUsbNet class library gives .NET managed code direct access to USB devices through WinUSB, the generic USB device driver included with Windows. The project also includes tools to create & install WinUSB installation files, and a sample application.


这篇关于使用winusb.sys通过带有自定义USB(PIC32MZ2048EFG100)的Windows应用程序进行USB通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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