🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.drivers
Article #1

Re: Can't send control chars to device on comm port

#1
From: glenc
Date: Sun, 17 Sep 1995 21:14
51 lines
2349 bytes
Get a copy of the TTY sample in the Windows SDK.  Its C but its a good
place to start.  It can show you the calls for changing the DCB
stuff like baud rate and flow control.

I hope this helps.

Sincerely,
Glen Clark
ESDL, Inc.

In article <43kgvq$bti@alterdial.UU.NET>, <pdamany@vaikunt.com> writes:
> Path: 
news.halcyon.com!nwnews.wa.com!uunet!in2.uu.net!alterdial.uu.net!not-for-mail
> From: Poulomi Damany <pdamany@vaikunt.com>
> Newsgroups: comp.lang.c++,comp.lang.c,comp.os.ms-windows.programmer.drivers
> Subject: Can't send control chars to device on comm port
> Date: 18 Sep 1995 19:23:38 GMT
> Organization: VTI Corporation
> Lines: 19
> Message-ID: <43kgvq$bti@alterdial.UU.NET>
> NNTP-Posting-Host: pool013.max1.ffx1.va.dynip.alter.net
> X-Newsreader: AIR News 3.X (SPRY, Inc.)
> Xref: news.halcyon.com comp.lang.c++:144673 comp.lang.c:144279 
comp.os.ms-windows.programmer.drivers:6000
> 
> We are trying to control a device using a curtom driver written in Microsoft 
Visual C++ ver 1.52 . The 
> device is hooked up to the serial comm port using a std RS-232 connection. We 
want to be able to 
> 
> 1. Send characters to a com port. - both control characters such as <ESC> Z 
or HELLO<cr>. (Typeing 
> the same in a communications program like PROCOMM or even in Terminal works), 
but we cannot get 
> successfully make it work in the C program-seems the <CR><LF> after every 
line don't get sent properly 
>  
> 
> 2. How can we use the com ports within MS Windows 3.1 at 19,200 baud or 
> higher using MS Visual C/C++
> 
> 3. Is there any way to monitor what is going thru the com port.
> 
> 4. How do we set-up handshaking parameters like x-on/x-off
>  
> A sample program which send data through the com port would be appreciated
> 
> 
> 
> 
Technical Details
Message-ID: <NEWTNews.31739.811372556.glenc@esdl>
Path: arc1-ca.pugleaf.net!news.halcyon.com!usenet
References: <43kgvq$bti@alterdial.UU.NET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.halcyon.com!usenet
From: glenc@halcyon.com
Newsgroups: comp.os.ms-windows.programmer.drivers,comp.lang.c++
Subject: Re: Can't send control chars to device on comm port
Date: Sun, 17 Sep 95 14:14:45 PDT
Organization: Northwest Nexus Inc.
Message-ID: <NEWTNews.31739.811372556.glenc@esdl>
References: <43kgvq$bti@alterdial.UU.NET>
NNTP-Posting-Host: blv-pm3-ip20.halcyon.com
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage