Manipulate parallel port

C

Charles Wang

Hello Everyone!

I am using a micro printer with parallel interface. It can be controled by
sending command through parallel port. And get the state of pin19 to detect
whether the printer is busy(pin 19 = 1 means busy, 0 means ready).

I try to use CreateFile() and ReadFile(), but I can not get the state of
parallel port.
I notice there is few article intruduce how to cummunicate through parallel
port. Is it same as serial port? Or how can I get the pin 19's state and
send my print command? Thanks!
 
C

Chris Tacke, eMVP

What kind of device is this? A CEPC I assume? Does the OEM have a driver
for the port?

-Chris
 
C

Charles Wang

I use AdvanTech's PCM-3350, CPU is GeodeGX1. PB contains the paralle driver.
The micro printer does not need driver. It can be controlled by sending
print command.

I could open the parallel port(CreateFile("LPT1:", ...)) if I do not connect
the printer. But CreateFile would return error if I connect the printer.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top