From cb427be9a092b0968aee1a42a2bc805735c9c8f2 Mon Sep 17 00:00:00 2001 From: Jeff Hatch Date: Fri, 2 Jun 2017 16:22:48 -0500 Subject: Add AT#FWSWITCH command for LNA radio support in radio-query and radio-cmd --- include/mts/MTS_IO_CellularRadio.h | 7 +++++++ include/mts/MTS_IO_LE910NA1Radio.h | 4 ++++ include/mts/MTS_IO_LE910Radio.h | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h index 1d7491f..9d93162 100644 --- a/include/mts/MTS_IO_CellularRadio.h +++ b/include/mts/MTS_IO_CellularRadio.h @@ -424,6 +424,13 @@ namespace MTS { * } */ virtual CODE setRxDiversity(const Json::Value& jArgs)=0; + /* + * jArgs = { + * "fwid" : "Firmware Image To Be Enabled: STRING" + * } + */ + virtual CODE setActiveFirmware(const Json::Value& jArgs); + virtual CODE getActiveFirmware(std::string& sFwId); virtual CODE getEcho(bool& bEnabled); virtual CODE setEcho(bool bEnabled = true); diff --git a/include/mts/MTS_IO_LE910NA1Radio.h b/include/mts/MTS_IO_LE910NA1Radio.h index d9e9694..307bfe5 100644 --- a/include/mts/MTS_IO_LE910NA1Radio.h +++ b/include/mts/MTS_IO_LE910NA1Radio.h @@ -40,6 +40,10 @@ namespace MTS { LE910NA1Radio(const std::string& sPort); virtual ~LE910NA1Radio(){}; + virtual CODE setActiveFirmware(const Json::Value& jArgs); + + virtual CODE getActiveFirmware(std::string& sFwId); + protected: private: diff --git a/include/mts/MTS_IO_LE910Radio.h b/include/mts/MTS_IO_LE910Radio.h index f46094e..6b77607 100644 --- a/include/mts/MTS_IO_LE910Radio.h +++ b/include/mts/MTS_IO_LE910Radio.h @@ -41,7 +41,8 @@ namespace MTS { LE910Radio(const std::string& sLE910Model, const std::string& sPort); virtual ~LE910Radio(){}; - CODE setRxDiversity(const Json::Value& jArgs); + + CODE setRxDiversity(const Json::Value& jArgs); protected: -- cgit v1.2.3