Article View: borland.public.cppbuilder.nativeapi
Article #7281Re: Problem with printing text using RS232
From: Bob Gonder
Date: Sat, 26 Feb 2005 07:44
Date: Sat, 26 Feb 2005 07:44
35 lines
2317 bytes
2317 bytes
Jan wrote:
> TCommPort *port = new TCommPort();
> AnsiString com = Edit6->Text;
> port->SetCommPort("COM1");
> port->OpenCommPort();
> port->SetBaudRate(19200);
> port->SetParity(2);
> port->SetStopBits(2);
> port->SetByteSize(8);
In addition to what Remy mentioned.
Stops bits have almost always been 1 for about 25 years now.
>I purchased an order printer (Epson TM200) with the following specifications:
>Baud Rate 19200 bps
>Data Bits 8 Bits
>Handshaking Hardware
>Parity Check Disabled,
>More specifications can be found on: http://www.star-micronics.co.jp/eng/service/usermanual/tsp600sm.pdf
Did you check the dip-switch settings on the printer?
Section 12.3.1 of that manual says:
The baud rate may be 4800, 9600 or 19,200.
The parity may be even or odd or none
The stop bit is 1 (fixed)
The handshaking can be just about anything.
Double check your DIP Switch settings.
Put a break-out-box in the line, and check for proper DTS/DSR/RTS/CTS
functioning. I have yet to find a printer that handles those in the
manner that Microsoft dictates. (That is to say, the printers handle
them properly, but MS doesn't) I always have to cross signals, and
short some to get a printer working serially with hardware
handshaking.
Technical Details
Message-ID:
<179021ts278ir8e8unk3nh9jptd6445su1@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Problem with printing text using RS232 Date: Fri, 25 Feb 2005 23:44:41 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <179021ts278ir8e8unk3nh9jptd6445su1@4ax.com> References: <421f94b1$1@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: 69.69.91.90 X-Trace: newsgroups.borland.com 1109403876 69.69.91.90 (25 Feb 2005 23:44:36 -0800) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail