[PARPORT] problem with hp5mp pagecount

From: Carlo Busetto (cbusetto@unive.it)
Date: Tue Jun 13 2000 - 12:10:39 EDT

  • Next message: Tony Laszlo: "[PARPORT] Re: ftape with Trakker parallel port"

    Hi guy,

    I'm writing from Italy so please sorry for my little english.
    I'm trying to configure an accounting system with my Laserjet HP5MP printer.
    I'm using a P133 with linux 2.2.14 and i have compiled the kernel with
    parallel port bidirectional support.
    I have installed succefully lprng and ifhp filter.
    I have check that the cable is bidirectional and the bios is configured in
    ECP/EPP mode.

    This is my printcap file:

    lp:
            :ifhp=model=hp5mp
            :sd=/var/spool/lpd/lp
            :mx#0
            :sh
            :lp=/dev/lp0
            :af=accnt
            :as=|/usr/local/lib/filters/accounting.pl START
            :ae=|/usr/local/lib/filters/accounting.pl END
            :if=/usr/local/libexec/filters/ifhp
            :of=/usr/local/libexec/filters/ifhp

    if i disable the status options all work fine but i can't get the pagecount
    information for accounting.
    This is the status file with status option enabled:

    (of) main: using model 'hp5mp' at 07:24:59.305
    (of) Version $Id: ifhp.c,v 1.52 2000/05/24 23:59:39 papowell Exp papowell $
    VERSION ifhp-3.3.13 at 07:24:59.306
    (of) Check_pagecount: pagecount using 'pjl info pagecount' at 07:24:59.310
    (of) Init_outbuf: Outbuf 0x80641b8, Outmax 10240, Outlen 0 at 07:24:59.310
    (of) Process_job: setting up printer at 07:24:59.310
    (of) Process_job: starting OF mode passthrough at 07:24:59.311
    (of) Start_of_job: sync and pagecount, do_pagecount 1, ps 0, pjl 1 at
    07:24:59.311
    (of) Do_sync: getting sync using 'pjl echo' at 07:24:59.312
    (of) Init_outbuf: Outbuf 0x80641b8, Outmax 10240, Outlen 0 at 07:24:59.312
    (of) Start_of_job: 'pjl_init'='[ ustatus teoj ]' at 07:24:59.312
    (of) Check_device_status: code = 41204, 'PC/Upper/Tray2 - A4 Paper', ALERT
    OPERATOR at 07:24:59.402
    (of) Do_sync: EOF while reading from printer port at 07:24:59.661
    (of) Do_sync: no response from printer at 07:24:59.661
    (of) main: using model 'hp5mp' at 07:24:59.938
    (of) Version $Id: ifhp.c,v 1.52 2000/05/24 23:59:39 papowell Exp papowell $
    VERSION ifhp-3.3.13 at 07:24:59.938
    (of) Check_pagecount: pagecount using 'pjl info pagecount' at 07:24:59.943
    (of) Init_outbuf: Outbuf 0x80641b8, Outmax 10240, Outlen 0 at 07:24:59.943
    (of) Process_job: setting up printer at 07:24:59.943
    (of) Process_job: starting OF mode passthrough at 07:24:59.944
    (of) Start_of_job: sync and pagecount, do_pagecount 1, ps 0, pjl 1 at
    07:24:59.944
    (of) Do_sync: getting sync using 'pjl echo' at 07:24:59.944
    (of) Init_outbuf: Outbuf 0x80641b8, Outmax 10240, Outlen 0 at 07:24:59.944
    (of) Start_of_job: 'pjl_init'='[ ustatus teoj ]' at 07:24:59.945
    (of) Do_sync: EOF while reading from printer port at 07:25:00.021
    (of) Do_sync: no response from printer at 07:25:00.021
    (of) main: using model 'hp5mp' at 07:25:00.278
    (of) Version $Id: ifhp.c,v 1.52 2000/05/24 23:59:39 papowell Exp papowell $
    VERSION ifhp-3.3.13 at 07:25:00.278
    (of) Check_pagecount: pagecount using 'pjl info pagecount' at 07:25:00.283
    (of) Init_outbuf: Outbuf 0x80641b8, Outmax 10240, Outlen 0 at 07:25:00.283
    (of) Process_job: setting up printer at 07:25:00.283
    (of) Process_job: starting OF mode passthrough at 07:25:00.284
    (of) Start_of_job: sync and pagecount, do_pagecount 1, ps 0, pjl 1 at
    07:25:00.284
    (of) Do_sync: getting sync using 'pjl echo' at 07:25:00.284
    (of) Init_outbuf: Outbuf 0x80641b8, Outmax 10240, Outlen 0 at 07:25:00.284
    (of) Start_of_job: 'pjl_init'='[ ustatus teoj ]' at 07:25:00.285
    (of) Do_sync: EOF while reading from printer port at 07:25:00.361
    (of) Do_sync: no response from printer at 07:25:00.361

    I have try also with the option pagecount=ps in the ifhp.conf file but
    without result.

    Also, with the command "cat /dev/lp0" i get the information of the status
    of the printer and after a printer job i get the PAGECOUNT!!!!!!. This is
    the output of the command after a printer job:

    @PJL USTATUS TIMED
    CODE=10001
    DISPLAY="00 READY"
    ONLINE=TRUE
    @PJL USTATUS DEVICE
    CODE=10001
    DISPLAY="00 READY"
    ONLINE=TRUE
    @PJL USTATUS JOB
    START
    NAME="PID 2889"
    @PJL USTATUS JOB
    START
    NAME="PID 2890"
    @PJL USTATUS PAGE
    1
    @PJL USTATUS PAGE
    2
    @PJL USTATUS PAGE
    3
    @PJL USTATUS PAGE
    4
    @PJL USTATUS PAGE
    5
    @PJL USTATUS PAGE
    6
    @PJL USTATUS TIMED
    CODE=10001
    DISPLAY="00 READY"
    ONLINE=TRUE
    @PJL USTATUS PAGE
    7
    @PJL USTATUS JOB
    END
    NAME="PID 2890"
    PAGES=7
    @PJL USTATUS JOB
    END
    NAME="PID 2889"
    PAGES=0
    @PJL USTATUS TIMED
    CODE=10001
    DISPLAY="00 READY"
    ONLINE=TRUE

    I have also update the kernel from version 2.2.14 to 2.2.16.

    Where is the problem?

    I hope that you can help me.

    Bye

    Carlo

    -- 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 : Tue Jun 13 2000 - 12:15:40 EDT