|
|
@ -27,6 +27,7 @@
|
|
|
|
#include "srslte/mac/pdu.h"
|
|
|
|
#include "srslte/mac/pdu.h"
|
|
|
|
#include "ttcn3_interfaces.h"
|
|
|
|
#include "ttcn3_interfaces.h"
|
|
|
|
#include "ttcn3_port_handler.h"
|
|
|
|
#include "ttcn3_port_handler.h"
|
|
|
|
|
|
|
|
#include <srslte/asn1/asn1_utils.h>
|
|
|
|
#include <srslte/interfaces/ue_interfaces.h>
|
|
|
|
#include <srslte/interfaces/ue_interfaces.h>
|
|
|
|
|
|
|
|
|
|
|
|
using namespace srslte;
|
|
|
|
using namespace srslte;
|
|
|
@ -49,11 +50,12 @@ public:
|
|
|
|
return port_listen();
|
|
|
|
return port_listen();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void tx(unique_byte_buffer_t pdu)
|
|
|
|
void tx(std::string out)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (initialized) {
|
|
|
|
if (initialized) {
|
|
|
|
log->info_hex(pdu->msg, pdu->N_bytes, "Sending %d B to Titan\n", pdu->N_bytes);
|
|
|
|
log->info_hex(
|
|
|
|
send(pdu->msg, pdu->N_bytes);
|
|
|
|
reinterpret_cast<const uint8_t*>(out.c_str()), out.length(), "Sending %ld B to Titan\n", out.length());
|
|
|
|
|
|
|
|
send(reinterpret_cast<const uint8_t*>(out.c_str()), out.length());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
log->error("Trying to transmit but port not connected.\n");
|
|
|
|
log->error("Trying to transmit but port not connected.\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|