SlideShare a Scribd company logo
1 of 12
Programming IoT Devices
Understanding Bluetooth
Leopoldo Armesto
Senior Lecturer
Universitat Politècnica de València
1
Outline
Material
Worked Instructions
RPCs
Exercises
Light Dimm using RPCs in ThingsBoard
Remotely Controlled RGB using RPCs in ThingsBoard
Remotely Controlled Melody using RPCs in ThingsBoard
Remotely Controlled LEDs using RPCs in ThingsBoard
2
Bluetooth 2.1+EDR & 3.0 HS
Bluetooth 2.1+EDR:
Upto 3Mbps (2.1 Mpbs in practice).
Pairing required
Used by many low-speed microcontrollers to implement a low-cost wireless solution, i.e.: Arduino Uno+HC-05.
Bluetooth 3.0+HS:
Upto 24 Mpbs.
Combined transmission of bluetooth and WiFi. Bluetooth is actually used to stablish the connection, while
transmission is over WiFi (802.11).
Ideal for transmitting data and audio.
3
Bluetooth 4.0
Bluetooth High-Speed is indeed Bluetooth 3.0+HS.
Bluetooth Classic is indeed Bluetooth 2.1+EDR.
Bluetooth Low-Energy:
Device state
Low bandwidth (0.27Mpbs) Y Low consumption
4
Battery Life
Classic Bluetooth has a medium power consumption, compared to Bluetooth BLE. It is connection oriented, link is
mantained, even if there’s no data flowing.
Bluetooth BLE has similar performance to ZigBee (in terms of power consumption).
Bluetooth is a device to device connection, while ZigBee can include multiple wireless nodes in the same network.
ZigBee is a good choice for monitoring networks, i.e.: home automation.
WiFi has much high bandwidth at the cost of higher power consumption.
5
Device Modes
6
Bluetooth BR/EDR (Bluetooth 2.1)
Dual Mode
Single Mode (BLE)
BR/EDR Dual-mode stack Single-mode
Bluetooth LE Connections
7
Link Layer
BLE Generic Access Profile (GAP)
Defines the general topology, i.e.: how two BLE devices can communicate.
GAP modes: Connectable, Discoverable, Bondable.
GAP procedures: Name discovery, device discovery, service discovery, etc.
Roles:
Broadcasting:
Broadcaster: Public advertising data.
Observer: List to data (no required connection).
Connecting:
Peripheral: After connection peripherals no longer broadcast data to other central.
Central: Innitiates the connection.
8
BLE Generic Attribute Profile (GATT)
Defines how data is transmitted once they are connected.
Roles:
Client: Sends request to the GATT server. Can read/write attributes (data) on the server. For instance, our mobile
pone acts as a client when reading data from a IoT device.
Server: Stores attributes. Our IoT device acts as a server, being responsible of storing data (i.e.: temperature).
GATT protocol:
Attributes: List of services and characteristics
Service: Collection of characteristics.
Characteristics: Data
9
GATT Operations:
• Read
• Write
• Notify
• Indicate
UUIDs
Universal Unique Identifier (16bit or 128 bit)
16-bit UUIDs are efficent in time and energy. Regulated by Bluetooth SIG for common services and
characteristics
Heart reate service: 0x180D
Heart Rate Measurement characteristic: 0x2A37
128-bit UUIDs custom devices:
4A98xxxx-1CC4-E7C1-C757-F1267DD021E8
UUID generator tool:
10
https://www.uuidgenerator.net/
Some interesting Services
11
Name UUID Characteristics
Automation I/O 0x1815 Digital, Analog, Aggregate
Battery 0x180F Battery Level
Heart Rate 0x180D Heart Rate Measurement, Body Sensor Location, Heart Rate Control Point
Health Thermometer 0x1809 Temperature Measurement, Temperature Type, Intermediate Temperature, Measurement Interval
Pulse Oximeter 0x1822 PLX Spot-check Measurement, PLX ContinuousMeasurement, PLX Features, Record Access Control Point
Environmental Sensing 0x181A
Wind Direction, Speed, Dew Point, Elevation, Gust Factor, Heat Index, Humidity, Irradiance, Pollen Concentration,
Rainfall, Pressure, Temperature, True Wind Direction, True Wind Speed, UV Index, Wind Chill, Barometric Pressure
Trend, Magnetic Declination,Magnetic Flux Density 2D/3D
Location and Navigation 0x1819 LN Feature, Location and Speed, Position Quality, LN Control Point, Navigation
Blood Pressure 0x1810 Blood Pressure Measurement, Intermediate Cuff Pressure, Blood Pressure Feature
Programming IoT Devices
Understanding Bluetooth
Leopoldo Armesto
Senior Lecturer
Universitat Politècnica de València
12

More Related Content

What's hot

Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detectioniosrjce
 
Intel microprocessor history
Intel microprocessor historyIntel microprocessor history
Intel microprocessor historyRamzi Alqrainy
 
Verification of Four Port Router For NOC
Verification of Four Port Router For NOCVerification of Four Port Router For NOC
Verification of Four Port Router For NOCijsrd.com
 
Attendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQLAttendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQLSanjay Kumar
 
Cse318,lab report
Cse318,lab reportCse318,lab report
Cse318,lab reportFarhadHimel
 
Computer Network 5. Modbus
Computer Network 5. ModbusComputer Network 5. Modbus
Computer Network 5. ModbusFelix Lin
 
How many hosts are there in /24 CIDR
How many hosts are there in  /24 CIDRHow many hosts are there in  /24 CIDR
How many hosts are there in /24 CIDRGaurav Yadav
 
Computer Ports
Computer PortsComputer Ports
Computer PortsNetwax Lab
 
IP fundamentals
IP fundamentals IP fundamentals
IP fundamentals sumit singh
 
Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)Utkarsh Tiwari
 
Data Encoding for Wireless Transmission
Data Encoding for Wireless TransmissionData Encoding for Wireless Transmission
Data Encoding for Wireless TransmissionSean McQuay
 
Implementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and TransmitterImplementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and TransmitterIJERA Editor
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...researchinventy
 
Arduino interfacing with bluetooth.
Arduino interfacing with bluetooth.Arduino interfacing with bluetooth.
Arduino interfacing with bluetooth.Nitish Kumar
 
Wireless router
Wireless routerWireless router
Wireless routerroza921
 
Home Automation System
Home Automation SystemHome Automation System
Home Automation SystemMOHAMMAD TANVEER
 

What's hot (20)

Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
 
Intel microprocessor history
Intel microprocessor historyIntel microprocessor history
Intel microprocessor history
 
Verification of Four Port Router For NOC
Verification of Four Port Router For NOCVerification of Four Port Router For NOC
Verification of Four Port Router For NOC
 
X-CTU Tutorial
X-CTU TutorialX-CTU Tutorial
X-CTU Tutorial
 
Attendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQLAttendance System using ESP8266(Wi-Fi) with MySQL
Attendance System using ESP8266(Wi-Fi) with MySQL
 
Cse318,lab report
Cse318,lab reportCse318,lab report
Cse318,lab report
 
Computer Network 5. Modbus
Computer Network 5. ModbusComputer Network 5. Modbus
Computer Network 5. Modbus
 
How many hosts are there in /24 CIDR
How many hosts are there in  /24 CIDRHow many hosts are there in  /24 CIDR
How many hosts are there in /24 CIDR
 
Computer Ports
Computer PortsComputer Ports
Computer Ports
 
IP fundamentals
IP fundamentals IP fundamentals
IP fundamentals
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)
 
Data Encoding for Wireless Transmission
Data Encoding for Wireless TransmissionData Encoding for Wireless Transmission
Data Encoding for Wireless Transmission
 
Implementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and TransmitterImplementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and Transmitter
 
Ccnafile
CcnafileCcnafile
Ccnafile
 
An hemmanur
An hemmanurAn hemmanur
An hemmanur
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
 
Arduino interfacing with bluetooth.
Arduino interfacing with bluetooth.Arduino interfacing with bluetooth.
Arduino interfacing with bluetooth.
 
Wireless router
Wireless routerWireless router
Wireless router
 
Home Automation System
Home Automation SystemHome Automation System
Home Automation System
 

Similar to Undestanding Bluetooth

Bluetooth 4.0 specification
Bluetooth 4.0 specificationBluetooth 4.0 specification
Bluetooth 4.0 specificationabhiamanchopra
 
Chapter-1.doc
Chapter-1.docChapter-1.doc
Chapter-1.docvenui2
 
Bluetooth
Bluetooth Bluetooth
Bluetooth srinidpi
 
Bluetooth technology
Bluetooth technologyBluetooth technology
Bluetooth technologyAjit Padmarajan
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Naruin
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2ekul
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Kyle
 
Bluetooth Based Smart Sensor Network
Bluetooth Based Smart Sensor NetworkBluetooth Based Smart Sensor Network
Bluetooth Based Smart Sensor NetworkGyanendra Prakash
 
R K 2 Bluetooth Technologies
R K 2  Bluetooth  TechnologiesR K 2  Bluetooth  Technologies
R K 2 Bluetooth TechnologiesSaurav Kumar
 
Module 2_part 2.pptx
Module 2_part 2.pptxModule 2_part 2.pptx
Module 2_part 2.pptxNIKHILAS12
 
05 ble intro
05 ble intro05 ble intro
05 ble introwlasoi lasoi
 
Overview of Bluetooth technology
Overview of Bluetooth technologyOverview of Bluetooth technology
Overview of Bluetooth technologySuman Bhattacharyya
 
Bluetooth Technology By Volkan Sevindik
Bluetooth Technology By Volkan SevindikBluetooth Technology By Volkan Sevindik
Bluetooth Technology By Volkan Sevindikvsevindik
 
Bluetooth Based Smart Sensor Network By SAIKIRAN PANJALA
Bluetooth Based Smart Sensor Network By SAIKIRAN PANJALABluetooth Based Smart Sensor Network By SAIKIRAN PANJALA
Bluetooth Based Smart Sensor Network By SAIKIRAN PANJALASaikiran Panjala
 
Bluetooth
BluetoothBluetooth
Bluetoothrajatmal4
 
Chapter 1 pdf
Chapter 1 pdfChapter 1 pdf
Chapter 1 pdfChAnushaECE
 

Similar to Undestanding Bluetooth (20)

Bluetooth 4.0 specification
Bluetooth 4.0 specificationBluetooth 4.0 specification
Bluetooth 4.0 specification
 
Chapter-1.doc
Chapter-1.docChapter-1.doc
Chapter-1.doc
 
Bluetooth
Bluetooth Bluetooth
Bluetooth
 
Bluetooth technology
Bluetooth technologyBluetooth technology
Bluetooth technology
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2
 
Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2Hcs Topic 3 Peripherals V2
Hcs Topic 3 Peripherals V2
 
Khetarpal
KhetarpalKhetarpal
Khetarpal
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Bluetooth Based Smart Sensor Network
Bluetooth Based Smart Sensor NetworkBluetooth Based Smart Sensor Network
Bluetooth Based Smart Sensor Network
 
R K 2 Bluetooth Technologies
R K 2  Bluetooth  TechnologiesR K 2  Bluetooth  Technologies
R K 2 Bluetooth Technologies
 
Module 2_part 2.pptx
Module 2_part 2.pptxModule 2_part 2.pptx
Module 2_part 2.pptx
 
05 ble intro
05 ble intro05 ble intro
05 ble intro
 
Overview of Bluetooth technology
Overview of Bluetooth technologyOverview of Bluetooth technology
Overview of Bluetooth technology
 
Bluetooth Technology By Volkan Sevindik
Bluetooth Technology By Volkan SevindikBluetooth Technology By Volkan Sevindik
Bluetooth Technology By Volkan Sevindik
 
Bluetooth Based Smart Sensor Network By SAIKIRAN PANJALA
Bluetooth Based Smart Sensor Network By SAIKIRAN PANJALABluetooth Based Smart Sensor Network By SAIKIRAN PANJALA
Bluetooth Based Smart Sensor Network By SAIKIRAN PANJALA
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Chapter 1 pdf
Chapter 1 pdfChapter 1 pdf
Chapter 1 pdf
 

More from Leopoldo Armesto

Variables with Facilino
Variables with FacilinoVariables with Facilino
Variables with FacilinoLeopoldo Armesto
 
USB Serial with Facilino
USB Serial with FacilinoUSB Serial with Facilino
USB Serial with FacilinoLeopoldo Armesto
 
Two-button UI with Facilino
Two-button UI with FacilinoTwo-button UI with Facilino
Two-button UI with FacilinoLeopoldo Armesto
 
ThingsBoard Time-Series and Attributes with Facilino
ThingsBoard Time-Series and Attributes with FacilinoThingsBoard Time-Series and Attributes with Facilino
ThingsBoard Time-Series and Attributes with FacilinoLeopoldo Armesto
 
ThingsBoard RPCs with Facilino
ThingsBoard RPCs with FacilinoThingsBoard RPCs with Facilino
ThingsBoard RPCs with FacilinoLeopoldo Armesto
 
RGB LEDs with Facilino
RGB LEDs with FacilinoRGB LEDs with Facilino
RGB LEDs with FacilinoLeopoldo Armesto
 
RGB LED strips with Facilino
RGB LED strips with FacilinoRGB LED strips with Facilino
RGB LED strips with FacilinoLeopoldo Armesto
 
OLED 128x32 with Facilino
OLED 128x32 with FacilinoOLED 128x32 with Facilino
OLED 128x32 with FacilinoLeopoldo Armesto
 
Light dimmer with Facilino
Light dimmer with FacilinoLight dimmer with Facilino
Light dimmer with FacilinoLeopoldo Armesto
 
IR Receive with Facilino
IR Receive with FacilinoIR Receive with Facilino
IR Receive with FacilinoLeopoldo Armesto
 
Gas sensor with Facilino
Gas sensor with FacilinoGas sensor with Facilino
Gas sensor with FacilinoLeopoldo Armesto
 
Functions and Procedures with Facilino
Functions and Procedures with FacilinoFunctions and Procedures with Facilino
Functions and Procedures with FacilinoLeopoldo Armesto
 
Flow Control with Facilino
Flow Control with FacilinoFlow Control with Facilino
Flow Control with FacilinoLeopoldo Armesto
 
Web-server UI with Facilino
Web-server UI with FacilinoWeb-server UI with Facilino
Web-server UI with FacilinoLeopoldo Armesto
 
DHT11 (Digital Temperature and Humidity) with Facilino
DHT11 (Digital Temperature and Humidity) with FacilinoDHT11 (Digital Temperature and Humidity) with Facilino
DHT11 (Digital Temperature and Humidity) with FacilinoLeopoldo Armesto
 

More from Leopoldo Armesto (20)

Variables with Facilino
Variables with FacilinoVariables with Facilino
Variables with Facilino
 
USB Serial with Facilino
USB Serial with FacilinoUSB Serial with Facilino
USB Serial with Facilino
 
Two-button UI with Facilino
Two-button UI with FacilinoTwo-button UI with Facilino
Two-button UI with Facilino
 
ThingsBoard Time-Series and Attributes with Facilino
ThingsBoard Time-Series and Attributes with FacilinoThingsBoard Time-Series and Attributes with Facilino
ThingsBoard Time-Series and Attributes with Facilino
 
ThingsBoard RPCs with Facilino
ThingsBoard RPCs with FacilinoThingsBoard RPCs with Facilino
ThingsBoard RPCs with Facilino
 
Text with Facilino
Text with FacilinoText with Facilino
Text with Facilino
 
RGB LEDs with Facilino
RGB LEDs with FacilinoRGB LEDs with Facilino
RGB LEDs with Facilino
 
RGB LED strips with Facilino
RGB LED strips with FacilinoRGB LED strips with Facilino
RGB LED strips with Facilino
 
OLED 128x32 with Facilino
OLED 128x32 with FacilinoOLED 128x32 with Facilino
OLED 128x32 with Facilino
 
Maths with Facilino
Maths with FacilinoMaths with Facilino
Maths with Facilino
 
Logic with Facilino
Logic with FacilinoLogic with Facilino
Logic with Facilino
 
Light dimmer with Facilino
Light dimmer with FacilinoLight dimmer with Facilino
Light dimmer with Facilino
 
LDR with Facilino
LDR with FacilinoLDR with Facilino
LDR with Facilino
 
LCDs with Facilino
LCDs with FacilinoLCDs with Facilino
LCDs with Facilino
 
IR Receive with Facilino
IR Receive with FacilinoIR Receive with Facilino
IR Receive with Facilino
 
Gas sensor with Facilino
Gas sensor with FacilinoGas sensor with Facilino
Gas sensor with Facilino
 
Functions and Procedures with Facilino
Functions and Procedures with FacilinoFunctions and Procedures with Facilino
Functions and Procedures with Facilino
 
Flow Control with Facilino
Flow Control with FacilinoFlow Control with Facilino
Flow Control with Facilino
 
Web-server UI with Facilino
Web-server UI with FacilinoWeb-server UI with Facilino
Web-server UI with Facilino
 
DHT11 (Digital Temperature and Humidity) with Facilino
DHT11 (Digital Temperature and Humidity) with FacilinoDHT11 (Digital Temperature and Humidity) with Facilino
DHT11 (Digital Temperature and Humidity) with Facilino
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)Dr. Mazin Mohamed alkathiri
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 

Undestanding Bluetooth

  • 1. Programming IoT Devices Understanding Bluetooth Leopoldo Armesto Senior Lecturer Universitat Politècnica de València 1
  • 2. Outline Material Worked Instructions RPCs Exercises Light Dimm using RPCs in ThingsBoard Remotely Controlled RGB using RPCs in ThingsBoard Remotely Controlled Melody using RPCs in ThingsBoard Remotely Controlled LEDs using RPCs in ThingsBoard 2
  • 3. Bluetooth 2.1+EDR & 3.0 HS Bluetooth 2.1+EDR: Upto 3Mbps (2.1 Mpbs in practice). Pairing required Used by many low-speed microcontrollers to implement a low-cost wireless solution, i.e.: Arduino Uno+HC-05. Bluetooth 3.0+HS: Upto 24 Mpbs. Combined transmission of bluetooth and WiFi. Bluetooth is actually used to stablish the connection, while transmission is over WiFi (802.11). Ideal for transmitting data and audio. 3
  • 4. Bluetooth 4.0 Bluetooth High-Speed is indeed Bluetooth 3.0+HS. Bluetooth Classic is indeed Bluetooth 2.1+EDR. Bluetooth Low-Energy: Device state Low bandwidth (0.27Mpbs) Y Low consumption 4
  • 5. Battery Life Classic Bluetooth has a medium power consumption, compared to Bluetooth BLE. It is connection oriented, link is mantained, even if there’s no data flowing. Bluetooth BLE has similar performance to ZigBee (in terms of power consumption). Bluetooth is a device to device connection, while ZigBee can include multiple wireless nodes in the same network. ZigBee is a good choice for monitoring networks, i.e.: home automation. WiFi has much high bandwidth at the cost of higher power consumption. 5
  • 6. Device Modes 6 Bluetooth BR/EDR (Bluetooth 2.1) Dual Mode Single Mode (BLE) BR/EDR Dual-mode stack Single-mode
  • 8. BLE Generic Access Profile (GAP) Defines the general topology, i.e.: how two BLE devices can communicate. GAP modes: Connectable, Discoverable, Bondable. GAP procedures: Name discovery, device discovery, service discovery, etc. Roles: Broadcasting: Broadcaster: Public advertising data. Observer: List to data (no required connection). Connecting: Peripheral: After connection peripherals no longer broadcast data to other central. Central: Innitiates the connection. 8
  • 9. BLE Generic Attribute Profile (GATT) Defines how data is transmitted once they are connected. Roles: Client: Sends request to the GATT server. Can read/write attributes (data) on the server. For instance, our mobile pone acts as a client when reading data from a IoT device. Server: Stores attributes. Our IoT device acts as a server, being responsible of storing data (i.e.: temperature). GATT protocol: Attributes: List of services and characteristics Service: Collection of characteristics. Characteristics: Data 9 GATT Operations: • Read • Write • Notify • Indicate
  • 10. UUIDs Universal Unique Identifier (16bit or 128 bit) 16-bit UUIDs are efficent in time and energy. Regulated by Bluetooth SIG for common services and characteristics Heart reate service: 0x180D Heart Rate Measurement characteristic: 0x2A37 128-bit UUIDs custom devices: 4A98xxxx-1CC4-E7C1-C757-F1267DD021E8 UUID generator tool: 10 https://www.uuidgenerator.net/
  • 11. Some interesting Services 11 Name UUID Characteristics Automation I/O 0x1815 Digital, Analog, Aggregate Battery 0x180F Battery Level Heart Rate 0x180D Heart Rate Measurement, Body Sensor Location, Heart Rate Control Point Health Thermometer 0x1809 Temperature Measurement, Temperature Type, Intermediate Temperature, Measurement Interval Pulse Oximeter 0x1822 PLX Spot-check Measurement, PLX ContinuousMeasurement, PLX Features, Record Access Control Point Environmental Sensing 0x181A Wind Direction, Speed, Dew Point, Elevation, Gust Factor, Heat Index, Humidity, Irradiance, Pollen Concentration, Rainfall, Pressure, Temperature, True Wind Direction, True Wind Speed, UV Index, Wind Chill, Barometric Pressure Trend, Magnetic Declination,Magnetic Flux Density 2D/3D Location and Navigation 0x1819 LN Feature, Location and Speed, Position Quality, LN Control Point, Navigation Blood Pressure 0x1810 Blood Pressure Measurement, Intermediate Cuff Pressure, Blood Pressure Feature
  • 12. Programming IoT Devices Understanding Bluetooth Leopoldo Armesto Senior Lecturer Universitat Politècnica de València 12