Message balance

parent 5e20c970
...@@ -4,7 +4,7 @@ package protocol; ...@@ -4,7 +4,7 @@ package protocol;
import "mac_primitives.proto"; import "mac_primitives.proto";
// //
// Body of UE DL/UL MAC scheduling configuration info // Body of UE DL MAC scheduling configuration info
// //
message flex_dl_data { message flex_dl_data {
...@@ -16,12 +16,6 @@ message flex_dl_data { ...@@ -16,12 +16,6 @@ message flex_dl_data {
optional uint32 act_deact_ce = 6; //Hex content of MAC CE for Activation/Deactivation in CA optional uint32 act_deact_ce = 6; //Hex content of MAC CE for Activation/Deactivation in CA
} }
message flex_ul_data {
optional uint32 rnti = 1;
optional flex_ul_dci ul_dci = 2;
}
// //
// Body of the RAR scheduler configuration // Body of the RAR scheduler configuration
// //
......
...@@ -8,6 +8,7 @@ import "config_messages.proto"; ...@@ -8,6 +8,7 @@ import "config_messages.proto";
import "controller_commands.proto"; import "controller_commands.proto";
import "control_delegation.proto"; import "control_delegation.proto";
message flexran_message { message flexran_message {
optional flexran_direction msg_dir = 100; optional flexran_direction msg_dir = 100;
oneof msg { oneof msg {
...@@ -29,7 +30,6 @@ message flexran_message { ...@@ -29,7 +30,6 @@ message flexran_message {
flex_control_delegation control_delegation_msg = 16; flex_control_delegation control_delegation_msg = 16;
flex_agent_reconfiguration agent_reconfiguration_msg = 17; flex_agent_reconfiguration agent_reconfiguration_msg = 17;
flex_rrc_triggering rrc_triggering = 18; flex_rrc_triggering rrc_triggering = 18;
flex_ul_mac_config ul_mac_config_msg = 19;
} }
} }
...@@ -166,22 +166,6 @@ message flex_dl_mac_config { ...@@ -166,22 +166,6 @@ message flex_dl_mac_config {
repeated flex_pdcch_ofdm_sym_count ofdm_sym = 6; // OFDM symbol count for each CC repeated flex_pdcch_ofdm_sym_count ofdm_sym = 6; // OFDM symbol count for each CC
} }
message flex_ul_mac_config {
optional flex_header header = 1;
optional uint32 sfn_sf = 2;
repeated flex_ul_data ul_ue_data = 3;
}
message flex_rrc_triggering {
optional flex_header header = 1;
optional string rrc_trigger = 2;
}
// //
// UE state change message // UE state change message
// //
......
...@@ -41,6 +41,5 @@ enum flex_type { ...@@ -41,6 +41,5 @@ enum flex_type {
FLPT_DELEGATE_CONTROL = 15; FLPT_DELEGATE_CONTROL = 15;
FLPT_RECONFIGURE_AGENT = 16; FLPT_RECONFIGURE_AGENT = 16;
FLPT_RRC_TRIGGERING = 17; FLPT_RRC_TRIGGERING = 17;
FLPT_UL_MAC_CONFIG = 18;
} }
...@@ -36,37 +36,6 @@ message flex_dl_dci { ...@@ -36,37 +36,6 @@ message flex_dl_dci {
optional uint32 cif = 27; // CIF for cross-carrier scheduling optional uint32 cif = 27; // CIF for cross-carrier scheduling
} }
message flex_ul_dci {
optional uint32 rnti = 1;
optional uint32 rb_start = 2; // The start RB allocated to the UE
optional uint32 rb_len = 3; // The number of RBs allocated to the UE
optional uint32 mcs = 4; // Modulation and coding scheme
optional uint32 cyclic_shift2 = 5; // match DCI format 0/4 PDU
optional uint32 freq_hop_flag = 6; // 0 no hopping, 1 hoppping
optional uint32 freq_hop_map = 7; // Frequency hopping bits (0..4)
optional uint32 ndi = 8; // New data indicator
optional uint32 rv = 9; // Redundancy version
optional uint32 harq_pid = 10; // The harq process id
optional uint32 ultx_mode = 11; // A FLULM_* value
optional uint32 tbs_size = 12; // The size of each TBS
optional uint32 n_srs = 13; // Overlap indication with srs
optional uint32 res_alloc = 14; // Type of resource allocation
optional uint32 size = 15; // Size of the ULSCH PDU in bytes for UL Grant.
optional uint32 dai = 16; // TDD only
// optional uint32 tb_swap = 17; // Boolean. TB to codeword swap flag
// optional uint32 pdcch_order = 19;
// optional uint32 preamble_index = 20; // Only valid if pdcch_order = 1
// optional uint32 prach_mask_index = 21; // Only valid if pdcch_order = 1
// optional uint32 tbs_idx = 23; // The TBS index for Format 1A
}
// //
// Messages related to the creation of RLC PDUs // Messages related to the creation of RLC PDUs
...@@ -107,9 +76,3 @@ enum flex_ngap_val { ...@@ -107,9 +76,3 @@ enum flex_ngap_val {
FLNGV_1 = 0; FLNGV_1 = 0;
FLNGV_2 = 1; FLNGV_2 = 1;
} }
enum flex_mod_type {
FLMOD_QPSK = 2;
FLMOD_16QAM = 4;
FLMOD_64QAM = 6;
}
...@@ -183,8 +183,10 @@ message flex_noise_interference_report { ...@@ -183,8 +183,10 @@ message flex_noise_interference_report {
} }
// //
// RRC Primitives // RRC Measurements Primitives
// //
message flex_rrc_measurements { message flex_rrc_measurements {
// Measurement identifier. // Measurement identifier.
optional int32 measid = 1; optional int32 measid = 1;
...@@ -236,13 +238,16 @@ message flex_plmn_identity { ...@@ -236,13 +238,16 @@ message flex_plmn_identity {
} }
message flex_eutra_ref_signal_meas { message flex_eutra_ref_signal_meas {
// Neighboring Cell Reference Signal Received Power (RSRP). // Neighboring Cell RSRP
optional int32 rsrp = 1; optional int32 rsrp = 1;
// Neighboring Cell Reference Signal Received Quality (RSRQ). // Neighboring Cell RSRQ
optional int32 rsrq = 2; optional int32 rsrq = 2;
} }
//
// PDCP Statistics
//
message flex_pdcp_stats { message flex_pdcp_stats {
optional uint32 pkt_tx = 1; optional uint32 pkt_tx = 1;
...@@ -261,5 +266,4 @@ message flex_pdcp_stats { ...@@ -261,5 +266,4 @@ message flex_pdcp_stats {
optional uint32 pkt_rx_aiat = 14; optional uint32 pkt_rx_aiat = 14;
optional uint32 pkt_rx_aiat_s = 15; optional uint32 pkt_rx_aiat_s = 15;
optional uint32 pkt_rx_oo = 16; optional uint32 pkt_rx_oo = 16;
} }
...@@ -86,8 +86,8 @@ enum flex_ue_stats_type { ...@@ -86,8 +86,8 @@ enum flex_ue_stats_type {
FLUST_PBS = 32; FLUST_PBS = 32;
FLUST_UL_CQI = 64; FLUST_UL_CQI = 64;
FLUST_PDCP_STATS = 1024; // To be changed FLUST_PDCP_STATS = 1024;
// To be extended with more types of stats
FLUST_RRC_MEASUREMENTS = 65536; FLUST_RRC_MEASUREMENTS = 65536;
// To be extended with more types of stats
} }
...@@ -387,7 +387,6 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_ ...@@ -387,7 +387,6 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
Protocol__FlexControlDelegation *control_delegation_msg = input->control_delegation_msg; Protocol__FlexControlDelegation *control_delegation_msg = input->control_delegation_msg;
// struct timespec vartime = timer_start(); // struct timespec vartime = timer_start();
int status;
//Write the payload lib into a file in the cache and load the lib //Write the payload lib into a file in the cache and load the lib
char lib_name[120]; char lib_name[120];
char target[512]; char target[512];
...@@ -395,13 +394,6 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_ ...@@ -395,13 +394,6 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
strcpy(target, local_cache); strcpy(target, local_cache);
strcat(target, lib_name); strcat(target, lib_name);
status = mkdir(local_cache, S_IRWXU | S_IRWXG | S_IRWXO);
if (status < 0){
LOG_W(ENB_APP, "Couldn't create local cache!");
}
FILE *f; FILE *f;
f = fopen(target, "wb"); f = fopen(target, "wb");
fwrite(control_delegation_msg->payload.data, control_delegation_msg->payload.len, 1, f); fwrite(control_delegation_msg->payload.data, control_delegation_msg->payload.len, 1, f);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment