usefull messages in case of frame number disagreement

This commit is contained in:
2020-10-27 19:51:03 +01:00
parent 265e7958b5
commit 326c108bda
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ User=root
ExecStart=/usr/bin/sh /home/writer/git/sf_daq_buffer/scripts/JF01-stream.sh
TimeoutStartSec=10
Restart=on-failure
RestartSec=10
RestartSec=1
[Install]
WantedBy=multi-user.target
+5
View File
@@ -4,6 +4,8 @@
#include "zmq.h"
#include <stdexcept>
#include <iostream>
//
using namespace std;
using namespace stream_config;
@@ -98,6 +100,9 @@ void ZmqLiveSender::send(const ModuleFrameBuffer *meta, const char *data)
if (module_metadata.n_recv_packets != 128 ) is_good_frame = false;
}
if (pulse_id % 10000 == 0 && is_good_frame != true) {
cout << "Frame is not good " << pulse_id << " module : " << i_module << " frame_index(0) : " << frame_index << " frame_index : " << module_metadata.frame_index << endl;
}
}
// TODO: Here we need to send to streamvis and live analysis metadata(probably need to operate still on them) and data(not every frame)