Field Operation Instructions
 

Communications with ISFS Data Systems at CWEX

ping DSM

To check whether the modem and router in an isfs data system are alive and have registered their address with dyndns.org:

ping ncarN.dyndns.org


ssh to DSM from internet

From a system on the internet with a customized .ssh/config file::

ssh ncarN

From a system on the internet without a customized .ssh/config:

ssh -p 30022 root@ncarN.dyndns.org

A custom .ssh/config file is under svn at http://svn.eol.ucar.edu/svn/projects/CWEX11/ISFF/config/ssh or on the EOL servers at $ISFF/projects/CWEX11/ISFF/config/ssh. There is also an id_dsa_dsm key file there, which if installed on your system will allow logging into a dsm without a password.


rserial

On DSM (after login via ssh or from serial console):

rs N

N: 1=sonic, krypton 2=baro, G=GPS, 4=prop, 5=TRH, 6=dsm_volt, wetness 7=TRH, 8=Licor Esc, h (escape followed by h) to switch to hex output, Esc,a for ASCII. Do ctrl-d or ctrl-c to terminate rserial.

From linux system with NIDAS, anywhere on internet, including flux laptop in base:

rserial /dev/ttySX ncarN.dynsns.org

/dev/ttyS1 is sonic, /dev/ttyS2 is baro, etc as in N above, except that /var/tmp/gps_pty0 is GPS.


power cycle I/O port

After login to a DSM via ssh or serial console, to power off a serial port on the 8-port emerald expansion card:

eio N 0

Power on:

eio N 1

N: 5=TRH, 6=dsm_pwr, wetness 7=TRH, 8=Licor

Power cycle a viper port from the DSM login:

vio N 0

vio N 1

N: 1=sonic, 2=baro, 3=GPS, 4=prop, 7=router

The commands can also be specified in the ssh command line from a remote system. From the flux laptop:

ssh ncarX eio N 0

ssh ncarX eio N 1

One can do both commands in one ssh login,as in this example, from a system on the internet:

ssh -p 30022root@ncarN.dyndns.org "eio N 0; sleep 1; eio N 1"


data stats

On DSM

ds

or

data_stats

After a few seconds ctrl+c to see the sampling statistics.

From a linux system with NIDAS from anywhere on internet:

data_stats sock:eol-rt-data.guest.ucar.edu:30009

From linux system in EOL:

data_stats sock:grapegarden


data dump

On DSM:

data_dump -i dsmN,id [-H | -A ] -H for hex, -A for ASCII

From a system with NIDAS on internet:

data_dump -i dsmN,id [-H | -A ] sock:eol-rt-data.guest.ucar.edu:30009

From system with NIDAS at EOL:

data_dump -i dsmN,id [-H | -A ] sock:grapegarden

Example, to see sonic:

data_dump -i N,100 -H

id: 100=sonic,20=baro,30=GPS,40=prop,50=TRH-2m, 60=TRH-10m 0x8000=motes

 

mote dump or md

The mote_dump script runs data_dump with options for viewing mote data. On DSMs, md is an alias for mote_dump. To see which motes are reporting:

mote_dump [-r]

Use the -r option as shorthand for connecting to sock:eol-rt-data.guest.ucar.edu:30009. If you are logged into a DSM you do not need the -r option to display the local motes.

For help:

mote_dump -h

To display data, converted to floating point from mote id 7:

mote_dump [-r] 7

Or on a DSM

md 7

The sensor ids are displayed in hex format. For example, for an id of 1,0x8760 the leading 1 indicates the sample is from dsm 1. A hexadecimal sensor id of 0x8760 is mote ID 7 (0x8000 + mote * 0x0100) and sensor type 60. The hexadecimal sensor type numbers correspond to the following sensors:

Sensor Numeric type (hex)
Tsoil 20-23
Gsoil 24-27
Qsoil 28-2b
TP01 2c-2f
System voltage 49
Pyranometer, incoming 54-57
Pyranometer, outgoing 58-5b
Epply pyrgeometer, incoming 5c-5f
Epply pyrgeometer, out 60-63
K&Z pyrgeometer, in 64-67
K&Z pyrgeometer, out 68-6b
Short wave in, diffuse and global 70-73

 

Krypton voltage

kv

On each DSM, the kv command will display a few seconds of krypton data, for example:

2010 12 13 17:32:08.2317 0.01788 2, 102 8 0.745 nan

2010 12 13 17:32:08.2497 0.01795 2, 102 8 0.7458 nan

2010 12 13 17:32:08.2676 0.01796 2, 102 8 0.7453 nan

2010 12 13 17:32:08.2855 0.01786 2, 102 8 0.7452 nan

The next to last value (0.745) is the krypton voltage. The last value is the derived water vapor density which will be nan, since we don't have the calibration files on the DSMs.