Solved

Serial communication questions

Posted on 2007-03-19
9
341 Views
Last Modified: 2013-11-13
hi,
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
0
Comment
Question by:jaxrpc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 92

Accepted Solution

by:
nobus earned 500 total points
ID: 18754815
0
 
LVL 32

Expert Comment

by:Mark
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
http://www.beyondlogic.org/serial/serial.htm#1
0
 

Author Comment

by:jaxrpc
ID: 18761883
hi, what kind of cables are used? are they same as power cables? they looked the same to me..how to differeniate them and what about ethernet cables when 25 pin to ethernet.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:nobus
ID: 18762332
0
 
LVL 32

Expert Comment

by:Mark
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.
http://www.connectworld.net/cgi-bin/iec/05DTLNGHLMT1.html

This article delves into the serial to rj45(ethernet) cablng with wiring diagrams.
http://www.lammertbies.nl/comm/cable/yost-serial-rj45.html
0
 
LVL 5

Expert Comment

by:Computerguy107
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.
0
 
LVL 19

Expert Comment

by:Arno Koster
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. [http://en.wikipedia.org/wiki/RS-232] : 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).
0
 
LVL 1

Expert Comment

by:JJL088
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  
0
 
LVL 2

Expert Comment

by:kouroshparsa
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
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

690 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