]> jspc29.x-matter.uni-frankfurt.de Git - hades_mdc_settings.git/commitdiff
new serials and test scripts from climalte chamber test setup
authorMDC Test <mdc@mdcgsi>
Tue, 2 Jul 2024 16:36:58 +0000 (18:36 +0200)
committerMDC Test <mdc@mdcgsi>
Tue, 2 Jul 2024 16:36:58 +0000 (18:36 +0200)
pasttrec/pasttrec_baseline.db
scripts/autoaddress.pl
scripts/flashMBO.sh [new file with mode: 0755]
scripts/flashMBO_single.sh [new file with mode: 0755]
scripts/fpga_count.sh [new file with mode: 0755]
scripts/fpga_info_loop.sh [new file with mode: 0755]
scripts/programMBO.sh [new file with mode: 0755]
scripts/trbflash.log [new file with mode: 0644]
serials/serials_mdcmbo.db
trbflash.log [new file with mode: 0644]

index 43a25065eb452ad9ad2070edd07ad07c0d27fb2d..9234f0ffcc6175891d5394e47279637616571f0b 100644 (file)
    1081 1       77      24      23      77      77     77       20      17
    1081 2       77      77      23      77      15     20       20      77
    1081 3       77      19      24      23      77     20       77      26
-
+   3070        0       77      77      14      21      77      77      77      21
+   3070        1       77      77      77      77      20      19      21      77
+   3070        2       21      77      77      77      18      77      77      77
+   3070        3       17      77      77      77      77      77      77      21
+
+   3071        0       77      77      77      77      77      17      77      77
+   3071        1       16      77      11      77      16      77      77      77
+   3071        2       17      77      18      16      17      19      77      77
+   3071        3       77      77      20      77      77      77      77      20
+
+   3080        0       77      18      77      77      15      77      21      77
+   3080        1       19      77      21      77      77      20      15      77
+   3080        2       77      77      77      77      77      21      77      77
+   3080        3       16      77      77      77      15      77      21      18
+
+   3081        0       77      77      20      77      21      77      77      15
+   3081        1       77      20      77      20      20      77      77      77
+   3081        2       77      16      77      14      77      77      77      77
+   3081        3       77      77      77      77      17      17      77      77
+
+   3090        0       19      21      17      13      14      18      20      21
+   3090        1       77      77      11      11      11      11      77      21
+   3090        2       17      19      21      21      21      21      15      21
+   3090        3       77      77      21      20      21      77      21      20
+
+   3091        0       21      21      21      17      13      21      21      18
+   3091        1       21      18      77      17      19      12      21      20
+   3091        2       19      21      21      21      21      21      21      21
+   3091        3       77      21      77      21      18      14      77      77
+
+   3100        0       21      20      77      77      21      77      77      77
+   3100        1       77      77      20      77      19      77      77      77
+   3100        2       77      20      16      21      77      77      17      77
+   3100        3       20      20      21      21      20      77      21      77
+
+   3101        0       18      77      13      15      77      17      77      77
+   3101        1       77      77      77      77      19      77      77      19
+   3101        2       16      14      77      19      14      19      77      19
+   3101        3       20      13      17      77      77      20      77      77
+
+   3160        0       20      77      77      16      77      17      77      20
+   3160        1       77      19      77      77      77      77      77      77
+   3160        2       21      21      77      19      21      21      17      19
+   3160        3       15      77      20      77      20      77      20      19
+
+   3161        0       15      77      16      77      77      77      77      17
+   3161        1       21      21      77      20      77      77      13      77
+   3161        2       12      77      77      17      77      19      20      77
+   3161        3       16      77      15      20      19      14      20      13
+
+   3170        0       77      77      77      77      77      19      77      77
+   3170        1       77      19      20      21      77      77      13      77
+   3170        2       77      17      77      18      77      18      16      77
+   3170        3       77      21      77      77      77      21      77      77
+
+   3171        0       20      18      17      21      77      77      19      77
+   3171        1       18      19      16      77      77      77      77      18
+   3171        2       77      20      77      21      21      19      17      77
+   3171        3       77      19      15      18      77      21      18      14
+
+   3180        0       77      77      16      77      77      77      17      77
+   3180        1       19      77      77      77      77      77      15      77
+   3180        2       77      77      16      20      77      21      20      77
+   3180        3       20      77      77      77      15      21      77      77
+
+   3181        0       21      77      77      77      77      77      21      77
+   3181        1       77      18      20      77      77      20      31      20
+   3181        2       25      19      77      24      15      77      77      21
+   3181        3       77      77      77      77      15      77      77      77
+
+   3200        0       20      20      18      77      77      77      77      18
+   3200        1       20      77      21      16      77      20      77      21
+   3200        2       18      19      19      18      21      77      19      21
+   3200        3       77      77      77      17      21      21      77      77
+
+   3201        0       77      77      77      77      77      19      18      20
+   3201        1       19      77      21      77      16      77      77      17
+   3201        2       21      15      16      77      77      15      77      77
+   3201        3       20      77      77      19      21      20      77      77
+
+   3210        0       19      18      77      77      77      77      77      77
+   3210        1       17      77      77      77      77      21      77      77
+   3210        2       77      77      77      18      77      21      77      77
+   3210        3       21      19      77      77      16      77      77      77
+
+   3211        0       77      12      14      77      77      21      77      77
+   3211        1       14      19      17      77      77      19      19      77
+   3211        2       77      77      77      16      20      77      18      16
+   3211        3       77      77      77      17      77      77      77      77
+
+   3220        0       77      21      77      77      21      77      20      18
+   3220        1       19      21      77      77      77      77      77      18
+   3220        2       77      77      77      77      18      77      77      19
+   3220        3       19      77      18      77      77      77      77      77
+
+   3221        0       77      77      77      77      20      77      77      77
+   3221        1       20      18      77      77      77      77      77      21
+   3221        2       21      77      77      77      77      18      19      77
+   3221        3       77      77      17      13      77      77      18      77
+
+   3230        0       17      16      77      77      77      77      77      77
+   3230        1       77      77      20      77      21      77      77      18
+   3230        2       20      77      18      77      77      77      77      77
+   3230        3       19      77      20      20      19      77      77      21
+
+   3231        0       77      77      77      77      77      77      18      77
+   3231        1       77      77      15      16      19      19      20      16
+   3231        2       77      77      77      16      77      16      19      77
+   3231        3       21      20      15      20      77      77      19      16
+
+   3240        0       20      77      19      18      17      21      18      19
+   3240        1       20      20      77      17      77      77      77      21
+   3240        2       77      77      77      16      77      77      77      18
+   3240        3       77      77      17      15      77      15      77      77
+
+   3241        0       77      77      77      77      77      77      20      77
+   3241        1       77      21      77      77      77      77      77      77
+   3241        2       77      77      77      77      77      77      19      77
+   3241        3       17      77      77      77      77      77      77      18
+
+   3250        0       77      21      21      21      17      19      77      77
+   3250        1       17      19      77      77      77      77      77      19
+   3250        2       77      77      20      77      77      77      77      18
+   3250        3       18      77      77      77      17      17      77      77
+
+   3251        0       77      77      77      77      77      77      77      15
+   3251        1       77      77      77      19      19      21      18      18
+   3251        2       77      77      20      77      77      77      77      77
+   3251        3       18      77      18      77      77      20      77      77
+
+   3260        0       77      17      77      77      77      77      20      18
+   3260        1       20      20      77      15      20      77      21      77
+   3260        2       19      77      77      14      17      77      19      17
+   3260        3       21      77      77      77      19      77      77      18
+
+   3261        0       77      77      77      77      77      77      20      77
+   3261        1       77      77      77      19      77      21      77      77
+   3261        2       77      77      77      77      77      77      13      17
+   3261        3       77      19      77      77      77      77      77      18
index 959cf3dbb853d69099fcb05d518a8401f9e50f12..4b3be9530aa64acfb73e4627ade63cd41e5a29de 100755 (executable)
@@ -30,7 +30,7 @@ my $boards = trb_read_uid(0xfffb);
 foreach my $uid (keys %$boards) {
   foreach my $k (keys %{$boards->{$uid}}) {
 #    $addresses->{$boards->{$uid}{$k}} = $serials->{$uid};
-    printf("%016x %04x\n",$uid, $serials->{$uid});
+   # printf("%016x %04x\n",$uid, $serials->{$uid});
     trb_set_address($uid,$serials->{$uid}%8,$serials->{$uid});
     }
   }
diff --git a/scripts/flashMBO.sh b/scripts/flashMBO.sh
new file mode 100755 (executable)
index 0000000..3373e1d
--- /dev/null
@@ -0,0 +1,15 @@
+trbflash -y program 0xfe91 ~/mdcupgrade/mdctdc_20240508.bit 
+trbflash -y program 0xfe90 ~/mdcupgrade/mdcoep_20240510.bit 
+# activate golden image
+echo " golden image flashing: "
+trbcmd loadbit 0xfe91 0xd580 0x2 0x2
+trbcmd loadbit 0xfe90 0xd580 0x2 0x2
+sleep 2
+trbflash info 0xfe91
+#trbflash -s "golden image" -y program 0xfe91 ~/mdcupgrade/mdctdc_20240508.bit 
+#trbflash -s "golden image" -y program 0xfe90 ~/mdcupgrade/mdcoep_20240510.bit
+trbcmd reload 0xfe91
+trbcmd reload 0xfe90
+sleep 2
+cd ~/git/hades_mdc_settings/scripts
+./autoaddress.pl
diff --git a/scripts/flashMBO_single.sh b/scripts/flashMBO_single.sh
new file mode 100755 (executable)
index 0000000..2d7e20a
--- /dev/null
@@ -0,0 +1,14 @@
+trbflash -y program 0xf6dc ~/mdcupgrade/mdctdc_20240508.bit 
+trbflash -y program 0xf60e ~/mdcupgrade/mdcoep_20240510.bit 
+# activate golden image
+echo " golden image flashing: "
+trbcmd loadbit 0xf6dc 0xd580 0x2 0x2
+trbcmd loadbit 0xf60e 0xd580 0x2 0x2
+sleep 2
+trbflash -s "golden image" -y program 0xf6dc ~/mdcupgrade/mdctdc_20240508.bit 
+trbflash -s "golden image" -y program 0xf60e ~/mdcupgrade/mdcoep_20240510.bit
+trbcmd reload 0xf60e
+trbcmd reload 0xf6dc
+sleep 2
+cd ~/git/hades_mdc_settings/scripts
+./autoaddress.pl
diff --git a/scripts/fpga_count.sh b/scripts/fpga_count.sh
new file mode 100755 (executable)
index 0000000..d0132d5
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+export DAQOPSERVER=localhost:38; 
+# display number of fpgas :
+fpgas=$(~/bin/trbcmd i 0xffff | wc -l); 
+let MBOs=($fpgas-5)/3 ;
+echo $MBOs  " = Number of MBOs" ;
+echo $(( ($fpgas-5) % 3))  "  = Number of sinlge FPGAS "  
+
+## reset loop:
+#while true; do trbcmd reset; sleep 1 ;fpgas=$(trbcmd i 0xffff | wc -l);  let MBOs=($fpgas-5)/3 ; echo $MBOs  " = Number of MBOs" ; echo $(( ($fpgas-5) % 3))  "  = Number of sinlge FPGAS "  ;date;    done
+
diff --git a/scripts/fpga_info_loop.sh b/scripts/fpga_info_loop.sh
new file mode 100755 (executable)
index 0000000..8e40dc2
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+export DAQOPSERVER=localhost:38
+# display fpgas loop:
+while true; do trbcmd i 0xffff ; fpgas=$(trbcmd i 0xffff | wc -l);  let MBOs=($fpgas-5)/3 ; echo $MBOs  " = Number of MBOs" ; echo $(( ($fpgas-5) % 3))  "  = Number of sinlge FPGAS "  ;date; sleep 1; clear ;  done
+
+## reset loop:
+#while true; do trbcmd reset; sleep 1 ;fpgas=$(trbcmd i 0xffff | wc -l);  let MBOs=($fpgas-5)/3 ; echo $MBOs  " = Number of MBOs" ; echo $(( ($fpgas-5) % 3))  "  = Number of sinlge FPGAS "  ;date;    done
+
diff --git a/scripts/programMBO.sh b/scripts/programMBO.sh
new file mode 100755 (executable)
index 0000000..d964eb9
--- /dev/null
@@ -0,0 +1 @@
+sudo openFPGALoader --detect --busdev-num 001:008 ; sudo openFPGALoader --busdev-num 001:008 --index-chain 0 ~/mdcupgrade/mdcoep_20240510.bit ; sudo openFPGALoader  --busdev-num 001:008 --index-chain 1 ~/mdcupgrade/mdctdc_20240508.bit  ; sudo openFPGALoader  --busdev-num 001:008 --index-chain 2 ~/mdcupgrade/mdctdc_20240508.bit 
diff --git a/scripts/trbflash.log b/scripts/trbflash.log
new file mode 100644 (file)
index 0000000..04d006e
--- /dev/null
@@ -0,0 +1,4 @@
+
+
+------------ Fri Jun 21 15:42:27 2024 ----------------------------------
+
index 0c8b458952463892e6334be430b01f2acdcd52ed..f4a552cd807084f96ee2bf7666f425298452dca6 100644 (file)
 #1707 with 1.2 kOhm
 
 
+cm      
+
+###NEW MBO short SN 300-700:
+
+3015 0x0000b1da00822941
+3010 0x0000cec500822941
+3011 0x0000268f00822941
+
+3025 0x00003caf00822941
+3020 0x000044a800822941
+3021 0x00007f7800822941
+
+3035 0x00009e4700822941
+3030 0x0000269900822941
+3031 0x0000537100822941
+
+3045 0x0000a30f00822941
+3040 0x0000b11f00822941
+3041 0x0000269c00822941
+
+3055 0x0000199200822941
+3050 0x0000273400822941
+3051 0x000094cd00822941
+
+3065 0x000085b600822941
+3060 0x0000b1c100822941
+3061 0x0000d3e700822941
+
+3075 0x000056c200822941
+3070 0x0000591b00822941
+3071 0x000049ca00822941
+
+3085 0x0000851500822941
+3080 0x0000390300822941
+3081 0x00003c7600822941
+
+3095 0x0000390b00822941
+3090 0x0000585500822941
+3091 0x00003de900822941
+
+3105 0x0000caa800822941
+3100 0x000026f800822941
+3101 0x0000af6600822941
+
+3115 0x0000779f00822941
+3110 0x00009e5600822941
+3111 0x0000caf900822941
+
+3125 0x000077ac00822941
+3120 0x0000455b00822941
+3121 0x0000cfc900822941
+
+3135 0x00008fc500822941
+3130 0x00009ed500822941
+3131 0x000043d000822941
+
+3145 0x0000946200822941
+3140 0x0000ce7400822941
+3141 0x000054a600822941
+
+3155 0x0000620000822941
+3150 0x00001e1000822941
+3151 0x0000c87000822941
+
+3165 0x0000589e00822941
+3160 0x0000c8f000822941
+3161 0x00002ae200822941
+
+3175 0x0000b82a00822941
+3170 0x0000197f00822941
+3171 0x0000b89300822941
+
+3185 0x0000c59900822941
+3180 0x00009e7d00822941
+3181 0x00001a8d00822941
+
+3195 0x00003c2400822941
+3190 0x000025ee00822941 
+3191 0x0000c56b00822941 
+
+3205 0x00003c6900822941
+3200 0x00009d6a00822941
+3201 0x00003d0100822941
+
+3215 0x0000db0600822941
+3210 0x000071d300822941
+3211 0x00003c6700822941
+
+3225 0x0000537f00822941
+3220 0x0000ca0900822941
+3221 0x0000acaf00822941
+
+3235 0x000081da00822941
+3230 0x0000443000822941
+3231 0x0000620300822941
+
+3245 0x00002ad500822941
+3240 0x0000716000822941
+3241 0x0000593c00822941
+
+3255 0x000076d200822941
+3250 0x000019a300822941
+3251 0x0000ce6200822941
+
+3265 0x00002ad000822941
+3260 0x0000953400822941
+3261 0x00003dc400822941
+
+3275
+3270
+3271
+
+3285
+3280
+3281
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+5
+0
+1
+
+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