linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 16550a baud_base < 9600 ???
@ 2005-08-29 13:05 Horváth Ákos Péter
  2005-08-30 14:18 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Horváth Ákos Péter @ 2005-08-29 13:05 UTC (permalink / raw)
  To: linux-serial

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?

thanks,

MaXX

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 16550a baud_base < 9600 ???
  2005-08-29 13:05 16550a baud_base < 9600 ??? Horváth Ákos Péter
@ 2005-08-30 14:18 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2005-08-30 14:18 UTC (permalink / raw)
  To: Horv?th ?kos P?ter; +Cc: linux-serial

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-30 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-29 13:05 16550a baud_base < 9600 ??? Horváth Ákos Péter
2005-08-30 14:18 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).