diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-07-03 22:59:02 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-07-03 23:31:39 +0300 |
commit | 0d5806073d2e9bbd7259c474b4079991e0c5ef13 (patch) | |
tree | f4d096ad05b970208bc42d4a4272b87066c62e66 /include | |
parent | 075c19d664719808164a5c4ea5e5a3525fcb4702 (diff) | |
download | libmts-io-0d5806073d2e9bbd7259c474b4079991e0c5ef13.tar.gz libmts-io-0d5806073d2e9bbd7259c474b4079991e0c5ef13.tar.bz2 libmts-io-0d5806073d2e9bbd7259c474b4079991e0c5ef13.zip |
Quectel Delta Radio Firmware Upgrade support - libmts-io implementation
Implemented firmware version check detection.
Diffstat (limited to 'include')
-rw-r--r-- | include/mts/MTS_IO_QuectelRadio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h index 3751b5a..d8228cb 100644 --- a/include/mts/MTS_IO_QuectelRadio.h +++ b/include/mts/MTS_IO_QuectelRadio.h @@ -64,11 +64,18 @@ namespace MTS { virtual CODE checkFile(bool& bFilePresent, const std::string& sTargetFilename); private: + // private variable to save old firmware versions during FOTA + std::string m_sQuectelFirmware; + static const size_t FILE_CHUNK_SIZE; static const std::string CMD_ABORT_UPLOAD; static const std::string VALUE_MTS_DELTA_NAME; static const std::string VALUE_MTS_DELTA_PATH; + // TODO: Consider asbtracting to the ICellularRadio::getFirmwareBuild + //!< Get Quectel-specific firmware version (firmware build?) + CODE getQuectelFirmware(std::string& sFirmware); + CODE startFileUpload(const std::string& sTargetFilename, size_t nBytes); CODE abortFileUpload(); |