[sane-devel] avision backend support of HP 8250

Antti Andreimann Antti.Andreimann at mail.ee
Tue Dec 13 22:20:48 UTC 2005


I have exactly the same problem with this scanner.
It just does not work. Scanning hangs no matter what I set in
avision.conf.

Here is a piece of log:

[avision] send_3x3_matrix:
[avision] send_3x3_matrix: sending matrix
[sanei_usb] sanei_usb_write_bulk: trying to write 28 bytes
[sanei_usb] 0000: 2A 00 83 00 00 00 00 00 12 00 05 37 10 97 10 A0
*..........7....
[sanei_usb] 0010: 10 90 04 CD 10 3C 10 22 10 82 04
A4             .....<."........
[sanei_usb] sanei_usb_write_bulk: wanted 28 bytes, wrote 28 bytes
[avision] avision_usb_status: timeout 2500, 1 retries
[avision] ==> (bulk read) going down ...
[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes
[sanei_usb] sanei_usb_read_bulk: read returned EOF
[avision] <== (bulk read) got: 0, status: 0
....
this repeats a few times and then the I/O error is final.

The only way I got this scanner to sort of work was with the CVS
snapshot from 2005-12-12 when I commented out a 3x3 matrix send like
this:
--- backend/avision.c.orig      2005-12-14 00:13:10.000000000 +0200
+++ backend/avision.c   2005-12-12 17:39:17.000000000 +0200
@@ -7050,13 +7050,13 @@

  calib_end:

-  if (dev->inquiry_3x3_matrix && dev->inquiry_asic_type >= AV_ASIC_C5
&&
+ /* if (dev->inquiry_3x3_matrix && dev->inquiry_asic_type >= AV_ASIC_C5
&&
       param_cksum != s->param_cksum && !(dev->hw->feature_type &
AV_NO_MATRIX) ) {
     status = send_3x3_matrix (s);
     if (status != SANE_STATUS_GOOD) {
       return status;
     }
-  }
+  }*/

   /* check whether gamma-table is disabled by the user? */
   if (disable_gamma_table) {

However, now I'm facing another problem: the blody ADF doesn't work.
When I select ADF input, it starts to scan, then shows Error 15 on the
LCD and no image data is ever sent back from the scanner to the host:

The log (without low-level USB stuff):
[avision] start_scan:
[avision] start_scan: sending command. Bytes: 6
[avision] filling command to have a length of 10, was: 6
[avision] try to write cmd, count: 10.
[avision] wrote 10 bytes
[avision] avision_usb_status: timeout 2500, 1 retries
[avision] ==> (bulk read) going down ...
[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 10 bytes
[avision] wrote 10 bytes
[avision] try to read 22 bytes sense data
[avision] read 22 bytes sense data
[avision] avision_usb_status: timeout 2500, 1 retries
[avision] ==> (bulk read) going down ...
[avision] <== (bulk read) got: 1, status: 2
[avision] avision_usb_status: Needs to request sense!
[avision] === Got error 4 trying to read sense! ===

Ideas?

-- 
 Antti Andreimann - Security Expert
      Using Linux since 1993
  Member of ELUG since 29.01.2000



More information about the sane-devel mailing list