public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Com port question
@ 2002-11-17  1:10 Bernie Gardner
  0 siblings, 0 replies; 5+ messages in thread
From: Bernie Gardner @ 2002-11-17  1:10 UTC (permalink / raw)
  To: linux-msdos

I am trying to get CT, an amateur radio logging program to work in
dosemu.  Everything seems to be ok except for keying through the com
port.  The program has a feature to key the radio using the DTR line
from the com port, and this sort of works except that it is much to slow
to keep up.  Is there a way to speed up the com port?  Thanks for any
suggestions!

Bernie Gardner
w1az@arrl.net





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

* Re: Com port question
@ 2002-11-17 14:06 Stas Sergeev
  2002-11-17 16:33 ` Ged Haywood
  0 siblings, 1 reply; 5+ messages in thread
From: Stas Sergeev @ 2002-11-17 14:06 UTC (permalink / raw)
  To: linux-msdos

Hello.

Bernie Gardner wrote:
> slow to keep up.  Is there a way to speed up the com port?
Probably no - emulation is an emulation.
It works quite fast in a FIFO mode
(buffering), but when there is no
buffering and each operation must
be performed immediately, if falls
down with a perforance.
You can always try to use a direct
access to the com ports (bypassing
an emulation) but it is not something
that is recommended for the real use.
Try setting $_hogthreshold to 0, maybe
that will help a bit.
Btw, what dosemu version do you have?
The latest ones shold perform a little
better under some conditions.


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

* Re: Com port question
  2002-11-17 14:06 Com port question Stas Sergeev
@ 2002-11-17 16:33 ` Ged Haywood
  2002-11-17 18:10   ` Bernie Gardner
  0 siblings, 1 reply; 5+ messages in thread
From: Ged Haywood @ 2002-11-17 16:33 UTC (permalink / raw)
  To: Stas Sergeev; +Cc: linux-msdos

Hi there,

On Sun, 17 Nov 2002, Stas Sergeev wrote:

> Bernie Gardner wrote:
> > slow to keep up.  Is there a way to speed up the com port?
> Probably no - emulation is an emulation.
> It works quite fast in a FIFO mode (buffering),

I do not think FIFO buffering will help a program which manipulates
the DTR line directly, as the UART is not actually sending data in
the normal way - it's just being used as a 1-bit data latch.

[snip]

> You can always try to use a direct access to the com ports
> (bypassing an emulation) but it is not something that is recommended
> for the real use.  Try setting $_hogthreshold to 0, maybe that will
> help a bit.

Unless you can get the source for the program and recompile it for
Linux, I think direct access is the best way to go in this case.

73,
Ged.


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

* Re: Com port question
@ 2002-11-17 18:09 Stas Sergeev
  0 siblings, 0 replies; 5+ messages in thread
From: Stas Sergeev @ 2002-11-17 18:09 UTC (permalink / raw)
  To: linux-msdos

Hello.

Ged Haywood wrote:
> I do not think FIFO buffering will help a program which manipulates
> the DTR line directly, as the UART is not actually sending data in
> the normal way - it's just being used as a 1-bit data latch.
Right, that's what I implied to actually.
It works quite fast in a FIFO mode [only
when the actual data transfer is concerned
of course]. In all other cases it falls
down with perforance [and the DTR case
is the one of those].


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

* Re: Com port question
  2002-11-17 16:33 ` Ged Haywood
@ 2002-11-17 18:10   ` Bernie Gardner
  0 siblings, 0 replies; 5+ messages in thread
From: Bernie Gardner @ 2002-11-17 18:10 UTC (permalink / raw)
  To: linux-msdos

On Sun, 2002-11-17 at 11:33, Ged Haywood wrote:
> Hi there,
> 
> > You can always try to use a direct access to the com ports
> > (bypassing an emulation) but it is not something that is recommended
> > for the real use.  Try setting $_hogthreshold to 0, maybe that will
> > help a bit.
> 
> Unless you can get the source for the program and recompile it for
> Linux, I think direct access is the best way to go in this case.
> 
> 73,
> Ged.
> 
> 

Thanks to you and Stas Sergeev for the thoughts. I am using dosemu
version 1.0.2.0 on SuSE 8.1 if it matters.  It's possible if I have to
ask I shouldn't do it, but can you give me a hint how to set up for
direct access to the serial port?

Thanks and 73,

Bernie
w1az@arrl.net


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

end of thread, other threads:[~2002-11-17 18:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-17 14:06 Com port question Stas Sergeev
2002-11-17 16:33 ` Ged Haywood
2002-11-17 18:10   ` Bernie Gardner
  -- strict thread matches above, loose matches on Subject: below --
2002-11-17 18:09 Stas Sergeev
2002-11-17  1:10 Bernie Gardner

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