Re: [PARPORT] Beginner needs help with EPP...

From: Bob Tanner (
Date: Mon Apr 21 2003 - 16:15:22 EDT

  • Next message: Bob Tanner: "[PARPORT] Support for SMSC 37N3869?"

    On Sunday 20 April 2003 07:08 pm, Sven Heithecker wrote:
    > Hi,
    > I am currently new to parport/EPP programming and need some startup-help.
    > I need to access the PC's parport in EPP mode. It's going to be a "static"
    > solution, so no drivers etc are needed, just plain access to the port.
    > Currently I am trying something like
    > int mode = IEEE1284_MODE_EPP;
    > if( (fd_par = open("/dev/parport0",O_RDWR)) == -1 ) error(...)
    > if(ioctl(fd_par,PPCLAIM)) error(...)
    > if(ioctl(fd_par,PPNEGOT,&mode)) error(...)
    > and then simple access using read(fd_par,...) and write(fd_per,...).
    > However, so far the program stopps at the EPP negotiation with an I/O
    > error. I activated EPP in the BIOS, but when looking at
    > /proc/sys/dev/parport0, it say that no IRQ or DMA channels are assigned and
    > that EPP is not possible.

    Try turning on debugging in the parport module?

    I'm not sure if this is the proper way, but I edited:


    And changed the #undef DEBUG to #define DEBUG

    And I hardcoded static int verbose_probing = 1 into parport_pc.c:97

    I have the parallel port stuff compiled into, but if you are doing modules I
    believe you can do something like this in your /etc/modules.conf:

    alias parport_lowlevel parport_pc verbose_probing=1

    Or modprobe parport_pc verbose_probing=1

    Bob Tanner <>         | Phone : (952)943-8700, Minnesota, Linux | Fax   : (952)943-8500
    Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288

    -- To unsubscribe, send mail to: -- -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Mon Apr 21 2003 - 16:20:19 EDT