Solved

Using two serial ports simultaneously

Posted on 1998-11-09
2
200 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

18 Experts available now in Live!

Get 1:1 Help Now