Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
    • Contributions
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
    • What Is
    • News
      • EE Design News
      • DIY Reviews
      • Guest Post
      • Sponsored Content
  • Forums
    • EG Forum Archive
    • EDABoard.com
    • Electro-Tech-Online
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

Physical and Data Link Layer Protocols – Ethernet, BLE, Wi-Fi, Wi-Fi Direct and WPA: IoT Part 4

October 23, 2018 By Priya

In the previous tutorial, reference architecture for IoT was compared with OSI and TCP-IP models and various data communication protocols for different layers of IOT architecture were mentioned. In this tutorial, the physical and data link layer protocols will be discussed in details.
The physical and data link layer comprises of the IOT objects and physical networks connecting them with other objects or network. The constituent bits of the original data or information are encoded and decoded at this layer and exchanged over a wired or wireless physical link. There are many protocols and standard technologies specified by different bodies and organizations for physical and network access protocols. These protocols and technologies suits variable applications and network sites. Some of the popular physical and data link layer protocols and standards are as follow –
• Ethernet
• Bluetooth Low Energy
• Wi-Fi
• Wi-Fi Direct
• WPA
• Wireless HART
• Zigbee
• Z-wave
• RFID
• IEEE 802.11.ah
• IEEE 802.15.4e
• LoRaWAN
• DASH7
• Weightless
• HomePlug
• G.9959
• LTE-A
• DECT/ULE
• ISA 100.11a
• ANT
• NFC
• EPC Global
• EddyStone
• EnOcean
• WiMax
• NB-IOT
• EC-GSM-IOT (Extended Coverage GSM-IOT)
• RPMA
• LTE-MTC (LTE-Machine Type Communication)
• Cellular (GPRS/2G/3G/4G/5G)
• CDMA
• Thread
• INSTEON
• DigiMesh
In this tutorial, popular standards and protocols nowadays used for interconnecting computers and mobile devices are discussed. These protocols are so widely used that they are ubiquitous in urban and metropolitan connectivity. These protocols are as follow –
1) Ethernet
2) Bluetooth 4.0
3) Wi-Fi
4) Wi-Fi Direct
5) WPA/WPA2/WPA3
1) Ethernet – Ethernet is most popular wired networking technology. It is widely used for connecting computers in a Personal Area Network (PAN), Home Area Network (HAN), Local Area Network (LAN), Wide Area Network (WAN) and Metropolitan Area Network (MAN). It is based on IEEE 802.3 standard. Within an IOT system, Ethernet can be used to connect stationary or fixed IOT devices. Like, it can be used to connect sensor networks in an industry, appliance control circuits in a home automation system or IOT devices in an office automation system.
The data transfer rate in Ethernet can be up to 10 Giga Bits per Second (Gbit/s) for cat-6 cables. The data speed over Ethernet depends on the cable type and can be limited by the network administrator. There may be fiber optic, co-axial or twisted pair cables used for Ethernet networking. The Ethernet has very low latency which makes it suitable for mission critical IOT applications where devices may be co-located or located in  a long range.
2) Bluetooth Low Energy (BLE) –    Bluetooth is a wireless technology standard for exchanging data over short distances among fixed and mobile devices, creating a personal area network (PAN) with high level of security. Bluetooth Low Energy, also known as Bluetooth Smart is developed and proposed by the Bluetooth Special Interest Group. BLE is low power version of Original 2.4 GHz Bluetooth. BLE was introduced as Bluetooth 4.0 in year 2011.
BLE has been designed to transfer low volumes of data at high speed (1Mbps) where one device might be connected to several devices in a star topology. BLE has a range limited to 100 Meter so, it usually suits for Personal Area Network (PAN). The devices connected through BLE go in sleep mode when not transmitting data. When connected, BLE devices may have connection time for only few milliseconds compared to average time of 100 Milli Seconds in Classic Bluetooth. Due to short connection time and high data rate, BLE is extremely power efficient compared to any other competing protocols.
Image showing Architecture of Bluetooth Low Energy (BLE) Protocol
Fig. 1: Image showing Architecture of Bluetooth Low Energy (BLE) Protocol
BLE is designed for IOT devices that could be powered for few years on a small battery. Both physical and data link layers of OSI model are implemented on Bluetooth Low Energy. The BLE protocol stack has two parts – controller and host. In the architecture, the physical and link layer are implemented in the controller part. The controller is typically a SOC (System on Chip) with a radio on Bluetooth device. The rest of the things like GAP, GATT services, security manager are included in the host part. At a minimum, the GAP (Generic Access Profile) service in Bluetooth enables the BLE device to observe and connect to the other BLE devices (only when required). The GATT (Generic Attribute Profile) service in Bluetooth LE enables other devices to access the services and characteristics that are present in that Bluetooth device.
The BLE protocol stack is similar to the stack used for classic Bluetooth technology but BLE is not compatible with the classic Bluetooth. The major difference is that BLE does not support data streaming. Instead, it only supports quick transfer of small packets of data (packet size is small) with a data rate of 1 Mbps.
There are two types of devices in BLE – master and slave. The master acts as a central device that can connect to various slaves. Considering an IOT scenario, a phone or PC may serve as the master device and smart lock with BLE embedded acts as slave device. The master device controls the slave based on the commands given by it. In such cases, Slave must be very power efficient.
Whereas, in classic Bluetooth, the connection is on all the time even if no data transfer is going on. Also, Classic Bluetooth supports 79 data channels (with 1 MHz channel bandwidth) whereas BLE supports 40 channels with 2 MHz channel bandwidth (double of classic Bluetooth).
The BLE protocol stack also supports IP based communication.
Table Listing Frequency and Range of BLE Protocol
                                                       Fig. 2: Table Listing Frequency and Range of BLE Protocol
3) Wi-Fi – Proposed by Wi-Fi Alliance, Wireless Fidelity (Wi-Fi) is a standard for Wireless Local Area Networks (WLAN). It is based on IEEE 802.11 standard with various version numbers indicated as a, b, c, g, n etc where a to n are latest versions. The Wi-Fi uses 2.4, 3.6, 5 and 60 GHz radio frequency bands and can have data rates from 2 Mbps (for Legacy 802.11) to 1.73 Gbps (for 802.11ac wave 2). The quite common 802.11 n  has data speed up to 450 Mbps.
Through Wi-Fi, a device connects to a router configured as hotspot or network access point and other Wi-Fi enabled devices connect to the device through the access point. The major drawbacks with Wi-Fi networking are latency and poor security. It is easier to hack a Wi-Fi hotspot and gain access to physical link medium. However, a Wi-Fi network can be secured using WPA types and beacon packets management.
The Wi-Fi also allows ad-hoc communication where Wi-Fi enabled devices can directly communicate without access point or router. For this, the devices need to share internet connection using ad hoc and configure themselves as hotspot or virtual access points. Wi-Fi is widely used for networking computers, laptops and mobile devices. In IOT systems, it can be used for setting up Personal Area Networks (PAN), Local Area Network (LAN) and Wide Area Network (WAN).
The range of any Wi-Fi hotspot can be up to 100 Meter. The coverage area of a Wi-Fi network can be extended using Multi-hop Routing. In Multi-hop Routing, one node (hotspot) can use another node (hotspot) as relay thereby increasing the total coverage area of the network.
Table Listing Frequency and Range of Wi-Fi
                Fig. 3: Table Listing Frequency and Range of Wi-Fi
4) Wi-Fi Direct – Wi-Fi direct is a pear to pear version of Wi-Fi standard. It allows two devices to setup communication without any router or access point. Wi-Fi Direct is a single hop standard so, its range cannot be extended. Nowadays, Wi-Fi Direct is widely used in Laptops, Mobile devices, Camera, Televisions and Game Consoles. It is the Wi-Fi Direct in smart phones which allow them to configure as internet hotspot and share internet connection. The Wi-Fi Direct has a range limited to 100 Meter.
5) WPA/WPA2/WPA3 – Wireless Protected Access (WPA) is a security protocol for Wi-Fi standard. It was proposed considering vulnerability of Wi-Fi networks. It is based on IEEE 802.11i standard and uses 64-bit or 128 bit encryption key to secure data. WPA standard was followed by WPA2 and WPA2 will be replaced by WPA3 which will have 192-bit encryption to secure data over Wi-Fi network. While Wi-Fi Direct allowed using Wi-Fi standard for Personal Area Network (PAN) applications, WPA standards have made Wi-Fi networks secure enough to be used for WLAN based IOT applications.
These standards and protocols are most ubiquitous among all others and are widely used for connecting computers, consumer appliances and mobile devices together. In the next tutorial, the discussion on physical and data link layer protocols will be continued.

Related Articles Read More >

VHDL Tutorial – 19: Designing a 4-bit binary counter using VHDL
VHDL Tutorial 18: Design a T flip-flop (with enable and an active high reset input) using VHDL
Introduction to DE- Representing everything into numbers – DE Part 1
Arithmetic Circuits – DE Part 10

Featured Tutorials

  • Capacitive Touch Controlled Robot using X-Bee Module
  • Keypad Controlled RF based Wireless Robot
  • A Bluetooth-controlled datalogger robot
  • Keypad Controlled And Industrial Gas Monitoring Wireless Robot
  • Joystick Controlled Wireless Robot
  • CAN Protocol – Understanding the Controller Area Network Protocol

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

Recent Articles

  • How to build an IR remote-operated RGB LED strip using Arduino
  • Maxim launches automotive-grade secure authenticator for enhanced vehicle safety
  • Samsung offers compact, WiFi-enabled VRF air-conditioning systems
  • Nexperia launches industry’s first 80-V RET family for high-voltage circuits
  • The Amazing World of Robotics and its Promising Future
...

RSS EDABOARD.com Discussions

  • Rippe current rating of aluminium electrolytic capacitor is very low.
  • Start-up resistor for offline flyback suffers overvoltage..but is it OK?
  • Why disabled autoCsEnable in SPI doesn't allow CS gpio control in EFR32FG14
  • Spice correlation issue
  • Mic preamp and Tx on MAX260x

RSS Electro-Tech-Online.com Discussions

  • new to Ardunio but trying to compile
  • Any Ideas As to why circuit keeps breaking
  • 12v zvs induction heater
  • First time using MOSFETs project
  • Engine Temperature using an AD590 on the Oil Pressure Wire to the engine
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
    • Contributions
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
    • What Is
    • News
      • EE Design News
      • DIY Reviews
      • Guest Post
      • Sponsored Content
  • Forums
    • EG Forum Archive
    • EDABoard.com
    • Electro-Tech-Online
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering