With the help of Bernd, I finally got my Phantom 636cx working. I
commented out all references to scsi_read_attributes() excepted for
flatbed mode. Now almost everything is OK, I don't even have that offset
problem, but instead (nothing is perfect...) I got:
- the image mirrored (like if it would be seen through a mirror)
- vertical stripes or bands, especially one much darker. It is like if the
scanned image would be a copy produced by a dirty copier or a printer
which has toner problems.
None of the above problems is present when I scan under Windows. The
mirror phenomenon is not really annoying as I can flip the images with an
appropriate program, but the dark stripe is. Does the scanner compensate
under Windows for the fluorescent tube's light unevenness, or is it
something else?
Here is the log produced by scanimage for the command "scanimage -d
microtek2:/dev/sg0 2>backlog.log >image.pgm":
[inquiry]
120000006000
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203630304134202020312e33309a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0: 060002025b000000 2020202020202020 ....[...
16: 5363616e6e657220 3630304134202020 Scanner 600A4
32: 312e33309a000000 0000000000000000 1.30.... ........
48: 0000000000000000 0000000000000000 ........ ........
64: 0000000000000000 0000000000000000 ........ ........
80: 0000000000000000 0000000000000000 ........ ........
[scannerattributes]
28008200000000002800
[scannerattributesresults]
d29100025804b013ec1b3002585d13ec000080ffffff310000003001080200da00e800ed9a000000
Scanner attributes from device structure
========================================
Scanner ID...
~~~~~~~~~~~~~
Vendor Name: ' '
Model Name: 'Scanner 600A4 '
Revision: '1.30'
Model Code: 0x9a (Phantom 636cx)
Device Type Code: 0x06 (Scanner),
Scanner type: Flatbed scanner
Supported options: Automatic document feeder: No
Transparency media adapter: No
Auto paper detecting: No
Advanced picture system: No
Stripes: No
Slides: 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: 6960 pts (11.60'')
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: None
Miscellaneous capabilities...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Data format: Line by line in concatenated sequence,
without color indicator
Color Sequence: B - G - R
Scanning direction: Right to left
CCD gap: 0 lines
CCD pixels: 5100
Calib wh str loc: -207
Max calib space: 48
Number of lens: 1
Max no of windows: 8
Sh trnsf func equ: 0
Buffer type: Ring
FEPROM: No
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
040100001e00000000
[inquiry]
120000006000
[inquiryresult]
060002025b00000020202020202020205363616e6e6572203630304134202020312e33309a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0: 060002025b000000 2020202020202020 ....[...
16: 5363616e6e657220 3630304134202020 Scanner 600A4
32: 312e33309a000000 0000000000000000 1.30.... ........
48: 0000000000000000 0000000000000000 ........ ........
64: 0000000000000000 0000000000000000 ........ ........
80: 0000000000000000 0000000000000000 ........ ........
[scannerattributes]
28008200000000002800
[scannerattributesresults]
d29100025804b013ec1b3002585d13ec000080ffffff310000003001080200da00e800ed9a000000
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
040100001e00000000
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
040100001e00000000
[readsystemstatus]
28008100000000000900
[readsystemstatusresult]
040100001e00000000
[sendsystemstatus]
2a008100000000000900040100001e00000000
[setwindowcmd]
24000000000000004500
[setwindowheader]
000000000000003d
[setwindowbody]
0000004800480000000000000000000013ec00001b308080800508000080001000000000000000000080ff8080000080ff8080000080ff8080000080ff
[readimageinfo]
28008000000000001000
[readimageinforesult]
000002640000072c0000034300176484
[readimagestatus]
28008300000000000000
[readimagecmd]
2800000000000079ec00
(The last two lines repeated several times)
I do not think all the queried device capabilities are OK, as for instance
my scanner does not have any button, even if it reports to have one.
I would like to thank all the people involved in the SANE project, they
did a wonderful job!
Levente
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com