diff options
author | mykola.salomatin <mykola.salomatin@globallogic.com> | 2020-05-29 11:44:57 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-05-29 11:49:24 +0300 |
commit | 04b90430c91f4257ebeff3bcccbe8c5d7413e7ae (patch) | |
tree | 64f6423de18f09e5791d9c5da216a5cfe4bc4fd0 /src/MTS_IO_ICellularRadio.cpp | |
parent | b3a9a71afdb0d6f4f104543cedba89d011ca68df (diff) | |
download | libmts-io-04b90430c91f4257ebeff3bcccbe8c5d7413e7ae.tar.gz libmts-io-04b90430c91f4257ebeff3bcccbe8c5d7413e7ae.tar.bz2 libmts-io-04b90430c91f4257ebeff3bcccbe8c5d7413e7ae.zip |
mPower Oct20: L4G1 libmts-io support
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 53c8faa..c9bed33 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; } |