Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2009 22:03:34 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        John Hay <jhay@meraka.org.za>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: [8.0] hplip3/ugen printer problem
Message-ID:  <200910192203.35021.hselasky@c2i.net>
In-Reply-To: <20091019194356.GA4815@zibbi.meraka.csir.co.za>
References:  <20091018153910.375f8013@baby-jane.lamaiziere.net> <200910192135.09875.hselasky@c2i.net> <20091019194356.GA4815@zibbi.meraka.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 19 October 2009 21:43:56 John Hay wrote:
> On Mon, Oct 19, 2009 at 09:35:08PM +0200, Hans Petter Selasky wrote:
> > On Monday 19 October 2009 20:58:52 John Hay wrote:
> > > On Mon, Oct 19, 2009 at 02:19:49AM +0200, Hans Petter Selasky wrote:
> > > > On Sunday 18 October 2009 20:40:31 John Hay wrote:
> > > > > > > io/hpmud/musb.c 1028: bulk_write failed buf=0xbfbfc93c
> > > > > > > size=8192 len=-60:
> > > >
> > > > Error -60 means that the transfer timed out.
> > > >
> > > > Maybe the timeout given by the driver is too strict.
> > > >
> > > > Try increasing the timeout, or change the usb_bulk_write() code into
> > > > temporarily  using no timeout, timeout=0.
> >
> > Hi,
> >
> > > With a timeout of 0 it is working properly.
> >
> > Great!
> >
> > The USB stack as a clamp on the timeout:
> >
> >         xfer->timeout = fs_ep.timeout;
> >         if (xfer->timeout > 65535) {
> >                 xfer->timeout = 65535;
> >         }
> >
> > The unit is milliseconds.
>
> But then there should have been a 65 second timeout? I just saw a 5-8
> second timeout.

Hi,

octave> mod(72*3600*1000,65536)
ans =  5120 //ms

        uint16_t timeout;               /* in milliseconds */

I've made the following patch to LibUSB in FreeBSD, which might help.

http://p4web.freebsd.org/chv.cgi?CH=169605

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910192203.35021.hselasky>