Connect to SDL V2 Logger Terminal

  1. Download the free open source terminal program Tera Term (or use a comparable terminal program) here.
    1. Select the link for the ‘teraterm-4.97.exe file’. The download will begin automatically.
    2. Complete the installation with the default components shown.
  2. Connect a 6-pin RS485-USB cable to the PC.
    1. Allow Windows to download the driver automatically.
    2. Verify the COM port of the cable once the download is complete by viewing the Ports (COM & LPT) segment of Window’s Device Manager.
  3. Launch Tera Term. The following screen will appear. Click Cancel.
  4. Navigate to Setup|Serial Port and enter the COM port of the USB cable in addition to the other serial settings shown in the screenshot below and click OK.
  5. Connect the UW-end of the UW6-USB cable to the SDL V2’s center port. The logger will power from the 5V input and a startup message will display.
    1. Note that for most sensors to communicate, (16) D-cell batteries will need to be installed by removing the white battery lid to supply 12V power.

 

Verify and Change Logger Settings

A number of terminal commands are available for running the initial sensor detection, setting log intervals, and uploading logged data. A complete list of commands is available by sending the ? argument in the terminal.

Detect Sensors (only for new systems or existing systems will newly added sensors)

Commandautodetect
DescriptionAutomatically runs pre-loaded sensor scripts to identify the make, model, and address of all connected sensors to determine which parameters will be logged and made available for download. Lasts approximately 2-5 minutes and terminates with the ‘autodetection complete’ message.

Start/Return Instantaneous Reading from all sensors

Command #1rundaq
DescriptionInitiates a reading from all detected sensors. Reports ‘Daq Success’ when complete.

Command #2show daq
DescriptionShows the last data acquisition in memory.  The last sensor readings are stored in RAM.  If no sensor reading has taken place, the values are default to 0 (i.e. immediately after power cycle).  Datalogger diagnostics (battery voltage, etc.) are always displayed first.

View Log Intervals

Commandshow logintv
Argumentnone
DescriptionFor the SDL V2, each sensor has a unique log interval. This command displays the log interval (in seconds) of each sensor separated by a space. The first entry is always the internal logger diagnostic sensor.

ex. 21600 1800 for a single sensor SDL V2 logging diagnostic parameters (battery voltage etc.) every 6 hours and sensor data every 30 minutes.

Set Log Intervals

Commandset logintv <sec>

set logintv <sec1>…<secn>

Argument<sec> log interval in second for all sensors

<sec1> log interval in second for sensor 1

<secn> log interval in second for sensor n

DescriptionThis command has 2 formats.  If only one interval is specified, all sensors, except internal diagnostic sensors, are set to this same interval.  If more than one argument is specified, the first argument is for internal diagnostic sensor, the next argument is for sensor 1 and so on.  Not all arguments are required.

Check/Set SDL V2 Clock

Commandshow time
DescriptionShows the SDL V2 time in yyyy-mm-dd hh:mm:ss UTC format

Commandset time <date> <time>
Argument<date> either 4 or 2 digit year is acceptable, yyyy-mm-dd or yy-mm-dd.  All three field must be entered.

<time> 24 hour format hh:mm:ss.

DescriptionDisplays the set SDL V2 RTC time in yyyy-mm-dd hh:mm:ss UTC format

View Logged Data

Commandshowlogdata <date> [time]
Argument<date> begin date in the form of either 4 or 2 digit year is acceptable, yyyy-mm-dd or yy-mm-dd.  All three fields must be entered.[time] optional begin time hh:mm:ss.  If not specified, default to 0:0:0.  All three fields must be entered.
DescriptionDisplays logged data in CSV file format.  This command is the same as uploadlogdata command except that it streams the csv file to the terminal emulator as opposed to upload using Y-MODEM file transfer protocol.  After entering the command, the G2 display the message

Loading log data… Please wait.

Depending the amount of data, loading log data takes a few seconds to a few minutes.  During this time, the SDL V2 pulls the logged data and creates a CSV file in a temporary folder to be uploaded.

After the CSV file has been created, the G2 starts outputting the data one line at a time. 

Download Logged Data

Commanduploadlogdata <date> [time]
Argument<date> begin date either 4 or 2 digit year is acceptable, yyyy-mm-dd or yy-mm-dd.  All three field must be entered.

[time] optional begin time hh:mm:ss.  If not specified, default to 0:0:0.  All three fields must be entered.

DescriptionUpload data stored in the logger memory in CSV file format.  The SDL V2 uses Y-Modem file transfer protocol to upload data from the logger to the PC.  After entering the command, the SDL V2 will display the message

 

Loading log data… Please wait.

Depending the amount of data, loading log data takes a few seconds to a few minutes.  During this time, the SDL V2 pulls the logged data and creates a CSV file in a temporary folder to be uploaded.

After the CSV file has been created, the SDL V2 outputs the following message.  At this point, start Y-MODEM file transfer on the terminal emulator. In Tera Term Pro, select “File | Transfer | YMODEM | Receive…” menu to start the file transfer.

Successfully created file ‘<filename>’.

Sending file as ‘<filename>’…

Please start YMODEM receive.

(In Tera Term select ‘File | Transfer | YMODEM | Receive…’ menu)