From c6f98f5856ffd8002e6b44d04eb0799566bac989 Mon Sep 17 00:00:00 2001 From: Harry Ho Date: Tue, 21 Dec 2021 17:59:34 +0800 Subject: [PATCH] test_{creotech,mlabs}: Remove RP power control --- test_creotech | 11 ++--------- test_mlabs | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/test_creotech b/test_creotech index 933b54d..ca869f8 100755 --- a/test_creotech +++ b/test_creotech @@ -4,10 +4,7 @@ # powering on MCH and RP using ~/power_strip/ scripts # Display power-on time TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') -echo "MCH & RP powered on at $TIMESTAMP_PRETTY." -# Test RP network connectivity -# NOTE: Change $RP_HOST inside `rp_ping_test` for your own setup! -./rp_ping_test & +echo "MCH powered on at $TIMESTAMP_PRETTY." # Power on MCH ./mch_start & # Wait 2 minutes before measurement @@ -22,16 +19,12 @@ sleep 120 # Wait 1 minute before powering off MCH and RP sleep 60 -# Issue shutdown on RP, and wait until RP is disconnected -# NOTE: Change $RP_HOST, $RP_USER & $RP_KEY inside -# `rp_shutdown` for your own setup! -./rp_shutdown & # Wait 30 seconds sleep 30 # Simultaneously power off MCH and RP # Display power-off time TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') -echo "MCH & RP powered off at $TIMESTAMP_PRETTY." +echo "MCH powered off at $TIMESTAMP_PRETTY." # Power off MCH ./mch_stop diff --git a/test_mlabs b/test_mlabs index 96518fd..d1af462 100755 --- a/test_mlabs +++ b/test_mlabs @@ -15,10 +15,7 @@ export HUBPORT=4 # powering on MCH using tnetplug, and RP using uhubctl # Display power-on time TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') -echo "MCH & RP powered on at $TIMESTAMP_PRETTY." -# Test RP network connectivity -# NOTE: Change $RP_HOST inside `rp_ping_test` for your own setup! -./rp_ping_test & +echo "MCH powered on at $TIMESTAMP_PRETTY." # Power on MCH echo "A" | nc -W1 $TNETPLUG_HOST $TNETPLUG_PORT & # Power on RedPitaya connected to the smart USB hub @@ -34,17 +31,13 @@ nix-shell -p python3Packages.matplotlib python3Packages.numpy python3Packages.sc # Wait 1 minute before powering off MCH and RP sleep 60 -# Issue shutdown on RP, and wait until RP is disconnected -# NOTE: Change $RP_HOST, $RP_USER & $RP_KEY inside -# `rp_shutdown` for your own setup! -./rp_shutdown & # Wait 30 seconds sleep 30 # Simultaneously power off MCH and RP # Display power-off time TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') -echo "MCH & RP powered off at $TIMESTAMP_PRETTY." +echo "MCH powered off at $TIMESTAMP_PRETTY." # Power off MCH echo "a" | nc -W1 $TNETPLUG_HOST $TNETPLUG_PORT & # Power off RedPitaya connected to the smart USB hub