Coneccion de RS232
Coneccion de RS232
Fuente: https://www.zytrax.com/tech/layer_1/cables/tech_rs232.htm
Brief tutorial and pinouts for RS-232, RS422/485, T1/E1 and V.35. If
you want to know more about RS 232 signals then this page may help -
but you may also need to lie down in a darkened room afterwards.
Contents
Notes:
2. Control Signals (CTS, RTS, DTR, DSR etc. are ACTIVE HIGH (range
+3V tp +12V). For more on the use of signals and other heavy
stuff.
3. The power level on RS232 pins is defined by TIA for short circuit
protection to be 100mA. Most RS232 drivers will provide lower
short circuit protection (especially for laptops). A max of 50mA
PER PIN may be available but the data sheet for the specific
interface/chip should be consulted before commiting to externally
powered designs.
6. The terms Data Carrier Detect (DCD) and Received Line Signal
Detect (RLSD) are one and the same. We use DCD throughout 'cos
we think it's more common.
7. While the term RS232 is almost universally used these days for
serial/modem connections, outside of North America it is quite
common to come across the ITU designations V.24/V.28 when
describing serial/modem communications. For all practical
purposes RS232 and V.24/V.28 are identical.
8. Like most folks we use the term DB9 which is widely - but
erroneously - coined to describe a 9-pin serial connector. We got
an email pointing out the error of our ways (hint: it is really a DE-
9P). So, if you want to amaze your friends over the dinner table,
you can read more and use the technically correct terms in the
future. While we get away with DB9 most of the time (with
common or garden PCs), sometimes it is essential to know
EXACTLY what connector type you are talking about. And,
following a recent email request, we discovered that the thread on
RS-232 (DB9 and 25) receptacles is UNC 4-40.
These diagrams show the male (grey background) and female (black
background) pin numbering for DB9 and DB25 sub-miniature
connectors. Generally Pin 1 is marked on the front of the connector right
next to the pin - though you may need a magnifying glass to read it.
Some manufacturers mark each pin number on the plastic housing at
the rear of the connector. The male connector has the pins sticking out!
The use of each pin including methods for spoofing signals is described
in our Signal/pin primer. The RS-232 DB25 connector is capable of
supporting two separate connections - each with its own optional clock
when used in Synchronous mode or Bit-Synchronous mode. If you are
using the interface purely for Asynchronous communications then you
only need those marked with (ASYNC) below or you can use even fewer
(if you understand what is happening). The column marked Dir shows
the signal direction with respect to the DTE.
1 - - Protective/shielded ground
11 - - Unassigned
14 STD OUT Secondary Transmit Data. Only needed if second channel being
used.
19 SRTS OUT Secondary Request to Send. Only needed if second channel being
used.
25 - - Unassigned
3 TD OUT Transmit Data (a.k.a TxD, Tx). Sending data from DTE.
4 DTR OUT Data Terminal Ready. Raised by DTE when powered on. In auto-
answer mode raised only when RI arrives from DCE.
5 SGND - Ground
7 RTS OUT Request To Send. Raised by DTE when it wishes to send. Expects
CTS from DCE.
9 RI IN Ring Indicator. Set when incoming ring detected - used for auto-
answer application. DTE raised DTR to answer.
Signal/pin primer
RJ45 Pin Name DB9 Notes/Description
No. Cross
Connect
5 RD 2 Receive Data
6 TD 3 Transmit Data
Use when connecting two systems (e.g. PCs) via their DB25 interfaces
without a modem (i.e. back-to-back). See the full signal names in
the DB25 sections.
If this pinout does not work for you then you could try our Signal/pin
primer because you may need to SPOOF connections.
3 RD 2 TD
2 TD 3 RD
4 RTS 5 CTS
5 CTS 4 RTS
7 SGND 7 SGND
22 RI 22 RI
DB25: View - looking into male connector
NOTE:
Use when connecting two systems, for example two PCs, via their DB9
interfaces without a modem. Typically called a back-to-back or NULL
modem connection. See the full signal names in the DB9 section.
If this pinout does not work for you then you could try our Signal/pin
primer because you may need to SPOOF connections.
2 RD 3 TD
3 TD 2 RD
7 RTS 8 CTS
8 CTS 7 RTS
5 SGND 5 SGND
9 RI 9 RI
NOTE:
DB9 Loopback
2 RD 3 TD
3 TD 2 RD
7 RTS 8 CTS
5 SGND 5 SGND
NOTE:
DB25 Loopack
3 RD 2 TD
2 TD 3 RD
4 RTS 5 CTS
5 CTS 4 RTS
7 SGND 7 SGND
15 DB 17 DD
20 DTR 6,8,22 DSR, DCD, RI
23 CH/CI 23 CH/CI
NOTE:
1. For the sake of simplicity this loopback will only work for the
primary channel. Full DB25 interfaces allow a secondary channel.
If a complete interface loopback is required you will need to add
pins 12, 13, 14, 16, 19, 24.
A DB9 clearly has 9 connections and a cat5, cat5(e) and cat 6 cable has
8 conductors. RS232D has chosen to use Pin 1 as a multi-function pin
(DSR/RI) to provide maximum flexibility with modems - in particular it
allows for DCD which is a meaningful signal from a modem but not, we
suggest, from a peer PC. We have chosen to use a minor variation on
the normal DB9 Null modem pinout above - specifically we have allowed
for RI which could be used from a peer PC to commence a transmission
sequence. The colors used are unimportant but the suggested
configuration is one way to provide the shortest use of the adjacent
(twisted) pairs.
If this pinout does not work for you then you could try our Signal/pin
primer because you may need to SPOOF connections.
2 RD Brown 3 TD Blue
3 TD Blue 2 RD Brown
9 RI Orange-white 9 RI Orange-white
DB9: View - looking into male connector
NOTE:
Signal/pin primer
1 DCD 8
2 RD 3
3 TD 2
4 DTR 20
5 SGND 7
6 DSR 6
7 RTS 4
8 CTS 5
9 RI 22
Use when connecting two systems (e.g. PCs) when one has a DB9
interface and the other a DB25 interface without a modem. Typically
called a back-to-back or NULL modem connection. See the full signal
names in the DB9 and DB25 sections.
Signal/pin primer
2 RD 2 TD
3 TD 3 RD
7 RTS 5 CTS
8 CTS 4 RTS
5 SGND 7 SGND
9 RI 22 RI
Notes:
7 Signal Ground Y -
18 Local Loopback U
21 Remote Loopback U -
22 Ring Indicator Y RI
23 Signal Ground Y -
25 TM U Test Mode
RS-422 and RS-485 (DB9)
Notes:
1. The A (+) and B (-) below refer to each signal pair used
in balanced serial interfaces (A+ is non-inverting, B- is inverting).
1 Ground
Signal/pin primer
7 AB Signal Ground
18 LL U Local Loopback
21 RL U Remote Loopback
22 RI Ring Indicator
23 AC Signal Ground
25 TM U Test Mode
NOTES:
7 NC Unused
8 NC Unused
NOTES:
1. NC = Not connected.
2. There are a confusing number of pinouts for use with an RJ45/48C
connector. Some specs show use of pins 7,8 for Grounds. Always consult
any equipment specification if available.
3. The telecom world loves its Tip and Ring designations. Tip is assumed to
carry a positive voltage (and would carry the transmission signal), Ring
a negative voltage (and would carry the inverted transmission signal)
Contenido
Notas:
NOTA:
Úselo cuando conecte dos sistemas, por ejemplo dos PC, a través de sus
interfaces DB9 sin módem. Normalmente se llama conexión de módem
consecutiva o NULL. Vea los nombres completos de las señales en
la sección DB9 .
NOTA:
DB9 Loopback
NOTA:
DB25 Loopack
NOTA:
2 RD marrón 3 TD Azul
3 TD Azul 2 RD marrón
44 DTR Verde 6,1 DSR, DCD Cafe Blanco
6,1 DSR, DCD Cafe Blanco 44 DTR Verde
77 RTS Azul blanco 8 CTS Verde blanco
8 CTS Verde blanco 77 RTS Azul blanco
55 SGND naranja 55 SGND naranja
99 Rhode Naranja-blanco 9 9 Rhode Island Naranja-blanco
Island
NOTA:
Úselo cuando conecte un DB9 (por ejemplo, una PC) a una interfaz
DB25 (por ejemplo, un módem). Vea los nombres completos de las
señales en la sección DB9 y DB25 .
Se usa cuando se conectan dos sistemas (por ejemplo, PC) cuando uno
tiene una interfaz DB9 y el otro una interfaz DB25 sin
módem. Normalmente se llama conexión de módem consecutiva o
NULL. Vea los nombres completos de las señales en
las secciones DB9 y DB25 .
Notas:
Notas:
NOTAS
Pinout T1 / E1 (RJ-48C)
NOTAS
1. NC = no conectado.
2. Hay una cantidad confusa de pines para usar con un conector
RJ45 / 48C. Algunas especificaciones muestran el uso de los pines
7,8 para Grounds. Siempre consulte cualquier especificación de
equipo si está disponible.
3. El mundo de las telecomunicaciones adora sus designaciones de
punta y anillo. Se supone que la punta lleva un voltaje positivo (y
llevaría la señal de transmisión), genera un voltaje negativo (y
llevaría la señal de transmisión invertida)