Skip to content

USB Controller

nathaJegamoorty Pillai

Asked Dec 2, 2014, 6:54 PM EST1 answer
Share
LinkedInX
Hi,


How can I control USB port? I am developing a machine in which I used to switch on a LED, So I need to send a power signal How can I send a power signal in USB using c# code?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    Unfortunately there is no native .NET library that offers a solution for this so you should search for some free 3rd party component like SharpUSBLib or LibUsbDotNet.

    I'm afraid I cannot recommend you any because I didn't use them, but I will add that at some point I was trying to create my own handler for USB devices. It's not a easy task to achieve but if interested note that in order to accomplish this you would need to start with a System.IO.Ports.SerialPort.

    0