Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Keyword

Value

Type

VAISALA_CONN

On or Off - controls whether or not the connection to the Lantronix is on or off.

Can be used if the Vaisala needs to be unplugged and moved, for example.

Boolean which is writable.

VAISALA_IP

IP address of the Lantronix box.

String set in the configuration file, only readable.

VAISALA_PORT

Port for the Lantronix box that talks to the correct serial device.

String set in configuration file, only readable.

VAISALA_RETVAL

Value returned by Vaisala.

String. The format is set in the configuration file. Only readable.

VAISALA_TIME

Time stamp of when the last RETVAL was received.

Unix timestamp (binary) or time stamp (ascii). Only readable.

VAISALA_PRES

Pressure value in units of hPa.

Double value from RETVAL, read only.

VAISALA_RH

Relative humidity in %.

Double value from RETVAL, read only.

VAISALA_TEMP

Temperature in deg C.

Double value from RETVAL, read only.

DISPSTA

Dispatcher status.

Enum and read only. If value is 4 or “Not Connected” the connection to the Vaisala or the Lantonix is not available. If value is 3 or “Connecting” the dispatcher is attempting to connect to the Vaisala through the Lantronix.

Configuration

Value

Explanation

prefix

Vaisala

Prefix of the keyword names. If this is going to be changed, needs to be changed in XML directory as well.

ip

192.168.23.102

IP address of the Lantronix box.

port

10001

Port that is used for Vaisala, this is port 1.

format_str

form 9.4 "P=" P " " U6 6.4 "T=" T " " U3 6.4 "RH=" RH " " U4 \r \n

Format statement of the output from the Vaisala. At dispatcher start up and at every new connection, this value is sent to the Vaisala. The #.# sets the number of characters (first # ) and the second # sets the number of characters after the decimal point. There must be a space between the characters that notes what the value is (such as P=) and the actual value (the P). The code uses the characters (P=, RH= or T=) to determine what the next value is.

poll_time

5

Time between reads of the Vaisala in seconds.