Lecture 7_ Technical Basic of Comm_ 1
Lecture 7_ Technical Basic of Comm_ 1
1 2 3
1
Basic Concepts Basic Concepts Baud Rate
The elements implemented during a communication • Information is stimuli that has meaning in some context for its The duration of a bit in RS-232 is determined by the baud rate.
receiver Define: The baud rate of transmission hardware is the number of changes in the
signal per second that the hardware generates.
Communication
coupler
Communication • Data is information such as facts and numbers used to analyze
coupler
something or make decisions. Computer data is information in a Example: Typical baud rates: 9.6 Kbaud, 14.4 Kbaud and 28.8 Kbaud
form that can be processed by a computer
Informations For RS-232 (it is a very simple scheme), the baud rate is exactly equal to the
• Signal is the evolution of a physical quantity that contains no number of bits per second.
Program Medium Program
information/data parameters, that can be transmitted
• Analog Example: 28.8 Kbaud = 28.8 kbits per second
The duration of a bit = 1/(baud rate)
Informations • Digital To make RS-232 more general, manufacturers design each piece of hardware to
Reception
Reception • Data communications are the exchange of data between two operate at a variety of baud rates.
Transmitter/ Receiver Transmitter/ Receiver devices via some form of transmission medium such as a wire cable • Sender and receiver must agree on the baud rate
or wireless. • Receiver samples the signal to verify agreement
The information is physical elements (light, sound, image, voltage etc ...) to which • Disagreement results in a framing error
a meaning has been attributed.
4 5 6
2
Basic Concepts Basic Concepts Basic Concepts
Transmissions techniques Types of transmission
Types of transmission
The information can be transmitted in analog form: Simplex transmission: mono-directional
continuous evolution of value
◼ Parallel transmission :
The bits of a byte are transmitted simultaneously.
Half duplex transmission: alternate bi-directional
Used for short distances, each channel tends to disturb its neighbors
Or in digital form: signal quality deteriorates rapidly.
discontinuous change in value (sampling)
7 8 9
3
Parallel Transmission Basic Concepts Serial Transmission
Parallel transmission allows transfers of multiple data bits at the same time over Serial transmission sends one bit at a time.
separate media.
• It is used with a wired medium Most communication systems use serial mode, because:
• The signals on all wires are synchronized so that a bit travels across each of Types of transmission • serial networks can be extended over long distances at less cost
the wires at precisely the same time
• using only one physical wire means that there is never a timing problem caused
by one wire being slightly longer than another
The figure omits two important details:
1. a parallel interface usually contains other wires that allow the sender and receiver ◼ Serial transmission:
to coordinate
2. to make installation and troubleshooting easy, the wires are placed in a single The connection generally requires 3 wires: transmission,
physical cable
reception and mass.
A parallel mode of transmission
has two chief advantages:
The bits of one byte are transmitted one after the other.
(1) High speed- it can send
N bits at the same time.
(2) It can match the speed
Sender and receiver must contain a hardware that converts data from the parallel
of the underlying hardware.
form used in the device to the serial form used on the wire
10 11 12
4
Transmission Order: Bits and Bytes Transmission Order: Bits and Bytes Basic Concepts
Additionally, the order the bytes are sent must be determined.
In serial mode, when sending bits, which bit should be sent across the • Data in a computer is divided into bytes, and each byte is further divided into bits
Types of serial transmission
medium first? (typically 8 bits per byte)
Consider an integer: Should a sender transmit Thus, it is possible to choose a byte order and a bit order independently ◼ Synchronous serial transmission :
• the Most Significant Bit (MSB) first? For example, Ethernet specifies that data is sent byte big-endian and bit little-endian The information is transmitted continuously.
• the Least Significant Bit (LSB) first? A synchronization signal is transmitted in parallel to the data signals.
Terminology:
• little-endian describes a system that sends the LSB first. ◼ Asynchronous serial transmission :
• big-endian describes a system that sends the MSB first . The information can be transmitted irregularly, however the time
interval between 2 bits is fixed.
Either form can be used, but the sender and receiver must agree.
Synchronization bits (START, STOP) frame the data information.
13 14 15
5
Example: RS-232 Asynchronous Character Transmission Basic Concepts Needs and positioning of the main networks
For RS-232 to work asynchronously:
• Sender and receiver must agree on The needs of industrial communication
• Number of bits per character
• Duration of each bit
• Receiver Industrial communication networks 1 Mbits 1
Level 3
minute Information system
• Does not know when a character will arrive Start bit Business
• May wait forever • Same as 0 1 kbits
• To ensure meaningful exchange send: • Not part of data Production
Stop bit
For reasons of cost and robustness, most industrial communication 1s
Level 2
management
• Start bit before each character NUMBER OF Workshop
• Same as 1 supervision
• One or more stop bits after each character networks use: INFORMATION
• Follows data TO TRANSFER SPEED
NECESSARY
asynchronous half-duplex serial digital transmission. Level 1
REACTION The control command
Machinery
Level 0
1 bit 1 ms Actuator The components
Sensors
Voltage on a wire as a character is transmitted using RS-232.
16 17 18
6
Needs and positioning of the main networks Presentation Outline
Positioning of the main networks and buses
Computer Networks
(Data Bus)
❑ Introduction
process
❑ LAN topologies
Piloting
Network Topologies
TCP/IP
Fieldbus
CANopen FIPWAY FTP - HTTP ❑ WAN topologies
FIPIO Ethernet
(Device Bus)
Modbus Plus TCP/IP
Profibus-DP Modbus
Bus actuator DeviceNet
Machine
sensors Interbus
control
(Sensor Bus)
Modbus
AS-i
Simple Advanced
19 20 21
7
Introduction Introduction Introduction
22 23 24
8
MESH Topology STAR Topology BUS Topology
25 26 27
9
RING Topology Tree Topology A hybrid topology: A star backbone with three bus networks
• Each device is dedicated point-to-point connection only with the two devices on either
side of it • Advantages:
• A signal is passed along the ring in the direction, from device to device, until it • Point-to-point wiring for individual segments.
reaches its destination
• Each device in the ring incorporates a repeater
• Supported by several hardware and software venders.
• Disadvantages:
• Advantages • Overall length of each segment is limited by the type of cabling used.
• Relatively easy to install and reconfigure • If the backbone line breaks, the entire segment goes down.
• Fault isolation is simplified • More difficult to configure and wire than other topologies.
• Disadvantage
• Unidirectional traffic
6/5/2023 Buidangthanh.3i@gmail.com 28 6/5/2023 Buidangthanh.3i@gmail.com 29 6/5/2023 Buidangthanh.3i@gmail.com 30
28 29 30
10
Categories of Networks WANs: a switched WAN and a point-to-point WAN Interconnection of Networks: Internet
A heterogeneous network made of four WANs and two LANs
1. Local Area Network (LAN)
2. Wireless Local Area Network (WLAN)
3. Metropolitan Area Network (MAN)
4. Wide Area Network (WAN)
An isolated LAN connecting 12 computers to a hub in a closet
31 32 33
11
Thank you very much for
your attention!
6/5/2023 Buidangthanh.3i@gmail.com 34
34
12