diff options
| author | mykola.salomatin <mykola.salomatin@globallogic.com> | 2021-04-15 17:52:10 +0300 | 
|---|---|---|
| committer | mykola.salomatin <mykola.salomatin@globallogic.com> | 2021-04-15 17:52:10 +0300 | 
| commit | 67a991ff3d772d2f81cb9907e1a710a88436f7c7 (patch) | |
| tree | a1b756a6d296e6584e813df88a377c5d1c9f42ec /include/mts | |
| parent | b7f7d95092b87d0b278b1a74af53bfbc837b7acd (diff) | |
| download | libmts-io-67a991ff3d772d2f81cb9907e1a710a88436f7c7.tar.gz libmts-io-67a991ff3d772d2f81cb9907e1a710a88436f7c7.tar.bz2 libmts-io-67a991ff3d772d2f81cb9907e1a710a88436f7c7.zip | |
[MTX-3998] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2 - Quectel - GP-1111
Added CEMODE switching support for Quectel radios
Diffstat (limited to 'include/mts')
| -rw-r--r-- | include/mts/MTS_IO_ICellularRadio.h | 10 | ||||
| -rw-r--r-- | include/mts/MTS_IO_QuectelRadio.h | 12 | 
2 files changed, 18 insertions, 4 deletions
| diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h index e8ae891..c35e903 100644 --- a/include/mts/MTS_IO_ICellularRadio.h +++ b/include/mts/MTS_IO_ICellularRadio.h @@ -70,10 +70,12 @@ namespace MTS {                  enum UE_MODES_OF_OPERATION : uint8_t {                      UNKNOWN_MODE = 0, // current mode of operation is not available -                    PS_MODE1, // only EPS (LTE) services are allowed, the usage is “voice centric” -                    PS_MODE2, // only EPS (LTE) services are allowed, the usage is “data centric” -                    CS_PS_MODE1, // both EPS and non-EPS services are allowed, the usage is “voice centric” -                    CS_PS_MODE2 // both EPS and non-EPS services are allowed, the usage is “data centric” +                    PS_MODE1, // only EPS (LTE) services are allowed, the usage is "voice centric" +                    PS_MODE2, // only EPS (LTE) services are allowed, the usage is "data centric" +                    CS_PS_MODE1, // both EPS and non-EPS services are allowed, the usage is "voice centric" +                    CS_PS_MODE2, // both EPS and non-EPS services are allowed, the usage is "data centric" +                    CS_MODE1, // only non-EPS services are allowed, the usage is "voice centric" +                    CS_MODE2 // only non-EPS services are allowed, the usage is "data centric"                  };                  static CODE convertModelToType(const std::string& sModel, std::string& sType); diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h index 9713f48..04c0ef9 100644 --- a/include/mts/MTS_IO_QuectelRadio.h +++ b/include/mts/MTS_IO_QuectelRadio.h @@ -51,7 +51,16 @@ namespace MTS {                  CODE fumoLocalCleanup() override;                  CODE fumoLocalApply(UpdateCb& stepCb) override; +                CODE setUeModeOfOperation(UE_MODES_OF_OPERATION mode) override; +                CODE getUeModeOfOperation(UE_MODES_OF_OPERATION& mode) override; +              protected: +                enum class UE_USAGE_SETTING : uint8_t { +                    UNKNOWN_MODE = 0, // Unknown mode +                    MODE_1, // Voice centric mode +                    MODE_2 // Data centric mode +                }; +                  QuectelRadio(const std::string& sName, const std::string& sRadioPort);                  CODE getIsSimInserted(bool& bData) override; @@ -64,6 +73,9 @@ namespace MTS {                  virtual CODE removeFile(const std::string& sTargetFilename);                  virtual CODE checkFile(bool& bFilePresent, const std::string& sTargetFilename); +                virtual CODE getUeUsageSetting(UE_USAGE_SETTING& us); +                virtual CODE convertToUeUsageSetting(const std::string& sSetting, UE_USAGE_SETTING& us); +              private:                  // private variable to save old firmware versions during FOTA                  std::string m_sQuectelFirmware; | 
