Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 20-Mar-18 18:11pm
v2

1 solution

Have a look at CodePlex Archive: WinUsbNet[^]:
Quote:
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.
 
Share this answer
 
Comments
Member 13688117 21-Mar-18 0:12am    
Thank you for your timely reply.I would try and reply.
Member 13688117 6-Apr-18 5:36am    
Hi I tried this..https://github.com/madwizard-thomas/winusbnet and got connected to my device.The library seem hard for me to understand.
Jochen Arndt 6-Apr-18 5:48am    
Fine to hear that you are able to connect and sorry for posting the old CodePlex link to the project.

Such libraries provides access to the low level USB API functions. That requires always some reading and learning regardless of the used programming language.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900