Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* how to read RS232 signals in C on VMS?
@ 1993-06-27 20:34 Michael Levin
  0 siblings, 0 replies; only message in thread
From: Michael Levin @ 1993-06-27 20:34 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-06-27 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-06-27 20:34 how to read RS232 signals in C on VMS? Michael Levin

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