JR Malin
2006-08-29 23:51:01 UTC
I have read the previous postings concerning PCL Printing, but they do not
fully cover my situation.
I am working with an x86, Enterprise Web Pad build for which I’m trying to
get USB PCL Printing to work on connection to any PCL-compatible printer. I
am using Platform Builder 5.0. I have added the USB Host Support, the PCL
Printer Driver, and the USB Printer Class Driver to the build. I started out
with only the default registry key:
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\7\Printer_Class]
"DLL"="USBPRN.DLL"
"Prefix"="LPT"
"IClass"="{4FE1CEF1-E765-4a1e-B503-5B8C674D7C68}"
It is my understanding from the Help, that if a device is connected and not
identified in the registry, one can specify “USBPRN” in the Unknown Device
dialog box “This action loads the USB printer class driver and sets the
correct registry entries, so the driver can load automatically next time.”
When I do this, it creates a new key:
“[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\7_1\Printer_Class]”
And sets up a series of device parameters under that key. If debug messages
are enabled, it reports that USBPRN was successfully installed, but it keeps
trying to load the original driver from the parameters it read from the
printer and stays in the prompt loop keeping the Unknown Device dialog box
displayed unless I cancel it. If I reconnect the device it doesn’t seem to
use the key and parameters that it created and does not add a key based on
the USB device ID, etc, that it reads from the printer when it attaches.
Does anyone know what the problem is and how to get and unknown USB printer
to register and be used as a print device?
fully cover my situation.
I am working with an x86, Enterprise Web Pad build for which I’m trying to
get USB PCL Printing to work on connection to any PCL-compatible printer. I
am using Platform Builder 5.0. I have added the USB Host Support, the PCL
Printer Driver, and the USB Printer Class Driver to the build. I started out
with only the default registry key:
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\7\Printer_Class]
"DLL"="USBPRN.DLL"
"Prefix"="LPT"
"IClass"="{4FE1CEF1-E765-4a1e-B503-5B8C674D7C68}"
It is my understanding from the Help, that if a device is connected and not
identified in the registry, one can specify “USBPRN” in the Unknown Device
dialog box “This action loads the USB printer class driver and sets the
correct registry entries, so the driver can load automatically next time.”
When I do this, it creates a new key:
“[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\7_1\Printer_Class]”
And sets up a series of device parameters under that key. If debug messages
are enabled, it reports that USBPRN was successfully installed, but it keeps
trying to load the original driver from the parameters it read from the
printer and stays in the prompt loop keeping the Unknown Device dialog box
displayed unless I cancel it. If I reconnect the device it doesn’t seem to
use the key and parameters that it created and does not add a key based on
the USB device ID, etc, that it reads from the printer when it attaches.
Does anyone know what the problem is and how to get and unknown USB printer
to register and be used as a print device?
--
JR Malin, Embedded Software Engineer
JR Malin, Embedded Software Engineer