LM Technologies LM400 Installation manual

LM Technologies Ltd.
AT Command Manual
Applicable for Firmware version 4.5X, 4.6X, 6.5X, 6.1X
Revision
Date
Name
Description
v1.0
21-07-2009
Kanwal
Initial Draft version
v1.1
24-09-2009
Kanwal
New AT command added
v1.2
15-06-2010
Kanwal
Applicable to firmware v4.53, v4.61
v1.3
22-03-2011
Sumeet
Updates for firmware v6.51
v1.4
10-06-2011
Kanwal
Commands added for v6.17 firmware,
new sections added.
v1.5
13-03-2013
Sumeet
Add AT+RICD description

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 2 of 26
Contents
1 Introduction ............................................................................................................................... 4
2 AT command Set ........................................................................................................................ 4
2.1 History................................................................................................................................ 4
2.2 Terminology ....................................................................................................................... 4
2.3 Command format ............................................................................................................... 4
2.4 Command Response........................................................................................................... 5
2.5 Host Events ........................................................................................................................ 5
2.6 Operation Mode ................................................................................................................. 5
2.7 Command Types................................................................................................................. 5
2.8 Command Description ........................................................................................................ 6
2.8.1 AT............................................................................................................................... 6
2.8.2 AT+VER ....................................................................................................................... 6
2.8.3 AT+ENQ ...................................................................................................................... 7
2.8.4 AT+RESET.................................................................................................................... 7
2.8.5 AT+BAUD.................................................................................................................... 7
2.8.6 AT+STOP ..................................................................................................................... 8
2.8.7 AT+PAR....................................................................................................................... 8
2.8.8 AT+FLOW.................................................................................................................... 9
2.8.9 AT+ECHO .................................................................................................................... 9
2.8.10 AT+RESP ................................................................................................................... 10
2.8.11 AT+MODEM.............................................................................................................. 10
2.8.12 AT+RICD.................................................................................................................... 12
2.8.13 AT+ROLE ................................................................................................................... 12
2.8.14 AT+ADDR .................................................................................................................. 13
2.8.15 AT+FIND.................................................................................................................... 13

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 3 of 26
2.8.16 AT+RSSI..................................................................................................................... 13
2.8.17 AT+NAME ................................................................................................................. 14
2.8.18 AT+PIN...................................................................................................................... 14
2.8.19 AT+DCOV .................................................................................................................. 15
2.8.20 AT+CONN.................................................................................................................. 15
2.8.21 AT+DROP .................................................................................................................. 16
2.8.22 AT+BOND.................................................................................................................. 16
2.8.23 AT+ACON.................................................................................................................. 17
2.8.24 AT+ESC ..................................................................................................................... 17
2.8.25 AT+AUTO .................................................................................................................. 17
2.8.26 AT+RCFG................................................................................................................... 18
2.8.27 AT+SLEEP .................................................................................................................. 18
2.8.28 AT+DPIN ................................................................................................................... 18
2.8.29 AT+IOTYPE ................................................................................................................ 19
2.8.30 AT+MITM.................................................................................................................. 20
2.8.31 AT+PASSCFM ............................................................................................................ 20
2.8.32 AT+PASSKEY.............................................................................................................. 21
2.9 Host Events Description.................................................................................................... 21
2.9.1 Connection Events .................................................................................................... 21
2.9.2 Dynamic Pin Code Event ........................................................................................... 21
2.9.3 Bluetooth 2.1 Security events ................................................................................... 22
2.10 Bluetooth Security Changes .............................................................................................. 23
2.10.1 Bluetooth 2.1 Security Methods................................................................................ 23
2.10.2 Security Options ....................................................................................................... 23
2.11 Default Factory Settings.................................................................................................... 26

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 4 of 26
1Introduction
This document describes the configuration commands to control the operation of following LM
Bluetooth devices:
1) LM400 module
2) LM780 module
3) LM072 module
4) LM071 Module
5) LM048 adapter
6) LM058 adapter
7) LM048SPA adapter
8) LM048v2 adapter
9) LM058v2 adapter
2AT command Set
2.1 History
The AT command set was developed by Hayes to control the operation of telephony modems. The
command set has been extended to control bluetooth device primary operation such as inquiry,
connection setup/ disconnection etc. Other AT commands is also available to control the serial port
setup and other user friendly features.
The Bluetooth device powers up in unconnected state and can be configured using UART interface
similar to telephony modems. The device will act as Bluetooth slave by default and can be
inquired/connect from other Bluetooth master device in neighborhood. The AT commands can be
used to change the default behavior and settings for the current as well as future power up cycles.
2.2 Terminology
Symbol Description ASCII value (Hex)
<cr> Carriage Return 0x0D
<lf> Line Feed 0x0A
<cr,lf> Carriage return and line feed 0x0D, 0x0A
XXXXXXXXXXXX 12 hexadecimal BD address
sequence
2.3 Command format
All the AT commands except the “AT” test command use the below command structure:
<header><name>< parameters> <cr>
<header> - Each command will start with “AT+” character sequence except “AT” test command.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 5 of 26
<name> - Command name as shown in below table listing all the available commands.
<parameters> - The parameters are required for most of the commands. The parameter may be
character, integer and character sequence (BD address, Pin code, Name etc) depending on the
command operation.
<cr> - This character terminates the command packet and signals the device to proceed with
command execution.
2.4 Command Response
The AT commands will have the response in the below format:
<parameter,value><command_response>
<parameter,value> - This sequence will be part of response to the commands sent in query format.
e.g. STOP1 where STOP is the parameter related to serial port stop bits and 1 is the parameter value.
<command_response> - The command response can be any one of following types:
<cr,lf>OK<cr,lf> - If the command has been sent to Bluetooth device in correct format and is
applicable in current device operating mode.
<cr,lf>ERROR<cr,lf> - If the command has been sent in wrong format/command is invalid/
command is not applicable in current device operating mode.
<cr,lf> - If the command response has been disabled.
2.5 Host Events
Host device connected to Bluetooth device will receive an event sequence on occurrence of
Bluetooth related events. Refer to section 2.9 Host Events Description for details.
2.6 Operation Mode
The device will always be in one of the below operating modes:
2.7 Command Types
Command Type
Parameter
Command
Device Information
Test
AT
Firmware Version
AT+VER
Settings
AT+ENQ
Reset
Restore Factory Settings
AT+RESET
Serial Port
Baud Rate
AT+BAUD
Stop Bits AT+STOP
Parity bits
AT+PAR
Flow Control AT+FLOW
Online Data Mode
Data transfer mode when device is in connected state.
Command Mode
Accepts AT command for device configuration.
Online Command Mode
Accepts almost all AT commands for device configuration in connected
state.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 6 of 26
Character Echo
AT+ECHO
Command Response
AT+RESP
Modem Signals
AT+MODEM
Ring Indicator/Carrier Detect2
AT+RICD
Bluetooth
Type
Device Role
AT+ROLE
Information
BD Address
AT+ADDR
Inquire devices
AT+FIND
RSSI
AT+RSSI
Settings
Device Name
AT+NAME
Discoverability AT+DCOV
Security Fixed Pin Code AT+PIN
Dynamic Pin Code
1
AT+DPIN
Connection Connect device AT+CONN
Drop connection AT+DROP
Bonding
AT+BOND
Auto Connect
AT+ACON
BT2.1 Security 1
Device Type 1
AT+IOTYPE
MITM protection 1
AT+MITM
Passkey Confirmation 1
AT+PASSCFM
Passkeys Input 1
AT+PASSKEY
Misc
Escape Sequence
+++
Escape Sequence handling AT+ESC
Mode switch
AT+AUTO
Remote Configuration AT+RCFG
Low power Mode AT+SLEEP
1Commands only available in v6.17 firmware onwards version running on LM780/LM400/LM072
module hardware.
2
Command available in v4.56 and v6.18 firmware onwards on LM780/LM400/LM072
2.8 Command Description
2.8.1 AT
This command allows the connected host device to check the availability of the Bluetooth device.
The connected host device must have same serial port settings as configured for the Bluetooth
device.
2.8.1.1 Syntax
AT<cr>
2.8.1.2 Response
<command_response>
2.8.2 AT+VER
Returns the device firmware version
2.8.2.1 Syntax
AT+VER<cr>

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 7 of 26
2.8.2.2 Response
<cr,lf>FW VERSION: vX.YZ<command_response>
Where X: Major release of device firmware
YZ: Minor release/updates of device firmware
e.g. FW VERSION: v4.50
2.8.3 AT+ENQ
List all the device information and all the settings along with their brief description. The settings
include serial port, Bluetooth related and other misc settings.
2.8.3.1 Syntax
AT+ENQ<cr>
2.8.3.2 Response
<command_response>
<cr,lf><Parameter Setting, Brief Description><cr,lf> for each parameter.
e.g. device role setting will be listed as “<cr,lf>ROLEM, MASTER ROLE <cr,lf>”. All other
settings and other device information is listed in similar manner.
2.8.4 AT+RESET
This command is used to restore the default factory settings and perform device reboot. The default
factory settings are listed in section Default Factory Settings.
2.8.4.1 Syntax
AT+RESET<cr>
2.8.4.2 Response
<command_response>
2.8.5 AT+BAUD
The command allows setting the baud rate for the serial UART port. The current baud rate setting
can also be retrieved by sending this command in query format.
2.8.5.1 AT+BAUDb<cr>
where b – varies from 10 to 20 for different baud rates. The baud rate varies from 1200bps
to 921 Kbps. e.g. To set 19200 as UART baud rate, the command is AT+BAUD14<cr>
b
Baud rate (bps)
10
1200
11
2400
12
4800
13
9600
14 19200
15 38400
16 57600
17 115200
18 230400
19 460800
20
921600

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 8 of 26
2.8.5.1.1 Response
<command_response>
2.8.5.2 AT+BAUD?<cr>
2.8.5.2.1 Response
<cr,lf>BAUDb<command_response> if the command is successful. Here, b- current
baud rate setting. E.g on default setup, the response will be
<cr,lf>BAUD14<command_response>
Note:
2.8.6 AT+STOP
In firmware v4.5x series running on serial adapters (LM048, LM058, and LM048SPA), the
maximum baud rate support is 230400 bps.
The command is used to specify one or two stop bits for serial port communication. The current
setting can also be retrieved sending this command in query format.
2.8.6.1 AT+STOPn<cr>
where n – can be 1 or 2 depending on no of stop bits used.
n
Stop bits (no)
1
1
2
2
2.8.6.2 Response
<command_response>
2.8.6.3 AT+STOP?<cr>
2.8.6.3.1 Response
<cr,lf>STOPn<command_response> if the command is successful. Here, n- no of
stop bits. E.g on default setup, the response will be
<cr,lf>STOP1<command_response>
2.8.7 AT+PAR
The command is used to specify the parity type of serial port. The current setting can also be
retrieved sending this command in query format.
2.8.7.1 AT+PARn<cr>
where n – varies from 0 to 2 depending on the type of parity used.
N Parity Type
0 None
1 Odd
2 Even
2.8.7.1.1 Response
<command_response>

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 9 of 26
2.8.7.2 AT+PAR?<cr>
2.8.7.2.1 Response
<cr,lf>PARn<command_response> if the command is successful. Here, n- parity type.
E.g on default setup, the response will be <cr,lf>PAR0<command_response>
2.8.8 AT+FLOW
The command is used to enable/disable the RTS/CTS flow control for the serial port. The current
setting can also be retrieved by sending this command in query format.
2.8.8.1 AT+FLOWc<cr>
Where parameter c is a character used to enable/disable the flow control.
c Flow Control
‘+’ Enable
‘-‘ Disable
Note:
2.8.8.1.1 Response
This command will cause the device to reboot.
<command_response>
2.8.8.2 AT+FLOW?<cr>
2.8.8.2.1 Response
<cr,lf>FLOWc<command_response> if the command is successful. Here, c- current
flow control setting. E.g on default setup, the response will be
<cr,lf>FLOW+<command_response>
Note:
1. In LM048SPA adapter with firmware series v4.6x, AT+FLOW refers to DTR/DSR flow control
and no RTS/CTS handling is supported. For all other products, AT+FLOW refers to RTS/CTS
flow control.
2. In LM048v2 and LM058v2 adapters running v6.5x firmware, this setting can be used in
conjunction with AT+MODEM command to choose different configurations of RS232 lines.
See Modem Signal Meaning.
2.8.9 AT+ECHO
The command is used to enable/disable the echo back of command characters from the Bluetooth
device. The current setting can also be retrieved by sending this command in query format.
2.8.9.1 AT+ECHOc<cr>
Where parameter c is a character used to enable/disable the echo back feature.
c
Echo back
‘+’
Enable
‘-‘
Disable
2.8.9.1.1 Response
<command_response>

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 10 of 26
2.8.9.2 AT+ECHO?<cr>
2.8.9.2.1 Response
<cr,lf>ECHOc<command_response> if the command is successful. Here, c- current
echo back setting. E.g on default setup, the response will be
<cr,lf>ECHO+<command_response>
2.8.10 AT+RESP
The command is used to enable/disable the command response from the Bluetooth device. Different
types of command response may be received by Host device and are listed in Command Response.
The current setting can also be retrieved by sending this command in query format.
2.8.10.1 AT+RESPc<cr>
Where parameter c is a character used to enable/disable the command response.
c
Command Response
‘+’
Enable
‘-‘
Disable
2.8.10.1.1Response
<command_response>
2.8.10.2 AT+RESP?<cr>
2.8.10.2.1Response
<cr,lf>RESPc<command_response> if the command is successful. Here, c- current
command response setting. E.g on default setup, the response will be
<cr,lf>RESP+<command_response>
2.8.11 AT+MODEM
This command is available only for v6.5x firmware running on serial adapters (LM048v2 and
LM058v2). This command is used in conjunction with AT+FLOW command to enable/disable various
RS232/Modem signal handling. The current setting can also be retrieved by sending this command in
query format.
2.8.11.1 AT+MODEMc<cr>
Where parameter c is used to disable or configure Local Loopback or Remote Transfer
settings on the adapter
C
Modem Signals
‘-’
Disable
‘L‘
Local Loopback
‘R’
Remote Transfer
2.8.11.1.1 Response
<command_response>
The meaning of the modems signals is described in section 2.8.11.3

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 11 of 26
2.8.11.2 AT+MODEM?<cr>
2.8.11.2.1 Response
<cr,lf>MODEMc<command_response> if the command is successful. Here, c- current
modem signal setting. E.g on default setup, the response will be <cr,lf>MODEM-
<command_response>
2.8.11.3 Modem Signal Meaning
The modem signal setting is used in conjunction with AT+FLOW Settings to enable/disable
RS232 modem control signals as per the table below.
FLOW
CONTROL
(AT+FLOW)
MODEM
SIGNAL
(AT+MODEM)
RS232 SIGNALS
USED
Description
FLOW- MODEM- Tx, Rx, GND 3 wire configuration.
FLOW+ MODEM- Tx, Rx, GND, RTS,
CTS
RTS/CTS signals are used for data
flow control between host and
local Bluetooth device, and NOT
transferred to remote Bluetooth
device wirelessly.
FLOW- MODEML Tx, Rx, GND, RTS<-
>CTS, DTR<->DSR
RTS looped back to CTS, DTR
looped back to DSR. No RS232
control signal transferred to
remote Bluetooth device
wirelessly.
FLOW+ MODEML Tx, Rx, GND, RTS,
CTS, DTR<->DSR
RTS/CTS signals used for data
flow control between host and
local Bluetooth device, and NOT
transferred to remote Bluetooth
device wirelessly. DTR looped
back to DSR. This configuration is
equivalent to LM048 adapter
running v4.5x firmware.
FLOW- MODEMR Tx, Rx, GND, RTS(R),
CTS(R), DTR(R),
DSR(R)
All 7 signals used. All RS232
control signals (DTR, DSR, RTS
and CTS) transferred wirelessly to
remote Bluetooth device.
FLOW+
MODEMR
Tx, Rx, GND, RTS,
CTS, DTR(R), DSR(R)
All 7 lines used. Only DTR, DSR
signals transferred wirelessly to
remote Bluetooth device. If RTS,
CTS signals are not used, then
this configuration is equivalent
to LM048SPA Adapter running
v4.6X firmware.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 12 of 26
2.8.12 AT+RICD
This command is present in firmware v6.18 on LM780/LM400/LM072 module and v4.56 on LM780.
This command emulates the modem Ring Indicator (RI) and Data Carrier Detect (DCD) signals on
certain PIO lines of LM780 module. For information about PIO lines, one can refer the LM780
Module Integration notes or LM780 module datasheet.
When this setting is enabled, the firmware changes the Ring Indicator status whenever the module is
slave and there is an incoming connection request. Similarly the DCD pin status is changed when the
Bluetooth connection is present. By default the firmware keeps the RI and DCD pin to high and bring
RI low when there is incoming connection and DCD low when Bluetooth connection is present.
The current value can be queried using this command in query format.
2.8.12.1 AT+RICDc\r
Where parameter c is character used to enable or disable the Ring Indicator/Carrier Detect setting
c
RICD Setting
‘+’
Enable
‘-‘ Disable
2.8.12.1.1Response
<command_response>
2.8.12.2 AT+RICD?<cr>
2.8.12.2.1Response
<cr,lf>RICDc< command_response> if the command is successful. Here, c- current
Ring Indicator/Carrier Detect setting. E.g on default setup, the response will be
<cr,lf>RICD-< command_response>
2.8.13 AT+ROLE
The command is used to set the local device as Bluetooth Master/Slave. The current setting can also
be retrieved by sending this command in query format.
2.8.13.1 AT+ROLEc<cr>
Where parameter c is a character used to configure the local device type.
c
Device Type
‘M’
Master
‘S‘
Slave
Note:
2.8.13.1.1Response
This command will cause the device to reboot.
<command_response>

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 13 of 26
2.8.13.2 AT+ROLE?<cr>
2.8.13.2.1Response
<cr,lf>ROLEc< command_response> if the command is successful. Here, c- current
device type setting. E.g on default setup, the response will be <cr,lf>ROLES<
command_response>
2.8.14 AT+ADDR
This command is used to display the Bluetooth address of the local device.
2.8.14.1 AT+ADDR?<cr>
2.8.14.1.1 Response
<cr,lf><XXXX-XX-XXXX>< command_response> if the command is successful. Here,
XXXX-XX-XXXX is the Bluetooth address of local device.
2.8.15 AT+FIND
This command is used to search for any Bluetooth device in the neighborhood within one minute. If
any device is found, its name and address will be listed. Maximum limit of devices searched is 8. The
search ends with a message “Inquiry ends. xx device(s) found.” This command is available only when
the adaptor is in the manual master role.
2.8.15.1 AT+FIND?<cr>
2.8.15.1.1Response
<command_response><cr,lf>Inquiry Results:<cr,lf>
<Sr No><DeviceName><XXXX-XX-XXXX><cr,lf> for every device found. Here, XXXX-
XX-XXXX is the Bluetooth address of local device. e.g. “1 Serial Adapter
001E-3A-2CDAB7”
2.8.15.2 AT+FIND-<cr>
This command will cancel the ongoing search operation. If the search is finished (1 minute
timeout / max devices found), then the command will return error.
2.8.15.2.1Response
<cr,lf> Inquiry cancelled<command_response>
2.8.16 AT+RSSI
Inquire RSSI value for current bluetooth connection. This command is available in online command
mode when the device is in connected state.
2.8.16.1 AT+RSSI<cr>
2.8.16.1.1Response
<cr,lf><RSSI><command_response>
<RSSI> - can be STRONG/AVERAGE/WEAK depending on the received radio signal
strength.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 14 of 26
2.8.17 AT+NAME
This command is used to specify a name for the adaptor. You can specify a friendly name using 0 to
9, A to Z, a to z, space and –, which are all valid characters. Note that “first space or -, last space or –
isn’t permitted”. The default name is “Serial Adapter”. The current device name can be retrieved by
sending this command in query format.
2.8.17.1 AT+NAME=XXXX<cr>
Where the parameter ”XXXX” is a character string with a maximal length of 16 bytes.
2.8.17.1.1Response
<command_response>
2.8.17.2 AT+NAME?<cr>
2.8.17.2.1Response
<cr,lf><NAME><command_response> if the command is successful. Here, <NAME> is
the device name . E.g. on default setup, the response will be <cr,lf>Serial
Adapter<command_response>
2.8.18 AT+PIN
This command is used to specify a fixed PIN code for a secured bluetooth connection. The default
PIN is "1234". Paired Bluetooth devices should have a same PIN code. The current pin code setting
can be retrieved by sending this command in query format.
In firmware v6.1x series running on LM780/LM400/LM072 modules, the fixed pin code will only be
used for connection with remote Bluetooth 2.0 complaint device. Automatic pairing (also known as
Just Works) takes place on connection with remote Bluetooth 2.1 complaint device. Extra commands
related to Bluetooth 2.1 security and use of dynamic pin codes have been added in v6.17 firmware
running on LM780/LM400/LM072 modules. Refer to section 2.8.27, 2.8.28, 2.8.29, 2.8.30, 2.8.31 for
details.
2.8.18.1 AT+PIN=XXXX<cr>
Where the parameter ”XXXX” is a 4-8 digit string.
2.8.18.1.1Response
<command_response>
2.8.18.2 AT+PIN-<cr>
This command will cancel the pin code security for Bluetooth connections. The remote
Bluetooth device must also cancel pin code security in order to connect successfully with
local Bluetooth device. Some devices e.g. Mobile phone do not allow connection without pin
code security so disabling pin code security will prohibit successful connection with these
devices.
In firmware v6.1x series running on LM780/LM400/LM072 modules, disabling pin code use
will have no effect during connection with remote Bluetooth 2.1 complaint device. Refer to
section 2.8.17AT+PIN and section for details. In firmware v6.17, this command will also erase
all pairing information related to previous connected devices.
2.8.18.2.1Response
<command_response>

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 15 of 26
2.8.18.3 AT+PIN?<cr>
2.8.18.3.1Response
<cr,lf><PIN><command_response> if the command is successful. Here, <PIN> is the
pin code in use . E.g on default setup, the response will be
<cr,lf>1234<command_response> .Incase, the pin code security is disabled the
response will be <cr,lf>NULL<command_response>
2.8.18.4 AT+PIN+<cr>
This command will enable fixed pin code security for Bluetooth connections with remote
Bluetooth 2.0 device. The remote device must enable pin code security in order to connect
successfully with local Bluetooth device.
In firmware v6.1x series running on LM780/LM400/LM072 modules, fixed pin code use will
have no effect during connection with remote Bluetooth 2.1 complaint device. Refer to
section2.8.17, 2.8.27, 2.8.28, 2.8.29, 2.8.30, 2.8.31 for details.
2.8.18.4.1Response
<command_response>
2.8.19 AT+DCOV
It is used to specify whether the adaptor can be discovered or connected by remote devices. The
current setting can also be retrieved by sending this command in query format.
2.8.19.1 AT+DCOVc<cr>
Where parameter c is a character used to enable/disable the discoverability status.
C
Status
‘+’ Discoverable
‘-‘ Non-discoverable
Note:
2.8.19.1.1Response
This command will cause the device to reboot.
<command_response>
2.8.19.2 AT+DCOV?<cr>
2.8.19.2.1Response
<cr,lf>DCOVc<command_response> if the command is successful. Here, c- current
discoverability status setting. E.g on default setup, the response will be
<cr,lf>DCOV+<command_response>
2.8.20 AT+CONN
This command is used to establish a connection. It is available only when the local Bluetooth device
is in the manual master role.
2.8.20.1 AT+CONN<cr>
Connect the local bluetooth device to specified bonded bluetooth device. It is available only
when "AT+BOND=xxxxxxxxxxxx" is already executed to set remote bonded device.
2.8.20.1.1Response
<command_response><host_event> where <host_event> will be connection related
event and depends on the connection attempt result.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 16 of 26
2.8.20.2 AT+CONN= XXXXXXXXXXXX<cr>
Connect the local bluetooth device to the bluetooth device address specified by
“XXXXXXXXXXXX”.
2.8.20.2.1Response
<command_response><host_event> where <host_event> will be connection related
event and depends on the connection attempt result.
2.8.20.3 AT+CONNn<cr>
Where parameter n is list index of the remote device found through AT+FIND? command.
n- varies from 1 to 8.
2.8.20.3.1Response
<command_response><host_event> where <host_event> will be connection related
event depending on the connection attempt result.
2.8.21 AT+DROP
This command is used to drop active connection from master or slave device. It is only allowed in
online command mode when the device is in connected state.
2.8.21.1 AT+DROP<cr>
Drop current connection when the device in online command mode.
2.8.21.1.1Response
<command_response><host_event> where <host_event> will be disconnection
event.
2.8.22 AT+BOND
For security purpose, this command is used to specify a unique remote Bluetooth device to be
connected. In the master role, the local device pairs and connects with the designated remote slave
address. In the slave mode, this command is a filter condition to accept the connection request from
the master device. The current bonded device address can be retrieved by sending this command in
query format.
2.8.22.1 AT+BOND=XXXXXXXXXXXX<cr>
2.8.22.1.1Response
<command_response>
2.8.22.2 AT+BOND-<cr>
Restore the status in which the local Bluetooth device can connect with any remote device.
There is no device bonded with local device.
2.8.22.2.1Response
<command_response>
2.8.22.3 AT+BOND?<cr>
2.8.22.3.1Response
<cr,lf><XXXX-XX-XXXX><command_response> if the command is successful. Here,
XXXX-XX-XXXX is the Bluetooth address of bonded device. E.g. on default setup,
there will be no bonded device, hence the response will be <cr,lf>0000-00-
0000<cr,lf><command_response>

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 17 of 26
2.8.23 AT+ACON
This command is used to enable/disable auto-connection feature in the master role. The current
setting can also be retrieved by sending this command in query format.
2.8.23.1 AT+ACONc<cr>
Where parameter c is a character used to enable/disable the auto connection feature.
c Connect Type
‘+’ Auto Connect
‘-‘ Manual
Note:
2.8.23.1.1Response
This command will cause the device to reboot. In Manual connect type, the local device (if
master type) will need to use AT+FIND? command to find Bluetooth devices in neighborhood and
then use AT+CONNn to connect to specific device.
<command_response>
2.8.23.2 AT+ACON?<cr>
2.8.23.2.1Response
<cr,lf>ACONc<command_response> if the command is successful. Here, c- current
connect type setting. E.g on default setup, the response will be
<cr,lf>ACON+<command_response>
2.8.24 AT+ESC
This command Disable/Enable the handling of escape sequence “+++”. Note: The escape sequence
must be sent with guard time of 1000 msec. The current setting can also be retrieved by sending this
command in query format.
2.8.24.1 AT+ESCc<cr>
Where parameter c is a character used to enable/disable the escape sequence handling.
C Status
‘+’ Enable
‘-‘ Disable
Note:
2.8.24.1.1Response
When the local device is in data mode (connected state), it can be forced into online
Command mode during active connection to the remote device. The "+++" escape sequence must be
sent with guard time of 800-1000msec. The next AT command must be sent after waiting for the
response "<cr,lf>OK<cr,lf>" to indicate successful switch from data mode to online command mode.
<command_response>
2.8.24.2 AT+ESC?<cr>
2.8.24.2.1Response
<cr,lf>ESCc<command_response> if the command is successful. Here, c- current
status. E.g on default setup, the response will be <cr,lf>ESC+<command_response>
2.8.25 AT+AUTO
The command directs the device to switch from online command mode to online data mode. This
command is only allowed in connected state.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 18 of 26
2.8.25.1 AT+AUTO<cr>
2.8.25.1.1Response
<cr,lf>OK<cr,lf>
2.8.26 AT+RCFG
This command enables or disables local device configuration from the remote device by executing
the remote access hand shaking protocol. Please ask for separate document for remote
configuration details. The current setting can also be retrieved by sending this command in query
format.
2.8.26.1 AT+RCFGc<cr>
Where parameter c is a character used to enable/disable the remote configuration.
C Status
‘+’ Enable
‘-‘ Disable
2.8.26.1.1Response
<command_response>
2.8.26.2 AT+RCFG?<cr>
2.8.26.2.1Response
<cr,lf>RCFGc<command_response> if the command is successful. Here, c- current
setting. E.g on default setup, the response will be
<cr,lf>RCFG+<command_response>
2.8.27 AT+SLEEP
This command is used to enable/disable auto-power saving feature of RS232 driver as well as low
power modes of Bluetooth device. The current setting can also be retrieved by sending this
command in query format.
2.8.27.1 AT+SLEEPc<cr>
Where parameter c is a character used to enable/disable the auto power saving feature.
c
Status
‘+’ Enable
‘-‘ Disable
2.8.27.1.1Response
<command_response>
2.8.27.2 AT+SLEEP?<cr>
2.8.27.2.1Response
<cr,lf>SLEEPc<command_response> if the command is successful. Here, c- current
setting. E.g. on default setup, the response will be <cr,lf>SLEEP-
<command_response>
2.8.28 AT+DPIN
This command is only available in v6.17 firmware running on LM780/LM400/LM072 modules. The
dynamic pin code will only be used for connection with remote Bluetooth 2.0 complaint device.

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 19 of 26
Automatic pairing (also known as Just Works) takes place on connection with remote Bluetooth 2.1
complaint device. The current setting can be retrieved by sending this command in query format.
Extra commands related to Bluetooth 2.1 security have been added in v6.17 firmware running on
LM780/LM400/LM072 modules.
2.8.28.1 AT+DPIN= XXXXXXXXXXXX,dddd<cr>
This command is used to specify dynamic PIN code for secured connection with specified
remote Bluetooth 2.0 device. Here, the parameter ”dddd” is a 4-8 digit pin code string and
“XXXXXXXXXXXX” is address of remote Bluetooth 2.0 device. This command must be sent by
host on receiving the PINCODE REQ “XXXX-XX-XXXXXX” event from the module. Refer to
section 2.9.2 for details.
2.8.28.1.1Response
<command_response>
2.8.28.2 AT+DPIN?<cr>
2.8.28.2.1Response
<cr,lf><DPINc><command_response> if the command is successful. Here, c- current
setting. E.g on default setup, the response will be <cr,lf>DPIN<command_response>.
2.8.28.3 AT+DPIN+<cr>
This command will enable use of dynamic pin code instead of fixed pin code for secured
connections with remote Bluetooth 2.0 device. The remote device as well as local device
must enable pin code security in order to connect successfully with local device. The
dynamic pin code will only be used if pin code security has been enabled. Refer to section
2.8.17.4 AT+PIN+<cr> for details.
In firmware v6.17 running on LM780/LM400/LM072 modules, dynamic pin code use will
have no effect during connection with remote Bluetooth 2.1 complaint device. Refer to
section 2.8.17, 2.9.2 for details.
2.8.28.3.1Response
<command_response>
2.8.28.4 AT+DPIN-<cr>
This command is used to disable use of dynamic pin code for connections with remote
Bluetooth 2.0 devices. The local Bluetooth device will use fixed pin code during connections
if pin code security has been enabled.
2.8.28.4.1Response
<command_response>
2.8.29 AT+IOTYPE
This command is only available in v6.17 firmware running on LM780/LM400/LM072 modules. This
command configures input output device type required for connection with remote Bluetooth 2.1
device. By default, IOTYPE is 3 which mean “No Display No Keyboard”. The current setting can be
retrieved by sending this command in query format.
2.8.29.1 AT+IOTYPEn<cr>
where n – varies from 0 to 4 depending on device type used.
N
Device Type/capability

AT Command Manual v1.5
©2013 LM Technologies Ltd www.lm-technologies.com Page 20 of 26
0
Display Only
1
Display with Yes or No
2
Keyboard Only
3
No Display No Keyboard
4
Reject connection with remote
Bluetooth 2.1 devices
2.8.29.1.1Response
<command_response>
2.8.29.2 AT+IOTYPE?<cr>
2.8.29.2.1Response
<cr,lf>IOTYPEn<command_response> if the command is successful. Here, n- device
type. E.g. on default setup, the response will be
<cr,lf>IOTYPE3<command_response>
2.8.30 AT+MITM
This command is only available in v6.17 firmware running on LM780/LM400/LM072 modules. This
command enables/disables the MITM (man in the middle) protection used for connection security
with remote Bluetooth 2.1 device. By default, MITM is disabled which results in Automatic pairing
(also known as Just Works) on connection with remote Bluetooth 2.1 complaint device if remote
devices allows connection with no MITM protection. The current setting can be retrieved by sending
this command in query format.
2.8.30.1 AT+MITMc<cr>
Where parameter c is a character used to enable/disable the MITM security feature.
c
MITM security
‘+’
Enabled
‘-‘
Disabled
2.8.30.1.1Response
<command_response>
2.8.30.2 AT+MITM?<cr>
2.8.30.2.1Response
<cr,lf>MITMc<command_response> if the command is successful. Here, c- MITM
security setting. E.g. on default setup, the response will be <cr,lf>MITM-
<command_response>
2.8.31 AT+PASSCFM
This command is only available in v6.17 firmware running on LM780/LM400/LM072 modules. It must
be used during passkey security exchange before connection with remote Bluetooth 2.1 devices if
local device “IOTYPE” has been configured as “Display with Yes or No” and MITM protection has
been enabled.
2.8.31.1 AT+PASSCFM= XXXXXXXXXXXX,c<cr>
This command is used to send passkey confirmation during passkey security exchange before
connection with remote Bluetooth 2.1 devices. Here, the parameter c” is a either ‘Y’ or ‘N’
and “XXXXXXXXXXXX” is address of remote Bluetooth 2.1 device. This command must be
This manual suits for next models
8
Table of contents
Other LM Technologies Adapter manuals

LM Technologies
LM Technologies LM006 User manual

LM Technologies
LM Technologies LM048 User manual

LM Technologies
LM Technologies LM540 User manual

LM Technologies
LM Technologies RS232 User manual

LM Technologies
LM Technologies LM320 User manual

LM Technologies
LM Technologies LM505 User manual

LM Technologies
LM Technologies LM048v2 User manual

LM Technologies
LM Technologies LM048 Installation manual

LM Technologies
LM Technologies LM809-0647 User manual

LM Technologies
LM Technologies LM506 User manual