I have more details after tracing the communication: 
The error comes from dj3320.cpp, line 2928 (bCreditInitialized == 0)
because UpdateState(TRUE) above never returns TRUE.
I traced UpdateState and the error comes from GetPackets(...) == 0
I do not know the LDL protocol but there is something wrong with the
printer sometimes.
What can I do?
Martin


-----Original Message-----
From: Martin Kajdas 
Sent: Friday, August 31, 2007 8:41 AM
To: 'Suffield, David'
Cc: hplip-devel@lists.sourceforge.net
Subject: RE: [HPLIP-Devel] Print errors and hangs using HPIJS with HP
DJ4160

Dave,
Thanks for the excellent tip. 
I added similar code to my program and I believe it fixed the problem
with the bottom of the page being corrupted.
I wait for the printer to go idle before I close USB.

However, the problem with SYSTEM_ERROR still occurs and I will give you
some more info:
1. Never happens after power up (always works OK) 2. Seems to happen
when I start a new job right after another print job. After the previous
job, the printer is still doing some head movement and cleaning (?) for
a while but its status says it is idle.
3. Querying ID works without a problem, I can get status and ink levels,
the error happens only when I try to write bulk (print) data.
4. The error happens because printer is not responding (to bulk data)
and timeout occurs (see #3, it responds to querying) 5. Pressing X
button on the front panel fixes the problem 6. Sometimes, retrying the
print job also makes it work

It seems that the printer goes into some kind of error mode and does not
accept print data.
Querying always works OK.

Any ideas,

Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to