[BALU] Query regarding comm ports in windows

Thomas Stover thomas at wsinnovations.com
Fri Dec 19 22:31:19 CST 2008

Sometimes you just have to break down, and write a C program. From past 
experience, I wouldn't even attempt anything to do with serial ports any 
other way at this point in the game.


That being said, the only thing I might could dream up is scripting 
something in cygwin. The logic being that it sounds like you need to 
keep the port "open" across different steps of your procedure.

Beyond that try searching for some command line com port utilities. Also 
maybe try something in a DOS emulation window - not cmd.exe - straight 
up dos. People in the bbs days scripted all sorts of serial port stuff 
with .bat files.

andrew at asi-web.com wrote:
> Does anyone here have a way to flush whatever kind of comm port buffer  
> may exist on Windows XP?  I'm having some problems with a third-party  
> file that's required to drag information from one of the types of  
> handheld unit; it's creating partially duplicated lines.  The problem  
> persists for a short while when I manually run the batch job designed  
> to draw the files across, not just when the batch file is run from my  
> program, so the only thing I can think of is that the problem is  
> somehow connected to the ports themselves.  (Only a short while;  
> second or third attempt to manually run the batch file and copy the  
> thing over worked.)
> It's either that or the past three months I've spent modifying and  
> testing the program that deals with those just got junked, but I'm  
> hoping it isn't at that point yet.

More information about the Members mailing list