I changed my SCSI terminator for an active one, and now scanimage -L see
my scanner (sge, I change the SCSI ID for 1 , 4 devices on scsi0).
The comments were already there (sane 1.0.1), but it was on the line
after.
scanimage is nevertheless unable to scan. With export
SANE_DEBUG_UMAX=10, scanimage -d umax:/dev/sge > out.pnm :
[sanei_init_debug]: Setting debug level of umax to 10.
[umax] sane_init
[umax] This is sane-umax version 1.0 build 3
[umax] (C) 1997-1999 by Oliver Rauch
[umax] EMAIL: Oliver.Rauch@Wolfsburg.DE
[umax] attach_scanner: opening /dev/sge
[umax] init
[umax] backend runs on big endian machine
[umax] initialize_values
[umax] identify_scanner
[umax] do_inquiry
[umax] Found UMAX scanner Astra 1200S version V1.3 on device /dev/sge
[umax] get_inquiry_values
[umax] INQUIRY:
[umax] ========
[umax]
[umax] vendor........................: 'UMAX '
[umax] product.......................: 'Astra 1200S '
[umax] version.......................: 'V1.3'
[umax]
[umax] CBHS value range..............: 0-255
[umax] scanmode......................: flatbed (FB)
[umax] inquiry block length..........: 161 bytes
[umax]
[umax] ISO Version (reserved).......: 0
[umax] ECMA Version (reserved).......: 0
[umax] ANSI Version .................: 2
[umax]
[umax] reserved byte 0x05 = 0
[umax] reserved byte 0x06 = 0
[umax]
[umax] f/w support function:
[umax] ---------------------
[umax] - quality calibration
[umax] - fast preview function
[umax]
[umax] reserved byte 0x36 = 0
[umax] reserved byte 0x37 = 0
[umax]
[umax] scan modes:
[umax] -----------
[umax] - single pass color mode
[umax] - lineart mode
[umax] - gray mode
[umax] - color mode
[umax] - transparency (UTA)
[umax]
[umax] scanner capability:
[umax] -------------------
[umax] - send high byte first
[umax] - bi-level image reverse
[umax] - multi-level image reverse
[umax] - paper length can reach to 14 inch
[umax]
[umax] gamma download available
[umax] gamma download type 2
[umax] lines of gamma curve: one line (gray), three lines (color)
download
[umax] gamma input 8 bits/pixel support
[umax] gamma input 10 bits/pixel support
[umax] gamma output 8 bits/pixel support
[umax] gamma output 10 bits/pixel support
[umax]
[umax] reserved byte 0x65 = 0
[umax] reserved byte 0x67 = 0
[umax]
[umax] reserved byte 0x6b = 0
[umax] reserved byte 0x6c = 0
[umax]
[umax] color sequence............................: all supported
[umax] color ordering support....................: pixel
[umax]
[umax] maximum video memory......................: 223 KB
[umax]
[umax] reserved byte 0x72 = 0
[umax]
[umax] maximum optical resolution................: 600 dpi
[umax] maximum x-resolution......................: 600 dpi
[umax] maximum y-resolution......................: 1200 dpi
[umax]
[umax] FB (flatbed-mode):
[umax] FB maximum scan width.....................: 8.50 inch
[umax] FB maximum scan length....................: 14.00 inch
[umax]
[umax] UTA (transparency-mode):
[umax] UTA x-original point......................: 0.00 inch
[umax] UTA y-original point......................: 0.00 inch
[umax] UTA maximum scan width....................: 8.50 inch
[umax] UTA maximum scan length...................: 11.70 inch
[umax]
[umax] reserved byte 0x82 = 0
[umax] reserved byte 0x83 = 0
[umax] reserved byte 0x84 = 0
[umax] reserved byte 0x85 = 0
[umax]
[umax] DOR (double optical resolution-mode):
[umax] DOR x-original point......................: 0.00 inch
[umax] DOR y-original point......................: 0.00 inch
[umax] DOR maximum scan width....................: 0.00 inch
[umax] DOR maximum scan length...................: 0.00 inch
[umax]
[umax] reserved byte 0x8e = 0
[umax]
[umax] last calibration lamp density.............: 0
[umax]
[umax] reserved byte 0x90 = 0
[umax]
[umax] lamp warmup maximum time..................: 0 sec
[umax] window descriptor block length............: 82 bytes
[umax] no analog gamma function
[umax]
[umax] reserved byte 0x98 = 0
[umax] reserved byte 0x99 = 0
[umax]
[umax] maximum calibration data lines for shading: 64
[umax] fb/uta: color line arrangement mode.......: 0
[umax] adf: color line arrangement mode.......: 0
[umax] CCD line distance.........................: 8
[umax]
[umax] reserved byte 0x9e = 0
[umax] reserved byte 0x9f = 0
[umax] reserved byte 0xa0 = 0
[umax] attach_scanner: opening /dev/scanner
[umax] init
[umax] backend runs on big endian machine
[umax] initialize_values
[umax] identify_scanner
[umax] do_inquiry
[umax] Found UMAX scanner Astra 1200S version V1.3 on device
/dev/scanner
[umax] get_inquiry_values
[umax] INQUIRY:
[umax] ========
[umax]
[umax] vendor........................: 'UMAX '
[umax] product.......................: 'Astra 1200S '
[umax] version.......................: 'V1.3'
[umax]
[umax] CBHS value range..............: 0-255
[umax] scanmode......................: flatbed (FB)
[umax] inquiry block length..........: 161 bytes
[umax]
[umax] ISO Version (reserved).......: 0
[umax] ECMA Version (reserved).......: 0
[umax] ANSI Version .................: 2
[umax]
[umax] reserved byte 0x05 = 0
[umax] reserved byte 0x06 = 0
[umax]
[umax] f/w support function:
[umax] ---------------------
[umax] - quality calibration
[umax] - fast preview function
[umax]
[umax] reserved byte 0x36 = 0
[umax] reserved byte 0x37 = 0
[umax]
[umax] scan modes:
[umax] -----------
[umax] - single pass color mode
[umax] - lineart mode
[umax] - gray mode
[umax] - color mode
[umax] - transparency (UTA)
[umax]
[umax] scanner capability:
[umax] -------------------
[umax] - send high byte first
[umax] - bi-level image reverse
[umax] - multi-level image reverse
[umax] - paper length can reach to 14 inch
[umax]
[umax] gamma download available
[umax] gamma download type 2
[umax] lines of gamma curve: one line (gray), three lines (color)
download
[umax] gamma input 8 bits/pixel support
[umax] gamma input 10 bits/pixel support
[umax] gamma output 8 bits/pixel support
[umax] gamma output 10 bits/pixel support
[umax]
[umax] reserved byte 0x65 = 0
[umax] reserved byte 0x67 = 0
[umax]
[umax] reserved byte 0x6b = 0
[umax] reserved byte 0x6c = 0
[umax]
[umax] color sequence............................: all supported
[umax] color ordering support....................: pixel
[umax]
[umax] maximum video memory......................: 223 KB
[umax]
[umax] reserved byte 0x72 = 0
[umax]
[umax] maximum optical resolution................: 600 dpi
[umax] maximum x-resolution......................: 600 dpi
[umax] maximum y-resolution......................: 1200 dpi
[umax]
[umax] FB (flatbed-mode):
[umax] FB maximum scan width.....................: 8.50 inch
[umax] FB maximum scan length....................: 14.00 inch
[umax]
[umax] UTA (transparency-mode):
[umax] UTA x-original point......................: 0.00 inch
[umax] UTA y-original point......................: 0.00 inch
[umax] UTA maximum scan width....................: 8.50 inch
[umax] UTA maximum scan length...................: 11.70 inch
[umax]
[umax] reserved byte 0x82 = 0
[umax] reserved byte 0x83 = 0
[umax] reserved byte 0x84 = 0
[umax] reserved byte 0x85 = 0
[umax]
[umax] DOR (double optical resolution-mode):
[umax] DOR x-original point......................: 0.00 inch
[umax] DOR y-original point......................: 0.00 inch
[umax] DOR maximum scan width....................: 0.00 inch
[umax] DOR maximum scan length...................: 0.00 inch
[umax]
[umax] reserved byte 0x8e = 0
[umax]
[umax] last calibration lamp density.............: 0
[umax]
[umax] reserved byte 0x90 = 0
[umax]
[umax] lamp warmup maximum time..................: 0 sec
[umax] window descriptor block length............: 82 bytes
[umax] no analog gamma function
[umax]
[umax] reserved byte 0x98 = 0
[umax] reserved byte 0x99 = 0
[umax]
[umax] maximum calibration data lines for shading: 64
[umax] fb/uta: color line arrangement mode.......: 0
[umax] adf: color line arrangement mode.......: 0
[umax] CCD line distance.........................: 8
[umax]
[umax] reserved byte 0x9e = 0
[umax] reserved byte 0x9f = 0
[umax] reserved byte 0xa0 = 0
[umax] sane_open
[umax] sane_start
[umax] initialize_values
[umax] grab_scanner
[umax] wait_scanner
[umax] scanner ready
[umax] scanner reserved
[umax] check_values
[umax] using one pass scanning mode
[umax] scanner uses color-pixel-ordering
[umax] trying to reposition scanner ...
[umax] wait_scanner
[umax] scanner ready
[umax] scanner repositioned
[umax] set_window_param
[umax] window descriptor block created with 82 bytes
[umax] window(s) set
[umax] wait_scanner
[umax] scanner ready
[umax] start_scan
[umax] starting scan
scanimage: stopping scanner...
[umax] sane_cancel
[umax] trying to reposition scanner ...
scanimage: sanei_scsi.c:1352: sanei_scsi_req_wait: Assertion `req ==
qhead' failed.
Seems to be related to sane-scsi instead of sane-umax ...
Simon
Oliver Rauch wrote:
>
> Hi Simon,
>
> please edit sane/backend/umax.c
>
> search for sense_handler
> and set a remark in the return-line:
>
> if ( get_RS_error_code(result) != 0x70 )
> {
> DBG(DBG_proc, "invalid sense key => handled as DEVICE BUSY!\n");
> // return
> SANE_STATUS_DEVICE_BUSY; /* sense
> key invalid */
> }
>
> search for identify_scanner
> some lines down set a remark in the if-line:
>
> // if (get_inquiry_periph_devtype(dev->buffer) != IN_periph_devtype_scanner) {
> return 1; } /* no scanner */
>
> The do
>
> make clean
>
> make
>
> as root:
>
> make install
>
> and then as normal user:
>
> export SANE_DEBUG_UMAX=10
>
> and call (x)scanimage
>
> Bye
>
> Oliver
>
> --
>
> EMAIL: Oliver.Rauch@Wolfsburg.DE
> WWW: http://www.wolfsburg.de/~rauch
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com