Bi-directional parallel port driver

We have a device that requires bi-directional communication
over a parallel port. Since dev.par does not support reads,
I was wondering if anyone has developed a bi-directional
parallel port device driver that they are willing to share.

Any help would be greatly appreciated!

Chris Milette
Software Remodeling, Inc.

Hi Chris,

Check out:

http://support.qnx.com/support/bok/solution.qnx?5436

Take care!

Erick.


Chris Milette <cmilette@softwareremodeling.com> wrote:

We have a device that requires bi-directional communication
over a parallel port. Since dev.par does not support reads,
I was wondering if anyone has developed a bi-directional
parallel port device driver that they are willing to share.

Any help would be greatly appreciated!

Chris Milette
Software Remodeling, Inc.

Thanks.

One follow-up question.

Is the Extended Control Register for ECP located at offset
0x402 from the PPI base address?

Chris

Erick Muis wrote:

Hi Chris,

Check out:

http://support.qnx.com/support/bok/solution.qnx?5436

Take care!

Erick.

Chris Milette <> cmilette@softwareremodeling.com> > wrote:
We have a device that requires bi-directional communication
over a parallel port. Since dev.par does not support reads,
I was wondering if anyone has developed a bi-directional
parallel port device driver that they are willing to share.

Any help would be greatly appreciated!

Chris Milette
Software Remodeling, Inc.

Check out:

http://support.qnx.com/support/bok/solution.qnx?5436

Eeeeck. Imagine my surprise when I found out that this
link indicates that I provide a bi-directional parallel
port driver. I do supply drivers for some parallel port
devices, such as the Iomega Zip drive, and the Backpack
CD-ROM drive that use Bi-directional transfers.

We have a device that requires bi-directional communication
over a parallel port. Since dev.par does not support reads,
I was wondering if anyone has developed a bi-directional
parallel port device driver that they are willing to share.

You might want to start with QSSL’s driver, but you should
first know a few things about parallel ports. They are
very dumb devices. Basically you get three I/O ports,
a Data port, a Control port, and a Status Port.
The Data and Control are output, and the Status is input.
There is a control bit that that will turn the Data port
into an input port. For many years there was no standard
protocol for bi-directional data movement. Today there is
a standard called IEEE-1284, however there is no guarentee
that your device follows it.

Writes for uni-directional mode often uses the same protocol
that printers use, ie. Output a byte to the data port, and
then toggle the STROBE control line.

Most such devices have two or more levels of read tranfer
support whether I284 or not.

  1. Nibble mode.
    In this mode, data is read through the control lines
    4 bits at a time. There is usually a REQ (Request) ACK
    (Acknowledge) handshake for each nibble.

  2. Byte mode.
    In this mode, the data port direction is reversed. Data is read
    from the data port. Like Nibble mode, there is a handshake.

  3. EPP mode.
    To work in this mode, both the Host parallel port, and the
    device must support EPP. The device usually must be put in EPP
    mode. Thereafter data is transfered by writing or read from
    special EPP ports. Even with all things setup right, I’ve had very
    inconsistent results with EPP.

  4. ECP mode.
    Well I’ve really never figured out this mode, and
    surprise, it was created by MS. There are both hardware and
    software aspects to ECP. It has its own I/O ports,
    sometimes supports data compression, and can be coaxed to
    use DMA, though I don’t know how. Beware, some ECP ports
    are not backward compatible with Nibble and Byte mode.

Other questions? You can email me at the address below.


Mitchell Schoenbrun --------- maschoen@pobox.com

Mitchell,

Sorry about this. The QDN has been updated.

Thanks,
Heather

Mitchell Schoenbrun <maschoen@pobox.com> wrote:

Check out:

http://support.qnx.com/support/bok/solution.qnx?5436

Eeeeck. Imagine my surprise when I found out that this
link indicates that I provide a bi-directional parallel
port driver. I do supply drivers for some parallel port
devices, such as the Iomega Zip drive, and the Backpack
CD-ROM drive that use Bi-directional transfers.

We have a device that requires bi-directional communication
over a parallel port. Since dev.par does not support reads,
I was wondering if anyone has developed a bi-directional
parallel port device driver that they are willing to share.

You might want to start with QSSL’s driver, but you should
first know a few things about parallel ports. They are
very dumb devices. Basically you get three I/O ports,
a Data port, a Control port, and a Status Port.
The Data and Control are output, and the Status is input.
There is a control bit that that will turn the Data port
into an input port. For many years there was no standard
protocol for bi-directional data movement. Today there is
a standard called IEEE-1284, however there is no guarentee
that your device follows it.

Writes for uni-directional mode often uses the same protocol
that printers use, ie. Output a byte to the data port, and
then toggle the STROBE control line.

Most such devices have two or more levels of read tranfer
support whether I284 or not.

  1. Nibble mode.
    In this mode, data is read through the control lines
    4 bits at a time. There is usually a REQ (Request) ACK
    (Acknowledge) handshake for each nibble.

  2. Byte mode.
    In this mode, the data port direction is reversed. Data is read
    from the data port. Like Nibble mode, there is a handshake.

  3. EPP mode.
    To work in this mode, both the Host parallel port, and the
    device must support EPP. The device usually must be put in EPP
    mode. Thereafter data is transfered by writing or read from
    special EPP ports. Even with all things setup right, I’ve had very
    inconsistent results with EPP.

  4. ECP mode.
    Well I’ve really never figured out this mode, and
    surprise, it was created by MS. There are both hardware and
    software aspects to ECP. It has its own I/O ports,
    sometimes supports data compression, and can be coaxed to
    use DMA, though I don’t know how. Beware, some ECP ports
    are not backward compatible with Nibble and Byte mode.

Other questions? You can email me at the address below.

Mitchell Schoenbrun --------- maschoen@pobox.com