• Advertisement

Archived

This topic is now archived and is closed to further replies.

listening on serial and printer port

This topic is 5932 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to record what is coming in from the serial and printer ports, how can I do this??

Share this post


Link to post
Share on other sites
Advertisement
Yikes, haven''t done this for ages. You definitely use CreateFile, but instead of passing a filename, you pass something like:

\\.\COM1:

Having just looked at the MSDN documentation, they just use "COM1" as a filename, so that might work also.

To configure the device properly you need to know about COMMDCB structures etc. so it''s worth taking a look at the documentation. Look up BuildCommDCB and look at the associated section in MSDN.

Share this post


Link to post
Share on other sites
I wrote a small console program that could read and write to the parallel port, but I''ve since lost it. It didn''t use anything complicated at all, but I forget what I did...

Share this post


Link to post
Share on other sites

  • Advertisement