What is the difference between Nullmodem cable and straight-through cable for Serial Port?Why do we need them two, not one only?
Thanks,
Adrian
What is the difference between Nullmodem cable and straight-through cable for Serial Port?Why do we need them two, not one only?
Thanks,
Adrian
For a combination of two reasons: first, because RS232 is bi-directional and full-duplex, but its signalling method on the individual wire is uni-directional. This is what necessitates _having_ two wires to be crossed (or not) in the first place. It also implies the two signals have to be crossed (TX(device 1) --> RX(device
2) and vice versa)The second reason is that the designers of RS232 differentiated two classes of devices (from a current-day perspective, you'ld recognize them as "PC" and "modem"), and one of the difference between those is which pin on a standard connector carries which signal. The idea is to allow a straight-through connection (think of press-on connectors and ribbon cables) between such devices.
This strategy implies that if you deviate from it, by connecting two devices from the same class (e.g. PC PC), you have to actually cross wires to achieve the necessary signal crossing. Hence the need for null-modem cables.
The design choice was between *always* needing crossed cables, and only needing them in what was likely considered an "exotic" application at the time. They may even have simply overlooked the possibility.
-- Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de) Even if all the snow were burnt, ashes would remain.
Homework? Always happy to help, please click here:
The nullmodem cable interchanges the send and receive data lines (pins 2 & 3), and also the supervision lines (forget, include 4, 5
22 IIRC). Then you have to worry about male/female connectors. It is usually better to have clearly labelled adaptors and keep all cables straight through male to female.-- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. USE worldnet address!
Don't forget the usual confusion when using PC-style DB25 to DB9 serial cable since the meanings of pins 2 & 3 are reversed.
Casey
You can also look at
Tim
Lee wrote:
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.