🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WriteFile problems (help me!)

#16390
From: MWP
Date: Wed, 14 May 2003 18:16
26 lines
2203 bytes
>Confirm Ed's first guess: check rather the LCD and your software than the
>pc. You do nothing special with the com port, so if that wouldn't work,
>Windows would have to write off the serial interface as such.
>
>What kind of LCD are you using? I have never heard about one with an asynch
>serial interface. You probably have a third-party add-on controler board,
>and these are all but reliable. And probably you are not just reading but
>have to write a bytes to request reading. Are you sure you are syncronized
>between writes & reads? The 250ms read cycles, is at a request by LCD specs
>or is that just what you have seen as result?

Its a:
http://www.crystalfontz.com/products/633/index.html

>Anyhow you should open the port in async mode, set its (internal) buffers
>and both write & read having set the timeout structure.
>Then every supposed write/read sesions should:
>- clear Tx buffer and Rx buffer
>- write request in one go (with timeout), not char by char as the LCD could
>timeout.
>- check tx-buffer empty flag,
>- read n characters with timeouts.

Yup... this is what im doing.
Although, im not quite sure what the timeout values should be.
Technical Details
Message-ID: <3ec28814$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ec25f43$1@newsgroups.borland.com> <3ec26129$1@newsgroups.borland.com> <3ec26741$1@newsgroups.borland.com> <3ec2768d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9ac30f5163521f9f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-14 11:26:56 PST
From: "MWP" <mwp@overclockers.com.au>
Sender: "MWP" <mwp@overclockers.com.au>
Reply-To: "MWP" <mwp@overclockers.com.au>
Subject: Re: WriteFile problems (help me!)
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 203.16.214.242 203.16.214.242    
X-Forwarded-For: unknown, 150.101.76.247
References: <3ec25f43$1@newsgroups.borland.com> <3ec26129$1@newsgroups.borland.com> <3ec26741$1@newsgroups.borland.com> <3ec2768d$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ec28814$1@newsgroups.borland.com>
Date: 14 May 2003 11:16:52 -0700
X-Trace: newsgroups.borland.com 1052936212 207.105.83.65 (14 May 2003 11:16:52 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail