Suffield, David | 29 Aug 20:28
Favicon

Re: Print errors and hangs using HPIJS with HP DJ4160

> I also link it with libusb 0.1.12 and other things.

If you are using hpijs only, no printer status or bi-di communication.
Then with configure option --enable-hpijs-only-build, you shouldn't need
libusb. 

> - sometimes (never the first time after power up) the Job is 
> created but the construction_error = SYSTEM_ERROR. It seems 
> that the printer is not responding and HPIJS times out. 
> Retrying works and printing can continue.

Not sure what this error is. If you use hpijs-only-build, then you
shouldn't get this error. 

> - sometimes HPIJS hangs on what seems like the last pass 
> (bottom) of the raster. Sometimes it does not hang and 
> NewPage() ejects the page but the bottom of the raster is 
> incomplete (unfinished part of a line)

This error sounds like you are closing usb io down before all the data
has be received by the printer.

-dave 

> -----Original Message-----
> From: hplip-devel-bounces <at> lists.sourceforge.net 
> [mailto:hplip-devel-bounces <at> lists.sourceforge.net] On Behalf 
> Of Martin Kajdas
> Sent: Tuesday, August 28, 2007 10:15 AM
> To: hplip-devel <at> lists.sourceforge.net
(Continue reading)

Martin Kajdas | 29 Aug 21:26

Re: Print errors and hangs using HPIJS with HP DJ4160

Yes, I am using  --enable-hpijs-only-build, but also printer status and
bi-di comm are used by default by HPIJS for this printer.
Then, I link all of the HPIJS object files into a static library and
then with my app.
BTW, I link libusb also for other devices that the application uses
(i.e. USB drives).

For HPIJS, I first call usb_find_busses, ubs_find_devices, usb_open,
usb_claim_interface, usb_set_altinterface, and after done, I call
usb_release_interface, usb_close.
Are you saying I do not need to do all that?

The SYSTEM_ERROR is returned by constructor of Job class and is defined
in APDK documentation.
I think you maybe thinking about HPIJS server which I do not use.
I use hplip-2.7.7/prnt/hpijs code by itself.

I guess it is possible that I call usb_close while the buffered data is
still being transmitted.
I would expect usblib to take care of this and hpijs to work properly
with it.
I thought that when SendRasters returns, it is OK call NewPage() and to
close usb.

Martin

-----Original Message-----
From: Suffield, David [mailto:david.suffield <at> hp.com] 
Sent: Wednesday, August 29, 2007 11:28 AM
To: Martin Kajdas; hplip-devel <at> lists.sourceforge.net
(Continue reading)


Gmane