/*
* 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_CellularRadio.cpp
\brief A brief description
\date Nov 5, 2014
\author sgodinez
A more elaborate description
*/
/*!
\file MTS_CELL_CellularRadio.cpp
\brief A brief description
\date Nov 4, 2014
\author sgodinez
A more elaborate description
*/
#include <mts/MTS_IO_CellularRadio.h>
#include <mts/MTS_IO_MccMncTable.h>
#include <mts/MTS_Thread.h>
#include <mts/MTS_Timer.h>
#include <mts/MTS_Logger.h>
#include <mts/MTS_Text.h>
#include <map>
#include <cstring>
#include <sstream>
#include <sys/file.h>
#include <errno.h>
#include <unistd.h>
using namespace MTS::IO;
const char CellularRadio::ETX = 0x03; //Ends socket connection
const char CellularRadio::DLE = 0x10; //Escapes ETX and DLE within Payload
const char CellularRadio::CR = 0x0D;
const char CellularRadio::NL = 0x0A;
const char CellularRadio::CTRL_Z = 0x1A;
const std::string CellularRadio::RSP_ERROR("ERROR");
const std::string CellularRadio::RSP_OK("OK");
const std::string CellularRadio::DEFAULT_RADIO_PORT("/dev/modem_at1");
const std:
|