Skip to content

Campbell logger configuration

Campbell logger configuration for AURORA. The Campbell logging devices are logging the data from all of the AURORA instrumentation with the exception of the large AC instruments (radar, hatpro and ceilometer) and the WxCam. Even though some of these devices are capable of logging data independently (the Vaisala met station, and the licor for example), we're integrating all of these data into common files using the Campbell logger, this helps us keep data together and sync timings ect.

The logger is configured using the Windows software LoggerNet on the Windows VM. The software needs installing with a key from Campbell that means it can only be running on a single computer at once (although it possible to change the computer). Neely has a USB with a spare copy of the software. The key for this version of the software is LGRNET-8595-JWACQQUDNVNCYAKL

LoggerNet runs a program that goes around and collects all data from the logger as instructed and integrates it into a .dat files

We are running the loggernet program; AURORA-ASFS-COMPLETE.CR1X

The logger writes three .dat files to its CRD: card, named aurora_asfs_data_

_.dat: fast_sonic: Metek sonic samples, received and logged at the instrument’s 20 Hz rate. fast_gas: LI-7500DS gas samples, received and logged at the instrument’s 20 Hz rate. sci: science and housekeeping measurements, recorded as 1-minute averages (and, for many variables, standard deviations). Each file is rotated every 30 minutes; the timestamp in its filename is derived from the table timestamp. A 10-second main scan reads the slower sensors - so the averages are over 10s samples (including those averages derived from the fast instruments)

Logger model: CR1000Xe-XT-CC (-55 to +85 C, with campbell calibration) Serial number: 74035

Campbell peripheries: SDM-SIO4A ; 4 port Serial extension unit, SN: E5215 SDM-CD16S ; 16 port solid state DC controller, SN: 2000 Kingston 16 gb micro SD card (must be 16Gb)

Input power is 12VDC. The unit is protected by a 10A breaker.

There's various initial configuration options that are set up using the LoggerNet software on the windows VM. ... Michael to fill in the details here... But I think these config settings are backed up in the file AURORA-ASFS-COMPLETE.tdf

Data back up and transfers

There are two ways the data from the Campbell logger make it back to the computer. (1) crd: Data are storted on the Campbell logger SD card (16 gb) in the 'crd' directory, these are synced to the ass-linux machine using FTP run from the /home/aurora/scripts/asfs/run_asfssync.sh script and saved in the /home/aurora/data/asfs/raw/crd/ directory.

(2) collect: Data are help in the Campbell loggers ring buffer memory and periodically synched to the Windows Machine as described below. A power shell script (windows_cron_cp_raw_logger.ps1) run on the Windows machine syncs this data to the ass-linux machine and stores it in the /home/aurora/data/asfs/raw/loggernet/ directory.

Because (2) relies on Windows, the loggernet software, and because the ring buffer memory is relatively small, we conside (1) to be the primary method and the 'truth' with (2) as a secondary back up / sanity check.

crd storage

The SD card has 16 Gb storage and will overwrite the oldest data first as it becomes full - so the SD card filling and stopping writing new data is not a problem. You can view the files stored on the SD card in the Campbell logger software at "File Control" and look in the 'CRD' directory.
Occasionally it seems to producs files with a a weird name ... I'm not sure why this but it's intermittent and so hopefully won't be an issue. The script that syncs these files to the linux machine only parses new file names that aren't already backed up in that directory. This script runs once every 10 minutes initiated by the system service timer asfssync.service and asfssync.timer.
If there are a large number of files on the card that are not in the backup directory so that the transfer lasts longer than 10 minutes...that can cause a problem with multiple FTP calls stacking up and the files never catching up - this will probably break things. So files should not be deleted from /home/aurora/data/asfs/raw/crd/ without first changing the minimum date in the asfssync.py script.

collect storage

The Campbell logger has a "collect" program, which what runs if you hit the 'collect now' buttom on the LoggerNet software. As long as the LoggerNet software is OPEN on the Windows machine (it doesn't even have to be connected to the logger apparently) the 'collect' program will running in the background according to the settings in 'setup'->'asfs-logger'->'Collect Schedule'

The ring buffer memory is limited and can only hold up to 4 days of the fast sonic and licor data but several months of the standard science data, the exact amount of data that can be help in the ring buffer memory can be seen in loggernet Station Status --> Table fill times. As it get's full, the oldest data are overwritten. So, if the collect is offline (i.e. loggernet is closed) for more than four days, this pathway will loose data from the fast sonic and licor.

"Logic" switches

The SDM-CD16S has 16 DC voltage outputs that can be switched on and off manually or under datalogger control. Seperate inputs for the power to the outputs (48VDC max) and the power to the logic (7-48 VDC) allow the option of powering the logic from the datalogger 12 V while switching to a higher voltage. LEDs allow a visual indicator of active outputs.

The maximum current per channel is 2A, with a 10A max for the whole unit. SDM communication is wired into the Datalogger SDM control ports: C1 (data), C2 (clock), C3 (enable) - wired to C1, C2, and C3 on the logger for simlicity.

The main toggle switch has three positions: MANUAL, OFF, and AUTO. In MANUAL the outputs are controlled by the position of the rocker switches. in AUTO, the state of the relays is controlled by SDM commands from the datalogger. On AURORA installation, this should be set to AUTO. All of the rocker switches are in the 'on' position to keep things simple and memorable.

There's a rotation switch that controls the addresses of the 16 channels for the campbell logger. Currently set in position zero, this means the base 10 address for the cambpell logger of the 16 ports is 0 to 15.

To control the logic switches, we modify a txt file on the linux VM (/home/aurora/scripts/asfs/power_switches_current.cfg) and then transfer that onto the Campbell logger memory - the logger reads this file at the top of each scan (~every 10s) and updates the switches accrodingly. To modify the text file, modify the 'chan_str' variable on line 94 of the /home/aurora/scripts/asfs/send_asfs_power_config.py script. If chan_str=chan_str then the settings are the defaults defined earlier in the file. You can change this to chan_str = off_str as an easy way to turn everything off, or set it equal to a modified string of your choice.

Logic switch assignments

Address Device Breaker
0 Sonic heat 2A
1 Sonic power 2A
2 Licor 2A
3 SPN1 heat 1A
4 ASS internal fan 1A
5 SPN1 1A
6 SW-SKY 1A
7 SW-SNOW 1A
8 SnowVue 1A
9 VU-SKY fan 1A
10 VU-SKY heat 1A
11 VU-SNOW fan 1A
12 VU-SNOW heat 1A
13 IR20-SKY heat 1A
14 IR20-SNOW heat 1A
15 KT15 2A

CR1000Xe Wiring

Analog differential or single ended ports:

DIFF 1: IR20-SNOW signal (green wire -ve or Low, white +ve or High) DIFF 2: IR20-SKY signal (green wire -ve or Low, white +ve or High) SE 5: IR20-SKY case temperature (red) (with resistive bridge to VX1) SE 6: IR20-SNOW case temperature (red) (with resitvie bridge to VX2) DIFF 5: HFP01-05 (green wire -ve or Low, white +ve or High) DIFF 7: Verivolt (DC current monitor)

Pulse counting terminal functions:

P1: VU01-SNOW fan signal + (blue), with resistive bridge to 5V P2: VU01-SKY fan signal + (blue), with resistive bridge to 5V

Resistive grounds:

RG2 (resistive ground) : SW-SKY and SW-SNOW grounds.

Configurable ports:

C1-3: Synchronous Device Measurement protocol (up to 15 devices)

COMM ports 32 to 47 reserved for SDM-SIO4A (serial extention unit) COMM ports 0 to 15 ? are SDM-CD16S - check this, 16 ports from set starting address. use rotary switch on the device to select the starting address. Looks like it's currently set to zero. N

C1: SDM_Data (to port C1 on SDM-SI04A and SDM-CD16S) C2: SDM_Clock (to port C2 on SDM-SI04A and SDM-CD16S) C3: SDM_DataEnable (to port C3 on SDM-SI04A and SDM-CD16S)

VU01 - IR ventilation

PWM(lw_fan_power, C4, lw_fan_period, msec) - pulse width modulation C4: VU01-SKY and VU01-SNOW (white) - Fan signal status

SnowVue (SDI12)

SDI12Recorder(sr50data,C5,0,"C1!",1.0,0) C5: SnowVue10 data (white) (SDI12)

Shotwave sensors configured for digital modbus:

Const swd_addr = 1 (SKY) Const swu_addr = 2 (SNOW) Const modbus_port = ComC7 '37 Const modbus_baud = 19200 Const modbus_fmt = 2 ' low E 1 8 Const modbus_pr = 4 Const modbus_buffer = 100

C7: SW-SKY and SW-SNOW (grey)- RS485 - C8: SW-SKY and SW-SNOw (white)- RS485 +

Independently configurable voltage terminals (VX1-VX4):

These terminals are regularly used with resistive-bridge measurements. VX terminals can also be used to supply a selectable, switched, regulated 3.3 or 5 VDC power source. VX1: Resistive bridge to SE5 VX2: Resitive bridge to SE6

Space left for more sensors

Analog differential or single ended ports:

DIFF 4 or SE 7 and 8 DIFF 6 or SE 11/12 (reserved for additional HFP in greenland) DIFF 8 or SE 15 and 16

Resistive grounds:

RG1 (resistive ground)

Synchronous Device Measurement (SDM):

Up to 15 devices, 2 currently in use.

Configurable ports:

C6

Configurable voltage terminals:

VX3, VX4

Configuring Logger settings

FTP

NTP

Collection schedule

Ping

SDM-SIO4A Wiring

The SDM-SIO4A is a four port extension for Serial Input/Output devices managed by the Campbell Logger. It's wired into the logger in the same way as the other SDM module: C1 (data), C2 (clock), C3 (enable) - wired to C1, C2, and C3 on the logger for simlicity. COMM ports 32 to 47 reserved for SDM-SIO4A. It has an address switch on the side that sets the address of the first serial port (port 1), the rest of the ports have sequential addresses. Position 0 on this switch corresponds to port 1 = comm port 32. Since we're talkin got the KT15 on port 37, we must have the addres switch set to position 4 (check).

SDM-SIO4A port Comm port Pin Wire
1 36 RG1 -
G -
RTS/TD+ -
Tx/TD- -
Rx/RD+ -
CTS/RD- -
2 37 RG1 -
G KT15 (black)
RTS/TD+ KT15 (red)
Tx/TD- KT15 (blue)
Rx/RD+ KT15 (pink)
CTS/RD- KT15 (purple)
3 38 RG1 -
G -
RTS/TD+ -
Tx/TD- SPN1 (blue)
Rx/RD+ SPN1 (green/yellow)
CTS/RD- -
4 39 RG1 -
G -
RTS/TD+ -
Tx/TD- -
Rx/RD+ -
CTS/RD- -