Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 10:22:35 10:22


Login with username, password and session length


Pages: [1]
Print
Author Topic: RS-232 cable connetion detector ?  (Read 3708 times)
0 Members and 1 Guest are viewing this topic.
elcielo
Senior Member
****
Offline Offline

Posts: 266

Thank You
-Given: 115
-Receive: 232



« on: May 14, 2014, 04:13:51 16:13 »

I want RS-232 cable connection detector.
like /INVALID pin of MAX3221
plz help me.
« Last Edit: May 14, 2014, 04:31:41 16:31 by elcielo » Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 151
-Receive: 214


« Reply #1 on: May 14, 2014, 09:46:31 21:46 »

most RS232 connections are idle high, so maybe you can look for a high signal for some period of time to detect?
Logged
cusna
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 2
-Receive: 1


« Reply #2 on: July 24, 2014, 02:17:34 14:17 »

http://www.arcelect.com/rs232.htm
Wwith a good oscilloscope is unable to locate the pins.
are the easiest to find rx and tx (which are also the most important Smiley)
These pins will find them immediately because usually there 'activity and then change state (1-0-01 ...) often.
Another thing to understand is who is who is the DTE and DCE so that you know that:
pin TxData (from DTE) when no data is at level 1
the condition of level 1 has a voltage between -5 and -15 V
while the condition of logic 0 has a voltage between 5 and 15V
(it is a negative logic)
Logged
rtm
Junior Member
**
Offline Offline

Posts: 53

Thank You
-Given: 90
-Receive: 71


a.k.a. klug


« Reply #3 on: July 24, 2014, 08:44:58 20:44 »

RS232 is simple: line is -5 to -12V when resting, and +5 to +12V when sending.

You can find description of /INVALID output in datasheet of MAX3221. It is simple:

Quote
The INVALID output notifies the user if an RS-232 signal is  present at the receiver input. INVALID is high (valid data) if the receiver input voltage is greater than 2.7 V or less than -2.7 V, or has been between -0.3 V and 0.3 V for less than 30 ms. INVALID is low (invalid data) if the receiver input voltage is between -0.3 V and 0.3 V for more than 30 ms.

So, in simplest way, you need to find if signal is out of range between, let say, from -2V to +2V. You can do it with 2-wire dual colour light diode. It will be one colour if line is in "0" state, or other colour when line is in "1" state. And RS232 connection will be absent if the diode is black.

There is the circuit of RS232 Break-Out Box using such method, that allows to monitor the state of all lines:


Full article about that device is here: http://www.marcspages.co.uk/tech/3105.htm

May be it will be enough to monitor only one the "TX" line in your case.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC