-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device error state #10
Comments
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?
The text was updated successfully, but these errors were encountered: