[sane-devel] libusb - problems with open/close of device in backend?

2005-05-24 Thread Bertrik Sikken
What about exchanging some dummy packets after an open to get back in sync w.r.t. the toggle bit? (for example some simple commands that are normally used to get status info) I've seen the toggle problem for a device connected to windows. Sending the first packet twice from the device to the PC fi

[sane-devel] scanimage Segfault

2005-05-24 Thread Kai Schlüter
Hi, i got a problem with my avision scanner: Lots of output: [sanei_debug] Setting debug level of avision to 128. [avision] sane_init: parsing config line "" [avision] sane_init: config file line 1: ignoring empty line [avision] sane_init: parsing config line "# This are the possible options. Nor

[sane-devel] libusb - problems with open/close of device in backend?

2005-05-24 Thread stef
On Tue, May 24, 2005 at 01:18:59PM +0200, stef wrote: > On Mon, May 23, 2005 at 02:52:27PM -0400, m. allan noah wrote: > > steven, i see this exact problem with certain fujitsu scanners. the > > difficulty is that USB uses a 0/1 toggling bit during the data transmit > > phase. when libusb closes

[sane-devel] libusb - problems with open/close of device in backend?

2005-05-24 Thread stef
On Mon, May 23, 2005 at 02:52:27PM -0400, m. allan noah wrote: > steven, i see this exact problem with certain fujitsu scanners. the > difficulty is that USB uses a 0/1 toggling bit during the data transmit > phase. when libusb closes the device, the device should reset the toggle > back to 0, t

[sane-devel] libusb - problems with open/close of device in backend?

2005-05-24 Thread m. allan noah
yes, this is what i see the fujitsu windows driver do. however, i have had some trouble getting this to work reliably, i dont know if kernel keeps toggle at 0 for some reason? i will try again. allan On Tue, 24 May 2005, Bertrik Sikken wrote: > What about exchanging some dummy packets after a

[sane-devel] libusb - problems with open/close of device in backend?

2005-05-24 Thread m. allan noah
On Tue, 24 May 2005, Olaf Meeuwissen wrote: > "m. allan noah" writes: > >> steven, i see this exact problem with certain fujitsu scanners. > > It also manifests itself with several EPSON scanners as described in > > http://lists.alioth.debian.org/pipermail/sane-devel/2004-June/011233.html > >

[sane-devel] libusb - problems with open/close of device in backend?

2005-05-24 Thread m. allan noah
On Tue, 24 May 2005, stef wrote: > On Tue, May 24, 2005 at 01:18:59PM +0200, stef wrote: >> On Mon, May 23, 2005 at 02:52:27PM -0400, m. allan noah wrote: >>> steven, i see this exact problem with certain fujitsu scanners. the >>> difficulty is that USB uses a 0/1 toggling bit during the data tran