没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
110页
DA1458x DA14580 官方开发手册 介绍 本文档旨在通过对如何开发蓝牙低能耗标准应用程序一步一步的实际理解,为嵌入式软件开发人员提供指导。 利用芯片上的da1458x系统体系结构(SoC)集成电路(IC)设备,家庭组成的DA14580 / 581/583,通过它的开发环境和工具链。 3.1的目标受众 这是嵌入式软件开发文档,也被称为嵌入式固件工程师,工作在任何的smartbond™da1458x系列产品是基于芯片的da1458x系统设备开发应用平台(SOC)。 开发商是在芯片系统(SoC)的da1458x新平台应先阅读参考文献[ 6 ],特别是第一章,然后扫描通过参考文件的其余部分,既熟悉软件平台和学习的地方,需要找到特定的信息。然后花一些时间阅读本指南的章节。 有经验的嵌入式固件工程师在查阅了参考文献6的内容之后,可以专注于本文档中的支柱示例,然后深入研究SDK和更详细的技术文档。这应该可以得到一个清晰的概念如何应用程序的开发和执行®对话框的da1458x蓝牙低能量的设备以及如何最好地利用对话框的da1458x SOC平台提供的能力。
资源推荐
资源详情
资源评论
User Manual
DA1458x Software Developer’s
Guide
UM-B-050
Abstract
This document describes the steps required to develop BLE applications on the SmartBond™
DA1458x Product Family software platform, specifically for the DA14580/581/583 devices, as
supported by the new v5.x SDK series. It guides the developer through a number of pillar examples,
acquainting in the developing of BLE applications on the DA1458x software architecture and APIs.
UM-B-050
DA1458x Software Developer’s Guide
User Manual
Revision 1.1
22-Jul-2016
CFR0012
2 of 110
© 2016 Dialog Semiconductor
Contents
Abstract ................................................................................................................................................ 1
Contents ............................................................................................................................................... 2
Figures .................................................................................................................................................. 5
Tables ................................................................................................................................................... 7
1 Terms and Definitions ................................................................................................................... 8
2 References ..................................................................................................................................... 8
3 Introduction .................................................................................................................................... 9
3.1 Target Audience .................................................................................................................... 9
3.2 How to Use This Manual ....................................................................................................... 9
4 Getting Started............................................................................................................................. 10
4.1 Development Environment .................................................................................................. 10
4.2 Software Development Kit (SDK) ........................................................................................ 10
4.3 Tools.................................................................................................................................... 10
4.4 SmartSnippets Toolbox ....................................................................................................... 10
4.5 Connection Manager ........................................................................................................... 11
5 Blinky: Your First DA1458x Application ................................................................................... 12
5.1 Application Description ........................................................................................................ 12
5.2 Hardware Configuration ...................................................................................................... 12
5.3 Running the Example .......................................................................................................... 12
6 Proximity Reporter: Your First Bluetooth Low Energy Application ....................................... 14
6.1 Application Description ........................................................................................................ 14
6.2 Basic Operation ................................................................................................................... 14
6.3 User Interface ...................................................................................................................... 14
6.4 Loading the Project ............................................................................................................. 15
6.5 Going Through the Code..................................................................................................... 16
6.6 Initialization ......................................................................................................................... 16
6.7 Events Processing and Callbacks ....................................................................................... 16
6.8 BLE Application Abstract Code Flow .................................................................................. 18
6.9 Building the Project for Different Targets and Development Kits........................................ 19
6.10 Interacting with BLE Application ......................................................................................... 20
6.11 LightBlue iOS Application ................................................................................................... 20
7 Peripheral Example Applications .............................................................................................. 21
7.1 Introduction ......................................................................................................................... 21
7.2 Software Description ........................................................................................................... 21
7.3 Getting Started .................................................................................................................... 22
7.4 Configuring the UART Interface on a DA1458x DK ............................................................ 22
7.5 DA1458x DK-Basic ............................................................................................................. 22
7.6 DA1458x DK-Pro ................................................................................................................. 22
7.7 Using a Serial Port Terminal with a DA1458x DK ............................................................... 22
7.8 Connecting to a DA1458x DK-Basic ................................................................................... 22
7.9 Connecting to a DA1458x DK-Pro ...................................................................................... 23
7.10 UART (Simple) Example ..................................................................................................... 24
7.11 Hardware Configuration ...................................................................................................... 24
7.12 Running the Example .......................................................................................................... 25
UM-B-050
DA1458x Software Developer’s Guide
User Manual
Revision 1.1
22-Jul-2016
CFR0012
3 of 110
© 2016 Dialog Semiconductor
7.13 UART2 Asynchronous Example ......................................................................................... 26
7.14 Hardware Configuration ...................................................................................................... 26
7.15 Running the Example .......................................................................................................... 26
7.16 SPI Flash Memory Example ............................................................................................... 28
7.17 Hardware Configuration ...................................................................................................... 28
7.18 Running the Example .......................................................................................................... 29
7.19 I2C EEPROM Example ....................................................................................................... 31
7.20 Hardware Configuration ...................................................................................................... 31
7.21 Running the Example .......................................................................................................... 31
7.22 Quadrature Decoder Example ............................................................................................ 33
7.23 Hardware Configuration ...................................................................................................... 33
7.24 Running the Example .......................................................................................................... 33
7.25 Systick Example .................................................................................................................. 35
7.26 Hardware Configuration ...................................................................................................... 35
7.27 Running the Example .......................................................................................................... 35
7.28 TIMER0 (PWM0, PWM1) Example ..................................................................................... 36
7.29 Hardware Configuration ...................................................................................................... 36
7.30 Running the Example .......................................................................................................... 36
7.31 TIMER0 General Example .................................................................................................. 37
7.32 Hardware Configuration ...................................................................................................... 37
7.33 Running the Example .......................................................................................................... 37
7.34 TIMER2 (PWM2, PWM3, PWM4) Example ........................................................................ 38
7.35 Hardware Configuration ...................................................................................................... 38
7.36 Running the Example .......................................................................................................... 38
7.37 Battery Example .................................................................................................................. 40
7.38 Hardware Configuration ...................................................................................................... 40
7.39 Running the Example .......................................................................................................... 40
8 Developing Bluetooth Low Energy Applications ..................................................................... 41
8.1 The Seven Pillar Example Applications .............................................................................. 41
8.2 Pillar 1 (Bare Bone) ............................................................................................................. 42
8.3 Application Description ........................................................................................................ 42
8.4 Basic Operation ................................................................................................................... 42
8.5 User Interface ...................................................................................................................... 42
8.6 Loading the Project ............................................................................................................. 43
8.7 Going Through the Code..................................................................................................... 44
8.8 Initialization ......................................................................................................................... 44
8.9 Events Processing and Callbacks ....................................................................................... 44
8.10 BLE Application Abstract Code Flow .................................................................................. 46
8.11 Building the Project for Different Targets and Development Kits........................................ 47
8.12 Interacting with BLE Application ......................................................................................... 48
8.13 LightBlue iOS ...................................................................................................................... 48
8.14 Pillar 2 (Custom Profile) ...................................................................................................... 49
8.15 Application Description ........................................................................................................ 49
8.16 Basic Operation ................................................................................................................... 49
8.17 User Interface ...................................................................................................................... 49
8.18 Loading the project .............................................................................................................. 50
8.19 Going Through the Code..................................................................................................... 51
UM-B-050
DA1458x Software Developer’s Guide
User Manual
Revision 1.1
22-Jul-2016
CFR0012
4 of 110
© 2016 Dialog Semiconductor
8.20 Initialization ......................................................................................................................... 51
8.21 Events Processing and Callbacks ....................................................................................... 51
8.22 BLE Application Abstract Code Flow .................................................................................. 53
8.23 Building the Project for Different Targets and Development Kits........................................ 53
8.24 Interacting with BLE Application ......................................................................................... 55
8.25 LightBlue iOS ...................................................................................................................... 55
8.26 Pillar 3 (Peripheral) ............................................................................................................. 56
8.27 Application Description ........................................................................................................ 56
8.28 Basic Operation ................................................................................................................... 56
8.29 User Interface ...................................................................................................................... 56
8.30 Loading the Project ............................................................................................................. 57
8.31 Going Through the Code..................................................................................................... 58
8.32 Initialization ......................................................................................................................... 58
8.33 Events Processing and Callbacks ....................................................................................... 58
8.34 BLE Application Abstract Code Flow .................................................................................. 60
8.35 Building the Project for Different Targets and Development Kits........................................ 61
8.36 Interacting with BLE Application ......................................................................................... 62
8.37 LightBlue iOS ...................................................................................................................... 62
8.38 Pillar 4 (Security) ................................................................................................................. 63
8.39 Application Description ........................................................................................................ 63
8.40 Basic Operation ................................................................................................................... 63
8.41 User Interface ...................................................................................................................... 63
8.42 Loading the Project ............................................................................................................. 63
8.43 Going Through the Code..................................................................................................... 65
8.44 Initialization ......................................................................................................................... 65
8.45 Events Processing and Callbacks ....................................................................................... 66
8.46 BLE Application Abstract Code Flow .................................................................................. 68
8.47 Building the Project for Different Targets and Development Kits........................................ 70
8.48 Interacting with BLE Application ......................................................................................... 71
8.49 LightBlue iOS ...................................................................................................................... 71
8.50 Pillar 5 (Sleep Mode) ........................................................................................................... 74
8.51 Application Description ........................................................................................................ 74
8.52 Basic Operation ................................................................................................................... 74
8.53 User Interface ...................................................................................................................... 75
8.54 Loading the Project ............................................................................................................. 76
8.55 Going Through the Code..................................................................................................... 77
8.56 Initialization ......................................................................................................................... 77
8.57 Events Processing and Callbacks ....................................................................................... 77
8.58 BLE Application Abstract Code Flow .................................................................................. 79
8.59 Building the Project for Different Targets and Development Kits........................................ 80
8.60 Interacting with BLE Application ......................................................................................... 81
8.61 LightBlue iOS ...................................................................................................................... 81
8.62 Pillar 6 (OTA) ...................................................................................................................... 82
8.63 Application Description ........................................................................................................ 82
8.64 Basic Operation ................................................................................................................... 82
8.65 User Interface ...................................................................................................................... 83
8.66 Loading the Project ............................................................................................................. 84
UM-B-050
DA1458x Software Developer’s Guide
User Manual
Revision 1.1
22-Jul-2016
CFR0012
5 of 110
© 2016 Dialog Semiconductor
8.67 Going Through the Code..................................................................................................... 85
8.68 Initialization ......................................................................................................................... 85
8.69 Events Processing and Callbacks ....................................................................................... 85
8.70 BLE Application Abstract Code Flow .................................................................................. 87
8.71 Building the Project for Different Targets and Development Kits........................................ 87
8.72 Interacting with BLE Application ......................................................................................... 88
8.73 LightBlue iOS ...................................................................................................................... 88
8.74 SUOTA Application ............................................................................................................. 89
8.75 Pillar 7 (All in One) .............................................................................................................. 90
8.76 Application Description ........................................................................................................ 90
8.77 Basic Operation ................................................................................................................... 90
8.78 User Interface ...................................................................................................................... 91
8.79 Loading the Project ............................................................................................................. 92
8.80 Going Through the Code..................................................................................................... 93
8.81 Initialization ......................................................................................................................... 93
8.82 Events Processing and Callbacks ....................................................................................... 94
8.83 BLE Application Abstract Code Flow .................................................................................. 97
8.84 Building the Project for Different Targets and Development Kits........................................ 98
8.85 Interacting with BLE Application ......................................................................................... 99
8.86 LightBlue iOS ...................................................................................................................... 99
9 Creating Your BLE Application ................................................................................................ 100
9.1 Using the Empty Project Template ................................................................................... 100
9.2 Configuring Your Application ............................................................................................ 102
9.3 Using the API .................................................................................................................... 103
9.4 GAP API ............................................................................................................................ 103
9.5 Profile API ......................................................................................................................... 103
9.6 Peripheral Interface ........................................................................................................... 103
9.7 Sleep Mode API ................................................................................................................ 104
9.8 Application Description ...................................................................................................... 105
9.9 Basic Operation ................................................................................................................. 105
9.10 User Interface .................................................................................................................... 105
9.11 Loading the Project ........................................................................................................... 105
9.12 Going Through the Code................................................................................................... 106
9.13 Initialization ....................................................................................................................... 106
9.14 Events Processing and Callbacks ..................................................................................... 106
9.15 BLE Application Abstract Code Flow ................................................................................ 108
9.16 Building the Project for Different Targets and Development Kits...................................... 108
Revision History .............................................................................................................................. 109
Figures
Figure 1: Blinky Example Output Console ........................................................................................... 12
Figure 2: Proximity Reporter Keil Project Layout ................................................................................ 15
Figure 3: Proximity Reporter - User Application Code Flow ................................................................ 18
Figure 4: Building the Project for Different Targets ............................................................................. 19
Figure 5: Development Kit Selection for Proximity Reporter Application ............................................ 19
Figure 6: LightBlue Application Connected to Proximity Reporter Application ................................... 20
Figure 7: DA1458x DK - Basic Virtual COM Port ................................................................................ 23
剩余109页未读,继续阅读
资源评论
导数题
- 粉丝: 175
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功