diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2021-05-29 00:02:00 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2021-05-29 12:50:58 +0300 |
commit | e5e131de3faf1530cc977edc643e886a640d3bde (patch) | |
tree | cbfdacfde0479835c847acf981721ae36cb0c22f /include | |
parent | 51484668683c5e10bda111c08a300af1834a59d2 (diff) | |
download | libmts-io-e5e131de3faf1530cc977edc643e886a640d3bde.tar.gz libmts-io-e5e131de3faf1530cc977edc643e886a640d3bde.tar.bz2 libmts-io-e5e131de3faf1530cc977edc643e886a640d3bde.zip |
[GP-1111] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2
Extended the implementation of "getSimCarrierCode" to detect the carrier
(home network) based on the MCC/MNC combination.
Historically mPower used ICCIDs to detect the carrier and apply the
carrier-specific settings. ICCIDs are known for Verizon and AT&T, but
the list of known ICCIDs is not exhaustive.
This change allows the firmware to detect more AT&T SIM cards by using
the MCC/MNC combinations (PLMN IDs) when ICCID is not recognized.
Limitation: The SIM shall be relatively new and report its MNC length,
otherwise MCC/MNC can't be determined and so the carrier code.
Diffstat (limited to 'include')
-rw-r--r-- | include/mts/MTS_IO_CellularRadio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h index 3783705..daefcd1 100644 --- a/include/mts/MTS_IO_CellularRadio.h +++ b/include/mts/MTS_IO_CellularRadio.h @@ -185,6 +185,8 @@ namespace MTS { //! Get carrier code based on the SIM card ID (ICCID) virtual CODE getSimCarrierCode(const std::string& sIccid, std::string& sCarrierCode); + //! Get carrier code based on the SIM MCC/MNC + virtual CODE getSimCarrierCode(const std::string& sMcc, const std::string& sMnc, std::string& sCarrierCode); /** * @brief simAccessReadBinary - Read a string of bytes from the SIM Elementary File. |