From c7f63212d7e6596975835f23150ef20aea3b7b96 Mon Sep 17 00:00:00 2001 From: Serhii Kostiuk Date: Wed, 5 Aug 2020 14:10:25 +0300 Subject: Quectel EG25-G Delta Radio Firmware Upgrade support - libmts-io implementation Increase the timeout for +QFUPL response to 10 seconds. 5 seconds is the default timeout for the radio to wait for new data on its serial interface. +QFUPL response timeout was increased to 10 seconds to debug cases when hardware flow control fails for some reason and the radio does not receive all the data sent to it from the device. --- src/MTS_IO_QuectelRadio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp index 96a4980..942c0f7 100644 --- a/src/MTS_IO_QuectelRadio.cpp +++ b/src/MTS_IO_QuectelRadio.cpp @@ -938,7 +938,7 @@ ICellularRadio::CODE QuectelRadio::uploadFile(int fd, const std::string& sTarget sExpectedResult += MTS::Text::toLowerCase(MTS::Text::formatHex(dChecksum)); // "send" empty string to read acknoledge string - std::string sResult = sendCommand("", DEFAULT_BAIL_STRINGS, 3000, 0x00); + std::string sResult = sendCommand("", DEFAULT_BAIL_STRINGS, 10000, 0x00); if (sResult.find(sExpectedResult) != std::string::npos) { printDebug("Radio returned: [%s]", sResult.c_str()); -- cgit v1.2.3