Connectivity Technology in Instrumentation System
Open in the Padhaiko app5.1 Wired and Wireless Communication System
Modern instrumentation systems rely on communication links to transport sensor measurements, actuator commands, and diagnostic status between field transducers, microcontrollers, data loggers, and supervisory computers. Based on the transmission medium, communication systems are classified into wired (guided) and wireless (unguided) systems.
Wired (Guided) vs. Wireless (Unguided) Media
- Wired Communication System (Guided Media): Signals propagate along a physical conductor or dielectric waveguide (twisted-pair copper, coaxial cable, or optical fiber) in either point-to-point (dedicated link between two nodes) or multipoint (shared bus across multiple nodes) configurations. Long-distance wired installations require extensive cabling, repeaters, and switching ports.
- Wireless Communication System (Unguided Media): Information is transmitted between two or more points without physical conductors by radiating electromagnetic waves—radio waves, microwaves, or infrared light—through free space or the atmosphere.
Wired (Guided) Transmission Media
1. Twisted-Pair Cable
A twisted-pair cable consists of two insulated copper conductors twisted around each other in a helix (pages="notes"). One conductor carries the data signal while the other serves as the signal return or ground reference.
- Why wires are twisted: Current flowing through a wire generates a small circular magnetic field around it. Twisting the two conductors ensures that external electromagnetic interference (EMI) induces nearly equal noise voltages in both wires in opposite phases over adjacent twists, canceling out induced common-mode noise.
- Capabilities and applications: Handles data rates up to over short to medium runs; widely used in telephone voice/data loops, Private Automatic Branch Exchanges (PABX), Digital Subscriber Lines (DSL), and Ethernet Local Area Networks (LANs).
Twisted-pair cabling is divided into two types:
- Unshielded Twisted Pair (UTP): The least expensive and most widely deployed copper medium, with a characteristic impedance of . The EIA/TIA-568 standard grades UTP cables by data capacity:
- Category 3 (Cat 3): Up to
- Category 4 (Cat 4): Up to
- Category 5 (Cat 5): Up to
- Shielded Twisted Pair (STP): Surrounds the twisted pairs with a metallic foil or braided shield that blocks external EMI from entering the cable and prevents internal signals from radiating outward (commonly used in IBM Token Ring and noisy industrial instrumentation environments).
| Aspect | Shielded Twisted Pair (STP) | Unshielded Twisted Pair (UTP) |
|---|---|---|
| Metallic Shielding | Present (foil/braid shield; requires ground drain wire) | Absent (relies solely on wire twisting) |
| Noise Immunity | High immunity to external EMI and crosstalk | More susceptible to electromagnetic noise |
| Data Rate Capability | Faster and more stable in electrically noisy plants | Slower over noisy industrial paths (up to for Cat 5) |
| Cost & Maintenance | Costlier cable and connectors; higher maintenance cost | Cheaper cable; low installation and maintenance cost |
2. Coaxial Cable
A coaxial cable consists of a central solid or stranded copper core surrounded concentrically by a dielectric insulator, an outer metallic foil/braided shield, and a protective plastic jacket (pages="notes"). Maintaining a fixed concentric spacing between the center conductor and the outer shield gives the cable a well-controlled characteristic impedance and shields high-frequency signals from external noise.
+-------------------------------------------------------------------+
| Outer Plastic Jacket (mechanical & environmental protection) |
| +-----------------------------------------------------------+ |
| | Braided / Foil Metallic Shield (blocks EMI, ground return)| |
| | +---------------------------------------------------+ | |
| | | Dielectric Insulator (maintains constant spacing) | | |
| | | +-------------------------------------------+ | | |
| | | | Inner Copper Core (high-frequency signal) | | | |
| | | +-------------------------------------------+ | | |
| | +---------------------------------------------------+ | |
| +-----------------------------------------------------------+ |
+-------------------------------------------------------------------+- Bandwidth and Error Performance: Supports high cable bandwidth (up to ) with low noise and a low bit error rate (BER).
- Standard Termination Impedances:
- : Digital Ethernet networks (
10Base2Thinnet and10Base5Thicknet) and RF test instruments. - : Broadband LANs and Cable Television (CATV) distribution.
- : Specialized data networks (such as IBM cluster controllers).
- : Digital Ethernet networks (
- Merits and Demerits: Cheaper than optical fiber, supports both analog and digital transmission at higher frequencies than twisted pair, and is durable over short to medium runs. However, it is bulky due to multiple metallic/plastic layers and suffers from high attenuation and repeater cost over long distances.
3. Optical Fiber
An optical fiber is a thin cylindrical dielectric waveguide (glass or plastic) that transmits information as pulses of light (pages="notes"). A typical multimode telecommunications strand is designated fiber ( light-conducting core inside a cladding).
- Physical Layers of an Optical Fiber:
- Core: Thin inner glass/plastic strand ( to diameter) with refractive index through which light propagates.
- Cladding: Concentric glass or plastic coating with a slightly lower refractive index .
- Core–Cladding Interface: Acts as a lossless mirror that confines light rays within the core.
- Outer Jacket (Buffer Coating): Protects the fiber against moisture, abrasion, and crushing.
Total Internal Reflection (TIR) in Optical Fiber
Light propagates down an optical fiber by Total Internal Reflection (TIR) when two conditions are simultaneously satisfied:
- The light ray travels inside the optically denser medium (core, ) toward the less dense medium (cladding, ).
- The angle of incidence at the core–cladding boundary is strictly greater than the critical angle :
| Fiber Type | Core / Cladding Size | Light Source | Propagation & Index Profile | Applications & Range |
|---|---|---|---|---|
| Single-Mode Fiber (SMF) | Narrow core (, comparable to ) / cladding | Laser diode (infrared) | Single axial path; zero modal dispersion | Long-distance, ultra-high-speed telecom and CATV backbones |
| Multi-Mode Step-Index | Larger core () / cladding | LED (infrared) | Uniform in core; light bounces as meridional rays; high modal dispersion | Short-distance computer LANs; lower fabrication cost |
| Multi-Mode Graded-Index | core / cladding | LED or laser | Core index decreases gradually from center to interface; skew/helical rays reduce dispersion | Intermediate-distance LANs and campus instrumentation links |
- Advantages of Optical Fiber: Enormous bandwidth and carrying capacity, very low transmission loss, complete immunity to electromagnetic interference (EMI), complete electrical isolation between high-voltage plant equipment and control rooms, non-flammable (no sparks), lightweight and thin, and high signal security against tapping.
- Disadvantages of Optical Fiber: High equipment and manufacturing cost, difficult splicing, and need for skilled technicians and specialized optical test instruments for installation and repair.
Wireless (Unguided) Communication Systems
1. Radio Wave Communication
Radio waves occupy the frequency spectrum from to , with wave speed , wavelength , and frequency related by (pages="notes"). They have the longest wavelengths in the electromagnetic spectrum (from millimeters to kilometers) and are widely used in broadcasting, cellular networks, radar, navigation, air-traffic control, and wireless telemetry.
| Propagation Mode | Frequency Range | Typical Range | Physical Mechanism |
|---|---|---|---|
| Ground Wave Propagation | Waves travel along the contour of the Earth's surface between transmitting and receiving antennas. | ||
| Sky Wave Propagation | Long-haul / continental | Waves radiated upward by the transmitting antenna are refracted/reflected back to Earth by the ionized ionosphere layer. | |
| Space Wave (Line-of-Sight) | Around (VHF/UHF) | Direct wave propagation from transmitter to receiver without atmospheric reflection or ground following. | |
| Tropospheric Scatter | Over-the-horizon links | Forward scattering of radio waves off irregularities in the Earth's troposphere to reach distant stations. |
2. Microwave Communication System
Microwave communication uses high-frequency electromagnetic waves from to radiated as focused, unidirectional beams between aligned parabolic antennas (pages="notes"). Because microwaves travel in straight lines and cannot penetrate hills, buildings, or dense foliage, they require a clear Line of Sight (LOS) and are susceptible to atmospheric rain fading, snow scattering, and solar proton events.
[Baseband Signal] ---> [Modulate 70/140 MHz IF Carrier] ---> [Up-Convert to Microwave Band]
|
v
[Recover Baseband] <-- [Down-Convert to 70/140 MHz IF] <--- [Parabolic Tx -> Repeaters -> Rx]Microwave links are deployed in two configurations (pages="notes"):
- Terrestrial Microwave Transmission: Links fixed ground towers across rivers or rugged terrain where laying fiber is impractical. Active or passive repeaters are placed every to maintain LOS and boost signal power. Terrestrial links carry thousands of voice channels at data rates up to , though installation cost is high and EMI/weather fading can degrade links.
- Satellite Microwave Transmission: Uses a spaceborne microwave relay station equipped with multiple transponders. Each transponder listens to an incoming uplink frequency from a ground station, amplifies the signal, and rebroadcasts it on a different downlink frequency to prevent interference between transmitted and received beams.
| Orbit Type | Altitude Above Earth | Visibility / Orbital Period | Key Characteristics |
|---|---|---|---|
| Low Earth Orbit (LEO) | per pass | Closest to Earth; low propagation delay; moves relative to ground, requiring a constellation of satellites. | |
| Medium Earth Orbit (MEO) | per pass | Larger footprint than LEO; used for navigation (GPS) and regional data relay. | |
| Geostationary Orbit (GEO) | (equatorial) | Stationary ( period) | Orbital angular velocity matches Earth's rotation; wide coverage area, high launch cost, and noticeable propagation delay. |
3. Infrared (IR) Communication System
Infrared communication uses high-frequency light waves in the to ( nominal optical bandwidth) band to transmit digital data over short, unobstructed paths (typically up to indoors) (pages="notes"). Intense ambient sunlight or incandescent light causes EMI, and IR waves cannot penetrate opaque walls.
- Point-to-Point Infrared: Requires strict line-of-sight alignment between transmitter and receiver; supports data rates from to (up to with collimated optics).
- Broadcast (Diffuse) Infrared: Devices do not require strict alignment and communicate via reflections off walls/ceilings; simple to install, but bandwidth capacity is limited to less than .
- Applications: TV/audio remote controls, short-range wireless keyboards/mice/printers, medical telemetry, and electrically isolated industrial sensors.
5.2 Wired Connectivity: UART, I2C, SPI, CAN
Short-range board-level and instrument-level wired interconnects link sensors, ADCs, displays, and Electronic Control Units (ECUs) to microcontrollers using four standard serial protocols: UART, I2C, SPI, and CAN.
1. UART (Universal Asynchronous Receiver-Transmitter)
UART Protocol
UART is an asynchronous, full-duplex, point-to-point serial communication hardware interface that translates parallel bytes from a processor's data bus into a serial bit stream on a transmit pin (TX) and reconstructs parallel bytes from a receive pin (RX) without a shared clock signal.
Because there is no shared clock wire, both communicating UARTs must be configured ahead of time to the same baud rate (bits per second, commonly ) and frame format (pages="notes").
+-----------------+ +-----------------+
| UART Device 1 | TX ------------> RX | UART Device 2 |
| (Microcontroller)| RX <------------ TX | (PC / Sensor) |
| | GND ------------- GND| |
+-----------------+ +-----------------+
Idle (HIGH) Start Data Byte (5 to 8 bits, LSB first) Parity Stop (1-2 bits)
------------+-------+-----+-----+-----+-----+-----+-----+-----+--------+------------------+
| 0 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | P | 1 (HIGH) |
+-------+-----+-----+-----+-----+-----+-----+-----+----+---+- Five-Step UART Transmission Sequence (
pages="notes"):- The transmitting UART reads a byte in parallel from the CPU data bus.
- The transmitting UART frames the byte by prepending a Start bit (logic LOW) and appending an optional Parity bit and Stop bit(s) (logic HIGH).
- The complete packet is shifted out serially from start bit to stop bit while the receiving UART samples the
RXline at the preconfigured baud rate. - The receiving UART strips the start, parity, and stop bits from the frame.
- The receiving UART converts the serial data payload back into parallel form and places it onto the receiving device's data bus.
- Application-Layer UART Frame Protocol (
pages="notes"): For secure multi-byte messaging, instruments wrap raw UART bytes into a structured frame consisting of:
- Pros and Cons: Uses only signal wires for full-duplex communication, requires no clock signal, and includes parity error detection; however, it is limited to devices (point-to-point), has start/stop framing overhead, and has lower speed than synchronous buses.
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
Serial.begin(9600); // USB-to-PC UART at 9600 bps
Serial1.begin(9600); // Hardware UART1 at 9600 bps
}
void loop() {
int ch = Serial.read();
if (ch == '1') {
Serial1.println('1');
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("LEDS ON");
} else if (ch == '0') {
Serial1.println('0');
digitalWrite(LED_BUILTIN, LOW);
Serial.print("LEDS OFF");
}
}2. I2C (Inter-Integrated Circuit)
I2C Protocol
I2C is a synchronous, half-duplex, multi-master / multi-slave two-wire serial bus that connects multiple peripheral ICs to one or more controllers using a bidirectional SDA (Serial Data) line and a SCL (Serial Clock) line.
- Signal and Timing Rules (
pages="notes"):- Each bit on
SDAis synchronized to a clock pulse generated by the master onSCL. - Data validity rule: The
SDAline must remain stable whileSCLis HIGH; data bits may change only whenSCLis LOW. - Start Condition ():
SDAtransitions from HIGH to LOW whileSCLis HIGH. - Address Packet (): The master transmits an -bit header (-bit slave address + -bit Read/Write indicator) on
SDA, and the addressed slave pullsSDALOW on the clock pulse as an ACK (Acknowledge) (or leaves it HIGH for NACK). - Data Packet (): Every -bit data byte is followed by a ACK/NACK bit, and the transaction ends with a Stop Condition (
SDAtransitions LOW to HIGH whileSCLis HIGH).
- Each bit on
+--------+ SDA (Serial Data) +---------+ +---------+
| Master | <=================================> | Slave 1 | ... | Slave N |
| MCU | =======> SCL (Serial Clock) ======> | (BMP280)| | (EEPROM)|
+--------+ +---------+ +---------+
Frame: [Start (1b)] -> [Slave Address + R/W (8b)] -> [ACK (1b)] -> [Data (8b)] -> [ACK (1b)] -> [Stop]- Advantages and Disadvantages: Requires only wires regardless of the number of connected slaves, supports multi-master operation, and includes built-in hardware ACK/NACK verification. However, it operates in half-duplex, is slower than SPI, and is restricted to short on-board distances due to bus capacitance.
#include <Wire.h>
#include <Adafruit_BMP280.h>
Adafruit_BMP280 bmp;
void setup() {
Serial.begin(9600);
if (!bmp.begin()) {
Serial.println("Sensor not found");
while (1) {}
}
}
void loop() {
float temperature = bmp.readTemperature();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" C");
delay(2000);
}3. SPI (Serial Peripheral Interface)
SPI Protocol
SPI is a high-speed, synchronous, full-duplex, master–slave 4-wire serial communication interface used to connect microcontrollers to fast peripherals such as ADCs, DACs, weather-station sensors, SD cards, and displays.
- The Four SPI Signals (
pages="notes"):- SCLK (Serial Clock): Clock pulses generated by the master to synchronize bit transfers.
- MOSI (Master Out Slave In): Serial data line carrying bits from the master to the selected slave.
- MISO (Master In Slave Out): Serial data line carrying bits from the selected slave back to the master.
- CS / SS (Chip Select / Slave Select): Active-low control line driven by the master to enable a specific slave device.
+---------------+ +---------------+
| | ------- SCLK ----------> | |
| SPI Master | ------- MOSI ----------> | SPI Slave |
| (MCU) | <------ MISO ----------- | (Sensor / ADC)|
| | ------- CS/SS (LOW) ---> | |
+---------------+ +---------------+- Stepwise SPI Operation (
pages="notes"):- Initialization: Master configures SCLK frequency, clock polarity/phase, bit order, and CS pins.
- Chip Select: Master pulls the target slave's
CS(SS) line LOW. - Clock Generation: Master drives clock pulses on
SCLK. - Simultaneous Data Exchange: On each clock cycle, the master shifts a bit out on
MOSIwhile simultaneously shifting a bit in from the slave onMISO(true full-duplex shift-register exchange). - End of Transaction: Master deasserts
CS(pulls HIGH) to deselect the slave.
- Multi-Slave Configurations: A master can address multiple slaves either via independent Chip Select lines (
CS1,CS2, , sharingSCLK,MOSI, andMISO) or via a daisy-chain configuration whereMOSIfeeds into the first slave and each slave'sMISOcascades into the next slave'sMOSIunder a single sharedCS.
4. CAN (Controller Area Network)
Controller Area Network (CAN Bus)
Controller Area Network (CAN) is a rugged, multi-master, message-based serial bus designed for vehicles and industrial machinery so that distributed Electronic Control Units (ECUs)—such as engine management, anti-lock braking (ABS), and industrial smart transmitters—can communicate directly with one another without a central host computer.
Key engineering principles of the CAN bus (pages="added"):
- Differential Two-Wire Signaling: Uses a twisted pair (
CAN_HandCAN_L) terminated at both ends with resistors. A logic (dominant bit) drives a differential voltage (), whereas a logic (recessive bit) leaves both lines biased at ( differential), providing exceptional immunity to common-mode electrical noise. - Message-Based Non-Destructive Bitwise Arbitration: Nodes are not assigned station addresses; instead, every frame begins with an 11-bit (Standard CAN 2.0A) or 29-bit (Extended CAN 2.0B) Message Identifier that defines both message content and priority. If two ECUs transmit simultaneously, a node sending a recessive bit () that monitors a dominant bit () on the bus immediately stops transmitting without corrupting the higher-priority (lower-ID) message.
- High Fault Confinement: Every CAN frame carries up to of data protected by a -bit CRC, bit-stuffing checks, frame checks, and ACK verification; faulty nodes automatically isolate themselves ("bus-off" state) so the rest of the network keeps operating.
| Parameter | UART | I2C | SPI | CAN Bus |
|---|---|---|---|---|
| Signal Wires | (TX, RX) | (SDA, SCL) | (SCLK, MOSI, MISO, CS) | differential (CAN_H, CAN_L) |
| Synchronization | Asynchronous (no clock line) | Synchronous (SCL clock) | Synchronous (SCLK clock) | Asynchronous bit-synchronized frames |
| Duplex Mode | Full-duplex | Half-duplex | Full-duplex | Half-duplex (shared bus) |
| Network Topology | Point-to-point () | Multi-master, multi-slave | Master, multiple slaves | Multi-master peer-to-peer (no host) |
| Device Addressing | None (dedicated pair) | -bit or -bit Slave Address | Hardware CS wire per slave | -bit / -bit Message Identifier |
| Typical Speed | / (up to ) | Up to (Classical CAN at ) | ||
| Error Detection | Optional -bit parity | -bit ACK/NACK | None in hardware (application-defined) | -bit CRC, ACK slot, bit monitoring |
5.3 Wireless Sensor Network and Its Technology
Wireless Sensor Network (WSN)
A Wireless Sensor Network (WSN) is a distributed network of spatially dispersed, autonomous sensor nodes that cooperatively monitor physical or environmental conditions (temperature, pressure, vibration, humidity, pollutants) and forward the measurements wirelessly through a master/sink node to a central server or cloud platform.
+-------------------------------------------------------------------+
| WSN Sensor Node |
| [Sensors] --> [ADC] --> [Microcontroller / Processor] |
| | |
| [Battery / Solar Power] [RF Transceiver] ---> Antenna |
+-------------------------------------------------------------------+
|
(Slave Nodes) v
[Node 1] [Node 2] ---> [Master / Sink Node] ---> [Internet / Cellular] ---> [Remote Server & User]WSN Communication Protocol Stack
A WSN communication architecture consists of five horizontal protocol layers (pages="notes"):
- Physical Layer: Lowest layer; handles carrier frequency generation, signal modulation/demodulation, and bit transmission over the wireless channel between sensor nodes.
- Data Link Layer: Performs Medium Access Control (MAC), frame detection, multiplexing/demultiplexing of data streams, and link-level error control.
- Network Layer: Responsible for multi-hop packet routing from source sensor nodes to the master/sink node with minimum energy expenditure.
- Transport Layer: Provides end-to-end reliability and congestion control when the WSN connects to external IP networks.
- Application Layer: Manages sensor query traffic, data aggregation, and user/software interfaces.
Domains of WSN Implementation
Depending on the operating environment and payload, WSNs are organized into four major implementation domains (pages="notes"):
| WSN Domain | Operating Medium & Characteristics | Typical Applications |
|---|---|---|
| 1. Wireless Multimedia Sensor Networks (WMSN) | Retrieves video, audio, and still images alongside scalar readings; coverage is bounded by camera Field of View (FOV); requires high network bandwidth. | Security surveillance, automated road-traffic monitoring. |
| 2. Underwater Sensor Networks (UWSN) | Deployed in oceans/rivers; because water strongly attenuates radio waves, communication relies on acoustic waves (low bandwidth, long propagation delay). | Oceanographic monitoring, underwater seismic/pipeline sensing. |
| 3. Wireless Underground Sensor Networks (WUSN) | Sensor nodes are buried completely underground; signals suffer high attenuation from soil moisture, rocks, and minerals. | Underground coal/mineral mines, buried plumbing and soil-moisture monitoring. |
| 4. Wireless Mobile Sensor Networks (MSN) | Sensor nodes move continuously, requiring low power and rapid dynamic network joining/leaving. | Wearable health monitors, vehicular ad-hoc networks, smartphone sensing. |
- Advantages of WSN: Low deployment cost, no field wiring, energy-efficient sleep scheduling, and real-time remote monitoring in hazardous or inaccessible locations.
- Challenges of WSN: Strictly limited battery energy, constrained on-node CPU and memory, hardware heterogeneity, wireless interference, security vulnerabilities, scalability across thousands of nodes, and harsh environmental reliability.
5.4 RF Modem, Bluetooth, Wi-Fi, NFC, Zigbee and LoRa
1. RF Modem
A Modem (Modulator–Demodulator) converts digital data (s and s) from a computer or PLC into modulated analog carrier signals for transmission over an analog or radio-frequency (RF) channel ( to ), and demodulates incoming analog waveforms back into digital bits (pages="notes").
- Step-by-Step Operation: Digital bit generation Modulation onto an analog/RF carrier wave Transmission across the communication medium Demodulation at the receiving modem Digital data delivery to the receiving computer.
- Characteristics, Pros, and Cons: Connects local instrumentation LANs/PLCs to remote supervisory centers (using RJ11 for phone lines and RJ45 for Ethernet interfaces) and performs simultaneous modulation and demodulation. However, modems support a limited number of direct devices, slow down when shared through a hub, cannot inspect/filter LAN traffic on their own, and require security measures against cyber-attacks.
2. Bluetooth (IEEE 802.15.1)
Bluetooth is a short-range Wireless Personal Area Network (WPAN) standard (IEEE 802.15.1) operating in the unlicensed ISM band (pages="notes").
- Key Radio Parameters (
pages="notes"):- Range and Power: Nominal link range is to at () transmit power, extendable up to by increasing transmit power.
- Spread-Spectrum Frequency Hopping (FHSS): Transmitters hop across individual frequency channels at according to a pseudo-random sequence set by the master, minimizing interference even when multiple networks share the same room.
- Data Rates: Full-duplex voice link at ; asymmetric half-duplex link up to in one direction and in the reverse direction; or symmetric in both directions.
- Connection Establishment States:
1. Passive State2. Inquiry (device discovery)3. Paging (clock/hop synchronization)4. Access Point Service Discovery5. Channel Creation6. Pairing (optional PIN authentication).
- Bluetooth Network Topologies (
pages="notes"):- Piconet: An ad-hoc master–slave network containing master and up to active slaves (maximum active devices total), plus up to parked (inactive) slaves. The master dictates the frequency-hopping sequence, access code, and timing synchronization.
- Scatternet: Formed by interconnecting multiple overlapping piconets through shared bridge nodes (a device can act as a slave in several piconets or a master in one and a slave in another).
+-------------------------------------------------------------------+
| Application Layer (User / Instrument Profiles) |
+-----------------+---------------+----------------+----------------+
| OBEX | WAP | RFCOMM | SDP |
| (Object Exch.) | (Web Access) | (Serial Port) | (Service Disc.)|
+-----------------+---------------+-------+--------+----------------+
| TCS | |
| L2CAP (Logical Link Control & Adaptation Protocol) |
+-------------------------------------------------------------------+
| HCI (Host Controller Interface) |
+-------------------------------------------------------------------+
| LMP (Link Manager Protocol — link setup & security) |
+-------------------------------------------------------------------+
| Baseband Layer (Link Controller, packet framing & timing) |
+-------------------------------------------------------------------+
| Radio Layer (2.4 GHz ISM Band, 79 channels, 1600 hops/s) |
+-------------------------------------------------------------------+3. Wi-Fi (IEEE 802.11)
Wi-Fi is a Wireless Local Area Network (WLAN) technology governed by the IEEE 802.11 family of standards operating in the UHF and SHF ISM bands using CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) (pages="notes").
| Standard | Frequency Band | Modulation / Multiplexing | Maximum Data Rate |
|---|---|---|---|
| IEEE 802.11a | OFDM | ||
| IEEE 802.11b | DSSS | ||
| IEEE 802.11g | OFDM | ||
| IEEE 802.11n | MIMO-OFDM | (and higher) |
IEEE 802.11 MAC Frame Structure
+---------------+-------------+----------+----------+----------+---------+----------+------+---------+
| Frame Control | Duration/ID | Addr 1 | Addr 2 | Addr 3 | Seq Ctl | Addr 4 | Data | CRC |
| (2 Bytes) | (2 Bytes) | (6 Bytes)| (6 Bytes)| (6 Bytes)|(2 Bytes)| (6 Bytes)| (Var)| (4 Bytes|
+---------------+-------------+----------+----------+----------+---------+----------+------+---------+
|
+--> [Version|Type(00=Mgmt,01=Ctrl,10=Data)|Subtype|To DS|From DS|More Frag|Retry|Pwr Mgmt|More Data|WEP|Order]Each field in the IEEE 802.11 frame serves a dedicated link-layer function (pages="notes"):
- Frame Control (): Contains protocol Version, Type (
00Management,01Control,10Data), Subtype (e.g.,0000association request,1000beacon), To DS / From DS (Distribution System routing flags), More Frag, Retry ( for retransmission), Power Mgmt ( = power-save mode, = active), More Data, WEP (encryption enabled), and Order ( = strict ordering). - Duration / ID (): Duration (in ) for which the wireless medium is reserved.
- Address 1 to 4 ( each): Standard IEEE 802 MAC addresses (source, destination, transmitter, receiver/BSSID depending on
To DSandFrom DS). - Sequence Control (): Split into a -bit Sequence Number (filters duplicate frames) and a -bit Fragment Number.
- Data (): Variable-length upper-layer payload.
- CRC (): Cyclic Redundancy Check Frame Check Sequence (FCS) for error detection.
IEEE 802.11 WLAN Architecture and Services
- Infrastructure BSS (Basic Service Set): Wireless stations communicate through a central Access Point (AP) identified by a network name (SSID).
- Independent BSS (IBSS / Ad-Hoc Mode): Stations communicate directly peer-to-peer over a limited area without an AP.
- Extended Service Set (ESS): Multiple BSS cells interconnected via a wired or wireless backbone called the Distribution System (DS), with a Portal bridging to external wired LANs, supporting seamless Roaming, Authentication, and Association.
4. NFC (Near Field Communication)
Near Field Communication (NFC) is a very-short-range wireless technology ( nominal, up to maximum) based on magnetic inductive coupling between two loop antennas operating at with data rates of , , or (pages="notes").
- Device Classes:
- Passive NFC Devices: Tags, stickers, and smart cards with no internal battery; powered by the electromagnetic field radiated by an active reader.
- Active NFC Devices: Self-powered devices (smartphones, payment terminals, industrial badge readers) capable of both generating an RF field and reading/writing data.
- Three Information Exchange Modes:
- Read/Write Mode: One-way transmission where an active NFC device reads from or writes to a passive NFC tag.
- Peer-to-Peer Mode: Two active NFC devices exchange data bidirectionally (using LLCP/SNEP).
- Card Emulation Mode: An active NFC device (such as a smartphone) emulates a contactless smart card for tap payments or access control.
+-------------------------------------------------------------------+
| Application Layer (Wallet App, Smart Poster, Instrument Config) |
+-------------------------------------------------------------------+
| NDEF (NFC Data Exchange Format — URLs, text, MIME records) |
+-------------------------------------------------------------------+
| LLCP (Logical Link Control) / SNEP (Simple NDEF Exch.) / RTD |
+-------------------------------------------------------------------+
| ISO/IEC 14443 & ISO/IEC 18092 Communication Interface |
+-------------------------------------------------------------------+
| Physical Layer (13.56 MHz Inductive RF Modulation, 106-424 kbps) |
+-------------------------------------------------------------------+5. Zigbee (IEEE 802.15.4)
Zigbee is an open, low-power, low-data-rate WPAN protocol built on the IEEE 802.15.4 PHY and MAC layers, designed for battery-operated sensor and control networks over a range of (pages="notes").
- Frequency Bands and Channels ( channels across bands):
- band: channels at
- band: channels at
- band: channel at
- Device Roles and Topologies: Supports Star, Tree (Cluster), and Mesh topologies scaling up to theoretical nodes ( practical nodes) with fast network join time (). Every network contains:
- Zigbee Coordinator (ZC): Exactly one per network; forms the root, manages security keys, and bridges to external networks.
- Zigbee Router (ZR): Intermediate relay node that extends coverage and routes multi-hop packets.
- Zigbee End Device (ZED): Low-power leaf sensor/actuator node that sleeps most of the time and communicates only through its parent coordinator or router.
- Operational Modes: Non-beacon mode (routers/coordinator stay awake continuously listening; higher power) vs. Beacon mode (coordinator broadcasts periodic beacons so routers and end devices can sleep between slots for ultra-low power consumption).
+-------------------------------------------------------------------+
| Application Framework (Key-Value Pair & Generic Message Services) |
+-------------------------------------------------------------------+
| Application Support Sub-Layer (APS, ZDO, ZAO & Service Matching) |
+-------------------------------------------------------------------+
| Network (NWK) Layer (Star/Mesh Routing, Device Join/Leave) |
+-------------------------------------------------------------------+
| IEEE 802.15.4 MAC Layer (CSMA/CA, Beacon Synchronization) |
+-------------------------------------------------------------------+
| IEEE 802.15.4 PHY Layer (868 MHz / 915 MHz / 2.4 GHz, 27 Ch.) |
+-------------------------------------------------------------------+6. LoRa and LoRaWAN
LoRa (Long Range) is a sub-GHz Low-Power Wide-Area Network (LPWAN) physical-layer wireless technology using Chirp Spread Spectrum (CSS) modulation over wideband channels (pages="notes").
- Operating Parameters: Operates in unlicensed sub-GHz ISM bands (, , , and ), achieving ranges of at low data rates () with multi-year battery life.
- LoRaWAN Star-of-Stars Architecture:
- End Nodes (Endpoints): Field sensors and actuators transmitting LoRa RF packets.
- LoRaWAN Gateways (Base Stations): All gateways in range receive an end node's broadcast and forward it over an IP backhaul (cellular, Ethernet, or Wi-Fi).
- LoRa Network Server: Eliminates duplicate packets received via multiple gateways, manages Adaptive Data Rate (ADR), and schedules downlink acknowledgments.
- Application Server / Remote Computer: Processes sensor telemetry for smart agriculture, water-flow metering, air-quality monitoring, and asset tracking.
| Technology | IEEE / Standard | Frequency Band | Data Rate | Typical Range | Topology |
|---|---|---|---|---|---|
| Bluetooth | IEEE 802.15.1 | (up to ) | Piconet / Scatternet | ||
| Wi-Fi | IEEE 802.11a/b/g/n | , | Star (BSS / ESS) or Ad-hoc | ||
| NFC | ISO 14443 / 18092 | () | Point-to-point inductive | ||
| Zigbee | IEEE 802.15.4 | , | Star, Tree, Mesh | ||
| LoRa / LoRaWAN | LoRa Alliance | Star-of-stars |
5.5 Thermal Management: Heat Dissipation Technique, Heat Sink
Power supplies, linear voltage regulators, power amplifiers, motor drivers, and high-speed processors inside an instrument convert electrical power into heat (pages="added"). Without effective thermal management, the internal semiconductor junction temperature () rises above its safe rating (, typically for silicon), causing calibration drift, accelerated component failure, or permanent thermal breakdown.
Heat Dissipation Techniques
Heat generated inside an electronic instrument is transferred to the surrounding environment through three physical mechanisms (pages="added"):
Three Modes of Heat Dissipation in Instrumentation
- Conduction: Direct transfer of thermal energy through solid materials from the silicon die to the IC package case, mounting pad, PCB copper plane, and heat sink base:
where is thermal conductivity (), is cross-sectional area, and is thickness.
- Convection: Heat transfer from solid surfaces (component packages and heat-sink fins) to a moving fluid (air or liquid coolant):
where is the convection coefficient. Natural (free) convection relies on buoyancy-driven airflow, whereas forced convection uses axial or centrifugal cooling fans to multiply heat removal by .
- Radiation: Emission of infrared electromagnetic waves from warm surfaces according to the Stefan–Boltzmann law:
where is surface emissivity (, maximized by black anodized heat-sink coatings) and .
Practical board-level heat dissipation techniques include:
- Placing high-power components near the edge of the PCB and away from temperature-sensitive analog references or thermocouple cold junctions.
- Using heavy copper ground planes and arrays of plated-through thermal vias beneath surface-mount power packages to conduct heat to the opposite side of the board.
- Applying Thermal Interface Materials (TIM)—such as thermal grease, silicone elastomer pads, or phase-change films—to fill microscopic air gaps between the IC case and the heat sink.
Heat Sink and Thermal Resistance Network
Steady-state heat flow from a semiconductor junction at temperature to ambient air at temperature obeys Thermal Ohm's Law, where temperature difference () is analogous to voltage, dissipated power () is analogous to current, and thermal resistance () is analogous to electrical resistance (pages="added").
T_J (Junction) T_C (Case) T_S (Sink) T_A (Ambient)
o------/\/\/\/\------o------/\/\/\/\------o------/\/\/\/\------o
theta_JC theta_CS theta_SA
|-------------------------> P_D (Watts) ----------------------->|Thermal Resistance Equations for Heat-Sink Design
For a device dissipating power () mounted on a heat sink in ambient temperature ():
where:
- = junction-to-case thermal resistance (, fixed by the IC package manufacturer),
- = case-to-sink thermal resistance (, determined by the thermal grease, mica insulator, or thermal pad),
- = heat-sink-to-ambient thermal resistance (, determined by heat-sink surface area, fin geometry, and airflow).
To keep the junction temperature at or below the maximum safe operating value , the required heat sink must satisfy:
5.6 Data Acquisition System (Data Loggers, Data Archiving and Storage), Cloud-Based Data Acquisition System
Data Acquisition System (DAS)
Data Acquisition System (DAS)
A Data Acquisition System (DAS) is an integrated hardware-and-software system that senses physical variables via transducers, conditions the electrical signals, converts them into digital form using an A/D converter, and processes, analyzes, stores, and displays the acquired measurements on a computer.
+----------+ +------------+ +---------------------+ +--------------+ +-------------------+
| Physical | -> | Transducer | -> | Signal Conditioning | -> | DAQ Hardware | -> | Computer & DAQ |
| Process | | (Sensor) | | (Amp, Filter, S/H) | | (MUX + ADC) | | Software (Storage)|
+----------+ +------------+ +---------------------+ +--------------+ +-------------------+The five core building blocks of a DAS are (pages="notes"):
- Sensors and Actuators (Transducers): Convert physical energy into electrical signals (e.g., a microphone converts acoustic pressure into voltage) or vice versa (e.g., a loudspeaker converts electrical energy into sound).
- Signal Conditioning Hardware: Amplifies weak sensor voltages, filters out noise, linearizes non-linear curves, and isolates high voltages so signals match the input range of the A/D board.
- Data Acquisition Hardware: Performs multiplexing, sample-and-hold, Analog-to-Digital Conversion (ADC), and Digital-to-Analog Conversion (DAC).
- Computer: Supplies the CPU, system clock, high-speed bus, RAM, and disk storage.
- DAQ Software: Configures sampling rates, channel scan lists, calibration equations, real-time plotting, and file logging.
Data Loggers
A data logger is an automated, self-contained microprocessor-based instrument that periodically scans, measures, and records readings from multiple transducers distributed across a power plant, petrochemical facility, or weather station (pages="notes").
Input Signals Output Recorders
- Pressure ---\ /--> Strip / Colour Printer
- Thermocouple ---> [Input Scanner] -> [Signal Amplifier] -> [ A/D ] --+--> Magnetic Tape / Disk
- AC Signals ---> [(150 ch/sec) ] [ & Conditioner ] [Converter] \--> Digital Display / PC
- Relay / Pulses ---/ ^ ^ ^
| | |
+----------------------------------------------------+
| Microprocessor Programmer & Control Unit |
| (Gain ranging, Cold-junction comp., Alarm limits) |
+----------------------------------------------------+Functional Stages of a Data Logger (pages="notes")
- Input Signals: Accepts millivolt thermocouple outputs, pressure/flow transducer voltages, AC signals, relay contacts, and tachometer pulses.
- Input Scanner (Multiplexer): An automatic sequence switch (often using low-noise electromechanical reed switches with shielded twisted pairs for millivolt thermocouple lines) that selects each input channel in turn at rates up to ( in compact loggers). Required characteristics: low closed contact resistance, high open-circuit resistance, low contact potential, negligible contact bounce, and long life.
- Signal Amplifier & Conditioner: Amplifies low-level signals up to a full-scale range with high SNR, high CMRR, low DC drift, high input impedance, and wide bandwidth. Performs linear scaling (), thermocouple cold-junction (reference) compensation, and polynomial curve-fitting to linearize non-linear sensors.
- A/D Converter: Typically a dual-slope integrating ADC or voltage-to-frequency converter (VFC) chosen for superior normal-mode noise rejection at modest scan speeds.
- Recorder: Logs timestamped channel data onto hard drives, flash memory, magnetic tape, or two-color strip printers.
- Programmer (Microprocessor Controller): Sets per-channel amplifier gain, linearization factors, and high/low alarm thresholds; initiates A/D conversion; identifies channel number and timestamp; and triggers alarms when limits are exceeded.
Data Archiving, Data Storage, Compression, and RAID
1. Data Archiving vs. Data Backup
| Aspect | Data Archiving | Data Backup |
|---|---|---|
| Primary Purpose | Moves older, inactive historical data to separate long-term storage for future reference and regulatory compliance. | Creates duplicate copies of active operational data to restore after corruption, accidental deletion, or hardware crash. |
| Access & Indexing | Indexed and searchable with referential integrity maintained so specific historical records can be queried. | Optimized for rapid bulk restoration of recent system state. |
| Source Data State | Original inactive records are moved off primary storage to free capacity. | Original active data remains on primary operational storage. |
2. Physical Storage Hierarchy and Data Compression (pages="notes")
- Volatile vs. Non-Volatile Storage: Volatile memory loses its contents when power is removed, whereas non-volatile storage retains data across power cycles.
- Primary Storage: Fastest access, volatile (CPU cache, RAM).
- Secondary Storage (On-Line Storage): Non-volatile, moderately fast access time (flash memory/SSD, magnetic hard disks).
- Tertiary Storage (Off-Line Storage): Non-volatile, slow access time using a robotic mechanism to mount/dismount removable mass media (magnetic tape libraries, optical jukeboxes).
- Data Compression: Encodes data using fewer bits to conserve storage space and network bandwidth:
- Lossy Compression: Permanently discards minor signal details where a small loss of fidelity is acceptable (e.g., approximating
6.666666as7; formats: JPEG, MPEG, MP3). Never used for raw precision calibration tables, but used for multimedia WSN video/audio streams. - Lossless Compression: Exploits statistical redundancy to reconstruct the exact original data bit-for-bit without error (e.g., run-length encoding
6.666666as6[6]6; formats: ZIP, RAR, PNG, TIFF).
- Lossy Compression: Permanently discards minor signal details where a small loss of fidelity is acceptable (e.g., approximating
3. RAID (Redundant Array of Independent Disks)
RAID combines multiple physical disk drives into a single logical storage unit to increase throughput via parallel striping and improve fault tolerance via mirroring or parity (pages="notes").
| RAID Level | Organization & Redundancy | Min. Disks | Usable Capacity | Fault Tolerance | Key Merits, Demerits & Best Use Case |
|---|---|---|---|---|---|
| RAID 0 | Block-level striping; no redundancy | drives | Merit: Highest speed, zero capacity overhead. Demerit: Single drive failure destroys all array data. Use: High-speed scratch/video caching. | ||
| RAID 1 | Mirrored disks (every block written twice) | drive per pair | Merit: Fast reads, simple recovery (direct copy). Demerit: capacity overhead. Use: Critical accounting/alarm logs. | ||
| RAID 2 / 3 / 4 | Bit-level ECC (RAID 2), bit-interleaved parity (RAID 3), dedicated parity disk (RAID 4) | drive | Dedicated parity disk in RAID 4 creates a write bottleneck; largely superseded by RAID 5. | ||
| RAID 5 | Block-level striping with distributed single parity across all drives | drive | Merit: High read speed, hot-swappable, low parity cost. Demerit: Slow writes due to parity calculation; long rebuild; -drive failure loses data. Use: File and archive servers. | ||
| RAID 6 | Block-level striping with double distributed parity (two independent algorithms) | simultaneous drives | Merit: Survives any concurrent disk failures; hot-swappable. Demerit: Slower writes than RAID 5 due to dual parity calculations. Use: Mission-critical enterprise archives. | ||
| RAID 10 (1+0) | Nested stripe of mirrors (combines RAID 1 mirroring + RAID 0 striping) | drive per mirrored pair | Merit: Very fast read/write I/O and fast mirror rebuild (no parity math). Demerit: capacity overhead. Use: High-transaction telemetry databases. |
Cloud-Based Data Acquisition System
Cloud-Based Data Acquisition System
A Cloud-Based Data Acquisition System extends traditional local DAQ hardware by streaming conditioned, digitized sensor measurements from edge gateways over IP networks (Wi-Fi, Ethernet, Cellular 4G/5G, or LoRaWAN) to remote cloud servers for elastic storage, real-time visualization, multi-site analytics, and automated alerting.
[1. Field Layer] [2. Edge DAQ Gateway] [3. Network / Broker] [4. Cloud Platform]
Sensors & Actuators ---> Signal Cond. + ADC + MCU ---> Wi-Fi / 4G / LoRaWAN ----> Time-Series DB, Archive,
(Temp, Press, Flow) (Local Buffer & Scaling) (MQTT / HTTPS / CoAP) Analytics & Web DashboardFunctional Layers and Operation (pages="added")
- Field Sensing & Conditioning Layer: Transducers measure plant variables and feed analog/digital conditioning circuits.
- Edge DAQ Node / IoT Gateway: Samples channels via ADCs, timestamps readings, applies local calibration/filtering, maintains a local circular ring buffer (in non-volatile flash/SD card so zero samples are lost during internet dropouts), and encrypts packets via TLS.
- Communication & Ingestion Layer: Publishes telemetry using lightweight protocols such as MQTT (publish/subscribe) or HTTPS REST to a cloud message broker.
- Cloud Storage, Archiving & Visualization Layer: Stores live streams in a time-series database, automatically migrates older records to cold cloud object archives, runs threshold/ML anomaly detection, and serves interactive dashboards to engineers on any browser or mobile device.
- Advantages over Standalone Local DAQ: Ubiquitous global access from any location, virtually unlimited elastic storage without managing local RAID arrays, centralized correlation of data from geographically distributed plants, and automated cloud backup and software updates.
- Limitations and Design Precautions: Depends on internet connectivity and bandwidth, introduces wide-area network latency (unsuitable for microsecond closed-loop control, which must remain at the local edge controller), and requires strict authentication and encryption to prevent cyber-intrusion.
Worked Out Examples
1
A microcontroller transmits of logged temperature data to a PC over a UART serial link configured at using framing ( start bit, data bits, no parity bit, and stop bit). Calculate (a) the framing efficiency, (b) the effective payload throughput in bytes/s, and (c) the total time required to transmit the block.
Total bits per UART frame and framing efficiency: In format, each byte requires:
The protocol framing efficiency is:
Effective payload throughput and transmission time: At and , the effective byte transfer rate is:
The time to transmit () is:
(a) Framing efficiency = , (b) effective throughput = , (c) total transmission time = .
2
A linear voltage regulator inside an industrial data logger dissipates continuously inside an enclosure where the maximum ambient temperature is . The regulator has a maximum allowable junction temperature of , a junction-to-case thermal resistance of , and a junction-to-ambient thermal resistance without a heat sink of . If a thermal pad with is used to mount a heat sink: (a) Verify whether the regulator can operate safely without a heat sink. (b) Find the maximum allowable heat-sink-to-ambient thermal resistance required to keep .
Junction temperature without a heat sink: Using the bare package :
Since , the device will rapidly fail without a heat sink.
Maximum allowable heat-sink thermal resistance : From the series thermal resistance relation :
(a) Without a heat sink, would reach (), so a heat sink is mandatory. (b) The heat sink must have .
3
A -channel power-station data logger scans every channel at using a -bit (-byte) ADC. (a) Calculate the raw uncompressed data volume generated over (in , where ) and the archived size if lossless compression achieves a compression ratio. (b) The plant archive server contains hard drives of each. Determine the usable storage capacity and maximum number of simultaneous disk failures tolerated under RAID 0, RAID 5, RAID 6, and RAID 10.
Raw -day data volume and lossless-compressed archive size: Aggregate data rate across channels:
Over ():
With lossless compression:
Usable capacity and fault tolerance for drives of :
- RAID 0 (Striping only): Usable capacity ( drive failures tolerated).
- RAID 5 (Single distributed parity): Usable capacity ( drive failure tolerated).
- RAID 6 (Double distributed parity): Usable capacity ( simultaneous drive failures tolerated).
- RAID 10 (Mirrored stripes): Usable capacity ( drive failure per mirrored pair tolerated, up to drives if in distinct pairs).
(a) Raw -day volume = , lossless compressed archive = . (b) Usable capacities: RAID 0 = ( faults), RAID 5 = ( fault), RAID 6 = ( faults), RAID 10 = ( fault per mirror pair).
Exercises
Exercises
Explain the UART communication protocol in detail with its frame format and 5-step transmission sequence, and compare UART, I2C, and SPI protocols.
UART architecture, frame format, and 5-step operation:
- UART is an asynchronous, full-duplex point-to-point serial interface using two cross-connected wires (
TXRXandRXTX) at a pre-agreed baud rate (e.g., ). - Frame format: Start bit (LOW), Data bits, Parity bit, and Stop bits (HIGH).
- 5 steps: (1) Tx UART receives parallel data from the CPU bus; (2) Tx UART adds start, parity, and stop bits; (3) Frame is shifted out serially and sampled by Rx UART at the configured baud rate; (4) Rx UART strips start, parity, and stop bits; (5) Rx UART places the reconstructed parallel byte onto the receiving data bus.
Comparison of UART, I2C, and SPI:
- Wires: UART uses (
TX,RX); I2C uses (SDA,SCL); SPI uses (SCLK,MOSI,MISO,CS). - Clocking: UART is asynchronous (no shared clock); I2C and SPI are synchronous.
- Duplex & Topology: UART is full-duplex point-to-point; I2C is half-duplex multi-master/multi-slave (addressed via -bit slave addresses and -bit ACK/NACK); SPI is full-duplex single-master/multi-slave (selected via hardware
CSlines) and achieves the highest data throughput.
UART transfers framed asynchronous bytes (Start + Data + Parity + Stop) over two cross-coupled wires at a shared baud rate, whereas I2C uses two synchronous wires (SDA, SCL) with -bit addressing in half-duplex, and SPI uses four synchronous wires (SCLK, MOSI, MISO, CS) for high-speed full-duplex master–slave data exchange.
Explain a Wireless Sensor Network (WSN) in detail with its node constituents, deployment architecture, 5-layer protocol stack, and four implementation domains.
Node constituents and master–slave deployment architecture:
- Each WSN node integrates a sensing unit (transducer + ADC), a processing unit (microcontroller + memory), a wireless transceiver, and a power unit (battery/energy harvester).
- Spatially distributed slave nodes sample environmental parameters and forward packets to a master (sink/gateway) node, which aggregates the data and relays it over the internet/cellular link to a remote server.
5-layer protocol stack and 4 deployment domains:
- Protocol stack: (1) Physical layer (RF/acoustic modulation), (2) Data Link layer (MAC, framing, error control), (3) Network layer (multi-hop routing), (4) Transport layer (reliability and congestion control), and (5) Application layer (traffic management and user interfaces).
- Four domains: (1) WMSN (video/audio/scalar surveillance limited by camera FOV, high bandwidth), (2) UWSN (underwater acoustic communication), (3) WUSN (underground soil/mine monitoring), and (4) MSN (mobile wearable/vehicular sensor networks).
A WSN deploys autonomous battery-powered sensor nodes in a master–slave hierarchy governed by a 5-layer stack (Physical, Data Link, Network, Transport, Application) across four specialized domains: Multimedia (WMSN), Underwater acoustic (UWSN), Underground (WUSN), and Mobile (MSN).
Describe Bluetooth and Wi-Fi in detail, covering Bluetooth topologies and protocol stack as well as the IEEE 802.11 MAC frame structure and WLAN service sets.
Bluetooth (IEEE 802.15.1) topologies and protocol stack:
- Operates in the ISM band ( nominal range) using Frequency-Hopping Spread Spectrum (FHSS) across channels at .
- Forms Piconets ( master + up to active slaves + up to parked slaves) and interconnected Scatternets.
- Protocol stack: Radio Baseband LMP & HCI L2CAP RFCOMM / SDP / TCS OBEX / WAP Application.
Wi-Fi (IEEE 802.11) MAC frame structure and service sets:
- Operates in and bands using CSMA/CA and OFDM/DSSS (
802.11a/b/g/n). - MAC Frame fields: Frame Control (: Version, Type, Subtype, To/From DS, More Frag, Retry, Power Mgmt, More Data, WEP, Order) Duration/ID () Address 1–4 ( each) Sequence Control (: -bit sequence + -bit fragment) variable Data payload -bit CRC.
- Service sets: Infrastructure BSS (with Access Point), Independent BSS (IBSS ad-hoc), and Extended Service Set (ESS linked via Distribution System).
Bluetooth (IEEE 802.15.1) forms short-range FHSS piconets/scatternets using the Radio–Baseband–LMP–HCI–L2CAP–RFCOMM/SDP/OBEX stack, whereas Wi-Fi (IEEE 802.11) provides high-speed WLANs across BSS/IBSS/ESS topologies using CSMA/CA and a MAC frame protected by a -bit CRC.
Describe NFC, Zigbee, and LoRa in detail with their operating frequencies, ranges, data rates, and protocol stacks.
NFC ( inductive coupling):
- Operates over at with passive tags and active readers/smartphones in Read/Write, Peer-to-Peer, and Card Emulation modes.
- Stack: Physical Layer () ISO 14443/18092 LLCP / SNEP / RTD NDEF Application.
Zigbee (IEEE 802.15.4) and LoRa (LoRaWAN):
- Zigbee: Low-power WPAN () across channels ( at , at , at ) using Coordinator, Router, and End Device nodes in Star/Mesh topologies. Stack: PHY MAC (CSMA/CA) NWK APS/ZDO Application Framework.
- LoRa / LoRaWAN: Sub-GHz LPWAN () using Chirp Spread Spectrum ( bandwidth) over at in a star-of-stars architecture (End Nodes Gateways Network Server Application Server).
NFC provides inductive tap links at (, NDEF/LLCP stack); Zigbee provides mesh WPANs on IEEE 802.15.4 (); and LoRaWAN provides sub-GHz chirp-spread-spectrum LPWAN links ().
Explain RAID systems (RAID 0, 1, 5, 6, and 10) in detail with their features, advantages, and disadvantages, and compare lossy vs. lossless data compression and data archiving vs. data backup.
RAID levels (0, 1, 5, 6, 10):
- RAID 0: Block striping with no redundancy; capacity () and high speed, but a single disk failure destroys all data.
- RAID 1: Disk mirroring; usable capacity, fast read and simple rebuild, tolerates drive failure per mirrored pair.
- RAID 5: Block striping with distributed single parity (min drives, usable ); tolerates disk failure, slower writes due to parity calculation.
- RAID 6: Block striping with dual independent distributed parity (min drives, usable ); tolerates simultaneous disk failures, slower writes than RAID 5.
- RAID 10 (1+0): Striped mirrors (min drives, usable ); combines fast I/O and rapid mirror rebuild at capacity cost.
Lossy vs. lossless compression and archiving vs. backup:
- Lossy compression (JPEG, MPEG, MP3) achieves high compression ratios by discarding minor details, whereas lossless compression (ZIP, PNG, TIFF) preserves exact bit-for-bit data via statistical redundancy.
- Data archiving moves older inactive records to indexed, searchable long-term compliance storage, whereas data backup maintains duplicate copies of active operational data for disaster recovery.
RAID 0 maximizes speed with zero fault tolerance; RAID 1 mirrors disks ( capacity); RAID 5 and RAID 6 use single and double distributed parity to survive and disk failures respectively; and RAID 10 stripes across mirrored pairs. Lossless compression preserves exact measurement fidelity (unlike lossy), while archiving retains indexed historical records (unlike operational backups).
(a) An optical fiber used for isolated plant telemetry has a core refractive index and a cladding refractive index . Calculate the critical angle (in degrees) required for Total Internal Reflection. (b) A power amplifier transistor inside the telemetry transmitter dissipates at an ambient temperature of . If , , and the heat sink has , calculate the operating junction temperature and state whether it is safe for a silicon rating.
Critical angle of the optical fiber: By Total Internal Reflection at the core–cladding boundary:
Operating junction temperature : Using the series thermal resistance network:
Since , the thermal design operates safely with a margin.
(a) Critical angle . (b) Junction temperature (, safe).