home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / libsane / leo / leo.txt
Encoding:
Text File  |  2006-07-10  |  3.2 KB  |  142 lines

  1.  
  2.           BACKEND LEO
  3.  
  4. Across Technologies FS-1130
  5. (A rebadged LEO Technologies)
  6.  000: 06 31 14 01 1f 00 00 00 41 43 52 4f 53 53 20 20    .1......ACROSS  
  7.  016: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                    
  8.  032: 31 2e 31 36 09 f6 0d b6 01 2c 01 2c 39 36 30 30    1.16.....,.,9600
  9.  
  10.  
  11. LEO LEOScan S3:
  12.  000: 06 31 14 01 1F 00 00 00 4C 45 4F 20 20 20 20 20    .1......LEO
  13.  016: 4C 45 4F 53 63 61 6E 2D 53 33 20 20 20 20 20 20    LEOScan-S3
  14.  032: 33 2E 30 31 09 F6 0D B6 01 2C 01 2C 39 36 30 30    3.01.....,.,9600
  15.  
  16. or
  17.  000: 06 00 02 02 1f 00 00 00 4c 45 4f 00 00 00 00 00    ........LEO.....
  18.  016: 4c 45 4f 53 63 61 6e 2d 53 33 00 00 00 00 00 00    LEOScan-S3......
  19.  032: 31 2e 31 30                                        1.10 
  20.  
  21. Genius FS1130
  22.  000: 06 31 14 01 1f 00 00 00 4b 59 45 20 43 4f 52 50    .1......KYE CORP
  23.  016: 43 6f 6c 6f 72 50 61 67 65 2d 43 53 20 20 20 20    ColorPage-CS
  24.  032: 31 2e 31 34                                        1.14 
  25.  
  26. /*--------------------------------------------------------------------------*/
  27.  
  28. SCSI commands supported by the FS-1130
  29.  
  30.  
  31. TEST UNIT READY
  32. 00 00 00 00 00 00
  33.  
  34.  
  35. INQUIRY
  36. 12 00 00 00 30 00
  37.    8-15: vendor name
  38.   16-31: product name
  39.   32-35: firmware level
  40.   36-37: scan area width in 1/300th of inches
  41.   38-39: scan area length in 1/300th of inches
  42.   40-41: max X resolution in dpi
  43.   42-43: max Y resolution in dpi
  44.   44-47: ?
  45.  
  46.  
  47. SCAN
  48. 1B 00 00 00 00 00
  49. Start a scan
  50.  
  51.  
  52. SET WINDOW
  53. 24 00 00 00 00 00 30 00 00 00
  54. Total length is 48 bytes
  55.   01 = 0x2E (may be 0x30 - 2, ie total length -2)  
  56.   07 = length (48-8 = 40 = 0x28)
  57.   10-11 = X Resolution
  58.   12-13 = Y resolution
  59.   14-17 = X top left corner
  60.   18-21 = Y top left corner
  61.   22-25 = width  (size in inches * 300)
  62.   26-29 = length (size in inches * 300)
  63.   31 = 0x80 ?
  64.   33 = scan mode
  65.         0x00 = black & white
  66.         0x01 = halftone
  67.         0x02 = grayscale
  68.         0x05 = color
  69.   34 = bit depth  
  70.         1 or 8
  71.   37 = ? RIF + other
  72.   43 = ? 0x01
  73.  
  74.  
  75. READ
  76. 28 00 00 00 00 00 00 0B 28 00
  77.  
  78.  
  79. SEND
  80. 2A 00 03 00 00 01 00 03 00 00 
  81. 2A 00 02 00 00 0F 00 01 00 00
  82.   2 = data type code
  83.     0x02 = halftone pattern
  84.     0x03 = gamma - 3 colors with 256 bytes each
  85.  
  86.  
  87. GET DATA BUFFER STATUS
  88. 34 00 00 00 00 00 00 00 10 00
  89.   7-8 allocation length
  90.  
  91.   returned buffer is 0x10 bytes long.
  92.   00 00 0D 00 00 00 03 D3 60 00 00 00 01 48 00 EE 
  93.   
  94.     0-2 = additional length (0x10-3 = 0x0D)
  95.     6-8 = (?) total scan length
  96.    9-11 = filled data buffer
  97.   12-13 = number of lines left (decrease during a scan)
  98.   14-15 = bytes per line (constant during a scan)  
  99.  
  100.  
  101. /*--------------------------------------------------------------------------*/
  102.  
  103. Command sequence for the FS-1130
  104.  
  105. Setup the scan:
  106.   TUR
  107.   SET WINDOWS
  108.   SEND gamma
  109.   SEND haltone pattern (if halftone scan)
  110.   SCAN
  111.   TUR until scanner ready
  112.   GET DATA BUFFER STATUS
  113.  
  114. loop until all data read:
  115.   GET DATA BUFFER STATUS
  116.   READ
  117.  
  118. park the CCD:
  119.   SET WINDOWS
  120.   TUR
  121.   SCAN
  122.   
  123. /*--------------------------------------------------------------------------*/
  124.  
  125. Command sequence for the S3
  126.  
  127. It seems similar to the FS-1130 except that no gamma nor halftone pattern is sent.
  128.  
  129. Setup the scan:
  130.   TUR
  131.   SET WINDOWS
  132.   SCAN
  133.   TUR until scanner ready
  134.  
  135. loop until all data read:
  136.   GET DATA BUFFER STATUS
  137.   READ
  138.  
  139. park the CCD:
  140.   SET WINDOWS
  141.   SCAN
  142.