[SuSE Linux] RE: [S.u.S.E. Linux] Serial Printing
On Thu, 13 Aug 1998 14:48:55 +0100 (BST), (Ted Harding) wrote:
It may be worth trying to localise the problem as "hardware" vs "software". In your printcap, make the temporary change of the entry :lp=/dev/ttyS1: to, say, :lp=/homedir/testprint: which should have the effect that what the system normally sends to /dev/ttyS1 gets saved in the file /homedir/testprint instead. If that is truncated, then there is a software problem (in /usr/sbin/epson9-filter ?); otherwise, if the file is complete, then it is a hardware problem.
I use a special configuration that maintain the job at the spooling directory after print it. If I see the file at the spooling directory the text is complete.
When you print by "cat", is it "cat ... > /dev/ttyS1" or to some other device?
Of course, if I make "cat /var/spool/lpd/epson/dfA234.mymachine.org > /dev/ttyS1" the complete text is printed. For this reason, I feel that this is a problem with flow control from lpd to the /dev/ttySx. ----/ / _ Rodolfo Pilas ---/ / (_)__ __ ____ __ rodolfo@linux.org.uy --/ /__/ / _ \/ // /\ \/ / -/____/_/_//_/\_,_/ /_/\_\ la oportunidad de dominar tu computadora ------------------------------------------------------------------- Personal Official Web Page -> <A HREF="http:///www.internet.com.uy/rodolfo"><A HREF="http:///www.internet.com.uy/rodolfo</A">http:///www.internet.com.uy/rodolfo Gente Como Uno BBS -> <A HREF="http://www.geocities.com/SiliconValley/4838"><A HREF="http://www.geocities.com/SiliconValley/4838</A">http://www.geocities.com/SiliconValley/4838 Grupo Usuarios Linux Uruguay [UYLUG] -> <A HREF="http://www.linux.org.uy"><A HREF="http://www.linux.org.uy</A">http://www.linux.org.uy PGP Public Key Fingerprint = EE 6C 76 53 2B D9 2F 53 7B CE E3 69 8C ED 84 09 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On 14-Aug-98 Rodolfo Pilas wrote:
I use a special configuration that maintain the job at the spooling directory after print it. If I see the file at the spooling directory the text is complete.
When you print by "cat", is it "cat ... > /dev/ttyS1" or to some other device?
Of course, if I make "cat /var/spool/lpd/epson/dfA234.mymachine.org > /dev/ttyS1" the complete text is printed.
For this reason, I feel that this is a problem with flow control from lpd to the /dev/ttySx.
This may be tricky to trace. However, as a start: your /etc/printcap says
lp|testprt|testprt|testprt:\
:lp=/dev/ttyS1:sd=/var/spool/lpd/testprt:\
:br#9600:\
:ty=ixon -imaxbel -ixany -ixoff -crtscts:\
:if=/usr/sbin/epson9-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
:mx#0:\
:sh:sf:\
Try taking out the :ty=....: entry. Or changing it. (I do not find this keyword
"ty=" in "man printcap" and I do not see it in any of the printcaps I have
around here; where is the info about it?). I assume your baud-rate is OK (it
looks standard).
Another place to look for some info about what may be happening is your logfile:
/var/log/lp-errs
Good luck,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)
participants (2)
-
rodolfo@linux.org.uy
-
Ted.Harding@nessie.mcc.ac.uk