同一应用的多个实例发送&接收数据到USB设备 [英] Multiple instances of the same aplication sending & receiving data to a USB device

查看:99
本文介绍了同一应用的多个实例发送&接收数据到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.


这篇关于同一应用的多个实例发送&接收数据到USB设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆