Raw access to serial ports, Instruction manual – StarTech.com CONYX ECS0016 User Manual

Page 117

Advertising
background image

Instruction Manual

110

Raw Access to Serial Ports

Access to Serial Ports

You can tip and stty to completely bypass the portmanager and have raw
access to the serial ports.
When you run tip on a portmanager controlled port, portmanager closes
that port, and stops monitoring it until tip releases control of it.
With stty, the changes made to the port only “stick” until that port is closed
and opened again, so it is doubtful that people will want to use stty for
more than initial debugging of the serial connection.
If you want to use stty to configure the port, you can put stty commands
in /etc/config/scripts/portXX.init, which gets run whenever portmanager
opens the port.
Otherwise, any setup you do with stty will get lost when the portmanager
opens the port (the reason that portmanager sets things back to its config
rather than using whatever is on the port, is so the port is in a known
good state, and will work, no matter what things are done to the serial
port outside of portmanager).

Accessing the Console Port

The console dial-in is handled by mgetty, with automatic PPP login
extensions. mgetty is a smart getty replacement, designed to be used
with Hayes compatible data and data/fax modems. mgetty knows about
modem initialization, manual modem answering (so your modem doesn’t
answer if the machine isn’t ready), UUCP locking (so you can use the
same device for dial-in and dial-out). mgetty provides very extensive
logging facilities. All standard mgetty options are supported.

Advertising