From fd1092ec392500abf9a2a99f45988ec30764d9fe Mon Sep 17 00:00:00 2001 From: Jeff Hatch Date: Tue, 16 Jan 2018 15:02:48 -0600 Subject: Add support for LDC3 radio (MTCDT-LDC3-246A-JP) --- src/MTS_IO_CellularRadio.cpp | 8 ++++++++ src/MTS_IO_LE910JN1Radio.cpp | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/MTS_IO_LE910JN1Radio.cpp (limited to 'src') 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 . + * + */ + +/*! + \file MTS_IO_LE910JN1Radio.cpp + \brief A brief description + \date Jan 19, 2015 + \author sgodinez + + A more elaborate description +*/ + +#include + +using namespace MTS::IO; + +const std::string LE910JN1Radio::MODEL_NAME("LE910-JN1"); + +LE910JN1Radio::LE910JN1Radio(const std::string& sPort) +: LE910Radio(MODEL_NAME, sPort) +{ + +} + -- cgit v1.2.3