Hi, I've persuaded my scanner to communicate with SANE over the USB, but am still failing to get it to scan. Maybe my configuration is at fault.
SANE_DEBUG_UMAX=255 scanimage -d umax results as below, but I don't really understand what it's all about. Can anyone point me in the right direction, please? [sanei_debug] Setting debug level of umax to 255. [umax] sane_init [umax] This is sane-umax version 1.0 build 44 [umax] compiled with USB support for Astra 2200 [umax] (C) 1997-2002 by Oliver Rauch [umax] EMAIL: oliver.ra...@rauch-domain.de [umax] reading configure file umax.conf [umax] option scsi-maxqueue = 2 [umax] option scsi-buffer-size-min = 65536 [umax] option scsi-buffer-size-max = 262144 [umax] option scan-lines = 40 [umax] option preview-lines = 10 [umax] option handle-bad-sense-error = 0 [umax] option execute-request-sense = 0 [umax] option force-preview-bit-rgb = 0 [umax] option slow-speed = -1 [umax] option care-about-smearing = -1 [umax] option calibration-full-ccd = -1 [umax] option calibration-width-offset = -99999 [umax] option calibration-bytes-pixel = -1 [umax] option exposure-time-rgb-bind = 0 [umax] option lamp-control-available = 0 [umax] option connection-type = 2 [umax] sanei_usb_attach_matching_devices(usb 0x1606 0x0230) [umax] attach_scanner: libusb:001:011, connection_type 2 [umax] attach_scanner: opening usb device libusb:001:011 [umax] Initializing the PV8630 [umax] PV8630 initialized [umax] attach_scanner: allocating SCSI buffer[0] [umax] init [umax] setting request_scsi_maxqueue = 1 for USB connection [umax] request_scsi_maxqueue = 1 [umax] request_preview_lines = 10 [umax] request_scan_lines = 40 [umax] handle_bad_sense_error = 0 [umax] execute_request_sense = 0 [umax] scsi_buffer_size_min = 65536 [umax] scsi_buffer_size_max = 262144 [umax] force_preview_bit_rgb = 0 [umax] slow = -1 [umax] smear = -1 [umax] calibration_area = -1 [umax] calibration_width_offset = -99999 [umax] calibration_width_offset_batch = -99999 [umax] calibration_bytespp = -1 [umax] exposure_time_rgb_bind = 0 [umax] invert_shading_data = -1 [umax] lamp_control_available = 0 [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] Sending SCSI cmd 0x12 cdb len 6, param len 0, result len 5 [umax] SCSI cmd returned 5 bytes [umax] SCSI command successfully executed [umax] Sending SCSI cmd 0x12 cdb len 6, param len 0, result len 160 [umax] SCSI cmd returned 160 bytes [umax] SCSI command successfully executed [umax] Found UMAX scanner Astra 2200 version V2.2 on device libusb:001:011 [umax] umax_correct_inquiry("UMAX Astra 2200 V2.2") [umax] setting up special options for Astra 2200 [umax] - lamp control enabled [umax] - calibration by driver is done for each CCD pixel [umax] - setting calibration_bytespp = 2 [umax] - common x and y resolution [umax] - disabling quality calibration for USB connection [umax] get_inquiry_values [umax] INQUIRY: [umax] ======== [umax] [umax] vendor........................: 'UMAX ' [umax] product.......................: 'Astra 2200 ' [umax] version.......................: 'V2.2' [umax] peripheral qualifier..........: 0 [umax] peripheral device type........: 6 [umax] [umax] CBHS value range..............: 0-255 [umax] scanmode......................: flatbed (FB) [umax] UTA (transparency)............: available [umax] UTA lamp status ..............: on [umax] [umax] inquiry block length..........: 160 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] scsi features (00): [umax] ------------------- [umax] [umax] f/w support function: [umax] --------------------- [umax] - fast preview function [umax] [umax] reserved byte 0x36 = 0 [umax] reserved byte 0x37 = 0 [umax] [umax] scan modes (76): [umax] ---------------- [umax] - single pass color mode [umax] - lineart mode [umax] - gray mode [umax] - color mode [umax] - transparency (UTA) [umax] [umax] scanner capability (be, 00, 00): [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 12 bits/pixel support [umax] gamma output 8 bits/pixel support [umax] gamma output 12 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] 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....................: 11.70 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....................: 4.00 inch [umax] UTA maximum scan length...................: 5.00 inch [umax] [umax] reserved byte 0x82 = 128 [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: 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] [umax] ==================== end of inquiry ==================== [umax] [umax] x_range.max = 215.899994 [umax] y_range.max = 297.179993 [umax] x_dpi_range.max = 600.000000 [umax] y_dpi_range.max = 1200.000000 [umax] option connection-type = 2 [umax] attach_scanner: /dev/usbscanner, connection_type 2 [umax] attach_scanner: opening usb device /dev/usbscanner [umax] sanei_umaxusb_open: open of `/dev/usbscanner' failed: Invalid argument [umax] ERROR: attach_scanner: opening usb device /dev/usbscanner failed [umax] finished reading configure file [umax] sane_open [umax] sane_open: no devicename, opening first device [umax] Using 12 bits for gamma input [umax] init_options [umax] set mode [#2] to Color [umax] get [#0] [umax] get [#0] [umax] sane_get_option_descriptor 0 [umax] sane_get_option_descriptor 1 [umax] sane_get_option_descriptor 2 [umax] sane_get_option_descriptor 3 [umax] sane_get_option_descriptor 4 [umax] sane_get_option_descriptor 5 [umax] sane_get_option_descriptor 6 [umax] sane_get_option_descriptor 7 [umax] sane_get_option_descriptor 8 [umax] sane_get_option_descriptor 9 [umax] sane_get_option_descriptor 10 [umax] sane_get_option_descriptor 11 [umax] get br-x [#11] [umax] sane_get_option_descriptor 12 [umax] get br-y [#12] [umax] sane_get_option_descriptor 13 [umax] sane_get_option_descriptor 14 [umax] sane_get_option_descriptor 15 [umax] sane_get_option_descriptor 16 [umax] sane_get_option_descriptor 17 [umax] sane_get_option_descriptor 18 [umax] sane_get_option_descriptor 19 [umax] sane_get_option_descriptor 20 [umax] sane_get_option_descriptor 21 [umax] sane_get_option_descriptor 22 [umax] sane_get_option_descriptor 23 [umax] sane_get_option_descriptor 24 [umax] sane_get_option_descriptor 25 [umax] sane_get_option_descriptor 26 [umax] sane_get_option_descriptor 27 [umax] sane_get_option_descriptor 28 [umax] sane_get_option_descriptor 29 [umax] sane_get_option_descriptor 30 [umax] sane_get_option_descriptor 31 [umax] sane_get_option_descriptor 32 [umax] sane_get_option_descriptor 33 [umax] sane_get_option_descriptor 34 [umax] sane_get_option_descriptor 35 [umax] sane_get_option_descriptor 36 [umax] sane_get_option_descriptor 37 [umax] sane_get_option_descriptor 38 [umax] sane_get_option_descriptor 39 [umax] sane_get_option_descriptor 40 [umax] sane_get_option_descriptor 41 [umax] sane_get_option_descriptor 42 [umax] sane_get_option_descriptor 43 [umax] sane_get_option_descriptor 44 [umax] sane_get_option_descriptor 45 [umax] sane_get_option_descriptor 46 [umax] sane_get_option_descriptor 47 [umax] sane_get_option_descriptor 48 [umax] sane_get_option_descriptor 49 [umax] sane_get_option_descriptor 50 [umax] sane_get_option_descriptor 51 [umax] sane_get_option_descriptor 52 [umax] sane_get_option_descriptor 53 [umax] sane_get_option_descriptor 54 [umax] sane_get_option_descriptor 55 [umax] sane_get_option_descriptor 56 [umax] sane_get_option_descriptor 57 [umax] sane_get_option_descriptor 58 [umax] sane_get_option_descriptor 59 [umax] sane_get_option_descriptor 60 [umax] sane_get_option_descriptor 61 [umax] sane_get_option_descriptor 62 [umax] sane_get_option_descriptor 63 [umax] sane_get_option_descriptor 64 [umax] sane_get_option_descriptor 65 [umax] sane_get_option_descriptor 66 [umax] sane_get_option_descriptor 67 [umax] get tl-x [#9] [umax] get tl-y [#10] [umax] get tl-x [#9] [umax] sane_get_option_descriptor 11 [umax] set br-x [#11] to 215.899994 [umax] get tl-y [#10] [umax] sane_get_option_descriptor 12 [umax] set br-y [#12] to 297.179993 [umax] sane_start [umax] initialize_values [umax] Using 12 bits for gamma input [umax] Using 8 bits for output [umax] check_values [umax] using one pass scanning mode [umax] scanner uses color-pixel-ordering [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) = 10199 [umax] scanlength (ybase) = 14039 [umax] width in pixels = 850 [umax] length in pixels = 1170 [umax] bits per pixel/color = 8 [umax] bytes per line = 2550 [umax] pixels_per_line = 850 [umax] lines = 1170 [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] calibration mode number = 0 [umax] batch scan = 0 [umax] batch end = 0 [umax] batch next top left y = 14039 [umax] quality calibration = 0 [umax] warm up = 0 [umax] fast preview function = 0 [umax] DOR = 0 [umax] ADF = 0 [umax] manual focus = 0 [umax] fix focus position = 0 [umax] disable pre focus = 0 [umax] lens cal in doc pos = 0 [umax] holder focus pos 0mm = 0 [umax] Initializing the PV8630 [umax] PV8630 initialized [umax] sane_start: umax_scsi_open_extended returned scsi buffer size = 65536 [umax] sane_start: buffer size has changed, reallocating buffer [umax] sane_start: freeing SCSI buffer[0] [umax] sane_start: allocating SCSI buffer[0] [umax] grab_scanner [umax] wait_scanner [umax] Sending SCSI cmd 0x00 cdb len 6, param len 0, result len 0 [umax] SCSI command successfully executed [umax] scanner ready [umax] Sending SCSI cmd 0x16 cdb len 6, param len 0, result len 0 [umax] SCSI command successfully executed [umax] scanner reserved [umax] sending 3 * 4096 bytes of gamma data for RGB [umax] send_gamma_data [umax] using gamma download curve format type 2 [umax] Sending SCSI cmd 0x2a cdb len 10, param len 12294, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_send_gamma_data(DCF=2): command returned status Error during device I/O [umax] set_window_param [umax] window descriptor block created with 82 bytes [umax] Sending SCSI cmd 0x24 cdb len 10, param len 254, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_set_window_param: command returned status Error during device I/O [umax] start_scan [umax] starting scan [umax] Sending SCSI cmd 0x1b cdb len 6, param len 1, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_start_scan: command returned status Error during device I/O [umax] trying to release scanner ... [umax] Sending SCSI cmd 0x17 cdb len 6, param len 0, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_give_scanner: command returned status Error during device I/O [umax] trying to reposition scanner ... [umax] Sending SCSI cmd 0x31 cdb len 10, param len 0, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_reposition_scanner: command returned status Error during device I/O scanimage: sane_start: Error during device I/O [umax] sane_cancel [umax] do_cancel [umax] trying to release scanner ... [umax] Sending SCSI cmd 0x17 cdb len 6, param len 0, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_give_scanner: command returned status Error during device I/O [umax] trying to reposition scanner ... [umax] Sending SCSI cmd 0x31 cdb len 10, param len 0, result len 0 [umax] error in sanei_pv8630_bulkread (got a5) [umax] umax_reposition_scanner: command returned status Error during device I/O [umax] closing scannerdevice filedescriptor [umax] sane_close [umax] sane_exit -- Tony van der Hoff | mailto:t...@vanderhoff.org Buckinghamshire, England