🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3997

Re: Sending special characters to serial connected LaserWriter

#3997
From: Chris Lewis
Date: Sat, 07 Nov 1992 08:38
40 lines
2197 bytes
In article <BxAvzG.DzL@gpu.utcs.utoronto.ca> tj@gpu.utcs.utoronto.ca (Terry Jones) writes:
>>In article <4353@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
>>>You will need to send to output to a PostScript printer that has a parallel
>>>port, and not a serial port.  Binary data cannot be sent through a serial
>>>port, plain and simple.  Too many problems.  Things like Xmodem work because

>A common reasone for the belief that you cannot send binary data over the
>serial line is that the serial communications paramaters are by default
>parity ignore. This means the high bit is getting stripped off. If you
>set the parity setting to NONE then things will work fine.

Nope.

In essence, async serial communication consists of the following
bits in sequence:

	- one start bit
	- 7 or 8 data bits
	- 0 or 1 parity bits
	- 1 or 2 stop bits.

Parity and character length are two different things.  If the character
length is 7, no setting of parity will permit 8 bit characters through
because the 8th bit will not track the 8th bit of the characters you're
trying to send.  The 8th bit will be the parity.  Whether odd, even, mark,
space or none (in latter case, the 8th bit seen on the receiving end
will be a stop bit).

You need 8 data bits to send binary.

If you're set to 7 bit, there are 7 bits of data on the serial line followed
by the parity (odd, even, mark, space, none) bit.

If you're set to 8 bit, there are 8 bits of data on the serial line followed by
the parity (odd, even, mark, space, none) bit.

-- 
Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541
Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca
Ferret list: ferret-request@ferret.ocunix.on.ca
Technical Details
Message-ID: <3956@ecicrl.ocunix.on.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!torn!nott!cunews!revcan!ecicrl!clewis
References: <4353@vidiot.UUCP> <13859@pogo.wv.tek.com> <BxAvzG.DzL@gpu.utcs.utoronto.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!torn!nott!cunews!revcan!ecicrl!clewis
From: clewis@ferret.ocunix.on.ca (Chris Lewis)
Newsgroups: comp.lang.postscript
Subject: Re: Sending special characters to serial connected LaserWriter
Message-ID: <3956@ecicrl.ocunix.on.ca>
Date: 7 Nov 92 08:38:02 GMT
References: <4353@vidiot.UUCP> <13859@pogo.wv.tek.com> <BxAvzG.DzL@gpu.utcs.utoronto.ca>
Organization: Elegant Communications Inc., Ottawa, Canada
Lines: 40