MINICOM question

hye guys,i wanted to set baudrate,data bit,partity bit, start bit, and stop bit in MINICOM, how can i do that? please lend me your idea guys. thanks

minicom -s => Serial Port Setup => E (eg; 9600 8N1) => Save setup as dfl => Exit .. this will deposit you into a terminal session ..

I guess I’m showing my age now … :cry:

tq so much…if i’m not using minicom, how can i set all these in terminal?

Erm, depends on what you mean by ‘terminal’ ?!

Do you mean you have an old-style serial console and you’re trying to log that on to a serial line ??

If so, check out /etc/init for files tty?.conf, which look something like this;

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345] and (
            not-container or
            container CONTAINER=lxc or
            container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn 
exec /sbin/getty -8 38400 tty1

If you want to add a serial line, create a file called ttyS0 (for example, serial console 0) and change the last line as appropriate. You can get more detail re; stop bits / parity etc from “man getty”.

To activate the file do;

initctl reload ttyS0

i’m not quite familiar with getty but it seems interesting, but how do i configure the data bits value, parity bits, start/stop bits, and baudrate using it? and how to send command to the serial port also?

Try “man getty” for details (!)