diff options
author | Maksym Telychko <maksym.telychko@globallogic.com> | 2019-06-11 16:53:40 +0300 |
---|---|---|
committer | Maksym Telychko <maksym.telychko@globallogic.com> | 2019-06-11 16:53:40 +0300 |
commit | 1dae6b4045d1683c4410d5a2b0c315574ece7d01 (patch) | |
tree | 80668c3b5db88b0428512ac200bf68181f301108 /src/MTS_IO_CellularRadioFactory.cpp | |
parent | 2fe0784ab57aa5571e5cd70c1776eecda635b3c0 (diff) | |
download | libmts-io-1dae6b4045d1683c4410d5a2b0c315574ece7d01.tar.gz libmts-io-1dae6b4045d1683c4410d5a2b0c315574ece7d01.tar.bz2 libmts-io-1dae6b4045d1683c4410d5a2b0c315574ece7d01.zip |
[MTS-MTQ] cellular factory: radio identification by AT+GMM
Diffstat (limited to 'src/MTS_IO_CellularRadioFactory.cpp')
-rw-r--r-- | src/MTS_IO_CellularRadioFactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MTS_IO_CellularRadioFactory.cpp b/src/MTS_IO_CellularRadioFactory.cpp index 8b2353a..47367eb 100644 --- a/src/MTS_IO_CellularRadioFactory.cpp +++ b/src/MTS_IO_CellularRadioFactory.cpp @@ -101,7 +101,7 @@ std::string CellularRadioFactory::identifyRadio(const std::string& sPort) { //Get model int count = 0; - std::string sCmd("ATI4"); + std::string sCmd("AT+GMM"); std::string sResult; do { sResult = ICellularRadio::sendCommand(apIo, sCmd, ICellularRadio::DEFAULT_BAIL_STRINGS, 1000, ICellularRadio::CR); @@ -120,7 +120,7 @@ std::string CellularRadioFactory::identifyRadio(const std::string& sPort) { } std::string sModel = ICellularRadio::extractModelFromResult(sResult); - printDebug("RADIO| Extracted [%s] from ATI4 query", sModel.c_str()); + printDebug("RADIO| Extracted [%s] from AT+GMM query", sModel.c_str()); apIo->close(); return sModel; } |