]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Mainz A2: Workaround for UDP packets larger than MTU, and some minor adaptions
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Fri, 17 Jan 2014 09:19:47 +0000 (10:19 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Fri, 17 Jan 2014 09:19:47 +0000 (10:19 +0100)
users/mainz_kph_a2/setup.sh
users/mainz_kph_a2/start_readout.pl

index faeffe7be1169451d8a39b3be86e9d711d501642..b6839ffb2a8c58efa1164e47ee53da60587fa3d2 100755 (executable)
@@ -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
 
index 1bedade7fd34f70ece9032a1dd206805795ce0b3..06c9bbdd4c8f15ee7c94528b92a65ab63f85db64 100755 (executable)
@@ -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 &");