home *** CD-ROM | disk | FTP | other *** search
- HP ScanJet Driver (generic)
- Copyright (C) 1993 WordStar Atlanta Technology Center, Inc.
- All rights reserved.
-
-
- INTRODUCTION
- ============
- The ZSoft MS-DOS scanner driver provides the means for ZSoft MS-DOS and
- MS-Windows scanning applications to use a wide variety of scanners through
- a common interface.
-
-
- LOADING THE DRIVER
- ==================
- In order for the scanning application to use the scanner driver, it must be
- loaded before the application is run. The scanner driver may be loaded in one
- of two ways -- using the device driver method, or the TSR method.
-
- If you are using MS-DOS 5.0 or higher, or are using a 386 memory manager
- program such as 386MAX or QEMM, the scanner driver may be loaded into upper
- memory.
-
- The Device Driver Method
- ------------------------
- The device driver method of loading has the advantage of requiring the least
- amount of DOS memory to load. However, with care, the TSR method can be as
- efficient as the device driver method for all practical purposes. The device
- driver method does not have the advantage of being able to unload from memory
- when not needed. This is of no consequence in many system configurations, but
- may be important for other setups that may scan only on rare occasions.
-
- The device driver load method is accomplished by adding a line to your
- CONFIG.SYS file of the form:
-
- DEVICE=<path><driver> <command line parameters>
-
- <path> is the complete path to the scanner driver, or may be omitted if the
- driver is in the root directory of the disk drive that boots your system.
- <driver> is the name of the scanner driver itself. <command line parameters>
- are options that may be needed, depending on your system configuration. See
- the section on COMMAND LINE PARAMETERS to see if you need to use any of them.
-
- An example line in CONFIG.SYS might look like:
-
- DEVICE=C:\PHOTO\HPSCANER.EXE /Q
-
- The TSR Method
- --------------
- The TSR method of loading the scanner driver gives you the flexibility to
- load and unload it as needed. When it is loaded as a TSR, it operates in the
- same way as it would if it were loaded as a device driver, but can be removed
- from memory at a later time if desired. Loading the scanner driver from a BAT
- file is perfectly acceptable. The TSR method must be used with care, as there
- are several caveats.
-
- Do not attempt to load the driver while in a DOS shell from another
- application. This also applies to DOS windows and shells while running
- Microsoft Windows.
-
- In order for the driver to be unloaded, it must be the last TSR program run.
- Normally, this is the case if you load the driver and immediately run the
- scanning application.
-
- If there are many DOS environment variables at the time the scanner driver
- is loaded, a copy of those variables is saved in memory along with the driver.
- On some systems, this could be several hundred bytes. This extra memory is
- released if the driver is successfully unloaded at a later time. If the
- scanner driver is being loaded in AUTOEXEC.BAT, try to loading it as the last
- TSR program, but before any SET commands.
-
- The TSR load method is accomplished by executing a DOS command, either from
- the DOS prompt or from a batch file, of the form:
-
- <path><driver> <command line parameters>
-
- <path> is the complete path to the scanner driver, or may be omitted if the
- driver is in the current directory or in a directory specified by your PATH
- variable. <driver> is the name of the scanner driver itself. <command line
- parameters> are options that may be needed, depending on your system
- configuration. See the section on COMMAND LINE PARAMETERS to see if you need
- to use any of them.
-
- An example DOS command line might look like:
-
- HPSCANER.EXE /Q
-
-
- LOW-LEVEL I/O DRIVER
- ====================
- The scanner driver communicates with the adapter hardware through a low-level
- I/O driver. This I/O driver must be loaded by adding a line to your CONFIG.SYS
- file before the scanner driver is loaded. The I/O driver entry in CONFIG.SYS
- should look like one of the following:
-
- CONFIG.SYS ENTRY HARDWARE CONFIGURATION
- ---------------- ----------------------
- device=SJDRIVER.SYS ScanJet or ScanJet Plus
- device=SJII.SYS ScanJet IIc or ScanJet IIp
-
- depending on which hardware configuration is appropriate for your system. For
- example, loading the I/O driver and the scanner driver in CONFIG.SYS might
- look like:
-
- device=c:\photo\sjii.sys
- device=c:\photo\HPSCANER.EXE /Q
-
-
- COMMAND LINE PARAMETERS
- =======================
- You may also need to add one or more command line parameters to the command
- used to load the scanner driver, depending on your system configuration. These
- parameters apply to both the device driver and TSR load methods, except /U
- which applies only to the TSR load method.
-
- The following list is displayed by the scanner driver, if the /? or /H command
- line parameters are used, which displays all of the command line parameters
- supported.
-
-
- ZSoft MS-DOS Scanner Driver Version 6.10
- Copyright (c) WordStar Atlanta Technology Center, Inc. 1991-1993.
- All rights reserved.
-
- Valid parameters:
-
- /Cx = application Code (1-4)
- /H = display this Help text
- /? = display this help text
- /Q = load Quiet, without initializing scanner
- /Rs = Resolution strategy (/RH=High, /RM=Medium, /RL=Low)
- /T = perform diagnostic Testing
- /U = Unload driver
- /V = Verbose messages and status displays
-
-
- /C
- --
- The application code provides a method of identifying the application that is
- being used with the scanner driver to maximize scanner functionality. This
- parameter is not required for Revision 6 compliant applications. If the
- parameter is omitted, the application will still work, but may be missing some
- features.
-
- The codes are:
-
- /C1 = PC Paintbrush Plus (DOS)
- /C2 = PC Paintbrush Plus (Windows)
- /C3 = PC Paintbrush IV Plus (DOS)
- /C4 = Publisher's Paintbrush (Windows)
-
- Applications not listed (i.e. PhotoFinish, PC Paintbrush 5+, and UltraFAX) do
- not need an application code parameter.
-
- /Q
- --
- Allows the loading of the scanner driver regardless of the scanner status.
- Normally, the scanner driver will attempt to communicate with the scanner
- when the driver loads, mainly for the purpose of identifying the scanner.
- The advantage is that the driver will not load if the scanner identification
- fails, and the application will disable its scanning functions. In some cases,
- subsequent initialization of the scanner by applications may be faster. The
- disadvantage is that the scanner must be powered up every time you boot your
- machine (assuming you load the driver in either CONFIG.SYS or AUTOEXEC.BAT).
- If you don't want to have to leave your scanner turned on, using /Q will
- allow the driver to load without any communication with the scanner.
-
- /R
- --
- The scanner possibly supports more resolutions than an application can
- handle. The /R command allows the user to specify emphasis on low, medium,
- or high resolutions. The actual results vary with the scanner and the
- application. /RL is for lower resolutions, /RM is for medium resolutions, and
- /RH is for high resolutions. The default is to provide evenly spaced
- resolutions from its lowest to its highest. This command applies mostly to
- "older" applications that handle 6 resolutions or fewer.
-
- /T
- --
- The test parameter is provided as a diagnostic aid for the end user (and
- support people). Using this parameter will tell the driver to attempt
- communication with the scanner hardware and report on its success. This will
- aid the user in determining if the scanner hardware and driver settings are
- properly matched or if there are any conflicts.
-
- An optional argument may be supplied to choose specific tests. Is this
- argument is omitted, all tests will be performed.
-
- ARG DESCRIPTION
- --- -----------
- 1 Test the scanner lamp.
- 2 Test the scanner element positioner.
- 3 Perform all of the above tests (default).
- 4 Don't perform any of the above tests.
-
- /U
- --
- The unload command will remove the scanner driver from memory, thus freeing
- memory space for other applications. The scanner driver can only be removed
- if it was loaded using the TSR method, and was the last TSR loaded. See the
- section on The TSR Method for more information.
-
- /V
- --
- By default the scanner driver will load and display a copyright notice and the
- amount of memory occupied. If you would like the current settings of the
- driver displayed as well, the /V parameter should be specified.
-
-
- ERROR AND STATUS MESSAGES
- =========================
- The following is a list of messages that the driver can display when it is
- loaded or run.
-
- Loaded driver found.
-
- This message is displayed when the scanner driver is already loaded and an
- attempt is made to re-load the driver. This message will be followed by a
- display of the currently loaded driver settings.
-
- The scanner driver has been removed from memory.
-
- This message is displayed when the /U parameter is specified to unload
- the scanner driver (TSR mode only).
-
- Invalid parameter "?"
-
- This message is displayed when the scanner driver finds a command line
- parameter the driver does not support or recognize.
-
- Old format scanner driver currently loaded.
- Remove scanner driver from CONFIG.SYS and reboot.
-
- This message is displayed when the user attempts to load a scanner driver
- "over" an old format scanner driver. Remove the old scanner driver from
- CONFIG.SYS and try again.
-
- Not enough memory (need another xxxx bytes).
-
- There is not enough free DOS memory to load the driver.
-
- Driver not loaded.
-
- This message is displayed along with the error messages listed above to
- inform the user that the scanner driver has not been loaded.
-
- Cannot UNload driver loaded from CONFIG.SYS.
- Can only UNload TSR driver (loaded from DOS).
-
- This message is displayed when the user specifies the /U parameter and the
- scanner driver was not loaded using the TSR method. The scanner driver
- can only be unloaded if it has been loaded as a TSR, and was the last TSR
- loaded. See the section on The TSR Method for more information.
-
-
- Invalid application code.
-
- This message is displayed when the user specifies an invalid value for the
- /C parameter.
-
- Invalid resolution strategy.
-
- This message is displayed when the user specifies an invalid value for the
- /R parameter.
-
- Driver loaded, using <x> bytes of DOS memory, <y> bytes free.
-
- This message is displayed when the scanner driver is loaded into memory
- and informs the user of the amount of memory used by the driver.
-
- Testing scanner hardware...
- Scanner identified as: HP ScanJet Model xxxxx
- Firmware date code: xxxx (mmm dd, yyyy)
- Document Feeder: Present
- Document Feeder: Not present
- Lamp Test: Passed.
- Lamp Test: Failed.
- Positioner Test: Passed.
- Positioner Test: Failed.
- Scanner hardware test: Passed.
- Scanner hardware test: Failed.
-
- These messages are displayed when the /T parameter is included on the
- command line.
-
- Initializing Scanner...
-
- This message is displayed while the driver is initializing the scanner.
- If the /Q parameter is used, this message will not display.
-
- Supporting: HP ScanJet Model xxxxx
-
- Indicates that the scanner has been identified by the driver during load.
- If the /Q parameter is used, this message will not display.
-
- Helper driver not loaded. Add one of the following:
-
- DEVICE=SJDRIVER.SYS (for ScanJet interface)
- DEVICE=SJII.SYS (for ScanJet II interface)
-
- to your CONFIG.SYS and reboot.
-
- Indicates that the required low-level I/O driver is not present. Follow
- the instructions.
-
- Cannot initialize scanner. Try turning the scanner off, then back on.
-
- For some reason, the scanner hardware and the adapter cannot communicate.
-
-
- MS-DOS ERRORLEVEL EXIT CODES
- ============================
- ZSoft MS-DOS scanner drivers set the DOS ERRORLEVEL value after they have
- run. If desired, a batch file can test the errorlevel to determine the
- success or failure of the driver load command, and take appropriate action.
-
- CODE MEANING
- ---- -------
- 0 Driver loaded successfully.
- 1 Old format scanner driver currently loaded.
- 2 Attempt to unload when the driver was not previously loaded.
- 3 Cannot UNload driver loaded from CONFIG.SYS.
- 4 Invalid command argument.
- 5 Initialization failure. Could be due to a hardware problem, or possibly
- a missing low-level I/O driver.
- 6 Not enough memory to load.
- 7 Test function failed.