Now we can start your DHCP server. How to do this ask AYA (it is different
for different LINUX distributions). You should also configure your RPCBIND (it
-has nothing to do with HADES RPC) to run with option \verb+i+ $\to$ AYA.
+has nothing to do with HADES RPC) to run with option \verb+-i+ $\to$ AYA.
Now you can restart your TRB3 and watch again log of your system, you should get
following output
\end{lstlisting}
If you are using only one TRB3 then you can also export variables globally
-\begin{lstlisting}[label=,caption=Recommended way to run TRBnet for single TRB3 system]
+\begin{lstlisting}[label=lst:rawtrbnet,caption=Recommended way to run TRBnet for single TRB3 system]
$ export TRB3_SERVER=trb033
$ trbnetd -i 1
$ export DAQOPSERVER=localhost:1
0xf306 0xb600000390225b28 0x03
\end{lstlisting}
In future we assume that we have only one TRB3 and these variables are exported.
-You can add this exports to your \verb+~/trb3/setenv.sh+ file.
-As you can see the FPGA addresses (first column) are not configured yet in your
+To start TRBnet user can use script \verb+~/rtb3user/start_trbnet.sh+ (see
+Listing \ref{lst:trb3user}). On need to adjust only three variables with the
+name of DAQ host (DNS name), TRB number (DNS name) and ID of TRBnet daemon to
+run.
+
+\begin{lstlisting}[label=,caption=Adjusting variables for TRBnet]
+DAQHOSTNAME=localhost
+TRBID=trb033
+TRBNETID=1
+\end{lstlisting}
+
+This script should be called once with command
+\verb+source ~/rtb3user/start_trbnet.sh+ after setting the proper TRB3 environment.
+% You can add this exports to your \verb+~/trb3/setenv.sh+ file.
+
+\subsection{Configuring TRB3}
+
+As you can see in Listing \ref{lst:rawtrbnet} the FPGA addresses (first column) are not configured yet in your
system. The middle columns is the unique ID of the FPGA (temp sensor), the last
column is the FPGA number (0x05 is the central FPGA). To set proper addresses
execute following command
\end{warning}
As the last you should rerun merging of the addresses and serials.
+\subsection{DAQ configuration}
+
+You must configure your TRB3 which is the IP address of the Event Builder. This
+you can set in proper registers of the central FPGA of
+the TRB3. For this in the file \verb+~/trb3user/configure_trb3.sh+ (see Listing
+\ref{lst:trb3user}) find line starting with \verb+#mac address of the EB+, in
+register \verb+0x8100+ write lower four bytes of the MAC and \verb+0x8101+ two
+upper bytes, for example for MAC \verb+00:11:22:33:44:55:66+ configuration look
+following
+\begin{lstlisting}[label=,caption=Settings Event Builder address for TRB3]
+#mac address of the EB
+#ebhost 00:11:22:33:44:55
+trbcmd w 0x8000 0x8100 0x22334455 # lower bytes
+trbcmd w 0x8000 0x8101 0x0011 # upper bytes
+\end{lstlisting}
+
\subsection{CTS monitor configuration}
In order to inform CTS server which endpoint hosts the CTS, you must or edit
}
1;
-\end{lstlisting}
-
-
-\subsection{DAQ configuration}
-
-You must configure your TRB3 which is the IP address of the Event Builder. This
-you can set in proper registers of the central FPGA of
-the TRB3. For this in the file \verb+configure_trb3.sh+ find line starting with
-\verb+#mac address of the EB+, in register \verb+0x8100+ write lower four bytes
-of the MAC and \verb+0x8101+ two upper bytes, for example for MAC
-\verb+00:11:22:33:44:55:66+ configuration look following
-
-\begin{lstlisting}[label=,caption=Settings Event Builder address for TRB3]
-#mac address of the EB
-#ebhost 00:11:22:33:44:55
-trbcmd w 0x8000 0x8100 0x22334455 # lower bytes
-trbcmd w 0x8000 0x8101 0x0011 # upper bytes
-\end{lstlisting}
-
-{\color{red}\fbox{
-TODO: how to get this script?
-}}
\ No newline at end of file
+\end{lstlisting}
\ No newline at end of file
edit file \verb+evtbuild.c+, comment out \verb+#define RFIO+ and repeat last
command (the \verb+for+ loop).
-On the it is recommended to create init script
-\begin{lstlisting}[label=setenv,caption=\$\{HOME\}/trb3/setenv.sh]
-#!/bin/bash
-export PATH="${HOME}/daqsoftware/bin:${HOME}/trbsoft/trbnettools/binlocal:${PATH}"
+
+On the it is recommended to create init script for preparing environment. User
+can create his own or use already prepared user scripts. To get them he must run
+following
+
+\begin{lstlisting}[label=lst:trb3user,caption=User scripts preparation]
+$ cd ~
+$ wget http://www-linux.gsi.de/~rlalik/trb3userscripts.tar.gz
+$ tar zxvf trb3userscripts.tar.gz
\end{lstlisting}
-This script should be run with command \verb+. ~/trb3/setenv.sh+ in each new terminal
-supposed to work for TRB3.
\ No newline at end of file
+To adjust script to his system should edit file \verb+~/trb3user/setenv.sh+ and
+adjust paths to trb3 software
+
+\begin{lstlisting}[label=,caption=Variables to be adjusted]
+# normally HOME variable should host proper value
+#HOME=/home/hadaq # uncomment this line only if you kow what are you doing
+
+TRB3USER=${HOME}/trb3user
+TRBSOFT=${HOME}/trbsoft
+TRBNETTOOLS=${TRBSOFT}/trbnettools
+DAQSOFT=${HOME}/daqsoftware
+\end{lstlisting}
+
+Usually no changes are required if all other software were installed in user's
+\verb+${$HOME}+ directory (recommended way).
+
+This script should be run with command \verb+source ~/trb3user/setenv.sh+ in
+each new terminal supposed to work for TRB3.
+
+% \begin{lstlisting}[label=setenv,caption=\$\{HOME\}/trb3/setenv.sh]
+% #!/bin/bash
+% export PATH="${HOME}/daqsoftware/bin:${HOME}/trbsoft/trbnettools/binlocal:${PATH}"
+% \end{lstlisting}
\ No newline at end of file