Hi all,
I've got the following configuration:
Pentium 60MHz, 2 serial ports: 1x16450, 1x16550
Printer NEC P6 connected to serial port #2 (/dev/ttyS1)
Linux kernel V1.1.89
I'm trying to set up the serial port to correctly talk to the printer.
Under DOS this works fine, by specifing 'MODE COM2: 9600,n,8,1,B'
(the B is for retrying to send characters to the printer when the
device is not ready yet)
Under Linux I've tried several settings for the serial port, but
without succes. I can send files to the printer, but when the printer
signals that its buffer is full, this is not recognized by linux.
This means that I can send any file smaller then 2 KByte to the printer,
and it will print correctly, but files larger then 2 KByte are not
printed completely (the printer has an internal 2 KByte buffer).
I send files to the printer with 'cat filename > /dev/ttyS1'
The printer is set up for no parity, 9600 baud, rts/cts handshaking,
and that's what I've specified with stty (and this IS set, which I
verified with 'stty -a')
Can somebody tell me what I am doing wrong, or give me any hints?
Or, does anybody know how does initializes the serial port, so that
I can specify exactly the same settings under Linux?
All help appreciated,
Andries
---
------------------------------------
| Message is author's opinion only |
| |
| Andries Kruithof |
| Schlumberger Geco-Prakla |
------------------------------------