Closed pelikhan closed 3 years ago
Is there a register for the error state of a device?
@jamesadevine should we have a string register in control service? or maybe a common string register for every service? or should that be numeric?
@pelikhan do you have specific use cases in mind?
I was thinking hardware errors like:
I was thinking about surfacing the panic error code.
I was thinking a register in the control service that exposes a "list" of errors if there are any.
In the case where hardware isn't working, I think it is better to panic and send a message over JACDAC.
should a device has a "safe boot" option that ignores all sensors and just broadcasts the error code?
It could just broadcast while the sensors are broken, I don't think there's much need to safe boot.
does jacdac still broadcast while in panic mode?
I understand we want to avoid a broken device polluting the bus with error messages.
Yeah, I think you'd just continue sending advertisement reports with some error flag set. A JD debugger/brain could then interrogate a device for its error state when connected
Kinds of Failures:
Common failure codes for JACDAC:
Take a look at: https://en.wikipedia.org/wiki/CAN_bus
Base register in the service definition
Is there a register to surface an error state in device?