Copyright © NetPing east Co., Ltd E-mail:
Phone:+886-2-23121582
support@netpingdevice.com
[ENG] 12.8. [DKSF 48.4 IU] How to Control a Device Using SMS Commands
A device features a possibility of remote controlling using SMS commands.
Syntax of SMS Commands
A general format of a text of an SMS command:
where:
fff – is a code of a command, for example, Р1+ (see below).
community_w – is a password, which corresponds to an SNMP community for reading. it is set at the page «
» of a device web interface. It is
SETUP
possible to use Latin letters, numbers, _, without quotes and spaces.
kkkkk – is an identifier of a request (a random number from 3 to 9 numbers). It is repeated in a response for compliance between request and response.
It is an optional element of a command. If there is no identifier in a command, it is absent in response as well.
Command Codes
A command code is indicated together, without spaces.
Command
Code
Description
Pn+
Switch on a relay n, where n is a relay number
Pn-
Switch off a relay n, where n is a relay number
PnR
Reboot a relay n, where n is a relay number
PnW
Switch a relay n into the management mode
, where n is a relay number
«Watchdog»
PnS
Switch a relay n into the management mode «Schedule», where n - is a relay number
PnX
Switch a relay n into the management mode «SWatchdog», where n is a relay number
PnL
Switch a relay n into the management mode «Logic Output», where n - is a relay number
Pn?
Request a status of a relay n, where n - is a relay number
P?
Request a status of all relays in a brief form
S?
Request a status of a group of sockets and inputs
Sx=y
Set a main input for a group of sockets x, where
x - is a number of a group of sockets: 1
y - is a number of a power supply input: 1 or 2;
(sockets 1..4) or 2 (sockets 5..8)
SxB+
Allow reserving an input for a group of sockets x, where x is a number of a group of sockets: 1 (sockets 1..4) or 2 (sockets 5..8)
SxB-
Forbid reserving an input for a group of sockets x, where x is a number of a group of sockets: 1 (sockets 1..4) or 2 (sockets 5..8)
SxR+
Allow automatic return to the main input for a group of sockets x, where x - is a number of a group of sockets: 1 (sockets 1..4) or 2
(sockets 5..8)
NETPING fff community_w kkkkkk
A text of a command is case insensitive, hence it is possible to use uppercase and lowercase letters. Elements of a command are separated by
spaces. It is unacceptable to use the next characters: ‘ (apostrophe), “ (quotes), @. Including these characters can cause a firmware failure.
Executing of a command is confirmed by a response message (see below).
A polarity (direction) of switching a relay when resetting must correspond to the one specified in the settings of the module «
Watchdog» (reset mode). If a relay is already reset, a reset command will not have any effect though a response message
about its successful execution «NP DONE PnR» will be sent to a sender.