Solved

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

Posted on 2013-01-03
4
1,250 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 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