diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-06-02 17:19:03 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-06-02 17:30:22 +0300 |
commit | 42d384984b2f760bc8f7a69c7ea3464c73f4d892 (patch) | |
tree | ac2006f36c3bd1d93d1b02002c1eeda5b883de26 /include/mts | |
parent | b3a9a71afdb0d6f4f104543cedba89d011ca68df (diff) | |
download | libmts-io-42d384984b2f760bc8f7a69c7ea3464c73f4d892.tar.gz libmts-io-42d384984b2f760bc8f7a69c7ea3464c73f4d892.tar.bz2 libmts-io-42d384984b2f760bc8f7a69c7ea3464c73f4d892.zip |
[GP-651] LNA7: Allow to start the OMA DM procedure when it is required
This commits adds support for the Quectel-specific OMA DM commands.
This allows to trigger OMA DM procedure om Verizon to fetch the corrent APN
values and other settings from the network.
Expected radio output on success:
```
+QODM: "DME",0,DM Start
+QODM: "DME",0,DM End
```
Other +QODM URC codes are also possible according to information from Quectel forum:
https://forums.quectel.com/t/what-is-the-meaning-of-qodm-fumo-report-failed/2444/5.
But only "DM Start" and "DM End" responses are expected, supported and treated
as correct in the libmts-io.
Diffstat (limited to 'include/mts')
-rw-r--r-- | include/mts/MTS_IO_CellularRadio.h | 1 | ||||
-rw-r--r-- | include/mts/MTS_IO_ICellularRadio.h | 3 | ||||
-rw-r--r-- | include/mts/MTS_IO_QuectelRadio.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h index 56506af..7f4ed2b 100644 --- a/include/mts/MTS_IO_CellularRadio.h +++ b/include/mts/MTS_IO_CellularRadio.h @@ -100,6 +100,7 @@ namespace MTS { CODE updateFumo(const Json::Value& jArgs, UpdateCb& stepCb) override; CODE resetHfa(const Json::Value& jArgs, UpdateCb& stepCb) override; CODE activate(const Json::Value& jArgs, UpdateCb& stepCb) override; + CODE startOmaDm(UpdateCb& stepCb) override; CODE setActiveFirmware(const Json::Value& jArgs) override; CODE getActiveFirmware(std::string& sFwId) override; CODE getEcho(bool& bEnabled) override; diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h index 58d5076..c301191 100644 --- a/include/mts/MTS_IO_ICellularRadio.h +++ b/include/mts/MTS_IO_ICellularRadio.h @@ -431,6 +431,9 @@ namespace MTS { * "fwid" : "Firmware Image To Be Enabled: STRING" * } */ + + virtual CODE startOmaDm(UpdateCb& stepCb) = 0; + virtual CODE setActiveFirmware(const Json::Value& jArgs) = 0; virtual CODE getActiveFirmware(std::string& sFwId) = 0; diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h index df3b5b5..1dc45cd 100644 --- a/include/mts/MTS_IO_QuectelRadio.h +++ b/include/mts/MTS_IO_QuectelRadio.h @@ -41,6 +41,7 @@ namespace MTS { CODE convertdBmToSignalStrength(const int32_t& dBm, int32_t& iRssi) override; CODE setMdn(const Json::Value& jArgs) override; + CODE startOmaDm(ICellularRadio::UpdateCb& stepCb) override; protected: QuectelRadio(const std::string& sName, const std::string& sRadioPort); |