Skip to content

Commit dc5f592

Browse files
committed
protobufs: v2.3.14
1 parent 91c42d5 commit dc5f592

File tree

7 files changed

+186
-40
lines changed

7 files changed

+186
-40
lines changed

meshtastic/protobuf/config_pb2.py

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/protobuf/config_pb2.pyi

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ class Config(google.protobuf.message.Message):
580580
LS_SECS_FIELD_NUMBER: builtins.int
581581
MIN_WAKE_SECS_FIELD_NUMBER: builtins.int
582582
DEVICE_BATTERY_INA_ADDRESS_FIELD_NUMBER: builtins.int
583+
POWERMON_ENABLES_FIELD_NUMBER: builtins.int
583584
is_power_saving: builtins.bool
584585
"""
585586
Description: Will sleep everything as much as possible, for the tracker and sensor role this will also include the lora radio.
@@ -623,6 +624,11 @@ class Config(google.protobuf.message.Message):
623624
"""
624625
I2C address of INA_2XX to use for reading device battery voltage
625626
"""
627+
powermon_enables: builtins.int
628+
"""
629+
If non-zero, we want powermon log outputs. With the particular (bitfield) sources enabled.
630+
Note: we picked an ID of 32 so that lower more efficient IDs can be used for more frequently used options.
631+
"""
626632
def __init__(
627633
self,
628634
*,
@@ -634,8 +640,9 @@ class Config(google.protobuf.message.Message):
634640
ls_secs: builtins.int = ...,
635641
min_wake_secs: builtins.int = ...,
636642
device_battery_ina_address: builtins.int = ...,
643+
powermon_enables: builtins.int = ...,
637644
) -> None: ...
638-
def ClearField(self, field_name: typing.Literal["adc_multiplier_override", b"adc_multiplier_override", "device_battery_ina_address", b"device_battery_ina_address", "is_power_saving", b"is_power_saving", "ls_secs", b"ls_secs", "min_wake_secs", b"min_wake_secs", "on_battery_shutdown_after_secs", b"on_battery_shutdown_after_secs", "sds_secs", b"sds_secs", "wait_bluetooth_secs", b"wait_bluetooth_secs"]) -> None: ...
645+
def ClearField(self, field_name: typing.Literal["adc_multiplier_override", b"adc_multiplier_override", "device_battery_ina_address", b"device_battery_ina_address", "is_power_saving", b"is_power_saving", "ls_secs", b"ls_secs", "min_wake_secs", b"min_wake_secs", "on_battery_shutdown_after_secs", b"on_battery_shutdown_after_secs", "powermon_enables", b"powermon_enables", "sds_secs", b"sds_secs", "wait_bluetooth_secs", b"wait_bluetooth_secs"]) -> None: ...
639646

640647
@typing.final
641648
class NetworkConfig(google.protobuf.message.Message):
@@ -1530,6 +1537,7 @@ class Config(google.protobuf.message.Message):
15301537
ENABLED_FIELD_NUMBER: builtins.int
15311538
MODE_FIELD_NUMBER: builtins.int
15321539
FIXED_PIN_FIELD_NUMBER: builtins.int
1540+
DEVICE_LOGGING_ENABLED_FIELD_NUMBER: builtins.int
15331541
enabled: builtins.bool
15341542
"""
15351543
Enable Bluetooth on the device
@@ -1542,14 +1550,19 @@ class Config(google.protobuf.message.Message):
15421550
"""
15431551
Specified PIN for PairingMode.FixedPin
15441552
"""
1553+
device_logging_enabled: builtins.bool
1554+
"""
1555+
Enables device (serial style logs) over Bluetooth
1556+
"""
15451557
def __init__(
15461558
self,
15471559
*,
15481560
enabled: builtins.bool = ...,
15491561
mode: global___Config.BluetoothConfig.PairingMode.ValueType = ...,
15501562
fixed_pin: builtins.int = ...,
1563+
device_logging_enabled: builtins.bool = ...,
15511564
) -> None: ...
1552-
def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "fixed_pin", b"fixed_pin", "mode", b"mode"]) -> None: ...
1565+
def ClearField(self, field_name: typing.Literal["device_logging_enabled", b"device_logging_enabled", "enabled", b"enabled", "fixed_pin", b"fixed_pin", "mode", b"mode"]) -> None: ...
15531566

15541567
DEVICE_FIELD_NUMBER: builtins.int
15551568
POSITION_FIELD_NUMBER: builtins.int

meshtastic/protobuf/mesh_pb2.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/protobuf/mesh_pb2.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ class _HardwareModelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._
125125
"""
126126
RAK2560 Solar base station based on RAK4630
127127
"""
128+
HELTEC_HRU_3601: _HardwareModel.ValueType # 23
129+
"""
130+
Heltec HRU-3601: https://heltec.org/project/hru-3601/
131+
"""
128132
STATION_G1: _HardwareModel.ValueType # 25
129133
"""
130134
B&Q Consulting Station Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:station
@@ -412,6 +416,10 @@ RAK2560: HardwareModel.ValueType # 22
412416
"""
413417
RAK2560 Solar base station based on RAK4630
414418
"""
419+
HELTEC_HRU_3601: HardwareModel.ValueType # 23
420+
"""
421+
Heltec HRU-3601: https://heltec.org/project/hru-3601/
422+
"""
415423
STATION_G1: HardwareModel.ValueType # 25
416424
"""
417425
B&Q Consulting Station Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:station

meshtastic/protobuf/powermon_pb2.py

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/protobuf/powermon_pb2.pyi

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import builtins
7+
import google.protobuf.descriptor
8+
import google.protobuf.internal.enum_type_wrapper
9+
import google.protobuf.message
10+
import sys
11+
import typing
12+
13+
if sys.version_info >= (3, 10):
14+
import typing as typing_extensions
15+
else:
16+
import typing_extensions
17+
18+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
19+
20+
@typing.final
21+
class PowerMon(google.protobuf.message.Message):
22+
"""Note: There are no 'PowerMon' messages normally in use (PowerMons are sent only as structured logs - slogs).
23+
But we wrap our State enum in this message to effectively nest a namespace (without our linter yelling at us)
24+
"""
25+
26+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
27+
28+
class _State:
29+
ValueType = typing.NewType("ValueType", builtins.int)
30+
V: typing_extensions.TypeAlias = ValueType
31+
32+
class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PowerMon._State.ValueType], builtins.type):
33+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
34+
CPU_DeepSleep: PowerMon._State.ValueType # 1
35+
CPU_LightSleep: PowerMon._State.ValueType # 2
36+
Vext1_On: PowerMon._State.ValueType # 4
37+
"""
38+
The external Vext1 power is on. Many boards have auxillary power rails that the CPU turns on only
39+
occasionally. In cases where that rail has multiple devices on it we usually want to have logging on
40+
the state of that rail as an independent record.
41+
For instance on the Heltec Tracker 1.1 board, this rail is the power source for the GPS and screen.
42+
43+
The log messages will be short and complete (see PowerMon.Event in the protobufs for details).
44+
something like "S:PM:C,0x00001234,REASON" where the hex number is the bitmask of all current states.
45+
(We use a bitmask for states so that if a log message gets lost it won't be fatal)
46+
"""
47+
Lora_RXOn: PowerMon._State.ValueType # 8
48+
Lora_TXOn: PowerMon._State.ValueType # 16
49+
Lora_RXActive: PowerMon._State.ValueType # 32
50+
BT_On: PowerMon._State.ValueType # 64
51+
LED_On: PowerMon._State.ValueType # 128
52+
Screen_On: PowerMon._State.ValueType # 256
53+
Screen_Drawing: PowerMon._State.ValueType # 512
54+
Wifi_On: PowerMon._State.ValueType # 1024
55+
GPS_Active: PowerMon._State.ValueType # 2048
56+
"""
57+
GPS is actively trying to find our location
58+
See GPSPowerState for more details
59+
"""
60+
61+
class State(_State, metaclass=_StateEnumTypeWrapper):
62+
"""Any significant power changing event in meshtastic should be tagged with a powermon state transition.
63+
If you are making new meshtastic features feel free to add new entries at the end of this definition.
64+
"""
65+
66+
CPU_DeepSleep: PowerMon.State.ValueType # 1
67+
CPU_LightSleep: PowerMon.State.ValueType # 2
68+
Vext1_On: PowerMon.State.ValueType # 4
69+
"""
70+
The external Vext1 power is on. Many boards have auxillary power rails that the CPU turns on only
71+
occasionally. In cases where that rail has multiple devices on it we usually want to have logging on
72+
the state of that rail as an independent record.
73+
For instance on the Heltec Tracker 1.1 board, this rail is the power source for the GPS and screen.
74+
75+
The log messages will be short and complete (see PowerMon.Event in the protobufs for details).
76+
something like "S:PM:C,0x00001234,REASON" where the hex number is the bitmask of all current states.
77+
(We use a bitmask for states so that if a log message gets lost it won't be fatal)
78+
"""
79+
Lora_RXOn: PowerMon.State.ValueType # 8
80+
Lora_TXOn: PowerMon.State.ValueType # 16
81+
Lora_RXActive: PowerMon.State.ValueType # 32
82+
BT_On: PowerMon.State.ValueType # 64
83+
LED_On: PowerMon.State.ValueType # 128
84+
Screen_On: PowerMon.State.ValueType # 256
85+
Screen_Drawing: PowerMon.State.ValueType # 512
86+
Wifi_On: PowerMon.State.ValueType # 1024
87+
GPS_Active: PowerMon.State.ValueType # 2048
88+
"""
89+
GPS is actively trying to find our location
90+
See GPSPowerState for more details
91+
"""
92+
93+
def __init__(
94+
self,
95+
) -> None: ...
96+
97+
global___PowerMon = PowerMon

0 commit comments

Comments
 (0)