This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Accessing a printer port
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: Norman Shapiro <cygwin at dad dot org>, cygwin at cygwin dot com
- Date: Mon, 11 Feb 2013 07:43:02 +0400
- Subject: Re: Accessing a printer port
- References: <201302101548.r1AFmnYw039876@shell0.rawbw.com>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
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