Serial printer communication and the number of stop bits
Kurt Pfeifle
k1pfeifle at gmx.net
Tue Oct 16 08:09:25 PDT 2007
Preben wrote:
> I wonder why it's not possible to set the number of stop bits for the
> serial printer communication?
It *IS* possible.
You can read up all additional parameters to modify behavior of the
serial backend here:
http://localhost:631/help/spec-ipp.html?QUERY=device-uri#device-uri
Quote:
"serial"
-------
The device-uri will be of the form
"serial:/dev/filename?baud=value+parity=value+flow=value". The baud
value is the data rate in bits per second; the supported values
depend on the underlying hardware. The parity value can be one of
"none", "even", or "odd". The flow value can be one of "none",
"soft" (XON/XOFF handshaking), "hard" or "rts/cts" (RTS/CTS
handshaking), or "dtrdsr" (DTR/DSR handshaking).
>From that I conclude that using a device URI similar to
serial:/dev/ttyS0?parity=even
serial:/dev/ttyS0?parity=odd
in your lpadmin command or in the web interface line edit box will do
what you want it to do.
--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH ..................... Hedelfinger Strasse 58
A RICOH Company ........................... D-70327 Stuttgart/Germany
More information about the cups
mailing list