public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* serial port speeds >115k; PnP modem ID must contain modem substring
@ 2003-02-21 20:09 Tim
  2003-02-22  4:56 ` whitnl73
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Tim @ 2003-02-21 20:09 UTC (permalink / raw)
  To: linux-serial

I have a Diamond/Supra v90 ISA modem (model SUP2124) in my
Linux system running 2.4.20.  I've noticed that for the
type of file I commonly access (large html text table) 115k
port speed seems to be a significant bottleneck.  (These
files compress to <10% of raw size.  Transfer speed is
reported as ~10.5kByte/s, even if I reduce my modem speed
from the typical 45kbps to 28.8.)  The modem documentation
says it is capable of 230k port speed, so I tried specifying
230400 in my ppp config, which resulted in 9600 baud port
speed; stty returns an error.

At this point in my education, my guess is that the modem is
being treated like a 16550A without extended FIFOs or 230k
port speed.  If my modem was detected as a modem by Linux,
would setserial -a show something more?

# setserial -a /dev/ttyS3
/dev/ttyS3, Line 3, UART: 16550A, Port: 0x02e8, IRQ: 10
        Baud_base: 115200, close_delay: 50, divisor: 0
        closing_wait: 3000
        Flags: spd_normal skip_test

I am not a programmer, but have been looking at the comments
in serial.c:

There seems to be an ISA PnP device device search, the success
of which depends on finding the string "modem" in PnP id:
  dev->name or dev->bus->name must contain "modem" substring;

However, the modem in this system was installed with PnP
disabled and does not have modem in its string:
# ANSI string -->SupraExpress 56i Voice<--

What are the consequences of failing this test?  If the
string were changed, could the test succeed with the modem
jumper not in PnP mode?

There seems to be a "quickie test to see how big the FIFO is".
How can I cause the results of that test to be logged?

I now have CONFIG_SERIAL=y.
If I compile serial as a module, are there parameters that
can be added to modules.conf to enable available features
beyond what a 16550A has, or perhaps someone has patches
that would enable these features?

TIA,
Tim.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: port speeds >115k
@ 2003-02-24 19:01 Ed Vance
  0 siblings, 0 replies; 13+ messages in thread
From: Ed Vance @ 2003-02-24 19:01 UTC (permalink / raw)
  To: 'Tim'; +Cc: linux-serial

On Mon, Feb 24, 2003 at 9:58 AM, Tim wrote:
> 
> stty -F /dev/ttyS3 230400
> stty: /dev/ttyS3: unable to perform all requested operations
> 
> > > If the doco says it can run faster than 115200, it should 
> > > also tell what you have to do to make it do so.
> > 
> > Yes.  It will likely say (or imply) to use a driver 
> > they supply for Windows only.                                 
> > ^^^^^^^^^^^
> 
> Ha! ~"All our 56k modems are capable of supporting 230k ... go find
> a driver from someone else", actually.  Or try to ID the chipset &
> find the datasheet.
> 
> > > > If my modem was detected as a modem by Linux,
> > > > would setserial -a show something more?
> > > 
> > > It was detected as a serial port.  Linux does not detect modems at
> > > startup.
> 
> I guess all that modem stuff in serial.c is just for PnP 
> addr/irq init.
> 
> > > There seems to be a "quickie test to see how big the FIFO is".
> > > How can I cause the results of that test to be logged?
> > Is this test done by some Linux utility?
> 
> grep quickie drivers/char/serial.c
> 
> > > Internal modems usually just have a simulated uart for software
> > > compatibility and baud rate is irrelevant (same for 
> parity, stop bits,
> > > FIFO, etc). Set to 5 baud and see if you get same performance.
> 
> Well I noticed stty <anyspeed> makes no dif in an xterm, or the 
> getty on a vc, but with 
> http://members.gate-way.net/delt/test/500k.html
> my hardware ISA modem behaves like:
> 
> CARRIER	PORT	AVG.RATE
> =======	====	========
> 46k	115k	10.5kB/s
> 26k	115k	10.5kB/s
> 14k	115k	10.5kB/s
> 46k	 57k	 5.3kB/s
> 
> For viewing large html text tables with a fast browser like Dillo,
> 230k could ~double the speed of the whole process.
> 
> > I set to 300 baud and couldn't connect.  Then at 1200 baud 
> > it connected but download speeds were around 60 bytes/sec. 
> > I estimated the received rate from the /proc dir and it was 
> > close to 1200 baud.  So mine must have a real UART.
> > 
> > Some modems brag that they can do 230.4k baud.  This is a 
> > serial port speed.  So it seems like a real UART.  So what 
> > percent of internal modems will operate at a high baud rate 
> > when one specifies low baud rate?
> 
> [snip]

Hi Tim,

For a real 16550A UART, you cannot exceed the "baud_base" frequency, 
by calculating a new divisor, because the divisor would have to be 
less than one - and the 16550A can't do that. (16950 can) If the 
modem really supports a 230kb/sec UART rate, then there must either 
be a way to tell the card to either generate a higher speed base 
clock or change the UART's prescaler value. A real 16550A UART has 
a fixed prescaler that always divides the base clock by 16.

If you find a way to get a higher speed base clock, then use 
setserial to set the new baud_base value (must be 230kb or higher) 
and the warp flag that tells the serial driver to actually calculate 
a divisor for 230kb (spd_shi) when the user sets 38.4Kb (highest 
standard speed encoded in ye olde 4-bit termio baud rate field).

Ed

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: port speeds >115k
@ 2003-02-24 20:28 Ed Vance
  0 siblings, 0 replies; 13+ messages in thread
From: Ed Vance @ 2003-02-24 20:28 UTC (permalink / raw)
  To: 'Steven Bradley'; +Cc: 'linux-serial'

On Mon, Feb 24, 2003 at 11:20 AM, Steven Bradley wrote:
> Sorry to intrude, but ...
> 
> I suspect the interest in 230K is due to the 25 Mhz Courer USRobotics
> modems or similar species of modem.  Well, I would like to ask what is
> wrong with 115.2Kbps?
> 
> Let me be more specific with an example:
> 
> Assuming you have a 53Kbps connection, fastest available under 
> FCC current regulations limited power output, you would need a 
> throughput of 212Kbps if your data will compress 4:1 ratio 
> between computer and modem.  

I think 56kb is limited by the possibility of routing on a T-system
link that uses robbed-bit signaling. Anybody know for sure?

> In the earlier days before PPP and TCP/IP, data would 
> compress this much
> if it were certain combinations of ASCII or repetitive sequences of
> characters, such as binary empty sectors, for example.  
> 
> However, in practice, using TCP/IP over PPP, you rarely see this level
> of compression and 2:1 is more likely closer to what you will see.  If
> you are using 2:1, you would only need 106Kbps to achieve full
> efficiency because the mix of characters between modem and computer do
> not usually compress to 4:1 when using a PPP connection due to headers
> and control data which does not compress.
> 
> Even if you did have data which would benefit from the higher speed,
> the hardware flow control (CTS/RTS) would throttle it down for the
> RARE instances where this case may exist.  In most it would not.
> 
> Now that was assuming a full 53K connection, in practice, 44-50K are
> more common, assuming you have a 45K connection, it would only be
> 90Kbps throughput needed between computer and modem for a 2:1
> compressable data stream.
> 
> I thought this information may be of some interest, Steven

yep. Glad to hear from you. If 230kb has little throughput benefit 
over 115kb, I would use 115kb to minimize the number of data overruns.
I would be interested in hearing from anybody that has experience of
running at both digital side speeds with these modems under the
2.4 kernel. 

Cheers,
Ed

>  [ snip ]
> 
> -- 
> Steven Bradley / KG4UZR   121 Cambridge Drive, Longwood, FL  
> 32779-5707  USA
> steven@sgb.dyndns.org                 Home: (407) 862-7226 or 
> (407) 869-4598
> 

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

end of thread, other threads:[~2003-02-25  1:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-21 20:09 serial port speeds >115k; PnP modem ID must contain modem substring Tim
2003-02-22  4:56 ` whitnl73
2003-02-22  9:20   ` David Lawyer
2003-02-23 15:45 ` PnP Rage Hal MacArgle
2003-02-24  4:24   ` David Lawyer
2003-02-24 14:05     ` Hal MacArgle
2003-02-24  5:59 ` serial port speeds >115k; PnP modem ID must contain modem substring rich+ml
2003-02-24  7:11   ` David Lawyer
2003-02-24 22:50     ` rich+ml
2003-02-24 17:57   ` port speeds >115k Tim
2003-02-25  1:25     ` whitnl73
  -- strict thread matches above, loose matches on Subject: below --
2003-02-24 19:01 Ed Vance
2003-02-24 20:28 Ed Vance

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