mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
revert to 1.2
This commit is contained in:
parent
6a50cb72ba
commit
5c143419aa
6 changed files with 83 additions and 45 deletions
|
|
@ -65,32 +65,40 @@ message ChannelSettings {
|
|||
enum ModemConfig {
|
||||
|
||||
/*
|
||||
* < Bw = 125 kHz, Cr = 4/5, Sf(7) = 128chips/symbol, CRC
|
||||
* < on. ShortSlow | Short Range / Slow (5.469 kbps)
|
||||
*/
|
||||
VLongSlow = 0;
|
||||
Bw125Cr45Sf128 = 0;
|
||||
|
||||
/*
|
||||
* < Bw = 500 kHz, Cr = 4/5, Sf(7) = 128chips/symbol, CRC
|
||||
* < on. ShortFast | Short Range / Fast (21.875 kbps)
|
||||
*/
|
||||
LongSlow = 1;
|
||||
Bw500Cr45Sf128 = 1;
|
||||
|
||||
/*
|
||||
* < Bw = 31.25 kHz, Cr = 4/8, Sf(9) = 512chips/symbol,
|
||||
* < CRC on. LongFast | Long Range / Fast (275 bps)
|
||||
*/
|
||||
LongFast = 2;
|
||||
Bw31_25Cr48Sf512 = 2;
|
||||
|
||||
/*
|
||||
* < Bw = 125 kHz, Cr = 4/8, Sf(12) = 4096chips/symbol, CRC
|
||||
* < on. LongSlow | Long Range / Slow (183 bps)
|
||||
*/
|
||||
MidSlow = 3;
|
||||
Bw125Cr48Sf4096 = 3;
|
||||
|
||||
/*
|
||||
* < Bw = 250 kHz, Cr = 4/6, Sf(11) = 2048chips/symbol, CRC
|
||||
* < on. MediumSlow | Medium Range / Slow (895 bps)
|
||||
*/
|
||||
MidFast = 4;
|
||||
Bw250Cr46Sf2048 = 4;
|
||||
|
||||
/*
|
||||
* < Bw = 250 kHz, Cr = 4/7, Sf(10) = 1024chips/symbol, CRC
|
||||
* < on. MediumFast | Medium Range / Fast (1400 bps)
|
||||
*/
|
||||
ShortSlow = 5;
|
||||
|
||||
/*
|
||||
*/
|
||||
ShortFast = 6;
|
||||
Bw250Cr47Sf1024 = 5;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -10,6 +10,22 @@ import "radioconfig.proto";
|
|||
|
||||
option java_outer_classname = "DeviceOnly";
|
||||
|
||||
/*
|
||||
* This is a stub version of the old 1.1 representation of RadioConfig.
|
||||
* But only keeping the region info.
|
||||
* The device firmware uses this stub while migrating old nodes to the new preferences system.
|
||||
*/
|
||||
message LegacyRadioConfig {
|
||||
message LegacyPreferences {
|
||||
|
||||
/*
|
||||
* The region code for my radio (US, CN, EU433, etc...)
|
||||
*/
|
||||
RegionCode region = 15;
|
||||
}
|
||||
|
||||
LegacyPreferences preferences = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* This message is never sent over the wire, but it is used for serializing DB
|
||||
|
|
@ -25,6 +41,11 @@ message DeviceState {
|
|||
*/
|
||||
reserved 12;
|
||||
|
||||
/*
|
||||
* Moved to its own file, but we keep this here so we can automatically migrate old radio.region settings
|
||||
*/
|
||||
LegacyRadioConfig legacyRadio = 1;
|
||||
|
||||
/*
|
||||
* Read only settings/info about this node
|
||||
*/
|
||||
|
|
@ -42,11 +63,6 @@ message DeviceState {
|
|||
*/
|
||||
repeated MeshPacket receive_queue = 5;
|
||||
|
||||
/*
|
||||
* Group Info
|
||||
*/
|
||||
GroupInfo group_info = 6;
|
||||
|
||||
/*
|
||||
* A version integer used to invalidate old save files when we make
|
||||
* incompatible changes This integer is set at build time and is private to
|
||||
|
|
|
|||
|
|
@ -12,13 +12,11 @@
|
|||
# note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
|
||||
# outside of this envelope
|
||||
*Data.payload max_size:237
|
||||
*Data.group_id int_size:8
|
||||
|
||||
*GroupInfo.group max_length:16 max_count:10
|
||||
|
||||
# Big enough for 1.2.28.568032c-d
|
||||
*MyNodeInfo.firmware_version max_size:18
|
||||
|
||||
*MyNodeInfo.hw_model_deprecated max_size:16
|
||||
*MyNodeInfo.region max_size:12
|
||||
|
||||
# Note: the actual limit (because of header bytes) on the size of encrypted payloads is 251 bytes, but I use 256
|
||||
|
|
@ -42,3 +40,4 @@
|
|||
|
||||
*MyNodeInfo.air_period_tx max_count:24
|
||||
*MyNodeInfo.air_period_rx max_count:24
|
||||
# *MyNodeInfo.air_period_rx_all max_count:12
|
||||
|
|
|
|||
52
mesh.proto
52
mesh.proto
|
|
@ -466,6 +466,24 @@ message Routing {
|
|||
*/
|
||||
Error error_reason = 3;
|
||||
|
||||
/*
|
||||
* Deprecated - this has been replced with error_reason == NONE && request_id != 0
|
||||
* This is an ack.
|
||||
* This packet is a requested acknoledgement indicating that we have received
|
||||
* the specified message ID.
|
||||
* This packet type can be used both for immediate (0 hops) messages or can be routed through multiple hops if dest is set.
|
||||
* Note: As an optimization, recipients can _also_ populate a field in payload
|
||||
* if they think the recipient would appreciate that extra state.
|
||||
*
|
||||
* fixed32 success_id = 4;
|
||||
*/
|
||||
|
||||
/*
|
||||
* Deprecated - this has been replced with error_reason !== NONE && request_id != 0
|
||||
* This is a nak, we failed to deliver this message.
|
||||
*
|
||||
* fixed32 fail_id = 5;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -525,12 +543,6 @@ message Data {
|
|||
* a message a heart or poop emoji.
|
||||
*/
|
||||
bool is_tapback = 8;
|
||||
|
||||
/*
|
||||
* Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
|
||||
* a message a heart or poop emoji.
|
||||
*/
|
||||
uint32 group_id = 9;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -887,14 +899,6 @@ enum CriticalErrorCode {
|
|||
RadioSpiBug = 11;
|
||||
}
|
||||
|
||||
/*
|
||||
* GroupInfo for group chats like #FoodFreaks and #CoolPeopleOnly
|
||||
*/
|
||||
message GroupInfo {
|
||||
repeated string group = 1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Unique local debugging info for this node
|
||||
* Note: we don't include position or the user info, because that will come in the
|
||||
|
|
@ -914,6 +918,13 @@ message MyNodeInfo {
|
|||
*/
|
||||
bool has_gps = 2;
|
||||
|
||||
/*
|
||||
* # of frequencies that can be used (set at build time in the device flash image).
|
||||
* Note: this is different from max_channels, this field is telling the # of frequency bands this node can use.
|
||||
* (old name was num_channels)
|
||||
*/
|
||||
uint32 num_bands = 3;
|
||||
|
||||
/*
|
||||
* The maximum number of 'software' channels that can be set on this node.
|
||||
*/
|
||||
|
|
@ -930,6 +941,14 @@ message MyNodeInfo {
|
|||
*/
|
||||
string region = 4 [deprecated = true];
|
||||
|
||||
/*
|
||||
* TBEAM, HELTEC, etc...
|
||||
* Starting in 1.2.11 moved to hw_model enum in the NodeInfo object.
|
||||
* Apps will still need the string here for older builds
|
||||
* (so OTA update can find the right image), but if the enum is available it will be used instead.
|
||||
*/
|
||||
string hw_model_deprecated = 5 [deprecated = true];
|
||||
|
||||
/*
|
||||
* 0.0.5 etc...
|
||||
*/
|
||||
|
|
@ -1115,11 +1134,6 @@ message FromRadio {
|
|||
* NOTE: This ID must not change - to keep (minimal) compatibility with <1.2 version of android apps.
|
||||
*/
|
||||
bool rebooted = 9;
|
||||
|
||||
/*
|
||||
* Groups
|
||||
*/
|
||||
GroupInfo groups = 12;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,11 +91,6 @@ enum PortNum {
|
|||
*/
|
||||
IP_TUNNEL_APP = 33;
|
||||
|
||||
/*
|
||||
* Used for managing chat groups
|
||||
*/
|
||||
GROUP_APP = 34;
|
||||
|
||||
/*
|
||||
* Provides a hardware serial interface to send and receive from the Meshtastic network.
|
||||
* Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic
|
||||
|
|
|
|||
|
|
@ -39,15 +39,13 @@ enum RegionCode {
|
|||
Unset = 0;
|
||||
US = 1;
|
||||
EU433 = 2;
|
||||
EU868 = 3;
|
||||
EU865 = 3;
|
||||
CN = 4;
|
||||
JP = 5;
|
||||
ANZ = 6;
|
||||
KR = 7;
|
||||
TW = 8;
|
||||
RU = 9;
|
||||
IN = 10;
|
||||
TH = 11;
|
||||
|
||||
/*
|
||||
* Add new regions here
|
||||
|
|
@ -673,6 +671,14 @@ message RadioConfig {
|
|||
*/
|
||||
string canned_message_plugin_allow_input_source = 171;
|
||||
|
||||
/*
|
||||
* Predefined messages for CannedMessagePlugin separated by '|' characters.
|
||||
* Note: Split out the messages out to their own messages because we want to store 1,000 characters.
|
||||
* and the entire message must fit within 256 bytes.
|
||||
* Not sure if we should deprecate this or just remove it since we're in dev phase.
|
||||
*/
|
||||
string canned_message_plugin_messages = 172 [deprecated = true];
|
||||
|
||||
/*
|
||||
* CannedMessagePlugin also sends a bell character with the messages.
|
||||
* ExternalNotificationPlugin can benefit from this feature.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue