From: Theodore Ts'o <tytso@mit.edu>
To: Horv?th ?kos P?ter <maxx@inf.bme.hu>
Cc: linux-serial@vger.kernel.org
Subject: Re: 16550a baud_base < 9600 ???
Date: Tue, 30 Aug 2005 10:18:23 -0400 [thread overview]
Message-ID: <20050830141823.GA25108@thunk.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0508291501020.26828@mj.opentvnet.hu>
On Mon, Aug 29, 2005 at 03:05:56PM +0200, Horv?th ?kos P?ter wrote:
> Hi all,
>
> I need to use serial communication with baud rates under 9600. I tried the
> uart 16550a linux driver, but found that setserial gives back invalid
> argument. The cause is that serial_core.c and 8250.c explicitly disallow
> these settings. Why?
>
> The quick & dirty solution (simply eliminating these limit checks in
> serial_core.c and 8250.c) does GPF. Ok :)
>
> Is it possible now to do serial communication with a device which can only
> 1200 baud?
You don't need to edit the serial driver to use baud rates under 9600.
The baud_base argument is not what is used to set the baud rate; it is
used to indicate the clock crystal in the serial card utilized to
calculate the baud rate divisor which is programmed into the UART
given a specific required baud rate.
If you are using setserial to set the baud rate, you're using the
wrong tool, and you're misunderstanding what you need to do.
Use the stty command to set the baud rate on a port.
- Ted
prev parent reply other threads:[~2005-08-30 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-29 13:05 16550a baud_base < 9600 ??? Horváth Ákos Péter
2005-08-30 14:18 ` Theodore Ts'o [this message]
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=20050830141823.GA25108@thunk.org \
--to=tytso@mit.edu \
--cc=linux-serial@vger.kernel.org \
--cc=maxx@inf.bme.hu \
/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.