mPack Command List
mPack Command List
System
AT#INFO
exec
AT#INFO
#HW_version: M110Series-01V
#Cellular_Module:u-blox-SARA-G340-08.90
#Bootcode_version: mPack_boot_1.0_rc1_b2017112301
#SW_build: mpack_m110_2.0_rc5_2018013001
#FLASH ID: 0xef,0x4015
OK
state
AT#INFO?
#HW_version: M110Series-01V
#Cellular_Module:u-blox-SARA-G340-08.90
#Bootcode_version: mPack_boot_1.0_rc1_b2017112301
#SW_build: mpack_m110_2.0_rc5_2018013001
#FLASH ID: 0xef,0x4015
OK
info
AT#INFO=?
+ERROR: operation not allowed
AT#CONFIGDEL
Erase configuration and reset to factory settings. Device will restart after executing this command. exec
AT#CONFIGDEL
OK
state
AT#CONFIGDEL?
+ERROR: operation not allowed
info
AT#CONFIGDEL=?
+ERROR: operation not allowed
AT#RESET
Reboot the modem. exec
AT#RESET
Hardware
AT#SERIAL
exec
AT#SERIAL=<baudrate>,<char_framing>
OK
Parameters
<baudrate> - speed of the serial interface. Allowed values: 1200, 2400, 9600, 19200, 38400, 57600, 115200
<char_framing> - Allowed values: "8N1", "8N2", "9O1", "9E1"
state
AT#SERIAL?
#SERIAL: 115200,"8N1"
OK
info
AT#SERIAL=?
#SERIAL: (1200,2400,4800,9600,19200,38400,57600,115200),("8N1","8N2","9O1","9E1")
OK
AT#HFLW
Enable hardware flow control. exec
AT#HFLW=<n>
OK
Parameters
<n>
0 - disable hardware flow control
1 - enable hardware flow control
AT#LED
exec
AT#LED=1,0
OK
AT#LED=<pos>,<state>
<pos>
1 - green
2 - amber
<state>
0 - off
1 - on
2 - blinking
state
AT#LED?
#LED: 1,1
OK
info
AT#LED=?
#LED: (1,2),(0-2)
OK
AT#SETRTC
Command to set RTC parameter. exec
AT#SETRTC=<oper>,<param1>,<param2>,<param3>
OK
if <oper> = 0
AT#SETRTC=0<hh>,<mm>,<ss>
<hh> - hours
<mm> - minutes
<ss> - seconds
if <oper> =1
AT#SETRTC=1,<YY>,<MM>,<DD>
<YY> - year
<MM> - month
<DD> - day
if <oper> = 2
stop the RTC
AT#GETRTC
Retrieve RTC status. exec
AT#GETRTC
#GETRTC: 2017/12/05,19:58:01
OK
state
AT#GETRTC?
+ERROR: operation not allowed
info
AT#GETRTC=?
+ERROR: operation not allowed
AT#VIO
Command to configure versatile I/O. exec
AT#VIO=<index>,<mode>
OK
Parameters
<index>
1 - first input
2 - second input
<mode>
DI - Digital Input
AN - Analog Input
DO - Digital Output
state
AT#VIO?
+ERROR: operation not allowed
info
AT#VIO=?
#VIO: (1,2),(\"DI\",\"AN\",\"DO\")
OK
AT#RDIO
Command to read versatile I/O status. exec
AT#RDIO=<index>
#RDIO: <index>, <mode>, <status>
OK
Parameters
<index>
1 - first input
2 - second input
<mode>
DI - Digital Input
<status> - 0 (low) or 1 (high)
AN - Analog Input
<status> - voltage or current value
DO - Digital Output
<status> - 0 (open) or 1 (closed)
AT#VAMODE
Command to set current or voltage mode. exec
AT#VAMODE=<index>,<mode>
OK
Parameters:
<index> - number of input pin
<mode>
1 - for current mode
0 - for voltage mode
state
AT#VAMODE?
#VAMODE=1,1
#VAMODE=2,0
OK
info
AT#VAMODE=?
#VAMODE: (1-2),(0-1)
OK
AT#OPSET
To control versatile I/O in output mode. exec
AT#OPSET=<index>,<mode>
OK
Parameters
<index> - number of input pin
<mode>
1 - close output
0 - open output
Note: output state is reset on power up.
I/O triggered messaging commands
AT#DITRIG
Configure DI high low threshold parameter. exec:
AT#DITRIG=<pin_number>,<min_val>,<max_val>,<debounce>
OK
Parameters:
<pin_number> - 1-2
<min_val> - 0-32000, in mV
<max_val> - 0-32000, in mV (must be >= min_val)
<debounce> - 0-10 (in seconds)
state:
AT#DITRIG?
#DITRIG: 1,3000,11250,10
#DITRIG: 2,0,3200,0
OK
info:
AT#DITRIG=?
#DITRIG: (1,2)(0-32000),(0-32000),(0-10)
OK
AT#DITRIGENB
Enable DI trigger parameters. exec:
AT#DITRIGENB=<pin_number>,<enb>,<trigger_type>
OK
Parameters:
<pin_number> - 1-2
<enb>
0 = disable trigger
1 = specify timeout
<trigger_type>
0 = unused
1 = high-to-low transition trigger
2 = low-to-high transition trigger
3 = unused
state:
AT#DITRIGENB?
#DITRIGENB:1,0,1
#DITRIGENB:2,1,3
OK
info:
AT#DITRIGENB=?
#DITRIGENB:(1-2),(0-1),(0-3)
OK
AT#MSGPER
Configuring Message generation period and total number of messages to be generated. exec:
AT#MSGPER=<pin_number>,<interval>,<count>
OK
Parameters:
<pin_number> - 1-2
<interval> - how often messages are generated, in seconds. Value must be in range 0-60000
<count> - number of messages generated. Value must be in range 0-100
state:
AT#MSGPER?
#MSGPER: 1,0,0
#MSGPER: 2,10,3
OK
info:
AT#MSGPER=?
#MSGPER: (1-2),(0-60000),(0-100)
OK
AT#MSGSTR
Configure Message ID and message strings associated with the 2 pins. exec:
AT#MSGSTR=<op>,"<msg_ID>","<msg1>","<msg2>"
OK
Parameters:
<op>
0 = disable message string (not yet implemented)
1 = enable message string (not yet implemented)
2 = configure message string
<msg_ID> - message ID
<msg1> - concatenated with <msg_ID> for DI1
<msg2> - concatenated with <msg_ID> for DI2
state:
AT#MSGSTR?
#MSGSTR: 2,"Maestro","001","234"
OK
info:
AT#MSGSTR=?
#MSGSTR: (0-2),(120),(5),(5)
OK
Cellular
AT#IPCELLULAR
Configure the GPRS parameters for the SIM card. exec
AT#IPCELLULAR=<slot>,"<apn>","<username>","<password>"
OK
<slot>
1 - current SIM slot
2 - n/a
<apn> - Access Point Name of the SIM card
<username> - specific GPRS username for the SIM card
<password> - specific GPRS password for the SIM card
state
AT#IPCELLULAR?
#IPCELLULAR:
SIM1: "internet","a","a"
OK
info
AT#IPCELLULAR=?
#IPCELLULAR: (1),(64),(25),(25)
OK
AT#IPCONNECT
Command to control the GPRS connection. exec
AT#IPCONNECT=1,<mode>
OK
Parameters
<mode>
0 - disable GPRS connection
1 - enable GPRS connection
state
AT#IPCONNECT?
#IPCONNECT: 1,1
OK
info
AT#IPCONNECT=?
#IPCONNECT: (1),(0-1)
OK
AT+IPPING
exec
AT+IPPING=<mode>,"<address>",<nb>,<delay>,<timeout>
OK
// Example
AT#IPPING=2,"8.8.8.8",4,10,5000
OK
Parameters
<mode>
0,1 - reserved
2 - configure ping address and parameters
<address> - IP address of the target to be pinged. Can be set as an IPv4 format or as a domain
<nb> - number of ping trials for each ping action. Allowed values: 1..10 (3 = default value)
<delay> - time, in seconds, between each ping trial. Allowed values: 1..10 (3 = default value)
<timeout> - time, in miliseconds, before the request is considered to have failed. Allowed values: 5000..60000.
IP sockets
AT#IPTCP
Command to set TCP socket parameters. exec
AT#IPTCP=<port>,'<mode>',"<ip>",<delay>
OK
<port> - port number from 0 to 65535
<mode>
'C' - modem acts as a client and connects to a remote server
'S' - modem acts as a server and waits from an incoming connection from a client
<ip> - IP address
<delay> - this parameters is deprecated and has no effect, use 0
state
AT#IPTCP?
#IPTCP: 1,7111,'C',"1.2.3.4",1
#IPTCP: 2,7121,'C',"1.2.3.4",1
OK
info
AT#IPTCP=?(CR)(LF)
#IPTCP: (0-65535),("C","S"),(120),(0,1)
OK
AT#IPUDP
Command to set UDP socket parameters. exec
AT#IPUDP=<port>,'<mode>',"<ip>",<delay>
OK
<port> - port number from 0 to 65535
<mode>
'C' - modem acts as a client and connects to a remote server
'S' - modem acts as a server and waits from an incoming connection from a client
<ip> - IP address
<delay> - this parameters is deprecated and has no effect, use 0
state
AT#IPUDP?
#IPUDP: 1,7111,'C',"1.2.3.4",
#IPUDP: 2,7121,'C',"1.2.3.4",
OK
info
AT#IPUDP=?(CR)(LF)
#IPUDP: (0-65535),("C","S"),(120),(0,1)
OK
AT#AUTOTCP
Command to control auto TCP funcionality. exec
AT#AUTOTCP=0
OK
AT#AUTOTCP=<state>
<state>
0 - disable AUTOTCP
1 - enable AUTOTCP
state
AT#AUTOTCP?
#AUTOTCP: 0
OK
info
AT#AUTOTCP=?
#AUTOTCP: (0,1)
OK
AT#AUTOUDP
Command to control auto UDP funcionality. exec
AT#AUTOUDP=0
OK
AT#AUTOUDP=<state>
<state>
0 - disable AUTOUDP
1 - enable AUTOUDP
state
AT#AUTOUDP?
#AUTOUDP: 0
OK
info
AT#AUTOUDP=?
#AUTOUDP: (0,1)
OK
AT#IPOPT
Optional IP socket parameters. exec
// for <option>=1,2
AT#IPOPT=<option>,<value>
// for <option>=5
AT#IPOPT=<option>,<value>,<string>
Parameters:
<option>
1 - Keep alive packet
2 - Packet size
5 - Data to be sent on first connection
<value>
for <option>=1 - Duration, in seconds, to send keep alive packet. Allowed values: 1..43200 (0 = disable feature)
for <option>=2 - TCP packet size. Allowed values: 1..1472 (0 = use default size)
for <option>=5
0 - do not send any data on first connection
1 - Enable data on first connection
2 - Edit the string to be sent on first connection
<string> - maximum of 120 hex characters, length has to be even
state
AT#IPOPT?
#IPOPT:
#IPOPT: 1,0
#IPOPT: 2,1020
#IPOPT: 3,
#IPOPT: 4,
#IPOPT: 5,0,""
OK
info
AT#IPOPT=?
OK
AT#AUOPT
Optional parameters for AUTOTCP feature. exec
// for <option>=1,2,3,5
AT#AUOPT=<option>,<value>
// for <option>=4,6
AT#AUOPT=<option>,<value>,<string>
Parameters:
<option>
1 - Connection idle period
2 - Server idle
3 - Connection period
4 - Remote prefix
5 - Heartbeat packet
6 - Serial prefix
<value>
for <option>=1 - Duration, in minutes, of connection without data transfer. Allowed values: 1..43200 (0 = disable feature)
for <option>=2 - Duration, in minutes, of server without a connected remote client. Allowed values: 1..43200 (0 = disable feature)
for <option>=3 - Duration of connection. Allowed values: 1..43200 (0 = disable feature)
for <option>=4
0 - Disable data on first connection
1 - Enable data on first connection
2 - Edit the string to be sent
for <option>=5 - Period after which to send the Heartbeat packet. Allowed values: 1..180 (0 = disable feature)
for <option>=6
0 - Disable data on first connection
1 - Enable data on first connection
2 - Edit the string to be sent
<string>
for <option>=4 - maximum of 120 hex characters, length has to be even
for <option>=6 - maximum 2 hex characters
state
AT#AUOPT?
#AUOPT: 1,(Connection idle period)
#AUOPT: 2,(Server idle)
#AUOPT: 3,(Connection period)
#AUOPT: 4,(Remote prefix status),"(Remote prefix)"
#AUOPT: 5,(Heartbeat packet)
OK
info
AT#AUOPT=?
OK
AT#OTCP
On-demand TCP socket connection. exec
AT#OTCP=<mode>
OK
Parameters:
<mode>
0 - Disable manual TCP connection
1 - Enable manual TCP connection
state
AT#OTCP?
#OTCP: 0
OK
info
AT#OTCP=?
#OTCP: (0-1)
OK
AT#OUDP
On-demand UDP socket connection. exec
AT#OUDP=<mode>
OK
Parameters:
<mode>
0 - Disable manual UDP connection
1 - Enable manual UDP connection
state
AT#OUDP?
#OUDP: 0
OK
info
AT#OUDP=?
#OUDP: (0-1)
OK
D2Sphere
AT#IPD2S AT#D2S AT#DVNAME
Remote
AT#SMSAT
Remote AT command by SMS. exec
AT#SMSAT=<mode>(,<param>)
OK
// Disable remote AT command by SMS
AT#SMSAT=0
OK
// Enable remote AT command by SMS
AT#SMSAT=1
OK
// Set the password to be 123456
AT#SMSAT=2,123456
OK
// Disable the SMS response
AT#SMSAT=3,0
OK
Parameters
<mode> - configuration mode
0 - disable remote AT command by SMS