From 746cf3173af257b70c391db27ca6fe5adf5d6bbf Mon Sep 17 00:00:00 2001 From: Andreas Neiser Date: Fri, 17 Jan 2014 10:19:47 +0100 Subject: [PATCH] Mainz A2: Workaround for UDP packets larger than MTU, and some minor adaptions --- users/mainz_kph_a2/setup.sh | 7 +++++-- users/mainz_kph_a2/start_readout.pl | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/users/mainz_kph_a2/setup.sh b/users/mainz_kph_a2/setup.sh index faeffe7..b6839ff 100755 --- a/users/mainz_kph_a2/setup.sh +++ b/users/mainz_kph_a2/setup.sh @@ -17,7 +17,7 @@ if [[ $? = 0 ]]; then echo "trbnetd already running, skipping setup (but exports done)." return fi -${HOME}/trbsoft/trbnettools/binlocal/trbnetd +trbnetd ##### TRBNET ##### @@ -40,6 +40,9 @@ trbcmd w 0x8000 0x8307 0x0 trbcmd w 0x8000 0x8308 0xffffff trbcmd w 0x8000 0x830b 0x7 trbcmd w 0x8000 0x830d 0x0 +# explicitly set the Ethernet frame size, +# workaround to correctly initialize the ethernet +trbcmd w 0x8000 0x8304 0x578 #mac address of the EB # 14:fe:b5:ec:10:9a (normandy) @@ -78,7 +81,7 @@ trbcmd w 0x8000 0xc804 0x00000080 ## no read out limit ##### CTS ####### -trbcmd w 0x8000 0xa137 0xfffff #set CTS pulser to 100Hz +trbcmd w 0x8000 0xa140 0xfffff #set CTS pulser to 100Hz #trbcmd setbit 0x8000 0xa101 0x2 #enable pulser channel 0 trbcmd setbit 0x8000 0xa101 0x1 # enable external trigger module diff --git a/users/mainz_kph_a2/start_readout.pl b/users/mainz_kph_a2/start_readout.pl index 1bedade..06c9bbd 100755 --- a/users/mainz_kph_a2/start_readout.pl +++ b/users/mainz_kph_a2/start_readout.pl @@ -16,5 +16,5 @@ exit if defined $ARGV[0]; $c=q|daq_evtbuild -m 1 -d file -o /hldfiles|; system("$c &"); sleep 2; -$c=q|daq_netmem -m 1 -i UDP:192.168.1.1:50000|; +$c=q|daq_netmem -m 1 -i UDP:192.168.1.1:50001|; system("$c &"); -- 2.43.0