I am trying to use the parallel port as a prototype io port based
access device to develop and test a new driver and software for a
custom board that is currently still in development (ie target
hardware not ready yet)
I have the latest DDK and am starting with the general/portio example driver.
I modified the portio driver inf to utilize the same io address that
the parallel port is connected to.
I have disabled the stock Microsoft Parallel port driver as installed
by default.
I installed the portio example driver in the same io space 378h as
the physical port is configured as.
The example provides a gpdread and gpdwrite.exe’s that connect to the
example driver to read and write to specific ports…
It doesn’t work unless I enable the Microsoft parallel port driver as
well as the example driver. Then the provided utilities work fine.
How can I be sure which driver is doing the work.? Is there a way to
disable the low level parallel port driver, or do I need to setup my
example driver as a parallel port type device and replace the
Microsoft provided driver with my example driver…?
Thanks in advance…
-Rick
There is no ‘latest DDK’ anymore. It is the WDK. Don’t say ‘latest’ but
give the specific version.
How did you ‘disable’ the stock MS parallel port driver?
Is your sample driver handling interrupts from the parallel port?
You can use the stock parallel port driver from your own driver by sending
requests. The source of the driver is in the WDK, I think. I am not sure
if it handles the DMA capability of recent parallel ports.
“Rick Knospler” wrote in message news:xxxxx@ntdev…
>I am trying to use the parallel port as a prototype io port based access
>device to develop and test a new driver and software for a custom board
>that is currently still in development (ie target hardware not ready yet)
>
> I have the latest DDK and am starting with the general/portio example
> driver.
>
> I modified the portio driver inf to utilize the same io address that the
> parallel port is connected to.
>
> I have disabled the stock Microsoft Parallel port driver as installed by
> default.
>
> I installed the portio example driver in the same io space 378h as the
> physical port is configured as.
>
> The example provides a gpdread and gpdwrite.exe’s that connect to the
> example driver to read and write to specific ports…
>
> It doesn’t work unless I enable the Microsoft parallel port driver as well
> as the example driver. Then the provided utilities work fine.
>
> How can I be sure which driver is doing the work.? Is there a way to
> disable the low level parallel port driver, or do I need to setup my
> example driver as a parallel port type device and replace the Microsoft
> provided driver with my example driver…?
>
> Thanks in advance…
>
> -Rick
>
>
>
Is your device connected to the PC via a parallel port? Or is it just
that the parallel port is a good example to start with b/c it deals with
registers and an interrupt? I would suggest that you look at KMDF as a
starting point if your final device has nothing to do with actual
parallel port hardware or connectivity
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rick Knospler
Sent: Saturday, November 25, 2006 6:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Custom Parallel port driver questions
I am trying to use the parallel port as a prototype io port based
access device to develop and test a new driver and software for a
custom board that is currently still in development (ie target
hardware not ready yet)
I have the latest DDK and am starting with the general/portio example
driver.
I modified the portio driver inf to utilize the same io address that
the parallel port is connected to.
I have disabled the stock Microsoft Parallel port driver as installed
by default.
I installed the portio example driver in the same io space 378h as
the physical port is configured as.
The example provides a gpdread and gpdwrite.exe’s that connect to the
example driver to read and write to specific ports…
It doesn’t work unless I enable the Microsoft parallel port driver as
well as the example driver. Then the provided utilities work fine.
How can I be sure which driver is doing the work.? Is there a way to
disable the low level parallel port driver, or do I need to setup my
example driver as a parallel port type device and replace the
Microsoft provided driver with my example driver…?
Thanks in advance…
-Rick
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer