public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Crawford <psc@sat.dundee.ac.uk>
To: Malcolm Salisbury <m.salisbury@clear.net.nz>
Cc: linux-msdos@vger.kernel.org
Subject: Re: Using a dos program that detects a signal on the parallel port
Date: Tue, 27 Jul 2010 18:40:47 +0100	[thread overview]
Message-ID: <4C4F1A1F.6010908@sat.dundee.ac.uk> (raw)
In-Reply-To: <4C4E7123.2090500@clear.net.nz>

Dear Malcolm,
> I tested this today and no luck
>
> What should i put with the line $_lpt1 = ""
>
> if i put this it has no lpt port but if i put $_lpt1 = "lpr"
> it tries to print to the default printer (PDF) not read the port.

You don't want the printer, so put $_lpt1 = ""

Then try in /etc/dosemu/dosemu.conf

$_ports = $_ports, "range 0x3bc 0x3bf"
or:
$_ports = $_ports, "range 0x378 0x37a"

and:

$_irqpassing = "7"

Then start dosemu from a terminal window with the -s command line option 
and root access with:

sudo xdosemu -s

This will prompt you for your password to gain the necessary privileges.

> Also do i have to set the parallel port in the BIOS a particular way
>
> Normal
> ECP
> EPP

I think you will need EPP, maybe ECP.

However, before going very far, can you boot your PC in 'real' DOS (e.g. 
freeDOS) to see if the software works first, before worrying about 
various Linux/dosemu configurations?

Regards,
Paul
-- 
Dr. Paul S. Crawford
Satellite Station
Dundee University
Small's Wynd, Dundee,
DD1 4HN, U.K.
Tel: +44 (0)1382 38 4687
Email: psc@sat.dundee.ac.uk
The University of Dundee is a Scottish Registered Charity, No. SC015096

      parent reply	other threads:[~2010-07-27 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-25  7:42 Using a dos program that detects a signal on the parallel port Malcolm Salisbury
2010-07-26 13:27 ` Paul Crawford
     [not found]   ` <4C4E7123.2090500@clear.net.nz>
2010-07-27 17:40     ` Paul Crawford [this message]

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=4C4F1A1F.6010908@sat.dundee.ac.uk \
    --to=psc@sat.dundee.ac.uk \
    --cc=linux-msdos@vger.kernel.org \
    --cc=m.salisbury@clear.net.nz \
    /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