Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

19 Experts available now in Live!

Get 1:1 Help Now