Campbell Scientific CWS220 Wireless Sensor Network (CWB100, CWS220, and CWS900 - Page 38

CWB100 Instruction

Page 38 highlights

Wireless Sensor Network TABLE 4.1-1. Values Transmitted by CWS Sensors Sensor Values Transmitted CWS220 Wireless Infrared Radiometer 5 CWS655 Wireless Water Content Reflectometer 8 CWS900 Wireless Sensor Interface* 4 - 10 *See Section 1.4 for more information on number of values transmitted by the CWS900 In the network example shown in Section 3, a CWS655 and a CWS900 configured for a 109-L probe are used. The CWS655 transmits 8 values and the CWS900 transmits 4 values. The array needs to be dimensioned for at least 12 variables, for example: Public WSN(12) The array can be sized larger than necessary to allow additional sensors to be added to the network later without reprogramming the datalogger. Oversizing the array will use extra datalogger memory and should be implemented with caution. 4.2 CWB100() Instruction The CRBasic instruction CWB100 is used to set up the polling of the base station by the datalogger. The instruction has the following format: CWB100( Port, Destination Array, Configuration ) Port: The Port parameter is a constant indicating the odd numbered control port (C1, C3, C5, or C7) to which the CWB100 DATA line will be connected. Destination Array: The Destination Array is the array variable that will hold the values from the network. Its size determines the maximum number of values expected from the sensor network. One of the following error codes may be written to the first element of the destination array if there is a problem with communication between the datalogger and the CWB100 (see Section 7 Troubleshooting for more information): Error Code -1 -2 -3 Meaning of Error Code The datalogger has failed after three consecutive attempts to collect data from the base station. The signature verifying communication is wrong. The signature of the names held by the datalogger is different from the signature of names held by the CWB100. 30

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70

Wireless Sensor Network
TABLE 4.1-1.
Values Transmitted by CWS Sensors
Sensor
Values Transmitted
CWS220 Wireless Infrared Radiometer
5
CWS655 Wireless Water Content Reflectometer
8
CWS900 Wireless Sensor Interface
*
4 – 10
*
See Section 1.4 for more information on number of values transmitted by the CWS900
In the network example shown in Section 3, a CWS655 and a CWS900
configured for a 109-L probe are used.
The CWS655 transmits 8 values and
the CWS900 transmits 4 values.
The array needs to be dimensioned for at least
12 variables, for example:
Public WSN(12)
The array can be sized larger than necessary to allow additional sensors to be
added to the network later without reprogramming the datalogger.
Oversizing
the array will use extra datalogger memory and should be implemented with
caution.
4.2
CWB100() Instruction
The CRBasic instruction CWB100 is used to set up the polling of the base
station by the datalogger.
The instruction has the following format:
CWB100
( Port, Destination Array, Configuration )
Port
:
The Port parameter is a constant indicating the odd numbered control
port (C1, C3, C5, or C7) to which the CWB100 DATA line will be connected.
Destination Array
:
The Destination Array is the array variable that will hold
the values from the network. Its size determines the maximum number of
values expected from the sensor network.
One of the following error codes may be written to the first element of the
destination array if there is a problem with communication between the
datalogger and the CWB100 (see Section 7 Troubleshooting for more
information):
Error Code
Meaning of Error Code
-1
The datalogger has failed after three consecutive attempts to
collect data from the base station.
-2
The signature verifying communication is wrong.
-3
The signature of the names held by the datalogger is different
from the signature of names held by the CWB100.
30