navitron
 
Renewable Energy and Sustainability Forum
UK's most popular Renewable Energy Forum May 23, 2012, 04:28:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Anyone wishing to register as a new member on the forum is strongly recommended to use a "proper" email address - following recent spam/hack attempts on the forum, all security is set to "high", and "disposable" email addresses like Gmail, Yahoo and Hotmail tend to be viewed with suspicion, and the application rejected if there is any doubt whatsoever
 
Recent Articles: UPDATE ON DECC APPLICATION FOR LEAVE TO APPEAL TO THE SUPREME COURT | Yingli Green Energy's PV Module Ranks No.2 in TUV Rheinland Energy Yield Test | Navitron Solar Showers at Glastonbury for Year 5!
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: 25 pin rs232 to 8p8c pinouts.  (Read 859 times)
tony.
Guest
« on: November 07, 2010, 10:47:12 PM »

A quick question.

On the serial connector tx and rs are pins 2&3
On the 8p8c connectors 5&6 are the tx and rx.

So are the pins connected tx to tx and rx to rx
Or are they tx connected to the rx and vice versa.

Cheers in advance

Tony
Logged
dhaslam
Hero Member
*****
Offline Offline

Posts: 4561



« Reply #1 on: November 07, 2010, 11:19:05 PM »

Are you connecting two devices using RS232?   If so  the normal (DTE) connection is to crossover RX to TX and vice versa.   Connecting to modems  (DCE)  does not crossover.   
Logged
tony.
Guest
« Reply #2 on: November 07, 2010, 11:31:36 PM »

Its a desk laser jet printer that has a 25 pin connector.
Laptop doesn't have such a connector so going for USB connector and a bit of connector block

Cheers
Tony
Logged
EccentricAnomaly
Guest
« Reply #3 on: November 08, 2010, 12:02:53 AM »

First of all, thank you for calling them 8p8c connectors rather than the more common but incorrect name of RJ-45.

Unfortunately, the wiring all depends on what is meant by tx and rx which is not as obvious as it sounds.  Strictly speaking RS-232 only applies to the connection on a modem, any other use of the standard (even the computer end of a modem cable) is just by analogy.

Definition 1: one way of looking at it is to consider data coming out of a box as being transmitted and data going into it as being received.

Definition 2: the other way is to think of data going from the computer to the modem (and, by analogy, any other box) as being transmitted and data from the modem to the computer as being received.

These are different on a modem where transmitted data (definition 1) is actually received by the box (definition 2).

So what you need to determine is which definitions of tx and rx the person who defined the 8P8C connections you are using: do they mean tx as transmitted from the computer to the thingy or vice-versa.  For the 25-pin female submin D connector on a computer serial port it's not so complicated: tx is the data coming out of the computer and rx is data going into it.

You write:

Quote
On the serial connector tx and rs are pins 2&3

This is true on a 25-pin connector (true RS-232).  The most common connectors these days is a 9-pin (variously known as AT serial, because it was first commonly used on the IBM PC-AT, or RS-574) where tx and rx are pins 3 & 2 (i.e., same pin numbers but opposite order from a 25-pin connector - I always have to look up which is which).

Quote
On the 8p8c connectors 5&6 are the tx and rx.

That sounds like they're using the definition of tx is data coming out of the box and rx is data going into it.  I say this because the EIA/TIA - 561 standard has RD on 5 and TD on 6 which would be by the definition of data flowing to and from the modem so it appears that the definition in use here is of data flowing into and out of the box.

Here's what I'd do: measure the voltage on the 8P8C pins 5 & 6.  The one that's high (probably about minus 6 to 10 volts) is transmit data (out of the box).  I'd connect that to the computer's receive data pin (pin 3 on a 25-pin connector, pin 2 on a 9-pin connector).  The other pin will probably show a lowish positive voltage (maybe about plus 2 volts) or even not have any voltage.  Connect that to the computer's transmit data pin (pin 2 on a 25-pin connector, pin 3 on a 9-pin).

If you get it wrong it shouldn't matter even if you have two transmit pins pulling in opposite directions on the same wire.  RS-232 says that transmitters are supposed to be safe with that.
Logged
EccentricAnomaly
Guest
« Reply #4 on: November 08, 2010, 12:15:57 AM »

Its a desk laser jet printer that has a 25 pin connector.

Are you sure that 25-pin connector is serial?  It might well be and I have used printers with 25-pin submin D connector serial ports but it's more normal to associate printers and 25-pin connectors with parallel ports.

RS-232 serial uses 25-pin with typically a female connector on the modem and a male connector on the computer.

Parallel ports typically have female 25-pin submin D connectors on the computer and funny "centronix" connectors on the printer but it wouldn't amaze me to find a printer with a male 25-pin submin D parallel connection.

Connecting RS-232 signal levels (+/- 12 volts or so) to parallel ports (TTL, 5V) is likely to be injurious to the parallel port.

Quote
Laptop doesn't have such a connector so going for USB connector and a bit of connector block

Presumably you mean a USB-to-serial converter?
Logged
johnrae
Hero Member
*****
Online Online

Posts: 555


« Reply #5 on: November 08, 2010, 09:32:32 AM »

I cannot even attempt to vouch for the correctness of the content but what a wonderfully coherent description of the signal connections
jack
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!