summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2023-02-02 09:33:08 -0600
committerJeff Hatch <jhatch@multitech.com>2023-02-02 09:33:08 -0600
commit2d2125802eab522905d55c03aa96f1b0065efb29 (patch)
treef062126be0e129689889f48cf3d93abf330e19c5
parentb504ed673fa55ae1a429fd468079ee8c16c4a04a (diff)
parentf682d77822b585b6a814456dc22c254a3bf72a5e (diff)
downloadlibmts-io-2d2125802eab522905d55c03aa96f1b0065efb29.tar.gz
libmts-io-2d2125802eab522905d55c03aa96f1b0065efb29.tar.bz2
libmts-io-2d2125802eab522905d55c03aa96f1b0065efb29.zip
Merge branch 'ms/MTX-4769_l6g1_cellular_diagnostics' into 'master'
[MTX-4769] mPower R.6.3.X: L6G1 Support - Cellular Diagnostics See merge request !55
-rw-r--r--src/MTS_IO_LE910Radio.cpp6
-rw-r--r--src/MTS_IO_QuectelRadio.cpp3
-rw-r--r--src/MTS_IO_SequansRadio.cpp29
-rw-r--r--src/MTS_IO_TelitRadio.cpp3
4 files changed, 39 insertions, 2 deletions
diff --git a/src/MTS_IO_LE910Radio.cpp b/src/MTS_IO_LE910Radio.cpp
index 3b2864b..81adb0a 100644
--- a/src/MTS_IO_LE910Radio.cpp
+++ b/src/MTS_IO_LE910Radio.cpp
@@ -171,6 +171,9 @@ const std::vector<std::string>& LE910Radio::getDiagCommands(bool bIsSimReady) {
// Radio model and firmware:
"AT+CGMI", "AT+CGMM", "AT+CGMR", "AT#SWPKGV", "AT#CFVR",
+ // All carrier profiles that are supported:
+ "AT#FWSWITCH=?",
+
// Current operator profile on the radio side:
"AT#FWSWITCH?", "AT+CGSN",
@@ -198,6 +201,9 @@ const std::vector<std::string>& LE910Radio::getDiagCommands(bool bIsSimReady) {
// Radio model and firmware:
"AT+CGMI", "AT+CGMM", "AT+CGMR", "AT#SWPKGV", "AT#CFVR",
+ // All carrier profiles that are supported:
+ "AT#FWSWITCH=?",
+
// Current operator profile on the radio side:
"AT#FWSWITCH?", "AT+CGSN",
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp
index af7adde..0c0c8ab 100644
--- a/src/MTS_IO_QuectelRadio.cpp
+++ b/src/MTS_IO_QuectelRadio.cpp
@@ -1635,6 +1635,9 @@ const std::vector<std::string>& QuectelRadio::getDiagCommands(bool) {
// Radio model and firmware:
"AT+CGMI", "AT+CGMM", "AT+CGMR", "AT+QGMR",
+ // All carrier profiles that are supported:
+ "AT+QMBNCFG=\"LIST\"",
+
// Current operator profile on the radio side:
"AT+QMBNCFG=\"SELECT\"", "AT+CGSN",
diff --git a/src/MTS_IO_SequansRadio.cpp b/src/MTS_IO_SequansRadio.cpp
index f3b32fb..369f778 100644
--- a/src/MTS_IO_SequansRadio.cpp
+++ b/src/MTS_IO_SequansRadio.cpp
@@ -543,10 +543,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;
diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp
index 704f692..21af65d 100644
--- a/src/MTS_IO_TelitRadio.cpp
+++ b/src/MTS_IO_TelitRadio.cpp
@@ -1184,6 +1184,9 @@ const std::vector<std::string>& TelitRadio::getDiagCommands(bool) {
// Radio model and firmware:
"AT+CGMI", "AT+CGMM", "AT+CGMR", "AT#SWPKGV", "AT#CFVR",
+ // All carrier profiles that are supported:
+ "AT#FWSWITCH=?",
+
// Current operator profile on the radio side:
"AT#FWSWITCH?", "AT+CGSN",