[.net] C# USB Library

Started by
8 comments, last by DrjonesDW3d 17 years, 7 months ago
Does anybody know of a good (working) C# USB Library? I have tried #usblib but support is lacking and it does not seem to work correctly.
Author Freeworld3Dhttp://www.freeworld3d.org
Advertisement
Probably not exactly what you're looking for, but Coding4Fun has an article about interfacing with a USB proximity device. They make heavy use of Win32 functions, but the concepts should still be applicable.
http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx

have fun ;)

cheers mike

++++[>+++++<-]<-]>++++++[>++++++<-]<<++++++++++++++++.-------------.---.>>----.<<-.++++++++++++++++++.--------------------.+.
Quote:Original post by mauzi_the_Dude
http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx

have fun ;)

cheers mike

I'm pretty sure that's the same link the OP provided, just without the HTML tags.

CM
The Coding4Fun article I mentioned above has a link to another C# USB project called usbhidio.
Could someone please explain to me what you'd do with a USB library?
Rob Loach [Website] [Projects] [Contact]
On a previous job, I had a client who used a device to test the skin's electromagnetic conduction levels using a USB device. The program (written in C#) interfaced with the device to read the values.
Quote:Original post by Rob Loach
Could someone please explain to me what you'd do with a USB library?


Send/receive 1's and 0's to/from a USB device? ;)
At my last job I was working with an engineer to develop new haptic feedback devices, which were powered by a PIC microcontroller, and we used USB to communicate with the device from the host PC. It would have been cool to be able to use C# for that.
This is probably at a lower level than most USB people here are looking for, but since I've spent a lot of time researching it and had tons of trouble figuring everything out, I'll post here in case someone could benefit from it.

If you are going to be doing USB stuff that isn't using a standard USB device type (ie HID, mass storage, etc) Microsoft has (tried to) improve their driver kits to make it "easy" for people to write USB drivers. There is a new kit, WDF (Windows Driver Framework I believe) that has two parts, the KMDF (kernel mode driver framewrok) and UMDF (user mode driver framework). There are somewhat decent samples in the download for both that show a basic USB driver with some non-basic features (like power saving). In the UMDF they even have a WinUSB library that is suposed to make it really easy for simple projects. You can read the basics of that here (PPT file)

Writting your own driver could be a lot of work, but a great learning opportunity that would look good on a resume.

This topic is closed to new replies.

Advertisement