SlideShare a Scribd company logo
1 of 5
Summer Internship 2014
Project: Data Communication through serial port.
Group members (Internees):
Sana Ghani.
Wajiha Muzzaffar Ali.
Sadia Sami.
Areeba Sharif.
Projectdesign:
To design a chat application based on C-sharp .NET framework. It would have basic structure
that would enable multiple users to chat with one another through serial port interface.
Multiple computers (three) would have access to chat.
Project Requirements:
 RS 232C serial cable
 Null modemcable
 Three computers
PARALLEL PORT
Advantages:
 Parallel Port communication is faster as 1 Byte (8 bits) can be transmitted at a time.
 Parallel port transfers data with data ready and data received handshake lines thus;
they go fast as the processor can deliver up to a fixed clock frequency.
Disadvantages:
 It isn’t reliable for transmitting data over long distances and if anyone of the bit has
been damaged during transmission it will affect the whole data.
 It has higher wiring requirements so it consumes more space and hence it is costly.
COM PORT/ SERIAL PORT:
Advantages:
 The losses in the cable when transmitting data using serial port are less substantial.
 Another proof of serial port universality is microcontrollers. Many of them have
inbuilt SCI (Serial Communications Interfaces), used for communication with other
devices.
 The number of wires needed when transmitting data serially is less than when the
transmission is parallel.
Disadvantages:
 Surely enough serial port has its drawbacks. The main one is that when organizing
serial connection it is always necessary to convert the data into serial code and vice
versa.
RS232C:
RS-232 stands for Recommend Standard number 232 and C is the latest revision of the
standard. The serial ports on most computers use a subset of the RS-232C standard.
The full RS-232C standard specifies a 25-pin "D" connector of which 22 pins are used.
Applications: Today, it is still widely used in embedded computer development
systems, scientific instruments, and all sorts of industrial control equipment.
DCE and DTE Devices:
DTE stands for Data Terminal Equipment, and DCE stands for Data Communications
Equipment. These terms are used to indicate the pin-out for the connectors on a device and
the direction of the signals on the pins. Your computer is a DTE device, while most other
devices are usually DCE devices.
RTS / CTS:
RTS line is switched between mark and space condition by DTE devices to ensure data
transmission and similar for DCE devices. While CTS make sure receiver buffer isn’t full for
transmission with respect to DTE/ DCE devices.
NULL Modems:
If you connect two DTE devices (or two DCE devices) using a straight RS232 cable, then the
transmit line on each device will be connected to the transmit line on the other device and
the receive lines will likewise be connected to each other. A Null Modem cable or Null
Modem adapter simply crosses the receive and transmit lines so that transmit on one end is
connected to receive on the other end and vice versa. In addition to transmit and receive,
DTR & DSR, as well as RTS & CTS are also crossed in a Null modem connection.
RS485:
It defines notonly a single device-to-device interface but also a communications bus thatcan
be usedto form simple networksof multiple devices. Its configuration and specifications
also extend the rangeand data rate beyond the RS-232 interface capabilities. Full-duplexor
simultaneoustransmitand receive operations can be implemented with a two-pair cable.
Applications: It is particularly effective in equipment used in noisy environments such as
factories, process control plants, and utilities sites.
RS422
RS-422 is a variation of RS-485 with similar specifications butis designed only for one driver
and up to 10 receivers. Otherwise, other specifications are similar to the RS-485 interface.
USB TO RS232 CONVERTER
This converter plugsinto your computer’s USB port andprovides you with a DB-9 RSR232
connection. The cable will enumerateas a COM port with a baudrate adjustableto whatever
setup you want to connect to.
USB TO TTL CONVERTER
This USB to TTL converter is a port-powered bi-directional USB to TTL/CMOS 5V converter,
which can be used to convert any standard full-duplex USB port into a full-duplex TTL port and
vice versa. The unit is powered from the USB port and it supports data auto-sensing & self-
adjusting, and therefore, no baud rate setting is required.
Q. Do you understand the serial mode of communication? How the PC will transfer a letter
(say 'Á') to the other PC using serial port?
Serial communication is forms of I/O in which the bits of a byte begin transferred appear one
after the other in a timed sequence on a single wire. It has become the standard for
intercomputer communication.
There are two types of serial communication:
 Synchronous communication
 Asynchronous communication
In synchronous communication the data is transmitted and received through a common
clock.
In Asynchronous communication we have to add start bit, stop bit and for checking we can
also add parity bit.
In our project we will be using Asynchronous communication.
In Asynchronous communication the transmitter shifts the parallel data onto the serial line
using its own clock while the receiver extracts the data using its own clock. It converts the
serial data back to the parallel form after stripping off the start, stop, and parity bits.
When transmitting a byte say letter ‘A’, the UART (serial port) first sends a START BIT which
is a positive voltage (0), followed by the data which in this case will be the ASCII of the letter
i.e. 01000001 (general 8 bits, but could be 5, 6, 7, or 8 bits) followed by one or two STOP
BITs which is a negative(1) voltage. The sequence is repeated for each byte sent.
MAX232 IC
The MAX232 IC is used to convert the TTL/CMOS logic levels to RS232 logic levels during
serial communication of microcontrollers with PC. The controller operates at TTL logic level
(0-5V) whereas the serial communication in PC works on RS232 standards (-25 V to + 25V).
This makes it difficult to establish a direct link between them to communicate with each
other.
The intermediate link is provided through MAX232. It is a dual driver/receiver that includes a
capacitive voltage generator to supply RS232 voltage levels from a single 5V supply. Each
receiver converts RS232 inputs to 5V TTL/CMOS levels. These receivers (R1 & R2) can accept
±30V inputs. The drivers (T1 & T2), also called transmitters, convert the TTL/CMOS input level
into RS232 level.
The transmitters take input from controller’s serial transmission pin and send the output to
RS232’s receiver. The receivers, on the other hand, take input from transmission pin of RS232
serial port and give serial output to microcontroller’s receiver pin. MAX232 needs four
external capacitors whose value ranges from 1µF to 22µF.
References:
http://www.taltech.com/datacollection/articles/serial_intro
http://retired.beyondlogic.org/serial/serial.htm

More Related Content

What's hot

Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data CommunicationDesty Rahayu
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication InterfaceSandesh Agrawal
 
Hybrid Communication Protocol- UART & SPI
Hybrid Communication Protocol- UART & SPIHybrid Communication Protocol- UART & SPI
Hybrid Communication Protocol- UART & SPIHardik Manocha
 
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP TroubleshootingHands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP TroubleshootingLiving Online
 
Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232PRADEEP
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communicationVijay Kumar
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationRashmi
 
Implementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGAImplementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGAIJERA Editor
 

What's hot (19)

Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data Communication
 
RS 232
RS 232RS 232
RS 232
 
Rs232 protocal
Rs232 protocalRs232 protocal
Rs232 protocal
 
Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data Communication
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
rs-232
rs-232rs-232
rs-232
 
Hybrid Communication Protocol- UART & SPI
Hybrid Communication Protocol- UART & SPIHybrid Communication Protocol- UART & SPI
Hybrid Communication Protocol- UART & SPI
 
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP TroubleshootingHands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP Troubleshooting
 
Gpib
GpibGpib
Gpib
 
Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232
 
Rs 422
Rs 422Rs 422
Rs 422
 
Rs-232 by Foysal
Rs-232 by FoysalRs-232 by Foysal
Rs-232 by Foysal
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
 
Standards for Dividing Serial Interfaces
Standards for Dividing Serial InterfacesStandards for Dividing Serial Interfaces
Standards for Dividing Serial Interfaces
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Implementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGAImplementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGA
 
Max 232
Max 232Max 232
Max 232
 

Viewers also liked

Pc to pc optical fibre communication mini project
Pc to pc optical fibre communication mini projectPc to pc optical fibre communication mini project
Pc to pc optical fibre communication mini projectPadmakar Mangrule
 
Web application based file transfer in customized cloud
Web application based file transfer in customized cloudWeb application based file transfer in customized cloud
Web application based file transfer in customized cloudeSAT Journals
 
Pc to pc optical fiber communication
Pc to pc optical fiber communicationPc to pc optical fiber communication
Pc to pc optical fiber communicationPadmakar Mangrule
 
Asynchronous serial data transfer, UART and CAN controller
Asynchronous serial data transfer, UART and CAN controllerAsynchronous serial data transfer, UART and CAN controller
Asynchronous serial data transfer, UART and CAN controllerJovan Vlajic
 
RitZBox-A file Sharing system
RitZBox-A file Sharing systemRitZBox-A file Sharing system
RitZBox-A file Sharing systemSubham Sahu
 
Fiber Optic Technology
Fiber Optic TechnologyFiber Optic Technology
Fiber Optic TechnologyYaswanth Yadav
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer schemerockymani
 
intelligent street light system using gsm Report
intelligent street light system using gsm Reportintelligent street light system using gsm Report
intelligent street light system using gsm Reportdarshangowda679
 
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robotB.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robotSushant Shankar
 

Viewers also liked (10)

Pc to pc optical fibre communication mini project
Pc to pc optical fibre communication mini projectPc to pc optical fibre communication mini project
Pc to pc optical fibre communication mini project
 
Web application based file transfer in customized cloud
Web application based file transfer in customized cloudWeb application based file transfer in customized cloud
Web application based file transfer in customized cloud
 
Pc to pc optical fiber communication
Pc to pc optical fiber communicationPc to pc optical fiber communication
Pc to pc optical fiber communication
 
Asynchronous serial data transfer, UART and CAN controller
Asynchronous serial data transfer, UART and CAN controllerAsynchronous serial data transfer, UART and CAN controller
Asynchronous serial data transfer, UART and CAN controller
 
RitZBox-A file Sharing system
RitZBox-A file Sharing systemRitZBox-A file Sharing system
RitZBox-A file Sharing system
 
Fiber Optic Technology
Fiber Optic TechnologyFiber Optic Technology
Fiber Optic Technology
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer scheme
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
 
intelligent street light system using gsm Report
intelligent street light system using gsm Reportintelligent street light system using gsm Report
intelligent street light system using gsm Report
 
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robotB.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
 

Similar to Project_intership

Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communicationVijay Kumar
 
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.pptUnit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.pptaasitworld
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxNaveenK365392
 
Serial port in an embedded system types and uses
Serial port in an embedded system   types and usesSerial port in an embedded system   types and uses
Serial port in an embedded system types and usesSf Cable, Inc
 
UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )Tarun Khaneja
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdfKiranG731731
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationUshaRani289
 
networking devices -161021181705452555
networking   devices -161021181705452555networking   devices -161021181705452555
networking devices -161021181705452555mercyzyada1999
 
Networking devices
Networking devicesNetworking devices
Networking devicesfrestoadi
 
Glossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process WeighingGlossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process WeighingPower Specialties, Inc.
 
Serial Port Device Driver
Serial Port Device DriverSerial Port Device Driver
Serial Port Device DriverEmblogic
 
Wireless agro automation system
Wireless agro automation systemWireless agro automation system
Wireless agro automation systemkarthikpunuru
 
Practical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for IndustryPractical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for IndustryLiving Online
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptxusamamaqsod1
 

Similar to Project_intership (20)

Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communication
 
M010617376
M010617376M010617376
M010617376
 
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.pptUnit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
 
RS235,422,485.pdf
RS235,422,485.pdfRS235,422,485.pdf
RS235,422,485.pdf
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptx
 
Serial port in an embedded system types and uses
Serial port in an embedded system   types and usesSerial port in an embedded system   types and uses
Serial port in an embedded system types and uses
 
Wan notes
Wan notesWan notes
Wan notes
 
Computer Interfaces
Computer Interfaces Computer Interfaces
Computer Interfaces
 
Wan
WanWan
Wan
 
UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
networking devices -161021181705452555
networking   devices -161021181705452555networking   devices -161021181705452555
networking devices -161021181705452555
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Glossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process WeighingGlossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process Weighing
 
Serial1
Serial1Serial1
Serial1
 
Serial Port Device Driver
Serial Port Device DriverSerial Port Device Driver
Serial Port Device Driver
 
Wireless agro automation system
Wireless agro automation systemWireless agro automation system
Wireless agro automation system
 
Practical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for IndustryPractical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for Industry
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx
 

Project_intership

  • 1. Summer Internship 2014 Project: Data Communication through serial port. Group members (Internees): Sana Ghani. Wajiha Muzzaffar Ali. Sadia Sami. Areeba Sharif. Projectdesign: To design a chat application based on C-sharp .NET framework. It would have basic structure that would enable multiple users to chat with one another through serial port interface. Multiple computers (three) would have access to chat. Project Requirements:  RS 232C serial cable  Null modemcable  Three computers PARALLEL PORT Advantages:  Parallel Port communication is faster as 1 Byte (8 bits) can be transmitted at a time.  Parallel port transfers data with data ready and data received handshake lines thus; they go fast as the processor can deliver up to a fixed clock frequency. Disadvantages:
  • 2.  It isn’t reliable for transmitting data over long distances and if anyone of the bit has been damaged during transmission it will affect the whole data.  It has higher wiring requirements so it consumes more space and hence it is costly. COM PORT/ SERIAL PORT: Advantages:  The losses in the cable when transmitting data using serial port are less substantial.  Another proof of serial port universality is microcontrollers. Many of them have inbuilt SCI (Serial Communications Interfaces), used for communication with other devices.  The number of wires needed when transmitting data serially is less than when the transmission is parallel. Disadvantages:  Surely enough serial port has its drawbacks. The main one is that when organizing serial connection it is always necessary to convert the data into serial code and vice versa. RS232C: RS-232 stands for Recommend Standard number 232 and C is the latest revision of the standard. The serial ports on most computers use a subset of the RS-232C standard. The full RS-232C standard specifies a 25-pin "D" connector of which 22 pins are used. Applications: Today, it is still widely used in embedded computer development systems, scientific instruments, and all sorts of industrial control equipment. DCE and DTE Devices:
  • 3. DTE stands for Data Terminal Equipment, and DCE stands for Data Communications Equipment. These terms are used to indicate the pin-out for the connectors on a device and the direction of the signals on the pins. Your computer is a DTE device, while most other devices are usually DCE devices. RTS / CTS: RTS line is switched between mark and space condition by DTE devices to ensure data transmission and similar for DCE devices. While CTS make sure receiver buffer isn’t full for transmission with respect to DTE/ DCE devices. NULL Modems: If you connect two DTE devices (or two DCE devices) using a straight RS232 cable, then the transmit line on each device will be connected to the transmit line on the other device and the receive lines will likewise be connected to each other. A Null Modem cable or Null Modem adapter simply crosses the receive and transmit lines so that transmit on one end is connected to receive on the other end and vice versa. In addition to transmit and receive, DTR & DSR, as well as RTS & CTS are also crossed in a Null modem connection. RS485: It defines notonly a single device-to-device interface but also a communications bus thatcan be usedto form simple networksof multiple devices. Its configuration and specifications also extend the rangeand data rate beyond the RS-232 interface capabilities. Full-duplexor simultaneoustransmitand receive operations can be implemented with a two-pair cable. Applications: It is particularly effective in equipment used in noisy environments such as factories, process control plants, and utilities sites. RS422 RS-422 is a variation of RS-485 with similar specifications butis designed only for one driver and up to 10 receivers. Otherwise, other specifications are similar to the RS-485 interface.
  • 4. USB TO RS232 CONVERTER This converter plugsinto your computer’s USB port andprovides you with a DB-9 RSR232 connection. The cable will enumerateas a COM port with a baudrate adjustableto whatever setup you want to connect to. USB TO TTL CONVERTER This USB to TTL converter is a port-powered bi-directional USB to TTL/CMOS 5V converter, which can be used to convert any standard full-duplex USB port into a full-duplex TTL port and vice versa. The unit is powered from the USB port and it supports data auto-sensing & self- adjusting, and therefore, no baud rate setting is required. Q. Do you understand the serial mode of communication? How the PC will transfer a letter (say 'Á') to the other PC using serial port? Serial communication is forms of I/O in which the bits of a byte begin transferred appear one after the other in a timed sequence on a single wire. It has become the standard for intercomputer communication. There are two types of serial communication:  Synchronous communication  Asynchronous communication In synchronous communication the data is transmitted and received through a common clock. In Asynchronous communication we have to add start bit, stop bit and for checking we can also add parity bit. In our project we will be using Asynchronous communication. In Asynchronous communication the transmitter shifts the parallel data onto the serial line using its own clock while the receiver extracts the data using its own clock. It converts the serial data back to the parallel form after stripping off the start, stop, and parity bits. When transmitting a byte say letter ‘A’, the UART (serial port) first sends a START BIT which is a positive voltage (0), followed by the data which in this case will be the ASCII of the letter i.e. 01000001 (general 8 bits, but could be 5, 6, 7, or 8 bits) followed by one or two STOP BITs which is a negative(1) voltage. The sequence is repeated for each byte sent.
  • 5. MAX232 IC The MAX232 IC is used to convert the TTL/CMOS logic levels to RS232 logic levels during serial communication of microcontrollers with PC. The controller operates at TTL logic level (0-5V) whereas the serial communication in PC works on RS232 standards (-25 V to + 25V). This makes it difficult to establish a direct link between them to communicate with each other. The intermediate link is provided through MAX232. It is a dual driver/receiver that includes a capacitive voltage generator to supply RS232 voltage levels from a single 5V supply. Each receiver converts RS232 inputs to 5V TTL/CMOS levels. These receivers (R1 & R2) can accept ±30V inputs. The drivers (T1 & T2), also called transmitters, convert the TTL/CMOS input level into RS232 level. The transmitters take input from controller’s serial transmission pin and send the output to RS232’s receiver. The receivers, on the other hand, take input from transmission pin of RS232 serial port and give serial output to microcontroller’s receiver pin. MAX232 needs four external capacitors whose value ranges from 1µF to 22µF. References: http://www.taltech.com/datacollection/articles/serial_intro http://retired.beyondlogic.org/serial/serial.htm