Professional Documents
Culture Documents
About
Contact us
Forums
Home
Linux How-to & Tutorials
Shell Scripts
RSS/Feed
nixCraft
Linux comes with many serial text and gui based serial communication programs. My
favorite is minicom - friendly menu driven serial communication program.
Let us see how to configure minicom for my Soekris net4801 Single Board Computer / embedded Linux device.
Install minicom
Use apt-get under Debian / Ubuntu Linux, enter:
$ sudo apt-get install minicom
If you are using Red hat Linux (RHEL) / CentOS / Fedora Linux, enter:
# yum install minicom
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 1 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Setup minicom
The -s option use to setup minicom. Type the following command at shell prompt:
$ minicom -s
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 2 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
1. UP arrow-up or k
2. DOWN arrow-down or j
3. LEFT arrow-left or h
4. RIGHT arrow-right or l
5. CHOOSE (select menu) Enter
6. CANCEL ESCape
You need to configure serial port. Use up and down arrows to select menus. Press down and select Serial port
setup:
To activate help menu press [CTRL+A] followed by [Z] for help on special keys:
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 3 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
minicom in action
You need to connect your serial device such as router or modem using modem cable. Once connected power on
device and type minicom command without -s option:
$ minicom -c on
(Fig: 05: minicom connected to one of my embedded Linux device via null modem cable [ click to enlarge
image])
The soekris embedded Linux / BSD board with AMD 266 Mhz CPU + 256M RAM. This device connected to
my computer using DB9 null modem cable. During the development you need to use minicom to install Linux
kernel, format filesystem and configure device.
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 4 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Hi,
I use minicom to connect to Solaris host, recently I got some problems because minicom send somenthing
on the wire that the host fell like a break signal going down to the obp(fortunatly didn’t happen on a
production system). I already removed all the intitializtion strings…Any ideas?
Thanks
Cheers
M
Reply
Marco,
If you do “man minicom”, you’ll find lots of options. I would suggest starting minicom with -o.
As a side note, I recommend kermit over minicom, it’s way better, as long as you create your own .kermrc
containing the options you usually use.
Reply
hi,
I want to ask you the relationship between comgt and minicom. When i execute the command
comgt, why I can find the information in the minicom window ?
Thanks.
Reply
Marco needs to edit /etc/default/kbd on his Solaris system to prevent such accidental breaks. Uncomment
the line:
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 5 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
KEYBOARD_ABORT=alternate
Reply
I am using a health checkup machine, connected to my redhat linux 4 system with minicom 2.0.0,which
sends data to serial port in a hexadecimal format only when it receives a command of 0×68 from the PC. i
had tried using stty -F /dev/ttyS0 9600 -parenb cs8 -cstopb but while using cat not getting anything from
the port. tried using echo “0×68! > /dev/ttyS0 but in vain. I had tried minicom by configuring it to
/dev/ttyS1 and also to /dev/ttyS0 but minicom is showing offline. i am unable to decide the serial port
because i have only one serial port which is being used for mouse. to the same port i had connected the
machine by unplugging the mouse. Please help me out.
Thanks in advance
Reply
hi,
i want to use minicom for connection to my GSM modem so that it can send message to particular
mobile..
can u tell me how shud i proceed for this…i only have idea for this.. i dnt know the details for that..
Reply
hello
Thank you for give the step how to configure serial communicatin on internet . my suggestion please
make one website there we can find all the linux/unix help topic with theory and graphically which is not
available in books.
Thank-you
rahul singh ( iiht meeerut ) faculty=N+,REDHAT LINUX
Reply
Hello,
I am trying to log on to my Cisco 836, bought second-hand as training material for the CCNA, and I am
having a few difficulties with it.
I was hoping more experienced folks could help me in troubleshooting the problem.
I installed minicom 2.2 on Vector Linux and configured it following the how=to above. When I run
minicom =c on, it shows Initializing modem, then goes back to the main menu and asks to “Press CTRL-
A Z for help on special keys”.
When I do press CTRL-A, it shows me as OFFLINE in the lower right corner. The same happens with
both ttyS0 and ttyS1.
Now a bit background information: Vector Linux kindly starts the serial ports on startup, and a dmesg
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 6 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
|grep ttyS reveals that both ttyS0 and ttyS1 are active.
The router itself is linked to the db25 port via a rolled cable and a RJ45 to DB25 adapter (all self made; I
do not exclude that the problem is due to my poor wiring skills).
I have no way of telling whether the router itself is working correctly or not, but if I connect it to my Lan,
I am able to see its IP address.
Any suggestion as to where the problem might lie would be very welcome.
Cheers,
Diego
Reply
Currently I have successfully setup virtualbox using serial port (/dev/ttyS0) and minicom (`minicom -s
/dev/ttyS0`) looks connect to /dev/ttyS0 as it shows
OPTIONS: I18n
Compiled on Jun 6 2008, 22:41:04.
Port /dev/ttyS0
Would you please to give me some advice or suggestion on how can I capture message sent to minicom
(from virtualbox)? Or how can I send command / debug from minicom?
Reply
Reply
I have a serial port(15 pin type) and i wanted to find the serial port (S0 or S1), so i tried the following
dmesg | grep ttyS but no warning or nothing comes up in the console, but i am taken to new prompt
$dmesg | grep ttyS
$
What should be done?
Reply
Reply
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 7 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Reply
hi,
i want to use minicom for connection to my GSM modem so that it can send message to particular
mobile..
can u tell me how shud i proceed for thisâ?¦i only have idea for this.. i dnt know the details for that..
Reply
hai,
i want send sms using gsm mobile using linux box.i need a C program to send the AT commands to gsm
mobile.pls send me the details regrading
Reply
I want to configure port no 12 to minicom, but under dev folder I didn’t found ttyS12. But I found ttysc.
So I configured port to /dev/ttysc. But after exiting setup, an error is thrown like “cannot open /dev/ttysc:
Input/output error”. How to overcome this error.
Thanks in advance.
Reply
This was most helpful, especially since I’m rusty in Solaris! Another file to check is /etc/system for the
following line:
set abort_enable = 0
You want it set to 1 (default), if you want to be able to initiate a break or Stop-A.
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 8 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Reply
Reply
Reply
Hi,
I use minicom on ubunto to connect via USB 2 serial device. When I type minicom -s and reach the Serial
port setup I don’t find baud rate of 57600 to select from. Please advise.
Thanks,
David
Reply
In a response to above questions: please realize that minicom does not set up your serial ports, this is the
job of your operating system. Also picking a random tty-name is not the best way to get a connection up
and running. I would suggest looking up a serial connection howto on tldp.org (if you’re running Linux),
or find some other appropriate documentation.
p.s. if `dmesg|grep tty` ‘presents you’ with a new prompt this means that there were no results. check
greps behaviour by creating a text file and then use `fgrep WORD FILE` or `cat FILE|grep WORD` to
check for words you know appear and some you know do not appear in this text file. when in doubt,
consult the manual, please
Reply
pls read some manuals and willingly learn.. “i have trouble please help me very much” is NOT the correct
way of asking people to spend their spare time helping you.
Reply
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 9 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Reply
My router is linked to the db25 port via a rolled cable and a RJ45 to DB25 adapter and minicom did not
work with /dev/ttyS0 or S1 and dmesg with grep ttyS* did not show anything but I noticed /dev/ttyUSB0
entry under /dev/ and when I set minicom to point to /dev/ttyUSB0 everyhting worked fine!
Reply
Kewl!
Now i can use my grasshopper (ICnova AP7000 Base) in a colorful terminal! :D
$ minicom -c on
Thank You! :)
Reply
Reply
dear . . .
I have ttyS0 , ttyS1, ttyS2 . I can see one of them only . How can i connect and use 3 of them at the
same time ?
Thank you .
Reply
Reply
I have done of the minicom set up, but when it comes to saving the file it states that i dont have the
permissions to save the file as dft. Im not sure if i have to be in root to save the file. Currently using
Kubuntu 10.10 at the moment. Trying to set up a Cisco Router.
Reply
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 10 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Reply
I think the issue with the saving of the file is still there, but i think that might be down to not being
able to get into root to save the file
Reply
Hi all,
I had installed minicom in my Linux PC with “Linux localhost.localdomain 2.6.23.1-42.fc8 #1 SMP Tue
Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux” installed. when i run minicom i can watch my
unit booting
Welcome to minicom 2.2
OPTIONS: I18n
Compiled on Sep 25 2007, 06:13:56.
Port /dev/ttyS0
RomBOOT
>Start AT91Bootstrap…
DRAM: 64 MB
Initializing Display
NAND: 256 MiB
DataFlash:AT45DB642
Nb pages: 8192
Page Size: 1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D00041FF (RO) Bootstrap
Area 1: D0004200 to D00083FF Environment
Area 2: D0008400 to D0041FFF (RO) U-Boot
Area 3: D0042000 to D0251FFF Kernel
Area 4: D0252000 to D083FFFF FS
*** Warning – bad CRC, using defaul
Reply
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 11 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Reply
hello friends,
we are doing a project on pci driver.
our project is write pci driver and use functionality of ARM7 through uart.
i am done with pci driver, now i want to check our driver for full fledge.
i have a problem, when i am starting comunication between two pc using db9 connectors, who will first
start the communication get full data & another side some data gets lost may be starting data.
plz tell me that how i will minimizes this problem?
what will i do in driver?
i am use platform “linux”………….
Rgards
parag
dhakeparag81@gmail.com
Reply
Hello,
When I tried to configure my minicom using minicom -s, it is displaying dev/modem instead of dev/ttyS0.
What does this mean? I need to connect my Embedded Linux board (ARM processor) to one of the ports.
Hence I need to configure minicom correctly before doing that. Any help is appreciated.
Thank you
Reply
I use minicom for modem with smslib. But when i connect, i cannot write the AT’s commands. My linux
terminal don’t show me the command AT that i write. Can somedy help me please.
Thank you
Reply
I am trying to use minicom within a bash script to logon to a remote computer, poll it to see if files for
downloading are present, and then download the files and process them accordingly. Can minicom be
used without user interaction? Is there a tutorial present pertaining the script language that minicom
supports? Thanks much, Greg Ennis
Reply
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 12 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Don’t bother with minicom unless you need modem functions. Otherwise, you can probably do what you
like with a package called “expect” – using the “autoexpect” script. This is a TCL script that allows you
to simply type your responses and then gives you an editable script. When combined with bash, you can
do a lot.
Also, have a look at curl and wget.
Reply
Hi everyone,
I’m not getting any output from minicom.. I’ve tried shorting pins 2 and 3 without result, and also
checked every pin with o-scope while typing or sending files – no response – just a constant +5V. I’m
using a prolific USB-to-serial adapter on OS X. I have no problems with input, so I’m pretty sure I’m on
the right serial device, just no output..
I’ve also tried all possible combinations of hardware/software flow control without any luck.
Arvid
Reply
Leave a Comment
Name *
E-mail *
Submit
Tagged as: configure minicom Soekris net4521, configure minicom Soekris net4801, minicom command,
minicom configuration, minicom console, minicom hyperterminal, minicom linux, minicom null modem, null
modem cable, serial communication program, serial devices, serial port, serial ports, single board computer,
soekris, soekris linux, soekris minicom, telecommunications program
Next post: Download of the day: atool for Managing File Archives of Various Types
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 13 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
nixCraft
Follow +1
+ 94,887
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 14 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Related Posts
Display real-time system information from your Linux box on a LCD with
LCDproc software
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 15 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Lighttpd mod_rrdtool: Monitor The Load, Requests Per Seconds and Traffic
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 16 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Vmware Linux Guest Add a New Hard Disk Without Rebooting Guest
Linux Find Out If PCI Hardware Supported or Not In The Current Running Kernel
Subscribe to nixCraft
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 17 of 18
Linux / UNIX minicom Serial Communication Program - nixCraft 08/10/14 16:49
Subscribe
©2004-2014 nixCraft. All rights reserved. Privacy Policy - Terms of Service - Questions or Comments - We are
proudly powered by Linux + Nginx + WordPress.
The content is copyrighted to nixCraft and may not be reproduced on other websites.
http://www.cyberciti.biz/tips/connect-soekris-single-board-computer-using-minicom.html Page 18 of 18