[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

David Solomon lorddavon at gmail.com
Mon Jul 16 17:00:11 UTC 2007


I think you are right.  I am trying some pragma pack statments to see
if they will help.  I looked at some of the plustek_usb header changes
and found that they used: "#define PACKED8  __attribute__
((packed,aligned(1)))" and "#define PACKED16 __attribute__
((packed,aligned(2)))" statements to pack the structures.  I may have
to use these myself, but I am unsure where to add (possible in the
sanei_usb_write_bulk?).

Thank you for the help.  I am going to get up-to-my-elbows in code now.  ;-)

(Sorry for the double emails, but I keep forgetting to hit reply-all.

David Solomon

On 7/16/07, m. allan noah <kitno455 at gmail.com> wrote:
> my apologies- Jochen appears to have been correct. though the data
> payloads are correct (which is what i initially inspected), the
> commands before them are built from un-aligned structs, and extended
> from 10 to 12 bytes in both cases, IIRC.
>
> i guess you could try adding the gcc specific alignment pragmas,
> though that is beyond me. i know such a patch was floating around for
> plustek backend.
>
> sorry for the confusion.
>
> allan
>
> On 7/16/07, David Solomon <lorddavon at gmail.com> wrote:
> > Allan,
> >
> > I tried disabling Gamma in the code (couldn't get it work in the
> > config for some reason).  Now it is having a problem at the sense.
> > Could this be related to usb issues?  Is udev required when using
> > libusb?
> >
> > Here is the new output:
> > [avision] set_window: [45-46] line-width: 3825
> > [avision] set_window: [47-48] line-count: 2137
> >
> > [avision] set_window: [49]    bitset2: 10
> > [avision] set_window: [50]    ir exposure time: 0
> > [avision] set_window: [51-52] r exposure: 0
> > [avision] set_window: [53-54] g exposure: 0
> > [avision] set_window: [55-56] b exposure: 0
> > [avision] set_window: [57]    bitset3: 0
> > [avision] set_window: [58]    auto focus: 0
> > [avision] set_window: [59]    line-width (MSB): 0
> > [avision] set_window: [60]    line-count (MSB): 0
> > [avision] set_window: [61]    edge threshold: 0
> > [avision] set_window: sending command. Bytes: 76
> > [avision] Timeouts: write: 30000, read: 30000, status: 10000
> > [avision] try to write cmd, count: 12.
> > [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes
> > [sanei_usb] 0000: 24 00 00 00 00 00 00 00 4C 00 00 00
> > $.......L.......
> > [sanei_usb] sanei_usb_write_bulk: wanted 12 bytes, wrote 12 bytes
> > [avision] wrote 12 bytes
> > [avision] try to write src, count: 76.
> > [sanei_usb] sanei_usb_write_bulk: trying to write 76 bytes
> >
> > [sanei_usb] 0000: 00 00 00 00 00 00 00 44 00 00 00 96 00 96 00 00
> > .......D........
> > [sanei_usb] 0010: 00 00 00 00 00 00 00 00 27 D9 00 00 42 C9 80 80
> >
> > ........'...B...
> > [sanei_usb] 0020: 80 05 08 00 00 03 00 00 00 00 8C A0 00 00 00 00
> > ................
> >
> > [sanei_usb] 0030: FF 18 00 00 E0 FF 00 0E F1 08 59 00 10 00 00 00
> > ..........Y.....
> >
> > [sanei_usb] 0040: 00 00 00 00 00 00 00 00 00 00 00 00
> > ................
> > [sanei_usb] sanei_usb_write_bulk: wanted 76 bytes, wrote 76 bytes
> > [avision] wrote 76 bytes
> > [avision] avision_usb_status: timeout 10000, 1 retries
> > [avision] ==> (bulk read) going down ...
> > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > [sanei_usb] 0000: 00
> > ................
> > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > [avision] <== (bulk read) got: 1, status: 0
> > [avision] sane_start: due to inquiry no calibration needed!
> >
> > [avision] sane_start: gamma-table disabled in config - skipped!
> > [avision] sane_start: starting thread
> > [avision] reader_process:
> > [avision] reserve_unit:
> >
> > [avision] filling command to have a length of 10, was: 6
> > [avision] Timeouts: write: 30000, read: 30000, status: 10000
> > [avision] try to write cmd, count: 10.
> > [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
> >
> > [sanei_usb] 0000: 16 00 00 00 00 00 00 00 00 00
> > ................
> > [dll] sane_get_parameters(handle=0x1acc8,params=0xbe99cd30)
> > [avision] sane_get_parameters:
> > [dll] sane_read(handle=0x1acc8,data=0x26c28,maxlen=32768,lenp=0xbe99cd60)
> > [avision] sane_read: max_len: 32768
> >
> > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
> > [avision] wrote 10 bytes
> >
> > [avision] avision_usb_status: timeout 10000, 1 retries
> > [avision] ==> (bulk read) going down ...
> > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> >
> > [sanei_usb] 0000: 02
> > ................
> > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > [avision] <== (bulk read) got: 1, status: 2
> > [avision] avision_usb_status: Needs to request sense!
> >
> > [avision] Error during status read!
> > [avision] === Try to request sense ===
> > [avision] try to write 12 bytes
> >
> > [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes
> >
> > [sanei_usb] 0000: 03 00 00 00 16 00 00 00 00 00 00 00
> >
> > ................
> > [sanei_usb] sanei_usb_write_bulk: write failed: Resource temporarily unavailable
> > [avision] wrote 0 bytes
> >
> > [avision] === Got error 9 trying to request sense! ===
> > [avision] reader_process: reserve_unit failed: Error during device I/O
> > [avision] sane_read: got 0 bytes, err: 11 Resource temporarily unavailable
> > [avision] do_eof:
> > [avision] do_eof: returning 9
> > scanimage: sane_read: Error during device I/O
> > [dll] sane_cancel(handle=0x1acc8)
> > [avision] sane_cancel:
> > [dll] sane_close(handle=0x1acc8)
> >
> > [avision] sane_close:
> > [sanei_usb] sanei_usb_close: closing device 0
> > [dll] sane_exit: exiting
> > [dll] sane_exit: calling backend `avision's exit function
> > [avision] sane_exit:
> > [dll] sane_exit: finished
> >
> >
> > David Solomon
> >
> > On 7/12/07, m. allan noah <kitno455 at gmail.com> wrote:
> > > note that i have never really used any avision equipment, but you
> > > might try disabling the gamma table in the conf file. man sane-avision
> > > for more.
> > >
> > > allan
> > >
> > > On 7/12/07, David Solomon <lorddavon at gmail.com> wrote:
> > > > I am having terrible problems getting SANE to work with my AVISION
> > > > scanner on the NSLU2.  I did compile SANE 1.0.18 for the NSLU2, but
> > > > don't think it is the code.  Anyone have any suggestions?
> > > >
> > > > I have the following modules loaded:
> > > > root at OpenWrt:/dev# lsmod
> > > > Module                  Size  Used by    Not tainted
> > > > usb_storage            57035  0
> > > > sd_mod                 10384  0
> > > > scsi_mod               55784  2 usb_storage,sd_mod
> > > > usbserial              20336  0
> > > > cdc_acm                 8068  0
> > > > ehci_hcd               25004  0
> > > > uhci_hcd               18700  0
> > > > ohci_hcd               13348  0
> > > > usbcore                79548  7
> > > > usb_storage,usbserial,cdc_acm,ehci_hcd,uhci_hcd,ohci_hcd
> > > >
> > > > Here are my installed applications:
> > > > root at OpenWrt:/dev# ipkg list
> > > > base-files-ixp4xx-2.6 - 9-7899 -
> > > > bridge - 1.0.6-1 -
> > > > busybox - 1.4.2-2 -
> > > > dnsmasq - 2.38-1 -
> > > > dropbear - 0.49-2 -
> > > > hotplug2 - 0.9+r102-1 -
> > > > iptables - 1.3.7-1 -
> > > > kernel - 2.6.21.5-ixp4xx-1 -
> > > > kmod-scsi-core - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb-acm - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb-core - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb-ohci - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb-serial - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb-storage - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb-uhci - 2.6.21.5-ixp4xx-1 -
> > > > kmod-usb2 - 2.6.21.5-ixp4xx-1 -
> > > > libgcc - 4.1.2-9 -
> > > > libjpeg - 6b-1 -
> > > > libpthread - 0.9.28-9 -
> > > > libusb - 0.1.12-1 -
> > > > mtd - 5 -
> > > > ppp - 2.4.3-7 -
> > > > ppp-mod-pppoe - 2.4.3-7 -
> > > > sane-backends - 1.0.18-1-TDS -
> > > > sane-libs - 1.0.18-1-TDS -
> > > > uclibc - 0.9.28-9 -
> > > > udev - 106-1 -
> > > > udevtrigger - 106-1 -
> > > > usbutils - 0.72-1 -
> > > > xinetd - 2.3.13-2 -
> > > >
> > > >
> > > > I am using the 07-09 kernel (I have also tried todays and the 7.06 release):
> > > > root at OpenWrt:/dev# uname -r
> > > > 2.6.21.5
> > > >
> > > >
> > > > Here is what is happening with SANE:
> > > > root at OpenWrt:/dev# SANE_DEBUG_AVISION=255 SANE_DEBUG_DLL=255
> > > > SANE_DEBUG_SANEI_USB=255 scanimage -d avision --resolution=50 >
> > > > /tmp/tmp.pmg
> > > > [sanei_debug] Setting debug level of dll to 255.
> > > > [dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18
> > > > [dll] sane_init: adding backend `abaton' (preloaded)
> > > > [dll] sane_init: adding backend `agfafocus' (preloaded)
> > > > [dll] sane_init: adding backend `apple' (preloaded)
> > > > [dll] sane_init: adding backend `artec' (preloaded)
> > > > [dll] sane_init: adding backend `as6e' (preloaded)
> > > > [dll] sane_init: adding backend `avision' (preloaded)
> > > > [dll] sane_init: adding backend `bh' (preloaded)
> > > > [dll] sane_init: adding backend `canon' (preloaded)
> > > > [dll] sane_init: adding backend `canon630u' (preloaded)
> > > > [dll] sane_init: adding backend `coolscan' (preloaded)
> > > > [dll] sane_init: adding backend `coolscan2' (preloaded)
> > > > [dll] sane_init: adding backend `dc25' (preloaded)
> > > > [dll] sane_init: adding backend `dmc' (preloaded)
> > > > [dll] sane_init: adding backend `epson' (preloaded)
> > > > [dll] sane_init: adding backend `fujitsu' (preloaded)
> > > > [dll] sane_init: adding backend `genesys' (preloaded)
> > > > [dll] sane_init: adding backend `gt68xx' (preloaded)
> > > > [dll] sane_init: adding backend `hp' (preloaded)
> > > > [dll] sane_init: adding backend `leo' (preloaded)
> > > > [dll] sane_init: adding backend `lexmark' (preloaded)
> > > > [dll] sane_init: adding backend `matsushita' (preloaded)
> > > > [dll] sane_init: adding backend `microtek' (preloaded)
> > > > [dll] sane_init: adding backend `microtek2' (preloaded)
> > > > [dll] sane_init: adding backend `mustek' (preloaded)
> > > > [dll] sane_init: adding backend `mustek_usb' (preloaded)
> > > > [dll] sane_init: adding backend `nec' (preloaded)
> > > > [dll] sane_init: adding backend `pie' (preloaded)
> > > > [dll] sane_init: adding backend `pixma' (preloaded)
> > > > [dll] sane_init: adding backend `plustek' (preloaded)
> > > > [dll] sane_init: adding backend `plustek_pp' (preloaded)
> > > > [dll] sane_init: adding backend `ricoh' (preloaded)
> > > > [dll] sane_init: adding backend `s9036' (preloaded)
> > > > [dll] sane_init: adding backend `sceptre' (preloaded)
> > > > [dll] sane_init: adding backend `sharp' (preloaded)
> > > > [dll] sane_init: adding backend `sp15c' (preloaded)
> > > > [dll] sane_init: adding backend `st400' (preloaded)
> > > > [dll] sane_init: adding backend `tamarack' (preloaded)
> > > > [dll] sane_init: adding backend `test' (preloaded)
> > > > [dll] sane_init: adding backend `teco1' (preloaded)
> > > > [dll] sane_init: adding backend `teco2' (preloaded)
> > > > [dll] sane_init: adding backend `teco3' (preloaded)
> > > > [dll] sane_init: adding backend `umax' (preloaded)
> > > > [dll] sane_init: adding backend `umax_pp' (preloaded)
> > > > [dll] sane_init: adding backend `umax1220u' (preloaded)
> > > > [dll] sane_init: adding backend `artec_eplus48u' (preloaded)
> > > > [dll] sane_init: adding backend `ma1509' (preloaded)
> > > > [dll] sane_init: adding backend `ibm' (preloaded)
> > > > [dll] sane_init: adding backend `hp5400' (preloaded)
> > > > [dll] sane_init: adding backend `u12' (preloaded)
> > > > [dll] sane_init: adding backend `snapscan' (preloaded)
> > > > [dll] sane_init: adding backend `niash' (preloaded)
> > > > [dll] sane_init: adding backend `sm3840' (preloaded)
> > > > [dll] sane_init: adding backend `hp4200' (preloaded)
> > > > [dll] sane_init: adding backend `sm3600' (preloaded)
> > > > [dll] sane_init: adding backend `hp3500' (preloaded)
> > > > [dll] sane_init: adding backend `stv680' (preloaded)
> > > > [dll] sane_init: adding backend `dc210' (preloaded)
> > > > [dll] sane_init: adding backend `dc240' (preloaded)
> > > > [dll] sane_init: adding backend `qcam' (preloaded)
> > > > [dll] sane_init: adding backend `v4l' (preloaded)
> > > > [dll] sane_init: adding backend `net' (preloaded)
> > > > [dll] sane_init: adding backend `mustek_usb2' (preloaded)
> > > > [dll] sane_init: reading dll.conf
> > > > [dll] add_backend: adding backend `avision'
> > > > [dll] add_backend: `avision' is already there
> > > > [dll] add_backend: adding backend `fujitsu'
> > > > [dll] add_backend: `fujitsu' is already there
> > > > [dll] sane_open: trying to open `avision'
> > > > [dll] init: initializing backend `avision'
> > > > [sanei_debug] Setting debug level of avision to 255.
> > > > [avision] sane_init:(Version: 1.0 Build: 201)
> > > > [sanei_debug] Setting debug level of sanei_usb to 255.
> > > > [sanei_usb] sanei_usb_init: Looking for kernel scanner devices
> > > > [sanei_usb] sanei_usb_init: couldn't open /dev/usbscanner: No such device
> > > > [sanei_usb] sanei_usb_init: Looking for libusb devices
> > > > usb_set_debug: Setting debugging level to 255 (on)
> > > > usb_os_find_busses: Found 003
> > > > usb_os_find_busses: Found 002
> > > > usb_os_find_busses: Found 001
> > > > usb_os_find_busses: Skipping non bus directory devices
> > > > usb_os_find_devices: Found 007 on 003
> > > > usb_os_find_devices: Found 001 on 003
> > > > error obtaining child information: Inappropriate ioctl for device
> > > > usb_os_find_devices: Found 001 on 002
> > > > usb_os_find_devices: Found 001 on 001
> > > > [sanei_usb] sanei_usb_init: found libusb device (0x0638/0x0a3a)
> > > > interface 0  at libusb:003:007
> > > > [sanei_usb] sanei_usb_init: device 0x0000/0x0000 looks like a root hub
> > > > [sanei_usb] sanei_usb_init: device 0x0000/0x0000 looks like a root hub
> > > > [sanei_usb] sanei_usb_init: device 0x0000/0x0000 looks like a root hub
> > > > [sanei_usb] sanei_usb_init: found 1 devices
> > > > [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. Normally any scanner"
> > > > [avision] sane_init: config file line 2: ignoring comment line
> > > > [avision] sane_init: parsing config line "# should work just fine
> > > > without them - and they are only"
> > > > [avision] sane_init: config file line 3: ignoring comment line
> > > > [avision] sane_init: parsing config line "# needed for test and
> > > > debugging. So if you experience problems"
> > > > [avision] sane_init: config file line 4: ignoring comment line
> > > > [avision] sane_init: parsing config line "# and you solve them with
> > > > enabling options here, please notify"
> > > > [avision] sane_init: config file line 5: ignoring comment line
> > > > [avision] sane_init: parsing config line "# the SANE/Avision
> > > > maintainer: Rene Rebe <rene at exactcode.de>"
> > > > [avision] sane_init: config file line 6: ignoring comment line
> > > > [avision] sane_init: parsing config line ""
> > > > [avision] sane_init: config file line 7: ignoring empty line
> > > > [avision] sane_init: parsing config line "#option disable-gamma-table"
> > > > [avision] sane_init: config file line 8: ignoring comment line
> > > > [avision] sane_init: parsing config line "#option disable-calibration"
> > > > [avision] sane_init: config file line 9: ignoring comment line
> > > > [avision] sane_init: parsing config line "#option force-a4"
> > > > [avision] sane_init: config file line 10: ignoring comment line
> > > > [avision] sane_init: parsing config line ""
> > > > [avision] sane_init: config file line 11: ignoring empty line
> > > > [avision] sane_init: parsing config line "#scsi AVISION"
> > > > [avision] sane_init: config file line 12: ignoring comment line
> > > > [avision] sane_init: parsing config line "#scsi FCPA"
> > > > [avision] sane_init: config file line 13: ignoring comment line
> > > > [avision] sane_init: parsing config line "#scsi MINOLTA"
> > > > [avision] sane_init: config file line 14: ignoring comment line
> > > > [avision] sane_init: parsing config line "#scsi MITSBISH MCA-S600C"
> > > > [avision] sane_init: config file line 15: ignoring comment line
> > > > [avision] sane_init: parsing config line "#scsi MITSBISH MCA-SS600"
> > > > [avision] sane_init: config file line 16: ignoring comment line
> > > > [avision] sane_init: parsing config line "#scsi HP"
> > > > [avision] sane_init: config file line 17: ignoring comment line
> > > > [avision] sane_init: parsing config line "#scsi hp"
> > > > [avision] sane_init: config file line 18: ignoring comment line
> > > > [avision] sane_init: parsing config line ""
> > > > [avision] sane_init: config file line 19: ignoring empty line
> > > > [avision] sane_init: parsing config line "#scsi /dev/scanner"
> > > > [avision] sane_init: config file line 20: ignoring comment line
> > > > [avision] sane_init: parsing config line "# usb libusb:002:003"
> > > > [avision] sane_init: config file line 21: ignoring comment line
> > > > [avision] sane_init: parsing config line "# usb 0x03f0 0x0701"
> > > > [avision] sane_init: config file line 22: ignoring comment line
> > > > [avision] sane_init: parsing config line "# usb 0x0638 0x0a3a"
> > > > [avision] sane_init: config file line 23: ignoring comment line
> > > > [avision] sane_init: parsing config line "# usb libusb:003:009"
> > > > [avision] sane_init: config file line 24: ignoring comment line
> > > > [avision] sane_init: parsing config line "usb 0x055f 0x0409"
> > > > [avision] sane_init: config file line 25: trying to attach USB:`usb
> > > > 0x055f 0x0409'
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x055f, product=0x0409
> > > > [avision] sane_init: Trying to find USB device 638 a27 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a27
> > > > [avision] sane_init: Trying to find USB device 638 a3c ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a3c
> > > > [avision] sane_init: Trying to find USB device 638 a33 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a33
> > > > [avision] sane_init: Trying to find USB device 638 a24 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a24
> > > > [avision] sane_init: Trying to find USB device 638 a25 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a25
> > > > [avision] sane_init: Trying to find USB device 638 a3a ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a3a
> > > > [avision] attach:
> > > > [avision] attach: opening libusb:003:007
> > > > [sanei_usb] sanei_usb_open: trying to open device `libusb:003:007'
> > > > [sanei_usb] sanei_usb_open: configuration nr: 0
> > > > [sanei_usb] sanei_usb_open:     interface nr: 0
> > > > [sanei_usb] sanei_usb_open:   alt_setting nr: 0
> > > > [sanei_usb] sanei_usb_open: endpoint nr: 0
> > > > [sanei_usb] sanei_usb_open: direction: 0
> > > > [sanei_usb] sanei_usb_open: address: 1 transfertype: 2
> > > > [sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x01)
> > > > [sanei_usb] sanei_usb_open: endpoint nr: 1
> > > > [sanei_usb] sanei_usb_open: direction: 128
> > > > [sanei_usb] sanei_usb_open: address: 2 transfertype: 3
> > > > [sanei_usb] sanei_usb_open: found interrupt-in endpoint (address 0x02)
> > > > [sanei_usb] sanei_usb_open: endpoint nr: 2
> > > > [sanei_usb] sanei_usb_open: direction: 128
> > > > [sanei_usb] sanei_usb_open: address: 3 transfertype: 2
> > > > [sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x03)
> > > > [sanei_usb] sanei_usb_open: opened usb device `libusb:003:007' (*dn=0)
> > > > [avision] inquiry: 96
> > > > [avision] attach: sending INQUIRY
> > > > [avision] filling command to have a length of 10, was: 8
> > > > [avision] Timeouts: write: 30000, read: 1500, status: 1500
> > > > [avision] try to write cmd, count: 10.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
> > > > [sanei_usb] 0000: 12 00 00 00 60 00 00 00 00 00
> > > > ....`...........
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
> > > > [avision] wrote 10 bytes
> > > > [avision] try to read 96 bytes
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 96 bytes
> > > > [sanei_usb] 0000: 06 80 02 42 5B 00 00 00 41 56 49 53 49 4F 4E 20
> > > > ...B[...AVISION
> > > > [sanei_usb] 0010: 41 56 32 31 30 43 32 20 20 20 20 20 20 20 20 20 AV210C2
> > > > [sanei_usb] 0020: 31 2E 30 35 A0 06 06 E7 02 58 02 58 02 58 02 58
> > > > 1.05.....X.X.X.X
> > > > [sanei_usb] 0030: 00 00 CE 14 83 00 01 01 02 08 08 08 C0 90 40 04
> > > > .............. at .
> > > > [sanei_usb] 0040: 01 00 03 02 01 00 00 00 00 00 00 00 00 00 00 00
> > > > ................
> > > > [sanei_usb] 0050: 00 09 F6 10 B9 09 F6 10 B9 02 58 81 03 32 D4 20
> > > > ..........X..2.
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 96 bytes, got 96 bytes
> > > > [avision] read 96 bytes
> > > > [avision] avision_usb_status: timeout 1500, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] attach: Inquiry gives mfg=AVISION, model=AV210C2, product
> > > > revision=1.05.
> > > > [avision] attach: Found model: 8
> > > > [avision] inquiry: 96
> > > > [avision] attach: sending INQUIRY
> > > > [avision] filling command to have a length of 10, was: 8
> > > > [avision] Timeouts: write: 30000, read: 1500, status: 1500
> > > > [avision] try to write cmd, count: 10.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
> > > > [sanei_usb] 0000: 12 00 00 00 60 00 00 00 00 00
> > > > ....`...........
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
> > > > [avision] wrote 10 bytes
> > > > [avision] try to read 96 bytes
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 96 bytes
> > > > [sanei_usb] 0000: 06 80 02 42 5B 00 00 00 41 56 49 53 49 4F 4E 20
> > > > ...B[...AVISION
> > > > [sanei_usb] 0010: 41 56 32 31 30 43 32 20 20 20 20 20 20 20 20 20 AV210C2
> > > > [sanei_usb] 0020: 31 2E 30 35 A0 06 06 E7 02 58 02 58 02 58 02 58
> > > > 1.05.....X.X.X.X
> > > > [sanei_usb] 0030: 00 00 CE 14 83 00 01 01 02 08 08 08 C0 90 40 04
> > > > .............. at .
> > > > [sanei_usb] 0040: 01 00 03 02 01 00 00 00 00 00 00 00 00 00 00 00
> > > > ................
> > > > [sanei_usb] 0050: 00 09 F6 10 B9 09 F6 10 B9 02 58 81 03 32 D4 20
> > > > ..........X..2.
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 96 bytes, got 96 bytes
> > > > [avision] read 96 bytes
> > > > [avision] avision_usb_status: timeout 1500, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] attach: raw data:
> > > > [avision]   [0] 00000110b   6o   6d  6x
> > > > [avision]   [1] 10000000b 200o 128d 80x
> > > > [avision]   [2] 00000010b   2o   2d  2x
> > > > [avision]   [3] 01000010b 102o  66d 42x
> > > > [avision]   [4] 01011011b 133o  91d 5bx
> > > > [avision]   [5] 00000000b   0o   0d  0x
> > > > [avision]   [6] 00000000b   0o   0d  0x
> > > > [avision]   [7] 00000000b   0o   0d  0x
> > > > [avision]   [8] 01000001b 101o  65d 41x
> > > > [avision]   [9] 01010110b 126o  86d 56x
> > > > [avision]   [10] 01001001b 111o  73d 49x
> > > > [avision]   [11] 01010011b 123o  83d 53x
> > > > [avision]   [12] 01001001b 111o  73d 49x
> > > > [avision]   [13] 01001111b 117o  79d 4fx
> > > > [avision]   [14] 01001110b 116o  78d 4ex
> > > > [avision]   [15] 00100000b  40o  32d 20x
> > > > [avision]   [16] 01000001b 101o  65d 41x
> > > > [avision]   [17] 01010110b 126o  86d 56x
> > > > [avision]   [18] 00110010b  62o  50d 32x
> > > > [avision]   [19] 00110001b  61o  49d 31x
> > > > [avision]   [20] 00110000b  60o  48d 30x
> > > > [avision]   [21] 01000011b 103o  67d 43x
> > > > [avision]   [22] 00110010b  62o  50d 32x
> > > > [avision]   [23] 00100000b  40o  32d 20x
> > > > [avision]   [24] 00100000b  40o  32d 20x
> > > > [avision]   [25] 00100000b  40o  32d 20x
> > > > [avision]   [26] 00100000b  40o  32d 20x
> > > > [avision]   [27] 00100000b  40o  32d 20x
> > > > [avision]   [28] 00100000b  40o  32d 20x
> > > > [avision]   [29] 00100000b  40o  32d 20x
> > > > [avision]   [30] 00100000b  40o  32d 20x
> > > > [avision]   [31] 00100000b  40o  32d 20x
> > > > [avision]   [32] 00110001b  61o  49d 31x
> > > > [avision]   [33] 00101110b  56o  46d 2ex
> > > > [avision]   [34] 00110000b  60o  48d 30x
> > > > [avision]   [35] 00110101b  65o  53d 35x
> > > > [avision]   [36] 10100000b 240o 160d a0x
> > > > [avision]   [37] 00000110b   6o   6d  6x
> > > > [avision]   [38] 00000110b   6o   6d  6x
> > > > [avision]   [39] 11100111b 347o 231d e7x
> > > > [avision]   [40] 00000010b   2o   2d  2x
> > > > [avision]   [41] 01011000b 130o  88d 58x
> > > > [avision]   [42] 00000010b   2o   2d  2x
> > > > [avision]   [43] 01011000b 130o  88d 58x
> > > > [avision]   [44] 00000010b   2o   2d  2x
> > > > [avision]   [45] 01011000b 130o  88d 58x
> > > > [avision]   [46] 00000010b   2o   2d  2x
> > > > [avision]   [47] 01011000b 130o  88d 58x
> > > > [avision]   [48] 00000000b   0o   0d  0x
> > > > [avision]   [49] 00000000b   0o   0d  0x
> > > > [avision]   [50] 11001110b 316o 206d cex
> > > > [avision]   [51] 00010100b  24o  20d 14x
> > > > [avision]   [52] 10000011b 203o 131d 83x
> > > > [avision]   [53] 00000000b   0o   0d  0x
> > > > [avision]   [54] 00000001b   1o   1d  1x
> > > > [avision]   [55] 00000001b   1o   1d  1x
> > > > [avision]   [56] 00000010b   2o   2d  2x
> > > > [avision]   [57] 00001000b  10o   8d  8x
> > > > [avision]   [58] 00001000b  10o   8d  8x
> > > > [avision]   [59] 00001000b  10o   8d  8x
> > > > [avision]   [60] 11000000b 300o 192d c0x
> > > > [avision]   [61] 10010000b 220o 144d 90x
> > > > [avision]   [62] 01000000b 100o  64d 40x
> > > > [avision]   [63] 00000100b   4o   4d  4x
> > > > [avision]   [64] 00000001b   1o   1d  1x
> > > > [avision]   [65] 00000000b   0o   0d  0x
> > > > [avision]   [66] 00000011b   3o   3d  3x
> > > > [avision]   [67] 00000010b   2o   2d  2x
> > > > [avision]   [68] 00000001b   1o   1d  1x
> > > > [avision]   [69] 00000000b   0o   0d  0x
> > > > [avision]   [70] 00000000b   0o   0d  0x
> > > > [avision]   [71] 00000000b   0o   0d  0x
> > > > [avision]   [72] 00000000b   0o   0d  0x
> > > > [avision]   [73] 00000000b   0o   0d  0x
> > > > [avision]   [74] 00000000b   0o   0d  0x
> > > > [avision]   [75] 00000000b   0o   0d  0x
> > > > [avision]   [76] 00000000b   0o   0d  0x
> > > > [avision]   [77] 00000000b   0o   0d  0x
> > > > [avision]   [78] 00000000b   0o   0d  0x
> > > > [avision]   [79] 00000000b   0o   0d  0x
> > > > [avision]   [80] 00000000b   0o   0d  0x
> > > > [avision]   [81] 00001001b  11o   9d  9x
> > > > [avision]   [82] 11110110b 366o 246d f6x
> > > > [avision]   [83] 00010000b  20o  16d 10x
> > > > [avision]   [84] 10111001b 271o 185d b9x
> > > > [avision]   [85] 00001001b  11o   9d  9x
> > > > [avision]   [86] 11110110b 366o 246d f6x
> > > > [avision]   [87] 00010000b  20o  16d 10x
> > > > [avision]   [88] 10111001b 271o 185d b9x
> > > > [avision]   [89] 00000010b   2o   2d  2x
> > > > [avision]   [90] 01011000b 130o  88d 58x
> > > > [avision]   [91] 10000001b 201o 129d 81x
> > > > [avision]   [92] 00000011b   3o   3d  3x
> > > > [avision]   [93] 00110010b  62o  50d 32x
> > > > [avision]   [94] 11010100b 324o 212d d4x
> > > > [avision]   [95] 00100000b  40o  32d 20x
> > > > [avision] attach: [8-15]  Vendor id.:      "AVISION "
> > > > [avision] attach: [16-31] Product id.:     "AV210C2         "
> > > > [avision] attach: [32-35] Product rev.:    "1.05"
> > > > [avision] attach: [36]    Bitfield: ADF 3-pass color RGB color plane
> > > > [avision] attach: [37]    Optical res.:    600 dpi
> > > > [avision] attach: [38]    Maximum res.:    600 dpi
> > > > [avision] attach: [39]    Bitfield1: TRANS Q_SCAN EXTENDED_RES
> > > > NEW_PROTOCOL AVISION
> > > > [avision] attach: [40-41] X res. in gray:  600 dpi
> > > > [avision] attach: [42-43] Y res. in gray:  600 dpi
> > > > [avision] attach: [44-45] X res. in color: 600 dpi
> > > > [avision] attach: [46-47] Y res. in color: 600 dpi
> > > > [avision] attach: [48-49] USB max read:    0
> > > > [avision] attach: [50]    ESA1: LIGHT_CONTROL BUTTON_CONTROL
> > > > NEED_SW_GAMMA KEEPS_GAMMA KEEPS_WINDOW_CMD
> > > > [avision] attach: [51]    ESA2: SUPPORTS_QUALITY_SPEED_CAL HAS_PUSH_BUTTON
> > > > [avision] attach: [52]    ESA3: GRAY_WHITE POWER_SAVING_TIMER NVM_DATA_REC
> > > > [avision] attach: [53]    line difference (software color pack): 0
> > > > [avision] attach: [54]    color mode pixel boundary: 1
> > > > [avision] attach: [55]    gray mode pixel boundary: 1
> > > > [avision] attach: [56]    4bit gray mode pixel boundary: 2
> > > > [avision] attach: [57]    lineart mode pixel boundary: 8
> > > > [avision] attach: [58]    halftone mode pixel boundary: 8
> > > > [avision] attach: [59]    error-diffusion mode pixel boundary: 8
> > > > [avision] attach: [60]    channels per pixel: 1 3
> > > > [avision] attach: [61]    bits per channel: 1 8
> > > > [avision] attach: [62]    scanner type: Roller (ADF)
> > > > [avision] attach: [75-76] Max shading target : 0
> > > > [avision] attach: [77-78] Max X of transparency: 0 dots * base_dpi
> > > > [avision] attach: [79-80] Max Y of transparency: 0 dots * base_dpi
> > > > [avision] attach: [81-82] Max X of flatbed:      2550 dots * base_dpi
> > > > [avision] attach: [83-84] Max Y of flatbed:      4281 dots * base_dpi
> > > > [avision] attach: [85-86] Max X of ADF:          2550 dots * base_dpi
> > > > [avision] attach: [87-88] Max Y of ADF:          4281 dots * base_dpi
> > > > [avision] attach: [89-90] Res. in Ex. mode:      600 dpi
> > > > [avision] attach: [91]    ASIC:     129
> > > > [avision] attach: [92]    Buttons:  3
> > > > [avision] attach: [93]    ESA4: NO_SINGLE_CHANNEL_GRAY_MODE
> > > > SUPPORTS_FLASH_UPDATE SUPPORTS_READ_PRNU_DATA
> > > > [avision] attach: [94]    ESA5: IGNORE_LINE_DIFFERENCE_FOR_ADF
> > > > NEEDS_SW_LINE_COLOR_PACK INTERLACED_DUPLEX_SCAN
> > > > SUPPORTS_TUNE_SCAN_LENGTH
> > > > [avision] attach: [95]    ESA6: SUPPORTS_PAPER_LENGTH_SETTING
> > > > [avision] attach: optical resolution set to: 600 dpi
> > > > [avision] attach: max resolution set to: 600 dpi
> > > > [avision] attach: max channels per pixel: 3, max bits per channel: 8
> > > > [avision] attach: x/y-range for mode 0 is valid!
> > > > [avision] attach: Mode 0 range is now: 216.000000 x 362.458000 mm.
> > > > [avision] attach: x/y-range for mode 1 is invalid! Using a default.
> > > > [avision] attach: Mode 1 range is now: 215.900000 x 355.600000 mm.
> > > > [avision] attach: x/y-range for mode 2 is valid!
> > > > [avision] attach: Mode 2 range is now: 216.000000 x 362.458000 mm.
> > > > [sanei_usb] sanei_usb_close: closing device 0
> > > > [avision] sane_init: Trying to find USB device 638 a23 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a23
> > > > [avision] sane_init: Trying to find USB device 638 a2a ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a2a
> > > > [avision] sane_init: Trying to find USB device 638 a2a ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a2a
> > > > [avision] sane_init: Trying to find USB device 638 a19 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a19
> > > > [avision] sane_init: Trying to find USB device 638 a41 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a41
> > > > [avision] sane_init: Trying to find USB device 638 a16 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a16
> > > > [avision] sane_init: Trying to find USB device 638 a13 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a13
> > > > [avision] sane_init: Trying to find USB device 638 a18 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a18
> > > > [avision] sane_init: Trying to find USB device 638 a66 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a66
> > > > [avision] sane_init: Trying to find USB device 638 a40 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a40
> > > > [avision] sane_init: Trying to find USB device 638 a68 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a68
> > > > [avision] sane_init: Trying to find USB device 638 a61 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a61
> > > > [avision] sane_init: Trying to find USB device 638 a45 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a45
> > > > [avision] sane_init: Trying to find USB device 3f0 701 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x03f0, product=0x0701
> > > > [avision] sane_init: Trying to find USB device 3f0 701 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x03f0, product=0x0701
> > > > [avision] sane_init: Trying to find USB device 3f0 801 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x03f0, product=0x0801
> > > > [avision] sane_init: Trying to find USB device 3f0 b01 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x03f0, product=0x0b01
> > > > [avision] sane_init: Trying to find USB device 638 26a ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x026a
> > > > [avision] sane_init: Trying to find USB device 686 4004 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0686, product=0x4004
> > > > [avision] sane_init: Trying to find USB device 686 400d ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0686, product=0x400d
> > > > [avision] sane_init: Trying to find USB device 686 400e ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0686, product=0x400e
> > > > [avision] sane_init: Trying to find USB device 638 a15 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a15
> > > > [avision] sane_init: Trying to find USB device 638 a16 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0a16
> > > > [avision] sane_init: Trying to find USB device 4c5 1029 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x04c5, product=0x1029
> > > > [avision] sane_init: Trying to find USB device 40a 6001 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x040a, product=0x6001
> > > > [avision] sane_init: Trying to find USB device 40a 6002 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x040a, product=0x6002
> > > > [avision] sane_init: Trying to find USB device 40a 6003 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x040a, product=0x6003
> > > > [avision] sane_init: Trying to find USB device 40a 6004 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x040a, product=0x6004
> > > > [avision] sane_init: Trying to find USB device 40a 6005 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x040a, product=0x6005
> > > > [avision] sane_init: Trying to find USB device 638 268 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x0638, product=0x0268
> > > > [avision] sane_init: Trying to find USB device 4a7 449 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x04a7, product=0x0449
> > > > [avision] sane_init: Trying to find USB device 4a7 44c ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x04a7, product=0x044c
> > > > [avision] sane_init: Trying to find USB device 4a7 475 ...
> > > > [sanei_usb] sanei_usb_find_devices: vendor=0x04a7, product=0x0475
> > > > [dll] init: backend `avision' is version 1.0.201
> > > > [avision] sane_open:
> > > > [avision] sane_open: using open_extended
> > > > [sanei_usb] sanei_usb_open: trying to open device `libusb:003:007'
> > > > [sanei_usb] sanei_usb_open: configuration nr: 0
> > > > [sanei_usb] sanei_usb_open:     interface nr: 0
> > > > [sanei_usb] sanei_usb_open:   alt_setting nr: 0
> > > > [sanei_usb] sanei_usb_open: endpoint nr: 0
> > > > [sanei_usb] sanei_usb_open: direction: 0
> > > > [sanei_usb] sanei_usb_open: address: 1 transfertype: 2
> > > > [sanei_usb] sanei_usb_open: found bulk-out endpoint (address 0x01)
> > > > [sanei_usb] sanei_usb_open: we already have a bulk-out endpoint
> > > > (address: 0x01), ignoring the new one
> > > > [sanei_usb] sanei_usb_open: endpoint nr: 1
> > > > [sanei_usb] sanei_usb_open: direction: 128
> > > > [sanei_usb] sanei_usb_open: address: 2 transfertype: 3
> > > > [sanei_usb] sanei_usb_open: found interrupt-in endpoint (address 0x02)
> > > > [sanei_usb] sanei_usb_open: we already have a int-in endpoint
> > > > (address: 0x82), ignoring the new one
> > > > [sanei_usb] sanei_usb_open: endpoint nr: 2
> > > > [sanei_usb] sanei_usb_open: direction: 128
> > > > [sanei_usb] sanei_usb_open: address: 3 transfertype: 2
> > > > [sanei_usb] sanei_usb_open: found bulk-in endpoint (address 0x03)
> > > > [sanei_usb] sanei_usb_open: we already have a bulk-in endpoint
> > > > (address: 0x83), ignoring the new one
> > > > [sanei_usb] sanei_usb_open: opened usb device `libusb:003:007' (*dn=0)
> > > > [avision] sane_open: got 1048576 scsi_max_request_size
> > > > [avision] inquiry: 96
> > > > [avision] attach: sending INQUIRY
> > > > [avision] filling command to have a length of 10, was: 8
> > > > [avision] Timeouts: write: 30000, read: 1500, status: 1500
> > > > [avision] try to write cmd, count: 10.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
> > > > [sanei_usb] 0000: 12 00 00 00 60 00 00 00 00 00
> > > > ....`...........
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
> > > > [avision] wrote 10 bytes
> > > > [avision] try to read 96 bytes
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 96 bytes
> > > > [sanei_usb] 0000: 06 80 02 42 5B 00 00 00 41 56 49 53 49 4F 4E 20
> > > > ...B[...AVISION
> > > > [sanei_usb] 0010: 41 56 32 31 30 43 32 20 20 20 20 20 20 20 20 20 AV210C2
> > > > [sanei_usb] 0020: 31 2E 30 35 A0 06 06 E7 02 58 02 58 02 58 02 58
> > > > 1.05.....X.X.X.X
> > > > [sanei_usb] 0030: 00 00 CE 14 83 00 01 01 02 08 08 08 C0 90 40 04
> > > > .............. at .
> > > > [sanei_usb] 0040: 01 00 03 02 01 00 00 00 00 00 00 00 00 00 00 00
> > > > ................
> > > > [sanei_usb] 0050: 00 09 F6 10 B9 09 F6 10 B9 02 58 81 03 32 D4 20
> > > > ..........X..2.
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 96 bytes, got 96 bytes
> > > > [avision] read 96 bytes
> > > > [avision] avision_usb_status: timeout 1500, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] wait_ready: sending TEST_UNIT_READY
> > > > [avision] filling command to have a length of 10, was: 6
> > > > [avision] Timeouts: write: 30000, read: 1500, status: 1500
> > > > [avision] try to write cmd, count: 10.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
> > > > [sanei_usb] 0000: 00 00 00 00 00 00 00 00 00 00
> > > > ................
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
> > > > [avision] wrote 10 bytes
> > > > [avision] avision_usb_status: timeout 1500, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] add_color_mode: 0 Lineart
> > > > [avision] add_color_mode: 1 Dithered
> > > > [avision] add_color_mode: 2 Gray
> > > > [avision] add_color_mode: 5 Color
> > > > [avision] init_options:
> > > > [avision] init_options: dpi_range.min set to 50
> > > > [avision] max_string_size:
> > > > [avision] match_color_mode:
> > > > [avision] match_color_mode: found at 3 mode: 5
> > > > [avision] max_string_size:
> > > > [avision] match_source_mode: "ADF"
> > > > [avision] match_source_mode: found at 0 mode: 2
> > > > [avision] match_source_mode_dim: 2
> > > > [dll] sane_open: open successful
> > > > [dll] sane_control_option(handle=0x40da38,option=0,action=0,value=0xbef07d4c,info=(nil))
> > > > [avision] sane_control_option: option=0, action=0
> > > > [dll] sane_control_option(handle=0x40da38,option=0,action=0,value=0xbef06cb0,info=(nil))
> > > > [avision] sane_control_option: option=0, action=0
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=0)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=1)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=2)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=3)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=4)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=5)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=6)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=7)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=8)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=9)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=10)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_control_option(handle=0x40da38,option=10,action=0,value=0x26ca38,info=(nil))
> > > > [avision] sane_control_option: option=10, action=0
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=11)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_control_option(handle=0x40da38,option=11,action=0,value=0x26ca3c,info=(nil))
> > > > [avision] sane_control_option: option=11, action=0
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=12)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=13)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=14)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=15)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=16)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=17)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=18)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=19)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=20)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=21)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=22)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=23)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=24)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=25)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=26)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=27)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=28)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=29)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=30)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=31)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=32)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_control_option(handle=0x40da38,option=8,action=0,value=0xbef06cac,info=(nil))
> > > > [avision] sane_control_option: option=8, action=0
> > > > [dll] sane_control_option(handle=0x40da38,option=9,action=0,value=0xbef06cac,info=(nil))
> > > > [avision] sane_control_option: option=9, action=0
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=3)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=3)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_control_option(handle=0x40da38,option=3,action=1,value=0x40de58,info=0xbef06c94)
> > > > [avision] sane_control_option: option=3, action=1
> > > > [avision] constrain_value:
> > > > [dll] sane_control_option(handle=0x40da38,option=8,action=0,value=0xbef07d40,info=(nil))
> > > > [avision] sane_control_option: option=8, action=0
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=10)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_control_option(handle=0x40da38,option=10,action=1,value=0xbef07d44,info=0xbef06cb8)
> > > > [avision] sane_control_option: option=10, action=1
> > > > [avision] constrain_value:
> > > > [dll] sane_control_option(handle=0x40da38,option=9,action=0,value=0xbef07d40,info=(nil))
> > > > [avision] sane_control_option: option=9, action=0
> > > > [dll] sane_get_option_descriptor(handle=0x40da38,option=11)
> > > > [avision] sane_get_option_descriptor:
> > > > [dll] sane_control_option(handle=0x40da38,option=11,action=1,value=0xbef07d44,info=0xbef06cb8)
> > > > [avision] sane_control_option: option=11, action=1
> > > > [avision] constrain_value:
> > > > [dll] sane_start(handle=0x40da38)
> > > > [avision] sane_start:
> > > > [avision] sane_get_parameters:
> > > > [avision] sane_get_parameters: computing parameters
> > > > [avision] sane_compute_parameters:
> > > > [avision] sane_compute_parameters: boundary 1, gray_mode: 1,
> > > > [avision] sane_compute_parameters: tlx: 0.000000, tly: 0.000000, brx:
> > > > 216.000000, bry: 362.000000
> > > > [avision] sane_compute_parameters: tlx: 0, tly: 0, brx: 425, bry: 712
> > > > [avision] sane_compute_parameters: xres: 50, yres: 50, line_difference: 0
> > > > [avision] sane_compute_parameters: pixel_per_line: 425, lines: 712
> > > > [avision] sane_compute_parameters: depth: 8, bytes_per_line: 1275
> > > > [avision] sane_compute_parameters:
> > > > [avision] sane_compute_parameters: boundary 1, gray_mode: 1,
> > > > [avision] sane_compute_parameters: tlx: 0.000000, tly: 0.000000, brx:
> > > > 216.000000, bry: 362.000000
> > > > [avision] sane_compute_parameters: tlx: 0, tly: 0, brx: 425, bry: 712
> > > > [avision] sane_compute_parameters: xres: 50, yres: 50, line_difference: 0
> > > > [avision] sane_compute_parameters: pixel_per_line: 425, lines: 712
> > > > [avision] sane_compute_parameters: depth: 8, bytes_per_line: 1275
> > > > [avision] filling command to have a length of 10, was: 6
> > > > [avision] Timeouts: write: 30000, read: 30000, status: 10000
> > > > [avision] try to write cmd, count: 10.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes
> > > > [sanei_usb] 0000: 08 00 00 00 01 00 00 00 00 00
> > > > ................
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes
> > > > [avision] wrote 10 bytes
> > > > [avision] try to read 1 bytes
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> > > > [sanei_usb] 0000: 01
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
> > > > [avision] read 1 bytes
> > > > [avision] avision_usb_status: timeout 10000, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] media_check: result
> > > > [avision]   [0] 00000001b   1o   1d  1x
> > > > [avision] sane_start: media_check ok
> > > > [avision] wait_4_light: getting light status.
> > > > [avision] wait_4_light: read bytes 1
> > > > [avision] Timeouts: write: 30000, read: 30000, status: 10000
> > > > [avision] try to write cmd, count: 12.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes
> > > > [sanei_usb] 0000: 28 00 A0 00 00 00 00 00 01 00 00 00
> > > > (...............
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 12 bytes, wrote 12 bytes
> > > > [avision] wrote 12 bytes
> > > > [avision] try to read 1 bytes
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 1 bytes
> > > > [sanei_usb] 0000: 01
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 1 bytes, got 1 bytes
> > > > [avision] read 1 bytes
> > > > [avision] avision_usb_status: timeout 10000, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] wait_4_light: command is 0. Result is on
> > > > [avision] set_window:
> > > > [avision] set_window: base_dpi_abs: 1200, base_dpi_rel: 1200
> > > > [avision] set_window: base paralen: 8
> > > > [avision] set_window: final paralen: 24
> > > > [avision] set_window: transferlen: 76
> > > > [avision] set_window: large data-transfer support (>16bit)!
> > > > [avision] set_window: source mode 2 source mode dim 2
> > > > [avision] set_window: filling ADF bits
> > > > [avision] window_data_header:
> > > > [avision]   [0] 00000000b   0o   0d  0x
> > > > [avision]   [1] 00000000b   0o   0d  0x
> > > > [avision]   [2] 00000000b   0o   0d  0x
> > > > [avision]   [3] 00000000b   0o   0d  0x
> > > > [avision]   [4] 00000000b   0o   0d  0x
> > > > [avision]   [5] 00000000b   0o   0d  0x
> > > > [avision]   [6] 00000000b   0o   0d  0x
> > > > [avision]   [7] 01000100b 104o  68d 44x
> > > > [avision] window_descriptor:
> > > > [avision]   [0] 00000000b   0o   0d  0x
> > > > [avision]   [1] 00000000b   0o   0d  0x
> > > > [avision]   [2] 00000000b   0o   0d  0x
> > > > [avision]   [3] 00110010b  62o  50d 32x
> > > > [avision]   [4] 00000000b   0o   0d  0x
> > > > [avision]   [5] 00110010b  62o  50d 32x
> > > > [avision]   [6] 00000000b   0o   0d  0x
> > > > [avision]   [7] 00000000b   0o   0d  0x
> > > > [avision]   [8] 00000000b   0o   0d  0x
> > > > [avision]   [9] 00000000b   0o   0d  0x
> > > > [avision]   [10] 00000000b   0o   0d  0x
> > > > [avision]   [11] 00000000b   0o   0d  0x
> > > > [avision]   [12] 00000000b   0o   0d  0x
> > > > [avision]   [13] 00000000b   0o   0d  0x
> > > > [avision]   [14] 00000000b   0o   0d  0x
> > > > [avision]   [15] 00000000b   0o   0d  0x
> > > > [avision]   [16] 00100111b  47o  39d 27x
> > > > [avision]   [17] 11011001b 331o 217d d9x
> > > > [avision]   [18] 00000000b   0o   0d  0x
> > > > [avision]   [19] 00000000b   0o   0d  0x
> > > > [avision]   [20] 01000010b 102o  66d 42x
> > > > [avision]   [21] 11000001b 301o 193d c1x
> > > > [avision]   [22] 10000000b 200o 128d 80x
> > > > [avision]   [23] 10000000b 200o 128d 80x
> > > > [avision]   [24] 10000000b 200o 128d 80x
> > > > [avision]   [25] 00000101b   5o   5d  5x
> > > > [avision]   [26] 00001000b  10o   8d  8x
> > > > [avision]   [27] 00000000b   0o   0d  0x
> > > > [avision]   [28] 00000000b   0o   0d  0x
> > > > [avision]   [29] 00000011b   3o   3d  3x
> > > > [avision]   [30] 00000000b   0o   0d  0x
> > > > [avision]   [31] 00000000b   0o   0d  0x
> > > > [avision]   [32] 00000000b   0o   0d  0x
> > > > [avision]   [33] 00000000b   0o   0d  0x
> > > > [avision]   [34] 10001100b 214o 140d 8cx
> > > > [avision]   [35] 10100000b 240o 160d a0x
> > > > [avision]   [36] 00000000b   0o   0d  0x
> > > > [avision]   [37] 00000000b   0o   0d  0x
> > > > [avision]   [38] 00000000b   0o   0d  0x
> > > > [avision]   [39] 00000000b   0o   0d  0x
> > > > [avision]   [40] 11111111b 377o 255d ffx
> > > > [avision]   [41] 00011000b  30o  24d 18x
> > > > [avision]   [42] 00000000b   0o   0d  0x
> > > > [avision]   [43] 00000000b   0o   0d  0x
> > > > [avision]   [44] 11100000b 340o 224d e0x
> > > > [avision]   [45] 11111111b 377o 255d ffx
> > > > [avision]   [46] 00000000b   0o   0d  0x
> > > > [avision]   [47] 00000100b   4o   4d  4x
> > > > [avision]   [48] 11111011b 373o 251d fbx
> > > > [avision]   [49] 00000010b   2o   2d  2x
> > > > [avision]   [50] 11001000b 310o 200d c8x
> > > > [avision]   [51] 00000000b   0o   0d  0x
> > > > [avision]   [52] 00010000b  20o  16d 10x
> > > > [avision]   [53] 00000000b   0o   0d  0x
> > > > [avision]   [54] 00000000b   0o   0d  0x
> > > > [avision]   [55] 00000000b   0o   0d  0x
> > > > [avision]   [56] 00000000b   0o   0d  0x
> > > > [avision]   [57] 00000000b   0o   0d  0x
> > > > [avision]   [58] 00000000b   0o   0d  0x
> > > > [avision]   [59] 00000000b   0o   0d  0x
> > > > [avision]   [60] 00000000b   0o   0d  0x
> > > > [avision]   [61] 00000000b   0o   0d  0x
> > > > [avision]   [62] 00000000b   0o   0d  0x
> > > > [avision]   [63] 00000000b   0o   0d  0x
> > > > [avision]   [64] 00000000b   0o   0d  0x
> > > > [avision]   [65] 00000000b   0o   0d  0x
> > > > [avision]   [66] 00000000b   0o   0d  0x
> > > > [avision]   [67] 00000000b   0o   0d  0x
> > > > [avision] set_window: [0]     window_id: 0
> > > > [avision] set_window: [2-3]   x-axis res: 50
> > > > [avision] set_window: [4-5]   y-axis res: 50
> > > > [avision] set_window: [6-9]   x-axis upper left: 0
> > > > [avision] set_window: [10-13] y-axis upper left: 0
> > > > [avision] set_window: [14-17] window width: 10201
> > > > [avision] set_window: [18-21] window length: 17089
> > > > [avision] set_window: [22]    brightness: 128
> > > > [avision] set_window: [23]    threshold: 128
> > > > [avision] set_window: [24]    contrast: 128
> > > > [avision] set_window: [25]    image composition: 5
> > > > [avision] set_window: [26]    bits per channel: 8
> > > > [avision] set_window: [27-28] halftone pattern: 0
> > > > [avision] set_window: [29]    padding_and_bitset: 3
> > > > [avision] set_window: [30-31] bit ordering: 0
> > > > [avision] set_window: [32]    compression type: 0
> > > > [avision] set_window: [33]    compression argument: 0
> > > > [avision] set_window: [34-35] paper length: 8ca0
> > > > [avision] set_window: [40]    vendor id: ff
> > > > [avision] set_window: [41]    param lenght: 24
> > > > [avision] set_window: [42]    bitset1: e0
> > > > [avision] set_window: [43]    highlight: 255
> > > > [avision] set_window: [44]    shadow: 0
> > > > [avision] set_window: [45-46] line-width: 1275
> > > > [avision] set_window: [47-48] line-count: 712
> > > > [avision] set_window: [49]    bitset2: 10
> > > > [avision] set_window: [50]    ir exposure time: 0
> > > > [avision] set_window: [51-52] r exposure: 0
> > > > [avision] set_window: [53-54] g exposure: 0
> > > > [avision] set_window: [55-56] b exposure: 0
> > > > [avision] set_window: [57]    bitset3: 0
> > > > [avision] set_window: [58]    auto focus: 0
> > > > [avision] set_window: [59]    line-width (MSB): 0
> > > > [avision] set_window: [60]    line-count (MSB): 0
> > > > [avision] set_window: [61]    edge threshold: 0
> > > > [avision] set_window: sending command. Bytes: 76
> > > > [avision] Timeouts: write: 30000, read: 30000, status: 10000
> > > > [avision] try to write cmd, count: 12.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes
> > > > [sanei_usb] 0000: 24 00 00 00 00 00 00 00 4C 00 00 00
> > > > $.......L.......
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 12 bytes, wrote 12 bytes
> > > > [avision] wrote 12 bytes
> > > > [avision] try to write src, count: 76.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 76 bytes
> > > > [sanei_usb] 0000: 00 00 00 00 00 00 00 44 00 00 00 32 00 32 00 00
> > > > .......D...2.2..
> > > > [sanei_usb] 0010: 00 00 00 00 00 00 00 00 27 D9 00 00 42 C1 80 80
> > > > ........'...B...
> > > > [sanei_usb] 0020: 80 05 08 00 00 03 00 00 00 00 8C A0 00 00 00 00
> > > > ................
> > > > [sanei_usb] 0030: FF 18 00 00 E0 FF 00 04 FB 02 C8 00 10 00 00 00
> > > > ................
> > > > [sanei_usb] 0040: 00 00 00 00 00 00 00 00 00 00 00 00
> > > > ................
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 76 bytes, wrote 76 bytes
> > > > [avision] wrote 76 bytes
> > > > [avision] avision_usb_status: timeout 10000, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 00
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 0
> > > > [avision] sane_start: due to inquiry no calibration needed!
> > > > [avision] send_gamma: table_raw_size: 256, table_size: 256
> > > > [avision] send_gamma: values: 1, invert_table: 0
> > > > [avision] send_gamma: brightness: 0.000000, contrast: 0.000000
> > > > [avision] send_gamma: sending 256 bytes gamma table.
> > > > [avision] Timeouts: write: 30000, read: 30000, status: 10000
> > > > [avision] try to write cmd, count: 12.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes
> > > > [sanei_usb] 0000: 2A 00 81 00 00 00 00 01 00 00 00 00
> > > > *...............
> > > > [sanei_usb] sanei_usb_write_bulk: wanted 12 bytes, wrote 12 bytes
> > > > [avision] wrote 12 bytes
> > > > [avision] try to write src, count: 256.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 256 bytes
> > > > [sanei_usb] 0000: 00 15 1C 22 27 2B 2F 32 35 38 3B 3D 40 42 44 47
> > > > ..."'+/258;=@BDG
> > > > [sanei_usb] 0010: 49 4B 4D 4F 51 52 54 56 57 59 5B 5C 5E 5F 61 62
> > > > IKMOQRTVWY[\^_ab
> > > > [sanei_usb] 0020: 64 65 66 68 69 6A 6C 6D 6E 6F 71 72 73 74 75 77
> > > > defhijlmnoqrstuw
> > > > [sanei_usb] 0030: 78 79 7A 7B 7C 7D 7E 7F 80 81 82 83 84 85 86 87
> > > > xyz{|}~.........
> > > > [sanei_usb] 0040: 88 89 8A 8B 8C 8D 8E 8F 90 91 92 92 93 94 95 96
> > > > ................
> > > > [sanei_usb] 0050: 97 98 98 99 9A 9B 9C 9D 9D 9E 9F A0 A1 A1 A2 A3
> > > > ................
> > > > [sanei_usb] 0060: A4 A4 A5 A6 A7 A8 A8 A9 AA AA AB AC AD AD AE AF
> > > > ................
> > > > [sanei_usb] 0070: B0 B0 B1 B2 B2 B3 B4 B4 B5 B6 B6 B7 B8 B8 B9 BA
> > > > ................
> > > > [sanei_usb] 0080: BA BB BC BC BD BE BE BF C0 C0 C1 C2 C2 C3 C3 C4
> > > > ................
> > > > [sanei_usb] 0090: C5 C5 C6 C6 C7 C8 C8 C9 C9 CA CB CB CC CC CD CE
> > > > ................
> > > > [sanei_usb] 00A0: CE CF CF D0 D1 D1 D2 D2 D3 D3 D4 D4 D5 D6 D6 D7
> > > > ................
> > > > [sanei_usb] 00B0: D7 D8 D8 D9 D9 DA DB DB DC DC DD DD DE DE DF DF
> > > > ................
> > > > [sanei_usb] 00C0: E0 E0 E1 E1 E2 E3 E3 E4 E4 E5 E5 E6 E6 E7 E7 E8
> > > > ................
> > > > [sanei_usb] 00D0: E8 E9 E9 EA EA EB EB EC EC ED ED EE EE EF EF F0
> > > > ................
> > > > [sanei_usb] 00E0: F0 F1 F1 F1 F2 F2 F3 F3 F4 F4 F5 F5 F6 F6 F7 F7
> > > > ................
> > > > [sanei_usb] 00F0: F8 F8 F9 F9 F9 FA FA FB FB FC FC FD FD FE FE FF
> > > > ................
> > > > [sanei_usb] sanei_usb_write_bulk: write failed: Resource temporarily unavailable
> > > > [avision] wrote 0 bytes
> > > > [avision] try to write cmd, count: 12.
> > > > [sanei_usb] sanei_usb_write_bulk: trying to write 12 bytes
> > > > [sanei_usb] 0000: 2A 00 81 00 00 00 00 01 00 00 00 00
> > > > *...............
> > > > [sanei_usb] sanei_usb_write_bulk: write failed: Resource temporarily unavailable
> > > > [avision] wrote 0 bytes
> > > > [avision] === Got error 9 trying to write, wrote: 0. ===
> > > > [avision] try to read status to clear the FIFO
> > > > [avision] avision_usb_status: timeout 500, 1 retries
> > > > [avision] ==> (bulk read) going down ...
> > > > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
> > > > [sanei_usb] 0000: 02
> > > > ................
> > > > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 1 bytes
> > > > [avision] <== (bulk read) got: 1, status: 2
> > > > [avision] avision_usb_status: Needs to request sense!
> > > > [avision] === Got error 4 trying to read status. ===
> > > > [avision] send_gamma: gamma table upload failed: Error during device I/O
> > > > [avision] sane_start: send gamma failed: Error during device I/O
> > > > [avision] do_cancel:
> > > > scanimage: sane_start: Error during device I/O
> > > > [dll] sane_cancel(handle=0x40da38)
> > > > [avision] sane_cancel:
> > > > [dll] sane_close(handle=0x40da38)
> > > > [avision] sane_close:
> > > > [sanei_usb] sanei_usb_close: closing device 0
> > > > [dll] sane_exit: exiting
> > > > [dll] sane_exit: calling backend `avision's exit function
> > > > [avision] sane_exit:
> > > > [dll] sane_exit: finished
> > > >
> > > >
> > > > David Solomon
> > > > andLinux Founder
> > > > http://www.andlinux.org
> > > >
> > > > --
> > > > sane-devel mailing list: sane-devel at lists.alioth.debian.org
> > > > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> > > > Unsubscribe: Send mail with subject "unsubscribe your_password"
> > > >              to sane-devel-request at lists.alioth.debian.org
> > > >
> > >
> > >
> > > --
> > > "The truth is an offense, but not a sin"
> > >
> >
>
>
> --
> "The truth is an offense, but not a sin"
>



More information about the sane-devel mailing list