diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-06-30 12:49:56 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-06-30 12:49:56 +0300 |
commit | 24ed390ceb584fadfd428a6e9019371550931094 (patch) | |
tree | bf9d7b72303a8cd9026e625a4cd2812cab708d5c /src/MTS_IO_ICellularRadio.cpp | |
parent | 6e9ce61addd97809d5ea7b912332dd11a4bf7cee (diff) | |
parent | adaca6b0fc6430f38ae3f0551f9a248563ad53b5 (diff) | |
download | libmts-io-24ed390ceb584fadfd428a6e9019371550931094.tar.gz libmts-io-24ed390ceb584fadfd428a6e9019371550931094.tar.bz2 libmts-io-24ed390ceb584fadfd428a6e9019371550931094.zip |
Merge remote-tracking branch 'origin/master' into sk/quectel-delta-fwu
Diffstat (limited to 'src/MTS_IO_ICellularRadio.cpp')
-rw-r--r-- | src/MTS_IO_ICellularRadio.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/MTS_IO_ICellularRadio.cpp b/src/MTS_IO_ICellularRadio.cpp index 2de52bb..b84fa3f 100644 --- a/src/MTS_IO_ICellularRadio.cpp +++ b/src/MTS_IO_ICellularRadio.cpp @@ -207,6 +207,24 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToMtsShortCod eCode = ERROR; } } + } else if (sModel.find("EG25") == 0) { + if (NULL == radioObject) { + sCode = VALUE_NOT_SUPPORTED; + eCode = ERROR; + } else { + std::string sValue; + eCode = radioObject->getFirmware(sValue); + if (eCode != SUCCESS) { + sCode = VALUE_NOT_SUPPORTED; + eCode = ERROR; + } else if (sValue.find("EG25G") != std::string::npos) { + sCode = "L4G1"; + eCode = SUCCESS; + } else { + sCode = VALUE_NOT_SUPPORTED; + eCode = ERROR; + } + } } else { sCode = VALUE_NOT_SUPPORTED; printError("RADIO| Could not identify MTS short code from model. [%s]", sModel.c_str()); @@ -300,6 +318,9 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToType(const } else if (sModel.find("EG95") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; + } else if (sModel.find("EG25") == 0) { + sType = VALUE_TYPE_LTE; + eCode = SUCCESS; } else { sType = VALUE_TYPE_GSM; eCode = ERROR; @@ -445,6 +466,8 @@ std::string MTS::IO::ICellularRadio::extractModelFromResult(const std::string& s sModel = "CE910"; } else if(sResult.find("EG95") != std::string::npos) { sModel = "EG95"; + } else if(sResult.find("EG25") != std::string::npos) { + sModel = "EG25"; } return sModel; } |