+ uint8_t nr4 = nrcellid_buf[2] >> 4;
+ uint8_t nr5 = nrcellid_buf[2] << 4;
+ nr5 = nr5 >> 4;
+
+ uint8_t nr6 = nrcellid_buf[3] >> 4;
+ uint8_t nr7 = nrcellid_buf[3] << 4;
+ nr7 = nr7 >> 4;
+
+ uint8_t nr8 = nrcellid_buf[4] >> 4;
+
+ sprintf(cid_return_buf, "373437%d%d%d%d%d%d%d%d%d", nr0,nr1,nr2,nr3,nr4,nr5,nr6,nr7,nr8);
+
+}
+
+void run_report_loop(long requestorId, long instanceId, long ranFunctionId, long actionId)
+{
+ std::filebuf reports_json;
+ std::streambuf *input_filebuf = &reports_json;
+
+ std::unique_ptr<viavi::RICTesterReceiver> viavi_connector;
+ if (!reports_json.open("/playpen/src/reports.json", std::ios::in)) {
+ std::cerr << "Can't open reports.json, enabling VIAVI connector instead..." << endl;
+ viavi_connector.reset(new viavi::RICTesterReceiver {3001, nullptr});
+ input_filebuf = viavi_connector->get_data_filebuf();
+ }
+
+ std::istream input {input_filebuf};