Saturday, June 30, 2012

Serial Terminal for linux

There are several ways to connect to a device with serial port console.
Example settings are for Sun HW, and Cisco routers.


Create settings file

# cat >/etc/minirc.sunterm
pu baudrate         9600
pu bits             8
pu parity           N
pu stopbits         1
pu minit            ~^M~
# minicom sunterm


$ screen /dev/ttyS0 9600,cs8,-parenb,-cstopb,-hupcl

Parameters from man stty:
9600: baud setting
cs8: character size
-parenb: disable parity detection
-cstopb: one stop bit per character
-hupcl: do not hangup on last connection

No comments:

Post a Comment