Article View: borland.public.cppbuilder.nativeapi
Article #13225Re: Serial Comm Stuff
From: Jim Dodd
Date: Mon, 20 Oct 2003 20:50
Date: Mon, 20 Oct 2003 20:50
31 lines
2081 bytes
2081 bytes
Colin Maharaj wrote: > Hey Jim, > > Thanks for responding but I may have found the real problem..... > > The fact is, this happens ONLY when I first receive a NULL character. > > But if I init my serial com routines to ignore NULL characters I do not > get the problem, but I do not want to ignore null characters.. > > e.g. > DCB & DeviceParameter; > ... > DeviceParameter.fNull = true; // ignore NULL > ... > SetCommState(hComm, &dcbComm); // init com state... > > What should I do??? > > Thanks!!! > > I tested our component and the component from TurboPower and they both allow receiving a NULL character as the first input. I don't know what you've done that could cause the problem. Unfortunately, I can't send you the source code I have because we bought it from a third party. One thing you can do, if you don't mind taking the time, is to use the AsynchPro package that TurboPower released to the public on Source Forge. The source is in Delphi but the Windows calls will be the same. Jim
Technical Details
Message-ID:
<3f944a7b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3F8FC345.F2899BA6@cablenett.net> <3f8fde04$1@newsgroups.borland.com> <3F902801.966E31DF@cablenett.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,67ff0e8d56216b03 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-20 14:09:43 PST Date: Mon, 20 Oct 2003 16:50:03 -0400 From: Jim Dodd <bcbuilderboy@yahoo.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Serial Comm Stuff References: <3F8FC345.F2899BA6@cablenett.net> <3f8fde04$1@newsgroups.borland.com> <3F902801.966E31DF@cablenett.net> In-Reply-To: <3F902801.966E31DF@cablenett.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.161.163.42 Message-ID: <3f944a7b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066683003 65.161.163.42 (20 Oct 2003 13:50:03 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail