Date: Tue, 11 Nov 97 11:44:12 -0700 From: gnelson@toyshop1 (Gary W. Nelson) To: freebsd-questions@FreeBSD.ORG Cc: gnelson@toyshop1 Subject: Serial Printer Setup Problem Message-ID: <9711111844.AA18457@toyshop1>
next in thread | raw e-mail | index | archive | help
Gentlemen; I have two Pentium Pros (200MHz) running 2.2.1. Both systems exhibit the same problem. Problem: I have Epson DFX-5000 printers connected to each system via comm port 0 (sio0). I had set flow control on via the stty command (stty -f /dev/ttyd0 ixon ixoff ixany) Doing a stty -ef /dev/ttyd0 would display that the flags were indeed turned on, and everything was fine. However I rebooted both systems and now flow control to the printers is gone and I'm unable to change it with the stty command again. At one point I did actually change the bits after I changed the file permissions on /dev/ttyd0, (see attached console log) but they kept getting reset, and then finally I could no longer set the controls on. I have also tried using the TANDEM bit in the /etc/printcap (see attached) but this doesn't help either. Prior to the reboot I was not using the TANDEM bit, just the stty commands. I've consulted the documentation, Handbook sections 7.4, and still no go. Do you have any ideas as to what I'm doing wrong or should be doing instead? Thanks ahead of time for any advise you may have on this. Gary Nelson ------------------------------------------------------------------------------- Gary Nelson E-mail gnelson@toyshop1.az05.bull.com Jupiter & Platform 8 H/W Phoenix Bull Worldwide Information Systems Phoenix Az. USA Ph: (602)862-6917 Fax: (602)862-4402 ------------------------------------------------------------------------------- ------------------- CONSOLE OUTPUT WHEN BITS WOULD SET/RESET --------------- root@chopper# date Tue 11 Nov 07:08:13 MST 1997 root@chopper# chmod 666 /dev/ttyd0 root@chopper# ls -la /dev/ttyd* crw-rw-rw- 1 root wheel 28, 0 Nov 11 07:08 /dev/ttyd0 crw------- 1 root wheel 28, 1 May 29 23:07 /dev/ttyd1 crw------- 1 root wheel 28, 2 May 29 23:07 /dev/ttyd2 crw------- 1 root wheel 28, 3 May 29 23:07 /dev/ttyd3 root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echon -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# stty -f /dev/ttyd0 ixon ixoff ixany root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr ixon ixoff ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^Cl lnext min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# pwd / root@chopper# pr -l66 /etc/hosts | lp root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# lpc lpc> ? Commands may be abbreviated. Commands are: abort enable disable helpmay be abbreviated. Commands are: abort enable disable help restart status topq ? clean exit down quit start stop up lpc> clean all bambi: lpc> q root@chopper# ls -la /dev/ttyd* crw-rw-rw- 1 root wheel 28, 0 Nov 11 07:22 /dev/ttyd0 crw------- 1 root wheel 28, 1 May 29 23:07 /dev/dev/ttyd0 crw------- 1 root wheel 28, 1 May 29 23:07 /dev/ttyd1 crw------- 1 root wheel 28, 2 May 29 23:07 /dev/ttyd2 crw------- 1 root wheel 28, 3 May 29 23:07 /dev/ttyd3 root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# stty -f /dev/ttyd0 ixon ixoff ixany root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr ixon ixoff ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# pwd / root@chopper# pr -l66 foobar | lp^C root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr ixon ixoff ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^ ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# stty -f /dev/ttyd0 ixon ixoff ixany root@chopper# stty -ef /dev/ttyd0 speed 9600 baud; 0 rows; 0 columns; lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -ignbrk -brkint -inpck -ignpar -parmrk oflags: -opost -onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf discard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W root@chopper# ------------------------- PRINTCAP FILE ------------------------------ # @(#)printcap 5.3 (Berkeley) 6/30/90 # $Id: printcap,v 1.5 1996/10/13 16:52:33 joerg Exp $ # # This enables a simple local "raw" printer, hooked up to the first # parallel port. No kind of filtering is done, so everything you # pass to the "lpr" command will be printed unmodified. # # Remember, for further print queues you're going to add, you have to # chose different spool directories (the "sd" capability below), # otherwise you will greatly confuse lpd. # # For some advanced printing, have a look at the "apsfilter" package. # It plugs into the lpd system, allowing you to print a variety of # different file types by converting everything to PostScript(tm) # format. If you don't have a PostScript(tm) printer, don't panic, # but do also install the "ghostscript" package. # # Do also refer to section 7 (Printing) of the handbook. A local copy # can be found under /usr/share/doc/handbook/handbook.{html,latin1}. # bambi|lp|local line printer:\ :lp=/dev/ttyd0:sd=/var/spool/output/lpd/bambi:lf=/var/log/lpd-errs:br#9600:fs#0x0000001: # # Sample remote printer. The physical printer is on machine "lphost". # NB: you cannot perform any kind of local filtering directly. If # you need local filters (e.g. LF -> CR-LF conversion for HP printers), # create a filter script that recursively calls lpd with another -P # argument after filtering. # # lp:remote|sample remote printer:\ # :rm=mustang:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9711111844.AA18457>