Selective031 / RazorBoard

GNU General Public License v3.0
8 stars 2 forks source link

Store of failures in SRAM #13

Closed MagnusPer closed 3 years ago

MagnusPer commented 3 years ago

To ease the fault tracing to understanding why the mower stopped/tripped etc. The ~20 latest reported failures should be stored to SRAM. The data to store should include at least the type of failure and when it happened, preferable also the value of the data that triggered the failure

Example <date><time><failure type><state><data>

<2021-05-05 19:26> <OUTSIDE> <STOP>
<2021-06-10 20:10> <MOTOR M1 CURRENT> <2.3 AMP> <FORWARD> 

The list of failures should be readable via a command using the COM port

Selective031 commented 3 years ago

This is nearly complete, Razorboard now has 20 lines with 50 characters (1000 bytes) each of messages stored in SRAM, which is retained during power cycles. Commands: "show errors" - will simply show a list of messages, the newest is at the bottom (scroll style) "clear errors" - will erase the whole list "add error" - will add a test error message to the list

Selective031 commented 3 years ago

Released