User's Guide

© Copyright LM Technologies Ltd Page 3 of 70
www.lm-technologies.com
LM074 SPP with GAP Central Application v1.1
Contents
1. Introduction ......................................................................................... 7
2. Functionality of SPP with GAP Central application .............................. 7
3. LM074 GAP Central Role ...................................................................... 8
3.1 GAP Central AT commands in brief ...................................................... 9
3.2 Enable GAP Central functionality: ...................................................... 11
3.3 BLE discovery commands: ................................................................ 12
3.4 BLE security commands: ................................................................... 15
3.5 BLE connection commands: .............................................................. 16
3.6 BLE Services/characteristic scan commands: ....................................... 20
3.7 BLE read data from Characteristic: .................................................... 22
3.8 BLE write data on Characteristic: ....................................................... 26
4. LM074 AT commands and Default configuration ............................... 32
4.1 AT commands .................................................................................. 33
4.2 Module Settings commands: .............................................................. 35
4.3 UART Settings commands: ................................................................ 39
4.4 Bluetooth Security Settings commands: .............................................. 42
4.5 SPP Related commands: ................................................................... 45
4.6 Firmware Upgrade commands: .......................................................... 49
5. LM074 Over The Air Firmware Upgrade Procedure ......................... 50
5.1 Pre-requisites for Firmware upgrade: ................................................. 50
5.2 Firmware upgrade procedure Flow chart: ........................................... 51
5.3 Possible Failure points and corrective actions ...................................... 53
6. Simple Secure Pairing between LM074 and remote device ............. 61
6.1 Pairing of LM074(BT2.1) with BT2.0 devices ....................................... 61
6.2
Pairing of LM074 (BT2.1) with BT2.1 devices ...................................... 61
7. LED Indication ................................................................................. 64
7.1 Power on LED sequence ................................................................... 64
7.2 LED0 ............................................................................................... 64
7.3 LED1 ............................................................................................... 64
7.4 LED2 ............................................................................................... 65
7.5 Pairing State ..................................................................................... 65
8. Appendix ......................................................................................... 66
8.1 Abbreviations ................................................................................... 66
8.2 BLE Peripheral characteristics ............................................................ 66
8.3 GATT UUID type .............................................................................. 67