diff --git a/applications/apertif/doc/apertif_wsrt_useful_commands_erko.txt b/applications/apertif/doc/apertif_wsrt_useful_commands_erko.txt index 05837eeae37551f9842233e9ff7d2a185e103386..1572f7fb7a085b4bc0248ed63f274ee8e7d52bb9 100755 --- a/applications/apertif/doc/apertif_wsrt_useful_commands_erko.txt +++ b/applications/apertif/doc/apertif_wsrt_useful_commands_erko.txt @@ -57,7 +57,7 @@ visibility_imag(end + 1,:) = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 New style: > cd $RADIOHDL/applications/apertif/commissioning/ -> python main.py --app apertif --tel 6 --unb 0 --opt none +> python main.py --app apertif --tel c,d --pol 0,1 --opt noflash python main.py --app <application> --tel <telescopes> --unb <uniboards> --opt <options> . application = "apertif" or "arts_sc1" . telescopes = 2,3,4,..,c,d @@ -149,4 +149,95 @@ Flash original latest images (email Boudewijn 6 feb 2017) using the GUI: ./startup_a8_system.sh Check that data runs on DW: -- watch -n 0.01 ifconfig \ No newline at end of file +- watch -n 0.01 ifconfig + + +############################################################################### +# Trials +############################################################################### + +cd $RADIOHDL/applications/apertif/commissioning/ +vi dish_commands.sh +python main.py --app apertif --tel c,d --pol 0,1 --opt noflash + +# read design version +ssh lcu-rtc -X "python $UPE/peripherals/util_system_info.py --unb 0:7 --fn 0:3 --bn 0:3 -n 2" + +# Read and verify default iblets setting in Rsub +ssh lcu-rtc -X "python $UPE/peripherals/pi_apertif_system.py --unb 0:7 --bn 0:3 --cmd 5" + +# read PPS count in BN +ssh lcu-rtc -X "python $UPE/peripherals/util_ppsh.py --unb 0:7 --bn 0:3 -n 1" + +# read PPS stable in BN (twice, second time has last result) +ssh lcu-rtc -X "python $UPE/peripherals/util_ppsh.py --unb 0:7 --bn 0:3 -n 10" +sleep 10 +ssh lcu-rtc -X "python $UPE/peripherals/util_ppsh.py --unb 0:7 --bn 0:3 -n 8" + +# read PPS delay in BN +ssh lcu-rtc -X "python $UPE/peripherals/pi_common_pulse_delay.py --unb 0:7 --bn 0:3" + +# read fiber delays in FN +ssh lcu-rtc -X "python $UPE/peripherals/pi_dp_fifo_monitor.py --unb 0:7 --fn 0:3 --reg rd_fill,wr_full,rd_empty,rd_usedw" + + +############################################################################### +# Read sensors + +# Read Uniboard sensors (all) +ssh lcu-rtc -X "python $UPE/peripherals/util_unb_sens.py -v 3 --unb 0:7 --fn 0:3 --bn 0:3 -n 0" +# Read Uniboard sensors per type +ssh lcu-rtc -X "python $UPE/peripherals/util_unb_sens.py -v 3 --unb 0:7 --fn 0:3 --bn 0:3 -n 1" # FPGA temperatures +ssh lcu-rtc -X "python $UPE/peripherals/util_unb_sens.py -v 3 --unb 0:7 --fn 0:3 --bn 0:3 -n 2" # ETH temperatures +ssh lcu-rtc -X "python $UPE/peripherals/util_unb_sens.py -v 3 --unb 0:7 --fn 0:3 --bn 0:3 -n 3" # Current +ssh lcu-rtc -X "python $UPE/peripherals/util_unb_sens.py -v 3 --unb 0:7 --fn 0:3 --bn 0:3 -n 4" # Voltage +ssh lcu-rtc -X "python $UPE/peripherals/util_unb_sens.py -v 3 --unb 0:7 --fn 0:3 --bn 0:3 -n 4" # Power = Current * Voltage + +# read ADU temperatures +ssh lcu-rtc -X "python $UPE/peripherals/util_adu_i2c_commander.py -v 3 --unb 0:7 --bn 0:3 --sp 0:3 -n 0" + + +############################################################################### +# Do ADU bist + +# Set ADU test mode +ssh lcu-rtc -X "python $UPE/peripherals/util_adu_i2c_commander.py --unb 0:7 --bn 0:3 --sp 0:3 -n 2" + +# Read the ADUH lock status (twice, second time has last result) +# . status_str = (clk_phs_select, wb_cnt, fifo_usedw, raw_phs, phase, in_clk_locked) +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 4" +sleep 10 +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 0" + +# Read the ADUH BIST verify test pattern result (twice, second time has last result) +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 5" +sleep 10 +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 1" + +############################################################################### +# Do ADU normal + +# Set ADU normal mode +ssh lcu-rtc -X "python $UPE/peripherals/util_adu_i2c_commander.py --unb 0:7 --bn 0:3 --sp 0:3 -n 1" + +# Update ADU I2C sequences +ssh lcu-rtc "python $UPE/apps/apertif_beamformer/util_apertif_beamformer.py --unb 0:7 --bn 0:3 --fn 0:3 --sp 0:3 -v 3 --cmd 39" +# Set ADU ADC[1,0] to 0 dB +ssh lcu-rtc -X "python $UPE/peripherals/util_adu_i2c_commander.py --unb 0:7 --bn 0:3 --sp 0:3 -n 5" +# Set ADU led on +ssh lcu-rtc -X "python $UPE/peripherals/util_adu_i2c_commander.py --unb 0:7 --bn 0:3 --sp 0:3 -n 31" + +############################################################################### +# Read ADUH lock clk_phs_select and write ADUH control to enable only that clk_phs + +# Check the ADUH lock status (twice, second time has last result) +# . status_str = (clk_phs_select, wb_cnt, fifo_usedw, raw_phs, phase, in_clk_locked) +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 0" + +# Fix clk_phs +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 6" + +# Read the ADUH lock status (twice, second time has last result) +# . status_str = (clk_phs_select, wb_cnt, fifo_usedw, raw_phs, phase, in_clk_locked) +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 4" +ssh lcu-rtc -X "python $UPE/peripherals/util_aduh_quad.py --unb 0:7 --bn 0:3 --sp 0:3 -n 0"