Solved

Using two serial ports simultaneously

Posted on 1998-11-09
2
241 Views
Last Modified: 2013-11-20
I want to use two serial ports simultaneously.
A few weeks ago, I wrote a program using single com port.
It it same ?
0
Comment
Question by:gripper
[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 Comments
 
LVL 3

Accepted Solution

by:
stefanr earned 50 total points
ID: 1324436
Yes, it is the same. Use a thread for each of the ports for reading. You can, but you don't have to, have another thread for writing as well (on each port). The simplest is to create a class that handles a single port, and let that class start the thread(s) that reads the port it handles. Then you only have to create an instance for each of the ports you want to use. I assume you are using the WIN32 CreateFile, ReadFile, WriteFile, etc. functions.
0
 

Author Comment

by:gripper
ID: 1324437
Thanks for your concern.
I'll try it.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 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