Aktionen
  Logging » Historie » Revision 1
    Revision 1/6
      | Weiter »
    
    Maximilian Seesslen, 21.12.2022 12:52 
    
    
Logging¶
There is the "trouble" function implemented for sensemux.
It should be integrated to an heartbeat class.
- good (double)
 - crytical error (fast blink)
 - fatal error (slow blink)
 - temporary error/ trouble (fast blink - off 1Hz) (goes away)
 
There are weak c functions: * trouble() * critical() * fatal()
Usecases:
- invalid eeprom causes "critical"-state
 - Not being able to sen CAN messages causes "trouble"
 - fatal: the application can not run for some reason but the led should work; e.g. a reception buffer is full
 - exception: Don't even try to run any more. e.g. memory error.
 
h2.
Von Maximilian Seesslen vor fast 3 Jahren aktualisiert · 1 Revisionen