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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Candy BrownPosted Dec 3, 2014, 4:02 AM
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.