RS232 to RS485 Converter: Making the Right Connections

  • Thread starter ionlylooklazy
  • Start date
In summary, an RS232 to RS485 converter is a device used to convert communications between two different serial interfaces. It allows for data to be transmitted over longer distances and with more stability, making it ideal for industrial and commercial applications. It can also be used to connect multiple devices in a network, making it a versatile and cost-effective solution for data transmission. When choosing a converter, it is important to consider factors such as data rates, distance, and power requirements to ensure the right connections are made.
  • #1
ionlylooklazy
30
0
I've got a rs485 device and an adapter for rs232<->rs485 and no rs485
experience, so before I solder this wire harness, I want to make sure
I'm making the right connections.


Assuming no flow control,

From the rs485 side, I need TX+,TX-,RX+,& RX-. On the 25pin D
connecter, these are pins 5,22,20,& 7 respectively.

For the rs232 side, I just need RD & TD.

Is there anything I'm missing?

Also, I tore open an old 25 pin rs485 connecter and found a few pins
that were soldered together. I can't find any pin-outs on the
connecter so I have no idea as to there function.

Thanks,
ionlylooklazy
 
Engineering news on Phys.org
  • #2
What adapter are you using? AFAIK, there is no standard pinout for RS-485 connections (unlike RS-232). What is the RS-485 connector defined as? Also keep in mind that the RS-485 network cable must be wired as a doubly-terminated bus, with zero-length stubs to any multidrop connections, and a Zo termination at each end of the bus. What is the Zo of the wire you are using for the RS-485 connections?
 
  • #3
yes, you are correct. I was referring to wikipedia.org for the pin-out, but I found the data sheet for the converter I'm using and it uses a different pin layout.

http://www.bb-elec.com/bb-elec/literature/485con.pdf

I don't understand what you mean by doubly terminated bus, and zero-length stubs, but the impedance of the wire I'm using is about 7 ohms. Aslo, right now I am just connecting to one system, so I don't believe I need to worry about multidrop connections.
 
Last edited by a moderator:
  • #4
ionlylooklazy said:
yes, you are correct. I was referring to wikipedia.org for the pin-out, but I found the data sheet for the converter I'm using and it uses a different pin layout.

http://www.bb-elec.com/bb-elec/literature/485con.pdf

I don't understand what you mean by doubly terminated bus, and zero-length stubs, but the impedance of the wire I'm using is about 7 ohms. Aslo, right now I am just connecting to one system, so I don't believe I need to worry about multidrop connections.

The Zo characteristic impedance of your twisted pair transmission line is most certainly not 7 Ohms. That may be the total resistance of the wire end-to-end or something, but not the Zo. The Zo of typical twisted pair cable is going to be something like 100 Ohms or 75 Ohms or 50 Ohms. Here is some basic info about transmission lines:

http://en.wikipedia.org/wiki/Transmission_line

Even for a point-to-point transmission line with only two devices attached, you need to terminate the two ends of that bus with a Zo resistor to keep from having reflection and ringing issues. A doubly-terminated bus just refers to that -- the wire cable has a termination at each end. And RS-485 has a requirement that any multidrop devices that connect to the bus along its length (including the two end devices at the terminations) has to use a zero-length stub. That is, it has to connect directly to the bus with a very short connection tap. Some multidrop networks (like the TP/FT-10 network that I work with a lot in control networks) allow stubs up to 3 meters long, to help make wiring devices up to the network easier. RS-485 does not allow this.
 
Last edited by a moderator:
  • #5
OK, thanks for the help. Please remember, I know nothing about rs485.

Zo is 120 ohms, so I'll need a 120 ohm terminating resistor at both sides.

As for the stubs, those would be the Data Out connections from the twisted wire pair? If so, why would I not just wire the Tx+ and Rx+ together? If not, can you please clarify?


Thanks,
iolly
 

Attachments

  • rs485.JPG
    rs485.JPG
    15.8 KB · Views: 705
  • #6
No, the stub would be the short piece of wire or PCB trace that connects the actual twisted pair cable to the RS-485 transceiver IC. When the connection is just point-to-point between two transceivers as you have shown, it's usually easy to keep that connection short.

BTW, keep in mind that the two RS-485 transceivers at the cable ends should share a common ground. RS-485 is a DC-connected (no transformer) network, so the transceivers have to all have the same ground reference. RS-485 transceivers can tolerate a common mode voltage offset of a couple of volts, but not very many. The RS-485 standard mentions running a 3rd wire along with the twisted pair if necessary, in order to connect the 485 transceivers' grounds.
 
  • #7
try to use the HXSP-2108C Industrial Level Optical Isolation RS-232 To RS-485/RS422 Converter produce by hexin-tech.com.cn, whcih with optical isolation,lightningproof and surge protection .The RS-422/485 side and the RS232 side is powered by an external power .
 
  • #8
Is it true that if using a RS485 connection that is short, just a few feet, with any standard RS232 to RS485 converter, then I don't need to use a 100ohms terminal resistor? What is the difference of using a resistor or not using one? what does it do exactly? :confused:
 
  • #9
Well after some research I guess I can answer my own question :biggrin: A 120ohms resistor is generally only recommended if the transmission lines are more than 1000 feet, this is also why a rs232 to rs485 converter with a built-in terminal resistor which cannot be disabled is a bad thing.
The reason for the terminal resistor: the resistor matches the resistance of the wires connected to the converter thereby minimizing the noise in the wire. However, the terminal resistor also induce additional current flow which puts load on the converter, which is why the resistor isn't recommended on wire lengths less than 1000 feet.
After a lot of research I finally found a RS232 to RS485 converter that suites my requirements.
 

What is Rs232 and Rs485?

Rs232 and Rs485 are both serial communication standards used for transmitting data between electronic devices. Rs232 is a single-ended standard, meaning it uses one wire to transmit data, while Rs485 is a differential standard, using two wires to transmit data.

Why would I need to convert Rs232 to Rs485?

There are several reasons why you may need to convert Rs232 to Rs485. One common reason is that Rs485 allows for longer communication distances, making it more suitable for industrial or commercial applications. Additionally, Rs485 supports multi-drop communication, meaning multiple devices can be connected to the same bus, while Rs232 only supports point-to-point communication.

How does the conversion process work?

The conversion from Rs232 to Rs485 involves using a converter or adapter that converts the electrical signals between the two standards. The converter will typically have an Rs232 port on one side and an Rs485 port on the other, allowing for communication between devices using different standards.

Are there any limitations to the conversion process?

Yes, there are some limitations to converting Rs232 to Rs485. For example, the converter may have a maximum data transmission rate, which could limit the speed of communication between devices. Additionally, the converter may not be able to handle certain data formats or protocols, which could cause issues with data transmission.

What are some common applications for Rs232 to Rs485 conversion?

Rs232 to Rs485 conversion is commonly used in industrial automation, process control, and building automation systems. It is also used in data communication for remote monitoring and control, such as in solar power systems or weather monitoring stations. Additionally, it is used in networking equipment, such as routers and switches, to connect different types of devices.

Similar threads

  • Electrical Engineering
Replies
1
Views
2K
  • Electrical Engineering
Replies
7
Views
3K
Replies
37
Views
3K
  • Electrical Engineering
Replies
14
Views
816
  • Electrical Engineering
Replies
7
Views
927
Replies
2
Views
2K
  • Electrical Engineering
Replies
6
Views
8K
Replies
31
Views
2K
Replies
13
Views
7K
Replies
8
Views
2K
Back
Top