diff options
author | Jeff Hatch <Jeff.Hatch@multitech.com> | 2018-01-16 15:02:48 -0600 |
---|---|---|
committer | Jeff Hatch <Jeff.Hatch@multitech.com> | 2018-01-16 15:02:48 -0600 |
commit | fd1092ec392500abf9a2a99f45988ec30764d9fe (patch) | |
tree | 3a249eab6c96e2a9c90a2a4e82d22db647fb2025 | |
parent | 57b06af5b3e4e3c139cefbebb9fe76a8191c82ec (diff) | |
download | libmts-io-fd1092ec392500abf9a2a99f45988ec30764d9fe.tar.gz libmts-io-fd1092ec392500abf9a2a99f45988ec30764d9fe.tar.bz2 libmts-io-fd1092ec392500abf9a2a99f45988ec30764d9fe.zip |
Add support for LDC3 radio (MTCDT-LDC3-246A-JP)1.0.3
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | include/mts/MTS_IO_LE910JN1Radio.h | 53 | ||||
-rw-r--r-- | src/MTS_IO_CellularRadio.cpp | 8 | ||||
-rw-r--r-- | src/MTS_IO_LE910JN1Radio.cpp | 41 |
4 files changed, 104 insertions, 0 deletions
@@ -14,6 +14,7 @@ MTS_IO_GE910Radio.o \ MTS_IO_HE910Radio.o \ MTS_IO_HE910DRadio.o \ MTS_IO_HE910EUDRadio.o \ +MTS_IO_LE910JN1Radio.o \ MTS_IO_LE910Radio.o \ MTS_IO_LE910NAGRadio.o \ MTS_IO_LE910NA1Radio.o \ @@ -34,6 +35,7 @@ MTS_IO_GE910Radio.d \ MTS_IO_HE910Radio.d \ MTS_IO_HE910DRadio.d \ MTS_IO_HE910EUDRadio.d \ +MTS_IO_LE910JN1Radio.d \ MTS_IO_LE910Radio.d \ MTS_IO_LE910NAGRadio.d \ MTS_IO_LE910NA1Radio.d \ diff --git a/include/mts/MTS_IO_LE910JN1Radio.h b/include/mts/MTS_IO_LE910JN1Radio.h new file mode 100644 index 0000000..efa50aa --- /dev/null +++ b/include/mts/MTS_IO_LE910JN1Radio.h @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2015 by Multi-Tech Systems + * + * This file is part of libmts-io. + * + * libmts-io is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * libmts-io is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libmts-io. If not, see <http://www.gnu.org/licenses/>. + * + */ + +/*! + \file MTS_IO_LE910NAGRadio.h + \brief A brief description + \date Jan 19, 2015 + \author sgodinez + + A more elaborate description +*/ +#ifndef MTS_IO_LE910JN1RADIO_H_ +#define MTS_IO_LE910JN1RADIO_H_ + +#include <mts/MTS_IO_LE910Radio.h> + +namespace MTS { + namespace IO { + + class LE910JN1Radio : public LE910Radio { + + public: + static const std::string MODEL_NAME; + + LE910JN1Radio(const std::string& sPort); + virtual ~LE910JN1Radio(){}; + + protected: + + private: + + }; + } +} + +#endif /* MTS_IO_LE910JN1RADIO_H_ */ diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp index 2acc064..02ce253 100644 --- a/src/MTS_IO_CellularRadio.cpp +++ b/src/MTS_IO_CellularRadio.cpp @@ -287,6 +287,9 @@ CellularRadio::CODE CellularRadio::convertModelToMtsShortCode(const std::string& } else if (sModel.find("HE910-EUD") == 0) { sCode = "H6"; eCode = SUCCESS; + } else if (sModel.find("LE910-JN1") == 0) { + sCode = "LDC3"; + eCode = SUCCESS; } else if (sModel.find("LE910-NAG") == 0) { sCode = "LAT1"; eCode = SUCCESS; @@ -350,6 +353,9 @@ CellularRadio::CODE CellularRadio::convertModelToType(const std::string& sModel, } else if (sModel.find("HE910-EUD") == 0) { sType = VALUE_TYPE_GSM; eCode = SUCCESS; + } else if (sModel.find("LE910-JN1") == 0) { + sType = VALUE_TYPE_LTE; + eCode = SUCCESS; } else if (sModel.find("LE910-NAG") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; @@ -1516,6 +1522,8 @@ std::string CellularRadio::extractModelFromResult(const std::string& sResult) { sModel = "HE910-D"; } else if(sResult.find("HE910-EUD") != std::string::npos) { sModel = "HE910-EUD"; + } else if(sResult.find("LE910-JN1") != std::string::npos) { + sModel = "LE910-JN1"; } else if(sResult.find("LE910-NAG") != std::string::npos) { sModel = "LE910-NAG"; } else if(sResult.find("LE910-NA1") != std::string::npos) { diff --git a/src/MTS_IO_LE910JN1Radio.cpp b/src/MTS_IO_LE910JN1Radio.cpp new file mode 100644 index 0000000..ab6f1ad --- /dev/null +++ b/src/MTS_IO_LE910JN1Radio.cpp @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2015 by Multi-Tech Systems + * + * This file is part of libmts-io. + * + * libmts-io is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * libmts-io is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libmts-io. If not, see <http://www.gnu.org/licenses/>. + * + */ + +/*! + \file MTS_IO_LE910JN1Radio.cpp + \brief A brief description + \date Jan 19, 2015 + \author sgodinez + + A more elaborate description +*/ + +#include <mts/MTS_IO_LE910JN1Radio.h> + +using namespace MTS::IO; + +const std::string LE910JN1Radio::MODEL_NAME("LE910-JN1"); + +LE910JN1Radio::LE910JN1Radio(const std::string& sPort) +: LE910Radio(MODEL_NAME, sPort) +{ + +} + |