1 configuration string – Campbell Scientific Wireless Sensor Network (CWB100, CWS220, and CWS900) User Manual

Page 39

Advertising
background image

Wireless Sensor Network

Configuration: The Configuration parameter is an optional constant string
parameter that specifies a list of sensor descriptions. This configuration string
is supplied by the user to predefine sensor and field names along with the order
in which values are returned to the destination array. It overrides the names
provided by the sensor and predefines field names.

This parameter can specify a file, as in “CPU:CWSConfig.txt”, in which case a
file called CWSConfig.txt that contains the configuration string is copied to the
datalogger’s CPU. The file can be created by the Wireless Sensor Planner or
Network Planner software and downloaded into the datalogger as part of the
process of configuring a network of sensors.

Use of the configuration string is optional.

4.2.1 Configuration String

The configuration string consists of a list of comma separated sensor
descriptions where each sensor description is a space separated list of the
following items:

Sensor ID

Radio ID of the sensor

Required

Sensor Name

Station name of the
sensor

Required

Number of Fields

Number of values to be
transmitted by the sensor

Optional. Defaults to 1
if not specified.

1

st

Field Name

Name of first value
transmitted.

Optional. Treated as
unknown if not specified

2

nd

Field Name

Name of second value
transmitted.

Optional. Treated as
unknown if not specified

N

th

Field Name

Name of last value
transmitted.

Optional. Treated as
unknown if not specified

It is good practice to keep the custom field names short in order to minimize
radio transmission time from a wireless sensor.

Unknown field names are serialized with an uncommon root name, "_F", with
the serial number starting at one greater than the number of field names
specified for that sensor.

Example of a configuration string:

12530A4013BA N40 9 WC_Corn EC_Corn Ts_Corn Ka PA VR Ti BV SS,
12530A4013B7 Barn 4 Tair Ti BV SS

The configuration string predefines field names in the destination array. The
advantage of this is that the datalogger table definitions do not change as
wireless sensors are discovered.

If no configuration string is specified, the elements of the destination array will
be renamed with field names from the sensors in the order that the sensors are

31

Advertising