Silicon Labs
TABLE OF CONTENTS
1 Introduction ..................................................................................................................................................4
2 What is Bluetooth Low Energy Technology? ...........................................................................................5
3 Typical Bluetooth 4.0 Application Architecture .......................................................................................6
3.1 Overview ...............................................................................................................................................6
3.2 What is a Profile? ..................................................................................................................................7
3.3 What Is a Service? ................................................................................................................................8
3.4 What is a Characteristic? ......................................................................................................................9
3.5 Relationship Between Profiles, Services and Characteristics ........................................................... 10
4 Introduction to the Bluegiga Bluetooth Low Energy Software ............................................................ 11
4.1 The Bluetooth Low Energy Stack ...................................................................................................... 11
4.2 The Bluetooth Low Energy SDK ........................................................................................................ 11
4.3 The BGAPI Protocol .......................................................................................................................... 13
4.4 The BGLib Host Library ..................................................................................................................... 14
4.5 BGScriptTM Scripting Language ......................................................................................................... 15
4.6 The Profile Toolkit .............................................................................................................................. 16
5 Heart Rate Profile v1.0 ............................................................................................................................. 17
5.1 Description ......................................................................................................................................... 17
5.2 Service requirements ......................................................................................................................... 17
5.3 Heart Rate Service requirements ...................................................................................................... 18
5.4 Device Information Service requirements .......................................................................................... 18
5.5 Other requirements ............................................................................................................................ 18
5.6 Connection establishment requirement ............................................................................................. 19
5.7 Security requirements ........................................................................................................................ 20
6 Implementing a Heart Rate Sensor ......................................................................................................... 21
6.1 Creating a project .............................................................................................................................. 22
6.2 Hardware configuration ...................................................................................................................... 23
6.3 Heart Rate Profile GATT database .................................................................................................... 24
6.4 Writing BGScript application .............................................................................................................. 29
6.5 Compiling and Installing the Firmware .............................................................................................. 33
6.6 Testing the Heart Rate Sensor .......................................................................................................... 37
6.7 Testing with BLEGUI ......................................................................................................................... 37
7 Debugging Heart Rate sensor code ....................................................................................................... 44
8 External resources ................................................................................................................................... 47