1
2          BACKEND TECO3
3
4
5This scanner capabilities are in the middle of the 3520 and 3575,
6sharing features of both. Hence a third backend.
7
8
9PIOTECH 3024 (TECO Scorpio/Taurus Infinity VM3552):
10   000: 06 00 02 02 43 00 00 10 20 20 20 20 20 20 20 20    ....C...
11   016: 46 6c 61 74 2d 62 65 64 20 73 63 61 6e 6e 65 72    Flat-bed scanner
12   032: 35 2e 30 38 35 2e 30 38 03 02 54 45 43 4f 20 56    5.085.08..TECO V
13   048: 4d 33 35 35 32 20 00 01 01 2c 00 01 04 b0 09 f6    M3552 ...,......
14   064: 10 68 01 2c 00 00 00 01                            .h.,....
15
16RELISYS INFINiTY SCORPIO:
17   000: 06 00 02 02 43 00 00 10 52 45 4c 49 53 59 53 20    ....C...RELISYS
18   016: 53 63 6f 72 70 69 6f 20 20 20 20 20 20 20 20 20    Scorpio
19   032: 31 2e 30 34 31 2e 30 34 03 02 54 45 43 4f 20 56    1.041.04..TECO V
20   048: 4d 33 35 35 32 20 00 01 01 2c 00 01 04 b0 09 f6    M3552 ...,......
21   064: 10 68 01 2c 00 00 00 00                            .h.,....
22
23Trust Imagery 2400SP:
24   000: 06 00 02 02 43 00 00 10 41 61 73 68 69 6d 61 20    ....C...Aashima
25   016: 49 4d 41 47 45 52 59 20 32 34 30 30 53 50 20 20    IMAGERY 2400SP
26   032: 31 2e 30 30 31 2e 30 30 03 02 54 45 43 4f 20 56    1.001.00..TECO V
27   048: 4d 33 35 35 32 20 00 01 01 2c 00 01 04 b0 09 f6    M3552 ...,......
28   064: 10 68 01 2c 00 00 00 01                            .h.,....
29
30Trust Imagery 4800 SP +:
31   000: 06 00 02 02 43 00 00 10 41 61 73 68 69 6d 61 20    ....C...Aashima
32   016: 49 4d 41 47 45 52 59 20 34 38 30 30 53 50 20 2b    IMAGERY 4800SP +
33   032: 35 2e 30 38 35 2e 30 38 03 02 54 45 43 4f 20 56    5.085.08..TECO V
34   048: 4d 33 35 35 32 20 00 01 01 2c 00 01 04 b0 09 f6    M3552 ...,......
35   064: 10 68 01 2c 00 00 00 00                            .h.,....
36
37/*--------------------------------------------------------------------------*/
38
39SCSI commands supported by the RELISYS VM3530+:
40
41TEST UNIT READY
4200 00 00 00 00 00
43
44REQ SENSE
4503 00 00 00 12 00
46
47VENDOR-09
4809 00 00 78 00 00
49  3-4 = length of data to receive. Always 30720 bytes.
50        Probably 12 lines of calibration at 300dpi.
51        8.5*300*12=30600
52
53VENDOR-0E (?)
540E 00 00 00 00 00
55  Always follows VENDOR-09 command
56
57INQUIRY:
5812 00 00 00 35 00
59  standard inquiry
60    52 bytes - appears to never change
61    32-39: firmware version
62    42-52: real scanner name
63
64SCAN
651B 00 00 00 00 00
66
67SET WINDOW
6824 00 00 00 00 00 00 00 45 00 (3552)
69
70Total length is 99
71  07 = length (99-8 = 91)
72  10-11 = X Resolution
73  12-13 = Y resolution
74  14-17 = X top left corner
75  18-21 = Y top left corner
76  22-25 = width  (size in inches * 300)
77  26-29 = length (size in inches * 300)
78  31 = 0x80 ?
79  33 = scan mode
80        0x00 = black & white
81        0x02 = grayscale
82		0x05 = color
83  34 = bit depth? - invariants, always 8
84  36 = dither pattern - only for B&W
85     0x00 = line art
86	 0x01 = 2 X 2
87	 0x02 = 3 X 3
88	 0x03 = 4 X 4 Bayer
89	 0x04 = 4 X 4 Smooth
90	 0x05 = 8 X 8 Bayer
91	 0x06 = 8 X 8 Smooth
92	 0x07 = 8 X 8 Horizontal
93	 0x08 = 8 X 8 Vertical
94  37 =
95     0x80 = RIF ?
96  48 = color channel to use
97     if scan mode is 0 or 2:
98       0x00 = red
99       0x01 = green
100       0x02 = blue
101     if scan mode is 05 -> ignored
102       TWAIN leaves 0x02
103  50: calibration
104      00 = yes
105      02 = no
106  53, 57, 61, 65: 0xff
107
108
109READ
11028 00 00 00 00 00 00 00 3E 00
111  6-8 = length
112
113SEND
1142A 00 03 00 00 02 00 04 00 00
115  2 = data type code
116       0x03 = gamma - 4*256 bytes
117
118OBJECT POSITION
11931 00 00 00 00 00 00 00 00 00
120Park the CCD.
121
122GET DATA BUFFER STATUS
12334 01 00 00 00 00 00 00 12 00
124  1 = bit 1 is wait
125  7-8 allocation length
126
127  returned buffer is 0x10 bytes long.
128    0-2 = additional length (0x10-3 = 0x0D)
129      3 = reserved(?)
130    6-8 = scanner memory (with no RAM, it is 32KB on the VM3552)
131   9-11 = filled data buffer
132  12-13 = number of lines (constant during a scan)
133  14-15 = bytes per line (constant during a scan)
134     16 = ?
135     17 = in color mode, 0x07 seems to means to the colors are shifted
136          and given by rasters. 0x00 seems to mean that there is no
137          color shifting and that each pixel is coded by 3 consecutive
138          bytes.
139
140/*--------------------------------------------------------------------------*/
141
142Command sequence
143(simplified, since the TWAIN driver seems to be quite stupid)
144
145Get some info:
146  INQUIRY
147
148Setup the scan:
149  TUR
150  SET WINDOWS
151  GET BUFFER STATUS
152  VENDOR-09
153  VENDOR-0E
154  SEND(10)
155  SET WINDOWS (same as the first one)
156  SCAN
157
158loop until all data read:
159  GET BUFFER STATUS
160  READ(10) if any data available
161
162park the CCD:
163  OBJECT POSITION
164
165/*--------------------------------------------------------------------------*/
166