© Copyright LM Technologies Ltd Page 30 of 41
www.lm-technologies.com
User Manual for “LM068_BLE_Peri_0204” FW
8 GAP Peripheral Role related AT commands
This section describes the AT commands for the GAP Peripheral role for LM device to
advertise, pair, whitelist and send/receive data on BLE connection.
The BLE adapter enables only BLE connections being as BLE peripheral device.
8.1 GAP Central AT commands in brief
The table below shows the AT commands for the GAP Central role with examples for
reference.
Sr
no
AT command
string
Command
type
Default
setting
AT command format
for reference
1 “AT*LECONFIG” Query
command
-
2 “AT*LESEC”
Query and
set
OFF AT*LESEC=ON
AT*LESEC=OFF
ATLESEC=?
set
command
only
command
8.2 BLE security commands:
8.2.1 “AT*LESEC”\r\n
i. Query and Set command.
ii. LESEC stands for Low Energy Security i.e. whether to apply
whitelist security or not.
iii. Query command to query the setting is “AT*LESEC=?”.
iv. Query report is “REP*:LE_SEC=OFF” or “REP*:LE_SEC=ON”.
v. When LESEC is ON, the advertised packets are scannable only to
only to the whitelist added devices and BLE adapter can connect
to the devices already added to whitelist (i.e. already BLE paired
devices)
vi. When LESEC is OFF, the advertisements by BLE adapter can be
scanned by any GAP-Central device and BLE adapter can accept
connection request from any GAP central device.
Note: If user wants to add a new device in the whitelist of LM
device then while establishing the connection with the device at
first time user should use setting “AT*LESEC=OFF”. This enables
the authentication procedure to start to add a new device to the
white list.