Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-11-2005, 06:13 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Unable to communicate using serial port (COM1) /dev/ttys0

Hi all,

I am trying to communicate between a Linux machine and a windows machine thru a serial port null modem connection. (I actually tried from windows to windows using hyperterminal feature, it works). But from Linux I am not able to communicate. if I try to write to the device using echo it gives the following error.

[root@vinayswaroop root]# echo hello > /dev/ttys0
bash: /dev/ttys0: Input/output error

if I give setserial -a also it gives the same thing.

[root@vinayswaroop root]# setserial -a /dev/ttys0
/dev/ttys0: Input/output error

I tried minicom even with that I am not able to communicate. If anyone has done this before please help me.

My main goal is to redirect all the kernel boot messages to the hyper terminal in windows 2000. for that I am using kernel command line arguments (GRUB command line). using console=/dev/ttys0,115200 option. since it didn't work I tried the above mentioned steps to check whether the serial port works.

Thanksss in advance


Last edited by vinaybms; 03-11-2005 at 06:21 AM.
Old 03-11-2005, 09:08 AM   #2
LQ Newbie
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I fixed it. the problem was I was using /dev/ttys0 instead of ttyS0.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
writing to serial port, /dev/ttyS0 togunter Programming 2 06-08-2008 10:27 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 09:07 PM
speed/specs for ttyS0 or some other standard serial port? BigDawg Programming 3 01-23-2004 12:47 PM
Serial comms - script to poll /dev/ttyS0 chr15t0 Linux - Networking 1 07-08-2003 11:18 PM
Telnet into Cisco router via /dev/ttyS0 (aka COM1 serial port) naesyllek Linux - Networking 2 06-25-2003 06:33 PM

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration