Serial communication questions

Posted on 2007-03-19
Last Modified: 2013-11-13
I would like to find out more about serial communications, i have used them but i merely followed the instructions like which pin to which pin on the instructions manual. I would like to how the wiring works, why pin 2 to 3 and 3 to 2 etc and are the wiring a standard (same throughout for 232,422 and 485) what is half duplex and what is full duplex, where can i find wiring configurations for all the above and what is the handshaking for because i have never need to used it..most of the time i use rs232 and rs485 for matchine to computer interaction. What are the cables used for these because i have seen many type of cables in the market but i am always not sure which to get. thanks
Question by:jaxrpc
LVL 91

Accepted Solution

nobus earned 500 total points
ID: 18754815
LVL 32

Expert Comment

ID: 18756705
A simplified way of beginning to understand the cabling between components starts with the designation of each type PC's are considered DTE's (Data Terminal Equipment) and  DCE's (Data Communication Equipment) are considered to be Modems and access points on wireless networks. Once you identify which type of component you have on each end of the cable, for example a PC to PC connection would require DTE wiring on each end of the cable, or a PC to modem  -DTE to DCE.
Check here for more info

Author Comment

ID: 18761883
hi, what kind of cables are used? are they same as power cables? they looked the same to to differeniate them and what about ethernet cables when 25 pin to ethernet.
LVL 91

Expert Comment

ID: 18762332
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

LVL 32

Expert Comment

ID: 18762559
They certainly aren't power cables.  The serial cable is usually made up of 9- 24AWG wires  for db9 cables and 25 wires for db 25 cables. There is differences in capacitance for certain cables and that determines the length that a cable can run.It is set up as capacitance Per Foot. This article gives some info on the cable lengths and how to determine them.

This article delves into the serial to rj45(ethernet) cablng with wiring diagrams.

Expert Comment

ID: 18783938
Serial communication is pretty much history. It was used in the past to connect terminals and printers to host machines, such as unix based mainframes. Ethernet has replaced serial because it is faster and easier to configure. Serial was doomed when every manufacturer would have their own way of configuring their ports. ie some hardware would have transmit coming from pin 2 and some from pin 5. I used to wire mainframes with serial connections and I am happy to say I have not touched serial equipment in 10 years.
LVL 19

Expert Comment

ID: 19009044
Serial communication comes down to serially (opposite to parallel) sending zero's and one's from one device to the other. As of the serial nature (bit after bit) int theory one signal cable shoudl suffice but in general two signal cables are to be used, one to send and one to receive information. That's why for example pins 2  (transmit data) & 3 receive data) are to be connected crosswise : the sending device transmits to pin 2 which is to be connected to the listening device on pin 3. These wiring configurations can be found on wikipedia (eg. [] : par. 6)

Handshaking can be used to determine which device is able to send and wich should be listening. Some devices can talk and listen at the same time (full-duplex), some can listen or talk but only one of them at a time (half-duplex). This handshaking can be performed by software running on the communicating devices but is can also be done in hardware. For the latter case more pins need to be connected (DTR / DSR / RTS / CTS).

Expert Comment

ID: 19399546
I have to disagree with computerguy107 yes serial communication is not used much anymore in mainstream buissness or home equipment but it is still very much alive and critical to mobile Automated systems ie Codesys, twincat, or any IEC-61131 standard PLC, its the easiest and most reliable way to program the software for these plc's. I use a Serial Connection all most everyday at work. so yes its not a mainstream connection method anymore but dont for a minute think Serial Communication will just up and be gone one day - just had to say that  

Expert Comment

ID: 19614683
I agree with JJL088.
Parallel communication is easy to implement but it requires lots of wiring.
Sometimes you want to have a single slim data cord to make your wiring simple and nice...that is if you do not care about the transfer speed since miliseconds are not noticable...
Note: usb and RS232 are commonly used for serial communication

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now