Lantronix M110 Command Reference Manual

M110 Series
Cellular Modem
mPACK Command Reference
Part number PMD-00035
Revision A September 2019
Intellectual Property
© 2019 Lantronix, Inc. All rights reserved. No part of the contents of this publication may be transmitted or reproduced in any form or by any means without the written permission of Lantronix.
Patented: http://www.lantronix.com/legal/patents/; additional patents pending.
Warranty
For details on the Lantronix warranty policy, please go to our web site at
https://www.lantronix.com/support/warranty.
Contacts
Lantronix Corporate Headquarters
7535 Irvine Center Drive Suite 100 Irvine, CA 92618, USA
Toll-free: 800-526-8766 Phone: 949-453-3990 Fax: 949-453-3995
Technical Support
Online: https://www.lantronix.com/support
Sales Offices
For a current list of our domestic and international sales offices, go to the Lantronix web site at
https://www.lantronix.com/about-us/contact.
Open Source Software
Some applications are Open Source software licensed under the Berkeley Software Distribution (BSD) li­cense, the GNU General Public License (GPL) as published by the Free Software Foundation (FSF), or the Python Software Foundation (PFS) License Agreement for Python 2.7.3 (Python License). Lantronix grants you no right to receive source code to the Open Source software; however, in some cases, rights and access to source code for certain Open Source software may be available directly from Lantronix’ licensors. Your use of each Open Source component or software is subject to the terms of the applicable license. The BSD license is available at http://opensource.org/licenses. The GNU General Public License is avail­able at http://www.gnu.org/licenses/. The Python License is available at http://cmpt165.csil.sfu.ca/Python-
Docs/license.html. Your use of each Open Source component or software is subject to the terms of the
applicable license.
OPEN SOURCE SOFTWARE IS DISTRIBUTED WITHOUT ANY WARRANTY, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE APPLI­CABLE LICENSE AGREEMENT FOR ADDITIONAL INFORMATION.
M110 Series Cellular Modem mPACK Command Reference 1
You may request a list of the open source components and the licenses that apply to them. Contact your regional Lantronix sales associate. https://www.lantronix.com/about-us/contact/.
Disclaimer & Revisions
All information contained herein is provided “AS IS”. Lantronix undertakes no obligation to update the information in this publication. Lantronix does not make, and specifically disclaims, all warranties of any kind (express, implied or otherwise) regarding title, non-infringement, fitness, quality, accuracy, completeness, usefulness, suitability or performance of the information provided herein. Lantronix shall have no liability whatsoever to any user for any damages, losses and causes of action (whether in contract or in tort or otherwise) in connection with the user’s access or usage of any of the information or content contained herein. The information and specifications contained in this document are subject to change without notice.
Revision history
Date Revision Comments
August 2018 1.1 Initial Release
November 2018 1.2 Added commands: AT#USBDENB
March 2019 1.3 Added commands: AT#PASS, AT#
September 2019 A
Added Lantronix part number, contact information, and branding
M110 Series Cellular Modem mPACK Command Reference 2
Table of Contents
1 Introduction 7
1.1 M110 series supported by mPACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Basic Operation 9
2.1 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3 Default settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 Basic Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5 LED Status Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6 Factory reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3 Administration Commands 12
3.1 AT#INFO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 AT#CONFIGDEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 AT#RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4 AT#MRST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.5 AT#NWRST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.6 AT#MATSCR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.7 AT#USBATCOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.8 AT#PASS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.9 AT#STRUPMSG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 Hardware commands 18
4.1 AT#SERIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2 AT#HFLW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3 AT#SETRTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.4 AT#GETRTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.5 AT#VIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.6 AT#VAMODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.7 AT#RDIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
M110 Series Cellular Modem mPACK Command Reference 3
Table of Contents
4.8 AT#OPSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5 Last Gasp Commands 24
5.1 AT#LGPARA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.2 AT#LGMSG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6 Cellular Commands 26
6.1 AT#IPCELLULAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.2 AT#IPCONNECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.3 AT#GETBRIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.4 AT#IPPING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7 Socket Commands 29
7.1 AT#IPTCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
7.2 AT#IPUDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.3 AT#AUTOTCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.4 AT#AUTOUDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.5 AT#OTCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
7.6 AT#OUDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
7.7 AT#SCHOST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.8 AT#IPOPT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7.9 AT#AUOPT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7.10 AT#SERVAUTH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
7.11 AT#MURC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
8 Remote Control Commands 38
8.1 AT#SMSAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
8.2 AT#TCPTERM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
9 Firmware Update Commands 41
9.1 AT#WEBUPDATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.2 AT#UPDATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
10 D2Sphere Commands 43
10.1 AT#IPD2S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
10.2 AT#D2S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
M110 Series Cellular Modem mPACK Command Reference 4
Table of Contents
10.3 AT#DVNAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
10.4 How to add a M110 modem to D2sphere platform (feature) . . . . . . . . . . . . . . . . . . . 44
10.5 Operation of D2sphere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
11 I/O Triggering Commands 46
11.1 AT#DITRIG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
11.2 AT#DITRIGENB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
11.3 AT#MSGPER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
11.4 AT#MSGSTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
11.5 AT#TRANSMODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
12 Location Commands 50
12.1 AT#MLOC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
13 Applications Notes 51
13.1 Cellular Setup Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
13.2 AutoTCP Client Setup Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
13.3 AutoTCP Server Setup Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
13.4 Flow diagram of Auto TCP/UDP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
14 Troubleshooting 55
14.1 The modem’s LED does not light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
14.2 The modem’s GREEN LED blinks but does not become stable for a long time after power up 55
14.3 The modem does not respond to the terminal program . . . . . . . . . . . . . . . . . . . . . . 55
M110 Series Cellular Modem mPACK Command Reference 5
List of Figures
8.1.1Example of remote AT command by SMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
13.4.1Auto TCP / UDP Flow Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
M110 Series Cellular Modem mPACK Command Reference 6

1: Introduction

The aim of this document is to provide users of Lantronix M110 Modems running mPACK, a detailed de­scription of the commands supported by mPACK and various configuration / operation modes in which M110 series Modems could be used.
Safety Precautions
General Precautions
The modem generates radio frequency (RF) power. When using the modem care must be taken on
safety issues related to RF interference as well as regulations of RF equipment.
– Do not use the modem in aircraft, hospitals, petrol stations or in places where using GSM products is
prohibited.
– Be sure that the modem will not be interfering with nearby equipment. For example: pacemakers or
medical equipment. The antenna of the modem should be away from computers, office equipment, home appliances, etc...
– An external antenna must be connected to the modem for proper operation. Only used approved
antennas with the modem. Please contact authorized dealer on finding an approved antenna.
Always keep the antenna with minimum safety distance of 26.6 cm or more from human body.
Do not put the antenna inside metallic box, containers, etc.
Protecting your modem
To ensure error-free usage, please install and operate your modem with care. Remember the following:
– Do not expose the modem to extreme conditions such as high humidity/temperatures, rain, direct
sunlight, caustic/harsh chemicals, dust, or water.
– Do not try to disassemble or modify the modem. There is no user serviceable part inside and the
warranty would be void.
Do not drop, hit or shake the modem. Do not use the modem under extreme vibrating condition.
Do not pull the antenna or power supply cable. Please attach or detach by holding the connector.
Connect the modem only according to the instruction manual. Failure to do it will void the warranty.

1.1 M110 series supported by mPACK

Please consult the sales representative of Lantronix for the most update information.
** Uplink / Downlink maximum data rates:
M110 Series Cellular Modem mPACK Command Reference 7
3G: 5.76 / 7.2 Mbps
NB-IoT: 62.5 / 27.2 kbps
LTE-M1: 375 / 375 kbps
LTE cat. 1: 5 / 10 Mbps
Chapter 1. Introduction
M110 Series Cellular Modem mPACK Command Reference 8

2: Basic Operation

2.1 Modes of Operation

M110 running mPACK can be operated in the following modes:
PPP Dial up over RS232 (Linux)
PPP Dial up over USB (Linux)
Generic AT commands over RS232
Generic AT commands over USB
mPACK commands over RS232
mPACK commands over USB
Thanks to the wide range of operating modes, mPACK transforms the M110 Modem into a versatile modem which is capable of providing data connectivity to serial devices in almost any situation be it an Intelligent connected serial device with full TCP/IP stack capable of PPP connection or an intelligent connected serial device capable of sending commands but without a TCP/IP stack or be it a non-intelligent connected serial device only pumping out data on serial port.
In addition, a function of mPACK as listed below provides extra functionality and greatly improves the ro­bustness of the wireless connected system.
Automatic and self-recovery TCP/UDP socket connection
AT command driven TCP/UDP socket connection
Ping Service
Network Watchdog
Input/output and Analog triggered AT command
Remote AT command through SMS and TCP Terminal
Remote program updating
Socket data sending

2.2 Getting Started

Before putting the M110 in operation, it must be configured first. The configuration commands can be given to the modem over Serial port or by sending an SMS.
To send command over the serial port, please connect M110 to a computer over Serial port. Use standard software available on a Windows PC (e.g. hyper terminal) to send serial commands to M110. SMS would have to be sent to the mobile number corresponding to the SIM card inserted in M110 device. In either case, the commands are mPACK AT commands as described below.
M110 Series Cellular Modem mPACK Command Reference 9

2.3 Default settings

The default settings of the UART and USB ports are as follows:
Baudrate: 115200
Character Framing: 8
Parity: None
Stop Bit: 1
Flow Control: None

2.4 Basic Command Syntax

All commands starting with AT+ entailed in documents:
– u-blox-ATCommands_Manual_(UBX-13002752) for M111, M114, M115
Chapter 2. Basic Operation
SARA-N2_ATCommandsManual_UBX-16014887 for M112, and
SARA-R4_ATCommandsManual_(UBX-17003787) for M113
All mPACK commands start with AT# are the only ones covered in this document, e.g.
AT#INFO
Error codes for uBlox commands are as described in the uBlox AT command manual
Error codes for mPACK commands are as follows:
“ERROR BAD PARAMETER” for wrong parameters or out of range values
“ERROR UNKNOWN COMMAND” for wrong command syntax

2.5 LED Status Indicator

The LED will indicate different status of the modem:
– For Orange LED:
OFF: No cellular connection
ON: Cellular connection
Blinking: Data transfer
For Green LED:
OFF: No power
Slow blink: No signal or CSQ < 4,99
Fast blink: Bad CSQ < 9
ON: Good signal or CSQ > 10
M110 Series Cellular Modem mPACK Command Reference 10

2.6 Factory reset

To factory reset the device, hold the reset pin for over 30 seconds.
Initially both LED’s are off
After 5 seconds the green LED will go on (and the orange LED remains off)
After 30 seconds the orange LED will go on (and the green LED goes off)
Chapter 2. Basic Operation
M110 Series Cellular Modem mPACK Command Reference 11

3: Administration Commands

3.1 AT#INFO

Returns device information
ALLOWED: exec-state-info
AT#INFO
exec :
AT#INFO #HW_version: M110Series-01V #Cellular_Module:u-blox-SARA-U201-23.60 #Bootcode_version: mPACK_boot_1.0_rc1_b2017112301 #SW_build: mPACK_m110_2.1_rc0_2018022601ALPHA01 #FLASH ID: 0xef,0x4015
OK
state :
AT#INFO? #HW_version: M110Series-01V #Cellular_Module:u-blox-SARA-U201-23.60 #Bootcode_version: mPACK_boot_1.0_rc1_b2017112301 #SW_build: mPACK_m110_2.1_rc0_2018022601ALPHA01 #FLASH ID: 0xef,0x4015
OK
info :
AT#INFO=? OK

3.2 AT#CONFIGDEL

Factory reset device configuration
ALLOWED: exec
Note: Device restarts after this command is executed
AT#CONFIGDEL
exec :
AT#CONFIGDEL OK
M110 Series Cellular Modem mPACK Command Reference 12
Chapter 3. Administration Commands

3.3 AT#RESET

Software reset the M11X device
ALLOWED: exec
AT#RESET
exec :
AT#RESET OK

3.4 AT#MRST

This command resets the M11x module after a programmed delay. The M11x module will reset cyclically until this mode is disabled.
ALLOWED: exec-state-info
AT#MRST=(mode),(delay)
mode: timer reset mode
0: disabled
1: enabled
delay: time set to reset the embedded module
range: "000:01" - "167:59" (format hhh:mm)
remainTime: time before next reset
range: "000:01"- "167:59" (format hhh:mm)
exec :
AT#MRST=1,"100:00" OK
state (1 minute after executing the exec command):
AT#MRST? #MRST: 1,"100:00","099:59”
OK
info :
AT#MRST=? OK

3.5 AT#NWRST

Controls reset of the modem in case of network failure conditions
M110 Series Cellular Modem mPACK Command Reference 13
Chapter 3. Administration Commands
ALLOWED: exec-state-info
Note: Network failure conditions are defined to be cases where registration to cellular/data network fails, or bad signal quality. Each time only one of the above network conditions are checked
AT#NWRST=(option),(timer),(counter)
option: 0 to disable, 1 to enable, 2 to configure. Default disabled
timer : 5-120 second interval at which network conditions are checked (different network conditions
are checked each time). Default 5
– counter: 10-1000; count of consecutive network failures, after which the device will reset if option = 1.
Default 10
exec :
AT#NWRST=2,10,18 OK
state :
AT#NWRST? #NWRST: 0,10,18
OK
info :
AT#NWRST=? #NWRST: (0-2),(5-120),(10-1000)
OK

3.6 AT#MATSCR

Enters a list of modem-internal AT commands (cannot be mPACK AT# commands) that will be executed at each start up
ALLOWED: exec-state-info
AT#MATSCR=(list_of_commands)
list of commands: one or more uBlox-AT commands, separated by ’; ’ as typed (i.e. “” are OK)
exec :
AT#MATSCR
> (a list of uBlox AT commands separated by ’; ’ , terminated by ctrl-Z)
OK
state :
AT#MATSCR? #MATSCR: “(commands as entered, no formatting)
OK
M110 Series Cellular Modem mPACK Command Reference 14
Chapter 3. Administration Commands
info :
AT#MATSCR=? #MATSCR: (180)
OK

3.7 AT#USBATCOM

Enables/Disables cellular AT command over USB.
ALLOWED: exec-state-info
Note: When turning on, sometimes it depends on behaviour of the device driver on the computer whether the port can be found. If not found, user needs to detach and re-attach the USB port
AT#USBATCOM=(flag)
flag: 0 to disable cellular AT commands on the USB port (and allow cellular AT commands on the
serial port); 1 to reverse the ports
exec :
AT#USBATCOM=1 OK
state :
AT#USBATCOM? #USBATCOM: 1
OK
info :
AT#USBATCOM=? #USBATCOM: (0-1)
OK

3.8 AT#PASS

Enables / Disables pass-through mode.
ALLOWED: exec-state-info
Note:
This command applies to a specific version of software only.
In M113-NB, user can enter either mPACK commands (usually beginning with AT#) or u-Blox com-
mands (usually beginning with AT+, or just AT) at one time, but not both. In order to enter the other set of command, the user need to use AT#PASS to switch between the 2 modes:
M110 Series Cellular Modem mPACK Command Reference 15
Chapter 3. Administration Commands
PASS mode set to 0 : pass-through mode disabled; only mPACK commands are accepted.
PASS mode set to 1 : pass-through mode enabled; only u-Blox commands are accepted.
– If pass-through mode is disabled (can check with AT#PASS?) and enabling pass-through mode is
desired:
AT#PASS=1 to change to pass-through mode
– If pass-through mode is enabled (cannot check with AT#PASS?, which returns ERROR, as this is not
u-Blox command), and exit pass-through mode is desired:
Issue +++ (and the modem should exit pass-through mode)
AT#PASS=0 to make the switch permanent (otherwise, the modem will be in pass-through mode
again when it restarts)
AT#PASS=(flag)
flag: 0 to disable pass through mode, 1 to enable. Default 0
Note all commands work only when pass-through mode is 0.
exec :
AT#PASS=1 OK
state :
AT#PASS? #PASS: 0
OK
info :
AT#PASS=? #PASS: (0-1)
OK

3.9 AT#STRUPMSG

Edits the startup message of mPACK software.
ALLOWED: exec-state-info
Note:
– The startup sequence of unsolicited response of the mPACK software is always :
length:0
(startup message)
AT#STRUPMSG=(text)
M110 Series Cellular Modem mPACK Command Reference 16
Loading...
+ 39 hidden pages