Winusb - multi device multi application


X

xxx

Hi,
I am going through documentation available on Winusb and it says that
Winusb shoud be used when "the device is accessed by only a single
application".

My question is

1) if i use multiple instances of same application to communicate with
different intances of same device(i.e. many boards of same kind
connect to PC via hub) , can i use winusb.

2) if my application communicates with different intances of same
device(i.e. many boards of same kind connect to PC via hub) .
Communication with each instance happens in separate thread. Can i use
WinUsb.

3) Can i use WinUSB in both case

Thanks for an answer

-Anshul
 
Ad

Advertisements

D

David L. Burkhart

My short and direct answer for all three questions is, you'll most likely
have to try it out to be sure. My best guess and individual answer to your
questions is 1. Yes, 2. Yes, 3. Yes.

Here's the explanation.

From what you told me, USB is the technology and who-knows-what is the
protocol. With most common protocols that use USB, there will need to be an
exclusive connection from a specific application to a specific external
device. Given the instruction, "the device is accessed by only a single
application", WinUSB not only uses one of the protocols with that
requirement, but also cannot handle multiple connections to the same
external device.

There will be distinction between multiple instances of the application
(assuming it is thread-safe) and multiple instances of the same external
device. Therefore, an array (multiple similar applications or devices) on
either end should pose no problem, so long as no application attempts to
make a connection to a device that already has one.


David L. Burkhart
Burkhart Technology Services
http://www.BurkhartTech.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top