summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Hatch <Jeff.Hatch@multitech.com>2018-01-16 15:02:48 -0600
committerJeff Hatch <Jeff.Hatch@multitech.com>2018-01-16 15:02:48 -0600
commitfd1092ec392500abf9a2a99f45988ec30764d9fe (patch)
tree3a249eab6c96e2a9c90a2a4e82d22db647fb2025 /src
parent57b06af5b3e4e3c139cefbebb9fe76a8191c82ec (diff)
downloadlibmts-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
Diffstat (limited to 'src')
-rw-r--r--src/MTS_IO_CellularRadio.cpp8
-rw-r--r--src/MTS_IO_LE910JN1Radio.cpp41
2 files changed, 49 insertions, 0 deletions
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)
+{
+
+}
+