Make sure laptop clock is synchronized (see Sync to NTP)
Create a working directory (see Setup working directory)
Connect instrument to computer (see Connecting the Instrument)
Turn on communication and power after connection is established make sure power and comms are off before ODI connector is removed from parking position
Run mlterm, making sure to use a reasonable log-file name (see Starting mlterm)
Consider to increase download speed (see Increase download speed)
Download data D, making sure to use a reasonable file name
Get instrument stats F again
PI might suggests real-time monitoring while following next steps
Backup data (*.raw) to USB key (see Backup data)
strips off file system and generate xxxx.bin (there should be no errors)
Does some integrity checking and creates ASCII dump
Discuss with PI
Contact PI and discuss whether to clear memory
Backup *.log files and sent *.log and *.raw files to PI
Make sure the communication and power lines are turned off before the under water mateable connector is disconnected.
Working with the HP-Mini s that are used to download data from CORK s and BPR s requires some basic Linux skills. This section provides some recipes for common tasks.
Click on the terminal icon
to open a command-line terminal window. If needed you can create tabs with additional terminals from the File menu.
Before you start to communicate with a CORK or BPR, create a working directory under /home/corks/Cruises or /home/corks/Tests–what ever seems more appropriate. If you are on a cruise you might consider creating subdirectories for individual instruments. In a terminal window change the directory to the working directory and execute cp /home/corks/corkobservatory/CalibrationFiles/\*.txt ./ to copy some calibration files into your working directory (see mlterm calibration files). Now, you’re all set to begin communication with the logger, data download, and post-processing.
If all of this is not clear to you, you might want to read Open a terminal window and Basic Linux Commands first.
After downloading data from an instrument and before clearing the memory, make sure that you make at least one backup copy of the data is on a USB key. To make a backup follow these steps:
Insert USB key (it will be mounted under /media)
Find out the name/directory of the drive (ls /media)
Copy files cp file1.raw [file2.log ...] /media/nameOfUSB (cp -R let’s you copy directories recursively)
Unmount USB key (click computer icon, hover over device–e.g. KINGSTON, click eject symbol)
Now the eject symbol should have disappeared and you can safely remove the device
Boot up the HP-Mini and make sure that wireless networking is enabled (both LEDs on front are blue) if you do not have a cabled connection.
Hover over icon on the bottom tool bar (globe, or wireless signal) and check if eth0 (cable) or eth1 (wireless are connected)
If no connection is up, click on the globe and connect to a network (e.g. TGT if you happen to be on the Thompson)
Todo
Add section about NTP setup
Most modern CORKs and BPR have an RS-422 serial interface. We found that Moxa UPort USB-to-RS422 converters provide the most reliable connections.
Before running mlterm in a command-line terminal, make sure you are in a directory that is appropriately setup (see Setup working directory). If you simply run mlterm, the session will be logged (appended) to a logfile named after the current date. It is advisable to use the -l myLogfile.log command-line option, to choose a descriptive name. On startup, mlterm tries all possible baudrates to connecte to the instrument. If the baudrate is known (115200 for all NEPTUNE instruments) the -b 115200 option provides a quicker initialization. As shown in Linux session with terminal window., the instrument should wake up after a short period of time and after hitting Enter the high-level mlterm menu will be presented.
Start mlterm (see Starting mlterm) and from high-level menu proceed as follows:
Now, your are all set to start the download procedure.
Note, the download baudrate will automatically be set to it’s default if you deploy the instrument by quitting mlterm with Z or after a timeout period of 30 minutes.
After downloading raw data from an instrument (see Simple health check and download) the data has to post-processed.
First, mlbin has to be applied (mlbin filename.raw) to turn the *.raw file into a *.bin file. The *.raw files still contain the filesystem of the flash card and recovery information in case there were errors in the data transmission. mlbin strips off the filesystem and tries to fix any errors that might have occured. The *.bin file only contains data records in binary counts.
mldat9 (mldat9 filename.bin) is the standart utility to calibrate *.bin data and write the results into a *.dat ASCII file. In order to use mldat9 you have to cd into the directory with the *.bin file and make sure there is also a current set of calibration files in the directory (see Setup working directory). While running mldat9 you will be ask whether the temperatures are measured using a platinum sensor or a thermistor. Platinum sensors are mostly used in CORKs and BPRs installed past 2009 and have two-digit serial numbers, while themistors have one digit serial numbers. The serial numbers are shown in the sites.txt calibratrion file (see mlterm calibration files) and should be noted in the respective *.par file under ~/corkobservatory/ParameterFiles. Furthermore, you are asked whether the Paroscientific gauge measures pressure and temperature or pressure only. If you do not know the answer you can lookup the gauge serial numbers that are mentionend in sites.txt in parosci.txt and check whether U0, Y1, Y2 are zero (pressure only) or non zeros (pressure and temperature). Then you have to select a data format (typically `` 4. Parosci temperature compensated pressure``) and a site description which is a line from the site.txt calibration file. The site description has the following format:
number: | description_rtcID | deploymentMonth | temperatureSerial | parosciSerial | parosciSerial | ... |
3: | 1027C_89 | Jul10 | 98 | 120238 | 120239 | ... |
mldat9 automatically removes spikes from the paros pressure and temperature channels that get sometimes generated by the measurement system and is convinient to use, but it has certain limitations:
To cope with these problems two Python programs were developed that can be used instead of mldat9 (see Install dependencies for Python scripts). The first script dumpBin.py can be used fix *.bin files by eliminating partial records, remove spikes, find problems, and dump the binary counts into an ASCII format that is human readable and can be calibrated using a calibrateLogfile.py.
A common workflow to process filename.bin using these scripts would be:
Run dumpBin.py --help and calibrateLogfile.py --help to study all available the commandline options.
There are three different calibration files:
Data base that associates deployment locations and times, logger IDs, and sensor IDs. This information is used for calibration routines.
Note, mldat and mlterm only support only up to 30 lines in sites.txt.
Todo
Changed mldat (wrt2dat.c – DEFINE MAXSITES) to support sites.txt files with more than 30 lines. Add same functionality to mldat (formatdata.c) requires CORK simulator for testing...
CORK pressure cases usually have an 6 pie AWQ bulkhead connector, that connects to an 7-pin ODI or SEACON underwater mateable connector. BPR pressure cases usually have an 2 piece AWQ bulkhead connector, that connects to a 7-pin ODI connector.
ODI to two pie AWQ cable
There are four HP-Minis setup to do CORK and BPR downloads around the world. It is also possible to compile the communication software for Mac and there is an image for VirtualBox that makes it possible to run the software on a Linux virtual machine under windows.
The Moxa UPort USB-2-RS422 to adapter provides superior download speeds over other brands. Unfortunately, the driver only supports older versions of Linux. UPDATE: There is a new driver released in summer 2012. Also, Nic Scott mentioned wrapping Windows drivers under Linux