Google Answers Logo
View Question
 
Q: Detecting boolean input via RS-232 serial port ( No Answer,   1 Comment )
Question  
Subject: Detecting boolean input via RS-232 serial port
Category: Computers > Hardware
Asked by: connah-ga
List Price: $30.00
Posted: 26 Apr 2004 10:13 PDT
Expires: 26 Apr 2004 13:33 PDT
Question ID: 336452
I want to know how to wire DB-9 cable such that when one end is
connected to my RS-232 serial port, the other end can be connected to
a normally-closed boolean sensor and the state of the circuit can be
detected by software running on the computer. I need to know only
about the hardware configurations necessary, I can write the software
to detect data from the serial port.

My ultimate objective is to build a "door alarm". The software running
on my computer will detect signals sent to the serial port. The DB-9
cable will run from the serial port to a normally-closed door sensor
which will be of course connected to the door. When the door is
closed, the circuit is closed. When the door opens, I want to transmit
a signal to the serial port. When it closes, I want to transmit a
different signal to the serial port.

I hope I have provided enough details. Please let me know if my
question is confusing or if you need more information. Thanks!
Answer  
There is no answer at this time.

Comments  
Subject: Re: Detecting boolean input via RS-232 serial port
From: xeno555-ga on 26 Apr 2004 11:04 PDT
 
Hi,

Here is what you need:

http://www.zytrax.com/tech/layer_1/cables/heavy.htm

Have your TD pin 3 send data, and complete the circut at the door and
send it to RD just loop back the Gnd. Then when your program receives
data then the door is open.

MORE:

http://www.zytrax.com/tech/layer_1/cables/tech_rs232.htm


X

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy