-
Notifications
You must be signed in to change notification settings - Fork 15
pysmurf-controller: Return status from RssiRestart in session.data #896
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
Conversation
BrianJKoopman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just need to document the session.data structure in the docstring. Thanks!
c3b5e06 to
23a6328
Compare
|
I think it may be helpful to call the caget twice once before and once after the restart_rssi script is called. Or have a separate task called check_rssi_status or something similar that can be called before the restart_rssi task. I suggest this because folks have called this when the problem possibly wasn’t an rssi lockup in which case it’s helpful to know if the caget was properly returning before running restart_rssi or only after |
23a6328 to
1ca8312
Compare
BrianJKoopman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One other small suggested change. Otherwise this looks good to me. @msilvafe?
eb42a1f to
6b8215a
Compare
msilvafe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks @tristpinsm
Check that the system is responsive after the RSSI restart.
Description
According to the instructions here, the RSSI lane being locked up can be identified by querying a given register. This PR performs this check after triggering the RSSI restart to confirm that it was successful and returns the result.
Motivation and Context
Suggested in #875. It will alert the user if the system is still unresponsive after the restart, or may be useful to rule out an RSSI lock-up when trying to identify an issue by confirming that it is responsive.
How Has This Been Tested?
Tested at SLAC to confirm that the register is read successfully and the return value is as expected. Not tested on a locked-up system.
Types of changes
Checklist: