SIM-119: Update value of MeasurementTypeName and MeasurementTypeID to constraint 35/12935/1 master
authorTuan Nguyen <hoang.su.tk@gmail.com>
Mon, 3 Jun 2024 10:59:49 +0000 (10:59 +0000)
committerTuan Nguyen <hoang.su.tk@gmail.com>
Mon, 3 Jun 2024 10:59:49 +0000 (10:59 +0000)
Change-Id: I72fce472e941571b5e8ad2256051ce1257d58a61
Signed-off-by: Tuan Nguyen <hoang.su.tk@gmail.com>
e2sim/e2sm_examples/kpm_e2sm/src/kpm/encode_kpm.cpp

index 676c5a1..7ab086c 100755 (executable)
@@ -28,8 +28,8 @@
 using namespace std;
 
 const char* performance_measurements[] = {
 using namespace std;
 
 const char* performance_measurements[] = {
-  "DRB.RlcSduTransmittedVolumeDL_Filter",
-  "DRB.RlcSduTransmittedVolumeUL_Filter",
+  "DRB.RlcSduTransmittedVolumeDL",
+  "DRB.RlcSduTransmittedVolumeUL",
   "DRB.PerDataVolumeDLDist.Bin",
   "DRB.PerDataVolumeULDist.Bin",
   "DRB.RlcPacketDropRateDLDist",
   "DRB.PerDataVolumeDLDist.Bin",
   "DRB.PerDataVolumeULDist.Bin",
   "DRB.RlcPacketDropRateDLDist",
@@ -103,7 +103,7 @@ void encode_kpm_function_description(E2SM_KPM_RANfunction_Description_t* ranfunc
     measItem->measName.size = strlen((char*)metrics);
 
     measItem->measID = (MeasurementTypeID_t*)calloc(1, sizeof(MeasurementTypeID_t));
     measItem->measName.size = strlen((char*)metrics);
 
     measItem->measID = (MeasurementTypeID_t*)calloc(1, sizeof(MeasurementTypeID_t));
-    *measItem->measID = i;
+    *measItem->measID = i+1;
 
     ASN_SEQUENCE_ADD(&measInfo_Action_List->list, measItem);
   }
 
     ASN_SEQUENCE_ADD(&measInfo_Action_List->list, measItem);
   }
@@ -308,6 +308,7 @@ void ue_meas_kpm_report_indication_message_initialized(
 
   if (ret) {
     LOG_I("Constraint validation of indication message failed: %s", error_buf);
 
   if (ret) {
     LOG_I("Constraint validation of indication message failed: %s", error_buf);
+    exit(1);
   }
 
   // xer_fprint(stderr, &asn_DEF_E2SM_KPM_IndicationMessage, indicationmessage);
   }
 
   // xer_fprint(stderr, &asn_DEF_E2SM_KPM_IndicationMessage, indicationmessage);
@@ -404,6 +405,7 @@ void cell_meas_kpm_report_indication_message_style_1_initialized(
 
   if (ret) {
     LOG_I("Constraint validation of indication message failed: %s\n", error_buf);
 
   if (ret) {
     LOG_I("Constraint validation of indication message failed: %s\n", error_buf);
+    exit(1);
   }
 }
 
   }
 }
 
@@ -453,6 +455,7 @@ void encode_kpm_report_style1(E2SM_KPM_IndicationMessage_t* indicationmessage) {
 
   if (ret) {
     LOG_I("Constraint validation of indication message failed: %s\n", error_buf);
 
   if (ret) {
     LOG_I("Constraint validation of indication message failed: %s\n", error_buf);
+    exit(1);
   }
 
   uint8_t e2smbuffer[8192] = {
   }
 
   uint8_t e2smbuffer[8192] = {