Enabling the Reception of Legacy ALERT Data via an RS232 Port
or an Incoming TCP/IP Socket Stream
The application alert_operational.exe is used to receive Legacy ALERT data. Using this application, Legacy ALERT data can be received via an RS232 port or on incoming TCP/IP socket streams.
To enable, add the following line to the dwtask.cfg file:
\DataWise\Core\alert_operational.exe [copy=xx] [+d] [+v]
Where xx is the copy number of the alert_operational.exe to start (default is 1)
+d enables debug messages
+v enable verbose mode
The source of ALERT data is specified through files in the \DataWise\Config sub-directory.
To specify serial ports on which to receive Legacy ALERT data, enter them in file \DataWise\Config\alert_ports.cfg.
The format of the file is:
comport baudrate mappingfile validfile hsecontrols offset
Where:
comport => RS232 port on which to receive data
baudrate   => baudrate of the comport
mappingfile => "YES" or "NO". If "YES", info is in \DataWise\Config\Alert\ml4.cfg (4 = com4)
validfile   = >"YES" or "NO". If "YES", info is in \DataWise\Config\Alert\vl4.cfg (4 = com4)
hsecontrols => "YES" or "NO". If "YES", port open for Reading and Writing, otherwise just Reading
offset => value to add to sensor ID's
A sample line is:
com4 9600 No No Yes 0
Enter one line per com port to receive Legacy ALERT data on.
************************************************************************
To specify incoming TCP/IP socket streams to receive Legacy ALERT data on, enter the information in file \DataWise\Config\alert_socket_ports.cfg.
The format of the file is:
port mappingfile validfile offset prefix
An example is:
5001 No No 0 No
Where:
port => TCP/IP Port number
mapfile => "YES" or "NO". If "YES", info is in \DataWise\Config\Alert\ms2101.cfg (2101 = port)
validfile => "YES" or "NO". If "YES", info is in \DataWise\Config\Alert\vs2101.cfg (2101 = port)
offset   => value to add to sensor ID
prefix => for now, just set to "No"
As many lines as desired can be entered in order to receive data on multiple sockets.
The structure of a mappingfile is (one ALERT ID per line to map)
Received_ALERT_ID = New_ID
For example,
1234 = 9876
The structure of a validfile is as follows:
IDS 1234 1235 1236 ...
RANGE 1001 2001
Use as many lines in a valid file as needed
If a validfile is used, only ID's specified will be filed