I’m working on an ASP.NET website in which I’ll need to access an usb device from the client side.
I’ve seen that Silverlight 5, through the use of P/Invoke, allows us to access dlls on the client machine. I plan to add a silverlight control in one of my page that will interact with my usb Device. This, way, each customer using this kind of device, will only need to connect on my website and start working with it.
Nonetheless, being a beginner at that kind of interaction with an usb device, how can I manage to do this ?
Which windows dll will provide me with a good way of interacting with an usb device ?
Further informations :
- I need to be able to communication through COM port. A typical serial communication. How can I manage to do this ?
For testing purpose, I can connect to my device through an application like “Hercules”, and I basically need to reprodure that kind of connection in my silverlight module…
Do you guys have any example ?
Thanks for your help,
I’ve found a wrapper class that enables me to create a connection to a serial port within Silverlight 5. I’m now able to access my usb device, through a serial communication.
Since I spent lot of time trying to make it work, I’ll share this class with you :
Here is an Example of the SerialWrapper in action: