summaryrefslogtreecommitdiff
path: root/include/mts/MTS_IO_CellularRadio.h
diff options
context:
space:
mode:
authorSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-06-16 11:50:20 +0300
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-06-16 12:57:08 +0300
commit7634bcfed0ea186175e9f59672a38d2a86fbf025 (patch)
tree291b10f75b01b0d49073e7f8c2b7902c74ba0e8a /include/mts/MTS_IO_CellularRadio.h
parentc34ebcd0df9c5bdbeb5638e9a5498cbee6bab628 (diff)
downloadlibmts-io-7634bcfed0ea186175e9f59672a38d2a86fbf025.tar.gz
libmts-io-7634bcfed0ea186175e9f59672a38d2a86fbf025.tar.bz2
libmts-io-7634bcfed0ea186175e9f59672a38d2a86fbf025.zip
GP-654: Add SIM card-based carrier detection
This commit adds implementation of the SIM-based carrier detection. The goal for this implementation is to replace various places in the firmware that previously relied on the ICCID-based carrier detection, provide some layer of abstraction and forward compatibility for such places. It is particularly useful for fwSwitch radios with AUTO firmware selection capability.
Diffstat (limited to 'include/mts/MTS_IO_CellularRadio.h')
-rw-r--r--include/mts/MTS_IO_CellularRadio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h
index 7f4ed2b..e65eb4e 100644
--- a/include/mts/MTS_IO_CellularRadio.h
+++ b/include/mts/MTS_IO_CellularRadio.h
@@ -81,6 +81,7 @@ namespace MTS {
CODE convertCellModesToString(CELLULAR_MODES eCellModes, std::string& sCellModes) override;
CODE unlockSimCard(const Json::Value& jArgs) override;
+ CODE getMtsSimCarrierCode(std::string& sCarrier) override;
CODE getMipProfile(Json::Value& jMipProfile) override;
CODE validateMsl(const Json::Value& jArgs) override;
@@ -164,6 +165,9 @@ namespace MTS {
*/
virtual CODE getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk) = 0;
+ //! Get MTS carrier code based on the SIM card ID (ICCID)
+ virtual CODE getMtsSimCarrierCode(const std::string& sIccid, std::string& sCarrier);
+
void initMipProfile(Json::Value& jData);
bool splitAndAssign(const std::string& sLine, const std::string& sKey, Json::Value& jParent, const std::string& sJsonKey, Json::ValueType eType = Json::ValueType::stringValue);