Re: [PARPORT] How do I send an ECP command from a user level driver?

From: David Lambert (dave_lambert@fbcc.com)
Date: Mon Jul 02 2001 - 18:05:35 EDT

  • Next message: Fernando Pando: "RE: [PARPORT] Redhat 7.1 & HP 5300C scanner"

    Tim,
            Thanks for your prompt and helpful reply. That seems a lot simpler. I have
    another question, however. How can I detect when the peripheral sends the
    host a command, rather than data, without monitoring the status lines
    directly?

    Dave.

    On Saturday 30 June 2001 13:34, Tim Waugh wrote:
    > On Sat, Jun 30, 2001 at 10:32:17AM -0500, David Lambert wrote:
    > > I am attempting to write a user level driver to interface to some custom
    > > hardware which uses ECP. Is there a low level function to send a command
    > > rather than data to the device, or must I frob the appropriate control
    > > lines using ioctl with PPFCONTROL?
    >
    > Use PPNEGOT with IEEE1284_MODE_ECP|IEEE1284_ADDR. Rather than
    > performing any actual negotiation, it tells the kernel to use ECP
    > channel transfers rather than data transfers. (IEEE1284_DATA serves
    > the complementary purpose.)
    >
    > Tim.
    > */

    ----------------------------------------
    Content-Type: application/pgp-signature; charset="us-ascii";
    name="Attachment: 1"
    Content-Transfer-Encoding: 7bit
    Content-Description:
    ----------------------------------------

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Mon Jul 02 2001 - 18:06:27 EDT