Solved

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

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Or at least that’s the word according to a new blog from Tech Target on AWS’s new Managed Services (MS) offering. According to the blog, AWS is launching their AWS MS program to expedite the adoption of cloud by Fortune 1000 and Global 2000 companie…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

628 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