Lantronix M110 Series Installation 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.
Lantronix is a registered trademark of Lantronix, Inc. in the United States and other countries.
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 ModesofOperation ......................................... 9
2.2 GettingStarted............................................ 9
2.3 Defaultsettings............................................ 10
2.4 BasicCommandSyntax....................................... 10
2.5 LEDStatusIndicator......................................... 10
2.6 Factoryreset ............................................. 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.10AT#SERVAUTH............................................ 36
7.11AT#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.1AT#IPD2S............................................... 43
10.2AT#D2S................................................ 43
M110 Series Cellular Modem mPACK Command Reference 4

Table of Contents
10.3AT#DVNAME ............................................. 44
10.4 How to add a M110 modem to D2sphere platform (feature) . . . . . . . . . . . . . . . . . . . 44
10.5OperationofD2sphere........................................ 45
11 I/O Triggering Commands 46
11.1AT#DITRIG .............................................. 46
11.2AT#DITRIGENB ........................................... 46
11.3AT#MSGPER............................................. 47
11.4AT#MSGSTR............................................. 48
11.5AT#TRANSMODE .......................................... 48
12 Location Commands 50
12.1AT#MLOC............................................... 50
13 Applications Notes 51
13.1CellularSetupExample ....................................... 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

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

Chapter 1. Introduction
–3G: 5.76 / 7.2 Mbps
–NB-IoT: 62.5 / 27.2 kbps
–LTE-M1: 375 / 375 kbps
–LTE cat. 1: 5 / 10 Mbps
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

Chapter 2. Basic Operation
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
–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

Chapter 2. Basic Operation
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)
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

Chapter 3. Administration Commands
–text : text for the startup message, up to 60 printable ASCII characters. Note that there is always a
startup message, and the default startup message is “READY”, which can be selected using “*” as the
text argument (and shown as “*” in state query).
exec :
AT#STRUPMSG=”Hello”
OK
state :
AT#STRUPMSG?
#STRUPMSG: ”Hello”
OK
info :
AT#STRUPMSG=?
#STRUPMSG: (60)
OK
M110 Series Cellular Modem mPACK Command Reference 17

4: Hardware commands
4.1 AT#SERIAL
Configure the user-side UART baudrate, character-framing and flow control
ALLOWED: exec-state-info
Note:
–Bauds 300, 600 are not supported
–The character-framing of 7 data-bytes does work with current configuration, but unreliably.
–Note that modem will reset if AT#SERIAL exec command is issued
AT#SERIAL=(baud),(charFraming),(flowCtrl)
–baud: one of (1200,2400,4800,9600,19200,38400,57600,115200)
–charFraming: one of ("8N1","8N2","9O1","9E1"). See also note above.
–flowCtrl
•0: disable
•1: enable
exec :
AT#SERIAL=115200,"8N1",0
OK
state :
AT#SERIAL?
#SERIAL: 115200,"8N1",0
OK
info :
AT#SERIAL=?
#SERIAL: (1200,2400,4800,9600,19200,38400,57600,115200),("8N1","8N2","9O1","9E1"),(0-1)
OK
4.2 AT#HFLW
Enable or disable hardware flow control
M110 Series Cellular Modem mPACK Command Reference 18

Chapter 4. Hardware commands
ALLOWED: exec-state
AT#HFLW=option
–option
•0: disable flow control
•1: enable flow control
exec :
AT#HFLW=1
OK
state :
AT#HFLW?
#HFLW: 1
OK
info :
AT#HFLW=?
ERROR
4.3 AT#SETRTC
Set (or stop) the real time clock
ALLOWED: exec-state-info
AT#SETRTC=(op),(value1),(value2),(value3)
–op:
•0 = enter time, (value1,value2,value3) = (hh:mm:ss)
•1 = enter date, (value1,value2,value3) = (YY:MM:DD)
•2 = start or stop the RTC clock
–value1:
•hour if op is 0; year if op is 1;
•1 to enable RTC and 0 to disable RTC, if op is 2
–value2:
•minute if op is 0; month if op is 1
–value3:
•second if op is 0; day if op is 1
M110 Series Cellular Modem mPACK Command Reference 19
Other manuals for M110 Series
2
Table of contents
Other Lantronix Modem manuals
Popular Modem manuals by other brands

Hitron
Hitron CGNV5 quick start guide

Boca Systems
Boca Systems On-Line EXPRESS EZ Installation Guide

Microwave Radio Communications
Microwave Radio Communications SCM4000 Technical reference manual

Peek Traffic
Peek Traffic LPM-14-E Reference manual

ARIMA
ARIMA Faro3 user manual

Tellion
Tellion IP-VDSL EX-1202Q manual