Autor Tópico: RS 232: Montagem e conexões  (Lida 9095 vezes)

Xeontec

  • Administrador PT
  • Hero Member
  • *****
  • Mensagens: 101510
  • Pontos: +24/-9
    • Ver Perfil
    • Tecnicenter fórum
RS 232: Montagem e conexões
« em: Agosto 01, 2008, 09:18:14 am »
RS232 Pin Assignments (DB25 PC signal set) Pin 1 Protective Ground

Pin 2 -> Transmit Data
Pin 3 -> Received Data
Pin 4 -> Request To Send
Pin 5 -> Clear To Send
Pin 6 -> Data Set Ready
Pin 7 -> Signal Ground
Pin 8 -> Received Line Signal Detector
(Data Carrier Detect)
Pin 20 -> Data Terminal Ready
Pin 22 -> Ring Indicator

RS232 Pin Assignments (DB9 PC signal set)

Pin 1 -> Received Line Signal Detector
(Data Carrier Detect)
Pin 2 -> Received Data
Pin 3 -> Transmit Data
Pin 4 -> Data Terminal Ready
Pin 5 -> Signal Ground
Pin 6 -> Data Set Ready
Pin 7 -> Request To Send
Pin 8 -> Clear To Send
Pin 9 -> Ring Indicator

Wiring up something nice and simple, for instance a plain old "dumb terminal", is just a matter of connecting Tx, Rx and Ground, right?
Usually Not. While the normal PC hardware might well run with just Tx, Rx and Ground connected, most driver software will wait forever for one of the handshaking lines to go to the correct level. Depending on the signal state it might sometimes work, other times it might not. The reliable solution is to loop back the handshake lines if they are not used.

Handshake looping a PC serial connector

When the lines are handshake looped, the RTS output from the PC immediately activates the CTS input - so the PC effectively controls its own handshaking.

RS232 DB9 PC Loopback test plug



The PC loopback plug is a useful diagnostic tool. The loopback plug connects serial inputs to serial outputs so that the port may be tested. There is more than one way to wire up a loopback plug - but this is the most common.

RS232 DB25 PC Loopback test plug


Connecting together two serial devices involves connecting the Rx of one device to the Tx of the other, and vice versa. The diagram below indicates how you would go about connecting two PC's together, without handshaking.

Connecting two PCs together using RS232, without handshaking



When Handshaking is required, generally RTS of one device connects to CTS of the other, and vice versa, and also DSR of one device connects to DTR of the other device, and vice versa. The particular requirements for different equipment may vary.

Connecting two PCs together using RS232, with handshaking



Using a 'T' plug and a PC to monitor comms
The gadget below is a quick 10 minute project that is really great for monitoring RS232 Comms using a PC.



There are three sockets on our monitoring gadget. Two of them are connected straight through - you plug them in series with the devices you wish to monitor - and the third goes off to another monitoring PC.


The monitoring PC "Sees" on its serial port both sides of the serial conversation - that is it sees what is sent by PC1 and also what is sent by PC2. This can be a positive advantage, because you can see the serial conversation as it progresses between the two devices. Some serial protocols, however, talk "full duplex" meaning that one end can start transmitting while it is still receiving from the other end. This unit cannot monitor full duplex Comms - you will see gobble-dee-gook where the two transmissions overlap.


If you try this unit, you will be surprised how useful it is, and how often it works - mostly because many supposedly full duplex installations still talk half duplex in any case, because that is the sensible way to write the software. Not bad for one diode and a resistor, huh?



tvjoaquim

  • Jr. Member
  • **
  • t
  • Mensagens: 6
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #1 em: Setembro 15, 2009, 08:47:49 am »
 :palmas:

j.eduardo

  • Jr. Member
  • **
  • j
  • Mensagens: 39
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #2 em: Outubro 09, 2009, 10:30:39 am »
deixa lá ver isso

silrib

  • Jr. Member
  • **
  • s
  • Mensagens: 7
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #3 em: Julho 16, 2010, 09:28:34 pm »
tambem gostava de ver

pepas

  • Jr. Member
  • **
  • p
  • Mensagens: 26
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #4 em: Julho 18, 2010, 12:17:12 pm »
mostra obrigado

jose almeida tavares

  • Sr. Member
  • ****
  • j
  • Mensagens: 279
  • Pontos: +1/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #5 em: Julho 28, 2010, 11:37:45 am »
Fica dificil responder se nao vermos o conteudo. Um abraço.

jose almeida tavares

  • Sr. Member
  • ****
  • j
  • Mensagens: 279
  • Pontos: +1/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #6 em: Julho 28, 2010, 11:39:54 am »
Nao tem RS 232 para USB? Um abraço.

lcgomes

  • Jr. Member
  • **
  • l
  • Mensagens: 2
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #7 em: Setembro 18, 2010, 05:58:50 pm »
  interessante

lamonica5

  • Jr. Member
  • **
  • l
  • Mensagens: 46
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #8 em: Setembro 19, 2010, 09:12:44 pm »
obrigado  :ok:

l antunes

  • Jr. Member
  • **
  • l
  • Mensagens: 67
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #9 em: Setembro 20, 2010, 11:31:27 am »
obrigado.faz jeito

ACRCP

  • Visitante
Re: RS 232: Montagem e conexões
« Responder #10 em: Setembro 22, 2010, 10:59:56 pm »
Obrigada

Yevgen75

  • Visitante
Re: RS 232: Montagem e conexões
« Responder #11 em: Outubro 05, 2010, 09:59:27 pm »
Obrigado!

marco123

  • Jr. Member
  • **
  • m
  • Mensagens: 50
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #12 em: Outubro 19, 2010, 02:47:00 pm »
mostra obrigado :sim:

bricolas

  • Jr. Member
  • **
  • b
  • Mensagens: 12
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #13 em: Maio 20, 2012, 10:49:01 pm »
obrigado

abseg e cia

  • Jr. Member
  • **
  • a
  • Mensagens: 1
  • Pontos: +0/-0
    • Ver Perfil
Re: RS 232: Montagem e conexões
« Responder #14 em: Maio 23, 2012, 02:25:01 pm »
oloco meu :ah: