LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2005, 05:13 AM   #1
vinaybms
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

Vinay

Last edited by vinaybms; 03-11-2005 at 05:21 AM.
 
Old 03-11-2005, 08:08 AM   #2
vinaybms
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.
 
  


Reply


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 09: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 08:07 PM
speed/specs for ttyS0 or some other standard serial port? BigDawg Programming 3 01-23-2004 11:47 AM
Serial comms - script to poll /dev/ttyS0 chr15t0 Linux - Networking 1 07-08-2003 10:18 PM
Telnet into Cisco router via /dev/ttyS0 (aka COM1 serial port) naesyllek Linux - Networking 2 06-25-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:17 AM.

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