public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Edenyard <mail@edenyard.co.uk>
To: easlab@absamail.co.za, linux-msdos@vger.kernel.org
Subject: Re: Can I use DOSEMU for testing device driver code?
Date: Fri, 13 Feb 2004 08:17:47 +0000	[thread overview]
Message-ID: <402C882B.9080908@edenyard.co.uk> (raw)
In-Reply-To: <S266614AbUBLVxi/20040212215338Z+303@vger.kernel.org>

easlab@absamail.co.za wrote:

> All my DOS application can't do is toggle 2 pins of the par-port.
> No interupts.      dosemu-1.1.99 as root, won't do it, even with
> editing dosemu.conf to:
>      $_ports { device /dev/lp1 fast range 0x378 0x37f } # lpt1
> and other combinations
> 
> Under DOS these are the correct port addresses.
> Has any body ever done this ?
> 
> == Chris Glur.

	It appears that DOSEMU has BIG problems when one wants to do this sort
of thing and nobody quite seems to know why. Some time ago, I posted a
similar problem about a DOS program that I had which writes characters
to a serial port and then has to toggle the RTS line (within 50
milliseconds of the last bit of the last character going out of the TX
shifter) so that the reply can come back - the RS232 interfaces to a
half-duplex RS485, hence the RTS controls direction, send or receive.

	I find that I can write the characters in my program when running under
DOSEMU 1.1.99 and they do eventually come out of the socket round the
back of the PC but there's no telling when. That makes it impossible to
know when to toggle RTS, since reading the correct status bit
(presumably emulated by DOSEMU, not the REAL bit in the UART) to see when
the shifter's empty is obviously NOT related to the timing of the actual
characters coming out of the hardware.

	I, like you, have tried all sorts of permutations of using $_ports,
etc., but to no avail. If you ever find a solution, I'd be delighted to
hear it. Last time I asked about this on the mailing list, the response
I got was, "What's RTS?".... That wasn't from Bart, by the way. He seems
to have answers for most things. Not for this, though!

	Cheers,

		Gerald.






  reply	other threads:[~2004-02-13  8:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-12 21:53 Can I use DOSEMU for testing device driver code? easlab
2004-02-13  8:17 ` Edenyard [this message]
2004-02-13 12:01   ` Bart Oldeman
2004-02-14 12:52     ` Edenyard
2004-02-15  4:58       ` Ryan Underwood
2004-02-16 11:27         ` Edenyard
2004-02-17  7:52           ` Ryan Underwood
2004-02-17  9:36           ` Ged Haywood
2004-02-15  5:04 ` Ryan Underwood
     [not found] <4034D439.5080308@edenyard.co.uk>
2004-02-19 18:36 ` Ged Haywood
  -- strict thread matches above, loose matches on Subject: below --
2004-02-15 11:15 Stas Sergeev
2004-02-13 20:12 Stas Sergeev
2004-02-12  6:11 synthespian
2004-02-12 10:15 ` Ryan Underwood
2004-02-14 19:00   ` EL Henry
2004-02-15  4:53     ` Ryan Underwood

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=402C882B.9080908@edenyard.co.uk \
    --to=mail@edenyard.co.uk \
    --cc=easlab@absamail.co.za \
    --cc=linux-msdos@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox