Difference between revisions of "Super-Site"

From IARC 207 Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
 +
 +
 +
 +
 +
 +
 +
===Current Programs===
 +
CSI Signature Values on 2014-08-11... checked from Dropbow/Logger_programs/super-site/:
 +
 +
==> SS_Diag_Diagnostic.dat <==
 +
"TOA5","SS_Diag","CR1000","29724","CR1000.Std.20","CPU:ss_diag_2011-01-25.CR1","30274","Diagnostic"
 +
    30274 ss_diag_2011-01-25.CR1
 +
 +
==> SS_Eco_1_AirTemps.dat <==
 +
"TOA5","SS_Eco_1","CR1000","13604","CR1000.Std.22","CPU:ss_eco1_2012-07-10.CR1","10119","AirTemps"
 +
    10119 ss_eco1_2012-07-10.CR1
 +
 +
==> SS_HeatFlux_1_Diagnostic.dat <==
 +
"TOA5","SS_HeatFlux_1","CR1000","47954","CR1000.Std.24","CPU:ss_hf_2012-10-09.CR1","31220","Diagnostic"
 +
    31220 ss_hf_2012-10-09.CR1
 +
 +
==> SS_Met_AirTemps.dat <==
 +
"TOA5","SS_Met","CR1000","30801","CR1000.Std.20","CPU:ss_met_2013-03-06.CR1","47292","AirTemps"
 +
    47292 ss_met_2013-03-06.CR1
 +
 +
==> SS_SnowTemp_Diagnostic.dat <==
 +
"TOA5","SS_SnowTemp","CR1000","22972","CR1000.Std.16","CPU:ss_snow_pro_2011-10-10.CR1","19271","Diagnostic"
 +
    19271 ss_snow_pro_2011-10-10.CR1
 +
 +
==> SS_Soil_Diagnostic.dat <==
 +
"TOA5","SS_Soil","CR1000","29723","CR1000.Std.20","CPU:ss_soil_2010-11-03.CR1","11488","Diagnostic"
 +
    11488 ss_soil_2010-11-03.CR1
 +
 +
 +
===Older Content===
 +
 
Here's a page started by Bob.  Not sure how often I'll be adding stuff but it's been on my to-do list.  Thought I'd start with packages added to the toughbook.   
 
Here's a page started by Bob.  Not sure how often I'll be adding stuff but it's been on my to-do list.  Thought I'd start with packages added to the toughbook.   
 
===COTS network system===
 
===COTS network system===

Revision as of 12:02, 11 August 2014




Current Programs

CSI Signature Values on 2014-08-11... checked from Dropbow/Logger_programs/super-site/:

==> SS_Diag_Diagnostic.dat <==
"TOA5","SS_Diag","CR1000","29724","CR1000.Std.20","CPU:ss_diag_2011-01-25.CR1","30274","Diagnostic"
    30274 ss_diag_2011-01-25.CR1
==> SS_Eco_1_AirTemps.dat <==
"TOA5","SS_Eco_1","CR1000","13604","CR1000.Std.22","CPU:ss_eco1_2012-07-10.CR1","10119","AirTemps"
    10119 ss_eco1_2012-07-10.CR1
==> SS_HeatFlux_1_Diagnostic.dat <==
"TOA5","SS_HeatFlux_1","CR1000","47954","CR1000.Std.24","CPU:ss_hf_2012-10-09.CR1","31220","Diagnostic"
    31220 ss_hf_2012-10-09.CR1
==> SS_Met_AirTemps.dat <==
"TOA5","SS_Met","CR1000","30801","CR1000.Std.20","CPU:ss_met_2013-03-06.CR1","47292","AirTemps"
    47292 ss_met_2013-03-06.CR1
==> SS_SnowTemp_Diagnostic.dat <==
"TOA5","SS_SnowTemp","CR1000","22972","CR1000.Std.16","CPU:ss_snow_pro_2011-10-10.CR1","19271","Diagnostic"
    19271 ss_snow_pro_2011-10-10.CR1
==> SS_Soil_Diagnostic.dat <==
"TOA5","SS_Soil","CR1000","29723","CR1000.Std.20","CPU:ss_soil_2010-11-03.CR1","11488","Diagnostic"
    11488 ss_soil_2010-11-03.CR1


Older Content

Here's a page started by Bob. Not sure how often I'll be adding stuff but it's been on my to-do list. Thought I'd start with packages added to the toughbook.

COTS network system

It's not the cheapest way to go but I thought going for commercial hardware for the network components would be the way to go. We'll see once the site is operational for a winter or two. Presently, what I have going on is something like this:

This antenna picks up WiFi from a building at PFRR:
RadioLabs very directional antenna

This WiFi adapter has a linux compatible chipset and was easy to setup:
RadioLabs Magnum II USB Adapter
This powered USB extender (extend using ethernet cable from box to box) allows the usb wifi adapter to be up on the tower, minimizing the coax losses on the run to the antenna:
XTENDEX USB-C5-CE
I picked up some underground burial suitable Cat5E to go from the computer usb extender to the tower usb extender:
purchase link
So those items combine to get you to the computer.

I have two CSI white boxes. One to house the computer and one to house the tower USB & WiFi stuff. Each is lined with blueboard, sealed with duct seal, and has some extra desiccant to keep it dry, hopefully warm enough in the cold, time will tell on that though. I'll crunch the numbers at some point to see how much heat is being generated / how quickly it's dissipating. I don't expect to need to use the toughbook directly, should be available for sshing from UAF proper or via wired ethernet onsite but on the off chance I do need to connect locally, I have a VGA adapter connected to the computer and will leave a surplussed CRT monitor out at the site. Connection to the laptop will be via a bluetooth keyboard/touchpad combo:
purchase link

The computer is then connected to a network switch. This allows it to connect to the local NL100 and handle any local DHCP traffic. Probably a future upgrade will be a wireless bridge to allow other computers access to the internet / reduce the amount of brittle cabling laying about in the shed. See below for information and particulars of the software setup.

Toughbook Setup

Toughbook is a CF-19 (small one with the touchscreen)

  1. Install Ubuntu 10.10
  2. Install Xinput Calibrator as per suggestions here
  3. Install Numpy
  4. Install Git
  5. Install DHCP server for local network access on eth0 (wlan0, intel chipset installed on toughbook wasn't designed to serve as a wireless access point)
  6. Install DNS Masq for supplying dns to local network (eth0 only) dnsmasq website
  7. Manually configure IPTables for internet connection sharing
    1. See rules on internally accessed folder (must be within iarc.uaf.edu to view & not through browser)
  8. Install Loggernet for Linux
    1. Handy: this page on rpm to dem
    2. Handy: Ken's Notes
    3. Handy: Redhat vs. Debian naming convention
    4. Gist is to change the daemon command in csilgrnet, csildmp, csildep to something like this: start-stop-daemon --start --user loggernet --exec /opt/CampbellSci/LoggerNet/csilgrnet -- --run-as-daemon=true
  9. LoggerNet isn't initially running at start. For ubuntu:
     cd /etc/init.d;  sudo update-rc.d myscript defaults 99 01
  10. clone git repositories for datapro tools
 cd ~/.ssh
ssh-keygen -t rsa -C "bob"
cat ~/.ssh/id_rsa.pub
[paste key on github]
cd ~/working_files/bin/py_datapro/
git clone git@github.com:frankohanlon/DataPro.git
  1. sftp datapro configs
  2. Buy a bluetooth keyboard/mouse
  3. set up sshd
  4. set up keys w/ toughbook & iarc.server
  5. add sites to loggernet
  6. Add Internal Temperature monitoring for the toughbook see Ref 1, and Ref 2

CPU & case temperature monitoring:

sudo sensors-detect
sudo nano /etc/modules [insert the output from the previous step]
sudo modprobe coretemp
sensors

sudo apt-get install hddtemp
sudo hddtemp/dev/sda
sudo /home/bob/working_files/bin/computer_diag.sh

TB Temperature Logger Script:

#!/bin/bash

aa=$(date +'"%G-%m-%d %H:00:00",')


temp1=$(grep 'temp1' /home/bob/working_files/ss_status/ss_current_temp.txt | cut -c13-18)
temp1=$aa$temp1
echo $temp1 >> /home/bob/working_files/ss_status/ss_temp1.csv

temp2=$(grep 'temp2' /home/bob/working_files/ss_status/ss_current_temp.txt | cut -c13-18)
temp2=$aa$temp2
echo $temp2 >> /home/bob/working_files/ss_status/ss_temp2.csv

temp3=$(grep 'Core 0' /home/bob/working_files/ss_status/ss_current_temp.txt | cut -c13-18)
temp3=$aa$temp3
echo $temp3 >> /home/bob/working_files/ss_status/ss_core0.csv

temp4=$(grep 'Core 1' /home/bob/working_files/ss_status/ss_current_temp.txt | cut -c13-18)
temp4=$aa$temp4
echo $temp4 >> /home/bob/working_files/ss_status/ss_core1.csv

TB Wireless Signal Logger Script:

#!/bin/bash

aa=$(date +'"%G-%m-%d %H:00:00",')

wire1=$(grep 'Link Quality' /home/bob/working_files/ss_status/ss_current_wireless.txt | cut -c24-25)
wire1=$aa$wire1
echo $wire1 >> /home/bob/working_files/ss_status/ss_link_quality.csv

wire2=$(grep 'Link Quality' /home/bob/working_files/ss_status/ss_current_wireless.txt | cut -c44-47)
wire2=$aa$wire2
echo $wire2 >> /home/bob/working_files/ss_status/ss_link_signal.csv


Things running locally on the cron:

1     *      *    *     * (/home/bob/working_files/bin/site_process.sh) > /home/bob/working_files/bin/site_cron_log.txt
5     0      *    *     0 (/home/bob/working_files/bin/weekly_archive.sh) > /home/bob/working_files/bin/archive_cron_log.txt

Sensors

To Do

  1. Figure out problems with Soil Moisture probes
  2. Figure out problem with soil heat flux plate
  3. Emailed this site to CSI 11/30/2010.

Local Network

I'd draw pictures if I knew how. Anyway:

  • Small Toughbook gets internet over wlan1 from the Poker Flats facility over DHCP
  • Out of eth0, the wired ethernet port, it acts as a DHCP server on the 192.168.1.1 address range.
  • The site NL100 is set to 192.168.1.2
  • The camera is set to _____
  • There is a network switch so that other devices can also connect such as the eddy flux down the road.

PakBus etc.

Computer MD485:

RS485 & RS232 Active
RS485@ 38k
RS232@ 115.2k

Logger MD485s are setup:

RS485 & CSI/O active
CSI/O Mode -- Modem Enabled
Transparent communication mode
CSI/O @ 38k
RS485 @ 38k


Data loggers:

Super-Site Met (16 meter tower & radiation) -- PakBus ID 420
Super-Site Soil (Soil Pit, Heat Flux, Snow, Surface Temps) -- PakBus ID 421
Super-Site Power (Current Monitor & diagnostics) -- PakBus ID 422
Super-Site Eco1 (Ecosystem PAR & Vapor pressure) -- PakBus ID 423

If required for Plan B Freewave FGR radios are set up as:

CSI RF450 - Multipoint Master
   + RS232 @115.2k
   + S/N 882-5337
   + FreqKey 13
Freewave FGR-115RC - Multipoint slave
   + RS232 @ 115.2k
   + S/N 873-7563
   + FreqKey 13

Field Visit Checklists

SS Jan 2011 Trip 1
SS Feb 2011 Trip 1
SS Mar 2011 Trip 1
SS Mar 2011 Trip 2
SS June/Jul 2011 Trip 1