Have a Question?
Print

00215: Setting the baud rate and handshaking protocol for an aliased serial device

Title:

Setting the baud rate and handshaking protocol for an aliased serial device

Description:

In order to ensure that a serial device is properly configured before use, set the configuration of the device upon opening. If this isn’t done, the device may be in an unanticipated configuration which may result in communication failure, garbage on the printout, or incomplete transmissions. 

The following alias line demonstrates how to accomplish this under Unix: 

alias P1 /dev/tty41 “Printer” cr,execon=”stty 9600 cs8 -parenb -cstopb ixon -ixany ixoff </dev/tty41″ 

This will configure the tty41 device to 9600 baud, 8-N-1, with XON/XOFF protocol. 



Last Modified: 12/22/1997 Product: PRO/5 Operating System: Unix

BASIS structures five components of their technology into the BBx Generations.

Table of Contents
Scroll to Top