Skip to content

Conversation

@tristpinsm
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link
Member

@BrianJKoopman BrianJKoopman left a 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!

@msilvafe
Copy link
Contributor

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

@BrianJKoopman BrianJKoopman self-requested a review June 23, 2025 20:47
Copy link
Member

@BrianJKoopman BrianJKoopman left a 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?

Copy link
Contributor

@msilvafe msilvafe left a 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

@BrianJKoopman BrianJKoopman merged commit 4a2ed42 into main Jun 24, 2025
5 checks passed
@BrianJKoopman BrianJKoopman deleted the tpm/rssi-feat branch June 24, 2025 19:00
@BrianJKoopman BrianJKoopman changed the title feat(agents.pysmurf_controller): Return status after RssiRestart. pysmurf-controller: Return status from RssiRestart in session.data Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants