User's Guide

© Copyright LM Technologies Ltd Page 16 of 70
www.lm-technologies.com
LM074 SPP with GAP Central Application v1.1
3.5 BLE connection commands:
3.5.1. “AT*LEAUTOSCAN”\r\n
i. Query and set command.
ii. Enable or disable the feature to scan the connected BLE peer
device automatically for its services.
iii. Low energy auto scan query: “AT*LEAUTOSCAN=?”\r\n.
iv. Low energy auto scan query report:
“REP*:LE_AUTOSCAN_SERVER=ON” (Module default setting as
LE-Auto-Scan enabled)
v. Low energy auto scan enable command:
“REP*:LE_AUTOSCAN_SERVER=ON”\r\n. If LE Auto Scan is
enabled, after connection module starts scanning Peer device for
its services and characteristics automatically.
vi. Low energy auto scan disable command:
“REP*:LE_AUTOSCAN_SERVER=OFF”\r\n. If disabled, module
does not scan the Peer device for its services and characteristics
automatically. Module will wait for AT*FindServ command from
user.
3.5.2 “AT*BLECONN”\r\n
i. Query only command.
ii. User can query how many BLE connections module is having and
details for those connections.
iii. Command format is : “AT*BLECONN=?”\r\n
iv. GAP Central application can have maximum 5 BLE connections
simultaneously.
v. Example report for this command shall be as shown below
at*BLECONN=?at*BLECONN=?
OK
REP*:BLE_CONN
= 1 : 3333-33-333333 : 0101
= 2 : 1030-00-5b0012 : 0182
= 3 : 1032-00-5b0002 : 0203
= 4 : Open
= 5 : Open
REP*:BLE_CONN END
vi. The report above shows that the module is now connected with
three devices. The report lists connection ID given by module,
remote device BD-Address and Connection-ID i.e. CID given by
BLE stack.