Re: Microtek X6, USB and slackware problems

From: Roy Mathew (roymath@yahoo.com)
Date: Fri Feb 09 2001 - 09:20:27 PST

  • Next message: SCC: "Re: scanimage works, but not xscanimage or xsane"

    Hi Oliver,

    Where does this leave things? Am I stuck without any resolution?
    Should I return my scanner or can I hope that there may be
    a solution soon. (I don't run windows either).

    Thanks,
    Roy.

    --- Oliver Neukum <Oliver.Neukum@lrz.uni-muenchen.de> wrote:
    > On Dienstag, 6. Februar 2001 22:15, you wrote:
    > > Hi Roy, Hi Oliver,
    > >
    > > I got the logfile from Oliver and discovered that the scanner returns
    > > unexpected data with the scsi_read_image_info command. Normally it gives
    > > back the width and height of the image to be scanned and the amount of data
    > > it will provide. But here it looks like the scanner simply returns the
    > > bytes it has recieved during the last command (scsi_set_window).
    > > By the way, have you modified the backend code? I would have expected that
    > > you get an error message because your model (model code 0x99) is not
    > > recognized by the backend.
    >
    > case 0x99:
    > *model_string = "ScanMaker X6USB";
    > if ( md->revision == 1.00 )
    > md->model_flags |= MD_OFFSET_2;
    > md->model_flags |= MD_X6_SHORT_TRANSFER;
    > break;
    >
    > This code is by John Fremlin originally and was incorporated in sane-1.0.3
    >
    > > In fact I think there are two possibilities:
    > > a) Microtek again doesn't follow it's own standards with newer scanners and
    > > the scanner must be handled different from the others
    > > b) there is a problem with the sg / USB driver or interface
    >
    > I think this is not the case, as this error is fully reproducible and seems
    > to be limited to this command only.
    > Furthermore it affects only two users with different kernel versions.
    > I myself can scan. I am attaching a log of a test which works.
    >
    > > to make this clear it would be helpful to know about the communication with
    > > the scanner when scanning with Windows. I got my (SCSI-via-)parport scanner
    > > running with wine and was able to trace the data that was send via the ASPI
    > > interface. I don't know if it is possible with SCSI-via-USB.
    >
    > That can't be done. Native windows can be snooped but I don't have windows.
    >
    > Regards
    > Oliver Neukum
    > > [sanei_debug] Setting debug level of microtek2 to 100.
    > [microtek2] sane_init: Microtek2 (v0.8) says hello...
    > [microtek2] parse_config_file: fp=0x8050960
    > [microtek2] attach_one: name='option dump 2'
    > [microtek2] add_device_list: device='option dump 2'
    > [microtek2] attach: device='option dump 2'
    > [microtek2] scsi_inquiry: mi=0x8050a9c, device='option dump 2'
    > [microtek2] scsi_inquiry: 'Invalid argument'
    > [microtek2] attach: 'Invalid argument'
    > [microtek2] attach_one: name='/dev/sgd'
    > [microtek2] add_device_list: device='/dev/sgd'
    > [microtek2] attach: device='/dev/sgd'
    > [microtek2] scsi_inquiry: mi=0x8051b94, device='/dev/sgd'
    > [microtek2] [inquiry]
    > [microtek2] 12,00,00,00,60,00,
    > [microtek2] [inquiryresult]
    > [microtek2] 06,00,02,02,5b,00,00,00,20,20,20,20,20,20,20,20,
    > [microtek2] 53,63,61,6e,6e,65,72,20,36,33,36,41,34,20,20,20,
    > [microtek2] 31,2e,35,30,99,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] dump_area: inquiryresult
    > [microtek2] 0: 060002025b000000 2020202020202020 ....[...
    > [microtek2] 16: 5363616e6e657220 3633364134202020 Scanner 636A4
    > [microtek2] 32: 312e353099000000 0000000000000000 1.50.... ........
    > [microtek2] 48: 0000000000000000 0000000000000000 ........ ........
    > [microtek2] 64: 0000000000000000 0000000000000000 ........ ........
    > [microtek2] 80: 0000000000000000 0000000000000000 ........ ........
    > [microtek2] check_inquiry: md=0x8051b90
    > [microtek2] scsi_read_attributes: mi=0x8051b94, device='/dev/sgd', source=0
    > [microtek2] [scannerattributes]
    > [microtek2] 28,00,82,00,00,00,00,00,28,00,
    > [microtek2] [scannerattributesresults]
    > [microtek2] d1,18,08,02,58,04,b0,13,ec,1b,6c,02,58,5d,13,ec,
    > [microtek2] 10,00,03,ff,ff,fe,e0,00,00,00,50,01,40,46,00,f6,
    > [microtek2] 01,00,01,06,ff,ff,ff,fe,
    > [microtek2] dump_attributes: mi=0x8051b94
    > [microtek2]
    > [microtek2] Scanner attributes from device structure
    > [microtek2] ========================================
    > [microtek2] Scanner ID...
    > [microtek2] ~~~~~~~~~~~~~
    > [microtek2] Vendor Name : ' '
    > [microtek2] Model Name : 'Scanner 636A4 '
    > [microtek2] Revision : '1.50'
    > [microtek2] Model Code : 0x99
    > [microtek2] Unknown
    > [microtek2] Device Type Code : 0x06 (Scanner),
    > [microtek2] Scanner type Flatbed scanner
    > [microtek2] Supported options : Automatic document feeder: Yes
    > [microtek2] Transparency media adapter: Yes
    > [microtek2] Auto paper detecting: No
    > [microtek2] Advanced picture system: No
    > [microtek2] Stripes: No
    > [microtek2] Slides: No
    > [microtek2] Scan button : Yes
    > [microtek2]
    > [microtek2] Imaging Capabilities...
    > [microtek2] ~~~~~~~~~~~~~~~~~~~~~~~
    > [microtek2] Color scanner : Yes
    > [microtek2] Number passes : 1 pass
    > [microtek2] Resolution : X-max: 600 dpi
    > Y-max: 1200 dpi
    > [microtek2] Geometry : Geometric width: 5100 pts (8.50'')
    > [microtek2] Geometric height: 7020 pts (11.70'')
    > [microtek2] Optical resolution : 600
    > [microtek2] Modes : Lineart: Yes
    > Halftone: No
    > [microtek2] Gray: Yes
    > Color: Yes
    > [microtek2] Depths : Nibble Gray: Yes
    > [microtek2] 10-bit-color: No
    > [microtek2] 12-bit-color: Yes
    > [microtek2] d/l of HT pattern : No
    > [microtek2] Builtin HT pattern : 0
    > [microtek2] LUT capabilities : 4096 words
    > [microtek2]
    > [microtek2] Miscellaneous capabilities...
    > [microtek2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    > [microtek2] Data format : Chunky data, R, G & B in one pixel
    > [microtek2] Color Sequence :
    > [microtek2] R
    > [microtek2] G
    > [microtek2] B
    > [microtek2] Scanning direction : [microtek2] Left to right
    > [microtek2] CCD gap : 8 lines
    > [microtek2] CCD pixels : 5100
    > [microtek2] Calib white stripe location : -288
    > [microtek2] Max calib space : 80
    > [microtek2] Number of lens : 1
    > [microtek2] Max number of windows : 64
    > [microtek2] Shading transfer function : 17
    > [microtek2] Red balance : 246
    > [microtek2] Green balance : 256
    > [microtek2] Blue balance : 262
    > [microtek2] Buffer type : Ring
    > [microtek2] FEPROM : No
    > [microtek2] scsi_read_attributes: mi=0x8051c94, device='/dev/sgd', source=2
    > [microtek2] [scannerattributes]
    > [microtek2] 28,00,82,00,00,02,00,00,28,00,
    > [microtek2] [scannerattributesresults]
    > [microtek2] d3,90,08,02,58,04,b0,0b,b8,0e,10,02,58,5d,0b,b8,
    > [microtek2] 10,00,03,ff,ff,ff,2c,00,00,00,50,01,08,46,01,00,
    > [microtek2] 01,00,01,00,ff,ff,ff,ff,
    > [microtek2] scsi_read_attributes: mi=0x8051c14, device='/dev/sgd', source=1
    > [microtek2] [scannerattributes]
    > [microtek2] 28,00,82,00,00,01,00,00,28,00,
    > [microtek2] [scannerattributesresults]
    > [microtek2] d3,18,08,02,58,04,b0,13,ec,1f,a4,02,58,5d,13,ec,
    > [microtek2] 10,00,03,ff,ff,fe,e0,00,00,00,50,01,08,46,01,3a,
    > [microtek2] 01,44,01,48,ff,ff,ff,ff,
    > [microtek2] scsi_read_system_status: md=0x8051b90, fd=-1
    > [microtek2] [readsystemstatus]
    > [microtek2] 28,00,81,00,00,00,00,00,09,00,
    > [microtek2] [readsystemstatusresult]
    > [microtek2] 21,02,00,00,11,00,00,00,00,
    > [microtek2] attach_one: name='/dev/sgd'
    > [microtek2] add_device_list: device='/dev/sgd'
    > [microtek2] add_device_list: device '/dev/sgd' already in list
    > [microtek2] sane_open: device='/dev/sg3'
    > [microtek2] add_device_list: device='/dev/sg3'
    > [microtek2] attach: device='/dev/sg3'
    > [microtek2] scsi_inquiry: mi=0x8052574, device='/dev/sg3'
    > [microtek2] [inquiry]
    > [microtek2] 12,00,00,00,60,00,
    > [microtek2] [inquiryresult]
    > [microtek2] 06,00,02,02,5b,00,00,00,20,20,20,20,20,20,20,20,
    > [microtek2] 53,63,61,6e,6e,65,72,20,36,33,36,41,34,20,20,20,
    > [microtek2] 31,2e,35,30,99,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
    > [microtek2] dump_area: inquiryresult
    > [microtek2] 0: 060002025b000000 2020202020202020 ....[...
    > [microtek2] 16: 5363616e6e657220 3633364134202020 Scanner 636A4
    > [microtek2] 32: 312e353099000000 0000000000000000 1.50.... ........
    > [microtek2] 48: 0000000000000000 0000000000000000 ........ ........
    > [microtek2] 64: 0000000000000000 0000000000000000 ........ ........
    > [microtek2] 80: 0000000000000000 0000000000000000 ........ ........
    > [microtek2] check_inquiry: md=0x8052570
    > [microtek2] scsi_read_attributes: mi=0x8052574, device='/dev/sg3', source=0
    > [microtek2] [scannerattributes]
    > [microtek2] 28,00,82,00,00,00,00,00,28,00,
    > [microtek2] [scannerattributesresults]
    > [microtek2] d1,18,08,02,58,04,b0,13,ec,1b,6c,02,58,5d,13,ec,
    > [microtek2] 10,00,03,ff,ff,fe,e0,00,00,00,50,01,40,46,00,f6,
    > [microtek2] 01,00,01,06,ff,ff,ff,fe,
    > [microtek2] scsi_read_attributes: mi=0x8052674, device='/dev/sg3', source=2
    > [microtek2] [scannerattributes]
    > [microtek2] 28,00,82,00,00,02,00,00,28,00,
    > [microtek2] [scannerattributesresults]
    > [microtek2] d3,90,08,02,58,04,b0,0b,b8,0e,10,02,58,5d,0b,b8,
    > [microtek2] 10,00,03,ff,ff,ff,2c,00,00,00,50,01,08,46,01,00,
    > [microtek2] 01,00,01,00,ff,ff,ff,ff,
    > [microtek2] scsi_read_attributes: mi=0x80525f4, device='/dev/sg3', source=1
    > [microtek2] [scannerattributes]
    > [microtek2] 28,00,82,00,00,01,00,00,28,00,
    > [microtek2] [scannerattributesresults]
    > [microtek2] d3,18,08,02,58,04,b0,13,ec,1f,a4,02,58,5d,13,ec,
    > [microtek2] 10,00,03,ff,ff,fe,e0,00,00,00,50,01,08,46,01,3a,
    > [microtek2] 01,44,01,48,ff,ff,ff,ff,
    > [microtek2] scsi_read_system_status: md=0x8052570, fd=-1
    > [microtek2] [readsystemstatus]
    > [microtek2] 28,00,81,00,00,00,00,00,09,00,
    > [microtek2] [readsystemstatusresult]
    > [microtek2] 21,02,00,00,11,00,00,00,00,
    > [microtek2] init_options: handle=0x8052da0, source=0
    > [microtek2] get_lut_size: mi=0x8052574
    > [microtek2] get_lut_size: mi=0x8052574, lut_size=4096, lut_word=2
    > [microtek2] set_option_dependencies: val=0x8052da8, sod=0x8052ea0, mode=Color
    > [microtek2] restore_gamma_options: val=0x8052da8, sod=0x8052ea0
    > [microtek2] sane_control_option: opt=12, act=0, val=215.899994
    > [microtek2] sane_control_option: opt=13, act=0, val=297.179993
    > [microtek2] sane_control_option: opt=10, act=0, val=0.000000
    > [microtek2] sane_control_option: opt=11, act=0, val=0.000000
    > [microtek2] sane_control_option: opt=10, act=0, val=0.000000
    > [microtek2] sane_control_option: option=12, action=1, value=215.899994
    > [microtek2] sane_control_option: opt=11, act=0, val=0.000000
    > [microtek2] sane_control_option: option=13, action=1, value=297.179993
    > [microtek2] sane_start: handle=0x0x8052da0
    > [microtek2] scsi_read_system_status: md=0x8052570, fd=4
    > [microtek2] [readsystemstatus]
    > [microtek2] 28,00,81,00,00,00,00,00,09,00,
    > [microtek2] [readsystemstatusresult]
    > [microtek2] 21,02,00,00,11,00,00,00,00,
    > [microtek2] get_scan_parameters: handle=0x8052da0
    > [microtek2] get_scan_mode_and_depth: handle=0x8052da0
    > [microtek2] get_scan_mode_and_depth: mode=5, depth=8, bits_pp_in=8,
    > bits_pp_out=8, preview=0
    > [microtek2] get_scan_parameters: mode=5, depth=8, bpp_in=8, bpp_out=8
    > [microtek2] get_scan_parameters: yres=72, x1=0, width=5100, y1=0, height=7020
    > [microtek2] scsi_read_system_status: md=0x8052570, fd=4
    > [microtek2] [readsystemstatus]
    > [microtek2] 28,00,81,00,00,00,00,00,09,00,
    > [microtek2] [readsystemstatusresult]
    > [microtek2] 21,02,00,00,11,00,00,00,00,
    > [microtek2] scsi_send_system_status: md=0x8052570, fd=4
    > [microtek2] [sendsystemstatus]
    > [microtek2] 2a,00,81,00,00,00,00,00,09,00,01,02,00,00,11,00,
    > [microtek2] 00,00,00,
    >
    === message truncated ===

    __________________________________________________
    Do You Yahoo!?
    Get personalized email addresses from Yahoo! Mail - only $35
    a year! http://personal.mail.yahoo.com/

    --
    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 : Fri Feb 09 2001 - 09:19:19 PST