Solved

C# - Send Commands and Receive Response from two USB ports simultaneously.

Posted on 2013-01-03
4
1,233 Views
Last Modified: 2013-02-20
Hello everybody.

My Desktop: i7, W7 Ultimate, VS2010 Ultimate.

How to send Command to 3 USB ports at the same time?
How to make this function run on XP, Vista and 7?

Thanks in advance,
ocaccy

USB Devices in my machine
0
Comment
Question by:ocaccy
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
binaryevo earned 500 total points
ID: 38744905
May I ask what this is for, knowing the context of the question will help myself and others to better assist you.  Here are some links below on various topics related to what your looking to do:

http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/26ca0c13-f880-4694-b28e-3d4b0b0e275e
0
 
LVL 14

Expert Comment

by:binaryevo
ID: 38744912
http://www.developerfusion.com/article/84338/making-usb-c-friendly/

Now to get them to get there about the same time you could use Parrallel.Invoke
0
 

Author Comment

by:ocaccy
ID: 38746239
Thank you,

My C# app, analyzes data on various RS485 devices in parallel.
Connect devices to a USB port through a converter RS485/USB.
This configuration only analyzes the data. I need a person to turn ON and OFF the devices.
I'm extending the functionality of my application.
First, we put a USB device that will turn ON and turn OFF the devices.
The turn ON/OFF function is related to a USB PORT and Reading function is related to another USB/SERIAL PORT.
So I need to know how to send command to 2 or more USB PORT at the same time.
0
 

Author Closing Comment

by:ocaccy
ID: 38912545
Hello, I took to resolve.
After studying all that you indicated me; I went deep inside; solved thus:
Create Methods for each USB and call this Methods in queue.

Now this works, however when exiting the app, continue with the message that the app is running in VS2010 Ultimate!

How to solve this problem?
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
A clone is a duplicate copy. Sheep have been cloned and maybe someday even people will be cloned, but disk cloning (performed by the hard drive cloning software) is a vital tool used to manage and protect data. Let’s look at what hard drive cloning …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now