PX200NB
–
Manual
Page 51 / 57
11.
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.
11.1.
DESCRIPTION OF THE PROTOCOL
The following format of message is acceptable allowing to send some
commands with one SMS (every command shall be separated with SPACE ):
SERVICE CODE
█
COMMAND
█
COMMAND
█
..........
Where:
SERVICE CODE - device service code
█
- SPACE
COMMAND
- order (see the table below)
List of commands:
DISC
Disconnects active TCP connection.
KILL
Reset modem.
RESET
Resets device. Note: all unsent events will be lost.
OUT=outNr,state
Turn on or turn off outputs.
outNr
specifies output
number,
state
specifies requested output state (0
–
switched off, 1
–
switched on).
Examples:
OUT=3,0
–
output I/O 3 off
OUT=6,1
–
output I/O 6 on
CMD=[timeout],command
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.
DESC
Returns device description, serial number
(hexadecimal number) and firmware version.
GETSTATUS
Returns device status.
The message content depends on what was
configured at the programming stage in the "SMS
Notifications" tab, the "Status" submenu.
In reply about status a device shall send one SMS
message containing proper text defining inter alia
actual output , input state, power supply, phone line.
GETPARAM=parameter_name Gets inquired parameter :SERVER, PORT, APN, UN,
PW, DNS1, DNS2, SMS, SMSPERIOD
GETCFG
Gets primary communication parameters of device in
form: SERVER:PORT,APN UN PW,DNS1
APN=apn
Access point to GPRS network via SIM 1 cards.
Parameter should be obtained from mobile network
operator. If APN address contain space sign put it
with “”, e.g. “my apn”.
UN=un
APN user name for SIM 1 card. Parameter should be
obtained from mobile network operator. If APN user