Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mlevin@husc8.harvard.edu (Michael Levin)
Subject: how to read RS232 signals in C on VMS?
Date: 27 Jun 93 16:34:42 EDT	[thread overview]
Message-ID: <1993Jun27.163443.25261@husc14.harvard.edu> (raw)


     Suppose I have a VaxStation 3100 running VMS. Suppose I have a
device (actually a Fortress UPS unit) which has a serial port. I have
a technical spec for this device, which tells me that this device
holds various pins in this serial port at +12V DC to indicate various
conditions. Suppose I want to read these from a C program. Is this
possible? The vaxstation has those phone-type plugs in back. One of
these I have connected to a line printer, and it works fine. So, I
figure I will take the other one, and use a bunch of cables (including
that phone-wire type cable) to connect it to the serial port of this
device (it looks like a small version of the RS232). The big question
is, how do I know when a certain pin is at 12V or not, in a C program?
Are there some kind of system service calls for this? If anyone knows
how to do such a thing, please email mlevin@husc8.harvard.edu
directly. I know it must be possible, since the company sells a kit to
do this for several hundred dollars. The kit looks like it consists of
nothing but cables and a program, so it strikes me that I might be
able to do it myself.

Mike Levin



                 reply	other threads:[~1993-06-27 20:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox