home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / driver / scanner / gs4500 / scangs.doc < prev   
Text File  |  1991-07-03  |  3KB  |  100 lines

  1.  
  2.                     Software for GS4500 hand scanner
  3.                                 for OS/2
  4.  
  5.  
  6. This package allows the use of the GS4500 scanner from an OS/2 full
  7. screen session.
  8.  
  9. The quality of the program and device driver is "pretty rough", but I
  10. imagine there a number of you out there who would like something like
  11. this even if it is a bit clunky for now.
  12.  
  13. It comes in 3 parts: Genius.sys, sc.exe, and errmsg.dll.
  14.  
  15. Genius.sys is just entered into the config.sys file with a
  16.  
  17. DEVICE=GENIUS.SYS
  18.  
  19. It is the heart of the system. It uses only the default DMA channel and
  20. the default address, and makes no use of the IRQ. I hope to fix these
  21. lacks in the future.
  22.  
  23. SC.EXE
  24.  
  25. This is the user interface (what little there is of it). It asks how
  26. long of a scan you want to make and wants a 2 digit number so that a 3
  27. inch long scan MUST be entered as    03   not   3    .
  28.  
  29. It will output a standard uncompressed TIFF file that many programs can
  30. read.
  31.  
  32. ERRMSG.DLL
  33.  
  34. This is just a standard library of error message text. Must be put
  35. somewhere in the LIBPATH.
  36.  
  37.  
  38.  
  39. For those of you who might be interested in writing a better user
  40. interface here is the info on the device driver.
  41.  
  42. device name is IMGSCAN$
  43. device catagory is 128
  44. and the structure that is passed backa nd forth is as follows:
  45.  
  46. ret_hdr         struc
  47.                 db      0
  48.                 db      0
  49.                 db      7 dup (0)
  50.                 db      1, 1
  51. num_lines       dw      1
  52.                 db      1, 0, 0, 0
  53.                 db      1, 0
  54.                 db      0, 0, 1, 0, 1, 0
  55. bytes_to_xfer   dw      1
  56. data_44         dw      1             ;filled in when bytes to xfer is set
  57. dots_per_inch   dw      0C8h
  58. data_46         dw      0C8h
  59. toss_bits       dw      0
  60. bits_per_line   dw      0
  61. data_50         dw      0
  62. data_51         dw      0
  63.                 db      0, 0, 0, 0
  64. DMA_channel     dw      0
  65. resolution      dw      0
  66. scan_stat       db      0
  67. ret_hdr ends
  68.  
  69.  
  70. subfunctions serviced are:
  71. (of DOSDEVIOCTL 10h)
  72.  
  73. itest   equ     0       general test (reads back the data block)
  74. ion     equ     1       turn scanner on
  75. ioff    equ     2       turn scanner off
  76. iinfo   equ     3       should update the info block (unused in sc.exe)
  77. ireport equ     4
  78. ireso   equ     5       receive modified data block
  79. ido     equ     6       do the scan
  80. iend    equ     7       turn off the device
  81.  
  82.  
  83.  
  84. I'm not including the full source code as it's a real mess, but I expect
  85. to at a later time.
  86.  
  87. Patrick O'Riva
  88. BBS 408-259-2223
  89. Fidonet 143/37
  90.  
  91. If this program does what you need it to do a contribution of $10-20
  92. would be appreciated and might stimulate further development.
  93.  
  94. I retain full rights to the programs. They may NOT be sold or included in
  95. any comercial project, nor may any charge be made for their
  96. distribution.
  97.  
  98. No warantee of any kind is made. Try it and use it at your own risk.
  99.  
  100.