summaryrefslogtreecommitdiff
path: root/src/MTS_IO_ICellularRadio.cpp
diff options
context:
space:
mode:
authorYevhen Mykhno <yevhen.mykhno@globallogic.com>2023-01-31 13:39:31 +0200
committerJohn Klug <john.klug@multitech.com>2023-03-13 10:52:41 -0500
commitc2481cf0773c1550fdb9a28d1a0b407c577ac34e (patch)
tree37849e3cb1a65a949dca6461269748413d310ed0 /src/MTS_IO_ICellularRadio.cpp
parenta6f0f7e7b341d6ce29ad71ee534031e9d8e9630b (diff)
downloadlibmts-io-c2481cf0773c1550fdb9a28d1a0b407c577ac34e.tar.gz
libmts-io-c2481cf0773c1550fdb9a28d1a0b407c577ac34e.tar.bz2
libmts-io-c2481cf0773c1550fdb9a28d1a0b407c577ac34e.zip
[GP-1733] mPower R.6.3.X: L6G1 Support - libmts-io, radio-cmd, radio-query
Implementing CB610L radio modem support
Diffstat (limited to 'src/MTS_IO_ICellularRadio.cpp')
-rw-r--r--src/MTS_IO_ICellularRadio.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/MTS_IO_ICellularRadio.cpp b/src/MTS_IO_ICellularRadio.cpp
index 05af28d..e42713d 100644
--- a/src/MTS_IO_ICellularRadio.cpp
+++ b/src/MTS_IO_ICellularRadio.cpp
@@ -239,6 +239,9 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToMtsShortCod
eCode = ERROR;
}
}
+ } else if (sModel.find("CB610L") == 0) {
+ sCode = "L6G1";
+ eCode = SUCCESS;
} else {
sCode = VALUE_NOT_SUPPORTED;
printError("RADIO| Could not identify MTS short code from model. [%s]", sModel.c_str());
@@ -335,6 +338,9 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToType(const
} else if (sModel.find("EG25") == 0) {
sType = VALUE_TYPE_LTE;
eCode = SUCCESS;
+ } else if (sModel.find("CB610L") == 0) {
+ sType = VALUE_TYPE_LTE;
+ eCode = SUCCESS;
} else {
sType = VALUE_TYPE_GSM;
eCode = ERROR;
@@ -504,6 +510,8 @@ std::string MTS::IO::ICellularRadio::extractModelFromResult(const std::string& s
sModel = "EG95";
} else if(sResult.find("EG25") != std::string::npos) {
sModel = "EG25";
+ } else if(sResult.find("CB610L") != std::string::npos) {
+ sModel = "CB610L";
}
return sModel;
}