From 47997c0e5aa7d32ddbba22ceead2ff553881c47c Mon Sep 17 00:00:00 2001 From: Mykola Salomatin Date: Wed, 4 May 2022 12:40:15 +0300 Subject: [MTX-4445] mPower R.6.0.X: MTCAP3: LNA7D - cellular radio support GP-1548 setRxDiversity command moved to common class for Quectel radios - QuectelRadio.cpp. Add LNA7D radio support. LNA7D radio supports only 3g and 4g network modes. Add new command for enabling/disabling diversity. Retained backward compatibility with the old diversity command. --- include/mts/MTS_IO_EG25Radio.h | 1 - include/mts/MTS_IO_EG95Radio.h | 1 - include/mts/MTS_IO_QuectelRadio.h | 4 ++++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mts/MTS_IO_EG25Radio.h b/include/mts/MTS_IO_EG25Radio.h index 46bff20..e05fa7d 100644 --- a/include/mts/MTS_IO_EG25Radio.h +++ b/include/mts/MTS_IO_EG25Radio.h @@ -34,7 +34,6 @@ namespace MTS { EG25Radio(const std::string& sPort); virtual ~EG25Radio(); - CODE setRxDiversity(const Json::Value& jArgs) override; protected: diff --git a/include/mts/MTS_IO_EG95Radio.h b/include/mts/MTS_IO_EG95Radio.h index 17c413e..6fb47c8 100644 --- a/include/mts/MTS_IO_EG95Radio.h +++ b/include/mts/MTS_IO_EG95Radio.h @@ -34,7 +34,6 @@ namespace MTS { EG95Radio(const std::string& sPort); virtual ~EG95Radio(); - CODE setRxDiversity(const Json::Value& jArgs) override; protected: diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h index c54e560..bd312b8 100644 --- a/include/mts/MTS_IO_QuectelRadio.h +++ b/include/mts/MTS_IO_QuectelRadio.h @@ -83,6 +83,8 @@ namespace MTS { static bool isContainsSignChar(const std::string& str); + CODE setRxDiversity(const Json::Value& jArgs) override; + private: // private variable to save old firmware versions during FOTA std::string m_sQuectelFirmware; @@ -117,6 +119,8 @@ namespace MTS { return vector[index]; } } + + CODE isDivctlSupported(bool& bSupported); }; } } -- cgit v1.2.3