summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--include/mts/MTS_IO_LE910JN1Radio.h53
-rw-r--r--src/MTS_IO_CellularRadio.cpp8
-rw-r--r--src/MTS_IO_LE910JN1Radio.cpp41
4 files changed, 104 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1d31030..1a0381a 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
+{
+
+}
+