Re: ulpt problem (USB_ERR_IOERROR)

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Fri, 3 Jul 2009 17:56:54 +0200
On Friday 03 July 2009 17:26:00 Patrick Lamaiziere wrote:
> Hello,
>
> [Yesterday CURRENT/i386]
>
> I've got some troubles with unlpt, most of the time I can't print and I
> must stop cupsd, kill -9 the process usb, and unplug the USB printer.
> Then it works again for some time (but mostly one time).
>
> The printer is a Brother HL-1430 (working fine under FreeBSD since
> FreeBSD 4.X)
>
> ulpt0: <Brother Industries product 0x001a, class 0/0, rev 1.00/1.00,
> addr 2> on usbus0
> ulpt_attach:562: setting alternate config number: 0
> ulpt0: using bi-directional mode
>
> With hw.usb.ulpt.debug=1, I've got a lot of:
>
> ulpt_write_callback:204: state=0x0 actlen=0
> ulpt_status_callback:328: error=USB_ERR_IOERROR
> last message repeated 31 times
> last message repeated 78 times
> ...
>
> When it works:
> ulpt_write_callback:220: state=0x0 actlen=0
> ulpt_write_callback:220: state=0x1 actlen=2889
> ulpt_write_callback:220: state=0x1 actlen=3023
> ...

Hi,

Have you tried:

usbconfig -u XXX -a YYY reset

Does it help?

To me it looks like a problem about your printer USB firmware. Does it respond 
to:

usbconfig -u XXX -a YYY dump_curr_config_desc

After the first print job?

XXX and YYY are the numbers after the "ugen" in dmesg.

--HPS
Received on Fri Jul 03 2009 - 13:57:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC