Index: fact/FADctrl/FAD.cc
===================================================================
--- fact/FADctrl/FAD.cc	(revision 10036)
+++ fact/FADctrl/FAD.cc	(revision 10077)
@@ -39,4 +39,5 @@
    {"cancel", &FAD::cmd_cancel, false, 0, "", "Cancel current operation"},
    {"update", &FAD::cmd_update, false, 1, "<sec>", "Minimum delay between updates to DIM event service"},		  
+	 {"socketmode", &FAD::cmd_socketmode, true, 1, "<com|daq>", "Choose which Sockets are used for data transmission"},		  
    {"exit", &FAD::cmd_exit, true, 0, "", "Exit program"},
    {"help", &FAD::cmd_help, false, 0, "", "Print help"}};
@@ -69,5 +70,9 @@
 
   // Construct boards
-  BoardList = Tokenize(GetConfig("BoardList","192.33.99.225"));
+  
+	// ETHZ
+	//BoardList = Tokenize(GetConfig("BoardList","192.33.99.225"));
+	// TUDO
+	BoardList = Tokenize(GetConfig("BoardList","129.217.160.119"));
 
   for (unsigned int i=0; i<BoardList.size(); i++) {
@@ -190,4 +195,26 @@
   else PrintUsage();
 } 
+
+//
+// Switch which sockets are used to send data away
+// case parameter is: "com" - command mode is enabled.
+// 	thus only socket 0 is used
+// case parameter is: "daq" - daq mode is enabled
+//	thus only sockets 1 - 7 are used.
+// 
+//	note: socket 0 is always used to issue commands
+//
+void FAD::cmd_socketmode() {
+
+  for (unsigned int i=0; i<Boards.size(); i++) {
+	if (Match(Parameter[1],"com")) Boards[i]->Send(CMD_Stop);
+	else if (Match(Parameter[1],"daq")) Boards[i]->Send(CMD_Start);
+  }
+
+  if (Match(Parameter[1],"com")) PrintMessage("all active boards switched to command mode - socket 0\n");
+  else if (Match(Parameter[1],"daq")) PrintMessage("all active boards switched to DAQ mode - socket 1..7\n");
+  else PrintUsage();
+} 
+
 
 //
Index: fact/FADctrl/FAD.h
===================================================================
--- fact/FADctrl/FAD.h	(revision 10036)
+++ fact/FADctrl/FAD.h	(revision 10077)
@@ -66,5 +66,5 @@
     void cmd_board();		void cmd_status();
     void cmd_acalib();		void cmd_serial();
-    void cmd_trigger();
+    void cmd_trigger(); 	void cmd_socketmode();
 	void cmd_srclk();		void cmd_sclk();
 	void cmd_dwrite();		void cmd_domino();
Index: fact/FADctrl/FADctrl.cc
===================================================================
--- fact/FADctrl/FADctrl.cc	(revision 10036)
+++ fact/FADctrl/FADctrl.cc	(revision 10077)
@@ -116,5 +116,8 @@
 void OpenOtherSockets() {
 
-  static char Hostname[] = "192.33.99.225";
+	//ETHZ
+  //static char Hostname[] = "192.33.99.225";
+	//TUDO
+	static char Hostname[] = "129.217.160.119";
   int List[] = {5001, 5002, 5003, 5004, 5005, 5006, 5007};
   int Socket[sizeof(List)/sizeof(int)], MaxSocketNum=0, Ret;
