同一应用的多个实例发送&接收数据到USB设备

同一应用的多个实例发送&接收数据到USB设备

问题描述:

我需要知道的最佳方法是,通过USB从同一vb.net应用程序的多个实例(最多30个)将数据发送到主控制器,该主控制器将数据发送到适当的从属控制器.
可以从下面的链接中找到有问题的板:
http://www.pc-control.co.uk/iso_master.htm
http://www.pc-control.co.uk/digital-io-slave.htm
我在考虑使用消息队列服务吗?但不确定这是否能够应付每15毫秒发送数据的多达30个实例? (最坏的情况!).

我还考虑过使用Windows Communication Foundation(WCF)服务客户端吗?但不确定从哪里开始!:confused:

对于使用哪种方法或替代解决方案的任何建议,将不胜感激. :-D

What i need to know is what is the best method for sending data from multiple instances (upto 30) of the same vb.net aplication via usb, to a master controller that sends the data to the appropriate slave controller.
The boards in question can be found from the links below:
http://www.pc-control.co.uk/iso_master.htm
http://www.pc-control.co.uk/digital-io-slave.htm
I was thinking of using the message queue service? but im unsure if this will be able to cope with upto 30 instances sending data every 15mS? (extreme worst case scenario!).

I also thought of using the windows communication foundation (WCF) service client? But unsure where to even start!:confused:

Any advice on which method to use or alternative solutions would be greatly appreciated. :-D

如果这给您带来了真正的问题,那为什么不拥有一个直接与USB设备通信的主应用程序实例,以及所有其他应用程序仅与之通信?
这意味着主机可以确保消息完整,然后再开始将其流式传输到USB.
可能会使您的体系结构更容易,并提供在其他PC上运行其他一些应用程序的可能性.
If this is giving you a real problem, then why not have a single instance of a master application which communicates directly to the USB device, and all the other Apps communicate only with it?
That would mean that the master could ensure that messages are complete before it started to stream them down to the USB.
Might make your architecture easier, and provide the possibility of running some of your other apps on a different pc.