1Scanner overview 2- One pass scanner 3- 10 DPI minimum. Max X=600 dpi, max Y=1200 dpi. 4- A4 size 5 6/*--------------------------------------------------------------------------*/ 7 8Components: 9- Weltrend WT8616 10- TEMIC TSC 80C31 (CMOS 0 to 44 MHz Single-Chip 8 Bit Microcontroller) 11 12/*--------------------------------------------------------------------------*/ 13 14SCSI overview 15- the SCSI implementation in this scanner is non-standard but simple. 16- there is no REQUEST SENSE command. 17- since there is no sense, it is impossible to know if a command has succeeded. 18 19/*--------------------------------------------------------------------------*/ 20 21SCSI commands: 22 23TEST UNIT READY 2400 00 00 00 01 00 25 Returns 1 byte of data: 26 00 = scanner ready 27 ff = scanner not ready 28 29Vendor Spec 3002 00 00 00 04 00 31 Get 4 bytes of status. Used to check the button. 32 Default result when the button is not pressed 33 06 00 00 00 34 35INQUIRY 36 result: 37 06 00 02 02 30 00 00 10 4b 49 4e 50 4f 20 20 20 ....0...KINPO 38 56 69 76 69 64 73 63 61 6e 20 53 31 32 30 20 20 Vividscan S120 39 53 31 33 20 20 20 20 20 02 01 00 00 4a 45 46 46 S13 ....JEFF 40 ... 41 42MODE SEL 4315 10 00 00 18 00 44 45SCAN 461B 00 00 00 00 00 47 48RECEIVE DIAG 491C 00 00 00 03 00 50 51SEND DIAG 521D 00 80 00 00 00 53 54SET WINDOW 5524 00 00 00 00 00 00 00 52 00 56 The window size is always 0x52 bytes. The parameters look standard: 57 - X/Y resolution | 58 - Upper left X,Y |- all three coded in 600 dpi units 59 - Width, Length | 60 61 The supported scan modes are: 62 - lineart image comp=0, halftone=0, depth=1 63 - halftone image comp=0, haltone=1 to 4, depth=1 64 - grayscale image comp=2, halftone=0, depth=8 65 - color image comp=5, halftone=0, depth=24 66 67 Y resolution is not used (X is also used for Y) 68 X resolution is limited to 600 (if above, scanner defaults to 600) 69 Y resolution is limited to 1200 (if above, scanner defaults to 1200) 70 Image composition is byte 33, halftone is byte 36, depth is byte 34 71 72READ (10) 7328 00 00 00 00 00 00 FE 9A 00 74 75SEND (10) 762A 00 03 00 00 02 00 03 00 00 77Sends 300h bytes of gamma. 100h bytes per color. What is the color order? 78 79GET DATA BUFFER STATUS 8034 01 00 00 00 00 00 00 10 00 81Returns: 82 - byte 0 to 7: ? (these bytes looks rather standard) 83 - byte 8 to 11: total size left to read 84 - byte 12 to 13: number of lines (constant during a scan) 85 - byte 14 to 15: pixels per line (constant during a scan) 86 87/*--------------------------------------------------------------------------*/ 88 89Color shifts 90 91Color order returned by the scanner is Red, then Green, then Blue. There is a color shift, meaning the raster for the Red is not followed by the Green raster for the same line. 92The shifts are: 93 dpi lines per color 94 1200 16 95 1125 15 96 1050 14 97 900 12 98 750 10 99 600 8 100 450 6 101 300 4 102 150 2 103 90 1 104 75 1 105 50 0 106 107Some resolution give garbage. However that table might not be complete. 108