diff options
Diffstat (limited to 'src/MTS_IO_ICellularRadio.cpp')
-rw-r--r-- | src/MTS_IO_ICellularRadio.cpp | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/MTS_IO_ICellularRadio.cpp b/src/MTS_IO_ICellularRadio.cpp index 4e7809e..53c8faa 100644 --- a/src/MTS_IO_ICellularRadio.cpp +++ b/src/MTS_IO_ICellularRadio.cpp @@ -49,11 +49,13 @@ const char *MTS::IO::ICellularRadio::KEY_MSID = "msid"; //!< Mobil Stat const char *MTS::IO::ICellularRadio::KEY_MDN = "mdn"; //!< Mobile Directory Number : Actual phone number dialed to reach radio const char *MTS::IO::ICellularRadio::KEY_ICCID = "iccid"; //!< Integrated Circuit Card Identifier const char *MTS::IO::ICellularRadio::KEY_MSL = "msl"; //!< Master Subsidy Lock +const char *MTS::IO::ICellularRadio::KEY_SUPPORTED_CELL_MODES = "supportedCellularModes"; //!< Comma-separated list of all supported cellular modes (2g,3g,4g) //Dynamic Data const char *MTS::IO::ICellularRadio::KEY_ROAMING = "roaming"; //!< Indicates whether or not using Home Network const char *MTS::IO::ICellularRadio::KEY_DATETIME = "datetime"; //!< Date and Time from tower const char *MTS::IO::ICellularRadio::KEY_SERVICE = "service"; //!< Service Connection Type [GPRS, EGPRS, WCDMA, HSDPA, 1xRTT, EVDO] +const char *MTS::IO::ICellularRadio::KEY_CELL_MODE = "cellularMode"; //!< Specifies the cellular mode that is currently used by the modem [2g, 3g, 4g] const char *MTS::IO::ICellularRadio::KEY_NETWORK = "network"; //!< Cellular Service Provider const char *MTS::IO::ICellularRadio::KEY_NETWORK_REG = "netreg"; //!< Network Registration const char *MTS::IO::ICellularRadio::KEY_CID = "cid"; //!< Cellular ID = Tower in HEX @@ -154,18 +156,15 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToMtsShortCod } else if (sModel.find("LE910-SVG") == 0) { sCode = "LVW2"; eCode = SUCCESS; + } else if (sModel.find("LE910-SV1") == 0) { + sCode = "LVW3"; + eCode = SUCCESS; } else if (sModel.find("LE910C1-NS") == 0) { sCode = "LSP3"; eCode = SUCCESS; } else if (sModel.find("LE910C1-AP") == 0) { sCode = "LAP3"; eCode = SUCCESS; - } else if (sModel.find("ME910C1-NA") == 0) { - sCode = "MAT1"; - eCode = SUCCESS; - } else if (sModel.find("ME910C1-NV") == 0) { - sCode = "MVW1"; - eCode = SUCCESS; } else if (sModel.find("ME910C1-WW") == 0) { sCode = "MNG2"; eCode = SUCCESS; @@ -268,6 +267,9 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToType(const } else if (sModel.find("LE910-SVG") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; + } else if (sModel.find("LE910-SV1") == 0) { + sType = VALUE_TYPE_LTE; + eCode = SUCCESS; } else if (sModel.find("LE910-EUG") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; @@ -283,12 +285,6 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertModelToType(const } else if (sModel.find("LE910C1-AP") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; - } else if (sModel.find("ME910C1-NA") == 0) { - sType = VALUE_TYPE_LTE; - eCode = SUCCESS; - } else if (sModel.find("ME910C1-NV") == 0) { - sType = VALUE_TYPE_LTE; - eCode = SUCCESS; } else if (sModel.find("ME910C1-WW") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; @@ -425,14 +421,12 @@ std::string MTS::IO::ICellularRadio::extractModelFromResult(const std::string& s sModel = "LE910C4-NF"; } else if(sResult.find("LE910-NA1") != std::string::npos) { sModel = "LE910-NA1"; - } else if(sResult.find("ME910C1-NA") != std::string::npos) { - sModel = "ME910C1-NA"; - } else if(sResult.find("ME910C1-NV") != std::string::npos) { - sModel = "ME910C1-NV"; } else if(sResult.find("ME910C1-WW") != std::string::npos) { sModel = "ME910C1-WW"; } else if(sResult.find("LE910-SVG") != std::string::npos) { sModel = "LE910-SVG"; + } else if(sResult.find("LE910-SV1") != std::string::npos) { + sModel = "LE910-SV1"; } else if(sResult.find("LE910-EUG") != std::string::npos) { sModel = "LE910-EUG"; } else if(sResult.find("LE910C4-EU") != std::string::npos) { |