User's Guide

Table Of Contents
EZ-Serial BLE Firmware Platform User Guide, Doc. No. 002-11259 Rev. *E 3
Contents
1. Introduction .................................................................................................................................................................... 5
1.1 How to Use This Guide .......................................................................................................................................... 5
1.2 Block Diagram ....................................................................................................................................................... 6
1.3 Functional Overview .............................................................................................................................................. 7
1.4 Cypress BLE Device Support ................................................................................................................................ 8
2. Getting Started ............................................................................................................................................................... 9
2.1 Prerequisites.......................................................................................................................................................... 9
2.2 Factory Default Behavior ....................................................................................................................................... 9
2.3 Connecting a Host Device ................................................................................................................................... 10
2.4 Communicating with a Host Device ..................................................................................................................... 13
2.5 Configuration Settings, Storage, and Protection .................................................................................................. 25
2.6 Where to Find Related Material ........................................................................................................................... 27
3. Operational Examples ................................................................................................................................................. 28
3.1 System Setup Examples ..................................................................................................................................... 28
3.2 Cable Replacement Examples with CYSPP ........................................................................................................ 37
3.3 Remote Control Examples with CYCommand ..................................................................................................... 41
3.4 GAP Peripheral Examples ................................................................................................................................... 43
3.5 GAP Central Examples ........................................................................................................................................ 47
3.6 GATT Server Examples ....................................................................................................................................... 50
3.7 GATT Client Examples ........................................................................................................................................ 57
3.8 Security and Encryption Examples ...................................................................................................................... 60
3.9 Beacon Examples ................................................................................................................................................ 66
3.10 Performance Testing Examples........................................................................................................................... 67
3.11 Device Firmware Update Examples .................................................................................................................... 71
4. Application Design Examples .................................................................................................................................... 73
4.1 Smart MCU Host with 4-Wire UART and Full GPIO Connections ....................................................................... 73
4.2 Dumb Terminal Host with CYSPP and Simple GPIO State Indication ................................................................. 74
4.3 Module-Only Application with Beacon Functionality ............................................................................................ 75
5. Host API Library .......................................................................................................................................................... 76
5.1 Host API Library Overview................................................................................................................................... 76
5.2 Implementing a Project Using the Host API Library ............................................................................................. 77
5.3 Porting the Host API Library to Different Platforms .............................................................................................. 80
5.4 Using the API Definition JSON File to Create a Custom Library .......................................................................... 81
6. Troubleshooting .......................................................................................................................................................... 82
6.1 UART Communication Issues.............................................................................................................................. 82

Summary of content (241 pages)