
User Manual DA14585/586 SDK 6 Software Developer’s Guide UM-B-080 Abstract This document describes the steps required to develop Bluetooth® low energy applications on the SmartBond™ DA1458x Product Family software platform, specifically for the DA14585/586 devices, as supported by the new v6.x SDK series. It guides the developer through a series of examples which build on each other, introducing the key concepts to developing a Bluetooth low energy application with the DA14585/586 software architecture and APIs. UM-B-080 DA14585/586 SDK 6 Software Developer’s Guide Contents Abstract ................................................................................................................................................ 1 Contents ............................................................................................................................................... 2 Figures .................................................................................................................................................. 6 Tables ................................................................................................................................................... 7 1 References ..................................................................................................................................... 8 2 Introduction.................................................................................................................................... 9 2.1 Target Audience .................................................................................................................... 9 2.2 How to Use This Manual ....................................................................................................... 9 3 Getting Started ............................................................................................................................ 10 3.1 Development Environment .................................................................................................. 10 3.2 Software Development Kit (SDK) ........................................................................................ 10 3.3 SmartSnippetsTM Toolbox ................................................................................................... 10 4 Blinky: Your First DA14585/586 Application ............................................................................ 12 4.1 Application Description........................................................................................................ 12 4.2 Hardware Configuration ...................................................................................................... 12 4.3 Running the Example .......................................................................................................... 12 5 Proximity Reporter: Your First Bluetooth Low Energy Application....................................... 14 5.1 Application Description........................................................................................................ 14 5.2 User Interface ...................................................................................................................... 14 5.3 Loading the Project ............................................................................................................. 14 5.4 Going Through the Code..................................................................................................... 16 5.4.1 Basic Operation ................................................................................................... 16 5.4.2 Initialization .......................................................................................................... 16 5.4.3 Events Processing and Callbacks ....................................................................... 17 5.5 BLE Application Abstract Code Flow .................................................................................. 20 5.6 Building the Project for Different Targets and Development Kits ....................................... 22 5.7 Interacting with BLE Application ......................................................................................... 23 5.7.1 LightBlue iOS Application .................................................................................... 23 5.7.2 BLE Scanner Android Application ....................................................................... 24 6 Peripheral Example Applications .............................................................................................. 26 6.1 Introduction ......................................................................................................................... 26 6.2 Software Description ........................................................................................................... 26 6.3 Getting Started .................................................................................................................... 27 6.4 Configuring the UART Interface on a DA1458x DK ............................................................ 27 6.5 Using a Serial Port Terminal with a DA14585/586 DK ....................................................... 27 6.5.1 Connecting to a DA14585/586 DK-Basic ............................................................ 27 6.5.2 Connecting to a DA1458x DK-Pro ....................................................................... 28 6.6 UART (Simple) Example ..................................................................................................... 29 6.6.1 Hardware Configuration ....................................................................................... 29 6.6.2 Running the Example .......................................................................................... 30 6.7 UART2 Asynchronous Example ......................................................................................... 31 6.7.1 Hardware Configuration ....................................................................................... 31 6.7.2 Running the Example .......................................................................................... 31 6.8 SPI Flash Memory Example................................................................................................ 33 User Manual Revision 5.0 14-May-2018 CFR0012 2 of 145 © 2018 Dialog Semiconductor UM-B-080 DA14585/586 SDK 6 Software Developer’s Guide 6.8.1 Hardware Configuration ....................................................................................... 33 6.8.2 Running the Example .......................................................................................... 34 6.9 I2C EEPROM Example ....................................................................................................... 36 6.9.1 Hardware Configuration ....................................................................................... 36 6.9.2 Running the Example .......................................................................................... 36 6.10 Quadrature Decoder Example ............................................................................................ 38 6.10.1 Hardware Configuration ....................................................................................... 38 6.10.2 Running the Example .......................................................................................... 38 6.11 Systick Example .................................................................................................................. 41 6.11.1 Hardware Configuration ....................................................................................... 41 6.11.2 Running the Example .......................................................................................... 41 6.12 TIMER0 (PWM0, PWM1) Example ..................................................................................... 41 6.12.1 Hardware Configuration ....................................................................................... 41 6.12.2 Running the Example .......................................................................................... 42 6.13 TIMER0 General Example .................................................................................................. 42 6.13.1 Hardware Configuration ....................................................................................... 42 6.13.2 Running the Example .......................................................................................... 43 6.14 TIMER2 (PWM2, PWM3, PWM4) Example ........................................................................ 43 6.14.1 Hardware Configuration ....................................................................................... 44 6.14.2 Running the Example .......................................................................................... 44 6.15 Battery Example .................................................................................................................. 46 6.15.1 Hardware Configuration ....................................................................................... 46 6.15.2 Running the Example .......................................................................................... 46 7 Developing Bluetooth Low Energy Applications ..................................................................... 48 7.1 The Seven Pillar Example Applications .............................................................................. 48 7.2 Pillar 1 (Bare Bone) ............................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages145 Page
-
File Size-