From b7f13da271c55a88bd945935f883409ed4dbcd69 Mon Sep 17 00:00:00 2001 From: Hadaq Hades Date: Thu, 31 May 2018 20:10:46 +0200 Subject: [PATCH] recently changed files --- ecal/register_monitoring_trigger.db | 1 + ...ter_monitoring_trigger_mult3_minusNoise.db | 41 + ecal/register_monitoring_trigger_simpleor.db | 40 + ecal/register_tdc_ecal.db | 15 + ecal/startup.script | 172 +- evtbuild/start_eb_gbe.sh | 4 +- hmon/getjson.cgi | 16 + hmon/hmon_rich_temp_backplane.pl | 113 + hmon/hmon_trgerr.pl | 5 +- hmon/rich_drawing.htm | 1854 +++++++++++++++++ hmon/rich_drawing_bkpl.htm | 1848 ++++++++++++++++ main/address_range.db | 13 +- rich/addresses_concentrator.db_20180525 | 79 + utils/hades_chat | 2 +- 14 files changed, 4140 insertions(+), 63 deletions(-) create mode 120000 ecal/register_monitoring_trigger.db create mode 100644 ecal/register_monitoring_trigger_mult3_minusNoise.db create mode 100644 ecal/register_monitoring_trigger_simpleor.db create mode 100644 ecal/register_tdc_ecal.db create mode 100755 hmon/getjson.cgi create mode 100755 hmon/hmon_rich_temp_backplane.pl create mode 100644 hmon/rich_drawing.htm create mode 100644 hmon/rich_drawing_bkpl.htm create mode 100644 rich/addresses_concentrator.db_20180525 diff --git a/ecal/register_monitoring_trigger.db b/ecal/register_monitoring_trigger.db new file mode 120000 index 0000000..6a8af6a --- /dev/null +++ b/ecal/register_monitoring_trigger.db @@ -0,0 +1 @@ +register_monitoring_trigger_mult3_minusNoise.db \ No newline at end of file diff --git a/ecal/register_monitoring_trigger_mult3_minusNoise.db b/ecal/register_monitoring_trigger_mult3_minusNoise.db new file mode 100644 index 0000000..9eda3ff --- /dev/null +++ b/ecal/register_monitoring_trigger_mult3_minusNoise.db @@ -0,0 +1,41 @@ +# TDC config registers + +!Register table +# Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # +########################################################################################################### + +# MonEnab TrgEnOut1 TrgEnOut1 TrgEnOut2 TrgEnOut2 Stretch Stretch Invert Invert +# Ch00-31 Ch32-63 Ch00-31 Ch32-63 Ch00-31 Ch32-63 Ch00-31 Ch32-63 + 0 0xdf80 0xdf00 0xdf01 0xdf04 0xdf05 0xdf20 0xdf21 0xdf24 0xdf25 + 10 0xdf80 0xdf08 0xdf09 0xdf0c 0xdf0d 0xdf20 0xdf21 0xdf24 0xdf25 + + #just enables for 32 channels + 1 0xdf00 0xdf04 + + +#multiplicity +# Enable 23..16Lim 15..8OutSel + 2 0xdf33 0xdf32 0xdf34 + +!Value table +# Fpga # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # +######################################################################################################################################### + + 0xfe71 10 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xffffffff 0x0000ffff 0x00000000 0x00000000 + 0xfe71 2 0x55555555 0x00030000 0x00000400 + + 0xfe61 0 0x000fffff 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 + 0x8a00 1 0x00000015 0x00000000 + 0x8a01 1 0x00000051 0x00015100 + 0x8a02 1 0x00000000 0x00015400 + 0x8a03 1 0x00000054 0x00000000 + 0x8a04 1 0x00000015 0x00015400 + 0x8a05 1 0x00000000 0x00015400 + #left half of crate on output 1, right half on output 2 + +# 0x0100 0 0x00007e7e 0x00007e7e 0x00000000 0x00000000 0x00000000 0x00007e7e 0x00000000 0x00000000 0x00000000 + 0x0100 0 0x00007c7c 0x00007c7c 0x00000000 0x00000000 0x00000000 0x00007e7e 0x00000000 0x00000000 0x00000000 + #1..6: output 1, #9..14 output 2 + + 0x0100 2 0x00007c7c 0x00020000 0x00000200 + #2 half sectors fire, on second output diff --git a/ecal/register_monitoring_trigger_simpleor.db b/ecal/register_monitoring_trigger_simpleor.db new file mode 100644 index 0000000..cc5dfa6 --- /dev/null +++ b/ecal/register_monitoring_trigger_simpleor.db @@ -0,0 +1,40 @@ +# TDC config registers + +!Register table +# Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # +########################################################################################################### + +# MonEnab TrgEnOut1 TrgEnOut1 TrgEnOut2 TrgEnOut2 Stretch Stretch Invert Invert +# Ch00-31 Ch32-63 Ch00-31 Ch32-63 Ch00-31 Ch32-63 Ch00-31 Ch32-63 + 0 0xdf80 0xdf00 0xdf01 0xdf04 0xdf05 0xdf20 0xdf21 0xdf24 0xdf25 + 10 0xdf80 0xdf08 0xdf09 0xdf0c 0xdf0d 0xdf20 0xdf21 0xdf24 0xdf25 + + #just enables for 32 channels + 1 0xdf00 0xdf04 + + +#multiplicity +# Enable 23..16Lim 15..8OutSel + 2 0xdf33 0xdf32 0xdf34 + +!Value table +# Fpga # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # +######################################################################################################################################### + + 0xfe71 10 0x00000000 0x55555555 0x00005555 0x00000000 0x00000000 0xffffffff 0x0000ffff 0x00000000 0x00000000 + #Enable fast channels with stretcher on output 1 + + 0xfe61 0 0x000fffff 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 + 0x8a00 1 0x00000015 0x00000000 + 0x8a01 1 0x00000051 0x00015100 + 0x8a02 1 0x00000000 0x00015400 + 0x8a03 1 0x00000054 0x00000000 + 0x8a04 1 0x00000015 0x00015400 + 0x8a05 1 0x00000000 0x00015400 + #left half of crate on output 1, right half on output 2 + + 0x0100 0 0x00007c7c 0x00007c7c 0x00000000 0x00000000 0x00000000 0x00007c7c 0x00000000 0x00000000 0x00000000 + #1..6: output 1, #9..14 output 2 + + 0x0100 2 0x00007c7c 0x00020000 0x00000200 + #2 half sectors fire, on second output diff --git a/ecal/register_tdc_ecal.db b/ecal/register_tdc_ecal.db new file mode 100644 index 0000000..e15bfcc --- /dev/null +++ b/ecal/register_tdc_ecal.db @@ -0,0 +1,15 @@ +# TDC config registers + +!Register table +# Type # C0 # C1 # C2 # C3 # C4 # C5 # +################################################################ + 0 0xc800 0xc801 0xc802 0xc803 0xc804 0xc805 + +!Value table +# Gnl Conf Trg Window Ch En 1-32 Ch En 33-64 RingBufSize Invert +# TDC # Type # C0 # C1 # C2 # C3 # C4 # C5 # +################################################################################################# + +0xfe71 0 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 # trb3sc1 TDC +0xfe71 0 0x50003000 0x81900190 0xFFFFFFFF 0x0000FFFF 0x00000078 0x00000000 # trb3sc1 TDC + diff --git a/ecal/startup.script b/ecal/startup.script index f284c6f..96878be 100644 --- a/ecal/startup.script +++ b/ecal/startup.script @@ -3,6 +3,9 @@ set_addresses serials_trb3sc.db addresses_ecal.db !endif + + #? + trbcmd w 0xfe71 0xc800 0x00000000 trbcmd w 0xfe71 0xc800 0x50003000 @@ -10,58 +13,123 @@ trbcmd w 0xfe71 0xc804 0x00000078 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=2 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=3 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=4 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=5 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=6 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=7 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=8 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=9 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=10 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=11 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=12 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=13 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=14 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=15 --execute=pwm --data=0xdb1a - - - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=0 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=1 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=2 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=3 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=4 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=5 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=6 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=7 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=8 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=9 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=10 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=11 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=12 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=13 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=14 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=15 --execute=pwm --data=0xdb1a - - - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=0 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=1 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=2 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=3 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=4 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=5 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=6 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=7 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=8 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=9 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=10 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=11 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=12 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=13 --execute=pwm --data=0xdb1a - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=pwm --data=0x7b0 - exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=pwm --data=0xdb1a + #prepare PaDiWa-AMPS2 + + #set thresholds + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=2 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=3 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=4 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=5 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=6 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=7 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=8 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=9 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=10 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=11 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=12 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=13 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=14 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=15 --execute=pwm --data=0xd028 + + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=0 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=1 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=2 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=3 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=4 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=5 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=6 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=7 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=8 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=9 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=10 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=11 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=12 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=13 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=14 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=15 --execute=pwm --data=0xd028 + + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=0 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=1 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=2 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=3 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=4 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=5 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=6 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=7 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=8 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=9 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=10 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=11 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=12 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=13 --execute=pwm --data=0xd028 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=pwm --data=0xfe5 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=pwm --data=0xd028 + + + #set invert to 0xaaaa + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --execute=invert --data=0xaaaa + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --execute=invert --data=0xaaaa + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --execute=invert --data=0xaaaa + + + #set dischargedelayselect to 20 + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=2 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=3 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=4 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=5 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=6 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=7 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=8 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=9 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=10 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=11 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=12 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=13 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=14 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=15 --execute=dischargedelayselect --data=20 + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=0 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=1 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=2 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=3 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=4 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=5 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=6 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=7 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=8 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=9 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=10 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=11 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=12 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=13 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=14 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=15 --execute=dischargedelayselect --data=20 + + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=0 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=1 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=2 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=3 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=4 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=5 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=6 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=7 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=8 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=9 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=10 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=11 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=12 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=13 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=dischargedelayselect --data=20 + exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=dischargedelayselect --data=20 #Load TDC settings load_register register_tdc_ecal.db diff --git a/evtbuild/start_eb_gbe.sh b/evtbuild/start_eb_gbe.sh index 0a9320e..27a7166 100755 --- a/evtbuild/start_eb_gbe.sh +++ b/evtbuild/start_eb_gbe.sh @@ -1,2 +1,2 @@ -./start_eb_gbe.pl -e restart -n 1-16 -d on -p te; -/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10" +./start_eb_gbe.pl -e restart -n 1-16 -d on -p co; +/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=co&oninit=10" diff --git a/hmon/getjson.cgi b/hmon/getjson.cgi new file mode 100755 index 0000000..2ef3ae3 --- /dev/null +++ b/hmon/getjson.cgi @@ -0,0 +1,16 @@ +#!/usr/bin/perl +use warnings; +use strict; +use Data::Dumper; +use File::Copy; +my @args = split('-',$ENV{'QUERY_STRING'}); + +# unless($args[0] =~ m/\w+/) {exit;} + +print "Cache-Control: no-cache, must-revalidate, max-age=1\r\n"; +print "Expires: Thu, 01 Dec 1994 16:00:00 GMT\r\n"; +print "Content-type: application/json\r\n\r\n"; + +system ("cat /srv/www/htdocs/mon/files/".$args[0].".json"); + + diff --git a/hmon/hmon_rich_temp_backplane.pl b/hmon/hmon_rich_temp_backplane.pl new file mode 100755 index 0000000..8eebc01 --- /dev/null +++ b/hmon/hmon_rich_temp_backplane.pl @@ -0,0 +1,113 @@ +#!/usr/bin/perl -w + +use warnings; +use strict; +use Time::HiRes qw( gettimeofday usleep time ); +use FileHandle; +use Data::Dumper; +use POSIX qw/floor ceil/; +use List::Util qw'max min'; +use Perl2Epics; +use Encode qw(encode from_to); +use JSON::XS; +use QA; + +use Hmon; +my $flog = Hmon::OpenLogfile(); +my $fqa = QA::OpenQAFile(); + +use HADES::TrbNet; + +my @str; + +my $store = {}; +my $laststore = {}; +my $values = {}; +my $color = {}; +my $raw = {}; +my $val; +my $mailerrstatecnt = 0; +my ($max,$min,$avg,$sum,$count); + +trb_init_ports() or die trb_strerror(); + + +while (1) { + my $data; + my $rich_temp1 = trb_register_read_mem(0x0110, 0xe100,0,10) or sleep 5 and next; + my $rich_temp2 = trb_register_read_mem(0x0110, 0xe110,0,8) or sleep 5 and next; + my @rich_temp; + # push(@rich_temp,@{$rich_temp1->{0x0110}},@{$rich_temp2->{0x0110}}); +# print Dumper @rich_temp; + $min = 1000; + $max = 0; + $sum = 0; + $count = 0xe100; + foreach my $b (@{$rich_temp1->{0x0110}}) { + + my $t = ($b)/16; + $min = $t if $t < $min; + $max = $t if $t > $max; + $sum += $t; + my $s = sprintf("0x%04x",$count); + + $data->{$s}=$t; + $count ++; + } + $count = 0xe110; + foreach my $b (@{$rich_temp2->{0x0110}}) { + #$count ++; + my $t = ($b)/16; + $min = $t if $t < $min; + $max = $t if $t > $max; + $sum += $t; + my $s = sprintf("0x%04x",$count); + $data->{$s}=$t; + $count ++; + } + $avg = $sum / $count; + $data->{max} = $max; + $data->{min} = $min; + $data->{symbol} = " °C"; + $data->{title} = "RICH Temperature on Backplane"; + my $timeStamp = localtime(); + + my @months = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ); + my @days = qw(Sun Mon Tue Wed Thu Fri Sat Sun); + my ($sec,$minute,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(); + my $updatetime = sprintf("%03s, %02d %s %04d - %02d:%02d:%02d",$days[$wday], $mday, $months[$mon], 1900 + $year, $hour, $minute, $sec); + + $data->{updatetime} = $updatetime; + + #-------Interlock workaround-------# + #var $Interlock = 0; + if ($max > 31.0 ) { + #printf "Off\n"; + #my $s = sprintf("HADES:RICH:HV:CR1:0:1000:PowerOn"); + my $s = sprintf("HAD:RICH:PS:17:SETONOFF"); + Perl2Epics::Connect("PS_RICH_3_3V",$s); + Perl2Epics::Put("PS_RICH_3_3V",1); + #$Interlock = 1; + } + + #-------Interlock workaround-------# + + + my $qastate = QA::GetQAState('below', $max, @QA::MdcTempLimits); + + #my $qastate_interlock = QA::GetQAState('below', $max, @QA::MdcTempLimits); + my $str = sprintf("%i - %i", $min, $max); + QA::WriteQALog($fqa,"rich","bkpl", 40, $qastate, "Temperature", $str, + "Min/Max temperature in RICH " . $str); + # my $strInterlockQA; + # if ($Interlock == 0) + # QA::WriteQALog($fqa,"rich","inlk", 40, $qastate_interlock, "Interlock", "LV is on..", + # "LV is ..."); + + my $fh; + open($fh, ">", Hmon::HMONDIR."/files/richTemperatureBackplane.json"); + print $fh encode_json($data); + close $fh; + + sleep 10; +} diff --git a/hmon/hmon_trgerr.pl b/hmon/hmon_trgerr.pl index 0b65f39..bad57a9 100755 --- a/hmon/hmon_trgerr.pl +++ b/hmon/hmon_trgerr.pl @@ -22,6 +22,7 @@ while (1) { my $boards = {}; my $boardstring = ""; foreach my $board (sort {$a <=> $b} keys %$rh_trigErr) { + next if $board < 0x1000; my $id = ($board >> 8) & 0xff; my $id_0 = ($board >> 12) & 0x0f; my $id_1 = ($board >> 8) & 0x0f; @@ -33,11 +34,11 @@ while (1) { $store{$id_1}->{$id_2}->{$id_3} += $val; } $boards->{$board} = $val; - $allboards->{$board} = $val; $store2{$id} += $val; } foreach my $board (sort {$a <=> $b} keys %$rh_trigErr2) { + next if $board < 0x1000; my $id = ($board >> 8) & 0xff; my $id_0 = ($board >> 12) & 0x0f; my $id_1 = ($board >> 8) & 0x0f; @@ -50,7 +51,6 @@ while (1) { } # $boards->{$board} += $val if $val && defined $laststore2{$id}; $boards->{$board} += $val; - $allboards->{$board} += $val; $store2{$id} += $val; } @@ -113,6 +113,7 @@ while (1) { $str[1][2]."

".$str[1][3].$str[2][0]); %laststore2 = %store2; + $allboards = $boards; sleep 1; } diff --git a/hmon/rich_drawing.htm b/hmon/rich_drawing.htm new file mode 100644 index 0000000..a2f204e --- /dev/null +++ b/hmon/rich_drawing.htm @@ -0,0 +1,1854 @@ + + + + + + + + + + + +

RICH Temperatures

updateTime:

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
0x826a0x73b40x73b50x72b40x72b50x71b40x71b5 0x825a 0x70b40x70b50x70b20x70b3 0x71b20x71b30x72b20x72b30x73b20x73b30x824a
0x73a40x73a50x72a40x72a50x71a40x71a50x70a40x70a50x70a20x70a30x71a20x71a30x72a20x72a30x73a20x73a3
0x82890x82790x82690x82590x82490x82390x8229
0x76940x75940x74940x73940x72940x71940x70940x70920x71920x72920x73920x74920x75920x7692
0x76950x75950x74950x73950x72950x71950x70950x70930x71930x72930x73930x74930x75930x7693
0x76840x75840x74840x73840x72840x71840x70840x70820x71820x72820x73820x74820x75820x7682
0x76850x75850x74850x73850x72850x71850x70850x70830x71830x72830x73830x74830x75830x7683
0x82980x78740x78750x77740x77750x82000x76740x75740x74740x73740x72740x71740x70740x70720x71720x72720x73720x74720x75720x76720x82000x77720x77730x78720x78730x8218
0x76750x75750x74750x73750x72750x71750x70750x70730x71730x72730x73730x74730x75730x7673
0x82000x82000x82000x82000x82000x82000x8200
0x78640x78650x77640x77650x82880x76640x76650x75640x75650x74640x74650x82000x82680x73640x73650x72640x72650x71640x71650x82000x82580x82000x71620x71630x72620x72630x73620x73630x82480x82000x74620x74630x75620x75630x76620x76630x82280x77620x77630x78620x7863
0x70640x7062
0x82970x79540x79550x78540x78550x77540x77550x82000x76540x76550x75540x75550x74540x74550x73540x73550x72540x72550x71540x71550x70650x70630x71520x71530x72520x72530x73520x73530x74520x74530x75520x75530x76520x76530x82000x77520x77530x78520x78530x79520x79530x8217
0x70540x7052
0x70550x7053
0x79440x79450x78440x78450x77440x77450x82870x76440x76450x75440x75450x74440x74450x82000x82670x73440x73450x72440x72450x71440x71450x82000x70440x70420x82000x71420x71430x72420x72430x73420x73430x82470x82000x74420x74430x75420x75430x76420x76430x82270x77420x77430x78420x78430x79420x7943
0x70450x7043
0x8200
0x82a60x82960x79340x79350x78340x78350x77340x77350x82000x76340x76350x75340x75350x74340x74350x73340x73350x72340x72350x71340x71350x82560x71320x71330x72320x72330x73320x73330x74320x74330x75320x75330x76320x76330x82000x77320x77330x78320x78330x79320x79330x82160x8206
0x7b340x7a340x70340x70320x7a320x7b32
0x7b350x7a350x79240x79250x78240x78250x77240x77250x82860x76240x76250x75240x75250x74240x74250x82000x82660x73240x73250x72240x72250x71240x71250x82000x70350x70330x82000x71220x71230x72220x72230x73220x73230x82460x82000x74220x74230x75220x75230x76220x76230x82260x77220x77230x78220x78230x79220x79230x7a330x7b33
0x7b240x7a240x70240x70220x7a220x7b22
0x7b250x7a250x70250x70230x7a230x7b23
0x7b140x7a140x82950x79140x79150x78140x78150x77140x77150x82000x76140x76150x75140x75150x74140x74150x73140x73150x72140x72150x71140x71150x70140x70120x71120x71130x72120x72130x73120x73130x74120x74130x75120x75130x76120x76130x82000x77120x77130x78120x78130x79120x79130x82150x7a120x7b12
0x7b150x7a150x70150x70130x7a130x7b13
0x82000x82000x8200
0x82a5 0x79040x79050x78040x78050x77040x77050x82850x76040x76050x75040x75050x74040x74050x82000x82650x73040x73050x72040x72050x71040x71050x82000x82000x71020x71030x72020x72030x73020x73030x82450x82000x74020x74030x75020x75030x76020x76030x82250x77020x77030x78020x78030x79020x79030x8205
0x7b040x7a040x7a030x7b03
0x7b050x7a050x7a020x7b02
0x7b060x7a060x82940x79060x79070x78060x78070x77060x77070x82000x76060x76070x75060x75070x74060x74070x73060x73070x72060x72070x71060x71070x71000x71010x72000x72010x73000x73010x74000x74010x75000x75010x76000x76010x82000x77000x77010x78000x78010x79000x79010x82140x7a000x7b00
0x7b070x7a070x7a010x7b01
0x82000x8200
0x82000x79160x79170x78160x78170x77160x77170x82840x76160x76170x75160x75170x74160x74170x82000x82640x73160x73170x72160x72170x71160x71170x82000x82000x82000x71100x71110x72100x72110x73100x73110x82440x82000x74100x74110x75100x75110x76100x76110x82240x77100x77110x78100x78110x79100x79110x8200
0x7b160x7a160x70160x70100x7a100x7b10
0x7b170x7a170x70170x70110x7a110x7b11
0x7b260x7a260x82930x79260x79270x78260x78270x77260x77270x82000x76260x76270x75260x75270x74260x74270x73260x73270x72260x72270x71260x71270x70260x70200x71200x71210x72200x72210x73200x73210x74200x74210x75200x75210x76200x76210x82000x77200x77210x78200x78210x79200x79210x82130x7a200x7b20
0x7b270x7a270x70270x70210x7a210x7b21
0x7b360x7a360x70360x70300x7a300x7b30
0x7b370x7a370x79360x79370x78360x78370x77360x77370x82830x76360x76370x75360x75370x74360x74370x82000x82630x73360x73370x72360x72370x71360x71370x82000x70370x70310x82000x71300x71310x72300x72310x73300x73310x82430x82000x74300x74310x75300x75310x76300x76310x82230x77300x77310x78300x78310x79300x79310x7a310x7b31
0x82a40x82540x8204
0x82920x79460x79470x78460x78470x77460x77470x82000x76460x76470x75460x75470x74460x74470x73460x73470x72460x72470x71460x71470x82000x71400x71410x72400x72410x73400x73410x74400x74410x75400x75410x76400x76410x82000x77400x77410x78400x78410x79400x79410x8212
0x70460x7040
0x70470x7041
0x79560x79570x78560x78570x77560x77570x82820x76560x76570x75560x75570x74560x74570x82000x82620x73560x73570x72560x72570x71560x71570x82000x70560x70500x82000x71500x71510x72500x72510x73500x73510x82420x82000x74500x74510x75500x75510x76500x76510x82220x77500x77510x78500x78510x79500x7951
0x70570x7051
0x70660x7060
0x82910x78640x78650x77640x77650x82000x76660x76670x75660x75670x74660x74670x73660x73670x72660x72670x71660x71670x70670x70610x71600x71610x72600x72610x73600x73610x74600x74610x75600x75610x76600x76610x82000x77600x77610x78600x78610x8211
0x8252
0x78760x78770x77760x77770x82000x82000x82000x82000x82000x82000x82000x77700x77710x78700x7871
0x76760x75760x74760x73760x72760x71760x70760x70700x71700x72700x73700x74700x75700x7670
0x76770x75770x74770x73770x72770x71770x70770x70710x71710x72710x73710x74710x75710x7671
0x76860x75860x74860x73860x72860x71860x70860x70800x71800x72800x73800x74800x75800x7680
0x76870x75870x74870x73870x72870x71870x70870x70810x71810x72810x73810x74810x75810x7681
0x76960x75960x74960x73960x72960x71960x70960x70900x71900x72900x73900x74900x75900x7690
0x76970x75970x74970x73970x72970x71970x70970x70910x71910x72910x73910x74910x75910x7691
0x82810x82710x82610x82510x82410x82310x8221
0x82600x73a60x73a70x72a60x72a70x71a60x71a70x82000x82000x70a60x70a70x70a00x70a10x82500x82000x71a00x71a10x72a00x72a10x73a00x73a10x8240
0x73b60x73b70x72b60x72b70x71b60x71b70x70b60x70b70x70b00x70b10x71b00x71b10x72b00x72b10x73b00x73b1
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

max

+

min

+ + + + + + + + diff --git a/hmon/rich_drawing_bkpl.htm b/hmon/rich_drawing_bkpl.htm new file mode 100644 index 0000000..d2bce66 --- /dev/null +++ b/hmon/rich_drawing_bkpl.htm @@ -0,0 +1,1848 @@ + + + + + + + + + + + +

RICH Temperatures

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
0x82000xe1070x00000x00000x00000x00000x00000x8200 0x8200 0x00000x00000x00000x00000x8200 0x82000x00000x00000x00000x00000x00000xe1060x8200
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x82000x82000x82000x82000x82000x82000x8200
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x82000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x8200
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x82000x82000x82000x82000x82000x82000x8200
0x00000x00000x00000x00000x82000x00000x00000x00000xe1140x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x82000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000xe1110x82000x00000x00000x00000x0000
0x00000xe110
0x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x8200
0x00000x0000
0x00000x0000
0x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x0000
0x00000x0000
0x8200
0x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x8200
0xe1080x00000x00000x00000x00000xe100
0x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x0000
0x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x00000x0000
0x00000x00000x00000x00000x00000x0000
0x82000x82000x8200
0x8200 0x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000xe1150x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x8200
0x00000x00000x00000x0000
0x00000x00000x00000x0000
0x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000xe1120x82000x00000x00000x00000x00000x00000x00000x82000x00000x0000
0x00000x00000x00000x0000
0x82000x8200
0x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x82000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x8200
0x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x0000
0x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x00000x0000
0x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x0000
0xe1090x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000xe101
0x82000x82000x8200
0x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x8200
0x00000x0000
0x00000x0000
0x00000x00000x00000x00000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x82000x00000x00000x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000xe1130x82000x00000x00000x00000x00000x00000x0000
0x00000x0000
0x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000xe1160x00000x00000x00000x00000x00000x00000x00000x00000x00000xe1070x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x8200
0x00000x00000x00000x00000x82000x82000x82000x82000x82000x82000x82000x00000x00000x00000x0000
0x00000x00000x00000x00000xe1040x00000x00000x00000x00000xe1030x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x0000
0x82000x82000x82000x82000x82000x82000x8200
0x82000x00000x00000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x82000x82000x00000x00000x00000x00000x00000x00000x8200
0xe1050x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000x00000xe102
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

max

+

min

+ + + + + + + + diff --git a/main/address_range.db b/main/address_range.db index 865eca7..9965010 100644 --- a/main/address_range.db +++ b/main/address_range.db @@ -1,6 +1,7 @@ #System Min Max HardwareType CTS 0x0001 0x00FF CTS +Trigger 0x0100 0x01FF TRB3sc MDC-AddOn 0x1000 0x17FF MDC-AddOn MDC-OEP 0x2000 0x2FFF MDC-OEP Pion 0x3800 0x38FF TRB3 @@ -11,22 +12,22 @@ TOF 0x4C00 0x4FFF TRB StartTrb3 0x5000 0x50FF TRB3 SEB 0x5555 0x5555 TRBnet ECal 0x6000 0x60FF TRB3sc +Rich 0x7000 0x7FFF DiRich Central-Hub 0x8000 0x80FF TRB3sc Rich-Comb 0x8200 0x82ff DiRichConcentrator Rich-Hub 0x83c0 0x83df TRB3sc -RPC-Hub 0x8400 0x84FF Hub2 -TOF-Hub 0x8600 0x86FF Hub2 -Wall-Hub 0x8700 0x87FF Hub2 +RPC-Hub 0x8400 0x84FF TRB3sc +TOF-Hub 0x8600 0x86FF TRB3sc +Wall-Hub 0x8700 0x87FF TRB3sc CTS-Hub 0x8800 0x887F TRB3sc StartTrb3Hub 0x8880 0x88FF TRB3 Pion-Hub 0x8900 0x89FF TRB3 Ecal-Hub 0x8a00 0x8aff TRB3sc TestSetup 0xF000 0xFEFF Test Broadcast 0xFF00 0xFFFF Broadcast -Hub-All 0x8000 0x8FFF Hub2 -Hub-AllTrb3 0x8000 0x8FFF Hub-TRB3sc - +#Hub-All 0x8000 0x8FFF Hub2 +#Hub-AllTrb3 0x8000 0x8FFF Hub-TRB3sc #RICH-ADCM 0x3000 0x31FF RICH-ADCM #Shw-AddOn 0x3200 0x37FF Shw-AddOn #RICH-Hub 0x8300 0x83FF Hub2 diff --git a/rich/addresses_concentrator.db_20180525 b/rich/addresses_concentrator.db_20180525 new file mode 100644 index 0000000..0d4dc28 --- /dev/null +++ b/rich/addresses_concentrator.db_20180525 @@ -0,0 +1,79 @@ +#Address # S/N # FPGA # Design # TRB # +################################################### + +# serials are 3 digits, no trailing '0' + +0x8204 1 0 0 1 +0x8205 1 0 0 1 +0x8206 076 0 0 1 +0x8211 1 0 0 1 +0x8212 1 0 0 1 +0x8213 1 0 0 1 +0x8214 080 0 0 1 +0x8215 089 0 0 1 +0x8216 087 0 0 1 +0x8217 023 0 0 1 +0x8218 1 0 0 1 +0x8221 1 0 0 1 +0x8222 1 0 0 1 +0x8223 1 0 0 1 +0x8224 088 0 0 1 +0x8225 084 0 0 1 +0x8226 093 0 0 1 +0x8227 090 0 0 1 +0x8228 014 0 0 1 +0x8229 092 0 0 1 +0x8231 1 0 0 1 +0x8239 106 0 0 1 +0x8240 1 0 0 1 +0x8241 1 0 0 1 +0x8242 1 0 0 1 +0x8243 1 0 0 1 +0x8244 083 0 0 1 +0x8245 061 0 0 1 +0x8246 016 0 0 1 +0x8247 018 0 0 1 +0x8248 015 0 0 1 +0x8249 104 0 0 1 +0x824a 085 0 0 1 +0x8250 1 0 0 1 +0x8251 1 0 0 1 +0x8252 1 0 0 1 +0x8254 1 0 0 1 +0x8256 102 0 0 1 +0x8258 021 0 0 1 +0x8259 091 0 0 1 +0x825a 1 0 0 1 +0x8260 1 0 0 1 +0x8261 1 0 0 1 +0x8262 1 0 0 1 +0x8263 069 0 0 1 +0x8264 072 0 0 1 +0x8265 098 0 0 1 +0x8266 109 0 0 1 +0x8267 078 0 0 1 +0x8268 012 0 0 1 +0x8269 105 0 0 1 +0x826a 011 0 0 1 +0x8271 1 0 0 1 +0x8279 022 0 0 1 +0x8281 1 0 0 1 +0x8282 1 0 0 1 +0x8283 073 0 0 1 +0x8284 075 0 0 1 +0x8285 013 0 0 1 +0x8286 107 0 0 1 +0x8287 019 0 0 1 +0x8288 017 0 0 1 +0x8289 010 0 0 1 +0x8291 1 0 0 1 +0x8292 100 0 0 1 +0x8293 098 0 0 1 +0x8294 079 0 0 1 +0x8295 020 0 0 1 +0x8296 108 0 0 1 +0x8297 025 0 0 1 +0x8298 1 0 0 1 +0x82a4 082 0 0 1 +0x82a5 1 0 0 1 +0x82a6 081 0 0 1 diff --git a/utils/hades_chat b/utils/hades_chat index 67c8055..857638d 100755 --- a/utils/hades_chat +++ b/utils/hades_chat @@ -11,7 +11,7 @@ GetOptions ( 'h|help' => \$opt_help, ); -my $c = qq|tmux new-session -n chat "tail -n 200 -f ~/trbsoft/hadesdaq/utils/chat.log" \\; split-window -t chat -l3 "PERL_RL=' o=0' ~/bin/chat_push" \\; attach|; +my $c = qq|tmux new-session -n chat "tail -n 200 -F ~/trbsoft/hadesdaq/utils/chat.log" \\; split-window -t chat -l3 "PERL_RL=' o=0' ~/bin/chat_push" \\; attach|; #print "command: $c\n"; system($c); -- 2.43.0