User's Guide

© Copyright LM Technologies Ltd Page 18 of 70
www.lm-technologies.com
LM074 SPP with GAP Central Application v1.1
ix. If the module is successfully connected to a remote device it will
show a report with details about the connection. E.g.
“REP*:BLE_CONNECTED:=1030-00-5b0012-0 : 1 : 0080 : 0017 :
0008”\r\n
x. Here report includes extra information for the connection details
as below.
a. 1030-00-5b0012 is BD address of the remote BLE device.
b. -0 with the address mentions Address type of remote BLE
device.
c. TYPED_BDADDR_PUBLIC is noted as 0,
TYPED_BDADDR_RANDOM is noted as 1.
d. 1 indicates Connection ID given by LM074 module (refer to
BLEconn=? report).
e. 0080 mentions CID given by BLE stack (hex value 0x0080).
f. 0017 is MTU i. e. Maximum Transfer Unit for this BLE
connection (hex value 0x0017).
g. 0008 is Connection configuration flag (hex value 0x0008)
xi. User should take note of MTU mentioned in connection report,
while reading and writing data on this device, using one command
(rdcahval/wrworesp etc) up to MTU number of bytes can be
sent/received. If user need to read/write more than MTU number
of bytes, it needs two commands.
at*leconn=1030005b0012at*leconn=1030005b0012
OK
REP*:BLE_CONNECTED:=1030-00-5b0012-0 : 1 : 0080 : 0017
: 0008
BLE Auth start
OK
REP*:SERVICE START: =1030-00-5b0012
= 1 : 1801 : 0001 : 0004
= 2 : 1800 : 0005 : 000b
= 3 : 180d : 000c : 0013
= 4 : 180f : 0014 : 0017
REP*:BLE_PAIR=1030-00-5b0012,Success
= 5 : 00001016d10211e19b2300025b00a5a5 : 0018 : 0021
= 6 : 180a : 0022 : ffff
REP*:SERVICE END: =1030-00-5b0012
xii. BLE Pairing:
a. After module is connected with Peer device, If LESEC i.e. LE
Security is OFF, module starts BLE Authentication process and
Shows message “BLE Auth start” to indicate start of
authentication process.
b. If LESEC is ON, module will report or connect to only with
previously Paired devices which are present in its whitelist.
c. Pairing Success or Failure indication report is given to user as
“REP*:BLE_PAIR=1030-00-5b0012,Success” or
“REP*:BLE_PAIR=1030-00-5b0012,Fail” .