mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
commit
d99eb83689
11 changed files with 805 additions and 32 deletions
|
|
@ -162,6 +162,11 @@ message AdminMessage {
|
|||
* Traffic management module config
|
||||
*/
|
||||
TRAFFICMANAGEMENT_CONFIG = 14;
|
||||
|
||||
/*
|
||||
* TAK module config
|
||||
*/
|
||||
TAK_CONFIG = 15;
|
||||
}
|
||||
|
||||
enum BackupLocation {
|
||||
|
|
@ -656,6 +661,16 @@ message SensorConfig {
|
|||
* SEN5X PM Sensor configuration
|
||||
*/
|
||||
SEN5X_config sen5x_config = 2;
|
||||
|
||||
/*
|
||||
* SCD30 CO2 Sensor configuration
|
||||
*/
|
||||
SCD30_config scd30_config = 3;
|
||||
|
||||
/*
|
||||
* SHTXX temperature and relative humidity sensor configuration
|
||||
*/
|
||||
SHTXX_config shtxx_config = 4;
|
||||
}
|
||||
|
||||
message SCD4X_config {
|
||||
|
|
@ -706,3 +721,42 @@ message SEN5X_config {
|
|||
*/
|
||||
optional bool set_one_shot_mode = 2;
|
||||
}
|
||||
|
||||
message SCD30_config {
|
||||
/*
|
||||
* Set Automatic self-calibration enabled
|
||||
*/
|
||||
optional bool set_asc = 1;
|
||||
|
||||
/*
|
||||
* Recalibration target CO2 concentration in ppm (FRC or ASC)
|
||||
*/
|
||||
optional uint32 set_target_co2_conc = 2;
|
||||
|
||||
/*
|
||||
* Reference temperature in degC
|
||||
*/
|
||||
optional float set_temperature = 3;
|
||||
|
||||
/*
|
||||
* Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure)
|
||||
*/
|
||||
optional uint32 set_altitude = 4;
|
||||
|
||||
/*
|
||||
* Power mode for sensor (true for low power, false for normal)
|
||||
*/
|
||||
optional uint32 set_measurement_interval = 5;
|
||||
|
||||
/*
|
||||
* Perform a factory reset of the sensor
|
||||
*/
|
||||
optional bool soft_reset = 6;
|
||||
}
|
||||
|
||||
message SHTXX_config {
|
||||
/*
|
||||
* Accuracy mode (0 = low, 1 = medium, 2 = high)
|
||||
*/
|
||||
optional uint32 set_accuracy = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,4 +5,25 @@
|
|||
*GeoChat.message max_size:200
|
||||
*GeoChat.to max_size:120
|
||||
*GeoChat.to_callsign max_size:120
|
||||
*TAKPacket.detail max_size:220
|
||||
*TAKPacket.detail max_size:220
|
||||
*TAKPacketV2.cot_type_str max_size:32
|
||||
*TAKPacketV2.callsign max_size:120
|
||||
*TAKPacketV2.uid max_size:48
|
||||
*TAKPacketV2.device_callsign max_size:120
|
||||
*TAKPacketV2.tak_version max_size:64
|
||||
*TAKPacketV2.tak_device max_size:32
|
||||
*TAKPacketV2.tak_platform max_size:32
|
||||
*TAKPacketV2.tak_os max_size:16
|
||||
*TAKPacketV2.endpoint max_size:32
|
||||
*TAKPacketV2.phone max_size:20
|
||||
*TAKPacketV2.raw_detail max_size:220
|
||||
*TAKPacketV2.stale_seconds int_size:16
|
||||
*TAKPacketV2.battery int_size:8
|
||||
*TAKPacketV2.course int_size:16
|
||||
*AircraftTrack.icao max_size:8
|
||||
*AircraftTrack.registration max_size:16
|
||||
*AircraftTrack.flight max_size:16
|
||||
*AircraftTrack.aircraft_type max_size:8
|
||||
*AircraftTrack.squawk int_size:16
|
||||
*AircraftTrack.category max_size:4
|
||||
*AircraftTrack.cot_host_id max_size:64
|
||||
|
|
@ -262,3 +262,593 @@ message PLI {
|
|||
*/
|
||||
uint32 course = 5;
|
||||
}
|
||||
|
||||
/*
|
||||
* CoT how field values.
|
||||
* Represents how the coordinates were generated.
|
||||
*/
|
||||
enum CotHow {
|
||||
/*
|
||||
* Unspecified
|
||||
*/
|
||||
CotHow_Unspecified = 0;
|
||||
/*
|
||||
* Human entered
|
||||
*/
|
||||
CotHow_h_e = 1;
|
||||
/*
|
||||
* Machine generated
|
||||
*/
|
||||
CotHow_m_g = 2;
|
||||
/*
|
||||
* Human GPS/INS derived
|
||||
*/
|
||||
CotHow_h_g_i_g_o = 3;
|
||||
/*
|
||||
* Machine relayed (imported from another system/gateway)
|
||||
*/
|
||||
CotHow_m_r = 4;
|
||||
/*
|
||||
* Machine fused (corroborated from multiple sources)
|
||||
*/
|
||||
CotHow_m_f = 5;
|
||||
/*
|
||||
* Machine predicted
|
||||
*/
|
||||
CotHow_m_p = 6;
|
||||
/*
|
||||
* Machine simulated
|
||||
*/
|
||||
CotHow_m_s = 7;
|
||||
}
|
||||
|
||||
/*
|
||||
* Well-known CoT event types.
|
||||
* When the type is known, use the enum value for efficient encoding.
|
||||
* For unknown types, set cot_type_id to CotType_Other and populate cot_type_str.
|
||||
*/
|
||||
enum CotType {
|
||||
/*
|
||||
* Unknown or unmapped type, use cot_type_str
|
||||
*/
|
||||
CotType_Other = 0;
|
||||
/*
|
||||
* a-f-G-U-C: Friendly ground unit combat
|
||||
*/
|
||||
CotType_a_f_G_U_C = 1;
|
||||
/*
|
||||
* a-f-G-U-C-I: Friendly ground unit combat infantry
|
||||
*/
|
||||
CotType_a_f_G_U_C_I = 2;
|
||||
/*
|
||||
* a-n-A-C-F: Neutral aircraft civilian fixed-wing
|
||||
*/
|
||||
CotType_a_n_A_C_F = 3;
|
||||
/*
|
||||
* a-n-A-C-H: Neutral aircraft civilian helicopter
|
||||
*/
|
||||
CotType_a_n_A_C_H = 4;
|
||||
/*
|
||||
* a-n-A-C: Neutral aircraft civilian
|
||||
*/
|
||||
CotType_a_n_A_C = 5;
|
||||
/*
|
||||
* a-f-A-M-H: Friendly aircraft military helicopter
|
||||
*/
|
||||
CotType_a_f_A_M_H = 6;
|
||||
/*
|
||||
* a-f-A-M: Friendly aircraft military
|
||||
*/
|
||||
CotType_a_f_A_M = 7;
|
||||
/*
|
||||
* a-f-A-M-F-F: Friendly aircraft military fixed-wing fighter
|
||||
*/
|
||||
CotType_a_f_A_M_F_F = 8;
|
||||
/*
|
||||
* a-f-A-M-H-A: Friendly aircraft military helicopter attack
|
||||
*/
|
||||
CotType_a_f_A_M_H_A = 9;
|
||||
/*
|
||||
* a-f-A-M-H-U-M: Friendly aircraft military helicopter utility medium
|
||||
*/
|
||||
CotType_a_f_A_M_H_U_M = 10;
|
||||
/*
|
||||
* a-h-A-M-F-F: Hostile aircraft military fixed-wing fighter
|
||||
*/
|
||||
CotType_a_h_A_M_F_F = 11;
|
||||
/*
|
||||
* a-h-A-M-H-A: Hostile aircraft military helicopter attack
|
||||
*/
|
||||
CotType_a_h_A_M_H_A = 12;
|
||||
/*
|
||||
* a-u-A-C: Unknown aircraft civilian
|
||||
*/
|
||||
CotType_a_u_A_C = 13;
|
||||
/*
|
||||
* t-x-d-d: Tasking delete/disconnect
|
||||
*/
|
||||
CotType_t_x_d_d = 14;
|
||||
/*
|
||||
* a-f-G-E-S-E: Friendly ground equipment sensor
|
||||
*/
|
||||
CotType_a_f_G_E_S_E = 15;
|
||||
/*
|
||||
* a-f-G-E-V-C: Friendly ground equipment vehicle
|
||||
*/
|
||||
CotType_a_f_G_E_V_C = 16;
|
||||
/*
|
||||
* a-f-S: Friendly sea
|
||||
*/
|
||||
CotType_a_f_S = 17;
|
||||
/*
|
||||
* a-f-A-M-F: Friendly aircraft military fixed-wing
|
||||
*/
|
||||
CotType_a_f_A_M_F = 18;
|
||||
/*
|
||||
* a-f-A-M-F-C-H: Friendly aircraft military fixed-wing cargo heavy
|
||||
*/
|
||||
CotType_a_f_A_M_F_C_H = 19;
|
||||
/*
|
||||
* a-f-A-M-F-U-L: Friendly aircraft military fixed-wing utility light
|
||||
*/
|
||||
CotType_a_f_A_M_F_U_L = 20;
|
||||
/*
|
||||
* a-f-A-M-F-L: Friendly aircraft military fixed-wing liaison
|
||||
*/
|
||||
CotType_a_f_A_M_F_L = 21;
|
||||
/*
|
||||
* a-f-A-M-F-P: Friendly aircraft military fixed-wing patrol
|
||||
*/
|
||||
CotType_a_f_A_M_F_P = 22;
|
||||
/*
|
||||
* a-f-A-C-H: Friendly aircraft civilian helicopter
|
||||
*/
|
||||
CotType_a_f_A_C_H = 23;
|
||||
/*
|
||||
* a-n-A-M-F-Q: Neutral aircraft military fixed-wing drone
|
||||
*/
|
||||
CotType_a_n_A_M_F_Q = 24;
|
||||
|
||||
// --- Chat / messaging ---
|
||||
|
||||
/*
|
||||
* b-t-f: GeoChat message
|
||||
*/
|
||||
CotType_b_t_f = 25;
|
||||
|
||||
// --- CASEVAC / MEDEVAC ---
|
||||
|
||||
/*
|
||||
* b-r-f-h-c: CASEVAC/MEDEVAC report
|
||||
*/
|
||||
CotType_b_r_f_h_c = 26;
|
||||
|
||||
// --- Alerts ---
|
||||
|
||||
/*
|
||||
* b-a-o-pan: Ring the bell / alert all
|
||||
*/
|
||||
CotType_b_a_o_pan = 27;
|
||||
/*
|
||||
* b-a-o-opn: Troops in contact
|
||||
*/
|
||||
CotType_b_a_o_opn = 28;
|
||||
/*
|
||||
* b-a-o-can: Cancel alert
|
||||
*/
|
||||
CotType_b_a_o_can = 29;
|
||||
/*
|
||||
* b-a-o-tbl: 911 alert
|
||||
*/
|
||||
CotType_b_a_o_tbl = 30;
|
||||
/*
|
||||
* b-a-g: Geofence breach alert
|
||||
*/
|
||||
CotType_b_a_g = 31;
|
||||
|
||||
// --- Generic ground atoms (simplified affiliation types) ---
|
||||
|
||||
/*
|
||||
* a-f-G: Friendly ground (generic)
|
||||
*/
|
||||
CotType_a_f_G = 32;
|
||||
/*
|
||||
* a-f-G-U: Friendly ground unit (generic)
|
||||
*/
|
||||
CotType_a_f_G_U = 33;
|
||||
/*
|
||||
* a-h-G: Hostile ground (generic)
|
||||
*/
|
||||
CotType_a_h_G = 34;
|
||||
/*
|
||||
* a-u-G: Unknown ground (generic)
|
||||
*/
|
||||
CotType_a_u_G = 35;
|
||||
/*
|
||||
* a-n-G: Neutral ground (generic)
|
||||
*/
|
||||
CotType_a_n_G = 36;
|
||||
|
||||
// --- Routes and waypoints ---
|
||||
|
||||
/*
|
||||
* b-m-r: Route
|
||||
*/
|
||||
CotType_b_m_r = 37;
|
||||
/*
|
||||
* b-m-p-w: Route waypoint
|
||||
*/
|
||||
CotType_b_m_p_w = 38;
|
||||
/*
|
||||
* b-m-p-s-p-i: Self-position marker
|
||||
*/
|
||||
CotType_b_m_p_s_p_i = 39;
|
||||
|
||||
// --- Drawing / tactical graphics ---
|
||||
|
||||
/*
|
||||
* u-d-f: Freeform shape (line/polygon)
|
||||
*/
|
||||
CotType_u_d_f = 40;
|
||||
/*
|
||||
* u-d-r: Rectangle
|
||||
*/
|
||||
CotType_u_d_r = 41;
|
||||
/*
|
||||
* u-d-c-c: Circle
|
||||
*/
|
||||
CotType_u_d_c_c = 42;
|
||||
/*
|
||||
* u-rb-a: Range/bearing line
|
||||
*/
|
||||
CotType_u_rb_a = 43;
|
||||
|
||||
// --- Additional hostile/unknown aircraft ---
|
||||
|
||||
/*
|
||||
* a-h-A: Hostile aircraft (generic)
|
||||
*/
|
||||
CotType_a_h_A = 44;
|
||||
/*
|
||||
* a-u-A: Unknown aircraft (generic)
|
||||
*/
|
||||
CotType_a_u_A = 45;
|
||||
/*
|
||||
* a-f-A-M-H-Q: Friendly aircraft military helicopter observation
|
||||
*/
|
||||
CotType_a_f_A_M_H_Q = 46;
|
||||
|
||||
// Friendly aircraft civilian
|
||||
|
||||
/*
|
||||
* a-f-A-C-F: Friendly aircraft civilian fixed-wing
|
||||
*/
|
||||
CotType_a_f_A_C_F = 47;
|
||||
/*
|
||||
* a-f-A-C: Friendly aircraft civilian (generic)
|
||||
*/
|
||||
CotType_a_f_A_C = 48;
|
||||
/*
|
||||
* a-f-A-C-L: Friendly aircraft civilian lighter-than-air
|
||||
*/
|
||||
CotType_a_f_A_C_L = 49;
|
||||
/*
|
||||
* a-f-A: Friendly aircraft (generic)
|
||||
*/
|
||||
CotType_a_f_A = 50;
|
||||
|
||||
// Friendly aircraft military helicopter variants
|
||||
|
||||
/*
|
||||
* a-f-A-M-H-C: Friendly aircraft military helicopter cargo
|
||||
*/
|
||||
CotType_a_f_A_M_H_C = 51;
|
||||
|
||||
// Neutral aircraft military
|
||||
|
||||
/*
|
||||
* a-n-A-M-F-F: Neutral aircraft military fixed-wing fighter
|
||||
*/
|
||||
CotType_a_n_A_M_F_F = 52;
|
||||
|
||||
// Unknown aircraft civilian
|
||||
|
||||
/*
|
||||
* a-u-A-C-F: Unknown aircraft civilian fixed-wing
|
||||
*/
|
||||
CotType_a_u_A_C_F = 53;
|
||||
|
||||
// Friendly ground unit subtypes
|
||||
|
||||
/*
|
||||
* a-f-G-U-C-F-T-A: Friendly ground unit combat forces theater aviation
|
||||
*/
|
||||
CotType_a_f_G_U_C_F_T_A = 54;
|
||||
/*
|
||||
* a-f-G-U-C-V-S: Friendly ground unit combat vehicle support
|
||||
*/
|
||||
CotType_a_f_G_U_C_V_S = 55;
|
||||
/*
|
||||
* a-f-G-U-C-R-X: Friendly ground unit combat reconnaissance exploitation
|
||||
*/
|
||||
CotType_a_f_G_U_C_R_X = 56;
|
||||
/*
|
||||
* a-f-G-U-C-I-Z: Friendly ground unit combat infantry mechanized
|
||||
*/
|
||||
CotType_a_f_G_U_C_I_Z = 57;
|
||||
/*
|
||||
* a-f-G-U-C-E-C-W: Friendly ground unit combat engineer construction wheeled
|
||||
*/
|
||||
CotType_a_f_G_U_C_E_C_W = 58;
|
||||
/*
|
||||
* a-f-G-U-C-I-L: Friendly ground unit combat infantry light
|
||||
*/
|
||||
CotType_a_f_G_U_C_I_L = 59;
|
||||
/*
|
||||
* a-f-G-U-C-R-O: Friendly ground unit combat reconnaissance other
|
||||
*/
|
||||
CotType_a_f_G_U_C_R_O = 60;
|
||||
/*
|
||||
* a-f-G-U-C-R-V: Friendly ground unit combat reconnaissance cavalry
|
||||
*/
|
||||
CotType_a_f_G_U_C_R_V = 61;
|
||||
/*
|
||||
* a-f-G-U-H: Friendly ground unit headquarters
|
||||
*/
|
||||
CotType_a_f_G_U_H = 62;
|
||||
/*
|
||||
* a-f-G-U-U-M-S-E: Friendly ground unit support medical surgical evacuation
|
||||
*/
|
||||
CotType_a_f_G_U_U_M_S_E = 63;
|
||||
/*
|
||||
* a-f-G-U-S-M-C: Friendly ground unit support maintenance collection
|
||||
*/
|
||||
CotType_a_f_G_U_S_M_C = 64;
|
||||
|
||||
// Friendly ground equipment
|
||||
|
||||
/*
|
||||
* a-f-G-E-S: Friendly ground equipment sensor (generic)
|
||||
*/
|
||||
CotType_a_f_G_E_S = 65;
|
||||
/*
|
||||
* a-f-G-E: Friendly ground equipment (generic)
|
||||
*/
|
||||
CotType_a_f_G_E = 66;
|
||||
/*
|
||||
* a-f-G-E-V-C-U: Friendly ground equipment vehicle utility
|
||||
*/
|
||||
CotType_a_f_G_E_V_C_U = 67;
|
||||
/*
|
||||
* a-f-G-E-V-C-ps: Friendly ground equipment vehicle public safety
|
||||
*/
|
||||
CotType_a_f_G_E_V_C_ps = 68;
|
||||
|
||||
// Unknown ground
|
||||
|
||||
/*
|
||||
* a-u-G-E-V: Unknown ground equipment vehicle
|
||||
*/
|
||||
CotType_a_u_G_E_V = 69;
|
||||
|
||||
// Sea
|
||||
|
||||
/*
|
||||
* a-f-S-N-N-R: Friendly sea surface non-naval rescue
|
||||
*/
|
||||
CotType_a_f_S_N_N_R = 70;
|
||||
|
||||
// Friendly force (non-domain-specific)
|
||||
|
||||
/*
|
||||
* a-f-F-B: Friendly force boundary
|
||||
*/
|
||||
CotType_a_f_F_B = 71;
|
||||
|
||||
// Bits / data messages
|
||||
|
||||
/*
|
||||
* b-m-p-s-p-loc: Self-position location marker
|
||||
*/
|
||||
CotType_b_m_p_s_p_loc = 72;
|
||||
/*
|
||||
* b-i-v: Imagery/video
|
||||
*/
|
||||
CotType_b_i_v = 73;
|
||||
/*
|
||||
* b-f-t-r: File transfer request
|
||||
*/
|
||||
CotType_b_f_t_r = 74;
|
||||
/*
|
||||
* b-f-t-a: File transfer acknowledgment
|
||||
*/
|
||||
CotType_b_f_t_a = 75;
|
||||
}
|
||||
|
||||
/*
|
||||
* Geopoint and altitude source
|
||||
*/
|
||||
enum GeoPointSource {
|
||||
/*
|
||||
* Unspecified
|
||||
*/
|
||||
GeoPointSource_Unspecified = 0;
|
||||
/*
|
||||
* GPS derived
|
||||
*/
|
||||
GeoPointSource_GPS = 1;
|
||||
/*
|
||||
* User entered
|
||||
*/
|
||||
GeoPointSource_USER = 2;
|
||||
/*
|
||||
* Network/external
|
||||
*/
|
||||
GeoPointSource_NETWORK = 3;
|
||||
}
|
||||
|
||||
/*
|
||||
* Aircraft track information from ADS-B or military air tracking.
|
||||
* Covers the majority of observed real-world CoT traffic.
|
||||
*/
|
||||
message AircraftTrack {
|
||||
/*
|
||||
* ICAO hex identifier (e.g. "AD237C")
|
||||
*/
|
||||
string icao = 1;
|
||||
/*
|
||||
* Aircraft registration (e.g. "N946AK")
|
||||
*/
|
||||
string registration = 2;
|
||||
/*
|
||||
* Flight number/callsign (e.g. "ASA864")
|
||||
*/
|
||||
string flight = 3;
|
||||
/*
|
||||
* ICAO aircraft type designator (e.g. "B39M")
|
||||
*/
|
||||
string aircraft_type = 4;
|
||||
/*
|
||||
* Transponder squawk code (0-7777 octal)
|
||||
*/
|
||||
uint32 squawk = 5;
|
||||
/*
|
||||
* ADS-B emitter category (e.g. "A3")
|
||||
*/
|
||||
string category = 6;
|
||||
/*
|
||||
* Received signal strength * 10 (e.g. -194 for -19.4 dBm)
|
||||
*/
|
||||
sint32 rssi_x10 = 7;
|
||||
/*
|
||||
* Whether receiver has GPS fix
|
||||
*/
|
||||
bool gps = 8;
|
||||
/*
|
||||
* CoT host ID for source attribution
|
||||
*/
|
||||
string cot_host_id = 9;
|
||||
}
|
||||
|
||||
/*
|
||||
* ATAK v2 packet with expanded CoT field support and zstd dictionary compression.
|
||||
* Sent on ATAK_PLUGIN_V2 port. The wire payload is:
|
||||
* [1 byte flags][zstd-compressed TAKPacketV2 protobuf]
|
||||
* Flags byte: bits 0-5 = dictionary ID, bits 6-7 = reserved.
|
||||
*/
|
||||
message TAKPacketV2 {
|
||||
/*
|
||||
* Well-known CoT event type enum.
|
||||
* Use CotType_Other with cot_type_str for unknown types.
|
||||
*/
|
||||
CotType cot_type_id = 1;
|
||||
/*
|
||||
* How the coordinates were generated
|
||||
*/
|
||||
CotHow how = 2;
|
||||
/*
|
||||
* Callsign
|
||||
*/
|
||||
string callsign = 3;
|
||||
/*
|
||||
* Team color assignment
|
||||
*/
|
||||
Team team = 4;
|
||||
/*
|
||||
* Role of the group member
|
||||
*/
|
||||
MemberRole role = 5;
|
||||
/*
|
||||
* Latitude, multiply by 1e-7 to get degrees in floating point
|
||||
*/
|
||||
sfixed32 latitude_i = 6;
|
||||
/*
|
||||
* Longitude, multiply by 1e-7 to get degrees in floating point
|
||||
*/
|
||||
sfixed32 longitude_i = 7;
|
||||
/*
|
||||
* Altitude in meters (HAE)
|
||||
*/
|
||||
sint32 altitude = 8;
|
||||
/*
|
||||
* Speed in cm/s
|
||||
*/
|
||||
uint32 speed = 9;
|
||||
/*
|
||||
* Course in degrees * 100 (0-36000)
|
||||
*/
|
||||
uint32 course = 10;
|
||||
/*
|
||||
* Battery level 0-100
|
||||
*/
|
||||
uint32 battery = 11;
|
||||
/*
|
||||
* Geopoint source
|
||||
*/
|
||||
GeoPointSource geo_src = 12;
|
||||
/*
|
||||
* Altitude source
|
||||
*/
|
||||
GeoPointSource alt_src = 13;
|
||||
/*
|
||||
* Device UID (UUID string or device ID like "ANDROID-xxxx")
|
||||
*/
|
||||
string uid = 14;
|
||||
/*
|
||||
* Device callsign
|
||||
*/
|
||||
string device_callsign = 15;
|
||||
/*
|
||||
* Stale time as seconds offset from event time
|
||||
*/
|
||||
uint32 stale_seconds = 16;
|
||||
/*
|
||||
* TAK client version string
|
||||
*/
|
||||
string tak_version = 17;
|
||||
/*
|
||||
* TAK device model
|
||||
*/
|
||||
string tak_device = 18;
|
||||
/*
|
||||
* TAK platform (ATAK-CIV, WebTAK, etc.)
|
||||
*/
|
||||
string tak_platform = 19;
|
||||
/*
|
||||
* TAK OS version
|
||||
*/
|
||||
string tak_os = 20;
|
||||
/*
|
||||
* Connection endpoint
|
||||
*/
|
||||
string endpoint = 21;
|
||||
/*
|
||||
* Phone number
|
||||
*/
|
||||
string phone = 22;
|
||||
/*
|
||||
* CoT event type string, only populated when cot_type_id is CotType_Other
|
||||
*/
|
||||
string cot_type_str = 23;
|
||||
/*
|
||||
* The payload of the packet
|
||||
*/
|
||||
oneof payload_variant {
|
||||
/*
|
||||
* Position report (true = PLI, no extra fields beyond the common ones above)
|
||||
*/
|
||||
bool pli = 30;
|
||||
/*
|
||||
* ATAK GeoChat message
|
||||
*/
|
||||
GeoChat chat = 31;
|
||||
/*
|
||||
* Aircraft track data (ADS-B, military air)
|
||||
*/
|
||||
AircraftTrack aircraft = 32;
|
||||
/*
|
||||
* Generic CoT detail XML for unmapped types
|
||||
*/
|
||||
bytes raw_detail = 33;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -992,6 +992,23 @@ message Config {
|
|||
LONG_TURBO = 9;
|
||||
}
|
||||
|
||||
enum FEM_LNA_Mode {
|
||||
/*
|
||||
* FEM_LNA is present but disabled
|
||||
*/
|
||||
DISABLED = 0;
|
||||
|
||||
/*
|
||||
* FEM_LNA is present and enabled
|
||||
*/
|
||||
ENABLED = 1;
|
||||
|
||||
/*
|
||||
* FEM_LNA is not present on the device
|
||||
*/
|
||||
NOT_PRESENT = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
* When enabled, the `modem_preset` fields will be adhered to, else the `bandwidth`/`spread_factor`/`coding_rate`
|
||||
* will be taked from their respective manually defined fields
|
||||
|
|
@ -1112,6 +1129,10 @@ message Config {
|
|||
* Sets the ok_to_mqtt bit on outgoing packets
|
||||
*/
|
||||
bool config_ok_to_mqtt = 105;
|
||||
/*
|
||||
* Set where LORA FEM is enabled, disabled, or not present
|
||||
*/
|
||||
FEM_LNA_Mode fem_lna_mode = 106;
|
||||
}
|
||||
|
||||
message BluetoothConfig {
|
||||
|
|
|
|||
|
|
@ -141,6 +141,11 @@ message LocalModuleConfig {
|
|||
*/
|
||||
ModuleConfig.TrafficManagementConfig traffic_management = 16;
|
||||
|
||||
/*
|
||||
* TAK Config
|
||||
*/
|
||||
ModuleConfig.TAKConfig tak = 17;
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
|
|
|||
|
|
@ -855,6 +855,29 @@ enum HardwareModel {
|
|||
*/
|
||||
T5_S3_EPAPER_PRO = 123;
|
||||
|
||||
/*
|
||||
* LilyGo T-Beam BPF (144-148Mhz)
|
||||
*/
|
||||
TBEAM_BPF = 124;
|
||||
|
||||
/*
|
||||
* LilyGo T-Mini E-paper S3 Kit
|
||||
*/
|
||||
MINI_EPAPER_S3 = 125;
|
||||
|
||||
/*
|
||||
* LilyGo T-Display S3 Pro LR1121
|
||||
*/
|
||||
TDISPLAY_S3_PRO = 126;
|
||||
|
||||
/*
|
||||
* Heltec Mesh Node T096 board features an nRF52840 CPU and a TFT screen.
|
||||
*/
|
||||
HELTEC_MESH_NODE_T096 = 127;
|
||||
|
||||
/* Seeed studio T1000-E Pro tracker card. NRF52840 w/ LR2021 radio, GPS, button, buzzer, and sensors. */
|
||||
TRACKER_T1000_E_PRO = 128;
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------------------------------------------------------------------------
|
||||
* Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ syntax = "proto3";
|
|||
|
||||
package meshtastic;
|
||||
|
||||
import "meshtastic/atak.proto";
|
||||
|
||||
option csharp_namespace = "Meshtastic.Protobufs";
|
||||
option go_package = "github.com/meshtastic/go/generated";
|
||||
option java_outer_classname = "ModuleConfigProtos";
|
||||
|
|
@ -933,6 +935,27 @@ message ModuleConfig {
|
|||
* Traffic management module config for mesh network optimization
|
||||
*/
|
||||
TrafficManagementConfig traffic_management = 15;
|
||||
|
||||
/*
|
||||
* TAK team/role configuration for TAK_TRACKER
|
||||
*/
|
||||
TAKConfig tak = 16;
|
||||
}
|
||||
|
||||
/*
|
||||
* TAK team/role configuration
|
||||
*/
|
||||
message TAKConfig {
|
||||
/*
|
||||
* Team color.
|
||||
* Default Unspecifed_Color -> firmware uses Cyan
|
||||
*/
|
||||
Team team = 1;
|
||||
/*
|
||||
* Member role.
|
||||
* Default Unspecifed -> firmware uses TeamMember
|
||||
*/
|
||||
MemberRole role = 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,6 +227,12 @@ enum PortNum {
|
|||
*/
|
||||
POWERSTRESS_APP = 74;
|
||||
|
||||
/*
|
||||
* LoraWAN Payload Transport
|
||||
* ENCODING: compact binary LoRaWAN uplink (10-byte RF metadata + PHY payload) - see LoRaWANBridgeModule
|
||||
*/
|
||||
LORAWAN_BRIDGE = 75;
|
||||
|
||||
/*
|
||||
* Reticulum Network Stack Tunnel App
|
||||
* ENCODING: Fragmented RNS Packet. Handled by Meshtastic RNS interface
|
||||
|
|
@ -240,12 +246,26 @@ enum PortNum {
|
|||
*/
|
||||
CAYENNE_APP = 77;
|
||||
|
||||
/*
|
||||
* ATAK Plugin V2
|
||||
* Portnum for payloads from the official Meshtastic ATAK plugin using
|
||||
* TAKPacketV2 with zstd dictionary compression.
|
||||
*/
|
||||
ATAK_PLUGIN_V2 = 78;
|
||||
|
||||
/*
|
||||
* App for hydris protobuf, open source tactical sensor awareness,
|
||||
* "home assistant for the outdoors"
|
||||
* ENCODING: hydris protobuf
|
||||
*/
|
||||
HYDRIS_APP = 78;
|
||||
HYDRIS_APP = 79;
|
||||
|
||||
/*
|
||||
* GroupAlarm integration
|
||||
* Used for transporting GroupAlarm-related messages between Meshtastic nodes
|
||||
* and companion applications/services.
|
||||
*/
|
||||
GROUPALARM_APP = 112;
|
||||
|
||||
/*
|
||||
* Private applications should use portnums >= 256.
|
||||
|
|
|
|||
|
|
@ -653,7 +653,7 @@ enum TelemetrySensorType {
|
|||
BMP280 = 6;
|
||||
|
||||
/*
|
||||
* High accuracy temperature and humidity
|
||||
* TODO - REMOVE High accuracy temperature and humidity
|
||||
*/
|
||||
SHTC3 = 7;
|
||||
|
||||
|
|
@ -678,7 +678,7 @@ enum TelemetrySensorType {
|
|||
QMC5883L = 11;
|
||||
|
||||
/*
|
||||
* High accuracy temperature and humidity
|
||||
* TODO - REMOVE High accuracy temperature and humidity
|
||||
*/
|
||||
SHT31 = 12;
|
||||
|
||||
|
|
@ -703,7 +703,7 @@ enum TelemetrySensorType {
|
|||
RCWL9620 = 16;
|
||||
|
||||
/*
|
||||
* Sensirion High accuracy temperature and humidity
|
||||
* TODO - REMOVE Sensirion High accuracy temperature and humidity
|
||||
*/
|
||||
SHT4X = 17;
|
||||
|
||||
|
|
@ -836,6 +836,7 @@ enum TelemetrySensorType {
|
|||
* SEN5X PM SENSORS
|
||||
*/
|
||||
SEN5X = 43;
|
||||
|
||||
/*
|
||||
* TSL2561 light sensor
|
||||
*/
|
||||
|
|
@ -845,14 +846,14 @@ enum TelemetrySensorType {
|
|||
* BH1750 light sensor
|
||||
*/
|
||||
BH1750 = 45;
|
||||
|
||||
|
||||
/*
|
||||
* HDC1080 Temperature and Humidity Sensor
|
||||
*/
|
||||
HDC1080 = 46;
|
||||
|
||||
/*
|
||||
* STH21 Temperature and R. Humidity sensor
|
||||
* TODO - REMOVE STH21 Temperature and R. Humidity sensor
|
||||
*/
|
||||
SHT21 = 47;
|
||||
|
||||
|
|
@ -860,6 +861,21 @@ enum TelemetrySensorType {
|
|||
* Sensirion STC31 CO2 sensor
|
||||
*/
|
||||
STC31 = 48;
|
||||
|
||||
/*
|
||||
* SCD30 CO2, humidity, temperature sensor
|
||||
*/
|
||||
SCD30 = 49;
|
||||
|
||||
/*
|
||||
* SHT family of sensors for temperature and humidity
|
||||
*/
|
||||
SHTXX = 50;
|
||||
|
||||
/*
|
||||
* DS248X Bridge for one-wire temperature sensors
|
||||
*/
|
||||
DS248X = 51;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
46
packages/rust/Cargo.lock
generated
46
packages/rust/Cargo.lock
generated
|
|
@ -1,30 +1,30 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.89"
|
||||
version = "1.0.102"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6"
|
||||
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
||||
|
||||
[[package]]
|
||||
name = "bytes"
|
||||
version = "1.7.2"
|
||||
version = "1.11.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3"
|
||||
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
||||
|
||||
[[package]]
|
||||
name = "either"
|
||||
version = "1.13.0"
|
||||
version = "1.15.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
||||
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
||||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
version = "0.13.0"
|
||||
version = "0.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
||||
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
|
||||
dependencies = [
|
||||
"either",
|
||||
]
|
||||
|
|
@ -39,18 +39,18 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.86"
|
||||
version = "1.0.106"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
|
||||
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "prost"
|
||||
version = "0.13.3"
|
||||
version = "0.14.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7b0487d90e047de87f984913713b85c601c05609aad5b0df4b4573fbf69aa13f"
|
||||
checksum = "d2ea70524a2f82d518bce41317d0fae74151505651af45faf1ffbd6fd33f0568"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"prost-derive",
|
||||
|
|
@ -58,9 +58,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "prost-derive"
|
||||
version = "0.13.3"
|
||||
version = "0.14.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e9552f850d5f0964a4e4d0bf306459ac29323ddfbae05e35a7c0d35cb0803cc5"
|
||||
checksum = "27c6023962132f4b30eb4c172c91ce92d933da334c59c23cddee82358ddafb0b"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"itertools",
|
||||
|
|
@ -71,27 +71,27 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "prost-types"
|
||||
version = "0.13.3"
|
||||
version = "0.14.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4759aa0d3a6232fb8dbdb97b61de2c20047c68aca932c7ed76da9d788508d670"
|
||||
checksum = "8991c4cbdb8bc5b11f0b074ffe286c30e523de90fee5ba8132f1399f23cb3dd7"
|
||||
dependencies = [
|
||||
"prost",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
version = "1.0.37"
|
||||
version = "1.0.45"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
|
||||
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.79"
|
||||
version = "2.0.117"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
|
||||
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
@ -100,6 +100,6 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "unicode-ident"
|
||||
version = "1.0.13"
|
||||
version = "1.0.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
||||
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@ include = [
|
|||
]
|
||||
|
||||
[dependencies]
|
||||
prost = "0.13.3"
|
||||
prost-types = "0.13.3"
|
||||
prost = "0.14.3"
|
||||
prost-types = "0.14.3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue