Re: Microtek ScanMaker V300?

David B. Rees (dbr@oto.dyn.ml.org)
Sat, 03 Oct 1998 08:50:25 -0700 (PDT)

On 03-Oct-98 Bernd Schroeder wrote:
> On Wed, Sep 30, 1998 at 09:04:40AM -0700, David B. Rees wrote:
>> On 26-Sep-98 Bernd Schroeder wrote:
> Did you already try
>
> ftp://ftp.muc.de/people/bernds/mtek2/microtek2-0.5.tar.gz ?
>
> I have added a workaraound for the V300 (as posted to the mailing list),
> that assumes, that most of the data are stored in 2 bytes instead of 4 bytes
> for the V300, so you might get further with this.
>
> Please let me know what happens.

Hello,

I've tried the microtek2 driver above, and I've attached the results for the
following command:

scanimage -d microtek2:/dev/sga >t.pnm

Thanks,
Dave

--------------------------------
[sanei_init_debug]: Setting debug level of microtek2 to 128.
[microtek2] sane_init: Microtek2 (v0.5) says hello...
[microtek2] attach_one: name='# See sane-microtek2(5) for a description of the
options
'
[microtek2] add_device_list: device='# See sane-microtek2(5) for a description
of the options'
[microtek2] add_device_list: Comment or empty line in microtek2.conf
[microtek2] attach_one: returning
[microtek2] attach_one: name='
'
[microtek2] add_device_list: device=''
[microtek2] add_device_list: Comment or empty line in microtek2.conf
[microtek2] attach_one: returning
[microtek2] attach_one: name='option dump 2
'
[microtek2] add_device_list: device='option dump 2'
[microtek2] attach_one: returning
[microtek2] attach_one: name='/dev/sga'
[microtek2] add_device_list: device='/dev/sga'
[microtek2] attach: device='/dev/sga'
[microtek2] scsi_inquiry: mi=0x80b19b4, device='/dev/sga'
[inquiry]
120000006000
*********************** 2
sanei_scsi_req_enter 2
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203330304134202020322e353085000000
00000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000
[microtek2] check_inquiry: mi=0x80b19b4
[microtek2] scsi_read_attributes: mi=0x80b19b4, device='/dev/sga', source=0
[scannerattributes]
28008200000000001f00
*********************** 2
sanei_scsi_req_enter 2
[scannerattributesresults]
d36008012c025809f60db6012c0f09f6018c13ffffff8d0000003001080000
[microtek2] dump_attributes: mi=0x80b19b4

Scanner attributes from device structure
========================================

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ' '
Model Name: 'Scanner 300A4 '
Revision: '2.50'
Model Code: 0x85 (TR3)
Device Type Code: 0x06 (Scanner),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: Yes
Transparency media adapter: Yes
Auto paper detecting: Yes
Scan button: No

Imaging Capabilities...
~~~~~~~~~~~~~~~~~~~~~~~
Color scanner: Yes
Number passes: 1 pass
Resolution: X-max: 300 dpi
Y-max: 600 dpi
Geometry: Geometric width: 2550 pts (8.50'')
Geometric height: 3510 pts (11.70'')
Optical resol. : 300
Modes: Lineart: Yes
Halftone: Yes
Gray: Yes
Color: Yes
Depths: Nibble Gray: No
10-bit-color: No
12-bit-color: No
d/l of HT pattern: Yes
Builtin HT patt.: 12
LUT capabilities: 256 bytes

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in segregated sequence,
with color indicator
Color Sequence: G - B - R
CCD gap: 8 lines
CCD pixels: 2550
Calib wh str loc: -115
Max calib space: 48
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[microtek2] scsi_read_attributes: mi=0x80b1aa4, device='/dev/sga', source=2
[scannerattributes]
28008200000200001f00
*********************** 2
sanei_scsi_req_enter 2
[scannerattributesresults]
d36008012c0258070808ca012c0f09f6018c03ffffff800000003001080000
[microtek2] scsi_read_attributes: mi=0x80b1a2c, device='/dev/sga', source=1
[scannerattributes]
28008200000100001f00
*********************** 2
sanei_scsi_req_enter 2
[scannerattributesresults]
d32508012c025809f60fd2012c0f09f6018c03000000000000000001080000
[microtek2] scsi_read_system_status: md=0x80b19b0, fd=-1
[readsystemstatus]
28008100000000000900
*********************** 2
sanei_scsi_req_enter 2
[readsystemstatusresult]
010000001e00000000
[microtek2] attach_one: returning
[microtek2] attach_one: name='/dev/sga'
[microtek2] add_device_list: device='/dev/sga'
[microtek2] add_device_list: device '/dev/sga' already in list
[microtek2] attach_one: returning
[microtek2] sane_open: device='/dev/sga'
[microtek2] add_device_list: device='/dev/sga'
[microtek2] add_device_list: device '/dev/sga' already in list
[microtek2] attach: device='/dev/sga'
[microtek2] scsi_inquiry: mi=0x80b19b4, device='/dev/sga'
[inquiry]
120000006000
*********************** 2
sanei_scsi_req_enter 2
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203330304134202020322e353085000000
00000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000
[microtek2] check_inquiry: mi=0x80b19b4
[microtek2] scsi_read_attributes: mi=0x80b19b4, device='/dev/sga', source=0
[scannerattributes]
28008200000000001f00
*********************** 2
sanei_scsi_req_enter 2
[scannerattributesresults]
d36008012c025809f60db6012c0f09f6018c13ffffff8d0000003001080000
[microtek2] scsi_read_attributes: mi=0x80b1aa4, device='/dev/sga', source=2
[scannerattributes]
28008200000200001f00
*********************** 2
sanei_scsi_req_enter 2
[scannerattributesresults]
d36008012c0258070808ca012c0f09f6018c03ffffff800000003001080000
[microtek2] scsi_read_attributes: mi=0x80b1a2c, device='/dev/sga', source=1
[scannerattributes]
28008200000100001f00
*********************** 2
sanei_scsi_req_enter 2
[scannerattributesresults]
d32508012c025809f60fd2012c0f09f6018c03000000000000000001080000
[microtek2] scsi_read_system_status: md=0x80b19b0, fd=-1
[readsystemstatus]
28008100000000000900
*********************** 2
sanei_scsi_req_enter 2
[readsystemstatusresult]
010000001e00000000
[microtek2] init_options: handle=0x80ba250, source=0
[microtek2] get_lut_size: mi=0x80b19b4
[microtek2] get_lut_size: mi=0x80b19b4, lut_size=256, lut_word=1
[microtek2] set_option_dependencies: val=0x80ba258, sod=0x80ba334, mode=24-bit
Color
[microtek2] restore_gamma_options: val=0x80ba258, sod=0x80ba334
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=0
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=1
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=2
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=3
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=4
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=5
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=6
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=7
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=8
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=9
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=10
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=11
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=12
[microtek2] sane_control_option: opt=12, act=0, val=215.899994
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=13
[microtek2] sane_control_option: opt=13, act=0, val=297.179993
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=14
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=15
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=16
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=17
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=18
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=19
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=20
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=21
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=22
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=23
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=24
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=25
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=26
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=27
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=28
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=29
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=30
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=31
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=32
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=33
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=34
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=35
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=36
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=37
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=38
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=39
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=40
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=41
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=42
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=43
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=44
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=45
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=46
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=47
[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_get_option_descriptor: handle=0x80ba250, opt=12
[microtek2] sane_control_option: option=12, action=1, value=215.899994
[microtek2] sane_control_option: opt=11, act=0, val=0.000000
[microtek2] sane_get_option_descriptor: handle=0x80ba250, opt=13
[microtek2] sane_control_option: option=13, action=1, value=297.179993
[microtek2] sane_start: handle=0x0x80ba250
[microtek2] get_lut_size: mi=0x80b19b4
[microtek2] get_lut_size: mi=0x80b19b4, lut_size=256, lut_word=1
[microtek2] get_scan_parameters: handle=0x80ba250
[microtek2] get_scan_mode_and_depth: handle=0x80ba250
[microtek2] get_scan_mode_and_depth: mode=5, depth=8, bits_pp_in=8,
bits_pp_out=8
[microtek2] get_scan_parameters: mode=5, depth=8, bpp_in=8, bpp_out=8
[microtek2] get_scan_parameters: yres=72, x1=0, width=2550, y1=0, height=3510
[microtek2] scsi_send_system_status: md=0x80b19b0, fd=3
[sendsystemstatus]
2a008100000000000900010000001e00000000
*********************** 2
sanei_scsi_req_enter 2
[microtek2] scsi_set_window: ms=0x80ba250, wnd=1
[setwindowcmd]
24000000000000004500
[setwindowheader]
000000000000003d
[setwindowbody]
0000004800480000000000000000000009f600000db6800080050800008000100000000000000000
0080ff8080000080ff8080000080ff8080000080ff
*********************** 2
sanei_scsi_req_enter 2
[microtek2] scsi_read_image_info: ms=0x80ba250
[readimageinfo]
28008000000000001000
*********************** 2
sanei_scsi_req_enter 2
[readimageinforesult]
02640732034a0017aa74d2012c0f09f6
[microtek2] scsi_read_image_info: ppl=612, bpl=1842, lines=842, remain=1550964
[microtek2] calculate_gamma: ms=0x80ba250
[microtek2] calculate_gamma: factor=1, mult =255.000000, steps=255.000000,
mode=None
[microtek2] scsi_send_gamma: pos=0x80bbf78, size=768, word=0, color=3
[sendgammacmd]
2a000300006000030000
*********************** 2
sanei_scsi_req_enter 2
[microtek2] scsi_wait_for_image: ms=0x80ba250
[microtek2] scsi_read_image_status: ms=0x80ba250
[readimagestatus]
28008300600000000000
*********************** 2
sanei_scsi_req_enter 2
[microtek2] scsi_sense_handler: fd=3, sense=0x80b2220 arg=(nil)
[microtek2] dump_area: SenseBuffer
0: f00005ffffffe91f 0000000024000000 ........ ....$...
16: 2800830060000000 0000000102030405 (...`... ........
32: 060708090a0b ......
[microtek2] scsi_sense_handler: info: ' ƒ'
[microtek2] scsi_sense_handler: Invalid field in CDB
[microtek2] scsi_read_image_status: 'Error during device I/O'
[microtek2] scsi_wait_for_image: 'Error during device I/O'
[microtek2] cleanup_scanner: ms=0x80ba250
scanimage: sane_start: Error during device I/O
[microtek2] sane_cancel: handle=0x80ba250
[microtek2] cleanup_scanner: ms=0x80ba250
[microtek2] sane_close: ms=0x80ba250
[microtek2] cleanup_scanner: ms=0x80ba250
[microtek2] sane_exit:
[microtek2] sane_get_devices: local_only=0
[microtek2] sane_get_devices: sd_list_freed
[microtek2] sane_exit: MICROTEK2 says goodbye.
------------------------------------

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