Umax 600s/Adaptec 2906 trouble

From: Mark Stewart (mstewart@atg.com)
Date: Tue Dec 26 2000 - 13:38:41 PST

  • Next message: Lawrence Glaister: "Re: snapscan 1212u_2 problems"

    Hi all,

    I'm working on getting my Umax Atra600s working with my Linux box using a
    cheap Adaptec 2906 SCSI PCI card. I tried the version of SANE that was
    installed along with my distro Mandrake 7.1 ( version 1.0.2) as well as
    building the 1.0.3 release from source. In both cases I was able to make the
    scanner start to scan--the mechanism moved--but immediately thereafter it
    halted and the scanimage program would hang. The scanner light flashed
    rapidly, only stopping when I restarted it.

    The Adaptec card is listed (sort of) on Mandrake's supported hardware page
    (it claims to support Adaptec AHA-29xx PCI which I've assumed, perhaps
    wrongly, is a match for my Adaptec 2906). Kudzu also seemed to recognize the
    card when I first installed it although it thinks it's a "Adaptec|AHA-7850".
    Its message in /var/log/message was "kudzu: aliased scsi-hostadapter1 as
    aic7xxx". Harddrake agrees with this. I'm pretty sure I am hitting the right
    SCSI channel; /dev/scanner is symlinked from /dev/sga. /dev/sg0 is also
    linked to /dev/scanner. Finally, I'm using a good, short SCSI cable
    connected directly to the scanner with nothing else on the chain.

    Anyone have any ideas as to what could be wrong? I've pasted in an annotated
    recount from the terminal of each step I've taken. I cranked up the debug
    output before I started. Perhaps the output will enlighten some of the gurus
    here.

    Loaded the SCSI driver via:

    [root@localhost mark]# modprobe aic7xxx
    [root@localhost mark]# lsmod
    Module Size Used by
    aic7xxx 133176 0 (unused)
    sg 15968 0 (autoclean) (unused)
    usb-uhci 26660 0 (unused)
    autofs 9604 1 (autoclean)
    irda 84289 1
    ppp 21292 0 (autoclean) (unused)
    slhc 4572 0 (autoclean) [ppp]
    tulip 30624 1 (autoclean)
    keybdev 1832 0 (unused)
    usbkbd 2292 0 (unused)
    input 2880 0 [keybdev usbkbd]
    usb-storage 10120 0 (unused)
    usbcore 27236 0 [usb-uhci usbkbd usb-storage]
    supermount 15112 2 (autoclean)

    [root@localhost mark]# find-scanner
    find-scanner: found scanner "UMAX Astra 600S V1.6" at device /dev/scanner
    find-scanner: found scanner "UMAX Astra 600S V1.6" at device /dev/sg0
    find-scanner: found scanner "UMAX Astra 600S V1.6" at device /dev/sga

    [mark@localhost mark]$ export SANE_DEBUG_UMAX=12
    [mark@localhost mark]$ scanimage -d umax:/dev/scanner
    [sanei_init_debug]: Setting debug level of umax to 12.
    [umax] sane_init
    [umax] This is sane-umax version 1.0 build 18
    [umax] (C) 1997-2000 by Oliver Rauch
    [umax] EMAIL: Oliver.Rauch@Wolfsburg.DE
    [umax] attach_scanner: /dev/sga
    [umax] attach_scanner: opening /dev/sga
    [umax] attach_scanner: sanei_scsi_open_extended returned scsi buffer size =
    16384
    [umax] init
    [umax] backend runs on little endian machine
    [umax] variable scsi buffer size (usage of sanei_scsi_open_extended)
    [umax] initialize_values
    [umax] identify_scanner
    [umax] do_inquiry
    [umax] Found UMAX scanner Astra 600S version V1.6 on device /dev/sga
    [umax] setting up special options for Astra 600S
    [umax] - correcting wrong inquiry data
    [umax] do_new_inquiry
    [umax] - activating inversion of shading data
    [umax] get_inquiry_values
    [umax] INQUIRY:
    [umax] ========
    [umax]
    [umax] vendor........................: 'UMAX '
    [umax] product.......................: 'Astra 600S '
    [umax] version.......................: 'V1.6'
    [umax]
    [umax] CBHS value range..............: 0-255
    [umax] scanmode......................: flatbed (FB)
    [umax] inquiry block length..........: 158 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] - calibration mode control by driver
    [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] - automatic document feeder (ADF)
    [umax]
    [umax] scanner capability:
    [umax] -------------------
    [umax] - bi-level image reverse
    [umax] - support highlight function
    [umax] - paper length can reach to 14 inch
    [umax] - shading data/gain uploadable
    [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 output 8 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....................: line with CCD distance
    [umax]
    [umax] maximum video memory......................: 228 KB
    [umax]
    [umax] reserved byte 0x72 = 0
    [umax]
    [umax] optical resolution........................: 300 dpi
    [umax] maximum x-resolution......................: 300 dpi
    [umax] maximum y-resolution......................: 600 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]
    [umax] DOR (double optical resolution-mode):
    [umax] DOR optical resolution....................: 0 dpi
    [umax] DOR maximum x-resolution..................: 0 dpi
    [umax] DOR maximum y-resolution..................: 0 dpi
    [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: 66
    [umax] fb/uta: color line arrangement mode.......: 32
    [umax] adf: color line arrangement mode.......: 0
    [umax] CCD line distance.........................: 8
    [umax]
    [umax] reserved byte 0x9e = 0
    [umax] attach_scanner: /dev/scanner
    [umax] attach_scanner: opening /dev/scanner
    [umax] attach_scanner: sanei_scsi_open_extended returned scsi buffer size =
    16384
    [umax] init
    [umax] backend runs on little endian machine
    [umax] variable scsi buffer size (usage of sanei_scsi_open_extended)
    [umax] initialize_values
    [umax] identify_scanner
    [umax] do_inquiry
    [umax] Found UMAX scanner Astra 600S version V1.6 on device /dev/scanner
    [umax] setting up special options for Astra 600S
    [umax] - correcting wrong inquiry data
    [umax] do_new_inquiry
    [umax] - activating inversion of shading data
    [umax] get_inquiry_values
    [umax] INQUIRY:
    [umax] ========
    [umax]
    [umax] vendor........................: 'UMAX '
    [umax] product.......................: 'Astra 600S '
    [umax] version.......................: 'V1.6'
    [umax]
    [umax] CBHS value range..............: 0-255
    [umax] scanmode......................: flatbed (FB)
    [umax] inquiry block length..........: 158 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] - calibration mode control by driver
    [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] - automatic document feeder (ADF)
    [umax]
    [umax] scanner capability:
    [umax] -------------------
    [umax] - bi-level image reverse
    [umax] - support highlight function
    [umax] - paper length can reach to 14 inch
    [umax] - shading data/gain uploadable
    [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 output 8 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....................: line with CCD distance
    [umax]
    [umax] maximum video memory......................: 228 KB
    [umax]
    [umax] reserved byte 0x72 = 0
    [umax]
    [umax] optical resolution........................: 300 dpi
    [umax] maximum x-resolution......................: 300 dpi
    [umax] maximum y-resolution......................: 600 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]
    [umax] DOR (double optical resolution-mode):
    [umax] DOR optical resolution....................: 0 dpi
    [umax] DOR maximum x-resolution..................: 0 dpi
    [umax] DOR maximum y-resolution..................: 0 dpi
    [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: 66
    [umax] fb/uta: color line arrangement mode.......: 32
    [umax] adf: color line arrangement mode.......: 0
    [umax] CCD line distance.........................: 8
    [umax]
    [umax] reserved byte 0x9e = 0
    [umax] sane_open
    [umax] Using 8 bits for gamma input
    [umax] init_options
    [umax] sane_start
    [umax] sane_start: sanei_scsi_open_extended returned scsi buffer size =
    131072
    [umax] sane_start: buffer size has changed, reallocating buffer
    [umax] initialize_values
    [umax] grab_scanner
    [umax] wait_scanner
    [umax] scanner ready
    [umax] scanner reserved
    [umax] Using 8 bits for gamma input
    [umax] Using 8 bits for output
    [umax] check_values
    [umax] using one pass scanning mode
    [umax] scanner uses color-line-ordering with CCD-distance of 8 lines
    [umax] sane_get_parameters
    [umax] x_resolution (dpi) = 100
    [umax] y_resolution (dpi) = 100
    [umax] x_coordinate_base (dpi) = 1200
    [umax] y_coordinate_base (dpi) = 1200
    [umax] upper_left_x (xbase) = 0
    [umax] upper_left_y (ybase) = 0
    [umax] scanwidth (xbase) = 10198
    [umax] scanlength (ybase) = 16798
    [umax] width in pixels = 850
    [umax] length in pixels = 1400
    [umax] bits per pixel/color = 8
    [umax] bytes per line = 2550
    [umax] pixels_per_line = 850
    [umax] lines = 1400
    [umax] negative = 0
    [umax] threshold (lineart) = 127
    [umax] brightness (halftone) = 127
    [umax] contrast (halftone) = 127
    [umax] analog_gamma = 0 0 0
    [umax] highlight = 255 255 255
    [umax] shadow = 0 0 0
    [umax] calibrat. exposure time = 0 0 0
    [umax] scan exposure time = 0 0 0
    [umax] shading type number = 3
    [umax] calibration mode number = 0
    [umax] quality calibration = 0
    [umax] fast preview function = 0
    [umax] DOR = 0
    [umax] ADF = 0
    [umax] slow scan speed = 0
    [umax] smear = 0
    [umax] set_window_param
    [umax] window descriptor block created with 82 bytes
    [umax] check condition sense handler
    [umax] check condition sense: ILLEGAL REQUEST
    [umax] -> no error (#0)
    [umax] -> invalid field in parameter list
    [umax] umax_set_window_param: command returned status Error during device
    I/O
    [umax] start_scan
    [umax] starting scan
    [umax] do_calibration
    [umax] wait_scanner
    [umax] scanner reports Device busy, waiting ...
    [umax] check condition sense handler
    [umax] check condition sense: VENDOR SPECIFIC
    [umax] -> no error (#0)
    [umax] -> calibration by driver
    [umax] scanner ready
    [umax] driver is doing calibration
    [umax] do_request_sense
    [umax] scanner sends 66 lines with 7647 pixels and 1 bytes/pixel
    [umax] calculating average value for 8 bit shading data!
    [umax] read_shading_data
    [umax] 8 bit shading-line 1 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 2 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 3 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 4 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 5 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 6 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 7 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 8 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 9 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 10 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 11 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 12 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 13 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 14 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 15 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 16 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 17 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 18 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 19 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 20 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 21 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 22 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 23 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 24 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 25 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 26 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 27 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 28 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 29 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 30 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 31 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 32 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 33 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 34 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 35 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 36 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 37 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 38 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 39 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 40 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 41 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 42 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 43 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 44 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 45 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 46 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 47 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 48 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 49 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 50 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 51 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 52 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 53 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 54 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 55 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 56 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 57 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 58 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 59 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 60 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 61 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 62 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 63 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 64 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 65 read
    [umax] read_shading_data
    [umax] 8 bit shading-line 66 read
    [umax] inverting 8 bit shading data
    [umax] send_shading_data
    [umax] shading-data sent
    [umax] start_scan
    [umax] starting scan
    [umax] sane_get_parameters
    P6
    # SANE data follows
    850 1400
    255
    [umax] reader_process started
    [umax] reader_process: starting to READ data
    [umax] trim_rowbufsize: row_bufsize = 130050 bytes = 51 lines
    [umax] reading 3570000 bytes in blocks of 130050 bytes
    [umax] ordering from line-order to pixel-order
    [umax] read_image_data
    [umax] wait_scanner
    [umax] scanner reports Device busy, waiting ...
    [umax] scanner ready

    Finally decided to hit control-C here

    scanimage: stopping scanner...
    [umax] sane_cancel
    [umax] do_cancel
    [umax] killing reader_process
    [umax] reader_process: terminated by signal 15

    Thanks very much for any advice, help...
    ::mark

    p.s. I'm happy to try out the new 1.0.4 release if anyone thinks that will
    help.

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Tue Dec 26 2000 - 13:29:01 PST