User guide
54
NTC-40 –HSPA+ M2M WiFi Router with Voice
YML40V
www.netcommwireless .com
NTC-40 Series – HSPA+ M2M WiFi Router
SMS Command format
Generic Format for reading variables:
get VARIABLENAME
PASSWORD get VARIABLENAME
Generic Format for writing to variables:
set VARIABLENAME=VALUE
PASSWORD set VARIABLENAME=VALUE
Generic Format for executing a command:
execute COMMAND
PASSWORD execute COMMAND
Replies
Upon receipt of successfully formatted, authenticated (if required) command, the router will reply to the SMS in the following format:
TYPE
SMS CONTENTS
NOTES
Get Command
“VARIABLENAME=VALUE”
Set Command
“Successfully set VARIABLENAME to VALUE”
Only sent if the acknowledgment message
function is enabled
Execute Command
“Successfully executed command COMMAND”
Table 27 - SMS Diagnostic Command Syntax
Where “VARIABLENAME” is the name of the value to be read
Where “VARIABLENAME(x)” is the name of another value to be read
Where “VALUE” is the content to be written to the “VARIABLENAME”
Where “COMMAND” is a supported command to be executed by the device (e.g. reboot).
Where “PASSWORD” is the password (if configured) for the corresponding sender number specified in the White List.
Multiple commands can be sent in the same message, if separated by a semicolon.
For Example:
get VARIABLENAME1; get VARIABLENAME2; get VARIABLENAME3
PASSWORD get VARIABLENAME1; get VARIABLENAME2
set VARIABLENAME=VALUE1 ; set VARIABLENAME2=VALUE2
PASSWORD set VARIABLENAME1=VALUE1; set VARIABLENAME2=VALUE2; set VARIABLENAME3=VALUE3
If required, values can also be bound by an apostrophe, double apostrophe or back tick.
For Example:
“set VARIABLE=’VALUE’”
“set VARIABLE=”VALUE””
“set VARIABLE=`VALUE`”
“get VARIABLE”
A password (if required), only needs to be specified once per SMS, but can be prefixed to each command if desired.
“PASSWORD get Variable1”; “get VARABLE2”
“PASSWORD set VARIABLE1=VALUE1”; “set VARIABLE2=VALUE2”
If the command sent includes the “reboot” command and has already passed the White List password check, the device keeps this
password and executes the remaining command line after the reboot with this same password.
For Example:
“PASSWORD execute reboot; get Variable1”; “get VARABLE2”
“PASSWORD execute reboot; PASSWORD get Variable1”; “get VARABLE2”
Commands are case insensitive, however variable names and values are case sensitive.