--- a/endladcp2 Fri Jan 07 23:25:51 2011 +0000
+++ b/endladcp2 Thu Nov 21 14:01:21 2013 +0000
@@ -1,10 +1,10 @@
#!/usr/bin/expect -f
#======================================================================
-# E N D L A D C P 2
+# / U S E R S / L A D C P / B I N / L A D C P _ A C Q U I R E / E N D L A D C P 2
# doc: Wed Mar 10 22:23:52 2004
-# dlm: Wed Dec 1 03:15:23 2010
+# dlm: Sun Nov 10 04:14:09 2013
# (c) 2004 A.M. Thurnherr
-# uE-Info: 103 35 NIL 0 0 72 2 2 8 NIL ofnI
+# uE-Info: 25 58 NIL 0 0 72 2 2 8 NIL ofnI
#======================================================================
# HISTORY:
@@ -22,6 +22,7 @@
# - libBB.expect -> libRDI.expect
# Aug 26, 2010: - added support for ymodem_download_cmd
# Dec 1, 2010: - BUG: ymodem_receive_cmd instead of ymodem_download_cmd
+# Nov 10, 2013: - added directory listing before download
#----------------------------------------------------------------------
# Setup
@@ -45,7 +46,7 @@
}
#----------------------------------------------------------------------
-# Get Station Number
+# List Memory Contents
#----------------------------------------------------------------------
spawn bbabble -ms $tty0 $tty1;
@@ -55,8 +56,15 @@
wait_for_startup;
reset_two_instruments;
+select_master 0; send_user "\n"; list_dir;
+select_slave; send_user "\n"; list_dir;
+
+#----------------------------------------------------------------------
+# Get Station Number & Carry Out Sanity Check
+#----------------------------------------------------------------------
+
send_user "\nGetting station number...";
-select_master 0;
+select_master;
set master_deployment_name [get_deployment_name];
if {[scan $master_deployment_name $master_deployment_name_fmt master_stn] != 1} {
send_error "$master_deployment_name $master_deployment_name_fmt";