🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10363

Re: Serial comms and cotrolling the RTS line

#10363
From: Bob Gonder
Date: Tue, 20 Apr 2004 18:06
25 lines
1674 bytes
JoeBlack wrote:

>    SetCommMask(hComm,EV_TXEMPTY);

Check the return value, or do GetCommMask to verify.

> WriteFile(hComm,dta.c_str(),static_cast<DWORD>(dta.Length()),&NOBW,NULL);

Check the return value.

>    while (evt != EV_TXEMPTY)
>    {
>     WaitCommEvent(hComm,&evt,0);

Check the return value.

>     if (b)
>      EscapeCommFunction(hComm,SETRTS);
>        else EscapeCommFunction(hComm,CLRRTS);

Return values?

>Unfortunately, the WaitCommEventFunction returns immediately and the RTS
>line is dropped straight away, does anyone know what I've done wrong, or how
>to control the RTS another way so that it drops after my data is sent.
Technical Details
Message-ID: <depa8091rd9b2js3bg9qbfr3sfve26df0u@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40853bbf@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,29200a53fdd311dc
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-20 11:10:23 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Serial comms and cotrolling the RTS line
Date: Tue, 20 Apr 2004 11:06:16 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <depa8091rd9b2js3bg9qbfr3sfve26df0u@4ax.com>
References: <40853bbf@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.41.127.251
X-Trace: newsgroups.borland.com 1082484375 65.41.127.251 (20 Apr 2004 11:06:15 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail