diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-08-05 14:10:25 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-08-05 14:10:25 +0300 |
commit | c7f63212d7e6596975835f23150ef20aea3b7b96 (patch) | |
tree | 7ba4fa7b43d00d31922eae5729fb728eaf2087ea /src | |
parent | 51a4db87617b4dc7d9276e31298d0a9d44ecb69e (diff) | |
download | libmts-io-c7f63212d7e6596975835f23150ef20aea3b7b96.tar.gz libmts-io-c7f63212d7e6596975835f23150ef20aea3b7b96.tar.bz2 libmts-io-c7f63212d7e6596975835f23150ef20aea3b7b96.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/MTS_IO_QuectelRadio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |