Parallel Port

k_oz
k_oz used Ask the Experts™
on
I need to send and receive data via the
Parallel Port. Does any one have
some tips???


Thanks

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Hello...

You dont say which version of Delphi, but I have used the venerable PC's printer port for general purpose IO from Delphi 1 for some time.  Not tried it in any of the 32 bit versions though!...

In general, use the "Port" function to output and input data.  I'd recomend you do a web search to find any of a number of documents about the structure of the printer port, as seen by the CPU.  Check some of the Ham radio sites for links...  QSL.net and QRZ.com for example.  You may need to follow links to users sites first though....

Other people have sugested opening it as a channel in the normal way before messing with it.  But I've found in the past that can generate some unexpected interupts, with all the stability issues that involves.

Stick to programed IO methods and you cant go too far wrong, but be aware, that even this "simple" interface can throw a few suprises to the unwary!

Or, build your hardware to "fake" the presence of a printer, and then throw data at it in the "normal" way..

I don't know how to put attachements to this forum, if anyone knows, I can post some code that I know works...

Best Regards...

de G8KBV.
Commented:
Hi!

I use smallport component. It's really what you need ;)

There is also ZLPortIo wery similar, but don't know why I didn't like it.

You get it at: www.torry.net

Hope it helps.

Commented:

Commented:
I would recommend SmallPort, it works fine, even in WinXP, which I am using.

If you need help using it just give me a yell.

http://www.torry.net/vcl/system/portaccess/smport.zip

I will send you some sample progs if you like.

Cheers

HushPe =)
k_oz:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial