Jump to content
  • Advertisement
Sign in to follow this  
soconne

[.net] C# USB Library

This topic is 4345 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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? ;)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!