Reading from USB device and sending queries to it, in C#
I've read this: [http://stackoverflow.com/questions/1176053/][1], which was an insightful article.

However, I have no great background in WMI, and I found the large amount of documentation to be overwhelming. I can't find what I'm looking for.

The situation is that I have a device that will send data over the USB port, to the soundcard of the PC in question.

Consider camera-software. You connect your camera, start the program, and you can control the program with the camera, and vica versa. For instance, you can press a button on the camera and it'll start transmitting to the program. Or you can click a button in the program and it will start querying for data.

I need to find a way to query and catch this data, safely and correct.
It's probably a Stream of bytes, but searching for that doesn't produce any results.

I'm thinking I first need to somehow connect.
Then send the query.
Then receive.

However, connecting and querying both is something that I can't find in the example code, or the System.Management documentation on MSDN.




  [1]: http://stackoverflow.com/questions/1176053
Reading from USB device and sending queries to it, in C#
===

I've read this: [http://stackoverflow.com/questions/1176053/][1], which was an insightful article.

However, I have no great background in WMI, and I found the large amount of documentation to be overwhelming. I can't find what I'm looking for.

The situation is that I have a device that will send data over the USB port, to the soundcard of the PC in question.

Consider camera-software. You connect your camera, start the program, and you can control the program with the camera, and vica versa. For instance, you can press a button on the camera and it'll start transmitting to the program. Or you can click a button in the program and it will start querying for data.

I need to find a way to query and catch this data, safely and correct.
It's probably a Stream of bytes, but searching for that doesn't produce any results.

I'm thinking I first need to somehow connect.
Then send the query.
Then receive.

However, connecting and querying both is something that I can't find in the example code, or the System.Management documentation on MSDN.




  [1]: http://stackoverflow.com/questions/1176053