10. RECEIVING OF SMS MESSAGE
GPRS module receives specially prepared SMS. If received SMS is not correct it will
be automatically cancelled and device will not operate any action. The device uses an
encrypted protocol for transmission.
10.1. REMOTE COMMANDS DESCRIPTION
The following format of message is acceptable allowing to send some commends with
one SMS (every command shall be separated with SPACE ):
SERVICE CODE█COMMAND█COMMAND█………
Where:
- order (see the table below)
Disconnects active TCP connection.
Reset modem; after execution of command a confirmation is
sent.
Reset device. Note: all unsent events will be lost.
Turn on or turn off outputs. outNr specifies output number
(0 for OUT1, 1 for OUT2, 2 for OUT3), state specifies
requested output state (0 – switched off, 1 – switched on).
Examples:
OUT=0,0 – switches off output OUT1
OUT=2,1 – switches on output OUT3
Issues AT command to GSM modem and sends response
back. Optional timeout parameter defines time for modem
response. Time determined in seconds and ranges from 1-30
seconds. If timeout isn’t specified, 3 seconds is assumed.
Returns device description, serial number (hexadecimal
number) and firmware version.
Download device status. Command sends text back
according to definition from chapter 8.6.3. Status.
Gets inquired parameter :SERVER, PORT, APN, UN, PW,
DNS1, DNS2, SMS, SMSPERIOD
Gets primary communication parameters of device in form:
SERVER:PORT,APN UN PW,DNS1
Access point to GPRS network. Parameter should be
obtained from mobile network operator. If APN address
contain space sign put it with “”, e.g. “my apn”.
APN user name. Parameter should be obtained from mobile
network operator. If APN user name contain space sign put it
with “”, e.g. “my user name”.
APN password. Parameter should be obtained from mobile
network operator. If APN password contain space sign put it
with “”, e.g. “my password”.
If the role of the GPRS channel is sets as "Unused", this
command sets the address of the server and the role GPRS
channel as "Backup."
If the role of the GPRS channel is DIFFERENT than "Unused"
(it’s mean turned on), this command sets only the address
of the server.