diff options
author | Yevhen Mykhno <yevhen.mykhno@globallogic.com> | 2023-01-31 13:26:34 +0200 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-03-13 10:49:38 -0500 |
commit | a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b (patch) | |
tree | 1679304e1b5858dfc092edaaaec9de7a0f3ed69b /src/MTS_IO_QuectelRadio.cpp | |
parent | e661044a43345f7cac947c3bb6178a2c045028f6 (diff) | |
download | libmts-io-a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b.tar.gz libmts-io-a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b.tar.bz2 libmts-io-a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b.zip |
[GP-1733] mPower R.6.3.X: L6G1 Support - libmts-io, radio-cmd, radio-query
- function getRegistrationCommands() implemented as
pure virtual and overrided for every base radio model
- minor indentation fixes
- function getSimStatusSummary(Json::Value& jData) changed to process
radio modems that do not have separate commands for the SIM presence check
- function getManufacturer(std::string& sManufacturer) changed: AT command changet to 'AT+CGMI'
- src/MTS_IO_QuectelRadio.cpp -- comments correction
Diffstat (limited to 'src/MTS_IO_QuectelRadio.cpp')
-rw-r--r-- | src/MTS_IO_QuectelRadio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp index 3a5924c..af7adde 100644 --- a/src/MTS_IO_QuectelRadio.cpp +++ b/src/MTS_IO_QuectelRadio.cpp @@ -288,7 +288,7 @@ CellularRadio::CODE QuectelRadio::getNetworkStatus(Json::Value& jData) { Json::Value jQuectelDebug; if (vParts.size() < 3) { - printDebug("%s| Network Status command reponse is an unknown format: [%s][%s]", getName().c_str(), sCmd.c_str(), sResult.c_str()); + printDebug("%s| Network Status command response is an unknown format: [%s][%s]", getName().c_str(), sCmd.c_str(), sResult.c_str()); printTrace("%s| Network Status:\n%s\n", getName().c_str(), jData.toStyledString().c_str()); return SUCCESS; //return SUCCESS because getCommonNetworkStats() succeeded at top of this function } else { @@ -410,7 +410,7 @@ CellularRadio::CODE QuectelRadio::getNetworkStatus(Json::Value& jData) { jDebug[ICellularRadio::KEY_SD] = sValue; } - // LAC is not provided by AT+QENG in WCDMA mode. Use another command instead + // LAC is not provided by AT+QENG in LTE mode. Use another command instead jData[ICellularRadio::KEY_LAC] = queryLteLac(); jData["quectelDebug"] = jQuectelDebug; @@ -842,7 +842,7 @@ ICellularRadio::CODE QuectelRadio::convertToActiveBand(const std::string& sQuect ICellularRadio::CODE QuectelRadio::setCellularMode(CELLULAR_MODES networks) { std::string prefNet; unsigned int prefOnly = 0, prefCount = 0; - for (int i = sizeof(networks)*CHAR_BIT-1; i>=0; --i){ + for (int i = sizeof(networks)*CHAR_BIT-1; i>=0; --i) { switch (1<<i & networks) { case ICellularRadio::CELLULAR_MODE_2G: prefNet += "01" ; prefOnly = 1; prefCount++; break; case ICellularRadio::CELLULAR_MODE_3G: prefNet += "0302"; prefOnly = 2; prefCount++; break; |