State machine design for sd card detection and logging

Thread Starter


Joined Oct 1, 2021
I am trying to design a state machine for the logging sensor which has the following scenario :

Bootloader will send the signal whether a sd card is valid or invalid. If logging sensor receives valid signal, and there are error messages present, sensor will write the data to sd card and notifies the systemcontroller that the sd card is in write mode. If sd card is invalid, logging sensor notifies the systemcontroller that there is problem with the sd card. Here, bootloader, systemcontroller and datalogging controller are individual software components. Bootloader and systemcontroller software component will be deployed in controlboard and datalogging software component will be deployed in logging sensor.

I have designed the state diagram for logging sensor using UML:


Is the diagram valid or I am missing something?