diff options
author | andrii.davydenko <andrii.davydenko@globallogic.com> | 2021-11-11 15:39:02 +0200 |
---|---|---|
committer | andrii.davydenko <andrii.davydenko@globallogic.com> | 2021-11-11 15:39:02 +0200 |
commit | 8aec99c1006878cf33ed9ee3cc2707a47fa82270 (patch) | |
tree | 2e5d35f67058d3bf851d5269dbd07eba141ad062 | |
parent | 2d456650291528049a36030fa21022c596738aad (diff) | |
download | radio-query-8aec99c1006878cf33ed9ee3cc2707a47fa82270.tar.gz radio-query-8aec99c1006878cf33ed9ee3cc2707a47fa82270.tar.bz2 radio-query-8aec99c1006878cf33ed9ee3cc2707a47fa82270.zip |
[MTX-4190] mPower R.6.0: Update MODBUS slave feature to support Quectel and newer Telit radios
Add query for selected bands
Signed-off-by: andrii.davydenko <andrii.davydenko@globallogic.com>
-rw-r--r-- | main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 = 0x20000000; int32_t g_iAuxOptions = 0; const uint32_t AOPT_VOICE_SUPPORT = 0x00000001; @@ -367,6 +368,12 @@ int main(int argc, char** argv) { if (result == ICellularRadio::SUCCESS) { printf("%s", jValue.toStyledString().c_str()); } + } else if (g_iOptions & OPT_SELECTED_BANDS) { + Json::Value jValue; + result = g_apRadio->getSelectedBands(jValue); + if (result == ICellularRadio::SUCCESS) { + printf("%s", jValue.toStyledString().c_str()); + } } if (g_bIstty && result == ICellularRadio::CODE::SUCCESS) @@ -660,6 +667,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", no_argument, &iOption, OPT_SELECTED_BANDS }, { 0, 0, 0, 0 } }; /* getopt_long stores the option index here. */ @@ -774,6 +782,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\n"); // Applicable for LTE910-NA1 dual FW images only // printf("\t--active-firmware\n"); printf("\n"); |