Tuesday, August 11, 2009

Linux terminal programs (гадны төхөөрөмжийг сериал портоор дебагдахад ашиглах линуксын терминал программууд)

Minicom: similar to HyperTerminal on Windows, but without GUI. It's usually included in linux distros.
One has to configure it before really use, by typing:
minicom -s

Add your user account to the uucp group (that owns /dev/ttySx devices) by adding the user account to this group in the /etc/group file.


C-Kermit: compared to minicom more powerful. Need to install it.
Here are short instructions how to install it:
- create a new folder in /opt (i.e., /opt/kermit)
- download and save compressed source from ftp://www.columbia.edu/kermit/archives/cku211.tar.gz in gunzip format
- decompress it, by typing
gunzip < file.tar.gz | tar xvf -

- make install for linux, by typing
make linux
and it produces an executable called
wermit
.
- try it out to make sure it works, by typing
./wermit

- copy it to public folder (i.e., /usr/bin) by renaming as
kermit
and give appropriate permission

Setting up direct null-modem connection over a serial port (i.e., COM1 or /dev/ttyS0) by using C-Kermit:
- start C-Kermit by typing
kermit

- from the kermit command line give following commands:
set modem type none
indicating null-modem connection
set line /dev/ttyS0
over the first serial port (COM1)
set speed 115200
with 115200 bps
set flow none
without flow control
set parity none
without parity check
connect
and finally start connection

No comments: