home *** CD-ROM | disk | FTP | other *** search
-
- Software for GS4500 hand scanner
- for OS/2
-
-
- This package allows the use of the GS4500 scanner from an OS/2 full
- screen session.
-
- The quality of the program and device driver is "pretty rough", but I
- imagine there a number of you out there who would like something like
- this even if it is a bit clunky for now.
-
- It comes in 3 parts: Genius.sys, sc.exe, and errmsg.dll.
-
- Genius.sys is just entered into the config.sys file with a
-
- DEVICE=GENIUS.SYS
-
- It is the heart of the system. It uses only the default DMA channel and
- the default address, and makes no use of the IRQ. I hope to fix these
- lacks in the future.
-
- SC.EXE
-
- This is the user interface (what little there is of it). It asks how
- long of a scan you want to make and wants a 2 digit number so that a 3
- inch long scan MUST be entered as 03 not 3 .
-
- It will output a standard uncompressed TIFF file that many programs can
- read.
-
- ERRMSG.DLL
-
- This is just a standard library of error message text. Must be put
- somewhere in the LIBPATH.
-
-
-
- For those of you who might be interested in writing a better user
- interface here is the info on the device driver.
-
- device name is IMGSCAN$
- device catagory is 128
- and the structure that is passed backa nd forth is as follows:
-
- ret_hdr struc
- db 0
- db 0
- db 7 dup (0)
- db 1, 1
- num_lines dw 1
- db 1, 0, 0, 0
- db 1, 0
- db 0, 0, 1, 0, 1, 0
- bytes_to_xfer dw 1
- data_44 dw 1 ;filled in when bytes to xfer is set
- dots_per_inch dw 0C8h
- data_46 dw 0C8h
- toss_bits dw 0
- bits_per_line dw 0
- data_50 dw 0
- data_51 dw 0
- db 0, 0, 0, 0
- DMA_channel dw 0
- resolution dw 0
- scan_stat db 0
- ret_hdr ends
-
-
- subfunctions serviced are:
- (of DOSDEVIOCTL 10h)
-
- itest equ 0 general test (reads back the data block)
- ion equ 1 turn scanner on
- ioff equ 2 turn scanner off
- iinfo equ 3 should update the info block (unused in sc.exe)
- ireport equ 4
- ireso equ 5 receive modified data block
- ido equ 6 do the scan
- iend equ 7 turn off the device
-
-
-
- I'm not including the full source code as it's a real mess, but I expect
- to at a later time.
-
- Patrick O'Riva
- BBS 408-259-2223
- Fidonet 143/37
-
- If this program does what you need it to do a contribution of $10-20
- would be appreciated and might stimulate further development.
-
- I retain full rights to the programs. They may NOT be sold or included in
- any comercial project, nor may any charge be made for their
- distribution.
-
- No warantee of any kind is made. Try it and use it at your own risk.
-
-