📋 Today's topics
- CPS Applications (briefly revisited)
- CPS Communication Protocols – detailed focus on wired/wireless standards.
اليوم سنركز على بروتوكولات الاتصال في CPS: تعريفها، أهميتها، والأنواع الرئيسية (سلكية ولاسلكية) مع شرح كل بروتوكول.
🎯 Learning Outcomes
After completing this chapter, students should be able to:
- Explain the role and importance of communication protocols.
- Identify and describe major CPS communication protocols.
- Differentiate between wired and wireless communication protocols.
- Analyze the suitability of specific protocols for different CPS.
بعد إتمام هذا الجزء، يجب أن يكون الطالب قادراً على:
- شرح دور وأهمية بروتوكولات الاتصال.
- تحديد ووصف بروتوكولات الاتصال الرئيسية في CPS.
- التمييز بين البروتوكولات السلكية واللاسلكية.
- تحليل ملاءمة بروتوكول معين لتطبيقات CPS مختلفة.
📡 Communication Protocols: Definition & Importance
Communication protocols are standardized rules that define how data is transmitted, formatted, and received between devices, systems, and networks in CPS and IoT.
Analogy: A protocol is like a language – it ensures that two parties understand each other.
Why are protocols important in CPS?
- Enable real‑time data exchange.
- Support interoperability between heterogeneous devices (different makes/types).
- Ensure reliability, low latency, and safety.
- Provide security mechanisms (authentication, encryption).
Protocols: قواعد موحدة تحدد كيفية إرسال واستقبال البيانات. تشبه اللغة التي يتفاهم بها الطرفان.
الأهمية: تبادل فوري للبيانات، التوافق بين الأجهزة المختلفة، الموثوقية، الأمان.
🔌 Major CPS Communication Protocols
Wired: Ethernet (IEEE 802.3).
Wireless: NFC, RFID, 6LoWPAN, WiFi (IEEE 802.11), Bluetooth, Thread (IEEE 802.15.4), Zigbee.
Examples of hardware: Nordic dongle for Thread, RFID CHIP, Bluetooth module, Zigbee module, NFC card.
البروتوكولات السلكية: Ethernet. اللاسلكية: NFC, RFID, 6LoWPAN, WiFi, بلوتوث, Thread, Zigbee.
Ethernet is a wired communication protocol family standardized under IEEE 802.3, designed for local area networks (LANs). Widely used in industrial, transportation, and smart infrastructure CPS where reliability and low latency are critical.
Advantages: ✅ reliable & stable, high bandwidth, suitable for safety‑critical systems, widely supported.
Limitations: ✘ requires cabling, limited mobility, installation cost.
Speed variants: 10BASE5 (thicknet), 10BASE2 (thinnet), 10BASE‑T (twisted pair), 100BASE‑TX (Fast Ethernet), 1000BASE‑T (Gigabit), 10GBASE‑T, etc.
Ethernet: بروتوكول سلكي (IEEE 802.3) يستخدم في الشبكات المحلية. يتميز بالموثوقية وسرعة عالية وزمن استجابة منخفض. مناسب للأنظمة الحرجة. عيوبه: يحتاج كابلات، تكلفة تركيب، قلة الحركة.
RFID uses tags (chip + antenna) that carry data, read by an RFID reader via radio waves. Range varies with frequency (up to hundreds of meters).
Tag types:
- Active tags: have internal power source (battery).
- Passive tags: no battery; draw power from reader's electromagnetic waves → cheap, long lifetime.
Technologies:
- Near RFID: uses coil and magnetic field (induction).
- Far RFID: uses dipole antenna, propagates EM waves.
RFID: بطاقات تحتوي شريحة وهوائي، تُقرأ لاسلكياً بواسطة قارئ. المدى يختلف حسب التردد. نوعان: نشط (ببطارية) وسلبي (بدون بطارية، يستمد الطاقة من القارئ). تطبيقات: تحديد الهوية، تتبع البضائع.
NFC enables two electronic devices (one usually a smartphone) to communicate by bringing them within 4 cm. Can act as electronic identity or keycard.
Three modes:
- Card emulation: device acts like a smart card (payments, ticketing).
- Reader/writer: reads NFC tags on posters/labels.
- Peer‑to‑peer: two devices exchange information ad‑hoc.
NFC: اتصال قريب المدى (≤4 سم). يستخدم للمدفوعات، التذاكر، قراءة البطاقات. ثلاثة أوضاع: محاكاة بطاقة، قارئ/كاتب، ند لند.
6LoWPAN is built on IEEE 802.15.4. It provides encapsulation and header compression so that even low‑power devices can send/receive IPv6 packets. Each node has its own IPv6 address, allowing direct Internet connection.
Features: wireless mesh, low‑power, reduces transmission overhead.
6LoWPAN: بروتوكول لاسلكي للشبكات منخفضة الطاقة يعتمد على IEEE 802.15.4. يضغط الرؤوس (headers) ليسمح لأجهزة محدودة الطاقة بإرسال واستقبال حزم IPv6. كل عقدة لها عنوان IPv6 خاص بها، مما يمكنها من الاتصال المباشر بالإنترنت.
Wi‑Fi uses radio frequency to transmit data through air. Devices convert digital data to radio signals; receiving antenna decodes them.
Two topologies:
- Access point mode: all data passes through central access point.
- Peer‑to‑peer (ad‑hoc): devices communicate directly without access point.
Wi‑Fi: تقنية لاسلكية باستخدام موجات الراديو. نوعان: بنقطة وصول (Access Point) أو ند لند (peer‑to‑peer).
Bluetooth exchanges data over short distances in personal area networks (PANs). A master device can communicate with up to 7 devices in a piconet.
Devices can switch roles: a slave can become master (e.g., headset initiating connection). At any time, data can be transferred between master and one other device (except broadcast mode).
Bluetooth: لمسافات قصيرة، شبكات شخصية (PAN). الجهاز الرئيسي (master) يمكنه الاتصال بـ 7 أجهزة كحد أقصى في piconet. يمكن تبديل الأدوار.
Thread is an IPv6‑based networking protocol for secure home automation. Only authenticated devices can join. All communications are secured with a network key. It runs on 6LoWPAN and uses Border Routers to connect. No single point of failure: if lead router fails, another router in the mesh takes over.
Open-source implementation: OpenThread.
Thread: بروتوكول شبكي آمن للمنازل الذكية، يعتمد على IPv6 ويعمل فوق 6LoWPAN. يستخدم Border Routers، ولا توجد نقطة فشل واحدة. متوفر مفتوح المصدر (OpenThread).
Zigbee is used for personal area networks with small, low‑power digital radios (home automation, medical data collection, low‑bandwidth needs).
Characteristics: low power consumption → transmission range 10–100 meters line‑of‑sight. Can use mesh networking to reach longer distances. Ideal for low data rate, long battery life, secure networking.
Zigbee: بروتوكول لاسلكي منخفض الطاقة، يستخدم في أتمتة المنازل وجمع البيانات الطبية. يعتمد على شبكة mesh لتمديد المدى. مناسب للتطبيقات منخفضة البيانات وعمر البطارية الطويل.
📊 CPS Communication Protocol Characteristics
| Protocol | Type | Range | Typical Use |
|---|---|---|---|
| Ethernet | Wired | up to 100m (per segment) | Industrial, backbone |
| RFID | Wireless | cm to 100+ m | Identification, tracking |
| NFC | Wireless | ≤ 4 cm | Payments, keycards |
| 6LoWPAN | Wireless | 10–100 m | Low‑power IPv6 mesh |
| Wi‑Fi | Wireless | ~50 m indoors | High‑speed local network |
| Bluetooth | Wireless | ~10 m | Personal area, audio |
| Thread | Wireless | mesh | Secure home automation |
| Zigbee | Wireless | 10–100 m, mesh | Low‑power automation |
جدول يلخص خصائص البروتوكولات: النوع (سلكي/لاسلكي)، المدى التقريبي، الاستخدام النموذجي.
📝 Practice Questions (detailed explanations)
- Q1: Ethernet in CPS is widely used because it:
A. Provides high mobility and wireless coverage
B. Is unreliable but low‑cost
C. Offers high reliability, low latency, and is standardized under IEEE 802.3 ✓
D. Works only with home networks - Q2: RFID tags can be classified as:
A. Passive tags only
B. Active tags only
C. Active and Passive tags ✓
D. Bluetooth‑enabled tags - Q3: Near‑Field Communication (NFC) works best at distances up to:
A. 4 meters
B. 4 cm ✓
C. 10 meters
D. 1 km - Q4: Which wireless protocol is used for low‑power, IPv6‑based mesh networking in CPS?
A. Zigbee
B. Thread ✓
C. Wi‑Fi
D. Bluetooth - Q5: Bluetooth supports a master device communicating with a maximum of how many devices in a piconet?
A. 3
B. 5
C. 7 ✓
D. 10 - Q6: Zigbee is typically used for:
A. High‑speed Internet backbones
B. Long‑distance satellite communication
C. Low‑power, low‑bandwidth applications like home automation ✓
D. Video streaming in CPS
الإجابات: ١- ج (موثوقية عالية، زمن وصول منخفض، معيار IEEE 802.3)، ٢- ج (نشط وسلبي)، ٣- ب (٤ سم)، ٤- ب (Thread)، ٥- ج (٧ أجهزة)، ٦- ج (تطبيقات منخفضة الطاقة والبيانات).
📌 Chapter 2 – Part 2: All protocols in one place (easy recap)
- Protocols = standardized rules for data exchange (like language).
- Ethernet (wired): IEEE 802.3, high reliability, low latency, used in industrial/transportation.
- RFID: radio identification, active (battery) or passive (no battery). Range up to hundreds of meters.
- NFC: very short range (4 cm), three modes: card emulation, reader/writer, peer‑to‑peer.
- 6LoWPAN: IPv6 over low‑power wireless (IEEE 802.15.4), header compression, each node has IPv6 address.
- Wi‑Fi (802.11): high‑speed wireless, access point or peer‑to‑peer.
- Bluetooth: short range PAN, master + up to 7 slaves in piconet.
- Thread: IPv6‑based, secure mesh for home automation, runs on 6LoWPAN, border routers, no single point of failure.
- Zigbee: low‑power mesh, 10–100 m, ideal for home automation, low data rate, long battery life.
- Choosing a protocol depends on range, power, data rate, security, and topology requirements.
ملخص بروتوكولات CPS:
- البروتوكولات قواعد موحدة للاتصال.
- Ethernet: سلكي، موثوق، سرعة عالية.
- RFID: تعريف بالترددات الراديوية، نوعان نشط/سلبي.
- NFC: مدى قصير جداً (٤ سم)، للمدفوعات والتذاكر.
- 6LoWPAN: IPv6 للأجهزة منخفضة الطاقة، ضغط الرؤوس.
- Wi‑Fi: لاسلكي عالي السرعة، نقطة وصول أو ند لند.
- بلوتوث: شبكة شخصية، حتى ٧ أجهزة.
- Thread: شبكة آمنة للمنازل الذكية، IPv6, mesh.
- Zigbee: منخفض الطاقة، mesh, مناسب للأتمتة.
- اختيار البروتوكول يعتمد على المدى، الطاقة، الأمان، البيانات.