mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* setserial is lieing to us, how to fix?
@ 2005-03-08  4:41 Gene Heskett
  2005-03-08  5:05 ` Alan Curry
  0 siblings, 1 reply; 3+ messages in thread
From: Gene Heskett @ 2005-03-08  4:41 UTC (permalink / raw)
  To: linux-kernel

Greetings;

I'm on the horn with another linux user, and we have a question re the 
setserial command.  Its reporting the base baud rate, but not the 
actual.  We need to know the actual settings in use at the moment for 
a serial port. How can we discover this?

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.34% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.

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

* Re: setserial is lieing to us, how to fix?
  2005-03-08  4:41 setserial is lieing to us, how to fix? Gene Heskett
@ 2005-03-08  5:05 ` Alan Curry
  2005-03-08  6:00   ` Gene Heskett
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Curry @ 2005-03-08  5:05 UTC (permalink / raw)
  To: gene.heskett; +Cc: linux-kernel

Gene Heskett writes the following:
>
>I'm on the horn with another linux user, and we have a question re the 
>setserial command.  Its reporting the base baud rate, but not the 
>actual.  We need to know the actual settings in use at the moment for 
>a serial port. How can we discover this?

stty speed -F /dev/ttyXY

The setserial spd_* options can affect speed but they are obsolete so you
shouldn't be using them. If stty says 38400 then the setserial spd_* is in
effect. If spd_normal, then 38400 means 38400. If spd_hi, then 38400 means
57600. If spd_vhi, then 38400 means 115200. If spd_shi, then 38400 means
230400. If spd_warp, then 38400 means 460800. Then there's spd_cust, which is
more weird.

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

* Re: setserial is lieing to us, how to fix?
  2005-03-08  5:05 ` Alan Curry
@ 2005-03-08  6:00   ` Gene Heskett
  0 siblings, 0 replies; 3+ messages in thread
From: Gene Heskett @ 2005-03-08  6:00 UTC (permalink / raw)
  To: linux-kernel

On Tuesday 08 March 2005 00:05, Alan Curry wrote:
>Gene Heskett writes the following:
>>I'm on the horn with another linux user, and we have a question re
>> the setserial command.  Its reporting the base baud rate, but not
>> the actual.  We need to know the actual settings in use at the
>> moment for a serial port. How can we discover this?
>
>stty speed -F /dev/ttyXY
>
Just what the doctor ordered, many thanks.

>The setserial spd_* options can affect speed but they are obsolete
> so you shouldn't be using them. If stty says 38400 then the
> setserial spd_* is in effect. If spd_normal, then 38400 means
> 38400. If spd_hi, then 38400 means 57600. If spd_vhi, then 38400
> means 115200. If spd_shi, then 38400 means 230400. If spd_warp,
> then 38400 means 460800. Then there's spd_cust, which is more
> weird.
>-
>To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.34% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.

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

end of thread, other threads:[~2005-03-08  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-08  4:41 setserial is lieing to us, how to fix? Gene Heskett
2005-03-08  5:05 ` Alan Curry
2005-03-08  6:00   ` Gene Heskett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®