Parallel port driver?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Tried posting this in the DDK forum but got no answer. Can anyone here help? I am designing a widget that needs to send and receive data on the parallel port. I have designed it to be compatible with the EPP mode. I plan to use an Advantech PCM-937x running XPe to talk to it. On CE 3.0, using a PCM-5820, I was able to simply read and write to the port registers, but something tells me it will be harder on XPe. Does someone know how to do this? I plan to use a .NET framework, so C#, C++ or VB.NET are the programming environments I want to use.
 
Brian,

Your question is more XP programming related.

I could not get quite from what level you are going to send/receive data to the parallel port? Driver, app?

If driver, here is links for you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/parallel/hh/parallel/vspd_0bl3.asp (Reading and Writing a
Parallel Device)
Or better to read all: http://msdn.microsoft.com/library/en-us/parallel/hh/parallel/parahdr_484n.asp.

If app, just use CreateFile("LPT1",...)/WriteFile/ReadFile APIs.
How to do that from VB.Net: http://support.microsoft.com/default.aspx?scid=kb;en-us;823179&Product=vb6

Also, there is a bunch of 3rd party solutions (libraries/frameworks/etc.) that provide useful APIs to speak to various ports (do
googling).

Hope this helps,
--
Regards,
KM, BSquare Corp.

Tried posting this in the DDK forum but got no answer. Can anyone here help? I am designing a widget that needs to send and
receive data on the parallel port. I have designed it to be compatible with the EPP mode. I plan to use an Advantech PCM-937x
running XPe to talk to it. On CE 3.0, using a PCM-5820, I was able to simply read and write to the port registers, but something
tells me it will be harder on XPe. Does someone know how to do this? I plan to use a .NET framework, so C#, C++ or VB.NET are the
programming environments I want to use.
 
Back
Top