Logging » Historie » Version 1
  Maximilian Seesslen, 21.12.2022 12:52 
  
| 1 | 1 | Maximilian Seesslen | h1. Logging  | 
|---|---|---|---|
| 2 | |||
| 3 | There is the "trouble" function implemented for sensemux.  | 
||
| 4 | It should be integrated to an heartbeat class.  | 
||
| 5 | |||
| 6 | * good (double)  | 
||
| 7 | * crytical error (fast blink)  | 
||
| 8 | * fatal error (slow blink)  | 
||
| 9 | * temporary error/ trouble (fast blink - off 1Hz) (goes away)  | 
||
| 10 | |||
| 11 | There are weak c functions: * trouble() * critical() * fatal()  | 
||
| 12 | Usecases:  | 
||
| 13 | |||
| 14 | * invalid eeprom causes "critical"-state  | 
||
| 15 | * Not being able to sen CAN messages causes "trouble"  | 
||
| 16 | * fatal: the application can not run for some reason but the led should work; e.g. a reception buffer is full  | 
||
| 17 | * exception: Don't even try to run any more. e.g. memory error.  | 
||
| 18 | |||
| 19 | h2.  |