Internet-of-Things (IoT)

Slides:



Advertisements
Similar presentations
Bluetooth.
Advertisements

Quiz Sketch the time domain waveform and spectrum, labeling all important features, of a rectangular pulse of 2.4 Ghz having 1 uS duration.
BLUETOOTH TM :A new radio interface providing ubiquitous connectivity Jaap C.Haartsen Ericssion Radio System B.V IEEE.
1 Introduction to Bluetooth v1.1 (Part I) Overview Radio Specification Baseband Specification LMP L2CAP.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 11th Lecture Christian Schindelhauer.
Mobile Communications: Wireless LANs Mobile Communications Chapter 7: Wireless LANs ª Parte - Bluetooth.
CPET 260 Bluetooth. What is Bluetooth? Not IEEE (Wi-Fi) or HomeRF Originally designed to replace wires Short-range, lower-power wireless technology.
Bluetooth: Technology for Short-Range Wireless Apps Author:Pravin Bhagwat Presented by Chin-Yi Tsai IEEE INTERNET COMPUTING MAY.JUNE 2001.
1 Mini Course Programming Context-aware Mobile Phones Thomas Bodin IT University of Copenhagen.
What is Bluetooth? Bluetooth technology is a peripheral that connects to a variety of products in order to provide wireless connections.
BLUETOOTH.
Bluetooth Introduction The Bluetooth Technology
By: Trevor Parker, Minh-Tri Le. Bluetooth is a wireless technology that is a low-cost, low-power, short-range radio for ad-hoc wireless communication,
Bluetooth 4.0: Low Energy.
BLUETOOTH. Introduction Bluetooth technology discussed here aims at so-called ad- hoc piconets, which are local area networks with a very limited coverage.
Distributed systems – Part 2  Bluetooth – 2 nd set of slides Anila Mjeda.
Modeling & Simulation of Bluetooth MAC protocol COE543 Term Project Spring 2003 Submitted by: H.M.Asif (ID# )
Broadband and Personal Area Network Computer Networks Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
Bluetooth & WPAN. 2 Bluetooth/WPAN WPAN (Wireless Personal Area Network) has a smaller area of coverage, say, 2.5 mW transmitter power, distance
Overview of Wireless LANs Use wireless transmission medium Issues of high prices, low data rates, occupational safety concerns, & licensing requirements.
Week 6 lecture 1+2 n Bluetooth. 2 of 27 Finish Data Link layer Finish Data Link layer - CRC - CRC - CSMA - CSMA - Hints for Lab 4 - Hints for Lab 4.
INTRODUCTION Bluetooth technology is code name for Personal Area Network (PAN) technology that makes it extremely easy to connect a mobile, computing device.
WIRELESS LANs BLUETOOTH.
By Santosh Sam Koshy. Agenda Need for Bluetooth Brief History of Bluetooth Introduction to Bluetooth Bluetooth System Specifications Commercial Bluetooth.
Bluetooth Background Ericsson, IBM, Intel, Nokia, and Toshiba
DIUF, Seminar in Telecommunications, M. Hayoz The Bluetooth TM wireless technology A brief overview.
Bluetooth Techniques ECE 591. Overview  Universal short-range wireless capability  Uses 2.4-GHz band  Available globally for unlicensed users  Devices.
Doc.: IEEE /033r2 Submission July 1999 Simon Baatz, University of BonnSlide 1 Integration of Bluetooth into LAN Environments Simon Baatz, Matthias.
An Introduction to BLUETOOTH TECHNOLOGY
Mobile Communication Technology according to IEEE (examples)
BLUETOOTH Created By: Ajay Bahoriya. Agenda Introduction to Bluetooth Bluetooth Basics Mode of operation Technology Security Advantages Integrating BT.
Wireless Networks Instructor: Fatima Naseem Computer Engineering Department, University of Engineering and Technology, Taxila.
Bluetooth Techniques Chapter 15. Overview of Bluetooth Initially developed by Swedish mobile phone maker in 1994 to let laptop computers make calls over.
Bluetooth By Christian Doyle. Overview What is Bluetooth? What’s with the name? Establishing a connection Multiplexing Piconets Scatternets Architecture.
Team Topic Presentation Team 6 BLUETOOTH What is Bluetooth? Cable Replacement Automatic Connectivity Hidden Computing Few Examples: 1.Automatic Door.
Prof. Dr.-Ing. Jochen Schiller, SS057.1 Bluetooth Idea  Universal radio interface for ad-hoc wireless connectivity  Interconnecting.
BLUETOOTH WIRELESS TECHNOLOGY
Lectured By: Vivek Dimri Asst Professor CSE Deptt. SET.
Bluetooth In 1994, the L. M. Ericsson company became interested in connecting its mobile phones to other devices without cables. A SIG (Special Interest.
Bluetooth.
Technology By :-. What Is Bluetooth? Designed to be used to connect both mobile devices and peripherals that currently require a wire Short range wireless.
Sonal Jain, IT-BHU Bluetooth Mobile Ad Hoc Networks Sonal Jain B.Tech (IV), Electrical Engg. Dept.,ITBHU IEEE SPAVes Sept 14, 15 Institute.
Bluetooth Technology. History The name ‘Bluetooth’ was named after 10th century Viking king in Denmark Harald Bluetooth who united and controlled Denmark.
Bluetooth Vishwas Sundaramurthy Low-cost, short range, small form-factor radio links Adhoc networks/links between information appliances.
IEEE : High-rate WPAN Overview
What is Bluetooth? A cable-replacement technology that can be used to connect almost any device to any other device Radio interface enabling electronic.
BLUETOOTH LOW ENERGY Kieon Seong. Introduction  Chap 1. What is Bluetooth Low Energy? Difference Between Classic Bluetooth Device Types Design Goals.
CS 414 Indian Institute of Technology, Bombay CS
Bluetooth 4.0: Low Energy.
Bluetooth 4.0: Low Energy.
Bluetooth Technology Name- Bittu Kumar Roll No.- A05 Section- E2801
Bluetooth for Ad-Hoc Networking
SSN College of Engineering
Bluetooth Low Energy Overview.
Bluetooth By.
Bluetooth Low Energy Bluetooth Smart Nenad Četić – Makers NS.
Introduction to Wireless Networking
A Wireless LAN technologies IEEE
Unit – III Wireless PAN’s
Bluetooth, RFID, Data Link Layer Switching
Wireless NETWORKS NET 434 Topic No 7 Bluetooth-IEEE802.15
Wireless NETWORKS NET 434 Topic No 7 Bluetooth-IEEE802.15
Internet-of-Things (IoT)
BLUETOOTH (I) Bluetooth technology aims at so-called ad hoc piconets, which are local area networks with a very limited coverage and without the need for.
Wireless NETWORKS NET 434 Topic No 7 Bluetooth-IEEE802.15
Internet-of-Things (IoT)
Bluetooth: Tutorial & Simulation
BLUETOOTH Personal Area Networking [ PAN ] over Bluetooth
Bluetooth, RFID, Data Link Layer Switching
Presentation transcript:

Internet-of-Things (IoT) Summer Engineering Program 2018 University of Notre Dame LAB COMPONENT

Office Hours Reminders & Notes 1 hour before class Mon/Wed and leaving last after class; Fri 9-10.30 (up to 12pm if needed) + Jess‘ office hours First always try to solve a problem yourself (Google is your friend!) If stuck, isolate problem (print is your friend!) Come with specific questions (colleagues, TA, and Prof are your friends!) Keep in mind we have 26 students; if everybody „consumes“ 1 hour of Jess‘ time, that won‘t work out „Collaborate“ versus „tutoring“ Do not delay!!! (time is not your friend!) Keep copies of your code!

Bluetooth Basic idea Universal radio interface for ad-hoc wireless connectivity Interconnecting computer and peripherals, handheld devices, PDAs, cell phones – replacement of IrDA (Infrared Data Association) Embedded in other devices, very cheap Short range (10m), low power consumption, license-free 2.45 GHz ISM Voice and data transmission

Bluetooth History 1994: Ericsson worked on “MC-link” project Later renamed to Bluetooth: Harald “Blåtand” Gormsen [son of Gorm], King of Denmark in the 10th century; united Denmark and spread Christianity 1998: foundation of Bluetooth SIG (Special Interest Group): www.bluetooth.org 2001: first consumer products for mass market, spec. version 1.1 released 2005: 250 million chips 2018: 4 billion chips

Key Characteristics 2.4 GHz ISM band, 79 RF channels Frequency hopping Channel 0: 2402 MHz … channel 78: 2480 MHz Frequency hopping 1600 hops/s Hopping sequence in a pseudo random fashion, determined by a master Two types of traffic: Voice link – SCO (Synchronous Connection Oriented) Data link – ACL (Asynchronous Connection Less)

Topology: Piconet & Scatternet

Bluetooth Piconet          Master gives slaves its clock and device ID Hopping pattern: determined by device ID (48 bit, unique worldwide) Pseudo random number generator (device ID + clock) Addressing Active Member Address (AMA, 3 bit) Parked Member Address (PMA, 8 bit) Standby Member (no address)   P S  S   M P   SB S   P SB M=Master S=Slave P=Parked SB=Standby

Bluetooth Scatternet Each piconet has one master, but slaves can participate in different piconets on a time-division multiplex basis A master in one piconet can be a slave in other piconets Each piconet has its own hopping sequence

Bluetooth Scatternet M=Master S=Slave P=Parked SB=Standby Piconets P S

Communication 625 µs fk fk+1 fk+2 fk+3 fk+4 fk+5 fk+6 M S M S M S M t

Communication Example Polling-based time division multiplex 625µs slots, master polls slaves SCO (Synchronous Connection Oriented) – Voice ACL (Asynchronous ConnectionLess) – Data Variable packet size (1, 3, 5 slots) SCO ACL SCO ACL SCO ACL SCO ACL MASTER f0 f4 f6 f8 f12 f14 f18 f20 SLAVE 1 f1 f7 f9 f13 f19 SLAVE 2 f5 f17 f21

Bluetooth Versions

Bluetooth Low Energy (BLE) Bluetooth low energy is a new, open, short range radio technology Blank sheet of paper design Different to Bluetooth classic Optimized for ultra low power Enable coin cell battery use cases < 20mA peak current < 5uA average current

BLE Basic Concepts Everything is optimized for lowest power consumption Short packets reduce TX (transmit) peak current Short packets reduce RX (receive) time Fewer RF channels to improve discovery and connection time Simple state machine Single protocol ...

“Exposing State” (IoT) 23.2˚C 60.5 km/h 12:23 pm Gate 10 BOARDING 3.2 kWh PLAY >> Network Available It’s good at small, discrete data transfers Data can triggered by local events Data can be read at any time by a client

BLE Device Modes Dual Mode Single Mode Bluetooth Classic and LE Used anywhere BT Classic is used today Single Mode Implements only Bluetooth low energy Will be used in new devices / applications

BLE Physical Layer 2.4 GHz ISM band 40 Channels on 2 MHz spacing

BLE Physical Layer Two types of channels

BLE Physical Layer Advertising channels avoid 802.11

BLE Link Layer Link Layer state machine

BLE and Internet-of-Things My pulse is … My blood glucose is … My temperature is … Low power Low data rate

Assignment 3 Task 1: Configure Bluetooth Task 2: Write a client-server based intruder detection system using 2 Pis, a PIR sensor, and an LED (and/or sounder) One Pi acts as server and uses a callback function that triggers when motion is detected The other Pi acts as client and queries the server for the PIR value once every 5 seconds; if an intrusion is detected, the alarm is raised Test both your client AND server program with the help of one (or more) of your classmates

Assignment 3 Deliverables By Friday midnight submit a report showing clearly your client and server programs Indicate your Bluetooth address Indicate if you ran into any problems during development or if any parts are incomplete/etc. Provide a brief video (no longer than 30 seconds each) that shows your Pi and your classmate‘s Pi work together as intrusion detection system Summary: there are two documents for this assignment: one PDF report (with code) and one video

Bluetooth Preparation Make sure Internet sharing is w0rking (e.g., ping a remote IP address) Install the Bluez Bluetooth module on your Pi: sudo apt-get update sudo apt-get install python-bluez Configure Bluetooth: sudo bluetoothctl type: agent on type: default-agent type: scan on type: quit Activate scanning: sudo hciconfig hci0 piscan This call needs to be done after each reboot of the Pi! If needed, you can find your Pi‘s BT address using the following command: hciconfig (the address format is: XX:XX:XX:XX:XX:XX)

Bluetooth Server Template import bluetooth hostMACAddress = '' port = 3 backlog = 1 size = 1024 s = bluetooth.BluetoothSocket(bluetooth.RFCOMM) s.bind((hostMACAddress, port)) s.listen(backlog) try: client, clientInfo = s.accept() while 1: data = client.recv(size) if data: print(data) client.send("Returning: " + data) except: client.close() s.close()

Bluetooth Client Template import bluetooth serverMACAddress = ‘XX:XX:XX:XX:XX:XX' port = 3 size = 1024 s = bluetooth.BluetoothSocket(bluetooth.RFCOMM) s.connect((serverMACAddress, port)) while 1: text = raw_input("Text to send: ") if text == "quit": break s.send(text) data = s.recv(size) print(data) s.close()

Notes The client specifies the address of the server The server specifies an empty address (the server will find its BT adapter address by itself) The port number can be changed, but must be the same in both client & server The size value indicates the maximum size of a data transfer

Client/Server Communication