2021-02-25 20:35:51 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
option java_package = "com.geeksville.mesh";
|
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
2021-05-23 19:31:38 -05:00
|
|
|
option go_package = "github.com/meshtastic/gomeshproto";
|
2021-02-25 20:35:51 +08:00
|
|
|
|
2021-11-30 11:45:01 -08:00
|
|
|
import "channel.proto";
|
2022-05-02 10:19:54 +10:00
|
|
|
import "config.proto";
|
2021-12-09 19:21:30 +11:00
|
|
|
import "mesh.proto";
|
2022-05-02 21:17:43 +10:00
|
|
|
import "module_config.proto";
|
2021-02-25 20:35:51 +08:00
|
|
|
|
2021-02-27 13:43:36 +08:00
|
|
|
option java_outer_classname = "AdminProtos";
|
|
|
|
|
|
2021-03-07 19:28:48 +11:00
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* This message is handled by the Admin module and is responsible for all settings/channel read/write operations.
|
2021-04-20 19:08:28 +10:00
|
|
|
* This message is used to do settings operations to both remote AND local nodes.
|
2021-03-07 19:28:48 +11:00
|
|
|
* (Prior to 1.2 these operations were done via special ToRadio operations)
|
|
|
|
|
*/
|
2021-02-25 20:35:51 +08:00
|
|
|
message AdminMessage {
|
|
|
|
|
|
2022-05-01 12:38:23 +10:00
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-01 14:41:22 +10:00
|
|
|
enum ConfigType {
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-02 14:03:57 +10:00
|
|
|
DEVICE_CONFIG = 0;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-07 17:48:51 +10:00
|
|
|
POSITION_CONFIG = 1;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-02 14:03:57 +10:00
|
|
|
POWER_CONFIG = 2;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-02 14:03:57 +10:00
|
|
|
WIFI_CONFIG = 3;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-02 14:03:57 +10:00
|
|
|
DISPLAY_CONFIG = 4;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-05-02 14:03:57 +10:00
|
|
|
LORA_CONFIG = 5;
|
2022-05-02 21:17:43 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
enum ModuleConfigType {
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
MQTT_CONFIG = 0;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
SERIAL_CONFIG = 1;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
EXTNOTIF_CONFIG = 2;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
STOREFORWARD_CONFIG = 3;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
RANGETEST_CONFIG = 4;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
TELEMETRY_CONFIG = 5;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
|
|
|
|
/*
|
2022-05-02 21:17:43 +10:00
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
|
|
|
|
CANNEDMSG_CONFIG = 6;
|
2022-05-02 21:19:48 +10:00
|
|
|
}
|
2022-05-01 12:38:23 +10:00
|
|
|
|
2022-02-21 18:48:42 +11:00
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2021-11-30 11:45:01 -08:00
|
|
|
oneof variant {
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Set the owner for this node
|
|
|
|
|
*/
|
|
|
|
|
User set_owner = 2;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Set channels (using the new API).
|
|
|
|
|
* A special channel is the "primary channel".
|
|
|
|
|
* The other records are secondary channels.
|
|
|
|
|
* Note: only one channel can be marked as primary.
|
|
|
|
|
* If the client sets a particular channel to be primary, the previous channel will be set to SECONDARY automatically.
|
|
|
|
|
*/
|
|
|
|
|
Channel set_channel = 3;
|
|
|
|
|
|
|
|
|
|
/*
|
2021-12-09 19:21:30 +11:00
|
|
|
* Send the specified channel in the response to this message
|
2021-11-30 11:45:01 -08:00
|
|
|
* NOTE: This field is sent with the channel index + 1 (to ensure we never try to send 'zero' - which protobufs treats as not present)
|
|
|
|
|
*/
|
|
|
|
|
uint32 get_channel_request = 6;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2021-11-30 11:45:01 -08:00
|
|
|
Channel get_channel_response = 7;
|
2021-03-11 11:11:45 +08:00
|
|
|
|
2021-12-09 19:21:30 +11:00
|
|
|
/*
|
|
|
|
|
* Send the current owner data in the response to this message.
|
|
|
|
|
*/
|
2021-12-30 09:57:14 -08:00
|
|
|
bool get_owner_request = 8;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2021-12-30 09:57:14 -08:00
|
|
|
User get_owner_response = 9;
|
2021-12-09 19:21:30 +11:00
|
|
|
|
2022-05-01 12:38:23 +10:00
|
|
|
/*
|
2022-05-02 08:29:10 +10:00
|
|
|
* Ask for the following config data to be sent
|
2022-05-01 12:38:23 +10:00
|
|
|
*/
|
2022-05-01 14:41:22 +10:00
|
|
|
ConfigType get_config_request = 10;
|
|
|
|
|
|
|
|
|
|
/*
|
2022-05-02 08:29:10 +10:00
|
|
|
* Send the current Config in the response to this message.
|
2022-05-01 14:41:22 +10:00
|
|
|
*/
|
|
|
|
|
Config get_config_response = 11;
|
2022-05-01 12:38:23 +10:00
|
|
|
|
2022-05-02 08:29:10 +10:00
|
|
|
/*
|
|
|
|
|
* Set the current Config
|
|
|
|
|
*/
|
|
|
|
|
Config set_config = 12;
|
|
|
|
|
|
2022-05-02 08:38:22 +10:00
|
|
|
/*
|
|
|
|
|
* Sent immediatly after a config change has been sent to ensure comms, if this is not recieved, the config will be reverted after 10 mins
|
|
|
|
|
*/
|
|
|
|
|
bool confirm_set_config = 13;
|
2022-05-02 21:17:43 +10:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Ask for the following config data to be sent
|
|
|
|
|
*/
|
|
|
|
|
ModuleConfigType get_module_config_request = 14;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Send the current Config in the response to this message.
|
|
|
|
|
*/
|
|
|
|
|
ModuleConfig get_module_config_response = 15;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Set the current Config
|
|
|
|
|
*/
|
|
|
|
|
ModuleConfig set_module_config = 16;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Sent immediatly after a config change has been sent to ensure comms, if this is not recieved, the config will be reverted after 10 mins
|
|
|
|
|
*/
|
|
|
|
|
bool confirm_set_module_config = 17;
|
2022-05-02 08:38:22 +10:00
|
|
|
|
2021-11-30 11:45:01 -08:00
|
|
|
/*
|
|
|
|
|
* Setting channels/radio config remotely carries the risk that you might send an invalid config and the radio never talks to your mesh again.
|
|
|
|
|
* Therefore if setting either of these properties remotely, you must send a confirm_xxx message within 10 minutes.
|
|
|
|
|
* If you fail to do so, the radio will assume loss of comms and revert your changes.
|
|
|
|
|
* These messages are optional when changing the local node.
|
|
|
|
|
*/
|
|
|
|
|
bool confirm_set_channel = 32;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2021-11-30 11:45:01 -08:00
|
|
|
bool confirm_set_radio = 33;
|
2021-03-18 19:08:37 +08:00
|
|
|
|
2021-11-30 11:45:01 -08:00
|
|
|
/*
|
|
|
|
|
* This message is only supported for the simulator porduino build.
|
|
|
|
|
* If received the simulator will exit successfully.
|
|
|
|
|
*/
|
|
|
|
|
bool exit_simulator = 34;
|
2021-03-27 10:04:22 +08:00
|
|
|
|
2021-11-30 11:45:01 -08:00
|
|
|
/*
|
|
|
|
|
* Tell the node to reboot in this many seconds (or <0 to cancel reboot)
|
|
|
|
|
*/
|
|
|
|
|
int32 reboot_seconds = 35;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
|
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Get the Canned Message Module message part1 in the response to this message.
|
2022-01-18 17:39:38 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
bool get_canned_message_module_part1_request = 36;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string get_canned_message_module_part1_response = 37;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
|
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Get the Canned Message Module message part2 in the response to this message.
|
2022-01-18 17:39:38 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
bool get_canned_message_module_part2_request = 38;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string get_canned_message_module_part2_response = 39;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
|
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Get the Canned Message Module message part3 in the response to this message.
|
2022-01-18 17:39:38 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
bool get_canned_message_module_part3_request = 40;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string get_canned_message_module_part3_response = 41;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
|
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Get the Canned Message Module message part4 in the response to this message.
|
2022-01-18 17:39:38 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
bool get_canned_message_module_part4_request = 42;
|
2022-02-21 18:48:42 +11:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* TODO: REPLACE
|
|
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string get_canned_message_module_part4_response = 43;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
2022-01-19 15:43:57 -08:00
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Set the canned message module part 1 text.
|
2022-01-19 15:43:57 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string set_canned_message_module_part1 = 44;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
2022-01-19 15:43:57 -08:00
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Set the canned message module part 2 text.
|
2022-01-19 15:43:57 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string set_canned_message_module_part2 = 45;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
2022-01-19 15:43:57 -08:00
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Set the canned message module part 3 text.
|
2022-01-19 15:43:57 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string set_canned_message_module_part3 = 46;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
2022-01-19 15:43:57 -08:00
|
|
|
/*
|
2022-02-27 00:58:46 -08:00
|
|
|
* Set the canned message module part 4 text.
|
2022-01-19 15:43:57 -08:00
|
|
|
*/
|
2022-02-27 00:58:46 -08:00
|
|
|
string set_canned_message_module_part4 = 47;
|
2022-01-18 17:39:38 -08:00
|
|
|
|
2022-01-20 18:43:16 -06:00
|
|
|
/*
|
|
|
|
|
* Tell the node to shutdown in this many seconds (or <0 to cancel shutdown)
|
|
|
|
|
*/
|
|
|
|
|
int32 shutdown_seconds = 51;
|
2021-11-30 11:45:01 -08:00
|
|
|
}
|
2022-02-21 18:48:42 +11:00
|
|
|
}
|