Date:       Fri, 22 Feb 2002 18:08:30 -0800 (PST)
    From:       Patrick Powell <[EMAIL PROTECTED]>

  > > From [EMAIL PROTECTED] Mon Jan 21 18:38:38 2002
  > > To: [EMAIL PROTECTED]
  > > Subject: Re: LPRng: HP-4100 Pagecount problem. A possible solution. 
  > > Date: Tue, 22 Jan 2002 12:42:16 +1100
  > > From: "C. L. McAvaney" <[EMAIL PROTECTED]>
  > >
  > >
  > >     Date:       Tue, 22 Jan 2002 01:40:23 +0100
  > >     From:       Fernando Blanco Marcilla <[EMAIL PROTECTED]>
  > >
  > > G'day all,
  > >
  > > This posting got me thinking....
  > > My understanding of the ifhp filtering process for pagecounting is:
  > >  - ask the printer for a PAGECOUNT
  > >  - send the print job
  > >  - tell the printer to turn on the USTATUS PJL command.
  > >  - ask the printer for a PAGECOUNT
  > >  - keep listening to the printer connection until a PAGECOUNT is returned
  > >
  > > Reading the PJL specification, I gathered that you could send the followi
  >ng
  > > sequence to achieve the same.
  > >
  > > <ESC>%-12345X@PJL
  > > @PJL ECHO attempting PAGECOUNT
  > > @PJL INFO PAGECOUNT
  > > @PJL ENTER LANGUAGE = PCL
  > > ...
  > > @PJL EOJ
  > > @PJL ECHO attempting PAGECOUNT
  > > @PJL INFO PAGECOUNT
  > > <ESC>%-12345X
  > >
  > > The ECHO command is suppose to synchronise the output given from the prin
  >ter.
  > > That way, you would only need to get the start and end pagecounts from th
  >e
  > > open connection and they would almost always be correct.
  > > or am I being gullible in thinking that the printers follow PJL strictly?
  > >
  > > Just a thought...has anybody tried anything like this before?
  > >
  > > Christopher
  > 
  > Yes.  However, you must get the pagecount AFTER the job has
  > finished.  The way that you have it now you will get the
  > CURRENT pagecount...  which may be the same as the starting
  > pagecount if the printer is warming up.
  > 
  > I kid you not.
  > 
  > Isn't this wonderful?
So does that mean that the ECHO doesn't synchronise as it is documented
that is should do?

Christopher
            ,,,
           (. .)
/-----.oOO--(_)--OOo.-------------------------------------------------\ 
|  Christopher McAvaney                       [EMAIL PROTECTED]   |
|  PhD Candidate                                 [EMAIL PROTECTED]   |
|                                               [EMAIL PROTECTED]   |
|  phone: +61+3+52272960                    [EMAIL PROTECTED]   |
|    fax: +61+3+52272028       http://www.cm.deakin.edu.au/~chrismc   |
\---------------------------------------------------------------------/

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to