Unix Technical Forum

Unable to write to serial port

This is a discussion on Unable to write to serial port within the Linux Operating System forums, part of the Unix Operating Systems category; --> Problem: Writes to /dev/ttyS1 fail to produce any output. Reads work ok. No problems are observed when same hardware ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:37 AM
Jon Seymour
 
Posts: n/a
Default Unable to write to serial port

Problem:

Writes to /dev/ttyS1 fail to produce any output. Reads work ok. No
problems are observed when same hardware is booted under Windows XP.

Testing Procedure:

I have connected another machine (remote terminal) via a null modem
cable and tried to type text into both the local terminal (running
minicom) and the remote terminal. When I type characters in the remote
terminal I see them appear in the local terminal. When I type
characters in the local terminal, I do not see them in the remote
terminal.

I have tried using minicom 2.00 and 2.1. I have also tried cat
somefile.txt > /dev/ttyS1. I have tried various combinations of
hardware and software flow control. I have tried various
communications speeds (115200, 38400).

Hardware Environment:

Linux RH8 2.4.18-14
IBM NetVista (Model Type 2289)

Any clues on what might be going wrong or how I further diagnose this
problem?

jon.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:37 AM
Michael Heiming
 
Posts: n/a
Default Re: Unable to write to serial port

Jon Seymour <jon@zeta.org.au> wrote:
> Problem:


> Writes to /dev/ttyS1 fail to produce any output. Reads work ok. No
> problems are observed when same hardware is booted under Windows XP.


Check the permissions:
$ ls -l /dev/ttyS1

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:37 AM
Jon Seymour
 
Posts: n/a
Default Re: Unable to write to serial port

Michael Heiming <michael+USENET@www.heiming.de> wrote in message news:<va5gnb.qqk.ln@news.heiming.de>...
> Jon Seymour <jon@zeta.org.au> wrote:
> > Problem:

>
> > Writes to /dev/ttyS1 fail to produce any output. Reads work ok. No
> > problems are observed when same hardware is booted under Windows XP.

>
> Check the permissions:
> $ ls -l /dev/ttyS1



Ok, I tried this and I note that it looks like this:

crw-rw-r-- root uucp ttyS0
crw-r--r-- root root ttyS1

Thing is, I am running minicom as root, so I wouldn't have thought it
would matter too much.

Out of curiousity I connected the remote machine via ttyS0 and was
able to use it without problems.

I added some trace code to the minicom source and verified that the
write() calls to the file descriptor associated with /dev/ttyS1 were
apparently succeeding (returning a value of 1 for 1 character of
output). I suspect I am going to have to instrument the kernel in
order to understand what is going on here.

jon.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:38 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Unable to write to serial port


"Michael Heiming" <michael+USENET@www.heiming.de> wrote in message
news:va5gnb.qqk.ln@news.heiming.de...
> Jon Seymour <jon@zeta.org.au> wrote:
> > Problem:

>
> > Writes to /dev/ttyS1 fail to produce any output. Reads work ok. No
> > problems are observed when same hardware is booted under Windows XP.

>
> Check the permissions:
> $ ls -l /dev/ttyS1


And use Kermit, not minicom. It's incorporated into recent RedHat releases
in the "ckermit" package, and is wildly more reliable and configurable.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com