Patch to make Microtek Phantom 636 SCSI (aka ScanMaker X6) work

Sebastian Erdmann (serdmann@cs.tu-berlin.de)
Tue, 3 Nov 1998 10:03:29 +0100 (MET)

Hi,

last week I bought a Microtek Phantom 636 SCSI (600x1200dpi, 36bit).
The documentation states that this model is equivalent to ScanMaker X6
(and indeed, the Windoze drivers identify it as such).
Model No: MRS-1200X6S.

I downloaded sane version 0.74 and installed a newer version of the
microtek2 backend (v0.5). The scanner reports a model_code of 0x91,
which I added to check_inquiry(). It turned out that this scanner
also needs the kludge in do_dummy_scan() to work correctly.

The following patch to microtek2.c works for me.

Thank you for your good work on sane!

Sebastian

---8<------8<------8<------8<------8<------8<------8<------8<---
--- microtek2.c-v0.5 Sat Oct 3 14:26:00 1998
+++ microtek2.c Sat Oct 31 21:49:55 1998
@@ -1717,6 +1717,9 @@
case 0x8d:
*model_string = "ScanMaker 330";
break;
+ case 0x91:
+ *model_string = "ScanMaker X6";
+ break;
case 0x92:
*model_string = "E3+ / Vobis HighScan";
break;
@@ -1984,7 +1987,9 @@
md = ms->dev;
mi = &md->info[md->scan_source];
if ( ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x97
- && md->revision == 1.00 ) )
+ && md->revision == 1.00 )
+ && ! ( md->info[MD_SOURCE_FLATBED].model_code == 0x91
+ && md->revision == 1.00 ) )
return SANE_STATUS_GOOD;

DBG(30, "do_dummy_scan: ms=%p\n", ms);

---8<------8<------8<------8<------8<------8<------8<------8<---

Running the microtek2 backend with 'option dump 4' gives
(note: long lines are folded):

[inquiry]
120000006000
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203633364134202020\
312e303091000000000000000000000000000000000000000000000000000000\
0000000000000000000000000000000000000000000000000000000000000000
[scannerattributes]
28008200000000001f00
[scannerattributesresults]
d11808025804b013ec1b6c02585d13ec100013ffffff000000005001404600

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

Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ' '
Model Name: 'Scanner 636A4 '
Revision: '1.00'
Model Code: 0x91 (X6)
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: Yes

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

Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Chunky data, R, G & B in one pixel
Color Sequence: R - G - B
CCD gap: 8 lines
CCD pixels: 5100
Calib wh str loc: -256
Max calib space: 80
Number of lens: 1
Max no of windows: 64
Sh trnsf func equ: 1
Buffer type: Ring
FEPROM: No
[scannerattributes]
28008200000200001f00
[scannerattributesresults]
d39008025804b00bb80e1002585d0bb8100003ffffff2c0000005001084600
[scannerattributes]
28008200000100001f00
[scannerattributesresults]
d31808025804b013ec1fa402585d13ec100003ffffff000000005001084601
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
010000001100000000
[inquiry]
120000006000
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203633364134202020\
312e303091000000000000000000000000000000000000000000000000000000\
0000000000000000000000000000000000000000000000000000000000000000
[scannerattributes]
28008200000000001f00
[scannerattributesresults]
d11808025804b013ec1b6c02585d13ec100013ffffff000000005001404600
[scannerattributes]
28008200000200001f00
[scannerattributesresults]
d39008025804b00bb80e1002585d0bb8100003ffffff2c0000005001084600
[scannerattributes]
28008200000100001f00
[scannerattributesresults]
d31808025804b013ec1fa402585d13ec100003ffffff000000005001084601
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
010000001100000000
[inquiry]
120000006000
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203633364134202020\
312e303091000000000000000000000000000000000000000000000000000000\
0000000000000000000000000000000000000000000000000000000000000000
[scannerattributes]
28008200000000001f00
[scannerattributesresults]
d11808025804b013ec1b6c02585d13ec100013ffffff000000005001404600
[scannerattributes]
28008200000200001f00
[scannerattributesresults]
d39008025804b00bb80e1002585d0bb8100003ffffff2c0000005001084600
[scannerattributes]
28008200000100001f00
[scannerattributesresults]
d31808025804b013ec1fa402585d13ec100003ffffff000000005001084601
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
010000001100000000
[testunitready]
000000000000

-- 
                                        ___
Sebastian Erdmann                      /
serdmann@cs.tu-berlin.de           ___|__
se@pobox.com                      (_  |
http://pobox.com/~se              __)  \___

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