SlideShare a Scribd company logo
1 of 8
Download to read offline
BlueNRG GATT Database
Winfred LU
AMG GCSA
STMicroelectronics
• Generic Attribute Profile (GATT)
• defines how to exchange user data (attributes) over a BLE connection
• Roles
• Client
• sends requests to a server
• performs Service Discovery
to know server’s attributes
• Server
• responds to requests
• stores user data
Generic Attribute Profile (GATT)
Request
Response
Client Server
• Handle
• 16-bit unique identifier
• 0x0001 – 0xFFFF
• Type
• UUID (Universal unique Identifier)
• 128-bit globally unique
• 32/16-bit SIG adopted
• xxxxxxxx-0000-1000-8000-00805F9B34FB
• Permission
• access rights: readable, writable, notifiable,
indicatable
• security level required to access: encryption,
authorization
• Value
• actual data content
• with variable length
• in format according to type
Attribute structure
Handle Type Permission Value
database / profile • Attribute
• There are 3 types of Attributes
• Primary Service
• Secondary Service
• Characteristic
• Attributes are grouped into Services
• Service Definition
• Service Declaration
• 0 or more Characteristics
• Characteristic Definition
• Characteristic Declaration
• Characteristic Value
• 0 or more Descriptors
• Extended Properties Descriptor
• Client Characteristic Configuration Descriptor (CCCD)
• Characteristic User Description Descriptor
Attribute data hierarchy
Characteristic
…
Descriptor
Service
Characteristic
…
Descriptor
Characteristic
…
Descriptor
Service
Characteristic
…
Descriptor
Characteristic
…
Descriptor
ATT database view
5
Handle Type Permissions Value
1 0x2800 (GATT Primary Service) Read 0x1801 (Generic Attribute)
2 0x2803 (Characteristic Declaration) UUID=0x2A05, Handle=0x0003, Properties=0x20
3 0x2a05 (Service Changed) Indicate 0xFFFF0000
4 0x2902 (Client Characteristic Configuration) Read, Write 0x0000
5 0x2800 (GATT Primary Service) Read 0x1800 (Generic Access Profile)
6 0x2803 (Characteristic Declaration) UUID=0x2A00, Handle=0x0007, Properties=0x4E
7 0x2a00 (Device Name) Read, Write wo Rsp, Wrie, S-
Writes
0x74736574 --> “test”
8 0x2803 (Characteristic Declaration) UUID=0x2A01, Handle=0x0009, Properties=0x4E
9 0x2a01 (Appearance) Read, Write wo Rsp, Wrie, S-
Writes
0x0000
A 0x2803 (Characteristic Declaration) UUID=0x2A04, Handle=0x000B, Properties=0x02
B 0x2a04 (Peripheral Preferred Connection
Parameters)
Read 0xFFFF0000 FFFFFFFF
ATT database view in BlueNRG GUI
6
https://www.st.com/en/embedded-software/stsw-bnrgui.html
Handle Value
1 0x1801
2 0x2A05 0003 20
3 0xFFFF0000
4 0x0000
5 0x1800
6 0x2A00 0007 4E
7 0x74736574
8 0x2A01 0009 4E
9 0x0000
A 0x2A04 000B 02
B 0xFFFF0000 FFFFFFFF
ACI_GATT_Read_Handle_Value
7
Bits Field
7:0 0: Broadcast
1: Read
2: Write without Response
3: Write
4: Notify
5: Indicate
6: Authenticated Signed Writes
7: Extended Properties
23:8 Characteristic Value Handle
39:24 Characteristic UUID
• Bluetooth SIG
• Core Spec, Profiles, Assign Numbers
• https://www.bluetooth.com/specifications/specs/
• Intro to Bluetooth Generic Attribute Profile
• Mohammad Afaneh @ Ellisys
• https://www.bluetooth.com/bluetooth-resources/intro-to-bluetooth-gap-gatt/
• Introduction to Bluetooth Low Energy – GATT
• Kevin Townsend @ Adafruit
• https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt
• Getting Started with Bluetooth Low Energy – GATT (Services and Characteristics)
• Kevin Townsend, Carles Cufí, Akiba, Robert Davidson
• https://www.oreilly.com/library/view/getting-started-with/9781491900550/ch04.html
References

More Related Content

What's hot

Introduction to CoAP
Introduction to CoAPIntroduction to CoAP
Introduction to CoAPEMQ
 
User & Device Identity for Microservices @ Netflix Scale
User & Device Identity for Microservices @ Netflix ScaleUser & Device Identity for Microservices @ Netflix Scale
User & Device Identity for Microservices @ Netflix ScaleC4Media
 
Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Febrian ‎
 
Demystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interfaceDemystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interfaceAnalog Devices, Inc.
 
The Future of Authentication for IoT
The Future of Authentication for IoTThe Future of Authentication for IoT
The Future of Authentication for IoTFIDO Alliance
 
AIR Gigabit Fixed Wireless Last Mile Solution
AIR Gigabit Fixed Wireless Last Mile SolutionAIR Gigabit Fixed Wireless Last Mile Solution
AIR Gigabit Fixed Wireless Last Mile SolutionPavle Mikuz
 
Message queuing telemetry transport (mqtt)
Message queuing telemetry transport (mqtt)Message queuing telemetry transport (mqtt)
Message queuing telemetry transport (mqtt)Hamdamboy
 
STP (spanning tree protocol)
STP (spanning tree protocol)STP (spanning tree protocol)
STP (spanning tree protocol)Netwax Lab
 
MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN DeploymentAPNIC
 
Segment Routing for Dummies
Segment Routing for DummiesSegment Routing for Dummies
Segment Routing for DummiesGary Jan
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)Vipin Sahu
 
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment OverviewCISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment OverviewAmeen Wayok
 
MSTP High Level Overview
MSTP High Level OverviewMSTP High Level Overview
MSTP High Level OverviewGary Jan
 

What's hot (20)

Introduction to CoAP
Introduction to CoAPIntroduction to CoAP
Introduction to CoAP
 
User & Device Identity for Microservices @ Netflix Scale
User & Device Identity for Microservices @ Netflix ScaleUser & Device Identity for Microservices @ Netflix Scale
User & Device Identity for Microservices @ Netflix Scale
 
BLE Talk
BLE TalkBLE Talk
BLE Talk
 
Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010
 
Demystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interfaceDemystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interface
 
OSPF Configuration
OSPF ConfigurationOSPF Configuration
OSPF Configuration
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
Lan Switching[1]
Lan Switching[1]Lan Switching[1]
Lan Switching[1]
 
The Future of Authentication for IoT
The Future of Authentication for IoTThe Future of Authentication for IoT
The Future of Authentication for IoT
 
AIR Gigabit Fixed Wireless Last Mile Solution
AIR Gigabit Fixed Wireless Last Mile SolutionAIR Gigabit Fixed Wireless Last Mile Solution
AIR Gigabit Fixed Wireless Last Mile Solution
 
Message queuing telemetry transport (mqtt)
Message queuing telemetry transport (mqtt)Message queuing telemetry transport (mqtt)
Message queuing telemetry transport (mqtt)
 
STP (spanning tree protocol)
STP (spanning tree protocol)STP (spanning tree protocol)
STP (spanning tree protocol)
 
EtherChannel Configuration
EtherChannel ConfigurationEtherChannel Configuration
EtherChannel Configuration
 
MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN Deployment
 
Segment Routing for Dummies
Segment Routing for DummiesSegment Routing for Dummies
Segment Routing for Dummies
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)
 
OSPF v3
OSPF v3OSPF v3
OSPF v3
 
6lowpan introduction
6lowpan introduction6lowpan introduction
6lowpan introduction
 
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment OverviewCISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
 
MSTP High Level Overview
MSTP High Level OverviewMSTP High Level Overview
MSTP High Level Overview
 

Similar to BLE GATT Database

Ble overview and_implementation
Ble overview and_implementationBle overview and_implementation
Ble overview and_implementationStanley Chang
 
#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap Workshop#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap WorkshopPebble Technology
 
Taking Control of your Bluetooth Devices
Taking Control of your Bluetooth DevicesTaking Control of your Bluetooth Devices
Taking Control of your Bluetooth DevicesHelen Sherwood-Taylor
 
x86_system_architecture.pptx
x86_system_architecture.pptxx86_system_architecture.pptx
x86_system_architecture.pptxAtul Vaish
 
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015Tobias Koprowski
 
Cisco spa303 data sheet
Cisco spa303   data sheetCisco spa303   data sheet
Cisco spa303 data sheetkaka010
 
Cisco 900 Series Integrated Services Routers Datasheet
Cisco 900 Series Integrated Services Routers DatasheetCisco 900 Series Integrated Services Routers Datasheet
Cisco 900 Series Integrated Services Routers Datasheet美兰 曾
 
Using Data Queues in Modern Applications
Using Data Queues in Modern ApplicationsUsing Data Queues in Modern Applications
Using Data Queues in Modern ApplicationsCarsten Flensburg
 
Percona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 SecurityPercona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 SecurityGeorgi Kodinov
 
010 sa302 aaa+ldap
010 sa302 aaa+ldap010 sa302 aaa+ldap
010 sa302 aaa+ldapBabaa Naya
 
Hardware and Networking training
Hardware and Networking trainingHardware and Networking training
Hardware and Networking trainingCMS Computer
 
010 sa302 aaa+ldap
010 sa302 aaa+ldap010 sa302 aaa+ldap
010 sa302 aaa+ldapBabaa Naya
 
Attacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocolAttacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocolCysinfo Cyber Security Community
 
智能LoRa网关使用说明 (1).docx
智能LoRa网关使用说明 (1).docx智能LoRa网关使用说明 (1).docx
智能LoRa网关使用说明 (1).docxSasikanth74
 
Diameter Presentation
Diameter PresentationDiameter Presentation
Diameter PresentationBeny Haddad
 
Introduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyIntroduction to Bluetooth Low Energy
Introduction to Bluetooth Low Energyyeokm1
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 

Similar to BLE GATT Database (20)

Ble overview and_implementation
Ble overview and_implementationBle overview and_implementation
Ble overview and_implementation
 
#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap Workshop#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap Workshop
 
Taking Control of your Bluetooth Devices
Taking Control of your Bluetooth DevicesTaking Control of your Bluetooth Devices
Taking Control of your Bluetooth Devices
 
x86_system_architecture.pptx
x86_system_architecture.pptxx86_system_architecture.pptx
x86_system_architecture.pptx
 
AAA in a nutshell
AAA in a nutshellAAA in a nutshell
AAA in a nutshell
 
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
 
Cisco spa303 data sheet
Cisco spa303   data sheetCisco spa303   data sheet
Cisco spa303 data sheet
 
Cisco 900 Series Integrated Services Routers Datasheet
Cisco 900 Series Integrated Services Routers DatasheetCisco 900 Series Integrated Services Routers Datasheet
Cisco 900 Series Integrated Services Routers Datasheet
 
AAA Implementation
AAA ImplementationAAA Implementation
AAA Implementation
 
Using Data Queues in Modern Applications
Using Data Queues in Modern ApplicationsUsing Data Queues in Modern Applications
Using Data Queues in Modern Applications
 
Percona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 SecurityPercona Live Europe 2018: What's New in MySQL 8.0 Security
Percona Live Europe 2018: What's New in MySQL 8.0 Security
 
010 sa302 aaa+ldap
010 sa302 aaa+ldap010 sa302 aaa+ldap
010 sa302 aaa+ldap
 
Hardware and Networking training
Hardware and Networking trainingHardware and Networking training
Hardware and Networking training
 
010 sa302 aaa+ldap
010 sa302 aaa+ldap010 sa302 aaa+ldap
010 sa302 aaa+ldap
 
Attacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocolAttacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocol
 
Php forum2015 tomas_final
Php forum2015 tomas_finalPhp forum2015 tomas_final
Php forum2015 tomas_final
 
智能LoRa网关使用说明 (1).docx
智能LoRa网关使用说明 (1).docx智能LoRa网关使用说明 (1).docx
智能LoRa网关使用说明 (1).docx
 
Diameter Presentation
Diameter PresentationDiameter Presentation
Diameter Presentation
 
Introduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyIntroduction to Bluetooth Low Energy
Introduction to Bluetooth Low Energy
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 

BLE GATT Database

  • 1. BlueNRG GATT Database Winfred LU AMG GCSA STMicroelectronics
  • 2. • Generic Attribute Profile (GATT) • defines how to exchange user data (attributes) over a BLE connection • Roles • Client • sends requests to a server • performs Service Discovery to know server’s attributes • Server • responds to requests • stores user data Generic Attribute Profile (GATT) Request Response Client Server
  • 3. • Handle • 16-bit unique identifier • 0x0001 – 0xFFFF • Type • UUID (Universal unique Identifier) • 128-bit globally unique • 32/16-bit SIG adopted • xxxxxxxx-0000-1000-8000-00805F9B34FB • Permission • access rights: readable, writable, notifiable, indicatable • security level required to access: encryption, authorization • Value • actual data content • with variable length • in format according to type Attribute structure Handle Type Permission Value
  • 4. database / profile • Attribute • There are 3 types of Attributes • Primary Service • Secondary Service • Characteristic • Attributes are grouped into Services • Service Definition • Service Declaration • 0 or more Characteristics • Characteristic Definition • Characteristic Declaration • Characteristic Value • 0 or more Descriptors • Extended Properties Descriptor • Client Characteristic Configuration Descriptor (CCCD) • Characteristic User Description Descriptor Attribute data hierarchy Characteristic … Descriptor Service Characteristic … Descriptor Characteristic … Descriptor Service Characteristic … Descriptor Characteristic … Descriptor
  • 5. ATT database view 5 Handle Type Permissions Value 1 0x2800 (GATT Primary Service) Read 0x1801 (Generic Attribute) 2 0x2803 (Characteristic Declaration) UUID=0x2A05, Handle=0x0003, Properties=0x20 3 0x2a05 (Service Changed) Indicate 0xFFFF0000 4 0x2902 (Client Characteristic Configuration) Read, Write 0x0000 5 0x2800 (GATT Primary Service) Read 0x1800 (Generic Access Profile) 6 0x2803 (Characteristic Declaration) UUID=0x2A00, Handle=0x0007, Properties=0x4E 7 0x2a00 (Device Name) Read, Write wo Rsp, Wrie, S- Writes 0x74736574 --> “test” 8 0x2803 (Characteristic Declaration) UUID=0x2A01, Handle=0x0009, Properties=0x4E 9 0x2a01 (Appearance) Read, Write wo Rsp, Wrie, S- Writes 0x0000 A 0x2803 (Characteristic Declaration) UUID=0x2A04, Handle=0x000B, Properties=0x02 B 0x2a04 (Peripheral Preferred Connection Parameters) Read 0xFFFF0000 FFFFFFFF
  • 6. ATT database view in BlueNRG GUI 6 https://www.st.com/en/embedded-software/stsw-bnrgui.html
  • 7. Handle Value 1 0x1801 2 0x2A05 0003 20 3 0xFFFF0000 4 0x0000 5 0x1800 6 0x2A00 0007 4E 7 0x74736574 8 0x2A01 0009 4E 9 0x0000 A 0x2A04 000B 02 B 0xFFFF0000 FFFFFFFF ACI_GATT_Read_Handle_Value 7 Bits Field 7:0 0: Broadcast 1: Read 2: Write without Response 3: Write 4: Notify 5: Indicate 6: Authenticated Signed Writes 7: Extended Properties 23:8 Characteristic Value Handle 39:24 Characteristic UUID
  • 8. • Bluetooth SIG • Core Spec, Profiles, Assign Numbers • https://www.bluetooth.com/specifications/specs/ • Intro to Bluetooth Generic Attribute Profile • Mohammad Afaneh @ Ellisys • https://www.bluetooth.com/bluetooth-resources/intro-to-bluetooth-gap-gatt/ • Introduction to Bluetooth Low Energy – GATT • Kevin Townsend @ Adafruit • https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt • Getting Started with Bluetooth Low Energy – GATT (Services and Characteristics) • Kevin Townsend, Carles Cufí, Akiba, Robert Davidson • https://www.oreilly.com/library/view/getting-started-with/9781491900550/ch04.html References