> From [EMAIL PROTECTED] Tue Jan 20 17:12:54 2004
> Date: Tue, 20 Jan 2004 19:30:59 -0500 (EST)
> Subject: LPRng: lprng ifhp hp4300
> From: "Chuming Chen" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
> Hi, all,
>
> Recently, we bought a hp4300 Laser printer. I can directly print
> to it through port 9100. But I failed to use ifhp.
>
> I installed latest Lprng and ifhp (Lprng 3.8.24 and ifhp-3.1.15 on
> solaris 8). The followings are the error messages I got.
>
> ifhp 23:42:30.032 [25667] Write_read_timeout: Read_status_timeout
> returned -1
> ifhp 23:42:30.032 [25667] Write_read_timeout: read from printer
> failed - Connection reset by peer
>
> What could be wrong? Is there anything related to the printer
> configuration?
>
> Thanks a lot.
>
> Chuming Chen
> Unix System Support
> Dept. of Computer Science and Engineering
> Univeristy of South Carolina
> 1D49 Swearingen Building
> 803-576-6308
>
>
>
>
> # ./ifhp -Tmodel=hp4300,dev=l39%9100,trace,debug=1 < /tmp/one.ps
> ifhp 23:42:29.773 [25667] main: Debug '1', DbgFlag 0x0, inputfile
> 'DEVFD0'
> ifhp 23:42:29.774 [25667] main: dump <NULL>
> ifhp 23:42:29.774 [25667] main: Model_id 'hp4300'
> ifhp 23:42:29.774 [25667] main: LANG '<NULL>', 'TRANSLATE TEST' is
> 'TRANSLATE TEST'
> ifhp 23:42:29.886 [25667] main: scanning Raw for default, then
> model 'hp4300'
> ifhp 23:42:30.012 [25667] main: scanning for model 'hp4300'
> ifhp 23:42:30.014 [25667] main: using model 'hp4300'
> Version ifhp-3.5.10
> $Id: ifhp.c,v 1.96 2002/07/12 23:33:21 papowell Exp papowell $
> Copyright 1992-2002 Patrick Powell <[EMAIL PROTECTED]>
> ifhp 23:42:30.014 [25667] Open_device: device 'l39%9100'
> ifhp 23:42:30.015 [25667] Open_device: closed fd 1
> ifhp 23:42:30.017 [25667] Link_open: destination '139.252.130.98'
> port 9100, attempt 1
> ifhp 23:42:30.019 [25667] Fd_readable: nonblocking read returned
> -1, errno 11 (Resource temporarily unavailable)
> ifhp 23:42:30.020 [25667] Open_device: success
> ifhp 23:42:30.020 [25667] Fd_readable: nonblocking read returned
> -1, errno 11 (Resource temporarily unavailable)
> ifhp 23:42:30.020 [25667] main: poll for status 0, Dev_sleep 1000
> msec
> ifhp 23:42:30.029 [25667] Check_pagecount: pagecount using 'pjl
> info pagecount'
> ifhp 23:42:30.030 [25667] Process_job: setting up printer
> ifhp 23:42:30.030 [25667] Start_of_job: do_pagecount 1, ps 0, pjl
> 1, prog '<NULL>'
> ifhp 23:42:30.030 [25667] Do_sync: getting sync using 'pjl echo'
> ifhp 23:42:30.031 [25667] Start_of_job: 'pjl_init'='[ info=id
> ustatus teoj ]'
> ifhp 23:42:30.032 [25667] Write_read_timeout: Read_status_timeout
> returned -1
> ifhp 23:42:30.032 [25667] Write_read_timeout: read from printer
> failed - Connection reset by peer
> ifhp 23:42:30.032 [25667] Do_sync: EOF on connection

The 'read from printer failed - Connection reset by peer' error
indicates that the printer closed the connection.  This is VERY
odd,  and indicates that there is some mystery problem.

save the following into a file (note: the ^[ are escape chars):


[EMAIL PROTECTED]
@PJL RESET
@PJL JOB NAME = "_" DISPLAY = "_"
@PJL RDYMSG DISPLAY = "_"
@PJL INFO ID
@PJL USTATUSOFF
@PJL USTATUS JOB = ON
@PJL USTATUS DEVICE = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 10
@PJL ENTER LANGUAGE = POSTSCRIPT
%!
%!PS-Adobe-3.0
%% one page (i.e. - a page with a 1 on it)
%%/Times-Roman
/Courier
findfont 200 scalefont setfont
72 300 moveto
(1) show
showpage
[EMAIL PROTECTED]
@PJL RDYMSG DISPLAY = "_"
@PJL EOJ NAME = "_"
@PJL USTATUSOFF
@PJL USTATUS JOB = ON
@PJL USTATUS DEVICE = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 10
@PJL RDYMSG DISPLAY = "Done:  :"
%-12345X

Now use netcat:

nc l39 9100 </tmp/saved_stuff

You should see status information returned.

What happens when you do this?

Patrick Powell                 Astart Technologies
[EMAIL PROTECTED]            6741 Convoy Court
Network and System             San Diego, CA 92111
  Consulting                   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
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