diff --git a/messages/mcu_messaging_common.options b/messages/mcu_messaging_common.options index 09fa431..42ff843 100644 --- a/messages/mcu_messaging_common.options +++ b/messages/mcu_messaging_common.options @@ -1,2 +1,3 @@ FirmwareUpdateData.image_block max_size: 39 Log.log max_length: 50 +MemfaultEvent.chunk max_size: 50 diff --git a/messages/mcu_messaging_common.proto b/messages/mcu_messaging_common.proto index f017050..4b85713 100644 --- a/messages/mcu_messaging_common.proto +++ b/messages/mcu_messaging_common.proto @@ -216,3 +216,10 @@ message Versions FirmwareVersion primary_app = 1; FirmwareVersion secondary_app = 2; } + +message MemfaultEvent +{ + // chunk must be sent to the Memfault backend in order + uint32 counter = 1; + bytes chunk = 2; +} diff --git a/messages/mcu_messaging_main.proto b/messages/mcu_messaging_main.proto index 10ec6f1..e2737fd 100644 --- a/messages/mcu_messaging_main.proto +++ b/messages/mcu_messaging_main.proto @@ -113,6 +113,7 @@ message McuToJetson BatteryInfoMaxValues battery_info_max_values = 25; BatteryInfoSocAndStatistics battery_info_soc_and_statistics = 26; ConePresent cone_present = 27; + MemfaultEvent memfault_event = 28; } } diff --git a/messages/mcu_messaging_sec.proto b/messages/mcu_messaging_sec.proto index 272d3ee..1dd57c5 100644 --- a/messages/mcu_messaging_sec.proto +++ b/messages/mcu_messaging_sec.proto @@ -50,6 +50,7 @@ message SecToJetson private.TamperRaw tamper_raw = 9; private.TamperStates tamper_states = 10; Temperature temperature = 11; + MemfaultEvent memfault_event = 12; } }