Skip to content
Snippets Groups Projects
Commit 051685b0 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Added more useful ADUH debug commands.

parent afd4f9a1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -150,3 +150,94 @@ Flash original latest images (email Boudewijn 6 feb 2017) using the GUI:
Check that data runs on DW:
- 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment