summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <Jeff.Hatch@multitech.com>2018-06-22 11:00:48 -0500
committerJeff Hatch <Jeff.Hatch@multitech.com>2018-06-22 11:00:48 -0500
commit5d78c924aab3cbb35f09c911534d2c2ce763457e (patch)
tree0032e7d82ae6235c6516c2621a13ddc8ad2a36fb
parentc8d7d6c4e60bb46766031342955b53afd9c3bc7e (diff)
downloadlibmts-io-5d78c924aab3cbb35f09c911534d2c2ce763457e.tar.gz
libmts-io-5d78c924aab3cbb35f09c911534d2c2ce763457e.tar.bz2
libmts-io-5d78c924aab3cbb35f09c911534d2c2ce763457e.zip
Add support for LE910-EU1 radio1.0.10
-rw-r--r--Makefile2
-rw-r--r--include/mts/MTS_IO_CellularRadioFactory.h1
-rw-r--r--include/mts/MTS_IO_LE910EU1Radio.h53
-rw-r--r--src/MTS_IO_CellularRadio.cpp8
-rw-r--r--src/MTS_IO_CellularRadioFactory.cpp6
-rw-r--r--src/MTS_IO_LE910EU1Radio.cpp41
6 files changed, 111 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1377b22..6acb366 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ MTS_IO_LE910NAGRadio.o \
MTS_IO_LE910NA1Radio.o \
MTS_IO_LE910SVGRadio.o \
MTS_IO_LE910EUGRadio.o \
+MTS_IO_LE910EU1Radio.o \
MTS_IO_ME910C1NARadio.o \
MTS_IO_ME910C1NVRadio.o \
MTS_IO_ME910Radio.o \
@@ -48,6 +49,7 @@ MTS_IO_LE910NAGRadio.d \
MTS_IO_LE910NA1Radio.d \
MTS_IO_LE910SVGRadio.d \
MTS_IO_LE910EUGRadio.d \
+MTS_IO_LE910EU1Radio.d \
MTS_IO_ME910C1NARadio.d \
MTS_IO_ME910C1NVRadio.d \
MTS_IO_ME910Radio.d \
diff --git a/include/mts/MTS_IO_CellularRadioFactory.h b/include/mts/MTS_IO_CellularRadioFactory.h
index 4eb53c6..f42cc91 100644
--- a/include/mts/MTS_IO_CellularRadioFactory.h
+++ b/include/mts/MTS_IO_CellularRadioFactory.h
@@ -55,6 +55,7 @@ namespace MTS {
virtual CellularRadio* createLE910NA1(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
virtual CellularRadio* createLE910SVG(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
virtual CellularRadio* createLE910EUG(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
+ virtual CellularRadio* createLE910EU1(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
virtual CellularRadio* createME910C1NA(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
virtual CellularRadio* createME910C1NV(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
virtual CellularRadio* createGE910(const std::string& sPort = CellularRadio::DEFAULT_RADIO_PORT);
diff --git a/include/mts/MTS_IO_LE910EU1Radio.h b/include/mts/MTS_IO_LE910EU1Radio.h
new file mode 100644
index 0000000..4fca9ec
--- /dev/null
+++ b/include/mts/MTS_IO_LE910EU1Radio.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_LE910EU1Radio.h
+ \brief A brief description
+ \date Jan 19, 2015
+ \author sgodinez
+
+ A more elaborate description
+*/
+#ifndef MTS_IO_LE910EU1RADIO_H_
+#define MTS_IO_LE910EU1RADIO_H_
+
+#include <mts/MTS_IO_LE910Radio.h>
+
+namespace MTS {
+ namespace IO {
+
+ class LE910EU1Radio : public LE910Radio {
+
+ public:
+ static const std::string MODEL_NAME;
+
+ LE910EU1Radio(const std::string& sPort);
+ virtual ~LE910EU1Radio(){};
+
+ protected:
+
+ private:
+
+ };
+ }
+}
+
+#endif /* MTS_IO_LE910EUGRADIO_H_ */
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp
index 569f8fc..1842c23 100644
--- a/src/MTS_IO_CellularRadio.cpp
+++ b/src/MTS_IO_CellularRadio.cpp
@@ -323,6 +323,9 @@ CellularRadio::CODE CellularRadio::convertModelToMtsShortCode(const std::string&
} else if (sModel.find("LE910-EUG") == 0) {
sCode = "LEU1";
eCode = SUCCESS;
+ } else if (sModel.find("LE910-EU1") == 0) {
+ sCode = "LEU1";
+ eCode = SUCCESS;
} else if (sModel.find("GE910") == 0) {
sCode = "G3";
eCode = SUCCESS;
@@ -392,6 +395,9 @@ CellularRadio::CODE CellularRadio::convertModelToType(const std::string& sModel,
} else if (sModel.find("LE910-EUG") == 0) {
sType = VALUE_TYPE_LTE;
eCode = SUCCESS;
+ } else if (sModel.find("LE910-EU1") == 0) {
+ sType = VALUE_TYPE_LTE;
+ eCode = SUCCESS;
} else if (sModel.find("ME910C1-NA") == 0) {
sType = VALUE_TYPE_LTE;
eCode = SUCCESS;
@@ -1585,6 +1591,8 @@ std::string CellularRadio::extractModelFromResult(const std::string& sResult) {
sModel = "LE910-SVG";
} else if(sResult.find("LE910-EUG") != std::string::npos) {
sModel = "LE910-EUG";
+ } else if(sResult.find("LE910-EU1") != std::string::npos) {
+ sModel = "LE910-EU1";
} else if(sResult.find("GE910") != std::string::npos) {
sModel = "GE910";
} else if(sResult.find("DE910-DUAL") != std::string::npos) {
diff --git a/src/MTS_IO_CellularRadioFactory.cpp b/src/MTS_IO_CellularRadioFactory.cpp
index 7a3f513..5a490cc 100644
--- a/src/MTS_IO_CellularRadioFactory.cpp
+++ b/src/MTS_IO_CellularRadioFactory.cpp
@@ -34,6 +34,7 @@
#include <mts/MTS_IO_LE910NA1Radio.h>
#include <mts/MTS_IO_LE910SVGRadio.h>
#include <mts/MTS_IO_LE910EUGRadio.h>
+#include <mts/MTS_IO_LE910EU1Radio.h>
#include <mts/MTS_IO_ME910C1NARadio.h>
#include <mts/MTS_IO_ME910C1NVRadio.h>
#include <mts/MTS_IO_LE866A1JSRadio.h>
@@ -51,6 +52,7 @@ CellularRadioFactory::CellularRadioFactory() {
m_mCreationMap[LE910NA1Radio::MODEL_NAME] = &CellularRadioFactory::createLE910NA1;
m_mCreationMap[LE910SVGRadio::MODEL_NAME] = &CellularRadioFactory::createLE910SVG;
m_mCreationMap[LE910EUGRadio::MODEL_NAME] = &CellularRadioFactory::createLE910EUG;
+ m_mCreationMap[LE910EU1Radio::MODEL_NAME] = &CellularRadioFactory::createLE910EU1;
m_mCreationMap[ME910C1NARadio::MODEL_NAME] = &CellularRadioFactory::createME910C1NA;
m_mCreationMap[ME910C1NVRadio::MODEL_NAME] = &CellularRadioFactory::createME910C1NV;
m_mCreationMap[GE910Radio::MODEL_NAME] = &CellularRadioFactory::createGE910;
@@ -144,6 +146,10 @@ CellularRadio* CellularRadioFactory::createLE910EUG(const std::string& sPort) {
return new LE910EUGRadio(sPort);
}
+CellularRadio* CellularRadioFactory::createLE910EU1(const std::string& sPort) {
+ return new LE910EU1Radio(sPort);
+}
+
CellularRadio* CellularRadioFactory::createME910C1NA(const std::string& sPort) {
return new ME910C1NARadio(sPort);
}
diff --git a/src/MTS_IO_LE910EU1Radio.cpp b/src/MTS_IO_LE910EU1Radio.cpp
new file mode 100644
index 0000000..2e3593b
--- /dev/null
+++ b/src/MTS_IO_LE910EU1Radio.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_LE910EU1Radio.cpp
+ \brief A brief description
+ \date Jan 19, 2015
+ \author sgodinez
+
+ A more elaborate description
+*/
+
+
+#include <mts/MTS_IO_LE910EU1Radio.h>
+
+using namespace MTS::IO;
+
+const std::string LE910EU1Radio::MODEL_NAME("LE910-EU1");
+
+LE910EU1Radio::LE910EU1Radio(const std::string& sPort)
+: LE910Radio(MODEL_NAME, sPort)
+{
+
+}