From: Momchil Velikov <velco@fadata.bg>
To: Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de>
Cc: Mario Scarpa <m.scarpa@mondonet.net>, linuxppc-dev@lists.linuxppc.org
Subject: Re: serial on lombard
Date: Thu, 14 Oct 1999 14:31:51 +0300 [thread overview]
Message-ID: <3805BF27.1944652E@fadata.bg> (raw)
In-Reply-To: 199910141119.NAA09122@opal.biophys.uni-duesseldorf.de
Michael Schmitz wrote:
>
> > alarm(0x2, 0x7ffff7b4, 0, 0x8, 0x7f7f7f7f) = 0
> > open("/dev/ttyS0", O_RDWR|O_NONBLOCK) = 3
> > --- SIGALRM (Alarm clock) ---
> > alarm(0, 0x1, 0, 0x8, 0x7f7f7f7f) = 0
> > rt_sigaction(0xe, 0x7ffff698, 0x7ffff728, 0x8) = 0
> > write(2, "minicom: cannot open /dev/ttyS0:"..., 59minicom: cannot open /dev/ttyS0: No such file or directory
> > ) = 59
>
> The port blocks on open, and you get a timeout.
But there is O_NONBLOCK, and according to POSIX,
" ... if O_NONBLOCK flags is set or if CLOCAL has been set,
the open() function shall return immediately without
waiting for the connection."
Note that this is the/a way to set CLOCAL -- open the device with O_NONBLOCK
and then tcsetattr() or whatever.
>
> The serial port won't open without carrier detected. minicom fails to set
> the port characteristics properly (or the Mac serial driver doesn't honor
> minicom's port settings), and gives a very confusing error message (open
> /dev/ttyS0 timed out would have been more accurate).
>
> Set ttyS0 to ignore DCD with stty clocal </dev/ttyS0, perhaps.
This should help, but the problem is in the driver.
Regards,
-velco
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~1999-10-14 11:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-14 19:12 serial on lombard Mario Scarpa
1999-10-14 11:06 ` Benjamin Herrenschmidt
1999-10-14 11:19 ` Michael Schmitz
1999-10-14 11:31 ` Momchil Velikov [this message]
1999-10-14 12:35 ` Chris Ridd
1999-10-14 13:06 ` Benjamin Herrenschmidt
1999-10-14 13:43 ` Momchil Velikov
1999-10-14 14:21 ` Michael Schmitz
1999-10-14 14:34 ` Benjamin Herrenschmidt
1999-10-14 14:53 ` Momchil Velikov
1999-10-14 16:10 ` Michael Schmitz
1999-10-15 7:26 ` Momchil Velikov
1999-10-14 16:00 ` Michael Schmitz
1999-10-14 16:10 ` Benjamin Herrenschmidt
1999-10-14 17:41 ` Michael Schmitz
1999-10-15 4:12 ` Mario Scarpa
1999-10-15 8:33 ` Benjamin Herrenschmidt
1999-10-15 20:17 ` Mario Scarpa
1999-10-15 8:42 ` Michael Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3805BF27.1944652E@fadata.bg \
--to=velco@fadata.bg \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=m.scarpa@mondonet.net \
--cc=schmitz@opal.biophys.uni-duesseldorf.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.