Documente Academic
Documente Profesional
Documente Cultură
Protocols
www.pantechsolutions.net
Outline Communication
Protocols
RS232/422/485
Bluetooth, Zigbee
RFid
Ethernet
Parallel Bus.. Communication
Protocols
Advantages Disadvantages
Asynchronous Synchronous
• 1-wire • 2-wire(I2C
• RS232 • 4-wire(SPI,
• RS422/485 Microwire)
• Ethernet
1-Wire Communication
Protocols
Usually the network is built using a wire pair where one wire carries the signal and power and
the other wire is ground. The system is sensitive to the right timing to operate well.
1-wire Communication
Protocols
Advantages
Disadvantages
• Slow speed
• 1-wire slave devices typically has to come from one source: Dallas
Semiconductor
RS-232 Communication
Protocols
Advantages
• Popular interface with many examples
• Relatively long distance, 50 feet maximum for low baud rates although
longer distances work in practice, with low baud rates and error
correction
• Immune to noise due to +/-5 Volts or higher voltage levels for logic “0”
and “1”
RS-232 Communication
Protocols
Disadvantages
• Low speed for long distance, 115200 baud can be achieved with small
microcontrollers using short distances
UART n
Interface
RxDn
TxD1
UART 3 on CTS
LPC2300/2400 DTR
UART 1 RxD1
has IrDA mode Modem
DCD
Interface Interface
RI
RTS signals
DTR
Advantages Disadvantages
• Very long distance, thousands • More suitable for system to
of feet system communications, not so
• Widely used in industrial much for chip to chip or chip to
automation sensor
• Higher speeds beyond 115200
baud • Requires transceiver chips and
twisted pair cable with
terminating resistors which add
to system cost.
Ethernet Communication
Protocols
Advantages
• Very high speed ( 10Mbit to 100Mbit/s )
• Very long distance, hundreds of feet can be achieved, more with hubs and
switches, Immune to noise
Disadvantages
• Cost
• More suitable for system to system comm.,, not so much for chip to chip/sensor
• Requires Ethernet chipset, transformer, jack, special cabling that add to system
cost.
• Complicated to implement
• High code footprint
Ethernet – 10 Mbit Networking Communication
Protocols
SPI Communication
Protocols
Advantages Disadvantages
MISO
MOSI
SPI
Interface
SPICLK
SS
Advantages Disadvantages
SDA
I2C
Interface1
SCL
400Kbits/sec
Communication
Protocols