
WX2NB Manual v.1.0
Page 37 / 40
8.
RECEIVING OF MESSAGE
OSM.Server supports sending remote commands in a form designed specially for
WX2NB. If a message received by the device is incorrect, it is deleted automatically
and the device takes no action.
8.1.
LX PROTOCOL
The following message format is accepted:
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; after execution of command a
confirmation is sent.
RESET
Resets device. Note: all unsent events will be lost.
OUT=outNr,state
Turn on or turn off outputs.
outNr
specifies output
number (0 for OUT1),
state
specifies requested
output state (0 – switched off, 1 – switched on).
Below are allowed combinations:
OUT=0,0
– switches off TMP output
OUT=0,1
– switches on TMP output
DESC
Returns device description, serial number
(hexadecimal number) and firmware version.
GETCFG
Gets primary communication parameters of device
SERVER=server
Server address; it can be in form of IP or domain
name address.
PORT=port
Server port number.
RLIMIT
Removes automatic temporary locks on all inputs
RLIMIT=inputs_mask
Removes selected automatic temporary locks.
Parameter is decimal number made from 9-bit word:
A2, A1, where A2 means INPUT 1, A3 INPUT 2, A4
INPUT 3, A5 INPUT 4.
EXAMPLE:
RLIMIT=6
removes locks on inputs: IN1, IN2
RLIMIT=2
remove lock on input IN1
FLUSH=x
Flushes events buffer, where
x
is:
2 – system events history