diff --git a/ccsrc/externals/LibMec_ExternalFunctions.cc b/ccsrc/externals/LibMec_ExternalFunctions.cc index b3ea2f626eea6a9d6d16db9dd08047ccde4ea189..90bcb2858280f891981e80cadaed7b400febfc78 100644 --- a/ccsrc/externals/LibMec_ExternalFunctions.cc +++ b/ccsrc/externals/LibMec_ExternalFunctions.cc @@ -17,8 +17,7 @@ namespace LibMec__Functions { * @return Timestamp - current time since 01/01/2004 in milliseconds * @see fx_getCurrentTime() return TimestampIts */ - INTEGER fx__getCurrentTime( -) { + INTEGER fx__getCurrentTime() { INTEGER i; i.set_long_long_val(base_time::get_instance().get_its_current_time_ms()); loggers::get_instance().log_msg("<<< fx__getCurrentTime: ", i); @@ -35,4 +34,12 @@ namespace LibMec__Functions { return i; } + /** + * @desc Convert a float value into a string + * @return The string formated value + */ + CHARSTRING fx__float2str(const FLOAT& p_value) { + return float2str(p_value); + } + } // end of Namespace diff --git a/scripts/update_mec_project.bash b/scripts/update_mec_project.bash index f1442ebfbea5f5874f00af90af1d162e36a11a60..f92c5dda637899afd442ae131223b0a7fd53c3a5 100755 --- a/scripts/update_mec_project.bash +++ b/scripts/update_mec_project.bash @@ -125,7 +125,7 @@ do done # Update libraries & CC files -TTCN_3_LIB_LIST='LibMec LibMec/LocationAPI LibMec/UEidentityAPI LibMec/RnisAPI LibMec/BwManagementAPI LibMec/Ams LibMec/AppEna LibMec/ApplCM LibMec/FixedAccessInformationAPI LibMec/MeoPkgm LibMec/MepmPkgm LibHttp LibCommon' +TTCN_3_LIB_LIST='LibMec LibMec/Ams LibMec/AppEna LibMec/AppLCM LibMec/BwManagementAPI LibMec/FixedAccessInformationAPI LibMec/Grant LibMec/LocationAPI LibMec/MeoPkgm LibMec/MepmPkgm LibMec/RnisAPI LibMec/UEidentityAPI LibHttp LibCommon' for i in ${TTCN_3_LIB_LIST} do if [ ! -d ${TTCN_3_DST_PATH}/$i ] @@ -134,11 +134,7 @@ do fi cp ${TTCN_3_ORG_PATH}/$i/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn # Update files - if [ "$i" == "LibMec" ] - then - cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn - cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json - elif [ "$i" == "LibHttp" ] + if [ "$i" == "LibHttp" ] then cp ${TTCN_3_ORG_PATH}/LibIts/ttcn/Http/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn cp ${CC_SRC_PATH}/EncDec/$i/*_Encdec.cc ${TTCN_3_DST_PATH}/$i/src @@ -153,6 +149,11 @@ do cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn # Patch TITAN due to TTCN-3 compiler issues cp ${SRC_MEC_PATH}/ttcn/patch_lib_common_titan/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn + elif [ "$i" == "LibMec/Ams" ] + then + cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn + cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json + rm -f ${TTCN_3_DST_PATH}/$i/ttcn/Ams_sEncdecDeclarations.ttcn else cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json diff --git a/ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn b/ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn index 6749a08aed278f9c69a7ffa15b31bbca32d26641..82457819664d4ac729357e2cf6b116059dbe076b 100644 --- a/ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn +++ b/ttcn/AtsMec/AtsMec_RadioNodeLocationAPI_TestCases.ttcn @@ -446,7 +446,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases { httpPort.send( m_http_request( m_http_request_get( - "/" & PICS_ROOT_API & PX_UE_LOC_QRY_URI & "?address=" & oct2char(unichar2oct(PX_IP_ADDRESS, "UTF-8")) & "&latitude=" & float2str(PX_UE_COORD_LAT) & "&longitude=" & float2str(PX_UE_COORD_LONG), + "/" & PICS_ROOT_API & PX_UE_LOC_QRY_URI & "?address=" & oct2char(unichar2oct(PX_IP_ADDRESS, "UTF-8")) & "&latitude=" & fx_float2str(PX_UE_COORD_LAT) & "&longitude=" & fx_float2str(PX_UE_COORD_LONG), v_headers ) ) @@ -503,7 +503,7 @@ module AtsMec_RadioNodeLocationAPI_TestCases { httpPort.send( m_http_request( m_http_request_get( - "/" & PICS_ROOT_API & PX_UE_LOC_QRY_URI & "?address=" & oct2char(unichar2oct(PX_IP_ADDRESS, "UTF-8")) & "&lat=" & float2str(PX_UE_COORD_LAT) & "&longitude=" & float2str(PX_UE_COORD_LONG), + "/" & PICS_ROOT_API & PX_UE_LOC_QRY_URI & "?address=" & oct2char(unichar2oct(PX_IP_ADDRESS, "UTF-8")) & "&lat=" & fx_float2str(PX_UE_COORD_LAT) & "&longitude=" & fx_float2str(PX_UE_COORD_LONG), v_headers ) ) diff --git a/ttcn/LibMec/Grant/ttcn/Grant_Pixits.ttcn b/ttcn/LibMec/Grant/ttcn/Grant_Pixits.ttcn index 0b679bc869d20053b0bc6c4836de09c7210d4959..7cc64696c2abcdac3010cd003376bddb23e8348a 100644 --- a/ttcn/LibMec/Grant/ttcn/Grant_Pixits.ttcn +++ b/ttcn/LibMec/Grant/ttcn/Grant_Pixits.ttcn @@ -16,4 +16,4 @@ module Grant_Pixits { modulepar JSON.String PX_NON_EXISTANT_GRANTING_ID := "PX_NON_EXISTANT_GRANTING_ID"; -} +} // End of module Grant_Pixits diff --git a/ttcn/LibMec/MeoPkgm/ttcn/MeoPkgm_Pixits.ttcn b/ttcn/LibMec/MeoPkgm/ttcn/MeoPkgm_Pixits.ttcn index f775a510182cf1100b66b671c08b84311f3876c2..3c8a4bdc8c1a57749e33caeebc19cc5b839e2db9 100644 --- a/ttcn/LibMec/MeoPkgm/ttcn/MeoPkgm_Pixits.ttcn +++ b/ttcn/LibMec/MeoPkgm/ttcn/MeoPkgm_Pixits.ttcn @@ -34,4 +34,4 @@ module MeoPkgm_Pixits { modulepar NotificationType PX_NOTIFICATION_TYPE := ON_BOARDING; -} // End of module LocationAPI_Pixits +} // End of module MeoPkgm_Pixits diff --git a/ttcn/LibMec/MepmPkgm/ttcn/MepmPkgm_Pixits.ttcn b/ttcn/LibMec/MepmPkgm/ttcn/MepmPkgm_Pixits.ttcn index 3c6d34ffb20cfda0b36a251b9be9cfdf9777f02e..eb49ef5426ae0bb57955219468a7ff28e50377c5 100644 --- a/ttcn/LibMec/MepmPkgm/ttcn/MepmPkgm_Pixits.ttcn +++ b/ttcn/LibMec/MepmPkgm/ttcn/MepmPkgm_Pixits.ttcn @@ -36,4 +36,4 @@ module MepmPkgm_Pixits { modulepar JSON.String PX_APP_D_ID := "5lkj4782-2c70-4e47-9a4e-0ee3a1a0fd1f"; -} // End of module LocationAPI_Pixits +} // End of module MepmPkgm_Pixits diff --git a/ttcn/LibMec/ttcn/LibMec_Functions.ttcn b/ttcn/LibMec/ttcn/LibMec_Functions.ttcn index 8d38786ec2c30bb97e71affcdc1bcdc0de18ad7b..7f587c143509af9df6c9413a5d6ef59d912be4db 100644 --- a/ttcn/LibMec/ttcn/LibMec_Functions.ttcn +++ b/ttcn/LibMec/ttcn/LibMec_Functions.ttcn @@ -122,6 +122,12 @@ module LibMec_Functions { */ external function fx_get_current_time_utc() return UInt64; + /** + * @desc Convert a float value into a string + * @return The string formated value + */ + external function fx_float2str(in float p_value) return charstring; + } // End of group external_functions group helpers {