Operating System - Linux
1748265 Members
3895 Online
108760 Solutions
New Discussion юеВ

print fails on Serial attached printer

 
Maaz
Valued Contributor

print fails on Serial attached printer

after attaching this printer via serial cable(to serial port), I did the following
# ls > /dev/ttyS0

after 2 or 3 seconds, I got the prompt back, but nothing prints.

no messages/hints in dmesg and /var/log/messages.

please help
6 REPLIES 6
Tim Nelson
Honored Contributor

Re: print fails on Serial attached printer

did you set up the port baud rate, parity, xon/xoff, etc ?

stty can be used.

this is stretching my memory, you man need to do some googling...
Steven Schweda
Honored Contributor

Re: print fails on Serial attached printer

> [...] this printer [...]

Not a useful description.

> [...] serial cable [...]

You think that there's only one kind of
serial cable?

Bad/wrong cable?

Mismatched serial port characteristics
(speed, bits, parity)?

man stty
Huc_1
Honored Contributor

Re: print fails on Serial attached printer

Here on fedora 12

ls -l /dev/ttyS0
crw-rw----. 1 root dialout 4, 64 d├Г┬йc 24 06:45 /dev/ttyS0

Perhaps you need to check that

enjoy, life.

Jean-Pierre Huc
Smile I will feel the difference
Maaz
Valued Contributor

Re: print fails on Serial attached printer

its SLES 10 SP2

# ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 Dec 24 15:10 /dev/ttyS0

# lpstat -t
scheduler is running
system default destination: printer
device for printer: serial:/dev/ttyS0?baud=9600
printer accepting requests since Jan 01 00:00
printer printer is idle. enabled since Jan 01 00:00

# stty -F /dev/ttyS0
speed 9600 baud; line = 0;
-brkint -imaxbel

# stty -a < /dev/ttyS0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

Steven Schweda
Honored Contributor

Re: print fails on Serial attached printer

> # stty -a < /dev/ttyS0
> [...]

Wonderful. Now, if we knew anything at all
about the configuration of the printer, or
the cable, ...

If you can't supply any useful information,
then you might do better with prayer to the
all-knowing deity of your choice.
haytham_hosny
Esteemed Contributor

Re: print fails on Serial attached printer

Hi ,

please go through the below link

http://aplawrence.com/Unixart/printers.html

hope this helps you

Thanks
Haytham Hosny
Haytham Hosny