Skip to content

Commit

Permalink
memfault: main & security mcu to report diagnostic
Browse files Browse the repository at this point in the history
using the memfault SDK, we only need to relay raw data to their backend

Signed-off-by: Cyril Fougeray <[email protected]>
  • Loading branch information
fouge committed Mar 8, 2024
1 parent e007404 commit 568dea6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions messages/mcu_messaging_common.options
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FirmwareUpdateData.image_block max_size: 39
Log.log max_length: 50
MemfaultEvent.chunk max_size: 50
7 changes: 7 additions & 0 deletions messages/mcu_messaging_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions messages/mcu_messaging_main.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
1 change: 1 addition & 0 deletions messages/mcu_messaging_sec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ message SecToJetson
private.TamperRaw tamper_raw = 9;
private.TamperStates tamper_states = 10;
Temperature temperature = 11;
MemfaultEvent memfault_event = 12;
}
}

Expand Down

0 comments on commit 568dea6

Please sign in to comment.