🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with printing text using RS232

#7278
From: Remy Lebeau (TeamB)
Date: Fri, 25 Feb 2005 22:02
30 lines
2082 bytes
"Jan" <amstel_25@yahoo.com> wrote in message
news:421f94b1$1@newsgroups.borland.com...

> I downloaded a class that handel the serial communications from:
> http://www.ciemmesoft.com/componenti/

That download link points to BCBDev, which no longer exists.

>        port->SetParity(2);

You said that the printer expects no Parity checking, but you are assigning
Even Parity instead.  You will have to call its SetCommDCBProperties()
method to set up the parity checking manually.

Also, you did not set any Handshaking options at all.  TCommPort does not
natively support setting up the handshaking, so you will have to call its
SetCommDCBProperties() method to set up the handshaking manually.

>        port->WriteString(ch);

You did not inform the serial port that data was available for sending.  I
do not think TCommPort suppors this at all.

Also, WriteString() just dumps the string to the serial port and does not
wait to see if the string is actually transmitted.  You can use
WriteStringSlow() to ensure each character is actually transmitted.


Gambit
Technical Details
Message-ID: <421fa064$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <421f94b1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,11a480b4e2a1fdaf
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <421f94b1$1@newsgroups.borland.com>
Subject: Re: Problem with printing text using RS232
Date: Fri, 25 Feb 2005 14:02:15 -0800
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <421fa064$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109368932 68.69.17.41 (25 Feb 2005 14:02:12 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail