Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
message RadioStatus {
	// true if enabled AND successfully applied
	bool airplane_mode = 1;
	// for every LTE network
	repeated CellularStatus cellular_status = 1;
	// later we can add status for every WiFi network
}

message CellularStatus {
	string networkUUID = 1;
    CellularModem modem = 2;
	OperatingState operatingState = 3;
	string msisdn = 4;
	string imei = 5;
	// if the last configuration change failed, error message is reported here
	string configError = 10;
	// wwan servise periodically pings configured IP address. 
    // If the last probing failed, stderr of the probing method is published here.
	string probeError = 11;
}

message CellularModem {
	string model = 1;
	string revision = 2;
}  

enum CellularOperatingState {
	OPERATING_STATE_UNSPECIFIED = 0;
	OPERATING_STATE_ONLINE = 1;
	OPERATING_STATE_RADIO_OFF = 2;  (AKA airplane mode)
	OPERATING_STATE_OFFLINE = 3;
	...
}

...

No Format
{
	"protocol": "qmi" | "mbim",
	"operating-mode": "online" | "radio-off" | etc.
	"msisdn": “918369110173”,
	"imsiimei": “310170845466094”,
	"model": "QUECTEL Mobile Broadband Module",
	"revision": "EC21ECGAR06A04M1G",
	"config-error": "",
	"probe-error": "Failed to ping 8.8.8.8 (2 packets transmitted, 0 received, 100% packet loss, time 1029ms)",
	// modification Unix timestamp of config.json applied at the time of publishing this info
	"config-mtime": 1629446126
}

...