aboutsummaryrefslogtreecommitdiffstats
path: root/Software/PMR/Messages
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-08-21 16:49:02 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-08-21 16:49:02 +0300
commit3d8c362cd5409246c7026ea956ce10d51ed9ebc3 (patch)
treed5ab6ab53d4b461df12c8b9d1edeb654e0cb48de /Software/PMR/Messages
parentcc556a1c4a0813a548bf95d693c4e2748f895e13 (diff)
downloadTango-3d8c362cd5409246c7026ea956ce10d51ed9ebc3.tar.gz
Tango-3d8c362cd5409246c7026ea956ce10d51ed9ebc3.zip
Telemetry Wires.
Implemented Firmware User Notifications. Added Missing UI Settings Units Display. Add Machine Name to General Information Dialog.
Diffstat (limited to 'Software/PMR/Messages')
-rw-r--r--Software/PMR/Messages/Common/MessageType.proto2
-rw-r--r--Software/PMR/Messages/Diagnostics/StartTelemetryWireResponse.proto5
-rw-r--r--Software/PMR/Messages/Diagnostics/TelemetryWire.proto10
-rw-r--r--Software/PMR/Messages/MachineStatus/NotificationType.proto13
-rw-r--r--Software/PMR/Messages/MachineStatus/StartNotificationRequest.proto9
-rw-r--r--Software/PMR/Messages/MachineStatus/StartNotificationResponse.proto14
6 files changed, 51 insertions, 2 deletions
diff --git a/Software/PMR/Messages/Common/MessageType.proto b/Software/PMR/Messages/Common/MessageType.proto
index 620ebb0ca..2d26f71a1 100644
--- a/Software/PMR/Messages/Common/MessageType.proto
+++ b/Software/PMR/Messages/Common/MessageType.proto
@@ -303,6 +303,8 @@ enum MessageType
SetBuzzerSettingsResponse = 9011;
SetWhiteThreadSkipRequest = 9012;
SetWhiteThreadSkipResponse = 9013;
+ StartNotificationRequest = 9014;
+ StartNotificationResponse = 9015;
//Power
StartPowerDownRequest = 10000;
diff --git a/Software/PMR/Messages/Diagnostics/StartTelemetryWireResponse.proto b/Software/PMR/Messages/Diagnostics/StartTelemetryWireResponse.proto
index 05f1d44ee..710cdb3a9 100644
--- a/Software/PMR/Messages/Diagnostics/StartTelemetryWireResponse.proto
+++ b/Software/PMR/Messages/Diagnostics/StartTelemetryWireResponse.proto
@@ -1,10 +1,11 @@
syntax = "proto3";
+import "TelemetryWire.proto";
+
package Tango.PMR.Diagnostics;
option java_package = "com.twine.tango.pmr.diagnostics";
message StartTelemetryWireResponse
{
- string Name = 1;
- float Value = 2;
+ repeated TelemetryWire Wires = 1;
} \ No newline at end of file
diff --git a/Software/PMR/Messages/Diagnostics/TelemetryWire.proto b/Software/PMR/Messages/Diagnostics/TelemetryWire.proto
new file mode 100644
index 000000000..8ccdebe31
--- /dev/null
+++ b/Software/PMR/Messages/Diagnostics/TelemetryWire.proto
@@ -0,0 +1,10 @@
+syntax = "proto3";
+
+package Tango.PMR.Diagnostics;
+option java_package = "com.twine.tango.pmr.diagnostics";
+
+message TelemetryWire
+{
+ string Name = 1;
+ float Value = 2;
+} \ No newline at end of file
diff --git a/Software/PMR/Messages/MachineStatus/NotificationType.proto b/Software/PMR/Messages/MachineStatus/NotificationType.proto
new file mode 100644
index 000000000..ad4f5a781
--- /dev/null
+++ b/Software/PMR/Messages/MachineStatus/NotificationType.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+
+package Tango.PMR.MachineStatus;
+option java_package = "com.twine.tango.pmr.machinestatus";
+
+enum NotificationType
+{
+ NotifyInfo = 0;
+ NotifyWarning = 1;
+ NotifyError = 2;
+ NotifyCritical = 3;
+ NotifySuccess = 4;
+}
diff --git a/Software/PMR/Messages/MachineStatus/StartNotificationRequest.proto b/Software/PMR/Messages/MachineStatus/StartNotificationRequest.proto
new file mode 100644
index 000000000..cc55923cb
--- /dev/null
+++ b/Software/PMR/Messages/MachineStatus/StartNotificationRequest.proto
@@ -0,0 +1,9 @@
+syntax = "proto3";
+
+package Tango.PMR.MachineStatus;
+option java_package = "com.twine.tango.pmr.machinestatus";
+
+message StartNotificationRequest
+{
+
+} \ No newline at end of file
diff --git a/Software/PMR/Messages/MachineStatus/StartNotificationResponse.proto b/Software/PMR/Messages/MachineStatus/StartNotificationResponse.proto
new file mode 100644
index 000000000..973d486a4
--- /dev/null
+++ b/Software/PMR/Messages/MachineStatus/StartNotificationResponse.proto
@@ -0,0 +1,14 @@
+syntax = "proto3";
+
+import "NotificationType.proto";
+
+package Tango.PMR.MachineStatus;
+option java_package = "com.twine.tango.pmr.machinestatus";
+
+message StartNotificationResponse
+{
+ NotificationType Type = 1;
+ bool IsBlocking = 2;
+ string Title = 3;
+ string Message = 4;
+} \ No newline at end of file