From 36e25776045429eef47f594a23ebaecc3c812042 Mon Sep 17 00:00:00 2001 From: "andrii.davydenko" Date: Thu, 27 Jan 2022 17:59:29 +0200 Subject: [MTX-4190] mPower R.6.0: Update MODBUS slave feature to support Quectel and newer Telit radios. - GP-862 Implement a changes for Quectel and newer Telit radios Signed-off-by: andrii.davydenko --- main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.cpp b/main.cpp index 369cb01..f2cc086 100644 --- a/main.cpp +++ b/main.cpp @@ -97,6 +97,7 @@ const uint32_t OPT_SUMMARY_STATIC = 0x01000000; const uint32_t OPT_SUMMARY_NETWORK = 0x02000000; const uint32_t OPT_CELL_MODE = 0x04000000; const uint32_t OPT_SUPPORTED_CELL_MODE = 0x08000000; +const uint32_t OPT_SELECTED_BANDS_RAW = 0x20000000; int32_t g_iAuxOptions = 0; const uint32_t AOPT_VOICE_SUPPORT = 0x00000001; @@ -369,6 +370,12 @@ int main(int argc, char** argv) { if (result == ICellularRadio::SUCCESS) { printf("%s", toCompactStyledString(jValue).c_str()); } + } else if (g_iOptions & OPT_SELECTED_BANDS_RAW) { + std::string sResult; + result = g_apRadio->getSelectedBandsRaw(sResult); + if (result == ICellularRadio::SUCCESS) { + printf("%s", sResult.c_str()); + } } if (g_bIstty && result == ICellularRadio::CODE::SUCCESS) @@ -662,6 +669,7 @@ void parseOptions(int argc, char** argv) { { "ue-mode-of-operation", no_argument,&iOption, OPT_UE_MODE_OF_OPERATION }, { "sim-mcc-mnc", no_argument, &iOption, OPT_SIM_MCC_MNC }, { "voice-support",no_argument, &iAuxOption, AOPT_VOICE_SUPPORT }, + { "selected-bands-raw", no_argument, &iOption, OPT_SELECTED_BANDS_RAW }, { 0, 0, 0, 0 } }; /* getopt_long stores the option index here. */ @@ -776,6 +784,7 @@ void printHelp(const std::string& sApp) { printf("\t--ue-mode-of-operation\n"); printf("\t--sim-mcc-mnc\n"); printf("\t--voice-support\n"); + printf("\t--selected-bands-raw\n"); // Applicable for LTE910-NA1 dual FW images only // printf("\t--active-firmware\n"); printf("\n"); -- cgit v1.2.3