Null Modem

Principal
Tx Serial
RS-232
Null Modem
Cable  de Red
Redes y Protocolos
Ejercicios
Archivos
Proyectos
Enlaces
About Us


CONEXIONADO DTE-DTE: NULL-MODEM.

 

Como ya se ha mencionado, es frecuente que la norma RS-232 se utilice para otros propósitos distintos de los originales. Uno de los más frecuentes es conectar un DTE con otro DTE. En este caso el cableado normal DTE a DCE no tiene sentido y estaríamos cortocircuitando las líneas de salida. Existe una solución, un cableado cruzado que se conoce como Null-modem. Es fácil de entender si lo analizamos usando los tres bloques funcionales.

 

Bloque 1:

Conectar DTR con DSR remoto y RI remoto.

De esta manera cuando un PC activa su RS-232 se lo comunica al remoto.

 

Bloque 2:

RTS con CTS local y DCD remoto.

 

Para entender la lógica de este cableado debe observarse que hay dos líneas independientes de transmisión de datos, una en cada sentido. Por lo tanto la comunicación es potencialmente Full-duplex. Esto implica que cada DTE puede transmitir cuando lo desee, independientemente de que el otro DTE lo esté haciendo o no. Por lo tanto cuando un PC quiere transmitir activa su RTS, esto activa también su propia CTS lo que le permite transmitir inmediatamente. Además indica que está transmitiendo a la máquina remota activando el DCD remoto.

 

Bloque 3:

TxD con RxD remoto.

 

Como habíamos mencionado, la comunicación es potencialmente Full-Duplex.

 

 

La ventaja del método FD es que permite al usuario comprobar si ha habido error de transmisión. Si el código en pantalla es el deseado, también es el que ha leído el host. Esto no pasa en HD. Si en HD existiera un error de transmisión y el código de la tecla pulsada no llega o llega mal al host, el usuario no puede, en principio, saberlo.

 

 

DIAGRAMAS DE CONEXIONADO DE LOS DIFERENTES CABLES.

 

RS232 DB-9 Pin Assignment


 

RS232 DB-25 Pin Assignment



 

Simple null modem without handshaking

 

 

Computer 1

Computer 2

Pin DB-25P

Pin DB-9P

Signal

Signal

Pin DB-9P

Pin DB-25P

2

3

TD

RD

2

3

3

2

RD

TD

3

2

7

5

SG

SG

5

7

 

 


Null modem with loop back handshaking

 

 

Computer 1

Computer 2

Pin DB-25P

Pin DB-9P

Signal

Signal

Pin DB-9P

Pin DB-25P

2

3

TD

RD

2

3

3

2

RD

TD

3

2

7

5

SG

SG

5

7

Internal connections for each computer

Pin DB-25P

Pin DB-9P

Signal

4+5

7+8

RTS+CTS

20+6+8

4+6+1

DTR+DSR+CD

 

 


Null modem with partial handshaking

 

 

Computer 1

Computer 2

Pin DB-25P

Pin DB-9P

Signal

Signal

Pin DB-9P

Pin DB-25P

2

3

TD

RD

2

3

3

2

RD

TD

3

2

7

5

SG

SG

5

7

4+5

7+8

RTS+CTS

CD

1

8

8

1

CD

RTS+CTS

7+8

4+5

20

4

DTR

DSR

6

6

6

6

DSR

DTR

4

20

 

 


Null modem with full handshaking

 

 

Computer 1

Computer 2

Pin DB-25P

Pin DB-9P

Signal

Signal

Pin DB-9P

Pin DB-25P

2

3

TD

RD

2

3

3

2

RD

TD

3

2

7

5

SG

SG

5

7

4

7

RTS

CTS

8

5

5

8

CTS

RTS

7

4

20

4

DTR

DSR

6

6

6

6

DSR

DTR

4

20

 

 

 

Tabla de aplicación de los cables según el software

 

Use

Simple cable Without Handshaking

Cable with Loop back Handshaking

Cable with Partial Handshaking

Cable with Full Handshaking

Software flow control only

xxx

x

x

x

DTE/DCE compatible hardware flow control at low speeds

-

xxx

xx

-

DTE/DCE compatible hardware flow control at high speeds

-

+

xxx

-

High speed communication using special software

-

-

xx

xxx

 

Nota:

xxx       Cable recomendado

xx         Muy  buena alternativa

x           Buena alternativa

+          Funciona, pero no se recomienda

 -          No funciona

 

Tx Serial

RS-232

Null Modem

LAN

Enlaces

About Us

 

 

 

Hit Counter