diff options
author | Jeff Hatch <jhatch@multitech.com> | 2022-12-28 10:36:52 -0600 |
---|---|---|
committer | Jeff Hatch <jhatch@multitech.com> | 2022-12-28 10:36:52 -0600 |
commit | 6d75c847ab716dd377bdf1e0a4bff1fbce235121 (patch) | |
tree | f3ba4159fc60dc385b1019dca521dad1b9763fdd /include/mts/MTS_IO_ICellularRadio.h | |
parent | 3f374f40900e9f6618509de9a52a1a415e54de8f (diff) | |
parent | 4b448e3c5daf34062861d0261c5a2253638b8100 (diff) | |
download | libmts-io-6d75c847ab716dd377bdf1e0a4bff1fbce235121.tar.gz libmts-io-6d75c847ab716dd377bdf1e0a4bff1fbce235121.tar.bz2 libmts-io-6d75c847ab716dd377bdf1e0a4bff1fbce235121.zip |
Merge branch 'sk/GP-1195/cell-diag' into 'master'
[GP-1195] Cellular debugging - add a query
See merge request !51
Diffstat (limited to 'include/mts/MTS_IO_ICellularRadio.h')
-rw-r--r-- | include/mts/MTS_IO_ICellularRadio.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h index 91ab782..0523236 100644 --- a/include/mts/MTS_IO_ICellularRadio.h +++ b/include/mts/MTS_IO_ICellularRadio.h @@ -697,6 +697,27 @@ namespace MTS { */ virtual CODE setPdpContext(const std::string& sId, const Json::Value& jConfig) = 0; + /** + * @brief Execute the diagnostics AT commands and capture their output + * + * NOTE: The list of diagnostic AT commands is radio-specific and changes + * depending on the radio model (code). + * + * NOTE: The method stops its execution if the radio repeatedly ignores + * the commands (returns no execution result for several of them). This + * is required to limit the maximum execution time of the function and + * prevent the process from occupying the radio for too long. In case + * of timeout, the report will contain the output of all commands that + * it managed to execute before the failure. + * + * @param sDiagReport - the AT commands execution report. + * + * @return CODE::SUCCESS when fetched successfully, + * CODE::NO_RESPONSE when the radio ignored several of the AT commands, + * CODE::FAILURE otherwise. + */ + virtual CODE getDiagnostics(std::string& sDiagReport) = 0; + }; } } |