Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


December 1996

Installing an HP ScanJet under Windows NT


RSS
Subscribe to Windows IT Pro | See More Installation Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Glossary (Scanner), Installing HP DeskScan II 2.3, Configuring the HP SCSI Adapter

Connecting an HP ScanJet Scanner
Connecting an HP ScanJet scanner to an NT 3.51 or 4.0 workstation requires two main steps: installing the SCSI adapter (and its drivers) in the workstation and verifying that it communicates with NT, and loading the scanner application software on the workstation. According to the HCL, you can run HP ScanJet II, 3, and 4 series scanners with NT.

In theory, you can use either HP's simple 8-bit ISA SCSI card (C2502-66500), which works only with HP scanners (although it can work with other SCSI cards), or a third-party SCSI card. (For detailed instructions about installing the HP SCSI adapter driver under NT, see "Configuring the HPSCSI Adapter.")

Once you've installed the SCSI card and loaded the drivers, NT and the SCSI card can talk to each other. However, with the HP SCSI card, users often get an error message when they reboot--as I did--stating that one or more of the services did not launch correctly. The problem is simple: NT fails to see the HP SCSI card.

The solution I found is equally simple: Buy a better SCSI card. (I used an Adaptec 2920 card.) If your HP SCSI card doesn't work under NT or you have other SCSI devices and want to use a single adapter for all your peripherals, replace the HP card with a SCSI adapter from another vendor.

Once I installed the Adaptec card, I reloaded NT 3.51 and NT 4.0. Both versions of the operating system detected the card.

NT 3.51 predated the new card. As a result, the installation routine identified the card's chipsets and firmware but not the model.

In contrast, NT 4.0 identified the exact model and loaded the appropriate Advanced SCSI Programming Interface (ASPI) drivers. (The latest version of the HCL includes the Adaptec 2920 card.)

Adding HP DeskScan II 2.2
HP has two scanner programs: HP DeskScan II versions 2.2 and 2.3. Microsoft's documentation states that Microsoft currently supports only HP DeskScan II 2.2, a 16-bit Windows 3.1 program, under NT 3.51 and 4.0. HP provides a patch with HP DeskScan II 2.3 that lets it work with NT. (I successfully installed both HP DeskScan II versions; for installation instructions, see "Installing HP DeskScan II 2.3.")

To run HP DeskScan II 2.2 under Windows NT, you must first verify that NT has loaded the following two modules:

hpscan16.sys in c:\winnt\system32\ drivers

hpscan32.dll in c:\winnt\system32

Then, add the following line to the config.nt file:

DEVICE=%SYSTEMROOT%\SYSTEM32\DRIVERS\HPSCAN16.SYS

Next, edit the Registry by specifying the value 0 in the reg_dword data field in hkey_local_machine\system\current controlset\services\scsiscan. Finally, reboot your system and load HP DeskScan II.

The previous process configures NT to run HP DeskScan II. You need the first step because HP DeskScan II is a 16-bit program. NT runs 16-bit packages within a virtual DOS machine, and you can set up each program with its own virtual equivalent of the DOS/Windows 3.x config.sys file. In NT, this configuration file is called config.nt, and you can set up individual config.nt files for each package. The DEVICE= line in the config.nt file tells NT to load the driver hpscan16.sys whenever the user starts up HP DeskScan II.

In a DOS/Windows environment, HP DeskScan II performs commands through a 16-bit device driver (hpscan). However, a device driver cannot operate in this way under NT because NT's 32-bit environment doesn't support this 16-bit driver. To work around this problem, hpscan16.sys and hpscan32.dll create an alternative driver that works in NT's 32-bit environment. However, HP DeskScan II still thinks it's working with a 16-bit driver and operating system. Because HP DeskScan II 2.3 is a 32-bit program, it works better with NT than HP DeskScan II 2.2, but it still needs a bit of tinkering to work with NT 3.51 and NT 4.0, as you can see in "Installing HP DeskScan II 2.3."

As you've seen, HP ScanJet scanners can work with NT 3.51 and 4.0. You can run other scanners under NT, too--for more information about scanner products as well as SCSI adapters and users' experiences with the products, check out the online sites listed in "Online Information Sources."

Contact Info
Hewlett-Packard * 415-857-1501
Web: www.hp.com

End of Article

   Previous  1  [2]  Next  


Reader Comments
I appreciated Rick Gould’s December article, “Installing an HP ScanJet Under Windows NT.” I want a scanner, but I have been putting off buying one. After reading this article, I decided to buy the HP ScanJet 4c. I knew it would work under NT.
Gould recommended that unless I had IRQ 5 open, I needed to get another SCSI adapter. I bought a SCSI adapter and cable (Adaptec AHA-2940UW) with the scanner. I didn’t have all the correct pieces for my SCSI adapter, so I decided to yank my network card and use the HP adapter. As it turned out, HP has a driver for its adapter that will let me use any of the supported interrupts. After I configured the adapter to use IRQ 9, I put my network card back in and the whole system worked fine.
The HP driver was difficult to install according to HP’s directions. During installation, I was prompted for the driver floppy but the installation never recognized it. The driver was there, but the installation couldn’t find it. I found an oemsetup.inf file that worked with other adapters from the same manufacturer and modified it to use the HP driver. Once I had the driver installed, everything worked. I have submitted a complaint to HP, but I am very pleased with the scanner.
The software that came with the scanner was easy to install and did not require as much effort as I feared from reading the article. No playing with the Registry or ini files was required.<br>
--Kevin Smart

Kevin Smart August 12, 1999


i want the software to convert PDF files to dockment files

krishnakumar singh April 18, 2004


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Related Events WinConnections and Microsoft® Exchange Connections

Deep Dive into Windows Server 2008 R2 presented by John Savill

Managing IT Across Multiple Locations

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement