Index: trunk/FACT++/src/biasctrl.cc
===================================================================
--- trunk/FACT++/src/biasctrl.cc	(revision 12229)
+++ trunk/FACT++/src/biasctrl.cc	(revision 12230)
@@ -266,5 +266,5 @@
             {
                 ostringstream out;
-                out << "Talked to board " << id/kNumChannelsPerBoard << ", but got answer from board " <<  board << ".";
+                out << "Talked to board " << id/kNumChannelsPerBoard << ", but got answer from board " <<  board << " (fSendCounter=" << fSendCounter << ")";
                 Error(out);
                 return false;
@@ -296,4 +296,12 @@
     void HandleReceivedData(const vector<uint8_t> &buf, size_t bytes_received, int command, int send_counter)
     {
+#ifdef DEBUG
+    ofstream fout("received.txt", ios::app);
+    fout << Time() << ": ";
+    for (int i=0; i<bytes_received; i++)
+        fout << hex << setfill('0') << setw(2) << (uint32_t)buf[i];
+    fout << endl;
+#endif
+
         // Now print the received message if requested by the user
         if (fIsVerbose/* && command!=kUpdate*/)
@@ -432,5 +440,9 @@
         {
             if (err==ba::error::eof)
-                Warn("Connection closed by remote host (BIAS).");
+            {
+                ostringstream msg;
+                msg << "Connection closed by remote host (BIAS, fSendCounter=" << fSendCounter << ")";
+                Warn(msg);
+            }
 
             // 107: Transport endpoint is not connected (bs::error_code(107, bs::system_category))
