Accessing a printer port

Andrey Repin anrdaemon@freemail.ru
Mon Feb 11 03:50:00 GMT 2013


Greetings, Norman Shapiro!

> Here is my problem. There is an old laptop running Windows XP. It has a
> female "printer port", which I understand is also known as a "parallel
> port".

Yup.

> There is a male 25 pin to female 9 pin adapter that fits the female port.

Nop. This is likely a SERIAL (Also known as "COM") PORT 9<->25 pin adapter.

> The 9 pin end will eventually be connected to a serial device.

You can't connect serial devices to a printer port. Unless you want to damage
either, or both of them.

> I want to send characters to the serial device, from a C program.

> Can I just open("/cygdrive/c/prn", ...)?

First off, why you're trying to open "prn" file from C: drive?

> Can I use tcsetattr on the resulting file descriptor?


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 11.02.2013, <07:40>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list