Solved

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

Posted on 2013-01-03
4
1,333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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