summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykola Salomatin <mykola.salomatin@globallogic.com>2023-02-01 20:16:27 +0200
committerJohn Klug <john.klug@multitech.com>2023-03-13 10:59:11 -0500
commita3f74b2a1af633d0811d9b3027e3bf16b5950410 (patch)
treedb5428ea1c2cc66fb02d8d01051015768fd537e4
parent089e6ac4e67504958129a1f33cf85af9bfd6a8d5 (diff)
downloadlibmts-io-a3f74b2a1af633d0811d9b3027e3bf16b5950410.tar.gz
libmts-io-a3f74b2a1af633d0811d9b3027e3bf16b5950410.tar.bz2
libmts-io-a3f74b2a1af633d0811d9b3027e3bf16b5950410.zip
[MTX-4769] mPower R.6.3.X: L6G1 Support - Cellular Diagnostics
Add cellular diagnostics support for Sequans radio modem.
-rw-r--r--src/MTS_IO_SequansRadio.cpp29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/MTS_IO_SequansRadio.cpp b/src/MTS_IO_SequansRadio.cpp
index 0e909b8..a48a309 100644
--- a/src/MTS_IO_SequansRadio.cpp
+++ b/src/MTS_IO_SequansRadio.cpp
@@ -535,10 +535,35 @@ ICellularRadio::CODE SequansRadio::getSimLockAttemptsByType(const std::string& s
}
const std::vector<std::string>& SequansRadio::getDiagCommands(bool) {
- // TODO: Fill the list of commands in scope of the "L6G1 - Cellular Diagnostics" feature
-
// Declare as static to initialize only when used, but cache the results.
const static std::vector<std::string> vCommands {
+ // Radio model and firmware:
+ "AT+CGMI", "AT+CGMM", "AT+CGMR", "ATI1", "at!=showVersion",
+
+ // All carrier profiles that are supported:
+ "AT+SQNCTM=?",
+
+ // Current operator profile on the radio side:
+ "AT+SQNCTM?", "AT+CGSN",
+
+ // SIM card information:
+ "AT+CRSM=176,12258,0,0,0", "AT+CPIN?", "AT+CPINR=\"SIM PIN\"", "AT+CPINR=\"SIM PUK\"",
+
+ // Operating mode of the radio:
+ "AT+CFUN?", "AT^AUTOATT?", "AT+SQNAUTOCONNECT?",
+
+ // Low-level network settings:
+ "AT+WS46?", "AT+CEMODE?",
+
+ // Data connection configuration:
+ "AT+CGDCONT?", "AT+CGAUTH?",
+
+ // Registration and connection to the tower:
+ "AT+CSQ", "AT+COPS?", "AT+CEREG?", "AT+SQNMONI=0",
+ "AT+SQNQRCCI?", "AT+CESQ", "AT+SQNQRUP?",
+
+ // Data connection status:
+ "AT+CGACT?", "AT+CGCONTRDP=1", "AT+CGCONTRDP=2", "AT+CGCONTRDP=3"
};
return vCommands;