From beb3f36c5dcc70beed900859d6426dc74e4bccc8 Mon Sep 17 00:00:00 2001 From: Serhii Kostiuk Date: Wed, 22 Jul 2020 09:55:55 +0300 Subject: Telit Delta Radio Firmware Upgrade support - libmts-io implementation During testing it was discovered that the radio is detached for 4 minutes 40 seconds while the upgrade is in progress. This was too close to the time limit of 5 minutes set before. This commit increases attach timeout to 6 minutes to be on the safe side. --- src/MTS_IO_TelitRadio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp index 8c7e174..457dfdc 100644 --- a/src/MTS_IO_TelitRadio.cpp +++ b/src/MTS_IO_TelitRadio.cpp @@ -1013,7 +1013,7 @@ ICellularRadio::CODE TelitRadio::abortFotaWriteABD() { } ICellularRadio::CODE TelitRadio::fumoWaitUpgradeFinished(ICellularRadio::UpdateCb& stepCb) { - const uint32_t duAttachTimeout = 300000; // wait for 300 seconds for the radio to attach + const uint32_t duAttachTimeout = 6 * 60 * 1000;// wait for 6 minutes for the radio to attach const uint32_t duUrcTimeout = 60 * 1000; // wait for 1 minutes for the next URC message const std::string sFotaUrcPrefix = "#OTAEV:"; // prefix for the URC notification messages const std::string sFotaUrcEndSuccess = "Module Upgraded To New Fw"; -- cgit v1.2.3