summaryrefslogtreecommitdiff
path: root/src/MTS_IO_SequansRadio.cpp
diff options
context:
space:
mode:
authorsdesai <sdesai@multitech.com>2023-03-27 11:53:13 -0500
committerJohn Klug <john.klug@multitech.com>2023-04-26 17:56:00 -0500
commit40e5653006558c569bc90c247790d95b68b2f646 (patch)
tree29731b473ce80217a75abb7f5d0fc2cded68422f /src/MTS_IO_SequansRadio.cpp
parent576eb04e2d42e3b9c5fa40748d1d190a457fa1f8 (diff)
downloadlibmts-io-40e5653006558c569bc90c247790d95b68b2f646.tar.gz
libmts-io-40e5653006558c569bc90c247790d95b68b2f646.tar.bz2
libmts-io-40e5653006558c569bc90c247790d95b68b2f646.zip
Support Portal Case #5086148: use Cellular Radio time as alternative to GPS or NTP
Diffstat (limited to 'src/MTS_IO_SequansRadio.cpp')
-rw-r--r--src/MTS_IO_SequansRadio.cpp28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/MTS_IO_SequansRadio.cpp b/src/MTS_IO_SequansRadio.cpp
index 33bd068..5f85b58 100644
--- a/src/MTS_IO_SequansRadio.cpp
+++ b/src/MTS_IO_SequansRadio.cpp
@@ -569,27 +569,7 @@ const std::vector<std::string>& SequansRadio::getDiagCommands(bool) {
return vCommands;
}
-ICellularRadio::CODE SequansRadio::getTimeUTC(void) {
- printTrace("%s| Get Time in UTC", getName().c_str());
-
- // Set year format in YYYY first, in case it is in YY format to get accurate year
- std::string sCmdCSDF("AT+CSDF=1,2");
- std::string sRes = sendCommand(sCmdCSDF);
- size_t endr = sRes.find(ICellularRadio::RSP_OK);
-
- if (endr == std::string::npos) {
- printWarning("%s| Unable to set year format for radio using command [%s]", getName().c_str(), sCmdCSDF.c_str());
- return FAILURE;
- }
-
- // Set year format in YYYY first, in case it is in YY format to get accurate year
- std::string sCmdCTZU("AT+CTZU=1");
- sRes = sendCommand(sCmdCTZU);
- size_t endc = sRes.find(ICellularRadio::RSP_OK);
-
- if (endc == std::string::npos) {
- printWarning("%s| Unable to set automatic time zone update for radio using command [%s]", getName().c_str(), sCmdCTZU.c_str());
- return FAILURE;
- }
- return SUCCESS;
-} \ No newline at end of file
+ICellularRadio::CODE SequansRadio::setTimeFormat() {
+ // AT+CSDF does not work on CB610L. Also, since CB610L does not return the correct time anyway.
+ return NOT_APPLICABLE;
+}