From 7147b4bf007963aecccc8dd1a304b330fc9ca190 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 11 Sep 2024 17:00:44 +0200 Subject: [PATCH] Add technical modem details to cellular page --- CellularPage.qml | 162 +++++++++++++++++++++++++++++++++++++++++++++++ i18n/qml_de.ts | 54 ++++++++++++++++ 2 files changed, 216 insertions(+) diff --git a/CellularPage.qml b/CellularPage.qml index da60b7a..b5a0082 100644 --- a/CellularPage.qml +++ b/CellularPage.qml @@ -53,4 +53,166 @@ NavigationPage { property alias value: textField3.text } } + + WhiteItemDelegate { + id: delegate + Layout.fillWidth: true + + text: qsTr("Show technical details of LTE modem") + + onClicked: { + gridLayout.visible = true + delegate.text = null + delegate.implicitWidth = Qt.binding(() => gridLayout.implicitWidth + gridLayout.anchors.leftMargin + gridLayout.anchors.rightMargin) + delegate.implicitHeight = Qt.binding(() => gridLayout.implicitHeight + gridLayout.anchors.topMargin + gridLayout.anchors.bottomMargin) + } + + GridLayout { + id: gridLayout + + columns: 2 + anchors.fill: parent + anchors.leftMargin: 5 + anchors.topMargin: 5 + anchors.rightMargin: 5 + anchors.bottomMargin: 5 + visible: false + + ApiKeyValueHelper { + id: misApiKey + deviceConnection: theDeviceConnection + apiKey: "mis" + } + + Label { + text: qsTr("Initialization status:") + font.bold: true + } + + Text { + text: JSON.stringify(misApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: imeiApiKey + deviceConnection: theDeviceConnection + apiKey: "imei" + } + + Label { + text: qsTr("IMEI:") + font.bold: true + } + + Text { + text: JSON.stringify(imeiApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: imsiApiKey + deviceConnection: theDeviceConnection + apiKey: "imsi" + } + + Label { + text: qsTr("IMSI:") + font.bold: true + } + + Text { + text: JSON.stringify(imsiApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: mpsApiKey + deviceConnection: theDeviceConnection + apiKey: "mps" + } + + Label { + text: qsTr("Pin status:") + font.bold: true + } + + Text { + text: JSON.stringify(mpsApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: monApiKey + deviceConnection: theDeviceConnection + apiKey: "mon" + } + + Label { + text: qsTr("Operator name:") + font.bold: true + } + + Text { + text: JSON.stringify(monApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: msqApiKey + deviceConnection: theDeviceConnection + apiKey: "msq" + } + + Label { + text: qsTr("Signal quality:") + font.bold: true + } + + Text { + text: JSON.stringify(msqApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: ccmApiKey + deviceConnection: theDeviceConnection + apiKey: "ccm" + } + + Label { + text: qsTr("Current system mode:") + font.bold: true + } + + Text { + text: JSON.stringify(ccmApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + + ApiKeyValueHelper { + id: miaApiKey + deviceConnection: theDeviceConnection + apiKey: "mia" + } + + Label { + text: qsTr("IP Address:") + font.bold: true + } + + Text { + text: JSON.stringify(miaApiKey.value, null, 2) + wrapMode: Text.Wrap + Layout.fillWidth: true + } + } + } } diff --git a/i18n/qml_de.ts b/i18n/qml_de.ts index 2046fb1..d1cd6d8 100644 --- a/i18n/qml_de.ts +++ b/i18n/qml_de.ts @@ -305,6 +305,60 @@ Password Passwort + + + + Show technical details of LTE modem + Technische Informationen des LTE Modems anzeigen + + + + + Initialization status: + Initialisierungsstatus: + + + + + IMEI: + IMEI: + + + + + IMSI: + IMSI: + + + + + Pin status: + Pin Status: + + + + + Operator name: + Netzbetreibername: + + + + + Signal quality: + Signalstärke: + + + + + Current system mode: + Aktuelle Verbindungsart: + + + + + IP Address: + IP Adresse: + ChargerTabPage