LM Technologies LM048 Installation manual

LM Technologies Ltd.
AT Command Manual
Applicable for Firmware version 4.52, 4.53, 4.60, 4.61, 6.12, 6.13
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

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 2 of 16
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+ROLE ........................................................................................................................10
2.8.12 AT+ADDR ....................................................................................................................... 10
2.8.13 AT+FIND.........................................................................................................................11
2.8.14 AT+RSSI..........................................................................................................................11
2.8.15 AT+NAME ...................................................................................................................... 11

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 3 of 16
2.8.16 AT+PIN ........................................................................................................................... 12
2.8.17 AT+DCOV .......................................................................................................................12
2.8.18 AT+CONN.......................................................................................................................13
2.8.19 AT+DROP .......................................................................................................................13
2.8.20 AT+BOND.......................................................................................................................13
2.8.21 AT+ACON ....................................................................................................................... 14
2.8.22 AT+ESC........................................................................................................................... 14
2.8.23 AT+AUTO .......................................................................................................................15
2.8.24 AT+RCFG ........................................................................................................................15
2.8.25 AT+SLEEP .......................................................................................................................16
2.9 Default Factory Settings ........................................................................................................16

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 4 of 16
1Introduction
This document describes the configuration commands to control the operation of following LM
Bluetooth devices:
1) LM048 adapter
2) LM058 adapter
3) LM048 SPA adapter
4) LM400 module
5) LM780 module
6) LM071 module
7) LM072 module
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 are 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.
<name> - Command name as shown in below table listing all the available commands.

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 5 of 16
<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.
Different <host_event> are:
<cr,lf>CONNECT “XXXXXXXXXXXX”<cr,lf> - The event sequence will be received on a
successful connection attempt either by local device or from a remote bluetooth device.
<cr,lf>CONNECT Attempt Fail<cr,lf> - When the attempted connection attempt from the
local Bluetooth device fails for some reason. The reason for connection failure will not be
listed.
<cr,lf>DISCONNECT “XXXXXXXXXXXX”<cr,lf> - On the disconnection of the current active
connection, the sequence will be received.
<cr,lf>Inquiry Cancelled<cr,lf> - When the inquiry operation from the local Bluetooth device
is pre terminated using the AT command, the event will be sent to host device.
2.6 Operation Mode:
The device will always be in one of the below operating modes:
2.7 Command Types
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.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 6 of 16
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
Character Echo AT+ECHO
Command Response AT+RESP
Bluetooth Type Device Role AT+ROLE
Information BD Address AT+ADDR
Inquire devices AT+FIND
RSSI AT+RSSI
Settings Device Name AT+NAME
Security AT+PIN
Discoverability AT+DCOV
Connection Connect inquired
device
AT+CONN
Drop connection AT+DROP
Bonding AT+BOND
Auto Connect AT+ACON
Misc Escape Sequence +++
Escape Sequence
handling
AT+ESC
Mode switch AT+AUTO
Remote Configuration AT+RCFG
Low power Mode AT+SLEEP
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

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 7 of 16
2.8.2.1 Syntax
AT+VER<cr>
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 table [reference]
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 using the sending this command in query format.
2.8.5.1 AT+BAUDb<cr>
where b – varies from 10 to 19 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

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 8 of 16
17 115200
18 230400
19 460800
20 921600
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>
2.8.6 AT+STOP
The command is used to specify one or two stop bits for serial port communication. The current
setting can also be retrieved by using the 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 by using the 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.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 9 of 16
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 using the 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, this command will cause the device to reboot.
2.8.8.1.1 Response
<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:
2.8.9 AT+ECHO
In LM048 SPA adapter with firmware series 4.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.
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 using the 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.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 10 of 16
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 using the 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.1 Response
<command_response>
2.8.10.2 AT+RESP?<cr>
2.8.10.2.1 Response
<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+ROLE
The command is used to set the local device as Bluetooth Master/Slave. The current setting can also
be retrieved by using the sending this command in query format.
2.8.11.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, this command will cause the device to reboot.
2.8.11.1.1 Response
<command_response>
2.8.11.2 AT+ROLE?<cr>
2.8.11.2.1 Response
<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.12 AT+ADDR
This command is used to display the Bluetooth address of the local device.

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 11 of 16
2.8.12.1 AT+ADDR?<cr>
2.8.12.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.13 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.13.1 AT+FIND?<cr>
2.8.13.1.1 Response
<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.13.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.13.2.1 Response
<cr,lf> Inquiry cancelled<command_response>
2.8.14 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.14.1 AT+RSSI<cr>
2.8.14.1.1 Response
<cr,lf><RSSI><command_response>
<RSSI> - can be STRONG/AVERAGE/WEAK depending on the received radio signal
strength.
2.8.15 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
using the sending this command in query format.
2.8.15.1 AT+NAME=XXXX<cr>
Where the parameter ”XXXX” is a character string with a maximal length of 16.
2.8.15.1.1 Response
<command_response>

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 12 of 16
2.8.15.2 AT+NAME?<cr>
2.8.15.2.1 Response
<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.16 AT+PIN
This command is used to specify a 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 using the sending this command in query format.
2.8.16.1 AT+PIN=XXXX<cr>
Where the parameter ”XXXX” is a 4-8 digit string.
2.8.16.1.1 Response
<command_response>
2.8.16.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.
2.8.16.2.1 Response
<command_response>
2.8.16.3 AT+PIN?<cr>
2.8.16.3.1 Response
<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.17 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 using the sending this command in query format.
2.8.17.1 AT+DCOVc<cr>
Where parameter c is a character used to enable/disable the discoverability status.
c Status
‘+’ Discoverable
‘-‘ Non-discoverable
Note, this command will cause the device to reboot.
2.8.17.1.1 Response
<command_response>

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 13 of 16
2.8.17.2 AT+DCOV?<cr>
2.8.17.2.1 Response
<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.18 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.18.1 AT+CONN<cr>
Connect the local bluetooth device to specified bonded bluetooth device. It is available only
when "AT+BOND=xxxxxxxxxxxx" is executed..
2.8.18.1.1 Response
<command_response><host_event> where <host_event> will be connection related
event and depends on the connection attempt result.
2.8.18.2 AT+CONN= XXXXXXXXXXXX<cr>
Connect the local bluetooth device to the bluetooth device address specified by
XXXXXXXXXXXX.
2.8.18.2.1 Response
<command_response><host_event> where <host_event> will be connection related
event and depends on the connection attempt result.
2.8.18.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.18.3.1 Response
<command_response><host_event> where <host_event> will be connection related
event depending on the connection attempt result.
2.8.19 AT+DROP
This command is used to drop connection from master or slave device. It is only allowed in online
command mode when the device is in connected state.
2.8.19.1 AT+DROP<cr>
Drop current connection when the device in online command mode.
2.8.19.1.1 Response
<command_response><host_event> where <host_event> will be dis-connection
event.
2.8.20 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 using the sending this
command in query format.

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 14 of 16
2.8.20.1 AT+BOND=XXXXXXXXXXXX<cr>
2.8.20.1.1 Response
<command_response>
2.8.20.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.20.2.1 Response
<command_response>
2.8.20.3 AT+BOND?<cr>
2.8.20.3.1 Response
<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>
2.8.21 AT+ACON
This command is used to enable/disable auto-connection feature in the master role. The current
setting can also be retrieved by using the sending this command in query format.
2.8.21.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, 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.
2.8.21.1.1 Response
<command_response>
2.8.21.2 AT+ACON?<cr>
2.8.21.2.1 Response
<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.22 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 using the
sending this command in query format.
2.8.22.1 AT+ESCc<cr>
Where parameter c is a character used to enable/disable the escape sequence handling.

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 15 of 16
C Status
‘+’ Enable
‘-‘ Disable
Note: When the 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 1000msec. The next AT command must be sent after
waiting for the response "<cr,lf>OK<cr,lf>" to indicate switching from online data mode to
online command mode.
2.8.22.1.1 Response
<command_response>
2.8.22.2 AT+ESC?<cr>
2.8.22.2.1 Response
<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.23 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.
2.8.23.1 AT+AUTO<cr>
2.8.23.1.1 Response
<cr,lf>OK<cr,lf>
2.8.24 AT+RCFG
This command enables or disables 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 using the sending this command in query format.
2.8.24.1 AT+RCFGc<cr>
Where parameter c is a character used to enable/disable the remote configuration.
C Status
‘+’ Enable
‘-‘ Disable
2.8.24.1.1 Response
<command_response>
2.8.24.2 AT+RCFG?<cr>
2.8.24.2.1 Response
<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>

AT Command Manual v1.2
@2010 LM- Technologies Ltd www.lm-technologies.com Page 16 of 16
2.8.25 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.25.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.25.1.1 Response
<command_response>
2.8.25.2 AT+SLEEP?<cr>
2.8.25.2.1 Response
<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.9 Default Factory Settings
Parameter Default Value Description
BAUD 14 19200 bps
STOP 1 1 stop bit
PAR 0 None
FLOW + Hardware
ECHO + Enabled
RESP + Enabled
ROLE S Slave device
NAME Serial Adapter Device name
PIN 1234 Enabled
DCOV + Discoverable
BOND 0000-00-0000 No Bonding
ACON + Auto-Connect
ESC + Enabled
RCFG + Enabled
SLEEP - Disabled
Other manuals for LM048
3
This manual suits for next models
6
Table of contents
Other LM Technologies Adapter manuals

LM Technologies
LM Technologies RS232 User manual

LM Technologies
LM Technologies LM006 User manual

LM Technologies
LM Technologies LM1010 User manual

LM Technologies
LM Technologies LM048 User manual

LM Technologies
LM Technologies LM048v2 User manual

LM Technologies
LM Technologies LM809-0647 User manual

LM Technologies
LM Technologies LM540 User manual

LM Technologies
LM Technologies LM505 User manual

LM Technologies
LM Technologies LM320 User manual

LM Technologies
LM Technologies LM400 Installation manual