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

Account for dual pol or single pol for flash decision. Use -n 20 -r 6 command...

Account for dual pol or single pol for flash decision. Use -n 20 -r 6 command to set default ADUH attenuation to 6 dB for both ADC.
parent 444d9171
No related branches found
No related tags found
No related merge requests found
...@@ -110,11 +110,11 @@ python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 --bn 0:3 -n 4 ...@@ -110,11 +110,11 @@ python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 --bn 0:3 -n 4
# Print the user firmware image design names # Print the user firmware image design names
python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 --bn 0:3 -n 2 python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 --bn 0:3 -n 2
# Get number of required images actually running on BN # Get number of required images actually running on BN (32 for dual pol, 16 for single pol)
ACT_IMAGE_FB=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --bn 0:3 -n 2 | grep -c $IMAGE_FB_RBFNAME) ACT_IMAGE_FB=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --bn 0:3 -n 2 | grep -c $IMAGE_FB_RBFNAME)
echo -n "BN image $IMAGE_FB_RBFNAME found running on $ACT_IMAGE_FB back nodes: " echo -n "BN image $IMAGE_FB_RBFNAME found running on $ACT_IMAGE_FB back nodes: "
if [ "$ACT_IMAGE_FB" == "32" ]; then if [ "$ACT_IMAGE_FB" == "32" ] || [ "$ACT_IMAGE_FB" == "16" ]; then
echo Continuing without BN reflash echo Continuing without BN reflash
FLASH_BN=FALSE FLASH_BN=FALSE
else else
...@@ -122,11 +122,11 @@ else ...@@ -122,11 +122,11 @@ else
FLASH_BN=TRUE FLASH_BN=TRUE
fi fi
# Get number of required images actually running on FN # Get number of required images actually running on FN (32 for dual pol, 16 for single pol)
ACT_IMAGE_BF=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 -n 2 | grep -c $IMAGE_BF_RBFNAME) ACT_IMAGE_BF=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 -n 2 | grep -c $IMAGE_BF_RBFNAME)
echo -n "FN image $IMAGE_BF_RBFNAME found running on $ACT_IMAGE_BF front nodes: " echo -n "FN image $IMAGE_BF_RBFNAME found running on $ACT_IMAGE_BF front nodes: "
if [ "$ACT_IMAGE_BF" == "32" ]; then if [ "$ACT_IMAGE_BF" == "32" ] || [ "$ACT_IMAGE_BF" == "16" ]; then
echo Continuing without FN reflash echo Continuing without FN reflash
FLASH_FN=FALSE FLASH_FN=FALSE
else else
...@@ -202,8 +202,13 @@ python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3 ...@@ -202,8 +202,13 @@ python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3
# Update ADU I2C sequences # Update ADU I2C sequences
python $UPE/apps/apertif_beamformer/util_apertif_beamformer.py --unb $UNBS --bn 0:3 --fn 0:3 --sp 0:3 -v 3 --cmd 39 python $UPE/apps/apertif_beamformer/util_apertif_beamformer.py --unb $UNBS --bn 0:3 --fn 0:3 --sp 0:3 -v 3 --cmd 39
# Set ADU ADC[1,0] to 0 dB # Set ADU ADC[1,0] attenuation to -r dB.
python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3 -n 5 # * using -n 20 -r 6 is equivalent to using util_adu_i2c_commander.py -n 6
# * using -n 20 -r 0 is not equivalent to util_adu_i2c_commander.py -n 5, because
# util_adu_i2c_commander.py -n 5 sets ADC 0 to 6 dB and ADC 1 to 0 dB
#python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3 -n 5
python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3 -n 20 -r 6
# Set ADU led on # Set ADU led on
python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3 -n 31 python $UPE/peripherals/util_adu_i2c_commander.py --unb $UNBS --bn 0:3 --sp 0:3 -n 31
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment